@arcgis/map-components 6.0.0-next.14 → 6.0.0-next.16

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 (134) hide show
  1. package/dist/cdn/33B22YZ5.js +2 -0
  2. package/dist/cdn/{NWCS3WJE.js → 35YLXOQ5.js} +1 -1
  3. package/dist/cdn/4XEZYOW7.js +2 -0
  4. package/dist/cdn/{OL5Z5MUQ.js → 54252KWO.js} +1 -1
  5. package/dist/cdn/{IZ3VMFW6.js → 5VXEMMLV.js} +1 -1
  6. package/dist/cdn/{UUBJR2VN.js → AI3ETXGZ.js} +1 -1
  7. package/dist/cdn/{OS3TKP63.js → AQ4GVWNJ.js} +1 -1
  8. package/dist/cdn/AWB7XOHF.js +2 -0
  9. package/dist/cdn/BYYCKI2P.js +2 -0
  10. package/dist/cdn/C2YP473B.js +2 -0
  11. package/dist/cdn/DUKK2PHD.js +2 -0
  12. package/dist/cdn/{I2VQOWJL.js → ECYWLMDD.js} +1 -1
  13. package/dist/cdn/FFVPO4JB.js +2 -0
  14. package/dist/cdn/{OS736MCE.js → FUJYJKDU.js} +1 -1
  15. package/dist/cdn/{SWWJXGPV.js → GFYLYX2V.js} +1 -1
  16. package/dist/cdn/GMEXAEOI.js +2 -0
  17. package/dist/cdn/H7QBBTTP.js +2 -0
  18. package/dist/cdn/{CDCI4EQR.js → HZDWPWBH.js} +1 -1
  19. package/dist/cdn/JB6WQEFJ.js +2 -0
  20. package/dist/cdn/{KJNU4Q25.js → JVC5XNYJ.js} +1 -1
  21. package/dist/cdn/LYYBCY4N.js +2 -0
  22. package/dist/cdn/{TMQVC4YN.js → NMGC3KRM.js} +1 -1
  23. package/dist/cdn/NU75HQA2.js +2 -0
  24. package/dist/cdn/{B2UZB5MB.js → NUZBBPNE.js} +2 -2
  25. package/dist/cdn/{JC24VBLE.js → ODSZ7JZM.js} +1 -1
  26. package/dist/cdn/{VWEJ2XSC.js → P3AEIHWE.js} +1 -1
  27. package/dist/cdn/QCYQNVPL.js +2 -0
  28. package/dist/cdn/{ARHQMHUP.js → SAIBFBPE.js} +1 -1
  29. package/dist/cdn/U6NHJKIM.js +2 -0
  30. package/dist/cdn/VYM3TR3Q.js +2 -0
  31. package/dist/cdn/WC2N2XG6.js +2 -0
  32. package/dist/cdn/ZDLHDQCX.js +2 -0
  33. package/dist/cdn/ZIQRARXE.js +2 -0
  34. package/dist/cdn/{Y56CR5OU.js → ZS5IADYN.js} +1 -1
  35. package/dist/cdn/index.js +1 -1
  36. package/dist/chunks/loader-utils.js +41 -0
  37. package/dist/chunks/resources.js +10 -4
  38. package/dist/chunks/slots.js +3 -3
  39. package/dist/chunks/useArcgisViewReadyError.js +180 -128
  40. package/dist/components/arcgis-editor/customElement.d.ts +9 -17
  41. package/dist/components/arcgis-editor/customElement.js +18 -16
  42. package/dist/components/arcgis-feature-next/customElement.js +21 -14
  43. package/dist/components/arcgis-feature-table/customElement.d.ts +58 -39
  44. package/dist/components/arcgis-features-next/customElement.js +137 -116
  45. package/dist/components/arcgis-fullscreen/customElement.js +4 -4
  46. package/dist/components/arcgis-legend/customElement.d.ts +2 -0
  47. package/dist/components/arcgis-line-of-sight/customElement.d.ts +15 -6
  48. package/dist/components/arcgis-link-chart/customElement.js +24 -24
  49. package/dist/components/arcgis-map/customElement.js +16 -16
  50. package/dist/components/arcgis-scene/customElement.js +21 -21
  51. package/dist/components/arcgis-sketch/customElement.d.ts +1 -3
  52. package/dist/components/arcgis-sketch/customElement.js +146 -178
  53. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +2 -4
  54. package/dist/components/arcgis-time-bar/customElement.js +108 -105
  55. package/dist/components/arcgis-time-bar-date/customElement.js +10 -10
  56. package/dist/components/arcgis-time-bar-extent/customElement.js +9 -9
  57. package/dist/components/arcgis-time-bar-slider/customElement.js +27 -33
  58. package/dist/components/arcgis-track/customElement.d.ts +2 -2
  59. package/dist/components/arcgis-track/types.d.ts +1 -1
  60. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +4 -3
  61. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +61 -68
  62. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +26 -3
  63. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +53 -50
  64. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -2
  65. package/dist/docs/api.json +1 -1
  66. package/dist/docs/docs.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/loader.js +2 -2
  70. package/dist/types/lumina.d.ts +2 -1
  71. package/dist/types/preact.d.ts +2 -1
  72. package/dist/types/react.d.ts +2 -1
  73. package/dist/types/stencil.d.ts +2 -1
  74. package/package.json +7 -7
  75. package/dist/cdn/6RE5RWYP.js +0 -2
  76. package/dist/cdn/AL3PLZEE.js +0 -2
  77. package/dist/cdn/EYM377YG.js +0 -2
  78. package/dist/cdn/FINGRYZY.js +0 -2
  79. package/dist/cdn/GLU2HDV6.js +0 -2
  80. package/dist/cdn/JR3EXG25.js +0 -2
  81. package/dist/cdn/LISDXDCI.js +0 -2
  82. package/dist/cdn/LXLLMRNZ.js +0 -2
  83. package/dist/cdn/OVXGV76V.js +0 -2
  84. package/dist/cdn/PTCHEZNA.js +0 -2
  85. package/dist/cdn/QAZ4W6K3.js +0 -2
  86. package/dist/cdn/QPR3KBLU.js +0 -2
  87. package/dist/cdn/TI6R2CP6.js +0 -2
  88. package/dist/cdn/TUT6GS4A.js +0 -2
  89. package/dist/cdn/UOO6QY7C.js +0 -2
  90. package/dist/cdn/UYWJU5UG.js +0 -2
  91. package/dist/cdn/WADL7TT6.js +0 -2
  92. /package/dist/cdn/{MGDY6SA3.js → 2JLC2JV7.js} +0 -0
  93. /package/dist/cdn/{ITSWOLPG.js → 37Z3E4ZM.js} +0 -0
  94. /package/dist/cdn/{SMCQ5457.js → 53PKFG2U.js} +0 -0
  95. /package/dist/cdn/{YZ23NKH4.js → 5ZLCMYZU.js} +0 -0
  96. /package/dist/cdn/{DXD3FSIB.js → 6MRDTILE.js} +0 -0
  97. /package/dist/cdn/{TTGAGK6Y.js → 72FJMPJ2.js} +0 -0
  98. /package/dist/cdn/{CIVCCENA.js → 7P23WI52.js} +0 -0
  99. /package/dist/cdn/{DU7MQDXJ.js → 7QUHJ4F6.js} +0 -0
  100. /package/dist/cdn/{PLRW457V.js → 7YXE3BUX.js} +0 -0
  101. /package/dist/cdn/{IYTA36WK.js → AE26KT54.js} +0 -0
  102. /package/dist/cdn/{OY2F5AX3.js → C4EAONGF.js} +0 -0
  103. /package/dist/cdn/{7RG4ZQP7.js → CTVCZ2FU.js} +0 -0
  104. /package/dist/cdn/{DVVXBWDN.js → EIQ3BKQI.js} +0 -0
  105. /package/dist/cdn/{J5PYSABF.js → EULM4L53.js} +0 -0
  106. /package/dist/cdn/{VHCJJ5FD.js → EVCKANRW.js} +0 -0
  107. /package/dist/cdn/{4U7C2G4R.js → GXIGMIXV.js} +0 -0
  108. /package/dist/cdn/{UAVE6R7W.js → JZSRPSRH.js} +0 -0
  109. /package/dist/cdn/{FSKKSFCQ.js → KDO2EJA3.js} +0 -0
  110. /package/dist/cdn/{B42Z3IQW.js → LCTJF3NT.js} +0 -0
  111. /package/dist/cdn/{LH3HGDD3.js → LGPNRKDT.js} +0 -0
  112. /package/dist/cdn/{5QBYMSV7.js → LNZRHKHG.js} +0 -0
  113. /package/dist/cdn/{SN3LTQAO.js → MM4N6C4V.js} +0 -0
  114. /package/dist/cdn/{A7G5RNN7.js → MQL4JTYG.js} +0 -0
  115. /package/dist/cdn/{4JRBTFMB.js → NUCXXE6V.js} +0 -0
  116. /package/dist/cdn/{XELSV7WY.js → O2VAKVIY.js} +0 -0
  117. /package/dist/cdn/{DYUSQ3OG.js → OLEIOWZX.js} +0 -0
  118. /package/dist/cdn/{3E6IBNWF.js → ORS7OWLJ.js} +0 -0
  119. /package/dist/cdn/{IHQ2C6NE.js → P3BAHG4Q.js} +0 -0
  120. /package/dist/cdn/{IPLEI5W5.js → QYMZT7OC.js} +0 -0
  121. /package/dist/cdn/{43JS3JXR.js → RENVCO3U.js} +0 -0
  122. /package/dist/cdn/{CJZCG74B.js → RGECACLD.js} +0 -0
  123. /package/dist/cdn/{HI7Y3XH5.js → SYIOPNRF.js} +0 -0
  124. /package/dist/cdn/{F2JEYWUA.js → T62G5MRK.js} +0 -0
  125. /package/dist/cdn/{AS55LGS3.js → TS32SDVT.js} +0 -0
  126. /package/dist/cdn/{W5QAG2HP.js → UCHDAO3V.js} +0 -0
  127. /package/dist/cdn/{HSYCQNEN.js → VNY7TNRC.js} +0 -0
  128. /package/dist/cdn/{KVN6NUH4.js → XJIILB3W.js} +0 -0
  129. /package/dist/cdn/{OHIZP5N4.js → Y4D3Q4G7.js} +0 -0
  130. /package/dist/cdn/{EMFLPMFZ.js → Y7KMV2PI.js} +0 -0
  131. /package/dist/cdn/{IBTIGEEQ.js → YASANB6O.js} +0 -0
  132. /package/dist/cdn/{L5L2SWJG.js → YMN2Q7CW.js} +0 -0
  133. /package/dist/cdn/{ZHP63EHR.js → YN6VG7UO.js} +0 -0
  134. /package/dist/cdn/{T6V5HDYH.js → YRYYWFPY.js} +0 -0
