@arcgis/common-components 5.1.0-next.6 → 5.1.0-next.61

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 (70) hide show
  1. package/README.md +24 -1
  2. package/dist/cdn/{ZLXAKPUH.js → 3B5FXQSX.js} +1 -1
  3. package/dist/cdn/7AMLQYVM.js +4 -0
  4. package/dist/cdn/7JIHCVH3.js +2 -0
  5. package/dist/cdn/{4CW7U27R.js → 7OF5SF2A.js} +1 -1
  6. package/dist/cdn/{YVSTPEPS.js → ALWVIWUC.js} +1 -1
  7. package/dist/cdn/{C6JAR4IN.js → AQWVYBZF.js} +1 -1
  8. package/dist/cdn/{J5X5TNVW.js → DX3WIISQ.js} +1 -1
  9. package/dist/cdn/{7HQMPKZO.js → E4EVLDYS.js} +1 -1
  10. package/dist/cdn/{ZOWIFVL3.js → HEQCNDQR.js} +1 -1
  11. package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
  12. package/dist/cdn/{AXTSUI2Q.js → IQXW4J56.js} +1 -1
  13. package/dist/cdn/IRXTWEQW.js +2 -0
  14. package/dist/cdn/LYESES6I.js +2 -0
  15. package/dist/cdn/MB7UDGWW.js +2 -0
  16. package/dist/cdn/{3O7GAC23.js → N4R5SMWN.js} +1 -1
  17. package/dist/cdn/{4DCAUWTC.js → NHRIURQU.js} +1 -1
  18. package/dist/cdn/{7PB2GGQH.js → QH2547O7.js} +1 -1
  19. package/dist/cdn/QLSLMEU5.js +2 -0
  20. package/dist/cdn/{XEB2RUND.js → SF2NJOD3.js} +1 -1
  21. package/dist/cdn/{7Y42J3JI.js → YOEHJTF2.js} +1 -1
  22. package/dist/cdn/{23DDMSOB.js → ZCGHCFFN.js} +1 -1
  23. package/dist/cdn/index.js +1 -1
  24. package/dist/chunks/commonFunctions.js +7 -3
  25. package/dist/components/arcgis-ckeditor5/customElement.d.ts +1 -0
  26. package/dist/components/arcgis-ckeditor5/types.d.ts +9 -0
  27. package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +1 -0
  28. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  29. package/dist/components/arcgis-color-input/customElement.d.ts +1 -0
  30. package/dist/components/arcgis-field-info/customElement.d.ts +3 -2
  31. package/dist/components/arcgis-field-info/utils/basic.d.ts +21 -2
  32. package/dist/components/arcgis-field-pick-list/customElement.d.ts +4 -3
  33. package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
  34. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +25 -3
  35. package/dist/components/arcgis-histogram/customElement.d.ts +21 -21
  36. package/dist/components/arcgis-histogram/customElement.js +81 -90
  37. package/dist/components/arcgis-histogram/types.d.ts +1 -3
  38. package/dist/components/arcgis-label-input/customElement.d.ts +6 -6
  39. package/dist/components/arcgis-label-input/customElement.js +22 -17
  40. package/dist/components/arcgis-picker-input/customElement.d.ts +1 -0
  41. package/dist/components/arcgis-picker-input/customElement.js +11 -11
  42. package/dist/components/arcgis-ramp-color/customElement.d.ts +2 -0
  43. package/dist/components/arcgis-ramp-color-break/customElement.d.ts +2 -0
  44. package/dist/components/arcgis-ramp-opacity/customElement.d.ts +1 -0
  45. package/dist/components/arcgis-slider/customElement.d.ts +53 -55
  46. package/dist/components/arcgis-slider/customElement.js +383 -343
  47. package/dist/components/arcgis-slider-input/customElement.d.ts +1 -0
  48. package/dist/components/arcgis-ticks/customElement.d.ts +17 -22
  49. package/dist/components/arcgis-ticks/customElement.js +1 -1
  50. package/dist/components/arcgis-ticks/types.d.ts +23 -0
  51. package/dist/components/arcgis-unique-values-list/customElement.d.ts +14 -5
  52. package/dist/components/arcgis-unique-values-list/customElement.js +158 -151
  53. package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +14 -2
  54. package/dist/docs/api.json +1 -1
  55. package/dist/docs/docs.json +1 -1
  56. package/dist/docs/vscode.html-custom-data.json +1 -1
  57. package/dist/docs/web-types.json +1 -1
  58. package/dist/loader.js +1 -1
  59. package/dist/types/lumina.d.ts +1 -1
  60. package/dist/types/preact.d.ts +1 -1
  61. package/dist/types/react.d.ts +1 -1
  62. package/dist/types/stencil.d.ts +1 -1
  63. package/dist/utils/types.d.ts +24 -7
  64. package/package.json +5 -5
  65. package/dist/cdn/2BDHDUXG.js +0 -2
  66. package/dist/cdn/57I35HLF.js +0 -2
  67. package/dist/cdn/6DQVLQL6.js +0 -2
  68. package/dist/cdn/EKKJN7WZ.js +0 -2
  69. package/dist/cdn/UTXWKXMT.js +0 -4
  70. package/dist/cdn/ZL3E4ZGE.js +0 -2
@@ -1,19 +1,19 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as W } from "../../chunks/runtime.js";
3
3
  import { keyed as J } from "lit/directives/keyed.js";
4
- import { LitElement as Y, createEvent as T, safeClassMap as z, safeStyleMap as F, nothing as I } from "@arcgis/lumina";
4
+ import { LitElement as Y, createEvent as P, safeClassMap as C, safeStyleMap as F, nothing as E } from "@arcgis/lumina";
5
5
  import { makeAccessorController as Q } from "@arcgis/lumina/controllers/accessor";
6
6
  import { slotChangeHasAssignedElement as L, classes as Z, getClosestElement as ee } from "@arcgis/toolkit/dom";
7
- import { css as te, html as _ } from "lit";
8
- import { map as ae } from "lit/directives/map.js";
7
+ import { css as te, html as y } from "lit";
8
+ import { map as ne } from "lit/directives/map.js";
9
9
  import { createRef as H, ref as R } from "lit/directives/ref.js";
10
- import { u as ne } from "../../chunks/useT9n.js";
10
+ import { u as ae } from "../../chunks/useT9n.js";
11
11
  import { g as re } from "../../chunks/locale.js";
12
12
  import ie from "@arcgis/core/core/Accessor.js";
13
- import { property as k, subclass as se } from "@arcgis/core/core/accessorSupport/decorators.js";
13
+ import { property as I, subclass as se } from "@arcgis/core/core/accessorSupport/decorators.js";
14
14
  import { watch as O } from "@arcgis/core/core/reactiveUtils.js";
15
15
  import { generateGuid as B } from "@arcgis/toolkit/string";
