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 9366.cbb6e5ebcde29dec.js.LICENSE.txt */
export const ids=["9366"];export const modules={73386:function(e,t,i){i.d(t,{I:function(){return o},k:function(){return n}});i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814);const n=new Set(["primary","accent","disabled","red","pink","purple","deep-purple","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","deep-orange","brown","light-grey","grey","dark-grey","blue-grey","black","white"]);function o(e){return n.has(e)?`var(--${e}-color)`:e}},81036:function(e,t,i){i.d(t,{U:function(){return n}});const n=e=>e.stopPropagation()},56587:function(e,t,i){i.d(t,{D:function(){return n}});const n=(e,t,i=!1)=>{let n;const o=(...o)=>{const a=i&&!n;clearTimeout(n),n=window.setTimeout((()=>{n=void 0,e(...o)}),t),a&&e(...o)};return o.cancel=()=>{clearTimeout(n)},o}},65953:function(e,t,i){var n=i(44249),o=i(72621),a=(i(13334),i(57243)),l=i(50778),r=i(46799),d=i(73386),s=i(11297),c=i(81036);i(74064),i(98094),i(58130);const h="M20.65,20.87L18.3,18.5L12,12.23L8.44,8.66L7,7.25L4.27,4.5L3,5.77L5.78,8.55C3.23,11.69 3.42,16.31 6.34,19.24C7.9,20.8 9.95,21.58 12,21.58C13.79,21.58 15.57,21 17.03,19.8L19.73,22.5L21,21.23L20.65,20.87M12,19.59C10.4,19.59 8.89,18.97 7.76,17.83C6.62,16.69 6,15.19 6,13.59C6,12.27 6.43,11 7.21,10L12,14.77V19.59M12,5.1V9.68L19.25,16.94C20.62,14 20.09,10.37 17.65,7.93L12,2.27L8.3,5.97L9.71,7.38L12,5.1Z",u="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z";(0,n.Z)([(0,l.Mo)("ha-color-picker")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,l.Cb)()],key:"label",value:void 0},{kind:"field",decorators:[(0,l.Cb)()],key:"helper",value:void 0},{kind:"field",decorators:[(0,l.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,l.Cb)()],key:"value",value:void 0},{kind:"field",decorators:[(0,l.Cb)({type:String,attribute:"default_color"})],key:"defaultColor",value:void 0},{kind:"field",decorators:[(0,l.Cb)({type:Boolean,attribute:"include_state"})],key:"includeState",value:()=>!1},{kind:"field",decorators:[(0,l.Cb)({type:Boolean,attribute:"include_none"})],key:"includeNone",value:()=>!1},{kind:"field",decorators:[(0,l.Cb)({type:Boolean})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,l.IO)("ha-select")],key:"_select",value:void 0},{kind:"method",key:"connectedCallback",value:function(){(0,o.Z)(i,"connectedCallback",this,3)([]),this._select?.layoutOptions()}},{kind:"method",key:"_valueSelected",value:function(e){if(e.stopPropagation(),!this.isConnected)return;const t=e.target.value;this.value=t===this.defaultColor?void 0:t,(0,s.B)(this,"value-changed",{value:this.value})}},{kind:"method",key:"render",value:function(){const e=this.value||this.defaultColor||"",t=!(d.k.has(e)||"none"===e||"state"===e);return a.dy` <ha-select .icon="${Boolean(e)}" .label="${this.label}" .value="${e}" .helper="${this.helper}" .disabled="${this.disabled}" @closed="${c.U}" @selected="${this._valueSelected}" fixedMenuPosition naturalMenuWidth .clearable="${!this.defaultColor}"> ${e?a.dy` <span slot="icon"> ${"none"===e?a.dy` <ha-svg-icon path="${h}"></ha-svg-icon> `:"state"===e?a.dy`<ha-svg-icon path="${u}"></ha-svg-icon>`:this._renderColorCircle(e||"grey")} </span> `:a.Ld} ${this.includeNone?a.dy` <ha-list-item value="none" graphic="icon"> ${this.hass.localize("ui.components.color-picker.none")} ${"none"===this.defaultColor?` (${this.hass.localize("ui.components.color-picker.default")})`:a.Ld} <ha-svg-icon slot="graphic" path="${h}"></ha-svg-icon> </ha-list-item> `:a.Ld} ${this.includeState?a.dy` <ha-list-item value="state" graphic="icon"> ${this.hass.localize("ui.components.color-picker.state")} ${"state"===this.defaultColor?` (${this.hass.localize("ui.components.color-picker.default")})`:a.Ld} <ha-svg-icon slot="graphic" path="${u}"></ha-svg-icon> </ha-list-item> `:a.Ld} ${this.includeState||this.includeNone?a.dy`<ha-md-divider role="separator" tabindex="-1"></ha-md-divider>`:a.Ld} ${Array.from(d.k).map((e=>a.dy` <ha-list-item .value="${e}" graphic="icon"> ${this.hass.localize(`ui.components.color-picker.colors.${e}`)||e} ${this.defaultColor===e?` (${this.hass.localize("ui.components.color-picker.default")})`:a.Ld} <span slot="graphic">${this._renderColorCircle(e)}</span> </ha-list-item> `))} ${t?a.dy` <ha-list-item .value="${e}" graphic="icon"> ${e} <span slot="graphic">${this._renderColorCircle(e)}</span> </ha-list-item> `:a.Ld} </ha-select> `}},{kind:"method",key:"_renderColorCirLine truncated
//# sourceMappingURL=9366.cbb6e5ebcde29dec.js.map