@arcgis/map-components 5.2.0-next.74 → 5.2.0-next.76
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/3MDNGD5N.js +2 -0
- package/dist/cdn/4RYR4YDD.js +2 -0
- package/dist/cdn/{Y52XLS45.js → 4ULHWCEQ.js} +1 -1
- package/dist/cdn/{4IYAEXT6.js → 5AQ2DLHA.js} +1 -1
- package/dist/cdn/5GD232OU.js +2 -0
- package/dist/cdn/6C542P4V.js +2 -0
- package/dist/cdn/6XJLNNXF.js +2 -0
- package/dist/cdn/AYJ4XEW3.js +2 -0
- package/dist/cdn/BZZONX7U.js +2 -0
- package/dist/cdn/CO4UDHQO.js +5 -0
- package/dist/cdn/DXRIB5HU.js +2 -0
- package/dist/cdn/{AXEUVRDP.js → GYD6SJRD.js} +1 -1
- package/dist/cdn/HSRSC5A3.js +2 -0
- package/dist/cdn/KKN5ZNLH.js +2 -0
- package/dist/cdn/LCWKOR7D.js +2 -0
- package/dist/cdn/LFEMVA6D.js +2 -0
- package/dist/cdn/LWGNINKF.js +2 -0
- package/dist/cdn/{6T4SNDWL.js → N7YPGWHZ.js} +1 -1
- package/dist/cdn/NAW2XY64.js +2 -0
- package/dist/cdn/{RNUWRSX7.js → NESU6NXH.js} +1 -1
- package/dist/cdn/NVYQR4DS.js +2 -0
- package/dist/cdn/QO6WDURE.js +2 -0
- package/dist/cdn/RIZHD5EC.js +2 -0
- package/dist/cdn/UYF6TF6U.js +2 -0
- package/dist/cdn/WD25DNJL.js +2 -0
- package/dist/cdn/assets/utility-network-aggregated-geometry-result-item/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/utility-network-trace-results-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/titleUtils.js +40 -0
- package/dist/chunks/utils2.js +36 -71
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +34 -33
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +11 -11
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +9 -9
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +15 -15
- package/dist/components/arcgis-legend-classic-element/customElement.js +39 -35
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +5 -4
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +6 -6
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +3 -3
- package/dist/components/arcgis-legend-classic-view/customElement.js +41 -18
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +8 -8
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +13 -13
- package/dist/components/arcgis-scene/customElement.d.ts +1 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +105 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.js +125 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/index.js +5 -0
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +6 -0
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +9 -9
- package/dist/components/arcgis-utility-network-trace-analysis-next/types.d.ts +5 -4
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +4 -25
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +86 -86
- package/dist/components/arcgis-utility-network-trace-results-next/index.js +1 -4
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +19 -0
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +129 -86
- 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/index.d.ts +7 -7
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +6 -5
- package/dist/types/preact.d.ts +7 -6
- package/dist/types/react.d.ts +8 -7
- package/dist/types/stencil.d.ts +6 -5
- package/package.json +5 -5
- package/dist/cdn/2O6GHHUY.js +0 -2
- package/dist/cdn/7THMBHKF.js +0 -2
- package/dist/cdn/A6CH2UFJ.js +0 -2
- package/dist/cdn/AZSWPMSD.js +0 -2
- package/dist/cdn/CQV2TQUQ.js +0 -2
- package/dist/cdn/D75QAAQT.js +0 -5
- package/dist/cdn/GG4ZP72A.js +0 -2
- package/dist/cdn/GOIKNGEI.js +0 -2
- package/dist/cdn/HZR3HENL.js +0 -2
- package/dist/cdn/IIYUVBKU.js +0 -2
- package/dist/cdn/KUR5PBEN.js +0 -2
- package/dist/cdn/LIEZSWE4.js +0 -2
- package/dist/cdn/MOOIQJP4.js +0 -2
- package/dist/cdn/NJ4CBOJN.js +0 -2
- package/dist/cdn/SWDOEOEG.js +0 -2
- package/dist/cdn/TZTJY3L5.js +0 -2
- package/dist/cdn/X3TEGOBL.js +0 -2
- package/dist/cdn/XLAW24IV.js +0 -2
- package/dist/cdn/ZMLP2ZB4.js +0 -2
- package/dist/cdn/assets/utility-network-aggregated-geometry-next/t9n/messages.en.json +0 -1
- package/dist/components/arcgis-utility-network-aggregated-geometry-next/customElement.d.ts +0 -63
- package/dist/components/arcgis-utility-network-aggregated-geometry-next/customElement.js +0 -109
- package/dist/components/arcgis-utility-network-aggregated-geometry-next/index.js +0 -2
- /package/dist/components/{arcgis-utility-network-aggregated-geometry-next → arcgis-utility-network-aggregated-geometry-result-item}/index.d.ts +0 -0
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
|
+
import { ref as h } from "lit/directives/ref.js";
|
|
3
4
|
import y from "@arcgis/core/Color.js";
|
|
4
5
|
import "@arcgis/core/core/Error.js";
|
|
5
6
|
import "@arcgis/core/Graphic.js";
|
|
6
7
|
import { LitElement as f, createEvent as d } from "@arcgis/lumina";
|
|
7
8
|
import { log as o, composeMissingPropertyMessage as g, composeEmptyPropertyMessage as v } from "@arcgis/toolkit/log";
|
|
8
9
|
import { css as b, html as l } from "lit";
|
|
9
|
-
import { createRef as $, ref as u } from "lit/directives/ref.js";
|
|
10
10
|
import { u as w } from "../../chunks/useT9n.js";
|
|
11
|
-
import { l as
|
|
12
|
-
import { q as R, c as
|
|
13
|
-
const
|
|
11
|
+
import { l as $ } from "../../chunks/async-utils.js";
|
|
12
|
+
import { q as R, c as C } from "../../chunks/layer-utils.js";
|
|
13
|
+
const E = 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)}#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)}`, u = {
|
|
14
14
|
dirtyAreasDiscovered: -2147208511,
|
|
15
15
|
noValidControllers: -2147208935,
|
|
16
16
|
pathNotFound: -2147208444
|
|
17
17
|
};
|
|
18
18
|
class F extends f {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(...arguments), this._messages = w({ blocking: !0 }), this.#
|
|
20
|
+
super(...arguments), this._messages = w({ blocking: !0 }), this.#l = !0, this.#t = [], this.#s = /* @__PURE__ */ new Map(), this.#c = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = /* @__PURE__ */ new Map(), this.#r = [], 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
21
|
}
|
|
22
22
|
static {
|
|
23
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
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.styles =
|
|
26
|
+
this.styles = E;
|
|
27
27
|
}
|
|
28
|
-
#
|
|
28
|
+
#l;
|
|
29
29
|
#t;
|
|
30
30
|
#n;
|
|
31
31
|
#s;
|
|
32
|
-
#
|
|
33
|
-
#o;
|
|
32
|
+
#c;
|
|
34
33
|
#i;
|
|
34
|
+
#a;
|
|
35
35
|
#r;
|
|
36
|
-
#l;
|
|
37
36
|
get numResults() {
|
|
38
37
|
return this.traceResultFeatures.length + this.#t.length;
|
|
39
38
|
}
|
|
@@ -41,10 +40,10 @@ class F extends f {
|
|
|
41
40
|
this.#n?.destroy();
|
|
42
41
|
}
|
|
43
42
|
async destroy() {
|
|
44
|
-
this.#
|
|
43
|
+
this.#s.clear(), this.#i.clear(), this.#a.clear(), this.#n?.destroy(), this._featuresComponentElement?.destroy(), await this.manager.destroy();
|
|
45
44
|
}
|
|
46
45
|
load() {
|
|
47
|
-
this.traceResult && (this
|
|
46
|
+
this.traceResult && (this.#b(), this.#f().then(() => this.#v()).finally(() => {
|
|
48
47
|
this.arcgisTraceResultFeaturesReady.emit(), this.state = "ready";
|
|
49
48
|
}));
|
|
50
49
|
}
|
|
@@ -55,151 +54,152 @@ class F extends f {
|
|
|
55
54
|
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
55
|
}
|
|
57
56
|
disconnectedCallback() {
|
|
58
|
-
super.disconnectedCallback(), this.#
|
|
57
|
+
super.disconnectedCallback(), this.#c.clear();
|
|
59
58
|
}
|
|
60
|
-
#
|
|
59
|
+
#u(e) {
|
|
61
60
|
e && (this.#n = e);
|
|
62
61
|
}
|
|
63
|
-
#
|
|
62
|
+
#h(e) {
|
|
64
63
|
e && (this._featuresComponentElement = e);
|
|
65
64
|
}
|
|
66
|
-
async #
|
|
67
|
-
const s = this.utilityNetwork?.getLayerIdBySourceId(e),
|
|
68
|
-
if (s == null || !
|
|
69
|
-
this.#t.push(...
|
|
65
|
+
async #g([e, t]) {
|
|
66
|
+
const s = this.utilityNetwork?.getLayerIdBySourceId(e), i = this.#m(s), a = this.#p(t);
|
|
67
|
+
if (s == null || !i) {
|
|
68
|
+
this.#t.push(...a);
|
|
70
69
|
return;
|
|
71
70
|
}
|
|
72
|
-
const r =
|
|
73
|
-
r.gdbVersion = this.utilityNetwork?.gdbVersion, r.objectIds =
|
|
74
|
-
const { features:
|
|
75
|
-
|
|
76
|
-
const m =
|
|
77
|
-
|
|
78
|
-
}),
|
|
79
|
-
}
|
|
80
|
-
#
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
#
|
|
71
|
+
const r = i.createQuery();
|
|
72
|
+
r.gdbVersion = this.utilityNetwork?.gdbVersion, r.objectIds = a.map((n) => n.objectId), r.outFields = ["*"];
|
|
73
|
+
const { features: c } = await R(i, r);
|
|
74
|
+
c.forEach((n) => {
|
|
75
|
+
const m = n.layer;
|
|
76
|
+
n.getEffectivePopupTemplate(this.#l) || (n.popupTemplate = m.createPopupTemplate());
|
|
77
|
+
}), C(i) ? c.forEach((n) => this.#o(this.#i, n.layer.subtypeCode, n)) : this.#s.set(s, c);
|
|
78
|
+
}
|
|
79
|
+
#o(e, t, s) {
|
|
80
|
+
const i = e.get(t);
|
|
81
|
+
i == null ? e.set(t, [s]) : i.push(s);
|
|
82
|
+
}
|
|
83
|
+
#m(e) {
|
|
85
84
|
if (e == null)
|
|
86
85
|
return;
|
|
87
|
-
const t = this.#
|
|
88
|
-
if (
|
|
89
|
-
return
|
|
86
|
+
const t = this.#c, s = this.#r, i = t.get(e);
|
|
87
|
+
if (i)
|
|
88
|
+
return i;
|
|
90
89
|
if (!s)
|
|
91
90
|
return;
|
|
92
|
-
const
|
|
93
|
-
return
|
|
91
|
+
const a = s.find((r) => "layerId" in r && r.layerId === e);
|
|
92
|
+
return a && t.set(e, a), a;
|
|
94
93
|
}
|
|
95
|
-
#
|
|
94
|
+
#p(e) {
|
|
96
95
|
return Array.from(new Map(e.map((t) => [t.globalId, t])).values());
|
|
97
96
|
}
|
|
98
|
-
#
|
|
99
|
-
e
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
#y(e) {
|
|
98
|
+
const { detail: t, target: s } = e;
|
|
99
|
+
if (t.name === "hideGraphics") {
|
|
100
|
+
e.stopPropagation();
|
|
101
|
+
const i = s[t.name];
|
|
102
|
+
this.arcgisHideGraphicsChange.emit(i);
|
|
103
|
+
}
|
|
104
|
+
if (t.name === "graphicsColor") {
|
|
105
|
+
e.stopPropagation();
|
|
106
|
+
const i = s[t.name];
|
|
107
|
+
this.aggregatedGeometryGraphicsColor = i, this.arcgisAggregatedGeometryGraphicsColorChange.emit(i);
|
|
108
|
+
}
|
|
102
109
|
}
|
|
103
|
-
async #
|
|
110
|
+
async #f() {
|
|
104
111
|
const { layers: e, utilityNetwork: t } = this;
|
|
105
112
|
if (!t)
|
|
106
113
|
return;
|
|
107
114
|
try {
|
|
108
115
|
t.loaded || (this.state = "loading", await t.load());
|
|
109
|
-
} catch (
|
|
110
|
-
|
|
116
|
+
} catch (a) {
|
|
117
|
+
$(a, this, "Error while loading the selected utility network");
|
|
111
118
|
}
|
|
112
|
-
this.#
|
|
113
|
-
const
|
|
114
|
-
|
|
119
|
+
this.#r = e.filter((a) => t.isUtilityLayer(a));
|
|
120
|
+
const i = this.#r.filter((a) => !a.loaded).map((a) => a.load());
|
|
121
|
+
i.length > 0 && (this.state = "loading", (await Promise.allSettled(i)).forEach((r) => {
|
|
115
122
|
r.status === "rejected" && o("error", this, `Failed to load layer. Reason: ${r.reason}`);
|
|
116
123
|
}));
|
|
117
124
|
}
|
|
118
|
-
async #
|
|
119
|
-
const e = Array.from(this.#
|
|
125
|
+
async #v() {
|
|
126
|
+
const e = Array.from(this.#a.entries());
|
|
120
127
|
if (!e.length)
|
|
121
128
|
return;
|
|
122
129
|
this.state = "loading";
|
|
123
|
-
const t = e.map((r) => this.#
|
|
124
|
-
(await Promise.allSettled(t)).forEach((r,
|
|
130
|
+
const t = e.map((r) => this.#g(r));
|
|
131
|
+
(await Promise.allSettled(t)).forEach((r, c) => {
|
|
125
132
|
if (r.status === "rejected") {
|
|
126
|
-
const [
|
|
127
|
-
o("error", this, `Failed to query features for source ${
|
|
133
|
+
const [n] = e[c];
|
|
134
|
+
o("error", this, `Failed to query features for source ${n}. Reason: ${r.reason}`);
|
|
128
135
|
}
|
|
129
136
|
});
|
|
130
|
-
const
|
|
131
|
-
this.traceResultFeatures =
|
|
137
|
+
const i = Array.from(this.#s.values()), a = Array.from(this.#i.values());
|
|
138
|
+
this.traceResultFeatures = i.concat(a).flat();
|
|
132
139
|
}
|
|
133
|
-
|
|
134
|
-
this.traceResult.elements?.forEach((e) => this.#
|
|
140
|
+
#b() {
|
|
141
|
+
this.traceResult.elements?.forEach((e) => this.#o(this.#a, e.networkSourceId, e));
|
|
135
142
|
}
|
|
136
143
|
render() {
|
|
137
144
|
const { traceError: e, traceResult: t } = this;
|
|
138
145
|
if (e)
|
|
139
|
-
return this.#
|
|
146
|
+
return this.#k(e);
|
|
140
147
|
if (!t)
|
|
141
|
-
return this.#
|
|
142
|
-
const { elements: s, globalFunctionResults:
|
|
143
|
-
return r ? this.#
|
|
148
|
+
return this.#G();
|
|
149
|
+
const { elements: s, globalFunctionResults: i, aggregatedGeometry: a } = t, r = !s.length && !i.length && !a, c = s.length > 0 && !i.length && !a;
|
|
150
|
+
return r ? this.#x() : this.state === "loading" ? this.#w() : this.hideFeatureResults && c ? this.#R() : this.isElementsSelected || c ? l`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#l} .features=${this.traceResultFeatures} .hideActionBar=${this.hideActionBar} .hideCloseButton=${c} hide-select-feature initial-display-mode=list .messageOverrides=${this.messageOverrides} @arcgisClose=${() => this.isElementsSelected = !1} open .referenceElement=${this.referenceElement} .view=${this.view} ${h(this.#h)}></arcgis-features-next>` : this.#$(t);
|
|
144
151
|
}
|
|
145
152
|
#w() {
|
|
146
153
|
return l`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`;
|
|
147
154
|
}
|
|
148
|
-
|
|
149
|
-
const { elements: t, globalFunctionResults: s, aggregatedGeometry:
|
|
150
|
-
return l`<calcite-panel class="white-panel-background">${this.#e()}${
|
|
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>`;
|
|
155
|
+
#$(e) {
|
|
156
|
+
const { elements: t, globalFunctionResults: s, aggregatedGeometry: i } = e;
|
|
157
|
+
return l`<calcite-panel class="white-panel-background">${this.#e()}${i != null ? l`<arcgis-utility-network-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryGraphicsColor} .traceResult=${e} .view=${this.view} @arcgisPropertyChange=${this.#y} ${h(this.#u)}></arcgis-utility-network-aggregated-geometry-result-item>` : null}${i != null && !t.length ? this.#C() : null}${t.length > 0 ? this.hideFeatureResults ? this.#d() : this.#E() : null}${s.length > 0 ? this.#F(s) : null}</calcite-panel>`;
|
|
158
158
|
}
|
|
159
|
-
#
|
|
160
|
-
return l`<calcite-panel class="white-panel-background">${this.#e()}${this.#
|
|
159
|
+
#R() {
|
|
160
|
+
return l`<calcite-panel class="white-panel-background">${this.#e()}${this.#d()}</calcite-panel>`;
|
|
161
161
|
}
|
|
162
|
-
#
|
|
162
|
+
#d() {
|
|
163
163
|
return l`<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div>`;
|
|
164
164
|
}
|
|
165
|
-
#
|
|
165
|
+
#C() {
|
|
166
166
|
return l`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`;
|
|
167
167
|
}
|
|
168
|
-
#
|
|
168
|
+
#E() {
|
|
169
169
|
const { _messages: e } = this;
|
|
170
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
171
|
}
|
|
172
|
-
#
|
|
172
|
+
#F(e) {
|
|
173
173
|
const { _messages: t } = this;
|
|
174
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:
|
|
176
|
-
return l`<calcite-table-row><calcite-table-cell>${
|
|
175
|
+
const { functionName: i, networkAttributeName: a, functionType: r, result: c } = s, n = i || `${a} ${r}`;
|
|
176
|
+
return l`<calcite-table-row><calcite-table-cell>${n}</calcite-table-cell><calcite-table-cell>${c}</calcite-table-cell></calcite-table-row>`;
|
|
177
177
|
})}</calcite-table>`;
|
|
178
178
|
}
|
|
179
179
|
#e() {
|
|
180
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
181
|
}
|
|
182
|
-
#
|
|
182
|
+
#k(e) {
|
|
183
183
|
const { _messages: t } = this;
|
|
184
184
|
let s = e.message;
|
|
185
185
|
switch (e.details?.raw?.extendedCode) {
|
|
186
|
-
case
|
|
186
|
+
case u.dirtyAreasDiscovered:
|
|
187
187
|
s = t.traceErrors.dirtyAreasDiscovered;
|
|
188
188
|
break;
|
|
189
|
-
case
|
|
189
|
+
case u.noValidControllers:
|
|
190
190
|
s = t.traceErrors.noValidControllers;
|
|
191
191
|
break;
|
|
192
|
-
case
|
|
192
|
+
case u.pathNotFound:
|
|
193
193
|
s = t.traceErrors.pathNotFound;
|
|
194
194
|
break;
|
|
195
195
|
}
|
|
196
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
197
|
}
|
|
198
|
-
#
|
|
198
|
+
#x() {
|
|
199
199
|
const { _messages: e } = this;
|
|
200
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
201
|
}
|
|
202
|
-
#
|
|
202
|
+
#G() {
|
|
203
203
|
const { _messages: e } = this;
|
|
204
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
205
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import "../arcgis-features-next/index.js";
|
|
2
2
|
import "@esri/calcite-components/components/calcite-panel";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-loader";
|
|
4
|
-
import "../arcgis-utility-network-aggregated-geometry-
|
|
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";
|
|
4
|
+
import "../arcgis-utility-network-aggregated-geometry-result-item/index.js";
|
|
8
5
|
import "@esri/calcite-components/components/calcite-list";
|
|
9
6
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
10
7
|
import "@esri/calcite-components/components/calcite-chip";
|
|
@@ -112,6 +112,7 @@ export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitEle
|
|
|
112
112
|
noUtilityNetworks: string;
|
|
113
113
|
noUtilityNetworkServiceUserTypeExtension: string;
|
|
114
114
|
noView: string;
|
|
115
|
+
operationDisabledOnDefaultVersion: string;
|
|
115
116
|
operationOnlyAllowedByOwner: string;
|
|
116
117
|
sceneViewNotSupported: string;
|
|
117
118
|
utilityNetworkLoadFailed: string;
|
|
@@ -143,6 +144,7 @@ export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitEle
|
|
|
143
144
|
noUtilityNetworks: string;
|
|
144
145
|
noUtilityNetworkServiceUserTypeExtension: string;
|
|
145
146
|
noView: string;
|
|
147
|
+
operationDisabledOnDefaultVersion: string;
|
|
146
148
|
operationOnlyAllowedByOwner: string;
|
|
147
149
|
sceneViewNotSupported: string;
|
|
148
150
|
utilityNetworkLoadFailed: string;
|
|
@@ -184,6 +186,22 @@ export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitEle
|
|
|
184
186
|
* @default false
|
|
185
187
|
*/
|
|
186
188
|
accessor disabled: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Whether to disable execution on the Default version.
|
|
191
|
+
*
|
|
192
|
+
* If true, the execute action button will be disabled.
|
|
193
|
+
*
|
|
194
|
+
* @default false
|
|
195
|
+
* @example
|
|
196
|
+
* Disable execution on the Default version.
|
|
197
|
+
* ```html
|
|
198
|
+
* <arcgis-map item-id="471eb0bf37074b1fbb972b1da70fb310">
|
|
199
|
+
* <arcgis-utility-network-validate-network-topology disable-execute-on-default-version slot="top-right">
|
|
200
|
+
* </arcgis-utility-network-validate-network-topology>
|
|
201
|
+
* </arcgis-map>
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
204
|
+
accessor disableExecuteOnDefaultVersion: boolean;
|
|
187
205
|
/**
|
|
188
206
|
* Specifies the area to validate.
|
|
189
207
|
*
|
|
@@ -219,6 +237,7 @@ export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitEle
|
|
|
219
237
|
noUtilityNetworks?: string | undefined;
|
|
220
238
|
noUtilityNetworkServiceUserTypeExtension?: string | undefined;
|
|
221
239
|
noView?: string | undefined;
|
|
240
|
+
operationDisabledOnDefaultVersion?: string | undefined;
|
|
222
241
|
operationOnlyAllowedByOwner?: string | undefined;
|
|
223
242
|
sceneViewNotSupported?: string | undefined;
|
|
224
243
|
utilityNetworkLoadFailed?: string | undefined;
|