@@ -1,30 +1,30 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as p } from "../../chunks/runtime.js";
3
- import { ref as d } from "lit/directives/ref.js";
3
+ import { ref as h } from "lit/directives/ref.js";
4
4
  import c from "@arcgis/core/core/Collection.js";
5
5
  import { watch as g } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import { substitute as m } from "@arcgis/core/intl.js";
7
7
  import f from "@arcgis/core/rest/networks/support/TraceLocation.js";
8
- import { LitElement as y, createEvent as h } from "@arcgis/lumina";
8
+ import { LitElement as y, createEvent as l } from "@arcgis/lumina";
9
9
  import { usePropertyChange as w } from "@arcgis/lumina/controllers";
10
- import { css as k, html as s } from "lit";
11
- import { u as b } from "../../chunks/useT9n.js";
10
+ import { css as b, html as s } from "lit";
11
+ import { u as k } from "../../chunks/useT9n.js";
12
12
  import { l as u } from "../../chunks/async-utils.js";
13
- import { q as T, i as v } from "../../chunks/layer-utils.js";
14
- import { ArcgisUtilityNetworkTraceLocations as l } from "../arcgis-utility-network-trace-locations/customElement.js";
15
- const L = k`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-combobox,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0}calcite-notice{margin:var(--calcite-spacing-md)}.subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}.results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-medium)}`;
16
- class $ extends y {
13
+ import { q as T, i as $ } from "../../chunks/layer-utils.js";
14
+ import { ArcgisUtilityNetworkTraceLocations as d } from "../arcgis-utility-network-trace-locations/customElement.js";
15
+ const v = b`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-combobox,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0}calcite-notice{margin:var(--calcite-spacing-md)}.subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}.results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-medium)}`;
16
+ class L extends y {
17
17
  constructor() {
18
- super(...arguments), this._messages = b({ blocking: !0 }), this.#c = !0, this.#l = /* @__PURE__ */ new Map(), this.#t = new c(), this.#i = new c(), this.#a = new c(), this.#e = null, this.#s = 20, this._candidateFeatures = [], this._compatibleSubnetworkNames = [], this._namedTraceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideFeaturesActionBar = !1, this.mode = "default", this.arcgisPropertyChange = w()("mode", "selectedNamedTraceConfiguration", "selectedUtilityNetwork", "traceLocations"), this.arcgisTraceLocationSelectEnd = h(), this.arcgisTraceLocationSelectStart = h();
18
+ super(...arguments), this._messages = k({ blocking: !0 }), this.#c = !0, this.#l = /* @__PURE__ */ new Map(), this.#t = new c(), this.#i = new c(), this.#a = new c(), this.#e = null, this.#s = 20, this._candidateFeatures = [], this._compatibleSubnetworkNames = [], this._namedTraceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.includeDefaultActionsDisabled = !1, this.mode = "default", this.arcgisPropertyChange = w()("mode", "selectedNamedTraceConfiguration", "selectedUtilityNetwork", "traceLocations"), this.arcgisTraceLocationSelectEnd = l(), this.arcgisTraceLocationSelectStart = l(), this.arcgisTriggerAction = l();
19
19
  }
20
20
  static {
21
- this.properties = { _selectedFeature: 16, _candidateFeatures: 16, _compatibleSubnetworkNames: 16, _subnetworksTable: 16, _namedTraceConfigurations: 16, _traceConfiguration: 16, _error: 16, _subnetworkNamesState: 16, _activeTraceLocationType: 16, _exceedDisplayLimit: 16, beforeMapInteraction: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, autoDestroyDisabled: 5, hideFeaturesActionBar: 5, traceConfiguration: 32, isSubnetworkNameTraceSelected: 32, messageOverrides: 0, referenceElement: 1, mode: 3, traceLocationDetails: 32, traceLocations: 32 };
21
+ this.properties = { _selectedFeature: 16, _candidateFeatures: 16, _compatibleSubnetworkNames: 16, _subnetworksTable: 16, _namedTraceConfigurations: 16, _traceConfiguration: 16, _error: 16, _subnetworkNamesState: 16, _activeTraceLocationType: 16, _exceedDisplayLimit: 16, actions: 0, beforeMapInteraction: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, autoDestroyDisabled: 5, hideActionBar: 5, includeDefaultActionsDisabled: 5, traceConfiguration: 32, isSubnetworkNameTraceSelected: 32, messageOverrides: 0, referenceElement: 1, mode: 3, traceLocationDetails: 32, traceLocations: 32 };
22
22
  }
23
23
  static {
24
- this.styles = L;
24
+ this.styles = v;
25
25
  }
26
26
  #c;
27
- get #b() {
27
+ get #k() {
28
28
  const { view: e } = this;
29
29
  return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
30
30
  }
@@ -65,7 +65,7 @@ class $ extends y {
65
65
  return this.#m && this.#t.forEach((t) => e.push(...this.#d(t))), this.#f && this.#a.forEach((t) => e.push(...this.#d(t))), this.#i.forEach((t) => e.push(...this.#d(t))), e;
66
66
  }
67
67
  async destroy() {
68
- this.#w(), l.getSketchViewModel(this.view)?.cancel(), l.removeSketchGraphicsLayer(this.view);
68
+ this.#w(), d.getSketchViewModel(this.view)?.cancel(), d.removeSketchGraphicsLayer(this.view);
69
69
  const t = await Promise.allSettled([
70
70
  this.#r?.destroy(),
71
71
  this.#u?.destroy(),
@@ -82,11 +82,14 @@ class $ extends y {
82
82
  ]);
83
83
  }
84
84
  willUpdate(e) {
85
- e.has("selectedUtilityNetwork") && this.#_();
85
+ e.has("selectedUtilityNetwork") && this.#N();
86
86
  }
87
87
  disconnectedCallback() {
88
88
  super.disconnectedCallback(), this.#l.clear();
89
89
  }
90
+ #$(e) {
91
+ e.stopPropagation(), this.arcgisTriggerAction.emit(e.detail);
92
+ }
90
93
  #v({ detail: e, target: t }) {
91
94
  (e.name === "selectedDrillInFeature" || e.name === "selectedFeature") && (this._selectedFeature = t.selectedDrillInFeature ?? t.selectedFeature ?? void 0);
92
95
  }
