@arcgis/map-components 6.0.0-next.33 → 6.0.0-next.35

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 (88) hide show
  1. package/dist/cdn/2TTSZF7O.js +2 -0
  2. package/dist/cdn/4UCQJWD2.js +2 -0
  3. package/dist/cdn/6UMEQS35.js +2 -0
  4. package/dist/cdn/7OLHJCFT.js +2 -0
  5. package/dist/cdn/AMRSK274.js +2 -0
  6. package/dist/cdn/{VXPGE37T.js → BABV4TXK.js} +1 -1
  7. package/dist/cdn/{2JXK3AW7.js → BCHHB4QH.js} +1 -1
  8. package/dist/cdn/D4UNIFIZ.js +2 -0
  9. package/dist/cdn/{LC2ZSIJY.js → DARVFHQE.js} +1 -1
  10. package/dist/cdn/{YME6EWHF.js → DNZXXP5C.js} +1 -1
  11. package/dist/cdn/{KWIZ45T7.js → F5N3YH5Z.js} +1 -1
  12. package/dist/cdn/{L3MJ5NAZ.js → GMN6YYZU.js} +1 -1
  13. package/dist/cdn/I6DE3NLP.js +2 -0
  14. package/dist/cdn/JKE3FA4Q.js +2 -0
  15. package/dist/cdn/JZTCF52M.js +2 -0
  16. package/dist/cdn/LZN3NDWX.js +2 -0
  17. package/dist/cdn/NZK2LVFA.js +2 -0
  18. package/dist/cdn/{2AMSAAH4.js → ODCD75PC.js} +1 -1
  19. package/dist/cdn/PTHNXKEA.js +2 -0
  20. package/dist/cdn/QVIQ66LA.js +2 -0
  21. package/dist/cdn/TRN35DVC.js +2 -0
  22. package/dist/cdn/{TEDWUEQ4.js → VTYQHAZN.js} +1 -1
  23. package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
  24. package/dist/cdn/index.js +1 -1
  25. package/dist/chunks/layer-list-next.js +49 -4
  26. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -2
  27. package/dist/components/arcgis-area-measurement-2d/customElement.js +2 -2
  28. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +2 -2
  29. package/dist/components/arcgis-area-measurement-3d/customElement.js +2 -2
  30. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +3 -0
  31. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +102 -101
  32. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -0
  33. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +87 -86
  34. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +2 -2
  35. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +2 -2
  36. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
  37. package/dist/components/arcgis-distance-measurement-2d/customElement.js +2 -2
  38. package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -2
  39. package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
  40. package/dist/components/arcgis-expand/customElement.js +13 -13
  41. package/dist/components/arcgis-exploratory-analysis/customElement.js +41 -38
  42. package/dist/components/arcgis-feature-expression/customElement.js +47 -47
  43. package/dist/components/arcgis-feature-next/customElement.js +5 -5
  44. package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -0
  45. package/dist/components/arcgis-layer-list-next/customElement.js +72 -71
  46. package/dist/components/arcgis-shadow-cast/customElement.d.ts +14 -2
  47. package/dist/components/arcgis-shadow-cast/customElement.js +53 -34
  48. package/dist/components/arcgis-shadow-cast/index.js +1 -0
  49. package/dist/components/arcgis-sketch/customElement.d.ts +6 -4
  50. package/dist/components/arcgis-sketch/customElement.js +177 -167
  51. package/dist/components/arcgis-table-list-next/customElement.d.ts +3 -0
  52. package/dist/components/arcgis-table-list-next/customElement.js +44 -43
  53. package/dist/components/arcgis-utility-network-picker/customElement.js +32 -31
  54. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +10 -4
  55. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +10 -9
  56. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +3 -0
  57. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +7 -7
  58. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -1
  59. package/dist/components/arcgis-view-popover/customElement.d.ts +65 -33
  60. package/dist/components/arcgis-view-popover/customElement.js +196 -108
  61. package/dist/components/arcgis-view-popover/index.js +1 -1
  62. package/dist/components/arcgis-volume-measurement/customElement.d.ts +2 -2
  63. package/dist/components/arcgis-volume-measurement/customElement.js +2 -2
  64. package/dist/docs/api.json +1 -1
  65. package/dist/docs/docs.json +1 -1
  66. package/dist/docs/vscode.html-custom-data.json +1 -1
  67. package/dist/docs/web-types.json +1 -1
  68. package/dist/loader.js +2 -2
  69. package/dist/types/lumina.d.ts +7 -7
  70. package/dist/types/preact.d.ts +7 -7
  71. package/dist/types/react.d.ts +7 -7
  72. package/dist/types/stencil.d.ts +7 -7
  73. package/package.json +8 -8
  74. package/dist/cdn/3NUN6DK3.js +0 -2
  75. package/dist/cdn/6FJUKYNB.js +0 -2
  76. package/dist/cdn/7Y6PADB5.js +0 -2
  77. package/dist/cdn/I5F7MVDT.js +0 -2
  78. package/dist/cdn/LNTE4FDB.js +0 -2
  79. package/dist/cdn/P5U37XIA.js +0 -2
  80. package/dist/cdn/PD4ELTMF.js +0 -2
  81. package/dist/cdn/RAADOJWX.js +0 -2
  82. package/dist/cdn/TEPHXOQ2.js +0 -2
  83. package/dist/cdn/TY4XRXLB.js +0 -2
  84. package/dist/cdn/UZ4VANCL.js +0 -2
  85. package/dist/cdn/W4BA3ECA.js +0 -2
  86. package/dist/cdn/XCDMOCWN.js +0 -2
  87. package/dist/cdn/ZEQHIKTN.js +0 -2
  88. /package/dist/cdn/{WFTJ4E4F.js → A6ANFEOT.js} +0 -0
@@ -22,6 +22,9 @@ import type { ReadonlyCollection } from "@arcgis/core/core/Collection.js";
22
22
  * The Table List (next) component provides a way to display a list of tables associated with a map or table collection.
23
23
  * It is the direct component migration of the TableList widget and is provided early for testing and feedback.
