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.a602945490de7535.js.LICENSE.txt */
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["7014"],{29939:function(e,t,i){var c=i(73577),r=i(72621),o=(i(71695),i(47021),i(62523)),s=i(83835),a=i(57243),n=i(50778),d=i(26610);let l,h=e=>e;(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(){return!1}},{kind:"method",key:"firstUpdated",value:function(){(0,r.Z)(i,"firstUpdated",this,3)([]),this.addEventListener("change",(()=>{this.haptic&&(0,d.j)("light")}))}},{kind:"field",static:!0,key:"styles",value(){return[s.W,(0,a.iv)(l||(l=h`: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 r}});var c=i(11297);const r=e=>{(0,c.B)(window,"haptic",e)}},34026:function(e,t,i){i.r(t);var c=i(73577),r=(i(71695),i(19423),i(47021),i(57243)),o=i(50778),s=i(11297),a=(i(29939),i(70596),i(66193));let n,d,l,h=e=>e;(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(){return!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){var t,i,c,r,o;(this._item=e,e)?(this._name=e.name||"",this._icon=e.icon||"",this._maximum=null!==(t=e.maximum)&&void 0!==t?t:void 0,this._minimum=null!==(i=e.minimum)&&void 0!==i?i:void 0,this._restore=null===(c=e.restore)||void 0===c||c,this._step=null!==(r=e.step)&&void 0!==r?r:1,this._initial=null!==(o=e.initial)&&void 0!==o?o: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((()=>{var e;return null===(e=this.shadowRoot)||void 0===e||null===(e=e.querySelector("[dialogInitialFocus]"))||void 0===e?void 0:e.focus()}))}},{kind:"method",key:"render",value:function(){var e;return this.hass?(0,r.dy)(n||(n=h` <div class="form"> <ha-textfield .value="${0}" .configValue="${0}" @input="${0}" .label="${0}" autoValidate required .validationMessage="${0}" dialogInitialFocus></ha-textfield> <ha-icon-picker .hass="${0}" .value="${0}" .configValue="${0}" @value-changed="${0}" .label="${0}"></ha-icon-picker> <ha-textfield .value="${0}" .configValue="${0}" type="number" @input="${0}" .label="${0}"></ha-textfield> <ha-textfield .value="${0}" .configValue="${0}" type="number" @input="${0}" .label="${0}"></ha-textfield> <ha-textfield .value="${0}" .configValue="${0}" type="number" @input="${0}" .label="${0}"></ha-textfield> ${0} </div> `),this._name,"name",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.generic.name"),this.hass.localize("ui.dialogs.helper_settings.required_error_msg"),this.hass,this._icon,"icon",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.generic.icon"),this._minimum,"minimum",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.counter.minimum"),this._maximum,"maximum",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.counter.maximum"),this._initial,"initial",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.counter.initial"),null!==(e=this.hass.userData)&&void 0!==e&&e.showAdvanced?(0,r.dy)(d||(d=h` <ha-textfield .value="${0}" .configValue="${0}" type="number" @input="${0}" .label="${0}"></ha-textfield> <div class="row"> <ha-switch .checked="${0}" .configValue="${0}" @change="${0}"> </ha-switch> <div> ${0} </div> </div> `),this._step,"step",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.counter.step"),this._restore,"restore",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.counter.restore")):""):r.Ld}},{kind:"method",key:"_valueChanged",value:functionLine truncated
//# sourceMappingURL=7014.a602945490de7535.js.map