Initial Commit

This commit is contained in:
francop committed 2026-06-11 11:50:50 -04:00
commit d4a69c41be
2748 files changed
+80489

No files matched your search

@@ -0,0 +1,9 @@
/*! For license information please see 1244.e67e8a4b61e2436d.js.LICENSE.txt */
export const ids=["1244"];export const modules={84573:function(e,i,t){var a=t(44249),s=t(74763),o=t(50778);(0,a.Z)([(0,o.Mo)("ha-chip-set")],(function(e,i){return{F:class extends i{constructor(...i){super(...i),e(this)}},d:[]}}),s.l)},13978:function(e,i,t){var a=t(44249),s=t(72621),o=t(74514),l=t(57243),d=t(50778);(0,a.Z)([(0,d.Mo)("ha-input-chip")],(function(e,i){class t extends i{constructor(...i){super(...i),e(this)}}return{F:t,d:[{kind:"field",static:!0,key:"styles",value(){return[...(0,s.Z)(t,"styles",this),l.iv`:host{--md-sys-color-primary:var(--primary-text-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--primary-text-color);--md-sys-color-on-secondary-container:var(--primary-text-color);--md-input-chip-container-shape:16px;--md-input-chip-outline-color:var(--outline-color);--md-input-chip-selected-container-color:rgba(
var(--rgb-primary-text-color),
0.15
);--ha-input-chip-selected-container-opacity:1;--md-input-chip-label-text-font:Roboto,sans-serif}::slotted([slot=icon]){display:flex;--mdc-icon-size:var(--md-input-chip-icon-size, 18px)}.selected::before{opacity:var(--ha-input-chip-selected-container-opacity)}`]}}]}}),o.W)},62304:function(e,i,t){var a=t(44249),s=t(57243),o=t(50778),l=t(11297);t(26375);(0,a.Z)([(0,o.Mo)("ha-aliases-editor")],(function(e,i){return{F:class extends i{constructor(...i){super(...i),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Array})],key:"aliases",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"disabled",value:()=>!1},{kind:"method",key:"render",value:function(){return this.aliases?s.dy` <ha-multi-textfield .hass="${this.hass}" .value="${this.aliases}" .disabled="${this.disabled}" .label="${this.hass.localize("ui.dialogs.aliases.label")}" .removeLabel="${this.hass.localize("ui.dialogs.aliases.remove")}" .addLabel="${this.hass.localize("ui.dialogs.aliases.add")}" item-index @value-changed="${this._aliasesChanged}"> </ha-multi-textfield> `:s.Ld}},{kind:"method",key:"_aliasesChanged",value:function(e){(0,l.B)(this,"value-changed",{value:e})}}]}}),s.oi)},69181:function(e,i,t){var a=t(44249),s=(t(39527),t(92181),t(99790),t(13334),t(36993),t(57243)),o=t(50778),l=t(35359),d=t(27486),n=t(11297),r=t(79575),c=t(59848),h=t(71656),u=t(99523),v=t(4557),m=t(88233);t(69484),t(59897),t(74064),t(10508);const p=e=>s.dy`<ha-list-item graphic="icon" class="${(0,l.$)({"add-new":e.area_id===f})}"> ${e.icon?s.dy`<ha-icon slot="graphic" .icon="${e.icon}"></ha-icon>`:s.dy`<ha-svg-icon slot="graphic" .path="${"M20 2H4C2.9 2 2 2.9 2 4V20C2 21.11 2.9 22 4 22H20C21.11 22 22 21.11 22 20V4C22 2.9 21.11 2 20 2M4 6L6 4H10.9L4 10.9V6M4 13.7L13.7 4H18.6L4 18.6V13.7M20 18L18 20H13.1L20 13.1V18M20 10.3L10.3 20H5.4L20 5.4V10.3Z"}"></ha-svg-icon>`} ${e.name} </ha-list-item>`,f="___ADD_NEW___",_="___NO_ITEMS___",y="___ADD_NEW_SUGGESTION___";(0,a.Z)([(0,o.Mo)("ha-area-picker")],(function(e,i){return{F:class extends i{constructor(...i){super(...i),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"label",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"value",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"helper",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"placeholder",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,attribute:"no-add"})],key:"noAdd",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:Array,attribute:"include-domains"})],key:"includeDomains",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Array,attribute:"exclude-domains"})],key:"excludeDomains",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Array,attribute:"include-device-classes"})],key:"includeDeviceClasses",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Array,attribute:"exclude-areas"})],key:"excludeAreas",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"deviceFilter",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"entityFilter",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"required",value:()=>!1},{kind:"field",decorators:[(0,o.SB)()],key:"_opened",value:void 0},{kind:"field",decorators:[(0,o.IO)("ha-combo-box",!0)],key:"comboBox",value:void 0},{kind:"field",key:"_suggestion",value:void 0},{kind:"field",key:"_init",value:()=>!1},{kind:"method",key:"open",value:async function(){await this.updateComplete,await(this.comboBox?.open())}},{kind:"method",key:"focus",value:async function(){await this.updateComplete,await(this.comboBox?.focus())}},{kind:"field",key:"_getAreas",value(){return(0,d.Z)(((e,i,t,a,s,o,l,d,n,c)=>{let h,v,m={};(a||s||o||l||d)&&(m=(0,u.R6)(t),h=i,v=t.filter((e=>e.area_id)),a&&(h=h.filter((e=>{const i=m[e.id];return!(!i||!i.length)&&m[e.id].some((e=>a.includes((0,r.M)(e.entity_id))))})),v=v.filter((e=>a.includes((0,r.M)(e.entity_id))))),s&&(h=h.filter((e=>{const i=m[e.id];return!i||!i.length||t.every((e=>!s.includes((0,r.M)(e.entity_id))))})),v=v.filter((e=>!s.includes((0,r.M)(e.entity_id))))),o&&(h=h.filter((e=>{const i=m[e.id];return!(!i||!i.length)&&m[e.id].some((e=>{const i=this.hass.states[e.entity_id];return!!i&&(i.attributes.device_class&&o.includes(i.attributes.device_class))}))})),v=v.filter((e=>{const i=this.hass.states[e.entity_id];return i.attributes.device_class&&o.includes(i.attributes.device_class)}))),l&&(h=h.filter((e=>l(e)))),d&&(h=h.filter((e=>{const i=m[e.id];return!(!i||!i.length)&&m[e.id].some((e=>{const i=this.hass.states[e.entity_id];return!!i&&d(i)}))})),v=v.filter((e=>{const i=this.hass.states[e.entity_id];return!!i&&d(i)}))));let p,y=e;return h&&(p=h.filter((e=>e.area_id)).map((e=>e.area_id))),v&&(p=(p??[]).concat(v.filter((e=>e.area_id)).map((Line truncated
--mdc-typography-body2-font-family,
var(--mdc-typography-font-family, Roboto, sans-serif)
);-webkit-font-smoothing:antialiased;font-size:var(--mdc-typography-body2-font-size, .875rem);font-weight:var(--mdc-typography-body2-font-weight,400);line-height:normal;color:var(--secondary-text-color)}.body[two-line]{min-height:calc(var(--paper-item-body-two-line-min-height,72px) - 16px);flex:1}.content{display:contents}:host(:not([narrow])) .content{display:var(--settings-row-content-display,flex);justify-content:flex-end;flex:1;padding:16px 0}.content ::slotted(*){width:var(--settings-row-content-width)}:host([narrow]){align-items:normal;flex-direction:column;border-top:1px solid var(--divider-color);padding-bottom:8px}::slotted(ha-switch){padding:16px 0}.secondary{white-space:normal}.prefix-wrap{display:var(--settings-row-prefix-display)}:host([narrow]) .prefix-wrap{display:flex;align-items:center}:host([slim]),:host([slim]) .content,:host([slim]) ::slotted(ha-switch){padding:0}:host([slim]) .body{min-height:0}`}}]}}),s.oi)},89073:function(e,i,t){t.r(i);var a=t(44249),s=(t(92519),t(42179),t(89256),t(24931),t(88463),t(57449),t(19814),t(39527),t(99790),t(13334),t(31622),t(2060),t(57243)),o=t(50778),l=t(91583),d=t(27486),n=t(11297),r=(t(84573),t(13978),t(17949),t(62304),t(44118)),c=(t(41600),t(18805),t(10508),t(70596),t(69181),t(66193)),h=t(88233),u=t(71656);let v=(0,a.Z)(null,(function(e,i){return{F:class extends i{constructor(...i){super(...i),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_name",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_aliases",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_icon",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_level",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_error",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_params",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_submitting",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_addedAreas",value:()=>new Set},{kind:"field",decorators:[(0,o.SB)()],key:"_removedAreas",value:()=>new Set},{kind:"method",key:"showDialog",value:function(e){this._params=e,this._error=void 0,this._name=this._params.entry?this._params.entry.name:this._params.suggestedName||"",this._aliases=this._params.entry?.aliases||[],this._icon=this._params.entry?.icon||null,this._level=this._params.entry?.level??null,this._addedAreas.clear(),this._removedAreas.clear()}},{kind:"method",key:"closeDialog",value:function(){this._error="",this._params=void 0,this._addedAreas.clear(),this._removedAreas.clear(),(0,n.B)(this,"dialog-closed",{dialog:this.localName})}},{kind:"field",key:"_floorAreas",value:()=>(0,d.Z)(((e,i,t,a)=>Object.values(i).filter((i=>(i.floor_id===e?.floor_id||t.has(i.area_id))&&!a.has(i.area_id)))))},{kind:"method",key:"render",value:function(){const e=this._floorAreas(this._params?.entry,this.hass.areas,this._addedAreas,this._removedAreas);if(!this._params)return s.Ld;const i=this._params.entry,t=!this._isNameValid();return s.dy` <ha-dialog open @closed="${this.closeDialog}" .heading="${(0,r.i)(this.hass,i?this.hass.localize("ui.panel.config.floors.editor.update_floor"):this.hass.localize("ui.panel.config.floors.editor.create_floor"))}"> <div> ${this._error?s.dy`<ha-alert alert-type="error">${this._error}</ha-alert>`:""} <div class="form"> ${i?s.dy` <ha-settings-row> <span slot="heading"> ${this.hass.localize("ui.panel.config.floors.editor.floor_id")} </span> <span slot="description">${i.floor_id}</span> </ha-settings-row> `:s.Ld} <ha-textfield .value="${this._name}" @input="${this._nameChanged}" .label="${this.hass.localize("ui.panel.config.floors.editor.name")}" .validationMessage="${this.hass.localize("ui.panel.config.floors.editor.name_required")}" required dialogInitialFocus></ha-textfield> <ha-textfield .value="${this._level}" @input="${this._levelChanged}" .label="${this.hass.localize("ui.panel.config.floors.editor.level")}" type="number"></ha-textfield> <ha-icon-picker .hass="${this.hass}" .value="${this._icon}" @value-changed="${this._iconChanged}" .label="${this.hass.localize("ui.panel.config.areas.editor.icon")}"> ${this._icon?s.Ld:s.dy` <ha-floor-icon slot="fallback" .floor="${{level:this._level}}"></ha-floor-icon> `} </ha-icon-picker> <h3 class="header"> ${this.hass.localize("ui.panel.config.floors.editor.areas_section")} </h3> <p class="description"> ${this.hass.localize("ui.panel.config.floors.editor.areas_description")} </p> ${e.length?s.dy`<ha-chip-set> ${(0,l.r)(e,(e=>e.area_id),(e=>s.dy`<ha-input-chip .area="${e}" @click="${this._openArea}" @remove="${this._removeArea}" .label="${e?.name}"> ${e.icon?s.dy`<ha-icon slot="icon" .icon="${e.icon}"></ha-icon>`:s.dy`<ha-svg-icon slot="icon" .path="${"M20 2H4C2.9 2 2 2.9 2 4V20C2 21.11 2.9 22 4 22H20C21.11 22 22 21.11 22 20V4C22 2.9 21.11 2 20 2M4 6L6 4H10.9L4 10.9V6M4 13.7L13.7 4H18.6L4 18.6V13.7M20 18L18 20H13.1L20 13.1V18M20 10.3L10.3 20H5.4L20 5.4V10.3Z"}"></ha-svg-icon>`} </ha-input-chip>`))} </ha-chipLine truncated
//# sourceMappingURL=1244.e67e8a4b61e2436d.js.map