@arcgis/map-components 5.1.0-next.90 → 5.1.0-next.91
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/2XVIUHZR.js +2 -0
- package/dist/cdn/3KMSE2II.js +2 -0
- package/dist/cdn/3TNGLWSM.js +2 -0
- package/dist/cdn/47GZDSBT.js +2 -0
- package/dist/cdn/{NIRIMR5R.js → 4HIVPFCR.js} +1 -1
- package/dist/cdn/4TLYAVND.js +2 -0
- package/dist/cdn/{IWGEVWTS.js → 57WQVTC2.js} +1 -1
- package/dist/cdn/636SD5YI.js +2 -0
- package/dist/cdn/63PP72KA.js +2 -0
- package/dist/cdn/77GYZHXQ.js +2 -0
- package/dist/cdn/{MMBRI6HV.js → B647LFEA.js} +1 -1
- package/dist/cdn/DMYT2NGU.js +2 -0
- package/dist/cdn/EMYF3NHI.js +2 -0
- package/dist/cdn/EQEMVJRY.js +2 -0
- package/dist/cdn/FHPU53JE.js +2 -0
- package/dist/cdn/G5JRWW4N.js +2 -0
- package/dist/cdn/GSIO2ZPC.js +2 -0
- package/dist/cdn/H54OQ5CH.js +2 -0
- package/dist/cdn/{NSZXPPXS.js → J6K64FAM.js} +1 -1
- package/dist/cdn/K26WS5WS.js +2 -0
- package/dist/cdn/K2DPIVNY.js +2 -0
- package/dist/cdn/LNKHXXYR.js +2 -0
- package/dist/cdn/LS5SUX5K.js +2 -0
- package/dist/cdn/{YOLLEFX2.js → QG5A5CAV.js} +1 -1
- package/dist/cdn/{TME6NCLA.js → QTDWVVZ3.js} +1 -1
- package/dist/cdn/{2LNLB4XY.js → RBZSSI26.js} +1 -1
- package/dist/cdn/RQ5AH3UV.js +2 -0
- package/dist/cdn/SOMOHX4W.js +2 -0
- package/dist/cdn/SVK455WD.js +2 -0
- package/dist/cdn/T5CHGHFY.js +2 -0
- package/dist/cdn/TBGGJL5S.js +2 -0
- package/dist/cdn/UEAC3ZX7.js +2 -0
- package/dist/cdn/{UFBJWJZO.js → UYUEVVYI.js} +1 -1
- package/dist/cdn/VWOPI2DX.js +2 -0
- package/dist/cdn/WMQ4C7GL.js +2 -0
- package/dist/cdn/XEZGNV3L.js +2 -0
- package/dist/cdn/XNZFVKZY.js +2 -0
- package/dist/cdn/XUKTPPFV.js +2 -0
- package/dist/cdn/ZYPAW3ZI.js +2 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/GeolocationPositioning.js +397 -0
- package/dist/chunks/action-utils.js +6 -9
- package/dist/chunks/resources.js +18 -5
- package/dist/chunks/slots.js +11 -9
- package/dist/components/arcgis-compass/customElement.js +5 -5
- package/dist/components/arcgis-feature-table/customElement.d.ts +68 -11
- package/dist/components/arcgis-feature-table/customElement.js +6 -6
- package/dist/components/arcgis-fullscreen/customElement.js +9 -9
- package/dist/components/arcgis-home/customElement.js +10 -10
- package/dist/components/arcgis-locate/customElement.js +97 -484
- package/dist/components/arcgis-navigation-toggle/customElement.js +7 -7
- package/dist/components/arcgis-presentation/customElement.js +63 -57
- package/dist/components/arcgis-track/customElement.d.ts +18 -11
- package/dist/components/arcgis-track/customElement.js +139 -19
- package/dist/components/arcgis-track/types.d.ts +15 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +25 -24
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +29 -33
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- 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 +2 -2
- package/dist/support/resources.d.ts +2 -0
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +4 -4
- package/dist/cdn/2OMOYS3B.js +0 -2
- package/dist/cdn/3Y5E26OU.js +0 -2
- package/dist/cdn/3YHIONOM.js +0 -2
- package/dist/cdn/3YVU66DR.js +0 -2
- package/dist/cdn/5BKXAZGJ.js +0 -2
- package/dist/cdn/6BESCJK6.js +0 -2
- package/dist/cdn/AOKQLNNK.js +0 -2
- package/dist/cdn/BBIOP3C4.js +0 -2
- package/dist/cdn/BLH76V4B.js +0 -2
- package/dist/cdn/BQPSXTIF.js +0 -2
- package/dist/cdn/CUYGLJRU.js +0 -2
- package/dist/cdn/FIOFLICP.js +0 -2
- package/dist/cdn/GKVKQU57.js +0 -2
- package/dist/cdn/GPMDFKYC.js +0 -2
- package/dist/cdn/IFMQCWXY.js +0 -2
- package/dist/cdn/IRXWDEBR.js +0 -2
- package/dist/cdn/JHRFJTE4.js +0 -2
- package/dist/cdn/JWYAOQXS.js +0 -2
- package/dist/cdn/KIFOQG3B.js +0 -2
- package/dist/cdn/MTIB3TBG.js +0 -2
- package/dist/cdn/NFRJBN5U.js +0 -2
- package/dist/cdn/NUNGBEW4.js +0 -2
- package/dist/cdn/NVRFQSZB.js +0 -2
- package/dist/cdn/PNS6E574.js +0 -2
- package/dist/cdn/PSIEACM5.js +0 -2
- package/dist/cdn/QLTX4J5N.js +0 -2
- package/dist/cdn/SPGWCKQB.js +0 -2
- package/dist/cdn/THXCDBHG.js +0 -2
- package/dist/cdn/XF7T7NTL.js +0 -2
- package/dist/cdn/ZDGTAZF7.js +0 -2
|
@@ -7,21 +7,21 @@ import u from "@arcgis/core/Color.js";
|
|
|
7
7
|
import "@arcgis/core/core/Error.js";
|
|
8
8
|
import { when as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
9
|
import w from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
10
|
-
import { LitElement as T, createEvent as
|
|
10
|
+
import { LitElement as T, createEvent as l } from "@arcgis/lumina";
|
|
11
11
|
import { log as b } from "@arcgis/toolkit/log";
|
|
12
|
-
import { u as
|
|
13
|
-
import { m as
|
|
12
|
+
import { u as _ } from "../../chunks/useT9n.js";
|
|
13
|
+
import { m as v } from "../../chunks/useViewModel.js";
|
|
14
14
|
import { l as R } from "../../chunks/async-utils.js";
|
|
15
|
-
const $ = y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1);calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}`, C =
|
|
15
|
+
const $ = y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1);calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}`, C = v(w);
|
|
16
16
|
class k extends T {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(...arguments), this._messages =
|
|
18
|
+
super(...arguments), this._messages = _({ blocking: !0 }), this._viewModel = C(this), this._highlightHandles = [], this._handleRunTraceButtonClick = () => {
|
|
19
19
|
this._setTraceWarnings(), !(this.showNoStartingPointsWarning || this.showMissingTerminalWarning) && (this.showNoStartingPointsWarning = !1, this.showMissingTerminalWarning = !1, this._clearTraceResult(), this._switchTab("results"), this._runTrace());
|
|
20
20
|
}, this._handleTraceInputsRefChange = (e) => {
|
|
21
21
|
e && (this._traceInputsElement = e);
|
|
22
22
|
}, this._handleTraceResultsRefChange = (e) => {
|
|
23
23
|
e && (this._traceResultsElement = e);
|
|
24
|
-
}, this.activeTab = "input", this.showMissingTerminalWarning = !1, this.showNoStartingPointsWarning = !1, this.mode = "default", this.autoDestroyDisabled = !1, this.aggregatedGeometryGraphicsColor = new u([255, 255, 0, 0.6]), this.disableHighlightFeatureResults = !1, this.hideActionBar = !1, this.hideFeatureResults = !1, this.state = this._viewModel.state, this.view = this._viewModel.view, this.arcgisHideGraphicsChange =
|
|
24
|
+
}, this.activeTab = "input", this.showMissingTerminalWarning = !1, this.showNoStartingPointsWarning = !1, this.mode = "default", this.autoDestroyDisabled = !1, this.aggregatedGeometryGraphicsColor = new u([255, 255, 0, 0.6]), this.disableHighlightFeatureResults = !1, this.hideActionBar = !1, this.hideFeatureResults = !1, this.state = this._viewModel.state, this.view = this._viewModel.view, this.arcgisHideGraphicsChange = l(), this.arcgisReady = l(), this.arcgisTraceLocationSelectEnd = l(), this.arcgisTraceLocationSelectStart = l(), this.arcgisTraceResultClear = l(), this.arcgisTraceResultFeaturesReady = l();
|
|
25
25
|
}
|
|
26
26
|
static {
|
|
27
27
|
this.properties = { activeTab: 16, traceError: 16, traceResult: 16, showMissingTerminalWarning: 16, showNoStartingPointsWarning: 16, mode: 16, autoDestroyDisabled: 5, beforeTraceLocationSelectStart: 0, aggregatedGeometryGraphicsColor: 0, disableHighlightFeatureResults: 5, hideActionBar: 5, hideFeatureResults: 5, label: 3, messageOverrides: 0, traceResultFeatures: 32, referenceElement: 1, state: 32, view: 0 };
|
|
@@ -52,8 +52,8 @@ class k extends T {
|
|
|
52
52
|
this.traceResult = void 0, this._clearHighlights(), this._clearAggregatedGeometryGraphics();
|
|
53
53
|
}
|
|
54
54
|
_setTraceWarnings() {
|
|
55
|
-
const e = this._traceInputsElement?.traceLocations, t = this._traceInputsElement?.traceLocationFlagInfos,
|
|
56
|
-
this.traceError = void 0, this.showNoStartingPointsWarning = !this._isSubnetworkNameTraceSelected && !
|
|
55
|
+
const e = this._traceInputsElement?.traceLocations, t = this._traceInputsElement?.traceLocationFlagInfos, i = !!this._traceInputsElement?.unTraceConfiguration?.subnetworkName, r = e?.some((n) => n.type === "starting-point"), c = t?.some((n) => !!n.flagProperties.terminalConfiguration && !n.flagProperties.selectedTerminals?.size) ?? !1;
|
|
56
|
+
this.traceError = void 0, this.showNoStartingPointsWarning = !this._isSubnetworkNameTraceSelected && !r || this._isSubnetworkNameTraceSelected && !i, this.showMissingTerminalWarning = c;
|
|
57
57
|
}
|
|
58
58
|
_switchTab(e) {
|
|
59
59
|
this.activeTab = e;
|
|
@@ -83,19 +83,19 @@ class k extends T {
|
|
|
83
83
|
const { traceResult: e, view: t } = this, a = this._viewModel.utilityNetwork;
|
|
84
84
|
if (!a || !e?.elements || !t)
|
|
85
85
|
return;
|
|
86
|
-
a.getObjectIdsFromElements(e.elements).forEach((
|
|
87
|
-
const
|
|
86
|
+
a.getObjectIdsFromElements(e.elements).forEach((r) => {
|
|
87
|
+
const c = t.allLayerViews.find((d) => {
|
|
88
88
|
const o = d.layer;
|
|
89
89
|
if (a.isUtilityLayer(o)) {
|
|
90
|
-
const p = Number(
|
|
90
|
+
const p = Number(r.layerUrl.split("/").pop());
|
|
91
91
|
return o.layerId === p;
|
|
92
92
|
}
|
|
93
93
|
return !1;
|
|
94
94
|
});
|
|
95
|
-
if (!
|
|
95
|
+
if (!c)
|
|
96
96
|
return;
|
|
97
|
-
const
|
|
98
|
-
this._highlightHandles.push(
|
|
97
|
+
const n = c.highlight(r.objectIds);
|
|
98
|
+
this._highlightHandles.push(n);
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
async _runTrace() {
|
|
@@ -113,8 +113,8 @@ class k extends T {
|
|
|
113
113
|
resultTypes: e.resultTypes,
|
|
114
114
|
outSpatialReference: this.view?.spatialReference
|
|
115
115
|
}), this.disableHighlightFeatureResults || this._highlightResults();
|
|
116
|
-
} catch (
|
|
117
|
-
R(
|
|
116
|
+
} catch (i) {
|
|
117
|
+
R(i, this, "Error while running trace"), this.traceError = i, this.traceResult = void 0;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
_handleHideGraphicsChange(e) {
|
|
@@ -146,18 +146,19 @@ class k extends T {
|
|
|
146
146
|
return s`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this.showNoStartingPointsWarning = !1}><div slot=title>${this._messages.errors.noStartingPointsTitle}</div><div slot=message>${this._messages.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`;
|
|
147
147
|
}
|
|
148
148
|
renderResultsTab() {
|
|
149
|
-
return g(`${this.el.id}__results-tab-item`, s`<calcite-tab .selected=${this.activeTab === "results"}>${this.
|
|
149
|
+
return g(`${this.el.id}__results-tab-item`, s`<calcite-tab .selected=${this.activeTab === "results"}>${this.state === "executing" ? s`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : s`<arcgis-utility-network-trace-results .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .layers=${this._allLayers} .messageOverrides=${{ resultFeaturesAreHidden: this.messageOverrides?.resultFeaturesAreHidden }} .referenceElement=${this.referenceElement} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork ?? void 0} .view=${this.view ?? void 0} @arcgisAggregatedGeometryGraphicsColorChange=${this._handleAggregatedGeometryGraphicsColorChange} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} ${h(this._handleTraceResultsRefChange)}></arcgis-utility-network-trace-results>`}</calcite-tab>`);
|
|
150
150
|
}
|
|
151
151
|
renderResultsFooter() {
|
|
152
|
-
const {
|
|
152
|
+
const { traceResult: e } = this, a = !!(e?.elements.length || e?.globalFunctionResults.length || e?.aggregatedGeometry) && this._traceResultsElement?.state === "ready", i = this._traceResultsElement?.numResults ?? 0;
|
|
153
153
|
return s`<calcite-button appearance=outline width=full @click=${() => {
|
|
154
154
|
this._switchTab("input"), this._clearTraceResult(), this.arcgisTraceResultClear.emit();
|
|
155
|
-
}} .disabled=${!
|
|
155
|
+
}} .disabled=${!a} slot=footer>${i > 0 && !this.hideFeatureResults && this.state !== "executing" ? this._messages.buttons.clearResultsCustom.replace("{number}", i.toString()) : this._messages.buttons.clearResultsGeneric}</calcite-button>`;
|
|
156
156
|
}
|
|
157
157
|
renderInputTab() {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}} .
|
|
158
|
+
const { mode: e } = this, { loadError: t } = this._viewModel, i = (t === "no-user-type-extension" || t === "sceneView-not-supported" ? s`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this._getLoadError(t)}</div></calcite-notice>` : void 0) ?? s`${this.showNoStartingPointsWarning && e === "default" && this.renderNoStartingPointsWarning() || ""}${this.showMissingTerminalWarning && e === "default" && this.renderMissingTerminalWarning() || ""}<arcgis-utility-network-trace-inputs .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .referenceElement=${this.referenceElement} .view=${this.view ?? void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisPropertyChange=${(r) => {
|
|
159
|
+
r.stopPropagation(), r.detail.name === "mode" && (this.mode = r.target.mode);
|
|
160
|
+
}} @arcgisSelectedNamedTraceConfigurationChange=${this._handleSelectedNamedTraceConfigurationChange} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisUtilityNetworkChange=${this._handleUtilityNetworkChange} ${h(this._handleTraceInputsRefChange)}></arcgis-utility-network-trace-inputs>`;
|
|
161
|
+
return g(`${this.el.id}__inputs-tab-item`, s`<calcite-tab .selected=${this.activeTab === "input"}><div class="inputs-tab-container">${i}</div></calcite-tab>`);
|
|
161
162
|
}
|
|
162
163
|
renderInputFooter() {
|
|
163
164
|
const { mode: e, state: t } = this;
|
|
@@ -167,8 +168,8 @@ class k extends T {
|
|
|
167
168
|
return s`<calcite-button appearance=solid width=full @click=${this._handleRunTraceButtonClick} slot=footer .disabled=${a}>${this._messages.buttons.getResults}</calcite-button>`;
|
|
168
169
|
}
|
|
169
170
|
render() {
|
|
170
|
-
const {
|
|
171
|
-
return s`<calcite-panel
|
|
171
|
+
const { activeTab: e, state: t, view: a } = this, { utilityNetwork: i } = this._viewModel;
|
|
172
|
+
return s`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this._switchTab("input")} .selected=${e === "input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this._switchTab("results")} .selected=${e === "results"} .disabled=${t === "disabled" || t === "loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.renderInputTab()}${a && i ? this.renderResultsTab() : null}</calcite-tabs>${e === "input" ? this.renderInputFooter() : null}${e === "results" ? this.renderResultsFooter() : null}</calcite-panel>`;
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
m("arcgis-utility-network-trace-analysis", k);
|
|
@@ -14,7 +14,7 @@ import { usePropertyChange as N } from "@arcgis/lumina/controllers";
|
|
|
14
14
|
import { log as d, composeMissingPropertyMessage as $, composeEmptyPropertyMessage as v } from "@arcgis/toolkit/log";
|
|
15
15
|
import { css as E, html as r } from "lit";
|
|
16
16
|
import { u as P } from "../../chunks/useT9n.js";
|
|
17
|
-
import { b as I, a as g, c as
|
|
17
|
+
import { b as I, a as g, c as U, q as m, i as F } from "../../chunks/layer-utils.js";
|
|
18
18
|
import { l as f } from "../../chunks/async-utils.js";
|
|
19
19
|
const x = E`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-combobox,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, u = `utility-network-trace-inputs-sketch-${Date.now()}`, A = 20;
|
|
20
20
|
class M extends L {
|
|
@@ -25,7 +25,14 @@ class M extends L {
|
|
|
25
25
|
"upstream",
|
|
26
26
|
"downstream",
|
|
27
27
|
"isolation"
|
|
28
|
-
]), this.
|
|
28
|
+
]), this._setUpMap = () => {
|
|
29
|
+
if (this._error = void 0, !this.view?.map) {
|
|
30
|
+
d("error", this, "The property `view.map` is required to load utility networks but is missing."), this._error = this._messages.errors.noMapError, this.utilityNetworks = void 0;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const e = this.view.map;
|
|
34
|
+
this._setupUtilityNetworks(e), this._setupSketchViewModel(e);
|
|
35
|
+
}, this._removeDuplicateSubnetworkNames = (e, t, i) => t === 0 || e.getAttribute("SUBNETWORKNAME") !== i[t - 1].getAttribute("SUBNETWORKNAME"), this._hitTestPromise = null, this._displayLimit = 20, this._traceLocationStartingRefChange = (e) => {
|
|
29
36
|
e && (this._traceLocationStartingElement = e);
|
|
30
37
|
}, this._traceLocationBarrierRefChange = (e) => {
|
|
31
38
|
e && (this._traceLocationBarrierElement = e);
|
|
@@ -82,10 +89,8 @@ class M extends L {
|
|
|
82
89
|
this._removeGraphicLayer(u), this._clearTraceLocations(), this._sketchViewModel?.cancel(), this._featuresComponentElement?.destroy(), this._traceLocationStartingElement?.destroy(), this._traceLocationBarrierElement?.destroy(), this._traceLocationStoppingElement?.destroy(), await this.manager.destroy();
|
|
83
90
|
}
|
|
84
91
|
load() {
|
|
85
|
-
this.manager.onLifecycle(() => [
|
|
86
|
-
w(() => this.view?.map, () =>
|
|
87
|
-
this._error = void 0, this._setupUtilityNetworks(), this._setupSketchViewModel();
|
|
88
|
-
}, { initial: !0 })
|
|
92
|
+
this._setUpMap(), this.manager.onLifecycle(() => [
|
|
93
|
+
w(() => this.view?.map, () => this._setUpMap())
|
|
89
94
|
]);
|
|
90
95
|
}
|
|
91
96
|
willUpdate(e) {
|
|
@@ -113,27 +118,23 @@ class M extends L {
|
|
|
113
118
|
e.spatialProperties.flagGraphic && this.view?.graphics.remove(e.spatialProperties.flagGraphic);
|
|
114
119
|
}), this._stoppingPoints.removeAll();
|
|
115
120
|
}
|
|
116
|
-
_createGraphicLayer(e) {
|
|
117
|
-
|
|
118
|
-
if (!t?.findLayerById(e)) {
|
|
121
|
+
_createGraphicLayer(e, t) {
|
|
122
|
+
if (!e.findLayerById(t)) {
|
|
119
123
|
const a = new k({
|
|
120
|
-
id:
|
|
124
|
+
id: t,
|
|
121
125
|
listMode: "hide",
|
|
122
|
-
title:
|
|
126
|
+
title: t
|
|
123
127
|
});
|
|
124
128
|
I(this.view, a);
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
|
-
_getGraphicLayer(e) {
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
const i = t.findLayerById(e);
|
|
131
|
-
if (g(i))
|
|
132
|
-
return t.reorder(i, t.layers.length - 1), i;
|
|
133
|
-
}
|
|
134
|
-
return null;
|
|
131
|
+
_getGraphicLayer(e, t) {
|
|
132
|
+
const i = e.findLayerById(t);
|
|
133
|
+
return g(i) ? (e.reorder(i, e.layers.length - 1), i) : null;
|
|
135
134
|
}
|
|
136
135
|
_removeGraphicLayer(e) {
|
|
136
|
+
if (!this.view?.map)
|
|
137
|
+
return;
|
|
137
138
|
const { map: t } = this.view, i = t?.findLayerById(e);
|
|
138
139
|
i && g(i) && t?.remove(i);
|
|
139
140
|
}
|
|
@@ -142,7 +143,7 @@ class M extends L {
|
|
|
142
143
|
if (e && t && t.length > 0) {
|
|
143
144
|
const i = new n();
|
|
144
145
|
t.forEach((a) => {
|
|
145
|
-
|
|
146
|
+
U(a) ? a.sublayers.forEach((s) => {
|
|
146
147
|
i.add(new p({
|
|
147
148
|
layer: s,
|
|
148
149
|
enabled: !0
|
|
@@ -158,15 +159,15 @@ class M extends L {
|
|
|
158
159
|
};
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
|
-
_initializeSketchViewModel() {
|
|
162
|
-
const { view:
|
|
162
|
+
_initializeSketchViewModel(e) {
|
|
163
|
+
const { view: t } = this, i = this._getGraphicLayer(e, u);
|
|
163
164
|
return new C({
|
|
164
|
-
layer:
|
|
165
|
-
view:
|
|
165
|
+
layer: i,
|
|
166
|
+
view: t
|
|
166
167
|
});
|
|
167
168
|
}
|
|
168
|
-
_setupSketchViewModel() {
|
|
169
|
-
this._createGraphicLayer(u), this._sketchViewModel = this._initializeSketchViewModel(), this._setSnappingOption();
|
|
169
|
+
_setupSketchViewModel(e) {
|
|
170
|
+
this._createGraphicLayer(e, u), this._sketchViewModel = this._initializeSketchViewModel(e), this._setSnappingOption();
|
|
170
171
|
}
|
|
171
172
|
_clearSubnetworks() {
|
|
172
173
|
this.selectedSubnetworkName = void 0, this.subnetworksTable = void 0, this.compatibleSubnetworkNames = [];
|
|
@@ -228,12 +229,7 @@ class M extends L {
|
|
|
228
229
|
const { utilityNetworks: e, selectedUtilityNetwork: t } = this;
|
|
229
230
|
e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (d("error", this, v("utilityNetworks")), this.selectedUtilityNetwork = void 0, this._error = this._messages.errors.noUtilityNetworkError);
|
|
230
231
|
}
|
|
231
|
-
async _setupUtilityNetworks() {
|
|
232
|
-
if (!this.view?.map) {
|
|
233
|
-
d("error", this, "The property `view.map` is required to load utility networks but is missing."), this._error = this._messages.errors.noMapError, this.utilityNetworks = void 0;
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
const e = this.view.map;
|
|
232
|
+
async _setupUtilityNetworks(e) {
|
|
237
233
|
try {
|
|
238
234
|
e.loaded || await e.load();
|
|
239
235
|
} catch (t) {
|
|
@@ -274,7 +270,7 @@ class M extends L {
|
|
|
274
270
|
async _queryFeatures(e) {
|
|
275
271
|
const t = /* @__PURE__ */ new Map(), i = [];
|
|
276
272
|
return e.forEach((a) => {
|
|
277
|
-
const s =
|
|
273
|
+
const s = F(a.layer) ? a.layer.parent : a.layer;
|
|
278
274
|
if (s) {
|
|
279
275
|
const o = this._getLayerByLayerId(s.layerId);
|
|
280
276
|
if (o) {
|
|
@@ -31,7 +31,7 @@ function l(t) {
|
|
|
31
31
|
const e = t?.animation?.target;
|
|
32
32
|
return (e && "then" in e ? void 0 : e?.scale) ?? t?.scale ?? 0;
|
|
33
33
|
}
|
|
34
|
-
const v = m`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`;
|
|
34
|
+
const v = m`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`;
|
|
35
35
|
class x extends f {
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments), this.messages = b({}), this._state = "disabled", this.view = p(this), this.autoDestroyDisabled = !1, this.icon = "magnifying-glass-plus", this.layout = "vertical", this.visualScale = "m", this.arcgisActionZoom = i(), this.arcgisPropertyChange = g()("state"), this.arcgisReady = i();
|