24
24
  *
25
+ * When `selectionMode` is `multiple`, use Ctrl or Cmd to toggle individual items and Shift to select a range.
26
+ * Selecting an item without a modifier replaces the current selection.
27
+ *
25
28
  * @since 5.2
26
29
  * @beta
27
30
  */
@@ -12,37 +12,38 @@ import { classes as P } from "@arcgis/toolkit/dom";
12
12
  import { generateGuid as N } from "@arcgis/toolkit/string";
13
13
  import { createRef as U, ref as x } from "lit/directives/ref.js";
14
14
  import { html as o } from "lit";
15
- import { u as A } from "../../chunks/useT9n.js";
15
+ import { u as A, s as S, a as B } from "../../chunks/layer-list-next.js";
16
+ import { u as R } from "../../chunks/useT9n.js";
16
17
  import { g } from "../../chunks/globalCss.js";
17
- import { m as B, b as R, r as k, e as S } from "../../chunks/layer-list-utils.js";
18
- import { ArcgisLayerListItem as G } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
19
- import { s as O, a as q } from "../../chunks/layer-list-next.js";
20
- import { c as H } from "../../chunks/css.js";
21
- import { m as V } from "../../chunks/useViewModel.js";
22
- const w = H, $ = "nested", j = V(E);
23
- class z extends _ {
18
+ import { m as k, b as G, r as O, e as q } from "../../chunks/layer-list-utils.js";
19
+ import { ArcgisLayerListItem as H } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
20
+ import { c as V } from "../../chunks/css.js";
21
+ import { m as j } from "../../chunks/useViewModel.js";
22
+ const w = V, $ = "nested", z = j(E);
23
+ class J extends _ {
24
24
  constructor() {
25
- super(...arguments), this.#t = null, this._rootGroupUid = `table-${N()}`, this._rootListRef = U(), this._selectedDragItemLayerUid = null, this.messages = A(), this.viewModel = j(this), this._canMove = ({ dragEl: e, fromEl: t, toEl: i }, s) => {
25
+ super(...arguments), this.#t = A(this), this.#i = null, this._rootGroupUid = `table-${N()}`, this._rootListRef = U(), this._selectedDragItemLayerUid = null, this.messages = R(), this.viewModel = z(this), this._canMove = ({ dragEl: e, fromEl: t, toEl: i }, s) => {
26
26
  const l = s === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, a = this.#e(e);
27
27
  if (!a || !("sortable" in a) || !a.sortable)
28
28
  return !1;
29
- const h = this.#e(t), d = this.#i(t), n = this.#e(i), m = this.#i(i), f = !!d && !!m && d === m, u = { selected: a, from: h, to: n }, p = t?.group, r = i?.group;
30
- return p && r && typeof l == "function" ? l(u) : f;
29
+ const h = this.#e(t), d = this.#s(t), n = this.#e(i), m = this.#s(i), u = !!d && !!m && d === m, f = { selected: a, from: h, to: n }, p = t?.group, r = i?.group;
30
+ return p && r && typeof l == "function" ? l(f) : u;
31
31
  }, this._onPanelOpen = () => {
32
32
  this.requestUpdate();
33
33
  }, this._onSelectedDragItemLayerUidChange = (e) => {
34
34
  this._selectedDragItemLayerUid = e;
35
35
  }, this._onTriggerAction = (e, t) => {
36
36
  this.triggerAction(e, t);
37
- }, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideStatusIndicators = !1, this.icon = "table", this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.map = this.viewModel.map, this.minDragEnabledItems = B, this.minFilterItems = R, this.selectedItems = new L(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.showTemporaryTableIndicators = !1, this.tables = this.viewModel.tables, this.arcgisClose = c(), this.arcgisFilterChange = c(), this.arcgisPropertyChange = F()("state"), this.arcgisReady = c(), this.arcgisSelectedItemsChange = c(), this.arcgisTableItemsChanged = c(), this.arcgisTriggerAction = T(() => this.viewModel, "trigger-action");
37
+ }, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideStatusIndicators = !1, this.icon = "table", this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.map = this.viewModel.map, this.minDragEnabledItems = k, this.minFilterItems = G, this.selectedItems = new L(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.showTemporaryTableIndicators = !1, this.tables = this.viewModel.tables, this.arcgisClose = c(), this.arcgisFilterChange = c(), this.arcgisPropertyChange = F()("state"), this.arcgisReady = c(), this.arcgisSelectedItemsChange = c(), this.arcgisTableItemsChanged = c(), this.arcgisTriggerAction = T(() => this.viewModel, "trigger-action");
38
38
  }
39
39
  static {
40
40
  this.properties = { _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, autoDestroyDisabled: 5, closed: 5, collapsed: 7, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, hideStatusIndicators: 5, icon: 1, label: 1, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, listModeDisabled: 5, map: 0, messageOverrides: 0, minDragEnabledItems: 9, minFilterItems: 9, referenceElement: 1, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, showTemporaryTableIndicators: 5, state: 32, tableItems: 32, tables: 0, view: 0 };
41
41
  }
42
42
  static {
43
- this.styles = [O, q];
43
+ this.styles = [S, B];
44
44
  }
45
45
  #t;
46
+ #i;
46
47
  get _visibleItems() {
47
48
  return this.tableItems?.filter((e) => !e.hidden && (this.showErrors || !e.error));
48
49
  }
@@ -73,11 +74,11 @@ class z extends _ {
73
74
  this.map || (this.viewModel.map = e);
74
75
  }, { initial: !0 }),
75
76
  y(() => this.viewModel.tableItems, "change", () => {
76
- k(this.selectedItems), this.arcgisTableItemsChanged.emit(), this.requestUpdate();
77
+ O(this.selectedItems), this.arcgisTableItemsChanged.emit(), this.requestUpdate();
77
78
  }, { initial: !0 }),
78
79
  y(() => this.selectedItems, "change", () => this.arcgisSelectedItemsChange.emit()),
79
80
  I(() => [this.viewModel.state, this.viewModel.totalItems], () => this.requestUpdate(), { initial: !0 }),
80
- I(() => [this.filterPredicate, this._rootListRef.value], () => this.#a())
81
+ I(() => [this.filterPredicate, this._rootListRef.value], () => this.#r())
81
82
  ]);
82
83
  }
