@arcgis/map-components 5.2.0-next.154 → 5.2.0-next.156

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/347XA2AR.js +2 -0
  2. package/dist/cdn/4JCUCTND.js +2 -0
  3. package/dist/cdn/5QPPN5GG.js +2 -0
  4. package/dist/cdn/6JYHS4C3.js +2 -0
  5. package/dist/cdn/74SNPIFY.js +2 -0
  6. package/dist/cdn/AHR2EGDU.js +2 -0
  7. package/dist/cdn/{ZPWEX7I6.js → CPIWLONX.js} +1 -1
  8. package/dist/cdn/DV5RJXB4.js +2 -0
  9. package/dist/cdn/F6BKCG5R.js +2 -0
  10. package/dist/cdn/GUY54PVD.js +2 -0
  11. package/dist/cdn/{BOJOJ5VV.js → HGMLU4M2.js} +1 -1
  12. package/dist/cdn/{KVN3M4C6.js → N2BLQYTT.js} +1 -1
  13. package/dist/cdn/OFGB5CLF.js +2 -0
  14. package/dist/cdn/{5K2YXXCE.js → PPKJKXSQ.js} +1 -1
  15. package/dist/cdn/PT7IKQT5.js +2 -0
  16. package/dist/cdn/QTTIUOSW.js +2 -0
  17. package/dist/cdn/RGBIJQV3.js +2 -0
  18. package/dist/cdn/{RKTSSP3O.js → TD5NCGK6.js} +1 -1
  19. package/dist/cdn/TNRY4WWO.js +2 -0
  20. package/dist/cdn/U6VZT3HC.js +2 -0
  21. package/dist/cdn/UVSORYXI.js +2 -0
  22. package/dist/cdn/V6RSLRWE.js +2 -0
  23. package/dist/cdn/{2SNOYPTJ.js → Y5LZUAMK.js} +1 -1
  24. package/dist/cdn/YYBNA7EL.js +2 -0
  25. package/dist/cdn/index.js +1 -1
  26. package/dist/chunks/loader-utils.js +41 -0
  27. package/dist/chunks/slots.js +1 -1
  28. package/dist/chunks/useArcgisViewReadyError.js +53 -50
  29. package/dist/components/arcgis-editor/customElement.d.ts +1 -1
  30. package/dist/components/arcgis-editor/customElement.js +18 -16
  31. package/dist/components/arcgis-feature-next/customElement.js +21 -14
  32. package/dist/components/arcgis-feature-table/customElement.d.ts +58 -39
  33. package/dist/components/arcgis-features-next/customElement.js +137 -116
  34. package/dist/components/arcgis-legend/customElement.d.ts +2 -0
  35. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  36. package/dist/components/arcgis-link-chart/customElement.d.ts +0 -8
  37. package/dist/components/arcgis-map/customElement.d.ts +0 -8
  38. package/dist/components/arcgis-measurement-content/customElement.js +6 -6
  39. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -5
  40. package/dist/components/arcgis-scene/customElement.d.ts +0 -8
  41. package/dist/components/arcgis-sketch/customElement.d.ts +1 -3
  42. package/dist/components/arcgis-sketch/customElement.js +146 -178
  43. package/dist/components/arcgis-slice/customElement.js +15 -15
  44. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +2 -4
  45. package/dist/components/arcgis-time-bar/customElement.js +108 -105
  46. package/dist/components/arcgis-time-bar-date/customElement.js +10 -10
  47. package/dist/components/arcgis-time-bar-extent/customElement.js +9 -9
  48. package/dist/components/arcgis-time-bar-slider/customElement.js +27 -33
  49. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +4 -3
  50. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +60 -67
  51. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +26 -3
  52. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +53 -50
  53. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -2
  54. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
  55. package/dist/components/arcgis-version-management/customElement.js +33 -33
  56. package/dist/components/arcgis-volume-measurement/customElement.js +62 -62
  57. package/dist/docs/api.json +1 -1
  58. package/dist/docs/docs.json +1 -1
  59. package/dist/docs/vscode.css-custom-data.json +1 -1
  60. package/dist/docs/vscode.html-custom-data.json +1 -1
  61. package/dist/docs/web-types.json +1 -1
  62. package/dist/loader.js +2 -2
  63. package/dist/types/lumina.d.ts +2 -1
  64. package/dist/types/preact.d.ts +2 -1
  65. package/dist/types/react.d.ts +2 -1
  66. package/dist/types/stencil.d.ts +2 -1
  67. package/package.json +6 -6
  68. package/dist/cdn/2AQYGR7K.js +0 -2
  69. package/dist/cdn/4GRP4KX3.js +0 -2
  70. package/dist/cdn/ENZAFG6F.js +0 -2
  71. package/dist/cdn/GP3PLD2F.js +0 -2
  72. package/dist/cdn/I3KUEZ7I.js +0 -2
  73. package/dist/cdn/J7YDON4X.js +0 -2
  74. package/dist/cdn/LE373OSG.js +0 -2
  75. package/dist/cdn/LGW5AS6R.js +0 -2
  76. package/dist/cdn/LOIUI4KA.js +0 -2
  77. package/dist/cdn/M7LDGJG6.js +0 -2
  78. package/dist/cdn/P5HSMYWG.js +0 -2
  79. package/dist/cdn/RZNCVTKT.js +0 -2
  80. package/dist/cdn/TZ6WQV6O.js +0 -2
  81. package/dist/cdn/VRYMDTDG.js +0 -2
  82. package/dist/cdn/ZEKQYUW3.js +0 -2
  83. package/dist/cdn/ZFHHY72B.js +0 -2
  84. package/dist/cdn/ZOHGLZNV.js +0 -2
