@arcgis/map-components 6.0.0-next.36 → 6.0.0-next.38

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 (35) hide show
  1. package/dist/cdn/{7OLHJCFT.js → 3B3VDGRJ.js} +1 -1
  2. package/dist/cdn/{VTYQHAZN.js → 46IHEFRQ.js} +1 -1
  3. package/dist/cdn/GL66LRQX.js +2 -0
  4. package/dist/cdn/HLZ5J5MD.js +2 -0
  5. package/dist/cdn/{LZN3NDWX.js → NY5NK2MP.js} +1 -1
  6. package/dist/cdn/{4UCQJWD2.js → QSG4POLY.js} +1 -1
  7. package/dist/cdn/{JKE3FA4Q.js → T25QR447.js} +1 -1
  8. package/dist/cdn/{NZK2LVFA.js → TIAFGALC.js} +1 -1
  9. package/dist/cdn/U6FSG7JR.js +2 -0
  10. package/dist/cdn/{6UMEQS35.js → XHCML3ZO.js} +1 -1
  11. package/dist/cdn/index.js +1 -1
  12. package/dist/components/arcgis-expand/customElement.d.ts +2 -2
  13. package/dist/components/arcgis-expand/customElement.js +2 -2
  14. package/dist/components/arcgis-feature-next/customElement.js +1 -1
  15. package/dist/components/arcgis-feature-relationship/customElement.js +97 -98
  16. package/dist/components/arcgis-features-next/customElement.js +9 -6
  17. package/dist/components/arcgis-layer-list-next/customElement.js +105 -97
  18. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +62 -62
  19. package/dist/components/arcgis-selection-list/customElement.d.ts +12 -0
  20. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +10 -0
  21. package/dist/components/arcgis-sketch/customElement.d.ts +18 -0
  22. package/dist/components/arcgis-sketch/customElement.js +1 -1
  23. package/dist/docs/api.json +1 -1
  24. package/dist/docs/docs.json +1 -1
  25. package/dist/docs/vscode.html-custom-data.json +1 -1
  26. package/dist/docs/web-types.json +1 -1
  27. package/dist/loader.js +1 -1
  28. package/dist/types/lumina.d.ts +1 -1
  29. package/dist/types/preact.d.ts +1 -1
  30. package/dist/types/react.d.ts +1 -1
  31. package/dist/types/stencil.d.ts +1 -1
  32. package/package.json +6 -6
  33. package/dist/cdn/6TXZMHLZ.js +0 -2
  34. package/dist/cdn/NEPTDMLE.js +0 -2
  35. package/dist/cdn/PTHNXKEA.js +0 -2
@@ -1,29 +1,28 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as H } from "../../chunks/runtime.js";
3
- import { css as k, html as o } from "lit";
2
+ import { c as B } from "../../chunks/runtime.js";
3
+ import { css as k, html as l } from "lit";
4
4
  import { debounce as A } from "@arcgis/toolkit/function";
5
- import { LitElement as K, renderElement as q, safeClassMap as E } from "@arcgis/lumina";
5
+ import { LitElement as H, renderElement as q, safeClassMap as E } from "@arcgis/lumina";
6
6
  import { templateHasKey as x, stripHTML as N } from "@arcgis/core/applications/Components/stringUtils.js";
7
- import { renderingSanitizer as O } from "@arcgis/core/applications/Components/sanitizerUtils.js";
8
- import { isRelatableFeatureSupportedLayer as W, findRelatedLayer as Z } from "@arcgis/core/applications/Components/featureUtils.js";
9
- import { substitute as z, formatNumber as M } from "@arcgis/core/intl.js";
10
- import { watch as g, on as G } from "@arcgis/core/core/reactiveUtils.js";
11
- import { p as J } from "../../chunks/feature-utils.js";
7
+ import { isRelatableFeatureSupportedLayer as K, findRelatedLayer as W } from "@arcgis/core/applications/Components/featureUtils.js";
8
+ import { substitute as Z, formatNumber as O } from "@arcgis/core/intl.js";
9
+ import { watch as g, on as z } from "@arcgis/core/core/reactiveUtils.js";
10
+ import { p as G } from "../../chunks/feature-utils.js";
12
11
  import V from "@arcgis/core/core/Collection.js";
13
- import S from "@arcgis/core/rest/support/RelationshipQuery.js";
12
+ import M from "@arcgis/core/rest/support/RelationshipQuery.js";
14
13
  import { ignoreAbortErrors as R } from "@arcgis/core/core/promiseUtils.js";
15
- import { classes as Q } from "@arcgis/toolkit/dom";
16
- import { createRef as U, ref as X } from "lit/directives/ref.js";
17
- import Y from "@arcgis/core/popup/FeatureModel.js";
14
+ import { classes as S } from "@arcgis/toolkit/dom";
15
+ import { createRef as J, ref as U } from "lit/directives/ref.js";
16
+ import X from "@arcgis/core/popup/FeatureModel.js";
18
17
  import { g as L } from "../../chunks/async-utils.js";
