iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 1.99 kB
JavaScript
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[21833],{976:function(e,a,t){t.a(e,async function(e,i){try{t.r(a),t.d(a,{HuiIframeCardEditor:function(){return m}});t(62953);var o=t(40445),n=t(5124),r=t(67576),s=t(63533),l=t(1087),c=t(52763),h=t(84698),d=e([c]);c=(d.then?(await d)():d)[0];let u,p=e=>e;const _=(0,s.kp)(h.H,(0,s.Ik)({title:(0,s.lq)((0,s.Yj)()),url:(0,s.lq)((0,s.Yj)()),aspect_ratio:(0,s.lq)((0,s.Yj)()),allow_open_top_navigation:(0,s.lq)((0,s.zM)()),hide_background:(0,s.lq)((0,s.zM)())})),g=[{name:"title",selector:{text:{}}},{name:"",type:"grid",schema:[{name:"url",required:!0,selector:{text:{}}},{name:"aspect_ratio",selector:{text:{}}}]},{name:"hide_background",selector:{boolean:{}}}];class m extends n.WF{setConfig(e){(0,s.vA)(e,_),this._config=e}render(){return this.hass&&this._config?(0,n.qy)(u||(u=p` <ha-form .hass="${0}" .data="${0}" .schema="${0}" .computeLabel="${0}" .computeHelper="${0}" @value-changed="${0}"></ha-form> `),this.hass,this._config,g,this._computeLabelCallback,this._computeHelperCallback,this._valueChanged):n.s6}_valueChanged(e){(0,l.r)(this,"config-changed",{config:e.detail.value})}constructor(...e){super(...e),this._computeLabelCallback=e=>"hide_background"===e.name?this.hass.localize("ui.panel.lovelace.editor.card.iframe.hide_background"):this.hass.localize(`ui.panel.lovelace.editor.card.generic.${e.name}`),this._computeHelperCallback=e=>"hide_background"===e.name?this.hass.localize("ui.panel.lovelace.editor.card.iframe.hide_background_helper"):""}}(0,o.Cg)([(0,r.MZ)({attribute:!1})],m.prototype,"hass",void 0),(0,o.Cg)([(0,r.wk)()],m.prototype,"_config",void 0),m=(0,o.Cg)([(0,r.EM)("hui-iframe-card-editor")],m),i()}catch(u){i(u)}})},84698:function(e,a,t){t.d(a,{H:function(){return o}});var i=t(63533);const o=(0,i.Ik)({type:(0,i.Yj)(),view_layout:(0,i.bz)(),layout_options:(0,i.bz)(),grid_options:(0,i.bz)(),visibility:(0,i.bz)(),disabled:(0,i.lq)((0,i.zM)())})}}]);