@arcgis/map-components 5.0.0-next.92 → 5.0.0-next.93
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/{NVFGMSZH.js → 2EYPXTFF.js} +2 -2
- package/dist/cdn/2K74GELP.js +4 -0
- package/dist/cdn/{DYQ5UU4K.js → 2MFHV2FO.js} +2 -2
- package/dist/cdn/{CFAZ3H3S.js → 2SYLV43C.js} +2 -2
- package/dist/cdn/{P3SINDT4.js → 2WH47QS4.js} +2 -2
- package/dist/cdn/{QE2FS5E5.js → 2X52Y4DY.js} +1 -1
- package/dist/cdn/{K5XSAE2D.js → 32MTZMAK.js} +2 -2
- package/dist/cdn/{T46NOCI4.js → 34CMKCGC.js} +2 -2
- package/dist/cdn/{SVNYTZ2E.js → 35GBBPCC.js} +2 -2
- package/dist/cdn/3CMXOQKR.js +4 -0
- package/dist/cdn/{67LSQGRU.js → 3GSCALYO.js} +2 -2
- package/dist/cdn/{COVHNV3T.js → 3I4WU4YC.js} +2 -2
- package/dist/cdn/{XLAY7IRE.js → 3ZJYJKT4.js} +1 -1
- package/dist/cdn/{KKQAM63L.js → 4CBRPUWP.js} +2 -2
- package/dist/cdn/{XSHH2JZG.js → 4CS2VL3M.js} +1 -1
- package/dist/cdn/{TFXSKBAP.js → 4OME7L5U.js} +2 -2
- package/dist/cdn/{J37NXPTB.js → 4QKW66H5.js} +2 -2
- package/dist/cdn/{JJ2BMPCB.js → 4SMNBNGK.js} +2 -2
- package/dist/cdn/{7TABBIEO.js → 52BXF3C7.js} +2 -2
- package/dist/cdn/{Q5RZYGL5.js → 54V2IFLH.js} +2 -2
- package/dist/cdn/{6XSSLDAH.js → 57QYO2SZ.js} +2 -2
- package/dist/cdn/{H7ZXWNKO.js → 5AZGJJBB.js} +2 -2
- package/dist/cdn/{CTSLSL6J.js → 5BNYLJUH.js} +2 -2
- package/dist/cdn/{665BJZWA.js → 5CRZIWKK.js} +2 -2
- package/dist/cdn/{CFIV5F2K.js → 5DYLDR23.js} +1 -1
- package/dist/cdn/{ARVZDHWN.js → 5OPBLLLV.js} +2 -2
- package/dist/cdn/{XYVICLHW.js → 5RMRGBB6.js} +2 -2
- package/dist/cdn/{WZ6NKZZA.js → 5TRI5LVW.js} +2 -2
- package/dist/cdn/{TQMZD3E7.js → 5W4G4PNT.js} +2 -2
- package/dist/cdn/{MXH7C6IM.js → 5X7I5S7U.js} +1 -1
- package/dist/cdn/{EFHSMHAF.js → 62PN6GJT.js} +2 -2
- package/dist/cdn/{EXT3ZY7P.js → 6DR2R4FP.js} +2 -2
- package/dist/cdn/{AUNPO5WZ.js → 6FNWDXZ7.js} +2 -2
- package/dist/cdn/{UWJVNIFI.js → 6PJ27SYB.js} +2 -2
- package/dist/cdn/{FQONR5NB.js → 6TUT4EAX.js} +2 -2
- package/dist/cdn/{GNVA4UPJ.js → 7CIDOHVU.js} +2 -2
- package/dist/cdn/{2LRNI36V.js → 7WYEZ3Z3.js} +2 -2
- package/dist/cdn/{VKH5H6RP.js → 7ZQ2L277.js} +2 -2
- package/dist/cdn/{ZE6PIKEL.js → A2BLKHQ2.js} +2 -2
- package/dist/cdn/{LWTHPR7G.js → AAMNBOQU.js} +2 -2
- package/dist/cdn/{XYH6VOK7.js → AGQVEZYR.js} +2 -2
- package/dist/cdn/{X6JS6JOQ.js → APEJ2ZG4.js} +2 -2
- package/dist/cdn/{SVEHL3HT.js → ATVD3FQ5.js} +2 -2
- package/dist/cdn/{47KFNKS5.js → B53ZEH7P.js} +2 -2
- package/dist/cdn/{F6EPH7E3.js → BC3MKGHQ.js} +2 -2
- package/dist/cdn/{SCLAXZDQ.js → BDUP5B7P.js} +2 -2
- package/dist/cdn/{HMQOM3V5.js → BEPXBBSX.js} +2 -2
- package/dist/cdn/{ZAQAZNCT.js → BIESEO2T.js} +2 -2
- package/dist/cdn/{IZ6QELCQ.js → BJ4X4HTB.js} +2 -2
- package/dist/cdn/{25X64BXA.js → BJIJTBTP.js} +2 -2
- package/dist/cdn/{HIDXWWXK.js → BML7RRFR.js} +2 -2
- package/dist/cdn/{WU6RMTYJ.js → BV4QE6GM.js} +1 -1
- package/dist/cdn/{RPJ7PYJI.js → BXSJVOYL.js} +2 -2
- package/dist/cdn/{G2PXX25P.js → C52USQZY.js} +2 -2
- package/dist/cdn/{PZIMMOZN.js → CAG5LQXB.js} +2 -2
- package/dist/cdn/{QFO2IRTT.js → CHY3F7MV.js} +2 -2
- package/dist/cdn/{QDBGBNCJ.js → CSH7OOTY.js} +2 -2
- package/dist/cdn/{E5ADEGIT.js → CZFKF7LP.js} +2 -2
- package/dist/cdn/{YBNROUXG.js → D3IOFFLC.js} +2 -2
- package/dist/cdn/{FEFDKT3G.js → D4VAL7CE.js} +2 -2
- package/dist/cdn/{S4YCMSWT.js → DCS6TDWA.js} +2 -2
- package/dist/cdn/{VZNLSB2B.js → DDV75YFQ.js} +2 -2
- package/dist/cdn/{RDHXYAFQ.js → DFNYQ5GZ.js} +2 -2
- package/dist/cdn/{724N2M2P.js → DH5N3EYA.js} +2 -2
- package/dist/cdn/{MMOSYXXD.js → DJCU27HU.js} +2 -2
- package/dist/cdn/{YFXERNVQ.js → DSDVOPJK.js} +2 -2
- package/dist/cdn/{HRISCZE4.js → DUV6P2BW.js} +2 -2
- package/dist/cdn/{YOG4QHWC.js → DXNK2ST2.js} +2 -2
- package/dist/cdn/{YNYENOUR.js → DY2OV6SZ.js} +2 -2
- package/dist/cdn/{LBUL7H3K.js → E7KEDQNU.js} +2 -2
- package/dist/cdn/{NEZIL7TY.js → EBUGK35V.js} +2 -2
- package/dist/cdn/{DT2WRSQY.js → ECR6L3R2.js} +2 -2
- package/dist/cdn/{KP4CU4J3.js → ED3BHEDS.js} +2 -2
- package/dist/cdn/{2XZDHGFY.js → EMVSZXV7.js} +2 -2
- package/dist/cdn/{FHR2AZGF.js → EYU24CV4.js} +2 -2
- package/dist/cdn/{4Y57U7FU.js → FCRLQNLN.js} +2 -2
- package/dist/cdn/{4K3ZXFR5.js → FH6Z5IXS.js} +2 -2
- package/dist/cdn/{EUZIMXC5.js → FM3QTS3C.js} +2 -2
- package/dist/cdn/{2DK7SRP6.js → FMCNJXL6.js} +2 -2
- package/dist/cdn/{7A3IV2NK.js → FMJLLGYF.js} +2 -2
- package/dist/cdn/{NNQHEALB.js → FOVSEOSY.js} +2 -2
- package/dist/cdn/{25IZDWSN.js → FPAYDY37.js} +2 -2
- package/dist/cdn/{5GVY3VJX.js → FRR2JOHO.js} +2 -2
- package/dist/cdn/FRUXL4XG.js +4 -0
- package/dist/cdn/{55HXIMBO.js → FYLJCJ44.js} +2 -2
- package/dist/cdn/{7S7OOY2G.js → G2DLQJ7Y.js} +2 -2
- package/dist/cdn/{G46MJ3MY.js → GBRRLZHP.js} +2 -2
- package/dist/cdn/{WHIO3FQO.js → GEDZJZUA.js} +2 -2
- package/dist/cdn/GGC2FX5Z.js +4 -0
- package/dist/cdn/{MJSLXMLN.js → GHKQYCOR.js} +2 -2
- package/dist/cdn/{QYQFATN7.js → GIN554OU.js} +2 -2
- package/dist/cdn/{JJMEELHM.js → GJ6HSQQ4.js} +2 -2
- package/dist/cdn/{A33MSS2I.js → GXUPEC6W.js} +2 -2
- package/dist/cdn/{JLVTHJBF.js → GYMFVTHG.js} +2 -2
- package/dist/cdn/{2E7TZRRV.js → H6VQWOFY.js} +2 -2
- package/dist/cdn/{DDVIT3TT.js → H7OJS4LM.js} +2 -2
- package/dist/cdn/{6POLNT3T.js → HF7CWC2S.js} +2 -2
- package/dist/cdn/{BH6X2ZRD.js → HXVTT6O6.js} +2 -2
- package/dist/cdn/{5NVMXBFF.js → HYBN7ELI.js} +2 -2
- package/dist/cdn/{UWGBB7SJ.js → I5CTO7YJ.js} +2 -2
- package/dist/cdn/{ZXK25NUP.js → I7JCDSDM.js} +1 -1
- package/dist/cdn/{UJZNVEY4.js → IEEHHP3U.js} +2 -2
- package/dist/cdn/{3V72WFKG.js → IJ5BRIGD.js} +2 -2
- package/dist/cdn/{D7OM7PCI.js → IKNWZBGW.js} +1 -1
- package/dist/cdn/{V7TUE55H.js → IPBMELVN.js} +2 -2
- package/dist/cdn/{CNKQ7MZX.js → IPHW34NC.js} +2 -2
- package/dist/cdn/{P7LX2OK4.js → J2EF2ZWX.js} +2 -2
- package/dist/cdn/{HZDBJ2JH.js → JFECILAK.js} +2 -2
- package/dist/cdn/{QQ6B7FB4.js → JHFFVOHO.js} +2 -2
- package/dist/cdn/{L57LMROR.js → JLID32C6.js} +2 -2
- package/dist/cdn/{OY2FNXHE.js → JMC23YQA.js} +2 -2
- package/dist/cdn/{ZFVQNIV3.js → JOSZK26L.js} +2 -2
- package/dist/cdn/{SRETHNAO.js → JP2GTDWK.js} +2 -2
- package/dist/cdn/{A447YPEL.js → JU7BX5YV.js} +2 -2
- package/dist/cdn/{K2KINYI4.js → K2XL3QAA.js} +2 -2
- package/dist/cdn/{LCA2TYEZ.js → KA77ECLW.js} +2 -2
- package/dist/cdn/{YSDARCXG.js → KF3KYUW7.js} +2 -2
- package/dist/cdn/{GEPPAFBR.js → KHH2SII2.js} +2 -2
- package/dist/cdn/{JHMIXJME.js → KJ2BZIKS.js} +2 -2
- package/dist/cdn/{V2WAZBCQ.js → KK4KQV3W.js} +2 -2
- package/dist/cdn/{BGPK3K43.js → KME3B73D.js} +2 -2
- package/dist/cdn/{24FZLFOK.js → KPIKIXNF.js} +2 -2
- package/dist/cdn/{WXJJ47QG.js → KVNZ7JCO.js} +2 -2
- package/dist/cdn/{RV362NX4.js → L33TUHSN.js} +2 -2
- package/dist/cdn/{XEWOPYKZ.js → L47HCJ6Z.js} +2 -2
- package/dist/cdn/{KSTTZXSV.js → LFBLDB44.js} +2 -2
- package/dist/cdn/{IYJ77TML.js → LJE4Y7BY.js} +2 -2
- package/dist/cdn/{WV6NMA4J.js → LSE6FZBG.js} +2 -2
- package/dist/cdn/{XSBBQ2WV.js → LTGS7O3N.js} +2 -2
- package/dist/cdn/{5XDWNZXA.js → M3D2NYN3.js} +1 -1
- package/dist/cdn/{5ZNR3CE3.js → MEYRGFBH.js} +2 -2
- package/dist/cdn/{BPYMQST7.js → MT2GC6YZ.js} +2 -2
- package/dist/cdn/{JE33CPCE.js → MZ56KGFA.js} +2 -2
- package/dist/cdn/{GPQMTS6R.js → NE7YXC43.js} +2 -2
- package/dist/cdn/NMDU3UET.js +4 -0
- package/dist/cdn/{SZLHYT5W.js → NMF2M4P3.js} +1 -1
- package/dist/cdn/{H4W6QKJU.js → NMGGHZL2.js} +2 -2
- package/dist/cdn/{YVVQHIGY.js → NTFEZJBT.js} +2 -2
- package/dist/cdn/{HNS4AQVJ.js → NZWVCVZW.js} +2 -2
- package/dist/cdn/{S4SXK5KM.js → OADUNXKK.js} +2 -2
- package/dist/cdn/{UTHU6WCL.js → OEPP6CY5.js} +2 -2
- package/dist/cdn/{QINV6BM4.js → OGC3V7MA.js} +2 -2
- package/dist/cdn/{KSTBGZPT.js → OIXKJYZO.js} +2 -2
- package/dist/cdn/{FYIUMYGR.js → OP47YISE.js} +2 -2
- package/dist/cdn/{UCEHEYP3.js → OW7J5X2Q.js} +2 -2
- package/dist/cdn/{DJMJ44ZT.js → OZMRRK2Y.js} +1 -1
- package/dist/cdn/{ZQLFN5FG.js → PBU27SUZ.js} +2 -2
- package/dist/cdn/{TRA7X542.js → PJ77LCUF.js} +2 -2
- package/dist/cdn/{JE2SAKAD.js → PKHDNANW.js} +2 -2
- package/dist/cdn/{5PWGWHIR.js → PL6CQKLM.js} +2 -2
- package/dist/cdn/{H4UC7K4E.js → PORSXLRL.js} +2 -2
- package/dist/cdn/{IBN52EOC.js → PSKZO72G.js} +2 -2
- package/dist/cdn/{CMXMA5IM.js → PV3TETKY.js} +2 -2
- package/dist/cdn/{2RPF4M2F.js → PYZFQI5C.js} +2 -2
- package/dist/cdn/{QHBT62WW.js → PZK7B2TL.js} +1 -1
- package/dist/cdn/{QTJDDX33.js → Q35KRAVX.js} +2 -2
- package/dist/cdn/{EBNKZMCI.js → QC53WM4B.js} +2 -2
- package/dist/cdn/{EDYL7HPP.js → QMZBTERZ.js} +2 -2
- package/dist/cdn/{HZOCJITH.js → QO6QN3IQ.js} +1 -1
- package/dist/cdn/{HJAHZKHB.js → QPVKKBNQ.js} +2 -2
- package/dist/cdn/{MLWJILN6.js → QRPTMJFT.js} +2 -2
- package/dist/cdn/{AOG3QITX.js → QTPE6SDR.js} +2 -2
- package/dist/cdn/{MLS3ZO7M.js → R53VENXY.js} +2 -2
- package/dist/cdn/{WLFBLXH4.js → R5BNVR66.js} +2 -2
- package/dist/cdn/{D4FAYT3J.js → RDVX7SAC.js} +2 -2
- package/dist/cdn/{EEG3ZTH7.js → RECGDWS6.js} +2 -2
- package/dist/cdn/{EMP5JE4T.js → RFSWEQ3H.js} +2 -2
- package/dist/cdn/{2WTZVJD5.js → RHLKZA34.js} +2 -2
- package/dist/cdn/{MXYKKHXU.js → RMFHLF4D.js} +2 -2
- package/dist/cdn/{SEPEVNES.js → RMXLEHFL.js} +1 -1
- package/dist/cdn/{6RPQCOWI.js → RN65F4EU.js} +1 -1
- package/dist/cdn/{OJEB6IPM.js → ROUSH4OT.js} +1 -1
- package/dist/cdn/{2OV6QYUX.js → RPXF2UPY.js} +2 -2
- package/dist/cdn/{GLSWPO6R.js → RUGXQBMX.js} +2 -2
- package/dist/cdn/{IR2CG6SQ.js → RVDVMDEI.js} +2 -2
- package/dist/cdn/{LIL24PIN.js → RZVTUV5J.js} +2 -2
- package/dist/cdn/{74QPIFS2.js → S2V2W4SB.js} +2 -2
- package/dist/cdn/{Z6KIH56L.js → S2WAX7GH.js} +2 -2
- package/dist/cdn/{CFQNKQLP.js → S37WFNKC.js} +2 -2
- package/dist/cdn/{ZILPZPIM.js → SGCY6SLE.js} +2 -2
- package/dist/cdn/{TLIFTU62.js → SGSYHTAS.js} +2 -2
- package/dist/cdn/{MCLOWNAU.js → SHWLBIX6.js} +2 -2
- package/dist/cdn/{RWF3FG7R.js → SIHNLNEA.js} +2 -2
- package/dist/cdn/{SY62LJ5M.js → SK6QCPID.js} +2 -2
- package/dist/cdn/{TN4GQ5QN.js → SLSJQU47.js} +2 -2
- package/dist/cdn/{LQQR3AQF.js → SMIJSUYR.js} +2 -2
- package/dist/cdn/{PGDEEEHH.js → SSIAIKDQ.js} +2 -2
- package/dist/cdn/{CVOYRKZS.js → STOXIMCR.js} +2 -2
- package/dist/cdn/{CITIZAZI.js → SU2VWWCB.js} +2 -2
- package/dist/cdn/{SLVVWDPK.js → SVUYFYTV.js} +2 -2
- package/dist/cdn/T6V4IFOB.js +4 -0
- package/dist/cdn/{4FUAC2GT.js → TC6ZBBSA.js} +2 -2
- package/dist/cdn/{BQNWJURN.js → TEDENAD4.js} +2 -2
- package/dist/cdn/{MEJIVYKM.js → TFMLH5Y7.js} +2 -2
- package/dist/cdn/{ZQUJJC5R.js → TMDOKN2X.js} +2 -2
- package/dist/cdn/{UYZCSS2V.js → TP7S47WJ.js} +2 -2
- package/dist/cdn/{B5Y47WQN.js → TVL5HYIC.js} +2 -2
- package/dist/cdn/{ZMACPZ6D.js → TVX53RNP.js} +3 -3
- package/dist/cdn/{LWJVEFQ5.js → TXOHBSWG.js} +2 -2
- package/dist/cdn/{6PESQ2ZC.js → TYQXL7A4.js} +2 -2
- package/dist/cdn/{IDO6JK4M.js → UJSWN5OK.js} +2 -2
- package/dist/cdn/{GKAZ2TIK.js → UO3ICPPO.js} +2 -2
- package/dist/cdn/{DEBK2ZK4.js → USUYE22F.js} +1 -1
- package/dist/cdn/{VDCQFU5K.js → VIXVEUAB.js} +2 -2
- package/dist/cdn/{IIIFNQ7F.js → VKTDHEVF.js} +2 -2
- package/dist/cdn/{RBE574GA.js → VVPVLBUG.js} +2 -2
- package/dist/cdn/{T7FM4JD6.js → VZM35ZQQ.js} +2 -2
- package/dist/cdn/{VV3CTLMJ.js → VZUX5GLE.js} +2 -2
- package/dist/cdn/{UAWLGRML.js → W2OTNRWP.js} +2 -2
- package/dist/cdn/{JISIG2WA.js → WDRS2XCE.js} +2 -2
- package/dist/cdn/{5RRFOQBO.js → WHAFO4LN.js} +2 -2
- package/dist/cdn/{UBB55AI4.js → WIKGAJKR.js} +2 -2
- package/dist/cdn/{DYUQ33TG.js → WIXVZBFB.js} +2 -2
- package/dist/cdn/{LKFOF3K7.js → WJAYVKAD.js} +2 -2
- package/dist/cdn/{ECBC3KB6.js → WQ3225KQ.js} +2 -2
- package/dist/cdn/{UFIIJ5R3.js → WQF4MTVK.js} +2 -2
- package/dist/cdn/{QAHMU6RC.js → WWIXIXO7.js} +2 -2
- package/dist/cdn/{XNEAKPXB.js → WXEYFVOL.js} +2 -2
- package/dist/cdn/{5XGLIHAN.js → XL77TBYE.js} +2 -2
- package/dist/cdn/{NJTACGZS.js → XXW2QC25.js} +2 -2
- package/dist/cdn/{WJLTANIS.js → XY2ASQQU.js} +2 -2
- package/dist/cdn/{KR6GQLOX.js → Y5MTNOE5.js} +2 -2
- package/dist/cdn/{VF254QF2.js → Y7FLQZHJ.js} +2 -2
- package/dist/cdn/{NQC5GIKN.js → YL37TWFC.js} +2 -2
- package/dist/cdn/{EG242PP3.js → YUBAO2CT.js} +2 -2
- package/dist/cdn/{VR45PC42.js → YXWMLFTR.js} +2 -2
- package/dist/cdn/{A7QBL3A2.js → YXXO76V2.js} +2 -2
- package/dist/cdn/{7FCONDWZ.js → YYFPAH2X.js} +2 -2
- package/dist/cdn/{GXO3FWW2.js → YYSU3XOB.js} +2 -2
- package/dist/cdn/{COF2YZPH.js → ZC72KBRO.js} +2 -2
- package/dist/cdn/{HLEWL2DQ.js → ZJ33DUZU.js} +2 -2
- package/dist/cdn/{ZZVTOYMZ.js → ZQ7REL2H.js} +2 -2
- package/dist/cdn/{3RKITOWL.js → ZTXTDD7V.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/visible-element.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +2 -2
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +42 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +21 -18
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +18 -4
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +50 -50
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +21 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +71 -65
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +159 -10
- package/dist/docs/docs.json +177 -15
- package/dist/docs/vscode.html-custom-data.json +3 -3
- package/dist/docs/web-types.json +55 -16
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +4 -4
- package/dist/types/lumina.d.ts +5 -3
- package/dist/types/preact.d.ts +5 -3
- package/dist/types/preact10.d.ts +5 -3
- package/dist/types/react.d.ts +5 -3
- package/dist/types/stencil.d.ts +5 -3
- package/package.json +3 -3
- package/dist/cdn/4WWVGZYW.js +0 -4
- package/dist/cdn/BQFCW32I.js +0 -4
- package/dist/cdn/HIQFUQOV.js +0 -4
- package/dist/cdn/JTSZIJR7.js +0 -4
- package/dist/cdn/UZLP7W75.js +0 -4
- package/dist/cdn/Y2IAH2XC.js +0 -4
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { c as y } from "../../chunks/runtime.js";
|
|
2
2
|
import { repeat as d } from "lit/directives/repeat.js";
|
|
3
3
|
import { queryAllJSON as b } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
4
|
-
import
|
|
4
|
+
import s from "@arcgis/core/core/Collection.js";
|
|
5
5
|
import f from "@arcgis/core/layers/GraphicsLayer.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { LitElement as L, createEvent as
|
|
12
|
-
import { css as
|
|
13
|
-
import { u as
|
|
6
|
+
import S from "@arcgis/core/networks/support/UNTraceConfiguration.js";
|
|
7
|
+
import _ from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
8
|
+
import T from "@arcgis/core/rest/support/FeatureSet.js";
|
|
9
|
+
import u from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
|
|
10
|
+
import N from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
11
|
+
import { LitElement as L, createEvent as c, safeClassMap as h } from "@arcgis/lumina";
|
|
12
|
+
import { css as $, html as r } from "lit";
|
|
13
|
+
import { u as C } from "../../chunks/useT9n.js";
|
|
14
14
|
import { usePropertyChange as v } from "@arcgis/lumina/controllers";
|
|
15
|
-
import { log as
|
|
15
|
+
import { log as l, composeMissingPropertyMessage as U, composeEmptyPropertyMessage as E } from "@arcgis/toolkit/log";
|
|
16
16
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
17
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
18
|
-
v5.0.0-next.
|
|
19
|
-
const M =
|
|
18
|
+
v5.0.0-next.93 */
|
|
19
|
+
const M = $`:host{width:100%}.arcgis-utility-network-trace-inputs calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-inputs calcite-block-group{padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.arcgis-utility-network-trace-inputs calcite-block calcite-select,.arcgis-utility-network-trace-inputs calcite-block calcite-input{padding:0 var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}.arcgis-utility-network-trace-inputs calcite-notice{padding:var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs .inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs__add-spatial-mode{display:flex;height:300px;padding:var(--calcite-spacing-xxl) var(--calcite-spacing-sm);flex-direction:column;justify-content:center;align-items:center;gap:var(--calcite-spacing-md);align-self:stretch}.arcgis-utility-network-trace-inputs .subnetwork-info-block{padding-top:var(--calcite-spacing-md);padding-left:var(--calcite-spacing-md);padding-right:var(--calcite-spacing-md)}`, g = "arcgis-utility-network-trace-inputs", p = {
|
|
20
20
|
// popup renderer
|
|
21
21
|
base: g,
|
|
22
22
|
// containers and content
|
|
23
23
|
addSpatialMode: `${g}__add-spatial-mode`
|
|
24
24
|
}, w = `utility-network-trace-inputs-sketch-${Date.now()}`, n = `utility-network-trace-inputs-flags-${Date.now()}`, I = 20;
|
|
25
|
-
class
|
|
25
|
+
class P extends L {
|
|
26
26
|
constructor() {
|
|
27
|
-
super(...arguments), this._messages =
|
|
27
|
+
super(...arguments), this._messages = C({ blocking: !0 }), this._startingPoints = new s(), this._barriers = new s(), this._stoppingPoints = new s(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
|
|
28
28
|
"subnetwork",
|
|
29
29
|
"subnetwork-controller",
|
|
30
30
|
"upstream",
|
|
31
31
|
"downstream",
|
|
32
32
|
"isolation"
|
|
33
|
-
]), this._removeDuplicateSubnetworkNames = (e, t, i) => t === 0 || e.getAttribute("SUBNETWORKNAME") !== i[t - 1].getAttribute("SUBNETWORKNAME"), this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this.mode = "default", this.arcgisTraceInputsChange =
|
|
33
|
+
]), this._removeDuplicateSubnetworkNames = (e, t, i) => t === 0 || e.getAttribute("SUBNETWORKNAME") !== i[t - 1].getAttribute("SUBNETWORKNAME"), this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this.mode = "default", this.arcgisTraceInputsChange = c(), this.arcgisUtilityNetworkChange = c(), this.arcgisTraceLocationSelectStart = c(), this.arcgisTraceLocationSelectEnd = c(), this.arcgisPropertyChange = v()("mode");
|
|
34
34
|
}
|
|
35
35
|
static {
|
|
36
|
-
this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _state: 16, _activeTraceLocationType: 16, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, unTraceConfiguration: 32, referenceElement: 1, mode: 1, traceLocations: 32 };
|
|
36
|
+
this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _state: 16, _activeTraceLocationType: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, unTraceConfiguration: 32, referenceElement: 1, mode: 1, traceLocations: 32 };
|
|
37
37
|
}
|
|
38
38
|
static {
|
|
39
39
|
this.styles = M;
|
|
@@ -53,13 +53,13 @@ class A extends L {
|
|
|
53
53
|
}
|
|
54
54
|
get traceLocations() {
|
|
55
55
|
const e = [], t = (i) => {
|
|
56
|
-
i.flagProperties.terminalConfiguration && i.flagProperties.selectedTerminals ? i.flagProperties.selectedTerminals.forEach((
|
|
57
|
-
e.push(new
|
|
56
|
+
i.flagProperties.terminalConfiguration && i.flagProperties.selectedTerminals ? i.flagProperties.selectedTerminals.forEach((o) => {
|
|
57
|
+
e.push(new _({
|
|
58
58
|
type: i.traceLocation.type,
|
|
59
59
|
isFilterBarrier: i.traceLocation.isFilterBarrier,
|
|
60
60
|
globalId: i.traceLocation.globalId,
|
|
61
61
|
percentAlong: i.traceLocation.percentAlong,
|
|
62
|
-
terminalId:
|
|
62
|
+
terminalId: o
|
|
63
63
|
}));
|
|
64
64
|
}) : e.push(i.traceLocation);
|
|
65
65
|
};
|
|
@@ -79,7 +79,7 @@ class A extends L {
|
|
|
79
79
|
if (!t || !e?.map)
|
|
80
80
|
return;
|
|
81
81
|
const { map: i } = e;
|
|
82
|
-
i.layers.find((
|
|
82
|
+
i.layers.find((o) => o === t) || i.add(t), i.reorder(t, i.layers.length - 1);
|
|
83
83
|
}
|
|
84
84
|
_createGraphicLayer(e) {
|
|
85
85
|
const { map: t } = this.view;
|
|
@@ -104,14 +104,14 @@ class A extends L {
|
|
|
104
104
|
_setSnappingOption() {
|
|
105
105
|
const { _sketchViewModel: e, _unLayers: t } = this;
|
|
106
106
|
if (e && t && t.length > 0) {
|
|
107
|
-
const i = new
|
|
107
|
+
const i = new s();
|
|
108
108
|
t.forEach((a) => {
|
|
109
|
-
a.type === "subtype-group" ? a.sublayers.forEach((
|
|
110
|
-
i.add(new
|
|
111
|
-
layer:
|
|
109
|
+
a.type === "subtype-group" ? a.sublayers.forEach((o) => {
|
|
110
|
+
i.add(new u({
|
|
111
|
+
layer: o,
|
|
112
112
|
enabled: !0
|
|
113
113
|
}));
|
|
114
|
-
}) : i.add(new
|
|
114
|
+
}) : i.add(new u({
|
|
115
115
|
layer: a,
|
|
116
116
|
enabled: !0
|
|
117
117
|
}));
|
|
@@ -123,11 +123,11 @@ class A extends L {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
_initializeSketchViewModel() {
|
|
126
|
-
const { view: e, _unLayers: t } = this, i = this._getGraphicLayer(w), a = new
|
|
127
|
-
return t?.forEach((
|
|
128
|
-
layer:
|
|
126
|
+
const { view: e, _unLayers: t } = this, i = this._getGraphicLayer(w), a = new s();
|
|
127
|
+
return t?.forEach((o) => a.add(new u({
|
|
128
|
+
layer: o,
|
|
129
129
|
enabled: !0
|
|
130
|
-
}))), new
|
|
130
|
+
}))), new N({
|
|
131
131
|
layer: i,
|
|
132
132
|
view: e
|
|
133
133
|
});
|
|
@@ -147,7 +147,7 @@ class A extends L {
|
|
|
147
147
|
return;
|
|
148
148
|
const t = e.createQuery();
|
|
149
149
|
t.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, t.where = this._getSubnetworkQueryWhereClause(), t.outFields = ["SUBNETWORKNAME"], t.orderByFields = ["SUBNETWORKNAME"];
|
|
150
|
-
const i =
|
|
150
|
+
const i = T.fromJSON(await b(e, t));
|
|
151
151
|
this.compatibleSubnetworkNames = i.features.filter(this._removeDuplicateSubnetworkNames).map((a) => a.getAttribute("SUBNETWORKNAME"));
|
|
152
152
|
}
|
|
153
153
|
_getSubnetworkQueryWhereClause() {
|
|
@@ -162,15 +162,15 @@ class A extends L {
|
|
|
162
162
|
_selectTraceConfigurationByGuid(e) {
|
|
163
163
|
const t = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find((i) => i.globalId === e);
|
|
164
164
|
if (!t) {
|
|
165
|
-
|
|
165
|
+
l("error", this, "`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
168
|
this.selectedNamedTraceConfiguration = t;
|
|
169
169
|
}
|
|
170
170
|
_handleTraceConfigChange() {
|
|
171
171
|
const { selectedNamedTraceConfiguration: e } = this;
|
|
172
|
-
if (!(e?.traceConfiguration instanceof
|
|
173
|
-
|
|
172
|
+
if (!(e?.traceConfiguration instanceof S)) {
|
|
173
|
+
l("error", this, U("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
switch (this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType) {
|
|
@@ -187,12 +187,12 @@ class A extends L {
|
|
|
187
187
|
}
|
|
188
188
|
_filterUnLayers() {
|
|
189
189
|
const { selectedUtilityNetwork: e } = this;
|
|
190
|
-
this._unLayers = new
|
|
190
|
+
this._unLayers = new s(this._allLayers.filter((t) => e?.isUtilityLayer(t))), this._setSnappingOption();
|
|
191
191
|
}
|
|
192
192
|
_handleUtilityNetworksChange() {
|
|
193
193
|
const { utilityNetworks: e } = this;
|
|
194
194
|
if (!e || e.length === 0) {
|
|
195
|
-
this._state = "error",
|
|
195
|
+
this._state = "error", l("error", this, E("utilityNetworks"));
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
(!this.selectedUtilityNetwork || !e.includes(this.selectedUtilityNetwork)) && (this.selectedUtilityNetwork = e.at(0));
|
|
@@ -202,20 +202,20 @@ class A extends L {
|
|
|
202
202
|
const e = this.view.map;
|
|
203
203
|
await e.load(), this.utilityNetworks = e.utilityNetworks || void 0;
|
|
204
204
|
} else
|
|
205
|
-
this._state = "disabled",
|
|
205
|
+
this._state = "disabled", l("error", this, "The property `view.map` is required to load utility networks but is missing.");
|
|
206
206
|
}
|
|
207
207
|
_handleTraceLocationSelectStart(e) {
|
|
208
|
-
if (e.stopPropagation(), this.arcgisTraceLocationSelectStart.emit().defaultPrevented) {
|
|
208
|
+
if (e.stopPropagation(), this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented) {
|
|
209
209
|
e.preventDefault();
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
212
212
|
this._activeTraceLocationType = e?.target?.traceLocationType, this.mode = "add-spatial";
|
|
213
213
|
}
|
|
214
|
-
_handleTraceLocationSelectEnd() {
|
|
215
|
-
this._activeTraceLocationType = void 0, this.mode = "default";
|
|
214
|
+
_handleTraceLocationSelectEnd(e) {
|
|
215
|
+
e.stopPropagation(), this.arcgisTraceLocationSelectEnd.emit(), this._activeTraceLocationType = void 0, this.mode = "default";
|
|
216
216
|
}
|
|
217
217
|
_handleFlowItemBack() {
|
|
218
|
-
this.
|
|
218
|
+
this._activeTraceLocationType = void 0, this.mode = "default", this._sketchViewModel?.cancel();
|
|
219
219
|
}
|
|
220
220
|
renderError(e, t = !1, i) {
|
|
221
221
|
return r`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`;
|
|
@@ -227,15 +227,15 @@ class A extends L {
|
|
|
227
227
|
const { _messages: e, traceConfigurations: t } = this, i = e.labels.traceConfiguration;
|
|
228
228
|
if (t.length === 0)
|
|
229
229
|
return this.renderError(e.errors.noTraceConfigurationError, !0);
|
|
230
|
-
const a = d(t, (
|
|
231
|
-
return r`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedNamedTraceConfiguration?.globalId || void 0} @calciteSelectChange=${(
|
|
232
|
-
this._selectTraceConfigurationByGuid(
|
|
230
|
+
const a = d(t, (o) => o.globalId, (o) => r`<calcite-option .value=${o.globalId}>${o.title}</calcite-option>`);
|
|
231
|
+
return r`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedNamedTraceConfiguration?.globalId || void 0} @calciteSelectChange=${(o) => {
|
|
232
|
+
this._selectTraceConfigurationByGuid(o.target.value);
|
|
233
233
|
}}>${a}</calcite-select></calcite-block>`;
|
|
234
234
|
}
|
|
235
235
|
renderUtilityNetworkSelection() {
|
|
236
236
|
const { _messages: e } = this, t = e.labels.utilityNetwork, i = d(this.utilityNetworks, (a) => a.id, (a) => r`<calcite-option .value=${a.id}>${a.title}</calcite-option>`).toArray();
|
|
237
237
|
return r`<calcite-block .heading=${t} .label=${t} expanded><calcite-select .label=${t} .value=${this.selectedUtilityNetwork?.id} @calciteSelectChange=${(a) => {
|
|
238
|
-
this.selectedUtilityNetwork?.id !== a.target.value && (this.selectedUtilityNetwork = this.utilityNetworks?.find((
|
|
238
|
+
this.selectedUtilityNetwork?.id !== a.target.value && (this.selectedUtilityNetwork = this.utilityNetworks?.find((o) => o.id === a.target.value));
|
|
239
239
|
}}>${i}</calcite-select></calcite-block>`;
|
|
240
240
|
}
|
|
241
241
|
renderDefaultMode() {
|
|
@@ -247,13 +247,13 @@ class A extends L {
|
|
|
247
247
|
return r`<calcite-flow-item selected .heading=${i} @calciteFlowItemBack=${() => this._handleFlowItemBack()}><div class=${h(p.addSpatialMode)}><calcite-icon icon=pin-plus scale=l></calcite-icon>${e.instructions.addSpatial}</div></calcite-flow-item>`;
|
|
248
248
|
}
|
|
249
249
|
renderStartingPointSelection() {
|
|
250
|
-
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point @arcgisTraceLocationSelectStart=${
|
|
250
|
+
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(n)} .traceLocations=${this._startingPoints}></arcgis-utility-network-trace-location>`;
|
|
251
251
|
}
|
|
252
252
|
renderStoppingPointSelection() {
|
|
253
|
-
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point @arcgisTraceLocationSelectStart=${
|
|
253
|
+
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(n)} .traceLocations=${this._stoppingPoints}></arcgis-utility-network-trace-location>`;
|
|
254
254
|
}
|
|
255
255
|
renderBarrierSelection() {
|
|
256
|
-
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier @arcgisTraceLocationSelectStart=${
|
|
256
|
+
return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(n)} .traceLocations=${this._barriers}></arcgis-utility-network-trace-location>`;
|
|
257
257
|
}
|
|
258
258
|
renderSubnetworkNameInput() {
|
|
259
259
|
return r`<calcite-input clearable type=text .placeholder=${this._messages.instructions.enterSubnetworkName} max-length=64 .value=${this.selectedSubnetworkName} @calciteInputInput=${(e) => this.selectedSubnetworkName = e.target.value}></calcite-input>`;
|
|
@@ -273,7 +273,7 @@ class A extends L {
|
|
|
273
273
|
const { utilityNetworks: e } = this, t = this.selectedNamedTraceConfiguration?.traceConfiguration;
|
|
274
274
|
if (!e || e.length === 0)
|
|
275
275
|
return this.renderError(this._messages.errors.noUtilityNetworkError);
|
|
276
|
-
const i = r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, a = this.selectedNamedTraceConfiguration?.traceType,
|
|
276
|
+
const i = r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, a = this.selectedNamedTraceConfiguration?.traceType, o = !(t?.subnetworkName && a === "subnetwork"), m = a === "path" || a === "circuit", k = r`${o ? this.renderStartingPointSelection() : null}${m ? this.renderStoppingPointSelection() : null}${this.renderBarrierSelection()}`;
|
|
277
277
|
return r`<calcite-block-group .label=${this._messages.labels.traceInputs}>${e.length > 1 ? this.renderUtilityNetworkSelection() : null}${this.selectedUtilityNetwork?.loaded ? i : this.renderLoader()}${t ? k : null}</calcite-block-group>`;
|
|
278
278
|
}
|
|
279
279
|
render() {
|
|
@@ -281,7 +281,7 @@ class A extends L {
|
|
|
281
281
|
return r`<div class=${h(p.base)}><calcite-flow>${this.renderDefaultMode()}${e === "add-spatial" ? this.renderAddSpatialMode() : null}</calcite-flow></div>`;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
y("arcgis-utility-network-trace-inputs",
|
|
284
|
+
y("arcgis-utility-network-trace-inputs", P);
|
|
285
285
|
export {
|
|
286
|
-
|
|
286
|
+
P as ArcgisUtilityNetworkTraceInputs
|
|
287
287
|
};
|
|
@@ -25,6 +25,9 @@ export interface FlagInfo {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export type TraceLocationType = "barrier" | "starting-point" | "stopping-point";
|
|
28
|
+
export interface SelectStartPayload {
|
|
29
|
+
cancelSelect: () => void;
|
|
30
|
+
}
|
|
28
31
|
|
|
29
32
|
/**
|
|
30
33
|
* This is a sub-component used by the **ArcgisUtilityNetworkTraceAnalysis** component.
|
|
@@ -38,6 +41,12 @@ export type TraceLocationType = "barrier" | "starting-point" | "stopping-point";
|
|
|
38
41
|
* @internal
|
|
39
42
|
*/
|
|
40
43
|
export declare class ArcgisUtilityNetworkTraceLocation extends LitElement {
|
|
44
|
+
/**
|
|
45
|
+
* A function to run before trace location selection starts.
|
|
46
|
+
*
|
|
47
|
+
* @experimental
|
|
48
|
+
*/
|
|
49
|
+
beforeTraceLocationSelectStart?: () => Promise<void>;
|
|
41
50
|
/** @required */
|
|
42
51
|
view?: MapView;
|
|
43
52
|
/** @default "starting-point" */
|
|
@@ -51,6 +60,17 @@ export declare class ArcgisUtilityNetworkTraceLocation extends LitElement {
|
|
|
51
60
|
/** @required The utility network to perform the trace on. */
|
|
52
61
|
utilityNetwork?: UtilityNetwork;
|
|
53
62
|
readonly arcgisTraceLocationChange: TargetedEvent<this, void>;
|
|
63
|
+
/**
|
|
64
|
+
* Fires when the user completes the selection of a trace location.
|
|
65
|
+
*
|
|
66
|
+
* @experimental
|
|
67
|
+
*/
|
|
54
68
|
readonly arcgisTraceLocationSelectEnd: TargetedEvent<this, void>;
|
|
55
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Fires when the user begins selection of a trace location.
|
|
71
|
+
* Can be prevented to stop the selection.
|
|
72
|
+
*
|
|
73
|
+
* @experimental
|
|
74
|
+
*/
|
|
75
|
+
readonly arcgisTraceLocationSelectStart: TargetedEvent<this, SelectStartPayload>;
|
|
56
76
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { c as v } from "../../chunks/runtime.js";
|
|
2
2
|
import { css as x, html as b } from "lit";
|
|
3
|
-
import * as
|
|
3
|
+
import * as S from "@arcgis/core/geometry/operators/cutOperator.js";
|
|
4
4
|
import * as m from "@arcgis/core/geometry/operators/lengthOperator.js";
|
|
5
5
|
import * as w from "@arcgis/core/geometry/operators/projectOperator.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { LitElement as
|
|
12
|
-
import { u as
|
|
6
|
+
import A from "@arcgis/core/geometry/Polyline.js";
|
|
7
|
+
import I from "@arcgis/core/geometry/SpatialReference.js";
|
|
8
|
+
import C from "@arcgis/core/Graphic.js";
|
|
9
|
+
import _ from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
10
|
+
import L from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
|
|
11
|
+
import { LitElement as F, createEvent as k, safeClassMap as p } from "@arcgis/lumina";
|
|
12
|
+
import { u as $ } from "../../chunks/useT9n.js";
|
|
13
13
|
import { log as c } from "@arcgis/toolkit/log";
|
|
14
14
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
15
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
16
|
-
v5.0.0-next.
|
|
17
|
-
const
|
|
16
|
+
v5.0.0-next.93 */
|
|
17
|
+
const G = x`.arcgis-utility-network-trace-location calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-location calcite-notice{padding:var(--calcite-spacing-xs)}.arcgis-utility-network-trace-location__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)}.arcgis-utility-network-trace-location__button-container{justify-content:center;display:grid}.arcgis-utility-network-trace-location__clear-button{--calcite-button-border-color: transparent}`, g = "arcgis-utility-network-trace-location", f = {
|
|
18
18
|
// popup renderer
|
|
19
19
|
base: g,
|
|
20
20
|
// containers and content
|
|
@@ -22,50 +22,50 @@ const S = x`.arcgis-utility-network-trace-location calcite-block{--calcite-block
|
|
|
22
22
|
clearButton: `${g}__clear-button`,
|
|
23
23
|
addLocationButton: `${g}__add-location-button`
|
|
24
24
|
};
|
|
25
|
-
class P extends
|
|
25
|
+
class P extends F {
|
|
26
26
|
constructor() {
|
|
27
|
-
super(...arguments), this.messages =
|
|
27
|
+
super(...arguments), this.messages = $({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.arcgisTraceLocationChange = k(), this.arcgisTraceLocationSelectEnd = k(), this.arcgisTraceLocationSelectStart = k();
|
|
28
28
|
}
|
|
29
29
|
static {
|
|
30
|
-
this.properties = { view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, spatialTolerance: 9, utilityNetwork: 0 };
|
|
30
|
+
this.properties = { isSelectWaiting: 16, beforeTraceLocationSelectStart: 0, view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, spatialTolerance: 9, utilityNetwork: 0 };
|
|
31
31
|
}
|
|
32
32
|
static {
|
|
33
|
-
this.styles =
|
|
33
|
+
this.styles = G;
|
|
34
34
|
}
|
|
35
35
|
async load() {
|
|
36
36
|
w.isLoaded() || await w.load();
|
|
37
37
|
}
|
|
38
38
|
_createPolyline(t, e) {
|
|
39
|
-
return new
|
|
39
|
+
return new A({
|
|
40
40
|
hasZ: !1,
|
|
41
41
|
hasM: !0,
|
|
42
42
|
paths: t,
|
|
43
|
-
spatialReference: new
|
|
43
|
+
spatialReference: new I({ wkid: e })
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
_calculatePercentAlong(t, e) {
|
|
47
|
-
const r = t.spatialReference, a = this._createPolyline(t.paths, r.wkid), s = e.x - 0.5,
|
|
47
|
+
const r = t.spatialReference, a = this._createPolyline(t.paths, r.wkid), s = e.x - 0.5, o = e.x + 0.5, n = e.y - 0.5, i = e.y + 0.5, l = [
|
|
48
48
|
[
|
|
49
49
|
[s, n],
|
|
50
|
-
[
|
|
50
|
+
[o, i]
|
|
51
51
|
]
|
|
52
|
-
],
|
|
52
|
+
], d = this._createPolyline(l, e.spatialReference.wkid), u = w.execute(d, r);
|
|
53
53
|
if (!u)
|
|
54
54
|
return c("error", this, "Unable to project flag geometry to source geometry spatial reference."), 0.5;
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
58
|
-
let
|
|
59
|
-
return
|
|
55
|
+
const h = S.execute(a, u);
|
|
56
|
+
if (h.length > 0) {
|
|
57
|
+
const T = m.execute(a, { unit: "feet" });
|
|
58
|
+
let y;
|
|
59
|
+
return h[0].paths[0][0][0] === a.paths[0][0][0] ? y = m.execute(h[0], { unit: "feet" }) : y = m.execute(h[1], { unit: "feet" }), y / T;
|
|
60
60
|
}
|
|
61
61
|
return c("warn", this, "Unable to cut the source geometry with the flag geometry."), 0.5;
|
|
62
62
|
}
|
|
63
63
|
async _ensureNecessaryAttributes(t) {
|
|
64
|
-
const e = (t.layer?.type === "feature", t.layer), r = e.fieldsIndex?.get("assetgroup") ?? !1, a = e.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", s = e.fieldsIndex?.get("assettype") ?? !1,
|
|
65
|
-
if (n &&
|
|
64
|
+
const e = (t.layer?.type === "feature", t.layer), r = e.fieldsIndex?.get("assetgroup") ?? !1, a = e.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", s = e.fieldsIndex?.get("assettype") ?? !1, o = e.fieldsIndex?.get("assettype")?.name ?? "assettype", n = t.getGlobalId(), i = t.getObjectId(), l = r ? !!t.getAttribute(a) : !0, d = s ? !!t.getAttribute(o) : !0;
|
|
65
|
+
if (n && i && l && d)
|
|
66
66
|
return t;
|
|
67
67
|
const u = e.createQuery();
|
|
68
|
-
return u.objectIds = [
|
|
68
|
+
return u.objectIds = [i], (await e.queryFeatures(u))?.features[0] || null;
|
|
69
69
|
}
|
|
70
70
|
async _ensureNecessaryAttributesAndGenerateTraceLocation(t, e) {
|
|
71
71
|
const { view: r } = this;
|
|
@@ -73,16 +73,16 @@ class P extends $ {
|
|
|
73
73
|
c("error", this, "`view` is unavailable or there are no results to process.");
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
const s = t[0].graphic,
|
|
77
|
-
if (!
|
|
76
|
+
const s = t[0].graphic, o = await this._ensureNecessaryAttributes(s);
|
|
77
|
+
if (!o) {
|
|
78
78
|
c("error", this, "Unable to ensure necessary attributes on the selected graphic.");
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
this._generateTraceLocation(
|
|
81
|
+
this._generateTraceLocation(o, e);
|
|
82
82
|
}
|
|
83
83
|
_createFlagSymbol() {
|
|
84
84
|
const { traceLocationType: t } = this, e = [244, 21, 21, 0.6], r = [21, 244, 21, 0.6];
|
|
85
|
-
return t === "stopping-point" ? new
|
|
85
|
+
return t === "stopping-point" ? new L({
|
|
86
86
|
color: e,
|
|
87
87
|
style: "x",
|
|
88
88
|
size: 12,
|
|
@@ -90,7 +90,7 @@ class P extends $ {
|
|
|
90
90
|
color: e,
|
|
91
91
|
width: 2
|
|
92
92
|
}
|
|
93
|
-
}) : t === "barrier" ? new
|
|
93
|
+
}) : t === "barrier" ? new L({
|
|
94
94
|
color: e,
|
|
95
95
|
style: "square",
|
|
96
96
|
size: 12,
|
|
@@ -98,7 +98,7 @@ class P extends $ {
|
|
|
98
98
|
color: e,
|
|
99
99
|
width: 0
|
|
100
100
|
}
|
|
101
|
-
}) : new
|
|
101
|
+
}) : new L({
|
|
102
102
|
color: r,
|
|
103
103
|
style: "circle",
|
|
104
104
|
size: 12,
|
|
@@ -112,26 +112,26 @@ class P extends $ {
|
|
|
112
112
|
const { flagLayer: a, view: s } = this;
|
|
113
113
|
if (!a || !s)
|
|
114
114
|
return c("error", this, "The properties `flagLayer` and `view` are required but either one or both are missing."), null;
|
|
115
|
-
const
|
|
116
|
-
if (this.traceLocations?.some((l) => l.traceLocation.globalId === t) &&
|
|
115
|
+
const o = e.geometry?.type;
|
|
116
|
+
if (this.traceLocations?.some((l) => l.traceLocation.globalId === t) && o !== "polyline")
|
|
117
117
|
return c("warn", this, "A flag with the same globalId already exists."), null;
|
|
118
|
-
const n = this._createFlagSymbol(),
|
|
118
|
+
const n = this._createFlagSymbol(), i = new C({
|
|
119
119
|
geometry: r,
|
|
120
120
|
symbol: n,
|
|
121
121
|
attributes: e.attributes
|
|
122
122
|
});
|
|
123
|
-
return a.add(
|
|
123
|
+
return a.add(i), i;
|
|
124
124
|
}
|
|
125
125
|
async _generateItemTitle(t) {
|
|
126
126
|
const { messages: e } = this, r = (t.layer?.type === "feature", t.layer);
|
|
127
127
|
return ("getFeatureTitle" in r ? await r.getFeatureTitle(t) : null) || t?.getObjectId()?.toString() || e.labels.unknown;
|
|
128
128
|
}
|
|
129
129
|
async _generateFlagInfo(t, e) {
|
|
130
|
-
const { traceLocationType: r, utilityNetwork: a } = this, s = t.getGlobalId() ?? "",
|
|
131
|
-
if (
|
|
132
|
-
const
|
|
130
|
+
const { traceLocationType: r, utilityNetwork: a } = this, s = t.getGlobalId() ?? "", o = t.geometry?.type, n = await this._generateItemTitle(t);
|
|
131
|
+
if (o === "point" || o === "polygon") {
|
|
132
|
+
const i = a?.getTerminalConfiguration(t), l = i ? i.terminals[0].id : 1;
|
|
133
133
|
return {
|
|
134
|
-
traceLocation: new
|
|
134
|
+
traceLocation: new _({
|
|
135
135
|
type: r,
|
|
136
136
|
isFilterBarrier: !1,
|
|
137
137
|
globalId: s,
|
|
@@ -140,22 +140,22 @@ class P extends $ {
|
|
|
140
140
|
flagProperties: {
|
|
141
141
|
title: n,
|
|
142
142
|
expanded: !1,
|
|
143
|
-
terminalConfiguration:
|
|
144
|
-
selectedTerminals:
|
|
143
|
+
terminalConfiguration: i ?? void 0,
|
|
144
|
+
selectedTerminals: i ? /* @__PURE__ */ new Set([l]) : void 0
|
|
145
145
|
},
|
|
146
146
|
spatialProperties: {
|
|
147
147
|
mapPoint: e,
|
|
148
148
|
mapGraphic: t
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
-
} else if (
|
|
152
|
-
const
|
|
151
|
+
} else if (o === "polyline") {
|
|
152
|
+
const i = this._calculatePercentAlong(t.geometry, e);
|
|
153
153
|
return {
|
|
154
|
-
traceLocation: new
|
|
154
|
+
traceLocation: new _({
|
|
155
155
|
type: r,
|
|
156
156
|
isFilterBarrier: !1,
|
|
157
157
|
globalId: s,
|
|
158
|
-
percentAlong:
|
|
158
|
+
percentAlong: i
|
|
159
159
|
}),
|
|
160
160
|
flagProperties: {
|
|
161
161
|
title: n,
|
|
@@ -170,23 +170,23 @@ class P extends $ {
|
|
|
170
170
|
return null;
|
|
171
171
|
}
|
|
172
172
|
async _generateTraceLocation(t, e) {
|
|
173
|
-
const { traceLocations: r } = this, a = t.getGlobalId() ?? "", s = t.geometry?.type,
|
|
174
|
-
if (!
|
|
173
|
+
const { traceLocations: r } = this, a = t.getGlobalId() ?? "", s = t.geometry?.type, o = await this._generateFlagInfo(t, e);
|
|
174
|
+
if (!o) {
|
|
175
175
|
c("error", this, "Unable to generate flag info for trace location.");
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
|
-
const n = r?.filter((
|
|
178
|
+
const n = r?.filter((i) => i.spatialProperties.mapGraphic?.getGlobalId() === a) ?? [];
|
|
179
179
|
if (n.length === 0 || s === "polyline") {
|
|
180
|
-
if (s === "polyline" && n.length > 0 && n.some((l) => Math.abs(l.traceLocation.percentAlong -
|
|
180
|
+
if (s === "polyline" && n.length > 0 && n.some((l) => Math.abs(l.traceLocation.percentAlong - o.traceLocation.percentAlong) <= this.spatialTolerance)) {
|
|
181
181
|
c("warn", this, "A flag with the same globalId already exists within tolerance.");
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
|
-
const
|
|
185
|
-
if (!
|
|
184
|
+
const i = this._addFlagGraphic(a, t, e);
|
|
185
|
+
if (!i) {
|
|
186
186
|
c("warn", this, "Unable to add flag graphic.");
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
o.spatialProperties.flagGraphic = i, r?.add(o);
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
192
|
c("warn", this, "A flag with the same globalId already exists.");
|
|
@@ -204,7 +204,7 @@ class P extends $ {
|
|
|
204
204
|
}
|
|
205
205
|
const n = (await e.hitTest(s, {
|
|
206
206
|
include: this.filterLayers
|
|
207
|
-
})).results.filter((
|
|
207
|
+
})).results.filter((i) => i.type === "graphic" && i?.layer && i.graphic);
|
|
208
208
|
if (n.length === 0) {
|
|
209
209
|
c("info", this, "No usable hit test results found.");
|
|
210
210
|
return;
|
|
@@ -227,15 +227,21 @@ class P extends $ {
|
|
|
227
227
|
}
|
|
228
228
|
t.state === "complete" && t.graphic && (e.layer.remove(t.graphic), this._hitTest(t)), (t.state === "cancel" || t.state === "complete") && this._resetAfterSketch();
|
|
229
229
|
}
|
|
230
|
-
_handleAddButtonClick() {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
if (!(e && r)) {
|
|
235
|
-
c("error", this, "Cannot add trace location; view not found.");
|
|
230
|
+
async _handleAddButtonClick() {
|
|
231
|
+
const { view: t, sketchViewModel: e } = this;
|
|
232
|
+
if (!(t && e)) {
|
|
233
|
+
c("error", this, "Cannot add trace location; `view` not found.");
|
|
236
234
|
return;
|
|
237
235
|
}
|
|
238
|
-
|
|
236
|
+
if (this.beforeTraceLocationSelectStart) {
|
|
237
|
+
this.isSelectWaiting = !0;
|
|
238
|
+
try {
|
|
239
|
+
await this.beforeTraceLocationSelectStart();
|
|
240
|
+
} finally {
|
|
241
|
+
this.isSelectWaiting = !1;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
this.arcgisTraceLocationSelectStart.emit({ cancelSelect: () => e.cancel() }).defaultPrevented || (this._clickHandler?.remove(), this._clickHandler = e.on("create", this._handleSketchComplete.bind(this)), "acquireCursor" in t && t.acquireCursor("crosshair"), this.sketchViewModel?.create("point"));
|
|
239
245
|
}
|
|
240
246
|
_handleClearButtonClick() {
|
|
241
247
|
const { flagLayer: t, traceLocations: e } = this;
|
|
@@ -244,11 +250,11 @@ class P extends $ {
|
|
|
244
250
|
}), e?.removeAll();
|
|
245
251
|
}
|
|
246
252
|
renderAddLocationBlock() {
|
|
247
|
-
const { traceLocationType: t, messages: e, traceLocations: r } = this, a = t === "starting-point" ? e.types.startingPoint : t === "barrier" ? e.types.barrier : e.types.stoppingPoint, s = a.heading,
|
|
248
|
-
return b`<calcite-block .heading=${s} .label=${s} expanded .description=${
|
|
253
|
+
const { traceLocationType: t, messages: e, traceLocations: r } = this, a = t === "starting-point" ? e.types.startingPoint : t === "barrier" ? e.types.barrier : e.types.stoppingPoint, s = a.heading, o = a.description, n = a.buttonText;
|
|
254
|
+
return b`<calcite-block .heading=${s} .label=${s} expanded .description=${o}>${r?.length ? b`<calcite-button class=${p(f.clearButton)} slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${() => this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button>` : null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${t}></arcgis-utility-network-trace-location-list><div class=${p(f.buttonContainer)}><calcite-button .loading=${this.isSelectWaiting} class=${p(f.addLocationButton)} icon-start=select appearance=outline .label=${n} @click=${() => this._handleAddButtonClick()}>${n}</calcite-button></div></calcite-block>`;
|
|
249
255
|
}
|
|
250
256
|
render() {
|
|
251
|
-
return b`<div class=${
|
|
257
|
+
return b`<div class=${p(f.base)}>${this.renderAddLocationBlock()}</div>`;
|
|
252
258
|
}
|
|
253
259
|
}
|
|
254
260
|
v("arcgis-utility-network-trace-location", P);
|
|
@@ -6,7 +6,7 @@ import { LitElement as w, safeClassMap as s } from "@arcgis/lumina";
|
|
|
6
6
|
import { u as _ } from "../../chunks/useT9n.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
-
v5.0.0-next.
|
|
9
|
+
v5.0.0-next.93 */
|
|
10
10
|
const y = $`.arcgis-utility-network-trace-location-list{margin-block-start:0;padding:0 var(--calcite-spacing-sm) var(--calcite-spacing-sm) var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.arcgis-utility-network-trace-location-list calcite-list{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}.arcgis-utility-network-trace-location-list__warning{color:var(--calcite-color-status-danger)}.arcgis-utility-network-trace-location-list__terminals{padding-block:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-xl);padding-inline-end:var(--calcite-spacing-sm);display:flex;flex-direction:column}.arcgis-utility-network-trace-location-list__filter-barrier-container{display:flex;width:100%;calcite-label{width:100%}}.arcgis-utility-network-trace-location-list__filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}.arcgis-utility-network-trace-location-list calcite-list-item [slot=content-bottom]{background-color:transparent;display:none}.arcgis-utility-network-trace-location-list calcite-list-item[expanded] [slot=content-bottom]{display:unset}`, o = "arcgis-utility-network-trace-location-list", l = {
|
|
11
11
|
base: o,
|
|
12
12
|
terminals: `${o}__terminals`,
|
|
@@ -7,7 +7,7 @@ import { createRef as _, ref as F } from "lit/directives/ref.js";
|
|
|
7
7
|
import { u as L } from "../../chunks/useT9n.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
10
|
-
v5.0.0-next.
|
|
10
|
+
v5.0.0-next.93 */
|
|
11
11
|
const $ = p`:host{max-height:calc(100vh - 150px);min-height:300px}#results-list,#features-list{min-height:300px}.results-heading{display:flex;flex-direction:column;padding: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-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding: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)}`, o = "map-components:arcgis-utility-network-trace-results";
|
|
12
12
|
class v extends f {
|
|
13
13
|
constructor() {
|