@arcgis/map-components 5.2.0-next.23 → 5.2.0-next.24

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 (66) hide show
  1. package/dist/cdn/{BXK5DVDN.js → 4BJSMXKG.js} +1 -1
  2. package/dist/cdn/5RXWVXJA.js +2 -0
  3. package/dist/cdn/BGWYOIKY.js +2 -0
  4. package/dist/cdn/BV6DN77M.js +2 -0
  5. package/dist/cdn/CXHORYLL.js +2 -0
  6. package/dist/cdn/{MJ2AUX7N.js → F7ZQA7S5.js} +1 -1
  7. package/dist/cdn/{HFDHHI2B.js → FHL4L2ZY.js} +1 -1
  8. package/dist/cdn/{2BESNRQI.js → FPX4MV2U.js} +1 -1
  9. package/dist/cdn/KLKFMZ7U.js +2 -0
  10. package/dist/cdn/NR6V3DTH.js +2 -0
  11. package/dist/cdn/P3U6DQN6.js +2 -0
  12. package/dist/cdn/{UA3OPWND.js → PGCAY24R.js} +1 -1
  13. package/dist/cdn/{T5KVNE3U.js → PKBVONJW.js} +1 -1
  14. package/dist/cdn/{Z257GCMR.js → Q4PNCUBK.js} +1 -1
  15. package/dist/cdn/{XVNU3EUN.js → UCEBZVNP.js} +1 -1
  16. package/dist/cdn/{XPD6NXPE.js → UGOZSFW2.js} +1 -1
  17. package/dist/cdn/VRWFDVP6.js +2 -0
  18. package/dist/cdn/VZVNKP6W.js +2 -0
  19. package/dist/cdn/ZAYZVEUD.js +2 -0
  20. package/dist/cdn/assets/basemap-layer-list-next/t9n/messages.en.json +1 -0
  21. package/dist/cdn/assets/catalog-layer-list-next/t9n/messages.en.json +1 -0
  22. package/dist/cdn/assets/table-list-next/t9n/messages.en.json +1 -0
  23. package/dist/cdn/index.js +1 -1
  24. package/dist/cdn/main.css +1 -1
  25. package/dist/chunks/layer-list-item-indicator.js +1 -1
  26. package/dist/chunks/layer-list-item.js +6 -0
  27. package/dist/chunks/layer-list-utils.js +6 -6
  28. package/dist/chunks/slots.js +1 -1
  29. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +241 -0
  30. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +329 -0
  31. package/dist/components/arcgis-basemap-layer-list-next/index.d.ts +1 -0
  32. package/dist/components/arcgis-basemap-layer-list-next/index.js +14 -0
  33. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +179 -0
  34. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +263 -0
  35. package/dist/components/arcgis-catalog-layer-list-next/index.d.ts +1 -0
  36. package/dist/components/arcgis-catalog-layer-list-next/index.js +10 -0
  37. package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +6 -0
  38. package/dist/components/arcgis-expand/customElement.js +1 -1
  39. package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
  40. package/dist/components/arcgis-layer-list-next/customElement.js +67 -66
  41. package/dist/components/arcgis-layer-list-next/index.js +2 -2
  42. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
  43. package/dist/components/arcgis-presentation/customElement.d.ts +18 -0
  44. package/dist/components/arcgis-presentation/customElement.js +90 -88
  45. package/dist/components/arcgis-table-list-next/customElement.d.ts +235 -0
  46. package/dist/components/arcgis-table-list-next/customElement.js +200 -0
  47. package/dist/components/arcgis-table-list-next/index.d.ts +1 -0
  48. package/dist/components/arcgis-table-list-next/index.js +7 -0
  49. package/dist/docs/api.json +1 -1
  50. package/dist/docs/docs.json +1 -1
  51. package/dist/docs/vscode.html-custom-data.json +1 -1
  52. package/dist/docs/web-types.json +1 -1
  53. package/dist/index.d.ts +30 -0
  54. package/dist/loader.js +3 -0
  55. package/dist/types/lumina.d.ts +28 -0
  56. package/dist/types/preact.d.ts +31 -0
  57. package/dist/types/react.d.ts +34 -0
  58. package/dist/types/stencil.d.ts +28 -0
  59. package/dist/utils/layer-list-utils.d.ts +10 -0
  60. package/package.json +4 -4
  61. package/dist/cdn/BMJ6NYIZ.js +0 -2
  62. package/dist/cdn/QJSXXDUJ.js +0 -2
  63. package/dist/cdn/SFSNTAYE.js +0 -2
  64. package/dist/cdn/WLMFCIBM.js +0 -2
  65. package/dist/cdn/XTGCV3LY.js +0 -2
  66. /package/dist/cdn/{T4OPNOZJ.js → OTZMVWAB.js} +0 -0
@@ -1,15 +1,15 @@
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 { css as z, html as u } from "lit";
4
- import { GenericController as C, proxyExports as $, useDirection as M } from "@arcgis/lumina/controllers";
5
- import { LitElement as R, createEvent as I, nothing as S } from "@arcgis/lumina";
4
+ import { GenericController as P, proxyExports as M, useDirection as $ } from "@arcgis/lumina/controllers";
5
+ import { LitElement as R, createEvent as g, nothing as m } from "@arcgis/lumina";
6
6
  import { u as G } from "../../chunks/useT9n.js";
7
7
  import { m as N } from "../../chunks/useViewModel.js";
