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