@arcgis/map-components 6.0.0-next.23 → 6.0.0-next.24

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 (61) hide show
  1. package/dist/cdn/{HQXC5XLE.js → 3HI5IZSQ.js} +1 -1
  2. package/dist/cdn/3KAC2MKA.js +2 -0
  3. package/dist/cdn/6GE2WBKV.js +2 -0
  4. package/dist/cdn/{LKKCTKMQ.js → 7U2V3LDM.js} +1 -1
  5. package/dist/cdn/CVLOQWUD.js +2 -0
  6. package/dist/cdn/{NORQIOSX.js → DGXTCH6B.js} +1 -1
  7. package/dist/cdn/E5X5BYWA.js +2 -0
  8. package/dist/cdn/ECF4B24M.js +2 -0
  9. package/dist/cdn/{V7DMA5ZO.js → GZ6UBR6R.js} +1 -1
  10. package/dist/cdn/HADZXZIE.js +2 -0
  11. package/dist/cdn/HTCPPGCR.js +2 -0
  12. package/dist/cdn/LHYI2QBZ.js +2 -0
  13. package/dist/cdn/{4WZ7Y57Q.js → QBRGIFBY.js} +1 -1
  14. package/dist/cdn/QXEOEFF3.js +2 -0
  15. package/dist/cdn/{ZF7NUFAT.js → RT53VCER.js} +1 -1
  16. package/dist/cdn/{AIF4MCBB.js → RXKIZFNQ.js} +1 -1
  17. package/dist/cdn/{TKIWKCDA.js → WU4NDBMC.js} +1 -1
  18. package/dist/cdn/{V3J5GQHD.js → XKGD4N75.js} +1 -1
  19. package/dist/cdn/YITBBUPR.js +2 -0
  20. package/dist/cdn/index.js +1 -1
  21. package/dist/chunks/utils.js +17 -17
  22. package/dist/chunks/utils5.js +2 -2
  23. package/dist/components/arcgis-basemap-gallery/customElement.js +17 -17
  24. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  25. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +5 -0
  26. package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +6 -5
  27. package/dist/components/arcgis-scale-bar/customElement.js +11 -11
  28. package/dist/components/arcgis-swipe/customElement.js +43 -43
  29. package/dist/components/arcgis-time-bar/customElement.d.ts +3 -1
  30. package/dist/components/arcgis-time-slider/customElement.d.ts +1 -0
  31. package/dist/components/arcgis-time-slider/customElement.js +8 -7
  32. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +7 -0
  33. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +8 -5
  34. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +3 -0
  35. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +10 -10
  36. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +125 -12
  37. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +9 -2
  38. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +60 -57
  39. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +7 -0
  40. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +12 -9
  41. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +217 -14
  42. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +119 -108
  43. package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +155 -8
  44. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +7 -3
  45. package/dist/components/arcgis-utility-network-trace-results/customElement.js +132 -125
  46. package/dist/docs/api.json +1 -1
  47. package/dist/docs/docs.json +1 -1
  48. package/dist/docs/vscode.html-custom-data.json +1 -1
  49. package/dist/docs/web-types.json +1 -1
  50. package/dist/loader.js +3 -3
  51. package/package.json +6 -6
  52. package/dist/cdn/2WJ53TNR.js +0 -2
  53. package/dist/cdn/5A7LDBDR.js +0 -2
  54. package/dist/cdn/H4BTVLCG.js +0 -2
  55. package/dist/cdn/MNL7ONFB.js +0 -2
  56. package/dist/cdn/NQ3COROI.js +0 -2
  57. package/dist/cdn/QKNHYZYS.js +0 -2
  58. package/dist/cdn/SIT5NBLS.js +0 -2
  59. package/dist/cdn/SLWZHNVT.js +0 -2
  60. package/dist/cdn/SU2SAOBL.js +0 -2
  61. package/dist/cdn/YYCTSS52.js +0 -2