@@ -1,30 +1,30 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/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
  */
@@ -12,7 +12,7 @@ import { u as L } from "../../chunks/useT9n.js";
12
12
  import { u as S } from "../../chunks/useView.js";
13
13
  import { c as C, t as n, i as O, l as D } from "../../chunks/async-utils.js";
14
14
  import { e as q } from "../../chunks/layer-utils.js";
15
- const P = V`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-block{margin:0;border-bottom:none}calcite-combobox{margin-bottom:var(--calcite-spacing-sm)}calcite-icon{width:32px}`, d = {
15
+ const P = V`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: 0px;--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-block{margin:0;border-bottom:none}calcite-combobox{margin-bottom:var(--calcite-spacing-sm)}calcite-icon{width:32px}`, d = {
16
16
  noDirtyAreasInExtent: -2147208940,
17
17
  operationOnlyAllowedByOwner: -2147217144,
18
18
  cannotAcquireVersionLockV10: -2147217146,
@@ -8,10 +8,10 @@ import { rethrowError as M, log as v } from "@arcgis/toolkit/log";
8
8
  import { u as T } from "../../chunks/useT9n.js";
9
9
  import { m as D } from "../../chunks/useViewModel.js";
10
10
  import { l as z } from "../../chunks/async-utils.js";
11
- const R = L`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-notice{background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm)}`, B = D(A);
11
+ const R = L`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: 0px;--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-notice{background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm)}`, B = D(A);
12
12
  class q extends N {
13
13
  constructor() {
14
- super(...arguments), this._messages = T({ blocking: !0 }), this.#r = [], this.#t = [], this.#s = [], this.#e = B(this), this._currentPage = 1, this._filterText = "", this._isInitialFeatureServiceInvalid = !1, this._mode = "browse-services", this.allowEditingDisabled = !1, this.autoDestroyDisabled = !1, this.closable = !1, this.pageSize = 5, this.state = this.#e.state, this.versioningStates = this.#e.versioningStates, this.view = this.#e.view, this.arcgisReady = w(), this.arcgisVersioningStateChanged = w();
14
+ super(...arguments), this._messages = T({ blocking: !0 }), this.#t = [], this.#r = [], this.#s = [], this.#e = B(this), this._currentPage = 1, this._filterText = "", this._isInitialFeatureServiceInvalid = !1, this._mode = "browse-services", this.allowEditingDisabled = !1, this.autoDestroyDisabled = !1, this.closable = !1, this.pageSize = 5, this.state = this.#e.state, this.versioningStates = this.#e.versioningStates, this.view = this.#e.view, this.arcgisReady = w(), this.arcgisVersioningStateChanged = w();
15
15
  }
16
16
  static {
17
17
  this.properties = { _currentPage: 16, _editVersionInfo: 16, _filterText: 16, _isInitialFeatureServiceInvalid: 16, _loadError: 16, _mode: 16, _selectedFeatureService: 16, allowEditingDisabled: 5, autoDestroyDisabled: 5, closable: 7, icon: 1, initialVersionInfos: 0, label: 1, messageOverrides: 0, mode: 1, pageSize: 9, referenceElement: 1, state: 32, versioningStates: 0, view: 0 };
@@ -19,15 +19,15 @@ class q extends N {
19
19
  static {
20
20
  this.styles = R;
21
21
  }
22
- #r;
23
22
  #t;
23
+ #r;
24
24
  #s;
25
25
  #e;
26
26
  get initialVersionInfos() {
27
- return this.#r;
27
+ return this.#t;
28
28
  }
29
29
  set initialVersionInfos(e) {
30
- this.#r = e.map((i) => ({
30
+ this.#t = e.map((i) => ({
31
31
  ...i,
32
32
  url: this.#b(i.url)
33
33
  }));
@@ -54,17 +54,17 @@ class q extends N {
54
54
  });
55
55
  }
56
56
  #c(e) {
57
- const { url: i, name: a } = e, t = this.#e.versioningStateLookup.get(i);
58
- if (!t) {
57
+ const { url: i, name: a } = e, r = this.#e.versioningStateLookup.get(i);
58
+ if (!r) {
59
59
  this._isInitialFeatureServiceInvalid = !0, v("error", this, `No versioning state found for feature service ${i}`);
60
60
  return;
61
61
  }
62
- const r = t?.versionInfos.find((c) => c.versionIdentifier.name.toUpperCase() === a.toUpperCase());
63
- if (!r) {
64
- this.#t.push(i), this.requestUpdate(), v("error", this, `Version ${a} not found in the versioning state for feature service ${i}`);
62
+ const t = r?.versionInfos.find((c) => c.versionIdentifier.name.toUpperCase() === a.toUpperCase());
63
+ if (!t) {
64
+ this.#r.push(i), this.requestUpdate(), v("error", this, `Version ${a} not found in the versioning state for feature service ${i}`);
65
65
  return;
66
66
  }
67
- const s = r.versionIdentifier, l = t?.currentVersionInfo?.versionIdentifier;
67
+ const s = t.versionIdentifier, l = r?.currentVersionInfo?.versionIdentifier;
68
68
  s.guid !== l?.guid && this.#e.changeVersion(i, s.name, s.guid);
69
69
  }
70
70
  #a(e) {
@@ -84,22 +84,22 @@ class q extends N {
84
84
  }
85
85
  #i(e) {
86
86
  const { _messages: i } = this;
87
- let a = !1, t, r, s;
87
+ let a = !1, r, t, s;
88
88
  switch (e) {
89
89
  case "invalid-feature-service":
90
- a = !0, t = i.loadErrors.invalidInitialFeatureService, r = this.#I, s = i.headers.invalidInitialFeatureService;
90
+ a = !0, r = i.loadErrors.invalidInitialFeatureService, t = this.#I, s = i.headers.invalidInitialFeatureService;
91
91
  break;
92
92
  case "no-version-management-service-found":
93
- t = this.#a("no-version-management-service-found");
93
+ r = this.#a("no-version-management-service-found");
94
94
  break;
95
95
  case "view-model-load":
96
- t = this.#a(this.#e.loadError ?? "");
96
+ r = this.#a(this.#e.loadError ?? "");
97
97
  break;
98
98
  case "webmap-load":
99
- t = this.#a("webmap-failed-to-load");
99
+ r = this.#a("webmap-failed-to-load");
100
100
  break;
101
101
  }
102
- return h`<calcite-notice .closable=${a} icon kind=warning open scale=s width=full @calciteNoticeClose=${r}>${s ? h`<div slot=title>${s}</div>` : void 0}<div slot=message>${t}</div></calcite-notice>`;
102
+ return h`<calcite-notice .closable=${a} icon kind=warning open scale=s width=full @calciteNoticeClose=${t}>${s ? h`<div slot=title>${s}</div>` : void 0}<div slot=message>${r}</div></calcite-notice>`;
103
103
  }
104
104
  async #d(e) {
105
105
  e.stopPropagation();
@@ -114,17 +114,17 @@ class q extends N {
114
114
  }
115
115
  async #g(e) {
116
116
  e.stopPropagation();
117
- const { arcgisVersioningStateChanged: i } = this, { createVersionParameters: a, switchToVersion: t } = e.detail, r = await this.#e.createVersion(a).finally(() => {
117
+ const { arcgisVersioningStateChanged: i } = this, { createVersionParameters: a, switchToVersion: r } = e.detail, t = await this.#e.createVersion(a).finally(() => {
118
118
  this._mode = "browse-versions";
119
119
  });
