@arcgis/common-components 5.0.0-next.135 → 5.0.0-next.137
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/cdn/{O63ZTZG5.js → 2CMN2PLW.js} +2 -2
- package/dist/cdn/{QEMZUVQL.js → 3D5FKOXY.js} +2 -2
- package/dist/cdn/{XVOXEDSL.js → 43YNUTPG.js} +2 -2
- package/dist/cdn/{RNS5S5UL.js → 4I34IC6Q.js} +2 -2
- package/dist/cdn/{BXXIZYBD.js → 5CDET57O.js} +2 -2
- package/dist/cdn/{5Z2QK75J.js → 6DBUX6JF.js} +1 -1
- package/dist/cdn/ACOIQKWZ.js +6 -0
- package/dist/cdn/{K3LTU64J.js → BAXXL46B.js} +2 -2
- package/dist/cdn/{FREENMNZ.js → CMYVMNBW.js} +2 -2
- package/dist/cdn/{BAEY2UNC.js → ENYQISNB.js} +2 -2
- package/dist/cdn/{IGSEZSZY.js → GTFPNZX7.js} +2 -2
- package/dist/cdn/{LC3J3GLV.js → HRF4HSM5.js} +2 -2
- package/dist/cdn/{LNDXDU5Z.js → IC6DINF6.js} +123 -123
- package/dist/cdn/{4JREURGY.js → KY3QFUVB.js} +2 -2
- package/dist/cdn/{RD2QMBYZ.js → KYBEHVPR.js} +2 -2
- package/dist/cdn/{Y2EXN4GQ.js → L63ONHBD.js} +2 -2
- package/dist/cdn/{C2DNC2YJ.js → NFPYN5F7.js} +1 -1
- package/dist/cdn/{SYONVE3P.js → OGEHJX2A.js} +2 -2
- package/dist/cdn/{62JZVUW3.js → R4UCTMNW.js} +2 -2
- package/dist/cdn/{G7BIJSLP.js → ROYSN427.js} +2 -2
- package/dist/cdn/{3CIN6YRD.js → X5QI7LLG.js} +1 -1
- package/dist/cdn/{JVNYGVN3.js → YAIYR7HY.js} +2 -2
- package/dist/cdn/{ZDJE23FU.js → YJBSULAA.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/commonFunctions.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/types.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +94 -98
- package/dist/components/arcgis-ckeditor5/customElement.js +6887 -7708
- package/dist/components/arcgis-ckeditor5/types.d.ts +4 -7
- package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +37 -38
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +2 -2
- package/dist/components/arcgis-ckeditor5-popover/index.d.ts +0 -2
- package/dist/components/arcgis-color-input/customElement.d.ts +105 -82
- package/dist/components/arcgis-color-input/customElement.js +1 -1
- package/dist/components/arcgis-color-input/index.d.ts +0 -5
- package/dist/components/arcgis-field-info/customElement.d.ts +204 -41
- package/dist/components/arcgis-field-info/customElement.js +1 -1
- package/dist/components/arcgis-field-info/utils/basic.d.ts +2 -36
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +196 -170
- package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
- package/dist/components/arcgis-field-pick-list/index.d.ts +0 -13
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +2 -1
- package/dist/components/arcgis-histogram/customElement.d.ts +206 -195
- package/dist/components/arcgis-histogram/customElement.js +1 -1
- package/dist/components/arcgis-histogram/types.d.ts +22 -30
- package/dist/components/arcgis-label-input/customElement.d.ts +46 -45
- package/dist/components/arcgis-label-input/customElement.js +1 -1
- package/dist/components/arcgis-label-input/index.d.ts +0 -2
- package/dist/components/arcgis-picker-input/customElement.d.ts +41 -41
- package/dist/components/arcgis-picker-input/customElement.js +2 -2
- package/dist/components/arcgis-picker-input/index.d.ts +0 -4
- package/dist/components/arcgis-ramp-color/customElement.d.ts +16 -17
- package/dist/components/arcgis-ramp-color/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color-break/customElement.d.ts +17 -18
- package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color-break/index.d.ts +0 -1
- package/dist/components/arcgis-ramp-opacity/customElement.d.ts +16 -18
- package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
- package/dist/components/arcgis-ramp-opacity/index.d.ts +0 -1
- package/dist/components/arcgis-slider/customElement.d.ts +287 -287
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-slider/index.d.ts +0 -2
- package/dist/components/arcgis-slider-input/customElement.d.ts +57 -58
- package/dist/components/arcgis-slider-input/customElement.js +1 -1
- package/dist/components/arcgis-slider-input/index.d.ts +0 -2
- package/dist/components/arcgis-ticks/customElement.d.ts +99 -94
- package/dist/components/arcgis-ticks/customElement.js +1 -1
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +106 -89
- package/dist/components/arcgis-unique-values-list/customElement.js +1 -1
- package/dist/components/arcgis-unique-values-list/index.d.ts +0 -7
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +2 -9
- package/dist/docs/api.json +1 -7276
- package/dist/docs/docs.json +1 -6072
- package/dist/docs/vscode.css-custom-data.json +1 -27
- package/dist/docs/vscode.html-custom-data.json +1 -1185
- package/dist/docs/web-types.json +1 -2387
- package/dist/index.d.ts +30 -23
- package/dist/index.js +1 -1
- package/dist/loader.js +11 -11
- package/dist/types/lumina.d.ts +54 -54
- package/dist/types/preact.d.ts +54 -54
- package/dist/types/react.d.ts +54 -54
- package/dist/types/stencil.d.ts +54 -54
- package/dist/utils/types.d.ts +33 -29
- package/package.json +6 -4
- package/dist/cdn/ZMDBYWZB.js +0 -6
- package/dist/components/arcgis-ckeditor5/resources.d.ts +0 -9
- package/dist/components/arcgis-field-info/utils/feature.d.ts +0 -21
- package/dist/components/arcgis-field-info/utils/field.d.ts +0 -30
- package/dist/components/arcgis-field-info/utils/index.d.ts +0 -3
- package/dist/components/arcgis-histogram/css.d.ts +0 -8
- package/dist/components/arcgis-histogram/histogramSample.d.ts +0 -25
- package/dist/components/arcgis-histogram/utils.d.ts +0 -19
- package/dist/components/arcgis-slider/SliderData.d.ts +0 -37
- package/dist/components/arcgis-slider/stepsUtils.d.ts +0 -52
- package/dist/components/arcgis-ticks/css.d.ts +0 -11
- package/dist/components/arcgis-unique-values-list/utils/date.d.ts +0 -7
- package/dist/components/arcgis-unique-values-list/utils/domain.d.ts +0 -5
- package/dist/components/arcgis-unique-values-list/utils/field.d.ts +0 -3
- package/dist/components/arcgis-unique-values-list/utils/index.d.ts +0 -4
- package/dist/controllers/useT9n.d.ts +0 -1
- package/dist/runtime.d.ts +0 -6
- package/dist/utils/commonFunctions.d.ts +0 -28
- package/dist/utils/dom.d.ts +0 -7
- package/dist/utils/functional.d.ts +0 -16
- package/dist/utils/functionalComponents/FieldIcons.d.ts +0 -6
- package/dist/utils/storage.d.ts +0 -3
- package/dist/utils/style.d.ts +0 -1
|
@@ -1,294 +1,294 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { StepsInfo } from './stepsUtils';
|
|
2
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
3
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
|
|
4
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
5
|
+
import type { Popover as Popover } from "@esri/calcite-components/components/calcite-popover";
|
|
7
6
|
|
|
8
|
-
declare const useSliderData: (component: LitElement & Omit<Pick<SliderData, "max" | "min" | "precision" | "values">, "set" | "declaredClass" | "destroyed" | "initialized" | "addHandles" | "hasHandles" | "removeHandles" | "watch"> & {
|
|
9
|
-
autoDestroyDisabled: boolean;
|
|
10
|
-
destroy: () => Promise<void>;
|
|
11
|
-
}) => SliderData;
|
|
12
7
|
/**
|
|
13
|
-
* [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-slider/)
|
|
14
|
-
*
|
|
15
8
|
* @slot [content-start] - A slot for elements before the track.
|
|
16
9
|
* @slot [content-end] - A slot for elements after the track.
|
|
17
10
|
* @slot [popover] - A slot for custom content to be rendered in the popover.
|
|
18
11
|
*/
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
12
|
+
export abstract class ArcgisSlider extends LitElement {
|
|
13
|
+
/**
|
|
14
|
+
* The currently active value of the slider.
|
|
15
|
+
*
|
|
16
|
+
* It can be:
|
|
17
|
+
* - `undefined` when no value is active
|
|
18
|
+
* - a `number` when a single value is active
|
|
19
|
+
* - `"all"` when the range is active
|
|
20
|
+
*
|
|
21
|
+
* Listen to `arcgisActiveValueChange` to be notified when a value becomes active or inactive.
|
|
22
|
+
*
|
|
23
|
+
* @see [arcgisActiveValueChange](#arcgisActiveValueChange)
|
|
24
|
+
*/
|
|
25
|
+
get activeValue(): number | "all" | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* When `true`, allows the slider's values to overlap.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
accessor allowValuesOverlap: boolean;
|
|
32
|
+
/** @default false */
|
|
33
|
+
accessor autoDestroyDisabled: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates whether the slider is disabled.
|
|
36
|
+
*
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
accessor disabled: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Used to configure where the fill is placed along the slider track in relation to the value handle.
|
|
42
|
+
*
|
|
43
|
+
* Range mode will always display the fill between the min and max handles.
|
|
44
|
+
*
|
|
45
|
+
* @default "start"
|
|
46
|
+
*/
|
|
47
|
+
accessor fillPlacement: "end" | "none" | "start";
|
|
48
|
+
/**
|
|
49
|
+
* Used to define the full range displayed by the slider.
|
|
50
|
+
*
|
|
51
|
+
* The full range is visualized by the track while the [min](#min) and [max](#max) defines the subset of allowed values for the thumbs.
|
|
52
|
+
*
|
|
53
|
+
* @see [fullRangeMin](#fullRangeMin)
|
|
54
|
+
* @example
|
|
55
|
+
* Slider with a full range from 0 to 100, while only allowing thumb values between 25 and 75.
|
|
56
|
+
* ```html
|
|
57
|
+
* <arcgis-slider full-range-min="0" full-range-max="100" min="25" max="75" values="50"></arcgis-slider>
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
accessor fullRangeMax: number | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Used to define the full range displayed by the slider.
|
|
63
|
+
*
|
|
64
|
+
* The full range is visualized by the track while the [min](#min) and [max](#max) defines the subset of allowed values for the thumbs.
|
|
65
|
+
*
|
|
66
|
+
* @see [fullRangeMax](#fullRangeMax)
|
|
67
|
+
* @example
|
|
68
|
+
* Slider with a full range from 0 to 100, while only allowing thumb values between 25 and 75.
|
|
69
|
+
* ```html
|
|
70
|
+
* <arcgis-slider full-range-min="0" full-range-max="100" min="25" max="75" values="50"></arcgis-slider>
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
accessor fullRangeMin: number | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* When specified, allows users to customize labels.
|
|
76
|
+
*
|
|
77
|
+
* Note: the formatted label is also used as the thumb's accessible value text
|
|
78
|
+
* via `aria-valuetext`, which screen readers prefer to announce over the raw
|
|
79
|
+
* numeric value.
|
|
80
|
+
*/
|
|
81
|
+
accessor labelFormatter: ((value: number, type: "max" | "min" | "value", defaultFormatter: (value: number) => string) => nullish | string) | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Determines the layout/orientation of the Slider widget.
|
|
84
|
+
*
|
|
85
|
+
* @default "horizontal"
|
|
86
|
+
*/
|
|
87
|
+
accessor layout: "horizontal" | "vertical";
|
|
88
|
+
/**
|
|
89
|
+
* The maximum possible data/thumb value of the slider.
|
|
90
|
+
*
|
|
91
|
+
* To display the `max` value's label on the slider, set [showRangeLabels](#showRangeLabels) to `true`.
|
|
92
|
+
* To allow the end user to modify the max value, set [rangeLabelsEditingEnabled](#rangeLabelsEditingEnabled) to `true`.
|
|
93
|
+
*
|
|
94
|
+
* @see [rangeLabelsEditingEnabled](#rangeLabelsEditingEnabled)
|
|
95
|
+
* @see [showRangeLabels](#showRangeLabels)
|
|
96
|
+
*/
|
|
97
|
+
accessor max: number;
|
|
98
|
+
accessor messageOverrides: {
|
|
99
|
+
componentLabel?: string | undefined;
|
|
100
|
+
maximumValue?: string | undefined;
|
|
101
|
+
minimumValue?: string | undefined;
|
|
102
|
+
rangeMaximum?: string | undefined;
|
|
103
|
+
rangeMinimum?: string | undefined;
|
|
104
|
+
sliderValue?: string | undefined;
|
|
105
|
+
};
|
|
106
|
+
/** @internal */
|
|
107
|
+
protected messages: Partial<{
|
|
108
|
+
componentLabel: string;
|
|
109
|
+
maximumValue: string;
|
|
110
|
+
minimumValue: string;
|
|
111
|
+
rangeMaximum: string;
|
|
112
|
+
rangeMinimum: string;
|
|
113
|
+
sliderValue: string;
|
|
114
|
+
}> & T9nMeta<{
|
|
115
|
+
componentLabel: string;
|
|
116
|
+
maximumValue: string;
|
|
117
|
+
minimumValue: string;
|
|
118
|
+
rangeMaximum: string;
|
|
119
|
+
rangeMinimum: string;
|
|
120
|
+
sliderValue: string;
|
|
121
|
+
}>;
|
|
122
|
+
/**
|
|
123
|
+
* The minimum possible data/thumb value of the slider.
|
|
124
|
+
*
|
|
125
|
+
* To display the `min` value's label on the slider, set [showRangeLabels](#showRangeLabels) to `true`.
|
|
126
|
+
* To allow the end user to modify the min value, set [rangeLabelsEditingEnabled](#rangeLabelsEditingEnabled) to `true`.
|
|
127
|
+
*
|
|
128
|
+
* @see [rangeLabelsEditingEnabled](#rangeLabelsEditingEnabled)
|
|
129
|
+
* @see [showRangeLabels](#showRangeLabels)
|
|
130
|
+
*/
|
|
131
|
+
accessor min: number;
|
|
132
|
+
/**
|
|
133
|
+
* When `true`, the slider will display values from high to low.
|
|
134
|
+
*
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
accessor mirrored: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* The accessible label of the popover.
|
|
140
|
+
*
|
|
141
|
+
* @default ""
|
|
142
|
+
*/
|
|
143
|
+
accessor popoverLabel: Popover["label"];
|
|
144
|
+
/**
|
|
145
|
+
* Determines the placement of the popover relative to the track.
|
|
146
|
+
*
|
|
147
|
+
* @default "leading"
|
|
148
|
+
*/
|
|
149
|
+
accessor popoverPlacement: "leading" | "trailing";
|
|
150
|
+
/**
|
|
151
|
+
* Defines how slider thumb values should be rounded. This number indicates the number
|
|
152
|
+
* of decimal places slider thumb _values_ should round to when they have been moved.
|
|
153
|
+
*
|
|
154
|
+
* This value also indicates the precision of thumb labels when the data range
|
|
155
|
+
* is less than `10` (i.e. `(max - min) < 10`).
|
|
156
|
+
*
|
|
157
|
+
* When the data range is larger than `10`, labels display with a precision of
|
|
158
|
+
* no more than two decimal places, though actual slider thumb values will maintain the
|
|
159
|
+
* precision specified in this property.
|
|
160
|
+
*
|
|
161
|
+
* For example, given the default precision of `4`, and the following slider configuration,
|
|
162
|
+
* The labels of the thumbs will display two decimal places, but the precision of the actual
|
|
163
|
+
* thumb values will not be lost even when the user slides or moves the thumb.
|
|
164
|
+
*
|
|
165
|
+
* Keep in mind this property rounds thumb [values](#values) and shouldn't be used exclusively
|
|
166
|
+
* for formatting purposes. To format thumb `labels`, use the [labelFormatter](#labelFormatter)
|
|
167
|
+
* property.
|
|
168
|
+
*
|
|
169
|
+
* @default 4
|
|
170
|
+
* @example
|
|
171
|
+
* // thumb label will display 50.43
|
|
172
|
+
* // thumb value will maintain precision, so value will remain at 50.4331
|
|
173
|
+
* ```html
|
|
174
|
+
* <arcgis-slider min="0" max="100" values="50.4331" precision="4"></arcgis-slider>
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
accessor precision: number;
|
|
178
|
+
/**
|
|
179
|
+
* Indicates whether to enable editing range values via keyboard input
|
|
180
|
+
* when the user clicks a [min](#min) or [max](#max) label.
|
|
181
|
+
* This allows the user to increase or decrease the data range of the slider.
|
|
182
|
+
*
|
|
183
|
+
* @default false
|
|
184
|
+
*/
|
|
185
|
+
accessor rangeLabelsEditingEnabled: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Determines whether the range labels are placed centered with the slider track
|
|
188
|
+
* or placed below it when the [layout](#layout) is `"horizontal"`.
|
|
189
|
+
*
|
|
190
|
+
* @default "center"
|
|
191
|
+
*/
|
|
192
|
+
accessor rangeLabelsPlacement: "center" | "trailing";
|
|
193
|
+
/**
|
|
194
|
+
* Indicates if the user can drag the segment between thumbs to update thumb positions.
|
|
195
|
+
*
|
|
196
|
+
* @default false
|
|
197
|
+
*/
|
|
198
|
+
accessor segmentsDraggingDisabled: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Indicates whether to min and max range labels are visible on the slider.
|
|
201
|
+
*
|
|
202
|
+
* @default false
|
|
203
|
+
*/
|
|
204
|
+
accessor showRangeLabels: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Sets steps, or intervals, on the slider that restrict user
|
|
207
|
+
* input to specific values. If an array of numbers is passed to this
|
|
208
|
+
* property, the slider thumbs may only be moved to the positions
|
|
209
|
+
* specified in the array.
|
|
210
|
+
*
|
|
211
|
+
* If a single number is set, then steps are set along the entire
|
|
212
|
+
* slider range at an interval of the provided value. In this scenario,
|
|
213
|
+
* the user may only slide the thumbs to values at the provided interval.
|
|
214
|
+
* For example, if a value of `0.5` is set here, and the slider
|
|
215
|
+
* [min](#min) is `0` and the slider [max](#max) is `10`, then the user will
|
|
216
|
+
* only be able to update the thumbs to values of 0, 0.5, 1.0, 1.5, 2.0, etc.
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```html
|
|
220
|
+
* // set steps at an interval of 0.5. So the
|
|
221
|
+
* // slider thumb snaps at values of 0.5, 1.0, 1.5, etc.
|
|
222
|
+
* <arcgis-slider min="0" max="10" steps="0.5" values="5"></arcgis-slider>
|
|
223
|
+
* ```
|
|
224
|
+
* @example
|
|
225
|
+
* ```html
|
|
226
|
+
* // Set steps at specific slider positions
|
|
227
|
+
* <arcgis-slider min="0" max="100" steps="5, 10, 15, 20, 25, 30, 35, 40" values="15, 30"></arcgis-slider>
|
|
228
|
+
* ```
|
|
229
|
+
*/
|
|
230
|
+
accessor steps: number[] | number | undefined;
|
|
231
|
+
/**
|
|
232
|
+
* Indicates whether to show the value labels on the slider.
|
|
233
|
+
*
|
|
234
|
+
* This property can be set to one of the following values:
|
|
235
|
+
* - `"always"`: Always show the labels.
|
|
236
|
+
* - `"auto"`: Show the labels only when the thumb representing a value is dragged.
|
|
237
|
+
* - `"hidden"`: Never show the labels.
|
|
238
|
+
*
|
|
239
|
+
* @default "hidden"
|
|
240
|
+
*/
|
|
241
|
+
accessor valueLabelsDisplay: "always" | "auto" | "hidden";
|
|
242
|
+
/**
|
|
243
|
+
* Indicates whether to enable editing input values via keyboard input
|
|
244
|
+
* when the user clicks a label. This allows the user to move the slider
|
|
245
|
+
* thumb to precise values without sliding the thumbs.
|
|
246
|
+
*
|
|
247
|
+
* 
|
|
248
|
+
*
|
|
249
|
+
* @default false
|
|
250
|
+
*/
|
|
251
|
+
accessor valueLabelsEditingEnabled: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Determines whether the labels are placed before or after the track.
|
|
254
|
+
*
|
|
255
|
+
* @default "leading"
|
|
256
|
+
*/
|
|
257
|
+
accessor valueLabelsPlacement: "leading" | "trailing";
|
|
258
|
+
/** An array of numbers representing absolute thumb positions on the slider. */
|
|
259
|
+
accessor values: number[];
|
|
260
|
+
destroy(): Promise<void>;
|
|
261
|
+
/**
|
|
262
|
+
* Fires when the `activeValue` changes because a
|
|
263
|
+
* thumb or range is focused and blurred.
|
|
264
|
+
*
|
|
265
|
+
* This event does not fire when `values` changes.
|
|
266
|
+
* Use `arcgisInput` or `arcgisChange` instead.
|
|
267
|
+
*
|
|
268
|
+
* @see [activeValue](#activeValue)
|
|
269
|
+
*/
|
|
270
|
+
readonly arcgisActiveValueChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
271
|
+
/**
|
|
272
|
+
* Fires when the thumb or range is released on the component.
|
|
273
|
+
*
|
|
274
|
+
* Note: To constantly listen to the drag event,
|
|
275
|
+
* use `arcgisInput` instead.
|
|
276
|
+
*/
|
|
277
|
+
readonly arcgisChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
278
|
+
/**
|
|
279
|
+
* Fires when the thumb or range is being dragged and released on the component.
|
|
280
|
+
*
|
|
281
|
+
* Note: Fires frequently during drag. To perform
|
|
282
|
+
* expensive operations consider using a debounce or throttle to avoid
|
|
283
|
+
* locking up the main thread.
|
|
284
|
+
*/
|
|
285
|
+
readonly arcgisInput: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
286
|
+
/** Fires when the min or max values are changed by the user. */
|
|
287
|
+
readonly arcgisRangeChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
288
|
+
readonly "@eventTypes": {
|
|
289
|
+
arcgisActiveValueChange: ArcgisSlider["arcgisActiveValueChange"]["detail"];
|
|
290
|
+
arcgisChange: ArcgisSlider["arcgisChange"]["detail"];
|
|
291
|
+
arcgisInput: ArcgisSlider["arcgisInput"]["detail"];
|
|
292
|
+
arcgisRangeChange: ArcgisSlider["arcgisRangeChange"]["detail"];
|
|
293
|
+
};
|
|
294
|
+
}
|
|
@@ -13,7 +13,7 @@ import { watch as F } from "@arcgis/core/core/reactiveUtils.js";
|
|
|
13
13
|
import { generateGuid as O } from "@arcgis/toolkit/string";
|
|
14
14
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
15
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
16
|
-
v5.0.0-next.
|
|
16
|
+
v5.0.0-next.137 */
|
|
17
17
|
const ae = J`:host{display:flex;width:100%;height:100%;font-family:Avenir Next,Helvetica Neue,helvetica,arial,sans-serif;font-size:var(--calcite-font-size--2);font-variant-numeric:tabular-nums;--arcgis-slider-dash-length: 5px;--arcgis-slider-handle-size: .875rem;--arcgis-slider-track-background-color: var(--calcite-color-border-2);--arcgis-slider-internal-show-range-labels: 0;--arcgis-slider-internal-show-value-labels: 0;--arcgis-slider-internal-value-labels-placement-leading: 0;--arcgis-slider-internal-value-labels-placement-trailing: 0;--arcgis-slider-internal-range-labels-placement-center: 0;--arcgis-slider-internal-range-labels-placement-trailing: 0;--arcgis-slider-internal-handle-offset: calc(var(--arcgis-slider-handle-size) / 2);--arcgis-slider-internal-label-input-margin: calc(var(--arcgis-slider-internal-handle-offset) + 4px);--arcgis-slider-internal-label-input-height: var(--calcite-input-number-height, 1.5rem);--arcgis-slider-internal-track-size: 2px}:host([show-range-labels]){--arcgis-slider-internal-show-range-labels: 1}:host(:not([value-labels-display="hidden"])){--arcgis-slider-internal-show-value-labels: 1}:host([value-labels-placement="leading"]){--arcgis-slider-internal-value-labels-placement-leading: var(--arcgis-slider-internal-show-value-labels)}:host([value-labels-placement="trailing"]){--arcgis-slider-internal-value-labels-placement-trailing: var(--arcgis-slider-internal-show-value-labels)}:host([range-labels-placement="center"]){--arcgis-slider-internal-range-labels-placement-center: var(--arcgis-slider-internal-show-range-labels)}:host([range-labels-placement="trailing"]){--arcgis-slider-internal-range-labels-placement-trailing: var(--arcgis-slider-internal-show-range-labels)}:host([disabled]){cursor:default;opacity:var(--calcite-opacity-disabled);pointer-events:none}.content{direction:ltr;flex:1;touch-action:none;user-select:none;display:grid;word-wrap:normal;word-break:normal;padding-block:var(--arcgis-slider-internal-handle-offset)}.track-container{grid-area:track-container;position:relative;display:flex;justify-content:center;align-items:center}.track{touch-action:none;position:relative}.track-bounds{background-color:var(--calcite-color-border-2)}.track-fill{--arcgis-slider-track-background-color: var(--calcite-color-brand)}:host([layout="vertical"]){.track-effective-leading{background:repeating-linear-gradient(to bottom,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-trailing{background:repeating-linear-gradient(to top,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}:host([layout="horizontal"]){.track-effective-leading{background:repeating-linear-gradient(to right,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-trailing{background:repeating-linear-gradient(to left,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}.track-range{background-color:var(--calcite-color-brand);&.active{box-shadow:0 0 8px #00000029;outline:1px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}}:host([disabled]) .track-range{background-color:var(--calcite-color-text-3)}:host([layout="horizontal"]){.track-range.interactive{&:after{all:initial;cursor:ew-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-slider-internal-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-top:1px}}}:host([layout="vertical"]){.track-range.interactive{&:after{all:initial;cursor:ns-resize;position:absolute;inline-size:100%;content:"";inset-block-start:var(--arcgis-slider-internal-handle-offset);block-size:var(--arcgis-slider-handle-size);margin-left:1px}}}.segment{transform-origin:0 0;inset-block-start:0px;block-size:.125rem;position:absolute;top:0;left:0}.thumb{-webkit-user-select:none;user-select:none;background-color:#4c4c4c;position:absolute}.thumb:focus,.thumb.active{.handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px #00000029;outline:2px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}.handle{cursor:pointer;box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 2px var(--calcite-color-text-3) inset;border-radius:var(--arcgis-slider-handle-size);width:var(--arcgis-slider-handle-size);height:var(--arcgis-slider-handle-size);transition:all .125s ease-in-out;position:absolute;top:calc(var(--arcgis-slider-internal-handle-offset) * -1);left:calc(var(--arcgis-slider-internal-handle-offset) * -1)}.handle:hover{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.label{position:absolute;will-change:transform}.label[hidden]{display:block;opacity:0;pointer-events:none}.min{grid-area:range-start}.max{grid-area:range-end}:host([layout="horizontal"][mirrored][range-labels-placement="center"]),:host([layout="vertical"]:not([mirrored])){.min{grid-area:range-end}.max{grid-area:range-start}}.content-start{grid-area:content-start;display:flex}.content-end{grid-area:content-end;display:flex}:host([layout="vertical"]){.content{grid-template:". range-start range-start range-start ." "content-start content-start track-container content-end content-end" ". range-end range-end range-end .";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto auto auto 1fr;row-gap:var(--arcgis-slider-internal-handle-offset)}.track-container{flex-direction:column}.track{flex:1;width:var(--arcgis-slider-internal-track-size)}.segment{writing-mode:vertical-lr}.label{top:calc(var(--arcgis-slider-internal-label-input-height) * -.5)}&:host([value-labels-placement="leading"]){.label{right:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="trailing"]){.label{left:var(--arcgis-slider-internal-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="center"]){.content{--arcgis-slider-internal-content-start-min-height: calc( ((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset)) + ( var(--arcgis-slider-internal-value-labels-placement-leading) * var(--arcgis-slider-internal-label-input-height) ) );--arcgis-slider-internal-content-end-min-height: calc( ((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset)) + ( var(--arcgis-slider-internal-value-labels-placement-trailing) * var(--arcgis-slider-internal-label-input-height) ) );column-gap:calc(var(--arcgis-slider-internal-show-range-labels) * var(--arcgis-slider-internal-handle-offset) / 2);padding-inline:calc((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset));grid-template:". content-start ." "range-start content-start range-end" "range-start track-container range-end" "range-start content-end range-end" ". content-end .";grid-template-columns:auto 1fr auto;grid-template-rows:minmax(var(--arcgis-slider-internal-content-start-min-height),auto) calc(var(--arcgis-slider-internal-show-range-labels) * calc(calc(var(--arcgis-slider-internal-label-input-height) / 2) - calc(var(--arcgis-slider-internal-track-size) / 2))) var(--arcgis-slider-internal-track-size) calc(var(--arcgis-slider-internal-show-range-labels) * calc(calc(var(--arcgis-slider-internal-label-input-height) / 2) - calc(var(--arcgis-slider-internal-track-size) / 2))) minmax(var(--arcgis-slider-internal-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-slider-internal-track-size)}&:host([value-labels-placement="leading"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="trailing"]){.label{top:var(--arcgis-slider-internal-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="trailing"]){.content{--arcgis-slider-internal-content-start-min-height: calc( var(--arcgis-slider-internal-handle-offset) + var(--arcgis-slider-internal-value-labels-placement-leading) * var(--arcgis-slider-internal-label-input-height) );--arcgis-slider-internal-content-end-min-height: calc( var(--arcgis-slider-internal-value-labels-placement-trailing) * var(--arcgis-slider-internal-label-input-height) );padding-inline:var(--arcgis-slider-internal-handle-offset);grid-template:"content-start content-start content-start" "track-container track-container track-container" "content-end content-end content-end" "content-end content-end content-end" "content-end content-end content-end";grid-template-columns:auto;grid-template-rows:minmax(var(--arcgis-slider-internal-content-start-min-height),auto) var(--arcgis-slider-internal-track-size) var(--arcgis-slider-internal-handle-offset) calc(var(--arcgis-slider-internal-range-labels-placement-trailing) * var(--arcgis-slider-internal-label-input-height)) minmax(var(--arcgis-slider-internal-content-end-min-height),auto);column-gap:var(--arcgis-slider-internal-handle-offset)}.track{flex:1;height:var(--arcgis-slider-internal-track-size)}&:host([value-labels-placement="leading"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="trailing"]){.label{top:calc(var(--arcgis-slider-internal-label-input-margin) + var(--arcgis-slider-internal-range-labels-placement-trailing) * (var(--arcgis-slider-internal-label-input-height)))}}.min,.max{--arcgis-slider-internal-range-translation: calc(var(--arcgis-slider-internal-handle-offset) + .5rem + 1px);grid-area:unset;grid-row:-3}&:host(:not([mirrored])){.min{grid-column:1;transform:translate(calc(var(--arcgis-slider-internal-range-translation) * -1))}.max{grid-column:3;transform:translate(var(--arcgis-slider-internal-range-translation))}}&:host([mirrored]){.min{grid-column:3;transform:translate(var(--arcgis-slider-internal-range-translation))}.max{grid-column:1;transform:translate(calc(var(--arcgis-slider-internal-range-translation) * -1))}}}`;
|
|
18
18
|
var re = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, w = (n, e, t, a) => {
|
|
19
19
|
for (var i = a > 1 ? void 0 : a ? ne(e, t) : e, r = n.length - 1, l; r >= 0; r--)
|