@arcgis/map-components 6.0.0-next.0 → 6.0.0-next.1

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 (84) hide show
  1. package/dist/cdn/{3TGYCCNJ.js → 24DOFGMG.js} +1 -1
  2. package/dist/cdn/3KZAH5OY.js +2 -0
  3. package/dist/cdn/{AKDB2XVJ.js → 5K54VOLZ.js} +1 -1
  4. package/dist/cdn/{JBHAJ6GW.js → 63FA3UEL.js} +1 -1
  5. package/dist/cdn/{BCCCO3CN.js → 7UWE25UH.js} +1 -1
  6. package/dist/cdn/{UHK5GFKQ.js → AENNGCAE.js} +1 -1
  7. package/dist/cdn/{7AHOPT65.js → BQKVSKYK.js} +1 -1
  8. package/dist/cdn/{3DPVKWFO.js → CROCDACG.js} +1 -1
  9. package/dist/cdn/H77SMV46.js +2 -0
  10. package/dist/cdn/{VYYFRZLI.js → IMPFB7YV.js} +1 -1
  11. package/dist/cdn/{FUQD5XQR.js → JRQYT5SI.js} +1 -1
  12. package/dist/cdn/{D7RGMPF3.js → NBDQBLRI.js} +1 -1
  13. package/dist/cdn/{NIUMOIYZ.js → QTOA5MBN.js} +1 -1
  14. package/dist/cdn/{2KP3MSHV.js → QWOOD63Q.js} +1 -1
  15. package/dist/cdn/R6HUY6QI.js +2 -0
  16. package/dist/cdn/RHNZWKZV.js +2 -0
  17. package/dist/cdn/{NZBID35V.js → RZQNEEP6.js} +1 -1
  18. package/dist/cdn/{HKGNXMRR.js → TNFZHEWD.js} +1 -1
  19. package/dist/cdn/TZ6WQV6O.js +2 -0
  20. package/dist/cdn/{KRVLKKXB.js → V2GMDCVJ.js} +1 -1
  21. package/dist/cdn/W3ENDJ6U.js +2 -0
  22. package/dist/cdn/WJZZ7SZO.js +2 -0
  23. package/dist/cdn/{KXGVE4NK.js → XJ6DZ6AN.js} +1 -1
  24. package/dist/cdn/{2JWHVMJ3.js → Y2UYA3OR.js} +1 -1
  25. package/dist/cdn/Z42QB2QP.js +2 -0
  26. package/dist/cdn/{3V3PYL2L.js → ZUAR3LO3.js} +1 -1
  27. package/dist/cdn/{N6QTPGCU.js → ZVZVHZYX.js} +1 -1
  28. package/dist/cdn/index.js +1 -1
  29. package/dist/cdn/main.css +1 -1
  30. package/dist/chunks/action-utils.js +7 -7
  31. package/dist/chunks/esri-main.js +1 -1
  32. package/dist/components/arcgis-aggregated-features/customElement.js +1 -1
  33. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +13 -13
  34. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +29 -29
  35. package/dist/components/arcgis-basemap-layer-list-next/types.d.ts +1 -1
  36. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +7 -7
  37. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +16 -16
  38. package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
  39. package/dist/components/arcgis-feature-form-text/customElement.d.ts +7 -0
  40. package/dist/components/arcgis-feature-form-text/customElement.js +24 -0
  41. package/dist/components/arcgis-feature-form-text/index.d.ts +1 -0
  42. package/dist/components/arcgis-feature-form-text/index.js +1 -0
  43. package/dist/components/arcgis-feature-next/customElement.d.ts +14 -6
  44. package/dist/components/arcgis-feature-next/customElement.js +31 -31
  45. package/dist/components/arcgis-feature-relationship/customElement.js +69 -69
  46. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +21 -21
  47. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +15 -15
  48. package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
  49. package/dist/components/arcgis-features-next/customElement.js +9 -9
  50. package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
  51. package/dist/components/arcgis-layer-list-next/customElement.js +14 -14
  52. package/dist/components/arcgis-legend/customElement.d.ts +2 -2
  53. package/dist/components/arcgis-legend/customElement.js +1 -1
  54. package/dist/components/arcgis-link-chart/customElement.d.ts +7 -1
  55. package/dist/components/arcgis-map/customElement.d.ts +7 -1
  56. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +1 -1
  57. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -4
  58. package/dist/components/arcgis-popup/customElement.d.ts +1 -1
  59. package/dist/components/arcgis-popup/customElement.js +10 -10
  60. package/dist/components/arcgis-scene/customElement.d.ts +7 -1
  61. package/dist/components/arcgis-table-list-next/customElement.d.ts +3 -3
  62. package/dist/components/arcgis-table-list-next/customElement.js +5 -5
  63. package/dist/components/arcgis-time-bar-slider/customElement.js +24 -23
  64. package/dist/docs/api.json +1 -1
  65. package/dist/docs/docs.json +1 -1
  66. package/dist/docs/vscode.css-custom-data.json +1 -1
  67. package/dist/docs/vscode.html-custom-data.json +1 -1
  68. package/dist/docs/web-types.json +1 -1
  69. package/dist/index.d.ts +4 -0
  70. package/dist/loader.js +5 -4
  71. package/dist/types/lumina.d.ts +6 -1
  72. package/dist/types/preact.d.ts +7 -1
  73. package/dist/types/react.d.ts +8 -1
  74. package/dist/types/stencil.d.ts +6 -1
  75. package/dist/utils/layer-list-utils.d.ts +2 -2
  76. package/package.json +6 -6
  77. package/dist/cdn/7R2TTA5R.js +0 -2
  78. package/dist/cdn/E7RFFMRP.js +0 -2
  79. package/dist/cdn/FDXRUZWU.js +0 -2
  80. package/dist/cdn/KJ6TWPZT.js +0 -2
  81. package/dist/cdn/NOIAW4P4.js +0 -2
  82. package/dist/cdn/QDXORLKV.js +0 -2
  83. package/dist/cdn/Z6AYJE6L.js +0 -2
  84. /package/dist/cdn/{XIYYT5SJ.js → YYCBU2CG.js} +0 -0
