@arcgis/map-components 5.1.0-next.97 → 5.1.0-next.99
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/{M2AGMETD.js → 5VV4YRMW.js} +1 -1
- package/dist/cdn/6S6N2CNY.js +2 -0
- package/dist/cdn/AU5Y2WFE.js +2 -0
- package/dist/cdn/B3GUVSOH.js +2 -0
- package/dist/cdn/{TOYDKBI3.js → FJYJ55I6.js} +1 -1
- package/dist/cdn/G2AWBB3W.js +2 -0
- package/dist/cdn/{76RELZX2.js → GZSSBAS6.js} +1 -1
- package/dist/cdn/KDVGMEXC.js +2 -0
- package/dist/cdn/{PAD4C5XS.js → MGLV5EEI.js} +1 -1
- package/dist/cdn/OSRU2RUW.js +2 -0
- package/dist/cdn/P27CM5PI.js +2 -0
- package/dist/cdn/QL46G5FB.js +2 -0
- package/dist/cdn/{4535AZQ2.js → VD5IUHXQ.js} +1 -1
- package/dist/cdn/{YFP5CWGB.js → XSZJFT45.js} +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +2 -2
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +22 -3
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +56 -38
- package/dist/components/arcgis-reverse-geocode-list/index.js +2 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +6 -7
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +4 -2
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +47 -48
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -0
- package/dist/components/arcgis-version-management/customElement.js +85 -85
- package/dist/components/arcgis-version-management-service-item/customElement.js +17 -17
- package/dist/components/arcgis-version-management-version-list/customElement.js +9 -9
- package/dist/components/arcgis-version-management-version-properties/customElement.js +44 -40
- package/dist/components/arcgis-version-management-version-properties/index.js +1 -0
- 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 +1 -1
- package/dist/types/lumina.d.ts +2 -1
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/react.d.ts +2 -1
- package/dist/types/stencil.d.ts +2 -1
- package/package.json +4 -4
- package/dist/cdn/4LIT2CPA.js +0 -2
- package/dist/cdn/F5GS7T5H.js +0 -2
- package/dist/cdn/GUATS4JC.js +0 -2
- package/dist/cdn/GZNXU67E.js +0 -2
- package/dist/cdn/M2LGHW4O.js +0 -2
- package/dist/cdn/M67KJTXP.js +0 -2
- package/dist/cdn/VTGHFASH.js +0 -2
- package/dist/cdn/WTUX37PY.js +0 -2
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { locationToAddress as
|
|
9
|
-
import { substitute as
|
|
10
|
-
import { u as
|
|
11
|
-
import { watch as
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
class G extends b {
|
|
2
|
+
import { c as g } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as _, html as r } from "lit";
|
|
4
|
+
import * as d from "@arcgis/core/geometry/operators/projectOperator.js";
|
|
5
|
+
import f from "@arcgis/core/portal/Portal.js";
|
|
6
|
+
import b from "@arcgis/core/geometry/SpatialReference.js";
|
|
7
|
+
import { LitElement as v, createEvent as m, nothing as C } from "@arcgis/lumina";
|
|
8
|
+
import { locationToAddress as y } from "@arcgis/core/rest/locator.js";
|
|
9
|
+
import { substitute as $ } from "@arcgis/core/intl.js";
|
|
10
|
+
import { u as R } from "../../chunks/useT9n.js";
|
|
11
|
+
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
12
|
+
const x = _`calcite-notice{padding:var(--calcite-space-lg)}calcite-block{padding-inline-end:var(--calcite-spacing-xxs)}calcite-block[expanded]{margin:0}`;
|
|
13
|
+
class w extends v {
|
|
16
14
|
constructor() {
|
|
17
|
-
super(...arguments), this.messages =
|
|
15
|
+
super(...arguments), this.messages = R(), this._abortController = null, this._location = null, this._results = null, this.headingLevel = 3, this.portal = f.getDefault(), this.autoDestroyDisabled = !1, this.hideCoordinates = !1, this.arcgisReverseGeocodeResultsChange = m(), this.arcgisReverseGeocodeCopy = m();
|
|
18
16
|
}
|
|
19
17
|
static {
|
|
20
|
-
this.properties = { _abortController: 16, _location: 16, _results: 16, headingLevel: 9, portal: 0, location: 0, messageOverrides: 0, autoDestroyDisabled: 5, reverseGeocodeResults: 32 };
|
|
18
|
+
this.properties = { _abortController: 16, _location: 16, _results: 16, headingLevel: 9, portal: 0, location: 0, messageOverrides: 0, autoDestroyDisabled: 5, hideCoordinates: 5, reverseGeocodeResults: 32 };
|
|
21
19
|
}
|
|
22
20
|
static {
|
|
23
|
-
this.styles =
|
|
21
|
+
this.styles = x;
|
|
24
22
|
}
|
|
25
23
|
get reverseGeocodeResults() {
|
|
26
24
|
return this._results;
|
|
@@ -30,10 +28,10 @@ class G extends b {
|
|
|
30
28
|
}
|
|
31
29
|
loaded() {
|
|
32
30
|
this.manager.onLifecycle(() => [
|
|
33
|
-
|
|
31
|
+
p(() => [this.portal, this.location], () => {
|
|
34
32
|
this._update();
|
|
35
33
|
}, { initial: !0 }),
|
|
36
|
-
|
|
34
|
+
p(() => this._results, () => {
|
|
37
35
|
this.arcgisReverseGeocodeResultsChange.emit();
|
|
38
36
|
})
|
|
39
37
|
]);
|
|
@@ -47,41 +45,61 @@ class G extends b {
|
|
|
47
45
|
this._location = null, this._results = null;
|
|
48
46
|
return;
|
|
49
47
|
}
|
|
50
|
-
const s = new AbortController(),
|
|
48
|
+
const s = new AbortController(), i = s.signal;
|
|
51
49
|
this._abortController = s;
|
|
52
|
-
const o = () =>
|
|
53
|
-
if (!
|
|
50
|
+
const o = () => i.aborted || this._abortController !== s;
|
|
51
|
+
if (!d.isLoaded() && (await d.load(), o()))
|
|
54
52
|
return;
|
|
55
|
-
const
|
|
56
|
-
if (o() || (this._location =
|
|
53
|
+
const c = d.execute(e, b.WGS84) ?? e;
|
|
54
|
+
if (o() || (this._location = c, await this.portal?.load({ signal: i }), o()))
|
|
57
55
|
return;
|
|
58
|
-
const
|
|
59
|
-
if (!
|
|
56
|
+
const l = this.portal?.helperServices?.geocode?.filter((a) => a.reverseGeocode ?? !0);
|
|
57
|
+
if (!l) {
|
|
60
58
|
if (o())
|
|
61
59
|
return;
|
|
62
60
|
this._results = null;
|
|
63
61
|
return;
|
|
64
62
|
}
|
|
65
|
-
const
|
|
66
|
-
o() || (this._abortController = null, this._results =
|
|
67
|
-
name:
|
|
68
|
-
address: (
|
|
69
|
-
url:
|
|
63
|
+
const n = l.map(async (a) => await y(a.url, { location: e }, { signal: i })), u = await Promise.allSettled(n);
|
|
64
|
+
o() || (this._abortController = null, this._results = l.map((a, h) => ({
|
|
65
|
+
name: a.name ?? t?.untitledService ?? "",
|
|
66
|
+
address: (u[h].status === "fulfilled" ? u[h].value.address : null) ?? t?.noResultFound ?? "",
|
|
67
|
+
url: a.url
|
|
70
68
|
})));
|
|
71
69
|
}
|
|
70
|
+
_copyTextToClipboard(e) {
|
|
71
|
+
navigator.clipboard.writeText(e), this.arcgisReverseGeocodeCopy.emit({ data: e });
|
|
72
|
+
}
|
|
72
73
|
_renderMoreResults(e) {
|
|
73
74
|
const { messages: t } = this;
|
|
74
|
-
return !this._abortController && e?.length ?
|
|
75
|
+
return !this._abortController && e?.length ? r`<calcite-block collapsible scale=s .headingLevel=${this.headingLevel} .heading=${$(t?.showMoreResults ?? "", { count: e.length })}><calcite-list scale=s display-mode=flat interaction-mode=static selection-mode=none .label=${t?.moreResults ?? ""}>${e?.map((s) => this._renderItem(s))}</calcite-list></calcite-block>` : null;
|
|
76
|
+
}
|
|
77
|
+
_renderCopyAction({ text: e, value: t }) {
|
|
78
|
+
return r`<calcite-action .text=${e} title=${e ?? C} slot=actions-end icon=copy @click=${() => this._copyTextToClipboard(t)}></calcite-action>`;
|
|
79
|
+
}
|
|
80
|
+
_renderCoordinatesItem() {
|
|
81
|
+
const { _location: e, messages: t } = this;
|
|
82
|
+
if (!e || this.hideCoordinates)
|
|
83
|
+
return null;
|
|
84
|
+
const { latitude: s, longitude: i } = e, o = s != null && i != null ? `${i.toFixed(6)}, ${s.toFixed(6)}` : null;
|
|
85
|
+
return o ? r`<calcite-list-item .label=${o} .description=${t.coordinates ?? ""}>${this._renderCopyAction({
|
|
86
|
+
text: t.copyCoordinates ?? "",
|
|
87
|
+
value: o
|
|
88
|
+
})}</calcite-list-item>` : null;
|
|
89
|
+
}
|
|
90
|
+
_renderItem(e) {
|
|
91
|
+
const { messages: t } = this;
|
|
92
|
+
return r`<calcite-list-item .label=${e.address} .description=${e.name}>${this._renderCopyAction({ text: t.copyAddress ?? "", value: e.address ?? "" })}</calcite-list-item>`;
|
|
75
93
|
}
|
|
76
94
|
render() {
|
|
77
|
-
const { _abortController: e, _location: t, _results: s, messages:
|
|
95
|
+
const { _abortController: e, _location: t, _results: s, messages: i } = this;
|
|
78
96
|
if (!t)
|
|
79
|
-
return
|
|
80
|
-
const o = s?.
|
|
81
|
-
return
|
|
97
|
+
return r`<calcite-notice scale=s open kind=warning icon><div slot=message>${i?.noLocation ?? ""}</div></calcite-notice>`;
|
|
98
|
+
const o = s?.[0], c = s && s.length > 1 ? s.slice(1) : void 0, l = this._renderCoordinatesItem(), n = o ? this._renderItem(o) : null;
|
|
99
|
+
return !e && !n && !l ? r`<calcite-notice scale=s open kind=info><div slot=message>${i?.noResultFound ?? ""}</div></calcite-notice>` : r`<calcite-list .loading=${!!e} display-mode=flat interaction-mode=static selection-mode=none .label=${i.label ?? ""} scale=s>${l}${n}</calcite-list>${this._renderMoreResults(c)}`;
|
|
82
100
|
}
|
|
83
101
|
}
|
|
84
|
-
|
|
102
|
+
g("arcgis-reverse-geocode-list", w);
|
|
85
103
|
export {
|
|
86
|
-
|
|
104
|
+
w as ArcgisReverseGeocodeList
|
|
87
105
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-block";
|
|
2
2
|
import "@esri/calcite-components/components/calcite-list";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-action";
|
|
3
4
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
4
6
|
export * from "./customElement.js";
|
|
@@ -7,13 +7,13 @@ import u from "@arcgis/core/Color.js";
|
|
|
7
7
|
import "@arcgis/core/core/Error.js";
|
|
8
8
|
import { when as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
9
|
import w from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
10
|
-
import { LitElement as
|
|
11
|
-
import { log as
|
|
10
|
+
import { LitElement as b, createEvent as l } from "@arcgis/lumina";
|
|
11
|
+
import { log as T } from "@arcgis/toolkit/log";
|
|
12
12
|
import { u as _ } from "../../chunks/useT9n.js";
|
|
13
13
|
import { m as v } from "../../chunks/useViewModel.js";
|
|
14
14
|
import { l as R } from "../../chunks/async-utils.js";
|
|
15
15
|
const $ = y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1);calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}`, C = v(w);
|
|
16
|
-
class k extends
|
|
16
|
+
class k extends b {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this._messages = _({ blocking: !0 }), this._viewModel = C(this), this._highlightHandles = [], this._handleRunTraceButtonClick = () => {
|
|
19
19
|
this._setTraceWarnings(), !(this.showNoStartingPointsWarning || this.showMissingTerminalWarning) && (this.showNoStartingPointsWarning = !1, this.showMissingTerminalWarning = !1, this._clearTraceResult(), this._switchTab("results"), this._runTrace());
|
|
@@ -34,8 +34,7 @@ class k extends T {
|
|
|
34
34
|
return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
|
|
35
35
|
}
|
|
36
36
|
get _isSubnetworkNameTraceSelected() {
|
|
37
|
-
|
|
38
|
-
return !!this._traceInputsElement?.selectedNamedTraceConfiguration?.traceConfiguration?.subnetworkName && e === "subnetwork";
|
|
37
|
+
return !!this._traceInputsElement?.unTraceConfiguration?.subnetworkName && this._traceInputsElement?.selectedNamedTraceConfiguration?.traceType === "subnetwork";
|
|
39
38
|
}
|
|
40
39
|
get traceResultFeatures() {
|
|
41
40
|
return this._traceResultsElement?.traceResultFeatures ?? [];
|
|
@@ -101,7 +100,7 @@ class k extends T {
|
|
|
101
100
|
async _runTrace() {
|
|
102
101
|
const e = this._traceInputsElement?.selectedNamedTraceConfiguration, t = this._traceInputsElement?.unTraceConfiguration;
|
|
103
102
|
if (!(e?.traceType && t)) {
|
|
104
|
-
|
|
103
|
+
T("error", this, "Trace configuration not found");
|
|
105
104
|
return;
|
|
106
105
|
}
|
|
107
106
|
const a = this._traceInputsElement?.traceLocations;
|
|
@@ -164,7 +163,7 @@ class k extends T {
|
|
|
164
163
|
const { mode: e, state: t } = this;
|
|
165
164
|
if (e !== "default")
|
|
166
165
|
return null;
|
|
167
|
-
const a = t === "disabled" || !this._traceInputsElement?.
|
|
166
|
+
const a = t === "disabled" || !this._traceInputsElement?.unTraceConfiguration;
|
|
168
167
|
return s`<calcite-button appearance=solid width=full @click=${this._handleRunTraceButtonClick} slot=footer .disabled=${a}>${this._messages.buttons.getResults}</calcite-button>`;
|
|
169
168
|
}
|
|
170
169
|
render() {
|
|
@@ -31,7 +31,8 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
|
|
|
31
31
|
errors: {
|
|
32
32
|
noCompatibleSubnetworks: string;
|
|
33
33
|
noMapError: string;
|
|
34
|
-
|
|
34
|
+
noNamedTraceConfigurations: string;
|
|
35
|
+
noTraceConfiguration: string;
|
|
35
36
|
noUtilityNetworkError: string;
|
|
36
37
|
utilityNetworkLoadFailed: string;
|
|
37
38
|
};
|
|
@@ -73,7 +74,8 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
|
|
|
73
74
|
errors: {
|
|
74
75
|
noCompatibleSubnetworks: string;
|
|
75
76
|
noMapError: string;
|
|
76
|
-
|
|
77
|
+
noNamedTraceConfigurations: string;
|
|
78
|
+
noTraceConfiguration: string;
|
|
77
79
|
noUtilityNetworkError: string;
|
|
78
80
|
utilityNetworkLoadFailed: string;
|
|
79
81
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as w } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as h } from "lit/directives/ref.js";
|
|
4
|
-
import
|
|
5
|
-
import { watch as
|
|
6
|
-
import { substitute as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
4
|
+
import c from "@arcgis/core/core/Collection.js";
|
|
5
|
+
import { watch as _ } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import { substitute as k } from "@arcgis/core/intl.js";
|
|
7
|
+
import S from "@arcgis/core/layers/GraphicsLayer.js";
|
|
8
|
+
import T from "@arcgis/core/networks/support/UNTraceConfiguration.js";
|
|
9
|
+
import C from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
10
10
|
import p from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
|
|
11
|
-
import
|
|
12
|
-
import { LitElement as
|
|
13
|
-
import { usePropertyChange as
|
|
14
|
-
import { log as d, composeMissingPropertyMessage as
|
|
15
|
-
import { css as
|
|
16
|
-
import { u as
|
|
17
|
-
import { b as
|
|
11
|
+
import L from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
12
|
+
import { LitElement as N, createEvent as l } from "@arcgis/lumina";
|
|
13
|
+
import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
14
|
+
import { log as d, composeMissingPropertyMessage as v, composeEmptyPropertyMessage as E } from "@arcgis/toolkit/log";
|
|
15
|
+
import { css as P, html as r } from "lit";
|
|
16
|
+
import { u as I } from "../../chunks/useT9n.js";
|
|
17
|
+
import { b as U, a as g, c as F, q as m, i as x } from "../../chunks/layer-utils.js";
|
|
18
18
|
import { l as f } from "../../chunks/async-utils.js";
|
|
19
|
-
const
|
|
20
|
-
class
|
|
19
|
+
const A = P`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-combobox,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, u = `utility-network-trace-inputs-sketch-${Date.now()}`, M = 20;
|
|
20
|
+
class D extends N {
|
|
21
21
|
constructor() {
|
|
22
|
-
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages =
|
|
22
|
+
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = I({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new c(), this._barriers = new c(), this._stoppingPoints = new c(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
|
|
23
23
|
"subnetwork",
|
|
24
24
|
"subnetwork-controller",
|
|
25
25
|
"upstream",
|
|
@@ -42,17 +42,16 @@ class M extends L {
|
|
|
42
42
|
e && (this._featuresComponentElement = e);
|
|
43
43
|
}, this._handleFeaturesPropertyChange = ({ detail: e, target: t }) => {
|
|
44
44
|
(e.name === "selectedDrillInFeature" || e.name === "selectedFeature") && (this.selectedFeature = t.selectedDrillInFeature ?? t.selectedFeature ?? void 0);
|
|
45
|
-
}, this.candidateFeatures = [], this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange =
|
|
45
|
+
}, this.candidateFeatures = [], this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange = $()("mode"), this.arcgisSelectedNamedTraceConfigurationChange = l(), this.arcgisTraceInputsChange = l(), this.arcgisTraceLocationSelectEnd = l(), this.arcgisTraceLocationSelectStart = l(), this.arcgisUtilityNetworkChange = l();
|
|
46
46
|
}
|
|
47
47
|
static {
|
|
48
48
|
this.properties = { selectedFeature: 16, candidateFeatures: 16, compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _error: 16, _subnetworkNamesState: 16, _activeTraceLocationType: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, autoDestroyDisabled: 5, hideActionBar: 5, unTraceConfiguration: 32, referenceElement: 1, mode: 3, traceLocationFlagInfos: 32, traceLocations: 32 };
|
|
49
49
|
}
|
|
50
50
|
static {
|
|
51
|
-
this.styles =
|
|
51
|
+
this.styles = A;
|
|
52
52
|
}
|
|
53
53
|
get isSubnetworkNameTraceSelected() {
|
|
54
|
-
|
|
55
|
-
return !!this.selectedNamedTraceConfiguration?.traceConfiguration?.subnetworkName && e === "subnetwork";
|
|
54
|
+
return !!this.selectedSubnetworkName && this.selectedNamedTraceConfiguration?.traceType === "subnetwork";
|
|
56
55
|
}
|
|
57
56
|
get selectedSubnetworkName() {
|
|
58
57
|
return this._unTraceConfiguration?.subnetworkName ?? void 0;
|
|
@@ -79,7 +78,7 @@ class M extends L {
|
|
|
79
78
|
return this._unTraceConfiguration;
|
|
80
79
|
}
|
|
81
80
|
get traceLocationFlagInfos() {
|
|
82
|
-
return new
|
|
81
|
+
return new c([...this._startingPoints, ...this._barriers, ...this._stoppingPoints]);
|
|
83
82
|
}
|
|
84
83
|
get traceLocations() {
|
|
85
84
|
const e = [];
|
|
@@ -90,7 +89,7 @@ class M extends L {
|
|
|
90
89
|
}
|
|
91
90
|
load() {
|
|
92
91
|
this._setUpMap(), this.manager.onLifecycle(() => [
|
|
93
|
-
|
|
92
|
+
_(() => this.view?.map, () => this._setUpMap())
|
|
94
93
|
]);
|
|
95
94
|
}
|
|
96
95
|
willUpdate(e) {
|
|
@@ -101,7 +100,7 @@ class M extends L {
|
|
|
101
100
|
}
|
|
102
101
|
_createTraceLocations(e) {
|
|
103
102
|
const t = e.flagProperties.selectedTerminals;
|
|
104
|
-
return e.flagProperties.terminalConfiguration && t?.size ? Array.from(t, (i) => new
|
|
103
|
+
return e.flagProperties.terminalConfiguration && t?.size ? Array.from(t, (i) => new C({
|
|
105
104
|
type: e.traceLocation.type,
|
|
106
105
|
isFilterBarrier: e.traceLocation.isFilterBarrier,
|
|
107
106
|
globalId: e.traceLocation.globalId,
|
|
@@ -120,12 +119,12 @@ class M extends L {
|
|
|
120
119
|
}
|
|
121
120
|
_createGraphicLayer(e, t) {
|
|
122
121
|
if (!e.findLayerById(t)) {
|
|
123
|
-
const a = new
|
|
122
|
+
const a = new S({
|
|
124
123
|
id: t,
|
|
125
124
|
listMode: "hide",
|
|
126
125
|
title: t
|
|
127
126
|
});
|
|
128
|
-
|
|
127
|
+
U(this.view, a);
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
130
|
_getGraphicLayer(e, t) {
|
|
@@ -141,9 +140,9 @@ class M extends L {
|
|
|
141
140
|
_setSnappingOption() {
|
|
142
141
|
const { _sketchViewModel: e, _unLayers: t } = this;
|
|
143
142
|
if (e && t && t.length > 0) {
|
|
144
|
-
const i = new
|
|
143
|
+
const i = new c();
|
|
145
144
|
t.forEach((a) => {
|
|
146
|
-
|
|
145
|
+
F(a) ? a.sublayers.forEach((s) => {
|
|
147
146
|
i.add(new p({
|
|
148
147
|
layer: s,
|
|
149
148
|
enabled: !0
|
|
@@ -161,7 +160,7 @@ class M extends L {
|
|
|
161
160
|
}
|
|
162
161
|
_initializeSketchViewModel(e) {
|
|
163
162
|
const { view: t } = this, i = this._getGraphicLayer(e, u);
|
|
164
|
-
return new
|
|
163
|
+
return new L({
|
|
165
164
|
layer: i,
|
|
166
165
|
view: t
|
|
167
166
|
});
|
|
@@ -203,8 +202,8 @@ class M extends L {
|
|
|
203
202
|
}
|
|
204
203
|
async _handleTraceConfigChange() {
|
|
205
204
|
const { selectedNamedTraceConfiguration: e } = this;
|
|
206
|
-
if (!(e?.traceConfiguration instanceof
|
|
207
|
-
d("error", this,
|
|
205
|
+
if (!(e?.traceConfiguration instanceof T)) {
|
|
206
|
+
d("error", this, v("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
|
|
208
207
|
return;
|
|
209
208
|
}
|
|
210
209
|
this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType === "subnetwork" && (this._subnetworkNamesState = "loading", await this._handleSubnetworkTraceConfigChange(this._unTraceConfiguration), this._subnetworkNamesState = "ready");
|
|
@@ -223,11 +222,11 @@ class M extends L {
|
|
|
223
222
|
}
|
|
224
223
|
_filterUnLayers() {
|
|
225
224
|
const { selectedUtilityNetwork: e } = this;
|
|
226
|
-
this._unLayers = new
|
|
225
|
+
this._unLayers = new c(this._allLayers.filter((t) => e?.isUtilityLayer(t) && !this._subnetworkLayerIds.includes(t.layerId))), this._setSnappingOption();
|
|
227
226
|
}
|
|
228
227
|
_handleUtilityNetworksChange() {
|
|
229
228
|
const { utilityNetworks: e, selectedUtilityNetwork: t } = this;
|
|
230
|
-
e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (d("error", this,
|
|
229
|
+
e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (d("error", this, E("utilityNetworks")), this.selectedUtilityNetwork = void 0, this._error = this._messages.errors.noUtilityNetworkError);
|
|
231
230
|
}
|
|
232
231
|
async _setupUtilityNetworks(e) {
|
|
233
232
|
try {
|
|
@@ -235,7 +234,7 @@ class M extends L {
|
|
|
235
234
|
} catch (t) {
|
|
236
235
|
f(t, this, "Error while loading `view.map`");
|
|
237
236
|
} finally {
|
|
238
|
-
this.utilityNetworks = e.utilityNetworks || new
|
|
237
|
+
this.utilityNetworks = e.utilityNetworks || new c();
|
|
239
238
|
}
|
|
240
239
|
}
|
|
241
240
|
_handleTraceLocationSelectStart(e) {
|
|
@@ -270,12 +269,12 @@ class M extends L {
|
|
|
270
269
|
async _queryFeatures(e) {
|
|
271
270
|
const t = /* @__PURE__ */ new Map(), i = [];
|
|
272
271
|
return e.forEach((a) => {
|
|
273
|
-
const s =
|
|
272
|
+
const s = x(a.layer) ? a.layer.parent : a.layer;
|
|
274
273
|
if (s) {
|
|
275
274
|
const o = this._getLayerByLayerId(s.layerId);
|
|
276
275
|
if (o) {
|
|
277
|
-
const
|
|
278
|
-
|
|
276
|
+
const n = t.get(o) || [];
|
|
277
|
+
n.push(a), t.set(o, n);
|
|
279
278
|
}
|
|
280
279
|
}
|
|
281
280
|
}), await Promise.all(Array.from(t.keys()).map(async (a) => {
|
|
@@ -339,10 +338,10 @@ class M extends L {
|
|
|
339
338
|
return r`<arcgis-features .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${e} .featureMenuTitle=${t} .hideActionBar=${this.hideActionBar} hide-select-feature .initialDisplayMode=${i} @arcgisClose=${() => this._handleFeaturesClose()} @arcgisPropertyChange=${this._handleFeaturesPropertyChange} open .referenceElement=${this.referenceElement} .view=${this.view} ${h(this._featuresComponentRefChange)}></arcgis-features>`;
|
|
340
339
|
}
|
|
341
340
|
renderAddSpatialFooter() {
|
|
342
|
-
const { mode: e, _messages: t, selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o =
|
|
341
|
+
const { mode: e, _messages: t, selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = k(t.warnings.exceededDisplayLimit, {
|
|
343
342
|
limit: this._displayLimit.toString()
|
|
344
|
-
}),
|
|
345
|
-
return r`${s && r`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this._handleAddSpatialCancelClick()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && r`<calcite-button width=full slot=footer appearance=solid @click=${() => this._handleAddSpatialAddClick()} .disabled=${
|
|
343
|
+
}), n = i ? !(a?.isUtilityLayer(i.layer) ?? !0) : !0;
|
|
344
|
+
return r`${s && r`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this._handleAddSpatialCancelClick()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && r`<calcite-button width=full slot=footer appearance=solid @click=${() => this._handleAddSpatialAddClick()} .disabled=${n}>${t.buttons.add}</calcite-button>` || ""}`;
|
|
346
345
|
}
|
|
347
346
|
renderStartingPointSelection() {
|
|
348
347
|
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationStartingRefChange)}></arcgis-utility-network-trace-location>`;
|
|
@@ -363,25 +362,25 @@ class M extends L {
|
|
|
363
362
|
}
|
|
364
363
|
renderSubnetworkSelection() {
|
|
365
364
|
const { compatibleSubnetworkNames: e } = this, t = this._messages.labels.subnetworkName;
|
|
366
|
-
return this.isSubnetworkNameTraceSelected ? this._subnetworkNamesState === "loading" ? r`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? r`<calcite-block .heading=${t} .label=${t} expanded>${e.length >
|
|
365
|
+
return this.isSubnetworkNameTraceSelected ? this._subnetworkNamesState === "loading" ? r`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? r`<calcite-block .heading=${t} .label=${t} expanded>${e.length > M ? this.renderSubnetworkNameInput() : this.renderSubnetworkSelectList()}</calcite-block>` : this.renderError(this._messages.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
|
|
367
366
|
}
|
|
368
367
|
renderSubnetworkInfo() {
|
|
369
368
|
const { _messages: e, selectedNamedTraceConfiguration: t, _unTraceConfiguration: i } = this;
|
|
370
369
|
return i && t?.traceType && this._subnetworkTraceTypes.has(t.traceType) ? r`<calcite-block id=subnetwork-info-block expanded .label=${e.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info .namedTraceConfig=${t}></arcgis-utility-network-subnetwork-info></calcite-block>` : null;
|
|
371
370
|
}
|
|
372
371
|
renderContent() {
|
|
373
|
-
const { utilityNetworks: e } = this, {
|
|
374
|
-
let
|
|
375
|
-
this.selectedUtilityNetwork?.loadError ?
|
|
376
|
-
const
|
|
377
|
-
return r`<calcite-block-group .label=${this._messages.labels.traceInputs}>${
|
|
372
|
+
const { utilityNetworks: e, unTraceConfiguration: t } = this, { noTraceConfiguration: i, noNamedTraceConfigurations: a, utilityNetworkLoadFailed: s } = this._messages.errors, o = e && e.length > 1 ? this.renderUtilityNetworkSelection() : null;
|
|
373
|
+
let n;
|
|
374
|
+
this.selectedUtilityNetwork?.loadError ? n = this.renderError(s, !1, "exclamation-mark-triangle") : this.traceConfigurations.length || (n = this.renderError(a, !1, "exclamation-mark-triangle"));
|
|
375
|
+
const b = r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, y = t ? r`${this.showStartingPoints ? this.renderStartingPointSelection() : null}${this.showStoppingPoints ? this.renderStoppingPointSelection() : null}${this.renderBarrierSelection()}` : this.renderError(i, !1, "exclamation-mark-triangle");
|
|
376
|
+
return r`<calcite-block-group .label=${this._messages.labels.traceInputs}>${o}${n ?? r`${b}${y}`}</calcite-block-group>`;
|
|
378
377
|
}
|
|
379
378
|
render() {
|
|
380
379
|
const { mode: e } = this;
|
|
381
380
|
return r`<calcite-panel>${e === "add-spatial-feature" ? this.renderCandidateFeatures() : null}<calcite-flow .hidden=${e === "add-spatial-feature"}>${this.renderDefaultMode()}${this.renderSpatialSelectInstructions()}</calcite-flow>${e !== "default" ? this.renderAddSpatialFooter() : null}</calcite-panel>`;
|
|
382
381
|
}
|
|
383
382
|
}
|
|
384
|
-
|
|
383
|
+
w("arcgis-utility-network-trace-inputs", D);
|
|
385
384
|
export {
|
|
386
|
-
|
|
385
|
+
D as ArcgisUtilityNetworkTraceInputs
|
|
387
386
|
};
|
|
@@ -96,6 +96,7 @@ export abstract class ArcgisVersionManagement extends LitElement {
|
|
|
96
96
|
noFeatureServices?: string | undefined;
|
|
97
97
|
noViewProperty?: string | undefined;
|
|
98
98
|
} | undefined;
|
|
99
|
+
validationErrors?: { invalidCharacters?: string | undefined; } | undefined;
|
|
99
100
|
};
|
|
100
101
|
/** @internal */
|
|
101
102
|
protected messages: {
|
|
@@ -142,6 +143,7 @@ export abstract class ArcgisVersionManagement extends LitElement {
|
|
|
142
143
|
noFeatureServices: string;
|
|
143
144
|
noViewProperty: string;
|
|
144
145
|
};
|
|
146
|
+
validationErrors: { invalidCharacters: string; };
|
|
145
147
|
} & T9nMeta<{
|
|
146
148
|
label: string;
|
|
147
149
|
actions: {
|
|
@@ -186,6 +188,7 @@ export abstract class ArcgisVersionManagement extends LitElement {
|
|
|
186
188
|
noFeatureServices: string;
|
|
187
189
|
noViewProperty: string;
|
|
188
190
|
};
|
|
191
|
+
validationErrors: { invalidCharacters: string; };
|
|
189
192
|
}>;
|
|
190
193
|
accessor mode: string | undefined;
|
|
191
194
|
/**
|