@arcgis/map-components 6.0.0-next.7 → 6.0.0-next.9

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 (82) hide show
  1. package/dist/cdn/4UDLUCTE.js +2 -0
  2. package/dist/cdn/5ITYFVDX.js +2 -0
  3. package/dist/cdn/{IDIAWXUO.js → 6XDLG2SC.js} +1 -1
  4. package/dist/cdn/7HS2SX6W.js +2 -0
  5. package/dist/cdn/7YHGGHJY.js +2 -0
  6. package/dist/cdn/{VOBRCUIE.js → BV6ID43I.js} +1 -1
  7. package/dist/cdn/CCBLZGVL.js +2 -0
  8. package/dist/cdn/{43ETXXS2.js → EVV5ZWO2.js} +1 -1
  9. package/dist/cdn/F4S2DPYN.js +2 -0
  10. package/dist/cdn/FMSA7336.js +2 -0
  11. package/dist/cdn/MSGW4PYB.js +2 -0
  12. package/dist/cdn/NUFSYQAJ.js +2 -0
  13. package/dist/cdn/{WO26ZR5Z.js → PIKYAUGU.js} +1 -1
  14. package/dist/cdn/{44CQCIZB.js → PSWXIEFK.js} +1 -1
  15. package/dist/cdn/QPW7LQT2.js +2 -0
  16. package/dist/cdn/QYUGC46B.js +2 -0
  17. package/dist/cdn/RK65HKUN.js +2 -0
  18. package/dist/cdn/SKP3TGF4.js +2 -0
  19. package/dist/cdn/U73UTEIN.js +2 -0
  20. package/dist/cdn/WJG5SEIL.js +2 -0
  21. package/dist/cdn/ZDTIOBXY.js +2 -0
  22. package/dist/cdn/assets/bookmarks/t9n/messages.en.json +1 -1
  23. package/dist/cdn/assets/feature-next/t9n/messages.en.json +1 -1
  24. package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
  25. package/dist/cdn/index.js +1 -1
  26. package/dist/chunks/esri-main.js +1 -1
  27. package/dist/chunks/slots.js +1 -1
  28. package/dist/chunks/useArcgisViewReadyError.js +120 -106
  29. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -3
  30. package/dist/components/arcgis-editor/customElement.d.ts +10 -0
  31. package/dist/components/arcgis-editor/customElement.js +3 -0
  32. package/dist/components/arcgis-elevation-profile/customElement.js +93 -89
  33. package/dist/components/arcgis-features/customElement.d.ts +1 -1
  34. package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
  35. package/dist/components/arcgis-features-next/customElement.js +102 -92
  36. package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
  37. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  38. package/dist/components/arcgis-link-chart/customElement.d.ts +20 -18
  39. package/dist/components/arcgis-link-chart/customElement.js +5 -5
  40. package/dist/components/arcgis-map/customElement.d.ts +22 -20
  41. package/dist/components/arcgis-map/customElement.js +9 -9
  42. package/dist/components/arcgis-measurement-content/customElement.js +6 -6
  43. package/dist/components/arcgis-popup/customElement.d.ts +2 -2
  44. package/dist/components/arcgis-popup/customElement.js +32 -28
  45. package/dist/components/arcgis-scene/customElement.d.ts +20 -18
  46. package/dist/components/arcgis-scene/customElement.js +9 -9
  47. package/dist/components/arcgis-slice/customElement.js +24 -24
  48. package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
  49. package/dist/components/arcgis-time-bar/customElement.js +24 -25
  50. package/dist/components/arcgis-time-bar-slider/customElement.js +46 -45
  51. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +16 -16
  52. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
  53. package/dist/components/arcgis-version-management/customElement.js +37 -37
  54. package/dist/components/arcgis-video/customElement.js +6 -6
  55. package/dist/components/arcgis-volume-measurement/customElement.js +62 -62
  56. package/dist/docs/api.json +1 -1
  57. package/dist/docs/docs.json +1 -1
  58. package/dist/docs/vscode.css-custom-data.json +1 -1
  59. package/dist/docs/vscode.html-custom-data.json +1 -1
  60. package/dist/docs/web-types.json +1 -1
  61. package/dist/loader.js +4 -4
  62. package/dist/types/lumina.d.ts +3 -3
  63. package/dist/types/preact.d.ts +3 -3
  64. package/dist/types/react.d.ts +3 -3
  65. package/dist/types/stencil.d.ts +3 -3
  66. package/package.json +6 -6
  67. package/dist/cdn/2BGZVOT3.js +0 -2
  68. package/dist/cdn/7FCZLFJD.js +0 -2
  69. package/dist/cdn/CBVICP6P.js +0 -2
  70. package/dist/cdn/EZCHUWDK.js +0 -2
  71. package/dist/cdn/KLVBRTYU.js +0 -2
  72. package/dist/cdn/KPUEQZ7O.js +0 -2
  73. package/dist/cdn/PGK2ZJCX.js +0 -2
  74. package/dist/cdn/PJ5OUPGO.js +0 -2
  75. package/dist/cdn/R5TCWJ6V.js +0 -2
  76. package/dist/cdn/SNNAV3AS.js +0 -2
  77. package/dist/cdn/W6PA72LV.js +0 -2
  78. package/dist/cdn/WQI5PKS4.js +0 -2
  79. package/dist/cdn/XCTPKDKL.js +0 -2
  80. package/dist/cdn/YFTQR2WS.js +0 -2
  81. package/dist/cdn/Z3W7LQ5M.js +0 -2
  82. package/dist/cdn/ZFO3PVZQ.js +0 -2
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { html as O } from "lit";
3
- import { initializeProjection as S } from "@arcgis/core/applications/Components/featureUtils.js";
4
- import { signal as R } from "@arcgis/core/applications/Components/reactiveUtils.js";
5
- import { when as A, watch as c } from "@arcgis/core/core/reactiveUtils.js";
2
+ import { html as C } from "lit";
3
+ import { initializeProjection as R } from "@arcgis/core/applications/Components/featureUtils.js";
4
+ import { signal as O } from "@arcgis/core/applications/Components/reactiveUtils.js";
5
+ import { watch as u, when as A } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import P from "@arcgis/core/geometry/Point.js";
7
7
  import F from "@arcgis/core/Graphic.js";
