iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
18 lines • 13.2 kB
JavaScript
/*! For license information please see 17679.52b1e0aafaa47366.js.LICENSE.txt */
export const __webpack_ids__=["17679"];export const __webpack_modules__={93958:function(t,e,i){i.d(e,{F:()=>h});var s=i(9065),o=i(15093),r=i(92444),n=i(76688);let a=class extends r.A{};a.styles=[n.W],a=(0,s.__decorate)([(0,o.Mo)("mwc-checkbox")],a);var l=i(57243),d=i(35359),c=i(65703);class h extends c.K{constructor(){super(...arguments),this.left=!1,this.graphic="control"}render(){const t={"mdc-deprecated-list-item__graphic":this.left,"mdc-deprecated-list-item__meta":!this.left},e=this.renderText(),i=this.graphic&&"control"!==this.graphic&&!this.left?this.renderGraphic():l.dy``,s=this.hasMeta&&this.left?this.renderMeta():l.dy``,o=this.renderRipple();return l.dy` ${o} ${i} ${this.left?"":e} <span class="${(0,d.$)(t)}"> <mwc-checkbox reducedTouchTarget tabindex="${this.tabindex}" .checked="${this.selected}" ?disabled="${this.disabled}" ="${this.onChange}"> </mwc-checkbox> </span> ${this.left?e:""} ${s}`}async onChange(t){const e=t.target;this.selected===e.checked||(this._skipPropRequest=!0,this.selected=e.checked,await this.updateComplete,this._skipPropRequest=!1)}}(0,s.__decorate)([(0,o.IO)("slot")],h.prototype,"slotElement",void 0),(0,s.__decorate)([(0,o.IO)("mwc-checkbox")],h.prototype,"checkboxElement",void 0),(0,s.__decorate)([(0,o.Cb)({type:Boolean})],h.prototype,"left",void 0),(0,s.__decorate)([(0,o.Cb)({type:String,reflect:!0})],h.prototype,"graphic",void 0)},97536:function(t,e,i){i.d(e,{W:()=>s});const s=i(57243).iv`:host(:not([twoline])){height:56px}:host(:not([left])) .mdc-deprecated-list-item__meta{height:40px;width:40px}`},1231:function(t,e,i){i.d(e,{B:()=>l});var s=i(9065),o=i(15093),r=i(57243);class n extends r.oi{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}(0,s.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],n.prototype,"inset",void 0),(0,s.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0,attribute:"inset-start"})],n.prototype,"insetStart",void 0),(0,s.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0,attribute:"inset-end"})],n.prototype,"insetEnd",void 0);const a=r.iv`:host{box-sizing:border-box;color:var(--md-divider-color,var(--md-sys-color-outline-variant,#cac4d0));display:flex;height:var(--md-divider-thickness,1px);width:100%}:host([inset-start]),:host([inset]){padding-inline-start:16px}:host([inset-end]),:host([inset]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%} {:host::before{background:CanvasText}}`;let l=class extends n{};l.styles=[a],l=(0,s.__decorate)([(0,o.Mo)("md-divider")],l)},78755:function(t,e,i){i.d(e,{g:()=>m});var s=i(9065),o=i(15093),r=(i(57618),i(26499),i(23111),i(57243)),n=i(35359),a=i(79840),l=i(13823),d=i(64840);const c=(0,l.T)(r.oi);class h extends c{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(t){this.href&&(this.type="link"),super.willUpdate(t)}render(){return this.renderListItem(r.dy` <md-item> <div slot="container"> ${this.renderRipple()} ${this.renderFocusRing()} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${this.renderBody()} </md-item> `)}renderListItem(t){const e="link"===this.type;let i;switch(this.type){case"link":i=a.i0`a`;break;case"button":i=a.i0`button`;break;default:i=a.i0`li`}const s="text"!==this.type,o=e&&this.target?this.target:r.Ld;return a.dy`
<${i}
id="item"
tabindex="${this.isDisabled||!s?-1:0}"
?disabled=${this.isDisabled}
role="listitem"
aria-selected=${this.ariaSelected||r.Ld}
aria-checked=${this.ariaChecked||r.Ld}
aria-expanded=${this.ariaExpanded||r.Ld}
aria-haspopup=${this.ariaHasPopup||r.Ld}
class="list-item ${(0,n.$)(this.getRenderClasses())}"
href=${this.href||r.Ld}
target=${o}
=${this.onFocus}
>${t}</${i}>
`}renderRipple(){return"text"===this.type?r.Ld:r.dy` <md-ripple part="ripple" for="item" ?disabled="${this.isDisabled}"></md-ripple>`}renderFocusRing(){return"text"===this.type?r.Ld:r.dy` <md-focus-ring -changed="${this.onFocusRingVisibilityChanged}" part="focus-ring" for="item" inward></md-focus-ring>`}onFocusRingVisibilityChanged(t){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return r.dy` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,d.oh)())}focus(){this.listItemRoot?.focus()}}h.shadowRootOptions={...r.oi.shadowRootOptions,delegatesFocus:!0},(0,s.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],h.prototype,"disabled",void 0),(0,s.__decorate)([(0,o.Cb)({reflect:!0})],h.prototype,"type",void 0),(0,s.__decorate)([(0,o.Cb)({type:Boolean,attribute:"md-list-item",reflect:!0})],h.prototype,"isListItem",void 0),(0,s.__decorate)([(0,o.Cb)()],h.prototype,"href",void 0),(0,s.__decorate)([(0,o.Cb)()],h.prototype,"target",void 0),(0,s.__decorate)([(0,o.IO)(".list-item")],h.prototype,"listItemRoot",void 0);const p=r.iv`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))} {.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`;let m=class extends h{};m.styles=[p],m=(0,s.__decorate)([(0,o.Mo)("md-list-item")],m)},623:function(t,e,i){i.d(e,{j:()=>c});var s=i(9065),o=i(15093),r=(i(67351),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(57243)),n=i(7750);const a=new Set(Object.values(n.E));class l extends r.oi{get items(){return this.listController.items}constructor(){super(),this.listController=new n.g({isItem:t=>t.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:t=>{t.tabIndex=-1},activateItem:t=>{t.tabIndex=0},isNavigableKey:t=>a.has(t),isActivatable:t=>!t.disabled&&"text"!==t.type}),this.internals=this.attachInternals(),r.sk||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}render(){return r.dy` <slot -items="${this.listController.onDeactivateItems}" -activation="${this.listController.onRequestActivation}" ="${this.listController.onSlotchange}"> </slot> `}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}(0,s.__decorate)([(0,o.NH)({flatten:!0})],l.prototype,"slotItems",void 0);const d=r.iv`:host{background:var(--md-list-container-color,var(--md-sys-color-surface,#fef7ff));color:unset;display:flex;flex-direction:column;outline:0;padding:8px 0;position:relative}`;let c=class extends l{};c.styles=[d],c=(0,s.__decorate)([(0,o.Mo)("md-list")],c)},1714:function(t,e,i){i.d(e,{sR:()=>h});i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814);var s=i(53232),o=i(45779);const r=(t,e)=>{var i,s;const o=t._$AN;if(void 0===o)return!1;for(const t of o)null===(s=(i=t)._$AO)||void 0===s||s.call(i,e,!1),r(t,e);return!0},n=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null==i?void 0:i.size))},a=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),c(e)}};function l(t){void 0!==this._$AN?(n(this),this._$AM=t,a(this)):this._$AM=t}function d(t,e=!1,i=0){const s=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(s))for(let t=i;t<s.length;t++)r(s[t],!1),n(s[t]);else null!=s&&(r(s,!1),n(s));else r(this,t)}const c=t=>{var e,i,s,r;t.type==o.pX.CHILD&&(null!==(e=(s=t)._$AP)&&void 0!==e||(s._$AP=d),null!==(i=(r=t)._$AQ)&&void 0!==i||(r._$AQ=l))};class h extends o.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),a(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?null===(i=this.reconnected)||void 0===i||i.call(this):null===(s=this.disconnected)||void 0===s||s.call(this)),e&&(r(this,t),n(this))}setValue(t){if((0,s.OR)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}},94571:function(t,e,i){i.d(e,{C:()=>p});i(9359),i(1331);var s=i(2841),o=i(53232),r=i(1714);class n{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class a{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}var l=i(45779);const d=t=>!(0,o.pt)(t)&&"function"==typeof t.then,c=1073741823;class h extends r.sR{constructor(){super(...arguments),this._$C_t=c,this._$Cwt=[],this._$Cq=new n(this),this._$CK=new a}render(...t){var e;return null!==(e=t.find((t=>!d(t))))&&void 0!==e?e:s.Jb}update(t,e){const i=this._$Cwt;let o=i.length;this._$Cwt=e;const r=this._$Cq,n=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const s=e[t];if(!d(s))return this._$C_t=t,s;t<o&&s===i[t]||(this._$C_t=c,o=0,Promise.resolve(s).then((async t=>{for(;n.get();)await n.get();const e=r.deref();if(void 0!==e){const i=e._$Cwt.indexOf(s);i>-1&&i<e._$C_t&&(e._$C_t=i,e.setValue(t))}})))}return s.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const p=(0,l.XM)(h)}};
//# sourceMappingURL=17679.52b1e0aafaa47366.js.map