@arcgis/map-components 5.0.0-next.162 → 5.0.0-next.164
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/{G4FP7GXM.js → 3UILDMTJ.js} +1 -1
- package/dist/cdn/3V6ZTS7B.js +2 -0
- package/dist/cdn/{ANP7PYGJ.js → 3XJU4K4Z.js} +1 -1
- package/dist/cdn/5KET4V4O.js +2 -0
- package/dist/cdn/7EW22PZD.js +2 -0
- package/dist/cdn/AAGYR4XM.js +2 -0
- package/dist/cdn/AZN2TGWK.js +2 -0
- package/dist/cdn/{NWXN5M4S.js → DPW55W6W.js} +1 -1
- package/dist/cdn/{SK6O74LF.js → DUHFQ4AI.js} +1 -1
- package/dist/cdn/{UNLAUFXF.js → F5I4VDXM.js} +1 -1
- package/dist/cdn/{R2FIOZIL.js → FUHAGBXL.js} +1 -1
- package/dist/cdn/{K6ZTEDKX.js → INYYRLED.js} +1 -1
- package/dist/cdn/{ESNK6MCY.js → IWXXD73F.js} +1 -1
- package/dist/cdn/{FD4A66OJ.js → KDJV5F4T.js} +1 -1
- package/dist/cdn/{SQFVC4KA.js → MJBV536L.js} +1 -1
- package/dist/cdn/MU6C77DZ.js +2 -0
- package/dist/cdn/NPEMOLA3.js +2 -0
- package/dist/cdn/{2AHY7O7C.js → POP5NTRI.js} +1 -1
- package/dist/cdn/SI3PITPE.js +2 -0
- package/dist/cdn/SU6ZGF4G.js +2 -0
- package/dist/cdn/W3AN7XLR.js +2 -0
- package/dist/cdn/{7NOD6U2Y.js → WUISNRWL.js} +1 -1
- package/dist/cdn/X25QBU47.js +2 -0
- package/dist/cdn/X7QWBVC2.js +2 -0
- package/dist/cdn/Z22BBNTK.js +2 -0
- package/dist/cdn/{YXYCWJFF.js → Z6LBCKKH.js} +1 -1
- package/dist/cdn/{AJ64UYFM.js → ZFATBY4D.js} +1 -1
- package/dist/cdn/assets/elevation-profile/t9n/messages.fr.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +3 -3
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +5 -7
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +3 -3
- package/dist/components/arcgis-bookmarks/customElement.d.ts +2 -2
- package/dist/components/arcgis-bookmarks/types.d.ts +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +4 -6
- package/dist/components/arcgis-clipboard/customElement.d.ts +2 -2
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +3 -3
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
- package/dist/components/arcgis-directions/customElement.d.ts +4 -5
- package/dist/components/arcgis-directions/customElement.js +5 -5
- package/dist/components/arcgis-editor/customElement.d.ts +2 -3
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature/customElement.js +6 -6
- package/dist/components/arcgis-feature-form/customElement.d.ts +1 -2
- package/dist/components/arcgis-feature-image/customElement.d.ts +5 -5
- package/dist/components/arcgis-feature-table/customElement.d.ts +72 -24
- package/dist/components/arcgis-feature-table/customElement.js +28 -13
- package/dist/components/arcgis-feature-templates/customElement.d.ts +7 -6
- package/dist/components/arcgis-feature-templates/customElement.js +2 -2
- package/dist/components/arcgis-feature-title/customElement.d.ts +3 -3
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +16 -16
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +55 -55
- package/dist/components/arcgis-features/customElement.d.ts +6 -8
- package/dist/components/arcgis-features/customElement.js +16 -16
- package/dist/components/arcgis-floor-filter/customElement.d.ts +2 -2
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-home/customElement.d.ts +2 -2
- package/dist/components/arcgis-layer-list/customElement.d.ts +9 -11
- package/dist/components/arcgis-legend/customElement.d.ts +3 -3
- package/dist/components/arcgis-legend-classic-element/customElement.js +22 -24
- package/dist/components/arcgis-link-chart/customElement.d.ts +16 -18
- package/dist/components/arcgis-link-chart/customElement.js +10 -15
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +17 -19
- package/dist/components/arcgis-map/customElement.js +1 -6
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +7 -9
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +1 -1
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +3 -3
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +9 -9
- package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +3 -3
- package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +2 -2
- package/dist/components/arcgis-paste/customElement.d.ts +4 -4
- package/dist/components/arcgis-paste/customElement.js +44 -44
- package/dist/components/arcgis-popup/customElement.d.ts +8 -10
- package/dist/components/arcgis-popup/customElement.js +47 -52
- package/dist/components/arcgis-popup/types.d.ts +1 -1
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +2 -2
- package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +16 -7
- package/dist/components/arcgis-print/customElement.js +7 -7
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +12 -12
- package/dist/components/arcgis-print-layout-panel/customElement.js +6 -6
- package/dist/components/arcgis-print-main-panel/customElement.js +7 -7
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +22 -24
- package/dist/components/arcgis-scene/customElement.js +8 -13
- package/dist/components/arcgis-search/customElement.d.ts +7 -9
- package/dist/components/arcgis-search/customElement.js +8 -9
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +3 -3
- package/dist/components/arcgis-sketch/customElement.d.ts +3 -4
- package/dist/components/arcgis-slice/types.d.ts +2 -2
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +5 -5
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +5 -5
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +5 -5
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +4 -4
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +4 -4
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +2 -2
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +4 -4
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +5 -5
- package/dist/components/arcgis-table-list/customElement.d.ts +7 -8
- package/dist/components/arcgis-time-slider/customElement.d.ts +3 -3
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +14 -2
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +2 -3
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +6 -9
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +47 -40
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +16 -4
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +84 -67
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +7 -3
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +17 -14
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +14 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +63 -50
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +2 -3
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -4
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +3 -3
- package/dist/components/types.d.ts +3 -3
- 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 +12 -12
- package/dist/types/lumina.d.ts +6 -6
- package/dist/types/preact.d.ts +6 -6
- package/dist/types/react.d.ts +6 -6
- package/dist/types/stencil.d.ts +6 -6
- package/package.json +4 -4
- package/dist/cdn/2LQLX6UN.js +0 -2
- package/dist/cdn/BHPXKX47.js +0 -2
- package/dist/cdn/D4LTASH2.js +0 -2
- package/dist/cdn/I5M2Z7WS.js +0 -2
- package/dist/cdn/IWY2NPAG.js +0 -2
- package/dist/cdn/O4RXVEMK.js +0 -2
- package/dist/cdn/P7PWOUNZ.js +0 -2
- package/dist/cdn/Q4B4MXH4.js +0 -2
- package/dist/cdn/QZPDQ6B7.js +0 -2
- package/dist/cdn/RN57AN5P.js +0 -2
- package/dist/cdn/W53OMY3O.js +0 -2
- package/dist/cdn/WREEAAEV.js +0 -2
- package/dist/cdn/WTTBFFC2.js +0 -2
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
2
|
+
import { c as _ } from "../../chunks/runtime.js";
|
|
3
|
+
import { ref as h } from "lit/directives/ref.js";
|
|
4
|
+
import { queryAllJSON as b } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
4
5
|
import v from "@arcgis/core/Color.js";
|
|
5
6
|
import "@arcgis/core/core/Error.js";
|
|
6
|
-
import * as
|
|
7
|
+
import * as g from "@arcgis/core/geometry/operators/shapePreservingProjectOperator.js";
|
|
7
8
|
import "@arcgis/core/Graphic.js";
|
|
8
|
-
import
|
|
9
|
+
import $ from "@arcgis/core/rest/support/FeatureSet.js";
|
|
9
10
|
import { LitElement as F, createEvent as o } from "@arcgis/lumina";
|
|
10
|
-
import { log as
|
|
11
|
-
import { css as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
const T = w`: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)}`, y = {
|
|
11
|
+
import { log as u, composeMissingPropertyMessage as m, composeEmptyPropertyMessage as w } from "@arcgis/toolkit/log";
|
|
12
|
+
import { css as L, html as i } from "lit";
|
|
13
|
+
import { u as C } from "../../chunks/useT9n.js";
|
|
14
|
+
import { h as y } from "../../chunks/feature-utils.js";
|
|
15
|
+
const T = L`: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)}`, p = {
|
|
16
16
|
dirtyAreasDiscovered: -2147208511,
|
|
17
17
|
noValidControllers: -2147208935
|
|
18
18
|
};
|
|
19
|
-
class
|
|
19
|
+
class R extends F {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(...arguments), this._messages =
|
|
21
|
+
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = C({ blocking: !0 }), this._elementsWithoutLayer = [], 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]) => {
|
|
22
22
|
const a = e[0].feature.layer, s = t[0].feature.layer, l = a?.title ?? "", c = s?.title ?? "";
|
|
23
23
|
return l.localeCompare(c, void 0, { numeric: !0 });
|
|
24
24
|
}, this._queryFeaturesOnLayer = async ([e, t]) => {
|
|
@@ -28,29 +28,33 @@ class S extends F {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
const l = s.createQuery();
|
|
31
|
-
l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = t.map((
|
|
32
|
-
const { features: c } =
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
if (
|
|
36
|
-
const
|
|
37
|
-
return { feature:
|
|
31
|
+
l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = t.map((r) => r.objectId), l.outFields = ["*"];
|
|
32
|
+
const { features: c } = $.fromJSON(await b(s, l)), n = await Promise.all(c.map(async (r) => {
|
|
33
|
+
r.layer = s.type === "subtype-group" ? s.findSublayerForFeature(r) : s, r.origin = r.layer;
|
|
34
|
+
const d = r.layer;
|
|
35
|
+
if (r.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (r.popupTemplate = d.createPopupTemplate()), d && "getFeatureTitle" in d) {
|
|
36
|
+
const f = await d.getFeatureTitle(r) || y(r);
|
|
37
|
+
return { feature: r, label: f };
|
|
38
38
|
}
|
|
39
|
-
return { feature:
|
|
39
|
+
return { feature: r, label: y(r) };
|
|
40
40
|
}));
|
|
41
|
-
s.type === "subtype-group" ? n.forEach((
|
|
42
|
-
}, this.
|
|
41
|
+
s.type === "subtype-group" ? n.forEach((r) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, r.feature.layer.subtypeCode, r)) : this._layerIdToFeatures.set(a, n);
|
|
42
|
+
}, this._aggregateGeometryRefChange = (e) => {
|
|
43
|
+
e && (this._aggregatedGeometryComponentElement = e);
|
|
44
|
+
}, this._featuresRefChange = (e) => {
|
|
45
|
+
e && (this._featuresComponentElement = e);
|
|
46
|
+
}, this.aggregatedGeometryGraphicsColor = new v([255, 255, 0, 0.6]), this.hideFeatureResults = !1, this.isElementsSelected = !1, this.layers = [], this.state = "ready", this.traceResultFeatures = [], this.autoDestroyDisabled = !1, this.arcgisAggregatedGeometryGraphicsColorChange = o(), this.arcgisHideGraphicsChange = o(), this.arcgisSelectedLayerChange = o(), this.arcgisSelectedResultTypeChange = o(), this.arcgisTraceResultFeaturesReady = o(), this._renderLayerListItem = ([, e]) => {
|
|
43
47
|
if (!e.length)
|
|
44
48
|
return null;
|
|
45
49
|
const t = e[0].feature.layer, a = t?.title || this._messages.unknown;
|
|
46
|
-
return
|
|
50
|
+
return i`<calcite-list-item .label=${a} @calciteListItemSelect=${() => this._setSelectedLayerAndFeatures(t)}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${e.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`;
|
|
47
51
|
}, this._renderFeatureListItem = (e) => {
|
|
48
52
|
const { feature: t, label: a } = e;
|
|
49
|
-
return
|
|
53
|
+
return i`<calcite-list-item .label=${a} @calciteListItemSelect=${() => this.selectedFeature = t}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`;
|
|
50
54
|
};
|
|
51
55
|
}
|
|
52
56
|
static {
|
|
53
|
-
this.properties = { aggregatedGeometryGraphicsColor: 0, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0 };
|
|
57
|
+
this.properties = { aggregatedGeometryGraphicsColor: 0, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
|
|
54
58
|
}
|
|
55
59
|
static {
|
|
56
60
|
this.styles = T;
|
|
@@ -58,6 +62,12 @@ class S extends F {
|
|
|
58
62
|
get featuresFromSelectedLayer() {
|
|
59
63
|
return this._featuresFromSelectedLayer.map(({ feature: e }) => e);
|
|
60
64
|
}
|
|
65
|
+
clearAggregatedGeometryGraphics() {
|
|
66
|
+
this._aggregatedGeometryComponentElement?.destroy();
|
|
67
|
+
}
|
|
68
|
+
async destroy() {
|
|
69
|
+
this._layerIdToFeatures.clear(), this._subtypeCodeToFeatures.clear(), this._sourceIdToElements.clear(), this._aggregatedGeometryComponentElement?.destroy(), this._featuresComponentElement?.destroy(), await this.manager.destroy();
|
|
70
|
+
}
|
|
61
71
|
load() {
|
|
62
72
|
this.traceResult && (this._setSourceIdToElements(), this._loadDependencies().then(() => this._queryTraceResultsFeatures()).then(() => this._loadProjectOperator()).finally(() => {
|
|
63
73
|
this.arcgisTraceResultFeaturesReady.emit(), this.state = "ready";
|
|
@@ -67,7 +77,10 @@ class S extends F {
|
|
|
67
77
|
e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("selectedLayer") && this.arcgisSelectedLayerChange.emit(), e.has("traceResult") && (this.isElementsSelected = !1), (e.has("layers") || e.has("utilityNetwork")) && this._loadDependencies();
|
|
68
78
|
}
|
|
69
79
|
loaded() {
|
|
70
|
-
this.utilityNetwork ||
|
|
80
|
+
this.utilityNetwork || u("warn", this, m("utilityNetwork")), this.layers.length === 0 && u("warn", this, w("layers")), this.view || u("warn", this, m("view"));
|
|
81
|
+
}
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
super.disconnectedCallback(), this._layerIdToLayer.clear();
|
|
71
84
|
}
|
|
72
85
|
_addOrCreateMapValue(e, t, a) {
|
|
73
86
|
const s = e.get(t);
|
|
@@ -95,7 +108,7 @@ class S extends F {
|
|
|
95
108
|
}
|
|
96
109
|
async _loadProjectOperator() {
|
|
97
110
|
const { aggregatedGeometry: e } = this.traceResult;
|
|
98
|
-
e && !
|
|
111
|
+
e && !g.isLoaded() && await g.load();
|
|
99
112
|
}
|
|
100
113
|
async _queryTraceResultsFeatures() {
|
|
101
114
|
const e = Array.from(this._sourceIdToElements.entries());
|
|
@@ -105,8 +118,8 @@ class S extends F {
|
|
|
105
118
|
const t = e.map(this._queryFeaturesOnLayer);
|
|
106
119
|
(await Promise.allSettled(t)).forEach((c, n) => {
|
|
107
120
|
if (c.status === "rejected") {
|
|
108
|
-
const [
|
|
109
|
-
|
|
121
|
+
const [r] = e[n];
|
|
122
|
+
u("error", this, `Failed to query features for source ${r}. Reason: ${c.reason}`);
|
|
110
123
|
}
|
|
111
124
|
});
|
|
112
125
|
const s = Array.from(this._layerIdToFeatures.values()), l = Array.from(this._subtypeCodeToFeatures.values());
|
|
@@ -140,70 +153,70 @@ class S extends F {
|
|
|
140
153
|
if (this.state === "loading")
|
|
141
154
|
return this._renderGettingResults();
|
|
142
155
|
if (this.selectedFeature) {
|
|
143
|
-
const n = this.
|
|
144
|
-
return
|
|
156
|
+
const n = this._featuresComponentElement, r = n?.selectedFeature ? [n.selectedFeature] : [this.selectedFeature];
|
|
157
|
+
return i`<arcgis-features .referenceElement=${this.referenceElement} .features=${r} .view=${this.view} open .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} @arcgisClose=${() => this.selectedFeature = void 0} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._featuresRefChange)}></arcgis-features>`;
|
|
145
158
|
}
|
|
146
159
|
const c = a.length > 0 && !s.length && !l;
|
|
147
|
-
return this.hideFeatureResults && c ? this._renderFeaturesAreHidden() :
|
|
160
|
+
return this.hideFeatureResults && c ? this._renderFeaturesAreHidden() : i`<calcite-flow>${c ? null : i`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(t)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}", this.traceResultFeatures.length.toString())} .selected=${(c || this.isElementsSelected) && !this.selectedLayer} @calciteFlowItemBack=${() => this.isElementsSelected = !1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title ?? void 0} .description=${this._messages.headings.totalFeatures.replace("{number}", this._featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${() => this.selectedLayer = void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`;
|
|
148
161
|
}
|
|
149
162
|
_renderGettingResults() {
|
|
150
|
-
return
|
|
163
|
+
return i`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`;
|
|
151
164
|
}
|
|
152
165
|
_renderLanding(e) {
|
|
153
166
|
const { elements: t, globalFunctionResults: a, aggregatedGeometry: s } = e;
|
|
154
|
-
return
|
|
167
|
+
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>`;
|
|
155
168
|
}
|
|
156
169
|
_renderAggregatedGeometry(e) {
|
|
157
|
-
return
|
|
170
|
+
return i`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
|
|
158
171
|
const a = t.target.value;
|
|
159
172
|
this.arcgisAggregatedGeometryGraphicsColorChange.emit(a);
|
|
160
173
|
}}></calcite-color-picker></calcite-popover></div>`;
|
|
161
174
|
}
|
|
162
175
|
_renderFeaturesAreHidden() {
|
|
163
|
-
return
|
|
176
|
+
return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div></calcite-panel>`;
|
|
164
177
|
}
|
|
165
178
|
_renderNoSelectableResults() {
|
|
166
|
-
return
|
|
179
|
+
return i`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`;
|
|
167
180
|
}
|
|
168
181
|
_renderElementsResults() {
|
|
169
|
-
return
|
|
182
|
+
return i`<calcite-list .label=${this._messages.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${() => this.isElementsSelected = !0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${this.traceResultFeatures.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
170
183
|
}
|
|
171
184
|
_renderFunctionsResults(e) {
|
|
172
|
-
return
|
|
185
|
+
return i`<div class="functions-heading">${this._messages.headings.functions}</div><calcite-table .caption=${this._messages.labels.functionResults}>${e.filter((t) => t.networkAttributeName != null && t.result != null).map((t) => i`<calcite-table-row><calcite-table-cell>${t.networkAttributeName}</calcite-table-cell><calcite-table-cell>${t.result}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
|
|
173
186
|
}
|
|
174
187
|
_renderLayerList() {
|
|
175
188
|
const e = Array.from(this._layerIdToFeatures.entries()), t = Array.from(this._subtypeCodeToFeatures.entries()), s = e.concat(t).sort(this._compareByLayerTitle).map(this._renderLayerListItem);
|
|
176
|
-
return this._elementsWithoutLayer.length > 0 && s.push(this._renderUnknownListItem()),
|
|
189
|
+
return this._elementsWithoutLayer.length > 0 && s.push(this._renderUnknownListItem()), i`<calcite-list .label=${this._messages.labels.traceResultElementsByLayer} .loading=${this.state === "loading"}>${s}</calcite-list>`;
|
|
177
190
|
}
|
|
178
191
|
_renderUnknownListItem() {
|
|
179
|
-
return
|
|
192
|
+
return i`<calcite-list-item .label=${this._messages.unknown}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`;
|
|
180
193
|
}
|
|
181
194
|
_renderFeaturesList() {
|
|
182
|
-
return
|
|
195
|
+
return i`<calcite-list .label=${this._messages.headings.traceResultsGeneric}>${this._featuresFromSelectedLayer.map(this._renderFeatureListItem)}</calcite-list>`;
|
|
183
196
|
}
|
|
184
197
|
_renderTraceResultsHeading() {
|
|
185
|
-
return
|
|
198
|
+
return i`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle ? i`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>` : null}</div>`;
|
|
186
199
|
}
|
|
187
200
|
_renderErrorLanding(e) {
|
|
188
201
|
let t = e.message;
|
|
189
202
|
switch (e.details?.raw?.extendedCode) {
|
|
190
|
-
case
|
|
203
|
+
case p.dirtyAreasDiscovered:
|
|
191
204
|
t = this._messages.traceErrors.dirtyAreasDiscovered;
|
|
192
205
|
break;
|
|
193
|
-
case
|
|
206
|
+
case p.noValidControllers:
|
|
194
207
|
t = this._messages.traceErrors.noValidControllers;
|
|
195
208
|
break;
|
|
196
209
|
}
|
|
197
|
-
return
|
|
210
|
+
return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.traceFailedHeading}</div><div class="no-results-description">${this._messages.traceFailedDescription}</div><div class="no-results-description">${t}</div></div></calcite-panel>`;
|
|
198
211
|
}
|
|
199
212
|
_renderNoResultsLanding() {
|
|
200
|
-
return
|
|
213
|
+
return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.noResultsHeading}</div><div class="no-results-description">${this._messages.noResultsDescription}</div></div></calcite-panel>`;
|
|
201
214
|
}
|
|
202
215
|
_renderNoTraceLanding() {
|
|
203
|
-
return
|
|
216
|
+
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>`;
|
|
204
217
|
}
|
|
205
218
|
}
|
|
206
|
-
|
|
219
|
+
_("arcgis-utility-network-trace-results", R);
|
|
207
220
|
export {
|
|
208
|
-
|
|
221
|
+
R as ArcgisUtilityNetworkTraceResults
|
|
209
222
|
};
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
import type { ValuePickerEvents, ValuePickerComponent } from "@arcgis/core/widgets/ValuePicker.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
4
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
5
|
-
import type { AnimateEvent } from "@arcgis/core/widgets/ValuePicker/types";
|
|
5
|
+
import type { AnimateEvent, Layout } from "@arcgis/core/widgets/ValuePicker/types.js";
|
|
6
6
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
7
|
-
import type { Layout } from "@arcgis/core/widgets/ValuePicker/types.js";
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* > [!WARNING]
|
|
11
10
|
* >
|
|
12
11
|
* > This is a **legacy component**. It relies on an underlying widget as part of our migration to native web components.
|
|
13
12
|
* >
|
|
14
|
-
* > A fully native replacement for this component is in development. Once it reaches feature parity, the legacy component will be deprecated and no longer maintained. At that point,
|
|
13
|
+
* > A fully native replacement for this component is in development. Once it reaches feature parity, the legacy component will be deprecated and no longer maintained. At that point, development should use the native component.
|
|
15
14
|
*
|
|
16
15
|
* Value Picker is a component that allows users to step or play through a list of values. Value Picker component can be configured
|
|
17
16
|
* with an optional [collection](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-value-picker-legacy/#from-collection),
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type VersioningState from "@arcgis/core/versionManagement/VersioningState";
|
|
2
|
+
import type VersioningState from "@arcgis/core/versionManagement/VersioningState.js";
|
|
3
3
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
4
|
-
import type VersioningState2 from "@arcgis/core/versionManagement/VersioningState.js";
|
|
5
4
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
6
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
7
6
|
import type { ArcgisReferenceElement } from "../types.js";
|
|
8
|
-
import type { VersionIdentifier } from "@arcgis/core/versionManagement/support/jsonTypes";
|
|
7
|
+
import type { VersionIdentifier } from "@arcgis/core/versionManagement/support/jsonTypes.js";
|
|
9
8
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
10
9
|
import type { VersionManagerState } from "@arcgis/core/versionManagement/VersionManager.js";
|
|
11
10
|
|
|
@@ -214,7 +213,7 @@ export abstract class ArcgisVersionManagement extends LitElement {
|
|
|
214
213
|
*
|
|
215
214
|
* @since 5.0
|
|
216
215
|
*/
|
|
217
|
-
accessor versioningStates: Collection<
|
|
216
|
+
accessor versioningStates: Collection<VersioningState>;
|
|
218
217
|
/**
|
|
219
218
|
* This property defines the target [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/).
|
|
220
219
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type VolumeMeasurementAnalysis from "@arcgis/core/analysis/VolumeMeasurementAnalysis.js";
|
|
2
3
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
3
|
-
import type
|
|
4
|
-
import type { VolumeMeasureType } from "@arcgis/core/analysis/VolumeMeasurement/types";
|
|
4
|
+
import type { VolumeMeasureType } from "@arcgis/core/analysis/VolumeMeasurement/types.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
|
|
7
7
|
import type { VolumeMeasurementState } from "./types.js";
|
|
@@ -143,7 +143,7 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
|
|
|
143
143
|
*
|
|
144
144
|
* @since 5.0
|
|
145
145
|
*/
|
|
146
|
-
accessor analysis:
|
|
146
|
+
accessor analysis: VolumeMeasurementAnalysis;
|
|
147
147
|
/**
|
|
148
148
|
* Unit system (imperial, metric) or specific unit used for displaying the area. Possible values are listed in
|
|
149
149
|
* [areaDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#areaDisplayUnitOptions).
|
|
@@ -3,9 +3,9 @@ import type Ground from "@arcgis/core/Ground.js";
|
|
|
3
3
|
import type Layer from "@arcgis/core/layers/Layer.js";
|
|
4
4
|
import type WebMap from "@arcgis/core/WebMap.js";
|
|
5
5
|
import type WebScene from "@arcgis/core/WebScene.js";
|
|
6
|
-
import type WebLinkChart from "@arcgis/core/WebLinkChart";
|
|
7
|
-
import type SceneView from "@arcgis/core/views/SceneView";
|
|
8
|
-
import type MapView from "@arcgis/core/views/MapView";
|
|
6
|
+
import type WebLinkChart from "@arcgis/core/WebLinkChart.js";
|
|
7
|
+
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
8
|
+
import type MapView from "@arcgis/core/views/MapView.js";
|
|
9
9
|
import type { ArcgisLinkChart } from "./arcgis-link-chart/customElement.js";
|
|
10
10
|
import type { ArcgisMap } from "./arcgis-map/customElement.js";
|
|
11
11
|
import type { ArcgisScene } from "./arcgis-scene/customElement.js";
|