@arcgis/map-components 5.1.7 → 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/{XIEFQXYT.js → 24IAZ4Q6.js} +1 -1
- package/dist/cdn/{6KQFZL4R.js → 26VSOF3U.js} +1 -1
- package/dist/cdn/{XJ23FTGO.js → 2CI4FFWJ.js} +1 -1
- package/dist/cdn/{4C3ODFXW.js → 2GSRB4EC.js} +1 -1
- package/dist/cdn/{6QOECHQG.js → 2IOC5KTK.js} +1 -1
- package/dist/cdn/{WSQSERB3.js → 2LMO2EHE.js} +1 -1
- package/dist/cdn/{H4OXG6WF.js → 2MF7WVYT.js} +1 -1
- package/dist/cdn/{FDQJ2LYC.js → 2MNEA5J7.js} +1 -1
- package/dist/cdn/{4UM6M5FI.js → 2P3ZEVJF.js} +1 -1
- package/dist/cdn/{GC75ZRDN.js → 32BFXJOB.js} +1 -1
- package/dist/cdn/{4YFMVLTT.js → 3HQYGJNY.js} +1 -1
- package/dist/cdn/{H5ORNGE4.js → 3JHEROLV.js} +1 -1
- package/dist/cdn/{6HPIQU43.js → 3NCBURDH.js} +1 -1
- package/dist/cdn/{CCTJBB5Y.js → 42NL2JOK.js} +1 -1
- package/dist/cdn/{QEA2KSK7.js → 4AQR4VJK.js} +1 -1
- package/dist/cdn/{RMVT6ZCN.js → 4CL2BN2P.js} +1 -1
- package/dist/cdn/{LDY3MCID.js → 4VNK7OGN.js} +1 -1
- package/dist/cdn/{U5TWCLW4.js → 4Z24NJRB.js} +1 -1
- package/dist/cdn/{6WBNAPW2.js → 5BMZ4WHD.js} +1 -1
- package/dist/cdn/{MGR4ENUK.js → 5FGQ4Z2U.js} +1 -1
- package/dist/cdn/{MHO4HDQR.js → 5I7UJPHQ.js} +1 -1
- package/dist/cdn/{356ZKH7C.js → 5MV4B2Q3.js} +1 -1
- package/dist/cdn/{SMNXCU7D.js → 6C3LLHD7.js} +1 -1
- package/dist/cdn/{KAXADXGQ.js → 6IRWKMLR.js} +1 -1
- package/dist/cdn/{PFXHPF2T.js → 73ULLF2S.js} +1 -1
- package/dist/cdn/{VQLCVHYE.js → 77B7BUKJ.js} +1 -1
- package/dist/cdn/{DY5KZK6I.js → 7H7Q3PVT.js} +1 -1
- package/dist/cdn/{UBXU4LHV.js → 7KMJWPAJ.js} +1 -1
- package/dist/cdn/{K7WDEZOX.js → 7NMLWPC4.js} +1 -1
- package/dist/cdn/{BI74DQSY.js → AGOCGCC7.js} +1 -1
- package/dist/cdn/{GTASNHYO.js → AJRMXI2L.js} +1 -1
- package/dist/cdn/{5UMMQOVL.js → AMKODRAJ.js} +1 -1
- package/dist/cdn/{IAIRNNCO.js → AZSYPFYS.js} +1 -1
- package/dist/cdn/{LXBDOCFA.js → B5RKNOJA.js} +1 -1
- package/dist/cdn/{HOGRBFYP.js → B7LIMLGY.js} +1 -1
- package/dist/cdn/{WZZ5MXQA.js → BAN457GX.js} +1 -1
- package/dist/cdn/{4CVUFMGN.js → BHN7KOII.js} +1 -1
- package/dist/cdn/{HZFBBTA7.js → BPJGGDBG.js} +1 -1
- package/dist/cdn/{NDPWIFGU.js → C34QCA5G.js} +1 -1
- package/dist/cdn/{C2XNWH5A.js → C3IL4Z4I.js} +1 -1
- package/dist/cdn/{N5ML25IC.js → CD4DKR7I.js} +1 -1
- package/dist/cdn/{WWWZ5VRY.js → CZ3D2LU6.js} +1 -1
- package/dist/cdn/{BSLYV2NX.js → DDDDLYT3.js} +1 -1
- package/dist/cdn/{PHCGDA5K.js → DECSWJZX.js} +1 -1
- package/dist/cdn/{C7KJYSQK.js → DFOICOFP.js} +1 -1
- package/dist/cdn/{74EDV43D.js → DIDIT3QH.js} +1 -1
- package/dist/cdn/{A5HCZRMR.js → DOMD4DE5.js} +1 -1
- package/dist/cdn/{XKUYXPSX.js → DUJFJC5Z.js} +1 -1
- package/dist/cdn/{27DNMXKW.js → DW7LRJL4.js} +1 -1
- package/dist/cdn/{D7N35LSB.js → DY4CEOZP.js} +1 -1
- package/dist/cdn/{TRTU7MAY.js → DZDQC62F.js} +1 -1
- package/dist/cdn/{PV7TLZ5U.js → EBGHAVRA.js} +1 -1
- package/dist/cdn/{2KDYGA5O.js → EHTIZWBY.js} +1 -1
- package/dist/cdn/{RLHQOHMZ.js → ELP5RYBT.js} +1 -1
- package/dist/cdn/{NNLWKXSH.js → ENQIHWZC.js} +1 -1
- package/dist/cdn/{IZ5M3JGD.js → EPIELE5S.js} +1 -1
- package/dist/cdn/{KQE6ELHL.js → EUKYYAYE.js} +1 -1
- package/dist/cdn/{JLTLKLTG.js → F53HGO3N.js} +1 -1
- package/dist/cdn/{VLR5EUD4.js → FACS3B7S.js} +1 -1
- package/dist/cdn/{EFF2R2YS.js → FCTVXDDH.js} +1 -1
- package/dist/cdn/{DLARJ22I.js → FHAM5F5F.js} +1 -1
- package/dist/cdn/{KCCVLNMD.js → FOQWFJXP.js} +1 -1
- package/dist/cdn/{KASPA7A5.js → FTPMJ5T4.js} +1 -1
- package/dist/cdn/{JFTHPKHW.js → FTXFBGER.js} +1 -1
- package/dist/cdn/FX3D6GLQ.js +2 -0
- package/dist/cdn/{MZHMI6LQ.js → FYSIO2QO.js} +1 -1
- package/dist/cdn/G47WQHWO.js +2 -0
- package/dist/cdn/{KDFB7BMM.js → G4T44NLK.js} +1 -1
- package/dist/cdn/{OOUVI7LR.js → GHGGSA4P.js} +1 -1
- package/dist/cdn/{YMDXEMIQ.js → GOMFY7HF.js} +1 -1
- package/dist/cdn/{LGNGRXLC.js → GT5J2NLP.js} +1 -1
- package/dist/cdn/{O3SIPWPO.js → H2GRIJNB.js} +1 -1
- package/dist/cdn/{2KEE5ZJE.js → H6OKXB3E.js} +1 -1
- package/dist/cdn/{DRXS4SDO.js → HBA63YZS.js} +1 -1
- package/dist/cdn/{XUP75CX2.js → HBG57D7N.js} +1 -1
- package/dist/cdn/{GIKMKBUU.js → HIWFB5JC.js} +1 -1
- package/dist/cdn/{DKYR2NKS.js → HQYIXZAS.js} +1 -1
- package/dist/cdn/{2MEMLDXC.js → HRXMW42X.js} +1 -1
- package/dist/cdn/{SQXUUBXD.js → IC3AXG5J.js} +1 -1
- package/dist/cdn/{REYUFXTV.js → IECREO5S.js} +1 -1
- package/dist/cdn/{AOGOKZCR.js → IIUKVJM2.js} +1 -1
- package/dist/cdn/{4U3PG7VJ.js → IJODW2GS.js} +1 -1
- package/dist/cdn/{E7GMQYKK.js → IU2JASZO.js} +1 -1
- package/dist/cdn/{W3J4AAQG.js → IYBOC7TP.js} +1 -1
- package/dist/cdn/{IQ3HZOXO.js → IZ4LQURH.js} +1 -1
- package/dist/cdn/{RIH465K7.js → JFFMHRIC.js} +1 -1
- package/dist/cdn/{SQLMVAKH.js → JJPQN4RX.js} +1 -1
- package/dist/cdn/{F2C2NFL4.js → JS2DPGAC.js} +1 -1
- package/dist/cdn/{DKFYNBTT.js → JSKZNHWO.js} +1 -1
- package/dist/cdn/{E62HKMZT.js → JSOXQZVX.js} +1 -1
- package/dist/cdn/{4U64HBS7.js → JY3XJ5B7.js} +1 -1
- package/dist/cdn/{FNLXO6PW.js → K66RQOEH.js} +1 -1
- package/dist/cdn/{J2MMD2OM.js → K6OCU6JA.js} +1 -1
- package/dist/cdn/{IQNUPM2O.js → KBRB3VWC.js} +1 -1
- package/dist/cdn/KEFKNDDO.js +2 -0
- package/dist/cdn/{JNX7J3B3.js → KLQ7KU3D.js} +1 -1
- package/dist/cdn/{6BGKHSPT.js → KOOJB32V.js} +1 -1
- package/dist/cdn/{EPTDBGDM.js → LKKGLZ2N.js} +1 -1
- package/dist/cdn/{FDCWQKU6.js → LQCRK2GS.js} +1 -1
- package/dist/cdn/LVBS36SN.js +2 -0
- package/dist/cdn/{FMB32AK3.js → LXPCGUA5.js} +1 -1
- package/dist/cdn/{HZMHYLSX.js → LYNXT63M.js} +1 -1
- package/dist/cdn/{OM372UCI.js → LZMBMJ2N.js} +1 -1
- package/dist/cdn/{M2VU5WXM.js → M2CPBVCM.js} +1 -1
- package/dist/cdn/{Z54BWXCD.js → M5WENV6H.js} +1 -1
- package/dist/cdn/{JE3EARQI.js → M6U4UG3Y.js} +1 -1
- package/dist/cdn/{HITOU54O.js → MESZRQ5G.js} +1 -1
- package/dist/cdn/{P4QGS4LI.js → MF6QVIMD.js} +1 -1
- package/dist/cdn/{2B5URNE3.js → MJFNZSZT.js} +1 -1
- package/dist/cdn/{GM26D7C5.js → MKH42SHH.js} +1 -1
- package/dist/cdn/{53H4LDS3.js → MOHZPJGK.js} +1 -1
- package/dist/cdn/{BPUVHQ5P.js → MOKTHRF3.js} +1 -1
- package/dist/cdn/{2DBO4WAJ.js → MW3XUWU2.js} +1 -1
- package/dist/cdn/{AVSNAUOE.js → MY5UMHGF.js} +1 -1
- package/dist/cdn/{SZAX77AL.js → N5SLD2BF.js} +1 -1
- package/dist/cdn/N66GY6AP.js +2 -0
- package/dist/cdn/{EQYEMDFW.js → NDKHKCHP.js} +1 -1
- package/dist/cdn/{AY2UMLRK.js → NEAQUIWJ.js} +1 -1
- package/dist/cdn/{IKEV4YFI.js → NHXKJBU4.js} +1 -1
- package/dist/cdn/{LEBVX3EI.js → NNV4525Q.js} +1 -1
- package/dist/cdn/{PSU7EY7E.js → OBXAHAPY.js} +1 -1
- package/dist/cdn/{NKJUFFAR.js → OE676NTI.js} +1 -1
- package/dist/cdn/{V6KYPSA5.js → OMEBSI6T.js} +1 -1
- package/dist/cdn/{XZEDY2LB.js → ON3LHBCG.js} +1 -1
- package/dist/cdn/OQY3Z427.js +2 -0
- package/dist/cdn/{2OVG2DTJ.js → ORCSSKCZ.js} +1 -1
- package/dist/cdn/{T73AC4K2.js → ORDMYTLP.js} +1 -1
- package/dist/cdn/{KXUIBZ62.js → P4PJLKHN.js} +1 -1
- package/dist/cdn/{UGX2V64C.js → P4RXOSHT.js} +1 -1
- package/dist/cdn/{DXO4HE4A.js → P73WTI3W.js} +1 -1
- package/dist/cdn/{UG6JE6H7.js → PD53QP3Q.js} +1 -1
- package/dist/cdn/{SXM2X4AO.js → PGP533OR.js} +1 -1
- package/dist/cdn/{3XQOO5HL.js → PJPX723Z.js} +1 -1
- package/dist/cdn/{42LQWO4Q.js → PNLL4LTP.js} +1 -1
- package/dist/cdn/{BNNW2TSE.js → PNYRQ3TV.js} +1 -1
- package/dist/cdn/{6RMWE6SS.js → PP3CXWSN.js} +1 -1
- package/dist/cdn/{ZUV4CFPE.js → PUALRK5D.js} +1 -1
- package/dist/cdn/QCUVNMYL.js +2 -0
- package/dist/cdn/{Q2OZ3CGZ.js → QME24PMX.js} +1 -1
- package/dist/cdn/{4CYDKAS3.js → QTGTOBUF.js} +1 -1
- package/dist/cdn/{3FXFX7XB.js → QUSJYO2Y.js} +1 -1
- package/dist/cdn/{F3GKQ2SO.js → QX77PSU2.js} +1 -1
- package/dist/cdn/{7SBWS44V.js → RDQ6FLRY.js} +1 -1
- package/dist/cdn/{W57GT6II.js → RK6TY6PP.js} +1 -1
- package/dist/cdn/{MVAXGHTZ.js → RPX332SE.js} +1 -1
- package/dist/cdn/{2LB6CIAS.js → RRSNQ2QN.js} +1 -1
- package/dist/cdn/{OPFJBC7P.js → RUF24VPL.js} +1 -1
- package/dist/cdn/{RLKWM6JI.js → RZ2MT2QV.js} +1 -1
- package/dist/cdn/{BBSW2FSC.js → RZKETFIJ.js} +1 -1
- package/dist/cdn/{LZ4FDMII.js → S6W5XEMB.js} +1 -1
- package/dist/cdn/{UCSN4GNS.js → SEWCJMDT.js} +1 -1
- package/dist/cdn/{GFL7TUVU.js → SK64DRZG.js} +1 -1
- package/dist/cdn/{7J6E6GTE.js → SMEJFRLV.js} +1 -1
- package/dist/cdn/{EKCF24L7.js → SPJEDP76.js} +1 -1
- package/dist/cdn/{LYYKM6G6.js → SWLRDTQD.js} +1 -1
- package/dist/cdn/{RIJY4ITQ.js → SWQH3HDP.js} +1 -1
- package/dist/cdn/{NVHMCBCH.js → SXBY5BLG.js} +1 -1
- package/dist/cdn/{TQFKYH5X.js → T2E7FXLC.js} +1 -1
- package/dist/cdn/{D3MTYNM7.js → T4RFV5JB.js} +1 -1
- package/dist/cdn/{KW2EG2YH.js → TLARYRDY.js} +1 -1
- package/dist/cdn/{Z4WRTHJS.js → TMCZWE46.js} +1 -1
- package/dist/cdn/{A6JNJFPC.js → TUFCC7MK.js} +1 -1
- package/dist/cdn/{HT4PFHMD.js → U2FCKTJE.js} +1 -1
- package/dist/cdn/{KVBA5MGW.js → U37PDLL3.js} +1 -1
- package/dist/cdn/{S4RXJPD7.js → U5CRA2RI.js} +1 -1
- package/dist/cdn/{S7NJH2BE.js → U6LSXUFR.js} +1 -1
- package/dist/cdn/{5PD3IRI6.js → UEB7SNGI.js} +1 -1
- package/dist/cdn/{A5MOCRW2.js → UFN2FTFD.js} +1 -1
- package/dist/cdn/{JORNUMDH.js → UKA2U4DK.js} +1 -1
- package/dist/cdn/{C5ZF6WZQ.js → UPCAI7LB.js} +1 -1
- package/dist/cdn/{AZ7HG3YA.js → UR6A4LCB.js} +1 -1
- package/dist/cdn/{B5NU2O7J.js → V3OOWI2R.js} +1 -1
- package/dist/cdn/{OLE4GA42.js → V6HU76QD.js} +1 -1
- package/dist/cdn/{ODYTATIO.js → VDEB4NXG.js} +1 -1
- package/dist/cdn/{7QZW4EDP.js → VGYFUWJQ.js} +1 -1
- package/dist/cdn/{7SME7JXP.js → VW3CAROI.js} +1 -1
- package/dist/cdn/{KVH7VVNU.js → VXL325DV.js} +1 -1
- package/dist/cdn/{I66THPGG.js → VXWIP4I7.js} +1 -1
- package/dist/cdn/{7ECOSHKM.js → W4CQ644F.js} +1 -1
- package/dist/cdn/{XZJN44CQ.js → W6AL2YMV.js} +1 -1
- package/dist/cdn/{XAUWEUPU.js → W7BTJT3U.js} +1 -1
- package/dist/cdn/{CK3XIM2O.js → WABO7TZB.js} +1 -1
- package/dist/cdn/{HRECFNUI.js → WMGPOEED.js} +1 -1
- package/dist/cdn/{22C7YO4D.js → WOKSINSM.js} +1 -1
- package/dist/cdn/{CW5KDYHR.js → WVVZN3H4.js} +1 -1
- package/dist/cdn/{NE26NUR4.js → X5YHAO7R.js} +1 -1
- package/dist/cdn/{47Q2FPIX.js → XEEYZWUG.js} +1 -1
- package/dist/cdn/{VLFAH5LD.js → XKAW2XBY.js} +1 -1
- package/dist/cdn/{3KQG74CC.js → XSIZXNEJ.js} +1 -1
- package/dist/cdn/{UB6ITIBM.js → XXOSNRDX.js} +1 -1
- package/dist/cdn/{R4H6Y5IL.js → Y2U6DYHH.js} +1 -1
- package/dist/cdn/{CL6RBALG.js → Y42OS5QD.js} +1 -1
- package/dist/cdn/{GL45PRUL.js → Y53RLRLQ.js} +1 -1
- package/dist/cdn/{YLDNCH77.js → YHWTLVAD.js} +1 -1
- package/dist/cdn/{IUMH2EPZ.js → YI6UY5ZL.js} +1 -1
- package/dist/cdn/{WD4VJPFD.js → YJ44W5MN.js} +1 -1
- package/dist/cdn/{FNNZOY2Y.js → YXX4TE44.js} +1 -1
- package/dist/cdn/YYI435FW.js +2 -0
- package/dist/cdn/{RWZUG7UP.js → Z2LXT4PI.js} +1 -1
- package/dist/cdn/{4ALL5UEL.js → Z4GNEQFL.js} +1 -1
- package/dist/cdn/{QG6RNETZ.js → Z7FSJY7N.js} +1 -1
- package/dist/cdn/{HPDZHTY3.js → ZA4IN2BL.js} +1 -1
- package/dist/cdn/{GELWO646.js → ZAAYFWGP.js} +1 -1
- package/dist/cdn/{ZANVBMIV.js → ZCNATOVD.js} +1 -1
- package/dist/cdn/{NP4Y3ACY.js → ZEQH2KGD.js} +1 -1
- package/dist/cdn/{2BKUH5MI.js → ZLYJ4OZI.js} +1 -1
- package/dist/cdn/{OYBAJUNL.js → ZMMQK3IQ.js} +1 -1
- package/dist/cdn/{MP2JWB6Y.js → ZNSBUZAD.js} +1 -1
- package/dist/cdn/{227F4ZQ5.js → ZPT5QAGG.js} +1 -1
- package/dist/cdn/{2RMVZNTQ.js → ZWCMY5TS.js} +1 -1
- package/dist/cdn/{IMMFJBWU.js → ZXFSTT4G.js} +1 -1
- package/dist/cdn/{CN7YDOCI.js → ZZF57DTV.js} +1 -1
- package/dist/cdn/{IM63ZUZF.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.d.ts +20 -0
- package/dist/components/arcgis-editor/customElement.js +6 -6
- 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/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +4 -4
- package/dist/cdn/4WY6T5TZ.js +0 -2
- package/dist/cdn/7F5ZMSKF.js +0 -2
- package/dist/cdn/A5MQZGKT.js +0 -2
- package/dist/cdn/FW7BORPR.js +0 -2
- package/dist/cdn/HYSJCNBA.js +0 -2
- package/dist/cdn/P3JM5PHF.js +0 -2
- package/dist/cdn/TZP2GCIR.js +0 -2
- package/dist/cdn/ZJBXNO6M.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
|
};
|