@@ -1,141 +1,149 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as $ } from "../../chunks/runtime.js";
3
- import { ref as h } from "lit/directives/ref.js";
4
- import c from "@arcgis/core/Color.js";
5
- import { LitElement as E, createEvent as d, safeClassMap as w } from "@arcgis/lumina";
6
- import { usePropertyChange as C, bypassReadOnly as u } from "@arcgis/lumina/controllers";
7
- import { slotChangeGetAssignedElements as I } from "@arcgis/toolkit/dom/slots";
8
- import { log as G, composeMissingPropertyMessage as S } from "@arcgis/toolkit/log";
3
+ import { ref as d } from "lit/directives/ref.js";
4
+ import u from "@arcgis/core/Color.js";
5
+ import { LitElement as b, createEvent as c, safeClassMap as E } from "@arcgis/lumina";
6
+ import { usePropertyChange as C, bypassReadOnly as g } from "@arcgis/lumina/controllers";
7
+ import { slotChangeGetAssignedElements as w } from "@arcgis/toolkit/dom/slots";
8
+ import { log as G, composeMissingPropertyMessage as _ } from "@arcgis/toolkit/log";
9
9
  import { css as D, html as r } from "lit";
10
10
  import { u as F } from "../../chunks/useT9n.js";
11
- import { l as m } from "../../chunks/async-utils.js";
12
- import { a as f, b as o } from "../../chunks/types.js";
13
- import { g as l, b as R, c as y, d as A, e as p, f as k, h as x, j as L } from "../../chunks/utils5.js";
14
- const P = D`:host{height:100%}slot:not([hidden]),.default-result-items{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{margin-top:0;margin-bottom:0;&.features-list-active{--calcite-block-content-space: 0}}.no-selectable-results{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, g = {
11
+ import { l as f } from "../../chunks/async-utils.js";
12
+ import { a as R, b as o } from "../../chunks/types.js";
13
+ import { g as a, b as y, c as p, d as A, e as v, f as S, h as k, j as x } from "../../chunks/utils5.js";
14
+ const L = D`:host{height:100%}slot:not([hidden]),.default-result-items:not([hidden]){display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{height:var(--arcgis-internal-trace-results-height, auto);margin-top:0;margin-bottom:0;&.features-list-active{--calcite-block-content-space: 0}}.no-selectable-results{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, m = {
15
15
  dirtyAreasDiscovered: -2147208511,
16
16
  noValidControllers: -2147208935,
17
17
  pathNotFound: -2147208444
18
18
  };
19
- class T extends E {
19
+ class P extends b {
20
20
  constructor() {
21
- super(...arguments), this._messages = F({ blocking: !0 }), this.#i = /* @__PURE__ */ new Set(), this.#s = /* @__PURE__ */ new Set(), this.#r = /* @__PURE__ */ new Map(), this.#l = [], this.#a = /* @__PURE__ */ new Map(), this.#n = /* @__PURE__ */ new Set(), this.#m = (e) => {
21
+ super(...arguments), this._messages = F({ blocking: !0 }), this.#s = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Set(), this.#i = /* @__PURE__ */ new Map(), this.#a = [], this.#r = /* @__PURE__ */ new Map(), this.#o = /* @__PURE__ */ new Set(), this.#g = (e) => {
22
22
  const { detail: t, target: s } = e;
23
23
  if (t.name === "isFeaturesListShown") {
24
24
  const i = s[t.name];
25
- !this.#e && i ? (this.#e = s, this.#R(l(this.el))) : s === this.#e && !i && (this.#e = void 0, this.#h()), this.requestUpdate();
26
- }
27
- }, this._slottedDefaultResultItems = [], this.aggregatedGeometryResultsGraphicsColor = new c(f), this.aggregatedGeometryResultsSize = 12, this.autoDestroyDisabled = !1, this.disableHighlightFeatureResults = !1, this.expandable = !1, this.expanded = !1, this.hideActionBar = !1, this.hideGraphics = !1, this.hidePlaceholder = !1, this.hideFeatureResults = !1, this.includeDefaultActionsDisabled = !1, this.layers = [], this.state = "ready", this.arcgisPropertyChange = C()("aggregatedGeometryResultsGraphicsColor", "aggregatedGeometryResultsSize", "hideGraphics", "state", "traceError", "traceResult", "utilityNetwork", "view"), this.arcgisResultsReady = d(), this.arcgisTraceResultClear = d(), this.arcgisTriggerAction = d();
25
+ !this.#e && i ? (this.#e = s, this.#f(a(this.el))) : s === this.#e && !i && (this.#e = void 0, this.#d()), this.requestUpdate();
26
+ } else t.name === "hasContent" && this.requestUpdate();
27
+ }, this._slottedDefaultResultItems = [], this.aggregatedGeometryResultsGraphicsColor = new u(R), this.aggregatedGeometryResultsSize = 12, this.autoDestroyDisabled = !1, this.disableHighlightFeatureResults = !1, this.expandable = !1, this.expanded = !1, this.hideActionBar = !1, this.hideGraphics = !1, this.hidePlaceholder = !1, this.hideFeatureResults = !1, this.includeDefaultActionsDisabled = !1, this.layers = [], this.state = "ready", this.arcgisPropertyChange = C()("aggregatedGeometryResultsGraphicsColor", "aggregatedGeometryResultsSize", "hideGraphics", "state", "traceError", "traceResult", "utilityNetwork", "view"), this.arcgisResultsReady = c(), this.arcgisTraceResultClear = c(), this.arcgisTriggerAction = c();
28
28
  }
29
29
  static {
30
- this.properties = { _slottedDefaultResultItems: 16, actions: 0, aggregatedGeometryResultsGraphicsColor: [1, { converter: {
31
- fromAttribute: (e) => c.fromString(e) ?? new c(f)
30
+ this.properties = { _defaultAggregatedGeometryResultsItem: 16, _defaultElementsResultItem: 16, _defaultFunctionsResultItem: 16, _slottedDefaultResultItems: 16, actions: 0, aggregatedGeometryResultsGraphicsColor: [1, { converter: {
31
+ fromAttribute: (e) => u.fromString(e) ?? new u(R)
32
32
  } }], aggregatedGeometryResultsSize: 9, autoDestroyDisabled: 5, disableHighlightFeatureResults: 5, expandable: 5, expanded: 5, heading: 1, hideActionBar: 5, hideGraphics: 5, hidePlaceholder: 5, hideFeatureResults: 5, includeDefaultActionsDisabled: 5, layers: 0, messageOverrides: 0, numFeatureResults: 32, referenceElement: 1, state: 32, traceError: 0, traceResult: 0, traceResultFeatures: 32, utilityNetwork: 0, view: 0 };
33
33
  }
34
34
  static {
35
- this.styles = P;
35
+ this.styles = L;
36
36
  }
37
37
  #e;
38
- #u;
38
+ #s;
39
39
  #t;
40
- #g;
41
40
  #i;
42
- #s;
43
- #r;
44
- #l;
45
41
  #a;
46
- #n;
47
- #m;
48
- get #f() {
49
- return l(this.el).length > 0;
42
+ #r;
43
+ #o;
44
+ #g;
45
+ get #m() {
46
+ const e = this.#l ? this._slottedDefaultResultItems : [
47
+ this._defaultAggregatedGeometryResultsItem,
48
+ this._defaultElementsResultItem,
49
+ this._defaultFunctionsResultItem
50
+ ].filter((t) => t !== void 0);
51
+ return this.#h || e.some((t) => t.hasContent);
50
52
  }
51
- get #C() {
52
- return this.traceResult ? this.#f ? l(this.el).filter(R) : this.#D(this.traceResult) : [];
53
+ get #h() {
54
+ return a(this.el).filter((e) => !y(e)).length > 0;
53
55
  }
54
- get #y() {
55
- return !!this.traceResult && !this.traceError && this.#o;
56
+ get #l() {
57
+ return a(this.el).length > 0;
56
58
  }
57
- get #p() {
58
- if (!this.traceResult || !this.#o)
59
+ get #E() {
60
+ return this.traceResult ? this.#l ? a(this.el).filter(p) : this.#D(this.traceResult) : [];
61
+ }
62
+ get #C() {
63
+ return !!this.traceResult && !this.traceError && (this.#n || this.#l);
64
+ }
65
+ get #R() {
66
+ if (!this.traceResult || !this.#n)
59
67
  return !1;
60
- if (l(this.el).some((a) => !y(a)))
68
+ if (this.#h)
61
69
  return !0;
62
- const { aggregatedGeometry: t, elements: s, globalFunctionResults: i } = this.traceResult;
63
- return this._slottedDefaultResultItems.some((a) => t != null && A(a) || s.length > 0 && p(a) || i.length > 0 && k(a));
70
+ const { aggregatedGeometry: e, elements: t, globalFunctionResults: s } = this.traceResult;
71
+ return this._slottedDefaultResultItems.some((i) => e != null && A(i) || t.length > 0 && v(i) || s.length > 0 && S(i));
64
72
  }
65
- get #o() {
73
+ get #n() {
66
74
  if (!this.traceResult)
67
75
  return !1;
68
76
  const { elements: e, globalFunctionResults: t, aggregatedGeometry: s } = this.traceResult;
69
77
  return !!(e.length || t.length || s);
70
78
  }
71
79
  get numFeatureResults() {
72
- return this.#t ? this.#t.numResults : this.#l[0]?.numResults ?? 0;
80
+ return this._defaultElementsResultItem ? this._defaultElementsResultItem.numResults : this.#a[0]?.numResults ?? 0;
73
81
  }
74
82
  get traceResultFeatures() {
75
- return this.#t ? this.#t.features : this.#l[0]?.features ?? [];
83
+ return this._defaultElementsResultItem ? this._defaultElementsResultItem.features : this.#a[0]?.features ?? [];
76
84
  }
77
85
  clearResults() {
78
- this.#v(), this.arcgisTraceResultClear.emit();
86
+ this.#y(), this.arcgisTraceResultClear.emit();
79
87
  }
80
88
  async destroy() {
81
- const e = l(this.el).filter(x), t = await Promise.allSettled([
89
+ const e = a(this.el).filter(k), t = await Promise.allSettled([
82
90
  ...e.map(async (s) => await s.destroy()),
83
- this.#u?.destroy(),
84
- this.#t?.destroy(),
85
- this.#g?.destroy()
91
+ this._defaultAggregatedGeometryResultsItem?.destroy(),
92
+ this._defaultElementsResultItem?.destroy(),
93
+ this._defaultFunctionsResultItem?.destroy()
86
94
  ]);
87
95
  for (const s of t)
88
- s.status === "rejected" && m(s.reason, this, "Error while destroying trace result item");
96
+ s.status === "rejected" && f(s.reason, this, "Error while destroying trace result item");
89
97
  await this.manager.destroy();
90
98
  }
91
99
  load() {
92
100
  this.manager.onLifecycle(() => {
93
- const e = l(this.el);
94
- return this.#w(e), this.#E(e), () => {
101
+ const e = a(this.el);
102
+ return this.#$(e), this.#I(e), () => {
103
+ for (const t of this.#i.keys())
104
+ this.#v(t);
95
105
  for (const t of this.#r.keys())
96
- this.#$(t);
97
- for (const t of this.#a.keys())
98
- this.#b(t);
99
- this.#h();
106
+ this.#p(t);
107
+ this.#d();
100
108
  };
101
109
  });
102
110
  }
103
111
  willUpdate(e) {
104
- e.has("traceResult") && (this.#v(), this.#y ? this.#T() : this.traceResult && !this.traceError && !this.#o && this.#c());
112
+ e.has("traceResult") && (this.#y(), this.#C ? this.#P() : this.traceResult && !this.traceError && !this.#n && this.#u());
105
113
  }
106
114
  loaded() {
107
- this.traceResult && (this.view || G("warn", this, S("view")));
115
+ this.traceResult && (this.view || G("warn", this, _("view")));
108
116
  }
109
- #h() {
110
- for (const e of this.#i)
117
+ #d() {
118
+ for (const e of this.#s)
111
119
  e.removeAttribute("hidden");
112
- this.#i.clear();
120
+ this.#s.clear();
113
121
  }
114
- #v() {
115
- const e = l(this.el).filter(L);
122
+ #y() {
123
+ const e = a(this.el).filter(x);
116
124
  for (const t of e)
117
125
  try {
118
126
  t.clearResult();
119
127
  } catch (s) {
120
- m(s, this, "Error while clearing trace result item");
128
+ f(s, this, "Error while clearing trace result item");
121
129
  }
122
- this.#u?.clearResult(), this.#t?.clearResult(), this.#g?.clearResult(), this.#s.clear(), u(() => this.state = "ready");
130
+ this._defaultAggregatedGeometryResultsItem?.clearResult(), this._defaultElementsResultItem?.clearResult(), this._defaultFunctionsResultItem?.clearResult(), this.#t.clear(), g(() => this.state = "ready");
123
131
  }
124
- #I(e) {
125
- e && (this.#u = e);
132
+ #w(e) {
133
+ this._defaultAggregatedGeometryResultsItem = e;
126
134
  }
127
135
  #G(e) {
128
- this.#e && this.#e === this.#t && e !== this.#t && (this.#e = void 0, this.#h()), this.#t = e, !this.#e && e?.isFeaturesListShown && (this.#e = e, this.#R(l(this.el))), this.requestUpdate();
136
+ this.#e && this.#e === this._defaultElementsResultItem && e !== this._defaultElementsResultItem && (this.#e = void 0, this.#d()), this._defaultElementsResultItem = e, !this.#e && e?.isFeaturesListShown && (this.#e = e, this.#f(a(this.el)));
129
137
  }
130
- #S(e) {
131
- e && (this.#g = e);
138
+ #_(e) {
139
+ this._defaultFunctionsResultItem = e;
132
140
  }
133
- #c() {
134
- u(() => this.state = "ready"), this.arcgisResultsReady.emit();
141
+ #u() {
142
+ g(() => this.state = "ready"), this.arcgisResultsReady.emit();
135
143
  }
136
144
  #D(e) {
137
- const { elements: t, globalFunctionResults: s, aggregatedGeometry: i } = e, [a, v, b] = o, n = [];
138
- return i != null && n.push(a), t != null && n.push(v), s.length > 0 && n.push(b), n;
145
+ const { elements: t, globalFunctionResults: s, aggregatedGeometry: i } = e, [h, l, I] = o, n = [];
146
+ return i != null && n.push(h), t != null && n.push(l), s.length > 0 && n.push(I), n;
139
147
  }
140
148
  #F(e) {
141
149
  e.stopPropagation(), this.arcgisTriggerAction.emit(e.detail);
@@ -144,81 +152,80 @@ class T extends E {
144
152
  const { detail: t, target: s } = e;
145
153
  t.name === "hideGraphics" ? (e.stopPropagation(), this.hideGraphics = s[t.name]) : t.name === "graphicsColor" ? (e.stopPropagation(), this.aggregatedGeometryResultsGraphicsColor = s[t.name]) : t.name === "selectionSize" && (e.stopPropagation(), this.aggregatedGeometryResultsSize = s[t.name]);
146
154
  }
155
+ #S() {
156
+ this.#c(o[0]);
157
+ }
147
158
  #k() {
148
- this.#d(o[0]);
159
+ this.#c(o[1]);
149
160
  }
150
161
  #x() {
151
- this.#d(o[1]);
162
+ this.#c(o[2]);
152
163
  }
153
- #L() {
154
- this.#d(o[2]);
164
+ #L(e) {
165
+ const t = w(e);
166
+ this.#$(t), this.#I(t);
155
167
  }
