UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

1 lines 1.38 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[77254],{62501:function(t,o,e){e.a(t,async function(t,a){try{e.r(o),e.d(o,{HaIconButtonToggle:function(){return u}});e(62953);var r=e(40445),s=e(5124),n=e(67576),i=e(26300),c=t([i]);i=(c.then?(await c)():c)[0];let l,p=t=>t;class u extends i.HaIconButton{constructor(...t){super(...t),this.selected=!1}}u.styles=[i.HaIconButton.styles,(0,s.AH)(l||(l=p`:host{position:relative}ha-button::part(base){position:relative;transition:color 180ms ease-in-out}ha-button::part(base)::before{opacity:0;transition:opacity 180ms ease-in-out;background-color:var(--primary-text-color);border-radius:var(--ha-border-radius-2xl);height:40px;width:40px;content:"";position:absolute;top:-10px;left:-10px;bottom:-10px;right:-10px;margin:auto;box-sizing:border-box}:host([border-only]) ha-button::part(base)::before{background-color:transparent;border:2px solid var(--primary-text-color)}:host([selected]) ha-button::after{opacity:0}:host([selected]) ha-button::part(base){color:var(--primary-background-color);background-color:unset}:host([selected]:not([disabled])) ha-button::part(base)::before{opacity:1}::slotted(*){display:block}`))],(0,r.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],u.prototype,"selected",void 0),u=(0,r.Cg)([(0,n.EM)("ha-icon-button-toggle")],u),a()}catch(l){a(l)}})}}]);