@arcgis/common-components 6.0.0-next.15 → 6.0.0-next.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as h}from"./SANPZYEG.js";import"./5KBPWYPL.js";import{a as d}from"./AK25UPRZ.js";import"./C65ROMJK.js";import"./XMMFL5H3.js";import{J as u,K as p,L as v,S as c,h as m,j as g,t as r}from"./A5VZ22LK.js";var y=m`:host{display:block;width:100%;height:100%}`,b="double",o=class extends v{constructor(){super(...arguments),this.#t=u(),this.#s=void 0,this.messages=d({}),this._strategy=h(b),this.disabled=!1,this.fieldType=b,this.fillPlacement="start",this.layout="horizontal",this.max="",this.min="",this.mirrored=!1,this.popoverLabel="",this.rangeLabelsEditingEnabled=!1,this.rangeLabelsPlacement="center",this.showRangeLabels=!1,this.value="",this.valueLabelsEditingEnabled=!1,this.valueLabelsDisplay="always",this.valueLabelsPlacement="start",this.arcgisActiveValueChange=r({cancelable:!1}),this.arcgisChange=r({cancelable:!1}),this.arcgisInput=r({cancelable:!1}),this.arcgisRangeChange=r({cancelable:!1})}static{this.properties={_strategy:16,activeValue:32,disabled:5,fieldType:1,fillPlacement:1,label:1,labelFormatter:0,layout:1,max:1,messageOverrides:0,min:1,mirrored:5,popoverLabel:1,rangeLabelsEditingEnabled:5,rangeLabelsPlacement:1,showRangeLabels:5,value:1,values:1,valueLabelsEditingEnabled:5,valueLabelsDisplay:1,valueLabelsPlacement:1,valueAsNumbers:32,valueAsDateOnly:32,valueAsTimeOnly:32,valueAsTimestampOffset:32,valueAsFieldType:32}}static{this.styles=y}#t;#s;get activeValue(){let e=this.#t.value?.activeValue;return typeof e=="number"?this._strategy.serialize(e):e}get values(){return this.value}set values(e){this.value=e}get valueAsNumbers(){return this.#e(this.value).map(e=>e??NaN)}get valueAsDateOnly(){return this.#e(this.value).map(e=>e===void 0?null:this._strategy.toDateOnly(e))}get valueAsTimeOnly(){return this.#e(this.value).map(e=>e===void 0?null:this._strategy.toTimeOnly(e))}get valueAsTimestampOffset(){return this.#e(this.value).map(e=>e===void 0?null:this._strategy.toTimestampOffset(e))}get valueAsFieldType(){return this.#e(this.value).map(e=>e===void 0?NaN:this._strategy.toFieldType(e))}willUpdate(e){super.willUpdate(e),e.has("fieldType")&&(this._strategy=h(this.fieldType)),(e.has("messages")||e.has("fieldType")||e.has("labelFormatter"))&&(this.#s=this.#m(this.messages._lang)),(e.has("value")||e.has("min")||e.has("max")||e.has("fieldType"))&&this.#u()}#r(e){e.stopPropagation(),this.#a(e.currentTarget.values),this.arcgisInput.emit()}#n(e){e.stopPropagation(),this.#a(e.currentTarget.values),this.arcgisChange.emit()}#h(e){e.stopPropagation(),this.arcgisActiveValueChange.emit()}#o(e){e.stopPropagation();let t=e.currentTarget;this.min=this._strategy.serialize(t.min),this.max=this._strategy.serialize(t.max),this.#a(t.values),this.arcgisRangeChange.emit()}#m(e){return(t,a,s)=>{let i=l=>this._strategy.format(e,l,a,s)??s(l);return this.labelFormatter?.(t,a,i)??i(t)}}#a(e){this.value=e.map(t=>this._strategy.serialize(t)).join(",")}#e(e){return e.split(",").map(t=>t.trim()).filter(t=>t.length>0).map(t=>this._strategy.parse(t))}#i(e){return this.#e(e).filter(t=>Number.isFinite(t))}#l(e){let t=this._strategy,a=t.parse(this.min),s=t.parse(this.max),i=Number.isFinite(a)?a:void 0,l=Number.isFinite(s)?s:void 0;i!=null&&l!=null&&i>=l&&(i=void 0,l=void 0);let n=t.resolveRange(e,i,l);return n.min>=n.max?t.resolveRange(e,void 0,void 0):n}#g(e,t,a){return e.map(s=>Math.min(a,Math.max(t,s))).sort((s,i)=>s-i)}#u(){let e=this.#i(this.value),t=this.#l(e),a=this._strategy.serialize(t.min),s=this._strategy.serialize(t.max);a!==this.min&&(this.min=a),s!==this.max&&(this.max=s);let i=this.#g(e,t.min,t.max).map(l=>this._strategy.serialize(l)).join(",");i!==this.value&&(this.value=i)}render(){let e=this.#i(this.value),t=this.#l(e),a=this._strategy.editable,s=this._strategy.steps;return g`<arcgis-slider .ariaLabel=${this.label} .disabled=${this.disabled} .labelFormatter=${this.#s} .layout=${this.layout} .max=${t.max} .min=${t.min} .mirrored=${this.mirrored} .popoverLabel=${this.popoverLabel} .precision=${this._strategy.precision} .fillPlacement=${this.fillPlacement} .steps=${s} .rangeLabelsEditingEnabled=${a&&this.rangeLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .showRangeLabels=${this.showRangeLabels} .valueLabelsDisplay=${this.valueLabelsDisplay} .valueLabelsEditingEnabled=${a&&this.valueLabelsEditingEnabled} .valueLabelsPlacement=${this.valueLabelsPlacement} .values=${e} @arcgisChange=${this.#n} @arcgisInput=${this.#r} @arcgisActiveValueChange=${this.#h} @arcgisRangeChange=${this.#o} ${p(this.#t)}><slot name=content-start slot=content-start></slot><slot name=content-end slot=content-end></slot><slot name=popover slot=popover></slot></arcgis-slider>`}};c("arcgis-slider-field",o);export{o as ArcgisSliderField};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as m}from"./SANPZYEG.js";import"./5KBPWYPL.js";import{a as x}from"./AK25UPRZ.js";import"./C65ROMJK.js";import"./XMMFL5H3.js";import{J as b,K as p,L as $,N as f,S as y,h as d,j as v,t as g}from"./A5VZ22LK.js";export default $arcgis.t(([{sqlName:E,sqlLiteral:L}])=>{var C=d`:host{display:block;height:100%;width:100%}arcgis-histogram{align-self:flex-end;height:var(--arcgis-slider-histogram-range-histogram-height, 100%);width:100%}`,c=class extends ${constructor(){super(...arguments),this.#e=b(),this.#a=(e,i,r)=>{let o=a=>m(this.fieldType).format(this.#t._lang,a,"value",r)??r(a);return this.labelFormatter?.(e,i,o)??o(e)},this.#t=x(),this.fieldType="double",this.fillPlacement="start",this.layout="horizontal",this.rangeLabelsEditingEnabled=!1,this.rangeLabelsPlacement="center",this.showRangeLabels=!1,this.standardDeviationCount=1,this.valueLabelsDisplay="always",this.valueLabelsEditingEnabled=!1,this.arcgisActiveValueChange=g({cancelable:!1}),this.arcgisChange=g({cancelable:!1}),this.arcgisInput=g({cancelable:!1}),this.arcgisRangeChange=g({cancelable:!1})}static{this.properties={activeValue:32,average:9,bins:0,dataLines:0,excludedBarColor:0,fieldType:1,fillPlacement:1,includedBarColor:0,label:1,labelFormatter:0,layout:1,max:1,min:1,rangeLabelsEditingEnabled:5,rangeLabelsPlacement:1,showRangeLabels:5,standardDeviation:9,standardDeviationCount:9,valueLabelsDisplay:1,valueLabelsEditingEnabled:5,values:1,value:1}}static{this.styles=C}#e;#a;#t;get activeValue(){return this.#e.value?.activeValue}get values(){return this.value}set values(e){this.value=e}async destroy(){await this.manager.destroy()}async generateWhereClause(e){let{fillPlacement:i,value:r}=this;if(!r?.length)return;let o=m(this.fieldType),a=r.split(",").map(u=>u.trim()).filter(u=>u.length>0),h=E(e),l=u=>{let s=o.parse(u);return typeof s=="number"?L(o.toFieldType(s),{type:this.fieldType}):void 0},t=a[0]?l(a[0]):void 0,n=a.length>1&&a.at(-1)?l(a.at(-1)):void 0;if(!(t==null||a.length>1&&n==null))switch(i){case"start":return a.length>1?`${h} BETWEEN ${t} AND ${n}`:`${h} <= ${t}`;case"end":return a.length>1?`${h} BETWEEN ${t} AND ${n}`:`${h} >= ${t}`;case"between":return a.length>1?`${h} BETWEEN ${t} AND ${n}`:`${h} <= ${t}`;case"not-between":return a.length>1?`${h} NOT BETWEEN ${t} AND ${n}`:`${h} <= ${t}`;case"none":return"1=0";default:return}}async updateFromHistogramResult(e,i){let r=m(this.fieldType);this.bins=e.bins,e.minValue!=null&&(this.min=r.serialize(e.minValue)),e.maxValue!=null&&(this.max=r.serialize(e.maxValue)),i&&(this.average=i.avg??void 0,this.standardDeviation=i.stddev??void 0)}willUpdate(e){(e.has("fieldType")||e.has("max")||e.has("min")||e.has("value"))&&this.#s()}#i(){let{bins:e,value:i,fillPlacement:r}=this,o=e?.[0],a=e?.at(-1);if(o==null||a==null||!i)return;let h=m(this.fieldType),l=i.split(",").map(u=>h.parse(u)).filter(u=>Number.isFinite(u)).sort((u,s)=>u-s),t=l.at(0),n=l.at(-1);if(!(t==null||n==null))switch(r){case"start":return l.length>1?[{minValue:t,maxValue:n}]:[{minValue:o.minValue,maxValue:t}];case"end":return l.length>1?[{minValue:t,maxValue:n}]:[{minValue:n,maxValue:a.maxValue}];case"between":return l.length>1?[{minValue:t,maxValue:n}]:[{minValue:o.minValue,maxValue:t}];case"not-between":return l.length>1?[{minValue:o.minValue,maxValue:t},{minValue:t,maxValue:n,color:"var(--arcgis-histogram-bar-color)"},{minValue:n,maxValue:a.maxValue}]:[{minValue:o.minValue,maxValue:t}];default:return}}#s(){let e=m(this.fieldType),i=(this.value??"").split(",").map(s=>s.trim()).filter(s=>s.length>0).map(s=>e.parse(s)).filter(s=>Number.isFinite(s)),r=e.parse(this.min??""),o=e.parse(this.max??""),a=Number.isFinite(r)?r:void 0,h=Number.isFinite(o)?o:void 0;a!=null&&h!=null&&a>=h&&(a=void 0,h=void 0);let l=e.resolveRange(i,a,h);l.min>=l.max&&(l=e.resolveRange(i,void 0,void 0));let t=e.serialize(l.min),n=e.serialize(l.max),u=i.map(s=>Math.min(l.max,Math.max(l.min,s))).sort((s,V)=>s-V).map(s=>e.serialize(s)).join(",");t!==this.min&&(this.min=t),n!==this.max&&(this.max=n),u!==this.value&&(this.value=u)}#l(e){e.stopPropagation(),this.value=e.currentTarget.value,this.arcgisInput.emit()}#n(e){e.stopPropagation();let i=e.currentTarget;this.min=i.min,this.max=i.max,this.value=i.value,this.arcgisRangeChange.emit()}#r(e){e.stopPropagation(),this.value=e.currentTarget.value,this.arcgisChange.emit()}#h(e){e.stopPropagation(),this.arcgisActiveValueChange.emit()}render(){let e=m(this.fieldType),i=e.parse(this.min??""),r=e.parse(this.max??"");return v`<arcgis-slider-field .fieldType=${this.fieldType} .fillPlacement=${this.fillPlacement} .label=${this.label} .labelFormatter=${this.labelFormatter} .max=${this.max??""} .min=${this.min??""} .layout=${this.layout} @arcgisActiveValueChange=${this.#h} @arcgisChange=${this.#r} @arcgisInput=${this.#l} @arcgisRangeChange=${this.#n} .rangeLabelsEditingEnabled=${this.rangeLabelsEditingEnabled} .valueLabelsEditingEnabled=${this.valueLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .valueLabelsDisplay=${this.valueLabelsDisplay} .showRangeLabels=${this.showRangeLabels} .value=${this.value??""} .valueLabelsPlacement=${this.layout==="horizontal"?"end":"start"} ${p(this.#e)}><arcgis-histogram .slot=${this.layout==="horizontal"?"content-start":"content-end"} .average=${this.average} .bins=${this.bins} .dataLines=${this.dataLines} .max=${r} .min=${i} .label=${this.label} .layout=${this.layout} .standardDeviation=${this.standardDeviation} .standardDeviationCount=${this.standardDeviationCount} color-blending-enabled .colorStops=${this.#i()} style=${f({...this.includedBarColor&&{"--arcgis-histogram-stop-color":this.includedBarColor.toCss()},...this.excludedBarColor&&{"--arcgis-histogram-bar-color":this.excludedBarColor.toCss()}})} .labelFormatter=${this.#a}></arcgis-histogram></arcgis-slider-field>`}};y("arcgis-slider-histogram-range",c);return c},"core/sql")
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{R as a,y as e}from"./A5VZ22LK.js";var i=e(a,{"arcgis-ckeditor5":[()=>import("./4YTPZVS3.js"),"canResizeVertically,currentLanguage,customConfig,customExpressionCheck:,editorType,groupFieldsAndExpressions,intlExpressionsGroupHeading,intlFieldsGroupHeading,intlTextPlaceHolder,mentionFields:,readOnly,textData;getData,setFocus"],"arcgis-ckeditor5-popover":[()=>import("./DJSPDBWO.js"),"guid,intlCancel,intlLabel,intlOk,refElement:;reposition"],"arcgis-color-input":[()=>import("./WQHAEQUK.js"),"_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,placement,popoverProps:,showTransparency,storageId;close,setFocus;isOpen"],"arcgis-coordinate-system-picker":[()=>import("./3AMC2MYL.js"),"_messages:,autoFilterToDefault,defaultWkid,filterEnabled,hideCategories:,value:;getSRDescription"],"arcgis-coordinate-system-picker-tree":[()=>import("./NU4RWRS7.js"),"data:,value"],"arcgis-field-info":[()=>import("./NLURLVXP.js"),"_messages:,fieldName,hideAlias,hideNumericFormat,hideStatistics,layer:,view:;refresh"],"arcgis-field-pick-list":[()=>import("./ZUB5ZZLF.js"),"_messages:,customExpressionCheck:,expressionsGroupHeading,fields:,fieldsGroupHeading,filterNoResultsText,filterPlaceholderText,groupFieldsAndExpressions,heading,hideCancel,hideSort,layer:,listOnly,mapView:,multiple,okBtnText,popoverProps:,selectedFields:,showCancel,showDescription,showFieldInfo,showFieldName,showFieldTypeIcon,showFilterLength,showSelectionAll,showSort,sortBy,view:;reposition,setDisabled,setFocus"],"arcgis-histogram":[()=>import("./PWLYBU5B.js"),"_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,labelFormatter:,layout,max,messageOverrides:,min,mirrored,standardDeviation,standardDeviationCount"],"arcgis-html-content":[()=>import("./4X3PGY53.js"),"content,sanitizerOptions:"],"arcgis-label-input":[()=>import("./YPJIALGM.js"),"alignment,editing,labelFormatter:,readOnly,value;edit;getLabelBoundingClientRect"],"arcgis-picker-input":[()=>import("./K4BKCMJ7.js"),"disabled,heading,iconEnd,intlDone,label,popoverProps:;close,setFocus"],"arcgis-ramp-color":[()=>import("./LE34WS2E.js"),"layout,max,min,stops:"],"arcgis-ramp-color-break":[()=>import("./SBWYOBOD.js"),"layout,max,min,stops:"],"arcgis-ramp-opacity":[()=>import("./2STNPR2K.js"),"fillColor,layout,max,min,stops:"],"arcgis-slider":[()=>import("./5AYF7ZV7.js"),"activeValue:,allowValuesOverlap,autoDestroyDisabled,disabled,fillPlacement,fullRangeMax,fullRangeMin,keyboardLargeStep,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverDisplay,popoverLabel,popoverPlacement,precision,rangeLabelsEditingEnabled,rangeLabelsPlacement,segmentsDraggingDisabled,showRangeLabels,steps,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values,valuesDraggingDisabled;destroy"],"arcgis-slider-field":[()=>import("./F5UJB6JV.js"),"activeValue:,disabled,fieldType,fillPlacement,label,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,rangeLabelsEditingEnabled,rangeLabelsPlacement,showRangeLabels,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values,valuesAsDateOnly:,valuesAsFieldType:,valuesAsNumbers:,valuesAsTimeOnly:,valuesAsTimestampOffset:"],"arcgis-slider-histogram-range":[()=>import("./3DQAWU5G.js"),"activeValue:,average,bins:,dataLines:,excludedBarColor:,fieldType,fillPlacement,includedBarColor:,label,labelFormatter:,layout,max,min,rangeLabelsEditingEnabled,rangeLabelsPlacement,showRangeLabels,standardDeviation,standardDeviationCount,valueLabelsDisplay,valueLabelsEditingEnabled,values;destroy,generateWhereClause,updateFromHistogramResult"],"arcgis-slider-input":[()=>import("./RLH5OKTL.js"),"disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],"arcgis-ticks":[()=>import("./U4PTVQN7.js"),"_messages:,autoDestroyDisabled,interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values;destroy"],"arcgis-toolbar":[()=>import("./UVTQ7C6W.js"),"barElement:,layout,relativePosition,scale,toolbarKind,tooltipAppearance;;allocate,measure,proxiedRender"],"arcgis-toolbar-action":[()=>import("./JXWME7J2.js"),"actionElement:,active,appearance,disabled,icon,iconFlipRtl,indicator,kind,labelText,loading,textEnabled,tooltipText;;measure,proxiedRender"],"arcgis-toolbar-group":[()=>import("./OOQF2DBR.js"),"preferEndSlot,priority;;measure,proxiedRender"],"arcgis-toolbar-item":[()=>import("./Z65OX26N.js"),"actionElement:,active,disabled,icon,iconFlipRtl,labelText,lastActivated:,loading,tooltipText;;measure,proxiedRender"],"arcgis-toolbar-more-button":[()=>import("./MAEWWG5A.js"),"menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],"arcgis-toolbar-split-button":[()=>import("./JMTBKMVF.js"),"menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],"arcgis-toolbar-stack":[()=>import("./F7SQH3EJ.js"),"layout,relativePosition,scale,toolbarKind,tooltipAppearance"],"arcgis-unique-values-list":[()=>import("./6CP2VGMT.js"),"_messages:,fieldName,layer:,maxHeight,multiple,numberFormatOptions:,partialUniqueValues,selectedValues:,showFilterLength,sortBy,uniqueValues:,view:,visualizationSource;getUniqueValues,setFocus"],"arcgis-value-picker":[()=>import("./XIZVB6UV.js"),"autoDestroyDisabled,disabled,floating,hideNextButton,hidePlayButton,hidePreviousButton,icon,label,layout,loop,messages:,playRate,state:;destroy;next,pause,play,previous"],"arcgis-value-picker-collection":[()=>import("./YEG4ZKJV.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],"arcgis-value-picker-combobox":[()=>import("./5STQ23EC.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:,messages:;destroy;reset,step"],"arcgis-value-picker-label":[()=>import("./22ZJC66J.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:;destroy;reset,step"],"arcgis-value-picker-slider":[()=>import("./GWWTMM5J.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue,disabled,labelFormatter:,labels:,layout,majorTicks:,max,min,minorTicks:,mirrored,steps:;destroy;reset,step"]});i({resourcesUrl:import.meta.url});var r=new CSSStyleSheet;r.replaceSync("@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-html-content,arcgis-label-input,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-field,arcgis-slider-histogram-range,arcgis-slider-input,arcgis-ticks,arcgis-toolbar,arcgis-toolbar-action,arcgis-toolbar-group,arcgis-toolbar-item,arcgis-toolbar-more-button,arcgis-toolbar-split-button,arcgis-toolbar-stack,arcgis-unique-values-list,arcgis-value-picker,arcgis-value-picker-collection,arcgis-value-picker-combobox,arcgis-value-picker-label,arcgis-value-picker-slider){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a)
2
+ import{R as a,y as e}from"./A5VZ22LK.js";var i=e(a,{"arcgis-ckeditor5":[()=>import("./4YTPZVS3.js"),"canResizeVertically,currentLanguage,customConfig,customExpressionCheck:,editorType,groupFieldsAndExpressions,intlExpressionsGroupHeading,intlFieldsGroupHeading,intlTextPlaceHolder,mentionFields:,readOnly,textData;getData,setFocus"],"arcgis-ckeditor5-popover":[()=>import("./DJSPDBWO.js"),"guid,intlCancel,intlLabel,intlOk,refElement:;reposition"],"arcgis-color-input":[()=>import("./WQHAEQUK.js"),"_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,placement,popoverProps:,showTransparency,storageId;close,setFocus;isOpen"],"arcgis-coordinate-system-picker":[()=>import("./3AMC2MYL.js"),"_messages:,autoFilterToDefault,defaultWkid,filterEnabled,hideCategories:,value:;getSRDescription"],"arcgis-coordinate-system-picker-tree":[()=>import("./NU4RWRS7.js"),"data:,value"],"arcgis-field-info":[()=>import("./NLURLVXP.js"),"_messages:,fieldName,hideAlias,hideNumericFormat,hideStatistics,layer:,view:;refresh"],"arcgis-field-pick-list":[()=>import("./ZUB5ZZLF.js"),"_messages:,customExpressionCheck:,expressionsGroupHeading,fields:,fieldsGroupHeading,filterNoResultsText,filterPlaceholderText,groupFieldsAndExpressions,heading,hideCancel,hideSort,layer:,listOnly,mapView:,multiple,okBtnText,popoverProps:,selectedFields:,showCancel,showDescription,showFieldInfo,showFieldName,showFieldTypeIcon,showFilterLength,showSelectionAll,showSort,sortBy,view:;reposition,setDisabled,setFocus"],"arcgis-histogram":[()=>import("./PWLYBU5B.js"),"_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,labelFormatter:,layout,max,messageOverrides:,min,mirrored,standardDeviation,standardDeviationCount"],"arcgis-html-content":[()=>import("./4X3PGY53.js"),"content,sanitizerOptions:"],"arcgis-label-input":[()=>import("./YPJIALGM.js"),"alignment,editing,labelFormatter:,readOnly,value;edit;getLabelBoundingClientRect"],"arcgis-picker-input":[()=>import("./K4BKCMJ7.js"),"disabled,heading,iconEnd,intlDone,label,popoverProps:;close,setFocus"],"arcgis-ramp-color":[()=>import("./LE34WS2E.js"),"layout,max,min,stops:"],"arcgis-ramp-color-break":[()=>import("./SBWYOBOD.js"),"layout,max,min,stops:"],"arcgis-ramp-opacity":[()=>import("./2STNPR2K.js"),"fillColor,layout,max,min,stops:"],"arcgis-slider":[()=>import("./5AYF7ZV7.js"),"activeValue:,allowValuesOverlap,autoDestroyDisabled,disabled,fillPlacement,fullRangeMax,fullRangeMin,keyboardLargeStep,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverDisplay,popoverLabel,popoverPlacement,precision,rangeLabelsEditingEnabled,rangeLabelsPlacement,segmentsDraggingDisabled,showRangeLabels,steps,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values,valuesDraggingDisabled;destroy"],"arcgis-slider-field":[()=>import("./CT5YQHEK.js"),"activeValue:,disabled,fieldType,fillPlacement,label,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,rangeLabelsEditingEnabled,rangeLabelsPlacement,showRangeLabels,value,valueAsDateOnly:,valueAsFieldType:,valueAsNumbers:,valueAsTimeOnly:,valueAsTimestampOffset:,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values"],"arcgis-slider-histogram-range":[()=>import("./MEMAD5D4.js"),"activeValue:,average,bins:,dataLines:,excludedBarColor:,fieldType,fillPlacement,includedBarColor:,label,labelFormatter:,layout,max,min,rangeLabelsEditingEnabled,rangeLabelsPlacement,showRangeLabels,standardDeviation,standardDeviationCount,value,valueLabelsDisplay,valueLabelsEditingEnabled,values;destroy,generateWhereClause,updateFromHistogramResult"],"arcgis-slider-input":[()=>import("./RLH5OKTL.js"),"disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],"arcgis-ticks":[()=>import("./U4PTVQN7.js"),"_messages:,autoDestroyDisabled,interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values;destroy"],"arcgis-toolbar":[()=>import("./UVTQ7C6W.js"),"barElement:,layout,relativePosition,scale,toolbarKind,tooltipAppearance;;allocate,measure,proxiedRender"],"arcgis-toolbar-action":[()=>import("./JXWME7J2.js"),"actionElement:,active,appearance,disabled,icon,iconFlipRtl,indicator,kind,labelText,loading,textEnabled,tooltipText;;measure,proxiedRender"],"arcgis-toolbar-group":[()=>import("./OOQF2DBR.js"),"preferEndSlot,priority;;measure,proxiedRender"],"arcgis-toolbar-item":[()=>import("./Z65OX26N.js"),"actionElement:,active,disabled,icon,iconFlipRtl,labelText,lastActivated:,loading,tooltipText;;measure,proxiedRender"],"arcgis-toolbar-more-button":[()=>import("./MAEWWG5A.js"),"menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],"arcgis-toolbar-split-button":[()=>import("./JMTBKMVF.js"),"menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],"arcgis-toolbar-stack":[()=>import("./F7SQH3EJ.js"),"layout,relativePosition,scale,toolbarKind,tooltipAppearance"],"arcgis-unique-values-list":[()=>import("./6CP2VGMT.js"),"_messages:,fieldName,layer:,maxHeight,multiple,numberFormatOptions:,partialUniqueValues,selectedValues:,showFilterLength,sortBy,uniqueValues:,view:,visualizationSource;getUniqueValues,setFocus"],"arcgis-value-picker":[()=>import("./XIZVB6UV.js"),"autoDestroyDisabled,disabled,floating,hideNextButton,hidePlayButton,hidePreviousButton,icon,label,layout,loop,messages:,playRate,state:;destroy;next,pause,play,previous"],"arcgis-value-picker-collection":[()=>import("./YEG4ZKJV.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],"arcgis-value-picker-combobox":[()=>import("./5STQ23EC.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:,messages:;destroy;reset,step"],"arcgis-value-picker-label":[()=>import("./22ZJC66J.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:;destroy;reset,step"],"arcgis-value-picker-slider":[()=>import("./GWWTMM5J.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue,disabled,labelFormatter:,labels:,layout,majorTicks:,max,min,minorTicks:,mirrored,steps:;destroy;reset,step"]});i({resourcesUrl:import.meta.url});var r=new CSSStyleSheet;r.replaceSync("@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-html-content,arcgis-label-input,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-field,arcgis-slider-histogram-range,arcgis-slider-input,arcgis-ticks,arcgis-toolbar,arcgis-toolbar-action,arcgis-toolbar-group,arcgis-toolbar-item,arcgis-toolbar-more-button,arcgis-toolbar-split-button,arcgis-toolbar-stack,arcgis-unique-values-list,arcgis-value-picker,arcgis-value-picker-collection,arcgis-value-picker-combobox,arcgis-value-picker-label,arcgis-value-picker-slider){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a)
@@ -17,7 +17,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
17
17
  * @example
18
18
  * ```html
19
19
  * <!-- Numeric field (double) -->
20
- * <arcgis-slider-field field-type="double" min="0" max="100" values="20.5,75.25"></arcgis-slider-field>
20
+ * <arcgis-slider-field field-type="double" min="0" max="100" value="20.5,75.25"></arcgis-slider-field>
21
21
  * ```
22
22
  * @example
23
23
  * ```html
@@ -26,7 +26,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
26
26
  * field-type="date"
27
27
  * min="1704067200000"
28
28
  * max="1735689599000"
29
- * values="1710028800000,1726617600000"
29
+ * value="1710028800000,1726617600000"
30
30
  * ></arcgis-slider-field>
31
31
  * ```
32
32
  * @example
@@ -36,7 +36,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
36
36
  * field-type="timestamp-offset"
37
37
  * min="2024-01-01T00:00:00-05:00"
38
38
  * max="2024-12-31T23:59:59-05:00"
39
- * values="2024-03-10T08:00:00-05:00,2024-09-18T18:30:00-05:00"
39
+ * value="2024-03-10T08:00:00-05:00,2024-09-18T18:30:00-05:00"
40
40
  * ></arcgis-slider-field>
41
41
  * ```
42
42
  * @internal
@@ -176,33 +176,6 @@ export abstract class ArcgisSliderField extends LitElement {
176
176
  * @see [arcgis-slider.showRangeLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#showRangeLabels)
177
177
  */
178
178
  accessor showRangeLabels: boolean;
179
- /**
180
- * Controls when thumb value labels are displayed.
181
- *
182
- * - `"always"`: Always show labels.
183
- * - `"auto"`: Show labels only during interaction.
184
- * - `"hidden"`: Never show labels.
185
- *
186
- * @default "always"
187
- * @see [arcgis-slider.valueLabelsDisplay](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsDisplay)
188
- */
189
- accessor valueLabelsDisplay: ArcgisSlider["valueLabelsDisplay"];
190
- /**
191
- * When `true`, allows editing value labels with keyboard input.
192
- *
193
- * Applies only to: `small-integer`, `integer`, `big-integer`, `single`, `double`, `long`, `oid`.
194
- *
195
- * @default false
196
- * @see [arcgis-slider.valueLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsEditingEnabled)
197
- */
198
- accessor valueLabelsEditingEnabled: boolean;
199
- /**
200
- * Determines whether value labels are placed before or after the track.
201
- *
202
- * @default "start"
203
- * @see [arcgis-slider.valueLabelsPlacement](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsPlacement)
204
- */
205
- accessor valueLabelsPlacement: ArcgisSlider["valueLabelsPlacement"];
206
179
  /**
207
180
  * Comma-delimited slider values, expressed using the format of the current
208
181
  * [fieldType](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#fieldType).
@@ -216,38 +189,67 @@ export abstract class ArcgisSliderField extends LitElement {
216
189
  * @default ""
217
190
  * @see [arcgis-slider.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#values)
218
191
  */
219
- accessor values: string;
192
+ accessor value: string;
220
193
  /**
221
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of dates (YYYY-MM-DD). Attempting to access this property
194
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of dates (YYYY-MM-DD). Attempting to access this property
222
195
  * on a slider with incompatible data, such as number or time only values, will result in the property returning an array of null values. Note that when
223
196
  * this property is accessed, the time of day information that may be present on the slider is stripped away.
224
197
  */
225
- get valuesAsDateOnly(): (string | null)[];
198
+ get valueAsDateOnly(): (string | null)[];
226
199
  /**
227
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of values that match the native type of the property.
200
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of values that match the native type of the property.
228
201
  * For time-only, date-only or timestamp-offset sliders, this property will return an array of strings, and for numeric or date sliders, this property
229
202
  * will return an array of numbers.
230
203
  */
231
- get valuesAsFieldType(): (number | string)[];
204
+ get valueAsFieldType(): (number | string)[];
232
205
  /**
233
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of numbers. When this property is accessed on
206
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of numbers. When this property is accessed on
234
207
  * a slider with temporal data, the resulting array will be formatted as milliseconds since the Unix epoch when the date is available. If only
235
208
  * the time is available, the array will be formatted as ms since midnight. Values that cannot be parsed will become NaN.
236
209
  */
237
- get valuesAsNumbers(): number[];
210
+ get valueAsNumbers(): number[];
238
211
  /**
239
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of times (HH:mm:ss). Attempting to access this property
212
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of times (HH:mm:ss). Attempting to access this property
240
213
  * on a slider with incompatible data, such as number or date only values, will result in the property returning an array of null values. Note that
241
214
  * when this property is accessed, the time is extracted in UTC and the date is stripped away, so an ISO 8601 value of `2024-03-10T08:00:00-05:00` would
242
215
  * simply become `13:00:00`.
243
216
  */
244
- get valuesAsTimeOnly(): (string | null)[];
217
+ get valueAsTimeOnly(): (string | null)[];
245
218
  /**
246
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of UTC timestamps formatted according to the
219
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of UTC timestamps formatted according to the
247
220
  * ISO 8601 standard. Attempting to access this property on a slider with incompatible data, such as number or time only values,
248
221
  * will result in the property returning an array of null values.
249
222
  */
250
- get valuesAsTimestampOffset(): (string | null)[];
223
+ get valueAsTimestampOffset(): (string | null)[];
224
+ /**
225
+ * Controls when thumb value labels are displayed.
226
+ *
227
+ * - `"always"`: Always show labels.
228
+ * - `"auto"`: Show labels only during interaction.
229
+ * - `"hidden"`: Never show labels.
230
+ *
231
+ * @default "always"
232
+ * @see [arcgis-slider.valueLabelsDisplay](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsDisplay)
233
+ */
234
+ accessor valueLabelsDisplay: ArcgisSlider["valueLabelsDisplay"];
235
+ /**
236
+ * When `true`, allows editing value labels with keyboard input.
237
+ *
238
+ * Applies only to: `small-integer`, `integer`, `big-integer`, `single`, `double`, `long`, `oid`.
239
+ *
240
+ * @default false
241
+ * @see [arcgis-slider.valueLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsEditingEnabled)
242
+ */
243
+ accessor valueLabelsEditingEnabled: boolean;
244
+ /**
245
+ * Determines whether value labels are placed before or after the track.
246
+ *
247
+ * @default "start"
248
+ * @see [arcgis-slider.valueLabelsPlacement](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsPlacement)
249
+ */
250
+ accessor valueLabelsPlacement: ArcgisSlider["valueLabelsPlacement"];
251
+ /** @internal */
252
+ accessor values: string;
251
253
  /**
252
254
  * Fires when the active value changes.
253
255
  *
@@ -4,90 +4,96 @@ import { LitElement as u, createEvent as n } from "@arcgis/lumina";
4
4
  import { css as g, html as c } from "lit";
5
5
  import { u as d } from "../../chunks/useT9n.js";
6
6
  import { g as h } from "../../chunks/strategies.js";
7
- import { createRef as p, ref as v } from "lit/directives/ref.js";
7
+ import { createRef as v, ref as p } from "lit/directives/ref.js";
8
8
  const b = g`:host{display:block;width:100%;height:100%}`, o = "double";
9
9
  class f extends u {
10
10
  constructor() {
11
- super(...arguments), this.#s = p(), this.#t = void 0, this.messages = d({}), this._strategy = h(o), this.disabled = !1, this.fieldType = o, this.fillPlacement = "start", this.layout = "horizontal", this.max = "", this.min = "", this.mirrored = !1, this.popoverLabel = "", this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.showRangeLabels = !1, this.values = "", this.valueLabelsEditingEnabled = !1, this.valueLabelsDisplay = "always", this.valueLabelsPlacement = "start", this.arcgisActiveValueChange = n({ cancelable: !1 }), this.arcgisChange = n({ cancelable: !1 }), this.arcgisInput = n({ cancelable: !1 }), this.arcgisRangeChange = n({ cancelable: !1 });
11
+ super(...arguments), this.#t = v(), this.#a = void 0, this.messages = d({}), this._strategy = h(o), this.disabled = !1, this.fieldType = o, this.fillPlacement = "start", this.layout = "horizontal", this.max = "", this.min = "", this.mirrored = !1, this.popoverLabel = "", this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.showRangeLabels = !1, this.value = "", this.valueLabelsEditingEnabled = !1, this.valueLabelsDisplay = "always", this.valueLabelsPlacement = "start", this.arcgisActiveValueChange = n({ cancelable: !1 }), this.arcgisChange = n({ cancelable: !1 }), this.arcgisInput = n({ cancelable: !1 }), this.arcgisRangeChange = n({ cancelable: !1 });
12
12
  }
13
13
  static {
14
- this.properties = { _strategy: 16, activeValue: 32, disabled: 5, fieldType: 1, fillPlacement: 1, label: 1, labelFormatter: 0, layout: 1, max: 1, messageOverrides: 0, min: 1, mirrored: 5, popoverLabel: 1, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 1, showRangeLabels: 5, values: 1, valueLabelsEditingEnabled: 5, valueLabelsDisplay: 1, valueLabelsPlacement: 1, valuesAsNumbers: 32, valuesAsDateOnly: 32, valuesAsTimeOnly: 32, valuesAsTimestampOffset: 32, valuesAsFieldType: 32 };
14
+ this.properties = { _strategy: 16, activeValue: 32, disabled: 5, fieldType: 1, fillPlacement: 1, label: 1, labelFormatter: 0, layout: 1, max: 1, messageOverrides: 0, min: 1, mirrored: 5, popoverLabel: 1, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 1, showRangeLabels: 5, value: 1, values: 1, valueLabelsEditingEnabled: 5, valueLabelsDisplay: 1, valueLabelsPlacement: 1, valueAsNumbers: 32, valueAsDateOnly: 32, valueAsTimeOnly: 32, valueAsTimestampOffset: 32, valueAsFieldType: 32 };
15
15
  }
16
16
  static {
17
17
  this.styles = b;
18
18
  }
19
- #s;
20
19
  #t;
20
+ #a;
21
21
  get activeValue() {
22
- const e = this.#s.value?.activeValue;
22
+ const e = this.#t.value?.activeValue;
23
23
  return typeof e == "number" ? this._strategy.serialize(e) : e;
24
24
  }
25
- get valuesAsNumbers() {
26
- return this.#e(this.values).map((e) => e ?? NaN);
25
+ get values() {
26
+ return this.value;
27
27
  }
28
- get valuesAsDateOnly() {
29
- return this.#e(this.values).map((e) => e === void 0 ? null : this._strategy.toDateOnly(e));
28
+ set values(e) {
29
+ this.value = e;
30
30
  }
31
- get valuesAsTimeOnly() {
32
- return this.#e(this.values).map((e) => e === void 0 ? null : this._strategy.toTimeOnly(e));
31
+ get valueAsNumbers() {
32
+ return this.#e(this.value).map((e) => e ?? NaN);
33
33
  }
34
- get valuesAsTimestampOffset() {
35
- return this.#e(this.values).map((e) => e === void 0 ? null : this._strategy.toTimestampOffset(e));
34
+ get valueAsDateOnly() {
35
+ return this.#e(this.value).map((e) => e === void 0 ? null : this._strategy.toDateOnly(e));
36
36
  }
37
- get valuesAsFieldType() {
38
- return this.#e(this.values).map((e) => e === void 0 ? NaN : this._strategy.toFieldType(e));
37
+ get valueAsTimeOnly() {
38
+ return this.#e(this.value).map((e) => e === void 0 ? null : this._strategy.toTimeOnly(e));
39
+ }
40
+ get valueAsTimestampOffset() {
41
+ return this.#e(this.value).map((e) => e === void 0 ? null : this._strategy.toTimestampOffset(e));
42
+ }
43
+ get valueAsFieldType() {
44
+ return this.#e(this.value).map((e) => e === void 0 ? NaN : this._strategy.toFieldType(e));
39
45
  }
40
46
  willUpdate(e) {
41
- super.willUpdate(e), e.has("fieldType") && (this._strategy = h(this.fieldType)), (e.has("messages") || e.has("fieldType") || e.has("labelFormatter")) && (this.#t = this.#m(this.messages._lang)), (e.has("values") || e.has("min") || e.has("max") || e.has("fieldType")) && this.#g();
47
+ super.willUpdate(e), e.has("fieldType") && (this._strategy = h(this.fieldType)), (e.has("messages") || e.has("fieldType") || e.has("labelFormatter")) && (this.#a = this.#m(this.messages._lang)), (e.has("value") || e.has("min") || e.has("max") || e.has("fieldType")) && this.#g();
42
48
  }
43
49
  #r(e) {
44
- e.stopPropagation(), this.#a(e.currentTarget.values), this.arcgisInput.emit();
50
+ e.stopPropagation(), this.#s(e.currentTarget.values), this.arcgisInput.emit();
45
51
  }
46
52
  #n(e) {
47
- e.stopPropagation(), this.#a(e.currentTarget.values), this.arcgisChange.emit();
53
+ e.stopPropagation(), this.#s(e.currentTarget.values), this.arcgisChange.emit();
48
54
  }
49
55
  #h(e) {
50
56
  e.stopPropagation(), this.arcgisActiveValueChange.emit();
51
57
  }
52
58
  #o(e) {
53
59
  e.stopPropagation();
54
- const s = e.currentTarget;
55
- this.min = this._strategy.serialize(s.min), this.max = this._strategy.serialize(s.max), this.#a(s.values), this.arcgisRangeChange.emit();
60
+ const t = e.currentTarget;
61
+ this.min = this._strategy.serialize(t.min), this.max = this._strategy.serialize(t.max), this.#s(t.values), this.arcgisRangeChange.emit();
56
62
  }
57
63
  #m(e) {
58
- return (s, a, t) => {
59
- const i = (l) => this._strategy.format(e, l, a, t) ?? t(l);
60
- return this.labelFormatter?.(s, a, i) ?? i(s);
64
+ return (t, s, a) => {
65
+ const i = (l) => this._strategy.format(e, l, s, a) ?? a(l);
66
+ return this.labelFormatter?.(t, s, i) ?? i(t);
61
67
  };
62
68
  }
63
- #a(e) {
64
- this.values = e.map((s) => this._strategy.serialize(s)).join(",");
69
+ #s(e) {
70
+ this.value = e.map((t) => this._strategy.serialize(t)).join(",");
65
71
  }
66
72
  #e(e) {
67
- return e.split(",").map((s) => s.trim()).filter((s) => s.length > 0).map((s) => this._strategy.parse(s));
73
+ return e.split(",").map((t) => t.trim()).filter((t) => t.length > 0).map((t) => this._strategy.parse(t));
68
74
  }
69
75
  #i(e) {
70
- return this.#e(e).filter((s) => Number.isFinite(s));
76
+ return this.#e(e).filter((t) => Number.isFinite(t));
71
77
  }
72
78
  #l(e) {
73
- const s = this._strategy, a = s.parse(this.min), t = s.parse(this.max);
74
- let i = Number.isFinite(a) ? a : void 0, l = Number.isFinite(t) ? t : void 0;
79
+ const t = this._strategy, s = t.parse(this.min), a = t.parse(this.max);
80
+ let i = Number.isFinite(s) ? s : void 0, l = Number.isFinite(a) ? a : void 0;
75
81
  i != null && l != null && i >= l && (i = void 0, l = void 0);
76
- const r = s.resolveRange(e, i, l);
77
- return r.min >= r.max ? s.resolveRange(e, void 0, void 0) : r;
82
+ const r = t.resolveRange(e, i, l);
83
+ return r.min >= r.max ? t.resolveRange(e, void 0, void 0) : r;
78
84
  }
79
- #u(e, s, a) {
80
- return e.map((t) => Math.min(a, Math.max(s, t))).sort((t, i) => t - i);
85
+ #u(e, t, s) {
86
+ return e.map((a) => Math.min(s, Math.max(t, a))).sort((a, i) => a - i);
81
87
  }
82
88
  #g() {
83
- const e = this.#i(this.values), s = this.#l(e), a = this._strategy.serialize(s.min), t = this._strategy.serialize(s.max);
84
- a !== this.min && (this.min = a), t !== this.max && (this.max = t);
85
- const l = this.#u(e, s.min, s.max).map((r) => this._strategy.serialize(r)).join(",");
86
- l !== this.values && (this.values = l);
89
+ const e = this.#i(this.value), t = this.#l(e), s = this._strategy.serialize(t.min), a = this._strategy.serialize(t.max);
90
+ s !== this.min && (this.min = s), a !== this.max && (this.max = a);
91
+ const l = this.#u(e, t.min, t.max).map((r) => this._strategy.serialize(r)).join(",");
92
+ l !== this.value && (this.value = l);
87
93
  }
88
94
  render() {
89
- const e = this.#i(this.values), s = this.#l(e), a = this._strategy.editable, t = this._strategy.steps;
90
- return c`<arcgis-slider .ariaLabel=${this.label} .disabled=${this.disabled} .labelFormatter=${this.#t} .layout=${this.layout} .max=${s.max} .min=${s.min} .mirrored=${this.mirrored} .popoverLabel=${this.popoverLabel} .precision=${this._strategy.precision} .fillPlacement=${this.fillPlacement} .steps=${t} .rangeLabelsEditingEnabled=${a && this.rangeLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .showRangeLabels=${this.showRangeLabels} .valueLabelsDisplay=${this.valueLabelsDisplay} .valueLabelsEditingEnabled=${a && this.valueLabelsEditingEnabled} .valueLabelsPlacement=${this.valueLabelsPlacement} .values=${e} @arcgisChange=${this.#n} @arcgisInput=${this.#r} @arcgisActiveValueChange=${this.#h} @arcgisRangeChange=${this.#o} ${v(this.#s)}><slot name=content-start slot=content-start></slot><slot name=content-end slot=content-end></slot><slot name=popover slot=popover></slot></arcgis-slider>`;
95
+ const e = this.#i(this.value), t = this.#l(e), s = this._strategy.editable, a = this._strategy.steps;
96
+ return c`<arcgis-slider .ariaLabel=${this.label} .disabled=${this.disabled} .labelFormatter=${this.#a} .layout=${this.layout} .max=${t.max} .min=${t.min} .mirrored=${this.mirrored} .popoverLabel=${this.popoverLabel} .precision=${this._strategy.precision} .fillPlacement=${this.fillPlacement} .steps=${a} .rangeLabelsEditingEnabled=${s && this.rangeLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .showRangeLabels=${this.showRangeLabels} .valueLabelsDisplay=${this.valueLabelsDisplay} .valueLabelsEditingEnabled=${s && this.valueLabelsEditingEnabled} .valueLabelsPlacement=${this.valueLabelsPlacement} .values=${e} @arcgisChange=${this.#n} @arcgisInput=${this.#r} @arcgisActiveValueChange=${this.#h} @arcgisRangeChange=${this.#o} ${p(this.#t)}><slot name=content-start slot=content-start></slot><slot name=content-end slot=content-end></slot><slot name=popover slot=popover></slot></arcgis-slider>`;
91
97
  }
92
98
  }
93
99
  m("arcgis-slider-field", f);
@@ -30,25 +30,25 @@ export interface DeclareCssProperties {
30
30
  * [bins](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#bins), [average](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#average), and [standardDeviation](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#standardDeviation)
31
31
  * properties, as well as set the [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#max) bounds for the component.
32
32
  *
33
- * Note that when setting properties manually (such as setting the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#values) property to place thumbs on the slider),
33
+ * Note that when setting properties manually (such as setting the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#value) property to place thumbs on the slider),
34
34
  * the component expects the inputs to match the format that would be expected by the [fieldType](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#fieldType). Below are a few relevant examples
35
35
  *
36
36
  * @example
37
37
  * ```js
38
38
  * // fieldType === "double"
39
- * histogramSlider.values = "20.5, 75.25";
39
+ * histogramSlider.value = "20.5, 75.25";
40
40
  *
41
41
  * // fieldType === "date"
42
- * histogramSlider.values = "1710028800000, 1726617600000";
42
+ * histogramSlider.value = "1710028800000, 1726617600000";
43
43
  *
44
44
  * // fieldType === "date-only"
45
- * histogramSlider.values = "2024-03-10, 2024-09-18";
45
+ * histogramSlider.value = "2024-03-10, 2024-09-18";
46
46
  *
47
47
  * // fieldType === "time-only"
48
- * histogramSlider.values = "08:15:00, 17:45:00";
48
+ * histogramSlider.value = "08:15:00, 17:45:00";
49
49
  *
50
50
  * // fieldType === "timestamp-offset"
51
- * histogramSlider.values = "2024-03-10T08:00:00-05:00, 2024-09-18T18:30:00-05:00";
51
+ * histogramSlider.value = "2024-03-10T08:00:00-05:00, 2024-09-18T18:30:00-05:00";
52
52
  * ```
53
53
  *
54
54
  * <span id="image-annotations"></span>
@@ -265,6 +265,17 @@ export abstract class ArcgisSliderHistogramRange extends LitElement {
265
265
  * ```
266
266
  */
267
267
  accessor standardDeviationCount: number;
268
+ /**
269
+ * A comma delimited string representing absolute thumb positions on the slider.
270
+ * Each value must match the current format expected by the component's [fieldType](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#fieldType) property.
271
+ *
272
+ * @example
273
+ * ```js
274
+ * // fieldType === "double"
275
+ * histogramSlider.value = "20.5, 75.25";
276
+ * ```
277
+ */
278
+ accessor value: string | undefined;
268
279
  /**
269
280
  * Controls when thumb value labels are displayed.
270
281
  *
@@ -285,16 +296,7 @@ export abstract class ArcgisSliderHistogramRange extends LitElement {
285
296
  * @see [arcgis-slider.valueLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsEditingEnabled)
286
297
  */
287
298
  accessor valueLabelsEditingEnabled: boolean;
288
- /**
289
- * A comma delimited string representing absolute thumb positions on the slider.
290
- * Each value must match the current format expected by the component's [fieldType](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#fieldType) property.
291
- *
292
- * @example
293
- * ```js
294
- * // fieldType === "double"
295
- * histogramSlider.values = "20.5, 75.25";
296
- * ```
297
- */
299
+ /** @internal */
298
300
  accessor values: string | undefined;
299
301
  /** Permanently destroys the component. */
300
302
  destroy(): Promise<void>;
@@ -353,7 +355,7 @@ export abstract class ArcgisSliderHistogramRange extends LitElement {
353
355
  updateFromHistogramResult(histogramResult: HistogramResult, statistics?: SummaryStatisticsResult): Promise<void>;
354
356
  /**
355
357
  * Fires when the [activeValue](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#activeValue) changes as a thumb or the range gains or loses focus.
356
- * This event does not fire when [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#values) change.
358
+ * This event does not fire when [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#value) change.
357
359
  * Use [@arcgisInput](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#event-arcgisInput) for continuous updates or
358
360
  * [@arcgisChange](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#event-arcgisChange) when the interaction is committed.
359
361
  *
@@ -1,21 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c } from "../../chunks/runtime.js";
3
- import { sqlName as p, sqlLiteral as b } from "@arcgis/core/core/sql.js";
4
- import { LitElement as v, createEvent as d, safeStyleMap as f } from "@arcgis/lumina";
3
+ import { sqlName as v, sqlLiteral as p } from "@arcgis/core/core/sql.js";
4
+ import { LitElement as b, createEvent as d, safeStyleMap as f } from "@arcgis/lumina";
5
5
  import { css as $, html as y } from "lit";
6
6
  import { createRef as V, ref as x } from "lit/directives/ref.js";
7
- import { g as u } from "../../chunks/strategies.js";
7
+ import { g as m } from "../../chunks/strategies.js";
8
8
  import { u as E } from "../../chunks/useT9n.js";
9
9
  const L = $`:host{display:block;height:100%;width:100%}arcgis-histogram{align-self:flex-end;height:var(--arcgis-slider-histogram-range-histogram-height, 100%);width:100%}`;
10
- class C extends v {
10
+ class C extends b {
11
11
  constructor() {
12
12
  super(...arguments), this.#e = V(), this.#a = (e, i, o) => {
13
- const h = (a) => u(this.fieldType).format(this.#t._lang, a, "value", o) ?? o(a);
13
+ const h = (a) => m(this.fieldType).format(this.#t._lang, a, "value", o) ?? o(a);
14
14
  return this.labelFormatter?.(e, i, h) ?? h(e);
15
15
  }, this.#t = E(), this.fieldType = "double", this.fillPlacement = "start", this.layout = "horizontal", this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.showRangeLabels = !1, this.standardDeviationCount = 1, this.valueLabelsDisplay = "always", this.valueLabelsEditingEnabled = !1, this.arcgisActiveValueChange = d({ cancelable: !1 }), this.arcgisChange = d({ cancelable: !1 }), this.arcgisInput = d({ cancelable: !1 }), this.arcgisRangeChange = d({ cancelable: !1 });
16
16
  }
17
17
  static {
18
- this.properties = { activeValue: 32, average: 9, bins: 0, dataLines: 0, excludedBarColor: 0, fieldType: 1, fillPlacement: 1, includedBarColor: 0, label: 1, labelFormatter: 0, layout: 1, max: 1, min: 1, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 1, showRangeLabels: 5, standardDeviation: 9, standardDeviationCount: 9, valueLabelsDisplay: 1, valueLabelsEditingEnabled: 5, values: 1 };
18
+ this.properties = { activeValue: 32, average: 9, bins: 0, dataLines: 0, excludedBarColor: 0, fieldType: 1, fillPlacement: 1, includedBarColor: 0, label: 1, labelFormatter: 0, layout: 1, max: 1, min: 1, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 1, showRangeLabels: 5, standardDeviation: 9, standardDeviationCount: 9, valueLabelsDisplay: 1, valueLabelsEditingEnabled: 5, values: 1, value: 1 };
19
19
  }
20
20
  static {
21
21
  this.styles = L;
@@ -26,16 +26,22 @@ class C extends v {
26
26
  get activeValue() {
27
27
  return this.#e.value?.activeValue;
28
28
  }
29
+ get values() {
30
+ return this.value;
31
+ }
32
+ set values(e) {
33
+ this.value = e;
34
+ }
29
35
  async destroy() {
30
36
  await this.manager.destroy();
31
37
  }
32
38
  async generateWhereClause(e) {
33
- const { fillPlacement: i, values: o } = this;
39
+ const { fillPlacement: i, value: o } = this;
34
40
  if (!o?.length)
35
41
  return;
36
- const h = u(this.fieldType), a = o.split(",").map((m) => m.trim()).filter((m) => m.length > 0), n = p(e), l = (m) => {
37
- const s = h.parse(m);
38
- return typeof s == "number" ? b(h.toFieldType(s), { type: this.fieldType }) : void 0;
42
+ const h = m(this.fieldType), a = o.split(",").map((u) => u.trim()).filter((u) => u.length > 0), n = v(e), l = (u) => {
43
+ const s = h.parse(u);
44
+ return typeof s == "number" ? p(h.toFieldType(s), { type: this.fieldType }) : void 0;
39
45
  }, t = a[0] ? l(a[0]) : void 0, r = a.length > 1 && a.at(-1) ? l(a.at(-1)) : void 0;
40
46
  if (!(t == null || a.length > 1 && r == null))
41
47
  switch (i) {
@@ -54,17 +60,17 @@ class C extends v {
54
60
  }
55
61
  }
56
62
  async updateFromHistogramResult(e, i) {
57
- const o = u(this.fieldType);
63
+ const o = m(this.fieldType);
58
64
  this.bins = e.bins, e.minValue != null && (this.min = o.serialize(e.minValue)), e.maxValue != null && (this.max = o.serialize(e.maxValue)), i && (this.average = i.avg ?? void 0, this.standardDeviation = i.stddev ?? void 0);
59
65
  }
60
66
  willUpdate(e) {
61
- (e.has("fieldType") || e.has("max") || e.has("min") || e.has("values")) && this.#s();
67
+ (e.has("fieldType") || e.has("max") || e.has("min") || e.has("value")) && this.#s();
62
68
  }
63
69
  #i() {
64
- const { bins: e, values: i, fillPlacement: o } = this, h = e?.[0], a = e?.at(-1);
70
+ const { bins: e, value: i, fillPlacement: o } = this, h = e?.[0], a = e?.at(-1);
65
71
  if (h == null || a == null || !i)
66
72
  return;
67
- const n = u(this.fieldType), l = i.split(",").map((m) => n.parse(m)).filter((m) => Number.isFinite(m)).sort((m, s) => m - s), t = l.at(0), r = l.at(-1);
73
+ const n = m(this.fieldType), l = i.split(",").map((u) => n.parse(u)).filter((u) => Number.isFinite(u)).sort((u, s) => u - s), t = l.at(0), r = l.at(-1);
68
74
  if (!(t == null || r == null))
69
75
  switch (o) {
70
76
  case "start":
@@ -84,31 +90,31 @@ class C extends v {
84
90
  }
85
91
  }
86
92
  #s() {
87
- const e = u(this.fieldType), i = (this.values ?? "").split(",").map((s) => s.trim()).filter((s) => s.length > 0).map((s) => e.parse(s)).filter((s) => Number.isFinite(s)), o = e.parse(this.min ?? ""), h = e.parse(this.max ?? "");
93
+ const e = m(this.fieldType), i = (this.value ?? "").split(",").map((s) => s.trim()).filter((s) => s.length > 0).map((s) => e.parse(s)).filter((s) => Number.isFinite(s)), o = e.parse(this.min ?? ""), h = e.parse(this.max ?? "");
88
94
  let a = Number.isFinite(o) ? o : void 0, n = Number.isFinite(h) ? h : void 0;
89
95
  a != null && n != null && a >= n && (a = void 0, n = void 0);
90
96
  let l = e.resolveRange(i, a, n);
91
97
  l.min >= l.max && (l = e.resolveRange(i, void 0, void 0));
92
- const t = e.serialize(l.min), r = e.serialize(l.max), m = i.map((s) => Math.min(l.max, Math.max(l.min, s))).sort((s, g) => s - g).map((s) => e.serialize(s)).join(",");
93
- t !== this.min && (this.min = t), r !== this.max && (this.max = r), m !== this.values && (this.values = m);
98
+ const t = e.serialize(l.min), r = e.serialize(l.max), u = i.map((s) => Math.min(l.max, Math.max(l.min, s))).sort((s, g) => s - g).map((s) => e.serialize(s)).join(",");
99
+ t !== this.min && (this.min = t), r !== this.max && (this.max = r), u !== this.value && (this.value = u);
94
100
  }
95
101
  #l(e) {
96
- e.stopPropagation(), this.values = e.currentTarget.values, this.arcgisInput.emit();
102
+ e.stopPropagation(), this.value = e.currentTarget.value, this.arcgisInput.emit();
97
103
  }
98
104
  #n(e) {
99
105
  e.stopPropagation();
100
106
  const i = e.currentTarget;
101
- this.min = i.min, this.max = i.max, this.values = i.values, this.arcgisRangeChange.emit();
107
+ this.min = i.min, this.max = i.max, this.value = i.value, this.arcgisRangeChange.emit();
102
108
  }
103
109
  #r(e) {
104
- e.stopPropagation(), this.values = e.currentTarget.values, this.arcgisChange.emit();
110
+ e.stopPropagation(), this.value = e.currentTarget.value, this.arcgisChange.emit();
105
111
  }
106
112
  #o(e) {
107
113
  e.stopPropagation(), this.arcgisActiveValueChange.emit();
108
114
  }
109
115
  render() {
110
- const e = u(this.fieldType), i = e.parse(this.min ?? ""), o = e.parse(this.max ?? "");
111
- return y`<arcgis-slider-field .fieldType=${this.fieldType} .fillPlacement=${this.fillPlacement} .label=${this.label} .labelFormatter=${this.labelFormatter} .max=${this.max ?? ""} .min=${this.min ?? ""} .layout=${this.layout} @arcgisActiveValueChange=${this.#o} @arcgisChange=${this.#r} @arcgisInput=${this.#l} @arcgisRangeChange=${this.#n} .rangeLabelsEditingEnabled=${this.rangeLabelsEditingEnabled} .valueLabelsEditingEnabled=${this.valueLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .valueLabelsDisplay=${this.valueLabelsDisplay} .showRangeLabels=${this.showRangeLabels} .values=${this.values ?? ""} .valueLabelsPlacement=${this.layout === "horizontal" ? "end" : "start"} ${x(this.#e)}><arcgis-histogram .slot=${this.layout === "horizontal" ? "content-start" : "content-end"} .average=${this.average} .bins=${this.bins} .dataLines=${this.dataLines} .max=${o} .min=${i} .label=${this.label} .layout=${this.layout} .standardDeviation=${this.standardDeviation} .standardDeviationCount=${this.standardDeviationCount} color-blending-enabled .colorStops=${this.#i()} style=${f({
116
+ const e = m(this.fieldType), i = e.parse(this.min ?? ""), o = e.parse(this.max ?? "");
117
+ return y`<arcgis-slider-field .fieldType=${this.fieldType} .fillPlacement=${this.fillPlacement} .label=${this.label} .labelFormatter=${this.labelFormatter} .max=${this.max ?? ""} .min=${this.min ?? ""} .layout=${this.layout} @arcgisActiveValueChange=${this.#o} @arcgisChange=${this.#r} @arcgisInput=${this.#l} @arcgisRangeChange=${this.#n} .rangeLabelsEditingEnabled=${this.rangeLabelsEditingEnabled} .valueLabelsEditingEnabled=${this.valueLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .valueLabelsDisplay=${this.valueLabelsDisplay} .showRangeLabels=${this.showRangeLabels} .value=${this.value ?? ""} .valueLabelsPlacement=${this.layout === "horizontal" ? "end" : "start"} ${x(this.#e)}><arcgis-histogram .slot=${this.layout === "horizontal" ? "content-start" : "content-end"} .average=${this.average} .bins=${this.bins} .dataLines=${this.dataLines} .max=${o} .min=${i} .label=${this.label} .layout=${this.layout} .standardDeviation=${this.standardDeviation} .standardDeviationCount=${this.standardDeviationCount} color-blending-enabled .colorStops=${this.#i()} style=${f({
112
118
  ...this.includedBarColor && { "--arcgis-histogram-stop-color": this.includedBarColor.toCss() },
113
119
  ...this.excludedBarColor && { "--arcgis-histogram-bar-color": this.excludedBarColor.toCss() }
114
120
  })} .labelFormatter=${this.#a}></arcgis-histogram></arcgis-slider-field>`;