@arcgis/map-components 5.1.0-next.87 → 5.1.0-next.89
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/{K7IUUDPU.js → 24VXNB37.js} +1 -1
- package/dist/cdn/{NUXHWUHW.js → 25LLGDTO.js} +1 -1
- package/dist/cdn/{5RDAIWG2.js → 266WI6FR.js} +1 -1
- package/dist/cdn/{WFWY62WP.js → 2OMOYS3B.js} +1 -1
- package/dist/cdn/{GSLG4BGG.js → 372AEJRW.js} +1 -1
- package/dist/cdn/{TNFV5TYG.js → 3BUCNQ3Q.js} +1 -1
- package/dist/cdn/{AJJUFRY2.js → 3M3HVWX5.js} +1 -1
- package/dist/cdn/{NIBKXKYP.js → 3UA2XDDN.js} +1 -1
- package/dist/cdn/{EDXV5ILJ.js → 3UIUMMLG.js} +1 -1
- package/dist/cdn/{SSN6BZ43.js → 3Y5E26OU.js} +1 -1
- package/dist/cdn/{6F7YV6IW.js → 3YHIONOM.js} +1 -1
- package/dist/cdn/{QGMXX4OK.js → 3YI6JMPT.js} +1 -1
- package/dist/cdn/{EVANZ72I.js → 4PGPOFFE.js} +1 -1
- package/dist/cdn/{MTCQMJU6.js → 5E6PE65A.js} +1 -1
- package/dist/cdn/{KKQWYK3S.js → 5GEYGYVM.js} +1 -1
- package/dist/cdn/{HLLELVOY.js → 5IDKVBD3.js} +1 -1
- package/dist/cdn/{EVT4CSFI.js → 5NSQZMF6.js} +1 -1
- package/dist/cdn/{FPT2UAZM.js → 6352EDBR.js} +1 -1
- package/dist/cdn/{7VOC4SRD.js → 65B3NTSL.js} +1 -1
- package/dist/cdn/{IVHHFY62.js → 6GMOTVSO.js} +1 -1
- package/dist/cdn/{ODIQOLIK.js → 6IJGTPXG.js} +1 -1
- package/dist/cdn/{PLIFNESQ.js → 6P5CNXUG.js} +1 -1
- package/dist/cdn/{BQGVSWX3.js → 6Z5ORZ2B.js} +1 -1
- package/dist/cdn/{PXRFPA5R.js → 7HI6SDQK.js} +1 -1
- package/dist/cdn/{DXXSS4ND.js → 7W2JQJJR.js} +1 -1
- package/dist/cdn/{L65EXZFU.js → A2SFKWAL.js} +1 -1
- package/dist/cdn/{ZO7ZJ52E.js → ACT4QKSO.js} +1 -1
- package/dist/cdn/{LOSI5OB3.js → AJ7PACLN.js} +1 -1
- package/dist/cdn/{QC3D2TWK.js → AWTAJAUI.js} +1 -1
- package/dist/cdn/{U5G4PHA4.js → BOMPCJ77.js} +1 -1
- package/dist/cdn/{TEDPQX2I.js → BQPSXTIF.js} +1 -1
- package/dist/cdn/{L5IMMLTK.js → C2LLHKD7.js} +1 -1
- package/dist/cdn/{YACNPFYK.js → C6DEM2XB.js} +1 -1
- package/dist/cdn/{LCRY66VB.js → D5R7F5KN.js} +1 -1
- package/dist/cdn/{2D2ZSKWM.js → D5W4MV7H.js} +1 -1
- package/dist/cdn/{YDT6E7HC.js → DAO42MDC.js} +1 -1
- package/dist/cdn/DSAWFUXK.js +2 -0
- package/dist/cdn/{EIVHDZFM.js → DWADIUIX.js} +1 -1
- package/dist/cdn/{NXIFPTVQ.js → E2DUJ3PM.js} +1 -1
- package/dist/cdn/{5OMDHZ57.js → F2T4T7QR.js} +1 -1
- package/dist/cdn/{HN5OI754.js → F2UYN7PY.js} +1 -1
- package/dist/cdn/{IMENOON5.js → F5RARHY3.js} +1 -1
- package/dist/cdn/{O5ZWXMTJ.js → F74DKJP5.js} +1 -1
- package/dist/cdn/{JDJ76XB7.js → FBSEFCKA.js} +1 -1
- package/dist/cdn/{MV6B2G3T.js → FDNFARSM.js} +1 -1
- package/dist/cdn/{UKBIRZVQ.js → FF62HZ2F.js} +1 -1
- package/dist/cdn/{TVJAVDVQ.js → FGZC6Q4U.js} +1 -1
- package/dist/cdn/FIOFLICP.js +2 -0
- package/dist/cdn/{CZKMCZP6.js → GCPE7SKR.js} +1 -1
- package/dist/cdn/{IDDXJ7F2.js → GPYPWFDI.js} +1 -1
- package/dist/cdn/{RYU3ARF7.js → HQNCVN73.js} +1 -1
- package/dist/cdn/{PLVNROBW.js → I4CEHX7Z.js} +1 -1
- package/dist/cdn/{AQ77FNME.js → IA5VGN4S.js} +1 -1
- package/dist/cdn/{RMXESNDP.js → IRXWDEBR.js} +1 -1
- package/dist/cdn/{OSKVGOGF.js → JE5PV6KP.js} +1 -1
- package/dist/cdn/{IUIMMOGL.js → JTQEQIQN.js} +1 -1
- package/dist/cdn/{ELGQ2B5Q.js → K6FLTE5C.js} +1 -1
- package/dist/cdn/{2RQSR7BC.js → KHM4SNZ7.js} +1 -1
- package/dist/cdn/{RX2LAZXL.js → KIFOQG3B.js} +1 -1
- package/dist/cdn/{L7EMNGSL.js → KRWHYRGY.js} +1 -1
- package/dist/cdn/{LBMRY3LJ.js → KSQRNB2Z.js} +1 -1
- package/dist/cdn/{4Z4RREKH.js → M4KJ5Q7J.js} +1 -1
- package/dist/cdn/{3ODUJMJ5.js → MAILZU6P.js} +1 -1
- package/dist/cdn/{HOOOJCUS.js → MAQOMR7D.js} +1 -1
- package/dist/cdn/{6VJBGE5W.js → MAVNZR2L.js} +1 -1
- package/dist/cdn/{PAGCWPDT.js → MDC6LZQV.js} +1 -1
- package/dist/cdn/{ATDE5M7Y.js → MJLYS4D6.js} +1 -1
- package/dist/cdn/{V6F3SIA2.js → MMBRI6HV.js} +1 -1
- package/dist/cdn/{CLGZBSF4.js → MQ4W6OKL.js} +1 -1
- package/dist/cdn/{3ASRRVAX.js → MTIB3TBG.js} +1 -1
- package/dist/cdn/{JCBEUV6E.js → MUR25U2W.js} +1 -1
- package/dist/cdn/{QYDPHZP7.js → N3PGBI5P.js} +1 -1
- package/dist/cdn/{LHMODP3Q.js → NFRJBN5U.js} +1 -1
- package/dist/cdn/{QCWXVSVT.js → NSZXPPXS.js} +1 -1
- package/dist/cdn/{ZYKCW3VZ.js → O3Q5EADH.js} +1 -1
- package/dist/cdn/{7T5DT6RO.js → PAUCVKJP.js} +1 -1
- package/dist/cdn/{NOIIORU5.js → PFHHH6X2.js} +1 -1
- package/dist/cdn/{PN6OLHQX.js → PNS6E574.js} +1 -1
- package/dist/cdn/{BB63FLAA.js → POZYAP5U.js} +1 -1
- package/dist/cdn/{WYQVL6XP.js → PP3ZDADO.js} +1 -1
- package/dist/cdn/{KU42UI2H.js → Q4Z25HZZ.js} +1 -1
- package/dist/cdn/{VFIPW22C.js → R2EXDY7E.js} +1 -1
- package/dist/cdn/{RHK3OQ5J.js → R2L7EANK.js} +1 -1
- package/dist/cdn/{ZBAHKPR7.js → R3WL7KY6.js} +1 -1
- package/dist/cdn/{7QNEKM7I.js → R7XZ64RD.js} +1 -1
- package/dist/cdn/{SLYIBJYA.js → RXSGPYBA.js} +1 -1
- package/dist/cdn/{JFBRLXW3.js → SMUFWMGG.js} +1 -1
- package/dist/cdn/{6WVU3Z5X.js → SN7YZQCO.js} +1 -1
- package/dist/cdn/{IYYLPWB4.js → SPGWCKQB.js} +1 -1
- package/dist/cdn/{PVSWR6OP.js → STAEZF3H.js} +1 -1
- package/dist/cdn/{V2H57VKE.js → SUE6ZIET.js} +1 -1
- package/dist/cdn/{IA3VOFHV.js → SZCDFVDJ.js} +1 -1
- package/dist/cdn/{DBXLBXKP.js → T473T3LG.js} +1 -1
- package/dist/cdn/{FSBQ3QHA.js → TIP4QUW7.js} +1 -1
- package/dist/cdn/TUY46VJP.js +2 -0
- package/dist/cdn/{7EBEAMCO.js → UFBJWJZO.js} +1 -1
- package/dist/cdn/{77K74IPU.js → UIWXAYUP.js} +1 -1
- package/dist/cdn/UMATWIWL.js +2 -0
- package/dist/cdn/{V6FILY6M.js → UNC2Y424.js} +1 -1
- package/dist/cdn/{NZH3RKL2.js → UOT2FCSQ.js} +1 -1
- package/dist/cdn/UOZXW7WA.js +2 -0
- package/dist/cdn/{ID2QTTT2.js → UZXNZF42.js} +1 -1
- package/dist/cdn/{UB3EEHLW.js → VHG7HRXL.js} +1 -1
- package/dist/cdn/{OZ5I3YQW.js → W27GXCEC.js} +1 -1
- package/dist/cdn/{AW7QBRKJ.js → W7KCNEQL.js} +1 -1
- package/dist/cdn/{RHD7UOR2.js → WDCYTHR5.js} +1 -1
- package/dist/cdn/{ZPSJEBD6.js → WJWYFM4K.js} +1 -1
- package/dist/cdn/{VEVJEIFK.js → WLTOQWZB.js} +1 -1
- package/dist/cdn/{QNZTAT5I.js → X55JXSXH.js} +1 -1
- package/dist/cdn/{QYH4FI23.js → XISJTOJV.js} +1 -1
- package/dist/cdn/{5MURAVII.js → XO5ETTHD.js} +1 -1
- package/dist/cdn/{UHLP4JQM.js → XUJGETHA.js} +1 -1
- package/dist/cdn/{I473RVY4.js → XWD2WUJV.js} +1 -1
- package/dist/cdn/{BNFOQCW6.js → XYLQAWUN.js} +1 -1
- package/dist/cdn/{ZATRTCI7.js → YAWKQTTR.js} +1 -1
- package/dist/cdn/{GVYS3KF5.js → YOLLEFX2.js} +1 -1
- package/dist/cdn/{GUYOWFTW.js → Z33HF7ZE.js} +1 -1
- package/dist/cdn/ZCQAWUVA.js +2 -0
- package/dist/cdn/{AU2CHOT7.js → ZIV7S3DE.js} +1 -1
- package/dist/cdn/{TXOZLKGW.js → ZJN6UUR4.js} +1 -1
- package/dist/cdn/{LY3CCUTZ.js → ZL3CSJU4.js} +1 -1
- package/dist/cdn/{OWODXLED.js → ZRWZ5OQK.js} +1 -1
- package/dist/cdn/{XWYXHSGO.js → ZSG6TJPR.js} +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +3 -0
- package/dist/components/arcgis-bookmarks/customElement.js +32 -32
- package/dist/components/arcgis-daylight/customElement.d.ts +7 -1
- package/dist/components/arcgis-locate/customElement.d.ts +11 -2
- package/dist/components/arcgis-slider-scale-range/customElement.js +24 -27
- package/dist/components/arcgis-track/customElement.d.ts +10 -2
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +2 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +60 -50
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +47 -39
- 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/package.json +4 -4
- package/dist/cdn/3ILSWQHC.js +0 -2
- package/dist/cdn/DCKEJ6NB.js +0 -2
- package/dist/cdn/OYSW2K2B.js +0 -2
- package/dist/cdn/R643Q3PN.js +0 -2
- package/dist/cdn/SWPUZKGU.js +0 -2
- package/dist/cdn/X5PGXXNB.js +0 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as h } from "lit/directives/ref.js";
|
|
4
4
|
import n from "@arcgis/core/core/Collection.js";
|
|
5
|
-
import { watch as
|
|
6
|
-
import { substitute as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
5
|
+
import { watch as w } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import { substitute as _ } from "@arcgis/core/intl.js";
|
|
7
|
+
import k from "@arcgis/core/layers/GraphicsLayer.js";
|
|
8
|
+
import S from "@arcgis/core/networks/support/UNTraceConfiguration.js";
|
|
9
|
+
import T from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
10
10
|
import p from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
|
|
11
|
-
import
|
|
12
|
-
import { LitElement as
|
|
13
|
-
import { usePropertyChange as
|
|
14
|
-
import { log as
|
|
15
|
-
import { css as
|
|
16
|
-
import { u as
|
|
17
|
-
import { b as
|
|
18
|
-
import { l as
|
|
19
|
-
const
|
|
20
|
-
class
|
|
11
|
+
import C from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
12
|
+
import { LitElement as L, createEvent as l } from "@arcgis/lumina";
|
|
13
|
+
import { usePropertyChange as N } from "@arcgis/lumina/controllers";
|
|
14
|
+
import { log as d, composeMissingPropertyMessage as $, composeEmptyPropertyMessage as v } from "@arcgis/toolkit/log";
|
|
15
|
+
import { css as E, html as r } from "lit";
|
|
16
|
+
import { u as P } from "../../chunks/useT9n.js";
|
|
17
|
+
import { b as I, a as g, c as F, q as m, i as U } from "../../chunks/layer-utils.js";
|
|
18
|
+
import { l as f } from "../../chunks/async-utils.js";
|
|
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
|
+
class M extends L {
|
|
21
21
|
constructor() {
|
|
22
|
-
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages =
|
|
22
|
+
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = P({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new n(), this._barriers = new n(), this._stoppingPoints = new n(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
|
|
23
23
|
"subnetwork",
|
|
24
24
|
"subnetwork-controller",
|
|
25
25
|
"upstream",
|
|
@@ -35,13 +35,13 @@ class A extends T {
|
|
|
35
35
|
e && (this._featuresComponentElement = e);
|
|
36
36
|
}, this._handleFeaturesPropertyChange = ({ detail: e, target: t }) => {
|
|
37
37
|
(e.name === "selectedDrillInFeature" || e.name === "selectedFeature") && (this.selectedFeature = t.selectedDrillInFeature ?? t.selectedFeature ?? void 0);
|
|
38
|
-
}, this.candidateFeatures = [], this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange =
|
|
38
|
+
}, this.candidateFeatures = [], this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange = N()("mode"), this.arcgisSelectedNamedTraceConfigurationChange = l(), this.arcgisTraceInputsChange = l(), this.arcgisTraceLocationSelectEnd = l(), this.arcgisTraceLocationSelectStart = l(), this.arcgisUtilityNetworkChange = l();
|
|
39
39
|
}
|
|
40
40
|
static {
|
|
41
41
|
this.properties = { selectedFeature: 16, candidateFeatures: 16, compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _error: 16, _subnetworkNamesState: 16, _activeTraceLocationType: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, autoDestroyDisabled: 5, hideActionBar: 5, unTraceConfiguration: 32, referenceElement: 1, mode: 3, traceLocationFlagInfos: 32, traceLocations: 32 };
|
|
42
42
|
}
|
|
43
43
|
static {
|
|
44
|
-
this.styles =
|
|
44
|
+
this.styles = x;
|
|
45
45
|
}
|
|
46
46
|
get isSubnetworkNameTraceSelected() {
|
|
47
47
|
const e = this.selectedNamedTraceConfiguration?.traceType;
|
|
@@ -83,7 +83,7 @@ class A extends T {
|
|
|
83
83
|
}
|
|
84
84
|
load() {
|
|
85
85
|
this.manager.onLifecycle(() => [
|
|
86
|
-
|
|
86
|
+
w(() => this.view?.map, () => {
|
|
87
87
|
this._error = void 0, this._setupUtilityNetworks(), this._setupSketchViewModel();
|
|
88
88
|
}, { initial: !0 })
|
|
89
89
|
]);
|
|
@@ -96,7 +96,7 @@ class A extends T {
|
|
|
96
96
|
}
|
|
97
97
|
_createTraceLocations(e) {
|
|
98
98
|
const t = e.flagProperties.selectedTerminals;
|
|
99
|
-
return e.flagProperties.terminalConfiguration && t?.size ? Array.from(t, (i) => new
|
|
99
|
+
return e.flagProperties.terminalConfiguration && t?.size ? Array.from(t, (i) => new T({
|
|
100
100
|
type: e.traceLocation.type,
|
|
101
101
|
isFilterBarrier: e.traceLocation.isFilterBarrier,
|
|
102
102
|
globalId: e.traceLocation.globalId,
|
|
@@ -116,12 +116,12 @@ class A extends T {
|
|
|
116
116
|
_createGraphicLayer(e) {
|
|
117
117
|
const { map: t } = this.view;
|
|
118
118
|
if (!t?.findLayerById(e)) {
|
|
119
|
-
const a = new
|
|
119
|
+
const a = new k({
|
|
120
120
|
id: e,
|
|
121
121
|
listMode: "hide",
|
|
122
122
|
title: e
|
|
123
123
|
});
|
|
124
|
-
|
|
124
|
+
I(this.view, a);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
_getGraphicLayer(e) {
|
|
@@ -142,7 +142,7 @@ class A extends T {
|
|
|
142
142
|
if (e && t && t.length > 0) {
|
|
143
143
|
const i = new n();
|
|
144
144
|
t.forEach((a) => {
|
|
145
|
-
|
|
145
|
+
F(a) ? a.sublayers.forEach((s) => {
|
|
146
146
|
i.add(new p({
|
|
147
147
|
layer: s,
|
|
148
148
|
enabled: !0
|
|
@@ -160,7 +160,7 @@ class A extends T {
|
|
|
160
160
|
}
|
|
161
161
|
_initializeSketchViewModel() {
|
|
162
162
|
const { view: e } = this, t = this._getGraphicLayer(u);
|
|
163
|
-
return new
|
|
163
|
+
return new C({
|
|
164
164
|
layer: t,
|
|
165
165
|
view: e
|
|
166
166
|
});
|
|
@@ -195,24 +195,30 @@ class A extends T {
|
|
|
195
195
|
_selectTraceConfigurationByGuid(e) {
|
|
196
196
|
const t = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find((i) => i.globalId === e);
|
|
197
197
|
if (!t) {
|
|
198
|
-
|
|
198
|
+
d("error", this, "`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
this.selectedNamedTraceConfiguration = t;
|
|
202
202
|
}
|
|
203
|
-
_handleTraceConfigChange() {
|
|
203
|
+
async _handleTraceConfigChange() {
|
|
204
204
|
const { selectedNamedTraceConfiguration: e } = this;
|
|
205
|
-
if (!(e?.traceConfiguration instanceof
|
|
206
|
-
|
|
205
|
+
if (!(e?.traceConfiguration instanceof S)) {
|
|
206
|
+
d("error", this, $("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
|
-
this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType === "subnetwork" && (this._subnetworkNamesState = "loading", this._handleSubnetworkTraceConfigChange(this._unTraceConfiguration)
|
|
209
|
+
this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType === "subnetwork" && (this._subnetworkNamesState = "loading", await this._handleSubnetworkTraceConfigChange(this._unTraceConfiguration), this._subnetworkNamesState = "ready");
|
|
210
210
|
}
|
|
211
211
|
async _handleSelectedUtilityNetworkChange() {
|
|
212
|
-
|
|
212
|
+
const { selectedUtilityNetwork: e } = this;
|
|
213
|
+
try {
|
|
214
|
+
e && !e.loaded && await e.load();
|
|
215
|
+
} catch (t) {
|
|
216
|
+
f(t, this, "Error while loading the selected utility network");
|
|
217
|
+
}
|
|
218
|
+
this._clearSubnetworks(), this._setupTraceConfigurations(), this._filterUnLayers(), this._clearTraceLocations();
|
|
213
219
|
}
|
|
214
220
|
_setupTraceConfigurations() {
|
|
215
|
-
this._unTraceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this.traceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "path" && e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [], this.traceConfigurations.length ? this.selectedNamedTraceConfiguration = this.traceConfigurations.at(0) :
|
|
221
|
+
this._unTraceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this.traceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "path" && e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [], this.traceConfigurations.length ? this.selectedNamedTraceConfiguration = this.traceConfigurations.at(0) : d("error", this, "The selected utility network has no compatible named trace configurations.");
|
|
216
222
|
}
|
|
217
223
|
_filterUnLayers() {
|
|
218
224
|
const { selectedUtilityNetwork: e } = this;
|
|
@@ -220,18 +226,18 @@ class A extends T {
|
|
|
220
226
|
}
|
|
221
227
|
_handleUtilityNetworksChange() {
|
|
222
228
|
const { utilityNetworks: e, selectedUtilityNetwork: t } = this;
|
|
223
|
-
e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (
|
|
229
|
+
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);
|
|
224
230
|
}
|
|
225
231
|
async _setupUtilityNetworks() {
|
|
226
232
|
if (!this.view?.map) {
|
|
227
|
-
|
|
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;
|
|
228
234
|
return;
|
|
229
235
|
}
|
|
230
236
|
const e = this.view.map;
|
|
231
237
|
try {
|
|
232
238
|
e.loaded || await e.load();
|
|
233
239
|
} catch (t) {
|
|
234
|
-
|
|
240
|
+
f(t, this, "Error while loading `view.map`");
|
|
235
241
|
} finally {
|
|
236
242
|
this.utilityNetworks = e.utilityNetworks || new n();
|
|
237
243
|
}
|
|
@@ -268,12 +274,12 @@ class A extends T {
|
|
|
268
274
|
async _queryFeatures(e) {
|
|
269
275
|
const t = /* @__PURE__ */ new Map(), i = [];
|
|
270
276
|
return e.forEach((a) => {
|
|
271
|
-
const s =
|
|
277
|
+
const s = U(a.layer) ? a.layer.parent : a.layer;
|
|
272
278
|
if (s) {
|
|
273
279
|
const o = this._getLayerByLayerId(s.layerId);
|
|
274
280
|
if (o) {
|
|
275
|
-
const
|
|
276
|
-
|
|
281
|
+
const c = t.get(o) || [];
|
|
282
|
+
c.push(a), t.set(o, c);
|
|
277
283
|
}
|
|
278
284
|
}
|
|
279
285
|
}), await Promise.all(Array.from(t.keys()).map(async (a) => {
|
|
@@ -314,15 +320,16 @@ class A extends T {
|
|
|
314
320
|
}}>${e}</calcite-combobox></calcite-block>`;
|
|
315
321
|
}
|
|
316
322
|
renderUtilityNetworkSelection() {
|
|
317
|
-
const { _messages: e } = this, t = e.labels.utilityNetwork, i = this.utilityNetworks?.map((a) => r`<calcite-combobox-item .value=${a.id} .heading=${a.title} .selected=${a.id === this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);
|
|
323
|
+
const { _messages: e } = this, t = e.labels.utilityNetwork, i = this.utilityNetworks?.map((a) => r`<calcite-combobox-item .value=${a.id} .heading=${a.title || a.id} .selected=${a.id === this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);
|
|
318
324
|
return r`<calcite-block .heading=${t} .label=${t} expanded><calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: a }) => {
|
|
319
325
|
const s = a.selectedItems[0]?.value;
|
|
320
326
|
this.selectedUtilityNetwork?.id !== s && (this.selectedUtilityNetwork = this.utilityNetworks?.find((o) => o.id === s));
|
|
321
327
|
}}>${i}</calcite-combobox></calcite-block>`;
|
|
322
328
|
}
|
|
323
329
|
renderDefaultMode() {
|
|
324
|
-
|
|
325
|
-
|
|
330
|
+
const { selectedUtilityNetwork: e } = this, { noMapError: t, noUtilityNetworkError: i } = this._messages.errors;
|
|
331
|
+
let a;
|
|
332
|
+
return this._error === t || this._error === i ? a = this.renderError(this._error, !1, "exclamation-mark-triangle") : !e?.loaded && !e?.loadError ? a = this.renderLoader() : a = this.renderContent(), r`<calcite-flow-item .selected=${this.mode === "default"}>${a}</calcite-flow-item>`;
|
|
326
333
|
}
|
|
327
334
|
renderSpatialSelectInstructions() {
|
|
328
335
|
const { _messages: e, _activeTraceLocationType: t, mode: i } = this, a = t === "starting-point" ? e.labels.addSpatial.startingPoint : t === "barrier" ? e.labels.addSpatial.barrier : e.labels.addSpatial.stoppingPoint;
|
|
@@ -336,10 +343,10 @@ class A extends T {
|
|
|
336
343
|
return r`<arcgis-features .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${e} .featureMenuTitle=${t} .hideActionBar=${this.hideActionBar} hide-select-feature .initialDisplayMode=${i} @arcgisClose=${() => this._handleFeaturesClose()} @arcgisPropertyChange=${this._handleFeaturesPropertyChange} open .referenceElement=${this.referenceElement} .view=${this.view} ${h(this._featuresComponentRefChange)}></arcgis-features>`;
|
|
337
344
|
}
|
|
338
345
|
renderAddSpatialFooter() {
|
|
339
|
-
const { mode: e, _messages: t, selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o =
|
|
346
|
+
const { mode: e, _messages: t, selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = _(t.warnings.exceededDisplayLimit, {
|
|
340
347
|
limit: this._displayLimit.toString()
|
|
341
|
-
}),
|
|
342
|
-
return r`${s && r`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this._handleAddSpatialCancelClick()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && r`<calcite-button width=full slot=footer appearance=solid @click=${() => this._handleAddSpatialAddClick()} .disabled=${
|
|
348
|
+
}), c = i ? !(a?.isUtilityLayer(i.layer) ?? !0) : !0;
|
|
349
|
+
return r`${s && r`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this._handleAddSpatialCancelClick()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && r`<calcite-button width=full slot=footer appearance=solid @click=${() => this._handleAddSpatialAddClick()} .disabled=${c}>${t.buttons.add}</calcite-button>` || ""}`;
|
|
343
350
|
}
|
|
344
351
|
renderStartingPointSelection() {
|
|
345
352
|
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationStartingRefChange)}></arcgis-utility-network-trace-location>`;
|
|
@@ -360,22 +367,25 @@ class A extends T {
|
|
|
360
367
|
}
|
|
361
368
|
renderSubnetworkSelection() {
|
|
362
369
|
const { compatibleSubnetworkNames: e } = this, t = this._messages.labels.subnetworkName;
|
|
363
|
-
return this.isSubnetworkNameTraceSelected ? this._subnetworkNamesState === "loading" ? r`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? r`<calcite-block .heading=${t} .label=${t} expanded>${e.length >
|
|
370
|
+
return this.isSubnetworkNameTraceSelected ? this._subnetworkNamesState === "loading" ? r`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? r`<calcite-block .heading=${t} .label=${t} expanded>${e.length > A ? this.renderSubnetworkNameInput() : this.renderSubnetworkSelectList()}</calcite-block>` : this.renderError(this._messages.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
|
|
364
371
|
}
|
|
365
372
|
renderSubnetworkInfo() {
|
|
366
373
|
const { _messages: e, selectedNamedTraceConfiguration: t, _unTraceConfiguration: i } = this;
|
|
367
374
|
return i && t?.traceType && this._subnetworkTraceTypes.has(t.traceType) ? r`<calcite-block id=subnetwork-info-block expanded .label=${e.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info .namedTraceConfig=${t}></arcgis-utility-network-subnetwork-info></calcite-block>` : null;
|
|
368
375
|
}
|
|
369
376
|
renderContent() {
|
|
370
|
-
const { utilityNetworks: e } = this,
|
|
371
|
-
|
|
377
|
+
const { utilityNetworks: e } = this, { noTraceConfigurationError: t, utilityNetworkLoadFailed: i } = this._messages.errors, a = this.selectedNamedTraceConfiguration?.traceConfiguration, s = e && e.length > 1 ? this.renderUtilityNetworkSelection() : null;
|
|
378
|
+
let o;
|
|
379
|
+
this.selectedUtilityNetwork?.loadError ? o = this.renderError(i, !1, "exclamation-mark-triangle") : this.traceConfigurations.length || (o = this.renderError(t, !1, "exclamation-mark-triangle"));
|
|
380
|
+
const c = r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, b = a ? r`${this.showStartingPoints ? this.renderStartingPointSelection() : null}${this.showStoppingPoints ? this.renderStoppingPointSelection() : null}${this.renderBarrierSelection()}` : null;
|
|
381
|
+
return r`<calcite-block-group .label=${this._messages.labels.traceInputs}>${s}${o ?? r`${c}${b}`}</calcite-block-group>`;
|
|
372
382
|
}
|
|
373
383
|
render() {
|
|
374
384
|
const { mode: e } = this;
|
|
375
|
-
return r`<calcite-panel>${e === "add-spatial-feature" ? this.renderCandidateFeatures() :
|
|
385
|
+
return r`<calcite-panel>${e === "add-spatial-feature" ? this.renderCandidateFeatures() : null}<calcite-flow .hidden=${e === "add-spatial-feature"}>${this.renderDefaultMode()}${this.renderSpatialSelectInstructions()}</calcite-flow>${e !== "default" ? this.renderAddSpatialFooter() : null}</calcite-panel>`;
|
|
376
386
|
}
|
|
377
387
|
}
|
|
378
|
-
|
|
388
|
+
y("arcgis-utility-network-trace-inputs", M);
|
|
379
389
|
export {
|
|
380
|
-
|
|
390
|
+
M as ArcgisUtilityNetworkTraceInputs
|
|
381
391
|
};
|
|
@@ -5,29 +5,30 @@ import "@arcgis/core/core/Error.js";
|
|
|
5
5
|
import "@arcgis/core/Graphic.js";
|
|
6
6
|
import { LitElement as f, createEvent as o } from "@arcgis/lumina";
|
|
7
7
|
import { log as d, composeMissingPropertyMessage as g, composeEmptyPropertyMessage as _ } from "@arcgis/toolkit/log";
|
|
8
|
-
import { css as v, html as
|
|
8
|
+
import { css as v, html as l } from "lit";
|
|
9
9
|
import { createRef as b, ref as u } from "lit/directives/ref.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { q as
|
|
12
|
-
|
|
10
|
+
import { u as R } from "../../chunks/useT9n.js";
|
|
11
|
+
import { q as C, c as w } from "../../chunks/layer-utils.js";
|
|
12
|
+
import { l as $ } from "../../chunks/async-utils.js";
|
|
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;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)}`, h = {
|
|
13
14
|
dirtyAreasDiscovered: -2147208511,
|
|
14
15
|
noValidControllers: -2147208935
|
|
15
16
|
};
|
|
16
|
-
class
|
|
17
|
+
class T extends f {
|
|
17
18
|
constructor() {
|
|
18
|
-
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages =
|
|
19
|
-
const a = this.utilityNetwork?.getLayerIdBySourceId(e), s = this._getLayerByLayerId(a),
|
|
19
|
+
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = R({ blocking: !0 }), this._elementsWithoutLayer = [], this._popoverRef = b(), this._layerIdToFeatures = /* @__PURE__ */ new Map(), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._subtypeCodeToFeatures = /* @__PURE__ */ new Map(), this._sourceIdToElements = /* @__PURE__ */ new Map(), this._unLayers = [], this._queryFeaturesOnLayer = async ([e, t]) => {
|
|
20
|
+
const a = this.utilityNetwork?.getLayerIdBySourceId(e), s = this._getLayerByLayerId(a), r = this._getElementsUniqueByGlobalId(t);
|
|
20
21
|
if (a == null || !s) {
|
|
21
|
-
this._elementsWithoutLayer.push(...
|
|
22
|
+
this._elementsWithoutLayer.push(...r);
|
|
22
23
|
return;
|
|
23
24
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const { features: n } = await
|
|
25
|
+
const i = s.createQuery();
|
|
26
|
+
i.gdbVersion = this.utilityNetwork?.gdbVersion, i.objectIds = r.map((c) => c.objectId), i.outFields = ["*"];
|
|
27
|
+
const { features: n } = await C(s, i);
|
|
27
28
|
n.forEach((c) => {
|
|
28
29
|
const m = c.layer;
|
|
29
30
|
c.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (c.popupTemplate = m.createPopupTemplate());
|
|
30
|
-
}),
|
|
31
|
+
}), w(s) ? n.forEach((c) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, c.layer.subtypeCode, c)) : this._layerIdToFeatures.set(a, n);
|
|
31
32
|
}, this._aggregateGeometryRefChange = (e) => {
|
|
32
33
|
e && (this._aggregatedGeometryComponentElement = e);
|
|
33
34
|
}, this._featuresRefChange = (e) => {
|
|
@@ -38,7 +39,7 @@ class E extends f {
|
|
|
38
39
|
this.properties = { _aggregatedGeometryDisabled: 16, _featuresComponentElement: 16, aggregatedGeometryGraphicsColor: 0, hideActionBar: 5, hideFeatureResults: 5, featuresFromSelectedLayer: 0, isElementsSelected: 5, layers: 0, messageOverrides: 0, numResults: 32, referenceElement: 1, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
|
|
39
40
|
}
|
|
40
41
|
static {
|
|
41
|
-
this.styles =
|
|
42
|
+
this.styles = E;
|
|
42
43
|
}
|
|
43
44
|
get numResults() {
|
|
44
45
|
return this.traceResultFeatures.length + this._elementsWithoutLayer.length;
|
|
@@ -73,7 +74,7 @@ class E extends f {
|
|
|
73
74
|
const { _layerIdToLayer: t, _unLayers: a } = this;
|
|
74
75
|
if (t.get(e))
|
|
75
76
|
return t.get(e);
|
|
76
|
-
const s = a.find((
|
|
77
|
+
const s = a.find((r) => "layerId" in r && r.layerId === e);
|
|
77
78
|
return s && t.set(e, s), s;
|
|
78
79
|
}
|
|
79
80
|
_getElementsUniqueByGlobalId(e) {
|
|
@@ -88,9 +89,16 @@ class E extends f {
|
|
|
88
89
|
const { layers: e, utilityNetwork: t } = this;
|
|
89
90
|
if (!t)
|
|
90
91
|
return;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
try {
|
|
93
|
+
t.loaded || (this.state = "loading", await t.load());
|
|
94
|
+
} catch (r) {
|
|
95
|
+
$(r, this, "Error while loading the selected utility network");
|
|
96
|
+
}
|
|
97
|
+
this._unLayers = e.filter((r) => t.isUtilityLayer(r));
|
|
98
|
+
const s = this._unLayers.filter((r) => !r.loaded).map((r) => r.load());
|
|
99
|
+
s.length > 0 && (this.state = "loading", (await Promise.allSettled(s)).forEach((i) => {
|
|
100
|
+
i.status === "rejected" && d("error", this, `Failed to load layer. Reason: ${i.reason}`);
|
|
101
|
+
}));
|
|
94
102
|
}
|
|
95
103
|
async _queryTraceResultsFeatures() {
|
|
96
104
|
const e = Array.from(this._sourceIdToElements.entries());
|
|
@@ -98,14 +106,14 @@ class E extends f {
|
|
|
98
106
|
return;
|
|
99
107
|
this.state = "loading";
|
|
100
108
|
const t = e.map(this._queryFeaturesOnLayer);
|
|
101
|
-
(await Promise.allSettled(t)).forEach((
|
|
102
|
-
if (
|
|
109
|
+
(await Promise.allSettled(t)).forEach((i, n) => {
|
|
110
|
+
if (i.status === "rejected") {
|
|
103
111
|
const [c] = e[n];
|
|
104
|
-
d("error", this, `Failed to query features for source ${c}. Reason: ${
|
|
112
|
+
d("error", this, `Failed to query features for source ${c}. Reason: ${i.reason}`);
|
|
105
113
|
}
|
|
106
114
|
});
|
|
107
|
-
const s = Array.from(this._layerIdToFeatures.values()),
|
|
108
|
-
this.traceResultFeatures = s.concat(
|
|
115
|
+
const s = Array.from(this._layerIdToFeatures.values()), r = Array.from(this._subtypeCodeToFeatures.values());
|
|
116
|
+
this.traceResultFeatures = s.concat(r).flat();
|
|
109
117
|
}
|
|
110
118
|
_setSourceIdToElements() {
|
|
111
119
|
this.traceResult.elements?.forEach((e) => this._addOrCreateMapValue(this._sourceIdToElements, e.networkSourceId, e));
|
|
@@ -116,39 +124,39 @@ class E extends f {
|
|
|
116
124
|
return this._renderErrorLanding(e);
|
|
117
125
|
if (!t)
|
|
118
126
|
return this._renderNoTraceLanding();
|
|
119
|
-
const { elements: a, globalFunctionResults: s, aggregatedGeometry:
|
|
120
|
-
return
|
|
127
|
+
const { elements: a, globalFunctionResults: s, aggregatedGeometry: r } = t, i = !a.length && !s.length && !r, n = a.length > 0 && !s.length && !r;
|
|
128
|
+
return i ? this._renderNoResultsLanding() : this.state === "loading" ? this._renderGettingResults() : this.hideFeatureResults && n ? this._renderFeaturesAreHidden() : this.isElementsSelected || n ? l`<arcgis-features .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${this.traceResultFeatures} .hideActionBar=${this.hideActionBar} .hideCloseButton=${n} hide-select-feature initial-display-mode=list @arcgisClose=${() => this.isElementsSelected = !1} open .referenceElement=${this.referenceElement} .view=${this.view} ${u(this._featuresRefChange)}></arcgis-features>` : this._renderLanding(t);
|
|
121
129
|
}
|
|
122
130
|
_renderGettingResults() {
|
|
123
|
-
return
|
|
131
|
+
return l`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`;
|
|
124
132
|
}
|
|
125
133
|
_renderLanding(e) {
|
|
126
134
|
const { elements: t, globalFunctionResults: a, aggregatedGeometry: s } = e;
|
|
127
|
-
return
|
|
135
|
+
return l`<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>`;
|
|
128
136
|
}
|
|
129
137
|
_renderAggregatedGeometry(e) {
|
|
130
|
-
return
|
|
138
|
+
return l`<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._popoverRef)}><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
|
|
131
139
|
const a = t.target.value;
|
|
132
140
|
this.arcgisAggregatedGeometryGraphicsColorChange.emit(a);
|
|
133
141
|
}} .disabled=${this._aggregatedGeometryDisabled}></calcite-color-picker></calcite-popover></div>`;
|
|
134
142
|
}
|
|
135
143
|
_renderFeaturesAreHidden() {
|
|
136
|
-
return
|
|
144
|
+
return l`<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div>`;
|
|
137
145
|
}
|
|
138
146
|
_renderNoSelectableResults() {
|
|
139
|
-
return
|
|
147
|
+
return l`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`;
|
|
140
148
|
}
|
|
141
149
|
_renderElementsResults() {
|
|
142
|
-
return
|
|
150
|
+
return l`<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.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
143
151
|
}
|
|
144
152
|
_renderFunctionsResults(e) {
|
|
145
|
-
return
|
|
146
|
-
const { functionName: a, networkAttributeName: s, functionType:
|
|
147
|
-
return
|
|
153
|
+
return l`<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 && t.functionType != null).map((t) => {
|
|
154
|
+
const { functionName: a, networkAttributeName: s, functionType: r, result: i } = t, n = a || `${s} ${r}`;
|
|
155
|
+
return l`<calcite-table-row><calcite-table-cell>${n}</calcite-table-cell><calcite-table-cell>${i}</calcite-table-cell></calcite-table-row>`;
|
|
148
156
|
})}</calcite-table>`;
|
|
149
157
|
}
|
|
150
158
|
_renderTraceResultsHeading() {
|
|
151
|
-
return
|
|
159
|
+
return l`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle ? l`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>` : null}</div>`;
|
|
152
160
|
}
|
|
153
161
|
_renderErrorLanding(e) {
|
|
154
162
|
let t = e.message;
|
|
@@ -160,16 +168,16 @@ class E extends f {
|
|
|
160
168
|
t = this._messages.traceErrors.noValidControllers;
|
|
161
169
|
break;
|
|
162
170
|
}
|
|
163
|
-
return
|
|
171
|
+
return l`<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>`;
|
|
164
172
|
}
|
|
165
173
|
_renderNoResultsLanding() {
|
|
166
|
-
return
|
|
174
|
+
return l`<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>`;
|
|
167
175
|
}
|
|
168
176
|
_renderNoTraceLanding() {
|
|
169
|
-
return
|
|
177
|
+
return l`<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>`;
|
|
170
178
|
}
|
|
171
179
|
}
|
|
172
|
-
p("arcgis-utility-network-trace-results",
|
|
180
|
+
p("arcgis-utility-network-trace-results", T);
|
|
173
181
|
export {
|
|
174
|
-
|
|
182
|
+
T as ArcgisUtilityNetworkTraceResults
|
|
175
183
|
};
|