@arcgis/common-components 5.1.0-next.89 → 5.1.0-next.90

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.
package/dist/loader.js CHANGED
@@ -14,7 +14,7 @@ const l = i(e, {
14
14
  "arcgis-ramp-color-break": [() => import("./components/arcgis-ramp-color-break/customElement.js"), "layout,max,min,stops:"],
15
15
  "arcgis-ramp-opacity": [() => import("./components/arcgis-ramp-opacity/customElement.js"), "fillColor,layout,max,min,stops:"],
16
16
  "arcgis-slider": [() => import("./components/arcgis-slider/customElement.js"), "activeValue:,allowValuesOverlap,autoDestroyDisabled,disabled,fillPlacement,fullRangeMax,fullRangeMin,keyboardLargeStep,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,popoverPlacement,precision,rangeLabelsEditingEnabled,rangeLabelsPlacement,segmentsDraggingDisabled,showRangeLabels,steps,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values;destroy"],
17
- "arcgis-slider-input": [() => import("./components/arcgis-slider-input/customElement.js"), "disabled,flipLabels,label,max,min,step,unitsLabel,value,withSteppers"],
17
+ "arcgis-slider-input": [() => import("./components/arcgis-slider-input/customElement.js"), "disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],
18
18
  "arcgis-spatial-reference-picker": [() => import("./components/arcgis-spatial-reference-picker/customElement.js"), "_messages:,autoFilterToDefault,defaultWkid,filterEnabled,hideCategories:,value:;getSRDescription"],
19
19
  "arcgis-spatial-reference-picker-tree": [() => import("./components/arcgis-spatial-reference-picker-tree/customElement.js"), "data:,value"],
20
20
  "arcgis-ticks": [() => import("./components/arcgis-ticks/customElement.js"), "interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values"],
@@ -87,7 +87,7 @@ interface LuminaArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOver
87
87
  onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
88
88
  }
89
89
 
90
- interface LuminaArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "step" | "unitsLabel" | "value" | "withSteppers">>, h.JSX.HTMLAttributes<ArcgisSliderInput> {
90
+ interface LuminaArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, h.JSX.HTMLAttributes<ArcgisSliderInput> {
91
91
  onarcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
92
92
  onarcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
93
93
  }
@@ -88,7 +88,7 @@ interface PreactArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOver
88
88
  onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
89
89
  }
90
90
 
91
- interface PreactArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "step" | "unitsLabel" | "value" | "withSteppers">>, HTMLAttributes<ArcgisSliderInput> {
91
+ interface PreactArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, HTMLAttributes<ArcgisSliderInput> {
92
92
  onarcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
93
93
  onarcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
94
94
  }
@@ -88,7 +88,7 @@ interface ReactArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOverl
88
88
  onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
89
89
  }
90
90
 
91
- interface ReactArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "step" | "unitsLabel" | "value" | "withSteppers">>, HTMLProps<ArcgisSliderInput> {
91
+ interface ReactArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, HTMLProps<ArcgisSliderInput> {
92
92
  onarcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
93
93
  onarcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
94
94
  }
@@ -88,7 +88,7 @@ interface StencilArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOve
88
88
  onArcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
89
89
  }
90
90
 
91
- interface StencilArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "step" | "unitsLabel" | "value" | "withSteppers">>, StencilJsx.HTMLAttributes<ArcgisSliderInput> {
91
+ interface StencilArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, StencilJsx.HTMLAttributes<ArcgisSliderInput> {
92
92
  onArcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
93
93
  onArcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
94
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/common-components",
3
- "version": "5.1.0-next.89",
3
+ "version": "5.1.0-next.90",
4
4
  "description": "ArcGIS Maps SDK for JavaScript common components",
5
5
  "keywords": [
6
6
  "2D",
@@ -46,12 +46,12 @@
46
46
  "@lit/task": "^1.0.3",
47
47
  "lit": "^3.3.0",
48
48
  "tslib": "^2.8.1",
49
- "@arcgis/lumina": "5.1.0-next.89",
50
- "@arcgis/toolkit": "5.1.0-next.89"
49
+ "@arcgis/lumina": "5.1.0-next.90",
50
+ "@arcgis/toolkit": "5.1.0-next.90"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@arcgis/core": "^5.1.0-next",
54
- "@esri/calcite-components": "^5.1.0-next.36"
54
+ "@esri/calcite-components": "^5.1.0-next.42"
55
55
  },
56
56
  "css.customData": [
57
57
  "dist/docs/vscode.css-custom-data.json"
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as b}from"./MP6Z45SA.js";import{B as m,H as o,g as h,i as d,q as r}from"./THRWQA3M.js";var $=h`.container{display:flex;align-items:center;justify-content:space-between;position:relative}.slider{width:50%}.input{width:45%}`,p=class extends m{constructor(){super(...arguments),this.debouncedApplyValueOnChange=b(e=>this.applyValueOnChange(e),800),this.disabled=!1,this.flipLabels=!1,this.min=0,this.max=100,this.value=50,this.step=1,this.withSteppers=!1,this.arcgisSliderInputValueChange=r(),this.arcgisValueChange=r()}static{this.properties={disabled:5,label:1,flipLabels:5,min:9,max:9,value:9,step:9,unitsLabel:1,withSteppers:5}}static{this.styles=$}applyValueOnChange(e){let{min:i,max:a,value:n}=this,s=Number(e.value),t=i!==void 0&&a!==void 0?Math.min(a,Math.max(i,s)):s;s!==n&&(e.value=`${t}`,this.arcgisValueChange.emit(t),this.arcgisSliderInputValueChange.emit(t),this.value=t)}render(){let{disabled:e,min:i,max:a,value:n,step:s,withSteppers:t,flipLabels:c,unitsLabel:u,label:g}=this;return d`<div class="container"><calcite-slider class="slider" .disabled=${e} .min=${i} .max=${a} .value=${n} .step=${s} @calciteSliderInput=${l=>this.debouncedApplyValueOnChange(l.currentTarget)}></calcite-slider><calcite-input class="input" .disabled=${e} .min=${i} .max=${a} .numberButtonType=${t?"vertical":"none"} .prefixText=${c?u:""} @calciteInputInput=${l=>this.debouncedApplyValueOnChange(l.target)} @click=${l=>l.stopPropagation()} scale=s step=any .suffixText=${c?"":u} type=number .value=${`${n}`} .label=${g}></calcite-input></div>`}};o("arcgis-slider-input",p);export{p as ArcgisSliderInput};