@arcgis/map-components 5.1.8 → 5.1.9
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/{FS2XDJOF.js → 24IAZ4Q6.js} +1 -1
- package/dist/cdn/{2ZSZSIRP.js → 26VSOF3U.js} +1 -1
- package/dist/cdn/{JYFCGWED.js → 2CI4FFWJ.js} +1 -1
- package/dist/cdn/{GGQTYS2K.js → 2GSRB4EC.js} +1 -1
- package/dist/cdn/{WRG5QY7A.js → 2IOC5KTK.js} +1 -1
- package/dist/cdn/{BTX4QGMS.js → 2LMO2EHE.js} +1 -1
- package/dist/cdn/{D3MIE4DV.js → 2MF7WVYT.js} +1 -1
- package/dist/cdn/{JQFICS3Z.js → 2MNEA5J7.js} +1 -1
- package/dist/cdn/{JA44JUEW.js → 2P3ZEVJF.js} +1 -1
- package/dist/cdn/{2YWSMVUD.js → 32BFXJOB.js} +1 -1
- package/dist/cdn/{FVO3OJS3.js → 3HQYGJNY.js} +1 -1
- package/dist/cdn/{J5NKMBEV.js → 3JHEROLV.js} +1 -1
- package/dist/cdn/{I7NKZWW3.js → 3NCBURDH.js} +1 -1
- package/dist/cdn/{NVHWNZYB.js → 42NL2JOK.js} +1 -1
- package/dist/cdn/{PNUELJZ3.js → 4AQR4VJK.js} +1 -1
- package/dist/cdn/{2YVXERPP.js → 4CL2BN2P.js} +1 -1
- package/dist/cdn/{QGFJESHR.js → 4VNK7OGN.js} +1 -1
- package/dist/cdn/{63O3KOIL.js → 4Z24NJRB.js} +1 -1
- package/dist/cdn/{QG43WJ6N.js → 5BMZ4WHD.js} +1 -1
- package/dist/cdn/{XWKDRCHD.js → 5FGQ4Z2U.js} +1 -1
- package/dist/cdn/{EOWTQ7YQ.js → 5I7UJPHQ.js} +1 -1
- package/dist/cdn/{FFYGO424.js → 5MV4B2Q3.js} +1 -1
- package/dist/cdn/{4CRYORQ7.js → 6C3LLHD7.js} +1 -1
- package/dist/cdn/{76FATW22.js → 6IRWKMLR.js} +1 -1
- package/dist/cdn/{S6PIOUD2.js → 73ULLF2S.js} +1 -1
- package/dist/cdn/{QYUWQBFE.js → 77B7BUKJ.js} +1 -1
- package/dist/cdn/{IWJPKJPF.js → 7H7Q3PVT.js} +1 -1
- package/dist/cdn/{MOAWK5RA.js → 7KMJWPAJ.js} +1 -1
- package/dist/cdn/{H6L4MQ5S.js → 7NMLWPC4.js} +1 -1
- package/dist/cdn/{QVNDXVVB.js → AGOCGCC7.js} +1 -1
- package/dist/cdn/{PLDQNB75.js → AJRMXI2L.js} +1 -1
- package/dist/cdn/{Z432PZGB.js → AMKODRAJ.js} +1 -1
- package/dist/cdn/{OXTASHVZ.js → AZSYPFYS.js} +1 -1
- package/dist/cdn/{3AWXBIMS.js → B5RKNOJA.js} +1 -1
- package/dist/cdn/{SGBZZNUH.js → B7LIMLGY.js} +1 -1
- package/dist/cdn/{JWRJ2MM3.js → BAN457GX.js} +1 -1
- package/dist/cdn/{IGOURLJ7.js → BHN7KOII.js} +1 -1
- package/dist/cdn/{6IWNUE32.js → BPJGGDBG.js} +1 -1
- package/dist/cdn/{5KISCGRU.js → C34QCA5G.js} +1 -1
- package/dist/cdn/{DJSCG73Y.js → C3IL4Z4I.js} +1 -1
- package/dist/cdn/{NNZIGS3J.js → CD4DKR7I.js} +1 -1
- package/dist/cdn/{LMNGXOOU.js → CZ3D2LU6.js} +1 -1
- package/dist/cdn/{4IH72LHZ.js → DDDDLYT3.js} +1 -1
- package/dist/cdn/{ZYKWRVYT.js → DECSWJZX.js} +1 -1
- package/dist/cdn/{CG4773UQ.js → DFOICOFP.js} +1 -1
- package/dist/cdn/{TPMJTEPX.js → DIDIT3QH.js} +1 -1
- package/dist/cdn/{SIAYEB5Z.js → DOMD4DE5.js} +1 -1
- package/dist/cdn/{WGHJPFPD.js → DUJFJC5Z.js} +1 -1
- package/dist/cdn/{LECQTUYI.js → DW7LRJL4.js} +1 -1
- package/dist/cdn/{JXLPRGNM.js → DY4CEOZP.js} +1 -1
- package/dist/cdn/{JYIHR3NZ.js → DZDQC62F.js} +1 -1
- package/dist/cdn/{6NE3AZFV.js → EBGHAVRA.js} +1 -1
- package/dist/cdn/{QPDEEWKQ.js → EHTIZWBY.js} +1 -1
- package/dist/cdn/{SRYUEHE4.js → ELP5RYBT.js} +1 -1
- package/dist/cdn/{U3REZXX6.js → ENQIHWZC.js} +1 -1
- package/dist/cdn/{I5HA4YA7.js → EPIELE5S.js} +1 -1
- package/dist/cdn/{A43LIVZG.js → EUKYYAYE.js} +1 -1
- package/dist/cdn/{2HQ33A23.js → F53HGO3N.js} +1 -1
- package/dist/cdn/{MPQ5CZCP.js → FACS3B7S.js} +1 -1
- package/dist/cdn/{SHWOXLBE.js → FCTVXDDH.js} +1 -1
- package/dist/cdn/{NJKEWYFW.js → FHAM5F5F.js} +1 -1
- package/dist/cdn/{N6OMJODF.js → FOQWFJXP.js} +1 -1
- package/dist/cdn/{K4F7DVLB.js → FTPMJ5T4.js} +1 -1
- package/dist/cdn/{NJHM3NXW.js → FTXFBGER.js} +1 -1
- package/dist/cdn/FX3D6GLQ.js +2 -0
- package/dist/cdn/{2PBBWM7Q.js → FYSIO2QO.js} +1 -1
- package/dist/cdn/G47WQHWO.js +2 -0
- package/dist/cdn/{R3N6EX4D.js → G4T44NLK.js} +1 -1
- package/dist/cdn/{QM5KVEOP.js → GHGGSA4P.js} +1 -1
- package/dist/cdn/{C6ZGNTQU.js → GOMFY7HF.js} +1 -1
- package/dist/cdn/{GF2L5U3C.js → GT5J2NLP.js} +1 -1
- package/dist/cdn/{R6AVQZRY.js → H2GRIJNB.js} +1 -1
- package/dist/cdn/{L6YGTGRY.js → H6OKXB3E.js} +1 -1
- package/dist/cdn/{RKROSBFX.js → HBA63YZS.js} +1 -1
- package/dist/cdn/{R5A56XMG.js → HBG57D7N.js} +1 -1
- package/dist/cdn/{T65PCWVI.js → HIWFB5JC.js} +1 -1
- package/dist/cdn/{V4LNBJJH.js → HQYIXZAS.js} +1 -1
- package/dist/cdn/{EQCH6FQ4.js → HRXMW42X.js} +1 -1
- package/dist/cdn/{MW474YUE.js → IC3AXG5J.js} +1 -1
- package/dist/cdn/{I35MXP37.js → IECREO5S.js} +1 -1
- package/dist/cdn/{QE2JWN37.js → IIUKVJM2.js} +1 -1
- package/dist/cdn/{M5ZZIUR5.js → IJODW2GS.js} +1 -1
- package/dist/cdn/{DWCAC6HU.js → IU2JASZO.js} +1 -1
- package/dist/cdn/{EYHX52X7.js → IYBOC7TP.js} +1 -1
- package/dist/cdn/{SDJDNEGZ.js → IZ4LQURH.js} +1 -1
- package/dist/cdn/{TK7NNKJX.js → JFFMHRIC.js} +1 -1
- package/dist/cdn/{YM34WF3P.js → JJPQN4RX.js} +1 -1
- package/dist/cdn/{ZSQLC6JI.js → JS2DPGAC.js} +1 -1
- package/dist/cdn/{GNIH5PG4.js → JSKZNHWO.js} +1 -1
- package/dist/cdn/{5MZJCPBU.js → JSOXQZVX.js} +1 -1
- package/dist/cdn/{B3MQTDVK.js → JY3XJ5B7.js} +1 -1
- package/dist/cdn/{PZT6ZERD.js → K66RQOEH.js} +1 -1
- package/dist/cdn/{KEPNENNU.js → K6OCU6JA.js} +1 -1
- package/dist/cdn/{KGO4IRWR.js → KBRB3VWC.js} +1 -1
- package/dist/cdn/KEFKNDDO.js +2 -0
- package/dist/cdn/{OTAD2444.js → KLQ7KU3D.js} +1 -1
- package/dist/cdn/{BNB7ZKQK.js → KOOJB32V.js} +1 -1
- package/dist/cdn/{EPJHFMSC.js → LKKGLZ2N.js} +1 -1
- package/dist/cdn/{UPHBBAQ6.js → LQCRK2GS.js} +1 -1
- package/dist/cdn/LVBS36SN.js +2 -0
- package/dist/cdn/{2SLTSX6M.js → LXPCGUA5.js} +1 -1
- package/dist/cdn/{63R46JAL.js → LYNXT63M.js} +1 -1
- package/dist/cdn/{IB7QJTTH.js → LZMBMJ2N.js} +1 -1
- package/dist/cdn/{W3N6CQ5Z.js → M2CPBVCM.js} +1 -1
- package/dist/cdn/{NMXNFZLY.js → M5WENV6H.js} +1 -1
- package/dist/cdn/{PODMIILU.js → M6U4UG3Y.js} +1 -1
- package/dist/cdn/{WFZSNAZ6.js → MESZRQ5G.js} +1 -1
- package/dist/cdn/{S46QFZJK.js → MF6QVIMD.js} +1 -1
- package/dist/cdn/{AVNTGSKH.js → MJFNZSZT.js} +1 -1
- package/dist/cdn/{7P57EJFD.js → MKH42SHH.js} +1 -1
- package/dist/cdn/{FO5G6EDS.js → MOHZPJGK.js} +1 -1
- package/dist/cdn/{VIM7KJZD.js → MOKTHRF3.js} +1 -1
- package/dist/cdn/{H7B6X74V.js → MW3XUWU2.js} +1 -1
- package/dist/cdn/{POPTGWXQ.js → MY5UMHGF.js} +1 -1
- package/dist/cdn/{V2WNG2SQ.js → N5SLD2BF.js} +1 -1
- package/dist/cdn/N66GY6AP.js +2 -0
- package/dist/cdn/{D457OOX5.js → NDKHKCHP.js} +1 -1
- package/dist/cdn/{QHI44VSJ.js → NEAQUIWJ.js} +1 -1
- package/dist/cdn/{GADRHXXR.js → NHXKJBU4.js} +1 -1
- package/dist/cdn/{YJRJTSZF.js → NNV4525Q.js} +1 -1
- package/dist/cdn/{U6HW6SOL.js → OBXAHAPY.js} +1 -1
- package/dist/cdn/{PMLWFYYB.js → OE676NTI.js} +1 -1
- package/dist/cdn/{IGONETRP.js → OMEBSI6T.js} +1 -1
- package/dist/cdn/{RZLYKJAW.js → ON3LHBCG.js} +1 -1
- package/dist/cdn/OQY3Z427.js +2 -0
- package/dist/cdn/{JLR2HPPQ.js → ORCSSKCZ.js} +1 -1
- package/dist/cdn/{BXD4BWSM.js → ORDMYTLP.js} +1 -1
- package/dist/cdn/{UCW6QL26.js → P4PJLKHN.js} +1 -1
- package/dist/cdn/{MDLKLRS7.js → P4RXOSHT.js} +1 -1
- package/dist/cdn/{FTMWHI7D.js → P73WTI3W.js} +1 -1
- package/dist/cdn/{S7TDW7W7.js → PD53QP3Q.js} +1 -1
- package/dist/cdn/{JGWL2SSG.js → PGP533OR.js} +1 -1
- package/dist/cdn/{XQTPSFOQ.js → PJPX723Z.js} +1 -1
- package/dist/cdn/{LDNNAO6B.js → PNLL4LTP.js} +1 -1
- package/dist/cdn/{7MESME3X.js → PNYRQ3TV.js} +1 -1
- package/dist/cdn/{ANKCUG5O.js → PP3CXWSN.js} +1 -1
- package/dist/cdn/{WDMCU3EA.js → PUALRK5D.js} +1 -1
- package/dist/cdn/QCUVNMYL.js +2 -0
- package/dist/cdn/{IEHTZ6HN.js → QME24PMX.js} +1 -1
- package/dist/cdn/{CQCMFPVA.js → QTGTOBUF.js} +1 -1
- package/dist/cdn/{HV4PPBXF.js → QUSJYO2Y.js} +1 -1
- package/dist/cdn/{6OLWVTSQ.js → QX77PSU2.js} +1 -1
- package/dist/cdn/{2V2XN225.js → RDQ6FLRY.js} +1 -1
- package/dist/cdn/{BAZI7YJL.js → RK6TY6PP.js} +1 -1
- package/dist/cdn/{QWGMPJOW.js → RPX332SE.js} +1 -1
- package/dist/cdn/{55VVDQD6.js → RRSNQ2QN.js} +1 -1
- package/dist/cdn/{Y3XSUJHZ.js → RUF24VPL.js} +1 -1
- package/dist/cdn/{TGRWGIJL.js → RZ2MT2QV.js} +1 -1
- package/dist/cdn/{MKOLXYZC.js → RZKETFIJ.js} +1 -1
- package/dist/cdn/{GXECWBNA.js → S6W5XEMB.js} +1 -1
- package/dist/cdn/{WY6A6NAO.js → SEWCJMDT.js} +1 -1
- package/dist/cdn/{6KMO3ZC2.js → SK64DRZG.js} +1 -1
- package/dist/cdn/{WSNYLVDW.js → SMEJFRLV.js} +1 -1
- package/dist/cdn/{HJCQGRZI.js → SPJEDP76.js} +1 -1
- package/dist/cdn/{E4MOOLT7.js → SWLRDTQD.js} +1 -1
- package/dist/cdn/{TWUYIHOS.js → SWQH3HDP.js} +1 -1
- package/dist/cdn/{WIL5KKUH.js → SXBY5BLG.js} +1 -1
- package/dist/cdn/{D5WWMTTG.js → T2E7FXLC.js} +1 -1
- package/dist/cdn/{T5WL7YLF.js → T4RFV5JB.js} +1 -1
- package/dist/cdn/{FYFJGJTM.js → TLARYRDY.js} +1 -1
- package/dist/cdn/{KLBNISXU.js → TMCZWE46.js} +1 -1
- package/dist/cdn/{MEDD5RRG.js → TUFCC7MK.js} +1 -1
- package/dist/cdn/{A7H36NT5.js → U2FCKTJE.js} +1 -1
- package/dist/cdn/{HRRXJUGC.js → U37PDLL3.js} +1 -1
- package/dist/cdn/{LZAVNYM4.js → U5CRA2RI.js} +1 -1
- package/dist/cdn/{NNNV7VVZ.js → U6LSXUFR.js} +1 -1
- package/dist/cdn/{6CUOR5N4.js → UEB7SNGI.js} +1 -1
- package/dist/cdn/{L3LFT3SG.js → UFN2FTFD.js} +1 -1
- package/dist/cdn/{L67IYL25.js → UKA2U4DK.js} +1 -1
- package/dist/cdn/{M7Z3EUZ3.js → UPCAI7LB.js} +1 -1
- package/dist/cdn/{VFCT35SL.js → UR6A4LCB.js} +1 -1
- package/dist/cdn/{Q575TBPZ.js → V3OOWI2R.js} +1 -1
- package/dist/cdn/{QEVCEERI.js → V6HU76QD.js} +1 -1
- package/dist/cdn/{AQY53SIC.js → VDEB4NXG.js} +1 -1
- package/dist/cdn/{76SOMO7P.js → VGYFUWJQ.js} +1 -1
- package/dist/cdn/{BG4NBNHX.js → VW3CAROI.js} +1 -1
- package/dist/cdn/{XFR4C3VJ.js → VXL325DV.js} +1 -1
- package/dist/cdn/{756QOB7J.js → VXWIP4I7.js} +1 -1
- package/dist/cdn/{6V5YMB5U.js → W4CQ644F.js} +1 -1
- package/dist/cdn/{3O45ZOE5.js → W6AL2YMV.js} +1 -1
- package/dist/cdn/{AZNW3ELK.js → W7BTJT3U.js} +1 -1
- package/dist/cdn/{ZT63M2PX.js → WABO7TZB.js} +1 -1
- package/dist/cdn/{UXRL2IUS.js → WMGPOEED.js} +1 -1
- package/dist/cdn/{2KEC6P4Z.js → WOKSINSM.js} +1 -1
- package/dist/cdn/{KSUAU4RW.js → WVVZN3H4.js} +1 -1
- package/dist/cdn/{2V47Z7SI.js → X5YHAO7R.js} +1 -1
- package/dist/cdn/{XY2V7TMO.js → XEEYZWUG.js} +1 -1
- package/dist/cdn/{CZ27NLXZ.js → XKAW2XBY.js} +1 -1
- package/dist/cdn/{Z26FWKEC.js → XSIZXNEJ.js} +1 -1
- package/dist/cdn/{CGJURONW.js → XXOSNRDX.js} +1 -1
- package/dist/cdn/{3AFKFTY3.js → Y2U6DYHH.js} +1 -1
- package/dist/cdn/{N6OCCM2K.js → Y42OS5QD.js} +1 -1
- package/dist/cdn/{HENWQWGA.js → Y53RLRLQ.js} +1 -1
- package/dist/cdn/{7GBK7MXO.js → YHWTLVAD.js} +1 -1
- package/dist/cdn/{FMEL3LLJ.js → YI6UY5ZL.js} +1 -1
- package/dist/cdn/{76QYSWOV.js → YJ44W5MN.js} +1 -1
- package/dist/cdn/{OYRWG2JM.js → YXX4TE44.js} +1 -1
- package/dist/cdn/YYI435FW.js +2 -0
- package/dist/cdn/{HEFJHJWJ.js → Z2LXT4PI.js} +1 -1
- package/dist/cdn/{ZHI5BIJS.js → Z4GNEQFL.js} +1 -1
- package/dist/cdn/{FNXMVD6D.js → Z7FSJY7N.js} +1 -1
- package/dist/cdn/{VXWX6MYB.js → ZA4IN2BL.js} +1 -1
- package/dist/cdn/{OP3LGK6N.js → ZAAYFWGP.js} +1 -1
- package/dist/cdn/{Q3RWAAW6.js → ZCNATOVD.js} +1 -1
- package/dist/cdn/{24OJRMMK.js → ZEQH2KGD.js} +1 -1
- package/dist/cdn/{SUML442M.js → ZLYJ4OZI.js} +1 -1
- package/dist/cdn/{SUDLEFW3.js → ZMMQK3IQ.js} +1 -1
- package/dist/cdn/{3FFXZ3WX.js → ZNSBUZAD.js} +1 -1
- package/dist/cdn/{HBQX7QRY.js → ZPT5QAGG.js} +1 -1
- package/dist/cdn/{3I5Y5SHT.js → ZWCMY5TS.js} +1 -1
- package/dist/cdn/{GY3PECZV.js → ZXFSTT4G.js} +1 -1
- package/dist/cdn/{UUDMK6I3.js → ZZF57DTV.js} +1 -1
- package/dist/cdn/{WNDQWQQN.js → ZZGRSPLP.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +4 -4
- package/dist/components/arcgis-feature-attachments/customElement.js +32 -32
- package/dist/components/arcgis-feature-expression/customElement.js +55 -52
- package/dist/components/arcgis-feature-next/customElement.js +1 -1
- package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +108 -97
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/package.json +4 -4
- package/dist/cdn/BAHMS2NX.js +0 -2
- package/dist/cdn/GEAPWCSM.js +0 -2
- package/dist/cdn/SZRPOFXR.js +0 -2
- package/dist/cdn/TSXI4PO4.js +0 -2
- package/dist/cdn/WO744X5S.js +0 -2
- package/dist/cdn/X6ENKKWO.js +0 -2
- package/dist/cdn/YO2I2MGV.js +0 -2
- package/dist/cdn/Z3XFGBRW.js +0 -2
|
@@ -1,59 +1,66 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as x, html as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import I from "@arcgis/core/geometry/
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { LitElement as
|
|
13
|
-
import { log as
|
|
14
|
-
import { u as
|
|
15
|
-
import { d as
|
|
16
|
-
const
|
|
17
|
-
class
|
|
2
|
+
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as x, html as b } from "lit";
|
|
4
|
+
import * as G from "@arcgis/core/geometry/operators/cutOperator.js";
|
|
5
|
+
import * as T from "@arcgis/core/geometry/operators/lengthOperator.js";
|
|
6
|
+
import * as L from "@arcgis/core/geometry/operators/projectOperator.js";
|
|
7
|
+
import * as I from "@arcgis/core/geometry/operators/proximityOperator.js";
|
|
8
|
+
import v from "@arcgis/core/geometry/Polyline.js";
|
|
9
|
+
import A from "@arcgis/core/Graphic.js";
|
|
10
|
+
import w from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
11
|
+
import S from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
|
|
12
|
+
import { LitElement as F, createEvent as _ } from "@arcgis/lumina";
|
|
13
|
+
import { log as c, composeMissingPropertyMessage as m } from "@arcgis/toolkit/log";
|
|
14
|
+
import { u as N } from "../../chunks/useT9n.js";
|
|
15
|
+
import { d as k, i as R } from "../../chunks/layer-utils.js";
|
|
16
|
+
const P = x`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}`;
|
|
17
|
+
class E extends F {
|
|
18
18
|
constructor() {
|
|
19
|
-
super(...arguments), this.messages =
|
|
19
|
+
super(...arguments), this.messages = N({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.autoDestroyDisabled = !1, this.arcgisTraceLocationChange = _(), this.arcgisTraceLocationSelectEnd = _(), this.arcgisTraceLocationSelectStart = _();
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.properties = { isSelectWaiting: 16, beforeTraceLocationSelectStart: 0, afterHitTest: 0, view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, spatialTolerance: 9, autoDestroyDisabled: 5, utilityNetwork: 0 };
|
|
23
23
|
}
|
|
24
24
|
static {
|
|
25
|
-
this.styles =
|
|
25
|
+
this.styles = P;
|
|
26
26
|
}
|
|
27
27
|
async destroy() {
|
|
28
28
|
this._resetCursor(), await this.manager.destroy();
|
|
29
29
|
}
|
|
30
30
|
async load() {
|
|
31
|
-
|
|
31
|
+
L.isLoaded() || await L.load();
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
_calculatePercentAlong(e, t) {
|
|
34
|
+
const r = e.clone(), s = r.spatialReference, o = t.spatialReference;
|
|
35
|
+
if (!s || !o)
|
|
36
|
+
return c("warn", this, "Unable to calculate percent along because geometry is missing a spatial reference."), -1;
|
|
37
|
+
let a = t;
|
|
38
|
+
if (!s.equals(o)) {
|
|
39
|
+
const h = L.execute(t, s);
|
|
40
|
+
if (!h)
|
|
41
|
+
return c("warn", this, "Unable to project flag point to source geometry spatial reference."), -1;
|
|
42
|
+
a = h;
|
|
43
|
+
}
|
|
44
|
+
const n = I.getNearestCoordinate(r, a);
|
|
45
|
+
if (n.isEmpty)
|
|
46
|
+
return c("warn", this, "Unable to compute nearest coordinate for polyline flag."), -1;
|
|
47
|
+
const i = n.coordinate, l = i.x - 0.5, u = i.y - 0.5, p = i.x + 0.5, d = i.y + 0.5, g = new v({
|
|
35
48
|
hasZ: !1,
|
|
36
49
|
hasM: !0,
|
|
37
|
-
paths:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return l("error", this, "Unable to project flag geometry to source geometry spatial reference."), -1;
|
|
50
|
-
const d = C.execute(s, p);
|
|
51
|
-
if (d.length > 0) {
|
|
52
|
-
const h = m.execute(s, { unit: "feet" });
|
|
53
|
-
let f;
|
|
54
|
-
return d[0].paths[0][0][0] === s.paths[0][0][0] ? f = m.execute(d[0], { unit: "feet" }) : d.length > 1 ? f = m.execute(d[1], { unit: "feet" }) : f = 0, f / h;
|
|
50
|
+
paths: [
|
|
51
|
+
[
|
|
52
|
+
[l, u],
|
|
53
|
+
[p, d]
|
|
54
|
+
]
|
|
55
|
+
],
|
|
56
|
+
spatialReference: r.spatialReference
|
|
57
|
+
}), f = G.execute(r, g);
|
|
58
|
+
if (f.length > 0) {
|
|
59
|
+
const h = T.execute(r, { unit: "feet" });
|
|
60
|
+
let y;
|
|
61
|
+
return f[0].paths[0][0][0] === r.paths[0][0][0] ? y = T.execute(f[0], { unit: "feet" }) : f.length > 1 ? y = T.execute(f[1], { unit: "feet" }) : y = 0, y / h;
|
|
55
62
|
}
|
|
56
|
-
return
|
|
63
|
+
return c("warn", this, "Unable to cut the source geometry with the flag geometry."), -1;
|
|
57
64
|
}
|
|
58
65
|
get _edgeSourceLayerIds() {
|
|
59
66
|
const e = this.utilityNetwork?.dataElement?.domainNetworks;
|
|
@@ -62,7 +69,7 @@ class R extends v {
|
|
|
62
69
|
async _handleAddButtonClick() {
|
|
63
70
|
const { view: e, sketchViewModel: t } = this;
|
|
64
71
|
if (!(e && t)) {
|
|
65
|
-
|
|
72
|
+
c("error", this, "Cannot add trace location."), t || c("error", this, m("sketchViewModel")), e || c("error", this, m("view"));
|
|
66
73
|
return;
|
|
67
74
|
}
|
|
68
75
|
if (this.beforeTraceLocationSelectStart) {
|
|
@@ -86,39 +93,43 @@ class R extends v {
|
|
|
86
93
|
e.state === "cancel" && (this._resetCursor(), this.arcgisTraceLocationSelectEnd.emit());
|
|
87
94
|
}
|
|
88
95
|
async _performHitTest(e, t, r) {
|
|
89
|
-
const { utilityNetwork: s } = this;
|
|
96
|
+
const { utilityNetwork: s } = this, { graphic: o } = e;
|
|
90
97
|
if (!s) {
|
|
91
|
-
|
|
98
|
+
c("error", this, m("utilityNetwork")), this._resetCursor(), this.arcgisTraceLocationSelectEnd.emit();
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (o?.geometry?.type !== "point") {
|
|
102
|
+
c("warn", this, "No screen point available for hit test."), this._startSketch(t, r);
|
|
92
103
|
return;
|
|
93
104
|
}
|
|
94
|
-
const
|
|
95
|
-
if (!
|
|
96
|
-
|
|
105
|
+
const a = o.geometry, n = t.toScreen(a);
|
|
106
|
+
if (!n) {
|
|
107
|
+
c("warn", this, "No screen point available for hit test."), this._startSketch(t, r);
|
|
97
108
|
return;
|
|
98
109
|
}
|
|
99
|
-
const
|
|
110
|
+
const l = (await t.hitTest(n, {
|
|
100
111
|
include: this.filterLayers
|
|
101
|
-
})).results.filter((
|
|
102
|
-
if (
|
|
103
|
-
|
|
112
|
+
})).results.filter((p) => p.type === "graphic" && p?.layer && p.graphic);
|
|
113
|
+
if (!l.length) {
|
|
114
|
+
c("info", this, "No usable hit test results found."), this._startSketch(t, r);
|
|
104
115
|
return;
|
|
105
116
|
}
|
|
106
|
-
this._resetCursor(), await this._processHitTestResults(
|
|
117
|
+
this._resetCursor(), await this._processHitTestResults(l, a, t) ? this.arcgisTraceLocationSelectEnd.emit() : this._startSketch(t, r);
|
|
107
118
|
}
|
|
108
119
|
_resetCursor() {
|
|
109
120
|
const { view: e, sketchViewModel: t } = this;
|
|
110
121
|
if (!e) {
|
|
111
|
-
|
|
122
|
+
c("error", this, m("view"));
|
|
112
123
|
return;
|
|
113
124
|
}
|
|
114
125
|
t && (t.snappingOptions.enabled = !1), this._clickHandler?.remove(), this._clickHandler = void 0, "acquireCursor" in e && e.acquireCursor("default");
|
|
115
126
|
}
|
|
116
127
|
async _processHitTestResults(e, t, r) {
|
|
117
|
-
if (e.length
|
|
118
|
-
return
|
|
119
|
-
const s = e[0], o = e.map((
|
|
120
|
-
const
|
|
121
|
-
return p.origin =
|
|
128
|
+
if (!e.length)
|
|
129
|
+
return c("error", this, "There are no hit test results to process."), !1;
|
|
130
|
+
const s = e[0], o = e.map((l) => {
|
|
131
|
+
const u = l, p = u.graphic;
|
|
132
|
+
return p.origin = u.layer, p.sourceLayer = u.layer, p;
|
|
122
133
|
});
|
|
123
134
|
let a = s.graphic;
|
|
124
135
|
if (this.afterHitTest)
|
|
@@ -128,47 +139,47 @@ class R extends v {
|
|
|
128
139
|
a = null;
|
|
129
140
|
}
|
|
130
141
|
if (!a)
|
|
131
|
-
return
|
|
132
|
-
const
|
|
133
|
-
return
|
|
142
|
+
return c("error", this, "No graphic available from hit test results."), this.arcgisTraceLocationSelectEnd.emit(), !0;
|
|
143
|
+
const n = await this._ensureNecessaryAttributes(a);
|
|
144
|
+
return n ? await this._generateTraceLocation(n, t, r) : (c("error", this, "Unable to ensure necessary attributes on the selected graphic."), this.arcgisTraceLocationSelectEnd.emit(), !0);
|
|
134
145
|
}
|
|
135
146
|
async _ensureNecessaryAttributes(e) {
|
|
136
|
-
const t = (
|
|
137
|
-
if (i &&
|
|
147
|
+
const t = (k(e.layer), e.layer), r = t.geometryType === null, s = t.fieldsIndex?.get("assetgroup") ?? !1, o = t.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", a = t.fieldsIndex?.get("assettype") ?? !1, n = t.fieldsIndex?.get("assettype")?.name ?? "assettype", i = e.getGlobalId(), l = e.getObjectId(), u = s ? !!e.getAttribute(o) : !0, p = a ? !!e.getAttribute(n) : !0, d = !!e.geometry;
|
|
148
|
+
if (i && l && u && p && (d || r))
|
|
138
149
|
return e;
|
|
139
|
-
const
|
|
140
|
-
return
|
|
150
|
+
const g = t.createQuery();
|
|
151
|
+
return g.objectIds = [l], (await t.queryFeatures(g))?.features[0] || null;
|
|
141
152
|
}
|
|
142
153
|
async _generateTraceLocation(e, t, r) {
|
|
143
|
-
const { traceLocations: s } = this, o = e.getGlobalId() ?? "", a = e.geometry?.type,
|
|
144
|
-
if (!
|
|
145
|
-
return
|
|
146
|
-
const i = s?.filter((
|
|
154
|
+
const { traceLocations: s } = this, o = e.getGlobalId() ?? "", a = e.geometry?.type, n = await this._generateFlagInfo(e, t);
|
|
155
|
+
if (!n)
|
|
156
|
+
return c("error", this, "Unable to generate flag info for trace location."), !1;
|
|
157
|
+
const i = s?.filter((u) => u.spatialProperties.mapGraphic?.getGlobalId() === o) ?? [];
|
|
147
158
|
if (i.length > 0) {
|
|
148
159
|
if (a !== "polyline")
|
|
149
|
-
return
|
|
150
|
-
if (i.some((
|
|
151
|
-
return
|
|
160
|
+
return c("warn", this, "A flag with the same globalId already exists."), !1;
|
|
161
|
+
if (i.some((u) => Math.abs(u.traceLocation.percentAlong - n.traceLocation.percentAlong) <= this.spatialTolerance))
|
|
162
|
+
return c("warn", this, "A flag with the same globalId already exists within tolerance."), !1;
|
|
152
163
|
}
|
|
153
|
-
const
|
|
154
|
-
return
|
|
164
|
+
const l = this._addFlagGraphic(e, t, r);
|
|
165
|
+
return l ? (n.spatialProperties.flagGraphic = l, s?.add(n), !0) : (c("warn", this, "Unable to add flag graphic."), !1);
|
|
155
166
|
}
|
|
156
167
|
async _generateFlagInfo(e, t) {
|
|
157
|
-
const { traceLocationType: r, utilityNetwork: s } = this, o = e.getGlobalId() ?? "", a = e.geometry?.type,
|
|
168
|
+
const { traceLocationType: r, utilityNetwork: s } = this, o = e.getGlobalId() ?? "", a = e.geometry?.type, n = await this._generateItemTitle(e);
|
|
158
169
|
if (a === "point" || a === "polygon") {
|
|
159
|
-
const i = s?.getTerminalConfiguration(e),
|
|
170
|
+
const i = s?.getTerminalConfiguration(e), l = i ? i.terminals[0].id : 1;
|
|
160
171
|
return {
|
|
161
|
-
traceLocation: new
|
|
172
|
+
traceLocation: new w({
|
|
162
173
|
type: r,
|
|
163
174
|
isFilterBarrier: !1,
|
|
164
175
|
globalId: o,
|
|
165
|
-
terminalId:
|
|
176
|
+
terminalId: l
|
|
166
177
|
}),
|
|
167
178
|
flagProperties: {
|
|
168
|
-
title:
|
|
179
|
+
title: n,
|
|
169
180
|
expanded: !1,
|
|
170
181
|
terminalConfiguration: i ?? void 0,
|
|
171
|
-
selectedTerminals: i ? /* @__PURE__ */ new Set([
|
|
182
|
+
selectedTerminals: i ? /* @__PURE__ */ new Set([l]) : void 0
|
|
172
183
|
},
|
|
173
184
|
spatialProperties: {
|
|
174
185
|
mapPoint: t,
|
|
@@ -177,15 +188,15 @@ class R extends v {
|
|
|
177
188
|
};
|
|
178
189
|
} else if (a === "polyline") {
|
|
179
190
|
const i = this._calculatePercentAlong(e.geometry, t);
|
|
180
|
-
return i < 0 ? (
|
|
181
|
-
traceLocation: new
|
|
191
|
+
return i < 0 ? (c("warn", this, "Unable to calculate percent along for polyline flag."), null) : {
|
|
192
|
+
traceLocation: new w({
|
|
182
193
|
type: r,
|
|
183
194
|
isFilterBarrier: !1,
|
|
184
195
|
globalId: o,
|
|
185
196
|
percentAlong: i
|
|
186
197
|
}),
|
|
187
198
|
flagProperties: {
|
|
188
|
-
title:
|
|
199
|
+
title: n,
|
|
189
200
|
expanded: !1,
|
|
190
201
|
terminalConfiguration: void 0,
|
|
191
202
|
selectedTerminals: void 0
|
|
@@ -196,9 +207,9 @@ class R extends v {
|
|
|
196
207
|
}
|
|
197
208
|
};
|
|
198
209
|
} else if (!a) {
|
|
199
|
-
const i =
|
|
210
|
+
const i = R(e.layer) ? e.layer.parent : e.layer, l = i && this._edgeSourceLayerIds.includes(i.layerId), u = s?.getTerminalConfiguration(e), p = u ? u.terminals[0].id : l ? -1 : 1, d = l ? 0.5 : -1;
|
|
200
211
|
return {
|
|
201
|
-
traceLocation: new
|
|
212
|
+
traceLocation: new w({
|
|
202
213
|
type: r,
|
|
203
214
|
isFilterBarrier: !1,
|
|
204
215
|
globalId: o,
|
|
@@ -206,10 +217,10 @@ class R extends v {
|
|
|
206
217
|
percentAlong: d
|
|
207
218
|
}),
|
|
208
219
|
flagProperties: {
|
|
209
|
-
title:
|
|
220
|
+
title: n,
|
|
210
221
|
expanded: !1,
|
|
211
|
-
terminalConfiguration:
|
|
212
|
-
selectedTerminals:
|
|
222
|
+
terminalConfiguration: u ?? void 0,
|
|
223
|
+
selectedTerminals: u ? /* @__PURE__ */ new Set([p]) : void 0
|
|
213
224
|
},
|
|
214
225
|
spatialProperties: {
|
|
215
226
|
mapPoint: t,
|
|
@@ -220,11 +231,11 @@ class R extends v {
|
|
|
220
231
|
return null;
|
|
221
232
|
}
|
|
222
233
|
async _generateItemTitle(e) {
|
|
223
|
-
const { messages: t } = this, r = (
|
|
234
|
+
const { messages: t } = this, r = (k(e.layer), e.layer);
|
|
224
235
|
return ("getFeatureTitle" in r ? await r.getFeatureTitle(e) : null) || e?.getObjectId()?.toString() || t.labels.unknown;
|
|
225
236
|
}
|
|
226
237
|
_addFlagGraphic(e, t, r) {
|
|
227
|
-
const s = e.geometry ? e.geometry.type === "point" ? e.geometry : t : null, o = this._createFlagSymbol(), a = new
|
|
238
|
+
const s = e.geometry ? e.geometry.type === "point" ? e.geometry : t : null, o = this._createFlagSymbol(), a = new A({
|
|
228
239
|
geometry: s,
|
|
229
240
|
symbol: o,
|
|
230
241
|
attributes: e.attributes
|
|
@@ -233,7 +244,7 @@ class R extends v {
|
|
|
233
244
|
}
|
|
234
245
|
_createFlagSymbol() {
|
|
235
246
|
const { traceLocationType: e } = this, t = [244, 21, 21, 0.6], r = [21, 244, 21, 0.6];
|
|
236
|
-
return e === "stopping-point" ? new
|
|
247
|
+
return e === "stopping-point" ? new S({
|
|
237
248
|
color: t,
|
|
238
249
|
style: "x",
|
|
239
250
|
size: 12,
|
|
@@ -241,7 +252,7 @@ class R extends v {
|
|
|
241
252
|
color: t,
|
|
242
253
|
width: 2
|
|
243
254
|
}
|
|
244
|
-
}) : e === "barrier" ? new
|
|
255
|
+
}) : e === "barrier" ? new S({
|
|
245
256
|
color: t,
|
|
246
257
|
style: "square",
|
|
247
258
|
size: 12,
|
|
@@ -249,7 +260,7 @@ class R extends v {
|
|
|
249
260
|
color: t,
|
|
250
261
|
width: 0
|
|
251
262
|
}
|
|
252
|
-
}) : new
|
|
263
|
+
}) : new S({
|
|
253
264
|
color: r,
|
|
254
265
|
style: "circle",
|
|
255
266
|
size: 12,
|
|
@@ -266,14 +277,14 @@ class R extends v {
|
|
|
266
277
|
}), t?.removeAll();
|
|
267
278
|
}
|
|
268
279
|
renderAddLocationBlock() {
|
|
269
|
-
const { traceLocationType: e, messages: t, traceLocations: r, view: s } = this, o = e === "starting-point" ? t.types.startingPoint : e === "barrier" ? t.types.barrier : t.types.stoppingPoint, a = o.heading,
|
|
270
|
-
return
|
|
280
|
+
const { traceLocationType: e, messages: t, traceLocations: r, view: s } = this, o = e === "starting-point" ? t.types.startingPoint : e === "barrier" ? t.types.barrier : t.types.stoppingPoint, a = o.heading, n = o.description, i = o.buttonText;
|
|
281
|
+
return b`<calcite-block .heading=${a} .label=${a} expanded .description=${n}>${r?.length ? b`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button><arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e} .view=${s}></arcgis-utility-network-trace-location-list>` : null}<div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${i} @click=${() => this._handleAddButtonClick()}>${i}</calcite-button></div></calcite-block>`;
|
|
271
282
|
}
|
|
272
283
|
render() {
|
|
273
|
-
return
|
|
284
|
+
return b`<div class="root">${this.renderAddLocationBlock()}</div>`;
|
|
274
285
|
}
|
|
275
286
|
}
|
|
276
|
-
|
|
287
|
+
C("arcgis-utility-network-trace-location", E);
|
|
277
288
|
export {
|
|
278
|
-
|
|
289
|
+
E as ArcgisUtilityNetworkTraceLocation
|
|
279
290
|
};
|