@arcgis/map-components 5.2.0-next.44 → 5.2.0-next.46
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/{UYCPX64L.js → 35EU7G2H.js} +1 -1
- package/dist/cdn/3BU2B6F7.js +2 -0
- package/dist/cdn/3HHUVV6D.js +2 -0
- package/dist/cdn/{OENFGUIN.js → 5KMBHKTM.js} +1 -1
- package/dist/cdn/CWFOZVE7.js +2 -0
- package/dist/cdn/J6ZHNOE2.js +2 -0
- package/dist/cdn/MUAJSX4F.js +2 -0
- package/dist/cdn/MUFXNQE3.js +2 -0
- package/dist/cdn/{JXHS44R7.js → NXOZVS4Z.js} +1 -1
- package/dist/cdn/{DAEEPAST.js → OW2CJGSF.js} +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-utils.js +3 -3
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +4 -2
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +11 -11
- package/dist/components/arcgis-unit-radio-button-group/customElement.js +10 -7
- package/dist/components/arcgis-unit-select/customElement.js +6 -3
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +0 -2
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +15 -18
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +58 -59
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +17 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +125 -126
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +34 -29
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +128 -127
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.d.ts +6 -4
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +31 -32
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +10 -9
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +22 -22
- 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 +3 -3
- package/dist/types/lumina.d.ts +4 -5
- package/dist/types/preact.d.ts +4 -5
- package/dist/types/react.d.ts +4 -5
- package/dist/types/stencil.d.ts +4 -5
- package/package.json +4 -4
- package/dist/cdn/3AKY7DQG.js +0 -2
- package/dist/cdn/BIZFPS3V.js +0 -2
- package/dist/cdn/CNV6ALQO.js +0 -2
- package/dist/cdn/DNSZMLAX.js +0 -2
- package/dist/cdn/HKEXPCDW.js +0 -2
- package/dist/cdn/JQ35LUF5.js +0 -2
|
@@ -3,21 +3,21 @@ import { c as p } from "../../chunks/runtime.js";
|
|
|
3
3
|
import y from "@arcgis/core/Color.js";
|
|
4
4
|
import "@arcgis/core/core/Error.js";
|
|
5
5
|
import "@arcgis/core/Graphic.js";
|
|
6
|
-
import { LitElement as f, createEvent as
|
|
7
|
-
import { log as
|
|
6
|
+
import { LitElement as f, createEvent as d } from "@arcgis/lumina";
|
|
7
|
+
import { log as o, composeMissingPropertyMessage as h, composeEmptyPropertyMessage as _ } from "@arcgis/toolkit/log";
|
|
8
8
|
import { css as v, html as i } from "lit";
|
|
9
9
|
import { createRef as b, ref as u } from "lit/directives/ref.js";
|
|
10
|
-
import { u as
|
|
10
|
+
import { u as w } from "../../chunks/useT9n.js";
|
|
11
11
|
import { l as $ } from "../../chunks/async-utils.js";
|
|
12
|
-
import { q as
|
|
13
|
-
const E = v`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{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;margin:0 var(--calcite-spacing-md) var(--calcite-spacing-md)
|
|
12
|
+
import { q as R, c as C } from "../../chunks/layer-utils.js";
|
|
13
|
+
const E = v`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features-next{height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;margin:0 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{margin:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, g = {
|
|
14
14
|
dirtyAreasDiscovered: -2147208511,
|
|
15
15
|
noValidControllers: -2147208935,
|
|
16
16
|
pathNotFound: -2147208444
|
|
17
17
|
};
|
|
18
|
-
class
|
|
18
|
+
class T extends f {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages =
|
|
20
|
+
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = w({ blocking: !0 }), this._elementsWithoutLayer = [], this._popoverElement = b(), this._layerIdToFeatures = /* @__PURE__ */ new Map(), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._subtypeCodeToFeatures = /* @__PURE__ */ new Map(), this._sourceIdToElements = /* @__PURE__ */ new Map(), this._utilityNetworkLayers = [], this._queryFeaturesOnLayer = async ([e, t]) => {
|
|
21
21
|
const a = this.utilityNetwork?.getLayerIdBySourceId(e), s = this._getLayerByLayerId(a), r = this._getElementsUniqueByGlobalId(t);
|
|
22
22
|
if (a == null || !s) {
|
|
23
23
|
this._elementsWithoutLayer.push(...r);
|
|
@@ -25,19 +25,19 @@ class F extends f {
|
|
|
25
25
|
}
|
|
26
26
|
const l = s.createQuery();
|
|
27
27
|
l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = r.map((c) => c.objectId), l.outFields = ["*"];
|
|
28
|
-
const { features: n } = await
|
|
28
|
+
const { features: n } = await R(s, l);
|
|
29
29
|
n.forEach((c) => {
|
|
30
30
|
const m = c.layer;
|
|
31
31
|
c.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (c.popupTemplate = m.createPopupTemplate());
|
|
32
|
-
}),
|
|
32
|
+
}), C(s) ? n.forEach((c) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, c.layer.subtypeCode, c)) : this._layerIdToFeatures.set(a, n);
|
|
33
33
|
}, this._aggregateGeometryRefChange = (e) => {
|
|
34
34
|
e && (this._aggregatedGeometryComponentElement = e);
|
|
35
35
|
}, this._featuresRefChange = (e) => {
|
|
36
36
|
e && (this._featuresComponentElement = e);
|
|
37
|
-
}, this._aggregatedGeometryDisabled = !1, this.aggregatedGeometryGraphicsColor = new y([255, 255, 0, 0.6]), this.hideActionBar = !1, this.hideFeatureResults = !1, this.
|
|
37
|
+
}, this._aggregatedGeometryDisabled = !1, this.aggregatedGeometryGraphicsColor = new y([255, 255, 0, 0.6]), this.hideActionBar = !1, this.hideFeatureResults = !1, this.isElementsSelected = !1, this.layers = [], this.state = "ready", this.traceResultFeatures = [], this.autoDestroyDisabled = !1, this.arcgisAggregatedGeometryGraphicsColorChange = d(), this.arcgisHideGraphicsChange = d(), this.arcgisSelectedResultTypeChange = d(), this.arcgisTraceResultFeaturesReady = d();
|
|
38
38
|
}
|
|
39
39
|
static {
|
|
40
|
-
this.properties = { _aggregatedGeometryDisabled: 16, _featuresComponentElement: 16, aggregatedGeometryGraphicsColor: 0, hideActionBar: 5, hideFeatureResults: 5,
|
|
40
|
+
this.properties = { _aggregatedGeometryDisabled: 16, _featuresComponentElement: 16, aggregatedGeometryGraphicsColor: 0, hideActionBar: 5, hideFeatureResults: 5, isElementsSelected: 5, layers: 0, messageOverrides: 0, numResults: 32, referenceElement: 1, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
|
|
41
41
|
}
|
|
42
42
|
static {
|
|
43
43
|
this.styles = E;
|
|
@@ -57,10 +57,10 @@ class F extends f {
|
|
|
57
57
|
}));
|
|
58
58
|
}
|
|
59
59
|
willUpdate(e) {
|
|
60
|
-
e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("
|
|
60
|
+
e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("traceResult") && (this.isElementsSelected = !1, this.traceResult || (this.traceResultFeatures = [], this._elementsWithoutLayer = []));
|
|
61
61
|
}
|
|
62
62
|
loaded() {
|
|
63
|
-
this.traceResult && (this.utilityNetwork ||
|
|
63
|
+
this.traceResult && (this.utilityNetwork || o("warn", this, h("utilityNetwork")), this.layers.length || o("warn", this, _("layers")), this.view || o("warn", this, h("view")));
|
|
64
64
|
}
|
|
65
65
|
disconnectedCallback() {
|
|
66
66
|
super.disconnectedCallback(), this._layerIdToLayer.clear();
|
|
@@ -72,7 +72,7 @@ class F extends f {
|
|
|
72
72
|
_getLayerByLayerId(e) {
|
|
73
73
|
if (e == null)
|
|
74
74
|
return;
|
|
75
|
-
const { _layerIdToLayer: t,
|
|
75
|
+
const { _layerIdToLayer: t, _utilityNetworkLayers: a } = this;
|
|
76
76
|
if (t.get(e))
|
|
77
77
|
return t.get(e);
|
|
78
78
|
const s = a.find((r) => "layerId" in r && r.layerId === e);
|
|
@@ -84,7 +84,7 @@ class F extends f {
|
|
|
84
84
|
_handleHideGraphicsChange(e) {
|
|
85
85
|
e.stopPropagation();
|
|
86
86
|
const t = e.detail;
|
|
87
|
-
this.arcgisHideGraphicsChange.emit(t), this._aggregatedGeometryDisabled = t, t && this.
|
|
87
|
+
this.arcgisHideGraphicsChange.emit(t), this._aggregatedGeometryDisabled = t, t && this._popoverElement.value?.open && (this._popoverElement.value.open = !1);
|
|
88
88
|
}
|
|
89
89
|
async _loadDependencies() {
|
|
90
90
|
const { layers: e, utilityNetwork: t } = this;
|
|
@@ -95,10 +95,10 @@ class F extends f {
|
|
|
95
95
|
} catch (r) {
|
|
96
96
|
$(r, this, "Error while loading the selected utility network");
|
|
97
97
|
}
|
|
98
|
-
this.
|
|
99
|
-
const s = this.
|
|
98
|
+
this._utilityNetworkLayers = e.filter((r) => t.isUtilityLayer(r));
|
|
99
|
+
const s = this._utilityNetworkLayers.filter((r) => !r.loaded).map((r) => r.load());
|
|
100
100
|
s.length > 0 && (this.state = "loading", (await Promise.allSettled(s)).forEach((l) => {
|
|
101
|
-
l.status === "rejected" &&
|
|
101
|
+
l.status === "rejected" && o("error", this, `Failed to load layer. Reason: ${l.reason}`);
|
|
102
102
|
}));
|
|
103
103
|
}
|
|
104
104
|
async _queryTraceResultsFeatures() {
|
|
@@ -110,7 +110,7 @@ class F extends f {
|
|
|
110
110
|
(await Promise.allSettled(t)).forEach((l, n) => {
|
|
111
111
|
if (l.status === "rejected") {
|
|
112
112
|
const [c] = e[n];
|
|
113
|
-
|
|
113
|
+
o("error", this, `Failed to query features for source ${c}. Reason: ${l.reason}`);
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
const s = Array.from(this._layerIdToFeatures.values()), r = Array.from(this._subtypeCodeToFeatures.values());
|
|
@@ -136,7 +136,7 @@ class F extends f {
|
|
|
136
136
|
return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${s != null ? this._renderAggregatedGeometry(s) : null}${s != null && !t.length ? this._renderNoSelectableResults() : null}${t.length > 0 ? this.hideFeatureResults ? this._renderFeaturesAreHidden() : this._renderElementsResults() : null}${a.length > 0 ? this._renderFunctionsResults(a) : null}</calcite-panel>`;
|
|
137
137
|
}
|
|
138
138
|
_renderAggregatedGeometry(e) {
|
|
139
|
-
return i`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} auto-destroy-disabled ${u(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()} .disabled=${this._aggregatedGeometryDisabled}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable ${u(this.
|
|
139
|
+
return i`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} auto-destroy-disabled ${u(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()} .disabled=${this._aggregatedGeometryDisabled}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable ${u(this._popoverElement)}><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
|
|
140
140
|
const a = t.target.value;
|
|
141
141
|
this.arcgisAggregatedGeometryGraphicsColorChange.emit(a);
|
|
142
142
|
}} .disabled=${this._aggregatedGeometryDisabled}></calcite-color-picker></calcite-popover></div>`;
|
|
@@ -184,7 +184,7 @@ class F extends f {
|
|
|
184
184
|
return i`<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>`;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
p("arcgis-utility-network-trace-results",
|
|
187
|
+
p("arcgis-utility-network-trace-results", T);
|
|
188
188
|
export {
|
|
189
|
-
|
|
189
|
+
T as ArcgisUtilityNetworkTraceResults
|
|
190
190
|
};
|