156
- #P(e) {
157
- const t = I(e);
158
- this.#w(t), this.#E(t);
159
- }
160
- #R(e) {
168
+ #f(e) {
161
169
  e.forEach((t) => {
162
- t !== this.#e && !t.hasAttribute("hidden") ? (t.setAttribute("hidden", ""), this.#i.add(t)) : t === this.#e && this.#i.has(t) && (t.removeAttribute("hidden"), this.#i.delete(t));
170
+ t !== this.#e && !t.hasAttribute("hidden") ? (t.setAttribute("hidden", ""), this.#s.add(t)) : t === this.#e && this.#s.has(t) && (t.removeAttribute("hidden"), this.#s.delete(t));
163
171
  });
164
172
  }
165
- #T() {
166
- this.#s = new Set(this.#C), this.#s.size === 0 ? this.#c() : u(() => this.state = "loading");
167
- }
168
- #z(e) {
169
- if (this.#a.has(e))
170
- return;
171
- const t = (s) => this.#m(s);
172
- this.#a.set(e, t), e.addEventListener("arcgisPropertyChange", t);
173
+ #P() {
174
+ this.#t = new Set(this.#E), this.#t.size === 0 ? this.#u() : g(() => this.state = "loading");
173
175
  }
174
- #_(e) {
176
+ #T(e) {
175
177
  if (this.#r.has(e))
176
178
  return;
177
- const t = ({ target: s }) => this.#d(s);
178
- this.#r.set(e, t), e.addEventListener("arcgisResultReady", t);
179
+ const t = (s) => this.#g(s);
180
+ this.#r.set(e, t), e.addEventListener("arcgisPropertyChange", t);
179
181
  }