@@ -2,40 +2,40 @@
2
2
  import { c as H } from "../../chunks/runtime.js";
3
3
  import { css as k, html as o } from "lit";
4
4
  import { debounce as A } from "@arcgis/toolkit/function";
5
- import { LitElement as K, renderElement as q, safeClassMap as D } from "@arcgis/lumina";
5
+ import { LitElement as K, 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
7
  import { renderingSanitizer as O } from "@arcgis/core/applications/Components/sanitizerUtils.js";
8
8
  import { isRelatableFeatureSupportedLayer as W, findRelatedLayer as Z } from "@arcgis/core/applications/Components/featureUtils.js";
9
- import { substitute as z, formatNumber as V } from "@arcgis/core/intl.js";
9
+ import { substitute as z, formatNumber as M } from "@arcgis/core/intl.js";
10
10
  import { watch as g, on as G } from "@arcgis/core/core/reactiveUtils.js";
11
11
  import { p as J } from "../../chunks/feature-utils.js";
12
- import M from "@arcgis/core/core/Collection.js";
12
+ import V from "@arcgis/core/core/Collection.js";
13
13
  import S from "@arcgis/core/rest/support/RelationshipQuery.js";
14
14
  import { ignoreAbortErrors as R } from "@arcgis/core/core/promiseUtils.js";
15
15
  import { classes as Q } from "@arcgis/toolkit/dom";
16
16
  import { createRef as U, ref as X } from "lit/directives/ref.js";
17
- import Y from "@arcgis/core/popup/FeatureContent.js";
17
+ import Y from "@arcgis/core/popup/FeatureModel.js";
18
18
  import { g as L } from "../../chunks/async-utils.js";
19
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-spacing-xxl);z-index:2;text-align:center}.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}`, re = (h) => {
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-spacing-xxl);z-index:2;text-align:center}.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}`, ie = (h) => {
21
21
  const e = [];
22
22
  if (h.formTemplate) {
23
- const { description: t, title: r } = h.formTemplate;
24
- h.fields?.forEach((i) => {
25
- const s = r && x(r, i.name), a = t && x(t, i.name);
26
- (s || a) && e.push(i.name);
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);
27
27
  });
28
28
  }
29
29
  return e;
30
30
  }, P = 100;
31
- function ie(h) {
31
+ function re(h) {
32
32
  return typeof h == "string" && h.trim().length > 0;
33
33
  }
34
34
  class se extends K {
35
35
  constructor() {
36
36
  super(...arguments), this._increaseFeaturePage = () => {
37
- const { state: e, showAllEnabled: t, relatedFeatures: r, featuresPerPage: i, featurePage: s } = this;
38
- e === "ready" && t && r.length >= i * s && this.featurePage++;
37
+ const { state: e, showAllEnabled: t, relatedFeatures: i, featuresPerPage: r, featurePage: s } = this;
38
+ e === "ready" && t && i.length >= r * s && this.featurePage++;
39
39
  }, this._relatedFeatureIntersectionObserver = new IntersectionObserver(([e]) => {
40
40
  e?.isIntersecting && this._increaseFeaturePage();
41
41
  }, {
@@ -65,19 +65,19 @@ class se extends K {
65
65
  !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
66
  }, this._addFlowItem = (e) => {
67
67
  e && this.flowItems?.push(e);
68
- }, this._relatedFeatureIntersectionObserverNode = U(), this.relatedFeatures = new M(), this._queryAbortController = null, this._queryPageAbortController = null, this._queryFeatureCountAbortController = null, this.featureCount = 0, this._loaded = !1, this.relatedFeatureViewModels = new M(), this.autoDestroyDisabled = !1, this.featuresPerPage = 10, this.useFeatureNextFlowItem = !1, this.flowType = "feature-relationship", this.headingLevel = 2, this.hideHeading = !1, this.hideDescription = !1, this.hideEmptyRelationshipContent = !1, this.empty = !1, this.showAllEnabled = !1;
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;
69
69
  }
70
70
  static {
71
- 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, 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 };
71
+ 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
72
  }
73
73
  static {
74
74
  this.styles = te;
75
75
  }
76
76
  get orderByFieldsFixedCasing() {
77
77
  const { orderByFields: e, relatedLayer: t } = this;
78
- return e && t?.loaded ? e.map((r) => {
79
- const i = r.clone();
80
- return i.field = J(r.field, t), i;
78
+ return e && t?.loaded ? e.map((i) => {
79
+ const r = i.clone();
80
+ return r.field = J(i.field, t), r;
81
81
  }) : e ?? [];
82
82
  }
83
83
  get supportsCacheHint() {
@@ -93,15 +93,15 @@ class se extends K {
93
93
  return this.layer?.objectIdField || null;
94
94
  }
95
95
  get relatedLayer() {
96
- const { layer: e, map: t, relationship: r } = this;
97
- if (!e?.loaded || !t || !r)
96
+ const { layer: e, map: t, relationship: i } = this;
97
+ if (!e?.loaded || !t || !i)
98
98
  return null;
99
- const i = e.type === "subtype-sublayer" && e.parent && W(e.parent) ? e.parent : e;
100
- return Z(t, i, r) ?? null;
99
+ const r = e.type === "subtype-sublayer" && e.parent && W(e.parent) ? e.parent : e;
100
+ return Z(t, r, i) ?? null;
101
101
  }
102
102
  get relatedLayerKeyField() {
103
103
  const { relatedLayer: e, relationshipId: t } = this;
104
- return e?.loaded && t != null ? e.relationships?.find((r) => r.id === t)?.keyField : null;
104
+ return e?.loaded && t != null ? e.relationships?.find((i) => i.id === t)?.keyField : null;
105
105
  }
106
106
  get relatedLayerKeyFields() {
107
107
  const { relatedLayer: e } = this;
@@ -109,7 +109,7 @@ class se extends K {
109
109
  }
110
110
  get relationship() {
111
111
  const { relationshipId: e, layer: t } = this;
112
- return e != null && t?.loaded ? t.relationships?.find(({ id: r }) => r === e) ?? null : null;
112
+ return e != null && t?.loaded ? t.relationships?.find(({ id: i }) => i === e) ?? null : null;
113
113
  }
114
114
  get relationshipKey() {
115
115
  const { relationshipKeyField: e } = this;
@@ -126,8 +126,8 @@ class se extends K {
126
126
  return !!this.relatedLayer && !!this.relationship && this.relationshipId != null && this.objectId != null && !!e?.supportsCount && e?.supportsPagination;
127
127
  }
128
128
  get displayShowAllButton() {
129
- const { showAllEnabled: e, featureCount: t, displayCount: r, state: i, allCategoriesCount: s } = this, a = !!s && (s > r || r === 0), n = !!t && (t > r || r === 0);
130
- return !e && i === "ready" && (a || n);
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);
131
131
  }
132
132
  get displayListItems() {
133
133
  const { relatedFeatures: e, allCategoriesCount: t } = this;
@@ -141,21 +141,21 @@ class se extends K {
141
141
  return this.orderByFieldsFixedCasing[0]?.field || null;
142
142
  }
143
143
  get state() {
144
- const { _queryAbortController: e, _queryFeatureCountAbortController: t, _queryPageAbortController: r, canQuery: i, _loaded: s, canLoad: a } = this;
145
- return t || a && !s ? "loading" : e || r ? "querying" : i ? "ready" : "disabled";
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";
146
146
  }
147
147
  get allItemsDescription() {
148
- const { messages: e, featureCount: t, allCategories: r, allCategoriesCount: i } = this;
148
+ const { messages: e, featureCount: t, allCategories: i, allCategoriesCount: r } = this;
149
149
  return z(e?.numberRecords ?? "", {
150
- number: V(r ? i : t)
150
+ number: M(i ? r : t)
151
151
  });
152
152
  }
153
153
  get featurePage() {
154
154
  return this._featurePage;
155
155
  }
156
156
  set featurePage(e) {
157
- const { featuresPerPage: t, featureCount: r } = this, i = 1, s = Math.ceil(r / t) || 1;
158
- this._featurePage = Math.min(Math.max(e, i), s);
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);
159
159
  }
160
160
  get heading() {
161
161
  const { activeCategory: e } = this;
@@ -165,8 +165,8 @@ class se extends K {
165
165
  this._heading = e;
166
166
  }
167
167
  get _empty() {
168
- const { displayListItems: e, hideEmptyRelationshipContent: t, state: r } = this;
169
- return t && r === "ready" && !e;
168
+ const { displayListItems: e, hideEmptyRelationshipContent: t, state: i } = this;
169
+ return t && i === "ready" && !e;
170
170
  }
171
171
  get displayCount() {
172
172
  return this._displayCount ?? 3;
@@ -208,18 +208,18 @@ class se extends K {
208
208
  async _queryFeatureCount() {
209
209
  const { layer: e, relatedLayer: t } = this;
210
210
  await e?.load(), await t?.load();
211
- const { _queryFeatureCountAbortController: r, activeCategory: i, canQuery: s, objectId: a, relatedLayerKeyField: n, relationshipId: l, relationshipKey: d, supportsCacheHint: b } = this;
211
+ const { _queryFeatureCountAbortController: i, activeCategory: r, canQuery: s, objectId: a, relatedLayerKeyField: n, relationshipId: l, relationshipKey: d, supportsCacheHint: b } = this;
212
212
  if (!s || !e || !t || a == null) {
213
213
  this.featureCount = 0, this.allCategories = void 0;
214
214
  return;
215
215
  }
216
- if (t?.type === "subtype-group" && !i) {
216
+ if (t?.type === "subtype-group" && !r) {
217
217
  if (this.featureCount = 0, this.relatedFeatureViewModels.destroyAll(), this.featurePage = 1, this.relatedFeatures.destroyAll(), n && d != null) {
218
218
  const { default: F } = await import("@arcgis/core/smartMapping/statistics/uniqueValues.js"), { uniqueValueInfos: w } = await F({
219
219
  layer: t,
220
220
  sqlWhere: `${n} = '${d}'`,
221
221
  field: t.subtypeField ?? void 0,
222
- signal: r?.signal
222
+ signal: i?.signal
223
223
  }), v = w.map(({ count: c, value: p }) => {
224
224
  const f = t.subtypes?.find((I) => I.code === p)?.name;
225
225
  return p != null && f ? {
@@ -232,47 +232,47 @@ class se extends K {
232
232
  }
233
233
  return;
234
234
  }
235
- const { historicMoment: m, gdbVersion: C } = e, _ = new S({
235
+ const { historicMoment: m, gdbVersion: _ } = e, C = new S({
236
236
  cacheHint: b,
237
- gdbVersion: C,
237
+ gdbVersion: _,
238
238
  historicMoment: m,
239
239
  relationshipId: l,
240
240
  returnGeometry: !1,
241
241
  objectIds: [a],
242
242
  where: this._getRelationshipWhereClause(t)
243
- }), y = await e.queryRelatedFeaturesCount(_, {
244
- signal: r?.signal
243
+ }), y = await e.queryRelatedFeaturesCount(C, {
244
+ signal: i?.signal
245
245
  });
246
246
  this.allCategories = void 0, this.featureCount = y[a] || 0;
247
247
  }
248
248
  _getRelationshipWhereClause(e) {
249
- const { activeCategory: t } = this, r = e.createQuery(), i = "subtypeField" in e ? e.subtypeField : void 0, s = t && i ? `${i} = ${t.value}` : void 0, a = r.where;
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
250
  return a && s ? `(${a}) AND (${s})` : a ?? s;
251
251
  }
252
252
  _sliceFeatures(e) {
253
- const { showAllEnabled: t, displayCount: r } = this;
254
- return t ? e : r ? e.slice(0, r) : [];
253
+ const { showAllEnabled: t, displayCount: i } = this;
254
+ return t ? e : i ? e.slice(0, i) : [];
255
255
  }
256
256
  async _queryPage() {
257
- const { relatedFeatures: e, featurePage: t, showAllEnabled: r, _queryPageAbortController: i, featureCount: s } = this;
258
- !r || t < 2 || !s || this.relatedLayer?.type === "subtype-group" && !this.activeCategory || e.addMany(await this._queryRelatedFeatures({ signal: i?.signal }));
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 }));
259
259
  }
260
260
  async _queryRelatedFeatures(e) {
261
- const { displayCount: t, featureCount: r, featurePage: i, featuresPerPage: s, layer: a, orderByFieldsFixedCasing: n, relatedLayer: l, relatedLayerKeyFields: d, relationshipId: b, showAllEnabled: m, supportsCacheHint: C } = this, { canQuery: _, objectId: y } = this;
262
- if (!_ || !a || !l || y == null)
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)
263
263
  return [];
264
- const F = m ? ((i - 1) * s + r) % r : 0, w = m ? s : t, v = l.objectIdField, c = "subtypeField" in l ? l.subtypeField : void 0, p = [
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 = [
265
265
  ...n.map((u) => u.field),
266
- ...re(l),
266
+ ...ie(l),
267
267
  ...d,
268
268
  v,
269
269
  c
270
- ].filter(ie), f = n.map((u) => `${u.field} ${u.order}`), { historicMoment: I, gdbVersion: T } = a, j = new S({
270
+ ].filter(re), f = n.map((u) => `${u.field} ${u.order}`), { historicMoment: I, gdbVersion: T } = a, j = new S({
271
271
  orderByFields: f,
272
272
  start: F,
273
273
  num: w,
274
274
  outFields: p,
275
- cacheHint: C,
275
+ cacheHint: _,
276
276
  historicMoment: I,
277
277
  gdbVersion: T,
278
278
  relationshipId: b,
@@ -283,8 +283,8 @@ class se extends K {
283
283
  signal: e?.signal
284
284
  }))[y]?.features || [];
285
285
  return l.type === "subtype-group" && c ? $.forEach((u) => {
286
- const B = u.attributes[c], E = l.findSublayerForSubtypeCode?.(B);
287
- u.sourceLayer = E, u.layer = E;
286
+ const B = u.attributes[c], D = l.findSublayerForSubtypeCode?.(B);
287
+ u.sourceLayer = D, u.layer = D;
288
288
  }) : $.forEach((u) => {
289
289
  u.sourceLayer = l, u.layer = l;
290
290
  }), $;
@@ -297,11 +297,11 @@ class se extends K {
297
297
  const { flowItems: t } = this;
298
298
  if (!t)
299
299
  return;
300
- const r = this.useFeatureNextFlowItem ? q(o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .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(r);
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);
302
302
  }
303
303
  _addRelationshipFlowItem({ showAllEnabled: e = !1, activeCategory: t }) {
304
- this._addFlowItem(q(o`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} 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>`));
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>`));
305
305
  }
306
306
  _showAllRecords() {
307
307
  const { flowItems: e } = this;
@@ -316,16 +316,16 @@ class se extends K {
316
316
  this._relatedFeatureIntersectionObserverNode.value && this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value);
317
317
  }
318
318
  _matchesFeature(e, t) {
319
- const r = e?.graphic?.getObjectId(), i = t?.getObjectId();
320
- return r != null && i != null && r === i;
319
+ const i = e?.graphic?.getObjectId(), r = t?.getObjectId();
320
+ return i != null && r != null && i === r;
321
321
  }
322
322
  _setRelatedFeaturesViewModels() {
323
- const { relatedFeatures: e, relatedFeatureViewModels: t, map: r, view: i, spatialReference: s, timeZone: a } = this;
323
+ const { relatedFeatures: e, relatedFeatureViewModels: t, map: i, view: r, spatialReference: s, timeZone: a } = this;
324
324
  e?.filter(Boolean).forEach((n) => {
325
325
  t.some((d) => this._matchesFeature(d, n)) || t.add(new Y({
326
326
  abilities: { relationshipContent: !1 },
327
- map: r,
328
- view: i,
327
+ map: i,
328
+ view: r,
329
329
  spatialReference: s,
330
330
  timeZone: a,
331
331
  graphic: n
@@ -354,15 +354,15 @@ class se extends K {
354
354
  return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`;
355
355
  }
356
356
  _renderCategory(e) {
357
- const { count: t, name: r } = e, i = V(t);
358
- return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${() => this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`;
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>`;
359
359
  }
360
360
  _renderRelatedFeature(e) {
361
- const { itemDescriptionFieldName: t, values: r } = this, { formattedAttributes: i, state: s, heading: a } = e, n = {
362
- ...r,
363
- ...i?.global
361
+ const { itemDescriptionFieldName: t, values: i } = this, { formattedAttributes: r, state: s, heading: a } = e, n = {
362
+ ...i,
363
+ ...r?.global
364
364
  }, l = (t && n?.[t]) ?? "";
365
- return o`<calcite-list-item class=${D(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>`;
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>`;
366
366
  }
367
367
  _renderShowAllListItem() {
368
368
  return this.displayShowAllButton ? o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${() => this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>` : null;
@@ -375,11 +375,11 @@ class se extends K {
375
375
  }
376
376
  _renderList() {
377
377
  const { relatedFeatureViewModels: e, categories: t } = this;
378
- return o`<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>`;
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>`;
379
379
  }
380
380
  _renderRelatedFeatures() {
381
381
  const { displayListItems: e } = this, { state: t } = this;
382
- return o`<div class=${D(Q("list", {
382
+ return o`<div class=${E(Q("list", {
383
383
  "list-querying": t === "querying"
384
384
  }))}>${e ? this._renderList() : t === "ready" ? this._renderNoRelatedFeaturesMessage() : null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`;
385
385
  }
@@ -5,16 +5,16 @@ import { keyed as d } from "lit/directives/keyed.js";
5
5
  import { ArcgisUtilityNetworkAssociationList as y } from "../arcgis-utility-network-association-list/customElement.js";
6
6
  import { stripHTML as p } from "@arcgis/core/applications/Components/stringUtils.js";
7
7
  import { formatNumber as w, substitute as $ } from "@arcgis/core/intl.js";
8
- import { renderElement as h, safeClassMap as b } from "@arcgis/lumina";
8
+ import { renderElement as u, safeClassMap as b } from "@arcgis/lumina";
9
9
  import { u as F } from "../../chunks/useT9n.js";
10
10
  import { i as m } from "../../chunks/layer-utils.js";
11
- const _ = g`:host{position:relative;flex:1 1 auto}.list-item--hidden{display:none}.feature-observer{bottom:var(--calcite-spacing-xxl);position:relative;text-align:center;z-index:2}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.notice-container{margin-bottom:var(--calcite-spacing-xs)}`, v = "nested";
12
- class A extends y {
11
+ const _ = g`:host{position:relative;flex:1 1 auto}.list-item--hidden{display:none}.feature-observer{bottom:var(--calcite-spacing-xxl);position:relative;text-align:center;z-index:2}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.notice-container{margin-bottom:var(--calcite-spacing-xs)}`, A = "nested";
12
+ class v extends y {
13
13
  constructor() {
14
- super(...arguments), this._messagesFeature = F({ name: "feature", blocking: !0 }), this.autoDestroyDisabled = !1, this.displayCount = 3, this.useFeatureNextFlowItem = !1, this.flowType = "feature-utility-network-association-type";
14
+ super(...arguments), this._messagesFeature = F({ name: "feature", blocking: !0 }), this.autoDestroyDisabled = !1, this.displayCount = 3, this.useFeatureNextFlowItem = !1, this.includeDefaultActions = !1, this.flowType = "feature-utility-network-association-type";
15
15
  }
16
16
  static {
17
- this.properties = { autoDestroyDisabled: 5, description: 1, displayCount: 9, flowItems: 0, useFeatureNextFlowItem: 5, flowType: 1, heading: 1, map: 0, messageOverrides: 0, referenceElement: 1, spatialReference: 0, timeZone: 1, view: 0 };
17
+ this.properties = { autoDestroyDisabled: 5, description: 1, displayCount: 9, flowItems: 0, useFeatureNextFlowItem: 5, actions: 0, includeDefaultActions: 5, flowType: 1, heading: 1, map: 0, messageOverrides: 0, referenceElement: 1, spatialReference: 0, timeZone: 1, view: 0 };
18
18
  }
19
19
  static {
20
20
  this.styles = _;
@@ -24,13 +24,13 @@ class A extends y {
24
24
  }
25
25
  _featureViewModelMatch(e, t) {
26
26
  const i = e.graphic, s = i?.layer;
27
- let a = null;
28
- m(s) && s.parent ? a = s.parent.globalIdField ?? null : s && "globalIdField" in s && (a = s.globalIdField);
29
- const r = a ? i?.getAttribute(a) : null, l = t.graphic, n = l?.layer;
27
+ let n = null;
28
+ m(s) && s.parent ? n = s.parent.globalIdField ?? null : s && "globalIdField" in s && (n = s.globalIdField);
29
+ const l = n ? i?.getAttribute(n) : null, r = t.graphic, a = r?.layer;
30
30
  let c = null;
31
- m(n) && n.parent ? c = n.parent.globalIdField ?? null : n && "globalIdField" in n && (c = n.globalIdField);
32
- const u = c ? l?.getAttribute(c) : null;
33
- return !!(r && u && r === u);
31
+ m(a) && a.parent ? c = a.parent.globalIdField ?? null : a && "globalIdField" in a && (c = a.globalIdField);
32
+ const h = c ? r?.getAttribute(c) : null;
33
+ return !!(l && h && l === h);
34
34
  }
35
35
  _findFlowItem(e) {
36
36
  return this.flowItems?.findIndex((t) => {
@@ -78,7 +78,7 @@ class A extends y {
78
78
  const { flowItems: t } = this;
79
79
  if (!t)
80
80
  return;
81
- const i = this.useFeatureNextFlowItem ? h(d(this.parentFeatureViewModel, o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`)) : h(d(this.parentFeatureViewModel, o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`));
81
+ const i = this.useFeatureNextFlowItem ? u(d(this.parentFeatureViewModel, o`<arcgis-feature-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .includeDefaultActions=${this.includeDefaultActions} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`)) : u(d(this.parentFeatureViewModel, o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`));
82
82
  t.push(i);
83
83
  }
84
84
  _showAllAssociations(e) {
@@ -87,15 +87,15 @@ class A extends y {
87
87
  return;
88
88
  this.showAllEnabled = !0;
89
89
  const s = e?.title ?? "";
90
- t.push(h(o`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this.associationViewModels} .description=${i} .flowItems=${t} .flowType=${this.flowType} .heading=${s} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .selectedLayer=${e} .showAllEnabled=${this.showAllEnabled} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem}></arcgis-feature-utility-network-association-list>`));
90
+ t.push(u(o`<arcgis-feature-utility-network-association-list .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this.associationViewModels} .description=${i} .flowItems=${t} .flowType=${this.flowType} .heading=${s} .includeDefaultActions=${this.includeDefaultActions} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .selectedLayer=${e} .showAllEnabled=${this.showAllEnabled} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem}></arcgis-feature-utility-network-association-list>`));
91
91
  }
92
92
  render() {
93
93
  const { associationViewModels: e, state: t } = this, i = this.selectedLayer?.title ?? this._messagesFeature.noTitle ?? "";
94
- return o`<div class="root">${t === "loading" || t === "querying" ? this._renderLoading() : o`<calcite-list .displayMode=${v} .filterEnabled=${this.showAllEnabled && !!this.selectedLayer} .filterLabel=${this._messages.associationFilterPlaceholder} .filterPlaceholder=${this._messages.associationFilterPlaceholder} .label=${i}>${this.showAllEnabled && this.selectedLayer ? o`${this._renderFeatureCountWarning()}${this._renderAssociatedFeatureListPage()}${this._renderFeatureObserver()}` : Array.from(e.keys(), (s) => this._renderTypeList(s))}</calcite-list>`}</div>`;
94
+ return o`<div class="root">${t === "loading" || t === "querying" ? this._renderLoading() : o`<calcite-list .displayMode=${A} .filterEnabled=${this.showAllEnabled && !!this.selectedLayer} .filterLabel=${this._messages.associationFilterPlaceholder} .filterPlaceholder=${this._messages.associationFilterPlaceholder} .label=${i}>${this.showAllEnabled && this.selectedLayer ? o`${this._renderFeatureCountWarning()}${this._renderAssociatedFeatureListPage()}${this._renderFeatureObserver()}` : Array.from(e.keys(), (s) => this._renderTypeList(s))}</calcite-list>`}</div>`;
95
95
  }
96
96
  _renderAssociatedFeature(e) {
97
- const { featureViewModel: t, title: i } = e, s = this.state === "loading", a = this._findFlowItem(t), r = a < 0 && this._isParentFeature(t), l = r || a >= 0, n = `associated-feature-${e.association.globalId}`;
98
- return o`<calcite-list-item class=${b(s ? "list-item--hidden" : "")} .description=${p(e.terminalName ?? "")} .label=${p(i)} @calciteListItemSelect=${async () => await this._handleFeatureClick(r, a, t)}>${this._isConnectivityAssociation(e.association) ? this._renderConnectivityIcon(e.association.associationType, n) : null}${this._isConnectivityMidspanAssociation(e.association) ? o`<calcite-chip .label=${this._formatPercentAlong(e.association)} scale=s slot=content-end>${this._formatPercentAlong(e.association)}</calcite-chip>` : null}${this._renderChevronIconNode(l)}</calcite-list-item>`;
97
+ const { featureViewModel: t, title: i } = e, s = this.state === "loading", n = this._findFlowItem(t), l = n < 0 && this._isParentFeature(t), r = l || n >= 0, a = `associated-feature-${e.association.globalId}`;
98
+ return o`<calcite-list-item class=${b(s ? "list-item--hidden" : "")} .description=${p(e.terminalName ?? "")} .label=${p(i)} @calciteListItemSelect=${async () => await this._handleFeatureClick(l, n, t)}>${this._isConnectivityAssociation(e.association) ? this._renderConnectivityIcon(e.association.associationType, a) : null}${this._isConnectivityMidspanAssociation(e.association) ? o`<calcite-chip .label=${this._formatPercentAlong(e.association)} scale=s slot=content-end>${this._formatPercentAlong(e.association)}</calcite-chip>` : null}${this._renderChevronIconNode(r)}</calcite-list-item>`;
99
99
  }
100
100
  _renderAssociatedFeatureList(e) {
101
101
  return e.toArray().map((t) => this._renderAssociatedFeature(t));
@@ -112,16 +112,16 @@ class A extends y {
112
112
  return this._isConnectivityAssociation(e.association) ? o`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(i)}>${this.getConnectivityTooltip(e.association.associationType)}</calcite-tooltip>` : null;
113
113
  }
114
114
  _renderTypeList(e) {
115
- const { displayCount: t } = this, i = this.associationViewModels.get(e), s = i.slice(0, t), a = s.length < i.length, r = $(this._messagesFeature.numberRecords ?? "", {
115
+ const { displayCount: t } = this, i = this.associationViewModels.get(e), s = i.slice(0, t), n = s.length < i.length, l = $(this._messagesFeature.numberRecords ?? "", {
116
116
  number: i.length.toString()
117
- }), l = this._messagesFeature.showAll ?? "";
118
- return d("show-all", o`<calcite-list-item expanded .label=${e.title} .value=${e.id}><calcite-chip .label=${String(i.length)} scale=s slot=content-end>${i.length}</calcite-chip><calcite-list .group=${e.id} .label=${e.title ?? ""}>${[this._renderTooltips(s), this._renderAssociatedFeatureList(s)]}${a ? d("show-all-item", o`<calcite-list-item .description=${r} .label=${l} @calciteListItemSelect=${() => this._showAllAssociations(e)}><calcite-icon icon=list scale=s slot=content-end></calcite-icon></calcite-list-item>`) : null}</calcite-list></calcite-list-item>`);
117
+ }), r = this._messagesFeature.showAll ?? "";
118
+ return d("show-all", o`<calcite-list-item expanded .label=${e.title} .value=${e.id}><calcite-chip .label=${String(i.length)} scale=s slot=content-end>${i.length}</calcite-chip><calcite-list .group=${e.id} .label=${e.title ?? ""}>${[this._renderTooltips(s), this._renderAssociatedFeatureList(s)]}${n ? d("show-all-item", o`<calcite-list-item .description=${l} .label=${r} @calciteListItemSelect=${() => this._showAllAssociations(e)}><calcite-icon icon=list scale=s slot=content-end></calcite-icon></calcite-list-item>`) : null}</calcite-list></calcite-list-item>`);
119
119
  }
120
120
  _renderTooltips(e) {
121
121
  return e.toArray().map((t) => this._renderItemTooltip(t));
122
122
  }
123
123
  }
124
- f("arcgis-feature-utility-network-association-list", A);
124
+ f("arcgis-feature-utility-network-association-list", v);
125
125
  export {
126
- A as ArcgisFeatureUtilityNetworkAssociationList
126
+ v as ArcgisFeatureUtilityNetworkAssociationList
127
127
  };
@@ -6,7 +6,7 @@ import { i as k, q as j } from "../../chunks/layer-utils.js";
6
6
  import { g as v } from "../../chunks/async-utils.js";
7
7
  import { createReactiveMap as I, findUtilityNetwork as x, getOrCreateMapValue as P } from "@arcgis/core/applications/Components/featureUtils.js";
8
8
  import { stripHTML as E } from "@arcgis/core/applications/Components/stringUtils.js";
9
- import w from "@arcgis/core/core/Collection.js";
9
+ import f from "@arcgis/core/core/Collection.js";
10
10
  import { ignoreAbortErrors as T } from "@arcgis/core/core/promiseUtils.js";
11
11
  import { watch as A } from "@arcgis/core/core/reactiveUtils.js";
12
12
  import * as U from "@arcgis/core/core/sql.js";
@@ -14,7 +14,7 @@ import Q from "@arcgis/core/rest/networks/support/NetworkElement.js";
14
14
  import G from "@arcgis/core/rest/networks/support/QueryAssociationsParameters.js";
15
15
  import { LitElement as B, renderElement as q } from "@arcgis/lumina";
16
16
  import { debounce as L } from "@arcgis/toolkit/function";
17
- import O from "@arcgis/core/popup/FeatureContent.js";
17
+ import O from "@arcgis/core/popup/FeatureModel.js";
18
18
  import { u as $ } from "../../chunks/useT9n.js";
19
19
  const R = V`.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}`, N = 100, S = {
20
20
  assetGroup: "assetgroup",
@@ -24,13 +24,13 @@ class Z extends B {
24
24
  constructor() {
25
25
  super(...arguments), this._addFlowItem = (t) => {
26
26
  t && this.flowItems?.push(t);
27
- }, this._attachmentAssociations = new w(), this._attachmentFeatureCount = 0, this._cancelQuery = () => {
27
+ }, this._attachmentAssociations = new f(), this._attachmentFeatureCount = 0, this._cancelQuery = () => {
28
28
  const { _queryAbortController: t } = this;
29
29
  t && t.abort(), this._queryAbortController = null;
30
30
  }, this._cancelQueryFeatureCount = () => {
31
31
  const { _queryFeatureCountAbortController: t } = this;
32
32
  t && t.abort(), this._queryFeatureCountAbortController = null;
33
- }, this._connectivityAssociations = new w(), this._connectivityFeatureCount = 0, this._containerAssociations = new w(), this._containerFeatureCount = 0, this._contentAssociations = new w(), this._contentFeatureCount = 0, this._messages = $({ name: "utility-network-associations", blocking: !0 }), this._messagesFeature = $({ name: "feature", blocking: !0 }), this._networkSourceIdsInUse = /* @__PURE__ */ new Set(), this._query = async (t) => {
33
+ }, this._connectivityAssociations = new f(), this._connectivityFeatureCount = 0, this._containerAssociations = new f(), this._containerFeatureCount = 0, this._contentAssociations = new f(), this._contentFeatureCount = 0, this._messages = $({ name: "utility-network-associations", blocking: !0 }), this._messagesFeature = $({ name: "feature", blocking: !0 }), this._networkSourceIdsInUse = /* @__PURE__ */ new Set(), this._query = async (t) => {
34
34
  if (!t)
35
35
  return;
36
36
  await this._loadUtilityNetworks();
@@ -44,12 +44,12 @@ class Z extends B {
44
44
  this._loaded = !1, this._cancelQueryFeatureCount();
45
45
  const t = new AbortController();
46
46
  this._queryFeatureCountAbortController = t, await T(this._queryFeatureCount()), this._queryFeatureCountAbortController === t && (this._queryFeatureCountAbortController = null), this._loaded = !0;
47
- }, this._queryDebounced = L(this._queryController, v(N)), this._queryFeatureCountDebounced = L(this._queryFeatureCountController, v(N)), this._structureAssociations = new w(), this._structureFeatureCount = 0, this._queryAssociationType = async () => {
47
+ }, this._queryDebounced = L(this._queryController, v(N)), this._queryFeatureCountDebounced = L(this._queryFeatureCountController, v(N)), this._structureAssociations = new f(), this._structureFeatureCount = 0, this._queryAssociationType = async () => {
48
48
  this._activeAssociationType && this._queryDebounced(this._activeAssociationType);
49
- }, this._associationFeatures = I(), this._associationViewModels = I(), this._featureCount = 0, this._loaded = !1, this._queryAbortController = null, this._queryFeatureCountAbortController = null, this._queryPageAbortController = null, this.associationTypes = null, this.autoDestroyDisabled = !1, this.useFeatureNextFlowItem = !1, this.flowType = "feature-utility-network-associations", this.headingLevel = 2, this.source = "popup";
49
+ }, this._associationFeatures = I(), this._associationViewModels = I(), this._featureCount = 0, this._loaded = !1, this._queryAbortController = null, this._queryFeatureCountAbortController = null, this._queryPageAbortController = null, this.associationTypes = null, this.autoDestroyDisabled = !1, this.useFeatureNextFlowItem = !1, this.includeDefaultActions = !1, this.flowType = "feature-utility-network-associations", this.headingLevel = 2, this.source = "popup";
50
50
  }
51
51
  static {
52
- 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, messageOverrides: 0, messages: 0, parentFeatureViewModel: 0, referenceElement: 1, source: 1, spatialReference: 0, timeZone: 1, view: 0 };
52
+ 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, actions: 0, includeDefaultActions: 5, flowType: 1, graphic: 0, heading: 1, headingLevel: 9, layer: 0, map: 0, messageOverrides: 0, messages: 0, parentFeatureViewModel: 0, referenceElement: 1, source: 1, spatialReference: 0, timeZone: 1, view: 0 };
53
53
  }
54
54
  static {
55
55
  this.styles = R;
@@ -119,7 +119,7 @@ class Z extends B {
119
119
  });
120
120
  }
121
121
  _addAssociationTypeFlowItem(t) {
122
- const e = this.useFeatureNextFlowItem ? q(m`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .map=${this.map} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} use-feature-next-flow-item .view=${this.view}></arcgis-feature-utility-network-association-list>`) : q(m`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .map=${this.map} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`);
122
+ const e = this.useFeatureNextFlowItem ? q(m`<arcgis-feature-utility-network-association-list .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .includeDefaultActions=${this.includeDefaultActions} .map=${this.map} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} use-feature-next-flow-item .view=${this.view}></arcgis-feature-utility-network-association-list>`) : q(m`<arcgis-feature-utility-network-association-list .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .includeDefaultActions=${this.includeDefaultActions} .map=${this.map} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`);
123
123
  this._addFlowItem(e);
124
124
  }
125
125
  _clearAssociations() {
@@ -157,7 +157,7 @@ class Z extends B {
157
157
  (await Promise.all(y)).forEach((n) => {
158
158
  n.forEach((h) => {
159
159
  if (this.source === "popup" ? h.sourceLayer && h.getEffectivePopupTemplate() : !!h.sourceLayer) {
160
- const f = h.layer.globalIdField ?? "", g = h.getAttribute(f), F = a.get(g) ?? [];
160
+ const w = h.layer.globalIdField ?? "", g = h.getAttribute(w), F = a.get(g) ?? [];
161
161
  F.push(h), a.set(g, F);
162
162
  }
163
163
  });
@@ -291,14 +291,14 @@ class Z extends B {
291
291
  return;
292
292
  const l = this._getAssociationsByType(t.type), { associatedAssetGroup: d, associatedAssetType: u } = t, y = /* @__PURE__ */ new Map();
293
293
  l.forEach((n) => {
294
- const { fromNetworkElement: h, toNetworkElement: _ } = n, { networkSourceId: f, elementGlobalId: g } = h.globalId === i ? {
294
+ const { fromNetworkElement: h, toNetworkElement: _ } = n, { networkSourceId: w, elementGlobalId: g } = h.globalId === i ? {
295
295
  networkSourceId: _.networkSourceId,
296
296
  elementGlobalId: _.globalId
297
297
  } : {
298
298
  networkSourceId: h.networkSourceId,
299
299
  elementGlobalId: h.globalId
300
- }, F = y.get(f) || [];
301
- F.push(g), y.set(f, F);
300
+ }, F = y.get(w) || [];
301
+ F.push(g), y.set(w, F);
302
302
  });
303
303
  const p = await this._createAssociationFeatureObjects(l, y, d, u, e);
304
304
  this._parseFeatureObjects(p, c);
@@ -378,7 +378,7 @@ class Z extends B {
378
378
  }
379
379
  });
380
380
  const p = i.map(async (n) => {
381
- const { associatedNetworkSourceId: h, associatedAssetGroup: _, associatedAssetType: f } = n, g = u.get(n.type), b = _ != null ? await this._countAssociatedFeatures(h, g, _, f, t) : g.length;
381
+ const { associatedNetworkSourceId: h, associatedAssetGroup: _, associatedAssetType: w } = n, g = u.get(n.type), b = _ != null ? await this._countAssociatedFeatures(h, g, _, w, t) : g.length;
382
382
  switch (n.type) {
383
383
  case "attachment":
384
384
  this._attachmentFeatureCount = b;
@@ -418,7 +418,7 @@ class Z extends B {
418
418
  const s = I();
419
419
  t.forEach((i) => {
420
420
  const a = (i?.feature).sourceLayer;
421
- P(s, a, () => new w()).add(i);
421
+ P(s, a, () => new f()).add(i);
422
422
  });
423
423
  for (const [i, o] of s)
424
424
  this._sortFeatureObjectsByTitle(o), e.set(i, o);
@@ -436,7 +436,7 @@ class Z extends B {
436
436
  });
437
437
  const { map: t, view: e, spatialReference: s, timeZone: i } = this;
438
438
  this._associationFeatures.forEach((o, a) => {
439
- const r = this._associationViewModels.get(a) || new w();
439
+ const r = this._associationViewModels.get(a) || new f();
440
440
  o?.filter(Boolean).forEach((c, l) => {
441
441
  if (!r.some((u) => this._matchesGlobalFeature(u, c))) {
442
442
  const { association: u, feature: y, terminalName: p, title: n } = c;
@@ -58,7 +58,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
58
58
  */
59
59
  accessor actions: Collection<PopupAction>;
60
60
  /**
61
- * Indicates if the component is active when it is visible and is not [waiting](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureContentCollection/#waitingForResult) for results.
61
+ * Indicates if the component is active when it is visible and is not [waiting](https://developers.arcgis.com/javascript/latest/references/core/popup/FeaturesModel/#waitingForResult) for results.
62
62
  *
63
63
  * @default false
64
64
  */