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__=["84031"];export const __webpack_modules__={67133:function(e,t,i){i.r(t),i.d(t,{HuiNumericInputCardFeatureEditor:()=>u});var a=i(44249),s=i(57243),n=i(15093),o=i(27486),l=i(36522);i(29073);let u=(0,a.Z)([(0,n.Mo)("hui-numeric-input-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,o.Z)((e=>[{name:"style",selector:{select:{multiple:!1,mode:"list",options:["slider","buttons"].map((t=>({value:t,label:e(`ui.panel.lovelace.editor.features.types.numeric-input.style_list.${t}`)})))}}}]))},{kind:"method",key:"render",value:function(){if(!this.hass||!this._config)return s.Ld;const e={style:"buttons",...this._config},t=this._schema(this.hass.localize);return s.dy` <ha-form .hass="${this.hass}" .data="${e}" .schema="${t}" .computeLabel="${this._computeLabelCallback}" @value-changed="${this._valueChanged}"></ha-form> `}},{kind:"method",key:"_valueChanged",value:function(e){(0,l.B)(this,"config-changed",{config:e.detail.value})}},{kind:"field",key:"_computeLabelCallback",value(){return e=>this.hass.localize(`ui.panel.lovelace.editor.features.types.numeric-input.${e.name}`)}}]}}),s.oi)}};
//# sourceMappingURL=84031.1d1f444235fb0cd6.js.map