@@ -99,13 +102,13 @@ class $ extends y {
99
102
  #L(e) {
100
103
  e && (this.#u = e);
101
104
  }
102
- #$(e) {
105
+ #C(e) {
103
106
  e && (this.#p = e);
104
107
  }
105
- #C(e) {
108
+ #S(e) {
106
109
  e && (this.#g = e);
107
110
  }
108
- #S(e) {
111
+ #_(e) {
109
112
  e && (this.#r = e);
110
113
  }
111
114
  #d(e) {
@@ -128,30 +131,30 @@ class $ extends y {
128
131
  t.spatialProperties.flagGraphic && e?.graphics.remove(t.spatialProperties.flagGraphic);
129
132
  }), this.#a.removeAll();
130
133
  }
131
- async #_() {
134
+ async #N() {
132
135
  const { selectedUtilityNetwork: e } = this;
133
136
  try {
134
137
  e && !e.loaded && await e.load();
135
138
  } catch (t) {
136
139
  u(t, this, "Error while loading the selected utility network");
137
140
  }
138
- this.#N(), this.#F(), this.#w();
141
+ this.#P(), this.#F(), this.#w();
139
142
  }
140
- #N() {
143
+ #P() {
141
144
  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)) || [];
142
145
  }
143
146
  #F() {
