@arcgis/map-components 5.2.0-next.26 → 5.2.0-next.28

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 (32) hide show
  1. package/dist/cdn/3JEAUEUY.js +2 -0
  2. package/dist/cdn/{VAYZZ5OC.js → 3PM2WTS4.js} +1 -1
  3. package/dist/cdn/4LB5GOV2.js +2 -0
  4. package/dist/cdn/{HOIUABRJ.js → A5W6D3EH.js} +1 -1
  5. package/dist/cdn/BM3NHWBY.js +2 -0
  6. package/dist/cdn/YNIECEKR.js +2 -0
  7. package/dist/cdn/index.js +1 -1
  8. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +86 -93
  9. package/dist/components/arcgis-features/customElement.d.ts +2 -2
  10. package/dist/components/arcgis-features/customElement.js +23 -21
  11. package/dist/components/arcgis-features-next/customElement.d.ts +0 -7
  12. package/dist/components/arcgis-features-next/customElement.js +1 -5
  13. package/dist/components/arcgis-popup/customElement.d.ts +0 -9
  14. package/dist/components/arcgis-popup/customElement.js +0 -3
  15. package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +4 -1
  16. package/dist/components/arcgis-presentation/customElement.d.ts +7 -0
  17. package/dist/components/arcgis-presentation/customElement.js +117 -101
  18. package/dist/components/arcgis-search/customElement.js +5 -5
  19. package/dist/docs/api.json +1 -1
  20. package/dist/docs/docs.json +1 -1
  21. package/dist/docs/vscode.html-custom-data.json +1 -1
  22. package/dist/docs/web-types.json +1 -1
  23. package/dist/loader.js +3 -3
  24. package/dist/types/lumina.d.ts +1 -1
  25. package/dist/types/preact.d.ts +1 -1
  26. package/dist/types/react.d.ts +1 -1
  27. package/dist/types/stencil.d.ts +1 -1
  28. package/package.json +4 -4
  29. package/dist/cdn/H6MYLGUN.js +0 -2
  30. package/dist/cdn/MGAHLABQ.js +0 -2
  31. package/dist/cdn/W5HSEDAR.js +0 -2
  32. package/dist/cdn/XMBA7QLQ.js +0 -2
@@ -11,15 +11,14 @@ import { watch as A } from "@arcgis/core/core/reactiveUtils.js";
11
11
  import * as x from "@arcgis/core/core/sql.js";
12
12
  import P from "@arcgis/core/rest/networks/support/NetworkElement.js";
13
13
  import U from "@arcgis/core/rest/networks/support/QueryAssociationsParameters.js";
14
- import Q from "@arcgis/core/rest/support/Query.js";
15
- import { LitElement as B, renderElement as q } from "@arcgis/lumina";
14
+ import { LitElement as Q, renderElement as q } from "@arcgis/lumina";
16
15
  import { debounce as T } from "@arcgis/toolkit/function";
17
16
  import G from "@arcgis/core/popup/Feature.js";