180
- #b(e) {
181
- const t = this.#a.get(e);
182
- t && (e.removeEventListener("arcgisPropertyChange", t), this.#a.delete(e));
182
+ #z(e) {
183
+ if (this.#i.has(e))
184
+ return;
185
+ const t = ({ target: s }) => this.#c(s);
186
+ this.#i.set(e, t), e.addEventListener("arcgisResultReady", t);
183
187
  }
184
- #$(e) {
188
+ #p(e) {
185
189
  const t = this.#r.get(e);
186
- t && (e.removeEventListener("arcgisResultReady", t), this.#r.delete(e));
187
- }
188
- #E(e) {
189
- for (const i of this.#i)
190
- e.includes(i) || (i.removeAttribute("hidden"), this.#i.delete(i));
191
- const t = e.filter(p);
192
- for (const i of this.#l)
193
- t.includes(i) || this.#b(i);
190
+ t && (e.removeEventListener("arcgisPropertyChange", t), this.#r.delete(e));
191
+ }
192
+ #v(e) {
193
+ const t = this.#i.get(e);
194
+ t && (e.removeEventListener("arcgisResultReady", t), this.#i.delete(e));
195
+ }
196
+ #I(e) {
197
+ for (const i of this.#s)
198
+ e.includes(i) || (i.removeAttribute("hidden"), this.#s.delete(i));
199
+ const t = e.filter(v);
200
+ for (const i of this.#a)
201
+ t.includes(i) || this.#p(i);
194
202
  for (const i of t)
195
- this.#z(i);
203
+ this.#T(i);
196
204
  const s = this.#e;
197
- s && (!s.isFeaturesListShown || s !== this.#t && !t.includes(s)) && (this.#e = void 0, this.#h()), this.#e ??= t.find((i) => i.isFeaturesListShown), this.#e && this.#R(e), this.#l = t, this.requestUpdate();
205
+ s && (!s.isFeaturesListShown || s !== this._defaultElementsResultItem && !t.includes(s)) && (this.#e = void 0, this.#d()), this.#e ??= t.find((i) => i.isFeaturesListShown), this.#e && this.#f(e), this.#a = t, this.requestUpdate();
198
206
  }
199
- #w(e) {
200
- const t = new Set(e.filter(R));
201
- for (const s of this.#n)
202
- t.has(s) || (this.#$(s), this.#s.delete(s));
207
+ #$(e) {
208
+ const t = new Set(e.filter(p));
209
+ for (const s of this.#o)
210
+ t.has(s) || (this.#v(s), this.#t.delete(s));
203
211
  for (const s of t)
204
- this.#_(s), this.state === "loading" && !this.#n.has(s) && this.#s.add(s);
205
- this.#n = t, this._slottedDefaultResultItems = e.filter(y), this.state === "loading" && this.#s.size === 0 && this.#c();
212
+ this.#z(s), this.state === "loading" && !this.#o.has(s) && this.#t.add(s);
213
+ this.#o = t, this._slottedDefaultResultItems = e.filter(y), this.state === "loading" && this.#t.size === 0 && this.#u();
206
214
  }
207
- #d(e) {
208
- this.#s.delete(e), this.state === "loading" && this.#s.size === 0 && this.#c();
215
+ #c(e) {
216
+ this.#t.delete(e), this.state === "loading" && this.#t.size === 0 && this.#u();
209
217
  }
210
218
  render() {
211
- const { traceError: e, traceResult: t } = this;
212
- let s;
213
- const i = !this.#y || !this.#f || !this.#p, a = r`<slot .hidden=${i} @slotchange=${this.#P}></slot>`;
214
- return e ? s = this.#O(e) : t ? this.#o ? this.#f ? this.#p || (s = this.#N()) : s = this.#H(t) : s = this.#B() : s = this.#U(), r`<calcite-block class=${w({
219
+ const { traceError: e, traceResult: t } = this, s = !e && t && this.#n && !this.#l ? this.#H(t) : void 0, i = !!t && !e && this.#m && (this.#h || this.#R), h = r`<slot .hidden=${!i} @slotchange=${this.#L}></slot>`;
220
+ let l;
221
+ return e ? l = this.#O(e) : t ? !this.#n && !this.#h ? l = this.#b() : this.state === "ready" && !this.#m && (l = this.#l && this._slottedDefaultResultItems.length && !this.#R ? this.#N() : this.#b()) : l = this.#B(), r`<calcite-block class=${E({
215
222
  "results-block": !0,
216
223
  "features-list-active": !!this.#e
217
- })} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state === "loading"}>${a}${s}</calcite-block>`;
224
+ })} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state === "loading"}>${h}${s}${l}</calcite-block>`;
218
225
  }
219
226
  #H(e) {
220
227
  const { elements: t, globalFunctionResults: s, aggregatedGeometry: i } = e;
221
- return r`<div class="default-result-items">${i != null ? r`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#e} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#A} @arcgisResultReady=${this.#k} ${h(this.#I)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!t.length && !this.#e ? this.#M() : null}` : null}${t != null ? r`<arcgis-utility-network-trace-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlight=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!t.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} @arcgisPropertyChange=${this.#m} @arcgisResultReady=${this.#x} @arcgisTriggerAction=${this.#F} ${h(this.#G)}></arcgis-utility-network-trace-elements-result-item>` : null}${s.length > 0 ? r`<arcgis-utility-network-trace-functions-result-item auto-destroy-disabled .heading=${this._messages.headings.functions} .hidden=${!!this.#e} .messageOverrides=${this.messageOverrides} @arcgisResultReady=${this.#L} ${h(this.#S)}></arcgis-utility-network-trace-functions-result-item>` : null}</div>`;
228
+ return r`<div class="default-result-items" .hidden=${!this.#m}>${i != null ? r`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#e} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#A} @arcgisResultReady=${this.#S} ${d(this.#w)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!t.length && !this.#e ? this.#M() : null}` : null}${t != null ? r`<arcgis-utility-network-trace-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlight=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!t.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} @arcgisPropertyChange=${this.#g} @arcgisResultReady=${this.#k} @arcgisTriggerAction=${this.#F} ${d(this.#G)}></arcgis-utility-network-trace-elements-result-item>` : null}${s.length > 0 ? r`<arcgis-utility-network-trace-functions-result-item auto-destroy-disabled .heading=${this._messages.headings.functions} .hidden=${!!this.#e} .messageOverrides=${this.messageOverrides} @arcgisResultReady=${this.#x} ${d(this.#_)}></arcgis-utility-network-trace-functions-result-item>` : null}</div>`;
222
229
  }
223
230
  #N() {
224
231
  return r`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`;
@@ -230,28 +237,28 @@ class T extends E {
230
237
  const { _messages: t } = this;
231
238
  let s = e.message;
232
239
  switch (e.details?.raw?.extendedCode) {
233
- case g.dirtyAreasDiscovered:
240
+ case m.dirtyAreasDiscovered:
234
241
  s = t.traceErrors.dirtyAreasDiscovered;
235
242
  break;
236
- case g.noValidControllers:
243
+ case m.noValidControllers:
237
244
  s = t.traceErrors.noValidControllers;
238
245
  break;
239
- case g.pathNotFound:
246
+ case m.pathNotFound:
240
247
  s = t.traceErrors.pathNotFound;
241
248
  break;
242
249
  }
243
250
  return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.traceFailedHeading}</div><div class="no-results-description">${t.traceFailedDescription}</div><div class="no-results-description">${s}</div></div>`;
244
251
  }
245
- #B() {
252
+ #b() {
246
253
  const { _messages: e } = this;
247
254
  return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.noResultsHeading}</div><div class="no-results-description">${e.noResultsDescription}</div></div>`;
248
255
  }
249
- #U() {
256
+ #B() {
250
257
  const { _messages: e } = this;
251
258
  return r`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${e.noTraceConfigHeading}</div><div class="no-results-description">${e.noTraceConfigDescription}</div></div>`;
252
259
  }
253
260
  }
254
- $("arcgis-utility-network-trace-results", T);
261
+ $("arcgis-utility-network-trace-results", P);
255
262
  export {
256
- T as ArcgisUtilityNetworkTraceResults
263
+ P as ArcgisUtilityNetworkTraceResults
257
264
  };