144
147
  const { selectedUtilityNetwork: e } = this;
145
- this.#n = new c(this.#b.filter((t) => e?.isUtilityLayer(t) && !this.#T.includes(t.layerId)));
148
+ this.#n = new c(this.#k.filter((t) => e?.isUtilityLayer(t) && !this.#T.includes(t.layerId)));
146
149
  }
147
- #P(e) {
150
+ #A(e) {
148
151
  if (e.stopPropagation(), this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented) {
149
152
  e.preventDefault();
150
153
  return;
151
154
  }
152
155
  this._activeTraceLocationType = e?.target?.traceLocationType, this.mode = "add-spatial-instructions";
153
156
  }
154
- #E(e) {
157
+ #D(e) {
155
158
  if (e == null)
156
159
  return;
157
160
  const t = this.#l, i = this.#n, a = t.get(e);
@@ -162,7 +165,7 @@ class $ extends y {
162
165
  const r = i.find((o) => "layerId" in o && o.layerId === e);
163
166
  return r && t.set(e, r), r;
164
167
  }
165
- async #U(e, t) {
168
+ async #E(e, t) {
166
169
  const i = e.createQuery();
167
170
  i.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, i.objectIds = t.map((r) => r.getObjectId()), i.outFields = ["*"];
168
171
  const { features: a } = await T(e, i);