83
84
  triggerAction(e, t) {
@@ -87,9 +88,9 @@ class z extends _ {
87
88
  if (e?.tagName.toLowerCase() === "calcite-list-item")
88
89
  return e.value;
89
90
  const t = e?.getAttribute("data-item");
90
- return t ? this.#l(t) : null;
91
+ return t ? this.#a(t) : null;
91
92
  }
92
- #l(e) {
93
+ #a(e) {
93
94
  const t = this.tableItems?.toArray() ?? [];
94
95
  for (; t.length; ) {
95
96
  const i = t.shift();
@@ -101,45 +102,45 @@ class z extends _ {
101
102
  }
102
103
  return null;
103
104
  }
104
- #i(e) {
105
+ #s(e) {
105
106
  return e?.getAttribute("data-layer-type") ?? null;
106
107
  }
107
- #a() {
108
+ #r() {
108
109
  const e = this._rootListRef.value;
109
110
  e && (e.filterPredicate = this.filterPredicate ? (t) => {
110
111
  const i = this.#e(t);
111
112
  return i ? this.filterPredicate(i) : !1;
112
113
  } : void 0);
113
114
  }
114
- #r(e) {
115
+ #o(e) {
115
116
  e.open = !1;
116
117
  }
117
- #o(e, t) {
118
+ #n(e, t) {
118
119
  e?.sort((i, s) => {
119
120
  const l = i.uid != null ? t.indexOf(i.uid) : -1, a = s.uid != null ? t.indexOf(s.uid) : -1;
120
121
  return l > a ? -1 : l < a ? 1 : 0;
121
122
  });
122
123
  }
123
- #n(e) {
124
+ #d(e) {
124
125
  const { fromEl: t, dragEl: i, oldIndex: s } = e;
125
126
  s == null || !t || !i || t.insertBefore(i, t.children[s]);
126
127
  }
127
- #d(e) {
128
- const t = this.#t, { toEl: i, fromEl: s, dragEl: l, newIndex: a } = e, h = t?.newIndex === a && t?.dragEl === l && t?.toEl === i && t?.fromEl === s;
128
+ #h(e) {
129
+ const t = this.#i, { toEl: i, fromEl: s, dragEl: l, newIndex: a } = e, h = t?.newIndex === a && t?.dragEl === l && t?.toEl === i && t?.fromEl === s;
129
130
  if (!s || !i || h)
130
131
  return;
131
- this.#t = e, this._selectedDragItemLayerUid = l.value;
132
+ this.#i = e, this._selectedDragItemLayerUid = l.value;
132
133
  const d = Array.from(s.children).filter((n) => n?.matches("calcite-list-item")).map((n) => n.value.layer?.uid ?? "");
133
- this.#o(this.map?.tables, d);
134
+ this.#n(this.map?.tables, d);
134
135
  }
135
- #h(e) {
136
+ #c(e) {
136
137
  const { selectionMode: t, selectedItems: i } = this;
137
138
  if (t === "none")
138
139
  return;
139
140
  const s = e.target.selectedItems.map((l) => this.#e(l)).filter(Boolean);
140
141
  i.removeAll(), i.addMany(s);
141
142
  }
142
- #c() {
143
+ #m() {
143
144
  this.closed = !0, this.arcgisClose.emit(), this.autoDestroyDisabled || this.destroy();
144
145
  }
145
146
  render() {
@@ -147,36 +148,36 @@ class z extends _ {
147
148
  [g.hidden]: e === "loading",
148
149
  [g.disabled]: e === "disabled"
149
150
  };
150
- return o`<div class=${b(P(g.widget, g.panel, t))}>${this.#g()}</div>`;
151
+ return o`<div class=${b(P(g.widget, g.panel, t))}>${this.#f()}</div>`;
151
152
  }
152
- #s() {
153
+ #l() {
153
154
  return o`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
154
155
  }
155
- #m() {
156
- return this.hideNoItemsNotice ? null : o`<div class=${b(w.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#s()}</calcite-notice></div>`;
157
- }
158
156
  #u() {
157
+ return this.hideNoItemsNotice ? null : o`<div class=${b(w.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#l()}</calcite-notice></div>`;
158
+ }
159
+ #g() {
159
160
  return C(this._openedPanelItems.toArray(), (e) => e.uid, (e, t) => {
160
- const { panel: i, title: s } = e, l = () => this.#r(i);
161
+ const { panel: i, title: s } = e, l = () => this.#o(i);
161
162
  return o`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${t === this._openedPanelItems.length - 1} @calciteFlowItemBack=${(a) => {
162
163
  a.preventDefault(), l();
163
164
  }}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`;
164
165
  });
165
166
  }
