@arcgis/map-components 6.0.0-next.14 → 6.0.0-next.16

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 (134) hide show
  1. package/dist/cdn/33B22YZ5.js +2 -0
  2. package/dist/cdn/{NWCS3WJE.js → 35YLXOQ5.js} +1 -1
  3. package/dist/cdn/4XEZYOW7.js +2 -0
  4. package/dist/cdn/{OL5Z5MUQ.js → 54252KWO.js} +1 -1
  5. package/dist/cdn/{IZ3VMFW6.js → 5VXEMMLV.js} +1 -1
  6. package/dist/cdn/{UUBJR2VN.js → AI3ETXGZ.js} +1 -1
  7. package/dist/cdn/{OS3TKP63.js → AQ4GVWNJ.js} +1 -1
  8. package/dist/cdn/AWB7XOHF.js +2 -0
  9. package/dist/cdn/BYYCKI2P.js +2 -0
  10. package/dist/cdn/C2YP473B.js +2 -0
  11. package/dist/cdn/DUKK2PHD.js +2 -0
  12. package/dist/cdn/{I2VQOWJL.js → ECYWLMDD.js} +1 -1
  13. package/dist/cdn/FFVPO4JB.js +2 -0
  14. package/dist/cdn/{OS736MCE.js → FUJYJKDU.js} +1 -1
  15. package/dist/cdn/{SWWJXGPV.js → GFYLYX2V.js} +1 -1
  16. package/dist/cdn/GMEXAEOI.js +2 -0
  17. package/dist/cdn/H7QBBTTP.js +2 -0
  18. package/dist/cdn/{CDCI4EQR.js → HZDWPWBH.js} +1 -1
  19. package/dist/cdn/JB6WQEFJ.js +2 -0
  20. package/dist/cdn/{KJNU4Q25.js → JVC5XNYJ.js} +1 -1
  21. package/dist/cdn/LYYBCY4N.js +2 -0
  22. package/dist/cdn/{TMQVC4YN.js → NMGC3KRM.js} +1 -1
  23. package/dist/cdn/NU75HQA2.js +2 -0
  24. package/dist/cdn/{B2UZB5MB.js → NUZBBPNE.js} +2 -2
  25. package/dist/cdn/{JC24VBLE.js → ODSZ7JZM.js} +1 -1
  26. package/dist/cdn/{VWEJ2XSC.js → P3AEIHWE.js} +1 -1
  27. package/dist/cdn/QCYQNVPL.js +2 -0
  28. package/dist/cdn/{ARHQMHUP.js → SAIBFBPE.js} +1 -1
  29. package/dist/cdn/U6NHJKIM.js +2 -0
  30. package/dist/cdn/VYM3TR3Q.js +2 -0
  31. package/dist/cdn/WC2N2XG6.js +2 -0
  32. package/dist/cdn/ZDLHDQCX.js +2 -0
  33. package/dist/cdn/ZIQRARXE.js +2 -0
  34. package/dist/cdn/{Y56CR5OU.js → ZS5IADYN.js} +1 -1
  35. package/dist/cdn/index.js +1 -1
  36. package/dist/chunks/loader-utils.js +41 -0
  37. package/dist/chunks/resources.js +10 -4
  38. package/dist/chunks/slots.js +3 -3
  39. package/dist/chunks/useArcgisViewReadyError.js +180 -128
  40. package/dist/components/arcgis-editor/customElement.d.ts +9 -17
  41. package/dist/components/arcgis-editor/customElement.js +18 -16
  42. package/dist/components/arcgis-feature-next/customElement.js +21 -14
  43. package/dist/components/arcgis-feature-table/customElement.d.ts +58 -39
  44. package/dist/components/arcgis-features-next/customElement.js +137 -116
  45. package/dist/components/arcgis-fullscreen/customElement.js +4 -4
  46. package/dist/components/arcgis-legend/customElement.d.ts +2 -0
  47. package/dist/components/arcgis-line-of-sight/customElement.d.ts +15 -6
  48. package/dist/components/arcgis-link-chart/customElement.js +24 -24
  49. package/dist/components/arcgis-map/customElement.js +16 -16
  50. package/dist/components/arcgis-scene/customElement.js +21 -21
  51. package/dist/components/arcgis-sketch/customElement.d.ts +1 -3
  52. package/dist/components/arcgis-sketch/customElement.js +146 -178
  53. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +2 -4
  54. package/dist/components/arcgis-time-bar/customElement.js +108 -105
  55. package/dist/components/arcgis-time-bar-date/customElement.js +10 -10
  56. package/dist/components/arcgis-time-bar-extent/customElement.js +9 -9
  57. package/dist/components/arcgis-time-bar-slider/customElement.js +27 -33
  58. package/dist/components/arcgis-track/customElement.d.ts +2 -2
  59. package/dist/components/arcgis-track/types.d.ts +1 -1
  60. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +4 -3
  61. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +61 -68
  62. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +26 -3
  63. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +53 -50
  64. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -2
  65. package/dist/docs/api.json +1 -1
  66. package/dist/docs/docs.json +1 -1
  67. package/dist/docs/vscode.html-custom-data.json +1 -1
  68. package/dist/docs/web-types.json +1 -1
  69. package/dist/loader.js +2 -2
  70. package/dist/types/lumina.d.ts +2 -1
  71. package/dist/types/preact.d.ts +2 -1
  72. package/dist/types/react.d.ts +2 -1
  73. package/dist/types/stencil.d.ts +2 -1
  74. package/package.json +7 -7
  75. package/dist/cdn/6RE5RWYP.js +0 -2
  76. package/dist/cdn/AL3PLZEE.js +0 -2
  77. package/dist/cdn/EYM377YG.js +0 -2
  78. package/dist/cdn/FINGRYZY.js +0 -2
  79. package/dist/cdn/GLU2HDV6.js +0 -2
  80. package/dist/cdn/JR3EXG25.js +0 -2
  81. package/dist/cdn/LISDXDCI.js +0 -2
  82. package/dist/cdn/LXLLMRNZ.js +0 -2
  83. package/dist/cdn/OVXGV76V.js +0 -2
  84. package/dist/cdn/PTCHEZNA.js +0 -2
  85. package/dist/cdn/QAZ4W6K3.js +0 -2
  86. package/dist/cdn/QPR3KBLU.js +0 -2
  87. package/dist/cdn/TI6R2CP6.js +0 -2
  88. package/dist/cdn/TUT6GS4A.js +0 -2
  89. package/dist/cdn/UOO6QY7C.js +0 -2
  90. package/dist/cdn/UYWJU5UG.js +0 -2
  91. package/dist/cdn/WADL7TT6.js +0 -2
  92. /package/dist/cdn/{MGDY6SA3.js → 2JLC2JV7.js} +0 -0
  93. /package/dist/cdn/{ITSWOLPG.js → 37Z3E4ZM.js} +0 -0
  94. /package/dist/cdn/{SMCQ5457.js → 53PKFG2U.js} +0 -0
  95. /package/dist/cdn/{YZ23NKH4.js → 5ZLCMYZU.js} +0 -0
  96. /package/dist/cdn/{DXD3FSIB.js → 6MRDTILE.js} +0 -0
  97. /package/dist/cdn/{TTGAGK6Y.js → 72FJMPJ2.js} +0 -0
  98. /package/dist/cdn/{CIVCCENA.js → 7P23WI52.js} +0 -0
  99. /package/dist/cdn/{DU7MQDXJ.js → 7QUHJ4F6.js} +0 -0
  100. /package/dist/cdn/{PLRW457V.js → 7YXE3BUX.js} +0 -0
  101. /package/dist/cdn/{IYTA36WK.js → AE26KT54.js} +0 -0
  102. /package/dist/cdn/{OY2F5AX3.js → C4EAONGF.js} +0 -0
  103. /package/dist/cdn/{7RG4ZQP7.js → CTVCZ2FU.js} +0 -0
  104. /package/dist/cdn/{DVVXBWDN.js → EIQ3BKQI.js} +0 -0
  105. /package/dist/cdn/{J5PYSABF.js → EULM4L53.js} +0 -0
  106. /package/dist/cdn/{VHCJJ5FD.js → EVCKANRW.js} +0 -0
  107. /package/dist/cdn/{4U7C2G4R.js → GXIGMIXV.js} +0 -0
  108. /package/dist/cdn/{UAVE6R7W.js → JZSRPSRH.js} +0 -0
  109. /package/dist/cdn/{FSKKSFCQ.js → KDO2EJA3.js} +0 -0
  110. /package/dist/cdn/{B42Z3IQW.js → LCTJF3NT.js} +0 -0
  111. /package/dist/cdn/{LH3HGDD3.js → LGPNRKDT.js} +0 -0
  112. /package/dist/cdn/{5QBYMSV7.js → LNZRHKHG.js} +0 -0
  113. /package/dist/cdn/{SN3LTQAO.js → MM4N6C4V.js} +0 -0
  114. /package/dist/cdn/{A7G5RNN7.js → MQL4JTYG.js} +0 -0
  115. /package/dist/cdn/{4JRBTFMB.js → NUCXXE6V.js} +0 -0
  116. /package/dist/cdn/{XELSV7WY.js → O2VAKVIY.js} +0 -0
  117. /package/dist/cdn/{DYUSQ3OG.js → OLEIOWZX.js} +0 -0
  118. /package/dist/cdn/{3E6IBNWF.js → ORS7OWLJ.js} +0 -0
  119. /package/dist/cdn/{IHQ2C6NE.js → P3BAHG4Q.js} +0 -0
  120. /package/dist/cdn/{IPLEI5W5.js → QYMZT7OC.js} +0 -0
  121. /package/dist/cdn/{43JS3JXR.js → RENVCO3U.js} +0 -0
  122. /package/dist/cdn/{CJZCG74B.js → RGECACLD.js} +0 -0
  123. /package/dist/cdn/{HI7Y3XH5.js → SYIOPNRF.js} +0 -0
  124. /package/dist/cdn/{F2JEYWUA.js → T62G5MRK.js} +0 -0
  125. /package/dist/cdn/{AS55LGS3.js → TS32SDVT.js} +0 -0
  126. /package/dist/cdn/{W5QAG2HP.js → UCHDAO3V.js} +0 -0
  127. /package/dist/cdn/{HSYCQNEN.js → VNY7TNRC.js} +0 -0
  128. /package/dist/cdn/{KVN6NUH4.js → XJIILB3W.js} +0 -0
  129. /package/dist/cdn/{OHIZP5N4.js → Y4D3Q4G7.js} +0 -0
  130. /package/dist/cdn/{EMFLPMFZ.js → Y7KMV2PI.js} +0 -0
  131. /package/dist/cdn/{IBTIGEEQ.js → YASANB6O.js} +0 -0
  132. /package/dist/cdn/{L5L2SWJG.js → YMN2Q7CW.js} +0 -0
  133. /package/dist/cdn/{ZHP63EHR.js → YN6VG7UO.js} +0 -0
  134. /package/dist/cdn/{T6V5HDYH.js → YRYYWFPY.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as F } from "../../chunks/runtime.js";