@@ -173,35 +176,35 @@ class $ extends y {
173
176
  }
174
177
  }), a;
175
178
  }
176
- async #I(e) {
179
+ async #U(e) {
177
180
  const t = /* @__PURE__ */ new Map(), i = [];
178
181
  return e.forEach((a) => {
179
- const r = v(a.layer) ? a.layer.parent : a.layer;
182
+ const r = $(a.layer) ? a.layer.parent : a.layer;
180
183
  if (r) {
181
- const o = this.#E(r.layerId);
184
+ const o = this.#D(r.layerId);
182
185
  if (o) {
183
186
  const n = t.get(o) || [];
184
187
  n.push(a), t.set(o, n);
185
188
  }
186
189
  }
187
190
  }), await Promise.all(Array.from(t.keys()).map(async (a) => {
188
- const r = t.get(a) ?? [], o = await this.#U(a, r);
191
+ const r = t.get(a) ?? [], o = await this.#E(a, r);
189
192
  i.push(...o);
190
193
  })), i;
191
194
  }
192
- async #A(e) {
193
- return this._exceedDisplayLimit = e.length > this.#s, this._candidateFeatures = await this.#I(e.slice(0, this.#s)), this._candidateFeatures.length === 0 ? (this.#o(), await Promise.reject(Error("No features found"))) : (this._candidateFeatures.length === 1 && (this._selectedFeature = this._candidateFeatures.at(0)), this.mode = "add-spatial-feature", this.#e?.reject(), this.#e = Promise.withResolvers(), await this.#e.promise);
195
+ async #I(e) {
196
+ return this._exceedDisplayLimit = e.length > this.#s, this._candidateFeatures = await this.#U(e.slice(0, this.#s)), this._candidateFeatures.length === 0 ? (this.#o(), await Promise.reject(Error("No features found"))) : (this._candidateFeatures.length === 1 && (this._selectedFeature = this._candidateFeatures.at(0)), this.mode = "add-spatial-feature", this.#e?.reject(), this.#e = Promise.withResolvers(), await this.#e.promise);
194
197
  }
