@arcgis/common-components 5.1.0-next.13 → 5.1.0-next.131
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/README.md +26 -3
- package/dist/cdn/{7PB2GGQH.js → 3L7MTTM2.js} +1 -1
- package/dist/cdn/6RFADDWS.js +4 -0
- package/dist/cdn/AETG56T6.js +2 -0
- package/dist/cdn/AH2USIZR.js +2 -0
- package/dist/cdn/BYGHEIBE.js +2 -0
- package/dist/cdn/{7HQMPKZO.js → CBAQR6M4.js} +1 -1
- package/dist/cdn/DCI6LRH3.js +2 -0
- package/dist/cdn/DJBJXOSO.js +2 -0
- package/dist/cdn/DUJ3WX7U.js +2 -0
- package/dist/cdn/{YVSTPEPS.js → EHX3VIM6.js} +1 -1
- package/dist/cdn/{7Y42J3JI.js → G76LQ75D.js} +1 -1
- package/dist/cdn/HGDAUUOP.js +2 -0
- package/dist/cdn/{ZOWIFVL3.js → HXWUO3AD.js} +1 -1
- package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
- package/dist/cdn/IA2L6PDT.js +2 -0
- package/dist/cdn/KGHLN7QM.js +2 -0
- package/dist/cdn/KHRMZ2BS.js +2 -0
- package/dist/cdn/PECYQ2HF.js +2 -0
- package/dist/cdn/TKMLU77O.js +2 -0
- package/dist/cdn/WPKV6SVG.js +2 -0
- package/dist/cdn/{AXTSUI2Q.js → XF5C2EHM.js} +3 -3
- package/dist/cdn/YCAZ4ZY2.js +2 -0
- package/dist/cdn/ZBV64YMG.js +2 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/commonFunctions.js +7 -3
- package/dist/chunks/layer-utils.js +70 -0
- package/dist/components/arcgis-ckeditor5/customElement.js +13 -13
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.d.ts +3 -2
- package/dist/components/arcgis-color-input/customElement.js +11 -8
- package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +331 -0
- package/dist/components/arcgis-coordinate-system-picker/customElement.js +7703 -0
- package/dist/components/arcgis-coordinate-system-picker/index.d.ts +1 -0
- package/dist/components/arcgis-coordinate-system-picker/index.js +3 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.d.ts +35 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +77 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/index.d.ts +1 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/index.js +3 -0
- package/dist/components/arcgis-field-info/customElement.d.ts +4 -2
- package/dist/components/arcgis-field-info/customElement.js +173 -172
- package/dist/components/arcgis-field-info/utils/basic.d.ts +25 -3
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +13 -10
- package/dist/components/arcgis-field-pick-list/customElement.js +91 -86
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +20 -2
- package/dist/components/arcgis-histogram/customElement.d.ts +10 -10
- package/dist/components/arcgis-histogram/customElement.js +81 -90
- package/dist/components/arcgis-histogram/types.d.ts +1 -3
- package/dist/components/arcgis-label-input/customElement.d.ts +5 -6
- package/dist/components/arcgis-label-input/customElement.js +22 -17
- package/dist/components/arcgis-picker-input/customElement.d.ts +8 -4
- package/dist/components/arcgis-picker-input/customElement.js +17 -17
- package/dist/components/arcgis-slider/customElement.d.ts +38 -33
- package/dist/components/arcgis-slider/customElement.js +349 -304
- package/dist/components/arcgis-slider-input/customElement.d.ts +6 -0
- package/dist/components/arcgis-slider-input/customElement.js +12 -12
- package/dist/components/arcgis-ticks/customElement.d.ts +18 -16
- package/dist/components/arcgis-ticks/customElement.js +21 -21
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +9 -4
- package/dist/components/arcgis-unique-values-list/customElement.js +162 -154
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +21 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +39 -1
- package/dist/loader.js +7 -5
- package/dist/types/lumina.d.ts +14 -2
- package/dist/types/preact.d.ts +16 -2
- package/dist/types/react.d.ts +18 -2
- package/dist/types/stencil.d.ts +14 -2
- package/dist/utils/internal-types.d.ts +1 -0
- package/dist/utils/spatial-references.d.ts +1 -0
- package/dist/utils/types.d.ts +21 -18
- package/package.json +11 -9
- package/dist/cdn/23DDMSOB.js +0 -2
- package/dist/cdn/2BDHDUXG.js +0 -2
- package/dist/cdn/3O7GAC23.js +0 -2
- package/dist/cdn/4CW7U27R.js +0 -2
- package/dist/cdn/4DCAUWTC.js +0 -2
- package/dist/cdn/6DQVLQL6.js +0 -2
- package/dist/cdn/C6JAR4IN.js +0 -2
- package/dist/cdn/EKKJN7WZ.js +0 -2
- package/dist/cdn/J5X5TNVW.js +0 -2
- package/dist/cdn/JTRO7GRS.js +0 -2
- package/dist/cdn/UTXWKXMT.js +0 -4
- package/dist/cdn/XEB2RUND.js +0 -2
- package/dist/cdn/ZL3E4ZGE.js +0 -2
- package/dist/cdn/ZLXAKPUH.js +0 -2
- /package/dist/cdn/{CSDKXC4T.js → TJNYRK5P.js} +0 -0
- /package/dist/chunks/{types.js → internal-types.js} +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
3
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
3
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
5
4
|
import type { Popover as Popover } from "@esri/calcite-components/components/calcite-popover";
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
|
-
* The
|
|
9
|
-
* [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#values) property. The
|
|
10
|
-
* configurable value [precision](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#precision), and custom [labelFormatter](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#labelFormatter). It also includes keyboard interaction,
|
|
7
|
+
* The slider component is used to filter data or collect numeric input from users. It supports single or multiple thumbs, configured via the
|
|
8
|
+
* [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#values) property. The slider can be displayed in a horizontal or vertical [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#layout), and it supports snapping to defined [steps](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#steps),
|
|
9
|
+
* configurable value [precision](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#precision), and a custom [labelFormatter](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#labelFormatter). It also includes keyboard interaction,
|
|
11
10
|
* optional editable labels, and customizable popover content.
|
|
12
11
|
*
|
|
13
12
|
* The slider component can be set up with the [arcgis-ticks](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/) component. See the example below:
|
|
@@ -18,17 +17,17 @@ import type { Popover as Popover } from "@esri/calcite-components/components/cal
|
|
|
18
17
|
* </arcgis-slider>
|
|
19
18
|
* ```
|
|
20
19
|
*
|
|
21
|
-
*
|
|
20
|
+
* > [!TIP]
|
|
21
|
+
* > Which slider should you use: `arcgis-slider` or `calcite-slider`?
|
|
22
22
|
* >
|
|
23
|
-
* >
|
|
24
|
-
* > It covers common slider use cases and works well in most scenarios.
|
|
23
|
+
* > Use [calcite-slider](https://developers.arcgis.com/calcite-design-system/components/slider/) by default. It provides a consistent UI/UX and supports most common slider use cases.
|
|
25
24
|
* >
|
|
26
|
-
* >
|
|
27
|
-
* >
|
|
28
|
-
* > *
|
|
29
|
-
* >
|
|
30
|
-
* > *
|
|
31
|
-
* > *
|
|
25
|
+
* > Choose `arcgis-slider` when you need more advanced behavior, such as:
|
|
26
|
+
* >
|
|
27
|
+
* > * A vertical slider via [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#layout).
|
|
28
|
+
* > * More than two [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#values) in a single slider.
|
|
29
|
+
* > * A display range that extends beyond the interactive range using [fullRangeMin](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMin) and [fullRangeMax](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMax).
|
|
30
|
+
* > * Additional slotted content using the `content-start`, `content-end`, or `popover` [slots](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#slots).
|
|
32
31
|
*
|
|
33
32
|
* @slot [content-start] - A slot for elements before the track.
|
|
34
33
|
* @slot [content-end] - A slot for elements after the track.
|
|
@@ -41,7 +40,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
41
40
|
* so it may reflect the thumb’s last set position.
|
|
42
41
|
*
|
|
43
42
|
*
|
|
44
|
-
* It returns
|
|
43
|
+
* It returns:
|
|
45
44
|
* - `undefined` when no value is active
|
|
46
45
|
* - a `number` when a single value is active
|
|
47
46
|
* - `"all"` when the range (segment) is active
|
|
@@ -82,7 +81,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
82
81
|
*/
|
|
83
82
|
accessor fillPlacement: "end" | "none" | "start";
|
|
84
83
|
/**
|
|
85
|
-
* Sets the maximum value of the slider
|
|
84
|
+
* Sets the maximum value of the slider's displayed range.
|
|
86
85
|
* When specified, the slider track is scaled from [fullRangeMin](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMin) to `fullRangeMax`, while
|
|
87
86
|
* the thumbs remain constrained to the interactive range defined by [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max).
|
|
88
87
|
*
|
|
@@ -97,7 +96,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
97
96
|
*/
|
|
98
97
|
accessor fullRangeMax: number | undefined;
|
|
99
98
|
/**
|
|
100
|
-
* Sets the minimum value of the slider
|
|
99
|
+
* Sets the minimum value of the slider's displayed range.
|
|
101
100
|
* When specified, the slider track is scaled from `fullRangeMin` to [fullRangeMax](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMax), while
|
|
102
101
|
* the thumbs remain constrained to the range defined by [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max).
|
|
103
102
|
*
|
|
@@ -150,7 +149,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
150
149
|
* };
|
|
151
150
|
* ```
|
|
152
151
|
*/
|
|
153
|
-
accessor labelFormatter: (
|
|
152
|
+
accessor labelFormatter: (value: number, type: "max" | "min" | "value", defaultFormatter: (value: number) => string) => string | null | undefined;
|
|
154
153
|
/**
|
|
155
154
|
* Determines the layout/orientation of the Slider component. By default, the slider will render horizontally with the min value on the left side
|
|
156
155
|
* of the track.
|
|
@@ -293,7 +292,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
293
292
|
* This property only affects the slider when [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#layout) is `"horizontal"`.
|
|
294
293
|
*
|
|
295
294
|
* - `"center"` (default): Places the [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) labels aligned with the track.
|
|
296
|
-
* - `"end"`: Places the range labels below the
|
|
295
|
+
* - `"end"`: Places the range labels below the track.
|
|
297
296
|
*
|
|
298
297
|
* @default "center"
|
|
299
298
|
*/
|
|
@@ -305,34 +304,36 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
305
304
|
*/
|
|
306
305
|
accessor segmentsDraggingDisabled: boolean;
|
|
307
306
|
/**
|
|
308
|
-
* Indicates whether
|
|
307
|
+
* Indicates whether [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) range labels are visible on the slider.
|
|
309
308
|
*
|
|
310
309
|
* @default false
|
|
311
310
|
*/
|
|
312
311
|
accessor showRangeLabels: boolean;
|
|
313
312
|
/**
|
|
314
|
-
* Sets
|
|
313
|
+
* Sets intervals on the slider that restrict user
|
|
315
314
|
* input to specific values. If an array of numbers is passed to this
|
|
316
315
|
* property, the slider thumbs may only be moved to the positions
|
|
317
316
|
* specified in the array.
|
|
318
317
|
*
|
|
318
|
+
* This can be set as comma-separated numbers in the attribute (e.g., `<arcgis-slider steps="10, 20, 30"></arcgis-slider>`)
|
|
319
|
+
* or programmatically as either a single number or an array of numbers (e.g., `slider.steps = 10`, `slider.steps = [10, 20, 30]`).
|
|
320
|
+
*
|
|
319
321
|
* If a single number is set, then steps are set along the entire
|
|
320
|
-
* slider range at an interval of the provided value.
|
|
321
|
-
*
|
|
322
|
-
* For example, if a value of `0.5` is set
|
|
323
|
-
* [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) is `0` and
|
|
324
|
-
* only be able to update the thumbs to values of 0, 0.5, 1.0, 1.5, 2.0
|
|
322
|
+
* slider range at an interval of the provided value. The user may
|
|
323
|
+
* only slide the thumbs to values at the provided interval.
|
|
324
|
+
* For example, if a value of `0.5` is set and the slider
|
|
325
|
+
* [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) is `0` and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) is `2`, then the user will
|
|
326
|
+
* only be able to update the thumbs to values of 0, 0.5, 1.0, 1.5, and 2.0.
|
|
325
327
|
*
|
|
326
328
|
* @example
|
|
327
329
|
* ```html
|
|
328
|
-
* <!--
|
|
329
|
-
* <!-- slider thumb snaps at values of 0.5, 1.0, 1.5, etc. -->
|
|
330
|
+
* <!-- In this example, the thumb snaps to every value evenly divisible by 0.5 between 0 and 10. -->
|
|
330
331
|
* <arcgis-slider min="0" max="10" steps="0.5" values="5"></arcgis-slider>
|
|
331
332
|
* ```
|
|
332
333
|
* @example
|
|
333
334
|
* ```html
|
|
334
|
-
* <!--
|
|
335
|
-
* <arcgis-slider min="0" max="
|
|
335
|
+
* <!-- In this example, the thumb snaps to the specified values in the steps array (2, 4, 6, and 8). -->
|
|
336
|
+
* <arcgis-slider min="0" max="10" steps="2, 4, 6, 8" values="4"></arcgis-slider>
|
|
336
337
|
* ```
|
|
337
338
|
*/
|
|
338
339
|
accessor steps: number[] | number | undefined;
|
|
@@ -352,7 +353,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
352
353
|
* when the user clicks a thumb value label. This allows the user to move the slider
|
|
353
354
|
* thumb to precise values without sliding the thumbs.
|
|
354
355
|
*
|
|
355
|
-
* 
|
|
356
357
|
*
|
|
357
358
|
* @default false
|
|
358
359
|
*/
|
|
@@ -363,7 +364,11 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
363
364
|
* @default "start"
|
|
364
365
|
*/
|
|
365
366
|
accessor valueLabelsPlacement: "end" | "start";
|
|
366
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* An array of numbers representing absolute thumb positions on the slider. This can be set as comma-separated
|
|
369
|
+
* numbers in the attribute (e.g., `<arcgis-slider values="10, 20, 30"></arcgis-slider>`) or programmatically as an
|
|
370
|
+
* array of numbers (e.g., `slider.values = [10, 20, 30]`).
|
|
371
|
+
*/
|
|
367
372
|
accessor values: number[];
|
|
368
373
|
/** Permanently destroys the component. */
|
|
369
374
|
destroy(): Promise<void>;
|
|
@@ -400,7 +405,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
400
405
|
*/
|
|
401
406
|
readonly arcgisActiveValueChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
402
407
|
/**
|
|
403
|
-
* Fires when the thumb or range is released on the
|
|
408
|
+
* Fires when the thumb or range is released on the slider.
|
|
404
409
|
*
|
|
405
410
|
* Use [@arcgisInput](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#event-arcgisInput) for continuous updates during a drag.
|
|
406
411
|
*
|
|
@@ -450,7 +455,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
450
455
|
*/
|
|
451
456
|
readonly arcgisInput: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
452
457
|
/**
|
|
453
|
-
* Fires when the slider's
|
|
458
|
+
* Fires when the slider's range changes.
|
|
454
459
|
* This occurs when the user edits the [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) or [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) range labels (when enabled).
|
|
455
460
|
*
|
|
456
461
|
* @example
|