/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{A as e,F as a,g as s,h as l,z as c}from"./RPU6VCJ4.js";import"./OR4HXHSY.js";var t={fieldSelectButtonSection:"field-select-btn-section",fieldSelectButton:"field-select-btn",fieldSelectButtonText:"field-select-btn-text",fieldSelectButtonIcon:"field-select-btn-icon",fieldSelectButtonInvalid:"field-select-btn-invalid"},d=s`.field-select-btn-section{background-color:var(--arcgis-charts-input-background);min-width:100%}.field-select-btn{background:var(--arcgis-charts-background-clear);border:1px solid;border-radius:var(--arcgis-charts-border-radius);display:flex;align-items:center;justify-content:space-between;padding:var(--arcgis-charts-side-spacing-half) var(--arcgis-charts-side-spacing-quarter);cursor:pointer;width:100%;text-align:unset}.field-select-btn:not(.field-select-btn-invalid){border-color:var(--arcgis-charts-border)}.field-select-btn.field-select-btn-invalid{border-color:var(--arcgis-charts-border-invalid)}.field-select-btn-exp{width:calc(100% - 32px)}.field-select-btn-exp .field-select-btn{border:none;border-radius:0;border-right:1px solid var(--arcgis-charts-border)}.field-select-btn-text{flex:0 1 auto;overflow:hidden;padding:0 var(--arcgis-charts-side-spacing-eighth);text-overflow:ellipsis;white-space:nowrap}.field-select-btn-icon{flex:0 0 0%;padding:0 var(--arcgis-charts-side-spacing-half)}.field-select-btn:disabled{cursor:default}`,i=class extends c{constructor(){super(...arguments),this.disabled=!1,this.invalid=!1}static{this.properties={label:1,disabled:5,invalid:5}}static{this.styles=d}render(){let r=`${t.fieldSelectButton} ${this.invalid?t.fieldSelectButtonInvalid:""}`;return l`<div class=${e(t.fieldSelectButtonSection)}><button class=${e(r)} .disabled=${this.disabled}><span class=${e(t.fieldSelectButtonText)}>${this.label}</span><slot name=fieldSelectSlot></slot><span class=${e(t.fieldSelectButtonIcon)}><calcite-icon scale=s icon=chevron-down></calcite-icon></span></button></div>`}};a("arcgis-charts-config-field-select",i);export{i as ArcgisChartsConfigFieldSelect};