166
- #g() {
167
- const { collapsed: e, _visibleItems: t, _filterEnabled: i, _rootGroupUid: s, showCloseButton: l, showCollapseButton: a, showHeading: h, _dragEnabled: d, selectionMode: n, filterText: m, filterPlaceholder: f, messages: u } = this, p = [
168
- o`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${a} .heading=${h ? this.label ?? u.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!this._openedPanelItems.length} @calciteFlowItemClose=${() => this.#c()}>${t?.length ? o`<calcite-list .canPull=${(r) => this._canMove(r, "pull")} .canPut=${(r) => this._canMove(r, "put")} data-layer-type=${s ?? D} .displayMode=${$} .dragEnabled=${d} .filterEnabled=${i} .filterPlaceholder=${f} .filterProps=${S} .filterText=${i ? m : ""} .group=${s} .label=${this.label ?? u.componentLabel} selection-appearance=border .selectionMode=${n} @calciteListChange=${this.#h} @calciteListDragEnd=${(r) => this.#n(r.detail)} @calciteListFilter=${(r) => {
167
+ #f() {
168
+ const { collapsed: e, _visibleItems: t, _filterEnabled: i, _rootGroupUid: s, showCloseButton: l, showCollapseButton: a, showHeading: h, _dragEnabled: d, filterText: n, filterPlaceholder: m, messages: u } = this, f = this.#t.selectionMode, p = [
169
+ o`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${a} .heading=${h ? this.label ?? u.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!this._openedPanelItems.length} @calciteFlowItemClose=${() => this.#m()}>${t?.length ? o`<calcite-list .canPull=${(r) => this._canMove(r, "pull")} .canPut=${(r) => this._canMove(r, "put")} data-layer-type=${s ?? D} .displayMode=${$} .dragEnabled=${d} .filterEnabled=${i} .filterPlaceholder=${m} .filterProps=${q} .filterText=${i ? n : ""} .group=${s} .label=${this.label ?? u.componentLabel} selection-appearance=border .selectionMode=${f} @calciteListChange=${this.#c} @calciteListDragEnd=${(r) => this.#d(r.detail)} @calciteListFilter=${(r) => {
169
170
  this.filterText = r.currentTarget?.filterText ?? "", this.arcgisFilterChange.emit();
170
- }} @calciteListOrderChange=${(r) => this.#d(r.detail)} ${x(this._rootListRef)}>${t.toArray().map((r) => this.#f(r))}${i && !this.hideNoFilterResultsNotice ? o`<div class=${b(w.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#s()}</calcite-notice></div>` : null}</calcite-list>` : this.#m()}</calcite-flow-item>`,
171
- this.#u()
171
+ }} @calciteListOrderChange=${(r) => this.#h(r.detail)} ${x(this._rootListRef)}>${t.toArray().map((r) => this.#p(r))}${i && !this.hideNoFilterResultsNotice ? o`<div class=${b(w.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#l()}</calcite-notice></div>` : null}</calcite-list>` : this.#u()}</calcite-flow-item>`,
172
+ this.#g()
172
173
  ];
173
174
  return this.closed ? null : v("root-flow", o`<calcite-flow>${p}</calcite-flow>`);
174
175
  }
175
- #f(e) {
176
- return v(e.uid, G({ canMove: this._canMove, css: w, displayMode: $, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, item: e, itemType: "table", listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, showErrors: this.showErrors, showFilter: this.showFilter, showTemporaryTableIndicators: this.showTemporaryTableIndicators, handleAction: (t, i) => this._onTriggerAction(t, i), handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, view: this.view }));
176
+ #p(e) {
177
+ return v(e.uid, H({ canMove: this._canMove, css: w, displayMode: $, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, item: e, itemType: "table", listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.#t.selectionMode, showErrors: this.showErrors, showFilter: this.showFilter, showTemporaryTableIndicators: this.showTemporaryTableIndicators, handleAction: (t, i) => this._onTriggerAction(t, i), handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, view: this.view }));
177
178
  }
178
179
  }
179
- M("arcgis-table-list-next", z);
180
+ M("arcgis-table-list-next", J);
180
181
  export {
181
- z as ArcgisTableListNext
182
+ J as ArcgisTableListNext
182
183
  };
@@ -1,27 +1,27 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c } from "../../chunks/runtime.js";
3
- import h from "@arcgis/core/core/Collection.js";
4
- import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
5
- import { LitElement as n, createEvent as m } from "@arcgis/lumina";
6
- import { usePropertyChange as g } from "@arcgis/lumina/controllers";
7
- import { log as o } from "@arcgis/toolkit/log";
8
- import { css as w, html as s } from "lit";
9
- import { l } from "../../chunks/async-utils.js";
10
- import { u as y } from "../../chunks/useT9n.js";
11
- const k = w`:host{height:100%;flex-grow:1}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-label,calcite-notice){margin:0 var(--calcite-space-md) var(--calcite-space-md)}calcite-block :last-child{margin-bottom:0}calcite-notice{margin:var(--calcite-space-md)}`;
12
- class u extends n {
2
+ import { c as h } from "../../chunks/runtime.js";
3
+ import d from "@arcgis/core/core/Collection.js";
4
+ import { watch as n } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as m, createEvent as g } from "@arcgis/lumina";
6
+ import { usePropertyChange as w } from "@arcgis/lumina/controllers";
7
+ import { log as l } from "@arcgis/toolkit/log";
8
+ import { css as y, html as o } from "lit";
9
+ import { l as a } from "../../chunks/async-utils.js";
10
+ import { u as k } from "../../chunks/useT9n.js";
11
+ const b = y`:host{height:100%;flex-grow:1}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-label,calcite-notice){margin:0 var(--calcite-space-md) var(--calcite-space-md)}calcite-block :last-child{margin-bottom:0}calcite-notice{margin:var(--calcite-space-md)}`;
12
+ class u extends m {
13
13
  constructor() {
14
- super(...arguments), this._messages = y({ blocking: !0 }), this.hideErrors = !1, this.hideLoader = !1, this.state = "loading", this.arcgisPropertyChange = g()("selectedUtilityNetwork", "state"), this.arcgisError = m();
14
+ super(...arguments), this._messages = k({ blocking: !0 }), this.hideErrors = !1, this.hideLoader = !1, this.state = "loading", this.arcgisPropertyChange = w()("selectedUtilityNetwork", "state"), this.arcgisError = g();
15
15
  }
16
16
  static {
17
17
  this.properties = { _utilityNetworks: 16, view: 0, messageOverrides: 0, hideErrors: 5, hideLoader: 5, state: 1, error: 1, selectedUtilityNetwork: 0, heading: 1 };
18
18
  }
19
19
  static {
20
- this.styles = k;
20
+ this.styles = b;
21
21
  }
22
22
  load() {
23
23
  this.#e(), this.manager.onLifecycle(() => [
24
- d(() => this.view?.map, () => this.#e())
24
+ n(() => this.view?.map, () => this.#e())
25
25
  ]);
26
26
  }
27
27
  willUpdate(t) {
@@ -35,7 +35,7 @@ class u extends n {
35
35
  }
36
36
  #e() {
37
37
  if (this.error = void 0, this.state = "loading", !this.view?.map) {
38
- o("error", this, this._messages.errors.noView), this._utilityNetworks = void 0, this.#t(this._messages.errors.noView);
38
+ l("error", this, this._messages.errors.noView), this._utilityNetworks = void 0, this.#t(this._messages.errors.noView);
39
39
  return;
40
40
  }
41
41
  const t = this.view.map;
@@ -43,52 +43,53 @@ class u extends n {
43
43
  }
44
44
  async #r(t) {
45
45
  try {
46
- t.loaded || await t.load();
46
+ t.loaded || await t.load(), this._utilityNetworks = t.utilityNetworks || new d();
47
47
  } catch (e) {
48
- this.#t(this._messages.errors.mapLoadFailed), l(e, this, this._messages.errors.mapLoadFailed);
49
- } finally {
50
- this._utilityNetworks = t.utilityNetworks || new h();
48
+ this.#t(this._messages.errors.mapLoadFailed), a(e, this, this._messages.errors.mapLoadFailed);
51
49
  }
52
50
  }
53
51
  #s() {
54
52
  const { selectedUtilityNetwork: t, _utilityNetworks: e } = this;
55
- e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0), this.arcgisPropertyChange.emit({ name: "selectedUtilityNetwork" })) : (this.#t(this._messages.errors.noUtilityNetwork), o("error", this, this._messages.errors.noUtilityNetwork), this.selectedUtilityNetwork = void 0);
53
+ e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0), this.arcgisPropertyChange.emit({ name: "selectedUtilityNetwork" })) : (this.#t(this._messages.errors.noUtilityNetwork), l("error", this, this._messages.errors.noUtilityNetwork), this.selectedUtilityNetwork = void 0);
56
54
  }