19
- import { bypassReadOnly as ee } from "@arcgis/lumina/controllers";
20
- const te = k`:host{position:relative;flex:1 1 auto}:host([empty]){display:none}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-space-2xl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-space-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`, ie = (h) => {
18
+ import { bypassReadOnly as Y } from "@arcgis/lumina/controllers";
19
+ const ee = k`:host{position:relative;flex:1 1 auto}:host([empty]){display:none}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-space-2xl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-space-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`, te = (h) => {
21
20
  const e = [];
22
21
  if (h.formTemplate) {
23
- const { description: t, title: i } = h.formTemplate;
24
- h.fields?.forEach((r) => {
25
- const s = i && x(i, r.name), a = t && x(t, r.name);
26
- (s || a) && e.push(r.name);
22
+ const { description: t, title: r } = h.formTemplate;
23
+ h.fields?.forEach((s) => {
24
+ const i = r && x(r, s.name), a = t && x(t, s.name);
25
+ (i || a) && e.push(s.name);
27
26
  });
28
27
  }
29
28
  return e;
@@ -31,11 +30,11 @@ const te = k`:host{position:relative;flex:1 1 auto}:host([empty]){display:none}.
31
30
  function re(h) {
32
31
  return typeof h == "string" && h.trim().length > 0;
33
32
  }
34
- class se extends K {
33
+ class se extends H {
35
34
  constructor() {
36
35
  super(...arguments), this._increaseFeaturePage = () => {
37
- const { state: e, showAllEnabled: t, relatedFeatures: i, featuresPerPage: r, featurePage: s } = this;
38
- e === "ready" && t && i.length >= r * s && this.featurePage++;
36
+ const { state: e, showAllEnabled: t, relatedFeatures: r, featuresPerPage: s, featurePage: i } = this;
37
+ e === "ready" && t && r.length >= s * i && this.featurePage++;
39
38
  }, this._relatedFeatureIntersectionObserver = new IntersectionObserver(([e]) => {
40
39
  e?.isIntersecting && this._increaseFeaturePage();
41
40
  }, {
@@ -65,19 +64,19 @@ class se extends K {
65
64
  !this.featureCount || this.relatedLayer?.type === "subtype-group" && !this.activeCategory || (this.relatedFeatureViewModels.destroyAll(), this.featurePage = 1, t.destroyAll(), t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({ signal: e?.signal }))));
66
65
  }, this._addFlowItem = (e) => {
67
66
  e && this.flowItems?.push(e);
68
- }, this._relatedFeatureIntersectionObserverNode = U(), this.relatedFeatures = new V(), this._queryAbortController = null, this._queryPageAbortController = null, this._queryFeatureCountAbortController = null, this.featureCount = 0, this._loaded = !1, this.relatedFeatureViewModels = new V(), this.autoDestroyDisabled = !1, this.featuresPerPage = 10, this.useFeatureNextFlowItem = !1, this.includeDefaultActions = !1, this.flowType = "feature-relationship", this.headingLevel = 2, this.hideHeading = !1, this.hideDescription = !1, this.hideEmptyRelationshipContent = !1, this.empty = !1, this.showAllEnabled = !1;
67
+ }, this._relatedFeatureIntersectionObserverNode = J(), this.relatedFeatures = new V(), this._queryAbortController = null, this._queryPageAbortController = null, this._queryFeatureCountAbortController = null, this.featureCount = 0, this._loaded = !1, this.relatedFeatureViewModels = new V(), this.autoDestroyDisabled = !1, this.featuresPerPage = 10, this.useFeatureNextFlowItem = !1, this.includeDefaultActions = !1, this.flowType = "feature-relationship", this.headingLevel = 2, this.hideHeading = !1, this.hideDescription = !1, this.hideEmptyRelationshipContent = !1, this.empty = !1, this.showAllEnabled = !1;
69
68
  }
70
69
  static {
71
70
  this.properties = { allCategories: 16, _queryAbortController: 16, _queryPageAbortController: 16, _queryFeatureCountAbortController: 16, featureCount: 16, _loaded: 16, canLoad: 16, canQuery: 16, displayShowAllButton: 16, displayListItems: 16, categories: 16, itemDescriptionFieldName: 16, relatedFeatureViewModels: 16, state: 16, autoDestroyDisabled: 5, allItemsDescription: 32, featurePage: 9, featuresPerPage: 9, flowItems: 0, useFeatureNextFlowItem: 5, actions: 0, includeDefaultActions: 5, flowType: 1, headingLevel: 9, messages: 0, heading: 1, description: 1, values: 0, activeCategory: 0, hideHeading: 5, hideDescription: 5, hideEmptyRelationshipContent: 5, empty: 39, displayCount: 9, graphic: 0, layer: 0, map: 0, view: 0, spatialReference: 0, timeZone: 1, orderByFields: 0, relationshipId: 9, showAllEnabled: 5, label: 3 };
72
71
  }
73
72
  static {
74
- this.styles = te;
73
+ this.styles = ee;
75
74
  }
76
75
  get orderByFieldsFixedCasing() {
77
76
  const { orderByFields: e, relatedLayer: t } = this;
78
- return e && t?.loaded ? e.map((i) => {
79
- const r = i.clone();
80
- return r.field = J(i.field, t), r;
77
+ return e && t?.loaded ? e.map((r) => {
78
+ const s = r.clone();
79
+ return s.field = G(r.field, t), s;
81
80
  }) : e ?? [];
82
81
  }
83
82
  get supportsCacheHint() {
@@ -93,15 +92,15 @@ class se extends K {
93
92
  return this.layer?.objectIdField || null;
94
93
  }
95
94
  get relatedLayer() {
96
- const { layer: e, map: t, relationship: i } = this;
97
- if (!e?.loaded || !t || !i)
95
+ const { layer: e, map: t, relationship: r } = this;
96
+ if (!e?.loaded || !t || !r)
98
97
  return null;
99
- const r = e.type === "subtype-sublayer" && e.parent && W(e.parent) ? e.parent : e;
100
- return Z(t, r, i) ?? null;
98
+ const s = e.type === "subtype-sublayer" && e.parent && K(e.parent) ? e.parent : e;
99
+ return W(t, s, r) ?? null;
101
100
  }
102
101
  get relatedLayerKeyField() {
103
102
  const { relatedLayer: e, relationshipId: t } = this;
104
- return e?.loaded && t != null ? e.relationships?.find((i) => i.id === t)?.keyField : null;
103
+ return e?.loaded && t != null ? e.relationships?.find((r) => r.id === t)?.keyField : null;
105
104
  }
106
105
  get relatedLayerKeyFields() {
107
106
  const { relatedLayer: e } = this;
@@ -109,7 +108,7 @@ class se extends K {
109
108
  }
110
109
  get relationship() {
111
110
  const { relationshipId: e, layer: t } = this;
112
- return e != null && t?.loaded ? t.relationships?.find(({ id: i }) => i === e) ?? null : null;
111
+ return e != null && t?.loaded ? t.relationships?.find(({ id: r }) => r === e) ?? null : null;
113
112
  }
114
113
  get relationshipKey() {
115
114
  const { relationshipKeyField: e } = this;
@@ -126,8 +125,8 @@ class se extends K {
126
125
  return !!this.relatedLayer && !!this.relationship && this.relationshipId != null && this.objectId != null && !!e?.supportsCount && e?.supportsPagination;
127
126
  }
128
127
  get displayShowAllButton() {
129
- const { showAllEnabled: e, featureCount: t, displayCount: i, state: r, allCategoriesCount: s } = this, a = !!s && (s > i || i === 0), n = !!t && (t > i || i === 0);
130
- return !e && r === "ready" && (a || n);
128
+ const { showAllEnabled: e, featureCount: t, displayCount: r, state: s, allCategoriesCount: i } = this, a = !!i && (i > r || r === 0), n = !!t && (t > r || r === 0);
129
+ return !e && s === "ready" && (a || n);
131
130
  }
132
131
  get displayListItems() {
133
132
  const { relatedFeatures: e, allCategoriesCount: t } = this;
@@ -141,21 +140,21 @@ class se extends K {
141
140
  return this.orderByFieldsFixedCasing[0]?.field || null;
142
141
  }
143
142
  get state() {
144
- const { _queryAbortController: e, _queryFeatureCountAbortController: t, _queryPageAbortController: i, canQuery: r, _loaded: s, canLoad: a } = this;
145
- return t || a && !s ? "loading" : e || i ? "querying" : r ? "ready" : "disabled";
143
+ const { _queryAbortController: e, _queryFeatureCountAbortController: t, _queryPageAbortController: r, canQuery: s, _loaded: i, canLoad: a } = this;
144
+ return t || a && !i ? "loading" : e || r ? "querying" : s ? "ready" : "disabled";
146
145
  }
147
146
  get allItemsDescription() {
148
- const { messages: e, featureCount: t, allCategories: i, allCategoriesCount: r } = this;
149
- return z(e?.numberRecords ?? "", {
150
- number: M(i ? r : t)
147
+ const { messages: e, featureCount: t, allCategories: r, allCategoriesCount: s } = this;
148
+ return Z(e?.numberRecords ?? "", {
149
+ number: O(r ? s : t)
151
150
  });
152
151
  }
153
152
  get featurePage() {
154
153
  return this._featurePage;
155
154
  }
156
155
  set featurePage(e) {
157
- const { featuresPerPage: t, featureCount: i } = this, r = 1, s = Math.ceil(i / t) || 1;
158
- this._featurePage = Math.min(Math.max(e, r), s);
156
+ const { featuresPerPage: t, featureCount: r } = this, s = 1, i = Math.ceil(r / t) || 1;
157
+ this._featurePage = Math.min(Math.max(e, s), i);
159
158
  }
160
159
  get heading() {
161
160
  const { activeCategory: e } = this;
@@ -165,8 +164,8 @@ class se extends K {
165
164
  this._heading = e;
166
165
  }
167
166
  get _empty() {
168
- const { displayListItems: e, hideEmptyRelationshipContent: t, state: i } = this;
169
- return t && i === "ready" && !e;
167
+ const { displayListItems: e, hideEmptyRelationshipContent: t, state: r } = this;
168
+ return t && r === "ready" && !e;
170
169
  }
171
170
  get displayCount() {
172
171
  return this._displayCount ?? 3;
@@ -197,29 +196,29 @@ class se extends K {
197
196
  g(() => [this.layer, this.relationshipId, this.objectId, this.canQuery, this.activeCategory], () => this._queryFeatureCountDebounced(), { initial: !0 }),
198
197
  g(() => [this.state, this.showAllEnabled, this._relatedFeatureIntersectionObserverNode], () => this._handleRelatedFeatureObserverChange()),
199
198
  g(() => [this.displayListItems, this.hideEmptyRelationshipContent, this.state], () => this._setEmpty(this._empty), { initial: !0 }),
200
- G(() => this.relatedFeatures, "change", () => this._setRelatedFeaturesViewModels())
199
+ z(() => this.relatedFeatures, "change", () => this._setRelatedFeaturesViewModels())
201
200
  ]), this.manager.onDestroy(() => {
202
201
  this.relatedFeatureViewModels.destroyAll(), this.relatedFeatures.destroyAll(), this._cancelQuery(), this._cancelQueryFeatureCount(), this._cancelQueryPage(), this._unobserveRelatedFeatureObserver();
203
202
  });
204
203
  }
205
204
  _setEmpty(e) {
206
- ee(() => this.empty = e);
205
+ Y(() => this.empty = e);
207
206
  }
208
207
  async _queryFeatureCount() {
209
208
  const { layer: e, relatedLayer: t } = this;
210
209
  await e?.load(), await t?.load();
211
- const { _queryFeatureCountAbortController: i, activeCategory: r, canQuery: s, objectId: a, relatedLayerKeyField: n, relationshipId: l, relationshipKey: d, supportsCacheHint: b } = this;
212
- if (!s || !e || !t || a == null) {
210
+ const { _queryFeatureCountAbortController: r, activeCategory: s, canQuery: i, objectId: a, relatedLayerKeyField: n, relationshipId: o, relationshipKey: d, supportsCacheHint: b } = this;
211
+ if (!i || !e || !t || a == null) {
213
212
  this.featureCount = 0, this.allCategories = void 0;
214
213
  return;
215
214
  }
216
- if (t?.type === "subtype-group" && !r) {
215
+ if (t?.type === "subtype-group" && !s) {
217
216
  if (this.featureCount = 0, this.relatedFeatureViewModels.destroyAll(), this.featurePage = 1, this.relatedFeatures.destroyAll(), n && d != null) {
218
217
  const { default: F } = await import("@arcgis/core/smartMapping/statistics/uniqueValues.js"), { uniqueValueInfos: w } = await F({
219
218
  layer: t,
220
219
  sqlWhere: `${n} = '${d}'`,
221
220
  field: t.subtypeField ?? void 0,
222
- signal: i?.signal
221
+ signal: r?.signal
223
222
  }), v = w.map(({ count: c, value: p }) => {
224
223
  const f = t.subtypes?.find((I) => I.code === p)?.name;
225
224
  return p != null && f ? {
@@ -232,61 +231,61 @@ class se extends K {
232
231
  }
233
232
  return;
234
233
  }
235
- const { historicMoment: m, gdbVersion: _ } = e, C = new S({
234
+ const { historicMoment: m, gdbVersion: _ } = e, C = new M({
236
235
  cacheHint: b,
237
236
  gdbVersion: _,
238
237
  historicMoment: m,
239
- relationshipId: l,
238
+ relationshipId: o,
240
239
  returnGeometry: !1,
241
240
  objectIds: [a],
242
241
  where: this._getRelationshipWhereClause(t)
243
242
  }), y = await e.queryRelatedFeaturesCount(C, {
244
- signal: i?.signal
243
+ signal: r?.signal
245
244
  });
246
245
  this.allCategories = void 0, this.featureCount = y[a] || 0;
247
246
  }
248
247
  _getRelationshipWhereClause(e) {
249
- const { activeCategory: t } = this, i = e.createQuery(), r = "subtypeField" in e ? e.subtypeField : void 0, s = t && r ? `${r} = ${t.value}` : void 0, a = i.where;
250
- return a && s ? `(${a}) AND (${s})` : a ?? s;
248
+ const { activeCategory: t } = this, r = e.createQuery(), s = "subtypeField" in e ? e.subtypeField : void 0, i = t && s ? `${s} = ${t.value}` : void 0, a = r.where;
249
+ return a && i ? `(${a}) AND (${i})` : a ?? i;
251
250
  }
252
251
  _sliceFeatures(e) {
253
- const { showAllEnabled: t, displayCount: i } = this;
254
- return t ? e : i ? e.slice(0, i) : [];
252
+ const { showAllEnabled: t, displayCount: r } = this;
253
+ return t ? e : r ? e.slice(0, r) : [];
255
254
  }
256
255
  async _queryPage() {
257
- const { relatedFeatures: e, featurePage: t, showAllEnabled: i, _queryPageAbortController: r, featureCount: s } = this;
258
- !i || t < 2 || !s || this.relatedLayer?.type === "subtype-group" && !this.activeCategory || e.addMany(await this._queryRelatedFeatures({ signal: r?.signal }));
256
+ const { relatedFeatures: e, featurePage: t, showAllEnabled: r, _queryPageAbortController: s, featureCount: i } = this;
257
+ !r || t < 2 || !i || this.relatedLayer?.type === "subtype-group" && !this.activeCategory || e.addMany(await this._queryRelatedFeatures({ signal: s?.signal }));
259
258
  }
260
259
  async _queryRelatedFeatures(e) {
261
- const { displayCount: t, featureCount: i, featurePage: r, featuresPerPage: s, layer: a, orderByFieldsFixedCasing: n, relatedLayer: l, relatedLayerKeyFields: d, relationshipId: b, showAllEnabled: m, supportsCacheHint: _ } = this, { canQuery: C, objectId: y } = this;
262
- if (!C || !a || !l || y == null)
260
+ const { displayCount: t, featureCount: r, featurePage: s, featuresPerPage: i, layer: a, orderByFieldsFixedCasing: n, relatedLayer: o, relatedLayerKeyFields: d, relationshipId: b, showAllEnabled: m, supportsCacheHint: _ } = this, { canQuery: C, objectId: y } = this;
261
+ if (!C || !a || !o || y == null)
263
262
  return [];
264
- const F = m ? ((r - 1) * s + i) % i : 0, w = m ? s : t, v = l.objectIdField, c = "subtypeField" in l ? l.subtypeField : void 0, p = [
263
+ const F = m ? ((s - 1) * i + r) % r : 0, w = m ? i : t, v = o.objectIdField, c = "subtypeField" in o ? o.subtypeField : void 0, p = [
265
264
  ...n.map((u) => u.field),
266
- ...ie(l),
265
+ ...te(o),
267
266
  ...d,
268
267
  v,
269
268
  c
270
- ].filter(re), f = n.map((u) => `${u.field} ${u.order}`), { historicMoment: I, gdbVersion: T } = a, j = new S({
269
+ ].filter(re), f = n.map((u) => `${u.field} ${u.order}`), { historicMoment: I, gdbVersion: Q } = a, j = new M({
271
270
  orderByFields: f,
272
271
  start: F,
273
272
  num: w,
274
273
  outFields: p,
275
274
  cacheHint: _,
276
275
  historicMoment: I,
277
- gdbVersion: T,
276
+ gdbVersion: Q,
278
277
  relationshipId: b,
279
278
  returnGeometry: !1,
280
279
  objectIds: [y],
281
- where: this._getRelationshipWhereClause(l)
280
+ where: this._getRelationshipWhereClause(o)
282
281
  }), $ = (await a.queryRelatedFeatures(j, {
283
282
  signal: e?.signal
284
283
  }))[y]?.features || [];
285
- return l.type === "subtype-group" && c ? $.forEach((u) => {
286
- const B = u.attributes[c], D = l.findSublayerForSubtypeCode?.(B);
284
+ return o.type === "subtype-group" && c ? $.forEach((u) => {
285
+ const T = u.attributes[c], D = o.findSublayerForSubtypeCode?.(T);
287
286
  u.sourceLayer = D, u.layer = D;
288
287
  }) : $.forEach((u) => {
289
- u.sourceLayer = l, u.layer = l;
288
+ u.sourceLayer = o, u.layer = o;
290
289
  }), $;
291
290
  }
292
291
  _selectCategory(e) {
@@ -297,11 +296,11 @@ class se extends K {
297
296
  const { flowItems: t } = this;
298
297
  if (!t)
299
298
  return;
300
- const i = this.useFeatureNextFlowItem ? q(o`<arcgis-feature-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .includeDefaultActions=${this.includeDefaultActions} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`) : q(o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`);
301
- this._addFlowItem(i);
299
+ const r = this.useFeatureNextFlowItem ? q(l`<arcgis-feature-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .includeDefaultActions=${this.includeDefaultActions} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`) : q(l`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`);
300
+ this._addFlowItem(r);
302
301
  }
303
302
  _addRelationshipFlowItem({ showAllEnabled: e = !1, activeCategory: t }) {
304
- this._addFlowItem(q(o`<arcgis-feature-relationship .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} .includeDefaultActions=${this.includeDefaultActions} hide-description .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`));
303
+ this._addFlowItem(q(l`<arcgis-feature-relationship .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} .includeDefaultActions=${this.includeDefaultActions} hide-description .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`));
305
304
  }
306
305
  _showAllRecords() {
307
306
  const { flowItems: e } = this;
@@ -316,17 +315,17 @@ class se extends K {
316
315
  this._relatedFeatureIntersectionObserverNode.value && this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value);
317
316
  }
318
317
  _matchesFeature(e, t) {
319
- const i = e?.graphic?.getObjectId(), r = t?.getObjectId();
320
- return i != null && r != null && i === r;
318
+ const r = e?.graphic?.getObjectId(), s = t?.getObjectId();
319
+ return r != null && s != null && r === s;
321
320
  }
322
321
  _setRelatedFeaturesViewModels() {
323
- const { relatedFeatures: e, relatedFeatureViewModels: t, map: i, view: r, spatialReference: s, timeZone: a } = this;
322
+ const { relatedFeatures: e, relatedFeatureViewModels: t, map: r, view: s, spatialReference: i, timeZone: a } = this;
324
323
  e?.filter(Boolean).forEach((n) => {
325
- t.some((d) => this._matchesFeature(d, n)) || t.add(new Y({
324
+ t.some((d) => this._matchesFeature(d, n)) || t.add(new X({
326
325
  abilities: { relationshipContent: !1 },
327
- map: i,
328
- view: r,
329
- spatialReference: s,
326
+ map: r,
327
+ view: s,
328
+ spatialReference: i,
330
329
  timeZone: a,
331
330
  graphic: n
332
331
  }));
@@ -336,58 +335,58 @@ class se extends K {
336
335
  }
337
336
  render() {
338
337
  const { state: e } = this;
339
- return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e === "loading" ? this._renderLoading() : e === "disabled" ? this._renderRelationshipNotFound() : this._renderRelatedFeatures()}</div>`;
338
+ return l`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e === "loading" ? this._renderLoading() : e === "disabled" ? this._renderRelationshipNotFound() : this._renderRelatedFeatures()}</div>`;
340
339
  }
341
340
  _renderStickyLoading() {
342
- return this.state === "querying" ? o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>` : null;
341
+ return this.state === "querying" ? l`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>` : null;
343
342
  }
344
343
  _renderLoadingIcon() {
345
- return o`<calcite-loader inline label></calcite-loader>`;
344
+ return l`<calcite-loader inline label></calcite-loader>`;
346
345
  }
347
346
  _renderLoading() {
348
- return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`;
347
+ return l`<div class="loading-container">${this._renderLoadingIcon()}</div>`;
349
348
  }
350
349
  _renderShowAllIconNode() {
351
- return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`;
350
+ return l`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`;
352
351
  }
353
352
  _renderChevronIconNode() {
354
- return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`;
353
+ return l`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`;
355
354
  }
356
355
  _renderCategory(e) {
357
- const { count: t, name: i } = e, r = M(t);
358
- return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${i} @calciteListItemSelect=${() => this._selectCategory(e)}><calcite-chip .label=${r} scale=s slot=content-end>${r}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`;
356
+ const { count: t, name: r } = e, s = O(t);
357
+ return l`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${() => this._selectCategory(e)}><calcite-chip .label=${s} scale=s slot=content-end>${s}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`;
359
358
  }
360
359
  _renderRelatedFeature(e) {
361
- const { itemDescriptionFieldName: t, values: i } = this, { formattedAttributes: r, state: s, heading: a } = e, n = {
362
- ...i,
363
- ...r?.global
364
- }, l = (t && n?.[t]) ?? "";
365
- return o`<calcite-list-item class=${E(Q("list-item", { "list-item-hidden": s === "loading" }))} .description=${N(l.toString())} .label=${N(a)} @calciteListItemSelect=${() => this._selectRecord(e)}><div slot=heading><div .innerHTML=${O.sanitize(a ?? "") ?? ""}></div></div><div slot=description><div .innerHTML=${O.sanitize(l ?? "") ?? ""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`;
360
+ const { itemDescriptionFieldName: t, values: r } = this, { formattedAttributes: s, state: i, heading: a } = e, n = {
361
+ ...r,
362
+ ...s?.global
363
+ }, o = (t && n?.[t]) ?? "";
364
+ return l`<calcite-list-item class=${E(S("list-item", { "list-item-hidden": i === "loading" }))} .description=${N(o.toString())} .label=${N(a)} @calciteListItemSelect=${() => this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`;
366
365
  }
367
366
  _renderShowAllListItem() {
368
- return this.displayShowAllButton ? o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${() => this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>` : null;
367
+ return this.displayShowAllButton ? l`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${() => this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>` : null;
369
368
  }
370
369
  _renderNoRelatedFeaturesMessage() {
371
- return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`;
370
+ return l`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`;
372
371
  }
373
372
  _renderFeatureObserver() {
374
- return o`<div class="feature-observer" ${X(this._relatedFeatureIntersectionObserverNode)}></div>`;
373
+ return l`<div class="feature-observer" ${U(this._relatedFeatureIntersectionObserverNode)}></div>`;
375
374
  }
376
375
  _renderList() {
377
376
  const { relatedFeatureViewModels: e, categories: t } = this;
378
- return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList ?? ""}>${t?.map((i) => this._renderCategory(i)) ?? e.toArray().map((i) => this._renderRelatedFeature(i))}${this._renderShowAllListItem()}</calcite-list>`;
377
+ return l`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList ?? ""}>${t?.map((r) => this._renderCategory(r)) ?? e.toArray().map((r) => this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`;
379
378
  }
380
379
  _renderRelatedFeatures() {
381
380
  const { displayListItems: e } = this, { state: t } = this;
382
- return o`<div class=${E(Q("list", {
381
+ return l`<div class=${E(S("list", {
383
382
  "list-querying": t === "querying"
384
383
  }))}>${e ? this._renderList() : t === "ready" ? this._renderNoRelatedFeaturesMessage() : null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`;
385
384
  }
386
385
  _renderRelationshipNotFound() {
387
- return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`;
386
+ return l`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`;
388
387
  }
389
388
  }
390
- H("arcgis-feature-relationship", se);
389
+ B("arcgis-feature-relationship", se);
391
390
  export {
392
391
  se as ArcgisFeatureRelationship
393
392
  };
@@ -44,10 +44,10 @@ class oe extends V {
44
44
  root: window.document
45
45
  }), this._featureMenuIntersectionObserverNode = null, this._setFocusAnimationFrameId = null, this._setFocusAnimationFrameResolve = null, this._rootFlowItemNode = _(), this._featureMenuViewportNode = _(), this._actionBarMenuNode = _(), this._flowContainerNode = _(), this._aggregatedFeaturesComponent = _(), this.messages = W(), this._selectedFeatureComponent = _(), this._actionFlowItems = /* @__PURE__ */ new WeakSet(), this._direction = U(), this._cancelOpenRelatedFeature = () => {
46
46
  this._openRelatedFeatureAbortController = S(this._openRelatedFeatureAbortController);
47
- }, this._spinnerVisible = !1, this._openRelatedFeatureAbortController = null, this.flowItems = new T(), this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._hasActionsStartSlotContent = !1, this._hasActionsEndSlotContent = !1, this._selectedFeatureLoading = !1, this._lastSettledHeading = "", this.viewModel = ae(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.focusTrapEnabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.diagnostics = this.viewModel.diagnostics, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureItemAbilities = this.viewModel.featureItemAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new T(), this.heading = this.viewModel.heading, 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.chartAnimationDisabled = this.viewModel.featureItemAbilities?.chartAnimation, this.hideAttachmentsContent = this.viewModel.featureItemAbilities?.attachmentsContent, this.hideEmptyRelationshipContent = !1, this.hideCustomContent = this.viewModel.featureItemAbilities?.customContent, this.hideExpressionContent = !1, this.hideFieldsContent = this.viewModel.featureItemAbilities?.fieldsContent, this.hideMediaContent = this.viewModel.featureItemAbilities?.mediaContent, this.hideRelationshipContent = this.viewModel.featureItemAbilities?.relationshipContent, this.hideTextContent = this.viewModel.featureItemAbilities?.textContent, this.hideUtilityNetworkContent = this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent, 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.open, 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.arcgisClose = y(), this.arcgisPropertyChange = q()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = y(), this.arcgisTriggerAction = y();
47
+ }, this._spinnerVisible = !1, this._destroying = !1, this._openRelatedFeatureAbortController = null, this.flowItems = new T(), this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._hasActionsStartSlotContent = !1, this._hasActionsEndSlotContent = !1, this._selectedFeatureLoading = !1, this._lastSettledHeading = "", this.viewModel = ae(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.focusTrapEnabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.diagnostics = this.viewModel.diagnostics, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureItemAbilities = this.viewModel.featureItemAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new T(), this.heading = this.viewModel.heading, 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.chartAnimationDisabled = this.viewModel.featureItemAbilities?.chartAnimation, this.hideAttachmentsContent = this.viewModel.featureItemAbilities?.attachmentsContent, this.hideEmptyRelationshipContent = !1, this.hideCustomContent = this.viewModel.featureItemAbilities?.customContent, this.hideExpressionContent = !1, this.hideFieldsContent = this.viewModel.featureItemAbilities?.fieldsContent, this.hideMediaContent = this.viewModel.featureItemAbilities?.mediaContent, this.hideRelationshipContent = this.viewModel.featureItemAbilities?.relationshipContent, this.hideTextContent = this.viewModel.featureItemAbilities?.textContent, this.hideUtilityNetworkContent = this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent, 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.open, 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.arcgisClose = y(), this.arcgisPropertyChange = q()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = y(), this.arcgisTriggerAction = y();
48
48
  }
49
49
  static {
50
- this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _aggregatedFeatureCount: 16, _selectedAggregatedFeatureIndex: 16, _aggregatedFeaturesLoading: 16, _hasActionsStartSlotContent: 16, _hasActionsEndSlotContent: 16, _selectedFeatureLoading: 16, _lastSettledHeading: 16, _selectedFeatureViewModel: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _selectedFeatureHeading: 16, _headingLabel: 16, _backLabel: 16, _selectedFeatureContent: 16, _selectedFeaturePending: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, focusTrapEnabled: 5, collapseDirection: 1, collapsed: 5, content: 1, diagnostics: 0, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureItemAbilities: 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, hideEmptyRelationshipContent: 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, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
50
+ this.properties = { _destroying: 16, _openRelatedFeatureAbortController: 16, flowItems: 16, _aggregatedFeatureCount: 16, _selectedAggregatedFeatureIndex: 16, _aggregatedFeaturesLoading: 16, _hasActionsStartSlotContent: 16, _hasActionsEndSlotContent: 16, _selectedFeatureLoading: 16, _lastSettledHeading: 16, _selectedFeatureViewModel: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _selectedFeatureHeading: 16, _headingLabel: 16, _backLabel: 16, _selectedFeatureContent: 16, _selectedFeaturePending: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, focusTrapEnabled: 5, collapseDirection: 1, collapsed: 5, content: 1, diagnostics: 0, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureItemAbilities: 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, hideEmptyRelationshipContent: 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, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
51
51
  }
52
52
  static {
53
53
  this.styles = te;
@@ -98,8 +98,8 @@ class oe extends V {
98
98
  close() {
99
99
  this.open = !1;
100
100
  }
101
- async destroy() {
102
- await this.manager.destroy(), this._removeSpinner(this.referenceElement), this._cancelOpenRelatedFeature(), this._cancelSetFocusAnimationFrame(), this._removeFlowItems(), this._unobserveFeatureMenuObserver(), this._cancelFetchingFeatures(), this._featureMenuIntersectionObserver?.disconnect();
101
+ destroy() {
102
+ return this._destroyPromise ??= this._destroy();
103
103
  }
104
104
  async fetchFeatures(e, t) {
105
105
  this._cancelFetchingFeatures();
@@ -195,6 +195,9 @@ class oe extends V {
195
195
  disconnectedCallback() {
196
196
  super.disconnectedCallback(), this._selectedFeatureLoading = !1, this._spinnerVisible = !1, this._cancelSetFocusAnimationFrame(), this._removeSpinner(this.referenceElement);
197
197
  }
198
+ async _destroy() {
199
+ this._destroying = !0, this._removeSpinner(this.referenceElement), this._cancelOpenRelatedFeature(), this._cancelSetFocusAnimationFrame(), this._removeFlowItems(), this._unobserveFeatureMenuObserver(), this._cancelFetchingFeatures(), this._featureMenuIntersectionObserver?.disconnect(), this.hasUpdated && await this.updateComplete, await this.manager.destroy();
200
+ }
198
201
  _loadMoreFeatures() {
199
202
  const { viewModel: e } = this, { featurePage: t, featuresPerPage: i, features: s } = e;
200
203
  e.open && (this.initialDisplayMode === "list" || this.featureMenuOpen) && t != null && t * i < s.length && (e.featurePage = t + 1);
@@ -391,7 +394,7 @@ class oe extends V {
391
394
  return (t?.allActions ?? i?.allActions ?? (!e && this.viewModel.includeDefaultActions ? this.viewModel.defaultActions.concat(this.viewModel.actions) : this.viewModel.actions)).toArray().filter((r) => !(e && r.id === "browse-aggregated-features") && !(s && !this.location && r.id === this._zoomToFeature.id));
392
395
  }
393
396
  render() {
394
- return n`<div class="root">${this._renderContentContainer()}</div>`;
397
+ return this._destroying ? null : n`<div class="root">${this._renderContentContainer()}</div>`;
395
398
  }
396
399
  _renderFeatureNavigation() {
397
400
  return [
@@ -449,7 +452,7 @@ class oe extends V {
449
452
  return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(I({
450
453
  "content-feature": !0,
451
454
  "flow-item-collapsed": s
452
- }))} .closable=${!i} .closed=${!h} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (o ? "down" : "up")} .collapsible=${a} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController || this._selectedFeatureLoading} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!d && p ? M(p) : void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!d && p ? n`<div slot=heading><div .innerHTML=${w.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(I("container", "content-container", {
455
+ }))} .closable=${!i} .closed=${!h} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (o ? "down" : "up")} .collapsible=${a} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController || this._selectedFeatureLoading} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!d && p ? M(p) : void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!d && p ? n`<span slot=heading><span .innerHTML=${w.sanitize(p ?? "") ?? ""}></span></span>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(I("container", "content-container", {
453
456
  "content-hidden": F
454
457
  }))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
455
458
  }