3
- import { css as H, noChange as x, html as v } from "lit";
3
+ import { css as H, noChange as x, html as m } from "lit";
4
4
  import { substitute as q } from "@arcgis/core/intl.js";
5
5
  import { usePropertyChange as z, useWatchAttributes as N } from "@arcgis/lumina/controllers";
6
6
  import { reEmitEvent as f } from "@arcgis/lumina-toolkit/reEmitEvent";
7
7
  import j from "@arcgis/core/layers/GraphicsLayer.js";
8
8
  import J from "@arcgis/core/symbols/TextSymbol.js";
9
9
  import { LitElement as Q, createEvent as X, nothing as I } from "@arcgis/lumina";
10
- import { watch as m, on as Y, whenOnce as Z } from "@arcgis/core/core/reactiveUtils.js";
10
+ import { watch as v, on as Y, whenOnce as Z } from "@arcgis/core/core/reactiveUtils.js";
11
11
  import { u as ee } from "../../chunks/useT9n.js";
12
12
  import { m as te } from "../../chunks/useViewModel.js";
13
13
  import { V as T } from "../../chunks/visible-element.js";
@@ -17,11 +17,11 @@ import { S as oe } from "../../chunks/resources.js";
17
17
  import { getOrCreateMapValue as W, createReactiveMap as se } from "@arcgis/core/applications/Components/featureUtils.js";