120
- r && (i.emit({
120
+ t && (i.emit({
121
121
  type: "version-created",
122
- versionIdentifier: r.versionIdentifier,
122
+ versionIdentifier: t.versionIdentifier,
123
123
  versioningState: this.#e.versioningStateLookup.get(a.featureServerUrl)
124
- }), t && await this.#e.changeVersion(a.featureServerUrl, r.versionIdentifier.name, r.versionIdentifier.guid).then((s) => {
124
+ }), r && await this.#e.changeVersion(a.featureServerUrl, t.versionIdentifier.name, t.versionIdentifier.guid).then((s) => {
125
125
  s && i.emit({
126
126
  type: "version-switched",
127
- versionIdentifier: r.versionIdentifier,
127
+ versionIdentifier: t.versionIdentifier,
128
128
  versioningState: this.#e.versioningStateLookup.get(a.featureServerUrl)
129
129
  });
130
130
  }));
@@ -140,21 +140,21 @@ class q extends N {
140
140
  }
141
141
  async #o(e) {
142
142
  e.stopPropagation();
143
- const { arcgisVersioningStateChanged: i } = this, { actionType: a, serviceUrl: t, versionInfo: r } = e.detail;
143
+ const { arcgisVersioningStateChanged: i } = this, { actionType: a, serviceUrl: r, versionInfo: t } = e.detail;
144
144
  switch (a) {
145
145
  case "changeVersion": {
146
- await this.#e.changeVersion(t, r.versionIdentifier.name, r.versionIdentifier.guid) && i.emit({
146
+ await this.#e.changeVersion(r, t.versionIdentifier.name, t.versionIdentifier.guid) && i.emit({
147
147
  type: "version-switched",
148
- versionIdentifier: r.versionIdentifier,
149
- versioningState: this.#e.versioningStateLookup.get(t)
148
+ versionIdentifier: t.versionIdentifier,
149
+ versioningState: this.#e.versioningStateLookup.get(r)
150
150
  });
