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,3 @@
/*! For license information please see 6239.9b20ee30cb08dd0d.js.LICENSE.txt */
export const ids=["6239"];export const modules={76418:function(e,t,i){var a=i(44249),n=i(92444),r=i(76688),o=i(57243),l=i(50778);(0,a.Z)([(0,l.Mo)("ha-checkbox")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",static:!0,key:"styles",value:()=>[r.W,o.iv`:host{--mdc-theme-secondary:var(--primary-color)}`]}]}}),n.A)},52158:function(e,t,i){var a=i(44249),n=i(4918),r=i(6394),o=i(57243),l=i(50778),d=i(35359),s=i(11297);(0,a.Z)([(0,l.Mo)("ha-formfield")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,l.Cb)({type:Boolean,reflect:!0})],key:"disabled",value:()=>!1},{kind:"method",key:"render",value:function(){const e={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return o.dy` <div class="mdc-form-field ${(0,d.$)(e)}"> <slot></slot> <label class="mdc-label" @click="${this._labelClick}"> <slot name="label">${this.label}</slot> </label> </div>`}},{kind:"method",key:"_labelClick",value:function(){const e=this.input;if(e&&(e.focus(),!e.disabled))switch(e.tagName){case"HA-CHECKBOX":e.checked=!e.checked,(0,s.B)(e,"change");break;case"HA-RADIO":e.checked=!0,(0,s.B)(e,"change");break;default:e.click()}}},{kind:"field",static:!0,key:"styles",value:()=>[r.W,o.iv`:host(:not([alignEnd])) ::slotted(ha-switch){margin-right:10px;margin-inline-end:10px;margin-inline-start:inline}.mdc-form-field{align-items:var(--ha-formfield-align-items,center);gap:4px}.mdc-form-field>label{direction:var(--direction);margin-inline-start:0;margin-inline-end:auto;padding:0}:host([disabled]) label{color:var(--disabled-text-color)}`]}]}}),n.a)},29241:function(e,t,i){i.r(t);var a=i(44249),n=i(57243),r=i(50778),o=i(11297),l=(i(76418),i(52158),i(70596),i(66193));(0,a.Z)([(0,r.Mo)("ha-timer-form")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"new",value:()=>!1},{kind:"field",key:"_item",value:void 0},{kind:"field",decorators:[(0,r.SB)()],key:"_name",value:void 0},{kind:"field",decorators:[(0,r.SB)()],key:"_icon",value:void 0},{kind:"field",decorators:[(0,r.SB)()],key:"_duration",value:void 0},{kind:"field",decorators:[(0,r.SB)()],key:"_restore",value:void 0},{kind:"set",key:"item",value:function(e){this._item=e,e?(this._name=e.name||"",this._icon=e.icon||"",this._duration=e.duration||"00:00:00",this._restore=e.restore||!1):(this._name="",this._icon="",this._duration="00:00:00",this._restore=!1)}},{kind:"method",key:"focus",value:function(){this.updateComplete.then((()=>this.shadowRoot?.querySelector("[dialogInitialFocus]")?.focus()))}},{kind:"method",key:"render",value:function(){return this.hass?n.dy` <div class="form"> <ha-textfield .value="${this._name}" .configValue="${"name"}" @input="${this._valueChanged}" .label="${this.hass.localize("ui.dialogs.helper_settings.generic.name")}" autoValidate required .validationMessage="${this.hass.localize("ui.dialogs.helper_settings.required_error_msg")}" dialogInitialFocus></ha-textfield> <ha-icon-picker .hass="${this.hass}" .value="${this._icon}" .configValue="${"icon"}" @value-changed="${this._valueChanged}" .label="${this.hass.localize("ui.dialogs.helper_settings.generic.icon")}"></ha-icon-picker> <ha-textfield .configValue="${"duration"}" .value="${this._duration}" @input="${this._valueChanged}" .label="${this.hass.localize("ui.dialogs.helper_settings.timer.duration")}"></ha-textfield> <ha-formfield .label="${this.hass.localize("ui.dialogs.helper_settings.timer.restore")}"> <ha-checkbox .configValue="${"restore"}" .checked="${this._restore}" @click="${this._toggleRestore}"> </ha-checkbox> </ha-formfield> </div> `:n.Ld}},{kind:"method",key:"_valueChanged",value:function(e){if(!this.new&&!this._item)return;e.stopPropagation();const t=e.target.configValue,i=e.detail?.value||e.target.value;if(this[`_${t}`]===i)return;const a={...this._item};i?a[t]=i:delete a[t],(0,o.B)(this,"value-changed",{value:a})}},{kind:"method",key:"_toggleRestore",value:function(){this._restore=!this._restore,(0,o.B)(this,"value-changed",{value:{...this._item,restore:this._restore}})}},{kind:"get",static:!0,key:"styles",value:function(){return[l.Qx,n.iv`.form{color:var(--primary-text-color)}ha-textfield{display:block;margin:8px 0}`]}}]}}),n.oi)},4918:function(e,t,i){i.d(t,{a:()=>p});var a=i("9065"),n=i("80573"),r={ROOT:"mdc-form-field"},o={LABEL_SELECTOR:".mdc-form-field > label"};const l=function(e){function t(i){var n=e.call(this,(0,a.pi)((0,a.pi)({},t.defaultAdapter),i))||this;return n.click=function(){n.handleClick()},n}return(0,a.ZT)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return r},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:functLine truncated
//# sourceMappingURL=6239.9b20ee30cb08dd0d.js.map