8
8
  import { property as d, subclass as B } from "@arcgis/core/core/accessorSupport/decorators.js";
9
9
  import E from "@arcgis/core/core/Accessor.js";
10
- import w from "@arcgis/core/core/Collection.js";
10
+ import _ from "@arcgis/core/core/Collection.js";
11
11
  import { ignoreAbortErrors as T } from "@arcgis/core/core/promiseUtils.js";
12
- import { watch as v, on as D, whenOnce as m } from "@arcgis/core/core/reactiveUtils.js";
12
+ import { watch as S, on as D, whenOnce as y } from "@arcgis/core/core/reactiveUtils.js";
13
13
  import H from "@arcgis/core/Graphic.js";
14
14
  import V from "@arcgis/core/layers/Layer.js";
15
15
  import k from "@arcgis/core/graphic/CSVGraphicOrigin.js";
@@ -18,15 +18,15 @@ import W from "@arcgis/core/graphic/SceneGraphicOrigin.js";
18
18
  import K from "@arcgis/core/graphic/WFSGraphicOrigin.js";
19
19
  import U from "@arcgis/core/graphic/BuildingGraphicOrigin.js";
20
20
  import Q from "@arcgis/core/graphic/FeatureGraphicOrigin.js";
21
- import { fetchPopupFeaturesFromGraphics as P } from "@arcgis/core/applications/SceneViewer/sceneViewerUtils.js";
22
- import { s as _ } from "../../chunks/resources.js";
21
+ import { fetchPopupFeaturesFromGraphics as C } from "@arcgis/core/applications/SceneViewer/sceneViewerUtils.js";
22
+ import { s as x } from "../../chunks/resources.js";
23
23
  const q = z`:host{width:100%;height:100%;padding:var(--calcite-spacing-none);margin:var(--calcite-spacing-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{display:flex;width:100%;justify-content:flex-end;padding-top:var(--calcite-spacing-lg);padding-inline-start:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation{width:fit-content;pointer-events:auto;display:flex;align-items:center;gap:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);box-shadow:var(--arcgis-internal-box-shadow);margin-block:auto calc(var(--calcite-spacing-lg) + var(--internal-attribution-height));margin-inline-start:var(--calcite-spacing-lg)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-spacing-base);min-width:64px}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.legend{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:auto;max-height:calc(100vh - 136px);overflow:hidden auto}`;
24
24
  var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor, l = (i, e, t, s) => {
25
- for (var n = s > 1 ? void 0 : s ? X(e, t) : e, r = i.length - 1, o; r >= 0; r--)
26
- (o = i[r]) && (n = (s ? o(e, t, n) : o(n)) || n);
25
+ for (var n = s > 1 ? void 0 : s ? X(e, t) : e, r = i.length - 1, a; r >= 0; r--)
26
+ (a = i[r]) && (n = (s ? a(e, t, n) : a(n)) || n);
27
27
  return s && n && J(e, t, n), n;
28
28
  };
