@arcgis/map-components 5.2.0-next.164 → 5.2.0-next.166
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.
- package/dist/cdn/2MPZWW4A.js +2 -0
- package/dist/cdn/3IZHAJN7.js +2 -0
- package/dist/cdn/73NABILZ.js +2 -0
- package/dist/cdn/BPTZ6LBO.js +2 -0
- package/dist/cdn/FGQJD346.js +2 -0
- package/dist/cdn/OBFJ4JUW.js +2 -0
- package/dist/cdn/PLNIKN6E.js +2 -0
- package/dist/cdn/RMKPKUPL.js +2 -0
- package/dist/cdn/YXFFWLE5.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/utils5.js +2 -2
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +5 -0
- package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +6 -5
- package/dist/components/arcgis-selection-toolbar/customElement.d.ts +8 -0
- package/dist/components/arcgis-selection-toolbar/customElement.js +23 -17
- package/dist/components/arcgis-time-bar/customElement.d.ts +3 -1
- package/dist/components/arcgis-time-bar-slider/customElement.js +9 -5
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-slider/customElement.js +8 -7
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +7 -0
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +8 -5
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +10 -10
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +125 -12
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +9 -2
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +60 -57
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +7 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +12 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +217 -14
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +119 -108
- package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +155 -8
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +7 -3
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +132 -125
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +4 -4
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +6 -6
- package/dist/cdn/24P3B56P.js +0 -2
- package/dist/cdn/4TTVR7UK.js +0 -2
- package/dist/cdn/EQX7MHI6.js +0 -2
- package/dist/cdn/ERO6VEJC.js +0 -2
- package/dist/cdn/JQL6EOCO.js +0 -2
- package/dist/cdn/NV6GXURX.js +0 -2
- package/dist/cdn/RV2FLHPM.js +0 -2
- package/dist/cdn/SYRJ7DOA.js +0 -2
- package/dist/cdn/X5PDNDLF.js +0 -2
|
@@ -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
|
|
4
|
-
import
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { usePropertyChange as C, bypassReadOnly as
|
|
7
|
-
import { slotChangeGetAssignedElements as
|
|
8
|
-
import { log as G, composeMissingPropertyMessage as
|
|
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
|
|
12
|
-
import { a as
|
|
13
|
-
import { g as
|
|
14
|
-
const
|
|
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
|
|
19
|
+
class P extends b {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(...arguments), this._messages = F({ blocking: !0 }), this.#
|
|
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.#
|
|
26
|
-
}
|
|
27
|
-
}, this._slottedDefaultResultItems = [], this.aggregatedGeometryResultsGraphicsColor = new
|
|
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) =>
|
|
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 =
|
|
35
|
+
this.styles = L;
|
|
36
36
|
}
|
|
37
37
|
#e;
|
|
38
|
-
#
|
|
38
|
+
#s;
|
|
39
39
|
#t;
|
|
40
|
-
#g;
|
|
41
40
|
#i;
|
|
42
|
-
#s;
|
|
43
|
-
#r;
|
|
44
|
-
#l;
|
|
45
41
|
#a;
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
|
|
49
|
-
|
|
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 #
|
|
52
|
-
return
|
|
53
|
+
get #h() {
|
|
54
|
+
return a(this.el).filter((e) => !y(e)).length > 0;
|
|
53
55
|
}
|
|
54
|
-
get #
|
|
55
|
-
return
|
|
56
|
+
get #l() {
|
|
57
|
+
return a(this.el).length > 0;
|
|
56
58
|
}
|
|
57
|
-
get #
|
|
58
|
-
|
|
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 (
|
|
68
|
+
if (this.#h)
|
|
61
69
|
return !0;
|
|
62
|
-
const { aggregatedGeometry:
|
|
63
|
-
return this._slottedDefaultResultItems.some((
|
|
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 #
|
|
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
|
|
80
|
+
return this._defaultElementsResultItem ? this._defaultElementsResultItem.numResults : this.#a[0]?.numResults ?? 0;
|
|
73
81
|
}
|
|
74
82
|
get traceResultFeatures() {
|
|
75
|
-
return this
|
|
83
|
+
return this._defaultElementsResultItem ? this._defaultElementsResultItem.features : this.#a[0]?.features ?? [];
|
|
76
84
|
}
|
|
77
85
|
clearResults() {
|
|
78
|
-
this.#
|
|
86
|
+
this.#y(), this.arcgisTraceResultClear.emit();
|
|
79
87
|
}
|
|
80
88
|
async destroy() {
|
|
81
|
-
const e =
|
|
89
|
+
const e = a(this.el).filter(k), t = await Promise.allSettled([
|
|
82
90
|
...e.map(async (s) => await s.destroy()),
|
|
83
|
-
this
|
|
84
|
-
this
|
|
85
|
-
this
|
|
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" &&
|
|
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 =
|
|
94
|
-
return this
|
|
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
|
|
97
|
-
|
|
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.#
|
|
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,
|
|
115
|
+
this.traceResult && (this.view || G("warn", this, _("view")));
|
|
108
116
|
}
|
|
109
|
-
#
|
|
110
|
-
for (const e of this.#
|
|
117
|
+
#d() {
|
|
118
|
+
for (const e of this.#s)
|
|
111
119
|
e.removeAttribute("hidden");
|
|
112
|
-
this.#
|
|
120
|
+
this.#s.clear();
|
|
113
121
|
}
|
|
114
|
-
#
|
|
115
|
-
const e =
|
|
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
|
-
|
|
128
|
+
f(s, this, "Error while clearing trace result item");
|
|
121
129
|
}
|
|
122
|
-
this
|
|
130
|
+
this._defaultAggregatedGeometryResultsItem?.clearResult(), this._defaultElementsResultItem?.clearResult(), this._defaultFunctionsResultItem?.clearResult(), this.#t.clear(), g(() => this.state = "ready");
|
|
123
131
|
}
|
|
124
|
-
#
|
|
125
|
-
|
|
132
|
+
#w(e) {
|
|
133
|
+
this._defaultAggregatedGeometryResultsItem = e;
|
|
126
134
|
}
|
|
127
135
|
#G(e) {
|
|
128
|
-
this.#e && this.#e === this
|
|
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
|
-
#
|
|
131
|
-
|
|
138
|
+
#_(e) {
|
|
139
|
+
this._defaultFunctionsResultItem = e;
|
|
132
140
|
}
|
|
133
|
-
#
|
|
134
|
-
|
|
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, [
|
|
138
|
-
return i != null && n.push(
|
|
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.#
|
|
159
|
+
this.#c(o[1]);
|
|
149
160
|
}
|
|
150
161
|
#x() {
|
|
151
|
-
this.#
|
|
162
|
+
this.#c(o[2]);
|
|
152
163
|
}
|
|
153
|
-
#L() {
|
|
154
|
-
|
|
164
|
+
#L(e) {
|
|
165
|
+
const t = w(e);
|
|
166
|
+
this.#$(t), this.#I(t);
|
|
155
167
|
}
|
|
156
|
-
#
|
|
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.#
|
|
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
|
-
#
|
|
166
|
-
this.#
|
|
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
|
-
#
|
|
176
|
+
#T(e) {
|
|
175
177
|
if (this.#r.has(e))
|
|
176
178
|
return;
|
|
177
|
-
const t = (
|
|
178
|
-
this.#r.set(e, t), e.addEventListener("
|
|
179
|
+
const t = (s) => this.#g(s);
|
|
180
|
+
this.#r.set(e, t), e.addEventListener("arcgisPropertyChange", t);
|
|
179
181
|
}
|
|
180
|
-
#
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
188
|
+
#p(e) {
|
|
185
189
|
const t = this.#r.get(e);
|
|
186
|
-
t && (e.removeEventListener("
|
|
187
|
-
}
|
|
188
|
-
#
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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.#
|
|
203
|
+
this.#T(i);
|
|
196
204
|
const s = this.#e;
|
|
197
|
-
s && (!s.isFeaturesListShown || s !== this
|
|
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
|
-
|
|
200
|
-
const t = new Set(e.filter(
|
|
201
|
-
for (const s of this.#
|
|
202
|
-
t.has(s) || (this
|
|
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.#
|
|
205
|
-
this.#
|
|
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
|
-
#
|
|
208
|
-
this.#
|
|
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
|
|
213
|
-
|
|
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"}>${
|
|
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.#
|
|
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
|
|
240
|
+
case m.dirtyAreasDiscovered:
|
|
234
241
|
s = t.traceErrors.dirtyAreasDiscovered;
|
|
235
242
|
break;
|
|
236
|
-
case
|
|
243
|
+
case m.noValidControllers:
|
|
237
244
|
s = t.traceErrors.noValidControllers;
|
|
238
245
|
break;
|
|
239
|
-
case
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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",
|
|
261
|
+
$("arcgis-utility-network-trace-results", P);
|
|
255
262
|
export {
|
|
256
|
-
|
|
263
|
+
P as ArcgisUtilityNetworkTraceResults
|
|
257
264
|
};
|