@arcgis/map-components 5.2.0-next.70 → 5.2.0-next.72

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 (68) hide show
  1. package/LICENSE.md +4 -2
  2. package/dist/cdn/2O6GHHUY.js +2 -0
  3. package/dist/cdn/3RKTUDSL.js +2 -0
  4. package/dist/cdn/AXEUVRDP.js +2 -0
  5. package/dist/cdn/CQV2TQUQ.js +2 -0
  6. package/dist/cdn/{3MGDX726.js → KTCKSRJG.js} +1 -1
  7. package/dist/cdn/MGL4QBFB.js +2 -0
  8. package/dist/cdn/NTODRT2V.js +2 -0
  9. package/dist/cdn/{U257QRYB.js → PPZFYY4R.js} +1 -1
  10. package/dist/cdn/{MCKFNVHF.js → QM3KT7SZ.js} +1 -1
  11. package/dist/cdn/T6ONYBEY.js +2 -0
  12. package/dist/cdn/WXNDZFDX.js +2 -0
  13. package/dist/cdn/{LI7PGPU4.js → YPDSLXD2.js} +1 -1
  14. package/dist/cdn/{M7P6P7TR.js → ZS7I5TA6.js} +1 -1
  15. package/dist/cdn/assets/basemap-layer-list-next/t9n/messages.en.json +1 -1
  16. package/dist/cdn/assets/catalog-layer-list-next/t9n/messages.en.json +1 -1
  17. package/dist/cdn/assets/layer-list-next/t9n/messages.en.json +1 -1
  18. package/dist/cdn/assets/utility-network-aggregated-geometry-next/t9n/messages.en.json +1 -0
  19. package/dist/cdn/assets/utility-network-subnetwork-info-next/t9n/messages.en.json +1 -0
  20. package/dist/cdn/assets/utility-network-trace-analysis-next/t9n/messages.en.json +1 -0
  21. package/dist/cdn/assets/utility-network-trace-inputs-next/t9n/messages.en.json +1 -0
  22. package/dist/cdn/assets/utility-network-trace-location-list-next/t9n/messages.en.json +1 -0
  23. package/dist/cdn/assets/utility-network-trace-location-next/t9n/messages.en.json +1 -0
  24. package/dist/cdn/assets/utility-network-trace-results-next/t9n/messages.en.json +1 -0
  25. package/dist/cdn/index.js +1 -1
  26. package/dist/cdn/main.css +1 -1
  27. package/dist/chunks/slots.js +1 -1
  28. package/dist/components/arcgis-utility-network-aggregated-geometry-next/customElement.d.ts +63 -0
  29. package/dist/components/arcgis-utility-network-aggregated-geometry-next/customElement.js +109 -0
  30. package/dist/components/arcgis-utility-network-aggregated-geometry-next/index.d.ts +1 -0
  31. package/dist/components/arcgis-utility-network-aggregated-geometry-next/index.js +2 -0
  32. package/dist/components/arcgis-utility-network-subnetwork-info-next/customElement.d.ts +29 -0
  33. package/dist/components/arcgis-utility-network-subnetwork-info-next/customElement.js +35 -0
  34. package/dist/components/arcgis-utility-network-subnetwork-info-next/index.d.ts +1 -0
  35. package/dist/components/arcgis-utility-network-subnetwork-info-next/index.js +1 -0
  36. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +383 -0
  37. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +186 -0
  38. package/dist/components/arcgis-utility-network-trace-analysis-next/index.d.ts +1 -0
  39. package/dist/components/arcgis-utility-network-trace-analysis-next/index.js +11 -0
  40. package/dist/components/arcgis-utility-network-trace-analysis-next/types.d.ts +26 -0
  41. package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.d.ts +197 -0
  42. package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +401 -0
  43. package/dist/components/arcgis-utility-network-trace-inputs-next/index.d.ts +1 -0
  44. package/dist/components/arcgis-utility-network-trace-inputs-next/index.js +16 -0
  45. package/dist/components/arcgis-utility-network-trace-location-list-next/customElement.d.ts +43 -0
  46. package/dist/components/arcgis-utility-network-trace-location-list-next/customElement.js +70 -0
  47. package/dist/components/arcgis-utility-network-trace-location-list-next/index.d.ts +1 -0
  48. package/dist/components/arcgis-utility-network-trace-location-list-next/index.js +9 -0
  49. package/dist/components/arcgis-utility-network-trace-location-next/customElement.d.ts +159 -0
  50. package/dist/components/arcgis-utility-network-trace-location-next/customElement.js +292 -0
  51. package/dist/components/arcgis-utility-network-trace-location-next/index.d.ts +1 -0
  52. package/dist/components/arcgis-utility-network-trace-location-next/index.js +4 -0
  53. package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +191 -0
  54. package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +210 -0
  55. package/dist/components/arcgis-utility-network-trace-results-next/index.d.ts +1 -0
  56. package/dist/components/arcgis-utility-network-trace-results-next/index.js +15 -0
  57. package/dist/docs/api.json +1 -1
  58. package/dist/docs/docs.json +1 -1
  59. package/dist/docs/vscode.html-custom-data.json +1 -1
  60. package/dist/docs/web-types.json +1 -1
  61. package/dist/index.d.ts +58 -0
  62. package/dist/loader.js +7 -0
  63. package/dist/types/lumina.d.ts +55 -0
  64. package/dist/types/preact.d.ts +62 -0
  65. package/dist/types/react.d.ts +69 -0
  66. package/dist/types/stencil.d.ts +55 -0
  67. package/package.json +4 -4
  68. package/dist/cdn/2MNCEI34.js +0 -2