29
- let a = class extends E {
29
+ let o = class extends E {
30
30
  //endregion
31
31
  //#region Lifecycle
32
32
  constructor(i) {
@@ -43,7 +43,7 @@ let a = class extends E {
43
43
  }
44
44
  initialize() {
45
45
  this.addHandles(
46
- v(
46
+ S(
47
47
  () => this.view?.map,
48
48
  (i, e) => {
49
49
  if (this.hasHandles("sceneLoaded") && this.removeHandles("sceneLoaded"), e) {
@@ -51,7 +51,7 @@ let a = class extends E {
51
51
  t && t.length > 0 && this._unsubscribeToSlideEvents(t);
52
52
  }
53
53
  i && this.addHandles(
54
- v(
54
+ S(
55
55
  () => i.loaded,
56
56
  (t) => {
57
57
  t && (this.removeHandles("sceneLoaded"), this._startWatchSlides(), this._slideId && this._applySlideById(this._slideId));
@@ -75,10 +75,10 @@ let a = class extends E {
75
75
  i === void 0 || !this.view?.map?.loaded ? this._slideId = i : this._applySlideById(i);
76
76
  }
77
77
  get visibleSlides() {
78
- return this.view?.map?.presentation?.slides?.filter((i) => !i.hidden) ?? new w();
78
+ return this.view?.map?.presentation?.slides?.filter((i) => !i.hidden) ?? new _();
79
79
  }
80
80
  get slides() {
81
- return this.view?.map?.presentation?.slides ?? new w();
81
+ return this.view?.map?.presentation?.slides ?? new _();
82
82
  }
83
83
  get lastSlideSelected() {
84
84
  return this.getSlideIndexBySlideId(this.slideId) === this.visibleSlides.length - 1;
@@ -108,8 +108,8 @@ let a = class extends E {
108
108
  const t = ["ArrowLeft", "ArrowRight", "PageUp", "PageDown"];
109
109
  if (document.activeElement?.nodeName.toLowerCase() === "arcgis-scene" || !t.includes(i.code))
110
110
  return;
111
- const n = e === "rtl" ? "ArrowRight" : "ArrowLeft", o = i.code === n || i.code === "PageUp" ? -1 : 1;
112
- this.navigateInPresentation(o);
111
+ const n = e === "rtl" ? "ArrowRight" : "ArrowLeft", a = i.code === n || i.code === "PageUp" ? -1 : 1;
112
+ this.navigateInPresentation(a);
113
113
  }
114
114
  async setSliceAnalysisInteractive() {
115
115
  if (!this.view?.analyses?.length)
@@ -144,7 +144,7 @@ let a = class extends E {
144
144
  () => this.slides,
145
145
  "change",
146
146
  (i) => {
147
- this._subscribeToSlideEvents(new w(i.added)), this._unsubscribeToSlideEvents(new w(i.removed));
147
+ this._subscribeToSlideEvents(new _(i.added)), this._unsubscribeToSlideEvents(new _(i.removed));
148
148
  },
149
149
  {
150
150
  onListenerAdd: this._subscribeToSlideEvents,
@@ -166,63 +166,63 @@ let a = class extends E {
166
166
  };
167
167
  l([
168
168
  d()
169
- ], a.prototype, "_slideId", 2);
169
+ ], o.prototype, "_slideId", 2);
170
170
  l([
171
171
  d()
172
- ], a.prototype, "view", 2);
172
+ ], o.prototype, "view", 2);
173
173
  l([
174
174
  d()
175
- ], a.prototype, "slideId", 1);
175
+ ], o.prototype, "slideId", 1);
176
176
  l([
177
177
  d()
178
- ], a.prototype, "transitionActive", 2);
178
+ ], o.prototype, "transitionActive", 2);
179
179
  l([
180
180
  d()
181
- ], a.prototype, "showLegend", 2);
181
+ ], o.prototype, "showLegend", 2);
182
182
  l([
183
183
  d()
184
- ], a.prototype, "keyboardNavigationEnabled", 2);
184
+ ], o.prototype, "keyboardNavigationEnabled", 2);
185
185
  l([
186
186
  d()
187
- ], a.prototype, "visibleSlides", 1);
187
+ ], o.prototype, "visibleSlides", 1);
188
188
  l([
189
189
  d()
190
- ], a.prototype, "slides", 1);
190
+ ], o.prototype, "slides", 1);
191
191
  l([
192
192
  d()
193
- ], a.prototype, "lastSlideSelected", 1);
193
+ ], o.prototype, "lastSlideSelected", 1);
194
194
  l([
195
195
  d()
196
- ], a.prototype, "firstSlideSelected", 1);
196
+ ], o.prototype, "firstSlideSelected", 1);
197
197
  l([
198
198
  d()
199
- ], a.prototype, "slideSelected", 1);
199
+ ], o.prototype, "slideSelected", 1);
200
200
  l([
201
201
  d()
202
- ], a.prototype, "hasOnlyOneSlide", 1);
202
+ ], o.prototype, "hasOnlyOneSlide", 1);
203
203
  l([
204
204
  d()
205
- ], a.prototype, "onApplySlideStart", 2);
205
+ ], o.prototype, "onApplySlideStart", 2);
206
206
  l([
207
207
  d()
208
- ], a.prototype, "onApplySlideComplete", 2);
208
+ ], o.prototype, "onApplySlideComplete", 2);
209
209
  l([
210
210
  d()
211
- ], a.prototype, "onApplySlideCancel", 2);
211
+ ], o.prototype, "onApplySlideCancel", 2);
212
212
  l([
213
213
  d()
214
- ], a.prototype, "getSlideIndexBySlideId", 1);
215
- a = l([
214
+ ], o.prototype, "getSlideIndexBySlideId", 1);
215
+ o = l([
216
216
  B("components.presentation.PresentationViewModel")
217
- ], a);
218
- class Y extends C {
217
+ ], o);
218
+ class Y extends P {
219
219
  constructor(e) {
220
220
  super(e);
221
221
  }
222
222
  hostLoaded() {
223
223
  this.component.manager.onLifecycle(() => {
224
224
  const e = this.component;
225
- m(() => e.referenceElement).then((t) => {
225
+ y(() => e.referenceElement).then((t) => {
226
226
  this._isArcgisScene(t) && (this._sceneRef = t);
227
227
  });
228
228
  });
@@ -255,15 +255,15 @@ class Y extends C {
255
255
  const n = t.features?.getItemAt(t.selectedFeatureIndex)?.layerReference;
256
256
  if (n?.layerId == null)
257
257
  return { success: !1, features: s };
258
- const { layer: r, sublayer: o } = this._getLayersFromView(e, n.layerId, n?.sublayerId);
258
+ const { layer: r, sublayer: a } = this._getLayersFromView(e, n.layerId, n?.sublayerId);
259
259
  if (!r)
260
260
  return { success: !1, features: s };
261
- const c = o ?? r;
261
+ const c = a ?? r;
262
262
  if (!c || !this._layerTypeSupportsCapturePopup(c))
263
263
  return { success: !1, features: s };
264
- if (s = await this._fetchFeaturesFromQueryable(e, t, r, o, c), s && this._featureHasBeenFilledWithAttributes(s)) {
264
+ if (s = await this._fetchFeaturesFromQueryable(e, t, r, a, c), s && this._featureHasBeenFilledWithAttributes(s)) {
265
265
  const p = s[0];
266
- return this._setFallbackPopupTemplate(p, o, r), this._setFallbackGeometry(p, t?.location), { success: !0, features: s, popupInfo: t };
266
+ return this._setFallbackPopupTemplate(p, a, r), this._setFallbackGeometry(p, t?.location), { success: !0, features: s, popupInfo: t };
267
267
  }
268
268
  debugger;
269
269
  return { success: !1, features: s };
@@ -282,16 +282,16 @@ class Y extends C {
282
282
  return e && e.length > 0 && e[0].attributes && Object.entries(e[0].attributes)?.length > 1;
283
283
  }
284
284
  async _fetchFeaturesFromQueryable(e, t, s, n, r) {
285
- const o = t.features?.getItemAt(t.selectedFeatureIndex);
286
- if (o?.id == null)
285
+ const a = t.features?.getItemAt(t.selectedFeatureIndex);
286
+ if (a?.id == null)
287
287
  return await Promise.resolve([]);
288
288
  const c = await e.whenLayerView(s);
289
- await m(() => !c.updating);
289
+ await y(() => !c.updating);
290
290
  const h = this._tryGetBuildingComponentSublayerView(s, n, c) ?? c;
291
- await m(() => !h.updating);
292
- const f = this._createFeatureGraphic(s, n, r, o.id);
293
- let x = await P(h, [f]);
294
- return this._featureHasBeenFilledWithAttributes(x) || (await m(() => !e.updating), x = await P(h, [f])), x;
291
+ await y(() => !h.updating);
292
+ const w = this._createFeatureGraphic(s, n, r, a.id);
293
+ let I = await C(h, [w]);
294
+ return this._featureHasBeenFilledWithAttributes(I) || (await y(() => !e.updating), I = await C(h, [w])), I;
295
295
  }
296
296
  _tryGetBuildingComponentSublayerView(e, t, s) {
297
297
  let n;
@@ -314,8 +314,8 @@ class Y extends C {
314
314
  e.geometry == null && t && (e.geometry = t.clone());
315
315
  }
316
316
  _createFeatureGraphic(e, t, s, n) {
317
- const r = this._getGlobalIdFieldNameFromLayer(s), o = n.type === "global-id" && r ? r : s.objectIdField, c = this._getGraphicOrigin(e, t), p = new H({ attributes: {}, layer: e, origin: c });
318
- return p.attributes[o] = n.value, p;
317
+ const r = this._getGlobalIdFieldNameFromLayer(s), a = n.type === "global-id" && r ? r : s.objectIdField, c = this._getGraphicOrigin(e, t), p = new H({ attributes: {}, layer: e, origin: c });
318
+ return p.attributes[a] = n.value, p;
319
319
  }
320
320
  _getGraphicOrigin(e, t) {
321
321
  switch (e.type) {
@@ -349,13 +349,13 @@ class Y extends C {
349
349
  }
350
350
  //#endregion
351
351
  }
352
- const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), y = /* @__PURE__ */ new WeakMap(), b = () => ({
353
- topCenter: { ...g },
354
- topLeft: { ...g },
355
- topRight: { ...g },
356
- bottomCenter: { ...g },
357
- bottomLeft: { ...g },
358
- bottomRight: { ...g }
352
+ const Z = (i) => new Y(i), v = Object.freeze({ width: 0, height: 0 }), f = /* @__PURE__ */ new WeakMap(), b = () => ({
353
+ topCenter: { ...v },
354
+ topLeft: { ...v },
355
+ topRight: { ...v },
356
+ bottomCenter: { ...v },
357
+ bottomLeft: { ...v },
358
+ bottomRight: { ...v }
359
359
  }), L = (i) => ({
360
360
  topCenter: { ...i.topCenter },
361
361
  topLeft: { ...i.topLeft },
@@ -364,35 +364,35 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), y = /* @_
364
364
  bottomLeft: { ...i.bottomLeft },
365
365
  bottomRight: { ...i.bottomRight }
366
366
  }), F = (i) => {
367
- let e = y.get(i);
367
+ let e = f.get(i);
368
368
  return e || (e = {
369
369
  observedGroups: /* @__PURE__ */ new Map(),
370
370
  observedSizes: b(),
371
371
  subscribers: /* @__PURE__ */ new Set()
372
- }, y.set(i, e)), e;
372
+ }, f.set(i, e)), e;
373
373
  }, ee = (i) => {
374
- const e = i?.topCenter.value, t = i?.topLeft.value, s = i?.topRight.value, n = i?.bottomCenter.value, r = i?.bottomLeft.value, o = i?.bottomRight.value;
375
- return e && t && s && n && r && o ? {
374
+ const e = i?.topCenter.value, t = i?.topLeft.value, s = i?.topRight.value, n = i?.bottomCenter.value, r = i?.bottomLeft.value, a = i?.bottomRight.value;
375
+ return e && t && s && n && r && a ? {
376
376
  topCenter: e,
377
377
  topLeft: t,
378
378
  topRight: s,
379
379
  bottomCenter: n,
380
380
  bottomLeft: r,
381
- bottomRight: o
381
+ bottomRight: a
382
382
  } : null;
383
- }, te = (i, e) => _.every((t) => i.get(t) === e[t]), ie = (i) => {
383
+ }, te = (i, e) => x.every((t) => i.get(t) === e[t]), ie = (i) => {
384
384
  const e = L(i.observedSizes);
385
385
  i.subscribers.forEach((t) => t(e));
386
386
  }, se = (i, e) => {
387
- const t = y.get(i);
387
+ const t = f.get(i);
388
388
  if (!t)
389
389
  return;
390
390
  let s = !1;
391
391
  e.forEach((n) => {
392
- const r = _.find((f) => t.observedGroups.get(f) === n.target);
392
+ const r = x.find((w) => t.observedGroups.get(w) === n.target);
393
393
  if (!r)
394
394
  return;
395
- const { width: o, height: c } = n.contentRect, p = { width: o, height: c }, h = t.observedSizes[r];
395
+ const { width: a, height: c } = n.contentRect, p = { width: a, height: c }, h = t.observedSizes[r];
396
396
  h.width === p.width && h.height === p.height || (t.observedSizes[r] = p, s = !0);
397
397
  }), s && ie(t);
398
398
  }, A = (i, e) => {
@@ -405,18 +405,18 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), y = /* @_
405
405
  t.observedGroups.size > 0 && (t.resizeObserver.disconnect(), t.observedGroups.clear());
406
406
  return;
407
407
  }
408
- te(t.observedGroups, s) || (t.resizeObserver.disconnect(), t.observedGroups.clear(), _.forEach((n) => {
408
+ te(t.observedGroups, s) || (t.resizeObserver.disconnect(), t.observedGroups.clear(), x.forEach((n) => {
409
409
  const r = s[n];
410
410
  t.observedGroups.set(n, r), t.resizeObserver?.observe(r);
411
411
  }));
412
412
  }, ne = (i, e) => {
413
413
  const t = F(i);
414
414
  return t.subscribers.add(e), e(L(t.observedSizes)), () => {
415
- const s = y.get(i);
416
- s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(), y.delete(i)));
415
+ const s = f.get(i);
416
+ s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(), f.delete(i)));
417
417
  };
418
418
  };
419
- class re extends C {
419
+ class re extends P {
420
420
  // References to the slot group elements owned by the host component.
421
421
  #t;
422
422
  #e;
@@ -434,7 +434,7 @@ class re extends C {
434
434
  }
435
435
  hostLifecycle() {
436
436
  return [
437
- v(
437
+ S(
438
438
  () => this.#s(),
439
439
  (t) => {
440
440
  if (this.#e !== t) {
@@ -449,7 +449,7 @@ class re extends C {
449
449
  },
450
450
  { sync: !0, initial: !0 }
451
451
  ),
452
- v(
452
+ S(
453
453
  () => this.#s()?.slotGroupRefs,
454
454
  (t) => {
455
455
  this.#t = t, this.#e && t && A(this.#e, t);
@@ -468,22 +468,24 @@ class re extends C {
468
468
  // Compares the newly measured sizes against the currently exported values.
469
469
  #n(e) {
470
470
  const t = this.exports ?? b();
471
- return _.every((s) => {
471
+ return x.every((s) => {
472
472
  const n = t[s], r = e[s];
473
473
  return n.width === r.width && n.height === r.height;
474
474
  });
475
475
  }
476
476
  }
477
- const oe = $(re), ae = N(a);
477
+ const ae = M(re), oe = N(o);
478
478
  class le extends R {
479
479
  constructor() {
480
- super(...arguments), this._messages = G(), this.viewModel = ae(this), this._direction = M(), this._captureArrowKeysForNavigation = (e) => {
480
+ super(...arguments), this._messages = G(), this.viewModel = oe(this), this._direction = $(), this._captureArrowKeysForNavigation = (e) => {
481
481
  this.viewModel.captureArrowKeysForNavigation(e, this._direction);
482
- }, this._useFeatureRefPopup = Z(this), this._handleApplySlideStart = () => {
483
- this._useFeatureRefPopup.closePopup();
482
+ }, this._useFeatureRefPopup = Z(this), this._handleApplySlideStart = (e) => {
483
+ this._useFeatureRefPopup.closePopup(), this.arcgisSlideApplyStart.emit({ slide: e });
484
484
  }, this._handleApplySlideComplete = (e) => {
485
- this._useFeatureRefPopup.openPopup(e), this.sliceAnalysisInteractive && this.viewModel.setSliceAnalysisInteractive();
486
- }, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.scale = "m", this.keyboardNavigationEnabled = !1, this.slidePopupDisabled = !1, this.slideCaptionsDisabled = !1, this.slideLegendDisabled = !1, this.sliceAnalysisInteractive = !1, this.arcgisPopupFeatureNotFound = I(), this.arcgisPopupFeaturesRetrieved = I(), this.arcgisReady = I();
485
+ this._useFeatureRefPopup.openPopup(e), this.sliceAnalysisInteractive && this.viewModel.setSliceAnalysisInteractive(), this.arcgisSlideApplyComplete.emit({ slide: e });
486
+ }, this._handleApplySlideCancel = (e) => {
487
+ this.arcgisSlideApplyCancel.emit({ slide: e });
488
+ }, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.scale = "m", this.keyboardNavigationEnabled = !1, this.slidePopupDisabled = !1, this.slideCaptionsDisabled = !1, this.slideLegendDisabled = !1, this.sliceAnalysisInteractive = !1, this.arcgisPopupFeatureNotFound = g(), this.arcgisPopupFeaturesRetrieved = g(), this.arcgisSlideApplyStart = g(), this.arcgisSlideApplyCancel = g(), this.arcgisSlideApplyComplete = g(), this.arcgisReady = g();
487
489
  }
488
490
  static {
489
491
  this.properties = { _slotSizesController: 16, slideId: 1, autoDestroyDisabled: 5, view: 0, scale: 1, keyboardNavigationEnabled: 5, slidePopupDisabled: 5, slideCaptionsDisabled: 5, slideLegendDisabled: 5, sliceAnalysisInteractive: 5 };
@@ -502,12 +504,12 @@ class le extends R {
502
504
  }
503
505
  loaded() {
504
506
  this.manager.onLifecycle(() => {
505
- this.viewModel.onApplySlideStart = this._handleApplySlideStart, this.viewModel.onApplySlideComplete = this._handleApplySlideComplete, this._keyboardHandle = v(() => this.keyboardNavigationEnabled, (t) => {
507
+ this.viewModel.onApplySlideStart = this._handleApplySlideStart, this.viewModel.onApplySlideComplete = this._handleApplySlideComplete, this.viewModel.onApplySlideCancel = this._handleApplySlideCancel, this._keyboardHandle = S(() => this.keyboardNavigationEnabled, (t) => {
506
508
  document.removeEventListener("keydown", this._captureArrowKeysForNavigation), t && document.addEventListener("keydown", this._captureArrowKeysForNavigation);
507
509
  }, { initial: !0 });
508
510
  const e = this;
509
- m(() => e.referenceElement).then((t) => {
510
- this._isArcgisScene(t) && (this._slotSizesController = oe(this), this._watchSceneViewSlotSizes());
511
+ y(() => e.referenceElement).then((t) => {
512
+ this._isArcgisScene(t) && (this._slotSizesController = ae(this), this._watchSceneViewSlotSizes());
511
513
  }), this.manager.onDisconnected(() => {
512
514
  document.removeEventListener("keydown", this._captureArrowKeysForNavigation), this._keyboardHandle?.remove();
513
515
  });
@@ -517,13 +519,13 @@ class le extends R {
517
519
  return e === void 0 || typeof e == "string" ? !1 : "tagName" in e && e.tagName === "ARCGIS-SCENE";
518
520
  }
519
521
  _watchSceneViewSlotSizes() {
520
- return v(() => this._slotSizesController, (e) => this._updatePresentationCaptionsPadding(e?.topLeft, e?.topRight, e?.bottomLeft, e?.bottomRight), { initial: !0 });
522
+ return S(() => this._slotSizesController, (e) => this._updatePresentationCaptionsPadding(e?.topLeft, e?.topRight, e?.bottomLeft, e?.bottomRight), { initial: !0 });
521
523
  }
522
524
  _updatePresentationCaptionsPadding(e, t, s, n) {
523
- const r = this._direction === "ltr" ? e?.width ?? 0 : t?.width ?? 0, o = this._direction === "ltr" ? t?.width ?? 0 : e?.width ?? 0, c = Math.max(e?.height ?? 0, t?.height ?? 0), p = Math.max(s?.height ?? 0, n?.height ?? 0);
524
- r > 0 ? this.el.style.setProperty("--arcgis-internal-presentation-padding-start", `calc(var(--calcite-spacing-lg) + ${r.toString()}px)`) : this.el.style.setProperty("--arcgis-internal-presentation-padding-start", "0px"), o > 0 ? this.el.style.setProperty("--arcgis-internal-presentation-padding-end", `calc(var(--calcite-spacing-lg) + ${o.toString()}px)`) : this.el.style.setProperty("--arcgis-internal-presentation-padding-end", "0px");
525
- const h = r <= Math.max(c, p) && o <= Math.max(c, p);
526
- this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top", h ? "0" : `${c}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom", h ? "0" : `${p}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start", h ? `${r}px` : "0"), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end", h ? `${o}px` : "0");
525
+ const r = this._direction === "ltr" ? e?.width ?? 0 : t?.width ?? 0, a = this._direction === "ltr" ? t?.width ?? 0 : e?.width ?? 0, c = Math.max(e?.height ?? 0, t?.height ?? 0), p = Math.max(s?.height ?? 0, n?.height ?? 0);
526
+ r > 0 ? this.el.style.setProperty("--arcgis-internal-presentation-padding-start", `calc(var(--calcite-spacing-lg) + ${r.toString()}px)`) : this.el.style.setProperty("--arcgis-internal-presentation-padding-start", "0px"), a > 0 ? this.el.style.setProperty("--arcgis-internal-presentation-padding-end", `calc(var(--calcite-spacing-lg) + ${a.toString()}px)`) : this.el.style.setProperty("--arcgis-internal-presentation-padding-end", "0px");
527
+ const h = r <= Math.max(c, p) && a <= Math.max(c, p);
528
+ this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top", h ? "0" : `${c}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom", h ? "0" : `${p}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start", h ? `${r}px` : "0"), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end", h ? `${a}px` : "0");
527
529
  }
528
530
  render() {
529
531
  if (this.viewModel.visibleSlides.length === 0)
@@ -533,11 +535,11 @@ class le extends R {
533
535
  }
534
536
  _renderNavigation() {
535
537
  const e = this.viewModel.lastSlideSelected && !this.viewModel.hasOnlyOneSlide, t = this._direction === "rtl", s = t ? "chevron-right" : "chevron-left", n = t ? "chevron-left" : "chevron-right";
536
- return u`<div class="navigation"><calcite-button appearance=transparent icon-start=${s ?? S} kind=neutral .scale=${this.scale} .disabled=${this.viewModel.firstSlideSelected || !this.viewModel.slideSelected} .label=${this._messages.previous} title=${this._messages.previous ?? S} @click=${() => this.viewModel.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this._renderSlideCounter()}</div><calcite-button appearance=transparent icon-start=${(e ? "reset" : n) ?? S} kind=neutral .scale=${this.scale} .label=${e ? this._messages.restart : this._messages.next} title=${(e ? this._messages.restart : this._messages.next) ?? S} @click=${() => this.viewModel.navigateInPresentation(1)}></calcite-button></div>`;
538
+ return u`<div class="navigation"><calcite-button appearance=transparent icon-start=${s ?? m} kind=neutral .scale=${this.scale} .disabled=${this.viewModel.firstSlideSelected || !this.viewModel.slideSelected} .label=${this._messages.previous} title=${this._messages.previous ?? m} @click=${() => this.viewModel.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this._renderSlideCounter()}</div><calcite-button appearance=transparent icon-start=${(e ? "reset" : n) ?? m} kind=neutral .scale=${this.scale} .label=${e ? this._messages.restart : this._messages.next} title=${(e ? this._messages.restart : this._messages.next) ?? m} @click=${() => this.viewModel.navigateInPresentation(1)}></calcite-button></div>`;
537
539
  }
538
540
  _renderSlideCounter() {
539
541
  const e = this.viewModel.slideIndex + 1, t = this._messages?.slideNavAriaText?.replace("${index}", e.toString()).replace("${numberOfSlides}", this.viewModel.visibleSlides.length.toString());
540
- return this.viewModel.slideSelected ? u`<p role=banner aria-label=${t ?? S} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div class="slide-counter-text-element">/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides.length}</p></p>` : u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides?.length} ${this._messages?.slides}</p>`;
542
+ return this.viewModel.slideSelected ? u`<p role=banner aria-label=${t ?? m} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div class="slide-counter-text-element">/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides.length}</p></p>` : u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides?.length} ${this._messages?.slides}</p>`;
541
543
  }
542
544
  _renderCaptions(e) {
543
545
  return this.slideCaptionsDisabled ? null : u`<arcgis-presentation-captions .slide=${e} .transitionActive=${this.viewModel.transitionActive}></arcgis-presentation-captions>`;
@@ -0,0 +1,235 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type Collection from "@arcgis/core/core/Collection.js";
3
+ import type Layer from "@arcgis/core/layers/Layer.js";
4
+ import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
5
+ import type MapView from "@arcgis/core/views/MapView.js";
6
+ import type SceneView from "@arcgis/core/views/SceneView.js";
7
+ import type TableListViewModel from "@arcgis/core/widgets/TableList/TableListViewModel.js";
8
+ import type TableListListItem from "@arcgis/core/widgets/TableList/ListItem.js";
9
+ import type WebMap from "@arcgis/core/WebMap.js";
10
+ import type WebScene from "@arcgis/core/WebScene.js";
11
+ import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
12
+ import type { TableListViewModelEvents } from "@arcgis/core/widgets/TableList/TableListViewModel.js";
13
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
14
+ import type { ArcgisReferenceElement, HeadingLevel, IconName } from "../types.js";
15
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
16
+ import type { ListItemModifier } from "@arcgis/core/widgets/TableList/types.js";
17
+ import type { List as List } from "@esri/calcite-components/components/calcite-list";
18
+ import type { ReadonlyCollection } from "@arcgis/core/core/Collection.js";
19
+
20
+ /**
21
+ * The Table List (next) component provides a way to display a list of tables associated with a map or table collection.
22
+ * It is the direct component migration of the TableList widget and is provided early for testing and feedback.
23
+ *
24
+ * @since 5.2
25
+ * @beta
26
+ */
27
+ export abstract class ArcgisTableListNext extends LitElement {
28
+ /**
29
+ * If true, the component will not be destroyed automatically when it is
30
+ * disconnected from the document. This is useful when you want to move the
31
+ * component to a different place on the page, or temporarily hide it. If this
32
+ * is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/#destroy) method when you are done to
33
+ * prevent memory leaks.
34
+ *
35
+ * @default false
36
+ */
37
+ accessor autoDestroyDisabled: boolean;
38
+ /**
39
+ * Indicates whether a component is closed. When `true`, the component will be hidden.
40
+ *
41
+ * @default false
42
+ */
43
+ accessor closed: boolean;
44
+ /**
45
+ * Indicates whether the component is collapsed.
46
+ *
47
+ * @default false
48
+ */
49
+ accessor collapsed: boolean;
50
+ /**
51
+ * Indicates whether list items may be reordered by dragging and dropping.
52
+ *
53
+ * @default false
54
+ */
55
+ accessor dragEnabled: boolean;
56
+ /**
57
+ * Placeholder text used in the filter input if showFilter is true.
58
+ *
59
+ * @default ""
60
+ */
61
+ accessor filterPlaceholder: string;
62
+ /** Specifies a function to handle filtering list items. */
63
+ accessor filterPredicate: FilterPredicate | undefined;
64
+ /**
65
+ * The value of the filter input text string if showFilter is true.
66
+ *
67
+ * @default ""
68
+ */
69
+ accessor filterText: string;
70
+ /**
71
+ * Indicates the heading level to use for the heading of the component.
72
+ *
73
+ * @default 2
74
+ */
75
+ accessor headingLevel: HeadingLevel;
76
+ /**
77
+ * Indicates whether the status indicators will be hidden.
78
+ *
79
+ * @default false
80
+ */
81
+ accessor hideStatusIndicators: boolean;
82
+ /**
83
+ * Icon which represents the component.
84
+ * Typically used when the component is controlled by another component (e.g. by the Expand component).
85
+ *
86
+ * @default "table"
87
+ * @see [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)
88
+ */
89
+ accessor icon: IconName;
90
+ /** The component's default label. */
91
+ accessor label: string | undefined;
92
+ /** @internal */
93
+ accessor listItemCanGiveFunction: CanSortFunction | undefined;
94
+ /** @internal */
95
+ accessor listItemCanReceiveFunction: CanSortFunction | undefined;
96
+ /** Specifies a function that accesses each list item as it is created. */
97
+ accessor listItemCreatedFunction: ListItemModifier | null | undefined;
98
+ /** A reference to a map containing the tables. */
99
+ accessor map: WebMap | WebScene | null | undefined;
100
+ /** Overwrite localized strings for this component. */
101
+ accessor messageOverrides: {
102
+ componentLabel?: string | undefined;
103
+ back?: string | undefined;
104
+ noItemsToDisplay?: string | undefined;
105
+ menu?: string | undefined;
106
+ options?: string | undefined;
107
+ tableError?: string | undefined;
108
+ temporary?: string | undefined;
109
+ untitledTable?: string | undefined;
110
+ publishing?: string | undefined;
111
+ };
112
+ /** @internal */
113
+ protected messages: Partial<{
114
+ componentLabel: string;
115
+ back: string;
116
+ noItemsToDisplay: string;
117
+ menu: string;
118
+ options: string;
119
+ tableError: string;
120
+ temporary: string;
121
+ untitledTable: string;
122
+ publishing: string;
123
+ }> & T9nMeta<{
124
+ componentLabel: string;
125
+ back: string;
126
+ noItemsToDisplay: string;
127
+ menu: string;
128
+ options: string;
129
+ tableError: string;
130
+ temporary: string;
131
+ untitledTable: string;
132
+ publishing: string;
133
+ }>;
134
+ /**
135
+ * The minimum number of list items required to enable drag and drop reordering.
136
+ *
137
+ * @default 2
138
+ */
139
+ accessor minDragEnabledItems: number;
140
+ /**
141
+ * The minimum number of list items required to display the filter input box.
142
+ *
143
+ * @default 10
144
+ */
145
+ accessor minFilterItems: number;
146
+ /**
147
+ * By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
148
+ *
149
+ * @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
150
+ */
151
+ accessor referenceElement: ArcgisReferenceElement | string | undefined;
152
+ /** A collection of selected table list items. */
153
+ accessor selectedItems: Collection<TableListListItem>;
154
+ /**
155
+ * Specifies the selection mode.
156
+ *
157
+ * @default "none"
158
+ */
159
+ accessor selectionMode: List["selectionMode"];
160
+ /**
161
+ * Indicates whether to display a close button in the header.
162
+ *
163
+ * @default false
164
+ */
165
+ accessor showCloseButton: boolean;
166
+ /**
167
+ * Indicates whether to display a collapse button in the header.
168
+ *
169
+ * @default false
170
+ */
171
+ accessor showCollapseButton: boolean;
172
+ /**
173
+ * Indicates whether to display tables with load errors.
174
+ *
175
+ * @default false
176
+ */
177
+ accessor showErrors: boolean;
178
+ /**
179
+ * Indicates whether to display a filter input box.
180
+ *
181
+ * @default false
182
+ */
183
+ accessor showFilter: boolean;
184
+ /**
185
+ * Indicates whether to display the table list heading.
186
+ *
187
+ * @default false
188
+ */
189
+ accessor showHeading: boolean;
190
+ /**
191
+ * Indicates whether temporary table indicators will be displayed.
192
+ *
193
+ * @default false
194
+ */
195
+ accessor showTemporaryTableIndicators: boolean;
196
+ /** The current state of the component. */
197
+ get state(): TableListViewModel["state"];
198
+ /** The collection of table ListItems displayed within the component. */
199
+ get tableItems(): Collection<TableListListItem>;
200
+ /** A collection of tables to display in the component. */
201
+ accessor tables: ReadonlyCollection<Layer | Sublayer> | null | undefined;
202
+ /**
203
+ * The view associated with the component.
204
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-table-list-next component will be associated with a map or scene component rather than using the `view` property.
205
+ */
206
+ accessor view: LinkChartView | MapView | SceneView | undefined;
207
+ /** Permanently destroy the component. */
208
+ destroy(): Promise<void>;
209
+ /** Emitted when the component's close button is clicked. */
210
+ readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
211
+ /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
212
+ readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "state"; }>;
213
+ /** Emitted when the component associated with a map or scene view is ready to be interacted with. */
214
+ readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
215
+ /** Emitted when an action is triggered on the component. */
216
+ readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, TableListViewModelEvents["trigger-action"]>;
217
+ readonly "@eventTypes": {
218
+ arcgisClose: ArcgisTableListNext["arcgisClose"]["detail"];
219
+ arcgisPropertyChange: ArcgisTableListNext["arcgisPropertyChange"]["detail"];
220
+ arcgisReady: ArcgisTableListNext["arcgisReady"]["detail"];
221
+ arcgisTriggerAction: ArcgisTableListNext["arcgisTriggerAction"]["detail"];
222
+ };
223
+ }
224
+
225
+ /** @param event */
226
+ export type CanSortFunction = (event: CanSortEvent) => boolean;
227
+
228
+ /** @param item */
229
+ export type FilterPredicate = (item: TableListListItem) => boolean;
230
+
231
+ export interface CanSortEvent {
232
+ selected: null | undefined | TableListListItem;
233
+ from: null | undefined | TableListListItem;
234
+ to: null | undefined | TableListListItem;
235
+ }