@arcgis/common-components 6.0.0-next.2 → 6.0.0-next.20

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 (107) hide show
  1. package/dist/cdn/22ZJC66J.js +2 -0
  2. package/dist/cdn/{OMROUY3L.js → 2STNPR2K.js} +1 -1
  3. package/dist/cdn/{BZFAYVKR.js → 3AMC2MYL.js} +1 -1
  4. package/dist/cdn/4X3PGY53.js +2 -0
  5. package/dist/cdn/4YTPZVS3.js +8207 -0
  6. package/dist/cdn/5AYF7ZV7.js +2 -0
  7. package/dist/cdn/5STQ23EC.js +2 -0
  8. package/dist/cdn/{IECXEZNI.js → 6CP2VGMT.js} +1 -1
  9. package/dist/cdn/A5VZ22LK.js +4 -0
  10. package/dist/cdn/{TO3YFXVJ.js → AK25UPRZ.js} +1 -1
  11. package/dist/cdn/C65ROMJK.js +2 -0
  12. package/dist/cdn/CT5YQHEK.js +2 -0
  13. package/dist/cdn/DAAON2UO.js +3 -0
  14. package/dist/cdn/{YEFEVEP6.js → DJSPDBWO.js} +1 -1
  15. package/dist/cdn/DPWHB7KO.js +2 -0
  16. package/dist/cdn/EC4D5ASN.js +2 -0
  17. package/dist/cdn/GHI6WOGS.js +2 -0
  18. package/dist/cdn/GWWTMM5J.js +2 -0
  19. package/dist/cdn/{TXQKK4DJ.js → JMTBKMVF.js} +1 -1
  20. package/dist/cdn/{X6DNIKWY.js → JXWME7J2.js} +1 -1
  21. package/dist/cdn/{JTQN5KMG.js → K4BKCMJ7.js} +1 -1
  22. package/dist/cdn/{LNXO5YIS.js → K6VKF5UM.js} +1 -1
  23. package/dist/cdn/{OTWADB4M.js → LE34WS2E.js} +1 -1
  24. package/dist/cdn/{OIGA7XBZ.js → MAEWWG5A.js} +1 -1
  25. package/dist/cdn/MEMAD5D4.js +2 -0
  26. package/dist/cdn/{HYFFUYAU.js → NLURLVXP.js} +1 -1
  27. package/dist/cdn/{D4UHHQ35.js → NU4RWRS7.js} +1 -1
  28. package/dist/cdn/{HJ3EJZFF.js → OOQF2DBR.js} +1 -1
  29. package/dist/cdn/{3AFEXHZ5.js → PMXKCVOF.js} +1 -1
  30. package/dist/cdn/PWLYBU5B.js +2 -0
  31. package/dist/cdn/{735FTIBP.js → RLH5OKTL.js} +1 -1
  32. package/dist/cdn/{34AP2EEB.js → SBWYOBOD.js} +1 -1
  33. package/dist/cdn/SISTGQAE.js +2 -0
  34. package/dist/cdn/U4PTVQN7.js +2 -0
  35. package/dist/cdn/U4Z5MFI5.js +2 -0
  36. package/dist/cdn/{CKGWDI7B.js → WF4C6JB4.js} +1 -1
  37. package/dist/cdn/WQHAEQUK.js +2 -0
  38. package/dist/cdn/XIZVB6UV.js +2 -0
  39. package/dist/cdn/XMMFL5H3.js +2 -0
  40. package/dist/cdn/{EB5MDEWF.js → XZBAXCY4.js} +1 -1
  41. package/dist/cdn/{MFGUTQRR.js → YEG4ZKJV.js} +1 -1
  42. package/dist/cdn/YPJIALGM.js +2 -0
  43. package/dist/cdn/{KDCSDIUQ.js → ZCI3WQ2I.js} +1 -1
  44. package/dist/cdn/ZJMMAZFG.js +2 -0
  45. package/dist/cdn/assets/layer-replace/t9n/messages.en.json +1 -0
  46. package/dist/cdn/index.js +1 -1
  47. package/dist/cdn/main.css +1 -1
  48. package/dist/chunks/sharedCacheDirective.js +74 -0
  49. package/dist/chunks/toolbar.js +1 -1
  50. package/dist/components/arcgis-histogram/customElement.d.ts +8 -0
  51. package/dist/components/arcgis-histogram/customElement.js +103 -98
  52. package/dist/components/arcgis-html-content/customElement.d.ts +42 -0
  53. package/dist/components/arcgis-html-content/customElement.js +71 -0
  54. package/dist/components/arcgis-html-content/index.d.ts +1 -0
  55. package/dist/components/arcgis-html-content/index.js +1 -0
  56. package/dist/components/arcgis-label-input/customElement.js +1 -1
  57. package/dist/components/arcgis-layer-replace/customElement.d.ts +437 -0
  58. package/dist/components/arcgis-layer-replace/customElement.js +376 -0
  59. package/dist/components/arcgis-layer-replace/index.d.ts +1 -0
  60. package/dist/components/arcgis-layer-replace/index.js +7 -0
  61. package/dist/components/arcgis-slider/customElement.js +522 -443
  62. package/dist/components/arcgis-slider-field/customElement.d.ts +43 -41
  63. package/dist/components/arcgis-slider-field/customElement.js +45 -39
  64. package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +21 -19
  65. package/dist/components/arcgis-slider-histogram-range/customElement.js +28 -22
  66. package/dist/components/arcgis-ticks/customElement.js +8 -8
  67. package/dist/components/arcgis-toolbar-item/customElement.js +1 -1
  68. package/dist/components/arcgis-toolbar-stack/customElement.js +48 -114
  69. package/dist/components/arcgis-value-picker/customElement.d.ts +8 -1
  70. package/dist/components/arcgis-value-picker/customElement.js +25 -21
  71. package/dist/components/arcgis-value-picker/index.js +1 -1
  72. package/dist/components/arcgis-value-picker-combobox/customElement.js +4 -4
  73. package/dist/components/arcgis-value-picker-label/customElement.d.ts +6 -0
  74. package/dist/components/arcgis-value-picker-label/customElement.js +6 -6
  75. package/dist/components/arcgis-value-picker-slider/customElement.js +18 -18
  76. package/dist/docs/api.json +1 -1
  77. package/dist/docs/docs.json +1 -1
  78. package/dist/docs/vscode.css-custom-data.json +1 -1
  79. package/dist/docs/vscode.html-custom-data.json +1 -1
  80. package/dist/docs/web-types.json +1 -1
  81. package/dist/index.d.ts +15 -0
  82. package/dist/index.js +8 -5
  83. package/dist/loader.js +9 -7
  84. package/dist/types/lumina.d.ts +16 -5
  85. package/dist/types/preact.d.ts +18 -5
  86. package/dist/types/react.d.ts +20 -5
  87. package/dist/types/stencil.d.ts +16 -5
  88. package/dist/utils/sharedCacheDirective.d.ts +68 -0
  89. package/package.json +6 -6
  90. package/dist/cdn/5EA7SGHX.js +0 -2
  91. package/dist/cdn/7TCQ52FG.js +0 -2
  92. package/dist/cdn/ATLXGXTH.js +0 -2
  93. package/dist/cdn/BCN6LPOG.js +0 -4
  94. package/dist/cdn/DR2THZQU.js +0 -8208
  95. package/dist/cdn/EM4OQXFS.js +0 -2
  96. package/dist/cdn/GDRW3MIZ.js +0 -2
  97. package/dist/cdn/LLATF73T.js +0 -2
  98. package/dist/cdn/M2J3GPM4.js +0 -2
  99. package/dist/cdn/PJCRMKAM.js +0 -2
  100. package/dist/cdn/QCUF7B3I.js +0 -2
  101. package/dist/cdn/S4XOD4YS.js +0 -2
  102. package/dist/cdn/UIBTY5FF.js +0 -2
  103. package/dist/cdn/WQW7S2RI.js +0 -2
  104. package/dist/cdn/XUPA27AW.js +0 -2
  105. package/dist/cdn/XX2ZCFWI.js +0 -2
  106. package/dist/cdn/ZCVP2N2O.js +0 -2
  107. package/dist/cdn/ZZ4YJXPK.js +0 -2
