@arcgis/map-components 5.1.0-next.46 → 5.1.0-next.47
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/{IULGMTSK.js → 3GY55TR6.js} +1 -1
- package/dist/cdn/{JJTM5KZ2.js → 5EGS3PEJ.js} +1 -1
- package/dist/cdn/{GO5BD6QL.js → 5FJIKNID.js} +1 -1
- package/dist/cdn/{UVHZXCAN.js → 6E7H5LPA.js} +2 -2
- package/dist/cdn/{HKNVYHER.js → 6XPVHLWQ.js} +1 -1
- package/dist/cdn/{G7SRL7WF.js → 76RS6RKB.js} +1 -1
- package/dist/cdn/{5C33IP7B.js → A2QPYUE5.js} +1 -1
- package/dist/cdn/{FHVFIK44.js → CC77IOI3.js} +1 -1
- package/dist/cdn/CYSDIJ4L.js +2 -0
- package/dist/cdn/EHPHVZAX.js +2 -0
- package/dist/cdn/{PFQ5U7SF.js → ET2U2ZGP.js} +1 -1
- package/dist/cdn/{DCRCFVBU.js → F2SNWNAZ.js} +1 -1
- package/dist/cdn/FF5VMKLK.js +2 -0
- package/dist/cdn/{IPIYZVAJ.js → FWXI6DGS.js} +1 -1
- package/dist/cdn/I6PZUSTS.js +2 -0
- package/dist/cdn/{2IFKJHFD.js → JFNCIZRD.js} +1 -1
- package/dist/cdn/{QEDQOBD7.js → JVFREF7G.js} +2 -2
- package/dist/cdn/{SZSOX5MA.js → KWZTLNUH.js} +1 -1
- package/dist/cdn/{YQWTCTTH.js → LY77GAJT.js} +1 -1
- package/dist/cdn/ODQ4JQEF.js +2 -0
- package/dist/cdn/{NBBZRGXH.js → OH3I63ZU.js} +1 -1
- package/dist/cdn/{JWJHIBYW.js → P2ABZVPJ.js} +1 -1
- package/dist/cdn/PNGKWZJQ.js +2 -0
- package/dist/cdn/{XSEIJTVD.js → R42WEZRB.js} +1 -1
- package/dist/cdn/{KFG6ZJAZ.js → REQFNQZY.js} +1 -1
- package/dist/cdn/{WG4E5DBM.js → RH62B2NE.js} +1 -1
- package/dist/cdn/{L3AVJM22.js → T5MRUYOH.js} +1 -1
- package/dist/cdn/TBWM3VXL.js +2 -0
- package/dist/cdn/{ANRWXBWL.js → VEYOGGAN.js} +1 -1
- package/dist/cdn/{Q5Y3DHAC.js → W27U4A3P.js} +1 -1
- package/dist/cdn/XPZYTUFI.js +2 -0
- package/dist/cdn/{DLB6EEQE.js → YET5HTLQ.js} +1 -1
- package/dist/cdn/YXUK3MCB.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-utils.js +17 -13
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +14 -13
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +80 -86
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +35 -35
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +26 -25
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/6JYHNX2S.js +0 -2
- package/dist/cdn/BE4GRNQV.js +0 -2
- package/dist/cdn/CAXI6CJY.js +0 -2
- package/dist/cdn/ELTHY6FL.js +0 -2
- package/dist/cdn/MFIMBD2E.js +0 -2
- package/dist/cdn/NXQA6DOA.js +0 -2
- package/dist/cdn/OGE4JCW6.js +0 -2
- package/dist/cdn/T34SPRV3.js +0 -2
- package/dist/cdn/UKU22VTN.js +0 -2
- /package/dist/cdn/{BILSW27K.js → 2HXYJZSB.js} +0 -0
- /package/dist/cdn/{5VWD7SPW.js → 37GJW6KT.js} +0 -0
- /package/dist/cdn/{VIEEGP7G.js → 4IM2FY5W.js} +0 -0
- /package/dist/cdn/{OIJPQ63Z.js → 4MDRPZTG.js} +0 -0
- /package/dist/cdn/{ZYZA5VUV.js → 4STAROOM.js} +0 -0
- /package/dist/cdn/{YJPCWIX2.js → 5IMWXYL2.js} +0 -0
- /package/dist/cdn/{O5S54F3U.js → 5TXE67XV.js} +0 -0
- /package/dist/cdn/{E6GYGJ2B.js → BBQPUWRO.js} +0 -0
- /package/dist/cdn/{EG3W3ADI.js → BND2TJBO.js} +0 -0
- /package/dist/cdn/{WRS3F55Q.js → CJOHGWK6.js} +0 -0
- /package/dist/cdn/{6TB2XH3T.js → D5WXOOS3.js} +0 -0
- /package/dist/cdn/{UX5YG5TO.js → DMDCKD5U.js} +0 -0
- /package/dist/cdn/{PILEMW25.js → DQH27QCF.js} +0 -0
- /package/dist/cdn/{HX6XVMJE.js → EP252O27.js} +0 -0
- /package/dist/cdn/{H4WIQKA4.js → EVHNFE5I.js} +0 -0
- /package/dist/cdn/{T3ZFKRCS.js → EW6V3NZI.js} +0 -0
- /package/dist/cdn/{6PWTVRJ6.js → F6BQWE5I.js} +0 -0
- /package/dist/cdn/{ULYGZ4D2.js → FLLSBLLE.js} +0 -0
- /package/dist/cdn/{PWPTFBHS.js → FQZXILRT.js} +0 -0
- /package/dist/cdn/{6ZCH5OTT.js → GHY23IXW.js} +0 -0
- /package/dist/cdn/{QY7A4VMP.js → GIGQIUF5.js} +0 -0
- /package/dist/cdn/{GPESYF4D.js → GS75FRUR.js} +0 -0
- /package/dist/cdn/{6W3OENEK.js → HGAJ2IEN.js} +0 -0
- /package/dist/cdn/{YGVSJT3E.js → JKVKP7AW.js} +0 -0
- /package/dist/cdn/{7C22TPME.js → JU3BLGXG.js} +0 -0
- /package/dist/cdn/{MR5AEEII.js → L4TA63M6.js} +0 -0
- /package/dist/cdn/{BUILQQ6S.js → LQVZVGY4.js} +0 -0
- /package/dist/cdn/{SPSJMCAO.js → MM4KQLRF.js} +0 -0
- /package/dist/cdn/{4S2JKX63.js → Q3GALNWS.js} +0 -0
- /package/dist/cdn/{BLSJEYOH.js → QM34BSKE.js} +0 -0
- /package/dist/cdn/{QSOU6NQA.js → QTWRDNXX.js} +0 -0
- /package/dist/cdn/{FVTX4GNH.js → TC3Q2QUA.js} +0 -0
- /package/dist/cdn/{WTUUS552.js → TEFALOII.js} +0 -0
- /package/dist/cdn/{2HJ7EGEB.js → TP5VEU3D.js} +0 -0
- /package/dist/cdn/{3LKCMCHN.js → U35ISUWJ.js} +0 -0
- /package/dist/cdn/{FWV2SQE2.js → UUC3DBCQ.js} +0 -0
- /package/dist/cdn/{ZLOQIB7A.js → UVMLKDJA.js} +0 -0
- /package/dist/cdn/{BEDLAEXK.js → V7DG2KF6.js} +0 -0
- /package/dist/cdn/{TKVE7ETK.js → WHDMC5HB.js} +0 -0
- /package/dist/cdn/{GPGC63RW.js → XEXCDGSR.js} +0 -0
- /package/dist/cdn/{BVFH7ZG4.js → XJXQC6HM.js} +0 -0
- /package/dist/cdn/{GT5SWKXT.js → YZSLMAVX.js} +0 -0
- /package/dist/cdn/{ZX5YTFYB.js → ZUPEVR3P.js} +0 -0
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as N } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as M, html as p } from "lit";
|
|
4
4
|
import { keyed as C } from "lit/directives/keyed.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { i as k, a as $ } from "../../chunks/layer-utils.js";
|
|
6
|
+
import { createReactiveMap as I, findUtilityNetwork as j, queryAllJSON as D, getOrCreateMapValue as V } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
7
|
+
import { stripHTML as v } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
7
8
|
import w from "@arcgis/core/core/Collection.js";
|
|
8
|
-
import { ignoreAbortErrors as
|
|
9
|
+
import { ignoreAbortErrors as E } from "@arcgis/core/core/promiseUtils.js";
|
|
9
10
|
import { watch as A } from "@arcgis/core/core/reactiveUtils.js";
|
|
10
|
-
import * as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { LitElement as
|
|
11
|
+
import * as U from "@arcgis/core/core/sql.js";
|
|
12
|
+
import x from "@arcgis/core/rest/networks/support/NetworkElement.js";
|
|
13
|
+
import P from "@arcgis/core/rest/networks/support/QueryAssociationsParameters.js";
|
|
14
|
+
import Q from "@arcgis/core/rest/support/FeatureSet.js";
|
|
15
|
+
import G from "@arcgis/core/rest/support/Query.js";
|
|
16
|
+
import B from "@arcgis/core/widgets/Feature/FeatureViewModel.js";
|
|
17
|
+
import { LitElement as O, renderElement as R } from "@arcgis/lumina";
|
|
17
18
|
import { debounce as L } from "@arcgis/toolkit/function";
|
|
18
|
-
const
|
|
19
|
+
const H = M`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`, q = 100, T = {
|
|
19
20
|
assetGroup: "assetgroup",
|
|
20
21
|
assetType: "assettype"
|
|
21
22
|
}, S = "{00000000-0000-0000-0000-000000000000}";
|
|
22
|
-
class
|
|
23
|
+
class Z extends O {
|
|
23
24
|
constructor() {
|
|
24
25
|
super(...arguments), this._addFlowItem = (t) => {
|
|
25
26
|
t && this.flowItems?.push(t);
|
|
@@ -38,12 +39,12 @@ class R extends Q {
|
|
|
38
39
|
}, this._queryController = async (t) => {
|
|
39
40
|
this._cancelQuery();
|
|
40
41
|
const e = new AbortController();
|
|
41
|
-
this._queryAbortController = e, await
|
|
42
|
+
this._queryAbortController = e, await E(this._query(t)), this._queryAbortController === e && (this._queryAbortController = null);
|
|
42
43
|
}, this._queryFeatureCountController = async () => {
|
|
43
44
|
this._loaded = !1, this._cancelQueryFeatureCount();
|
|
44
45
|
const t = new AbortController();
|
|
45
|
-
this._queryFeatureCountAbortController = t, await
|
|
46
|
-
}, this._queryDebounced = L(this._queryController,
|
|
46
|
+
this._queryFeatureCountAbortController = t, await E(this._queryFeatureCount()), this._queryFeatureCountAbortController === t && (this._queryFeatureCountAbortController = null), this._loaded = !0;
|
|
47
|
+
}, this._queryDebounced = L(this._queryController, q), this._queryFeatureCountDebounced = L(this._queryFeatureCountController, q), this._structureAssociations = new w(), this._structureFeatureCount = 0, this._queryAssociationType = async () => {
|
|
47
48
|
this._activeAssociationType && this._queryDebounced(this._activeAssociationType);
|
|
48
49
|
}, this._associationFeatures = I(), this._associationViewModels = I(), this._featureCount = 0, this._loaded = !1, this._queryAbortController = null, this._queryFeatureCountAbortController = null, this._queryPageAbortController = null, this.associationTypes = null, this.autoDestroyDisabled = !1, this.flowType = "feature-utility-network-associations", this.headingLevel = 2, this.source = "popup";
|
|
49
50
|
}
|
|
@@ -51,7 +52,7 @@ class R extends Q {
|
|
|
51
52
|
this.properties = { _activeAssociationType: 16, _associationFeatures: 16, _associationViewModels: 16, _canLoad: 16, _canQuery: 16, _featureCount: 16, _loaded: 16, _queryAbortController: 16, _queryFeatureCountAbortController: 16, _queryPageAbortController: 16, _state: 16, associationTypes: 0, autoDestroyDisabled: 5, description: 1, flowItems: 0, flowType: 1, graphic: 0, heading: 1, headingLevel: 9, layer: 0, map: 0, messages: 0, parentFeatureViewModel: 0, referenceElement: 1, source: 1, spatialReference: 0, timeZone: 1, view: 0 };
|
|
52
53
|
}
|
|
53
54
|
static {
|
|
54
|
-
this.styles =
|
|
55
|
+
this.styles = H;
|
|
55
56
|
}
|
|
56
57
|
get _globalId() {
|
|
57
58
|
return (this._globalIdField && this.graphic?.attributes?.[this._globalIdField]) ?? null;
|
|
@@ -72,8 +73,8 @@ class R extends Q {
|
|
|
72
73
|
const { layer: t, map: e } = this;
|
|
73
74
|
if (!t?.loaded || !e)
|
|
74
75
|
return null;
|
|
75
|
-
const s =
|
|
76
|
-
return
|
|
76
|
+
const s = k(t) ? t.parent : t;
|
|
77
|
+
return j(e, s);
|
|
77
78
|
}
|
|
78
79
|
get _canLoad() {
|
|
79
80
|
return !!this.map;
|
|
@@ -82,8 +83,8 @@ class R extends Q {
|
|
|
82
83
|
return !!this.layer?.capabilities?.query?.supportsPagination;
|
|
83
84
|
}
|
|
84
85
|
get _state() {
|
|
85
|
-
const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController:
|
|
86
|
-
return
|
|
86
|
+
const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController: a, _queryPageAbortController: u, associationTypes: c } = this;
|
|
87
|
+
return a || t && !o ? "loading" : i || u ? "querying" : !this._globalId || !c || !e || !s ? "disabled" : "ready";
|
|
87
88
|
}
|
|
88
89
|
get heading() {
|
|
89
90
|
return this._heading;
|
|
@@ -118,7 +119,7 @@ class R extends Q {
|
|
|
118
119
|
});
|
|
119
120
|
}
|
|
120
121
|
_addAssociationTypeFlowItem(t) {
|
|
121
|
-
this._addFlowItem(
|
|
122
|
+
this._addFlowItem(R(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`));
|
|
122
123
|
}
|
|
123
124
|
_clearAssociations() {
|
|
124
125
|
this._attachmentAssociations.removeAll(), this._connectivityAssociations.removeAll(), this._containerAssociations.removeAll(), this._contentAssociations.removeAll(), this._structureAssociations.removeAll();
|
|
@@ -132,9 +133,9 @@ class R extends Q {
|
|
|
132
133
|
});
|
|
133
134
|
}
|
|
134
135
|
async _countAssociatedFeatureCount(t, e, s, o, i) {
|
|
135
|
-
const
|
|
136
|
+
const a = this._getFeatureQueryWhereClause(t, e, s, o);
|
|
136
137
|
return await t.queryFeatureCount({
|
|
137
|
-
where:
|
|
138
|
+
where: a,
|
|
138
139
|
outFields: ["*"],
|
|
139
140
|
returnGeometry: !1
|
|
140
141
|
}, {
|
|
@@ -144,37 +145,37 @@ class R extends Q {
|
|
|
144
145
|
async _countAssociatedFeatures(t, e, s, o, i) {
|
|
145
146
|
if (!e.length)
|
|
146
147
|
return 0;
|
|
147
|
-
const
|
|
148
|
-
await this._loadLayers(
|
|
149
|
-
const u =
|
|
150
|
-
return (await Promise.all(u)).reduce((
|
|
148
|
+
const a = await this._findLayersBySourceId(t);
|
|
149
|
+
await this._loadLayers(a);
|
|
150
|
+
const u = a.map((r) => this._countAssociatedFeatureCount(r, e, s, o, i));
|
|
151
|
+
return (await Promise.all(u)).reduce((r, d) => r + d, 0);
|
|
151
152
|
}
|
|
152
153
|
async _createAssociationFeatureObjects(t, e, s, o, i) {
|
|
153
154
|
if (!t.length)
|
|
154
155
|
return [];
|
|
155
|
-
const
|
|
156
|
-
const l = await this._findLayersBySourceId(
|
|
156
|
+
const a = /* @__PURE__ */ new Map(), u = Array.from(e.entries()).map(async ([r, d]) => {
|
|
157
|
+
const l = await this._findLayersBySourceId(r);
|
|
157
158
|
await this._loadLayers(l);
|
|
158
159
|
const y = l.map((n) => this._queryLayer(n, d, s, o, i));
|
|
159
160
|
(await Promise.all(y)).forEach((n) => {
|
|
160
161
|
n.forEach((h) => {
|
|
161
162
|
if (this.source === "popup" ? h.sourceLayer && h.getEffectivePopupTemplate() : !!h.sourceLayer) {
|
|
162
|
-
const f = h.layer.globalIdField ?? "", g = h.getAttribute(f), b =
|
|
163
|
-
b.push(h),
|
|
163
|
+
const f = h.layer.globalIdField ?? "", g = h.getAttribute(f), b = a.get(g) ?? [];
|
|
164
|
+
b.push(h), a.set(g, b);
|
|
164
165
|
}
|
|
165
166
|
});
|
|
166
167
|
});
|
|
167
168
|
});
|
|
168
169
|
await Promise.all(u);
|
|
169
170
|
const c = [];
|
|
170
|
-
return await Promise.all(t.toArray().map(async (
|
|
171
|
-
const { fromNetworkElement: d, toNetworkElement: l } =
|
|
171
|
+
return await Promise.all(t.toArray().map(async (r) => {
|
|
172
|
+
const { fromNetworkElement: d, toNetworkElement: l } = r, y = d.globalId === this._globalId ? l : d, m = a.get(y.globalId) ?? [];
|
|
172
173
|
await Promise.all(m.map(async (n) => {
|
|
173
174
|
const h = this._utilityNetwork?.getTerminalById(y?.terminalId ?? void 0)?.name, _ = await n.sourceLayer.getFeatureTitle(n) || this._getFeatureTitle(n);
|
|
174
175
|
c.push({
|
|
175
176
|
title: _,
|
|
176
177
|
feature: n,
|
|
177
|
-
association:
|
|
178
|
+
association: r,
|
|
178
179
|
terminalName: h
|
|
179
180
|
});
|
|
180
181
|
}));
|
|
@@ -188,16 +189,16 @@ class R extends Q {
|
|
|
188
189
|
let s = function(d, l) {
|
|
189
190
|
return d.networkSourceId === l.networkSourceId && d.globalId === l.globalId && d.terminalId === l.terminalId && d.firstUnit === l.firstUnit && d.numUnits === l.numUnits;
|
|
190
191
|
};
|
|
191
|
-
const o = t.fromNetworkElement, i = t.toNetworkElement,
|
|
192
|
-
return c &&
|
|
192
|
+
const o = t.fromNetworkElement, i = t.toNetworkElement, a = e.fromNetworkElement, u = e.toNetworkElement, c = s(o, a), r = s(i, u);
|
|
193
|
+
return c && r && t.associationType === e.associationType;
|
|
193
194
|
}
|
|
194
195
|
return t.globalId != null && e.globalId != null && t.globalId === e.globalId;
|
|
195
196
|
}
|
|
196
197
|
async _findLayersBySourceId(t) {
|
|
197
198
|
const { _utilityNetwork: e, map: s } = this;
|
|
198
199
|
e?.loaded || await e?.load();
|
|
199
|
-
const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o),
|
|
200
|
-
return i.concat(
|
|
200
|
+
const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o), a = s.allTables.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o);
|
|
201
|
+
return i.concat(a).toArray();
|
|
201
202
|
}
|
|
202
203
|
_getAssociationsByType(t) {
|
|
203
204
|
switch (t) {
|
|
@@ -245,21 +246,15 @@ class R extends Q {
|
|
|
245
246
|
}
|
|
246
247
|
}
|
|
247
248
|
_getFeatureQueryWhereClause(t, e, s, o) {
|
|
248
|
-
const i = t.globalIdField,
|
|
249
|
+
const i = t.globalIdField, a = t.fieldsIndex.get(T.assetGroup), u = t.fieldsIndex.get(T.assetType), c = s != null, r = o != null, d = i ? U.sqlIn(i, e) : null, l = c ? `(${a?.name} = ${s})` : null, y = c && r ? `(${u?.name} = ${o})` : null;
|
|
249
250
|
return [d, l, y].filter(Boolean).join(" AND ");
|
|
250
251
|
}
|
|
251
252
|
_getFeatureTitle(t) {
|
|
252
253
|
const e = t.attributes, s = t.sourceLayer;
|
|
253
254
|
if (!e || !s)
|
|
254
255
|
return "";
|
|
255
|
-
const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null,
|
|
256
|
-
return
|
|
257
|
-
}
|
|
258
|
-
_isSubtypeGroupLayer(t) {
|
|
259
|
-
return t != null && typeof t == "object" && "type" in t && t.type === "subtype-group" && "sublayers" in t;
|
|
260
|
-
}
|
|
261
|
-
_isSubtypeSublayer(t) {
|
|
262
|
-
return t?.type === "subtype-sublayer";
|
|
256
|
+
const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null, a = i != null ? i.toString() : null, u = t.getObjectId()?.toString();
|
|
257
|
+
return a || u || "";
|
|
263
258
|
}
|
|
264
259
|
async _loadUtiltyNetworks() {
|
|
265
260
|
const t = this.map;
|
|
@@ -285,11 +280,11 @@ class R extends Q {
|
|
|
285
280
|
return this._equals(t.association, e.association);
|
|
286
281
|
}
|
|
287
282
|
async _queryAssociatedFeatures(t, e) {
|
|
288
|
-
const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork:
|
|
289
|
-
if (await Promise.allSettled([s?.load(),
|
|
283
|
+
const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork: a, _canQuery: u, _associationFeatures: c } = this;
|
|
284
|
+
if (await Promise.allSettled([s?.load(), a?.load()]), !u || !s || !i || !a)
|
|
290
285
|
return;
|
|
291
|
-
const
|
|
292
|
-
|
|
286
|
+
const r = this._getAssociationsByType(t.type), { associatedAssetGroup: d, associatedAssetType: l } = t, y = /* @__PURE__ */ new Map();
|
|
287
|
+
r.forEach((n) => {
|
|
293
288
|
const { fromNetworkElement: h, toNetworkElement: _ } = n, { networkSourceId: f, elementGlobalId: g } = h.globalId === o ? {
|
|
294
289
|
networkSourceId: _.networkSourceId,
|
|
295
290
|
elementGlobalId: _.globalId
|
|
@@ -299,35 +294,35 @@ class R extends Q {
|
|
|
299
294
|
}, b = y.get(f) || [];
|
|
300
295
|
b.push(g), y.set(f, b);
|
|
301
296
|
});
|
|
302
|
-
const m = await this._createAssociationFeatureObjects(
|
|
297
|
+
const m = await this._createAssociationFeatureObjects(r, y, d, l, e);
|
|
303
298
|
this._parseFeatureObjects(m, c);
|
|
304
299
|
}
|
|
305
300
|
async _queryAssociations(t) {
|
|
306
|
-
const { layer: e, _globalId: s, associationTypes: o, _utilityNetwork: i, _canQuery:
|
|
307
|
-
if (await Promise.allSettled([e?.load(), i?.load()]), this._clearAssociations(), !
|
|
301
|
+
const { layer: e, _globalId: s, associationTypes: o, _utilityNetwork: i, _canQuery: a } = this;
|
|
302
|
+
if (await Promise.allSettled([e?.load(), i?.load()]), this._clearAssociations(), !a || !e || !o || !i || !s)
|
|
308
303
|
return;
|
|
309
|
-
const u =
|
|
304
|
+
const u = k(e) ? e.parent : e, c = new x({
|
|
310
305
|
globalId: s,
|
|
311
306
|
networkSourceId: i.getSourceIdByLayerId(u.layerId)
|
|
312
|
-
}),
|
|
307
|
+
}), r = /* @__PURE__ */ new Set();
|
|
313
308
|
o.forEach((n) => {
|
|
314
309
|
switch (n.type) {
|
|
315
310
|
case "attachment":
|
|
316
311
|
case "structure":
|
|
317
|
-
|
|
312
|
+
r.add("attachment");
|
|
318
313
|
break;
|
|
319
314
|
case "container":
|
|
320
315
|
case "content":
|
|
321
|
-
|
|
316
|
+
r.add("containment");
|
|
322
317
|
break;
|
|
323
318
|
case "connectivity":
|
|
324
|
-
|
|
319
|
+
r.add("connectivity"), r.add("junction-junction-connectivity"), r.add("junction-edge-from-connectivity"), r.add("junction-edge-midspan-connectivity"), r.add("junction-edge-to-connectivity");
|
|
325
320
|
break;
|
|
326
321
|
}
|
|
327
322
|
});
|
|
328
|
-
const d = await i?.queryAssociations(new
|
|
323
|
+
const d = await i?.queryAssociations(new P({
|
|
329
324
|
elements: [c],
|
|
330
|
-
types: Array.from(
|
|
325
|
+
types: Array.from(r)
|
|
331
326
|
}), {
|
|
332
327
|
signal: t?.signal
|
|
333
328
|
}), l = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
|
|
@@ -408,21 +403,20 @@ class R extends Q {
|
|
|
408
403
|
await this._queryAssociations(t), this._featureCount = this._attachmentFeatureCount + this._connectivityFeatureCount + this._containerFeatureCount + this._contentFeatureCount + this._structureFeatureCount;
|
|
409
404
|
}
|
|
410
405
|
async _queryLayer(t, e, s, o, i) {
|
|
411
|
-
const
|
|
412
|
-
where:
|
|
406
|
+
const a = this._getFeatureQueryWhereClause(t, e, s, o), u = new G({
|
|
407
|
+
where: a,
|
|
413
408
|
outFields: ["*"],
|
|
414
409
|
cacheHint: this._supportsCacheHint
|
|
415
|
-
}), c =
|
|
416
|
-
return c.features.forEach((
|
|
417
|
-
|
|
418
|
-
a.layer = d ? t.findSublayerForFeature(a) : t, a.sourceLayer = d ? t.findSublayerForFeature(a) : t;
|
|
410
|
+
}), c = Q.fromJSON(await D(t, u, i));
|
|
411
|
+
return c.features.forEach((r) => {
|
|
412
|
+
r.layer = $(t) ? t.findSublayerForFeature(r) : t, r.sourceLayer = r.layer;
|
|
419
413
|
}), c.features;
|
|
420
414
|
}
|
|
421
415
|
_parseFeatureObjects(t, e) {
|
|
422
416
|
const s = I();
|
|
423
417
|
t.forEach((o) => {
|
|
424
|
-
const
|
|
425
|
-
|
|
418
|
+
const a = (o?.feature).sourceLayer;
|
|
419
|
+
V(s, a, () => new w()).add(o);
|
|
426
420
|
});
|
|
427
421
|
for (const [o, i] of s)
|
|
428
422
|
this._sortFeatureObjectsByTitle(i), e.set(o, i);
|
|
@@ -432,22 +426,22 @@ class R extends Q {
|
|
|
432
426
|
e && (this._activeAssociationType = t, this._setUpUtilityNetworkAssociationsViewModels(), this._addAssociationTypeFlowItem(t));
|
|
433
427
|
}
|
|
434
428
|
_setUpUtilityNetworkAssociationsViewModels() {
|
|
435
|
-
this._associationViewModels.forEach((i,
|
|
436
|
-
const u = this._associationFeatures.get(
|
|
429
|
+
this._associationViewModels.forEach((i, a) => {
|
|
430
|
+
const u = this._associationFeatures.get(a);
|
|
437
431
|
u ? i.forEach((c) => {
|
|
438
|
-
u.find((d) => this._matchesGlobalFeature(c, d)) || (i.remove(c), i.length || this._associationViewModels.delete(
|
|
439
|
-
}) : (i.removeAll(), this._associationViewModels.delete(
|
|
432
|
+
u.find((d) => this._matchesGlobalFeature(c, d)) || (i.remove(c), i.length || this._associationViewModels.delete(a));
|
|
433
|
+
}) : (i.removeAll(), this._associationViewModels.delete(a));
|
|
440
434
|
});
|
|
441
435
|
const { map: t, view: e, spatialReference: s, timeZone: o } = this;
|
|
442
|
-
this._associationFeatures.forEach((i,
|
|
443
|
-
const u = this._associationViewModels.get(
|
|
444
|
-
i?.filter(Boolean).forEach((c,
|
|
436
|
+
this._associationFeatures.forEach((i, a) => {
|
|
437
|
+
const u = this._associationViewModels.get(a) || new w();
|
|
438
|
+
i?.filter(Boolean).forEach((c, r) => {
|
|
445
439
|
if (!u.some((l) => this._matchesGlobalFeature(l, c))) {
|
|
446
440
|
const { association: l, feature: y, terminalName: m, title: n } = c;
|
|
447
441
|
u.add({
|
|
448
442
|
title: n,
|
|
449
443
|
association: l,
|
|
450
|
-
featureViewModel: new
|
|
444
|
+
featureViewModel: new B({
|
|
451
445
|
abilities: { utilityNetworkAssociationsContent: !1 },
|
|
452
446
|
map: t,
|
|
453
447
|
view: e,
|
|
@@ -456,16 +450,16 @@ class R extends Q {
|
|
|
456
450
|
graphic: y
|
|
457
451
|
}),
|
|
458
452
|
terminalName: m
|
|
459
|
-
},
|
|
453
|
+
}, r);
|
|
460
454
|
}
|
|
461
|
-
}), this._associationViewModels.set(
|
|
455
|
+
}), this._associationViewModels.set(a, u);
|
|
462
456
|
});
|
|
463
457
|
}
|
|
464
458
|
_shouldDiscardNetworkElement(t, e, s) {
|
|
465
459
|
if (!t)
|
|
466
460
|
return !1;
|
|
467
|
-
const { networkSourceId: o } = t, i = s.get(e)?.associatedNetworkSourceId,
|
|
468
|
-
return i != null && i !== o || !
|
|
461
|
+
const { networkSourceId: o } = t, i = s.get(e)?.associatedNetworkSourceId, a = this._networkSourceIdsInUse.has(o);
|
|
462
|
+
return i != null && i !== o || !a;
|
|
469
463
|
}
|
|
470
464
|
_sortFeatureObjectsByTitle(t) {
|
|
471
465
|
t.sort(this._compareByFeatureTitle);
|
|
@@ -482,7 +476,7 @@ class R extends Q {
|
|
|
482
476
|
}
|
|
483
477
|
_renderAssociationTypeListItem(t) {
|
|
484
478
|
const e = this._getAssociationTypeTitle(t);
|
|
485
|
-
return C(`association-type-${t.type}`, p`<calcite-list-item .description=${
|
|
479
|
+
return C(`association-type-${t.type}`, p`<calcite-list-item .description=${v(t.description)} .label=${v(e)} .value=${t.type} @calciteListItemSelect=${() => this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`);
|
|
486
480
|
}
|
|
487
481
|
_renderContent() {
|
|
488
482
|
const { _state: t, associationTypes: e, messages: s } = this, o = s?.associationsList ?? s?.noTitle ?? "";
|
|
@@ -498,7 +492,7 @@ class R extends Q {
|
|
|
498
492
|
return this._state === "querying" ? p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>` : null;
|
|
499
493
|
}
|
|
500
494
|
}
|
|
501
|
-
|
|
495
|
+
N("arcgis-feature-utility-network-associations", Z);
|
|
502
496
|
export {
|
|
503
|
-
|
|
497
|
+
Z as ArcgisFeatureUtilityNetworkAssociations
|
|
504
498
|
};
|
|
@@ -10,7 +10,7 @@ import { LitElement as w, createEvent as _, nothing as f } from "@arcgis/lumina"
|
|
|
10
10
|
import { log as s, composeMissingPropertyMessage as a } from "@arcgis/toolkit/log";
|
|
11
11
|
import { css as G, html as u } from "lit";
|
|
12
12
|
import { u as L } from "../../chunks/useT9n.js";
|
|
13
|
-
import {
|
|
13
|
+
import { b as v, c as o } from "../../chunks/layer-utils.js";
|
|
14
14
|
const b = G`.loader-container{display:flex;justify-content:center;padding-bottom:var(--calcite-spacing-md)}`, h = 12;
|
|
15
15
|
class S extends w {
|
|
16
16
|
constructor() {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { repeat as
|
|
2
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
+
import { repeat as S } from "lit/directives/repeat.js";
|
|
4
4
|
import { ref as h } from "lit/directives/ref.js";
|
|
5
5
|
import { queryAllJSON as m } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
6
6
|
import l from "@arcgis/core/core/Collection.js";
|
|
7
|
-
import { watch as
|
|
8
|
-
import { substitute as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
7
|
+
import { watch as T } from "@arcgis/core/core/reactiveUtils.js";
|
|
8
|
+
import { substitute as L } from "@arcgis/core/intl.js";
|
|
9
|
+
import C from "@arcgis/core/layers/GraphicsLayer.js";
|
|
10
|
+
import N from "@arcgis/core/networks/support/UNTraceConfiguration.js";
|
|
11
|
+
import $ from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
12
12
|
import f from "@arcgis/core/rest/support/FeatureSet.js";
|
|
13
13
|
import y from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
|
|
14
|
-
import
|
|
15
|
-
import { LitElement as
|
|
16
|
-
import { usePropertyChange as
|
|
17
|
-
import { log as u, composeMissingPropertyMessage as
|
|
18
|
-
import { css as
|
|
19
|
-
import { u as
|
|
14
|
+
import v from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
15
|
+
import { LitElement as E, createEvent as d } from "@arcgis/lumina";
|
|
16
|
+
import { usePropertyChange as F } from "@arcgis/lumina/controllers";
|
|
17
|
+
import { log as u, composeMissingPropertyMessage as I, composeEmptyPropertyMessage as P } from "@arcgis/toolkit/log";
|
|
18
|
+
import { css as U, html as s } from "lit";
|
|
19
|
+
import { u as A } from "../../chunks/useT9n.js";
|
|
20
20
|
import { h as w } from "../../chunks/feature-utils.js";
|
|
21
|
-
import { a as
|
|
22
|
-
const
|
|
23
|
-
class
|
|
21
|
+
import { c as D, b, a as _, i as M } from "../../chunks/layer-utils.js";
|
|
22
|
+
const B = U`: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-select,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-block calcite-label:last-child{--calcite-label-margin-bottom: 0}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)}`, p = `utility-network-trace-inputs-sketch-${Date.now()}`, n = `utility-network-trace-inputs-flags-${Date.now()}`, x = 20;
|
|
23
|
+
class G extends E {
|
|
24
24
|
constructor() {
|
|
25
|
-
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages =
|
|
25
|
+
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = A({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new l(), this._barriers = new l(), this._stoppingPoints = new l(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
|
|
26
26
|
"subnetwork",
|
|
27
27
|
"subnetwork-controller",
|
|
28
28
|
"upstream",
|
|
@@ -36,7 +36,7 @@ class B extends v {
|
|
|
36
36
|
e && (this._traceLocationStoppingElement = e);
|
|
37
37
|
}, this._featuresComponentRefChange = (e) => {
|
|
38
38
|
e && (this._featuresComponentElement = e);
|
|
39
|
-
}, this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange =
|
|
39
|
+
}, this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange = F()("mode"), this.arcgisSelectedNamedTraceConfigurationChange = d(), this.arcgisTraceInputsChange = d(), this.arcgisTraceLocationSelectEnd = d(), this.arcgisTraceLocationSelectStart = d(), this.arcgisUtilityNetworkChange = d(), this.renderFeatureListItem = (e) => {
|
|
40
40
|
const { feature: t, label: i } = e;
|
|
41
41
|
return s`<calcite-list-item .label=${i} @calciteListItemSelect=${() => this._handleFeatureSelectChange(t)}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`;
|
|
42
42
|
};
|
|
@@ -45,7 +45,7 @@ class B extends v {
|
|
|
45
45
|
this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _state: 16, _activeTraceLocationType: 16, _selectedFeature: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, autoDestroyDisabled: 5, hideActionBar: 5, unTraceConfiguration: 32, referenceElement: 1, mode: 3, traceLocations: 32 };
|
|
46
46
|
}
|
|
47
47
|
static {
|
|
48
|
-
this.styles =
|
|
48
|
+
this.styles = B;
|
|
49
49
|
}
|
|
50
50
|
get isSubnetworkNameTraceSelected() {
|
|
51
51
|
const e = this.selectedNamedTraceConfiguration?.traceType;
|
|
@@ -78,7 +78,7 @@ class B extends v {
|
|
|
78
78
|
get traceLocations() {
|
|
79
79
|
const e = [], t = (i) => {
|
|
80
80
|
i.flagProperties.terminalConfiguration && i.flagProperties.selectedTerminals ? i.flagProperties.selectedTerminals.forEach((r) => {
|
|
81
|
-
e.push(new
|
|
81
|
+
e.push(new $({
|
|
82
82
|
type: i.traceLocation.type,
|
|
83
83
|
isFilterBarrier: i.traceLocation.isFilterBarrier,
|
|
84
84
|
globalId: i.traceLocation.globalId,
|
|
@@ -94,7 +94,7 @@ class B extends v {
|
|
|
94
94
|
}
|
|
95
95
|
load() {
|
|
96
96
|
this.manager.onLifecycle(() => [
|
|
97
|
-
|
|
97
|
+
T(() => this.view?.map, () => {
|
|
98
98
|
this._setupUtilityNetwork(), this._setupSketchViewModel();
|
|
99
99
|
}, { initial: !0 })
|
|
100
100
|
]);
|
|
@@ -112,12 +112,12 @@ class B extends v {
|
|
|
112
112
|
_createGraphicLayer(e) {
|
|
113
113
|
const { map: t } = this.view;
|
|
114
114
|
if (!t?.findLayerById(e)) {
|
|
115
|
-
const a = new
|
|
115
|
+
const a = new C({
|
|
116
116
|
id: e,
|
|
117
117
|
listMode: "hide",
|
|
118
118
|
title: e
|
|
119
119
|
});
|
|
120
|
-
|
|
120
|
+
D(this.view, a);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
_getGraphicLayer(e) {
|
|
@@ -138,7 +138,7 @@ class B extends v {
|
|
|
138
138
|
if (e && t && t.length > 0) {
|
|
139
139
|
const i = new l();
|
|
140
140
|
t.forEach((a) => {
|
|
141
|
-
a
|
|
141
|
+
_(a) ? a.sublayers.forEach((r) => {
|
|
142
142
|
i.add(new y({
|
|
143
143
|
layer: r,
|
|
144
144
|
enabled: !0
|
|
@@ -156,7 +156,7 @@ class B extends v {
|
|
|
156
156
|
}
|
|
157
157
|
_initializeSketchViewModel() {
|
|
158
158
|
const { view: e } = this, t = this._getGraphicLayer(p);
|
|
159
|
-
return new
|
|
159
|
+
return new v({
|
|
160
160
|
layer: t,
|
|
161
161
|
view: e
|
|
162
162
|
});
|
|
@@ -198,8 +198,8 @@ class B extends v {
|
|
|
198
198
|
}
|
|
199
199
|
_handleTraceConfigChange() {
|
|
200
200
|
const { selectedNamedTraceConfiguration: e } = this;
|
|
201
|
-
if (!(e?.traceConfiguration instanceof
|
|
202
|
-
u("error", this,
|
|
201
|
+
if (!(e?.traceConfiguration instanceof N)) {
|
|
202
|
+
u("error", this, I("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
205
|
switch (this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType) {
|
|
@@ -221,7 +221,7 @@ class B extends v {
|
|
|
221
221
|
_handleUtilityNetworksChange() {
|
|
222
222
|
const { utilityNetworks: e } = this;
|
|
223
223
|
if (!e || e.length === 0) {
|
|
224
|
-
this.selectedUtilityNetwork = void 0, this._state = "error", u("error", this,
|
|
224
|
+
this.selectedUtilityNetwork = void 0, this._state = "error", u("error", this, P("utilityNetworks"));
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
227
|
(!this.selectedUtilityNetwork || !e.includes(this.selectedUtilityNetwork)) && (this.selectedUtilityNetwork = e.at(0));
|
|
@@ -256,7 +256,7 @@ class B extends v {
|
|
|
256
256
|
i.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, i.objectIds = t.map((r) => r.getObjectId()), i.outFields = ["*"];
|
|
257
257
|
const { features: a } = f.fromJSON(await m(e, i));
|
|
258
258
|
return a.forEach((r) => {
|
|
259
|
-
r.layer = e
|
|
259
|
+
r.layer = _(e) ? e.findSublayerForFeature(r) : e, r.origin = r.layer;
|
|
260
260
|
const o = r.layer;
|
|
261
261
|
r.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (r.popupTemplate = o.createPopupTemplate());
|
|
262
262
|
}), a;
|
|
@@ -264,7 +264,7 @@ class B extends v {
|
|
|
264
264
|
async _populateFeaturesWithLabel(e) {
|
|
265
265
|
const t = /* @__PURE__ */ new Map();
|
|
266
266
|
e.forEach((a) => {
|
|
267
|
-
const r = a.layer
|
|
267
|
+
const r = M(a.layer) ? a.layer.parent : a.layer;
|
|
268
268
|
if (r) {
|
|
269
269
|
const o = r.layerId, c = this._getLayerByLayerId(o);
|
|
270
270
|
if (c) {
|
|
@@ -329,7 +329,7 @@ class B extends v {
|
|
|
329
329
|
const { _messages: e, traceConfigurations: t } = this, i = e.labels.traceConfiguration;
|
|
330
330
|
if (t.length === 0)
|
|
331
331
|
return this.renderError(e.errors.noTraceConfigurationError);
|
|
332
|
-
const a =
|
|
332
|
+
const a = S(t, (r) => r.globalId, (r) => s`<calcite-option .value=${r.globalId}>${r.title}</calcite-option>`);
|
|
333
333
|
return s`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedNamedTraceConfiguration?.globalId || void 0} @calciteSelectChange=${(r) => {
|
|
334
334
|
this._selectTraceConfigurationByGuid(r.target.value);
|
|
335
335
|
}}>${a}</calcite-select></calcite-block>`;
|
|
@@ -360,7 +360,7 @@ class B extends v {
|
|
|
360
360
|
return e ? s`<arcgis-features .referenceElement=${this.referenceElement} .features=${[e]} .view=${this.view} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .hideActionBar=${this.hideActionBar} open @arcgisClose=${() => this._handleFeaturesClose()} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._featuresComponentRefChange)}></arcgis-features>` : (this.mode = "default", null);
|
|
361
361
|
}
|
|
362
362
|
renderAddSpatialFooter() {
|
|
363
|
-
const { mode: e, _messages: t, selectedUtilityNetwork: i, _selectedFeature: a } = this, r =
|
|
363
|
+
const { mode: e, _messages: t, selectedUtilityNetwork: i, _selectedFeature: a } = this, r = L(t.warnings.exceededDisplayLimit, {
|
|
364
364
|
limit: this._displayLimit.toString()
|
|
365
365
|
}), o = e === "add-spatial-feature-list" && this._exceedDisplayLimit, c = a ? !(i?.isUtilityLayer(a.layer) ?? !0) : !0;
|
|
366
366
|
return s`${o && s`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${r}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => {
|
|
@@ -386,7 +386,7 @@ class B extends v {
|
|
|
386
386
|
}
|
|
387
387
|
renderSubnetworkSelection() {
|
|
388
388
|
const { compatibleSubnetworkNames: e } = this, t = this._messages.labels.subnetworkName;
|
|
389
|
-
return this.isSubnetworkNameTraceSelected ? this._state === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${e.length >
|
|
389
|
+
return this.isSubnetworkNameTraceSelected ? this._state === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${e.length > x ? this.renderSubnetworkNameInput() : this.renderSubnetworkSelectList()}</calcite-block>` : this.renderError(this._messages.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
|
|
390
390
|
}
|
|
391
391
|
renderSubnetworkInfo() {
|
|
392
392
|
const { _messages: e, selectedNamedTraceConfiguration: t, _unTraceConfiguration: i } = this;
|
|
@@ -404,7 +404,7 @@ class B extends v {
|
|
|
404
404
|
return s`<calcite-panel>${e === "add-spatial-feature" ? this.renderSelectedFeature() : s`<calcite-flow>${this.renderDefaultMode()}${this.renderSpatialSelectInstructions()}${this.renderHitTestResults()}</calcite-flow>`}${e !== "default" ? this.renderAddSpatialFooter() : null}</calcite-panel>`;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
|
|
407
|
+
k("arcgis-utility-network-trace-inputs", G);
|
|
408
408
|
export {
|
|
409
|
-
|
|
409
|
+
G as ArcgisUtilityNetworkTraceInputs
|
|
410
410
|
};
|
|
@@ -12,7 +12,7 @@ import b from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
|
|
|
12
12
|
import { LitElement as x, createEvent as w } from "@arcgis/lumina";
|
|
13
13
|
import { log as l } from "@arcgis/toolkit/log";
|
|
14
14
|
import { u as I } from "../../chunks/useT9n.js";
|
|
15
|
-
import {
|
|
15
|
+
import { i as C } from "../../chunks/layer-utils.js";
|
|
16
16
|
const F = L`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`;
|
|
17
17
|
class G extends x {
|
|
18
18
|
constructor() {
|