195
- #D(e) {
198
+ #x(e) {
196
199
  e.stopPropagation(), this.arcgisTraceLocationSelectEnd.emit(), this._activeTraceLocationType = void 0, this.mode = "default", this.#o();
197
200
  }
198
201
  #o(e) {
199
- e?.stopPropagation(), this.#r?.clear(), this.#k(), (this.view ? l.getSketchViewModel(this.view) : null)?.cancel();
202
+ e?.stopPropagation(), this.#r?.clear(), this.#b(), (this.view ? d.getSketchViewModel(this.view) : null)?.cancel();
200
203
  }
201
- #k() {
204
+ #b() {
202
205
  this.mode = "default", this._candidateFeatures = [], this._selectedFeature = void 0, this.#e?.reject(), this.#e = null;
203
206
  }
204
- #x() {
207
+ #M() {
205
208
  const e = this.#e, t = this.#r, { _selectedFeature: i } = this;
206
209
  if (e && t) {
207
210
  if (!i)
@@ -209,56 +212,56 @@ class $ extends y {
209
212
  e.resolve(i), this.#e = null;
210
213
  }
211
214
  }
212
- #M(e, t = !1, i) {
215
+ #B(e, t = !1, i) {
213
216
  return s`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`;
214
217
  }
215
- #B() {
218
+ #O() {
216
219
  const { _namedTraceConfigurations: e, selectedUtilityNetwork: t } = this;
217
220
  return s`<arcgis-utility-network-trace-configuration-picker .messageOverrides=${this.messageOverrides} .traceConfigurations=${e} .utilityNetwork=${t} @arcgisPropertyChange=${(i) => {
218
221
  i.stopPropagation(), i.detail.name === "selectedNamedTraceConfiguration" && (this.selectedNamedTraceConfiguration = i.target.selectedNamedTraceConfiguration), i.detail.name === "traceConfiguration" && (this._traceConfiguration = i.target.traceConfiguration);
219
222
  }}></arcgis-utility-network-trace-configuration-picker>`;