18
18
  import { LayoutPriorities as y } from "@arcgis/common-components";
19
19
  import ne from "@arcgis/core/core/Accessor.js";
20
- import { property as c, subclass as le } from "@arcgis/core/core/accessorSupport/decorators.js";
20
+ import { property as a, subclass as le } from "@arcgis/core/core/accessorSupport/decorators.js";
21
21
  import { ignoreAbortErrors as C } from "@arcgis/core/core/promiseUtils.js";
22
22
  import ae from "@arcgis/core/widgets/Sketch/VisibleElements.js";
23
23
  import re from "@arcgis/core/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js";
24
- import { m as ce } from "../../chunks/handle.js";
24
+ import { c as ce } from "../../chunks/loader-utils.js";
25
25
  import { AsyncDirective as de } from "lit/async-directive.js";
26
26
  import { directive as he, PartType as pe } from "lit/directive.js";
27
27
  import { r as ue } from "../../chunks/async-utils.js";
@@ -84,45 +84,13 @@ const ve = H`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px
84
84
  defaultPriority: y.Default,
85
85
  groupKind: "actions"
86
86
  }
87
- }, Ce = 500, be = 1e3;
88
- function Te({
89
- getLoading: i,
90
- setEffectiveLoading: e
91
- }) {
92
- let t, o;
93
- function s() {
94
- clearTimeout(o), o = void 0;
95
- }
96
- function r(n) {
97
- t = n ? Date.now() : void 0, e(n);
98
- }
99
- function h(n, p) {
100
- if (n <= 0) {
101
- r(p);
102
- return;
103
- }
104
- o = setTimeout(() => {
105
- s(), r(p);
106
- }, n);
107
- }
108
- r(i());
109
- const u = m(
110
- i,
111
- (n) => {
112
- s(), n ? h(Ce, !0) : h(t == null ? 0 : be - (Date.now() - t), !1);
113
- },
114
- { sync: !0 }
115
- );
116
- return ce(() => {
117
- u.remove(), s();
118
- });
119
- }
120
- var we = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, a = (i, e, t, o) => {
121
- for (var s = o > 1 ? void 0 : o ? Se(e, t) : e, r = i.length - 1, h; r >= 0; r--)
122
- (h = i[r]) && (s = (o ? h(e, t, s) : h(s)) || s);
123
- return o && s && we(e, t, s), s;
124
87
  };
125
- let l = class extends ne {
88
+ var Ce = Object.defineProperty, be = Object.getOwnPropertyDescriptor, l = (i, e, t, o) => {
89
+ for (var s = o > 1 ? void 0 : o ? be(e, t) : e, d = i.length - 1, h; d >= 0; d--)
90
+ (h = i[d]) && (s = (o ? h(e, t, s) : h(s)) || s);
91
+ return o && s && Ce(e, t, s), s;
92
+ };
93
+ let n = class extends ne {
126
94
  //#region Lifecycle
127
95
  constructor(i) {
128
96
  super(i), this._effectiveRenderStateCache = /* @__PURE__ */ new Map(), this._effectiveGeometrySimplificationInProgress = !1, this.visibleElements = new ae(), this.settingsPopoverOpen = !1, this.availableCreateTools = [
@@ -137,20 +105,20 @@ let l = class extends ne {
137
105
  }
138
106
  initialize() {
139
107
  this.selectionViewModel ??= new re({ persistSelection: !1 }), this.addHandles([
140
- m(
108
+ v(
141
109
  () => this.sketchViewModel,
142
110
  (i, e) => {
143
111
  i !== e && this._effectiveRenderStateCache.clear();
144
112
  },
145
113
  { sync: !0 }
146
114
  ),
147
- Te({
115
+ ce({
148
116
  getLoading: () => this.sketchViewModel?.geometrySimplificationInProgress ?? !1,
149
117
  setEffectiveLoading: (i) => {
150
118
  this._effectiveGeometrySimplificationInProgress = i;
151
119
  }
152
120
  }),
153
- m(
121
+ v(
154
122
  () => this.view,
155
123
  (i) => {
156
124
  this.selectionViewModel.view = i;
@@ -158,7 +126,7 @@ let l = class extends ne {
158
126
  { initial: !0, sync: !0 }
159
127
  ),
160
128
  // Ensure the SelectionViewModel always has the latest layer
161
- m(
129
+ v(
162
130
  () => this.sketchViewModel?.layer,
163
131
  (i) => this.selectionViewModel.sources = i ? [i] : [],
164
132
  { initial: !0, sync: !0 }
@@ -167,7 +135,7 @@ let l = class extends ne {
167
135
  i.length && this.update(i);
168
136
  }),
169
137
  // Cancel active tool when selection activates
170
- m(
138
+ v(
171
139
  () => this.selectionViewModel.activeOperation,
172
140
  (i) => {
173
141
  i && (this.sketchViewModel?.cancel(), this._activeCustomToolOptions = void 0);
@@ -181,7 +149,7 @@ let l = class extends ne {
181
149
  i.state === "complete" && this.sketchViewModel?.creationMode !== "continuous" && (this._activeCustomToolOptions = void 0);
182
150
  }
183
151
  ),
184
- m(
152
+ v(
185
153
  () => this.visibleElements.settingsMenu,
186
154
  (i) => {
187
155
  i || (this.settingsPopoverOpen = !1);
@@ -237,27 +205,27 @@ let l = class extends ne {
237
205
  const { sketchViewModel: i } = this;
238
206
  if (!i)
239
207
  return [];
240
- const e = i.effectiveAvailablePlugins, t = this.state === "disabled", o = this.visibleElements.createTools, s = this.activeTool, r = this._activeCustomToolOptions, h = r || !i.firstPluginWithSwappableLeaf ? this._customToolOptions : [], u = i.rootPlugins, n = h?.map((d) => ({
241
- active: d === r,
208
+ const e = i.effectiveAvailablePlugins, t = this.state === "disabled", o = this.visibleElements.createTools, s = this.activeTool, d = this._activeCustomToolOptions, h = d || !i.firstPluginWithSwappableLeaf ? this._customToolOptions : [], u = i.rootPlugins, r = h?.map((c) => ({
209
+ active: c === d,
242
210
  disabled: t,
243
- icon: d.icon,
244
- labelKey: d.label,
245
- onClick: d === r ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(d.toolName, d.createOptions, d)
211
+ icon: c.icon,
212
+ labelKey: c.label,
213
+ onClick: c === d ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(c.toolName, c.createOptions, c)
246
214
  })) ?? [];
247
- if (r && u)
248
- return [...this._pluginsToActions(u), ...n];
215
+ if (d && u)
216
+ return [...this._pluginsToActions(u), ...r];
249
217
  if (e?.length && this.view?.type !== "3d")
250
- return [...this._pluginsToActions(e), ...n];
251
- const p = this.view?.type === "3d";
218
+ return [...this._pluginsToActions(e), ...r];
219
+ const g = this.view?.type === "3d";
252
220
  return [
253
- ...this.availableCreateTools?.filter((d) => p && d === "multipoint" ? !1 : d === "mesh" ? !0 : o[d])?.map((d) => ({
254
- active: d === s,
221
+ ...this.availableCreateTools?.filter((c) => g && c === "multipoint" ? !1 : c === "mesh" ? !0 : o[c])?.map((c) => ({
222
+ active: c === s,
255
223
  disabled: t,
256
- icon: fe[d],
257
- labelKey: `draw.${d}`,
258
- onClick: d === s ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(d)
224
+ icon: fe[c],
225
+ labelKey: `draw.${c}`,
226
+ onClick: c === s ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(c)
259
227
  })) ?? [],
260
- ...n
228
+ ...r
261
229
  ];
262
230
  }
263
231
  get _shouldShowBackButton() {
@@ -305,8 +273,8 @@ let l = class extends ne {
305
273
  return t === "polygon" && o === "freehand" && e?.includes("freehandPolygon") ? "freehandPolygon" : t === "polyline" && o === "freehand" && e?.includes("freehandPolyline") ? "freehandPolyline" : t ?? void 0;
306
274
  }
307
275
  get _selectionCommands() {
308
- const { state: i, visibleElements: e, _activeSelectionTool: t, _customActions: o } = this, s = this.state === "disabled", r = [];
309
- this.sketchViewModel?.updateOnGraphicClick !== !1 && r.push({
276
+ const { state: i, visibleElements: e, _activeSelectionTool: t, _customActions: o } = this, s = this.state === "disabled", d = [];
277
+ this.sketchViewModel?.updateOnGraphicClick !== !1 && d.push({
310
278
  active: i === "ready" && this._activeSelectionTool == null,
311
279
  disabled: s,
312
280
  icon: "cursor",
@@ -314,13 +282,13 @@ let l = class extends ne {
314
282
  onClick: () => this._activateDefaultSelectionTool()
315
283
  });
316
284
  const h = e.selectionTools;
317
- h["rectangle-selection"] && r.push({
285
+ h["rectangle-selection"] && d.push({
318
286
  active: t === "rectangle-selection",
319
287
  disabled: s,
320
288
  icon: "cursor-marquee",
321
289
  labelKey: "rectangleSelection",
322
290
  onClick: () => this._activateSelectionTool("rectangle-selection")
323
- }), h["lasso-selection"] && r.push({
291
+ }), h["lasso-selection"] && d.push({
324
292
  active: t === "lasso-selection",
325
293
  disabled: s,
326
294
  icon: "lasso-select",
@@ -328,7 +296,7 @@ let l = class extends ne {
328
296
  onClick: () => this._activateSelectionTool("lasso-selection")
329
297
  });
330
298
  const u = o?.get("selection-toolbar");
331
- return u && r.push(...this._customActionsToSketchActions(u)), r;
299
+ return u && d.push(...this._customActionsToSketchActions(u)), d;
332
300
  }
333
301
  get _selectionSetActions() {
334
302
  const i = this.sketchViewModel?.updateGraphics.length ?? 0;
@@ -601,88 +569,88 @@ let l = class extends ne {
601
569
  }
602
570
  // #endregion
603
571
  };
604
- a([
605
- c()
606
- ], l.prototype, "_isEffectiveRenderStateFrozen", 1);
607
- a([
608
- c()
609
- ], l.prototype, "_effectiveGeometrySimplificationInProgress", 2);
610
- a([
611
- c()
612
- ], l.prototype, "_state", 1);
613
- a([
614
- c()
615
- ], l.prototype, "_customToolOptions", 2);
616
- a([
617
- c()
618
- ], l.prototype, "_activeCustomToolOptions", 2);
619
- a([
620
- c()
621
- ], l.prototype, "_customActions", 2);
622
- a([
623
- c()
624
- ], l.prototype, "selectionViewModel", 2);
625
- a([
626
- c()
627
- ], l.prototype, "_activeSelectionTool", 1);
628
- a([
629
- c()
630
- ], l.prototype, "_activePluginUniqueIds", 1);
631
- a([
632
- c()
633
- ], l.prototype, "_createToolActions", 1);
634
- a([
635
- c()
636
- ], l.prototype, "_shouldShowBackButton", 1);
637
- a([
638
- c()
639
- ], l.prototype, "_selectionToolActions", 1);
640
- a([
641
- c()
642
- ], l.prototype, "_settingsActions", 1);
643
- a([
644
- c()
645
- ], l.prototype, "_activeTool", 1);
646
- a([
647
- c()
648
- ], l.prototype, "_selectionCommands", 1);
649
- a([
650
- c()
651
- ], l.prototype, "_selectionSetActions", 1);
652
- a([
653
- c()
654
- ], l.prototype, "_undoRedoActions", 1);
655
- a([
656
- c()
657
- ], l.prototype, "sketchViewModel", 2);
658
- a([
659
- c()
660
- ], l.prototype, "visibleElements", 2);
661
- a([
662
- c()
663
- ], l.prototype, "view", 2);
664
- a([
665
- c()
666
- ], l.prototype, "settingsPopoverOpen", 2);
667
- a([
668
- c()
669
- ], l.prototype, "availableCreateTools", 2);
670
- a([
671
- c()
672
- ], l.prototype, "state", 1);
673
- a([
674
- c()
675
- ], l.prototype, "activeTool", 1);
676
- a([
677
- c()
678
- ], l.prototype, "activePluginIds", 1);
679
- a([
680
- c()
681
- ], l.prototype, "groupedActions", 1);
682
- l = a([
572
+ l([
573
+ a()
574
+ ], n.prototype, "_isEffectiveRenderStateFrozen", 1);
575
+ l([
576
+ a()
577
+ ], n.prototype, "_effectiveGeometrySimplificationInProgress", 2);
578
+ l([
579
+ a()
580
+ ], n.prototype, "_state", 1);
581
+ l([
582
+ a()
583
+ ], n.prototype, "_customToolOptions", 2);
584
+ l([
585
+ a()
586
+ ], n.prototype, "_activeCustomToolOptions", 2);
587
+ l([
588
+ a()
589
+ ], n.prototype, "_customActions", 2);
590
+ l([
591
+ a()
592
+ ], n.prototype, "selectionViewModel", 2);
593
+ l([
594
+ a()
595
+ ], n.prototype, "_activeSelectionTool", 1);
596
+ l([
597
+ a()
598
+ ], n.prototype, "_activePluginUniqueIds", 1);
599
+ l([
600
+ a()
601
+ ], n.prototype, "_createToolActions", 1);
602
+ l([
603
+ a()
604
+ ], n.prototype, "_shouldShowBackButton", 1);
605
+ l([
606
+ a()
607
+ ], n.prototype, "_selectionToolActions", 1);
608
+ l([
609
+ a()
610
+ ], n.prototype, "_settingsActions", 1);
611
+ l([
612
+ a()
613
+ ], n.prototype, "_activeTool", 1);
614
+ l([
615
+ a()
616
+ ], n.prototype, "_selectionCommands", 1);
617
+ l([
618
+ a()
619
+ ], n.prototype, "_selectionSetActions", 1);
620
+ l([
621
+ a()
622
+ ], n.prototype, "_undoRedoActions", 1);
623
+ l([
624
+ a()
625
+ ], n.prototype, "sketchViewModel", 2);
626
+ l([
627
+ a()
628
+ ], n.prototype, "visibleElements", 2);
629
+ l([
630
+ a()
631
+ ], n.prototype, "view", 2);
632
+ l([
633
+ a()
634
+ ], n.prototype, "settingsPopoverOpen", 2);
635
+ l([
636
+ a()
637
+ ], n.prototype, "availableCreateTools", 2);
638
+ l([
639
+ a()
640
+ ], n.prototype, "state", 1);
641
+ l([
642
+ a()
643
+ ], n.prototype, "activeTool", 1);
644
+ l([
645
+ a()
646
+ ], n.prototype, "activePluginIds", 1);
647
+ l([
648
+ a()
649
+ ], n.prototype, "groupedActions", 1);
650
+ n = l([
683
651
  le("components.sketch.SketchComponentViewModel")
684
- ], l);
685
- class _e extends de {
652
+ ], n);
653
+ class Te extends de {
686
654
  #t;
687
655
  #e = !1;
688
656
  #i;
@@ -709,34 +677,34 @@ class _e extends de {
709
677
  });
710
678
  }
711
679
  }
712
- const B = he(_e), Ee = te((i) => new ie({
680
+ const B = he(Te), we = te((i) => new ie({
713
681
  ...i,
714
682
  cancelUpdateOnClickAway: !0,
715
683
  creationMode: "continuous",
716
684
  textSymbol: new J({ text: "hello world" }),
717
685
  useLegacyCreateTools: !1
718
686
  }));
719
- class Me extends Q {
687
+ class Se extends Q {
720
688
  constructor() {
721
- super(), this.#t = new l(), this.#o = E(), this.#s = E(), this._defaultGraphicsLayer = null, this._messages = ee(), this.test = {
689
+ super(), this.#t = new n(), this.#o = E(), this.#s = E(), this._defaultGraphicsLayer = null, this._messages = ee(), this.test = {
722
690
  componentViewModel: this.#t
723
- }, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = se(), this.viewModel = Ee(this), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.createGraphic = this.viewModel.createGraphic, this.creationMode = this.viewModel.creationMode, this.defaultCreateOptions = this.viewModel.defaultCreateOptions, this.defaultGraphicsLayerDisabled = !1, this.defaultUpdateOptions = this.viewModel.defaultUpdateOptions, this.geometrySimplificationInProgress = this.viewModel.geometrySimplificationInProgress, this.icon = "pencil", this.label = this._messages?.componentLabel, this.labelOptions = this.viewModel.labelOptions, this.layer = this.viewModel.layer, this.layout = "horizontal", this.pointSymbol = this.viewModel.pointSymbol, this.polygonSymbol = this.viewModel.polygonSymbol, this.polylineSymbol = this.viewModel.polylineSymbol, this.visualScale = "m", this.snappingOptions = this.viewModel.snappingOptions, this.textSymbol = this.viewModel.textSymbol, this.toolbarKind = "floating", this.tooltipOptions = this.viewModel.tooltipOptions, this.useViewOptions = this.viewModel.useViewOptions, this.valueOptions = this.viewModel.valueOptions, this.useLegacyCreateTools = this.viewModel.useLegacyCreateTools, this.updateOnGraphicClickDisabled = this.viewModel.updateOnGraphicClick, this.updateGraphics = this.viewModel.updateGraphics, this.arcgisCreate = f(() => this.viewModel, "create"), this.arcgisDelete = f(() => this.viewModel, "delete"), this.arcgisDuplicate = f(() => this.viewModel, "duplicate"), this.arcgisPropertyChange = z()("activeTool", "geometrySimplificationInProgress", "state"), this.arcgisReady = X(), this.arcgisRedo = f(() => this.viewModel, "redo"), this.arcgisUndo = f(() => this.viewModel, "undo"), this.arcgisUpdate = f(() => this.viewModel, "update"), N(["slot"], () => {
691
+ }, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = se(), this.viewModel = we(this), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.createGraphic = this.viewModel.createGraphic, this.creationMode = this.viewModel.creationMode, this.defaultCreateOptions = this.viewModel.defaultCreateOptions, this.defaultGraphicsLayerDisabled = !1, this.defaultUpdateOptions = this.viewModel.defaultUpdateOptions, this.geometrySimplificationInProgress = this.viewModel.geometrySimplificationInProgress, this.icon = "pencil", this.label = this._messages?.componentLabel, this.labelOptions = this.viewModel.labelOptions, this.layer = this.viewModel.layer, this.layout = "horizontal", this.pointSymbol = this.viewModel.pointSymbol, this.polygonSymbol = this.viewModel.polygonSymbol, this.polylineSymbol = this.viewModel.polylineSymbol, this.visualScale = "m", this.snappingOptions = this.viewModel.snappingOptions, this.textSymbol = this.viewModel.textSymbol, this.toolbarKind = "floating", this.tooltipOptions = this.viewModel.tooltipOptions, this.useViewOptions = this.viewModel.useViewOptions, this.valueOptions = this.viewModel.valueOptions, this.useLegacyCreateTools = this.viewModel.useLegacyCreateTools, this.updateOnGraphicClickDisabled = this.viewModel.updateOnGraphicClick, this.updateGraphics = this.viewModel.updateGraphics, this.arcgisCreate = f(() => this.viewModel, "create"), this.arcgisDelete = f(() => this.viewModel, "delete"), this.arcgisDuplicate = f(() => this.viewModel, "duplicate"), this.arcgisPropertyChange = z()("activeTool", "geometrySimplificationInProgress", "state"), this.arcgisReady = X(), this.arcgisRedo = f(() => this.viewModel, "redo"), this.arcgisUndo = f(() => this.viewModel, "undo"), this.arcgisUpdate = f(() => this.viewModel, "update"), N(["slot"], () => {
724
692
  this.requestUpdate();
725
693
  }), this.manager.onLifecycle(() => [
726
- m(() => this.el.view?.map, (e, t) => {
694
+ v(() => this.el.view?.map, (e, t) => {
727
695
  const o = this._defaultGraphicsLayer;
728
696
  o && (t?.allLayers.includes(o) && t.remove(o), o && !e?.allLayers.includes(o) && e?.add(o));
729
697
  }),
730
- m(() => this.el.view, (e) => {
698
+ v(() => this.el.view, (e) => {
731
699
  this.viewModel.view = e, this.#t.view = e ?? void 0;
732
700
  }, { initial: !0 }),
733
- m(() => this.viewModel, (e) => {
701
+ v(() => this.viewModel, (e) => {
734
702
  this.#t.sketchViewModel = e, this.viewModel.pluginManager.sketch = this;
735
703
  }, { initial: !0 }),
736
- m(() => this.#t.state, (e, t) => {
704
+ v(() => this.#t.state, (e, t) => {
737
705
  this.requestUpdate("state", t);
738
706
  }, { initial: !0 }),
739
- m(() => this.#t.activeTool, () => this.arcgisPropertyChange.emit({ name: "activeTool" }), { sync: !0 })
707
+ v(() => this.#t.activeTool, () => this.arcgisPropertyChange.emit({ name: "activeTool" }), { sync: !0 })
740
708
  ]), this.manager.onDestroy(() => {
741
709
  this._defaultGraphicsLayer && this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.el.view?.map?.remove(this._defaultGraphicsLayer), this._defaultGraphicsLayer?.destroy(), this._defaultGraphicsLayer = null, this.#t.destroy();
742
710
  });
@@ -1047,46 +1015,46 @@ class Me extends Q {
1047
1015
  this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), super.disconnectedCallback();
1048
1016
  }
1049
1017
  render() {
1050
- const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind: r, relativePosition: h, _contextualToolLocation: u } = this, n = t.find(({ name: g }) => g === "selectionSet"), p = t.filter(({ name: g }) => g !== "selectionSet");
1051
- return v`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${r} .relativePosition=${h} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${M(this.#o)}>${T({ hidden: !n?.visible || u !== "inline", children: this._renderActionGroup(n) })}${p.map((g) => this._renderActionGroup(g))}${T({ hidden: !n?.visible || u !== "inline-end", children: this._renderActionGroup(n) })}</arcgis-toolbar>${T({ hidden: !n?.visible || u !== "separate", children: v`<arcgis-toolbar>${this._renderActionGroup(n)}</arcgis-toolbar>` })}</arcgis-toolbar-stack></div>${T({ hidden: this.hideSettingsMenu, children: v`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${(g) => this.#t.settingsPopoverOpen = g.target.open ?? !1} .view=${this.view ?? void 0}>${this._renderSettings()}</arcgis-view-popover>` })}`;
1018
+ const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind: d, relativePosition: h, _contextualToolLocation: u } = this, r = t.find(({ name: p }) => p === "selectionSet"), g = t.filter(({ name: p }) => p !== "selectionSet");
1019
+ return m`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${d} .relativePosition=${h} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${M(this.#o)}>${T({ hidden: !r?.visible || u !== "inline", children: this._renderActionGroup(r) })}${g.map((p) => this._renderActionGroup(p))}${T({ hidden: !r?.visible || u !== "inline-end", children: this._renderActionGroup(r) })}</arcgis-toolbar>${T({ hidden: !r?.visible || u !== "separate", children: m`<arcgis-toolbar>${this._renderActionGroup(r)}</arcgis-toolbar>` })}</arcgis-toolbar-stack></div>${T({ hidden: this.hideSettingsMenu, children: m`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${(p) => this.#t.settingsPopoverOpen = p.target.open ?? !1} .view=${this.view ?? void 0}>${this._renderSettings()}</arcgis-view-popover>` })}`;
1052
1020
  }
1053
1021
  _renderSettings() {
1054
- const { autoDestroyDisabled: e, hideLabelsToggle: t, hideSnappingControls: o, hideTooltipsToggle: s, showSnappingControlsElementsHeader: r, useViewOptions: h, view: u, viewModel: n } = this;
1055
- return v`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${h || s} .directionMode=${n.valueOptions.directionMode} .labelsEnabled=${n.labelOptions.enabled} .tooltipsEnabled=${n.tooltipOptions.enabled} @arcgisPropertyChange=${(p) => {
1056
- p.stopPropagation();
1057
- const { labelsEnabled: g, tooltipsEnabled: d, directionMode: w } = p.currentTarget, b = this.viewModel;
1058
- switch (p.detail.name) {
1022
+ const { autoDestroyDisabled: e, hideLabelsToggle: t, hideSnappingControls: o, hideTooltipsToggle: s, showSnappingControlsElementsHeader: d, useViewOptions: h, view: u, viewModel: r } = this;
1023
+ return m`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${h || s} .directionMode=${r.valueOptions.directionMode} .labelsEnabled=${r.labelOptions.enabled} .tooltipsEnabled=${r.tooltipOptions.enabled} @arcgisPropertyChange=${(g) => {
1024
+ g.stopPropagation();
1025
+ const { labelsEnabled: p, tooltipsEnabled: c, directionMode: w } = g.currentTarget, b = this.viewModel;
1026
+ switch (g.detail.name) {
1059
1027
  case "labelsEnabled":
1060
- b.labelOptions.enabled = g;
1028
+ b.labelOptions.enabled = p;
1061
1029
  break;
1062
1030
  case "directionMode":
1063
1031
  b.valueOptions.directionMode = w;
1064
1032
  break;
1065
1033
  case "tooltipsEnabled":
1066
- b.tooltipOptions.enabled = d;
1034
+ b.tooltipOptions.enabled = c;
1067
1035
  break;
1068
1036
  }
1069
- }}></arcgis-sketch-tooltip-controls>${!h && !o ? v`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${u} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${n.snappingOptions} .showHeader=${r} @arcgisPropertyChange=${(p) => p.stopPropagation()}></arcgis-snapping-controls>` : void 0}</div>`;
1037
+ }}></arcgis-sketch-tooltip-controls>${!h && !o ? m`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${u} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${r.snappingOptions} .showHeader=${d} @arcgisPropertyChange=${(g) => g.stopPropagation()}></arcgis-snapping-controls>` : void 0}</div>`;
1070
1038
  }
1071
1039
  _renderActionGroup({ visible: e, commands: t, name: o }) {
1072
1040
  if (!e || !t.length)
1073
1041
  return;
1074
- const { defaultPriority: s, groupKind: r, overflowLabel: h } = ye[o], n = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, p = t.map((d) => this._renderCommand(d)), g = D(`more.${h}`, this._messages);
1075
- switch (r) {
1042
+ const { defaultPriority: s, groupKind: d, overflowLabel: h } = ye[o], r = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, g = t.map((c) => this._renderCommand(c)), p = D(`more.${h}`, this._messages);
1043
+ switch (d) {
1076
1044
  case "more-button":
1077
- return v`<arcgis-toolbar-group .priority=${n}><arcgis-toolbar-more-button .overflowActionLabel=${g} .priority=${n}>${p}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;
1045
+ return m`<arcgis-toolbar-group .priority=${r}><arcgis-toolbar-more-button .overflowActionLabel=${p} .priority=${r}>${g}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;
1078
1046
  case "split-button":
1079
- return v`<arcgis-toolbar-group .priority=${n}><arcgis-toolbar-split-button .overflowActionLabel=${g} .priority=${n}>${p}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;
1047
+ return m`<arcgis-toolbar-group .priority=${r}><arcgis-toolbar-split-button .overflowActionLabel=${p} .priority=${r}>${g}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;
1080
1048
  case "actions":
1081
- return v`<arcgis-toolbar-group .priority=${n}>${p}</arcgis-toolbar-group>`;
1049
+ return m`<arcgis-toolbar-group .priority=${r}>${g}</arcgis-toolbar-group>`;
1082
1050
  }
1083
1051
  }
1084
- _renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance: r, icon: h, disabled: u, id: n, kind: p, labelKey: g, labelParameters: d, loading: w, tooltipKey: b, iconFlipRTL: P, onClick: k, refKey: A, textEnabled: O, renderAsAction: K }) {
1085
- const { _messages: L, _refMap: U, layout: G } = this, S = D(g, L), _ = S === void 0 ? g : d ? q(S, d) : S, V = L?.[b] ?? _, $ = A ? W(U, A, E) : this.#s, R = { afterCreate: t, afterRemoved: o, afterUpdate: s };
1086
- return K ? v`<arcgis-toolbar-action .active=${e} .appearance=${r} .disabled=${u} .icon=${h} .iconFlipRtl=${P} id=${n ?? I} .kind=${p} .loading=${w} .labelText=${G === "horizontal" ? _ : ""} .textEnabled=${O} .tooltipText=${G === "horizontal" && O ? "" : V} @arcgisToolbarItemSelected=${k} ${B(R)} ${M($)}></arcgis-toolbar-action>` : v`<arcgis-toolbar-item .active=${e} .disabled=${u} .icon=${h} id=${n ?? I} .iconFlipRtl=${P} .labelText=${_} .tooltipText=${V} @arcgisItemSelected=${k} ${B(R)} ${M($)}></arcgis-toolbar-item>`;
1052
+ _renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance: d, icon: h, disabled: u, id: r, kind: g, labelKey: p, labelParameters: c, loading: w, tooltipKey: b, iconFlipRTL: P, onClick: k, refKey: A, textEnabled: O, renderAsAction: K }) {
1053
+ const { _messages: L, _refMap: U, layout: G } = this, S = D(p, L), _ = S === void 0 ? p : c ? q(S, c) : S, V = L?.[b] ?? _, $ = A ? W(U, A, E) : this.#s, R = { afterCreate: t, afterRemoved: o, afterUpdate: s };
1054
+ return K ? m`<arcgis-toolbar-action .active=${e} .appearance=${d} .disabled=${u} .icon=${h} .iconFlipRtl=${P} id=${r ?? I} .kind=${g} .loading=${w} .labelText=${G === "horizontal" ? _ : ""} .textEnabled=${O} .tooltipText=${G === "horizontal" && O ? "" : V} @arcgisToolbarItemSelected=${k} ${B(R)} ${M($)}></arcgis-toolbar-action>` : m`<arcgis-toolbar-item .active=${e} .disabled=${u} .icon=${h} id=${r ?? I} .iconFlipRtl=${P} .labelText=${_} .tooltipText=${V} @arcgisItemSelected=${k} ${B(R)} ${M($)}></arcgis-toolbar-item>`;
1087
1055
  }
