iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 1.31 kB
JavaScript
export const __rspack_esm_id=77254;export const __rspack_esm_ids=[77254];export const __webpack_modules__={62501(t,o,e){e.a(t,async function(t,r){try{e.r(o),e.d(o,{HaIconButtonToggle:()=>p});var a=e(62826),s=e(5124),n=e(22441),c=e(26300),i=t([c]);c=(i.then?(await i)():i)[0];class p extends c.HaIconButton{constructor(...t){super(...t),this.selected=!1}}p.styles=[c.HaIconButton.styles,s.AH`: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,a.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],p.prototype,"selected",void 0),p=(0,a.Cg)([(0,n.EM)("ha-icon-button-toggle")],p),r()}catch(t){r(t)}})}};