18
- const R = M`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`, L = 100, $ = {
17
+ const B = M`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`, L = 100, $ = {
19
18
  assetGroup: "assetgroup",
20
19
  assetType: "assettype"
21
20
  }, N = "{00000000-0000-0000-0000-000000000000}";
22
- class O extends B {
21
+ class R extends Q {
23
22
  constructor() {
24
23
  super(...arguments), this._addFlowItem = (t) => {
25
24
  t && this.flowItems?.push(t);
@@ -51,7 +50,7 @@ class O extends B {
51
50
  this.properties = { _activeAssociationType: 16, _associationFeatures: 16, _associationViewModels: 16, _canLoad: 16, _canQuery: 16, _featureCount: 16, _loaded: 16, _queryAbortController: 16, _queryFeatureCountAbortController: 16, _queryPageAbortController: 16, _state: 16, associationTypes: 0, autoDestroyDisabled: 5, description: 1, flowItems: 0, useFeatureNextFlowItem: 5, flowType: 1, graphic: 0, heading: 1, headingLevel: 9, layer: 0, map: 0, messages: 0, parentFeatureViewModel: 0, referenceElement: 1, source: 1, spatialReference: 0, timeZone: 1, view: 0 };
52
51
  }
53
52
  static {
54
- this.styles = R;
53
+ this.styles = B;
55
54
  }
56
55
  get _globalId() {
57
56
  return (this._globalIdField && this.graphic?.attributes?.[this._globalIdField]) ?? null;
@@ -82,8 +81,8 @@ class O extends B {
82
81
  return !!this.layer?.capabilities?.query?.supportsPagination;
83
82
  }
84
83
  get _state() {
85
- const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController: a, _queryPageAbortController: u, associationTypes: n } = this;
86
- return a || t && !o ? "loading" : i || u ? "querying" : !this._globalId || !n || !e || !s ? "disabled" : "ready";
84
+ const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController: a, _queryPageAbortController: r, associationTypes: c } = this;
85
+ return a || t && !o ? "loading" : i || r ? "querying" : !this._globalId || !c || !e || !s ? "disabled" : "ready";
87
86
  }
88
87
  get heading() {
89
88
  return this._heading;
@@ -133,12 +132,8 @@ class O extends B {
133
132
  });
134
133
  }
135
134
  async _countAssociatedFeatureCount(t, e, s, o, i) {
136
- const a = this._getFeatureQueryWhereClause(t, e, s, o);
137
- return await t.queryFeatureCount({
138
- where: a,
139
- outFields: ["*"],
140
- returnGeometry: !1
141
- }, {
135
+ const a = this._getFeatureQueryWhereClause(t, e, s, o), r = t.createQuery();
136
+ return r.where = a, r.outFields = ["*"], r.returnGeometry = !1, await t.queryFeatureCount(r, {
142
137
  signal: i?.signal
143
138
  });
144
139
  }
@@ -147,18 +142,18 @@ class O extends B {
147
142
  return 0;
148
143
  const a = await this._findLayersBySourceId(t);
149
144
  await this._loadLayers(a);
150
- const u = a.map((c) => this._countAssociatedFeatureCount(c, e, s, o, i));
151
- return (await Promise.all(u)).reduce((c, d) => c + d, 0);
145
+ const r = a.map((l) => this._countAssociatedFeatureCount(l, e, s, o, i));
146
+ return (await Promise.all(r)).reduce((l, d) => l + d, 0);
152
147
  }
153
148
  async _createAssociationFeatureObjects(t, e, s, o, i) {
154
149
  if (!t.length)
155
150
  return [];
156
- const a = /* @__PURE__ */ new Map(), u = Array.from(e.entries()).map(async ([c, d]) => {
157
- const l = await this._findLayersBySourceId(c);
158
- await this._loadLayers(l);
159
- const y = l.map((r) => this._queryLayer(r, d, s, o, i));
160
- (await Promise.all(y)).forEach((r) => {
161
- r.forEach((h) => {
151
+ const a = /* @__PURE__ */ new Map(), r = Array.from(e.entries()).map(async ([l, d]) => {
152
+ const u = await this._findLayersBySourceId(l);
153
+ await this._loadLayers(u);
154
+ const y = u.map((n) => this._queryLayer(n, d, s, o, i));
155
+ (await Promise.all(y)).forEach((n) => {
156
+ n.forEach((h) => {
162
157
  if (this.source === "popup" ? h.sourceLayer && h.getEffectivePopupTemplate() : !!h.sourceLayer) {
163
158
  const f = h.layer.globalIdField ?? "", g = h.getAttribute(f), F = a.get(g) ?? [];
164
159
  F.push(h), a.set(g, F);
@@ -166,38 +161,38 @@ class O extends B {
166
161
  });
167
162
  });
168
163
  });
169
- await Promise.all(u);
170
- const n = [];
171
- return await Promise.all(t.toArray().map(async (c) => {
172
- const { fromNetworkElement: d, toNetworkElement: l } = c, y = d.globalId === this._globalId ? l : d, p = a.get(y.globalId) ?? [];
173
- await Promise.all(p.map(async (r) => {
174
- const h = this._utilityNetwork?.getTerminalById(y?.terminalId ?? void 0)?.name, _ = await r.sourceLayer.getFeatureTitle(r) || this._getFeatureTitle(r);
175
- n.push({
164
+ await Promise.all(r);
165
+ const c = [];
166
+ return await Promise.all(t.toArray().map(async (l) => {
167
+ const { fromNetworkElement: d, toNetworkElement: u } = l, y = d.globalId === this._globalId ? u : d, p = a.get(y.globalId) ?? [];
168
+ await Promise.all(p.map(async (n) => {
169
+ const h = this._utilityNetwork?.getTerminalById(y?.terminalId ?? void 0)?.name, _ = await n.sourceLayer.getFeatureTitle(n) || this._getFeatureTitle(n);
170
+ c.push({
176
171
  title: _,
177
- feature: r,
178
- association: c,
172
+ feature: n,
173
+ association: l,
179
174
  terminalName: h
180
175
  });
181
176
  }));
182
- })), n;
177
+ })), c;
183
178
  }
184
179
  _destroyAssociatedFeatureViewModels() {
185
180
  this._associationViewModels.forEach((t) => t.destroyAll());
186
181
  }
187
182
  _equals(t, e) {
188
183
  if (t.globalId === N && e.globalId === N) {
189
- let s = function(d, l) {
190
- return d.networkSourceId === l.networkSourceId && d.globalId === l.globalId && d.terminalId === l.terminalId && d.firstUnit === l.firstUnit && d.numUnits === l.numUnits;
184
+ let s = function(d, u) {
185
+ return d.networkSourceId === u.networkSourceId && d.globalId === u.globalId && d.terminalId === u.terminalId && d.firstUnit === u.firstUnit && d.numUnits === u.numUnits;
191
186
  };
192
- const o = t.fromNetworkElement, i = t.toNetworkElement, a = e.fromNetworkElement, u = e.toNetworkElement, n = s(o, a), c = s(i, u);
193
- return n && c && t.associationType === e.associationType;
187
+ const o = t.fromNetworkElement, i = t.toNetworkElement, a = e.fromNetworkElement, r = e.toNetworkElement, c = s(o, a), l = s(i, r);
188
+ return c && l && t.associationType === e.associationType;
194
189
  }
195
190
  return t.globalId != null && e.globalId != null && t.globalId === e.globalId;
196
191
  }
197
192
  async _findLayersBySourceId(t) {
198
193
  const { _utilityNetwork: e, map: s } = this;
199
194
  e?.loaded || await e?.load();
200
- const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((n) => !!e?.isUtilityLayer(n) && n.layerId === o), a = s.allTables.filter((n) => !!e?.isUtilityLayer(n) && n.layerId === o);
195
+ const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o), a = s.allTables.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o);
201
196
  return i.concat(a).toArray();
202
197
  }
203
198
  _getAssociationsByType(t) {
@@ -246,15 +241,15 @@ class O extends B {
246
241
  }
247
242
  }
248
243
  _getFeatureQueryWhereClause(t, e, s, o) {
249
- const i = t.globalIdField, a = t.fieldsIndex.get($.assetGroup), u = t.fieldsIndex.get($.assetType), n = s != null, c = o != null, d = i ? x.sqlIn(i, e) : null, l = n ? `(${a?.name} = ${s})` : null, y = n && c ? `(${u?.name} = ${o})` : null;
250
- return [d, l, y].filter(Boolean).join(" AND ");
244
+ const i = t.globalIdField, a = t.fieldsIndex.get($.assetGroup), r = t.fieldsIndex.get($.assetType), c = s != null, l = o != null, d = i ? x.sqlIn(i, e) : null, u = c ? `(${a?.name} = ${s})` : null, y = c && l ? `(${r?.name} = ${o})` : null;
245
+ return [d, u, y].filter(Boolean).join(" AND ");
251
246
  }
252
247
  _getFeatureTitle(t) {
253
248
  const e = t.attributes, s = t.sourceLayer;
254
249
  if (!e || !s)
255
250
  return "";
256
- const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null, a = i != null ? i.toString() : null, u = t.getObjectId()?.toString();
257
- return a || u || "";
251
+ const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null, a = i != null ? i.toString() : null, r = t.getObjectId()?.toString();
252
+ return a || r || "";
258
253
  }
259
254
  _getParentFeatureDescription() {
260
255
  const { parentFeatureViewModel: t } = this;
@@ -289,12 +284,12 @@ class O extends B {
289
284
  return this._equals(t.association, e.association);
290
285
  }
291
286
  async _queryAssociatedFeatures(t, e) {
292
- const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork: a, _canQuery: u, _associationFeatures: n } = this;
293
- if (await Promise.allSettled([s?.load(), a?.load()]), !u || !s || !i || !a)
287
+ const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork: a, _canQuery: r, _associationFeatures: c } = this;
288
+ if (await Promise.allSettled([s?.load(), a?.load()]), !r || !s || !i || !a)
294
289
  return;
295
- const c = this._getAssociationsByType(t.type), { associatedAssetGroup: d, associatedAssetType: l } = t, y = /* @__PURE__ */ new Map();
296
- c.forEach((r) => {
297
- const { fromNetworkElement: h, toNetworkElement: _ } = r, { networkSourceId: f, elementGlobalId: g } = h.globalId === o ? {
290
+ const l = this._getAssociationsByType(t.type), { associatedAssetGroup: d, associatedAssetType: u } = t, y = /* @__PURE__ */ new Map();
291
+ l.forEach((n) => {
292
+ const { fromNetworkElement: h, toNetworkElement: _ } = n, { networkSourceId: f, elementGlobalId: g } = h.globalId === o ? {
298
293
  networkSourceId: _.networkSourceId,
299
294
  elementGlobalId: _.globalId
300
295
  } : {
@@ -303,52 +298,52 @@ class O extends B {
303
298
  }, F = y.get(f) || [];
304
299
  F.push(g), y.set(f, F);
305
300
  });
306
- const p = await this._createAssociationFeatureObjects(c, y, d, l, e);
307
- this._parseFeatureObjects(p, n);
301
+ const p = await this._createAssociationFeatureObjects(l, y, d, u, e);
302
+ this._parseFeatureObjects(p, c);
308
303
  }
309
304
  async _queryAssociations(t) {
310
305
  const { layer: e, _globalId: s, associationTypes: o, _utilityNetwork: i, _canQuery: a } = this;
311
306
  if (await Promise.allSettled([e?.load(), i?.load()]), this._clearAssociations(), !a || !e || !o || !i || !s)
312
307
  return;
313
- const u = k(e) ? e.parent : e, n = new P({
308
+ const r = k(e) ? e.parent : e, c = new P({
314
309
  globalId: s,
315
- networkSourceId: i.getSourceIdByLayerId(u.layerId)
316
- }), c = /* @__PURE__ */ new Set();
317
- o.forEach((r) => {
318
- switch (r.type) {
310
+ networkSourceId: i.getSourceIdByLayerId(r.layerId)
311
+ }), l = /* @__PURE__ */ new Set();
312
+ o.forEach((n) => {
313
+ switch (n.type) {
319
314
  case "attachment":
320
315
  case "structure":
321
- c.add("attachment");
316
+ l.add("attachment");
322
317
  break;
323
318
  case "container":
324
319
  case "content":
325
- c.add("containment");
320
+ l.add("containment");
326
321
  break;
327
322
  case "connectivity":
328
- c.add("connectivity"), c.add("junction-junction-connectivity"), c.add("junction-edge-from-connectivity"), c.add("junction-edge-midspan-connectivity"), c.add("junction-edge-to-connectivity");
323
+ l.add("connectivity"), l.add("junction-junction-connectivity"), l.add("junction-edge-from-connectivity"), l.add("junction-edge-midspan-connectivity"), l.add("junction-edge-to-connectivity");
329
324
  break;
330
325
  }
331
326
  });
332
327
  const d = await i?.queryAssociations(new U({
333
- elements: [n],
334
- types: Array.from(c)
328
+ elements: [c],
329
+ types: Array.from(l)
335
330
  }), {
336
331
  signal: t?.signal
337
- }), l = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
338
- o.forEach((r) => {
339
- y.set(r.type, r), l.set(r.type, []);
340
- }), d.forEach((r) => {
341
- const { toNetworkElement: h, fromNetworkElement: _ } = r;
342
- switch (r.associationType) {
332
+ }), u = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
333
+ o.forEach((n) => {
334
+ y.set(n.type, n), u.set(n.type, []);
335
+ }), d.forEach((n) => {
336
+ const { toNetworkElement: h, fromNetworkElement: _ } = n;
337
+ switch (n.associationType) {
343
338
  case "attachment":
344
339
  if (_?.globalId === s) {
345
340
  if (this._shouldDiscardNetworkElement(h, "attachment", y))
346
341
  break;
347
- l.get("attachment")?.push(h.globalId), this._attachmentAssociations.add(r);
342
+ u.get("attachment")?.push(h.globalId), this._attachmentAssociations.add(n);
348
343
  } else {
349
344
  if (this._shouldDiscardNetworkElement(_, "structure", y))
350
345
  break;
351
- l.get("structure")?.push(_.globalId), this._structureAssociations.add(r);
346
+ u.get("structure")?.push(_.globalId), this._structureAssociations.add(n);
352
347
  }
353
348
  break;
354
349
  case "connectivity":
@@ -359,30 +354,30 @@ class O extends B {
359
354
  if (_?.globalId === s) {
360
355
  if (this._shouldDiscardNetworkElement(h, "connectivity", y))
361
356
  break;
362
- l.get("connectivity")?.push(h.globalId);
357
+ u.get("connectivity")?.push(h.globalId);
363
358
  } else {
364
359
  if (this._shouldDiscardNetworkElement(_, "connectivity", y))
365
360
  break;
366
- l.get("connectivity")?.push(_.globalId);
361
+ u.get("connectivity")?.push(_.globalId);
367
362
  }
368
- this._connectivityAssociations.add(r);
363
+ this._connectivityAssociations.add(n);
369
364
  break;
370
365
  case "containment":
371
366
  if (_?.globalId === s) {
372
367
  if (this._shouldDiscardNetworkElement(h, "content", y))
373
368
  break;
374
- l.get("content")?.push(h.globalId), this._contentAssociations.add(r);
369
+ u.get("content")?.push(h.globalId), this._contentAssociations.add(n);
375
370
  } else {
376
371
  if (this._shouldDiscardNetworkElement(_, "container", y))
377
372
  break;
378
- l.get("container")?.push(_.globalId), this._containerAssociations.add(r);
373
+ u.get("container")?.push(_.globalId), this._containerAssociations.add(n);
379
374
  }
380
375
  break;
381
376
  }
382
377
  });
383
- const p = o.map(async (r) => {
384
- const { associatedNetworkSourceId: h, associatedAssetGroup: _, associatedAssetType: f } = r, g = l.get(r.type), b = _ != null ? await this._countAssociatedFeatures(h, g, _, f, t) : g.length;
385
- switch (r.type) {
378
+ const p = o.map(async (n) => {
379
+ const { associatedNetworkSourceId: h, associatedAssetGroup: _, associatedAssetType: f } = n, g = u.get(n.type), b = _ != null ? await this._countAssociatedFeatures(h, g, _, f, t) : g.length;
380
+ switch (n.type) {
386
381
  case "attachment":
387
382
  this._attachmentFeatureCount = b;
388
383
  break;
@@ -412,12 +407,10 @@ class O extends B {
412
407
  await this._queryAssociations(t), this._featureCount = this._attachmentFeatureCount + this._connectivityFeatureCount + this._containerFeatureCount + this._contentFeatureCount + this._structureFeatureCount;
413
408
  }
414
409
  async _queryLayer(t, e, s, o, i) {
415
- const a = this._getFeatureQueryWhereClause(t, e, s, o), u = new Q({
416
- where: a,
417
- outFields: ["*"],
418
- cacheHint: this._supportsCacheHint
419
- }), { features: n } = await D(t, u, i);
420
- return n;
410
+ const a = this._getFeatureQueryWhereClause(t, e, s, o), r = t.createQuery();
411
+ r.where = a, r.outFields = ["*"], r.returnGeometry = !1, r.cacheHint = this._supportsCacheHint;
412
+ const { features: c } = await D(t, r, i);
413
+ return c;
421
414
  }
422
415
  _parseFeatureObjects(t, e) {
423
416
  const s = I();
@@ -434,20 +427,20 @@ class O extends B {
434
427
  }
435
428
  _setUpUtilityNetworkAssociationsViewModels() {
436
429
  this._associationViewModels.forEach((i, a) => {
437
- const u = this._associationFeatures.get(a);
438
- u ? i.forEach((n) => {
439
- u.find((d) => this._matchesGlobalFeature(n, d)) || (i.remove(n), i.length || this._associationViewModels.delete(a));
430
+ const r = this._associationFeatures.get(a);
431
+ r ? i.forEach((c) => {
432
+ r.find((d) => this._matchesGlobalFeature(c, d)) || (i.remove(c), i.length || this._associationViewModels.delete(a));
440
433
  }) : (i.removeAll(), this._associationViewModels.delete(a));
441
434
  });
442
435
  const { map: t, view: e, spatialReference: s, timeZone: o } = this;
443
436
  this._associationFeatures.forEach((i, a) => {
444
- const u = this._associationViewModels.get(a) || new w();
445
- i?.filter(Boolean).forEach((n, c) => {
446
- if (!u.some((l) => this._matchesGlobalFeature(l, n))) {
447
- const { association: l, feature: y, terminalName: p, title: r } = n;
448
- u.add({
449
- title: r,
450
- association: l,
437
+ const r = this._associationViewModels.get(a) || new w();
438
+ i?.filter(Boolean).forEach((c, l) => {
439
+ if (!r.some((u) => this._matchesGlobalFeature(u, c))) {
440
+ const { association: u, feature: y, terminalName: p, title: n } = c;
441
+ r.add({
442
+ title: n,
443
+ association: u,
451
444
  featureViewModel: new G({
452
445
  abilities: { utilityNetworkAssociationsContent: !1 },
453
446
  map: t,
@@ -457,9 +450,9 @@ class O extends B {
457
450
  graphic: y
458
451
  }),
459
452
  terminalName: p
460
- }, c);
453
+ }, l);
461
454
  }
462
- }), this._associationViewModels.set(a, u);
455
+ }), this._associationViewModels.set(a, r);
463
456
  });
464
457
  }
465
458
  _shouldDiscardNetworkElement(t, e, s) {
@@ -499,7 +492,7 @@ class O extends B {
499
492
  return this._state === "querying" ? m`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>` : null;
500
493
  }
501
494
  }
502
- S("arcgis-feature-utility-network-associations", O);
495
+ S("arcgis-feature-utility-network-associations", R);
503
496
  export {
504
- O as ArcgisFeatureUtilityNetworkAssociations
497
+ R as ArcgisFeatureUtilityNetworkAssociations
505
498
  };
@@ -647,9 +647,9 @@ export abstract class ArcgisFeatures extends LitElement {
647
647
  */
648
648
  setFocus(): Promise<void>;
649
649
  /**
650
- * Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#event-arcgisTriggerAction) event and executes the action
651
- * at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#actions) array.
650
+ * Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#event-arcgisTriggerAction) event and executes the specified default action.
652
651
  *
652
+ * @deprecated since 5.1. Trigger actions with manual user interaction within the component.
653
653
  * @param action
654
654
  */
655
655
  triggerAction(action: ActionButton | ActionToggle): Promise<void>;
@@ -1,18 +1,18 @@
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 R, html as a } from "lit";
4
- import { keyed as D } from "lit/directives/keyed.js";
4
+ import { keyed as V } from "lit/directives/keyed.js";
5
5
  import B from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
6
6
  import { u as L } from "../../chunks/useT9n.js";
7
- import { log as V } from "@arcgis/toolkit/log";
8
- import { classes as A } from "@arcgis/toolkit/dom";
9
- import { useDirection as S, usePropertyChange as H, bypassReadOnly as x } from "@arcgis/lumina/controllers";
7
+ import { log as A } from "@arcgis/toolkit/log";
8
+ import { classes as x } from "@arcgis/toolkit/dom";
9
+ import { useDirection as S, usePropertyChange as H, bypassReadOnly as y } from "@arcgis/lumina/controllers";
10
10
  import { m as P } from "../../chunks/useViewModel.js";
11
- import { LitElement as z, createEvent as y, renderElement as U, nothing as h, safeClassMap as I } from "@arcgis/lumina";
11
+ import { LitElement as z, createEvent as I, renderElement as U, nothing as h, safeClassMap as T } from "@arcgis/lumina";
12
12
  import { substitute as u, formatNumber as C } from "@arcgis/core/intl.js";
13
13
  import { watch as r } from "@arcgis/core/core/reactiveUtils.js";
14
14
  import { t as Z, z as K } from "../../chunks/action-utils.js";
15
- import { stripHTML as T } from "@arcgis/core/applications/Components/stringUtils.js";
15
+ import { stripHTML as k } from "@arcgis/core/applications/Components/stringUtils.js";
16
16
  import E from "@arcgis/core/core/Collection.js";
17
17
  import { g as j } from "../../chunks/feature-utils.js";
18
18
  import { renderingSanitizer as _ } from "@arcgis/core/applications/Components/sanitizerUtils.js";
@@ -25,8 +25,8 @@ const J = R`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-col
25
25
  id: "zoom-to-feature",
26
26
  title: "{messages.zoom}"
27
27
  }), M = Q.clone();
28
- function Y(k) {
29
- return k?.declaredClass.startsWith("esri.layers.") ?? !1;
28
+ function Y(D) {
29
+ return D?.declaredClass.startsWith("esri.layers.") ?? !1;
30
30
  }
31
31
  const ee = P(B);
32
32
  class te extends z {
@@ -38,7 +38,7 @@ class te extends z {
38
38
  }), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = b(), this._featureMenuViewportNode = b(), this._actionBarMenuNode = b(), this._flowContainerNode = b(), this.messages = L(), this._selectedFeatureComponent = b(), this._cancelOpenRelatedFeature = () => {
39
39
  const { _openRelatedFeatureAbortController: e } = this;
40
40
  e && e.abort(), this._openRelatedFeatureAbortController = null;
41
- }, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this.viewModel = ee(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = H()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = y(), this.arcgisClose = y(), this.arcgisTriggerAction = y();
41
+ }, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this.viewModel = ee(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = H()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = I(), this.arcgisClose = I(), this.arcgisTriggerAction = I();
42
42
  }
43
43
  static {
44
44
  this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapseDirection: 1, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureViewModelAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
@@ -135,16 +135,18 @@ class te extends z {
135
135
  this.location = l.location, this.promises = l.pendingFeatures;
136
136
  }
137
137
  async next() {
138
- return V("warn", this, "The return type of FeaturesViewModel on the next() method is deprecated. At 6.0, this method will return void."), this.viewModel.next();
138
+ return A("warn", this, "The return type of FeaturesViewModel on the next() method is deprecated. At 6.0, this method will return void."), this.viewModel.next();
139
139
  }
140
140
  async previous() {
141
- return V("warn", this, "The return type of FeaturesViewModel on the previous() method is deprecated. At 6.0, this method will return void."), this.viewModel.previous();
141
+ return A("warn", this, "The return type of FeaturesViewModel on the previous() method is deprecated. At 6.0, this method will return void."), this.viewModel.previous();
142
142
  }
143
143
  async setFocus() {
144
144
  this._flowContainerNode.value?.setFocus();
145
145
  }
146
146
  async triggerAction(e) {
147
- if (!e.disabled)
147
+ if (A("warn", this, "The triggerAction() method is deprecated since 5.1. Trigger actions with manual user interaction within the component.", {
148
+ once: !0
149
+ }), !e.disabled)
148
150
  return e?.type === "toggle" && (e.value = !e.value), await Z(e, this.viewModel);
149
151
  }
150
152
  connectedCallback() {
@@ -183,15 +185,15 @@ class te extends z {
183
185
  }
184
186
  updated() {
185
187
  const e = this._selectedFeatureComponent.value ?? void 0;
186
- this.selectedFeatureComponent !== e && x(() => this.selectedFeatureComponent = e);
188
+ this.selectedFeatureComponent !== e && y(() => this.selectedFeatureComponent = e);
187
189
  }
188
190
  _syncSelectedDrillInFeature() {
189
191
  const e = this.flowItems.getItemAt(this.flowItems.length - 1);
190
- x(() => this.selectedDrillInFeature = e?.graphic ?? void 0);
192
+ y(() => this.selectedDrillInFeature = e?.graphic ?? void 0);
191
193
  }
192
194
  _syncEffectiveHeading() {
193
195
  const e = this._calculateEffectiveHeading();
194
- this.effectiveHeading !== e && x(() => this.effectiveHeading = e);
196
+ this.effectiveHeading !== e && y(() => this.effectiveHeading = e);
195
197
  }
196
198
  _cancelFetchingFeatures() {
197
199
  this._fetchFeaturesController?.abort(), this._fetchFeaturesController = null;
@@ -367,7 +369,7 @@ class te extends z {
367
369
  const { messages: e, viewModel: t } = this, s = this._groupResultsByLayer(), i = this.initialDisplayMode === "list" ? "none" : "single";
368
370
  return t.featureViewModels.length ? a`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${i}>${Array.from(s.keys(), (o) => {
369
371
  const n = s.get(o)?.map((c) => this._renderFeatureMenuItem(c)), l = o ? o.title ?? this.messages.untitled : null;
370
- return !this.hideFeatureListLayerTitle && l !== null ? D(o ?? "map-graphics", a`<calcite-list-item-group .heading=${l}>${n}</calcite-list-item-group>`) : n;
372
+ return !this.hideFeatureListLayerTitle && l !== null ? V(o ?? "map-graphics", a`<calcite-list-item-group .heading=${l}>${n}</calcite-list-item-group>`) : n;
371
373
  })}</calcite-list>` : null;
372
374
  }
373
375
  _renderHeaderAction(e) {
@@ -382,10 +384,10 @@ class te extends z {
382
384
  if (c === "list" && !f)
383
385
  return null;
384
386
  const F = l.length === 0 && o, $ = p ? !p.content : !w;
385
- return a`<calcite-flow-item class=${I(A({
387
+ return a`<calcite-flow-item class=${T(x({
386
388
  "content-feature": !0,
387
389
  "flow-item-collapsed": s
388
- }))} .closable=${!t} .closed=${!g} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${i} .headingLevel=${e} .selected=${F} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!v && d ? T(d) : void 0} ${m(this._rootFlowItemNode)}>${!v && d ? a`<div slot=heading><div .innerHTML=${_.sanitize(d ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${I(A("container", "content-container", {
390
+ }))} .closable=${!t} .closed=${!g} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${i} .headingLevel=${e} .selected=${F} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!v && d ? k(d) : void 0} ${m(this._rootFlowItemNode)}>${!v && d ? a`<div slot=heading><div .innerHTML=${_.sanitize(d ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${T(x("container", "content-container", {
389
391
  "content-hidden": $
390
392
  }))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
391
393
  }
@@ -394,7 +396,7 @@ class te extends z {
394
396
  if (o === "feature" && !n)
395
397
  return null;
396
398
  const $ = !l;
397
- return a`<calcite-flow-item class=${I(A({
399
+ return a`<calcite-flow-item class=${T(x({
398
400
  "flow-item-collapsed": f
399
401
  }))} .closable=${o === "list" && !t} .closed=${!p} .collapsed=${o === "list" && f} .collapseDirection=${this.collapseDirection ?? (v ? "down" : "up")} .collapsible=${o === "list" && c} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} .description=${this.hideFeatureMenuHeading ? void 0 : u(i.total ?? "", {
400
402
  total: w.length
@@ -404,7 +406,7 @@ class te extends z {
404
406
  }
405
407
  _renderFlowItem(e, t) {
406
408
  const { messages: s, hideCloseButton: i, hideSelectFeature: o, active: n, hideHeading: l } = this, c = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, f = c && !o, v = e.flowType === "feature-association", g = s.returnToInitialFeature ?? "", p = s?.selectFeature, w = this._getActionTitle(M), d = !this.hideActionBar && v && c;
407
- return a`<calcite-flow-item .closable=${!i} .closed=${!n} .description=${T(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${l ? void 0 : T(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(F) => {
409
+ return a`<calcite-flow-item .closable=${!i} .closed=${!n} .description=${k(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${l ? void 0 : k(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(F) => {
408
410
  F.preventDefault(), this._handleDrillInBackClick();
409
411
  }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${l ? null : a`<div slot=heading><div .innerHTML=${_.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${_.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${g ?? ""} title=${g ?? "" ?? h}></calcite-action>${f ? a`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? h}></calcite-action>` : null}${d ? a`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${M.disabled} .icon=${M.icon ?? void 0} .loading=${M.active} scale=s text-enabled .text=${w} title=${w ?? h} @click=${() => K(this.viewModel, M, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
410
412
  }
@@ -424,7 +426,7 @@ class te extends z {
424
426
  }
425
427
  _renderContent() {
426
428
  const { content: e, selectedFeatureViewModel: t } = this.viewModel;
427
- return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ? D(e, a`<div .innerHTML=${_.sanitize(e) ?? ""}></div>`) : e ?? null;
429
+ return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ? V(e, a`<div .innerHTML=${_.sanitize(e) ?? ""}></div>`) : e ?? null;
428
430
  }
429
431
  }
430
432
  O("arcgis-features", te);
@@ -600,13 +600,6 @@ export abstract class ArcgisFeaturesNext extends LitElement {
600
600
  * @since 5.1
601
601
  */
602
602
  setFocus(): Promise<void>;
603
- /**
604
- * Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#event-arcgisTriggerAction) event and executes the action
605
- * at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions) array.
606
- *
607
- * @param action
608
- */
609
- triggerAction(action: ActionButton | ActionToggle): Promise<void>;
610
603
  /** Emitted when the component's close button is clicked. */
611
604
  readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
612
605
  /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
@@ -98,10 +98,6 @@ class te extends P {
98
98
  async setFocus() {
99
99
  await this._focusTrapNode.value?.setFocus();
100
100
  }
101
- async triggerAction(e) {
102
- if (!e.disabled)
103
- return e?.type === "toggle" && (e.value = !e.value), await K(e, this.viewModel);
104
- }
105
101
  connectedCallback() {
106
102
  super.connectedCallback(), this._createSpinner();
107
103
  }
@@ -242,7 +238,7 @@ class te extends P {
242
238
  i || !a || e === t || e === -1 || (this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._removeFlowItems(), this._rootFlowItemNode.value?.scrollContentTo({ top: 0 }));
243
239
  }
244
240
  _triggerAction(e) {
245
- this.triggerAction(e), this.arcgisTriggerAction.emit({ action: e });
241
+ e.disabled || (e?.type === "toggle" && (e.value = !e.value), K(e, this.viewModel), this.arcgisTriggerAction.emit({ action: e }));
246
242
  }
247
243
  _viewScaleChange() {
248
244
  const { selectedFeature: e } = this;
@@ -1,6 +1,4 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type ActionButton from "@arcgis/core/support/actions/ActionButton.js";
3
- import type ActionToggle from "@arcgis/core/support/actions/ActionToggle.js";
4
2
  import type Graphic from "@arcgis/core/Graphic.js";
5
3
  import type Collection from "@arcgis/core/core/Collection.js";
6
4
  import type Point from "@arcgis/core/geometry/Point.js";
@@ -608,13 +606,6 @@ export abstract class ArcgisPopup extends LitElement {
608
606
  previous(): Promise<void>;
609
607
  /** Use this method to give focus to the component if the component is able to be focused. */
610
608
  setFocus(): Promise<void>;
611
- /**
612
- * Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#event-arcgisTriggerAction) event and executes the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#actions)
613
- * at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#actions) array.
614
- *
615
- * @param action
616
- */
617
- triggerAction(action: ActionButton | ActionToggle): Promise<void>;
618
609
  /** Emitted when the component's close button is clicked. */
619
610
  readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
620
611
  readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "active" | "collapsed" | "currentAlignment" | "dockEnabled" | "effectiveHeading" | "featureCount" | "featureMenuOpen" | "features" | "promises" | "selectedDrillInFeature" | "selectedFeature" | "selectedFeatureComponent" | "selectedFeatureIndex" | "state" | "open"; }>;
@@ -85,9 +85,6 @@ class j extends L {
85
85
  async setFocus() {
86
86
  this._featuresComponent.value?.setFocus();
87
87
  }
88
- async triggerAction(t) {
89
- await this._featuresComponent.value?.triggerAction(t);
90
- }
91
88
  connectedCallback() {
92
89
  super.connectedCallback(), this._syncPopupResizeObserver();
93
90
  }
@@ -39,9 +39,12 @@ export default class PresentationViewModel extends Accessor {
39
39
  captureArrowKeysForNavigation(event: KeyboardEvent, direction: "ltr" | "rtl"): void;
40
40
  destroy(): void;
41
41
  /** @param slideId */
42
+ getSlideBySlideId(slideId: string): Slide | undefined;
43
+ /** @param slideId */
42
44
  getSlideIndexBySlideId(slideId: string | undefined): number;
43
45
  initialize(): void;
44
46
  /** @param stepSize */
45
47
  navigateInPresentation(stepSize: number): void;
46
- setSliceAnalysisInteractive(): Promise<void>;
48
+ /** @param interactive */
49
+ setSliceAnalysisInteractive(interactive: boolean): Promise<void>;
47
50
  }
@@ -49,6 +49,13 @@ export abstract class ArcgisPresentation extends LitElement {
49
49
  * @default false
50
50
  */
51
51
  accessor keyboardNavigationEnabled: boolean;
52
+ /**
53
+ * Hide the presentation navigation in the UI.
54
+ * Slide elements will still be shown when a slide is applied to the view.
55
+ *
56
+ * @default false
57
+ */
58
+ accessor navigationHidden: boolean;
52
59
  /**
53
60
  * specifies the size of the component
54
61
  *