@@ -17,7 +17,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
17
17
  * @example
18
18
  * ```html
19
19
  * <!-- Numeric field (double) -->
20
- * <arcgis-slider-field field-type="double" min="0" max="100" values="20.5,75.25"></arcgis-slider-field>
20
+ * <arcgis-slider-field field-type="double" min="0" max="100" value="20.5,75.25"></arcgis-slider-field>
21
21
  * ```
22
22
  * @example
23
23
  * ```html
@@ -26,7 +26,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
26
26
  * field-type="date"
27
27
  * min="1704067200000"
28
28
  * max="1735689599000"
29
- * values="1710028800000,1726617600000"
29
+ * value="1710028800000,1726617600000"
30
30
  * ></arcgis-slider-field>
31
31
  * ```
32
32
  * @example
@@ -36,7 +36,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
36
36
  * field-type="timestamp-offset"
37
37
  * min="2024-01-01T00:00:00-05:00"
38
38
  * max="2024-12-31T23:59:59-05:00"
39
- * values="2024-03-10T08:00:00-05:00,2024-09-18T18:30:00-05:00"
39
+ * value="2024-03-10T08:00:00-05:00,2024-09-18T18:30:00-05:00"
40
40
  * ></arcgis-slider-field>
41
41
  * ```
42
42
  * @internal
@@ -176,33 +176,6 @@ export abstract class ArcgisSliderField extends LitElement {
176
176
  * @see [arcgis-slider.showRangeLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#showRangeLabels)
177
177
  */
178
178
  accessor showRangeLabels: boolean;
179
- /**
180
- * Controls when thumb value labels are displayed.
181
- *
182
- * - `"always"`: Always show labels.
183
- * - `"auto"`: Show labels only during interaction.
184
- * - `"hidden"`: Never show labels.
185
- *
186
- * @default "always"
187
- * @see [arcgis-slider.valueLabelsDisplay](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsDisplay)
188
- */
189
- accessor valueLabelsDisplay: ArcgisSlider["valueLabelsDisplay"];
190
- /**
191
- * When `true`, allows editing value labels with keyboard input.
192
- *
193
- * Applies only to: `small-integer`, `integer`, `big-integer`, `single`, `double`, `long`, `oid`.
194
- *
195
- * @default false
196
- * @see [arcgis-slider.valueLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsEditingEnabled)
197
- */
198
- accessor valueLabelsEditingEnabled: boolean;
199
- /**
200
- * Determines whether value labels are placed before or after the track.
201
- *
202
- * @default "start"
203
- * @see [arcgis-slider.valueLabelsPlacement](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsPlacement)
204
- */
205
- accessor valueLabelsPlacement: ArcgisSlider["valueLabelsPlacement"];
206
179
  /**
207
180
  * Comma-delimited slider values, expressed using the format of the current
208
181
  * [fieldType](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#fieldType).
@@ -216,38 +189,67 @@ export abstract class ArcgisSliderField extends LitElement {
216
189
  * @default ""
217
190
  * @see [arcgis-slider.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#values)
218
191
  */
219
- accessor values: string;
192
+ accessor value: string;
220
193
  /**
221
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of dates (YYYY-MM-DD). Attempting to access this property
194
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of dates (YYYY-MM-DD). Attempting to access this property
222
195
  * on a slider with incompatible data, such as number or time only values, will result in the property returning an array of null values. Note that when
223
196
  * this property is accessed, the time of day information that may be present on the slider is stripped away.
224
197
  */
225
- get valuesAsDateOnly(): (string | null)[];
198
+ get valueAsDateOnly(): (string | null)[];
226
199
  /**
227
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of values that match the native type of the property.
200
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of values that match the native type of the property.
228
201
  * For time-only, date-only or timestamp-offset sliders, this property will return an array of strings, and for numeric or date sliders, this property
229
202
  * will return an array of numbers.
230
203
  */
231
- get valuesAsFieldType(): (number | string)[];
204
+ get valueAsFieldType(): (number | string)[];
232
205
  /**
233
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of numbers. When this property is accessed on
206
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of numbers. When this property is accessed on
234
207
  * a slider with temporal data, the resulting array will be formatted as milliseconds since the Unix epoch when the date is available. If only
235
208
  * the time is available, the array will be formatted as ms since midnight. Values that cannot be parsed will become NaN.
236
209
  */
237
- get valuesAsNumbers(): number[];
210
+ get valueAsNumbers(): number[];
238
211
  /**
239
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of times (HH:mm:ss). Attempting to access this property
212
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of times (HH:mm:ss). Attempting to access this property
240
213
  * on a slider with incompatible data, such as number or date only values, will result in the property returning an array of null values. Note that
241
214
  * when this property is accessed, the time is extracted in UTC and the date is stripped away, so an ISO 8601 value of `2024-03-10T08:00:00-05:00` would
242
215
  * simply become `13:00:00`.
243
216
  */
244
- get valuesAsTimeOnly(): (string | null)[];
217
+ get valueAsTimeOnly(): (string | null)[];
245
218
  /**
246
- * Returns the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#values) property converted into an array of UTC timestamps formatted according to the
219
+ * Returns the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#value) property converted into an array of UTC timestamps formatted according to the
247
220
  * ISO 8601 standard. Attempting to access this property on a slider with incompatible data, such as number or time only values,
248
221
  * will result in the property returning an array of null values.
249
222
  */
250
- get valuesAsTimestampOffset(): (string | null)[];
223
+ get valueAsTimestampOffset(): (string | null)[];
224
+ /**
225
+ * Controls when thumb value labels are displayed.
226
+ *
227
+ * - `"always"`: Always show labels.
228
+ * - `"auto"`: Show labels only during interaction.
229
+ * - `"hidden"`: Never show labels.
230
+ *
231
+ * @default "always"
232
+ * @see [arcgis-slider.valueLabelsDisplay](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsDisplay)
233
+ */
234
+ accessor valueLabelsDisplay: ArcgisSlider["valueLabelsDisplay"];
235
+ /**
236
+ * When `true`, allows editing value labels with keyboard input.
237
+ *
238
+ * Applies only to: `small-integer`, `integer`, `big-integer`, `single`, `double`, `long`, `oid`.
239
+ *
240
+ * @default false
241
+ * @see [arcgis-slider.valueLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsEditingEnabled)
242
+ */
243
+ accessor valueLabelsEditingEnabled: boolean;
244
+ /**
245
+ * Determines whether value labels are placed before or after the track.
246
+ *
247
+ * @default "start"
248
+ * @see [arcgis-slider.valueLabelsPlacement](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsPlacement)
249
+ */
250
+ accessor valueLabelsPlacement: ArcgisSlider["valueLabelsPlacement"];
251
+ /** @internal */
252
+ accessor values: string;
251
253
  /**
252
254
  * Fires when the active value changes.
253
255
  *
@@ -4,90 +4,96 @@ import { LitElement as u, createEvent as n } from "@arcgis/lumina";
4
4
  import { css as g, html as c } from "lit";
5
5
  import { u as d } from "../../chunks/useT9n.js";
6
6
  import { g as h } from "../../chunks/strategies.js";
7
- import { createRef as p, ref as v } from "lit/directives/ref.js";
7
+ import { createRef as v, ref as p } from "lit/directives/ref.js";
8
8
  const b = g`:host{display:block;width:100%;height:100%}`, o = "double";
9
9
  class f extends u {
10
10
  constructor() {
11
- super(...arguments), this.#s = p(), this.#t = void 0, this.messages = d({}), this._strategy = h(o), this.disabled = !1, this.fieldType = o, this.fillPlacement = "start", this.layout = "horizontal", this.max = "", this.min = "", this.mirrored = !1, this.popoverLabel = "", this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.showRangeLabels = !1, this.values = "", this.valueLabelsEditingEnabled = !1, this.valueLabelsDisplay = "always", this.valueLabelsPlacement = "start", this.arcgisActiveValueChange = n({ cancelable: !1 }), this.arcgisChange = n({ cancelable: !1 }), this.arcgisInput = n({ cancelable: !1 }), this.arcgisRangeChange = n({ cancelable: !1 });
11
+ super(...arguments), this.#t = v(), this.#a = void 0, this.messages = d({}), this._strategy = h(o), this.disabled = !1, this.fieldType = o, this.fillPlacement = "start", this.layout = "horizontal", this.max = "", this.min = "", this.mirrored = !1, this.popoverLabel = "", this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.showRangeLabels = !1, this.value = "", this.valueLabelsEditingEnabled = !1, this.valueLabelsDisplay = "always", this.valueLabelsPlacement = "start", this.arcgisActiveValueChange = n({ cancelable: !1 }), this.arcgisChange = n({ cancelable: !1 }), this.arcgisInput = n({ cancelable: !1 }), this.arcgisRangeChange = n({ cancelable: !1 });
12
12
  }
13
13
  static {
14
- this.properties = { _strategy: 16, activeValue: 32, disabled: 5, fieldType: 1, fillPlacement: 1, label: 1, labelFormatter: 0, layout: 1, max: 1, messageOverrides: 0, min: 1, mirrored: 5, popoverLabel: 1, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 1, showRangeLabels: 5, values: 1, valueLabelsEditingEnabled: 5, valueLabelsDisplay: 1, valueLabelsPlacement: 1, valuesAsNumbers: 32, valuesAsDateOnly: 32, valuesAsTimeOnly: 32, valuesAsTimestampOffset: 32, valuesAsFieldType: 32 };
14
+ this.properties = { _strategy: 16, activeValue: 32, disabled: 5, fieldType: 1, fillPlacement: 1, label: 1, labelFormatter: 0, layout: 1, max: 1, messageOverrides: 0, min: 1, mirrored: 5, popoverLabel: 1, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 1, showRangeLabels: 5, value: 1, values: 1, valueLabelsEditingEnabled: 5, valueLabelsDisplay: 1, valueLabelsPlacement: 1, valueAsNumbers: 32, valueAsDateOnly: 32, valueAsTimeOnly: 32, valueAsTimestampOffset: 32, valueAsFieldType: 32 };
15
15
  }
16
16
  static {
17
17
  this.styles = b;
18
18
  }
19
- #s;
20
19
  #t;
20
+ #a;
21
21
  get activeValue() {
22
- const e = this.#s.value?.activeValue;
22
+ const e = this.#t.value?.activeValue;
23
23
  return typeof e == "number" ? this._strategy.serialize(e) : e;
24
24
  }
25
- get valuesAsNumbers() {
26
- return this.#e(this.values).map((e) => e ?? NaN);
25
+ get values() {
26
+ return this.value;
27
27
  }
28
- get valuesAsDateOnly() {
29
- return this.#e(this.values).map((e) => e === void 0 ? null : this._strategy.toDateOnly(e));
28
+ set values(e) {
29
+ this.value = e;
30
30
  }
31
- get valuesAsTimeOnly() {
32
- return this.#e(this.values).map((e) => e === void 0 ? null : this._strategy.toTimeOnly(e));
31
+ get valueAsNumbers() {
32
+ return this.#e(this.value).map((e) => e ?? NaN);
33
33
  }
34
- get valuesAsTimestampOffset() {
35
- return this.#e(this.values).map((e) => e === void 0 ? null : this._strategy.toTimestampOffset(e));
34
+ get valueAsDateOnly() {
35
+ return this.#e(this.value).map((e) => e === void 0 ? null : this._strategy.toDateOnly(e));
36
36
  }
37
- get valuesAsFieldType() {
38
- return this.#e(this.values).map((e) => e === void 0 ? NaN : this._strategy.toFieldType(e));
37
+ get valueAsTimeOnly() {
38
+ return this.#e(this.value).map((e) => e === void 0 ? null : this._strategy.toTimeOnly(e));
39
+ }
40
+ get valueAsTimestampOffset() {
41
+ return this.#e(this.value).map((e) => e === void 0 ? null : this._strategy.toTimestampOffset(e));
42
+ }
43
+ get valueAsFieldType() {
44
+ return this.#e(this.value).map((e) => e === void 0 ? NaN : this._strategy.toFieldType(e));
39
45
  }
40
46
  willUpdate(e) {
41
- super.willUpdate(e), e.has("fieldType") && (this._strategy = h(this.fieldType)), (e.has("messages") || e.has("fieldType") || e.has("labelFormatter")) && (this.#t = this.#m(this.messages._lang)), (e.has("values") || e.has("min") || e.has("max") || e.has("fieldType")) && this.#g();
47
+ super.willUpdate(e), e.has("fieldType") && (this._strategy = h(this.fieldType)), (e.has("messages") || e.has("fieldType") || e.has("labelFormatter")) && (this.#a = this.#m(this.messages._lang)), (e.has("value") || e.has("min") || e.has("max") || e.has("fieldType")) && this.#g();
42
48
  }
43
49
  #r(e) {
44
- e.stopPropagation(), this.#a(e.currentTarget.values), this.arcgisInput.emit();
50
+ e.stopPropagation(), this.#s(e.currentTarget.values), this.arcgisInput.emit();
45
51
  }
46
52
  #n(e) {
47
- e.stopPropagation(), this.#a(e.currentTarget.values), this.arcgisChange.emit();
53
+ e.stopPropagation(), this.#s(e.currentTarget.values), this.arcgisChange.emit();
48
54
  }
49
55
  #h(e) {
50
56
  e.stopPropagation(), this.arcgisActiveValueChange.emit();
51
57
  }
52
58
  #o(e) {
53
59
  e.stopPropagation();
54
- const s = e.currentTarget;
55
- this.min = this._strategy.serialize(s.min), this.max = this._strategy.serialize(s.max), this.#a(s.values), this.arcgisRangeChange.emit();
60
+ const t = e.currentTarget;
61
+ this.min = this._strategy.serialize(t.min), this.max = this._strategy.serialize(t.max), this.#s(t.values), this.arcgisRangeChange.emit();
56
62
  }
57
63
  #m(e) {
58
- return (s, a, t) => {
59
- const i = (l) => this._strategy.format(e, l, a, t) ?? t(l);
60
- return this.labelFormatter?.(s, a, i) ?? i(s);
64
+ return (t, s, a) => {
65
+ const i = (l) => this._strategy.format(e, l, s, a) ?? a(l);
66
+ return this.labelFormatter?.(t, s, i) ?? i(t);
61
67
  };
62
68
  }
63
- #a(e) {
64
- this.values = e.map((s) => this._strategy.serialize(s)).join(",");
69
+ #s(e) {
70
+ this.value = e.map((t) => this._strategy.serialize(t)).join(",");
65
71
  }
66
72
  #e(e) {
67
- return e.split(",").map((s) => s.trim()).filter((s) => s.length > 0).map((s) => this._strategy.parse(s));
73
+ return e.split(",").map((t) => t.trim()).filter((t) => t.length > 0).map((t) => this._strategy.parse(t));
68
74
  }
69
75
  #i(e) {
70
- return this.#e(e).filter((s) => Number.isFinite(s));
76
+ return this.#e(e).filter((t) => Number.isFinite(t));
71
77
  }
72
78
  #l(e) {
73
- const s = this._strategy, a = s.parse(this.min), t = s.parse(this.max);
74
- let i = Number.isFinite(a) ? a : void 0, l = Number.isFinite(t) ? t : void 0;
79
+ const t = this._strategy, s = t.parse(this.min), a = t.parse(this.max);
80
+ let i = Number.isFinite(s) ? s : void 0, l = Number.isFinite(a) ? a : void 0;
75
81
  i != null && l != null && i >= l && (i = void 0, l = void 0);
76
- const r = s.resolveRange(e, i, l);
77
- return r.min >= r.max ? s.resolveRange(e, void 0, void 0) : r;
82
+ const r = t.resolveRange(e, i, l);
83
+ return r.min >= r.max ? t.resolveRange(e, void 0, void 0) : r;
78
84
  }
79
- #u(e, s, a) {
80
- return e.map((t) => Math.min(a, Math.max(s, t))).sort((t, i) => t - i);
85
+ #u(e, t, s) {
86
+ return e.map((a) => Math.min(s, Math.max(t, a))).sort((a, i) => a - i);
81
87
  }
82
88
  #g() {
83
- const e = this.#i(this.values), s = this.#l(e), a = this._strategy.serialize(s.min), t = this._strategy.serialize(s.max);
84
- a !== this.min && (this.min = a), t !== this.max && (this.max = t);
85
- const l = this.#u(e, s.min, s.max).map((r) => this._strategy.serialize(r)).join(",");
86
- l !== this.values && (this.values = l);
89
+ const e = this.#i(this.value), t = this.#l(e), s = this._strategy.serialize(t.min), a = this._strategy.serialize(t.max);
90
+ s !== this.min && (this.min = s), a !== this.max && (this.max = a);
91
+ const l = this.#u(e, t.min, t.max).map((r) => this._strategy.serialize(r)).join(",");
92
+ l !== this.value && (this.value = l);
87
93
  }
88
94
  render() {
89
- const e = this.#i(this.values), s = this.#l(e), a = this._strategy.editable, t = this._strategy.steps;
90
- return c`<arcgis-slider .ariaLabel=${this.label} .disabled=${this.disabled} .labelFormatter=${this.#t} .layout=${this.layout} .max=${s.max} .min=${s.min} .mirrored=${this.mirrored} .popoverLabel=${this.popoverLabel} .precision=${this._strategy.precision} .fillPlacement=${this.fillPlacement} .steps=${t} .rangeLabelsEditingEnabled=${a && this.rangeLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .showRangeLabels=${this.showRangeLabels} .valueLabelsDisplay=${this.valueLabelsDisplay} .valueLabelsEditingEnabled=${a && this.valueLabelsEditingEnabled} .valueLabelsPlacement=${this.valueLabelsPlacement} .values=${e} @arcgisChange=${this.#n} @arcgisInput=${this.#r} @arcgisActiveValueChange=${this.#h} @arcgisRangeChange=${this.#o} ${v(this.#s)}><slot name=content-start slot=content-start></slot><slot name=content-end slot=content-end></slot><slot name=popover slot=popover></slot></arcgis-slider>`;
95
+ const e = this.#i(this.value), t = this.#l(e), s = this._strategy.editable, a = this._strategy.steps;
96
+ return c`<arcgis-slider .ariaLabel=${this.label} .disabled=${this.disabled} .labelFormatter=${this.#a} .layout=${this.layout} .max=${t.max} .min=${t.min} .mirrored=${this.mirrored} .popoverLabel=${this.popoverLabel} .precision=${this._strategy.precision} .fillPlacement=${this.fillPlacement} .steps=${a} .rangeLabelsEditingEnabled=${s && this.rangeLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .showRangeLabels=${this.showRangeLabels} .valueLabelsDisplay=${this.valueLabelsDisplay} .valueLabelsEditingEnabled=${s && this.valueLabelsEditingEnabled} .valueLabelsPlacement=${this.valueLabelsPlacement} .values=${e} @arcgisChange=${this.#n} @arcgisInput=${this.#r} @arcgisActiveValueChange=${this.#h} @arcgisRangeChange=${this.#o} ${p(this.#t)}><slot name=content-start slot=content-start></slot><slot name=content-end slot=content-end></slot><slot name=popover slot=popover></slot></arcgis-slider>`;
91
97
  }