8
8
  import { GenericController as L, useDirection as G, makeController as M, makeGenericController as _ } from "@arcgis/lumina/controllers";
@@ -12,63 +12,66 @@ import { createRef as V } from "lit/directives/ref.js";
12
12
  import { c as k, S as x } from "./slots.js";
13
13
  import { i as T, t as H } from "./async-utils.js";
14
14
  import { observeAncestorsMutation as j, unsafeGetCalciteModeName as q } from "@arcgis/toolkit/dom";
15
- import { createEvent as C } from "@arcgis/lumina";
16
- async function* U(i, t) {
17
- for (const e of i) {
18
- const o = await y(e, t).catch(() => {
15
+ import { createEvent as S } from "@arcgis/lumina";
16
+ async function* U(n, t) {
17
+ for (const e of n) {
18
+ const i = await y(e, t).catch(() => {
19
19
  });
20
20
  if (t.aborted)
21
21
  return;
22
- yield* Array.isArray(o) ? o.filter((r) => r instanceof F) : [];
22
+ yield* Array.isArray(i) ? i.filter((o) => o instanceof F) : [];
23
23
  }
24
24
  }
25
25
  async function* v() {
26
26
  yield* [];
27
27
  }
28
- async function* K(i, t) {
29
- await y(i, t).catch(() => {
28
+ async function* K(n, t) {
29
+ await y(n, t).catch(() => {
30
30
  });
31
31
  }
32
- async function N(i, t, e, o) {
33
- let r;
34
- if (e instanceof P ? (await S(e.spatialReference, i.spatialReference), H(o.signal), r = i.toScreen(e)) : r = e, !r)
32
+ async function N(n, t, e, i) {
33
+ let o;
34
+ if (e instanceof P ? (await R(e.spatialReference, n.spatialReference), H(i.signal), o = n.toScreen(e)) : o = e, !o)
35
35
  return v();
36
- const n = Promise.withResolvers(), a = i.fetchPopupFeatures(r, {
37
- ...o,
36
+ const r = Promise.withResolvers(), a = n.fetchPopupFeatures(o, {
37
+ ...i,
38
38
  defaultPopupTemplateEnabled: t.defaultPopupTemplateEnabled,
39
- hitTestResolver: n
39
+ hitTestResolver: r
40
40
  }) ?? v();
41
- return await n.promise, a;
41
+ return await r.promise, a;
42
42
  }
43
- function d(i, t) {
43
+ function d(n, t) {
44
44
  if (t instanceof P)
45
45
  return t;
46
46
  const e = "width" in t ? { x: t.x + t.width / 2, y: t.y + t.height / 2 } : t;
47
- return i.toMap(e) ?? void 0;
47
+ return n.toMap(e) ?? void 0;
48
48
  }
49
- async function $(i, t, e, o) {
50
- const r = {};
49
+ async function $(n, t, e, i) {
50
+ const o = {};
51
51
  return {
52
- diagnostics: r,
53
- featureStream: await N(i, t, e, {
54
- diagnostics: r,
55
- signal: o
52
+ diagnostics: o,
53
+ featureStream: await N(n, t, e, {
54
+ diagnostics: o,
55
+ signal: i
56
56
  }),
57
- location: d(i, e)
57
+ location: d(n, e)
58
58
  };
59
59
  }
60
- class ne extends L {
60
+ class re extends L {
61
61
  //#endregion
62
62
  //#region Lifecycle
63
63
  constructor(t) {
64
- super(t), this.direction = G(), this.popupRef = V(), this._popupElement = R(void 0), this._popupAbortController = null, this._popupClickOpenCount = 0, this.slotGroupRefs = k(), this.attributionHeight = 0, this._uiContainer = null, this.component.listenOn(globalThis, "unhandledrejection", (e) => {
65
- const o = e.reason;
66
- if (o?.name === "webgl:required") {
67
- const { name: r } = o;
68
- this.webGLError = { name: r };
64
+ super(t), this.direction = G(), this.popupRef = V(), this._popupElement = O(void 0), this._popupAbortController = null, this._popupClickOpenCount = 0, this.slotGroupRefs = k(), this.attributionHeight = 0, this._uiContainer = null, this.component.listenOn(globalThis, "unhandledrejection", (e) => {
65
+ const i = e.reason;
66
+ if (i?.name === "webgl:required") {
67
+ const { name: o } = i;
68
+ this.webGLError = { name: o };
69
69
  }
70
70
  });
71
71
  }
72
+ get _focusRegionSelectionSupported() {
73
+ return !this.component.popupDisabled && (this.component.popupComponentEnabled || !!this.popupElement && this.popupElement !== this._defaultPopupElement);
74
+ }
72
75
  get popupElement() {
73
76
  return this._popupElement.value;
74
77
  }
@@ -78,33 +81,44 @@ class ne extends L {
78
81
  //#endregion
79
82
  //#region Private Methods
80
83
  hostLifecycle() {
84
+ const { view: t } = this.component, e = t.focusRegionShortcutEnabled;
81
85
  return [
82
- A(() => this.component.view.ready, () => {
83
- this._assignDefaultPopup();
84
- }),
85
- c(() => this.component.view.popup?.visible, (e, o) => {
86
- (e || o) && this._cancelPopupOperation(), e && this.popupElement?.open && (this.popupElement.open = !1);
87
- }, { initial: !0 }),
88
- c(
89
- () => this.component.popupElement?.open,
90
- (e, o) => {
91
- o && !e && this._cancelPopupOperation();
92
- },
93
- // Using sync to preemptively prevent a close notification from canceling a replacement operation.
94
- { initial: !0, sync: !0 }
95
- ),
96
- this.component.view.on("focus-region-select", (e) => this._handleFocusRegionSelect(e)),
97
- this.component.view.on(
98
- "click",
99
- [],
100
- (e) => {
101
- const o = e.native;
102
- e.button !== 0 || o?.ctrlKey || o?.metaKey || this._handleOpenPopup(e).catch(() => {
103
- });
104
- },
105
- // @ts-ignore: Core supports a click listener priority argument, needed for Popup click
106
- -2
107
- )
86
+ ...[
87
+ u(() => this.component.focusRegionShortcutEnabled ?? this._focusRegionSelectionSupported, (o) => {
88
+ this.component.view.focusRegionShortcutEnabled = o;
89
+ }, { initial: !0, sync: !0 }),
90
+ A(() => this.component.view.ready, () => {
91
+ this._assignDefaultPopup();
92
+ }),
93
+ u(() => this.component.view.popup?.visible, (o, r) => {
94
+ (o || r) && this._cancelPopupOperation(), o && this.popupElement?.open && (this.popupElement.open = !1);
95
+ }, { initial: !0 }),
96
+ u(
97
+ () => this.component.popupElement?.open,
98
+ (o, r) => {
99
+ r && !o && this._cancelPopupOperation();
100
+ },
101
+ // Using sync to preemptively prevent a close notification from canceling a replacement operation.
102
+ { initial: !0, sync: !0 }
103
+ ),
104
+ this.component.view.on("focus-region-select", (o) => this._handleFocusRegionSelect(o)),
105
+ this.component.view.on(
106
+ "click",
107
+ [],
108
+ (o) => {
109
+ const r = o.native;
110
+ o.button !== 0 || r?.ctrlKey || r?.metaKey || this._handleOpenPopup(o).catch(() => {
111
+ });
112
+ },
113
+ // @ts-ignore: Core supports a click listener priority argument, needed for Popup click
114
+ -2
115
+ )
116
+ ],
117
+ {
118
+ remove: () => {
119
+ t.focusRegionShortcutEnabled = e;
120
+ }
121
+ }
108
122
  ];
109
123
  }
110
124
  hostDestroy() {
@@ -112,39 +126,39 @@ class ne extends L {
112
126
  }
113
127
  async openPopup(t = {}) {
114
128
  this._assignDefaultPopup();
115
- const e = this.popupElement, o = t.location ?? e?.location, r = !!e && !t.featureStream && !t.promises?.length && !!t.fetchFeatures && !!o;
116
- r ? (this._cancelPopupOperation(), this.component.view.closePopup()) : this.closePopup();
117
- const n = new AbortController();
118
- if (this._popupAbortController = n, e) {
119
- const { fetchFeatures: a, shouldFocus: h, title: u, featureStream: w, promises: b, location: l, ...E } = t, f = l ? d(this.component.view, l) : void 0, g = l ?? o, p = r && g ? $(this.component.view, e, g, n.signal) : null, m = p ? Promise.withResolvers() : null;
120
- p && m && (p.catch(() => {
121
- }), e.featureStream = K(m.promise, n.signal));
129
+ const e = this.popupElement, i = t.location ?? e?.location, o = !!e && !t.featureStream && !t.promises?.length && !!t.fetchFeatures && !!i;
130
+ this._cancelPopupOperation();
131
+ const r = new AbortController();
132
+ if (this._popupAbortController = r, e) {
133
+ const { fetchFeatures: a, shouldFocus: h, title: l, featureStream: E, promises: b, location: c, ...g } = t, m = c ? d(this.component.view, c) : void 0, w = c ?? i, p = o && w ? $(this.component.view, e, w, r.signal) : null, f = p ? Promise.withResolvers() : null;
134
+ p && f && (p.catch(() => {
135
+ }), e.featureStream = K(f.promise, r.signal));
122
136
  try {
123
137
  await e.componentOnReady();
124
138
  } catch (s) {
125
- throw p && this._isCurrentPopupOperation(n) && (n.abort(), e.open = !1, await e.clear()), s;
139
+ throw p && this._isCurrentPopupOperation(r) && (r.abort(), e.open = !1, await e.clear()), s;
126
140
  }
127
- if (!this._isCurrentPopupOperation(n))
141
+ if (!this._isCurrentPopupOperation(r))
128
142
  return;
129
143
  if (p)
130
144
  try {
131
145
  const s = await p;
132
- if (!this._isCurrentPopupOperation(n))
146
+ if (!this._isCurrentPopupOperation(r))
133
147
  return;
134
- Object.assign(e, E), u !== void 0 && (e.heading = u), await e.openFeatureStream(s);
148
+ Object.assign(e, g), l !== void 0 && (e.heading = l), await e.openFeatureStream(s);
135
149
  } catch (s) {
136
150
  if (!T(s))
137
- throw this._isCurrentPopupOperation(n) && (e.open = !1, await e.clear()), s;
151
+ throw this._isCurrentPopupOperation(r) && (e.open = !1, await e.clear()), s;
138
152
  return;
139
153
  } finally {
140
- m?.resolve();
154
+ f?.resolve();
141
155
  }
142
156
  else
143
- Object.assign(e, E), u !== void 0 && (e.heading = u), w ? await e.openFeatureStream({ featureStream: w, location: f }) : b?.length ? await e.openFeatureStream({
144
- featureStream: U(b, n.signal),
145
- location: f
146
- }) : (e.featureStream = null, l !== void 0 && (e.location = f), e.open = !0);
147
- h && this._isCurrentPopupOperation(n) && await e.setFocus();
157
+ Object.assign(e, g), l !== void 0 && (e.heading = l), E ? await e.openFeatureStream({ featureStream: E, location: m }) : b?.length ? await e.openFeatureStream({
158
+ featureStream: U(b, r.signal),
159
+ location: m
160
+ }) : (e.featureStream = null, c !== void 0 && (e.location = m), e.open = !0);
161
+ h && this._isCurrentPopupOperation(r) && await e.setFocus();
148
162
  } else {
149
163
  const { location: a, ...h } = t;
150
164
  await this.component.view.openPopup({
@@ -154,7 +168,7 @@ class ne extends L {
154
168
  }
155
169
  }
156
170
  closePopup() {
157
- this._cancelPopupOperation(), this.popupElement && (this.popupElement.open = !1, this.popupElement.clear()), this.component.view.closePopup();
171
+ this._cancelPopupOperation(), this.popupElement ? (this.popupElement.open = !1, this.popupElement.clear()) : this.component.view.closePopup();
158
172
  }
159
173
  _cancelPopupOperation() {
160
174
  this._popupAbortController?.abort(), this._popupAbortController = null;
@@ -163,7 +177,7 @@ class ne extends L {
163
177
  return this._popupAbortController === t && !t.signal.aborted;
164
178
  }
165
179
  _assignDefaultPopup() {
166
- this.popupRef.value && !this.popupElement && (this.popupElement = this.popupRef.value, this.popupElement.referenceElement = this.component.el, this.popupElement.view = this.component.view);
180
+ this.popupRef.value && !this.popupElement && (this._defaultPopupElement = this.popupRef.value, this.popupElement = this.popupRef.value, this.popupElement.referenceElement = this.component.el, this.popupElement.view = this.component.view);
167
181
  }
168
182
  handleAttributionHeightChange(t) {
169
183
  if (!(this.attributionHeight === t || !this.component.el.shadowRoot)) {
@@ -194,7 +208,7 @@ class ne extends L {
194
208
  }
195
209
  }
196
210
  _handleFocusRegionSelect(t) {
197
- this._assignDefaultPopup(), this.popupElement && queueMicrotask(() => {
211
+ this._assignDefaultPopup(), !(!this._focusRegionSelectionSupported || !this.popupElement) && queueMicrotask(() => {
198
212
  const { focusRegion: e } = this.component.view;
199
213
  !t.defaultPrevented && e && this.openPopup({ fetchFeatures: !0, location: e }).catch(() => {
200
214
  });
@@ -205,7 +219,7 @@ class ne extends L {
205
219
  !this.popupElement && e.length ? this.popupElement = e[0] : e.length || (this.popupElement = void 0);
206
220
  }
207
221
  _webGLErrorAlert() {
208
- return this.webGLError ? O`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>` : null;
222
+ return this.webGLError ? C`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>` : null;
209
223
  }
210
224
  //#endregion
211
225
  //#region Rendering
@@ -213,52 +227,52 @@ class ne extends L {
213
227
  return x({ direction: this.direction, popupComponentEnabled: this.component.popupComponentEnabled, slotGroupRefs: this.slotGroupRefs, handlePopupSlotChange: (t) => this._handlePopupSlotChange(t), webGLErrorElement: this._webGLErrorAlert(), popupElement: this.popupRef });
214
228
  }
215
229
  }
216
- function pe(i) {
230
+ function pe(n) {
217
231
  M((t, e) => {
218
- const o = () => {
219
- if (i.attributionMode !== "auto")
232
+ const i = () => {
233
+ if (n.attributionMode !== "auto")
220
234
  return;
221
- const r = q(i.el);
222
- i.view.attributionMode !== r && (i.view.attributionMode = r);
235
+ const o = q(n.el);
236
+ n.view.attributionMode !== o && (n.view.attributionMode = o);
223
237
  };
224
- e.onLifecycle(() => (o(), j(i.el, ["class"], o))), e.onUpdate((r) => {
225
- r.has("attributionMode") && i.attributionMode === "auto" && o();
238
+ e.onLifecycle(() => (i(), j(n.el, ["class"], i))), e.onUpdate((o) => {
239
+ o.has("attributionMode") && n.attributionMode === "auto" && i();
226
240
  });
227
241
  });
228
242
  }
229
- const se = _((i, t) => {
230
- const e = C();
243
+ const se = _((n, t) => {
244
+ const e = S();
231
245
  return t.onLifecycle(
232
- () => c(
246
+ () => u(
233
247
  () => {
234
- const { map: o } = i;
235
- if (!o || o.destroyed)
248
+ const { map: i } = n;
249
+ if (!i || i.destroyed)
236
250
  return [];
237
- const r = [];
238
- return o.loadError && r.push(o), o.basemap?.loadError && r.push(o.basemap), o.ground.loadError && r.push(o.ground), [...o.allLayers, ...o.allTables].forEach((n) => {
239
- n.loadError && r.push(n);
240
- }), r;
251
+ const o = [];
252
+ return i.loadError && o.push(i), i.basemap?.loadError && o.push(i.basemap), i.ground.loadError && o.push(i.ground), [...i.allLayers, ...i.allTables].forEach((r) => {
253
+ r.loadError && o.push(r);
254
+ }), o;
241
255
  },
242
- (o) => {
243
- o.length && (i.loadErrorSources = o, e.emit());
256
+ (i) => {
257
+ i.length && (n.loadErrorSources = i, e.emit());
244
258
  }
245
259
  )
246
260
  ), e;
247
261
  }), ae = _(
248
- (i, t) => {
249
- const e = C();
262
+ (n, t) => {
263
+ const e = S();
250
264
  return t.onLifecycle(
251
- () => c(
252
- () => i.view?.readyState,
253
- (o) => {
254
- (o === "map-content-error" || o === "rendering-error") && e.emit();
265
+ () => u(
266
+ () => n.view?.readyState,
267
+ (i) => {
268
+ (i === "map-content-error" || i === "rendering-error") && e.emit();
255
269
  }
256
270
  )
257
271
  ), e;
258
272
  }
259
273
  );
260
274
  export {
261
- ne as U,
275
+ re as U,
262
276
  ae as a,
263
277
  pe as b,
264
278
  se as u
@@ -8,7 +8,7 @@ import type { VisibilityAppearance } from "../../utils/action-utils.js";
8
8
  import type { setFilterPredicate } from "../../utils/layer-list-utils.js";
9
9
  import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
10
10
  import type { CatalogLayerListMessageOverrides, CatalogLayerListOptions, FlowLayer, FlowList } from "./types.js";
11
- import type { TableListProperties } from "@arcgis/core/widgets/TableList.js";
11
+ import type { TableListOptions } from "../arcgis-table-list-next/types.js";
12
12
  import type { T9nMeta } from "@arcgis/lumina/controllers";
13
13
  import type { ItemModifier, State } from "@arcgis/core/layerList/types.js";
14
14
  import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
@@ -258,7 +258,7 @@ export abstract class ArcgisCatalogLayerListNext extends LitElement {
258
258
  */
259
259
  accessor hideStatusIndicators: boolean;
260
260
  /** @internal */
261
- accessor knowledgeGraphOptions: TableListProperties | undefined;
261
+ accessor knowledgeGraphOptions: TableListOptions | undefined;
262
262
  /** The component's default label. */
263
263
  accessor label: string | undefined;
264
264
  /**
@@ -292,7 +292,7 @@ export abstract class ArcgisCatalogLayerListNext extends LitElement {
292
292
  *
293
293
  * // Wait for the layer to load and the item title to become available
294
294
  * await item.layer.when();
295
- *
295
+ *
296
296
  * // If the item's title matches "US Demographics", customize the list item
297
297
  * if (item.title === "US Demographics") {
298
298
  * // open the list item in the LayerList component
@@ -1,5 +1,6 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type Graphic from "@arcgis/core/Graphic.js";
3
+ import type SelectionOperation from "@arcgis/core/views/selection/SelectionOperation.js";
3
4
  import type CreateFeaturesWorkflow from "@arcgis/core/widgets/Editor/CreateFeaturesWorkflow.js";
4
5
  import type UpdateWorkflow from "@arcgis/core/widgets/Editor/UpdateWorkflow.js";
5
6
  import type SketchLabelOptions from "@arcgis/core/views/interactive/sketch/SketchLabelOptions.js";
@@ -10,6 +11,7 @@ import type { CreateFeaturesCreationInfo } from "@arcgis/core/widgets/Editor.js"
10
11
  import type { EditorStartCreateFeaturesWorkflowAtFeatureEditParameters, EditorStartCreateFeaturesWorkflowAtFeatureTypeSelectionParameters, EditorStartMergeFeaturesWorkflowOptions, EditorStartSplitFeatureWorkflowOptions, CancelWorkflowOptions, EditorSketchUpdateEvent, EditorSketchCreateEvent, FeatureInfo, LayerInfo, State, SupportingWidgetDefaults } from "@arcgis/core/widgets/Editor/types.js";
11
12
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
12
13
  import type { ArcgisReferenceElement, IconName } from "../types.js";
14
+ import type { SelectionToolName } from "@arcgis/core/views/selection/types.js";
13
15
  import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
14
16
  import type { HeadingLevel } from "@arcgis/core/widgets/support/types.js";
15
17
  import type { Icon } from "@esri/calcite-components/components/calcite-icon";
@@ -431,6 +433,14 @@ export abstract class ArcgisEditor extends LitElement {
431
433
  * > **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-editor component will be associated with a map or scene component rather than using the `view` property.
432
434
  */
433
435
  accessor view: MapViewOrSceneView | null | undefined;
436
+ /**
437
+ * Activates a selection tool specified by name. Additionally, cancels the previously active selection operation.
438
+ *
439
+ * @param toolName - The name of the selection tool to activate.
440
+ * @returns A reference to the active selection operation.
441
+ * @since 5.2
442
+ */
443
+ activateSelectionTool(toolName: SelectionToolName): SelectionOperation | undefined;
434
444
  /**
435
445
  * Cancels any active selection operation.
436
446
  *
@@ -18,6 +18,9 @@ class g extends n {
18
18
  static {
19
19
  this.styles = p;
20
20
  }
21
+ activateSelectionTool(e) {
22
+ return this.widget?.activateSelectionTool(e);
23
+ }
21
24
  cancelSelectionTool() {
22
25
  this.widget?.cancelSelectionTool();
23
26
  }