@@ -0,0 +1,191 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type Color from "@arcgis/core/Color.js";
3
+ import type EsriError from "@arcgis/core/core/Error.js";
4
+ import type Graphic from "@arcgis/core/Graphic.js";
5
+ import type Layer from "@arcgis/core/layers/Layer.js";
6
+ import type UtilityNetwork from "@arcgis/core/networks/UtilityNetwork.js";
7
+ import type TraceResult from "@arcgis/core/rest/networks/support/TraceResult.js";
8
+ import type MapView from "@arcgis/core/views/MapView.js";
9
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
10
+ import type { ArcgisFeaturesNext } from "../arcgis-features-next/customElement.js";
11
+ import type { ArcgisReferenceElement } from "../types.js";
12
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
13
+
14
+ /**
15
+ * This is a sub-component used by the **ArcgisUtilityNetworkTraceAnalysis** component.
16
+ * It displays a subset of trace result types.
17
+ *
18
+ * @since 4.34
19
+ * @internal
20
+ */
21
+ export abstract class ArcgisUtilityNetworkTraceResultsNext extends LitElement {
22
+ /** @internal */
23
+ protected _messages: {
24
+ gettingResults: string;
25
+ headings: {
26
+ features: string;
27
+ functions: string;
28
+ setColor: string;
29
+ totalFeatures: string;
30
+ traceResultsCustom: string;
31
+ traceResultsGeneric: string;
32
+ };
33
+ labels: {
34
+ aggregatedGeometryGraphicsColor: string;
35
+ functionResults: string;
36
+ numElements: string;
37
+ numFeatures: string;
38
+ numFunctions: string;
39
+ traceResultElementsByLayer: string;
40
+ };
41
+ noResultsDescription: string;
42
+ noResultsHeading: string;
43
+ noSelectableFeatures: string;
44
+ noTraceConfigDescription: string;
45
+ noTraceConfigHeading: string;
46
+ resultFeaturesAreHidden: string;
47
+ traceErrors: {
48
+ dirtyAreasDiscovered: string;
49
+ noValidControllers: string;
50
+ pathNotFound: string;
51
+ };
52
+ traceFailedDescription: string;
53
+ traceFailedHeading: string;
54
+ unknown: string;
55
+ } & T9nMeta<{
56
+ gettingResults: string;
57
+ headings: {
58
+ features: string;
59
+ functions: string;
60
+ setColor: string;
61
+ totalFeatures: string;
62
+ traceResultsCustom: string;
63
+ traceResultsGeneric: string;
64
+ };
65
+ labels: {
66
+ aggregatedGeometryGraphicsColor: string;
67
+ functionResults: string;
68
+ numElements: string;
69
+ numFeatures: string;
70
+ numFunctions: string;
71
+ traceResultElementsByLayer: string;
72
+ };
73
+ noResultsDescription: string;
74
+ noResultsHeading: string;
75
+ noSelectableFeatures: string;
76
+ noTraceConfigDescription: string;
77
+ noTraceConfigHeading: string;
78
+ resultFeaturesAreHidden: string;
79
+ traceErrors: {
80
+ dirtyAreasDiscovered: string;
81
+ noValidControllers: string;
82
+ pathNotFound: string;
83
+ };
84
+ traceFailedDescription: string;
85
+ traceFailedHeading: string;
86
+ unknown: string;
87
+ }>;
88
+ accessor aggregatedGeometryGraphicsColor: Color;
89
+ /**
90
+ * If true, the component will not be destroyed automatically when it is
91
+ * disconnected from the document. This is useful when you want to move the
92
+ * component to a different place on the page, or temporarily hide it. If this
93
+ * is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-next/#destroy) method when you are done to
94
+ * prevent memory leaks.
95
+ *
96
+ * @default false
97
+ */
98
+ accessor autoDestroyDisabled: boolean;
99
+ /**
100
+ * @default false
101
+ * @internal
102
+ */
103
+ accessor hideActionBar: boolean;
104
+ /** @default false */
105
+ accessor hideFeatureResults: boolean;
106
+ /** @default false */
107
+ accessor isElementsSelected: boolean;
108
+ accessor layers: Layer[];
109
+ /**
110
+ * Replace localized message strings with your own strings.
111
+ *
112
+ * _**Note**: Individual message keys may change between releases._
113
+ */
114
+ accessor messageOverrides: NonNullable<ArcgisFeaturesNext["messageOverrides"]> & {
115
+ gettingResults?: string | undefined;
116
+ headings?: {
117
+ features?: string | undefined;
118
+ functions?: string | undefined;
119
+ setColor?: string | undefined;
120
+ totalFeatures?: string | undefined;
121
+ traceResultsCustom?: string | undefined;
122
+ traceResultsGeneric?: string | undefined;
123
+ } | undefined;
124
+ labels?: {
125
+ aggregatedGeometryGraphicsColor?: string | undefined;
126
+ functionResults?: string | undefined;
127
+ numElements?: string | undefined;
128
+ numFeatures?: string | undefined;
129
+ numFunctions?: string | undefined;
130
+ traceResultElementsByLayer?: string | undefined;
131
+ } | undefined;
132
+ noResultsDescription?: string | undefined;
133
+ noResultsHeading?: string | undefined;
134
+ noSelectableFeatures?: string | undefined;
135
+ noTraceConfigDescription?: string | undefined;
136
+ noTraceConfigHeading?: string | undefined;
137
+ resultFeaturesAreHidden?: string | undefined;
138
+ traceErrors?: {
139
+ dirtyAreasDiscovered?: string | undefined;
140
+ noValidControllers?: string | undefined;
141
+ pathNotFound?: string | undefined;
142
+ } | undefined;
143
+ traceFailedDescription?: string | undefined;
144
+ traceFailedHeading?: string | undefined;
145
+ unknown?: string | undefined;
146
+ };
147
+ get numResults(): number;
148
+ /**
149
+ * By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
150
+ *
151
+ * @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
152
+ */
153
+ accessor referenceElement: ArcgisReferenceElement | string | undefined;
154
+ /** @default "ready" */
155
+ accessor state: State;
156
+ accessor traceConfigTitle: string | undefined;
157
+ accessor traceError: EsriError<TraceErrorDetails> | undefined;
158
+ accessor traceResult: TraceResult | undefined;
159
+ accessor traceResultFeatures: Graphic[];
160
+ accessor utilityNetwork: UtilityNetwork | undefined;
161
+ /**
162
+ * The view associated with the component.
163
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-results-next component will be associated with a map or scene component rather than using the `view` property.
164
+ */
165
+ accessor view: MapView | undefined;
166
+ clearAggregatedGeometryGraphics(): void;
167
+ /** Permanently destroy the component. */
168
+ destroy(): Promise<void>;
169
+ readonly arcgisAggregatedGeometryGraphicsColorChange: import("@arcgis/lumina").TargetedEvent<this, string>;
170
+ readonly arcgisHideGraphicsChange: import("@arcgis/lumina").TargetedEvent<this, boolean>;
171
+ readonly arcgisSelectedResultTypeChange: import("@arcgis/lumina").TargetedEvent<this, void>;
172
+ readonly arcgisTraceResultFeaturesReady: import("@arcgis/lumina").TargetedEvent<this, void>;
173
+ readonly "@eventTypes": {
174
+ arcgisAggregatedGeometryGraphicsColorChange: ArcgisUtilityNetworkTraceResultsNext["arcgisAggregatedGeometryGraphicsColorChange"]["detail"];
175
+ arcgisHideGraphicsChange: ArcgisUtilityNetworkTraceResultsNext["arcgisHideGraphicsChange"]["detail"];
176
+ arcgisSelectedResultTypeChange: ArcgisUtilityNetworkTraceResultsNext["arcgisSelectedResultTypeChange"]["detail"];
177
+ arcgisTraceResultFeaturesReady: ArcgisUtilityNetworkTraceResultsNext["arcgisTraceResultFeaturesReady"]["detail"];
178
+ };
179
+ }
180
+
181
+ /** @internal */
182
+ export type State = "loading" | "ready";
183
+
184
+ /** @internal */
185
+ export interface TraceErrorDetails {
186
+ url?: string;
187
+ raw?: {
188
+ extendedCode?: number;
189
+ message?: string;
190
+ };
191
+ }
@@ -0,0 +1,210 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as p } from "../../chunks/runtime.js";
3
+ import y from "@arcgis/core/Color.js";
4
+ import "@arcgis/core/core/Error.js";
5
+ import "@arcgis/core/Graphic.js";
6
+ import { LitElement as f, createEvent as d } from "@arcgis/lumina";
7
+ import { log as o, composeMissingPropertyMessage as g, composeEmptyPropertyMessage as v } from "@arcgis/toolkit/log";
8
+ import { css as b, html as l } from "lit";
9
+ import { createRef as $, ref as u } from "lit/directives/ref.js";
10
+ import { u as w } from "../../chunks/useT9n.js";
11
+ import { l as C } from "../../chunks/async-utils.js";
12
+ import { q as R, c as E } from "../../chunks/layer-utils.js";
13
+ const x = b`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features-next{height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;margin:0 var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{margin:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl);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)}`, h = {
14
+ dirtyAreasDiscovered: -2147208511,
15
+ noValidControllers: -2147208935,
16
+ pathNotFound: -2147208444
17
+ };
18
+ class F extends f {
19
+ constructor() {
20
+ super(...arguments), this._messages = w({ blocking: !0 }), this.#c = !0, this.#t = [], this.#s = $(), this.#a = /* @__PURE__ */ new Map(), this.#o = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#r = /* @__PURE__ */ new Map(), this.#l = [], this._aggregatedGeometryDisabled = !1, this.aggregatedGeometryGraphicsColor = new y([255, 255, 0, 0.6]), this.hideActionBar = !1, this.hideFeatureResults = !1, this.isElementsSelected = !1, this.layers = [], this.state = "ready", this.traceResultFeatures = [], this.autoDestroyDisabled = !1, this.arcgisAggregatedGeometryGraphicsColorChange = d(), this.arcgisHideGraphicsChange = d(), this.arcgisSelectedResultTypeChange = d(), this.arcgisTraceResultFeaturesReady = d();
21
+ }
22
+ static {
23
+ this.properties = { _aggregatedGeometryDisabled: 16, _featuresComponentElement: 16, aggregatedGeometryGraphicsColor: 0, hideActionBar: 5, hideFeatureResults: 5, isElementsSelected: 5, layers: 0, messageOverrides: 0, numResults: 32, referenceElement: 1, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
24
+ }
25
+ static {
26
+ this.styles = x;
27
+ }
28
+ #c;
29
+ #t;
30
+ #n;
31
+ #s;
32
+ #a;
33
+ #o;
34
+ #i;
35
+ #r;
36
+ #l;
37
+ get numResults() {
38
+ return this.traceResultFeatures.length + this.#t.length;
39
+ }
40
+ clearAggregatedGeometryGraphics() {
41
+ this.#n?.destroy();
42
+ }
43
+ async destroy() {
44
+ this.#a.clear(), this.#i.clear(), this.#r.clear(), this.#n?.destroy(), this._featuresComponentElement?.destroy(), await this.manager.destroy();
45
+ }
46
+ load() {
47
+ this.traceResult && (this.#$(), this.#v().then(() => this.#b()).finally(() => {
48
+ this.arcgisTraceResultFeaturesReady.emit(), this.state = "ready";
49
+ }));
50
+ }
51
+ willUpdate(e) {
52
+ e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("traceResult") && (this.isElementsSelected = !1, this.traceResult || (this.traceResultFeatures = [], this.#t = []));
53
+ }
54
+ loaded() {
55
+ this.traceResult && (this.utilityNetwork || o("warn", this, g("utilityNetwork")), this.layers.length || o("warn", this, v("layers")), this.view || o("warn", this, g("view")));
56
+ }
57
+ disconnectedCallback() {
58
+ super.disconnectedCallback(), this.#o.clear();
59
+ }
60
+ #h(e) {
61
+ e && (this.#n = e);
62
+ }
63
+ #g(e) {
64
+ e && (this._featuresComponentElement = e);
65
+ }
66
+ async #m([e, t]) {
67
+ const s = this.utilityNetwork?.getLayerIdBySourceId(e), a = this.#p(s), i = this.#y(t);
68
+ if (s == null || !a) {
69
+ this.#t.push(...i);
70
+ return;
71
+ }
72
+ const r = a.createQuery();
73
+ r.gdbVersion = this.utilityNetwork?.gdbVersion, r.objectIds = i.map((c) => c.objectId), r.outFields = ["*"];
74
+ const { features: n } = await R(a, r);
75
+ n.forEach((c) => {
76
+ const m = c.layer;
77
+ c.getEffectivePopupTemplate(this.#c) || (c.popupTemplate = m.createPopupTemplate());
78
+ }), E(a) ? n.forEach((c) => this.#d(this.#i, c.layer.subtypeCode, c)) : this.#a.set(s, n);
79
+ }
80
+ #d(e, t, s) {
81
+ const a = e.get(t);
82
+ a == null ? e.set(t, [s]) : a.push(s);
83
+ }
84
+ #p(e) {
85
+ if (e == null)
86
+ return;
87
+ const t = this.#o, s = this.#l, a = t.get(e);
88
+ if (a)
89
+ return a;
90
+ if (!s)
91
+ return;
92
+ const i = s.find((r) => "layerId" in r && r.layerId === e);
93
+ return i && t.set(e, i), i;
94
+ }
95
+ #y(e) {
96
+ return Array.from(new Map(e.map((t) => [t.globalId, t])).values());
97
+ }
98
+ #f(e) {
99
+ e.stopPropagation();
100
+ const t = e.detail;
101
+ this.arcgisHideGraphicsChange.emit(t), this._aggregatedGeometryDisabled = t, t && this.#s.value?.open && (this.#s.value.open = !1);
102
+ }
103
+ async #v() {
104
+ const { layers: e, utilityNetwork: t } = this;
105
+ if (!t)
106
+ return;
107
+ try {
108
+ t.loaded || (this.state = "loading", await t.load());
109
+ } catch (i) {
110
+ C(i, this, "Error while loading the selected utility network");
111
+ }
112
+ this.#l = e.filter((i) => t.isUtilityLayer(i));
113
+ const a = this.#l.filter((i) => !i.loaded).map((i) => i.load());
114
+ a.length > 0 && (this.state = "loading", (await Promise.allSettled(a)).forEach((r) => {
115
+ r.status === "rejected" && o("error", this, `Failed to load layer. Reason: ${r.reason}`);
116
+ }));
117
+ }
118
+ async #b() {
119
+ const e = Array.from(this.#r.entries());
120
+ if (!e.length)
121
+ return;
122
+ this.state = "loading";
123
+ const t = e.map((r) => this.#m(r));
124
+ (await Promise.allSettled(t)).forEach((r, n) => {
125
+ if (r.status === "rejected") {
126
+ const [c] = e[n];
127
+ o("error", this, `Failed to query features for source ${c}. Reason: ${r.reason}`);
128
+ }
129
+ });
130
+ const a = Array.from(this.#a.values()), i = Array.from(this.#i.values());
131
+ this.traceResultFeatures = a.concat(i).flat();
132
+ }
133
+ #$() {
134
+ this.traceResult.elements?.forEach((e) => this.#d(this.#r, e.networkSourceId, e));
135
+ }
136
+ render() {
137
+ const { traceError: e, traceResult: t } = this;
138
+ if (e)
139
+ return this.#G(e);
140
+ if (!t)
141
+ return this.#L();
142
+ const { elements: s, globalFunctionResults: a, aggregatedGeometry: i } = t, r = !s.length && !a.length && !i, n = s.length > 0 && !a.length && !i;
143
+ return r ? this.#T() : this.state === "loading" ? this.#w() : this.hideFeatureResults && n ? this.#E() : this.isElementsSelected || n ? l`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#c} .features=${this.traceResultFeatures} .hideActionBar=${this.hideActionBar} .hideCloseButton=${n} hide-select-feature initial-display-mode=list .messageOverrides=${this.messageOverrides} @arcgisClose=${() => this.isElementsSelected = !1} open .referenceElement=${this.referenceElement} .view=${this.view} ${u(this.#g)}></arcgis-features-next>` : this.#C(t);
144
+ }
145
+ #w() {
146
+ return l`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`;
147
+ }
148
+ #C(e) {
149
+ const { elements: t, globalFunctionResults: s, aggregatedGeometry: a } = e;
150
+ return l`<calcite-panel class="white-panel-background">${this.#e()}${a != null ? this.#R(a) : null}${a != null && !t.length ? this.#x() : null}${t.length > 0 ? this.hideFeatureResults ? this.#u() : this.#F() : null}${s.length > 0 ? this.#k(s) : null}</calcite-panel>`;
151
+ }
152
+ #R(e) {
153
+ const { _aggregatedGeometryDisabled: t, aggregatedGeometryGraphicsColor: s, _messages: a } = this;
154
+ return l`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry-next .graphicsColor=${s} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this.#f} auto-destroy-disabled ${u(this.#h)}></arcgis-utility-network-aggregated-geometry-next><calcite-swatch id=geometry-color-swatch .label=${a.labels.aggregatedGeometryGraphicsColor} .color=${s.toCss()} .disabled=${t}></calcite-swatch><calcite-popover .heading=${a.headings.setColor} .label=${a.headings.setColor} reference-element=geometry-color-swatch closable ${u(this.#s)}><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${s} @calciteColorPickerChange=${(i) => {
155
+ const r = i.target.value;
156
+ this.arcgisAggregatedGeometryGraphicsColorChange.emit(r);
157
+ }} .disabled=${t}></calcite-color-picker></calcite-popover></div>`;
158
+ }
159
+ #E() {
160
+ return l`<calcite-panel class="white-panel-background">${this.#e()}${this.#u()}</calcite-panel>`;
161
+ }
162
+ #u() {
163
+ return l`<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div>`;
164
+ }
165
+ #x() {
166
+ return l`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`;
167
+ }
168
+ #F() {
169
+ const { _messages: e } = this;
170
+ return l`<calcite-list .label=${e.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${e.headings.features} @calciteListItemSelect=${() => this.isElementsSelected = !0}><calcite-chip .label=${e.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
171
+ }
172
+ #k(e) {
173
+ const { _messages: t } = this;
174
+ return l`<div class="functions-heading">${t.headings.functions}</div><calcite-table .caption=${t.labels.functionResults}>${e.filter((s) => s.networkAttributeName != null && s.result != null && s.functionType != null).map((s) => {
175
+ const { functionName: a, networkAttributeName: i, functionType: r, result: n } = s, c = a || `${i} ${r}`;
176
+ return l`<calcite-table-row><calcite-table-cell>${c}</calcite-table-cell><calcite-table-cell>${n}</calcite-table-cell></calcite-table-row>`;
177
+ })}</calcite-table>`;
178
+ }
179
+ #e() {
180
+ return l`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle ? l`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>` : null}</div>`;
181
+ }
182
+ #G(e) {
183
+ const { _messages: t } = this;
184
+ let s = e.message;
185
+ switch (e.details?.raw?.extendedCode) {
186
+ case h.dirtyAreasDiscovered:
187
+ s = t.traceErrors.dirtyAreasDiscovered;
188
+ break;
189
+ case h.noValidControllers:
190
+ s = t.traceErrors.noValidControllers;
191
+ break;
192
+ case h.pathNotFound:
193
+ s = t.traceErrors.pathNotFound;
194
+ break;
195
+ }
196
+ return l`<calcite-panel class="white-panel-background">${this.#e()}<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></calcite-panel>`;
197
+ }
198
+ #T() {
199
+ const { _messages: e } = this;
200
+ return l`<calcite-panel class="white-panel-background">${this.#e()}<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></calcite-panel>`;
201
+ }
202
+ #L() {
203
+ const { _messages: e } = this;
204
+ return l`<calcite-panel class="white-panel-background">${this.#e()}<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></calcite-panel>`;
205
+ }
206
+ }
207
+ p("arcgis-utility-network-trace-results-next", F);
208
+ export {
209
+ F as ArcgisUtilityNetworkTraceResultsNext
210
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,15 @@
1
+ import "../arcgis-features-next/index.js";
2
+ import "@esri/calcite-components/components/calcite-panel";
3
+ import "@esri/calcite-components/components/calcite-loader";
4
+ import "../arcgis-utility-network-aggregated-geometry-next/index.js";
5
+ import "@esri/calcite-components/components/calcite-swatch";
6
+ import "@esri/calcite-components/components/calcite-popover";
7
+ import "@esri/calcite-components/components/calcite-color-picker";
8
+ import "@esri/calcite-components/components/calcite-list";
9
+ import "@esri/calcite-components/components/calcite-list-item";
10
+ import "@esri/calcite-components/components/calcite-chip";
11
+ import "@esri/calcite-components/components/calcite-icon";
12
+ import "@esri/calcite-components/components/calcite-table";
13
+ import "@esri/calcite-components/components/calcite-table-row";
14
+ import "@esri/calcite-components/components/calcite-table-cell";
15
+ export * from "./customElement.js";