usda-hass-config/custom_components/hacs/hacs_frontend_experimental/c.d1219bde.js

14 lines
1.3 KiB
JavaScript

import{_ as e,j as l,e as a,y as i,O as d,n as o}from"./main-85e087f9.js";let r=e([o("ha-selector-icon")],(function(e,l){return{F:class extends l{constructor(...l){super(...l),e(this)}},d:[{kind:"field",decorators:[a()],key:"hass",value:void 0},{kind:"field",decorators:[a()],key:"selector",value:void 0},{kind:"field",decorators:[a()],key:"value",value:void 0},{kind:"field",decorators:[a()],key:"label",value:void 0},{kind:"field",decorators:[a()],key:"helper",value:void 0},{kind:"field",decorators:[a({type:Boolean,reflect:!0})],key:"disabled",value:()=>!1},{kind:"field",decorators:[a({type:Boolean})],key:"required",value:()=>!0},{kind:"method",key:"render",value:function(){var e,l;return i`
<ha-icon-picker
.hass=${this.hass}
.label=${this.label}
.value=${this.value}
.required=${this.required}
.disabled=${this.disabled}
.helper=${this.helper}
.fallbackPath=${null===(e=this.selector.icon)||void 0===e?void 0:e.fallbackPath}
.placeholder=${null===(l=this.selector.icon)||void 0===l?void 0:l.placeholder}
@value-changed=${this._valueChanged}
></ha-icon-picker>
`}},{kind:"method",key:"_valueChanged",value:function(e){d(this,"value-changed",{value:e.detail.value})}}]}}),l);export{r as HaIconSelector};