iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 1.56 kB
JavaScript
export const __webpack_ids__=["33821"];export const __webpack_modules__={77909:function(e,t,a){a.r(t),a.d(t,{HuiCounterActionsCardFeatureEditor:()=>d});var i=a(44249),o=(a(9359),a(70104),a(57243)),n=a(15093),s=a(27486),c=a(36522),l=(a(29073),a(36581));let d=(0,i.Z)([(0,n.Mo)("hui-counter-actions-card-feature-editor")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"context",value:void 0},{kind:"field",decorators:[(0,n.SB)()],key:"_config",value:void 0},{kind:"method",key:"setConfig",value:function(e){this._config=e}},{kind:"field",key:"_schema",value:()=>(0,s.Z)((e=>[{name:"actions",selector:{select:{multiple:!0,mode:"list",reorder:!0,options:l.vp.map((t=>({value:t,label:`${e(`ui.panel.lovelace.editor.features.types.counter-actions.actions.${t}`)}`})))}}}]))},{kind:"method",key:"render",value:function(){if(!this.hass||!this._config)return o.Ld;const e=this._schema(this.hass.localize);return o.dy` <ha-form .hass="${this.hass}" .data="${this._config}" .schema="${e}" .computeLabel="${this._computeLabelCallback}" @value-changed="${this._valueChanged}"></ha-form> `}},{kind:"method",key:"_valueChanged",value:function(e){(0,c.B)(this,"config-changed",{config:e.detail.value})}},{kind:"field",key:"_computeLabelCallback",value(){return e=>(e.name,this.hass.localize(`ui.panel.lovelace.editor.card.generic.${e.name}`))}}]}}),o.oi)}};
//# sourceMappingURL=33821.7dc731936661e0d1.js.map