1088
1056
  }
1089
- F("arcgis-sketch", Me);
1057
+ F("arcgis-sketch", Se);
1090
1058
  export {
1091
- Me as ArcgisSketch
1059
+ Se as ArcgisSketch
1092
1060
  };
@@ -2,7 +2,6 @@ import type Accessor from "@arcgis/core/core/Accessor.js";
2
2
  import type TimeExtent from "@arcgis/core/time/TimeExtent.js";
3
3
  import type MapView from "@arcgis/core/views/MapView.js";
4
4
  import type SceneView from "@arcgis/core/views/SceneView.js";
5
- import type TimeInterval from "@arcgis/core/time/TimeInterval.js";
6
5
  import type WebMap from "@arcgis/core/WebMap.js";
7
6
  import type WebScene from "@arcgis/core/WebScene.js";
8
7
  import type { DateTimeFormatOptions } from "@arcgis/core/intl/date.js";
@@ -42,9 +41,10 @@ export class TimeBarViewModel extends Accessor {
42
41
  accessor savePersistedSettingsDisabled: boolean;
43
42
  get state(): State;
44
43
  accessor stops: Stops | undefined;
45
- accessor tickFormat: DateTimeFormatOptions | undefined;
44
+ accessor tickFormat: TickFormat | undefined;
46
45
  get tickFormats(): TickFormat[];
47
46
  get tickFormatter(): (value: number) => string;
47
+ get tickValues(): number[];
48
48
  accessor timeExtent: TimeExtent | undefined;
49
49
  get timeZone(): TimeZone;
50
50
  set timeZone(value: TimeZone | null | undefined);
@@ -63,8 +63,6 @@ export class TimeBarViewModel extends Accessor {
63
63
  formatNumber(value: number, formatOptions: Intl.NumberFormatOptions): string;
64
64
  /** @param date */
65
65
  formatTime(date: Date): string;
66
- /** @param interval */
67
- getTickValues(interval: TimeInterval): number[];
68
66
  initialize(): Promise<void>;
69
67
  next(): void;
70
68
  play(): void;