57
55
  async #o() {
58
56
  const { selectedUtilityNetwork: t } = this;
59
57
  try {
60
58
  t && !t.loaded && (this.state = "loading", await t.load()), this.#i();
61
59
  } catch (e) {
62
- l(e, this, this._messages.errors.utilityNetworkLoadFailed), this.#t(this._messages.errors.utilityNetworkLoadFailed);
60
+ a(e, this, this._messages.errors.utilityNetworkLoadFailed), this.#t(this._messages.errors.utilityNetworkLoadFailed);
63
61
  }
64
62
  }
65
63
  #l() {
66
- return this.hideLoader ? null : s`<calcite-loader label=loading></calcite-loader>`;
64
+ return this.hideLoader ? null : o`<calcite-loader label=loading></calcite-loader>`;
67
65
  }
68
66
  #a(t, e = !1, i) {
69
- return this.hideErrors ? null : s`<calcite-notice .closable=${e} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${t}</div></calcite-notice>`;
67
+ return this.hideErrors ? null : o`<calcite-notice .closable=${e} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${t}</div></calcite-notice>`;
70
68
  }
71
69
  #c() {
72
- const t = this._messages.labels.utilityNetwork, e = this._utilityNetworks?.map((i) => s`<calcite-combobox-item .value=${i.id} .heading=${i.title || i.id} .selected=${i.id === this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);
73
- return s`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: i }) => {
70
+ const t = this._messages.labels.utilityNetwork, e = this._utilityNetworks?.map((i) => o`<calcite-combobox-item .value=${i.id} .heading=${i.title || i.id} .selected=${i.id === this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);
71
+ return o`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: i }) => {
74
72
  const r = i.selectedItems[0]?.value;
75
- this.selectedUtilityNetwork?.id !== r && (this.selectedUtilityNetwork = this._utilityNetworks?.find((a) => a.id === r));
73
+ this.selectedUtilityNetwork?.id !== r && (this.selectedUtilityNetwork = this._utilityNetworks?.find((s) => s.id === r));
76
74
  }}>${e}</calcite-combobox>`;
77
75
  }
78
76
  #h() {
79
77
  const { selectedUtilityNetwork: t } = this;
80
- return s`<calcite-label>${t?.title}</calcite-label>`;
78
+ return o`<calcite-label>${t?.title}</calcite-label>`;
81
79
  }
82
80
  #d(t) {
83
81
  const e = this._messages.labels.utilityNetwork, i = this.heading || e, r = this._utilityNetworks?.length ? this._utilityNetworks?.length === 1 ? this.#h() : this.#c() : void 0;
84
- return s`<calcite-block .heading=${i} .label=${e} expanded>${r}${t}</calcite-block>`;
82
+ return o`<calcite-block .heading=${i} .label=${e} expanded>${r}${t}</calcite-block>`;
85
83
  }
86
84
  render() {
87
- const { error: t, state: e, selectedUtilityNetwork: i } = this, r = e === "error" && t ? this.#a(t, !1, "exclamation-mark-triangle") : void 0;
88
- return !r && !i?.loaded && !i?.loadError ? this.#l() : e === "error" && r && !this._utilityNetworks?.length ? r : this.#d(r);
85
+ const { error: t, state: e, selectedUtilityNetwork: i, _messages: r } = this, s = e === "error" && t ? this.#a(t, !1, "exclamation-mark-triangle") : void 0;
86
+ if (!s && !i?.loaded && !i?.loadError)
87
+ return this.#l();
88
+ const c = t === r.errors.mapLoadFailed || t === r.errors.noView || t === r.errors.noUtilityNetwork;
89
+ return e === "error" && s && c ? s : this.#d(s);
89
90
  }
90
91
  }
91
- c("arcgis-utility-network-picker", u);
92
+ h("arcgis-utility-network-picker", u);
92
93
  export {
93
94
  u as ArcgisUtilityNetworkPicker
94
95
  };
@@ -16,8 +16,6 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
16
16
  * [traceConfigurations](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#traceConfigurations).
17
17
  * The component displays a title for a single configuration or a
18
18
  * [combobox](https://developers.arcgis.com/calcite-design-system/components/combobox/) for multiple configurations.
19
- * Changing the list resets the selection to the first configuration backed by a
20
- * [UNTraceConfiguration](https://developers.arcgis.com/javascript/latest/references/core/networks/support/UNTraceConfiguration/).
21
19
  *
22
20
  * Read [selectedNamedTraceConfiguration](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#selectedNamedTraceConfiguration)
23
21
  * for the selection and [traceConfiguration](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#traceConfiguration)
@@ -25,6 +23,12 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
25
23
  * select a compatible subnetwork. The component also displays available domain network,
26
24
  * tier, and target tier names for subnetwork-related trace types. This component does not execute traces.
27
25
  *
26
+ * Changing the [traceConfiguration](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#traceConfiguration)
27
+ * list preserves the [selectedNamedTraceConfiguration](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#selectedNamedTraceConfiguration)
28
+ * if it is still included in the new list.
29
+ * Otherwise, the component selects the first configuration backed by a
30
+ * [UNTraceConfiguration](https://developers.arcgis.com/javascript/latest/references/core/networks/support/UNTraceConfiguration/).
31
+ *
28
32
  * Customize the display with [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#heading),
29
33
  * [hideSubnetworkInfo](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#hideSubnetworkInfo),
30
34
  * [hideErrors](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#hideErrors), and
@@ -157,6 +161,7 @@ export abstract class ArcgisUtilityNetworkTraceConfigurationPicker extends LitEl
157
161
  * [traceConfigurations](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#traceConfigurations)
158
162
  * to select it programmatically. Selecting a configuration creates a new
159
163
  * [traceConfiguration](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#traceConfiguration) clone.
164
+ * An initial selection is preserved when it is included in the available configurations.
160
165
  */
161
166
  accessor selectedNamedTraceConfiguration: NamedTraceConfiguration | undefined;
162
167
  /**
@@ -191,9 +196,10 @@ export abstract class ArcgisUtilityNetworkTraceConfigurationPicker extends LitEl
191
196
  * from the utility network or map. For example, assign the loaded utility network's
192
197
  * [sharedNamedTraceConfigurations](https://developers.arcgis.com/javascript/latest/references/core/networks/UtilityNetwork/#sharedNamedTraceConfigurations).
193
198
  *
194
- * Changing this array resets
199
+ * Changing this array preserves
195
200
  * [selectedNamedTraceConfiguration](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-configuration-picker/#selectedNamedTraceConfiguration)
196
- * to the first entry backed by a `UNTraceConfiguration`. An empty array displays an error.
201
+ * if it is still included. Otherwise, the first entry backed by a `UNTraceConfiguration` is selected.
202
+ * An empty array clears the selection and displays an error.
197
203
  *
198
204
  * @required
199
205
  * @example
@@ -7,7 +7,7 @@ import { css as g, html as r } from "lit";
7
7
  import { log as l } from "@arcgis/toolkit/log";
8
8
  import { usePropertyChange as f } from "@arcgis/lumina/controllers";
9
9
  import { q as k } from "../../chunks/layer-utils.js";
10
- const w = g`:host{height:100%;flex-grow:1}.subnetwork-details{border-radius:var(--calcite-border-radius);border:solid 1px var(--calcite-color-border-3)}.key-value-pair{padding:var(--calcite-space-sm)}.key-value-pair__key{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3)}.key-value-pair__value{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-input,calcite-label,calcite-notice){margin:0 var(--calcite-space-md)}calcite-block>:is(calcite-combobox,calcite-input,calcite-notice):not(:last-child){margin-bottom:var(--calcite-space-md)}calcite-block calcite-input-message{padding:var(--calcite-space-sm) var(--calcite-space-md) 0}calcite-notice{margin:var(--calcite-space-md)}#subnetwork-info-block{margin:var(--calcite-space-md) var(--calcite-space-md) 0}.inline-loader{--calcite-loader-spacing: var(--calcite-space-md)}`, p = 20, C = /* @__PURE__ */ new Set(["subnetwork", "subnetwork-controller", "upstream", "downstream", "isolation"]);
10
+ const w = g`:host{height:100%;flex-grow:1}.subnetwork-details{border-radius:var(--calcite-border-radius);border:solid 1px var(--calcite-color-border-3)}.key-value-pair{padding:var(--calcite-space-sm)}.key-value-pair__key{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3)}.key-value-pair__value{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-input,calcite-label,calcite-notice){margin:0 var(--calcite-space-md)}calcite-block>:is(calcite-combobox,calcite-input,calcite-notice):not(:last-child){margin-bottom:var(--calcite-space-md)}calcite-block calcite-input-message{padding:var(--calcite-space-sm) var(--calcite-space-md) 0}calcite-notice{margin:var(--calcite-space-md)}#subnetwork-info-block{margin:var(--calcite-space-md) var(--calcite-space-md) 0}.inline-loader{--calcite-loader-spacing: var(--calcite-space-md)}`, C = 20, p = /* @__PURE__ */ new Set(["subnetwork", "subnetwork-controller", "upstream", "downstream", "isolation"]);
11
11
  class N extends d {
12
12
  constructor() {
13
13
  super(...arguments), this._messages = b({ blocking: !0 }), this._subnetworkNamesState = "ready", this._compatibleSubnetworkNames = [], this.traceConfigurations = [], this.hideSubnetworkInfo = !1, this.hideErrors = !1, this.state = "ready", this.arcgisPropertyChange = f()("selectedNamedTraceConfiguration", "traceConfiguration"), this.arcgisError = h();
@@ -29,18 +29,18 @@ class N extends d {
29
29
  return !!e?.traceConfiguration?.subnetworkName && e?.traceType === "subnetwork";
30
30
  }
31
31
  willUpdate(e) {
32
- e.has("utilityNetwork") && this.#u(), e.has("traceConfigurations") && this.#m(), e.has("selectedNamedTraceConfiguration") && this.#o();
32
+ e.has("traceConfigurations") && this.#m(), e.has("utilityNetwork") && (this.#u(), !e.has("selectedNamedTraceConfiguration") && this.isSubnetworkNameTraceSelected && this.traceConfiguration && this.#o(this.traceConfiguration)), e.has("selectedNamedTraceConfiguration") && this.#s();
33
33
  }
34
- async #o() {
34
+ async #s() {
35
35
  const { selectedNamedTraceConfiguration: e } = this;
36
36
  if (!e || !(e.traceConfiguration instanceof c)) {
37
37
  this.#t(e ? this._messages.errors.noTraceConfiguration : this._messages.errors.traceConfigurationNotFound), this.traceConfiguration = void 0, this.arcgisPropertyChange.emit({ name: "traceConfiguration" });
38
38
  return;
39
39
  }
40
- this.#i(), this.traceConfiguration = e.traceConfiguration.clone(), this.arcgisPropertyChange.emit({ name: "selectedNamedTraceConfiguration" }), this.arcgisPropertyChange.emit({ name: "traceConfiguration" }), this.isSubnetworkNameTraceSelected && (this._subnetworkNamesState = "loading", this.state = "loading", await this.#s(this.traceConfiguration), this._subnetworkNamesState = "ready", this.state = "ready");
40
+ this.#i(), this.traceConfiguration = e.traceConfiguration.clone(), this.arcgisPropertyChange.emit({ name: "selectedNamedTraceConfiguration" }), this.arcgisPropertyChange.emit({ name: "traceConfiguration" }), this.isSubnetworkNameTraceSelected && await this.#o(this.traceConfiguration);
41
41
  }
42
- async #s(e) {
43
- await this.#n(), await this.#c(), e.subnetworkName && !this._compatibleSubnetworkNames.some((t) => t === e.subnetworkName) && (this.#e = this._compatibleSubnetworkNames.at(0));
42
+ async #o(e) {
43
+ this._subnetworkNamesState = "loading", this.state = "loading", await this.#n(), await this.#c(), e.subnetworkName && !this._compatibleSubnetworkNames.some((t) => t === e.subnetworkName) && (this.#e = this._compatibleSubnetworkNames.at(0)), this._subnetworkNamesState = "ready", this.state = "ready";
44
44
  }