151
151
  break;
152
152
  }
153
153
  case "deleteVersion": {
154
- await this.#e.deleteVersion(t, r.versionIdentifier.name, r.versionIdentifier.guid) && i.emit({
154
+ await this.#e.deleteVersion(r, t.versionIdentifier.name, t.versionIdentifier.guid) && i.emit({
155
155
  type: "version-deleted",
156
- versionIdentifier: r.versionIdentifier,
157
- versioningState: this.#e.versioningStateLookup.get(t)
156
+ versionIdentifier: t.versionIdentifier,
157
+ versioningState: this.#e.versioningStateLookup.get(r)
158
158
  });
159
159
  break;
160
160
  }
@@ -206,14 +206,14 @@ class q extends N {
206
206
  }), this.requestUpdate();
207
207
  }
208
208
  render() {
209
- const { _currentPage: e, _editVersionInfo: i, _filterText: a, _messages: t, _mode: r, _selectedFeatureService: s, closable: l, label: c, pageSize: d, state: o } = this, V = this._loadError === "webmap-failed-to-load" ? this.#i("webmap-load") : void 0, $ = o === "disabled" && this.#e.loadError ? this.#i("view-model-load") : void 0, b = this._loadError === "no-version-management-service-found" ? this.#i("no-version-management-service-found") : void 0, S = this._isInitialFeatureServiceInvalid ? this.#i("invalid-feature-service") : void 0, y = Array.from(this.#e.serviceNameLookup, ([n, k]) => ({ url: n, name: k })), g = s?.url ?? "", p = this.#e?.versioningStateLookup.get(g), u = p?.versionInfos ?? [], _ = p?.currentVersionInfo ?? void 0, x = u.length <= d, m = a === "" ? u : u.filter((n) => n.versionIdentifier.name.toUpperCase().includes(a.toUpperCase()) || n.versionIdentifier.guid.toUpperCase().includes(a.toUpperCase())), f = m.slice((e - 1) * d, e * d);
209
+ const { _currentPage: e, _editVersionInfo: i, _filterText: a, _messages: r, _mode: t, _selectedFeatureService: s, closable: l, label: c, pageSize: d, state: o } = this, V = this._loadError === "webmap-failed-to-load" ? this.#i("webmap-load") : void 0, $ = o === "disabled" && this.#e.loadError ? this.#i("view-model-load") : void 0, b = this._loadError === "no-version-management-service-found" ? this.#i("no-version-management-service-found") : void 0, S = this._isInitialFeatureServiceInvalid ? this.#i("invalid-feature-service") : void 0, y = Array.from(this.#e.serviceNameLookup, ([n, k]) => ({ url: n, name: k })), g = s?.url ?? "", p = this.#e?.versioningStateLookup.get(g), u = p?.versionInfos ?? [], _ = p?.currentVersionInfo ?? void 0, x = u.length <= d, m = a === "" ? u : u.filter((n) => n.versionIdentifier.name.toUpperCase().includes(a.toUpperCase()) || n.versionIdentifier.guid.toUpperCase().includes(a.toUpperCase())), f = m.slice((e - 1) * d, e * d);
210
210
  f.length === 0 && this.#n();
211
211
  const I = this.#e.userLookup.get(g), E = this.#e.versionAdministratorLookup.get(g), F = (this.#e.serverVersionLookup.get(g) ?? 0) >= 11.2;
212
- return h`<calcite-flow><calcite-flow-item .closable=${l} .heading=${c} .loading=${o === "loading" || o === "executing"} .selected=${r === "browse-services"}>${V}${$}${b}${S}${y.map((n) => h`<arcgis-version-management-service-item .allowEditingDisabled=${this.allowEditingDisabled} .invalidInitialVersion=${this.#t.includes(n.url)} .messages=${t} .selectedFeatureService=${s} .serviceName=${n.name} .serviceUrl=${n.url} .versioningStateFailedToLoad=${this.#s.includes(n.url)} .viewModel=${this.#e} @arcgisInternalManageVersion=${this.#o} @arcgisPropertyChange=${this.#f}></arcgis-version-management-service-item>`)}</calcite-flow-item><calcite-flow-item .closable=${l} .description=${s?.name} .heading=${c} .loading=${o === "loading" || o === "executing"} .selected=${r === "browse-versions"} @calciteFlowItemBack=${(n) => {
212
+ return h`<calcite-flow><calcite-flow-item .closable=${l} .heading=${c} .loading=${o === "loading" || o === "executing"} .selected=${t === "browse-services"}>${V}${$}${b}${S}${y.map((n) => h`<arcgis-version-management-service-item .allowEditingDisabled=${this.allowEditingDisabled} .invalidInitialVersion=${this.#r.includes(n.url)} .messages=${r} .selectedFeatureService=${s} .serviceName=${n.name} .serviceUrl=${n.url} .versioningStateFailedToLoad=${this.#s.includes(n.url)} .viewModel=${this.#e} @arcgisInternalManageVersion=${this.#o} @arcgisPropertyChange=${this.#f}></arcgis-version-management-service-item>`)}</calcite-flow-item><calcite-flow-item .closable=${l} .description=${s?.name} .heading=${c} .loading=${o === "loading" || o === "executing"} .selected=${t === "browse-versions"} @calciteFlowItemBack=${(n) => {
213
213
  n.preventDefault(), this.#w();
214
- }}><arcgis-version-management-version-list .currentPage=${e} .currentUser=${I} .currentVersionInfo=${_} .executionError=${this.#e.executionError ?? void 0} .featureServiceName=${s?.name} .featureServiceUrl=${s?.url} .hideFilter=${x} .isVersionAdministrator=${E} .isVersioningApiAvailable=${F} .messages=${t} .mode=${r} .totalPages=${Math.ceil(m.length / d)} .totalVersions=${m.length} .versionInfos=${f} @arcgisInternalFilterVersions=${this.#u} @arcgisInternalGetVersions=${this.#v} @arcgisInternalManageVersion=${this.#o} @arcgisInternalNewVersion=${this.#m} @arcgisInternalPageChange=${this.#p}></arcgis-version-management-version-list></calcite-flow-item><calcite-flow-item .closable=${l} .description=${r === "create-version" ? "" : i?.versionIdentifier.name} .heading=${r === "create-version" ? t?.actions.newVersion : t?.actions.editVersion} .loading=${o === "loading" || o === "executing"} .selected=${r === "create-version" || r === "edit-version"} @calciteFlowItemBack=${(n) => {
214
+ }}><arcgis-version-management-version-list .currentPage=${e} .currentUser=${I} .currentVersionInfo=${_} .executionError=${this.#e.executionError ?? void 0} .featureServiceName=${s?.name} .featureServiceUrl=${s?.url} .hideFilter=${x} .isVersionAdministrator=${E} .isVersioningApiAvailable=${F} .messages=${r} .mode=${t} .totalPages=${Math.ceil(m.length / d)} .totalVersions=${m.length} .versionInfos=${f} @arcgisInternalFilterVersions=${this.#u} @arcgisInternalGetVersions=${this.#v} @arcgisInternalManageVersion=${this.#o} @arcgisInternalNewVersion=${this.#m} @arcgisInternalPageChange=${this.#p}></arcgis-version-management-version-list></calcite-flow-item><calcite-flow-item .closable=${l} .description=${t === "create-version" ? "" : i?.versionIdentifier.name} .heading=${t === "create-version" ? r?.actions.newVersion : r?.actions.editVersion} .loading=${o === "loading" || o === "executing"} .selected=${t === "create-version" || t === "edit-version"} @calciteFlowItemBack=${(n) => {
215
215
  n.preventDefault(), this.#V();
216
- }}><arcgis-version-management-version-properties .currentUser=${I} .editVersionInfo=${i} .featureServiceUrl=${s?.url} .messages=${t} .mode=${r} @arcgisInternalAlterVersion=${this.#d} @arcgisInternalCreateVersion=${this.#g} @arcgisInternalDiscardEdits=${this.#h}></arcgis-version-management-version-properties></calcite-flow-item></calcite-flow>`;
216
+ }}><arcgis-version-management-version-properties .currentUser=${I} .editVersionInfo=${i} .featureServiceUrl=${s?.url} .messages=${r} .mode=${t} @arcgisInternalAlterVersion=${this.#d} @arcgisInternalCreateVersion=${this.#g} @arcgisInternalDiscardEdits=${this.#h}></arcgis-version-management-version-properties></calcite-flow-item></calcite-flow>`;
217
217
  }
218
218
  }
219
219
  P("arcgis-version-management", q);