@arcgis/common-components 5.2.0-next.11 → 5.2.0-next.111

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 (155) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/cdn/{L2JNUMXB.js → 3UH3ZOZB.js} +1 -1
  4. package/dist/cdn/475SP47T.js +2 -0
  5. package/dist/cdn/{4W7JZPB6.js → 4JMH3KRC.js} +1 -1
  6. package/dist/cdn/{VQLI4IE7.js → 4LO2YSUJ.js} +1 -1
  7. package/dist/cdn/4TZVXSQZ.js +2 -0
  8. package/dist/cdn/56HK5TL6.js +2 -0
  9. package/dist/cdn/5IM4X2GT.js +2 -0
  10. package/dist/cdn/6HBX6QDQ.js +2 -0
  11. package/dist/cdn/{OBIWQRXY.js → 73ETIJP2.js} +1 -1
  12. package/dist/cdn/7EP7KDAN.js +2 -0
  13. package/dist/cdn/7YNFXAZI.js +2 -0
  14. package/dist/cdn/{GVOQ2CB7.js → AWK4HGJV.js} +1 -1
  15. package/dist/cdn/DG5IVKVO.js +2 -0
  16. package/dist/cdn/{5KS7T5BY.js → DRV7OKQT.js} +1 -1
  17. package/dist/cdn/EA5M73N4.js +2 -0
  18. package/dist/cdn/EPTZSQ77.js +2 -0
  19. package/dist/cdn/{3P53QRGS.js → G2LLGGQQ.js} +1 -1
  20. package/dist/cdn/{XRARFMJ7.js → GQ2PO4L4.js} +1 -1
  21. package/dist/cdn/GSQIARZL.js +2 -0
  22. package/dist/cdn/HJZA4ZUL.js +2 -0
  23. package/dist/cdn/I7CTLPWD.js +2 -0
  24. package/dist/cdn/{LKUOAV7B.js → ICJXMKTL.js} +1 -1
  25. package/dist/cdn/{L5RMOAO3.js → J6ZKTXN7.js} +1 -1
  26. package/dist/cdn/KMYFQIQ7.js +2 -0
  27. package/dist/cdn/L7XGWJZF.js +2 -0
  28. package/dist/cdn/LAQNGXPG.js +2 -0
  29. package/dist/cdn/ND7AQ3X6.js +2 -0
  30. package/dist/cdn/NNNE4T7L.js +2 -0
  31. package/dist/cdn/O4H2JR53.js +2 -0
  32. package/dist/cdn/{3V5M7OHL.js → OSOV6LK3.js} +3 -3
  33. package/dist/cdn/PMV2N3L3.js +2 -0
  34. package/dist/cdn/{MCZBUYS5.js → PQG3COJ4.js} +1 -1
  35. package/dist/cdn/PSVNG2MS.js +2 -0
  36. package/dist/cdn/PUNWW4GY.js +2 -0
  37. package/dist/cdn/PWYFUIF6.js +4 -0
  38. package/dist/cdn/Q3AMPMQV.js +2 -0
  39. package/dist/cdn/{WEKRF34E.js → QWRE6ILV.js} +1 -1
  40. package/dist/cdn/RC2HNFFD.js +2 -0
  41. package/dist/cdn/{JLPZ3OR2.js → SKLYKTDC.js} +1 -1
  42. package/dist/cdn/TKCEZXLC.js +2 -0
  43. package/dist/cdn/TWW63D32.js +2 -0
  44. package/dist/cdn/XMGOCO2S.js +2 -0
  45. package/dist/cdn/Z5QBBHLD.js +2 -0
  46. package/dist/cdn/{N7C4DINF.js → Z5SIZJN5.js} +1 -1
  47. package/dist/cdn/ZMZH3Z5A.js +2 -0
  48. package/dist/cdn/assets/field-pick-list/t9n/messages.en.json +1 -1
  49. package/dist/cdn/assets/slider-field/t9n/messages.en.json +1 -0
  50. package/dist/cdn/assets/slider-histogram-range/t9n/messages.en.json +1 -0
  51. package/dist/cdn/index.js +1 -1
  52. package/dist/cdn/main.css +1 -1
  53. package/dist/chunks/element-reference-controller.js +19 -0
  54. package/dist/chunks/layer-utils.js +52 -40
  55. package/dist/chunks/locale.js +14 -6
  56. package/dist/chunks/strategies.js +287 -0
  57. package/dist/chunks/toolbar.js +9 -0
  58. package/dist/chunks/types.js +16 -0
  59. package/dist/chunks/utils.js +59 -0
  60. package/dist/chunks/utils2.js +20 -0
  61. package/dist/chunks/utils3.js +7 -0
  62. package/dist/components/arcgis-ckeditor5/customElement.d.ts +23 -0
  63. package/dist/components/arcgis-ckeditor5/customElement.js +2 -2
  64. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  65. package/dist/components/arcgis-color-input/customElement.d.ts +2 -1
  66. package/dist/components/arcgis-color-input/customElement.js +1 -1
  67. package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +23 -0
  68. package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
  69. package/dist/components/arcgis-field-info/customElement.d.ts +1 -1
  70. package/dist/components/arcgis-field-info/customElement.js +248 -225
  71. package/dist/components/arcgis-field-info/index.js +1 -0
  72. package/dist/components/arcgis-field-info/utils/basic.d.ts +3 -1
  73. package/dist/components/arcgis-field-pick-list/customElement.d.ts +15 -12
  74. package/dist/components/arcgis-field-pick-list/customElement.js +205 -122
  75. package/dist/components/arcgis-field-pick-list/index.js +4 -3
  76. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +3 -1
  77. package/dist/components/arcgis-histogram/customElement.d.ts +39 -2
  78. package/dist/components/arcgis-histogram/customElement.js +105 -90
  79. package/dist/components/arcgis-label-input/customElement.js +18 -14
  80. package/dist/components/arcgis-slider/customElement.d.ts +11 -3
  81. package/dist/components/arcgis-slider/customElement.js +371 -348
  82. package/dist/components/arcgis-slider-field/customElement.d.ts +298 -0
  83. package/dist/components/arcgis-slider-field/customElement.js +96 -0
  84. package/dist/components/arcgis-slider-field/index.d.ts +1 -0
  85. package/dist/components/arcgis-slider-field/index.js +2 -0
  86. package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +390 -0
  87. package/dist/components/arcgis-slider-histogram-range/customElement.js +120 -0
  88. package/dist/components/arcgis-slider-histogram-range/index.d.ts +1 -0
  89. package/dist/components/arcgis-slider-histogram-range/index.js +3 -0
  90. package/dist/components/arcgis-slider-histogram-range/types.d.ts +6 -0
  91. package/dist/components/arcgis-ticks/customElement.d.ts +11 -3
  92. package/dist/components/arcgis-ticks/customElement.js +100 -79
  93. package/dist/components/arcgis-toolbar/customElement.d.ts +67 -0
  94. package/dist/components/arcgis-toolbar/customElement.js +108 -0
  95. package/dist/components/arcgis-toolbar/index.d.ts +1 -0
  96. package/dist/components/arcgis-toolbar/index.js +2 -0
  97. package/dist/components/arcgis-toolbar/types.d.ts +41 -0
  98. package/dist/components/arcgis-toolbar-action/customElement.d.ts +97 -0
  99. package/dist/components/arcgis-toolbar-action/customElement.js +52 -0
  100. package/dist/components/arcgis-toolbar-action/index.d.ts +1 -0
  101. package/dist/components/arcgis-toolbar-action/index.js +3 -0
  102. package/dist/components/arcgis-toolbar-group/customElement.d.ts +38 -0
  103. package/dist/components/arcgis-toolbar-group/customElement.js +48 -0
  104. package/dist/components/arcgis-toolbar-group/index.d.ts +1 -0
  105. package/dist/components/arcgis-toolbar-group/index.js +2 -0
  106. package/dist/components/arcgis-toolbar-item/customElement.d.ts +83 -0
  107. package/dist/components/arcgis-toolbar-item/customElement.js +42 -0
  108. package/dist/components/arcgis-toolbar-item/index.d.ts +1 -0
  109. package/dist/components/arcgis-toolbar-item/index.js +4 -0
  110. package/dist/components/arcgis-toolbar-more-button/customElement.d.ts +52 -0
  111. package/dist/components/arcgis-toolbar-more-button/customElement.js +68 -0
  112. package/dist/components/arcgis-toolbar-more-button/index.d.ts +1 -0
  113. package/dist/components/arcgis-toolbar-more-button/index.js +6 -0
  114. package/dist/components/arcgis-toolbar-split-button/customElement.d.ts +51 -0
  115. package/dist/components/arcgis-toolbar-split-button/customElement.js +67 -0
  116. package/dist/components/arcgis-toolbar-split-button/index.d.ts +1 -0
  117. package/dist/components/arcgis-toolbar-split-button/index.js +6 -0
  118. package/dist/components/arcgis-toolbar-stack/customElement.d.ts +48 -0
  119. package/dist/components/arcgis-toolbar-stack/customElement.js +174 -0
  120. package/dist/components/arcgis-toolbar-stack/index.d.ts +1 -0
  121. package/dist/components/arcgis-toolbar-stack/index.js +1 -0
  122. package/dist/components/arcgis-unique-values-list/customElement.js +115 -95
  123. package/dist/components/arcgis-value-picker/customElement.js +5 -5
  124. package/dist/docs/api.json +1 -1
  125. package/dist/docs/docs.json +1 -1
  126. package/dist/docs/vscode.css-custom-data.json +1 -1
  127. package/dist/docs/vscode.html-custom-data.json +1 -1
  128. package/dist/docs/web-types.json +1 -1
  129. package/dist/index.d.ts +62 -0
  130. package/dist/index.js +2 -0
  131. package/dist/loader.js +13 -4
  132. package/dist/types/lumina.d.ts +58 -2
  133. package/dist/types/preact.d.ts +67 -2
  134. package/dist/types/react.d.ts +76 -2
  135. package/dist/types/stencil.d.ts +60 -4
  136. package/dist/utils/types.d.ts +14 -1
  137. package/package.json +6 -6
  138. package/dist/cdn/2XA6O2MP.js +0 -2
  139. package/dist/cdn/4BJYJUMR.js +0 -2
  140. package/dist/cdn/5U5NQ3F5.js +0 -2
  141. package/dist/cdn/77HZGUSC.js +0 -2
  142. package/dist/cdn/A3CISHRB.js +0 -2
  143. package/dist/cdn/AFBKMYU6.js +0 -4
  144. package/dist/cdn/IUJ4ILLQ.js +0 -2
  145. package/dist/cdn/JPD7Z3MB.js +0 -2
  146. package/dist/cdn/LB7I345F.js +0 -2
  147. package/dist/cdn/LBD3GPSD.js +0 -2
  148. package/dist/cdn/MCH3WQ4X.js +0 -2
  149. package/dist/cdn/NKMDS2IH.js +0 -2
  150. package/dist/cdn/PSITQBDP.js +0 -2
  151. package/dist/cdn/TXYPZ6MB.js +0 -2
  152. package/dist/cdn/WLYFLEI6.js +0 -2
  153. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +0 -1
  154. /package/dist/cdn/{ECNI2A4K.js → XEK22IDA.js} +0 -0
  155. /package/dist/chunks/{commonFunctions.js → general.js} +0 -0
