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 7014.cdcee32a3860116e.js.LICENSE.txt */
export const ids=["7014"];export const modules={29939:function(e,t,i){var c=i(44249),s=i(72621),o=i(62523),r=i(83835),a=i(57243),n=i(50778),d=i(26610);(0,c.Z)([(0,n.Mo)("ha-switch")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"haptic",value:()=>!1},{kind:"method",key:"firstUpdated",value:function(){(0,s.Z)(i,"firstUpdated",this,3)([]),this.addEventListener("change",(()=>{this.haptic&&(0,d.j)("light")}))}},{kind:"field",static:!0,key:"styles",value:()=>[r.W,a.iv`:host{--mdc-theme-secondary:var(--switch-checked-color)}.mdc-switch.mdc-switch--checked .mdc-switch__thumb{background-color:var(--switch-checked-button-color);border-color:var(--switch-checked-button-color)}.mdc-switch.mdc-switch--checked .mdc-switch__track{background-color:var(--switch-checked-track-color);border-color:var(--switch-checked-track-color)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb{background-color:var(--switch-unchecked-button-color);border-color:var(--switch-unchecked-button-color)}.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track{background-color:var(--switch-unchecked-track-color);border-color:var(--switch-unchecked-track-color)}`]}]}}),o.H)},26610:function(e,t,i){i.d(t,{j:function(){return s}});var c=i(11297);const s=e=>{(0,c.B)(window,"haptic",e)}},34026:function(e,t,i){i.r(t);var c=i(44249),s=i(57243),o=i(50778),r=i(11297),a=(i(29939),i(70596),i(66193));(0,c.Z)([(0,o.Mo)("ha-counter-form")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"new",value:()=>!1},{kind:"field",key:"_item",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_name",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_icon",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_maximum",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_minimum",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_restore",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_initial",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_step",value:void 0},{kind:"set",key:"item",value:function(e){this._item=e,e?(this._name=e.name||"",this._icon=e.icon||"",this._maximum=e.maximum??void 0,this._minimum=e.minimum??void 0,this._restore=e.restore??!0,this._step=e.step??1,this._initial=e.initial??0):(this._name="",this._icon="",this._maximum=void 0,this._minimum=void 0,this._restore=!0,this._step=1,this._initial=0)}},{kind:"method",key:"focus",value:function(){this.updateComplete.then((()=>this.shadowRoot?.querySelector("[dialogInitialFocus]")?.focus()))}},{kind:"method",key:"render",value:function(){return this.hass?s.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 .value="${this._minimum}" .configValue="${"minimum"}" type="number" @input="${this._valueChanged}" .label="${this.hass.localize("ui.dialogs.helper_settings.counter.minimum")}"></ha-textfield> <ha-textfield .value="${this._maximum}" .configValue="${"maximum"}" type="number" @input="${this._valueChanged}" .label="${this.hass.localize("ui.dialogs.helper_settings.counter.maximum")}"></ha-textfield> <ha-textfield .value="${this._initial}" .configValue="${"initial"}" type="number" @input="${this._valueChanged}" .label="${this.hass.localize("ui.dialogs.helper_settings.counter.initial")}"></ha-textfield> ${this.hass.userData?.showAdvanced?s.dy` <ha-textfield .value="${this._step}" .configValue="${"step"}" type="number" @input="${this._valueChanged}" .label="${this.hass.localize("ui.dialogs.helper_settings.counter.step")}"></ha-textfield> <div class="row"> <ha-switch .checked="${this._restore}" .configValue="${"restore"}" @change="${this._valueChanged}"> </ha-switch> <div> ${this.hass.localize("ui.dialogs.helper_settings.counter.restore")} </div> </div> `:""} </div> `:s.Ld}},{kind:"method",key:"_valueChanged",value:function(e){if(!this.new&&!this._item)return;e.stopPropagation();const t=e.target,i=t.configValue,c="number"===t.type?""!==t.value?Number(t.value):void 0:"ha-switch"===t.localName?e.target.checked:e.detail?.value||t.value;if(this[`_${i}`]===c)return;const s={...this._item};void 0===c||""===c?delete s[i]:s[i]=c,(0,r.B)(this,"value-changed",{value:s})}},{kind:"get",static:!0,key:"styles",value:function(){return[a.Qx,s.iv`.form{color:var(--primary-text-color)}.row{margin-top:12px;margin-bo Line truncated
//# sourceMappingURL=7014.cdcee32a3860116e.js.map