@arcgis/map-components 5.2.0-next.163 → 5.2.0-next.165

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 (63) hide show
  1. package/dist/cdn/2MPZWW4A.js +2 -0
  2. package/dist/cdn/3IZHAJN7.js +2 -0
  3. package/dist/cdn/67UW6MJM.js +2 -0
  4. package/dist/cdn/73NABILZ.js +2 -0
  5. package/dist/cdn/{VF23MMWZ.js → AALEZAW5.js} +1 -1
  6. package/dist/cdn/BPTZ6LBO.js +2 -0
  7. package/dist/cdn/FGQJD346.js +2 -0
  8. package/dist/cdn/OBFJ4JUW.js +2 -0
  9. package/dist/cdn/RMKPKUPL.js +2 -0
  10. package/dist/cdn/WEY7JGX2.js +2 -0
  11. package/dist/cdn/YXFFWLE5.js +2 -0
  12. package/dist/cdn/index.js +1 -1
  13. package/dist/chunks/utils5.js +2 -2
  14. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +5 -0
  15. package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +6 -5
  16. package/dist/components/arcgis-feature-attachments/customElement.js +18 -18
  17. package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
  18. package/dist/components/arcgis-features-next/customElement.js +14 -15
  19. package/dist/components/arcgis-search/customElement.d.ts +12 -0
  20. package/dist/components/arcgis-search/customElement.js +3 -0
  21. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +8 -0
  22. package/dist/components/arcgis-selection-toolbar/customElement.js +23 -17
  23. package/dist/components/arcgis-time-bar/customElement.d.ts +486 -409
  24. package/dist/components/arcgis-time-bar/types.d.ts +36 -15
  25. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +179 -162
  26. package/dist/components/arcgis-time-slider/customElement.d.ts +1 -0
  27. package/dist/components/arcgis-time-slider/customElement.js +8 -7
  28. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +7 -0
  29. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +8 -5
  30. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +45 -2
  31. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +23 -20
  32. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +125 -12
  33. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +9 -2
  34. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +60 -57
  35. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +7 -0
  36. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +12 -9
  37. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +217 -14
  38. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +119 -108
  39. package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +155 -8
  40. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +9 -73
  41. package/dist/components/arcgis-utility-network-trace-results/customElement.js +132 -125
  42. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +161 -2
  43. package/dist/docs/api.json +1 -1
  44. package/dist/docs/docs.json +1 -1
  45. package/dist/docs/vscode.html-custom-data.json +1 -1
  46. package/dist/docs/web-types.json +1 -1
  47. package/dist/loader.js +5 -5
  48. package/dist/types/lumina.d.ts +2 -2
  49. package/dist/types/preact.d.ts +2 -2
  50. package/dist/types/react.d.ts +2 -2
  51. package/dist/types/stencil.d.ts +2 -2
  52. package/package.json +6 -6
  53. package/dist/cdn/24P3B56P.js +0 -2
  54. package/dist/cdn/4TTVR7UK.js +0 -2
  55. package/dist/cdn/7PMSUAOO.js +0 -2
  56. package/dist/cdn/EQX7MHI6.js +0 -2
  57. package/dist/cdn/ERO6VEJC.js +0 -2
  58. package/dist/cdn/JQL6EOCO.js +0 -2
  59. package/dist/cdn/K664I5PA.js +0 -2
  60. package/dist/cdn/NV6GXURX.js +0 -2
  61. package/dist/cdn/S3LQLHD6.js +0 -2
  62. package/dist/cdn/X5PDNDLF.js +0 -2
  63. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +0 -73
@@ -52,18 +52,8 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
52
52
  *
53
53
  * ## Use in a custom app outside the trace analysis component
54
54
  *
