iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 2.7 kB
JavaScript
export const __rspack_esm_id=31581;export const __rspack_esm_ids=[31581];export const __webpack_modules__={31756(a,o,e){e.a(a,async function(a,i){try{e.r(o),e.d(o,{DialogNewOverview:()=>_});var s=e(62826),t=e(5124),l=e(22441),r=e(1087),h=e(18350),n=(e(93444),e(72554)),c=e(14503),d=a([h,n]);[h,n]=d.then?(await d)():d;class _ extends t.WF{showDialog(a){this._params=a,this._open=!0}closeDialog(){return this._open=!1,!0}_dialogClosed(){this._params&&this._params.dismiss(),this._params=void 0,(0,r.r)(this,"dialog-closed",{dialog:this.localName})}render(){return this._params?t.qy` <ha-dialog .open="${this._open}" .headerTitle="${this.hass.localize("ui.panel.home.new_overview_dialog.title")}" prevent-scrim-close ="${this._dialogClosed}"> <div class="content"> <p> ${this.hass.localize("ui.panel.home.new_overview_dialog.description")} </p> <h3> ${this.hass.localize("ui.panel.home.new_overview_dialog.whats_new")} </h3> <ul> <li> <strong> ${this.hass.localize("ui.panel.home.new_overview_dialog.automatic_organization")} </strong> - ${this.hass.localize("ui.panel.home.new_overview_dialog.automatic_organization_description")} </li> <li> <strong> ${this.hass.localize("ui.panel.home.new_overview_dialog.favorites")} </strong> - ${this.hass.localize("ui.panel.home.new_overview_dialog.favorites_description")} </li> </ul> <h3> ${this.hass.localize("ui.panel.home.new_overview_dialog.existing_dashboards")} </h3> <p> ${this.hass.localize("ui.panel.home.new_overview_dialog.existing_dashboards_description",{dashboard_settings:t.qy`<a href="/config/lovelace/dashboards" ="${this.closeDialog}">${this.hass.localize("ui.panel.home.new_overview_dialog.dashboard_settings")}</a>`})} </p> </div> <ha-dialog-footer slot="footer"> <ha-button slot="primaryAction" ="${this.closeDialog}"> ${this.hass.localize("ui.panel.home.new_overview_dialog.ok_understood")} </ha-button> </ha-dialog-footer> </ha-dialog> `:t.s6}constructor(...a){super(...a),this._open=!1}}_.styles=[c.nA,t.AH`ha-dialog{--dialog-content-padding:var(--ha-space-6)}.content{line-height:var(--ha-line-height-normal)}p{margin:0 0 var(--ha-space-4) 0;color:var(--secondary-text-color)}h3{margin:var(--ha-space-4) 0 var(--ha-space-2) 0;font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-medium)}ul{margin:0 0 var(--ha-space-4) 0;padding-left:var(--ha-space-6);color:var(--secondary-text-color)}li{margin-bottom:var(--ha-space-2)}li strong{color:var(--primary-text-color)}`],(0,s.Cg)([(0,l.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,s.Cg)([(0,l.wk)()],_.prototype,"_params",void 0),(0,s.Cg)([(0,l.wk)()],_.prototype,"_open",void 0),_=(0,s.Cg)([(0,l.EM)("dialog-new-overview")],_),i()}catch(a){i(a)}})}};