@arcgis/map-components 5.0.0-next.163 → 5.0.0-next.165
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/27EX7BAT.js +2 -0
- package/dist/cdn/{ANP7PYGJ.js → 2FBKLGCE.js} +1 -1
- package/dist/cdn/{U3H7EVCU.js → 2GYHEEJC.js} +1 -1
- package/dist/cdn/2KXVCJMQ.js +2 -0
- package/dist/cdn/{K4PC3ILQ.js → 2TODV24L.js} +1 -1
- package/dist/cdn/{MAM7YHLA.js → 2VVXUYOF.js} +1 -1
- package/dist/cdn/{QUHJMEBB.js → 2YI467ME.js} +1 -1
- package/dist/cdn/34S3BZS7.js +2 -0
- package/dist/cdn/{JCW65STL.js → 36NT6EOS.js} +1 -1
- package/dist/cdn/{7NOD6U2Y.js → 3K3Q3L5Z.js} +1 -1
- package/dist/cdn/{ORVYHFUJ.js → 3L6KP67K.js} +1 -1
- package/dist/cdn/{UELD2T53.js → 3O5MUEQE.js} +1 -1
- package/dist/cdn/{ILFME5US.js → 3RF66PN5.js} +1 -1
- package/dist/cdn/{PYMUS3H4.js → 46XRVUAH.js} +1 -1
- package/dist/cdn/{CO7UZYM2.js → 4IFHPHVF.js} +1 -1
- package/dist/cdn/{42WUBROP.js → 4OMTR2QQ.js} +1 -1
- package/dist/cdn/{RZ4T32PU.js → 4PK3GJ4F.js} +1 -1
- package/dist/cdn/{BGG5VIEL.js → 53LWO7HI.js} +1 -1
- package/dist/cdn/{TGUIWWDN.js → 5M4DDFN6.js} +1 -1
- package/dist/cdn/{JWT66RP2.js → 5PG27K3A.js} +1 -1
- package/dist/cdn/{U4TAMNG3.js → 5UFFQJSU.js} +1 -1
- package/dist/cdn/{TQRR2FH6.js → 5Y6NI7HQ.js} +1 -1
- package/dist/cdn/{KAZBQ6OA.js → 67G4OVIE.js} +1 -1
- package/dist/cdn/{QKSSTPS3.js → 7INPCVND.js} +1 -1
- package/dist/cdn/{LE7AXIL2.js → 7QF7HEDI.js} +1 -1
- package/dist/cdn/{7AGJFQHK.js → AAH2GFLP.js} +1 -1
- package/dist/cdn/AC3NQPKC.js +2 -0
- package/dist/cdn/{26SX6MF4.js → AGY724TJ.js} +1 -1
- package/dist/cdn/AHTIA2R6.js +2 -0
- package/dist/cdn/{25HB2UBJ.js → AIRTNDBH.js} +1 -1
- package/dist/cdn/{JZXMWXVD.js → AOZ2GPBD.js} +1 -1
- package/dist/cdn/{PZ2JPHRS.js → AX67NWFX.js} +1 -1
- package/dist/cdn/{WDTFIXMM.js → BHWPGG7Z.js} +1 -1
- package/dist/cdn/{F2HPTFLQ.js → BPZSPB4L.js} +1 -1
- package/dist/cdn/{67DKLGTW.js → BQDOPZG6.js} +1 -1
- package/dist/cdn/{H5RGMC7S.js → BYVF7WOC.js} +1 -1
- package/dist/cdn/{KGJGLAWM.js → CAW2JA3E.js} +1 -1
- package/dist/cdn/{JUHCPSPF.js → CAYSZWRK.js} +1 -1
- package/dist/cdn/{CSU7GLED.js → CBR6PUEY.js} +1 -1
- package/dist/cdn/{CEB3VR24.js → CFZXYFU7.js} +1 -1
- package/dist/cdn/{R2FIOZIL.js → CGRFWSSV.js} +1 -1
- package/dist/cdn/{KWIBK4I5.js → CGROBDHE.js} +1 -1
- package/dist/cdn/{N7QKWBTM.js → COEDZB6D.js} +1 -1
- package/dist/cdn/{BKYII5LQ.js → CQ6KMSIO.js} +1 -1
- package/dist/cdn/CXJGKZ7S.js +2 -0
- package/dist/cdn/{5LG4S2WV.js → DGDL4K6G.js} +1 -1
- package/dist/cdn/{4ESEDU4X.js → DHOVN4JA.js} +1 -1
- package/dist/cdn/{IQ7EVFBF.js → DI66GYDO.js} +1 -1
- package/dist/cdn/{M3AVHGBC.js → DMUVML6L.js} +1 -1
- package/dist/cdn/{ZOBY4YF2.js → DXJ7TMEQ.js} +1 -1
- package/dist/cdn/EGCQFNG3.js +2 -0
- package/dist/cdn/EOFEVRA3.js +2 -0
- package/dist/cdn/{XCDPFMHG.js → FFKZELBO.js} +1 -1
- package/dist/cdn/{EO66UQLI.js → FNAMDUKT.js} +1 -1
- package/dist/cdn/{HYBTGX3N.js → FOLIPPYI.js} +1 -1
- package/dist/cdn/{4WMWNIPN.js → FZVLJT66.js} +1 -1
- package/dist/cdn/{NMUWFJ4U.js → GD4LUFAZ.js} +1 -1
- package/dist/cdn/{WV6XSMZW.js → GK5T2FD6.js} +1 -1
- package/dist/cdn/{AJ64UYFM.js → GNCHWVNF.js} +1 -1
- package/dist/cdn/{IL56ZRDO.js → GOBIBDSA.js} +1 -1
- package/dist/cdn/HOBC5TEW.js +2 -0
- package/dist/cdn/{YLSIF5R2.js → HVRIARCB.js} +1 -1
- package/dist/cdn/{7WJ6TNOT.js → IEH4OYWP.js} +1 -1
- package/dist/cdn/IMPTONCA.js +2 -0
- package/dist/cdn/{RYKRMJMK.js → IPCQCFE3.js} +1 -1
- package/dist/cdn/{FRGWWVJK.js → J2N4NGSM.js} +1 -1
- package/dist/cdn/{F6QNNUIN.js → J4BNEHAO.js} +1 -1
- package/dist/cdn/JDP3YCBM.js +2 -0
- package/dist/cdn/{RE2BXNZ3.js → JPZMCGTS.js} +1 -1
- package/dist/cdn/{2FTXKTA4.js → JW5X664C.js} +1 -1
- package/dist/cdn/{NXZJ43G3.js → JYJBSAJT.js} +1 -1
- package/dist/cdn/{RB7GCEEB.js → K6Z5GBWL.js} +1 -1
- package/dist/cdn/{6424II7L.js → KBQK73Z2.js} +1 -1
- package/dist/cdn/{UQKKALKO.js → KCQB4NNK.js} +1 -1
- package/dist/cdn/{DT74YNQP.js → KRVZWYAS.js} +1 -1
- package/dist/cdn/{OFQNQF6N.js → KVJKF3VJ.js} +1 -1
- package/dist/cdn/{J4XU75P7.js → KXTLXAZQ.js} +1 -1
- package/dist/cdn/{Z6LXLPK7.js → LRUQSH7S.js} +1 -1
- package/dist/cdn/{X7QWBVC2.js → M3LMLGTS.js} +1 -1
- package/dist/cdn/{SQFVC4KA.js → MJBV536L.js} +1 -1
- package/dist/cdn/{FA3Z6QOE.js → MQYKZ2MY.js} +1 -1
- package/dist/cdn/{AX23Q2XH.js → N7JZUN7G.js} +1 -1
- package/dist/cdn/{ESNK6MCY.js → NMKZ77A3.js} +1 -1
- package/dist/cdn/{6IPVLMFQ.js → OJCRKH55.js} +1 -1
- package/dist/cdn/{WLNRPTCN.js → OKSHNWO7.js} +1 -1
- package/dist/cdn/{HKVQWRPL.js → OROETUZO.js} +1 -1
- package/dist/cdn/OY3WQBQM.js +2 -0
- package/dist/cdn/{KRVBBG4M.js → QGNFMBBV.js} +1 -1
- package/dist/cdn/{UW3G2BPO.js → QNCFWECI.js} +1 -1
- package/dist/cdn/{B7SDETM6.js → QSOGE4GS.js} +1 -1
- package/dist/cdn/{OKRTKYGF.js → QTOSV4XU.js} +1 -1
- package/dist/cdn/RTC24EVK.js +2 -0
- package/dist/cdn/{ONPN5M3Z.js → RTLNV5MH.js} +1 -1
- package/dist/cdn/RUC6NG6L.js +2 -0
- package/dist/cdn/RYH43ZOR.js +2 -0
- package/dist/cdn/{RMFIN5AS.js → RZDIL4FK.js} +1 -1
- package/dist/cdn/{NWXN5M4S.js → SAGJDTGS.js} +1 -1
- package/dist/cdn/SI3PITPE.js +2 -0
- package/dist/cdn/{AJIZTCGT.js → SS3BP5JY.js} +1 -1
- package/dist/cdn/{RU5U2DVA.js → STZ7NN7N.js} +1 -1
- package/dist/cdn/{T3JWZEB6.js → TBPQMJ3U.js} +1 -1
- package/dist/cdn/TCNK7NLA.js +2 -0
- package/dist/cdn/{3HYCJV4V.js → UCRB5RGH.js} +1 -1
- package/dist/cdn/{GAH6OGQE.js → UEUYXTE3.js} +1 -1
- package/dist/cdn/{LT5ALQM5.js → UFQOOCIO.js} +1 -1
- package/dist/cdn/{6IUQ5UHX.js → UFWKXIL5.js} +1 -1
- package/dist/cdn/UJXCCQWE.js +2 -0
- package/dist/cdn/{FD4A66OJ.js → V2QY34FP.js} +1 -1
- package/dist/cdn/{ZVTV4UKT.js → V4E5MPHA.js} +1 -1
- package/dist/cdn/{SK6O74LF.js → VAXL3OO6.js} +1 -1
- package/dist/cdn/{AHGLOKZI.js → VB66GDWY.js} +1 -1
- package/dist/cdn/{INYYRLED.js → VEBPC4NS.js} +1 -1
- package/dist/cdn/W627TIVM.js +2 -0
- package/dist/cdn/{DB2NOQ3D.js → WVRJP4IF.js} +1 -1
- package/dist/cdn/{QF7RABZH.js → WX4UNUXQ.js} +1 -1
- package/dist/cdn/{UBGE4QNR.js → WXQJ3OSA.js} +1 -1
- package/dist/cdn/{CGASUBOS.js → WXXTKBUN.js} +1 -1
- package/dist/cdn/{IKOLSNGV.js → WZVTF32R.js} +1 -1
- package/dist/cdn/X25QBU47.js +2 -0
- package/dist/cdn/{WBGZAAEK.js → X446GLUI.js} +1 -1
- package/dist/cdn/{G4FP7GXM.js → X4DF5NLE.js} +1 -1
- package/dist/cdn/{PQ5PGLJM.js → X4M3A7NY.js} +1 -1
- package/dist/cdn/{AEMKZZZS.js → X4PMY7Z5.js} +1 -1
- package/dist/cdn/{5DEOSU7J.js → X72XPU7O.js} +1 -1
- package/dist/cdn/{XIOIZK7A.js → X7Z2SLR4.js} +1 -1
- package/dist/cdn/{L5JWLRD3.js → XFCXD5BV.js} +1 -1
- package/dist/cdn/{D4PJU376.js → XL4ZVZQO.js} +1 -1
- package/dist/cdn/{SDWQW3ZX.js → XT5EYUOZ.js} +1 -1
- package/dist/cdn/{GCFNRINR.js → XUMBGLCM.js} +1 -1
- package/dist/cdn/{2AHY7O7C.js → Y7HAR5TE.js} +1 -1
- package/dist/cdn/{7OOAOM5T.js → YBPTQSLR.js} +1 -1
- package/dist/cdn/{YXYCWJFF.js → YGFR3GKE.js} +1 -1
- package/dist/cdn/{75LFOVPY.js → YJQ24JUD.js} +1 -1
- package/dist/cdn/{E5SXPWDJ.js → YOZLJOIM.js} +1 -1
- package/dist/cdn/{522HNMQI.js → YQ7TCV5A.js} +1 -1
- package/dist/cdn/{MD36SH63.js → YZSRJTGJ.js} +1 -1
- package/dist/cdn/{CXHSL2Y4.js → ZFHIU6DT.js} +1 -1
- package/dist/cdn/ZNBKMZP7.js +2 -0
- package/dist/cdn/{GMR2QJNU.js → ZY32LRC5.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/measurementUtils.js +3 -3
- package/dist/components/arcgis-area-measurement-2d/customElement.js +62 -74
- package/dist/components/arcgis-area-measurement-3d/customElement.js +52 -64
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +59 -71
- package/dist/components/arcgis-directions/customElement.d.ts +17 -0
- package/dist/components/arcgis-directions/customElement.js +5 -5
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +58 -70
- package/dist/components/arcgis-elevation-profile/customElement.js +100 -111
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +22 -22
- package/dist/components/arcgis-feature/customElement.js +6 -6
- package/dist/components/arcgis-feature-table/customElement.d.ts +57 -2
- package/dist/components/arcgis-feature-table/customElement.js +28 -13
- package/dist/components/arcgis-feature-templates/customElement.d.ts +3 -0
- package/dist/components/arcgis-feature-templates/customElement.js +2 -2
- 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.js +46 -52
- package/dist/components/arcgis-link-chart/customElement.js +10 -15
- package/dist/components/arcgis-map/customElement.js +1 -6
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +51 -47
- package/dist/components/arcgis-popup/customElement.js +106 -99
- package/dist/components/arcgis-popup/types.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +10 -0
- 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-scene/customElement.js +8 -13
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +12 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +7 -2
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +74 -14
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +47 -40
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +12 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +80 -65
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +4 -0
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +17 -14
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +13 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +39 -26
- package/dist/components/arcgis-volume-measurement/customElement.js +84 -84
- package/dist/components/types.d.ts +5 -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 +21 -21
- package/dist/types/lumina.d.ts +14 -14
- package/dist/types/preact.d.ts +14 -14
- package/dist/types/react.d.ts +14 -14
- package/dist/types/stencil.d.ts +14 -14
- package/package.json +4 -4
- package/dist/cdn/3URKZO5O.js +0 -2
- package/dist/cdn/55TRWAT7.js +0 -2
- package/dist/cdn/BHPXKX47.js +0 -2
- package/dist/cdn/D4LTASH2.js +0 -2
- package/dist/cdn/FKQSJXNW.js +0 -2
- package/dist/cdn/H7O5I4IF.js +0 -2
- package/dist/cdn/I5M2Z7WS.js +0 -2
- package/dist/cdn/L6YZXUBB.js +0 -2
- package/dist/cdn/LEUHIPSJ.js +0 -2
- package/dist/cdn/NZXDNMVC.js +0 -2
- package/dist/cdn/ODGGFBDK.js +0 -2
- package/dist/cdn/P76K34HQ.js +0 -2
- package/dist/cdn/P7PWOUNZ.js +0 -2
- package/dist/cdn/Q4B4MXH4.js +0 -2
- package/dist/cdn/RN57AN5P.js +0 -2
- package/dist/cdn/SKIP3GUP.js +0 -2
- package/dist/cdn/UNLAUFXF.js +0 -2
- package/dist/cdn/URUFNID2.js +0 -2
- package/dist/cdn/WREEAAEV.js +0 -2
- package/dist/cdn/WTTBFFC2.js +0 -2
- package/dist/cdn/Y4RMI55P.js +0 -2
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as L, html as p } from "lit";
|
|
4
4
|
import * as _ from "@arcgis/core/geometry/operators/cutOperator.js";
|
|
5
5
|
import * as g from "@arcgis/core/geometry/operators/lengthOperator.js";
|
|
6
6
|
import * as y from "@arcgis/core/geometry/operators/projectOperator.js";
|
|
7
7
|
import v from "@arcgis/core/geometry/Polyline.js";
|
|
8
8
|
import S from "@arcgis/core/geometry/SpatialReference.js";
|
|
9
|
-
import
|
|
9
|
+
import A from "@arcgis/core/Graphic.js";
|
|
10
10
|
import m from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
11
11
|
import b from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
|
|
12
|
-
import { LitElement as
|
|
12
|
+
import { LitElement as x, createEvent as w } from "@arcgis/lumina";
|
|
13
13
|
import { log as c } from "@arcgis/toolkit/log";
|
|
14
14
|
import { u as I } from "../../chunks/useT9n.js";
|
|
15
|
-
const C =
|
|
16
|
-
class F extends
|
|
15
|
+
const C = L`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`;
|
|
16
|
+
class F extends x {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(...arguments), this.messages = I({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.arcgisTraceLocationChange = w(), this.arcgisTraceLocationSelectEnd = w(), this.arcgisTraceLocationSelectStart = w();
|
|
18
|
+
super(...arguments), this.messages = I({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.autoDestroyDisabled = !1, this.arcgisTraceLocationChange = w(), this.arcgisTraceLocationSelectEnd = w(), this.arcgisTraceLocationSelectStart = w();
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
|
-
this.properties = { isSelectWaiting: 16, beforeTraceLocationSelectStart: 0, afterHitTest: 0, view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, spatialTolerance: 9, utilityNetwork: 0 };
|
|
21
|
+
this.properties = { isSelectWaiting: 16, beforeTraceLocationSelectStart: 0, afterHitTest: 0, view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, spatialTolerance: 9, autoDestroyDisabled: 5, utilityNetwork: 0 };
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
24
24
|
this.styles = C;
|
|
25
25
|
}
|
|
26
|
+
async destroy() {
|
|
27
|
+
this._resetAfterSketch(!1), await this.manager.destroy();
|
|
28
|
+
}
|
|
26
29
|
async load() {
|
|
27
30
|
y.isLoaded() || await y.load();
|
|
28
31
|
}
|
|
@@ -46,8 +49,8 @@ class F extends A {
|
|
|
46
49
|
const d = _.execute(a, h);
|
|
47
50
|
if (d.length > 0) {
|
|
48
51
|
const T = g.execute(a, { unit: "feet" });
|
|
49
|
-
let
|
|
50
|
-
return d[0].paths[0][0][0] === a.paths[0][0][0] ?
|
|
52
|
+
let f;
|
|
53
|
+
return d[0].paths[0][0][0] === a.paths[0][0][0] ? f = g.execute(d[0], { unit: "feet" }) : f = g.execute(d[1], { unit: "feet" }), f / T;
|
|
51
54
|
}
|
|
52
55
|
return c("warn", this, "Unable to cut the source geometry with the flag geometry."), 0.5;
|
|
53
56
|
}
|
|
@@ -114,7 +117,7 @@ class F extends A {
|
|
|
114
117
|
const n = t.geometry?.type;
|
|
115
118
|
if (this.traceLocations?.some((l) => l.traceLocation.globalId === e) && n !== "polyline")
|
|
116
119
|
return c("warn", this, "A flag with the same globalId already exists."), null;
|
|
117
|
-
const o = this._createFlagSymbol(), i = new
|
|
120
|
+
const o = this._createFlagSymbol(), i = new A({
|
|
118
121
|
geometry: r,
|
|
119
122
|
symbol: o,
|
|
120
123
|
attributes: t.attributes
|
|
@@ -275,13 +278,13 @@ class F extends A {
|
|
|
275
278
|
}
|
|
276
279
|
renderAddLocationBlock() {
|
|
277
280
|
const { traceLocationType: e, messages: t, traceLocations: r } = this, a = e === "starting-point" ? t.types.startingPoint : e === "barrier" ? t.types.barrier : t.types.stoppingPoint, s = a.heading, n = a.description, o = a.buttonText;
|
|
278
|
-
return
|
|
281
|
+
return p`<calcite-block .heading=${s} .label=${s} expanded .description=${n}>${r?.length ? p`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>` : null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e}></arcgis-utility-network-trace-location-list><div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${o} @click=${() => this._handleAddButtonClick()}>${o}</calcite-button></div></calcite-block>`;
|
|
279
282
|
}
|
|
280
283
|
render() {
|
|
281
|
-
return
|
|
284
|
+
return p`<div class="root">${this.renderAddLocationBlock()}</div>`;
|
|
282
285
|
}
|
|
283
286
|
}
|
|
284
|
-
|
|
287
|
+
k("arcgis-utility-network-trace-location", F);
|
|
285
288
|
export {
|
|
286
289
|
F as ArcgisUtilityNetworkTraceLocation
|
|
287
290
|
};
|
|
@@ -87,6 +87,16 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
87
87
|
unknown: string;
|
|
88
88
|
}>;
|
|
89
89
|
accessor aggregatedGeometryGraphicsColor: Color;
|
|
90
|
+
/**
|
|
91
|
+
* If true, the component will not be destroyed automatically when it is
|
|
92
|
+
* disconnected from the document. This is useful when you want to move the
|
|
93
|
+
* component to a different place on the page, or temporarily hide it. If this
|
|
94
|
+
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#destroy) method when you are done to
|
|
95
|
+
* prevent memory leaks.
|
|
96
|
+
*
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
accessor autoDestroyDisabled: boolean;
|
|
90
100
|
get featuresFromSelectedLayer(): Graphic[];
|
|
91
101
|
/** @default false */
|
|
92
102
|
accessor hideFeatureResults: boolean;
|
|
@@ -141,6 +151,9 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
141
151
|
accessor traceResultFeatures: Graphic[];
|
|
142
152
|
accessor utilityNetwork: UtilityNetwork | undefined;
|
|
143
153
|
accessor view: MapView | undefined;
|
|
154
|
+
clearAggregatedGeometryGraphics(): void;
|
|
155
|
+
/** Permanently destroy the component. */
|
|
156
|
+
destroy(): Promise<void>;
|
|
144
157
|
readonly arcgisAggregatedGeometryGraphicsColorChange: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
145
158
|
readonly arcgisHideGraphicsChange: import("@arcgis/lumina").TargetedEvent<this, boolean>;
|
|
146
159
|
readonly arcgisSelectedLayerChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
@@ -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 { LitElement as
|
|
10
|
-
import { log as u, composeMissingPropertyMessage as
|
|
11
|
-
import { css as
|
|
12
|
-
import { createRef as L, ref as T } from "lit/directives/ref.js";
|
|
9
|
+
import $ from "@arcgis/core/rest/support/FeatureSet.js";
|
|
10
|
+
import { LitElement as F, createEvent as o } from "@arcgis/lumina";
|
|
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
13
|
import { u as C } from "../../chunks/useT9n.js";
|
|
14
|
-
import { h as
|
|
15
|
-
const
|
|
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._defaultPopupTemplateEnabled = !0, this._messages = C({ blocking: !0 }), this._elementsWithoutLayer = [], this.
|
|
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]) => {
|
|
@@ -29,17 +29,21 @@ class E extends $ {
|
|
|
29
29
|
}
|
|
30
30
|
const l = s.createQuery();
|
|
31
31
|
l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = t.map((r) => r.objectId), l.outFields = ["*"];
|
|
32
|
-
const { features: c } =
|
|
32
|
+
const { features: c } = $.fromJSON(await b(s, l)), n = await Promise.all(c.map(async (r) => {
|
|
33
33
|
r.layer = s.type === "subtype-group" ? s.findSublayerForFeature(r) : s, r.origin = r.layer;
|
|
34
34
|
const d = r.layer;
|
|
35
35
|
if (r.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (r.popupTemplate = d.createPopupTemplate()), d && "getFeatureTitle" in d) {
|
|
36
|
-
const
|
|
37
|
-
return { feature: r, label:
|
|
36
|
+
const f = await d.getFeatureTitle(r) || y(r);
|
|
37
|
+
return { feature: r, label: f };
|
|
38
38
|
}
|
|
39
|
-
return { feature: r, label:
|
|
39
|
+
return { feature: r, label: y(r) };
|
|
40
40
|
}));
|
|
41
41
|
s.type === "subtype-group" ? n.forEach((r) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, r.feature.layer.subtypeCode, r)) : this._layerIdToFeatures.set(a, n);
|
|
42
|
-
}, this.
|
|
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;
|
|
@@ -50,14 +54,20 @@ class E extends $ {
|
|
|
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
|
-
this.styles =
|
|
60
|
+
this.styles = T;
|
|
57
61
|
}
|
|
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 E extends $ {
|
|
|
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 || u("warn", this,
|
|
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 E extends $ {
|
|
|
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());
|
|
@@ -140,8 +153,8 @@ class E extends $ {
|
|
|
140
153
|
if (this.state === "loading")
|
|
141
154
|
return this._renderGettingResults();
|
|
142
155
|
if (this.selectedFeature) {
|
|
143
|
-
const n = this.
|
|
144
|
-
return i`<arcgis-features .referenceElement=${this.referenceElement} .features=${r} .view=${this.view} open .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} @arcgisClose=${() => this.selectedFeature = void 0} ${
|
|
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
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>`;
|
|
@@ -154,7 +167,7 @@ class E extends $ {
|
|
|
154
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 i`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange}></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) => {
|
|
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>`;
|
|
@@ -203,7 +216,7 @@ class E extends $ {
|
|
|
203
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
|
};
|