iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 906 B
JavaScript
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[175],{63218:function(t,a,s){s.a(t,async function(t,r){try{s.r(a),s.d(a,{HuiHorizontalStackCard:function(){return u}});s(44114),s(3362),s(62953);var n=s(40445),e=s(5124),i=s(67576),c=s(33121),o=s(90715),h=t([o]);o=(h.then?(await h)():h)[0];let l,d=t=>t;class u extends o.x{async getCardSize(){if(!this._cards)return 0;const t=[];for(const s of this._cards)t.push((0,c.Z)(s));const a=await Promise.all(t);return Math.max(...a)}static get styles(){return[super.sharedStyles,(0,e.AH)(l||(l=d`:host{display:flex;flex-direction:column;height:100%}#root{display:flex;flex:1;min-height:0;gap:var(--horizontal-stack-card-gap,var(--stack-card-gap,8px))}#root>hui-card{display:contents}#root>hui-card>*{flex:1 1 0;min-width:0}`))]}}u=(0,n.Cg)([(0,i.EM)("hui-horizontal-stack-card")],u),r()}catch(l){r(l)}})}}]);