16
- const m = {
16
+ const p = {
17
17
  increment: "ArrowUp",
18
18
  incrementHorizontal: "ArrowRight",
19
19
  decrement: "ArrowDown",
@@ -24,37 +24,37 @@ const m = {
24
24
  jumpToEnd: "End",
25
25
  confirmEdit: "Enter"
26
26
  };
27
- function K({ key: n, shiftKey: e }, t, a) {
28
- const i = le(n);
27
+ function K({ key: a, shiftKey: e }, t, n) {
28
+ const i = le(a);
29
29
  if (i == null)
30
30
  return null;
31
- const r = ce(n) || oe(n) && e ? de(t) : 1;
31
+ const r = ce(a) || oe(a) && e ? de(t) : 1;
32
32
  return {
33
- direction: a ? i * -1 : i,
33
+ direction: n ? i * -1 : i,
34
34
  count: r
35
35
  };
36
36
  }
37
- function le(n) {
38
- return n === m.increment || n === m.incrementHorizontal || n === m.pageIncrement ? 1 : n === m.decrement || n === m.decrementHorizontal || n === m.pageDecrement ? -1 : null;
37
+ function le(a) {
38
+ return a === p.increment || a === p.incrementHorizontal || a === p.pageIncrement ? 1 : a === p.decrement || a === p.decrementHorizontal || a === p.pageDecrement ? -1 : null;
39
39
  }
40
- function N(n) {
41
- return n === m.jumpToEnd || n === m.jumpToStart;
40
+ function N(a) {
41
+ return a === p.jumpToEnd || a === p.jumpToStart;
42
42
  }
43
- function oe(n) {
44
- return n === m.increment || n === m.decrement || n === m.decrementHorizontal || n === m.incrementHorizontal;
43
+ function oe(a) {
44
+ return a === p.increment || a === p.decrement || a === p.decrementHorizontal || a === p.incrementHorizontal;
45
45
  }
46
- function ce(n) {
47
- return n === m.pageIncrement || n === m.pageDecrement;
46
+ function ce(a) {
47
+ return a === p.pageIncrement || a === p.pageDecrement;
48
48
  }
49
- function de(n) {
50
- const e = Number.isFinite(n) ? Math.floor(n) : 1;
49
+ function de(a) {
50
+ const e = Number.isFinite(a) ? Math.floor(a) : 1;
51
51
  return Math.max(1, e);
52
52
  }
53
53
  const ue = te`: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-start: 0;--arcgis-slider-internal-value-labels-placement-end: 0;--arcgis-slider-internal-range-labels-placement-center: 0;--arcgis-slider-internal-range-labels-placement-end: 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="start"]){--arcgis-slider-internal-value-labels-placement-start: var(--arcgis-slider-internal-show-value-labels)}:host([value-labels-placement="end"]){--arcgis-slider-internal-value-labels-placement-end: 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="end"]){--arcgis-slider-internal-range-labels-placement-end: 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-start{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-end{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-start{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-end{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([disabled]),:host([disabled][layout="horizontal"]),:host([disabled][layout="vertical"]){.track-range.interactive:after{cursor:default;pointer-events:none}}: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:calc(-1 * var(--arcgis-slider-internal-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-left:1px;writing-mode:vertical-lr}}.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 var(--calcite-animation-timing, .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="start"]){.label{right:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.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-start) * 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-end) * 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="start"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:var(--arcgis-slider-internal-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="end"]){.content{--arcgis-slider-internal-content-start-min-height: calc( var(--arcgis-slider-internal-handle-offset) + var(--arcgis-slider-internal-value-labels-placement-start) * var(--arcgis-slider-internal-label-input-height) );--arcgis-slider-internal-content-end-min-height: calc( var(--arcgis-slider-internal-value-labels-placement-end) * 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-end) * 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="start"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:calc(var(--arcgis-slider-internal-label-input-margin) + var(--arcgis-slider-internal-range-labels-placement-end) * (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))}}}`;
54
- var he = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, w = (n, e, t, a) => {
55
- for (var i = a > 1 ? void 0 : a ? ge(e, t) : e, r = n.length - 1, l; r >= 0; r--)
56
- (l = n[r]) && (i = (a ? l(e, t, i) : l(i)) || i);
57
- return a && i && he(e, t, i), i;
54
+ var he = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, D = (a, e, t, n) => {
55
+ for (var i = n > 1 ? void 0 : n ? ge(e, t) : e, r = a.length - 1, o; r >= 0; r--)
56
+ (o = a[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
57
+ return n && i && he(e, t, i), i;
58
58
  };
59
59
  function me() {
60
60
  return {
@@ -63,44 +63,44 @@ function me() {
63
63
  values: []
64
64
  };
65
65
  }
66
- let x = class extends ie {
66
+ let w = class extends ie {
67
67
  //--------------------------------------------------------------------------
68
68
  //
69
69
  // Lifecycle
70
70
  //
71
71
  //--------------------------------------------------------------------------
72
- constructor(n = {}) {
73
- super({ ...me(), properties: n }), this._entries = /* @__PURE__ */ new Map(), this.precision = 4, this.ready = !1;
72
+ constructor(a = {}) {
73
+ super({ ...me(), properties: a }), this._entries = /* @__PURE__ */ new Map(), this.precision = 4, this.ready = !1;
74
74
  }
75
75
  startup() {
76
- const { precision: n } = this;
77
- let { min: e, max: t, values: a } = this;
78
- t = b(t, n), e = b(e, n), a = a?.map((r) => $(b(r, n), e, t)), this._set("min", e), this._set("max", t), this._set("values", a);
79
- const i = new Map(a?.map((r) => [B(), r]));
76
+ const { precision: a } = this;
77
+ let { min: e, max: t, values: n } = this;
78
+ t = x(t, a), e = x(e, a), n = n?.map((r) => T(x(r, a), e, t)), this._set("min", e), this._set("max", t), this._set("values", n);
79
+ const i = new Map(n?.map((r) => [B(), r]));
80
80
  this._entries = i, O(
81
81
  () => this.min,
82
82
  (r) => {
83
- const l = this.values;
84
- r != null && l?.length && l.some((s) => s < r) && (this._entries.forEach((s, o) => {
85
- s < r && this._entries.set(o, r);
83
+ const o = this.values;
84
+ r != null && o?.length && o.some((s) => s < r) && (this._entries.forEach((s, l) => {
85
+ s < r && this._entries.set(l, r);
86
86
  }), this._updatesValues());
87
87
  },
88
88
  { sync: !0 }
89
89
  ), O(
90
90
  () => this.max,
91
91
  (r) => {
92
- const l = this.values;
93
- r != null && l?.length && l.some((s) => s > r) && (this._entries.forEach((s, o) => {
94
- s > r && this._entries.set(o, r);
92
+ const o = this.values;
93
+ r != null && o?.length && o.some((s) => s > r) && (this._entries.forEach((s, l) => {
94
+ s > r && this._entries.set(l, r);
95
95
  }), this._updatesValues());
96
96
  },
97
97
  { sync: !0 }
98
98
  ), O(
99
99
  () => this.precision,
100
100
  (r) => {
101
- const { min: l, max: s, values: o } = this;
102
- this._set("min", b(l, r)), this._set("max", b(s, r)), o?.length && (this._entries.forEach((c, d) => {
103
- this._entries.set(d, b(c, r));
101
+ const { min: o, max: s, values: l } = this;
102
+ this._set("min", x(o, r)), this._set("max", x(s, r)), l?.length && (this._entries.forEach((c, d) => {
103
+ this._entries.set(d, x(c, r));
104
104
  }), this._updatesValues());
105
105
  },
106
106
  { sync: !0 }
@@ -109,40 +109,40 @@ let x = class extends ie {
109
109
  get entries() {
110
110
  return this._entries;
111
111
  }
112
- set max(n) {
112
+ set max(a) {
113
113
  if (!this.ready) {
114
- this._set("max", n);
114
+ this._set("max", a);
115
115
  return;
116
116
  }
117
- const e = this._get("max"), t = b(n, this.precision);
117
+ const e = this._get("max"), t = x(a, this.precision);
118
118
  e !== t && this._set("max", t);
119
119
  }
120
- set min(n) {
120
+ set min(a) {
121
121
  if (!this.ready) {
122
- this._set("min", n);
122
+ this._set("min", a);
123
123
  return;
124
124
  }
125
- const e = this._get("min"), t = b(n, this.precision);
125
+ const e = this._get("min"), t = x(a, this.precision);
126
126
  e !== t && this._set("min", t);
127
127
  }
128
- set values(n) {
128
+ set values(a) {
129
129
  if (!this.ready) {
130
- this._set("values", n);
130
+ this._set("values", a);
131
131
  return;
132
132
  }
133
133
  const e = this._get("values");
134
- if (n = n?.map((a) => $(b(a, this.precision), this.min, this.max)).sort((a, i) => a - i), e && n && e.length === n.length && e.every((a, i) => a === n[i]))
134
+ if (a = a?.map((n) => T(x(n, this.precision), this.min, this.max)).sort((n, i) => n - i), e && a && e.length === a.length && e.every((n, i) => n === a[i]))
135
135
  return;
136
- const t = new Map(n?.map((a) => [B(), a]));
137
- this._entries = t, this._set("values", n);
136
+ const t = new Map(a?.map((n) => [B(), n]));
137
+ this._entries = t, this._set("values", a);
138
138
  }
139
139
  //--------------------------------------------------------------------------
140
140
  //
141
141
  // Public Methods
142
142
  //
143
143
  //--------------------------------------------------------------------------
144
- getValue(n) {
145
- return this._entries.get(n);
144
+ getValue(a) {
145
+ return this._entries.get(a);
146
146
  }
147
147
  /**
148
148
  * Updates a thumb [value](#values) based on the provided index. The provided value
@@ -151,304 +151,344 @@ let x = class extends ie {
151
151
  *
152
152
  * @returns `true` if the value was changed, otherwise `false`.
153
153
  */
154
- setValue(n, e) {
154
+ setValue(a, e) {
155
155
  if (this.values == null)
156
156
  return !1;
157
- const { min: t, max: a } = this, i = this._entries.get(n), r = $(b(e, this.precision), t, a);
158
- return i === r ? !1 : (this._entries.set(n, r), this._updatesValues(), !0);
157
+ const { min: t, max: n } = this, i = this._entries.get(a), r = T(x(e, this.precision), t, n);
158
+ return i === r ? !1 : (this._entries.set(a, r), this._updatesValues(), !0);
159
159
  }
160
- setValues(n) {
160
+ setValues(a) {
161
161
  if (this.values == null)
162
162
  return !1;
163
163
  let e = !1;
164
- const { min: t, max: a } = this;
165
- for (const [i, r] of n) {
166
- const l = this._entries.get(i), s = $(b(r, this.precision), t, a);
167
- l !== s && (e = !0, this._entries.set(i, s));
164
+ const { min: t, max: n } = this;
165
+ for (const [i, r] of a) {
166
+ const o = this._entries.get(i), s = T(x(r, this.precision), t, n);
167
+ o !== s && (e = !0, this._entries.set(i, s));
168
168
  }
169
169
  return e ? (this._updatesValues(), !0) : !1;
170
170
  }
171
171
  _updatesValues() {
172
- const n = Array.from(this._entries.values()).sort((e, t) => e - t);
173
- this._set("values", n);
172
+ const a = Array.from(this._entries.values()).sort((e, t) => e - t);
173
+ this._set("values", a);
174
174
  }
175
175
  };
176
- w([
177
- k()
178
- ], x.prototype, "_entries", 2);
179
- w([
180
- k({ readOnly: !0 })
181
- ], x.prototype, "entries", 1);
182
- w([
183
- k()
184
- ], x.prototype, "max", 1);
185
- w([
186
- k()
187
- ], x.prototype, "min", 1);
188
- w([
189
- k({ cast: (n) => $(n, 0, 20) })
190
- ], x.prototype, "precision", 2);
191
- w([
192
- k({ readOnly: !0 })
193
- ], x.prototype, "ready", 2);
194
- w([
195
- k()
196
- ], x.prototype, "values", 1);
197
- x = w([
176
+ D([
177
+ I()
178
+ ], w.prototype, "_entries", 2);
179
+ D([
180
+ I({ readOnly: !0 })
181
+ ], w.prototype, "entries", 1);
182
+ D([
183
+ I()
184
+ ], w.prototype, "max", 1);
185
+ D([
186
+ I()
187
+ ], w.prototype, "min", 1);
188
+ D([
189
+ I({ cast: (a) => T(a, 0, 20) })
190
+ ], w.prototype, "precision", 2);
191
+ D([
192
+ I({ readOnly: !0 })
193
+ ], w.prototype, "ready", 2);
194
+ D([
195
+ I()
196
+ ], w.prototype, "values", 1);
197
+ w = D([
198
198
  se("esri.widgets.Slider.SliderData")
199
- ], x);
200
- function $(n, e, t) {
201
- return Math.min(Math.max(n, e), t);
199
+ ], w);
200
+ function T(a, e, t) {
201
+ return Math.min(Math.max(a, e), t);
202
202
  }
203
- function b(n, e) {
204
- return Number.parseFloat(n.toFixed(e));
203
+ function x(a, e) {
204
+ return Number.parseFloat(a.toFixed(e));
205
205
  }
206
206
  class fe {
207
207
  constructor(e) {
208
208
  this.steps = e, this.minIndex = 0, this.maxIndex = this.steps.length - 1;
209
209
  }
210
210
  indexToValue(e) {
211
- return this.steps[E(e, this.minIndex, this.maxIndex)];
211
+ return this.steps[k(e, this.minIndex, this.maxIndex)];
212
212
  }
213
213
  valueToIndex(e) {
214
214
  const t = this.steps.indexOf(e);
215
215
  return t !== -1 ? t : this.steps.reduce(
216
- (a, i, r, l) => Math.abs(i - e) < Math.abs(l[a] - e) ? r : a
216
+ (n, i, r, o) => Math.abs(i - e) < Math.abs(o[n] - e) ? r : n,
217
+ 0
217
218
  );
218
219
  }
220
+ getClosestStepDistances(e, t) {
221
+ if (t <= 0)
222
+ return [];
223
+ const n = [];
224
+ for (let i = this.minIndex; i <= this.maxIndex; i++) {
225
+ const r = this.indexToValue(i), o = Math.abs(r - e);
226
+ let s = !1;
227
+ for (let l = 0; l < n.length; l++)
228
+ if (o < n[l].dist) {
229
+ n.splice(l, 0, { idx: i, value: r, dist: o }), s = !0;
230
+ break;
231
+ }
232
+ !s && n.length < t && n.push({ idx: i, value: r, dist: o }), n.length > t && (n.length = t);
233
+ }
234
+ return n;
235
+ }
219
236
  }
220
237
  class pe {
221
- constructor(e, t, a) {
222
- this.min = e, this.max = t, this.stepSize = a, this.minIndex = 0, this.maxIndex = Math.round((this.max - this.min) / this.stepSize);
238
+ constructor(e, t, n) {
239
+ this.min = e, this.max = t, this.stepSize = n, this.minIndex = 0, this.maxIndex = Math.round((this.max - this.min) / this.stepSize);
223
240
  }
224
241
  indexToValue(e) {
225
- return this.min + E(e, this.minIndex, this.maxIndex) * this.stepSize;
242
+ return this.min + k(e, this.minIndex, this.maxIndex) * this.stepSize;
226
243
  }
227
244
  valueToIndex(e) {
228
- return e = E(e, this.min, this.max), Math.round((e - this.min) / this.stepSize);
245
+ return e = k(e, this.min, this.max), Math.round((e - this.min) / this.stepSize);
246
+ }
247
+ getClosestStepDistances(e, t) {
248
+ if (t <= 0)
249
+ return [];
250
+ const n = [], i = this.minIndex, r = this.maxIndex, s = (k(e, this.min, this.max) - this.min) / this.stepSize;
251
+ let l = Math.floor(s), c = l + 1;
252
+ for (; n.length < t && (l >= i || c <= r); ) {
253
+ if (l < i) {
254
+ const h = this.indexToValue(c);
255
+ n.push({ idx: c, value: h, dist: Math.abs(h - e) }), c++;
256
+ continue;
257
+ }
258
+ if (c > r) {
259
+ const h = this.indexToValue(l);
260
+ n.push({ idx: l, value: h, dist: Math.abs(h - e) }), l--;
261
+ continue;
262
+ }
263
+ const d = this.indexToValue(l), u = this.indexToValue(c), g = Math.abs(d - e), f = Math.abs(u - e);
264
+ g <= f ? (n.push({ idx: l, value: d, dist: g }), l--) : (n.push({ idx: c, value: u, dist: f }), c++);
265
+ }
266
+ return n;
229
267
  }
230
268
  }
231
- function ve(n) {
232
- if (n.steps == null)
269
+ function ve(a) {
270
+ if (a.steps == null)
233
271
  return null;
234
- const e = n.steps;
235
- return Array.isArray(e) ? e.length === 0 ? null : new fe(e) : new pe(n.min, n.max, e);
272
+ const e = a.steps;
273
+ return Array.isArray(e) ? e.length === 0 ? null : new fe(e) : e <= 0 ? null : new pe(a.min, a.max, e);
236
274
  }
237
- function be(n, e, t) {
238
- if (n == null) {
275
+ function be(a, e, t) {
276
+ if (a == null) {
239
277
  const s = /* @__PURE__ */ new Map();
240
- for (const [o, c] of e.entries())
241
- s.set(o, c + t);
278
+ for (const [l, c] of e.entries())
279
+ s.set(l, c + t);
242
280
  return s;
243
281
  }
244
- const a = e.size, i = Array.from(e.entries()).map(([s, o]) => {
245
- const c = o + t, d = [];
246
- for (let u = n.minIndex; u <= n.maxIndex; u++) {
247
- const h = n.indexToValue(u), f = Math.abs(h - c);
248
- let p = !1;
249
- for (let v = 0; v < d.length; v++)
250
- if (f < d[v].dist) {
251
- d.splice(v, 0, { idx: u, value: h, dist: f }), p = !0;
252
- break;
253
- }
254
- !p && d.length < a && d.push({ idx: u, value: h, dist: f }), d.length > a && (d.length = a);
255
- }
282
+ const n = e.size, i = Array.from(e.entries()).map(([s, l]) => {
283
+ const c = l + t, d = a.getClosestStepDistances(c, n);
256
284
  return { uuid: s, stepDistances: d };
257
- }), r = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
258
- i.sort((s, o) => s.stepDistances[0].dist - o.stepDistances[0].dist);
285
+ }), r = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
286
+ i.sort((s, l) => s.stepDistances[0].dist - l.stepDistances[0].dist);
259
287
  for (const s of i) {
260
- const o = s.stepDistances.find((c) => !r.has(c.idx));
261
- o ? (r.add(o.idx), l.set(s.uuid, o.value)) : l.set(s.uuid, e.get(s.uuid));
288
+ const l = s.stepDistances.find((c) => !r.has(c.idx));
289
+ l ? (r.add(l.idx), o.set(s.uuid, l.value)) : o.set(s.uuid, e.get(s.uuid));
262
290
  }
263
- return l;
291
+ return o;
264
292
  }
265
- function U(n, e, t, a, i) {
293
+ function U(a, e, t, n, i) {
266
294
  const r = e.get(t) ?? 0;
267
- if (!n)
268
- return r + a;
269
- const l = r + a, s = /* @__PURE__ */ new Set();
295
+ if (!a)
296
+ return r + n;
297
+ const o = r + n, s = a.minIndex, l = a.maxIndex, c = /* @__PURE__ */ new Set();
270
298
  if (!i)
271
- for (const [d, u] of e.entries())
272
- d !== t && s.add(n.valueToIndex(u));
273
- let o = null, c = 1 / 0;
274
- for (let d = n.minIndex; d <= n.maxIndex; d++) {
275
- if (s.has(d))
276
- continue;
277
- const u = n.indexToValue(d), h = Math.abs(u - l);
278
- h < c && (c = h, o = d);
279
- }
280
- return o == null ? r : n.indexToValue(o);
281
- }
282
- function _e(n, e, t, a = 1) {
283
- const i = q(a);
284
- let r = e, l = !1;
299
+ for (const [h, v] of e.entries())
300
+ h !== t && c.add(a.valueToIndex(v));
301
+ const d = k(a.valueToIndex(o), s, l);
302
+ if (!c.has(d))
303
+ return a.indexToValue(d);
304
+ let u = null, g = 1 / 0;
305
+ const f = Math.min(Math.max(d - s, l - d), c.size + 1);
306
+ for (let h = 1; h <= f; h++) {
307
+ const v = d - h;
308
+ if (v >= s && !c.has(v)) {
309
+ const m = a.indexToValue(v), b = Math.abs(m - o);
310
+ u = v, g = b;
311
+ }
312
+ const _ = d + h;
313
+ if (_ <= l && !c.has(_)) {
314
+ const m = a.indexToValue(_), b = Math.abs(m - o);
315
+ (u == null || b < g) && (u = _, g = b);
316
+ }
317
+ if (u != null)
318
+ return a.indexToValue(u);
319
+ }
320
+ return u == null ? r : a.indexToValue(u);
321
+ }
322
+ function _e(a, e, t, n = 1) {
323
+ const i = q(n);
324
+ let r = e, o = !1;
285
325
  for (let s = 0; s < i; s++) {
286
- const o = ye(n, r, t);
287
- if (l ||= o.changed, r = o.entries, !o.changed)
326
+ const l = ye(a, r, t);
327
+ if (o ||= l.changed, r = l.entries, !l.changed)
288
328
  break;
289
329
  }
290
- return { changed: l, entries: r };
330
+ return { changed: o, entries: r };
291
331
  }
292
- function xe(n, e, t, a, i = 1) {
332
+ function xe(a, e, t, n, i = 1) {
293
333
  const r = q(i);
294
334
  if (r === 1)
295
- return A(n, e, t, a);
296
- const l = new Map(e);
297
- let s = l.get(t);
298
- for (let o = 0; o < r; o++) {
299
- const c = A(n, l, t, a);
335
+ return A(a, e, t, n);
336
+ const o = new Map(e);
337
+ let s = o.get(t);
338
+ for (let l = 0; l < r; l++) {
339
+ const c = A(a, o, t, n);
300
340
  if (c === s)
301
341
  break;
302
- s = c, l.set(t, s);
342
+ s = c, o.set(t, s);
303
343
  }
304
344
  return s;
305
345
  }
306
- function q(n) {
307
- const e = Number.isFinite(n) ? Math.floor(n) : 1;
346
+ function q(a) {
347
+ const e = Number.isFinite(a) ? Math.floor(a) : 1;
308
348
  return Math.max(1, e);
309
349
  }
310
- function ye(n, e, t) {
311
- const a = /* @__PURE__ */ new Map(), i = t > 0 ? De : G, r = Array.from(e).sort((o, c) => i(o[1], c[1]));
312
- let l = !1, s = !0;
313
- for (const [o, c] of r)
314
- if (a.set(o, c), s) {
315
- const d = A(n, a, o, t);
316
- c === d && (s = !1), l ||= s, a.set(o, d);
350
+ function ye(a, e, t) {
351
+ const n = /* @__PURE__ */ new Map(), i = t > 0 ? De : G, r = Array.from(e).sort((l, c) => i(l[1], c[1]));
352
+ let o = !1, s = !0;
353
+ for (const [l, c] of r)
354
+ if (n.set(l, c), s) {
355
+ const d = A(a, n, l, t);
356
+ c === d && (s = !1), o ||= s, n.set(l, d);
317
357
  }
318
- return { changed: l, entries: a };
358
+ return { changed: o, entries: n };
319
359
  }
320
- function A(n, e, t, a) {
321
- const { allowValuesOverlap: i, stepsProvider: r, resolution: l, min: s, max: o } = n, c = e.get(t);
322
- if (a = a > 0 ? 1 : -1, !r) {
323
- let g = E(c + a * l, s, o);
360
+ function A(a, e, t, n) {
361
+ const { allowValuesOverlap: i, stepsProvider: r, resolution: o, min: s, max: l } = a, c = e.get(t);
362
+ if (n = n > 0 ? 1 : -1, !r) {
363
+ let m = k(c + n * o, s, l);
324
364
  if (i)
325
- return g;
326
- const y = /* @__PURE__ */ new Set();
327
- for (const [P, C] of e)
328
- P !== t && y.add(C);
329
- for (; y.has(g) && g <= o && g >= s; )
330
- g = E(g + a * l, s, o);
331
- return y.has(g) || g > o || g < s ? c : g;
365
+ return m;
366
+ const b = /* @__PURE__ */ new Set();
367
+ for (const [$, M] of e)
368
+ $ !== t && b.add(M);
369
+ for (; b.has(m) && m <= l && m >= s; )
370
+ m = k(m + n * o, s, l);
371
+ return b.has(m) || m > l || m < s ? c : m;
332
372
  }
333
373
  const d = r.valueToIndex(c);
334
374
  if (d === -1)
335
375
  return c;
336
376
  if (i) {
337
- const g = E(d + a, r.minIndex, r.maxIndex);
338
- return r.indexToValue(g);
377
+ const m = k(d + n, r.minIndex, r.maxIndex);
378
+ return r.indexToValue(m);
339
379
  }
340
380
  const u = /* @__PURE__ */ new Set();
341
- for (const [g, y] of e)
342
- g !== t && u.add(r.valueToIndex(y));
343
- let h = d, f = !1;
344
- const p = r.minIndex, v = r.maxIndex;
345
- let D = 0;
346
- for (; D < Math.abs(v - p) && (h += a, !(h < p || h > v)); ) {
347
- if (!u.has(h)) {
381
+ for (const [m, b] of e)
382
+ m !== t && u.add(r.valueToIndex(b));
383
+ let g = d, f = !1;
384
+ const h = r.minIndex, v = r.maxIndex;
385
+ let _ = 0;
386
+ for (; _ < Math.abs(v - h) && (g += n, !(g < h || g > v)); ) {
387
+ if (!u.has(g)) {
348
388
  f = !0;
349
389
  break;
350
390
  }
351
- D++;
391
+ _++;
352
392
  }
353
- return f ? r.indexToValue(h) : c;
393
+ return f ? r.indexToValue(g) : c;
354
394
  }
355
- function we(n, e, t, a) {
356
- const { allowValuesOverlap: i, stepsProvider: r, resolution: l, min: s, max: o } = n, c = e.get(t);
357
- if (a = a > 0 ? 1 : -1, !r) {
395
+ function we(a, e, t, n) {
396
+ const { allowValuesOverlap: i, stepsProvider: r, resolution: o, min: s, max: l } = a, c = e.get(t);
397
+ if (n = n > 0 ? 1 : -1, !r) {
358
398
  const f = new Set(
359
399
  Array.from(e).filter(([v]) => v !== t).map(([, v]) => v)
360
400
  );
361
- let p = a > 0 ? o : s;
401
+ let h = n > 0 ? l : s;
362
402
  if (i)
363
- return p;
364
- for (; f.has(p); )
365
- if (p -= a * l, a > 0 && p > o || a < 0 && p < s) {
366
- p = c;
403
+ return h;
404
+ for (; f.has(h); )
405
+ if (h -= n * o, n > 0 && h > l || n < 0 && h < s) {
406
+ h = c;
367
407
  break;
368
408
  }
369
- return p;
409
+ return h;
370
410
  }
371
411
  if (i)
372
- return a > 0 ? r.indexToValue(r.maxIndex) : r.indexToValue(r.minIndex);
412
+ return n > 0 ? r.indexToValue(r.maxIndex) : r.indexToValue(r.minIndex);
373
413
  const d = r.valueToIndex(c);
374
414
  if (d === -1)
375
415
  return c;
376
416
  const u = new Set(
377
417
  Array.from(e).filter(([f]) => f !== t).map(([, f]) => r.valueToIndex(f))
378
418
  );
379
- let h = a > 0 ? r.maxIndex : r.minIndex;
380
- for (; u.has(h); )
381
- if (h -= a, a > 0 && h > o || a < 0 && h < s) {
382
- h = d;
419
+ let g = n > 0 ? r.maxIndex : r.minIndex;
420
+ for (; u.has(g); )
421
+ if (g -= n, n > 0 && g > l || n < 0 && g < s) {
422
+ g = d;
383
423
  break;
384
424
  }
385
- return r.indexToValue(h);
425
+ return r.indexToValue(g);
386
426
  }
387
- function ke(n, e, t) {
388
- const { stepsProvider: a, min: i, max: r } = n, l = /* @__PURE__ */ new Map(), s = Array.from(e).sort((c, d) => G(c[1], d[1]));
389
- if (a) {
427
+ function ke(a, e, t) {
428
+ const { stepsProvider: n, min: i, max: r } = a, o = /* @__PURE__ */ new Map(), s = Array.from(e).sort((c, d) => G(c[1], d[1]));
429
+ if (n) {
390
430
  let c = 0;
391
431
  if (t > 0) {
392
- const d = s[s.length - 1], u = a.valueToIndex(d[1]);
393
- c = a.maxIndex - u;
432
+ const d = s[s.length - 1], u = n.valueToIndex(d[1]);
433
+ c = n.maxIndex - u;
394
434
  } else {
395
- const d = s[0], u = a.valueToIndex(d[1]);
396
- c = a.minIndex - u;
435
+ const d = s[0], u = n.valueToIndex(d[1]);
436
+ c = n.minIndex - u;
397
437
  }
398
438
  if (c === 0)
399
439
  for (const [d, u] of s)
400
- l.set(d, u);
440
+ o.set(d, u);
401
441
  for (const [d, u] of s) {
402
- const h = a.indexToValue(a.valueToIndex(u) + c);
403
- l.set(d, h);
442
+ const g = n.indexToValue(n.valueToIndex(u) + c);
443
+ o.set(d, g);
404
444
  }
405
- return l;
445
+ return o;
406
446
  }
407
- let o = 0;
447
+ let l = 0;
408
448
  if (t > 0) {
409
449
  const c = s[s.length - 1];
410
- o = r - c[1];
450
+ l = r - c[1];
411
451
  } else {
412
452
  const c = s[0];
413
- o = i - c[1];
453
+ l = i - c[1];
414
454
  }
415
455
  for (const [c, d] of s)
416
- l.set(c, d + o);
417
- return l;
456
+ o.set(c, d + l);
457
+ return o;
418
458
  }
419
- function G(n, e) {
420
- return n - e;
459
+ function G(a, e) {
460
+ return a - e;
421
461
  }
422
- function De(n, e) {
423
- return e - n;
462
+ function De(a, e) {
463
+ return e - a;
424
464
  }
425
- function E(n, e, t) {
426
- return Math.max(e, Math.min(t, n));
465
+ function k(a, e, t) {
466
+ return Math.max(e, Math.min(t, a));
427
467
  }
428
- const Ie = Q(x);
468
+ const Ie = Q(w);
429
469
  class Ee extends Y {
430
470
  constructor() {
431
- super(...arguments), this._popoverElement = H(), this._trackElement = H(), this.messages = ne({}), this._onPointerMoveDragUpdate = (e) => {
471
+ super(...arguments), this._stepsProvider = null, this._popoverElement = H(), this._trackElement = H(), this.messages = ae({}), this._onPointerMoveDragUpdate = (e) => {
432
472
  this._updateDrag(this._mapEventToRange(e));
433
473
  }, this._onPointerUpDragEnd = (e) => {
434
- M(e) && this._endDrag();
474
+ S(e) && this._endDrag();
435
475
  }, this._onPointerCancelDragEnd = () => {
436
476
  this._endDrag();
437
- }, this._formatLabel = (e, t, a) => {
477
+ }, this._formatLabel = (e, t, n) => {
438
478
  const i = re(this.messages._lang, t), r = this.labelFormatter;
439
479
  if (!r)
440
- return i.format(a);
441
- const l = r(a, e, (s) => i.format(s));
442
- return l ?? i.format(a);
480
+ return i.format(n);
481
+ const o = r(n, e, (s) => i.format(s));
482
+ return o ?? i.format(n);
443
483
  }, this._numberFormatOptions = {}, this._createFormatter = (e, t) => this._formatLabel.bind(this, e, t), this._minFormatter = this._createFormatter("min", this._numberFormatOptions), this._maxFormatter = this._createFormatter("max", this._numberFormatOptions), this._valueFormatter = this._createFormatter("value", this._numberFormatOptions), this._resizeObserver = new ResizeObserver(() => {
444
484
  this._layoutLabelInputs();
445
- }), this._labelInputsUpdateComplete = null, this._dragInfo = null, this._hasPopoverContent = !1, this._hasContentStart = !1, this._hasContentEnd = !1, this._sliderData = Ie(this), this.allowValuesOverlap = !1, this.autoDestroyDisabled = !1, this.disabled = !1, this.fillPlacement = "start", this.layout = "horizontal", this.max = this._sliderData.max, this.min = this._sliderData.min, this.mirrored = !1, this.popoverLabel = "", this.popoverPlacement = "start", this.precision = this._sliderData.precision, this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.segmentsDraggingDisabled = !1, this.showRangeLabels = !1, this.valueLabelsDisplay = "hidden", this.valueLabelsPlacement = "start", this.valueLabelsEditingEnabled = !1, this.keyboardLargeStep = 10, this.values = this._sliderData.values, this.arcgisActiveValueChange = T({ cancelable: !1 }), this.arcgisChange = T({ cancelable: !1 }), this.arcgisInput = T({ cancelable: !1 }), this.arcgisRangeChange = T({ cancelable: !1 });
485
+ }), this._labelInputsUpdateComplete = null, this._dragInfo = null, this._hasPopoverContent = !1, this._hasContentStart = !1, this._hasContentEnd = !1, this._activePart = null, this._sliderData = Ie(this), this.allowValuesOverlap = !1, this.autoDestroyDisabled = !1, this.disabled = !1, this.fillPlacement = "start", this.layout = "horizontal", this.max = this._sliderData.max, this.min = this._sliderData.min, this.mirrored = !1, this.popoverLabel = "", this.popoverPlacement = "start", this.precision = this._sliderData.precision, this.rangeLabelsEditingEnabled = !1, this.rangeLabelsPlacement = "center", this.segmentsDraggingDisabled = !1, this.showRangeLabels = !1, this.valueLabelsDisplay = "hidden", this.valueLabelsPlacement = "start", this.valueLabelsEditingEnabled = !1, this.keyboardLargeStep = 10, this.values = this._sliderData.values, this.arcgisActiveValueChange = P({ cancelable: !1 }), this.arcgisChange = P({ cancelable: !1 }), this.arcgisInput = P({ cancelable: !1 }), this.arcgisRangeChange = P({ cancelable: !1 });
446
486
  }
447
487
  static {
448
488
  this.properties = { _dragInfo: 16, _hasPopoverContent: 16, _hasContentStart: 16, _hasContentEnd: 16, _activePart: 16, _sliderData: 16, activeValue: 32, allowValuesOverlap: 5, autoDestroyDisabled: 5, disabled: 7, fullRangeMax: 11, fullRangeMin: 11, fillPlacement: 1, labelFormatter: 0, layout: 3, max: 11, min: 11, mirrored: 7, popoverLabel: 1, popoverPlacement: 3, precision: 11, rangeLabelsEditingEnabled: 5, rangeLabelsPlacement: 3, segmentsDraggingDisabled: 5, showRangeLabels: 7, steps: [9, { converter: {
449
489
  fromAttribute(e) {
450
490
  if (e.includes(","))
451
- return e.split(",").filter((a) => a.trim() !== "").map(parseFloat).filter((a) => Number.isFinite(a));
491
+ return e.split(",").filter((n) => n.trim() !== "").map(parseFloat).filter((n) => Number.isFinite(n));
452
492
  const t = parseFloat(e);
453
493
  return Number.isFinite(t) ? t : void 0;
454
494
  }
@@ -484,8 +524,8 @@ class Ee extends Y {
484
524
  return this.disabled || this.values.length === 0 || this._invalid;
485
525
  }
486
526
  get _invalid() {
487
- const e = this.fullRangeMin == null || this.fullRangeMax == null || this.fullRangeMin < this.fullRangeMax, t = this.fullRangeMin == null || this.fullRangeMin <= this.min, a = this.fullRangeMax == null || this.fullRangeMax >= this.max;
488
- return this.min >= this.max || !e || !t || !a;
527
+ const e = this.fullRangeMin == null || this.fullRangeMax == null || this.fullRangeMin < this.fullRangeMax, t = this.fullRangeMin == null || this.fullRangeMin <= this.min, n = this.fullRangeMax == null || this.fullRangeMax >= this.max;
528
+ return this.min >= this.max || !e || !t || !n;
489
529
  }
490
530
  get resolution() {
491
531
  const e = (this._sliderData.max - this._sliderData.min) / this._trackWidthOrHeight;
@@ -531,20 +571,20 @@ class Ee extends Y {
531
571
  if (this._labelInputsUpdateComplete = t, await t, t !== this._labelInputsUpdateComplete)
532
572
  return;
533
573
  this._labelInputsUpdateComplete = null;
534
- const a = this._trackElement.value;
535
- if (!a)
574
+ const n = this._trackElement.value;
575
+ if (!n)
536
576
  return;
537
- const i = a.getBoundingClientRect();
577
+ const i = n.getBoundingClientRect();
538
578
  for (const r of this._sliderData.entries.keys()) {
539
- const l = this._activePart === "range" || this._activePart === r;
540
- if (this.valueLabelsDisplay === "always" || l) {
541
- const o = Ce(this, r), c = j(this, r);
542
- if (!o || !c)
579
+ const o = this._activePart === "range" || this._activePart === r;
580
+ if (this.valueLabelsDisplay === "always" || o) {
581
+ const l = Me(this, r), c = j(this, r);
582
+ if (!l || !c)
543
583
  continue;
544
- const d = o.getBoundingClientRect(), u = c.getBoundingClientRect(), h = c.getLabelBoundingClientRect(), f = d.width / 2, p = Math.round(d.left + f), v = Math.round(h.width / 2);
545
- let D = u.width / 2;
546
- const g = i.left - f, y = i.right + f, P = p - v, C = p + v;
547
- P < g ? D += P - g : C > y && (D += C - y), c.style.transform = `translateX(${-Math.round(D)}px)`;
584
+ const d = l.getBoundingClientRect(), u = c.getBoundingClientRect(), g = c.getLabelBoundingClientRect(), f = d.width / 2, h = Math.round(d.left + f), v = Math.round(g.width / 2);
585
+ let _ = u.width / 2;
586
+ const m = i.left - f, b = i.right + f, $ = h - v, M = h + v;
587
+ $ < m ? _ += $ - m : M > b && (_ += M - b), c.style.transform = `translateX(${-Math.round(_)}px)`;
548
588
  }
549
589
  }
550
590
  }
@@ -555,10 +595,10 @@ class Ee extends Y {
555
595
  this._setActivePart(null);
556
596
  }
557
597
  _onTrackRangePointerDown(e) {
558
- this._disabledOrInvalid || !M(e) || this._startDrag("range", this._mapEventToRange(e));
598
+ this._disabledOrInvalid || !S(e) || (e.preventDefault(), e.currentTarget.focus(), this._startDrag("range", this._mapEventToRange(e)));
559
599
  }
560
600
  async _onPointerDown(e) {
561
- if (this._disabledOrInvalid || !M(e))
601
+ if (this._disabledOrInvalid || !S(e))
562
602
  return;
563
603
  const t = this.renderRoot.querySelector("arcgis-label-input[editing]");
564
604
  if (e.target === t)
@@ -569,17 +609,17 @@ class Ee extends Y {
569
609
  }
570
610
  if (Ve(e.target) || this.values?.length > 1)
571
611
  return;
572
- const a = this._mapEventToRange(e), [i, r] = this._sliderData.entries.entries().next().value, l = a * this._fullRange + this._fullMin - r, s = S(this._fullMin, this._fullMax, r) / 100;
612
+ const n = this._mapEventToRange(e), [i, r] = this._sliderData.entries.entries().next().value, o = n * this._fullRange + this._fullMin - r, s = z(this._fullMin, this._fullMax, r) / 100;
573
613
  this._startDrag(i, s);
574
- const o = U(this._stepsProvider, this._sliderData.entries, i, l, this.allowValuesOverlap);
575
- this._setValue(i, o), this._focusEntry(i);
614
+ const l = U(this._stepsProvider, this._sliderData.entries, i, o, this.allowValuesOverlap);
615
+ this._setValue(i, l), this._focusEntry(i);
576
616
  }
577
617
  _onThumbPointerDown(e) {
578
618
  const t = V(e.currentTarget);
579
- if (!M(e) || this._disabledOrInvalid || !t)
619
+ if (!S(e) || this._disabledOrInvalid || !t)
580
620
  return;
581
- const a = j(this, t);
582
- e.target === a && a?.editing || (e.stopPropagation(), this._startDrag(t, this._mapEventToRange(e)));
621
+ const n = j(this, t);
622
+ e.target === n && n?.editing || (e.stopPropagation(), e.preventDefault(), this._focusEntry(t), this._startDrag(t, this._mapEventToRange(e)));
583
623
  }
584
624
  _endDrag() {
585
625
  if (this._disabledOrInvalid)
@@ -588,8 +628,8 @@ class Ee extends Y {
588
628
  let e = !1;
589
629
  if (this._dragInfo) {
590
630
  const { entries: t } = this._dragInfo;
591
- for (const [a, i] of t)
592
- if (this._sliderData.getValue(a) !== i) {
631
+ for (const [n, i] of t)
632
+ if (this._sliderData.getValue(n) !== i) {
593
633
  e = !0;
594
634
  break;
595
635
  }
@@ -599,38 +639,38 @@ class Ee extends Y {
599
639
  _startDrag(e, t) {
600
640
  if (this._disabledOrInvalid)
601
641
  return;
602
- const { min: a, max: i, values: r } = this;
603
- let l = a, s = i;
642
+ const { min: n, max: i, values: r } = this;
643
+ let o = n, s = i;
604
644
  if (this._setActivePart(e), e === "range") {
605
645
  if (this.segmentsDraggingDisabled)
606
646
  return;
607
- l = a - r[0], s = i - r[r.length - 1];
647
+ o = n - r[0], s = i - r[r.length - 1];
608
648
  }
609
649
  this._dragInfo = {
610
650
  position: t,
611
651
  entries: new Map(this._sliderData.entries.entries()),
612
- minDiff: l,
652
+ minDiff: o,
613
653
  maxDiff: s
614
654
  }, this._addDragListeners();
615
655
  }
616
656
  _updateDrag(e) {
617
657
  if (!this._dragInfo || !this._activePart)
618
658
  return;
619
- const { _activePart: t, _dragInfo: { position: a, entries: i, minDiff: r, maxDiff: l } } = this;
620
- if (a === e)
659
+ const { _activePart: t, _dragInfo: { position: n, entries: i, minDiff: r, maxDiff: o } } = this;
660
+ if (n === e)
621
661
  return;
622
- let s = (e - a) * this._fullRange;
662
+ let s = (e - n) * this._fullRange;
623
663
  if (t === "range") {
624
- s = Math.min(l, Math.max(r, s));
625
- const o = be(this._stepsProvider, i, s);
626
- this._setValues(o);
664
+ s = Math.min(o, Math.max(r, s));
665
+ const l = be(this._stepsProvider, i, s);
666
+ this._setValues(l);
627
667
  } else {
628
- const o = U(this._stepsProvider, i, t, s, this.allowValuesOverlap);
629
- this._setValue(t, o);
668
+ const l = U(this._stepsProvider, i, t, s, this.allowValuesOverlap);
669
+ this._setValue(t, l);
630
670
  }
631
671
  }
632
672
  _focusEntry(e) {
633
- e && Pe(this, e)?.focus();
673
+ e && $e(this, e)?.focus();
634
674
  }
635
675
  _addDragListeners() {
636
676
  document.addEventListener("pointerup", this._onPointerUpDragEnd), document.addEventListener("pointermove", this._onPointerMoveDragUpdate), document.addEventListener("pointercancel", this._onPointerCancelDragEnd);
@@ -652,33 +692,33 @@ class Ee extends Y {
652
692
  this._setActivePart(null);
653
693
  }
654
694
  _onRangeInputChange(e) {
655
- const t = e.currentTarget, a = t.value, i = t.dataset.type;
695
+ const t = e.currentTarget, n = t.value, i = t.dataset.type;
656
696
  let r = !1;
657
697
  switch (e.stopPropagation(), i) {
658
698
  case "min": {
659
- a < this.max ? (this.min = a, r = !0) : t.value = this.min;
699
+ n < this.max ? (this.min = n, r = !0) : t.value = this.min;
660
700
  break;
661
701
  }
662
702
  case "max": {
663
- a > this.min ? (this.max = a, r = !0) : t.value = this.max;
703
+ n > this.min ? (this.max = n, r = !0) : t.value = this.max;
664
704
  break;
665
705
  }
666
706
  }
667
707
  r && this.arcgisRangeChange.emit();
668
708
  }
669
709
  _onValueInputChange(e) {
670
- const t = e.currentTarget, a = V(t), i = t.value;
671
- a && (e.stopPropagation(), this._setValue(a, i), t.value = this._sliderData.getValue(a));
710
+ const t = e.currentTarget, n = V(t), i = t.value;
711
+ n && (e.stopPropagation(), this._setValue(n, i), t.value = this._sliderData.getValue(n));
672
712
  }
673
713
  _mapEventToRange(e) {
674
714
  const t = this._trackElement.value?.getBoundingClientRect();
675
715
  if (!t)
676
716
  return 0;
677
- const a = this.isHorizontal ? (e.clientX - t.left) / t.width : 1 - (e.clientY - t.top) / t.height;
678
- return this.mirrored ? 1 - a : a;
717
+ const n = this.isHorizontal ? (e.clientX - t.left) / t.width : 1 - (e.clientY - t.top) / t.height;
718
+ return this.mirrored ? 1 - n : n;
679
719
  }
680
720
  _getPositionStyleForElement(e) {
681
- const t = S(this._fullMin, this._fullMax, e);
721
+ const t = z(this._fullMin, this._fullMax, e);
682
722
  return {
683
723
  [this.isHorizontal ? this.mirrored ? "right" : "left" : this.mirrored ? "top" : "bottom"]: `${t}%`
684
724
  };
@@ -696,11 +736,11 @@ class Ee extends Y {
696
736
  const t = V(e.currentTarget);
697
737
  if (!t)
698
738
  return;
699
- const a = e.currentTarget.querySelector("arcgis-label-input");
700
- if (!a || a.editing)
739
+ const n = e.currentTarget.querySelector("arcgis-label-input");
740
+ if (!n || n.editing)
701
741
  return;
702
- if (e.key === m.confirmEdit) {
703
- a.edit();
742
+ if (e.key === p.confirmEdit) {
743
+ n.edit();
704
744
  return;
705
745
  }
706
746
  const i = K(e, this.keyboardLargeStep, this.mirrored);
@@ -722,14 +762,14 @@ class Ee extends Y {
722
762
  const t = K(e, this.keyboardLargeStep, this.mirrored);
723
763
  if (t) {
724
764
  e.preventDefault();
725
- const { entries: a } = _e(this._getStepsConfiguration(), this._sliderData.entries, t.direction, t.count);
726
- this._setValues(a);
765
+ const { entries: n } = _e(this._getStepsConfiguration(), this._sliderData.entries, t.direction, t.count);
766
+ this._setValues(n);
727
767
  return;
728
768
  }
729
769
  if (N(e.key)) {
730
770
  e.preventDefault();
731
- const a = ke(this._getStepsConfiguration(), this._sliderData.entries, this._getDirectionForHomeEndKey(e.key));
732
- this._setValues(a);
771
+ const n = ke(this._getStepsConfiguration(), this._sliderData.entries, this._getDirectionForHomeEndKey(e.key));
772
+ this._setValues(n);
733
773
  }
734
774
  }
735
775
  _getStepsConfiguration() {
@@ -742,134 +782,134 @@ class Ee extends Y {
742
782
  };
743
783
  }
744
784
  _getDirectionForHomeEndKey(e) {
745
- return this.isHorizontal && this.mirrored || this.layout === "vertical" ? e === m.jumpToEnd ? -1 : 1 : e === m.jumpToStart ? -1 : 1;
785
+ return this.isHorizontal && this.mirrored || this.layout === "vertical" ? e === p.jumpToEnd ? -1 : 1 : e === p.jumpToStart ? -1 : 1;
746
786
  }
747
787
  _setActivePart(e) {
748
788
  this._activePart !== e && (this._activePart = e, this.arcgisActiveValueChange.emit());
749
789
  }
750
790
  render() {
751
- return _`<div class=${z({
791
+ return y`<div class=${C({
752
792
  content: !0,
753
793
  disabled: this._disabledOrInvalid
754
794
  })} @pointerdown=${this._onPointerDown}>${this._renderContentStart()}${this._renderContentEnd()}${this._renderRangeLabel("min")}${this._renderTrackRange()}${this._renderRangeLabel("max")}${this._renderPopover()}</div>`;
755
795
  }
756
796
  _renderPopover() {
757
- const { _activePart: e, layout: t, popoverPlacement: a, valueLabelsPlacement: i, valueLabelsDisplay: r, popoverLabel: l } = this, s = e ? $e(e) ? e : "track-range" : "", o = this._hasPopoverContent && !!s, c = t === "horizontal" ? a === "start" ? "top" : "bottom" : a === "start" ? "left" : "right";
797
+ const { _activePart: e, layout: t, popoverPlacement: n, valueLabelsPlacement: i, valueLabelsDisplay: r, popoverLabel: o } = this, s = e ? Te(e) ? e : "track-range" : "", l = this._hasPopoverContent && !!s, c = t === "horizontal" ? n === "start" ? "top" : "bottom" : n === "start" ? "left" : "right";
758
798
  let d = 14;
759
- return r !== "hidden" && a === i && (d += 24), _`<calcite-popover flip-disabled focus-trap-disabled .label=${l} .open=${o} .offsetDistance=${d} .placement=${c} pointer-disabled .referenceElement=${s} scale=s trigger-disabled ${R(this._popoverElement)}><slot name=popover @slotchange=${this._popoverSlotChange}></slot></calcite-popover>`;
799
+ return r !== "hidden" && n === i && (d += 24), y`<calcite-popover flip-disabled focus-trap-disabled .label=${o} .open=${l} .offsetDistance=${d} .placement=${c} pointer-disabled .referenceElement=${s} scale=s trigger-disabled ${R(this._popoverElement)}><slot name=popover @slotchange=${this._popoverSlotChange}></slot></calcite-popover>`;
760
800
  }
761
801
  _renderContentStart() {
762
- return _`<div class="content-start" .hidden=${!this._hasContentStart}><slot name=content-start @slotchange=${this._onContentStartSlotChange}></slot></div>`;
802
+ return y`<div class="content-start" .hidden=${!this._hasContentStart}><slot name=content-start @slotchange=${this._onContentStartSlotChange}></slot></div>`;
763
803
  }
764
804
  _renderContentEnd() {
765
- return _`<div class="content-end" .hidden=${!this._hasContentEnd}><slot name=content-end @slotchange=${this._onContentEndSlotChange}></slot></div>`;
805
+ return y`<div class="content-end" .hidden=${!this._hasContentEnd}><slot name=content-end @slotchange=${this._onContentEndSlotChange}></slot></div>`;
766
806
  }
767
807
  _renderTrackRange() {
768
- return _`<div class="track-container">${this._renderTrack()}${this._renderThumbs()}</div>`;
808
+ return y`<div class="track-container">${this._renderTrack()}${this._renderThumbs()}</div>`;
769
809
  }
770
810
  _renderTrack() {
771
- return _`<div class="track" ${R(this._trackElement)}>${this._renderTrackBackground()}${this._renderFillSegment()}</div>`;
811
+ return y`<div class="track" ${R(this._trackElement)}>${this._renderTrackBackground()}${this._renderFillSegment()}</div>`;
772
812
  }
773
813
  _renderTrackBackground() {
774
- const { max: e, min: t, fillPlacement: a, values: i } = this, r = i.length > 1;
775
- let l = this._fullMin, s = this._fullMax;
776
- const o = [];
777
- return this._invalid ? _`<div class="segment track-bounds" style=${F({ left: "0%", right: "0%", top: "0%", bottom: "0%" })}></div>` : (l < t && (o.push(this._renderSegment(l, t, [
814
+ const { max: e, min: t, fillPlacement: n, values: i } = this, r = i.length > 1;
815
+ let o = this._fullMin, s = this._fullMax;
816
+ const l = [];
817
+ return this._invalid ? y`<div class="segment track-bounds" style=${F({ left: "0%", right: "0%", top: "0%", bottom: "0%" })}></div>` : (o < t && (l.push(this._renderSegment(o, t, [
778
818
  this.mirrored ? "track-effective-end" : "track-effective-start",
779
- !r && a === "start" ? "track-fill" : null
780
- ])), l = t), s > e && (o.push(this._renderSegment(e, s, [
819
+ !r && n === "start" ? "track-fill" : null
820
+ ])), o = t), s > e && (l.push(this._renderSegment(e, s, [
781
821
  this.mirrored ? "track-effective-start" : "track-effective-end",
782
- !r && a === "end" ? "track-fill" : null
783
- ])), s = e), o.push(this._renderSegment(l, s, ["track-bounds"])), o);
822
+ !r && n === "end" ? "track-fill" : null
823
+ ])), s = e), l.push(this._renderSegment(o, s, ["track-bounds"])), l);
784
824
  }
785
825
  _renderFillSegment() {
786
- const { values: e, fillPlacement: t, min: a, max: i } = this;
826
+ const { values: e, fillPlacement: t, min: n, max: i } = this;
787
827
  if (!e?.length || this._invalid)
788
828
  return;
789
- const r = [...e].sort((s, o) => s - o);
829
+ const r = [...e].sort((s, l) => s - l);
790
830
  if (r.length === 1)
791
831
  switch (t) {
792
832
  case "start":
793
- if (a < r[0])
794
- return this._renderSegment(a, r[0], ["track-range"]);
833
+ if (n < r[0])
834
+ return this._renderSegment(n, r[0], ["track-range"]);
795
835
  break;
796
836
  case "end":
797
837
  if (i > r[0])
798
838
  return this._renderSegment(r[0], i, ["track-range"]);
799
839
  break;
800
840
  }
801
- const l = this.segmentsDraggingDisabled;
802
- return this._renderSegment(r[0], r[r.length - 1], ["track-range", l ? null : "interactive", this._activePart === "range" ? "active" : null], {
841
+ const o = this.segmentsDraggingDisabled;
842
+ return this._renderSegment(r[0], r[r.length - 1], ["track-range", o ? null : "interactive", this._activePart === "range" ? "active" : null], {
803
843
  id: "track-range",
804
- onFocus: l ? void 0 : this._onTrackFocus,
805
- onBlur: l ? void 0 : this._onTrackBlur,
806
- onPointerDown: l ? void 0 : this._onTrackRangePointerDown,
807
- onKeyDown: l ? void 0 : this._onTrackRangeKeyDown
844
+ onFocus: o ? void 0 : this._onTrackFocus,
845
+ onBlur: o ? void 0 : this._onTrackBlur,
846
+ onPointerDown: o ? void 0 : this._onTrackRangePointerDown,
847
+ onKeyDown: o ? void 0 : this._onTrackRangeKeyDown
808
848
  });
809
849
  }
810
- _renderSegment(e, t, a, i) {
811
- const { _fullMin: r, _fullMax: l, mirrored: s } = this, o = [
812
- S(r, l, X(e, r, l)),
813
- 100 - S(r, l, X(t, r, l))
850
+ _renderSegment(e, t, n, i) {
851
+ const { _fullMin: r, _fullMax: o, mirrored: s } = this, l = [
852
+ z(r, o, X(e, r, o)),
853
+ 100 - z(r, o, X(t, r, o))
814
854
  ];
815
- s && o.reverse();
855
+ s && l.reverse();
816
856
  const c = this.isHorizontal ? {
817
- left: `${o[0]}%`,
818
- right: `${o[1]}%`
857
+ left: `${l[0]}%`,
858
+ right: `${l[1]}%`
819
859
  } : {
820
- top: `${o[1]}%`,
821
- bottom: `${o[0]}%`
822
- }, d = Z("segment", ...a);
823
- return _`<div id=${i?.id ?? I} class=${z(d)} style=${F(c)} .tabIndex=${i?.onPointerDown ? 0 : -1} @focus=${i?.onFocus} @blur=${i?.onBlur} @pointerdown=${i?.onPointerDown} @keydown=${i?.onKeyDown}></div>`;
860
+ top: `${l[1]}%`,
861
+ bottom: `${l[0]}%`
862
+ }, d = Z("segment", ...n);
863
+ return y`<div id=${i?.id ?? E} class=${C(d)} style=${F(c)} .tabIndex=${i?.onPointerDown ? 0 : -1} @focus=${i?.onFocus} @blur=${i?.onBlur} @pointerdown=${i?.onPointerDown} @keydown=${i?.onKeyDown}></div>`;
824
864
  }
825
865
  _renderThumbs() {
826
- const { _sliderData: e } = this, t = Array.from(e.entries).filter(([, a]) => a >= this._fullMin && a <= this._fullMax);
827
- return ae(t, ([a, i]) => this._renderThumb(a, i));
866
+ const { _sliderData: e } = this, t = Array.from(e.entries).filter(([, n]) => n >= this._fullMin && n <= this._fullMax);
867
+ return ne(t, ([n, i]) => this._renderThumb(n, i));
828
868
  }
829
869
  _renderThumb(e, t) {
830
- const { valueLabelsDisplay: a } = this, i = this._disabledOrInvalid, r = this._activePart === e || this._activePart === "range", l = this._activePart === "range" || this._activePart === e, s = a === "always" || a === "auto" && l, o = this.isHorizontal, c = o ? "horizontal" : "vertical", d = `label-${e}`, u = o ? "center" : this.valueLabelsPlacement === "start" ? "end" : "start";
831
- return J(e, _`<div id=${e ?? I} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(a ? d : void 0) ?? I} .ariaOrientation=${c} .ariaValueMin=${this._minFormatter(this.min)} .ariaValueMax=${this._maxFormatter(this.max)} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${z({
870
+ const { valueLabelsDisplay: n } = this, i = this._disabledOrInvalid, r = this._activePart === e || this._activePart === "range", o = this._activePart === "range" || this._activePart === e, s = n === "always" || n === "auto" && o, l = this.isHorizontal, c = l ? "horizontal" : "vertical", d = `label-${e}`, u = l ? "center" : this.valueLabelsPlacement === "start" ? "end" : "start";
871
+ return J(e, y`<div id=${e ?? E} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(n ? d : void 0) ?? E} .ariaOrientation=${c} .ariaValueMin=${this._minFormatter(this.min)} .ariaValueMax=${this._maxFormatter(this.max)} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${C({
832
872
  thumb: !0,
833
873
  active: r
834
- })} data-entry=${e ?? I} @pointerdown=${this._onThumbPointerDown} @focus=${this._onThumbFocus} @blur=${this._onThumbBlur} @keydown=${this._onThumbKeyDown} role=slider style=${F({
874
+ })} data-entry=${e ?? E} @pointerdown=${this._onThumbPointerDown} @focus=${this._onThumbFocus} @blur=${this._onThumbBlur} @keydown=${this._onThumbKeyDown} role=slider style=${F({
835
875
  ...this._getPositionStyleForElement(t),
836
876
  "z-index": this._activePart === e ? 1 : 0
837
- })} .tabIndex=${i ? -1 : 0}><span class="handle"></span><arcgis-label-input .alignment=${u} class="label" .hidden=${!s} id=${d ?? I} .labelFormatter=${this._valueFormatter} @focus=${i ? void 0 : this._onThumbFocus} @blur=${i ? void 0 : this._onThumbBlur} @arcgisChange=${this._onValueInputChange} .readOnly=${!this.valueLabelsEditingEnabled} tabindex=-1 .value=${t} ${R(this._makeResizeRef())}></arcgis-label-input></div>`);
877
+ })} .tabIndex=${i ? -1 : 0}><span class="handle"></span><arcgis-label-input .alignment=${u} class="label" .hidden=${!s} id=${d ?? E} .labelFormatter=${this._valueFormatter} @focus=${i ? void 0 : this._onThumbFocus} @blur=${i ? void 0 : this._onThumbBlur} @arcgisChange=${this._onValueInputChange} .readOnly=${!this.valueLabelsEditingEnabled} tabindex=-1 .value=${t} ${R(this._makeResizeRef())}></arcgis-label-input></div>`);
838
878
  }
839
879
  _renderRangeLabel(e) {
840
880
  let t = "center";
841
- return this.isHorizontal && (t = e === "min" ? "end" : "start", this.rangeLabelsPlacement === "end" && (t = t === "end" ? "start" : "end"), this.mirrored && (t = t === "end" ? "start" : "end")), _`<arcgis-label-input .alignment=${t} class=${z(e)} data-type=${e ?? I} .hidden=${!this.showRangeLabels} .labelFormatter=${this[`_${e}Formatter`]} @arcgisChange=${this._onRangeInputChange} .readOnly=${!this.rangeLabelsEditingEnabled} .value=${this[e]}></arcgis-label-input>`;
881
+ return this.isHorizontal && (t = e === "min" ? "end" : "start", this.rangeLabelsPlacement === "end" && (t = t === "end" ? "start" : "end"), this.mirrored && (t = t === "end" ? "start" : "end")), y`<arcgis-label-input .alignment=${t} class=${C(e)} data-type=${e ?? E} .hidden=${!this.showRangeLabels} .labelFormatter=${this[`_${e}Formatter`]} @arcgisChange=${this._onRangeInputChange} .readOnly=${!this.rangeLabelsEditingEnabled} .value=${this[e]}></arcgis-label-input>`;
842
882
  }
843
883
  }
844
- function Ve(n) {
845
- return "dataset" in n && n.tagName === "ARCGIS-LABEL-INPUT" && (n.dataset.type === "min" || n.dataset.type === "max");
884
+ function Ve(a) {
885
+ return "dataset" in a && a.tagName === "ARCGIS-LABEL-INPUT" && (a.dataset.type === "min" || a.dataset.type === "max");
846
886
  }
847
- function V(n) {
848
- const e = ee(n, "[data-entry]");
887
+ function V(a) {
888
+ const e = ee(a, "[data-entry]");
849
889
  return e && "dataset" in e ? e.dataset.entry : null;
850
890
  }
851
- function $e(n) {
852
- return typeof n != null && n !== "range";
891
+ function Te(a) {
892
+ return typeof a != null && a !== "range";
853
893
  }
854
- function Pe(n, e) {
855
- return e ? n.renderRoot.querySelector(`div[data-entry="${e}"]`) : null;
894
+ function $e(a, e) {
895
+ return e ? a.renderRoot.querySelector(`div[data-entry="${e}"]`) : null;
856
896
  }
857
- function Ce(n, e) {
858
- return e ? n.renderRoot.querySelector(`div[data-entry="${e}"] span.handle`) : null;
897
+ function Me(a, e) {
898
+ return e ? a.renderRoot.querySelector(`div[data-entry="${e}"] span.handle`) : null;
859
899
  }
860
- function j(n, e) {
861
- return e ? n.renderRoot.querySelector(`div[data-entry="${e}"] arcgis-label-input`) : null;
900
+ function j(a, e) {
901
+ return e ? a.renderRoot.querySelector(`div[data-entry="${e}"] arcgis-label-input`) : null;
862
902
  }
863
- function M(n) {
864
- return n.isPrimary && n.button === 0;
903
+ function S(a) {
904
+ return a.isPrimary && a.button === 0;
865
905
  }
866
- const Te = 5;
867
- function S(n, e, t) {
868
- const a = e - n, i = (t - n) / a * 100;
869
- return Number.parseFloat(i.toFixed(Te));
906
+ const Pe = 5;
907
+ function z(a, e, t) {
908
+ const n = e - a, i = (t - a) / n * 100;
909
+ return Number.parseFloat(i.toFixed(Pe));
870
910
  }
871
- function X(n, e, t) {
872
- return Math.max(e, Math.min(t, n));
911
+ function X(a, e, t) {
912
+ return Math.max(e, Math.min(t, a));
873
913
  }
874
914
  W("arcgis-slider", Ee);
875
915
  export {