@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,23 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { queryAllJSON as
|
|
4
|
-
import
|
|
2
|
+
import { c as b } from "../../chunks/runtime.js";
|
|
3
|
+
import { queryAllJSON as v } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
4
|
+
import $ from "@arcgis/core/Color.js";
|
|
5
5
|
import "@arcgis/core/core/Error.js";
|
|
6
6
|
import "@arcgis/core/Graphic.js";
|
|
7
|
-
import
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { log as u, composeMissingPropertyMessage as m, composeEmptyPropertyMessage as
|
|
10
|
-
import { css as
|
|
11
|
-
import { u as C } from "../../chunks/useT9n.js";
|
|
12
|
-
import { h as y } from "../../chunks/feature-utils.js";
|
|
7
|
+
import F from "@arcgis/core/rest/support/FeatureSet.js";
|
|
8
|
+
import { LitElement as w, createEvent as n } from "@arcgis/lumina";
|
|
9
|
+
import { log as u, composeMissingPropertyMessage as m, composeEmptyPropertyMessage as L } from "@arcgis/toolkit/log";
|
|
10
|
+
import { css as C, html as r } from "lit";
|
|
13
11
|
import { createRef as T, ref as g } from "lit/directives/ref.js";
|
|
14
|
-
|
|
12
|
+
import { u as R } from "../../chunks/useT9n.js";
|
|
13
|
+
import { h as y } from "../../chunks/feature-utils.js";
|
|
14
|
+
import { a as p, i as E } from "../../chunks/layer-utils.js";
|
|
15
|
+
const G = C`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;padding:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{padding: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 .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{padding:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);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) 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)}`, _ = {
|
|
15
16
|
dirtyAreasDiscovered: -2147208511,
|
|
16
17
|
noValidControllers: -2147208935
|
|
17
18
|
};
|
|
18
|
-
class
|
|
19
|
+
class I extends w {
|
|
19
20
|
constructor() {
|
|
20
|
-
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages =
|
|
21
|
+
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = R({ blocking: !0 }), this._elementsWithoutLayer = [], this._popoverRef = T(), this._featuresFromSelectedLayer = [], this._layerIdToFeatures = /* @__PURE__ */ new Map(), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._subtypeCodeToFeatures = /* @__PURE__ */ new Map(), this._sourceIdToElements = /* @__PURE__ */ new Map(), this._unLayers = [], this._compareByFeatureTitle = (e, t) => e.label.localeCompare(t.label, void 0, { numeric: !0 }), this._compareByLayerTitle = ([, e], [, t]) => {
|
|
21
22
|
const a = e[0].feature.layer, s = t[0].feature.layer, c = a?.title ?? "", l = s?.title ?? "";
|
|
22
23
|
return c.localeCompare(l, void 0, { numeric: !0 });
|
|
23
24
|
}, this._queryFeaturesOnLayer = async ([e, t]) => {
|
|
@@ -28,21 +29,21 @@ class E extends F {
|
|
|
28
29
|
}
|
|
29
30
|
const l = s.createQuery();
|
|
30
31
|
l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = c.map((i) => i.objectId), l.outFields = ["*"];
|
|
31
|
-
const { features: h } =
|
|
32
|
-
i.layer = s
|
|
32
|
+
const { features: h } = F.fromJSON(await v(s, l)), o = await Promise.all(h.map(async (i) => {
|
|
33
|
+
i.layer = p(s) ? s.findSublayerForFeature(i) : s, i.origin = i.layer;
|
|
33
34
|
const d = i.layer;
|
|
34
35
|
if (i.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (i.popupTemplate = d.createPopupTemplate()), d && "getFeatureTitle" in d) {
|
|
35
|
-
const
|
|
36
|
-
return { feature: i, label:
|
|
36
|
+
const f = await d.getFeatureTitle(i) || y(i);
|
|
37
|
+
return { feature: i, label: f };
|
|
37
38
|
}
|
|
38
39
|
return { feature: i, label: y(i) };
|
|
39
40
|
}));
|
|
40
|
-
s
|
|
41
|
+
p(s) ? o.forEach((i) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, i.feature.layer.subtypeCode, i)) : this._layerIdToFeatures.set(a, o);
|
|
41
42
|
}, this._aggregateGeometryRefChange = (e) => {
|
|
42
43
|
e && (this._aggregatedGeometryComponentElement = e);
|
|
43
44
|
}, this._featuresRefChange = (e) => {
|
|
44
45
|
e && (this._featuresComponentElement = e);
|
|
45
|
-
}, this._aggregatedGeometryDisabled = !1, this.aggregatedGeometryGraphicsColor = new
|
|
46
|
+
}, this._aggregatedGeometryDisabled = !1, this.aggregatedGeometryGraphicsColor = new $([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 = n(), this.arcgisHideGraphicsChange = n(), this.arcgisSelectedLayerChange = n(), this.arcgisSelectedResultTypeChange = n(), this.arcgisTraceResultFeaturesReady = n(), this._renderLayerListItem = ([, e]) => {
|
|
46
47
|
if (!e.length)
|
|
47
48
|
return null;
|
|
48
49
|
const t = e[0].feature.layer, a = t?.title || this._messages.unknown;
|
|
@@ -56,7 +57,7 @@ class E extends F {
|
|
|
56
57
|
this.properties = { _aggregatedGeometryDisabled: 16, aggregatedGeometryGraphicsColor: 0, hideActionBar: 5, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, numResults: 32, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
|
|
57
58
|
}
|
|
58
59
|
static {
|
|
59
|
-
this.styles =
|
|
60
|
+
this.styles = G;
|
|
60
61
|
}
|
|
61
62
|
get featuresFromSelectedLayer() {
|
|
62
63
|
return this._featuresFromSelectedLayer.map(({ feature: e }) => e);
|
|
@@ -79,7 +80,7 @@ class E extends F {
|
|
|
79
80
|
e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("selectedLayer") && this.arcgisSelectedLayerChange.emit(), e.has("traceResult") && (this.isElementsSelected = !1, this.traceResult || (this.traceResultFeatures = [], this._elementsWithoutLayer = [])), (e.has("layers") || e.has("utilityNetwork")) && this._loadDependencies();
|
|
80
81
|
}
|
|
81
82
|
loaded() {
|
|
82
|
-
this.utilityNetwork || u("warn", this, m("utilityNetwork")), this.layers.length === 0 && u("warn", this,
|
|
83
|
+
this.utilityNetwork || u("warn", this, m("utilityNetwork")), this.layers.length === 0 && u("warn", this, L("layers")), this.view || u("warn", this, m("view"));
|
|
83
84
|
}
|
|
84
85
|
disconnectedCallback() {
|
|
85
86
|
super.disconnectedCallback(), this._layerIdToLayer.clear();
|
|
@@ -132,7 +133,7 @@ class E extends F {
|
|
|
132
133
|
let t;
|
|
133
134
|
if (!e)
|
|
134
135
|
t = [];
|
|
135
|
-
else if (e
|
|
136
|
+
else if (E(e)) {
|
|
136
137
|
const { subtypeCode: a } = e;
|
|
137
138
|
t = this._subtypeCodeToFeatures.get(a) ?? [];
|
|
138
139
|
} else {
|
|
@@ -204,10 +205,10 @@ class E extends F {
|
|
|
204
205
|
_renderErrorLanding(e) {
|
|
205
206
|
let t = e.message;
|
|
206
207
|
switch (e.details?.raw?.extendedCode) {
|
|
207
|
-
case
|
|
208
|
+
case _.dirtyAreasDiscovered:
|
|
208
209
|
t = this._messages.traceErrors.dirtyAreasDiscovered;
|
|
209
210
|
break;
|
|
210
|
-
case
|
|
211
|
+
case _.noValidControllers:
|
|
211
212
|
t = this._messages.traceErrors.noValidControllers;
|
|
212
213
|
break;
|
|
213
214
|
}
|
|
@@ -220,7 +221,7 @@ class E extends F {
|
|
|
220
221
|
return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div></calcite-panel>`;
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
|
-
|
|
224
|
+
b("arcgis-utility-network-trace-results", I);
|
|
224
225
|
export {
|
|
225
|
-
|
|
226
|
+
I as ArcgisUtilityNetworkTraceResults
|
|
226
227
|
};
|
|
@@ -3,7 +3,7 @@ import { c as y } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as B, html as i, nothing as U } from "lit";
|
|
4
4
|
import { createRef as w, ref as x } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement as A, createEvent as p } from "@arcgis/lumina";
|
|
6
|
-
const M = B`:host{display:none;background:#bdf2c4}:host([selected]){display:flex}calcite-block{margin-block:0}calcite-pagination{justify-content:center}`;
|
|
6
|
+
const M = B`:host{display:none;background:#bdf2c4}:host([selected]){display:flex}calcite-block{margin-block:0}calcite-fab{margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-md)}calcite-pagination{justify-content:center}`;
|
|
7
7
|
class T extends A {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments), this._filterInputElement = w(), this._flowItemElement = w(), this.currentPage = 1, this.selected = !1, this.showBackButton = !1, this.arcgisFlowItemBack = p(), this.arcgisFlowItemClose = p(), this.arcgisGetVersions = p(), this.arcgisManageVersion = p(), this.arcgisNewVersion = p();
|