iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 1.26 kB
JavaScript
webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["52767"],{68291:function(e,i,t){t.r(i);var n=t(61701),o=(t(52247),t(71695),t(47021),t(57243)),a=t(50778);t(65981);let s,r,c=e=>e;(0,n.Z)([(0,a.Mo)("hui-text-row")],(function(e,i){return{F:class extends i{constructor(...i){super(...i),e(this)}},d:[{kind:"field",decorators:[(0,a.SB)()],key:"_config",value:void 0},{kind:"method",key:"setConfig",value:function(e){if(!e||!e.name||!e.text)throw new Error("Name and text required");this._config=e}},{kind:"method",key:"render",value:function(){return this._config?(0,o.dy)(s||(s=c` <ha-icon .icon="${0}"></ha-icon> <div class="name" .title="${0}">${0}</div> <div class="text" .title="${0}">${0}</div> `),this._config.icon,this._config.name,this._config.name,this._config.text,this._config.text):o.Ld}},{kind:"field",static:!0,key:"styles",value(){return(0,o.iv)(r||(r=c`:host{display:flex;align-items:center}ha-icon{padding:8px;color:var(--paper-item-icon-color)}div{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.name{margin-left:16px;margin-inline-start:16px;margin-inline-end:initial}.text{text-align:var(--float-end)}`))}}]}}),o.oi)}}]);
//# sourceMappingURL=52767.0701e0612d15731b.js.map
;(self.