220
223
  }
221
- #O() {
224
+ #V() {
222
225
  const { selectedUtilityNetwork: e, view: t } = this;
223
226
  return s`<arcgis-utility-network-picker .messageOverrides=${this.messageOverrides} .selectedUtilityNetwork=${e} .view=${t} @arcgisPropertyChange=${(i) => {
224
227
  i.detail.name === "selectedUtilityNetwork" && (this.selectedUtilityNetwork = i.target.selectedUtilityNetwork);
225
228
  }}></arcgis-utility-network-picker>`;
226
229
  }
227
- #V() {
230
+ #G() {
228
231
  const { _error: e } = this, { noView: t } = this._messages.errors;
229
232
  let i;
230
- return e === t ? i = this.#M(e, !1, "exclamation-mark-triangle") : i = this.#R(), s`<calcite-flow-item .selected=${this.mode === "default"}>${i}</calcite-flow-item>`;
233
+ return e === t ? i = this.#B(e, !1, "exclamation-mark-triangle") : i = this.#z(), s`<calcite-flow-item .selected=${this.mode === "default"}>${i}</calcite-flow-item>`;
231
234
  }
232
- #G() {
235
+ #j() {
233
236
  const { _messages: e, mode: t } = this, i = this._activeTraceLocationType === "starting-point" ? e.labels.addSpatial.startingPoint : this._activeTraceLocationType === "barrier" ? e.labels.addSpatial.barrier : e.labels.addSpatial.stoppingPoint;
234
237
  return s`<calcite-flow-item .selected=${t === "add-spatial-instructions"} .heading=${i} @calciteFlowItemBack=${(a) => this.#o(a)}><div class="add-spatial-mode"><div><h5 class="heading">${e.instructions.addSpatial.selectFeature.heading}</h5>${e.instructions.addSpatial.selectFeature.subheading}</div><div><h5 class="heading">${e.instructions.addSpatial.selectAssociatedFeature.heading}</h5>${e.instructions.addSpatial.selectAssociatedFeature.subheading}</div></div></calcite-flow-item>`;
235
238
  }
236
- #j() {
239
+ #q() {
237
240
  const { _activeTraceLocationType: e, _candidateFeatures: t, _messages: i } = this;
238
241
  if (!t.length)
239
242
  return this.mode = "default", null;
240
243
  const a = e === "starting-point" ? i.labels.addSpatial.startingPoint : e === "barrier" ? i.labels.addSpatial.barrier : i.labels.addSpatial.stoppingPoint, r = t.length === 1 ? "feature" : "list";
241
- return s`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#c} .features=${this._candidateFeatures} .featureMenuTitle=${a} .hideActionBar=${this.hideFeaturesActionBar} hide-select-feature .initialDisplayMode=${r} .messageOverrides=${this.messageOverrides} @arcgisClose=${() => this.#k()} @arcgisPropertyChange=${this.#v} open .referenceElement=${this.referenceElement} .view=${this.view} ${d(this.#S)}></arcgis-features-next>`;
244
+ return s`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#c} .features=${this._candidateFeatures} .featureMenuTitle=${a} .hideActionBar=${this.hideActionBar} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .initialDisplayMode=${r} .messageOverrides=${this.messageOverrides} @arcgisClose=${() => this.#b()} @arcgisPropertyChange=${this.#v} @arcgisTriggerAction=${this.#$} open .referenceElement=${this.referenceElement} .view=${this.view} ${h(this.#_)}></arcgis-features-next>`;
242
245
  }
243
- #q() {
246
+ #R() {
244
247
  const { mode: e, _messages: t, _selectedFeature: i, selectedUtilityNetwork: a } = this, r = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = m(t.warnings.exceededDisplayLimit, {
245
248
  limit: this.#s.toString()
246
249
  }), n = i ? !(a?.isUtilityLayer(i.layer) ?? !0) : !0;
