{
if (this.open) {
this.open = false;
}
}}
>
${this.control
? html`
{
stopEventFromActivatingCardWideActions(ev);
this.open = !this.open;
}}
>
{
// Only open the drawer on mousenter when the device
// supports hover (otherwise iOS may end up passing on
// subsequent click events to a different element, see:
// https://github.com/dermotduffy/frigate-hass-card/issues/801
if (this._isHoverableDevice && !this.open) {
this.open = true;
}
}}
>
`
: ''}
this._slotChanged()}>
`;
}
static get styles(): CSSResultGroup {
return unsafeCSS(drawerStyle);
}
}
declare global {
interface HTMLElementTagNameMap {
'frigate-card-drawer': FrigateCardDrawer;
'side-drawer': SideDrawer;
}
}