@@ -0,0 +1,174 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as k } from "../../chunks/runtime.js";
3
+ import { ref as _ } from "lit/directives/ref.js";
4
+ import { css as C, render as w, nothing as P, html as p } from "lit";
5
+ import { LitElement as z, nothing as v } from "@arcgis/lumina";
6
+ import { useDirection as L } from "@arcgis/lumina/controllers";
7
+ import { s as x, a as T, b as $, c as A } from "../../chunks/toolbar.js";
8
+ import { AsyncDirective as R } from "lit/async-directive.js";
9
+ import { directive as M, PartType as D } from "lit/directive.js";
10
+ import { getCommittedValue as u, clearPart as E, insertPart as b, setCommittedValue as f } from "lit/directive-helpers.js";
11
+ const V = C`:host{--calcite-internal-animation-timing-slow: 0}.toolbar-stack{align-items:stretch;display:flex;max-inline-size:min(100cqw,100vw);max-block-size:min(100cqh,100vh);min-inline-size:0;min-block-size:0;gap:8px}.stack{display:flex}.stack[data-horizontal-position=right]{justify-content:right}.stack[data-horizontal-position=left]{justify-content:left}.line{display:flex;flex:none;gap:8px}:host([layout="vertical"]) .line{flex-direction:column;max-height:min(100cqh - var(--arcgis-internal-attribution-space-top) - 2 * var(--calcite-space-lg),100vh - 2 * var(--calcite-space-lg))}:host([layout="horizontal"]) .line{flex-direction:row}.line[data-alignment=top]{justify-content:flex-start}.line[data-alignment=bottom]{justify-content:flex-end}.line[data-alignment=left]{justify-content:left}.line[data-alignment=right]{justify-content:right}:host([layout="vertical"]) .toolbar-stack{flex-direction:row}:host([layout="horizontal"]) .toolbar-stack{flex-direction:column}:host([toolbar-kind="docked"][layout="horizontal"]) .toolbar-stack{min-inline-size:100%;calcite-action-bar{min-width:auto}}:host([toolbar-kind="docked"][layout="vertical"]) .toolbar-stack{min-block-size:100%;calcite-action-bar{min-height:auto}}:host([toolbar-kind="floating"]) .toolbar-shadow-wrapper{box-shadow:var(--calcite-shadow-md);background-color:var(--calcite-action-bar-background-color, var(--calcite-color-foreground-1));border-radius:var(--calcite-action-bar-corner-radius, var(--calcite-corner-radius-round));min-inline-size:0;min-block-size:0}`;
12
+ class j {
13
+ constructor(t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Set()) {
14
+ this.cachedParts = t, this.directives = e;
15
+ }
16
+ moveAllToCache() {
17
+ for (const t of this.directives)
18
+ t.moveToCache();
19
+ }
20
+ }
21
+ class S extends R {
22
+ #e;
23
+ #i;
24
+ #t;
25
+ constructor(t) {
26
+ if (super(t), t.type !== D.CHILD)
27
+ throw new Error("sharedCache() can only be used in child expressions");
28
+ }
29
+ /**
30
+ * @param _store Shared store backing this and other caching directives with the shared cache
31
+ * @param _key Uniquely identifies the element being rendered
32
+ * @param value The content to render
33
+ */
34
+ render(t, e, o) {
35
+ return [o];
36
+ }
37
+ update(t, [e, o, a]) {
38
+ this.#t !== e && (this.#t && this.#t.directives.delete(this), e.directives.add(this), this.#t = e), this.#e = t, this.#i = o;
39
+ const i = e.cachedParts.get(o), s = i ? u(i).pop() : void 0;
40
+ return s && (E(t), b(t, void 0, s), f(t, [s])), this.render(e, o, a);
41
+ }
42
+ /**
43
+ * During the update phase, a toolbar may need to be pulled from the cache in a situation
44
+ * where it was still on the page from the previous render.
45
+ *
46
+ * To work around this problem, during parent component render phase a pre-caching
47
+ * step moves all cacheable elements into the cache. This is the method called by
48
+ * that pre-caching step.
49
+ *
50
+ * @returns
51
+ */
52
+ moveToCache() {
53
+ const t = this.#e, e = this.#t;
54
+ if (!t || !e)
55
+ return;
56
+ const a = u(t).pop();
57
+ if (!a)
58
+ return;
59
+ let i = e.cachedParts.get(this.#i);
60
+ if (!i) {
61
+ const c = document.createDocumentFragment();
62
+ i = w(P, c), e.cachedParts.set(this.#i, i);
63
+ }
64
+ if (u(i).length > 0)
65
+ throw new Error("sharedCache() keys must be unique");
66
+ f(i, [a]), b(i, void 0, a);
67
+ }
68
+ disconnected() {
69
+ this.#t?.directives.delete(this);
70
+ }
71
+ reconnected() {
72
+ this.#t?.directives.add(this);
73
+ }
74
+ }
75
+ const q = M(S), O = 8;
76
+ class K extends z {
77
+ constructor() {
78
+ super(), this.#e = new ResizeObserver((t) => this._updateMeasurement(t)), this.#i = new MutationObserver(() => this._syncToolbars()), this.#r = L(), this.#o = new j(), this._layout = "horizontal", this._availableLength = 0, this.scale = "m", this.tooltipAppearance = "native", this.relativePosition = "top-left", this.toolbarKind = "floating", this.listen("arcgisInternalLayoutUpdate", () => this.requestUpdate());
79
+ }
80
+ static {
81
+ this.properties = { _availableLength: 16, _toolbars: 16, effectiveRelativeDirection: 16, layout: 3, scale: 3, tooltipAppearance: 1, relativePosition: 1, toolbarKind: 3 };
82
+ }
83
+ static {
84
+ this.styles = [V, x, T, $, A];
85
+ }
86
+ #e;
87
+ #i;
88
+ #t;
89
+ #r;
90
+ #o;
91
+ #a;
92
+ get effectiveRelativeDirection() {
93
+ const [t, e] = this.relativePosition.split("-"), o = this.#r;
94
+ switch (e) {
95
+ case "left":
96
+ case "right":
97
+ return `${t}-${e}`;
98
+ case "end":
99
+ return `${t}-${o === "ltr" ? "right" : "left"}`;
100
+ case "start":
101
+ return `${t}-${o === "ltr" ? "left" : "right"}`;
102
+ }
103
+ }
104
+ get layout() {
105
+ return this._layout;
106
+ }
107
+ set layout(t) {
108
+ t !== this._layout && (this._layout = t, this._updateMeasurement());
109
+ }
110
+ connectedCallback() {
111
+ super.connectedCallback(), this._connectMeasurement(this.#a), this.#i.observe(this.el, { childList: !0 }), this._syncToolbars();
112
+ }
113
+ disconnectedCallback() {
114
+ this.#e.disconnect(), this.#i.disconnect(), super.disconnectedCallback();
115
+ }
116
+ _setRulerEl(t) {
117
+ this.#a !== t && (this.#a = t, this.isConnected && this._connectMeasurement(t));
118
+ }
119
+ _connectMeasurement(t) {
120
+ this.#e.disconnect(), t && (this.#e.observe(t), this._updateMeasurement());
121
+ }
122
+ _updateMeasurement(t) {
123
+ const e = t?.at(0)?.contentRect ?? this.#a?.getBoundingClientRect();
124
+ e && (this._availableLength = this.layout === "horizontal" ? e.width : e.height);
125
+ }
126
+ _syncToolbars() {
127
+ this.#t?.abort();
128
+ const t = Array.from(this.el.children).filter(W), e = new AbortController();
129
+ this.#t = e, Promise.all(t.map((o) => o.componentOnReady())).then(() => {
130
+ !this.isConnected || e.signal.aborted || (this._toolbars = t);
131
+ });
132
+ }
133
+ _arrangeToolbarLines(t, e) {
134
+ const o = t.map((r) => {
135
+ const d = r.allocate(e, this._availableLength);
136
+ return { toolbar: r, budget: d.reduce((g, y) => g + y.budget, 0) };
137
+ }), a = [];
138
+ let i = [], s = 0;
139
+ for (const r of o) {
140
+ const d = s + (i.length === 0 ? 0 : O) + r.budget;
141
+ i.length > 0 && d > this._availableLength ? (a.push(i), i = [r], s = r.budget) : (i.push(r), s = d);
142
+ }
143
+ i.length > 0 && a.push(i);
144
+ const [c, h] = e.relativePosition.split("-"), l = e.layout === "vertical";
145
+ return (l ? h === "right" : c === "bottom") && a.reverse(), (l ? c === "bottom" : h === "right") && a.forEach((r) => r.reverse()), a;
146
+ }
147
+ #s;
148
+ render() {
149
+ const t = this._toolbars;
150
+ if (!t?.length) {
151
+ this.#s?.length && (this.#o.moveAllToCache(), this.#s = []);
152
+ return;
153
+ }
154
+ const e = {
155
+ layout: this.layout,
156
+ relativePosition: this.effectiveRelativeDirection,
157
+ scale: this.scale,
158
+ tooltipAppearance: this.tooltipAppearance
159
+ }, o = this._arrangeToolbarLines(t, e);
160
+ U(this.#s, o) || (this.#o.moveAllToCache(), this.#s = o.map((h) => h.map(({ toolbar: l }) => l)));
161
+ const [a, i] = e.relativePosition.split("-"), s = this.layout === "vertical" ? a : i, c = this.#o;
162
+ return p`<div class="stack" data-horizontal-position=${i ?? v}><div class="ruler" ${_(this._setRulerEl)}></div><div class="toolbar-stack">${o.map((h) => p`<div class="line" data-alignment=${s ?? v}>${h.map(({ toolbar: l, budget: m }) => q(c, l, l.proxiedRender(e, m, this.toolbarKind)))}</div>`)}</div></div>`;
163
+ }
164
+ }
165
+ function W(n) {
166
+ return n.localName === "arcgis-toolbar";
167
+ }
168
+ function U(n, t) {
169
+ return n?.length === t.length && t.every((e, o) => e.length === n[o].length && e.every(({ toolbar: a }, i) => a === n[o][i]));
170
+ }
171
+ k("arcgis-toolbar-stack", K);
172
+ export {
173
+ K as ArcgisToolbarStack
174
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -1,71 +1,72 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as H } from "../../chunks/runtime.js";
3
- import { css as G, html as w } from "lit";
4
- import { keyed as J } from "lit/directives/keyed.js";
5
- import { LitElement as K, createEvent as I } from "@arcgis/lumina";
6
- import { Task as Q } from "@lit/task";
7
- import { createRef as X, ref as L } from "lit/directives/ref.js";
8
- import { log as D, composeMissingPropertyMessage as N } from "@arcgis/toolkit/log";
9
- import { formatDate as F, convertDateFormatToIntlOptions as b, formatDateOnly as Y, formatTimeOnly as ee, formatTimestamp as U, formatNumber as te } from "@arcgis/core/intl.js";
2
+ import { c as P } from "../../chunks/runtime.js";
3
+ import { keyed as G } from "lit/directives/keyed.js";
4
+ import { LitElement as J, createEvent as T } from "@arcgis/lumina";
5
+ import { Task as K } from "@lit/task";
6
+ import { css as Q, html as F } from "lit";
7
+ import { createRef as X, ref as E } from "lit/directives/ref.js";
8
+ import { log as S, composeMissingPropertyMessage as Z } from "@arcgis/toolkit/log";
9
+ import { formatDate as D, convertDateFormatToIntlOptions as $, formatDateOnly as Y, formatTimeOnly as ee, formatTimestamp as z, formatNumber as te } from "@arcgis/core/intl.js";
10
10
  import ie from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
11
- import { clone as O } from "@arcgis/core/core/lang.js";
12
- import { g as T, i as h } from "../../chunks/commonFunctions.js";
13
- import { f as S, e as z, k as B, d as Z } from "../../chunks/layer-utils.js";
14
- import { u as se } from "../../chunks/useT9n.js";
11
+ import * as se from "@arcgis/core/core/reactiveUtils.js";
12
+ import { clone as I } from "@arcgis/core/core/lang.js";
13
+ import { g as O, i as h } from "../../chunks/general.js";
14
+ import { f as w, e as L, k as A, d as N } from "../../chunks/layer-utils.js";
15
+ import { u as ne } from "../../chunks/useT9n.js";
15
16
  function k(i) {
16
17
  return (/* @__PURE__ */ new Date(`1970-01-01T${i}Z`)).getTime();
17
18
  }
18
- function R(i) {
19
+ function B(i) {
19
20
  return (/* @__PURE__ */ new Date(`${i} 00:00:00`)).getTime();
20
21
  }
21
- function ne(i, e, s) {
22
+ function oe(i, e, s) {
22
23
  let t;
23
- return e === "unknown" ? t = F(i, {
24
- ...b("short-date-short-time"),
24
+ return e === "unknown" ? t = D(i, {
25
+ ...$("short-date-short-time"),
25
26
  timeZone: "utc",
26
27
  timeZoneName: "shortOffset"
27
- }) : t = F(i, {
28
- ...b("short-date-short-time"),
28
+ }) : t = D(i, {
29
+ ...$("short-date-short-time"),
29
30
  timeZone: e
30
31
  }), t;
31
32
  }
32
- function oe(i) {
33
- return i ? Y(i, b("short-date")) : "";
34
- }
35
33
  function ae(i) {
34
+ return i ? Y(i, $("short-date")) : "";
35
+ }
36
+ function le(i) {
36
37
  let e;
37
- return typeof i == "string" ? e = ee(i, b("short-date-long-time")) : e = F(i, {
38
- ...b("long-time"),
38
+ return typeof i == "string" ? e = ee(i, $("short-date-long-time")) : e = D(i, {
39
+ ...$("long-time"),
39
40
  timeZone: "utc"
40
41
  }), e;
41
42
  }
42
- function le(i, e) {
43
- return typeof i == "string" ? e && "timeZone" in e && e.timeZone === "unknown" ? U(i, {
44
- ...b("short-date-short-time"),
43
+ function re(i, e) {
44
+ return typeof i == "string" ? e && "timeZone" in e && e.timeZone === "unknown" ? z(i, {
45
+ ...$("short-date-short-time"),
45
46
  timeZone: "utc",
46
47
  timeZoneName: "shortOffset"
47
- }) : U(i, {
48
- ...b("short-date-short-time"),
48
+ }) : z(i, {
49
+ ...$("short-date-short-time"),
49
50
  timeZone: e && "timeZone" in e && e.timeZone ? e.timeZone : "system"
50
- }) : e && "timeZone" in e && e.timeZone === "unknown" ? F(i, {
51
- ...b("short-date-short-time"),
51
+ }) : e && "timeZone" in e && e.timeZone === "unknown" ? D(i, {
52
+ ...$("short-date-short-time"),
52
53
  timeZone: "utc",
53
54
  timeZoneName: "shortOffset"
54
- }) : F(i, {
55
- ...b("short-date-short-time"),
55
+ }) : D(i, {
56
+ ...$("short-date-short-time"),
56
57
  timeZone: e && "timeZone" in e && e.timeZone ? e.timeZone : "system"
57
58
  });
58
59
  }
59
- function A(i, e, s) {
60
- if (!S(i) && !z(i) && !B(i) && !Z(i))
60
+ function R(i, e, s) {
61
+ if (!w(i) && !L(i) && !A(i) && !N(i))
61
62
  return;
62
63
  let t;
63
- return T(i, s).fields.forEach((p) => {
64
- const a = p.name, r = "domain" in p ? p.domain : void 0;
65
- if (!Z(i) && i.subtypeField === a) {
64
+ return O(i, s).fields.forEach((p) => {
65
+ const a = p.name, u = "domain" in p ? p.domain : void 0;
66
+ if (!N(i) && i.subtypeField === a) {
66
67
  let c;
67
- B(i) || S(i) ? c = i.subtypes : c = i.parent.subtypes, c.forEach((l) => {
68
- z(i) && i.subtypeCode !== l.code || (e.name === a && (t = t || [], t.push({ code: l.code, name: l.name })), l.domains && Object.keys(l.domains).forEach((d) => {
68
+ A(i) || w(i) ? c = i.subtypes : c = i.parent.subtypes, c.forEach((l) => {
69
+ L(i) && i.subtypeCode !== l.code || (e.name === a && (t = t || [], t.push({ code: l.code, name: l.name })), l.domains && Object.keys(l.domains).forEach((d) => {
69
70
  if (e.name === d) {
70
71
  const o = l.domains[d];
71
72
  o?.type === "coded-value" && o?.codedValues && o.codedValues.forEach((n) => {
@@ -78,9 +79,9 @@ function A(i, e, s) {
78
79
  }));
79
80
  });
80
81
  }
81
- if (e.name === a && (S(i) || Z(i))) {
82
- const c = S(i) ? i.typeIdField : void 0, l = S(i) ? i.types : void 0;
83
- S(i) && c && l ? (c === a ? t = l.map(
82
+ if (e.name === a && (w(i) || N(i))) {
83
+ const c = w(i) ? i.typeIdField : void 0, l = w(i) ? i.types : void 0;
84
+ w(i) && c && l ? (c === a ? t = l.map(
84
85
  (d) => (
85
86
  // fake coded Values
86
87
  {
@@ -90,29 +91,29 @@ function A(i, e, s) {
90
91
  )
91
92
  ) : (t = t || [], l.forEach((d) => {
92
93
  if (!d.domains?.[a] || d.domains[a].type === "inherited") {
93
- const o = r;
94
+ const o = u;
94
95
  o?.codedValues && o.codedValues.forEach((n) => {
95
96
  let g = !1;
96
97
  t.forEach((v) => {
97
98
  v.code === n.code && (g = !0, `| ${v.name} |`.includes(`| ${n.name} |`) || (v.name += ` | ${n.name}`));
98
- }), g || t.push(O(n));
99
+ }), g || t.push(I(n));
99
100
  });
100
101
  } else d.domains?.[a]?.codedValues && d.domains[a].codedValues.forEach((o) => {
101
102
  let n = !1;
102
103
  t.forEach((g) => {
103
104
  g.code === o.code && (n = !0, `| ${g.name} |`.includes(`| ${o.name} |`) || (g.name += ` | ${o.name}`));
104
- }), n || t.push(O(o));
105
+ }), n || t.push(I(o));
105
106
  });
106
- })), !t?.length && r?.codedValues && (t = O(r.codedValues))) : r?.codedValues && (t = r.codedValues);
107
+ })), !t?.length && u?.codedValues && (t = I(u.codedValues))) : u?.codedValues && (t = u.codedValues);
107
108
  }
108
109
  }), t;
109
110
  }
110
- function E(i, e) {
111
+ function x(i, e) {
111
112
  const s = e;
112
113
  if (s) {
113
114
  let t = "";
114
- for (let u = 0; u < s.length; u++) {
115
- const p = s[u];
115
+ for (let r = 0; r < s.length; r++) {
116
+ const p = s[r];
116
117
  p.code == i && (t += (t.length ? " | " : "") + p.name);
117
118
  }
118
119
  return t.length || (t = `${i}`), t;
@@ -122,7 +123,7 @@ function E(i, e) {
122
123
  function C(i) {
123
124
  return ["small-integer", "big-integer", "integer", "single", "double", "long"].includes(i.type);
124
125
  }
125
- function j(i) {
126
+ function H(i) {
126
127
  switch (i.type) {
127
128
  case "small-integer":
128
129
  case "big-integer":
@@ -143,33 +144,33 @@ function j(i) {
143
144
  return i.type;
144
145
  }
145
146
  }
146
- const re = G`:host{width:100%}.container{min-height:30px}.popover-unique-list{width:100%;overflow-y:auto}.unique-values-content-list-msg{font-size:75%;margin:5px}.count{padding:0 6px;font-size:smaller;white-space:nowrap}`;
147
- class ue extends K {
147
+ const ue = Q`:host{width:100%}.container{min-height:30px}.popover-unique-list{width:100%;overflow-y:auto}.unique-values-content-list-msg{font-size:75%;margin:5px}.count{padding:0 6px;font-size:smaller;white-space:nowrap}`;
148
+ class ce extends J {
148
149
  constructor() {
149
- super(...arguments), this.dropdownNode = X(), this._messages = se({ blocking: !0 }), this._propWatcherTask = new Q(this, {
150
+ super(...arguments), this.dropdownNode = X(), this.initialized = !1, this._messages = ne({ blocking: !0 }), this._propWatcherTask = new K(this, {
150
151
  task: async ([e, s, t]) => {
151
- const u = h(e) && h(s) || h(t);
152
- if (!h(t) && !h(e) && !h(s) ? D("error", this, N("uniqueValues")) : h(t) || (h(e) || D("error", this, N("layer")), h(s) || D("error", this, N("fieldName"))), h(e) && h(s)) {
152
+ const r = h(e) && h(s) || h(t);
153
+ if (!h(t) && !h(e) && !h(s) ? S("error", this, Z("uniqueValues")) : h(t) || (h(e) || S("error", this, Z("layer")), h(s) || S("error", this, Z("fieldName"))), h(e) && h(s)) {
153
154
  const { visualizationSource: p } = this;
154
- if (!T(e, p).fields?.filter((c) => c.name === s))
155
- throw D("error", this, "Field could not be found."), new Error();
155
+ if (!O(e, p).fields?.filter((c) => c.name === s))
156
+ throw S("error", this, "Field could not be found."), new Error();
156
157
  }
157
- if (!u)
158
+ if (!r)
158
159
  throw new Error();
159
- await this.processProps();
160
+ await this.processProps(), this._propWatcherTask.autoRun = !1;
160
161
  },
161
162
  args: () => [
162
163
  this.layer,
163
164
  this.fieldName,
164
165
  this.uniqueValues
165
166
  ]
166
- }), this.initialRender = !0, this.multiple = !1, this.partialUniqueValues = !1, this.showFilterLength = 10, this.arcgisChange = I(), this.arcgisSortByChange = I(), this.arcgisLoad = I();
167
+ }), this.initialRender = !0, this.multiple = !1, this.partialUniqueValues = !1, this.showFilterLength = 10, this.arcgisChange = T(), this.arcgisSortByChange = T(), this.arcgisLoad = T();
167
168
  }
168
169
  static {
169
170
  this.properties = { initialRender: 16, view: 0, layer: 0, visualizationSource: 1, fieldName: 1, uniqueValues: 0, numberFormatOptions: 0, selectedValues: 0, sortBy: 1, multiple: 5, partialUniqueValues: 5, showFilterLength: 9, maxHeight: 9 };
170
171
  }
171
172
  static {
172
- this.styles = re;
173
+ this.styles = ue;
173
174
  }
174
175
  async setFocus() {
175
176
  this.listNode?.setFocus();
@@ -184,48 +185,62 @@ class ue extends K {
184
185
  loaded() {
185
186
  this.layer && this.fieldInfo && (setTimeout(() => this.initialRender = !1, 800), this.listNode?.setFocus());
186
187
  }
188
+ willUpdate(e) {
189
+ this.initialized && (e.has("layer") || e.has("visualizationSource") || e.has("fieldName") || e.has("uniqueValues")) && this.processProps().then(() => this.requestUpdate()), e.has("maxHeight") && this.maxHeight && this.listNode?.setAttribute("style", `max-height: ${this.maxHeight || 400}px`);
190
+ }
187
191
  async processProps() {
188
- const { layer: e, fieldName: s, view: t, visualizationSource: u } = this, a = (e ? T(e, u) : void 0)?.fields?.filter((r) => r.name === s)?.[0];
192
+ const { layer: e, fieldName: s, view: t, visualizationSource: r } = this, a = (e ? O(e, r) : void 0)?.fields?.filter((u) => u.name === s)?.[0];
193
+ if (!a) {
194
+ S("error", this, `Field '${s}' not found in layer`), this.fieldInfo = {
195
+ layerField: a,
196
+ fieldDomains: void 0,
197
+ simpleType: void 0,
198
+ partialUniqueValues: !1,
199
+ uniqueValueInfos: []
200
+ };
201
+ return;
202
+ }
189
203
  if (h(this.uniqueValues))
190
204
  this.fieldInfo = {
191
205
  layerField: a,
192
- fieldDomains: e && a ? A(e, a, u) : void 0,
193
- simpleType: e && a ? j(a) : void 0,
206
+ fieldDomains: e && a ? R(e, a, r) : void 0,
207
+ simpleType: e && a ? H(a) : void 0,
194
208
  partialUniqueValues: this.partialUniqueValues ?? !1,
195
209
  uniqueValueInfos: this.uniqueValues
196
210
  }, this.arcgisLoad.emit();
197
211
  else if (e && a) {
198
212
  this.fieldInfo = {
199
213
  layerField: a,
200
- fieldDomains: A(e, a, u),
201
- simpleType: j(a),
214
+ fieldDomains: R(e, a, r),
215
+ simpleType: H(a),
202
216
  partialUniqueValues: !1
203
217
  };
204
- const { fieldInfo: r } = this;
218
+ const { fieldInfo: u } = this;
205
219
  try {
206
220
  const c = await ie({
207
221
  layer: e,
208
222
  view: t,
209
223
  field: s,
210
224
  sqlWhere: "definitionExpression" in e ? e.definitionExpression ?? void 0 : void 0,
211
- forBinning: !1
225
+ forBinning: r === "feature-reduction"
212
226
  }), l = C(a), d = c.uniqueValueInfos.filter((o) => h(o.value) ? a.type === "string" && !l || a.type === "guid" ? o.value !== "<Null>" && `${o.value}`.trim() !== "" : (C(a) || a.type === "oid" || l, o.value !== "<Null>" && o.value !== "") : !1);
213
- d.sort((o, n) => o.count > n.count ? -1 : o.count < n.count ? 1 : 0), r.fieldDomains?.length && r.fieldDomains.forEach((o) => {
227
+ d.sort((o, n) => o.count > n.count ? -1 : o.count < n.count ? 1 : 0), u.fieldDomains?.length && u.fieldDomains.forEach((o) => {
214
228
  d.find((n) => n.value === o.code) || d.push({
215
229
  value: o.code,
216
230
  count: 0
217
231
  });
218
- }), r.uniqueValueInfos = d, r.partialUniqueValues = c.uniqueValueInfos.length === 2e3, this.arcgisLoad.emit();
232
+ }), u.uniqueValueInfos = d, u.partialUniqueValues = c.uniqueValueInfos.length === 2e3, this.initialized || this.arcgisLoad.emit(), this.setUpTimeZoneHandle(), this.initialized = !0;
219
233
  } catch (c) {
220
- if (D("error", this, `uniqueValues() - ${c.message}`), this.hasFieldDomains(r)) {
234
+ if (S("error", this, `uniqueValues() - ${c.message}`), this.hasFieldDomains(u)) {
221
235
  const d = [];
222
- r.fieldDomains.forEach((o) => {
236
+ u.fieldDomains.forEach((o) => {
223
237
  d.find((n) => n.value === o.code) || d.push({
224
238
  value: o.code,
225
239
  count: void 0
226
240
  });
227
241
  });
228
242
  }
243
+ this.initialized = !0;
229
244
  }
230
245
  setTimeout(() => {
231
246
  this.initialRender = !1, this.listNode?.setFocus();
@@ -240,6 +255,11 @@ class ue extends K {
240
255
  const t = e.currentTarget.selectedItems?.[0].getAttribute("data-value");
241
256
  this.sortBy = t || void 0, this.arcgisSortByChange.emit(t || void 0);
242
257
  }
258
+ setUpTimeZoneHandle() {
259
+ this.timeZoneHandle?.remove();
260
+ const { view: e, fieldInfo: s } = this;
261
+ s.simpleType && ["date", "timestamp-offset"].includes(s.simpleType) && (this.timeZoneHandle = se.watch(() => e?.timeZone, () => this.requestUpdate()));
262
+ }
243
263
  isSameLists(e, s) {
244
264
  if (!e && !s)
245
265
  return !0;
@@ -256,50 +276,50 @@ class ue extends K {
256
276
  render() {
257
277
  return this._propWatcherTask.render({
258
278
  complete: () => {
259
- const { fieldInfo: e, selectedValues: s, sortBy: t, multiple: u, initialRender: p, showFilterLength: a, _messages: r } = this, { fieldDomains: c, uniqueValueInfos: l, partialUniqueValues: d, layerField: o } = e, n = o?.type;
279
+ const { fieldInfo: e, selectedValues: s, sortBy: t, multiple: r, initialRender: p, showFilterLength: a, _messages: u } = this, { fieldDomains: c, uniqueValueInfos: l, partialUniqueValues: d, layerField: o } = e, n = o?.type;
260
280
  if (!l?.length)
261
281
  return "";
262
282
  const g = n ? ["small-integer", "big-integer", "integer", "single", "double", "long", "oid"].includes(n) : !1, v = n ? ["date", "date-only", "time-only"].includes(n) : !1, _ = (y) => {
263
- y.sort(($, m) => $.count <= m.count ? 1 : -1);
264
- }, M = (y) => {
265
- const $ = c?.length;
266
- y.sort((m, f) => {
267
- if (!$ && g)
268
- return (typeof m.value == "string" ? Number.parseFloat(m.value) : m.value) - (typeof f.value == "string" ? Number.parseFloat(f.value) : f.value);
283
+ y.sort((m, f) => m.count <= f.count ? 1 : -1);
284
+ }, j = (y) => {
285
+ const m = c?.length;
286
+ y.sort((f, b) => {
287
+ if (!m && g)
288
+ return (typeof f.value == "string" ? Number.parseFloat(f.value) : f.value) - (typeof b.value == "string" ? Number.parseFloat(b.value) : b.value);
269
289
  {
270
- const q = $ ? E(m.value, c) : m.label ?? m.value, V = $ ? E(f.value, c) : f.label ?? f.value;
290
+ const q = m ? x(f.value, c) : f.label ?? f.value, V = m ? x(b.value, c) : b.label ?? b.value;
271
291
  return `${q}`.startsWith("_") ? 1 : `${V}`.startsWith("_") ? -1 : `${q}`.localeCompare(`${V}`);
272
292
  }
273
293
  });
274
- }, P = (y, $) => {
275
- y.sort((m, f) => {
276
- const q = $?.indexOf(m.value) ?? -1, V = $?.indexOf(f.value) ?? -1;
294
+ }, M = (y, m) => {
295
+ y.sort((f, b) => {
296
+ const q = m?.indexOf(f.value) ?? -1, V = m?.indexOf(b.value) ?? -1;
277
297
  return q === V || q > -1 && V > -1 ? 0 : q > V ? -1 : 1;
278
298
  });
279
299
  };
280
- M(l), !t || t === "count" ? _(l) : t === "selected" && P(l, s);
300
+ j(l), !t || t === "count" ? _(l) : t === "selected" && M(l, s);
281
301
  const W = l.map((y) => this.renderUniqueValue(y));
282
- let x;
283
- return d && !p && (x = w`<div class="unique-values-content-list-msg">${r.errors.tooManyUniqueValues}</div>`), w`<div class="container"><calcite-list .label=${r.values} class="popover-unique-list" .filterEnabled=${l.length >= a} .selectionMode=${u ? "multiple" : "single"} .filterPlaceholder=${r.searchValues} @calciteListChange=${(y) => {
284
- let m = y.target.selectedItems.map((f) => f.value);
285
- !c && n === "date-only" ? m = m?.map((f) => R(f)) : !c && n === "time-only" ? m = m?.map((f) => k(f)) : n && ["date", "oid", "small-integer", "big-integer", "integer", "long"].includes(n) ? m = m?.map((f) => Number.parseInt(f)) : n && ["single", "double"].includes(n) && (m = m?.map((f) => Number.parseFloat(f))), !this.isSameLists(m, this.selectedValues) && (this.selectedValues = m, this.arcgisChange.emit(m));
302
+ let U;
303
+ return d && !p && (U = F`<div class="unique-values-content-list-msg">${u.errors.tooManyUniqueValues}</div>`), F`<div class="container"><calcite-list .label=${u.values} class="popover-unique-list" .filterEnabled=${l.length >= a} .selectionMode=${r ? "multiple" : "single"} .filterPlaceholder=${u.searchValues} @calciteListChange=${(y) => {
304
+ let m = y.currentTarget.selectedItems.map((f) => f.value);
305
+ !c && n === "date-only" ? m = m?.map((f) => B(f)) : !c && n === "time-only" ? m = m?.map((f) => k(f)) : n && ["date", "oid", "small-integer", "big-integer", "integer", "long"].includes(n) ? m = m?.map((f) => Number.parseInt(f)) : n && ["single", "double"].includes(n) && (m = m?.map((f) => Number.parseFloat(f))), !this.isSameLists(m, this.selectedValues) && (this.selectedValues = m, this.arcgisChange.emit(m));
286
306
  }} @calciteListFilter=${() => {
287
307
  this.dropdownNode.value && (this.dropdownNode.value.disabled = this.listNode.filteredItems.length < 4);
288
- }} ${L(this.setListRef)}>${l.length >= a && !p ? this.renderSort(g, v) : null}${W}</calcite-list>${x}</div>`;
308
+ }} ${E(this.setListRef)}>${l.length >= a && !p ? this.renderSort(g, v) : null}${W}</calcite-list>${U}</div>`;
289
309
  },
290
310
  error: () => ""
291
311
  });
292
312
  }
293
313
  renderSort(e, s) {
294
- const { sortBy: t, _messages: u } = this;
295
- return w`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed @calciteDropdownSelect=${this.onSortMenuSelect} ${L(this.dropdownNode)}><calcite-action slot=trigger .label=${u.sortValues} text><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${t === "count" || !h(t)} data-value=count>${u.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t === "name"} data-value=name>${e || s ? u.sortAscending : u.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t === "selected"} data-value=selected>${u.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`;
314
+ const { sortBy: t, _messages: r } = this;
315
+ return F`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed @calciteDropdownSelect=${this.onSortMenuSelect} ${E(this.dropdownNode)}><calcite-action slot=trigger .label=${r.sortValues} text><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${t === "count" || !h(t)} data-value=count>${r.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t === "name"} data-value=name>${e || s ? r.sortAscending : r.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t === "selected"} data-value=selected>${r.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`;
296
316
  }
297
317
  renderUniqueValue(e) {
298
- const { selectedValues: s, initialRender: t, view: u, fieldInfo: p, numberFormatOptions: a } = this, { fieldDomains: r, uniqueValueInfos: c, simpleType: l } = p, d = u && "timeZone" in u && u.timeZone || "system", o = r?.length ? E(e.value, r) : l === "date" ? ne(e.value, d) : l === "date-only" ? oe(e.value) : l === "time-only" ? ae(e.value) : l === "timestamp-offset" ? le(e.value, u) : typeof e.value == "number" ? te(e.value, a) : e.label ?? e.value, n = s ? l === "date-only" ? s.includes(r?.length ? e.value : R(e.value)) : l === "time-only" ? s.includes(r?.length ? e.value : k(e.value)) : s.includes(e.value) : !1;
299
- return J(`list-item_${e.value}`, w`<calcite-list-item .label=${`${o}`} .value=${`${e.value}`} .selected=${n}>${h(e.count) && (c.length > 200 && !t || c.length <= 200) ? w`<div class="count" slot=actions-end>${`${e.count}`}</div>` : null}</calcite-list-item>`);
318
+ const { selectedValues: s, initialRender: t, view: r, fieldInfo: p, numberFormatOptions: a } = this, { fieldDomains: u, uniqueValueInfos: c, simpleType: l } = p, d = r && "timeZone" in r && r.timeZone || "system", o = u?.length ? x(e.value, u) : l === "date" ? oe(e.value, d) : l === "date-only" ? ae(e.value) : l === "time-only" ? le(e.value) : l === "timestamp-offset" ? re(e.value, r) : typeof e.value == "number" ? te(e.value, a) : e.label ?? e.value, n = s ? l === "date-only" ? s.includes(u?.length ? e.value : B(e.value)) : l === "time-only" ? s.includes(u?.length ? e.value : k(e.value)) : s.includes(e.value) : !1;
319
+ return G(`list-item_${e.value}`, F`<calcite-list-item .label=${`${o}`} .value=${`${e.value}`} .selected=${n}>${h(e.count) && (c.length > 200 && !t || c.length <= 200) ? F`<div class="count" slot=actions-end>${`${e.count}`}</div>` : null}</calcite-list-item>`);
300
320
  }
301
321
  }
302
- H("arcgis-unique-values-list", ue);
322
+ P("arcgis-unique-values-list", ce);
303
323
  export {
304
- ue as ArcgisUniqueValuesList
324
+ ce as ArcgisUniqueValuesList
305
325
  };
@@ -1,14 +1,14 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as o } from "../../chunks/runtime.js";
3
3
  import { LitElement as n, createEvent as i, nothing as l, safeClassMap as h } from "@arcgis/lumina";
4
- import { getSlotAssignedElements as r } from "@arcgis/toolkit/dom";
4
+ import { getSlotAssignedElements as r } from "@arcgis/toolkit/dom/slots";
5
5
  import { css as c, html as s } from "lit";
6
6
  import { u as d } from "../../chunks/useT9n.js";
7
7
  import { usePropertyChange as m } from "@arcgis/lumina/controllers";
8
8
  const p = c`:host{display:inline-flex;max-inline-size:100%}:host([layout="horizontal"]) slot{min-inline-size:300px;min-block-size:48px}:host([layout="vertical"]) slot{min-inline-size:300px;min-block-size:144px}slot{display:flex}slot.empty{display:none}.container{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1)}.root{display:flex;flex-direction:row;align-items:stretch}calcite-action{width:var(--calcite-font-line-height-fixed-4xl);height:var(--calcite-font-line-height-fixed-4xl)}calcite-action-bar{--calcite-action-bar-items-space: var(--calcite-space-none);--calcite-spacing-sm: var(--calcite-space-none);background-color:var(--calcite-color-foreground-1)}.separator{border-inline-end:solid 1px var(--calcite-color-border-3);width:1px}`;
9
9
  class u extends n {
10
10
  constructor() {
11
- super(), this.messages = d({ blocking: !0 }), this._isPlaying = !1, this.autoDestroyDisabled = !1, this.disabled = !1, this.hideNextButton = !1, this.hidePlayButton = !1, this.hidePreviousButton = !1, this.icon = "list-rectangle", this.label = "", this.layout = "horizontal", this.loop = !1, this.playRate = 1e3, this.arcgisPropertyChange = m()("layout", "loop", "playRate", "state"), this.arcgisAnimate = i(), this.arcgisNext = i(), this.arcgisPrevious = i(), this.arcgisPlay = i(), this.arcgisPause = i(), this.arcgisSlottedElementChange = i(), this.listen("arcgisPropertyChange", () => this.requestUpdate());
11
+ super(), this.messages = d({ blocking: !0 }), this._isPlaying = !1, this.autoDestroyDisabled = !1, this.disabled = !1, this.hideNextButton = !1, this.hidePlayButton = !1, this.hidePreviousButton = !1, this.icon = "list-rectangle", this.label = "", this.layout = "horizontal", this.loop = !1, this.playRate = 1e3, this.arcgisAnimate = i(), this.arcgisNext = i(), this.arcgisPause = i(), this.arcgisPlay = i(), this.arcgisPrevious = i(), this.arcgisPropertyChange = m()("layout", "loop", "playRate", "state"), this.arcgisSlottedElementChange = i(), this.listen("arcgisPropertyChange", () => this.requestUpdate());
12
12
  }
13
13
  static {
14
14
  this.properties = { _isPlaying: 16, _slottedElement: 16, autoDestroyDisabled: 5, disabled: 5, hideNextButton: 5, hidePlayButton: 5, hidePreviousButton: 5, icon: 1, label: 1, layout: 3, loop: 5, playRate: 9, state: 32 };
@@ -34,12 +34,12 @@ class u extends n {
34
34
  previous() {
35
35
  this.arcgisPrevious.emit(), this._slottedElement?.canPrevious && this._slottedElement.step("previous");
36
36
  }
37
- disconnectedCallback() {
38
- super.disconnectedCallback(), this._isPlaying && this.pause();
39
- }
40
37
  willUpdate(t) {
41
38
  t.has("layout") && this._isElementWithLayout(this._slottedElement) && (this._slottedElement.layout = this.layout), t.has("disabled") && this._isElementWithDisabled(this._slottedElement) && (this._slottedElement.disabled = this.disabled);
42
39
  }
40
+ disconnectedCallback() {
41
+ super.disconnectedCallback(), this._isPlaying && this.pause();
42
+ }
43
43
  _handleSlotChange(t) {
44
44
  const [e] = r(t);
45
45
  this._slottedElement = e, this.arcgisSlottedElementChange.emit({ slottedElement: e }), !e && this._isPlaying && this.pause(), this._isElementWithLayout(e) && (e.layout = this.layout), this._isElementWithDisabled(e) && (e.disabled = this.disabled), this._isElementWithComponentOnReady(e) && e.componentOnReady().then(() => {