247
- return s`${r && s`<calcite-input-message class="results-limited-message" icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this.#o()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && s`<calcite-button width=full slot=footer appearance=solid @click=${() => this.#x()} .disabled=${n}>${t.buttons.add}</calcite-button>` || ""}`;
250
+ return s`${r && s`<calcite-input-message class="results-limited-message" icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this.#o()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && s`<calcite-button width=full slot=footer appearance=solid @click=${() => this.#M()} .disabled=${n}>${t.buttons.add}</calcite-button>` || ""}`;
248
251
  }
249
252
  #h(e, t, i) {
250
- return s`<arcgis-utility-network-trace-locations .messageOverrides=${this.messageOverrides} .view=${this.view} .traceLocationType=${e} .beforeMapInteraction=${this.beforeMapInteraction} @arcgisTraceLocationSelectStart=${this.#P} @arcgisTraceLocationSelectEnd=${this.#D} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#n} .traceLocations=${t} .afterMapInteraction=${this.#A.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(i)}></arcgis-utility-network-trace-locations>`;
253
+ return s`<arcgis-utility-network-trace-locations .messageOverrides=${this.messageOverrides} .view=${this.view} .traceLocationType=${e} .beforeMapInteraction=${this.beforeMapInteraction} @arcgisTraceLocationSelectStart=${this.#A} @arcgisTraceLocationSelectEnd=${this.#x} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#n} .traceLocations=${t} .afterMapInteraction=${this.#I.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(i)}></arcgis-utility-network-trace-locations>`;
251
254
  }
252
- #R() {
253
- const { _messages: e } = this, t = this.#O(), i = this.#B(), a = this._namedTraceConfigurations.length && this.traceConfiguration ? s`${this.#m ? this.#h("starting-point", this.#t, this.#L) : null}${this.#f ? this.#h("stopping-point", this.#a, this.#C) : null}${this.#h("barrier", this.#i, this.#$)}` : null, r = this.selectedUtilityNetwork?.loaded ? s`${i}${a}` : null;
255
+ #z() {
256
+ const { _messages: e } = this, t = this.#V(), i = this.#O(), a = this._namedTraceConfigurations.length && this.traceConfiguration ? s`${this.#m ? this.#h("starting-point", this.#t, this.#L) : null}${this.#f ? this.#h("stopping-point", this.#a, this.#S) : null}${this.#h("barrier", this.#i, this.#C)}` : null, r = this.selectedUtilityNetwork?.loaded ? s`${i}${a}` : null;
254
257
  return s`<calcite-block-group .label=${e.labels.traceInputs}>${t}${r}</calcite-block-group>`;
255
258
  }
256
259
  render() {
257
260
  const { mode: e } = this;
258
- return s`<calcite-panel>${e === "add-spatial-feature" ? this.#j() : null}<calcite-flow .hidden=${e === "add-spatial-feature"}>${this.#V()}${this.#G()}</calcite-flow>${e !== "default" ? this.#q() : null}</calcite-panel>`;
261
+ return s`<calcite-panel>${e === "add-spatial-feature" ? this.#q() : null}<calcite-flow .hidden=${e === "add-spatial-feature"}>${this.#G()}${this.#j()}</calcite-flow>${e !== "default" ? this.#R() : null}</calcite-panel>`;
259
262
  }
260
263
  }
261
- p("arcgis-utility-network-trace-inputs", $);
264
+ p("arcgis-utility-network-trace-inputs", L);
262
265
  export {
263
- $ as ArcgisUtilityNetworkTraceInputs
266
+ L as ArcgisUtilityNetworkTraceInputs
264
267
  };
@@ -131,8 +131,7 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
131
131
  accessor heading: string | undefined;
132
132
  /**
133
133
  * Indicates whether to hide the action bar that holds the feature's
134
- * [arcgis-features-next.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions) when selecting trace locations
135
- * and viewing trace result features.
134
+ * [arcgis-features-next.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions) when viewing trace result features.
136
135
  *
137
136
  * @default false
138
137
  */