55
- * To use the component outside of the trace analysis component, slot it into the default slot of
56
- * [arcgis-utility-network-trace-results-pane](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/). This is useful in custom trace workflow applications
57
- * that display multiple trace results at once or configure each results component independently. Add one trace results
58
- * component for each trace result and set its properties directly. The pane provides the results container; it does
59
- * not run traces or synchronize the results components' properties. Your application supplies each component's
60
- * `traceResult`, `traceError`, `utilityNetwork`, and `view` and manages clearing them.
61
- *
62
- * The [view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#view) property is required for elements and aggregated
63
- * geometry results. The [utilityNetwork](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#utilityNetwork) property is required
64
- * to query features for elements results.
65
- *
66
- * See the [multiple trace results example](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#multiple-trace-results-example).
55
+ * See [arcgis-utility-network-trace-results-pane](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/) for guidance and examples
56
+ * of displaying multiple trace results outside the trace analysis component.
67
57
  *
68
58
  * @slot
69
59
  * - Default slot for adding trace result items or custom content.
@@ -110,64 +100,6 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
110
100
  * console.log("Result items ready:", results.traceResultFeatures);
111
101
  * });
112
102
  * ```
113
- * @example
114
- * <span id="multiple-trace-results-example"></span>
115
- *
116
- * Display two trace results in the default slot of a results pane, without a trace analysis component.
117
- * Each results component has its own heading and display settings. Unlike the first example, neither component
118
- * uses `slot="results"` because both are assigned to the pane's default slot.
119
- * ```html
120
- * <arcgis-utility-network-trace-results-pane id="trace-results-pane">
121
- * <arcgis-utility-network-trace-results
122
- * id="upstream-results"
123
- * heading="Upstream trace"
124
- * expandable
125
- * expanded
126
- * hide-action-bar
127
- * ></arcgis-utility-network-trace-results>
128
- * <arcgis-utility-network-trace-results
129
- * id="downstream-results"
130
- * heading="Downstream trace"
131
- * expandable
132
- * expanded
133
- * disable-highlight-feature-results
134
- * ></arcgis-utility-network-trace-results>
135
- * </arcgis-utility-network-trace-results-pane>
136
- * <calcite-button id="clear-trace-results">Clear results</calcite-button>
137
- * ```
138
- *
139
- * In the following JavaScript, `view` is the application's ready MapView, `utilityNetwork` is its loaded utility
140
- * network, and `upstreamTraceResult` and `downstreamTraceResult` are `TraceResult` objects returned by the application's
141
- * trace workflow. Set the view and utility network before assigning each trace result.
142
- * ```js
143
- * const pane = document.getElementById("trace-results-pane");
144
- * const upstreamResults = document.getElementById("upstream-results");
145
- * const downstreamResults = document.getElementById("downstream-results");
146
- * const resultsComponents = [upstreamResults, downstreamResults];
147
- *
148
- * await Promise.all([pane.componentOnReady(), ...resultsComponents.map((results) => results.componentOnReady())]);
149
- *
150
- * for (const results of resultsComponents) {
151
- * results.view = view;
152
- * results.utilityNetwork = utilityNetwork;
153
- * }
154
- *
155
- * upstreamResults.traceResult = upstreamTraceResult;
156
- * downstreamResults.traceResult = downstreamTraceResult;
157
- *
158
- * document.getElementById("clear-trace-results").addEventListener("click", () => {
159
- * for (const results of resultsComponents) {
160
- * results.clearResults();
161
- * results.traceResult = undefined;
162
- * results.traceError = undefined;
163
- * }
164
- * pane.flowItems.removeAll();
165
- * });
166
- * ```
167
- *
168
- * If a trace fails, clear the corresponding component's `traceResult` and assign the error to its `traceError`
169
- * property. The other results component can continue displaying its result. Before displaying a subsequent
170
- * successful result, reset that component's `traceError` to `undefined`.
171
103
  * @see [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/)
172
104
  * @see [arcgis-utility-network-trace-results-pane](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/)
173
105
  * @see [arcgis-utility-network-trace-aggregated-geometry-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/)
@@ -285,10 +217,12 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
285
217
  /** The description displayed below the component's localized trace results heading. */
286
218
  accessor heading: string | undefined;
287
219
  /**
288
- * Whether to hide the action bar when viewing trace result features.
289
- * The action bar contains the feature's [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions).
220
+ * Whether to hide the action bar that holds the feature's
221
+ * [arcgis-features-next.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions) when viewing trace result features.
290
222
  *
291
223
  * @default false
224
+ * @see [arcgis-features-next.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions)
225
+ * @see [arcgis-features-next.hideActionBar](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#hideActionBar)
292
226
  */
293
227
  accessor hideActionBar: boolean;
294
228
  /**
@@ -322,9 +256,11 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
322
256
  */
323
257
  accessor hidePlaceholder: boolean;
324
258
  /**
325
- * Whether to hide the default actions when viewing trace result features.
259
+ * Whether default actions are disabled (hidden) when viewing trace result features.
260
+ * This property must be set to `true` to disable default actions.
326
261
  *
327
262
  * @default false
263
+ * @see [arcgis-features-next.includeDefaultActionsDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#includeDefaultActionsDisabled)
328
264
  */
329
265
  accessor includeDefaultActionsDisabled: boolean;
330
266
  /**
@@ -1,141 +1,149 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/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
  };