45
45
  async #n() {
46
46
  this._subnetworksTable || (this._subnetworksTable = await this.utilityNetwork?.loadSubnetworksTable());
@@ -62,7 +62,8 @@ class N extends d {
62
62
  this.#e = void 0, this._subnetworksTable = void 0, this._compatibleSubnetworkNames = [];
63
63
  }
64
64
  #m() {
65
- this.traceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this.traceConfigurations.length ? (this.#i(), this.selectedNamedTraceConfiguration = this.traceConfigurations.find((e) => e.traceConfiguration instanceof c) ?? this.traceConfigurations.at(0)) : this.#t(this._messages.errors.noTraceConfigurations);
65
+ const { selectedNamedTraceConfiguration: e } = this;
66
+ this.traceConfigurations.length ? (!e || !this.traceConfigurations.includes(e)) && (this.#i(), this.selectedNamedTraceConfiguration = this.traceConfigurations.find((t) => t.traceConfiguration instanceof c) ?? this.traceConfigurations.at(0)) : (this.traceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this.#t(this._messages.errors.noTraceConfigurations));
66
67
  }
67
68
  #t(e) {
68
69
  l("error", this, e), this.error = e, this.state = "error", this.arcgisError.emit();
@@ -106,7 +107,7 @@ class N extends d {
106
107
  }
107
108
  #f() {
108
109
  const { _messages: e } = this, t = e.labels.subnetworkName;
109
- return this.isSubnetworkNameTraceSelected ? this._subnetworkNamesState === "loading" ? r`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : this._compatibleSubnetworkNames.length ? r`<calcite-block .heading=${t} .label=${t} expanded>${this._compatibleSubnetworkNames.length > p ? this.#k() : this.#w()}</calcite-block>` : this.#r(e.errors.noCompatibleSubnetworks) : null;
110
+ return this.isSubnetworkNameTraceSelected ? this._subnetworkNamesState === "loading" ? r`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : this._compatibleSubnetworkNames.length ? r`<calcite-block .heading=${t} .label=${t} expanded>${this._compatibleSubnetworkNames.length > C ? this.#k() : this.#w()}</calcite-block>` : this.#r(e.errors.noCompatibleSubnetworks) : null;
110
111
  }
111
112
  #k() {
112
113
  const { _messages: e } = this;
@@ -119,7 +120,7 @@ class N extends d {
119
120
  }}>${this._compatibleSubnetworkNames.map((e) => r`<calcite-combobox-item .value=${e} .heading=${e} .selected=${e === this.#e}></calcite-combobox-item>`)}</calcite-combobox>`;
120
121
  }
121
122
  render() {
122
- const { selectedNamedTraceConfiguration: e } = this, i = e?.traceType && C.has(e.traceType) ? r`${this.#g()}${this.#f()}` : null;
123
+ const { selectedNamedTraceConfiguration: e } = this, i = e?.traceType && p.has(e.traceType) ? r`${this.#g()}${this.#f()}` : null;
123
124
  return r`${this.#b()}${i}`;
124
125
  }
125
126
  }
