Bump frontend to 4ad49ef0 (#3675)

This commit is contained in:
Joakim Sørensen 2022-06-08 16:19:59 +02:00 committed by GitHub
parent e048c71dc8
commit 977fd8abe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
208 changed files with 866 additions and 812 deletions

@ -1 +1 @@
Subproject commit 3acab5a39c4da4c5ecb9d8f86e9b2f5488b00d03 Subproject commit 4ad49ef07f65431d047094dda7eb6359fe4d8809

View File

@ -1,14 +1,14 @@
function loadES5() { function loadES5() {
var el = document.createElement('script'); var el = document.createElement('script');
el.src = '/api/hassio/app/frontend_es5/entrypoint.15345af6.js'; el.src = '/api/hassio/app/frontend_es5/entrypoint.073e9cdc.js';
document.body.appendChild(el); document.body.appendChild(el);
} }
if (/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent)) { if (/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent)) {
loadES5(); loadES5();
} else { } else {
try { try {
new Function("import('/api/hassio/app/frontend_latest/entrypoint.532921ab.js')")(); new Function("import('/api/hassio/app/frontend_latest/entrypoint.e7839dce.js')")();
} catch (err) { } catch (err) {
loadES5(); loadES5();
} }

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -26,12 +26,6 @@
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/ */
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
/** /**
* @license * @license
* Copyright 2017 Google LLC * Copyright 2017 Google LLC
@ -56,6 +50,12 @@
* SPDX-LIcense-Identifier: Apache-2.0 * SPDX-LIcense-Identifier: Apache-2.0
*/ */
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/** /**
@license @license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved. Copyright (c) 2017 The Polymer Project Authors. All rights reserved.

Binary file not shown.

View File

@ -1,3 +1,3 @@
{ {
"entrypoint.js": "/api/hassio/app/frontend_es5/entrypoint.15345af6.js" "entrypoint.js": "/api/hassio/app/frontend_es5/entrypoint.073e9cdc.js"
} }

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -69,4 +69,4 @@
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
`]}},{kind:"method",key:"_handleMenuAction",value:function(e){switch(e.detail.index){case 0:this._downloadClicked();break;case 1:this._deleteClicked()}}},{kind:"method",key:"_restoreClicked",value:async function(){const e=this._backupContent.backupDetails();this._restoringBackup=!0,"full"===this._backupContent.backupType?await this._fullRestoreClicked(e):await this._partialRestoreClicked(e),this._restoringBackup=!1}},{kind:"method",key:"_partialRestoreClicked",value:async function(e){var t,i,r,o;void 0===(null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor)||"running"===(null===(i=this._dialogParams)||void 0===i?void 0:i.supervisor.info.state)?await(0,d.g7)(this,{title:"Are you sure you want partially to restore this backup?",confirmText:"restore",dismissText:"cancel"})&&(null!==(r=this._dialogParams)&&void 0!==r&&r.onboarding?((0,s.B)(this,"restoring"),fetch(`/api/hassio/backups/${this._backup.slug}/restore/partial`,{method:"POST",body:JSON.stringify(e)}),this.closeDialog()):this.hass.callApi("POST",`hassio/${(0,f.I)(this.hass.config.version,2021,9)?"backups":"snapshots"}/${this._backup.slug}/restore/partial`,e).then((()=>{this.closeDialog()}),(e=>{this._error=e.body.message}))):await(0,d.Ys)(this,{title:"Could not restore backup",text:`Restoring a backup is not possible right now because the system is in ${null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state} state.`})}},{kind:"method",key:"_fullRestoreClicked",value:async function(e){var t,i,r,o;void 0===(null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor)||"running"===(null===(i=this._dialogParams)||void 0===i?void 0:i.supervisor.info.state)?await(0,d.g7)(this,{title:"Are you sure you want to wipe your system and restore this backup?",confirmText:"restore",dismissText:"cancel"})&&(null!==(r=this._dialogParams)&&void 0!==r&&r.onboarding?((0,s.B)(this,"restoring"),fetch(`/api/hassio/backups/${this._backup.slug}/restore/full`,{method:"POST",body:JSON.stringify(e)}),this.closeDialog()):this.hass.callApi("POST",`hassio/${(0,f.I)(this.hass.config.version,2021,9)?"backups":"snapshots"}/${this._backup.slug}/restore/full`,e).then((()=>{this.closeDialog()}),(e=>{this._error=e.body.message}))):await(0,d.Ys)(this,{title:"Could not restore backup",text:`Restoring a backup is not possible right now because the system is in ${null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state} state.`})}},{kind:"method",key:"_deleteClicked",value:async function(){await(0,d.g7)(this,{title:"Are you sure you want to delete this backup?",confirmText:"delete",dismissText:"cancel"})&&this.hass.callApi((0,f.I)(this.hass.config.version,2021,9)?"DELETE":"POST","hassio/"+((0,f.I)(this.hass.config.version,2021,9)?`backups/${this._backup.slug}`:`snapshots/${this._backup.slug}/remove`)).then((()=>{this._dialogParams.onDelete&&this._dialogParams.onDelete(),this.closeDialog()}),(e=>{this._error=e.body.message}))}},{kind:"method",key:"_downloadClicked",value:async function(){let e;try{e=await(0,n.iI)(this.hass,`/api/hassio/${(0,f.I)(this.hass.config.version,2021,9)?"backups":"snapshots"}/${this._backup.slug}/download`)}catch(e){return void await(0,d.Ys)(this,{text:(0,l.js)(e)})}if(window.location.href.includes("ui.nabu.casa")){if(!await(0,d.g7)(this,{title:"Potential slow download",text:"Downloading backups over the Nabu Casa URL will take some time, it is recomended to use your local URL instead, do you want to continue?",confirmText:"continue",dismissText:"cancel"}))return}(0,h.N)(e.path,`home_assistant_backup_${(0,a.l)(this._computeName)}.tar`)}},{kind:"get",key:"_computeName",value:function(){return this._backup?this._backup.name||this._backup.slug:"Unnamed backup"}}]}}),r.oi)}))},3447:(e,t,i)=>{i.d(t,{l:()=>r});const r=(e,t="_")=>{const i="àáäâãåăæąçćčđďèéěėëêęğǵḧìíïîįłḿǹńňñòóöôœøṕŕřßşśšșťțùúüûǘůűūųẃẍÿýźžż·/_,:;",r=`aaaaaaaaacccddeeeeeeegghiiiiilmnnnnooooooprrsssssttuuuuuuuuuwxyyzzz${t}${t}${t}${t}${t}${t}`,o=new RegExp(i.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,t).replace(o,(e=>r.charAt(i.indexOf(e)))).replace(/&/g,`${t}and${t}`).replace(/[^\w-]+/g,"").replace(/-/g,t).replace(new RegExp(`(${t})\\1+`,"g"),"$1").replace(new RegExp(`^${t}+`),"").replace(new RegExp(`${t}+$`),"")}},2814:(e,t,i)=>{i.d(t,{iI:()=>r});location.protocol,location.host;const r=(e,t)=>e.callWS({type:"auth/sign_path",path:t})},5936:(e,t,i)=>{i.d(t,{N:()=>r});const r=(e,t="")=>{const i=document.createElement("a");i.target="_blank",i.href=e,i.download=t,document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click")),document.body.removeChild(i)}}}]); `]}},{kind:"method",key:"_handleMenuAction",value:function(e){switch(e.detail.index){case 0:this._downloadClicked();break;case 1:this._deleteClicked()}}},{kind:"method",key:"_restoreClicked",value:async function(){const e=this._backupContent.backupDetails();this._restoringBackup=!0,"full"===this._backupContent.backupType?await this._fullRestoreClicked(e):await this._partialRestoreClicked(e),this._restoringBackup=!1}},{kind:"method",key:"_partialRestoreClicked",value:async function(e){var t,i,r,o;void 0===(null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor)||"running"===(null===(i=this._dialogParams)||void 0===i?void 0:i.supervisor.info.state)?await(0,d.g7)(this,{title:"Are you sure you want partially to restore this backup?",confirmText:"restore",dismissText:"cancel"})&&(null!==(r=this._dialogParams)&&void 0!==r&&r.onboarding?((0,s.B)(this,"restoring"),fetch(`/api/hassio/backups/${this._backup.slug}/restore/partial`,{method:"POST",body:JSON.stringify(e)}),this.closeDialog()):this.hass.callApi("POST",`hassio/${(0,f.I)(this.hass.config.version,2021,9)?"backups":"snapshots"}/${this._backup.slug}/restore/partial`,e).then((()=>{this.closeDialog()}),(e=>{this._error=e.body.message}))):await(0,d.Ys)(this,{title:"Could not restore backup",text:`Restoring a backup is not possible right now because the system is in ${null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state} state.`})}},{kind:"method",key:"_fullRestoreClicked",value:async function(e){var t,i,r,o;void 0===(null===(t=this._dialogParams)||void 0===t?void 0:t.supervisor)||"running"===(null===(i=this._dialogParams)||void 0===i?void 0:i.supervisor.info.state)?await(0,d.g7)(this,{title:"Are you sure you want to wipe your system and restore this backup?",confirmText:"restore",dismissText:"cancel"})&&(null!==(r=this._dialogParams)&&void 0!==r&&r.onboarding?((0,s.B)(this,"restoring"),fetch(`/api/hassio/backups/${this._backup.slug}/restore/full`,{method:"POST",body:JSON.stringify(e)}),this.closeDialog()):this.hass.callApi("POST",`hassio/${(0,f.I)(this.hass.config.version,2021,9)?"backups":"snapshots"}/${this._backup.slug}/restore/full`,e).then((()=>{this.closeDialog()}),(e=>{this._error=e.body.message}))):await(0,d.Ys)(this,{title:"Could not restore backup",text:`Restoring a backup is not possible right now because the system is in ${null===(o=this._dialogParams)||void 0===o?void 0:o.supervisor.info.state} state.`})}},{kind:"method",key:"_deleteClicked",value:async function(){await(0,d.g7)(this,{title:"Are you sure you want to delete this backup?",confirmText:"delete",dismissText:"cancel"})&&this.hass.callApi((0,f.I)(this.hass.config.version,2021,9)?"DELETE":"POST","hassio/"+((0,f.I)(this.hass.config.version,2021,9)?`backups/${this._backup.slug}`:`snapshots/${this._backup.slug}/remove`)).then((()=>{this._dialogParams.onDelete&&this._dialogParams.onDelete(),this.closeDialog()}),(e=>{this._error=e.body.message}))}},{kind:"method",key:"_downloadClicked",value:async function(){let e;try{e=await(0,n.iI)(this.hass,`/api/hassio/${(0,f.I)(this.hass.config.version,2021,9)?"backups":"snapshots"}/${this._backup.slug}/download`)}catch(e){return void await(0,d.Ys)(this,{text:(0,l.js)(e)})}if(window.location.href.includes("ui.nabu.casa")){if(!await(0,d.g7)(this,{title:"Potential slow download",text:"Downloading backups over the Nabu Casa URL will take some time, it is recomended to use your local URL instead, do you want to continue?",confirmText:"continue",dismissText:"cancel"}))return}(0,h.N)(e.path,`home_assistant_backup_${(0,a.l)(this._computeName)}.tar`)}},{kind:"get",key:"_computeName",value:function(){return this._backup?this._backup.name||this._backup.slug:"Unnamed backup"}}]}}),r.oi)}))},3447:(e,t,i)=>{i.d(t,{l:()=>r});const r=(e,t="_")=>{const i="àáäâãåăæąçćčđďèéěėëêęğǵḧìíïîįłḿǹńňñòóöôœøṕŕřßşśšșťțùúüûǘůűūųẃẍÿýźžż·/_,:;",r=`aaaaaaaaacccddeeeeeeegghiiiiilmnnnnooooooprrsssssttuuuuuuuuuwxyyzzz${t}${t}${t}${t}${t}${t}`,o=new RegExp(i.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,t).replace(o,(e=>r.charAt(i.indexOf(e)))).replace(/&/g,`${t}and${t}`).replace(/[^\w-]+/g,"").replace(/-/g,t).replace(new RegExp(`(${t})\\1+`,"g"),"$1").replace(new RegExp(`^${t}+`),"").replace(new RegExp(`${t}+$`),"")}},2814:(e,t,i)=>{i.d(t,{iI:()=>r});location.protocol,location.host;const r=(e,t)=>e.callWS({type:"auth/sign_path",path:t})},5936:(e,t,i)=>{i.d(t,{N:()=>r});const r=(e,t="")=>{const i=document.createElement("a");i.target="_blank",i.href=e,i.download=t,document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click")),document.body.removeChild(i)}}}]);
//# sourceMappingURL=2738997d.js.map //# sourceMappingURL=1a587b90.js.map

View File

@ -191,4 +191,4 @@
margin-right: 8px; margin-right: 8px;
} }
`}}]}}),i.oi)},2198:(e,t,r)=>{r.a(e,(async e=>{r.d(t,{p6:()=>o,WB:()=>s});var i=r(4516),n=r(4121);n.Xp&&await n.Xp;(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric"})));const o=(e,t)=>a(t).format(e),a=(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric"}))),s=(e,t)=>l(t).format(e),l=(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"numeric",day:"numeric"})));(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{month:"long",year:"numeric"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{month:"long"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric"})));e()}),1)}}]); `}}]}}),i.oi)},2198:(e,t,r)=>{r.a(e,(async e=>{r.d(t,{p6:()=>o,WB:()=>s});var i=r(4516),n=r(4121);n.Xp&&await n.Xp;(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric"})));const o=(e,t)=>a(t).format(e),a=(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric"}))),s=(e,t)=>l(t).format(e),l=(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"numeric",day:"numeric"})));(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{month:"long",year:"numeric"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{month:"long"}))),(0,i.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric"})));e()}),1)}}]);
//# sourceMappingURL=e6d89b8d.js.map //# sourceMappingURL=1f85eb11.js.map

View File

@ -15,4 +15,4 @@
dir="ltr" dir="ltr"
></ha-code-editor> ></ha-code-editor>
`}},{kind:"method",key:"_onChange",value:function(e){let t;e.stopPropagation(),this._yaml=e.detail.value;let r=!0;if(this._yaml)try{t=(0,i.zD)(this._yaml,{schema:this.yamlSchema})}catch(e){r=!1}else t={};this.value=t,this.isValid=r,(0,a.B)(this,"value-changed",{value:t,isValid:r})}},{kind:"get",key:"yaml",value:function(){return this._yaml}}]}}),o.oi)}}]); `}},{kind:"method",key:"_onChange",value:function(e){let t;e.stopPropagation(),this._yaml=e.detail.value;let r=!0;if(this._yaml)try{t=(0,i.zD)(this._yaml,{schema:this.yamlSchema})}catch(e){r=!1}else t={};this.value=t,this.isValid=r,(0,a.B)(this,"value-changed",{value:t,isValid:r})}},{kind:"get",key:"yaml",value:function(){return this._yaml}}]}}),o.oi)}}]);
//# sourceMappingURL=f9c0d6de.js.map //# sourceMappingURL=22448430.js.map

Binary file not shown.

View File

@ -56,4 +56,4 @@
text-align: center; text-align: center;
} }
`]}}]}}),r.oi)}}]); `]}}]}}),r.oi)}}]);
//# sourceMappingURL=a3eb8b53.js.map //# sourceMappingURL=478b24bb.js.map

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -494,4 +494,4 @@ svg {
} }
} }
`],(0,h.__decorate)([(0,p.Cb)({type:Number,reflect:!0})],B.prototype,"firstDayOfWeek",void 0),(0,h.__decorate)([(0,p.Cb)({type:Boolean,reflect:!0})],B.prototype,"showWeekNumber",void 0),(0,h.__decorate)([(0,p.Cb)({type:String,reflect:!0})],B.prototype,"weekNumberType",void 0),(0,h.__decorate)([(0,p.Cb)({type:Boolean,reflect:!0})],B.prototype,"landscape",void 0),(0,h.__decorate)([(0,p.Cb)({type:String,reflect:!0})],B.prototype,"startView",null),(0,h.__decorate)([(0,p.Cb)({type:String,reflect:!0})],B.prototype,"min",null),(0,h.__decorate)([(0,p.Cb)({type:String,reflect:!0})],B.prototype,"max",null),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"value",null),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"locale",void 0),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"disabledDays",void 0),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"disabledDates",void 0),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"weekLabel",void 0),(0,h.__decorate)([(0,p.Cb)({type:Boolean})],B.prototype,"inline",void 0),(0,h.__decorate)([(0,p.Cb)({type:Number})],B.prototype,"dragRatio",void 0),(0,h.__decorate)([(0,p.Cb)({type:Date,attribute:!1})],B.prototype,"_selectedDate",void 0),(0,h.__decorate)([(0,p.Cb)({type:Date,attribute:!1})],B.prototype,"_focusedDate",void 0),(0,h.__decorate)([(0,p.Cb)({type:String,attribute:!1})],B.prototype,"_startView",void 0),(0,h.__decorate)([(0,p.IO)(".year-list-view__full-list")],B.prototype,"_yearViewFullList",void 0),(0,h.__decorate)([(0,p.IO)(".btn__year-selector")],B.prototype,"_buttonSelectorYear",void 0),(0,h.__decorate)([(0,p.IO)(".year-list-view__list-item")],B.prototype,"_yearViewListItem",void 0),(0,h.__decorate)([(0,p.hO)({passive:!0})],B.prototype,"_updateYear",null),(0,h.__decorate)([(0,p.hO)({passive:!0})],B.prototype,"_updateFocusedDateWithKeyboard",null),I="app-datepicker",z=B,window.customElements&&!window.customElements.get(I)&&window.customElements.define(I,z)}}]); `],(0,h.__decorate)([(0,p.Cb)({type:Number,reflect:!0})],B.prototype,"firstDayOfWeek",void 0),(0,h.__decorate)([(0,p.Cb)({type:Boolean,reflect:!0})],B.prototype,"showWeekNumber",void 0),(0,h.__decorate)([(0,p.Cb)({type:String,reflect:!0})],B.prototype,"weekNumberType",void 0),(0,h.__decorate)([(0,p.Cb)({type:Boolean,reflect:!0})],B.prototype,"landscape",void 0),(0,h.__decorate)([(0,p.Cb)({type:String,reflect:!0})],B.prototype,"startView",null),(0,h.__decorate)([(0,p.Cb)({type:String,reflect:!0})],B.prototype,"min",null),(0,h.__decorate)([(0,p.Cb)({type:String,reflect:!0})],B.prototype,"max",null),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"value",null),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"locale",void 0),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"disabledDays",void 0),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"disabledDates",void 0),(0,h.__decorate)([(0,p.Cb)({type:String})],B.prototype,"weekLabel",void 0),(0,h.__decorate)([(0,p.Cb)({type:Boolean})],B.prototype,"inline",void 0),(0,h.__decorate)([(0,p.Cb)({type:Number})],B.prototype,"dragRatio",void 0),(0,h.__decorate)([(0,p.Cb)({type:Date,attribute:!1})],B.prototype,"_selectedDate",void 0),(0,h.__decorate)([(0,p.Cb)({type:Date,attribute:!1})],B.prototype,"_focusedDate",void 0),(0,h.__decorate)([(0,p.Cb)({type:String,attribute:!1})],B.prototype,"_startView",void 0),(0,h.__decorate)([(0,p.IO)(".year-list-view__full-list")],B.prototype,"_yearViewFullList",void 0),(0,h.__decorate)([(0,p.IO)(".btn__year-selector")],B.prototype,"_buttonSelectorYear",void 0),(0,h.__decorate)([(0,p.IO)(".year-list-view__list-item")],B.prototype,"_yearViewListItem",void 0),(0,h.__decorate)([(0,p.hO)({passive:!0})],B.prototype,"_updateYear",null),(0,h.__decorate)([(0,p.hO)({passive:!0})],B.prototype,"_updateFocusedDateWithKeyboard",null),I="app-datepicker",z=B,window.customElements&&!window.customElements.get(I)&&window.customElements.define(I,z)}}]);
//# sourceMappingURL=f0de0e21.js.map //# sourceMappingURL=5bf7a625.js.map

Binary file not shown.

View File

@ -24,4 +24,4 @@
max-width: 600px; max-width: 600px;
} }
`}}]}}),i.oi)}}]); `}}]}}),i.oi)}}]);
//# sourceMappingURL=c61ab08a.js.map //# sourceMappingURL=93a98d37.js.map

View File

@ -1 +1 @@
{"version":3,"file":"c61ab08a.js","mappings":";;AAoBA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AArBA","sources":["webpack://home-assistant-frontend/./hassio/src/update-available/update-available-dashboard.ts"],"sourcesContent":["import { css, CSSResultGroup, html, LitElement, TemplateResult } from \"lit\";\nimport { customElement, property } from \"lit/decorators\";\nimport { Supervisor } from \"../../../src/data/supervisor/supervisor\";\nimport \"../../../src/layouts/hass-subpage\";\nimport { HomeAssistant, Route } from \"../../../src/types\";\nimport \"./update-available-card\";\n\n@customElement(\"update-available-dashboard\")\nclass UpdateAvailableDashboard extends LitElement {\n @property({ attribute: false }) public hass!: HomeAssistant;\n\n @property({ attribute: false }) public supervisor!: Supervisor;\n\n @property({ type: Boolean }) public narrow!: boolean;\n\n @property({ attribute: false }) public route!: Route;\n\n protected render(): TemplateResult {\n return html`\n <hass-subpage\n .hass=${this.hass}\n .narrow=${this.narrow}\n .route=${this.route}\n >\n <update-available-card\n .hass=${this.hass}\n .supervisor=${this.supervisor}\n .route=${this.route}\n .narrow=${this.narrow}\n @update-complete=${this._updateComplete}\n ></update-available-card>\n </hass-subpage>\n `;\n }\n\n private _updateComplete() {\n history.back();\n }\n\n static get styles(): CSSResultGroup {\n return css`\n hass-subpage {\n --app-header-background-color: var(--primary-background-color);\n --app-header-text-color: var(--sidebar-text-color);\n }\n update-available-card {\n margin: auto;\n margin-top: 16px;\n margin-bottom: 24px;\n max-width: 600px;\n }\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"update-available-dashboard\": UpdateAvailableDashboard;\n }\n}\n"],"names":[],"sourceRoot":""} {"version":3,"file":"93a98d37.js","mappings":";;AAoBA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AArBA","sources":["webpack://home-assistant-frontend/./hassio/src/update-available/update-available-dashboard.ts"],"sourcesContent":["import { css, CSSResultGroup, html, LitElement, TemplateResult } from \"lit\";\nimport { customElement, property } from \"lit/decorators\";\nimport { Supervisor } from \"../../../src/data/supervisor/supervisor\";\nimport \"../../../src/layouts/hass-subpage\";\nimport { HomeAssistant, Route } from \"../../../src/types\";\nimport \"./update-available-card\";\n\n@customElement(\"update-available-dashboard\")\nclass UpdateAvailableDashboard extends LitElement {\n @property({ attribute: false }) public hass!: HomeAssistant;\n\n @property({ attribute: false }) public supervisor!: Supervisor;\n\n @property({ type: Boolean }) public narrow!: boolean;\n\n @property({ attribute: false }) public route!: Route;\n\n protected render(): TemplateResult {\n return html`\n <hass-subpage\n .hass=${this.hass}\n .narrow=${this.narrow}\n .route=${this.route}\n >\n <update-available-card\n .hass=${this.hass}\n .supervisor=${this.supervisor}\n .route=${this.route}\n .narrow=${this.narrow}\n @update-complete=${this._updateComplete}\n ></update-available-card>\n </hass-subpage>\n `;\n }\n\n private _updateComplete() {\n history.back();\n }\n\n static get styles(): CSSResultGroup {\n return css`\n hass-subpage {\n --app-header-background-color: var(--primary-background-color);\n --app-header-text-color: var(--sidebar-text-color);\n }\n update-available-card {\n margin: auto;\n margin-top: 16px;\n margin-bottom: 24px;\n max-width: 600px;\n }\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"update-available-dashboard\": UpdateAvailableDashboard;\n }\n}\n"],"names":[],"sourceRoot":""}

View File

@ -55,4 +55,4 @@
--app-header-border-bottom: 1px solid var(--divider-color); --app-header-border-bottom: 1px solid var(--divider-color);
} }
`}}]}}),i.oi)}}]); `}}]}}),i.oi)}}]);
//# sourceMappingURL=8a10b34b.js.map //# sourceMappingURL=99edc920.js.map

Binary file not shown.

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More