92
98
  }
93
99
  m("arcgis-slider-field", f);
@@ -30,25 +30,25 @@ export interface DeclareCssProperties {
30
30
  * [bins](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#bins), [average](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#average), and [standardDeviation](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#standardDeviation)
31
31
  * properties, as well as set the [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#max) bounds for the component.
32
32
  *
33
- * Note that when setting properties manually (such as setting the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#values) property to place thumbs on the slider),
33
+ * Note that when setting properties manually (such as setting the [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#value) property to place thumbs on the slider),
34
34
  * the component expects the inputs to match the format that would be expected by the [fieldType](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#fieldType). Below are a few relevant examples
35
35
  *
36
36
  * @example
37
37
  * ```js
38
38
  * // fieldType === "double"
39
- * histogramSlider.values = "20.5, 75.25";
39
+ * histogramSlider.value = "20.5, 75.25";
40
40
  *
41
41
  * // fieldType === "date"
42
- * histogramSlider.values = "1710028800000, 1726617600000";
42
+ * histogramSlider.value = "1710028800000, 1726617600000";
43
43
  *
44
44
  * // fieldType === "date-only"
45
- * histogramSlider.values = "2024-03-10, 2024-09-18";
45
+ * histogramSlider.value = "2024-03-10, 2024-09-18";
46
46
  *
47
47
  * // fieldType === "time-only"
48
- * histogramSlider.values = "08:15:00, 17:45:00";
48
+ * histogramSlider.value = "08:15:00, 17:45:00";
49
49
  *
50
50
  * // fieldType === "timestamp-offset"
51
- * histogramSlider.values = "2024-03-10T08:00:00-05:00, 2024-09-18T18:30:00-05:00";
51
+ * histogramSlider.value = "2024-03-10T08:00:00-05:00, 2024-09-18T18:30:00-05:00";
52
52
  * ```
53
53
  *
54
54
  * <span id="image-annotations"></span>
@@ -188,7 +188,7 @@ export abstract class ArcgisSliderHistogramRange extends LitElement {
188
188
  * [fillPlacement](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#fillPlacement). For example, when a fillPlacement of `between` is used,
189
189
  * all bars between the slider thumbs will be rendered with the color set here.
190
190
  *
191
- * To change the style of histogram bars representing included data based on the
191
+ * To change the style of histogram bars representing excluded data based on the
192
192
  * [fillPlacement](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#fillPlacement), use the [excludedBarColor](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#excludedBarColor) property.
193
193
  *
194
194
  * @example
@@ -232,7 +232,7 @@ export abstract class ArcgisSliderHistogramRange extends LitElement {
232
232
  * Controls where min/max range labels are positioned relative to the track.
233
233
  *
234
234
  * @default "center"
235
- * @see [arcgis-slider-field.showRangeLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-field/#showRangeLabels)
235
+ * @see [arcgis-slider.showRangeLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#showRangeLabels)
236
236
  * @see [arcgis-slider.rangeLabelsPlacement](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#rangeLabelsPlacement)
237
237
  */
238
238
  accessor rangeLabelsPlacement: ArcgisSlider["rangeLabelsPlacement"];
@@ -265,6 +265,17 @@ export abstract class ArcgisSliderHistogramRange extends LitElement {
265
265
  * ```
266
266
  */
267
267
  accessor standardDeviationCount: number;
268
+ /**
269
+ * A comma delimited string representing absolute thumb positions on the slider.
270
+ * Each value must match the current format expected by the component's [fieldType](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#fieldType) property.
271
+ *
272
+ * @example
273
+ * ```js
274
+ * // fieldType === "double"
275
+ * histogramSlider.value = "20.5, 75.25";
276
+ * ```
277
+ */
278
+ accessor value: string | undefined;
268
279
  /**
269
280
  * Controls when thumb value labels are displayed.
270
281
  *
@@ -285,16 +296,7 @@ export abstract class ArcgisSliderHistogramRange extends LitElement {
285
296
  * @see [arcgis-slider.valueLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#valueLabelsEditingEnabled)
286
297
  */
287
298
  accessor valueLabelsEditingEnabled: boolean;
288
- /**
289
- * A comma delimited string representing absolute thumb positions on the slider.
290
- * Each value must match the current format expected by the component's [fieldType](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#fieldType) property.
291
- *
292
- * @example
293
- * ```js
294
- * // fieldType === "double"
295
- * histogramSlider.values = "20.5, 75.25";
296
- * ```
297
- */
299
+ /** @internal */
298
300
  accessor values: string | undefined;
299
301
  /** Permanently destroys the component. */
300
302
  destroy(): Promise<void>;
@@ -353,7 +355,7 @@ export abstract class ArcgisSliderHistogramRange extends LitElement {
353
355
  updateFromHistogramResult(histogramResult: HistogramResult, statistics?: SummaryStatisticsResult): Promise<void>;
354
356
  /**
355
357
  * Fires when the [activeValue](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#activeValue) changes as a thumb or the range gains or loses focus.
356
- * This event does not fire when [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#values) change.
358
+ * This event does not fire when [value](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#value) change.
357
359
  * Use [@arcgisInput](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#event-arcgisInput) for continuous updates or
358
360
  * [@arcgisChange](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider-histogram-range/#event-arcgisChange) when the interaction is committed.
359
361
  *
@@ -1,21 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c } from "../../chunks/runtime.js";
3
- import { sqlName as p, sqlLiteral as b } from "@arcgis/core/core/sql.js";
4
- import { LitElement as v, createEvent as d, safeStyleMap as f } from "@arcgis/lumina";
3
+ import { sqlName as v, sqlLiteral as p } from "@arcgis/core/core/sql.js";
4
+ import { LitElement as b, createEvent as d, safeStyleMap as f } from "@arcgis/lumina";
5
5
  import { css as $, html as y } from "lit";
6
6
  import { createRef as V, ref as x } from "lit/directives/ref.js";
7
- import { g as u } from "../../chunks/strategies.js";
7
+ import { g as m } from "../../chunks/strategies.js";
8
8
  import { u as E } from "../../chunks/useT9n.js";
9
9
  const L = $`:host{display:block;height:100%;width:100%}arcgis-histogram{align-self:flex-end;height:var(--arcgis-slider-histogram-range-histogram-height, 100%);width:100%}`;
10
- class C extends v {
10
+ class C extends b {
11
11
  constructor() {
12
12
  super(...arguments), this.#e = V(), this.#a = (e, i, o) => {
13
- const h = (a) => u(this.fieldType).format(this.#t._lang, a, "value", o) ?? o(a);
13
+ const h = (a) => m(this.fieldType).format(this.#t._lang, a, "value", o) ?? o(a);
14
14
  return this.labelFormatter?.(e, i, h) ?? h(e);
15
15
  }, this.#t = E(), this.fieldType = "double", this.fillPlacement = "start", this.layout = "horizontal", this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.showRangeLabels = !1, this.standardDeviationCount = 1, this.valueLabelsDisplay = "always", this.valueLabelsEditingEnabled = !1, this.arcgisActiveValueChange = d({ cancelable: !1 }), this.arcgisChange = d({ cancelable: !1 }), this.arcgisInput = d({ cancelable: !1 }), this.arcgisRangeChange = d({ cancelable: !1 });
16
16
  }
17
17
  static {
18
- this.properties = { activeValue: 32, average: 9, bins: 0, dataLines: 0, excludedBarColor: 0, fieldType: 1, fillPlacement: 1, includedBarColor: 0, label: 1, labelFormatter: 0, layout: 1, max: 1, min: 1, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 1, showRangeLabels: 5, standardDeviation: 9, standardDeviationCount: 9, valueLabelsDisplay: 1, valueLabelsEditingEnabled: 5, values: 1 };
18
+ this.properties = { activeValue: 32, average: 9, bins: 0, dataLines: 0, excludedBarColor: 0, fieldType: 1, fillPlacement: 1, includedBarColor: 0, label: 1, labelFormatter: 0, layout: 1, max: 1, min: 1, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 1, showRangeLabels: 5, standardDeviation: 9, standardDeviationCount: 9, valueLabelsDisplay: 1, valueLabelsEditingEnabled: 5, values: 1, value: 1 };
19
19
  }
20
20
  static {
21
21
  this.styles = L;
@@ -26,16 +26,22 @@ class C extends v {
26
26
  get activeValue() {
27
27
  return this.#e.value?.activeValue;
28
28
  }
29
+ get values() {
30
+ return this.value;
31
+ }
32
+ set values(e) {
33
+ this.value = e;
34
+ }
29
35
  async destroy() {
30
36
  await this.manager.destroy();
31
37
  }
32
38
  async generateWhereClause(e) {
33
- const { fillPlacement: i, values: o } = this;
39
+ const { fillPlacement: i, value: o } = this;
34
40
  if (!o?.length)
35
41
  return;
36
- const h = u(this.fieldType), a = o.split(",").map((m) => m.trim()).filter((m) => m.length > 0), n = p(e), l = (m) => {
37
- const s = h.parse(m);
38
- return typeof s == "number" ? b(h.toFieldType(s), { type: this.fieldType }) : void 0;
42
+ const h = m(this.fieldType), a = o.split(",").map((u) => u.trim()).filter((u) => u.length > 0), n = v(e), l = (u) => {
43
+ const s = h.parse(u);
44
+ return typeof s == "number" ? p(h.toFieldType(s), { type: this.fieldType }) : void 0;
39
45
  }, t = a[0] ? l(a[0]) : void 0, r = a.length > 1 && a.at(-1) ? l(a.at(-1)) : void 0;
40
46
  if (!(t == null || a.length > 1 && r == null))
41
47
  switch (i) {
@@ -54,17 +60,17 @@ class C extends v {
54
60
  }
55
61
  }
56
62
  async updateFromHistogramResult(e, i) {
57
- const o = u(this.fieldType);
63
+ const o = m(this.fieldType);
58
64
  this.bins = e.bins, e.minValue != null && (this.min = o.serialize(e.minValue)), e.maxValue != null && (this.max = o.serialize(e.maxValue)), i && (this.average = i.avg ?? void 0, this.standardDeviation = i.stddev ?? void 0);
59
65
  }
60
66
  willUpdate(e) {
61
- (e.has("fieldType") || e.has("max") || e.has("min") || e.has("values")) && this.#s();
67
+ (e.has("fieldType") || e.has("max") || e.has("min") || e.has("value")) && this.#s();
62
68
  }
63
69
  #i() {
64
- const { bins: e, values: i, fillPlacement: o } = this, h = e?.[0], a = e?.at(-1);
70
+ const { bins: e, value: i, fillPlacement: o } = this, h = e?.[0], a = e?.at(-1);
65
71
  if (h == null || a == null || !i)
66
72
  return;
67
- const n = u(this.fieldType), l = i.split(",").map((m) => n.parse(m)).filter((m) => Number.isFinite(m)).sort((m, s) => m - s), t = l.at(0), r = l.at(-1);
73
+ const n = m(this.fieldType), l = i.split(",").map((u) => n.parse(u)).filter((u) => Number.isFinite(u)).sort((u, s) => u - s), t = l.at(0), r = l.at(-1);
68
74
  if (!(t == null || r == null))
69
75
  switch (o) {
70
76
  case "start":
@@ -84,31 +90,31 @@ class C extends v {
84
90
  }
85
91
  }
86
92
  #s() {
87
- const e = u(this.fieldType), i = (this.values ?? "").split(",").map((s) => s.trim()).filter((s) => s.length > 0).map((s) => e.parse(s)).filter((s) => Number.isFinite(s)), o = e.parse(this.min ?? ""), h = e.parse(this.max ?? "");
93
+ const e = m(this.fieldType), i = (this.value ?? "").split(",").map((s) => s.trim()).filter((s) => s.length > 0).map((s) => e.parse(s)).filter((s) => Number.isFinite(s)), o = e.parse(this.min ?? ""), h = e.parse(this.max ?? "");
88
94
  let a = Number.isFinite(o) ? o : void 0, n = Number.isFinite(h) ? h : void 0;
89
95
  a != null && n != null && a >= n && (a = void 0, n = void 0);
90
96
  let l = e.resolveRange(i, a, n);
91
97
  l.min >= l.max && (l = e.resolveRange(i, void 0, void 0));
92
- const t = e.serialize(l.min), r = e.serialize(l.max), m = i.map((s) => Math.min(l.max, Math.max(l.min, s))).sort((s, g) => s - g).map((s) => e.serialize(s)).join(",");
93
- t !== this.min && (this.min = t), r !== this.max && (this.max = r), m !== this.values && (this.values = m);
98
+ const t = e.serialize(l.min), r = e.serialize(l.max), u = i.map((s) => Math.min(l.max, Math.max(l.min, s))).sort((s, g) => s - g).map((s) => e.serialize(s)).join(",");
99
+ t !== this.min && (this.min = t), r !== this.max && (this.max = r), u !== this.value && (this.value = u);
94
100
  }
95
101
  #l(e) {
96
- e.stopPropagation(), this.values = e.currentTarget.values, this.arcgisInput.emit();
102
+ e.stopPropagation(), this.value = e.currentTarget.value, this.arcgisInput.emit();
97
103
  }
98
104
  #n(e) {
99
105
  e.stopPropagation();
100
106
  const i = e.currentTarget;
101
- this.min = i.min, this.max = i.max, this.values = i.values, this.arcgisRangeChange.emit();
107
+ this.min = i.min, this.max = i.max, this.value = i.value, this.arcgisRangeChange.emit();
102
108
  }
103
109
  #r(e) {
104
- e.stopPropagation(), this.values = e.currentTarget.values, this.arcgisChange.emit();
110
+ e.stopPropagation(), this.value = e.currentTarget.value, this.arcgisChange.emit();
105
111
  }
106
112
  #o(e) {
107
113
  e.stopPropagation(), this.arcgisActiveValueChange.emit();
108
114
  }
109
115
  render() {
110
- const e = u(this.fieldType), i = e.parse(this.min ?? ""), o = e.parse(this.max ?? "");
111
- return y`<arcgis-slider-field .fieldType=${this.fieldType} .fillPlacement=${this.fillPlacement} .label=${this.label} .labelFormatter=${this.labelFormatter} .max=${this.max ?? ""} .min=${this.min ?? ""} .layout=${this.layout} @arcgisActiveValueChange=${this.#o} @arcgisChange=${this.#r} @arcgisInput=${this.#l} @arcgisRangeChange=${this.#n} .rangeLabelsEditingEnabled=${this.rangeLabelsEditingEnabled} .valueLabelsEditingEnabled=${this.valueLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .valueLabelsDisplay=${this.valueLabelsDisplay} .showRangeLabels=${this.showRangeLabels} .values=${this.values ?? ""} .valueLabelsPlacement=${this.layout === "horizontal" ? "end" : "start"} ${x(this.#e)}><arcgis-histogram .slot=${this.layout === "horizontal" ? "content-start" : "content-end"} .average=${this.average} .bins=${this.bins} .dataLines=${this.dataLines} .max=${o} .min=${i} .label=${this.label} .layout=${this.layout} .standardDeviation=${this.standardDeviation} .standardDeviationCount=${this.standardDeviationCount} color-blending-enabled .colorStops=${this.#i()} style=${f({
116
+ const e = m(this.fieldType), i = e.parse(this.min ?? ""), o = e.parse(this.max ?? "");
117
+ return y`<arcgis-slider-field .fieldType=${this.fieldType} .fillPlacement=${this.fillPlacement} .label=${this.label} .labelFormatter=${this.labelFormatter} .max=${this.max ?? ""} .min=${this.min ?? ""} .layout=${this.layout} @arcgisActiveValueChange=${this.#o} @arcgisChange=${this.#r} @arcgisInput=${this.#l} @arcgisRangeChange=${this.#n} .rangeLabelsEditingEnabled=${this.rangeLabelsEditingEnabled} .valueLabelsEditingEnabled=${this.valueLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .valueLabelsDisplay=${this.valueLabelsDisplay} .showRangeLabels=${this.showRangeLabels} .value=${this.value ?? ""} .valueLabelsPlacement=${this.layout === "horizontal" ? "end" : "start"} ${x(this.#e)}><arcgis-histogram .slot=${this.layout === "horizontal" ? "content-start" : "content-end"} .average=${this.average} .bins=${this.bins} .dataLines=${this.dataLines} .max=${o} .min=${i} .label=${this.label} .layout=${this.layout} .standardDeviation=${this.standardDeviation} .standardDeviationCount=${this.standardDeviationCount} color-blending-enabled .colorStops=${this.#i()} style=${f({
112
118
  ...this.includedBarColor && { "--arcgis-histogram-stop-color": this.includedBarColor.toCss() },
113
119
  ...this.excludedBarColor && { "--arcgis-histogram-bar-color": this.excludedBarColor.toCss() }
114
120
  })} .labelFormatter=${this.#a}></arcgis-histogram></arcgis-slider-field>`;
@@ -15,7 +15,7 @@ const l = {
15
15
  tickLabelFocused: "tick-label--focused",
16
16
  tickLabelText: "tick-label-text",
17
17
  baseline: "baseline"
18
- }, A = C`:host{display:flex;--arcgis-ticks-font-size: var(--calcite-font-size--2);--arcgis-ticks-font-weight: var(--calcite-font-weight-medium);--arcgis-ticks-gap: 1em;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-transform: translateX(-50%);--arcgis-ticks-tick-width: .125rem}.container{align-items:stretch;display:flex;color:var(--calcite-color-text-2);flex:1;font-weight:var(--arcgis-ticks-font-weight);font-size:var(--arcgis-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--arcgis-ticks-label-text-align, center);width:var(--arcgis-ticks-label-width, var(--labels-container-width, "auto"))}.tick-label-text{display:inline-block;line-height:1}.tick-label--focused .tick-label-text{outline:2px solid var(--calcite-color-focus, var(--calcite-color-brand));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:dir(rtl){.tick-label{direction:rtl}}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:var(--arcgis-ticks-tick-width);height:var(--arcgis-ticks-tick-length);transform:var(--arcgis-ticks-tick-transform)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--arcgis-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--arcgis-ticks-tick-length);height:var(--arcgis-ticks-tick-width);transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--arcgis-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--arcgis-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label-text:hover{text-decoration:underline}.tick:focus{background-color:var(--calcite-color-brand);outline:2px solid var(--calcite-color-focus, var(--calcite-color-brand));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}`;
18
+ }, A = C`:host{display:flex;--arcgis-internal-ticks-color: var(--calcite-color-text-2);--arcgis-ticks-font-size: var(--calcite-font-size--2);--arcgis-ticks-font-weight: var(--calcite-font-weight-medium);--arcgis-ticks-gap: 1em;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-transform: translateX(-50%);--arcgis-ticks-tick-width: .125rem}.container{align-items:stretch;display:flex;color:var(--arcgis-internal-ticks-color);flex:1;font-weight:var(--arcgis-ticks-font-weight);font-size:var(--arcgis-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--arcgis-ticks-label-text-align, center);width:var(--arcgis-ticks-label-width, var(--labels-container-width, "auto"))}.tick-label-text{display:inline-block;line-height:1}.tick-label--focused .tick-label-text{outline:2px solid var(--calcite-color-focus, var(--calcite-color-brand));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:dir(rtl){.tick-label{direction:rtl}}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:var(--arcgis-ticks-tick-width);height:var(--arcgis-ticks-tick-length);transform:var(--arcgis-ticks-tick-transform)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--arcgis-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--arcgis-ticks-tick-length);height:var(--arcgis-ticks-tick-width);transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--arcgis-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--arcgis-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label-text:hover{text-decoration:underline}.tick:focus{background-color:var(--calcite-color-brand);outline:2px solid var(--calcite-color-focus, var(--calcite-color-brand));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}`;
19
19
  class D extends F {
20
20
  constructor() {
21
21
  super(...arguments), this._messages = T({ name: null }), this.#t = (t) => z(this._messages._lang, this._formatOptions).format(t), this._activeTick = null, this._formatOptions = {
@@ -85,14 +85,14 @@ class D extends F {
85
85
  return h`<div class=${o(l.container)} touch-action=none>${this._renderContent()}${this._renderBaseline()}</div>`;
86
86
  }
87
87
  _renderContent() {
88
- const { interpolationExponent: t, max: e, min: i, mode: a, values: r, layout: n, mirrored: c, showLabels: w, interactive: k } = this, g = [], v = [];
88
+ const { interpolationExponent: t, max: e, min: i, mode: a, values: r, layout: n, mirrored: c, showLabels: w, interactive: k } = this, b = [], v = [];
89
89
  for (const [f, d] of P(a, i, e, t, r)) {
90
90
  const p = { [n === "horizontal" ? c ? "right" : "left" : c ? "top" : "bottom"]: `${f}%` }, $ = {
91
91
  [l.tick]: !0,
92
92
  [l.tickMin]: f === 0,
93
93
  [l.tickMax]: f === 100
94
94
  };
95
- if (g.push(h`<div class=${o($)} .role=${k ? "button" : void 0} .ariaLabel=${k ? this._internalLabelFormatter(d) : void 0} style=${m(p)} data-value=${d ?? y} .tabIndex=${k ? 0 : -1} @blur=${this._handleBlur} @click=${this._handleClick} @focus=${this._handleFocus} @keydown=${this._handleKeyDown} @mousedown=${this._handleMouseDown}></div>`), w) {
95
+ if (b.push(h`<div class=${o($)} .role=${k ? "button" : void 0} .ariaLabel=${k ? this._internalLabelFormatter(d) : void 0} style=${m(p)} data-value=${d ?? y} .tabIndex=${k ? 0 : -1} @blur=${this._handleBlur} @click=${this._handleClick} @focus=${this._handleFocus} @keydown=${this._handleKeyDown} @mousedown=${this._handleMouseDown}></div>`), w) {
96
96
  const _ = {
97
97
  [l.tickLabel]: !0,
98
98
  [l.tickLabelFocused]: this._activeTick === String(d)
@@ -100,7 +100,7 @@ class D extends F {
100
100
  v.push(h`<div class=${o(_)} style=${m(p)} data-value=${d ?? y} @click=${this._handleClick}><span class=${o(l.tickLabelText)}>${this._internalLabelFormatter(d)}</span></div>`);
101
101
  }
102
102
  }
103
- return [h`<div class=${o(l.labelsContainer)}>${v}</div>`, h`<div class=${o(l.ticksContainer)}>${g}</div>`];
103
+ return [h`<div class=${o(l.labelsContainer)}>${v}</div>`, h`<div class=${o(l.ticksContainer)}>${b}</div>`];
104
104
  }
105
105
  _renderBaseline() {
106
106
  const { showBaseline: t, layout: e } = this;
@@ -142,7 +142,7 @@ function* P(s, t, e, i, a) {
142
142
  }
143
143
  }
144
144
  }
145
- function b(s, t, e) {
145
+ function g(s, t, e) {
146
146
  return e < s ? s : e > t ? t : e;
147
147
  }
148
148
  function x(s, t, e) {
@@ -150,13 +150,13 @@ function x(s, t, e) {
150
150
  }
151
151
  function B(s, t, e, i = 0) {
152
152
  let a = (e - s) / (t - s);
153
- if (a = b(0, 1, a), Math.abs(i) < 1e-9)
153
+ if (a = g(0, 1, a), Math.abs(i) < 1e-9)
154
154
  return a;
155
155
  const r = 1 + Math.expm1(i) * a;
156
- return a = Math.log(r) / i, b(0, 1, a);
156
+ return a = Math.log(r) / i, g(0, 1, a);
157
157
  }
158
158
  function u(s, t, e, i = 0) {
159
- if (e = b(0, 1, e), Math.abs(i) < 1e-9)
159
+ if (e = g(0, 1, e), Math.abs(i) < 1e-9)
160
160
  return x(s, t, e);
161
161
  const a = Math.expm1(i * e) / Math.expm1(i);
162
162
  return x(s, t, a);
@@ -27,7 +27,7 @@ class C extends v {
27
27
  }
28
28
  proxiedRender(t, e, r) {
29
29
  const l = t.tooltipAppearance, a = this._elementReferenceController.element, d = l !== "native" && e === "collapsed-action", m = l === "native" && e === "collapsed-action", h = l === "calcite-dark" ? "calcite-mode-dark" : void 0, p = x(t), i = this.tooltipText || this.labelText;
30
- return e === "dropdown-item" ? n`<calcite-dropdown-item .disabled=${this.disabled} icon-start=${this.icon ?? c} .iconFlipRtl=${this.iconFlipRtl ? "both" : void 0} .label=${i} @click=${(o) => this._handleDropdownItemClick(o)} .selected=${this.active || r}>${this.labelText}</calcite-dropdown-item>` : n`<calcite-action .active=${this.active} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .label=${i} .loading=${this.loading} @click=${(o) => this._handleActionClick(o)} .scale=${t.scale} .text=${this.labelText} .textEnabled=${e === "expanded-action"} title=${(m ? i : void 0) ?? c} ${$(this._elementReferenceController.ref)}></calcite-action>${d && a ? n`<calcite-tooltip class=${b(h)} close-on-click overlay-positioning=fixed .placement=${p} .referenceElement=${a}><span>${i}</span></calcite-tooltip>` : void 0}`;
30
+ return e === "dropdown-item" ? n`<calcite-dropdown-item .disabled=${this.disabled} icon-start=${this.icon ?? c} .iconFlipRtl=${this.iconFlipRtl ? "both" : void 0} .label=${i} @calciteDropdownItemSelect=${(o) => this._handleDropdownItemClick(o)} .selected=${this.active || r}>${this.labelText}</calcite-dropdown-item>` : n`<calcite-action .active=${this.active} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .label=${i} .loading=${this.loading} @click=${(o) => this._handleActionClick(o)} .scale=${t.scale} .text=${this.labelText} .textEnabled=${e === "expanded-action"} title=${(m ? i : void 0) ?? c} ${$(this._elementReferenceController.ref)}></calcite-action>${d && a ? n`<calcite-tooltip class=${b(h)} close-on-click overlay-positioning=fixed .placement=${p} .referenceElement=${a}><span>${i}</span></calcite-tooltip>` : void 0}`;
31
31
  }
32
32
  _handleActionClick(t) {
33
33
  this.isConnected && (this.lastActivated = /* @__PURE__ */ new Date(), this.arcgisItemSelected?.emit({ element: t.currentTarget }));