@@ -308,6 +308,9 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
308
308
  * The [named trace configuration](https://doc.esri.com/en/arcgis-pro/latest/help/data/utility-network/about-trace-configurations.html)
309
309
  * to use. It determines the trace type and its settings.
310
310
  * Users choose one in the component's trace configuration picker.
311
+ * Set this property to one of the selected utility network's shared named trace configurations
312
+ * to select it programmatically, including before the component or utility network finishes loading.
313
+ * The selection is preserved when it is included in the available configurations.
311
314
  */
312
315
  accessor selectedNamedTraceConfiguration: NamedTraceConfiguration | undefined;
313
316
  /**
@@ -93,7 +93,7 @@ class L extends y {
93
93
  #C(e) {
94
94
  e.stopPropagation(), this.arcgisTriggerAction.emit(e.detail);
95
95
  }
96
- #S({ detail: e, target: t }) {
96
+ #N({ detail: e, target: t }) {
97
97
  (e.name === "selectedDrillInFeature" || e.name === "selectedFeature") && (this._selectedFeature = t.selectedDrillInFeature ?? t.selectedFeature ?? void 0);
98
98
  }
99
99
  #b() {
@@ -102,10 +102,10 @@ class L extends y {
102
102
  return;
103
103
  }
104
104
  }
105
- #_(e) {
105
+ #S(e) {
106
106
  e && (this.#f = e);
107
107
  }
108
- #N(e) {
108
+ #_(e) {
109
109
  e && (this.#y = e);
110
110
  }
111
111
  #F(e) {
@@ -144,7 +144,7 @@ class L extends y {
144
144
  this.#m(this.#i), this.#h ? this.#m(this.#e) : this.#c(this.#e), this.#u ? this.#m(this.#t) : this.#c(this.#t);
145
145
  }
146
146
  #U() {
147
- this._traceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this._namedTraceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [];
147
+ this._namedTraceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [], (!this.selectedNamedTraceConfiguration || !this._namedTraceConfigurations.includes(this.selectedNamedTraceConfiguration)) && (this._traceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0);
148
148
  }
149
149
  #E() {
150
150
  const { selectedUtilityNetwork: e } = this;
@@ -228,7 +228,7 @@ class L extends y {
228
228
  }
229
229
  #j() {
230
230
  const { _namedTraceConfigurations: e, selectedUtilityNetwork: t } = this;
231
- return r`<arcgis-utility-network-trace-configuration-picker .messageOverrides=${this.messageOverrides} .traceConfigurations=${e} .utilityNetwork=${t} @arcgisPropertyChange=${(i) => {
231
+ return r`<arcgis-utility-network-trace-configuration-picker .messageOverrides=${this.messageOverrides} .selectedNamedTraceConfiguration=${this.selectedNamedTraceConfiguration} .traceConfigurations=${e} .utilityNetwork=${t} @arcgisPropertyChange=${(i) => {
232
232
  i.stopPropagation(), i.detail.name === "selectedNamedTraceConfiguration" ? (this.selectedNamedTraceConfiguration = i.target.selectedNamedTraceConfiguration, this.#D()) : i.detail.name === "traceConfiguration" && (this._traceConfiguration = i.target.traceConfiguration);
233
233
  }}></arcgis-utility-network-trace-configuration-picker>`;
234
234
  }
@@ -252,7 +252,7 @@ class L extends y {
252
252
  if (!t.length)
253
253
  return this.mode = "default", null;
254
254
  const a = e === "starting-point" ? i.labels.addSpatial.startingPoint : e === "barrier" ? i.labels.addSpatial.barrier : i.labels.addSpatial.stoppingPoint, s = t.length === 1 ? "feature" : "list";
255
- return r`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#n} .features=${this._candidateFeatures} .featureMenuTitle=${a} .hideActionBar=${this.hideActionBar} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .initialDisplayMode=${s} .messageOverrides=${this.messageOverrides} @arcgisClose=${() => this.#v()} @arcgisPropertyChange=${this.#S} @arcgisTriggerAction=${this.#C} open .referenceElement=${this.referenceElement} .view=${this.view} ${h(this.#P)}></arcgis-features-next>`;
255
+ return r`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#n} .features=${this._candidateFeatures} .featureMenuTitle=${a} .hideActionBar=${this.hideActionBar} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .initialDisplayMode=${s} .messageOverrides=${this.messageOverrides} @arcgisClose=${() => this.#v()} @arcgisPropertyChange=${this.#N} @arcgisTriggerAction=${this.#C} open .referenceElement=${this.referenceElement} .view=${this.view} ${h(this.#P)}></arcgis-features-next>`;
256
256
  }
257
257
  #W() {
258
258
  const { mode: e, _messages: t, _selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = g(t.warnings.exceededDisplayLimit, {
@@ -264,7 +264,7 @@ class L extends y {
264
264
  return r`<arcgis-utility-network-trace-locations .messageOverrides=${this.messageOverrides} .view=${this.view} .traceLocationType=${e} .beforeMapInteraction=${this.beforeMapInteraction} @arcgisTraceLocationSelectStart=${this.#I} @arcgisTraceLocationSelectEnd=${this.#V} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#l} .traceLocations=${t} .afterMapInteraction=${this.#O.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(i)}></arcgis-utility-network-trace-locations>`;
265
265
  }
266
266
  #J() {
267
- const { _messages: e } = this, t = this.#q(), i = this.#j(), a = this.#k ? r`${this.#h ? this.#g("starting-point", this.#e, this.#_) : null}${this.#u ? this.#g("stopping-point", this.#t, this.#F) : null}${this.#g("barrier", this.#i, this.#N)}` : null, s = this.selectedUtilityNetwork?.loaded ? r`${i}${a}` : null;
267
+ const { _messages: e } = this, t = this.#q(), i = this.#j(), a = this.#k ? r`${this.#h ? this.#g("starting-point", this.#e, this.#S) : null}${this.#u ? this.#g("stopping-point", this.#t, this.#F) : null}${this.#g("barrier", this.#i, this.#_)}` : null, s = this.selectedUtilityNetwork?.loaded ? r`${i}${a}` : null;
268
268
  return r`<calcite-block-group .label=${e.labels.traceInputs}>${t}${s}</calcite-block-group>`;
269
269
  }
270
270
  render() {
@@ -105,7 +105,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
105
105
  * @see [arcgis-utility-network-trace-aggregated-geometry-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/)
106
106
  * @see [arcgis-utility-network-trace-elements-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/)
107
107
  * @see [arcgis-utility-network-trace-functions-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-functions-result-item/)
108
- * @see [Trace a utility network](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/trace-utility-network.htm)
108
+ * @see [Trace utility networks](https://doc.esri.com/en/arcgis-pro/latest/help/data/utility-network/about-tracing-utility-networks.html)
109
109
  * @see [Result types](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/configure-a-trace.htm#ESRI_SECTION1_9F21343F66554B65B42A3359477D0D2E)
110
110
  */
111
111
  export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {