@arcgis/map-components 6.0.0-next.12 → 6.0.0-next.13
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/{GS2HJTMU.js → 23KPX3MH.js} +1 -1
- package/dist/cdn/{GNSNEUMI.js → 27MWPK5A.js} +1 -1
- package/dist/cdn/{TKILR2SM.js → 2BTNM5UP.js} +1 -1
- package/dist/cdn/{J3IDFYN3.js → 2FVCSYOG.js} +1 -1
- package/dist/cdn/{PIDNZKSJ.js → 2FW4S3D6.js} +1 -1
- package/dist/cdn/{OUC5HWPQ.js → 2MGDN3IK.js} +1 -1
- package/dist/cdn/{QEPANMVK.js → 2NPSM4MA.js} +1 -1
- package/dist/cdn/{P35MNXU2.js → 2PBWDTTE.js} +1 -1
- package/dist/cdn/2QBJUSQP.js +2 -0
- package/dist/cdn/{HGP7GVZU.js → 346SMBOI.js} +1 -1
- package/dist/cdn/{FTCHTEUY.js → 35HJ47M5.js} +1 -1
- package/dist/cdn/{V4JEBKPJ.js → 36QDW2HC.js} +1 -1
- package/dist/cdn/{3X4TCM6A.js → 3BD5NGST.js} +1 -1
- package/dist/cdn/{RZGWZ2FJ.js → 3CXDORDV.js} +1 -1
- package/dist/cdn/{KVYBIOH5.js → 3EFWGKKP.js} +1 -1
- package/dist/cdn/{R6X7LUKH.js → 3EHI6OB6.js} +1 -1
- package/dist/cdn/3EVUQHOA.js +2 -0
- package/dist/cdn/{THJMCEEO.js → 3RQSDV4R.js} +1 -1
- package/dist/cdn/{PZUVKZGQ.js → 3WL3ROZU.js} +1 -1
- package/dist/cdn/{PBYHBRG7.js → 46UREYOZ.js} +1 -1
- package/dist/cdn/{PPVXOP43.js → 4B5PNSWT.js} +1 -1
- package/dist/cdn/{MDWBYUFG.js → 4DXKVW5C.js} +1 -1
- package/dist/cdn/{TFADSF2R.js → 4GN57OI7.js} +1 -1
- package/dist/cdn/{RNF5KVNY.js → 4K3LPJH6.js} +1 -1
- package/dist/cdn/{XPC6K7AE.js → 4LQHP46T.js} +1 -1
- package/dist/cdn/4N6WMMD7.js +2 -0
- package/dist/cdn/{CKS5ACAB.js → 4QKJHLBI.js} +1 -1
- package/dist/cdn/{F5IHFPKA.js → 54BEARYC.js} +1 -1
- package/dist/cdn/{ESOCZAMZ.js → 56SNDNF5.js} +1 -1
- package/dist/cdn/{PGUZODKZ.js → 5BQ3R2XG.js} +1 -1
- package/dist/cdn/{IAWXCNTX.js → 5HB256EO.js} +1 -1
- package/dist/cdn/{H4LMELM2.js → 5QNLXFZS.js} +1 -1
- package/dist/cdn/{2KBLNC6Y.js → 5QYCZHSX.js} +1 -1
- package/dist/cdn/{2CEJU3YF.js → 5W7DVJY2.js} +1 -1
- package/dist/cdn/{XKCB2DEP.js → 62XJUNML.js} +1 -1
- package/dist/cdn/{ZHSESERJ.js → 65EBYWUQ.js} +1 -1
- package/dist/cdn/{HQWUQFN5.js → 66WNBBAT.js} +1 -1
- package/dist/cdn/{DPNB5GBY.js → 676ZH5J2.js} +1 -1
- package/dist/cdn/{5AMF6NZN.js → 6EPVMX36.js} +1 -1
- package/dist/cdn/{RQ2YV64E.js → 6JXOWCBF.js} +1 -1
- package/dist/cdn/{GSVPPSX6.js → 6MZISPJL.js} +1 -1
- package/dist/cdn/6RE5RWYP.js +2 -0
- package/dist/cdn/{F6CXHAHU.js → 6TV3VMAG.js} +1 -1
- package/dist/cdn/{QPSAD5DG.js → 6VQ5DE6L.js} +1 -1
- package/dist/cdn/{VUAYNF3K.js → 7BOB3ZMM.js} +1 -1
- package/dist/cdn/{5RAIBYCT.js → 7DOCFE5E.js} +1 -1
- package/dist/cdn/7RG4ZQP7.js +2 -0
- package/dist/cdn/{ZSPYPXBY.js → 7SMRFGKB.js} +1 -1
- package/dist/cdn/{HKLBQ7JD.js → 7TNTQTCU.js} +1 -1
- package/dist/cdn/{HZTF3LOF.js → 7V6M6CJS.js} +1 -1
- package/dist/cdn/{RVEUCXT4.js → 7XOQWWQN.js} +1 -1
- package/dist/cdn/{KKLTZBSE.js → 7Y54JNOS.js} +1 -1
- package/dist/cdn/A2QVOCXI.js +2 -0
- package/dist/cdn/{Z7H4V2JZ.js → A53KFOH6.js} +1 -1
- package/dist/cdn/{7HS2SX6W.js → A7F4RCIB.js} +1 -1
- package/dist/cdn/A7S7QILA.js +2 -0
- package/dist/cdn/{QKZ552KI.js → AFRTNJIB.js} +1 -1
- package/dist/cdn/{PBHNO4J7.js → AGDIYUEN.js} +1 -1
- package/dist/cdn/{4HNRKSQ2.js → ARHQMHUP.js} +1 -1
- package/dist/cdn/{52CUDGKY.js → AST7MMYS.js} +1 -1
- package/dist/cdn/{CP5JALYQ.js → AX3PTI6R.js} +1 -1
- package/dist/cdn/{HPWF3IQV.js → AY4NJZW6.js} +1 -1
- package/dist/cdn/{FHBTVQHP.js → B2Z4PQDN.js} +1 -1
- package/dist/cdn/{BZQIIXMP.js → BG7QJ36E.js} +1 -1
- package/dist/cdn/{EJKAIZAE.js → BJ74QZIS.js} +1 -1
- package/dist/cdn/{MMYODAC2.js → BJL3Q6DI.js} +1 -1
- package/dist/cdn/{7VJQVX42.js → BSGHAWTH.js} +1 -1
- package/dist/cdn/{GUHSWQMF.js → BSQ3RFJY.js} +1 -1
- package/dist/cdn/{K23R26AN.js → BY2FYLPZ.js} +1 -1
- package/dist/cdn/{RUYAWRPV.js → BZOKZ5VZ.js} +1 -1
- package/dist/cdn/{5ITYFVDX.js → C2MDGIL7.js} +1 -1
- package/dist/cdn/{BVTEQMDF.js → C2YFCTR2.js} +1 -1
- package/dist/cdn/{NFCFPU7K.js → CCQFX7N3.js} +1 -1
- package/dist/cdn/CDCI4EQR.js +2 -0
- package/dist/cdn/{MGBFC5IV.js → CEIU7TIB.js} +1 -1
- package/dist/cdn/{SIFBGT4D.js → CVT3K5PU.js} +1 -1
- package/dist/cdn/CZ2ZDZHW.js +2 -0
- package/dist/cdn/{MA7GBKLW.js → DI6JXWXD.js} +1 -1
- package/dist/cdn/DMRTIQ4E.js +2 -0
- package/dist/cdn/{HI7BF3DL.js → DPZH7OOF.js} +1 -1
- package/dist/cdn/{67B7TPGQ.js → DUCYPBLA.js} +1 -1
- package/dist/cdn/{L7DFXEAX.js → EFRTDOL6.js} +1 -1
- package/dist/cdn/{SAOLD6MH.js → EKLDSSHW.js} +1 -1
- package/dist/cdn/{6UYEO5Q7.js → ELNEL7EW.js} +1 -1
- package/dist/cdn/{HYMCX7JZ.js → ETWDKKNK.js} +1 -1
- package/dist/cdn/{YODE6QAO.js → EXKSEAMM.js} +1 -1
- package/dist/cdn/{VTCE3YQW.js → F43SQ2B7.js} +1 -1
- package/dist/cdn/{65MI3MW2.js → FCZRKF46.js} +1 -1
- package/dist/cdn/FD7TZUQL.js +2 -0
- package/dist/cdn/FGDPA2SN.js +2 -0
- package/dist/cdn/FN4QBRU4.js +2 -0
- package/dist/cdn/FV3GLOQD.js +2 -0
- package/dist/cdn/{UFRX7JW5.js → G3I7HUEL.js} +1 -1
- package/dist/cdn/G3LU7E6H.js +2 -0
- package/dist/cdn/{BI2SI2HK.js → GA3GZVVB.js} +1 -1
- package/dist/cdn/{GUZYCRYS.js → GAYWGKYI.js} +1 -1
- package/dist/cdn/{MNSGXIJP.js → GEAWQQCV.js} +1 -1
- package/dist/cdn/{6A2OF3TO.js → GGLNSU56.js} +1 -1
- package/dist/cdn/{OP3APZ4U.js → GKOIM6VH.js} +1 -1
- package/dist/cdn/{FF7BSRYW.js → GNLOKI53.js} +1 -1
- package/dist/cdn/{GJTUYTTG.js → GNMMYT73.js} +1 -1
- package/dist/cdn/{JQ4K46KY.js → GNY6NCJ5.js} +1 -1
- package/dist/cdn/{PWHXRRFU.js → GSRBHYFT.js} +1 -1
- package/dist/cdn/{ZKWI43WZ.js → GX5EDFB2.js} +1 -1
- package/dist/cdn/{KRMN6HAV.js → H23LJQF5.js} +1 -1
- package/dist/cdn/{HWKMLOOG.js → H6HATUPC.js} +1 -1
- package/dist/cdn/HJBIPLFN.js +2 -0
- package/dist/cdn/{3GHQZCMV.js → HOLEMKZF.js} +1 -1
- package/dist/cdn/{OAMA6SL3.js → HXOECRF5.js} +1 -1
- package/dist/cdn/{O5YJPUFM.js → HXX4WJLN.js} +1 -1
- package/dist/cdn/{ZBC5RBCD.js → I2VQOWJL.js} +1 -1
- package/dist/cdn/{7VDBR3SK.js → IE4EOH76.js} +1 -1
- package/dist/cdn/{ENDFTFEF.js → IIPAKIUQ.js} +1 -1
- package/dist/cdn/IJFW6VBP.js +2 -0
- package/dist/cdn/{RRSU6QD4.js → IPO4MAEM.js} +1 -1
- package/dist/cdn/{7FFBCPVE.js → IRNSIIVT.js} +1 -1
- package/dist/cdn/IVE3PUDG.js +2 -0
- package/dist/cdn/{Z6AVJWLP.js → IW3ZGY6C.js} +1 -1
- package/dist/cdn/{J3FRSWZD.js → IXZVTOFE.js} +1 -1
- package/dist/cdn/{4O3HLHQQ.js → IZ56THJ6.js} +1 -1
- package/dist/cdn/{SG55TVJ5.js → J5F6CDWI.js} +1 -1
- package/dist/cdn/{ZF4DFDLT.js → J6EZWDIU.js} +1 -1
- package/dist/cdn/{AFP64NRH.js → JA47CZCK.js} +1 -1
- package/dist/cdn/JC24VBLE.js +4 -0
- package/dist/cdn/{ZIBQTNB6.js → JFST4ADC.js} +1 -1
- package/dist/cdn/{FQSHLYKX.js → JGOYKMUR.js} +1 -1
- package/dist/cdn/{TDGAGI7B.js → JGXVLBJ4.js} +1 -1
- package/dist/cdn/JO4ZIEAZ.js +2 -0
- package/dist/cdn/{HEIKRBJK.js → JTCDTZVB.js} +1 -1
- package/dist/cdn/JXGHEXXR.js +2 -0
- package/dist/cdn/{IQOSVEZ5.js → KCYQBKG5.js} +1 -1
- package/dist/cdn/{N3DTZRST.js → KDEU2V3M.js} +1 -1
- package/dist/cdn/{NY7RHFLZ.js → KGFTHHY7.js} +1 -1
- package/dist/cdn/{3UMLR76Y.js → KGYTRKZZ.js} +1 -1
- package/dist/cdn/{IFR4IYSI.js → KMWQECU7.js} +1 -1
- package/dist/cdn/{IHUJKT47.js → KPLUZDH3.js} +1 -1
- package/dist/cdn/{V3BFPL23.js → KXTXJLXZ.js} +1 -1
- package/dist/cdn/L3NSDUAE.js +2 -0
- package/dist/cdn/{QT7GRA34.js → LC2OUSEN.js} +1 -1
- package/dist/cdn/LHGTHQME.js +2 -0
- package/dist/cdn/{SKP3TGF4.js → LQ73MV5Q.js} +1 -1
- package/dist/cdn/{YDZZPLVB.js → LZV3R5DQ.js} +1 -1
- package/dist/cdn/M4TUMJXX.js +2 -0
- package/dist/cdn/{FZAQZSRA.js → M4WTKFSV.js} +1 -1
- package/dist/cdn/M6IXZHHI.js +2 -0
- package/dist/cdn/{6VO7G2UX.js → MA5DX7XQ.js} +1 -1
- package/dist/cdn/MIDTKIJQ.js +2 -0
- package/dist/cdn/{NDCZFJEK.js → MKCHMWM6.js} +2 -2
- package/dist/cdn/{4EO2342P.js → MNR6U3X7.js} +1 -1
- package/dist/cdn/{4WKWYFIH.js → N3Y4HN76.js} +1 -1
- package/dist/cdn/{MA2GVVQJ.js → N7T3UPCY.js} +1 -1
- package/dist/cdn/{Z2UUXST4.js → NC7HUEPX.js} +1 -1
- package/dist/cdn/{4ER6YIYW.js → NDDPYGWE.js} +1 -1
- package/dist/cdn/{FPPWXIBA.js → NEB4DWSQ.js} +1 -1
- package/dist/cdn/{GHVT7W4O.js → NO3J42C6.js} +1 -1
- package/dist/cdn/NWCS3WJE.js +2 -0
- package/dist/cdn/{ZAUG5MSY.js → NYUUH4QC.js} +1 -1
- package/dist/cdn/{LC37F7HF.js → O7DPFAEB.js} +1 -1
- package/dist/cdn/{ZO7TUIUE.js → OCQAHDB4.js} +1 -1
- package/dist/cdn/{6N7GPFZ4.js → ODAE2VWZ.js} +1 -1
- package/dist/cdn/{5ESNA4SF.js → OELSUUAR.js} +1 -1
- package/dist/cdn/{RLXUS2AY.js → OIMNS2UO.js} +1 -1
- package/dist/cdn/{CF54A7MK.js → OL5Z5MUQ.js} +1 -1
- package/dist/cdn/{MWIDHMQZ.js → OM3REV3X.js} +1 -1
- package/dist/cdn/{DK7HXJSX.js → OM4WKIBB.js} +1 -1
- package/dist/cdn/{F4S2DPYN.js → OMLLF5HO.js} +1 -1
- package/dist/cdn/{ABOTJ6RE.js → OS3TKP63.js} +1 -1
- package/dist/cdn/{WBBTZNZU.js → OZVJTOTJ.js} +1 -1
- package/dist/cdn/{HIBFGEAJ.js → P44XI2E6.js} +1 -1
- package/dist/cdn/{CZVI23H5.js → P5JX7DDZ.js} +1 -1
- package/dist/cdn/PAZNGVBY.js +2 -0
- package/dist/cdn/{TEOOLQG2.js → PDDUKBD4.js} +1 -1
- package/dist/cdn/{U5DIWFPP.js → PGKU7VBX.js} +1 -1
- package/dist/cdn/PKZDISAM.js +2 -0
- package/dist/cdn/{UTV2A7J4.js → PLESRRUS.js} +1 -1
- package/dist/cdn/{24KCDMDH.js → PQWWFQ7U.js} +1 -1
- package/dist/cdn/{C5N4AOB6.js → Q3PSPKAB.js} +1 -1
- package/dist/cdn/QAZ4W6K3.js +2 -0
- package/dist/cdn/{L46JLXJT.js → QPQKZB46.js} +1 -1
- package/dist/cdn/{4UDLUCTE.js → QRY7XJZY.js} +1 -1
- package/dist/cdn/{TYHCB472.js → QS5F5EQH.js} +1 -1
- package/dist/cdn/{CPYVZPJ7.js → QSE2LPK4.js} +1 -1
- package/dist/cdn/{PKMTOHZH.js → R3VD6DUV.js} +1 -1
- package/dist/cdn/{R5QMO5FY.js → R6GT47MU.js} +1 -1
- package/dist/cdn/{53OXTCE6.js → RE2MJTPB.js} +1 -1
- package/dist/cdn/ROAZTNPA.js +2 -0
- package/dist/cdn/RWJRTP5A.js +2 -0
- package/dist/cdn/{H7NR6B6S.js → S2BWAJBS.js} +1 -1
- package/dist/cdn/{EV7IIQBP.js → S57MUIYV.js} +1 -1
- package/dist/cdn/{Q3B3NI7P.js → S5YFM5GF.js} +1 -1
- package/dist/cdn/{O6HYZKBU.js → S6RKUJV7.js} +1 -1
- package/dist/cdn/{2UKSCGYU.js → SAU63CP3.js} +1 -1
- package/dist/cdn/{E54VGGFM.js → SE2KEFDI.js} +1 -1
- package/dist/cdn/{N5KEEUBQ.js → SFOOSGWV.js} +1 -1
- package/dist/cdn/{3ONY25MG.js → SHQW4MPY.js} +1 -1
- package/dist/cdn/{7DFCYS72.js → SLWEWPBU.js} +1 -1
- package/dist/cdn/{R4FDXNHP.js → SRBC75OJ.js} +1 -1
- package/dist/cdn/{KBA5OIES.js → ST4WZGEO.js} +1 -1
- package/dist/cdn/{ET4UP4EQ.js → SWWJXGPV.js} +1 -1
- package/dist/cdn/{4IWYFG2G.js → T6WZE6JL.js} +1 -1
- package/dist/cdn/{S6BPBG7D.js → T77D6RZH.js} +1 -1
- package/dist/cdn/{K7ELALW4.js → TB7VPZEB.js} +1 -1
- package/dist/cdn/{Y6764PBB.js → TBDBSCE2.js} +1 -1
- package/dist/cdn/TBXSROYD.js +2 -0
- package/dist/cdn/{CWA47RNK.js → THV4F6KS.js} +1 -1
- package/dist/cdn/{5YHHJ5ZE.js → TLHMWWF5.js} +1 -1
- package/dist/cdn/{XP74F2F6.js → TLHZJS27.js} +1 -1
- package/dist/cdn/{SQPX5U3U.js → TMMXXPXD.js} +1 -1
- package/dist/cdn/{V62TVP3T.js → TMQVC4YN.js} +1 -1
- package/dist/cdn/TQX22IJH.js +2 -0
- package/dist/cdn/{26URLKXD.js → TSA5EUGL.js} +1 -1
- package/dist/cdn/{7YHGGHJY.js → TYOBYSX6.js} +1 -1
- package/dist/cdn/{OAMPGCZF.js → U32OJGQN.js} +1 -1
- package/dist/cdn/{TA723HWT.js → U36NPDG6.js} +1 -1
- package/dist/cdn/{TSNUOFL7.js → U4PXNSYT.js} +1 -1
- package/dist/cdn/{DY2EOHFD.js → U6Q4N7FB.js} +1 -1
- package/dist/cdn/{YTLRTUMD.js → UBDJ4NVA.js} +1 -1
- package/dist/cdn/{EK7Y6JBZ.js → UTZEXIB7.js} +1 -1
- package/dist/cdn/UVCIXKG3.js +2 -0
- package/dist/cdn/{QSZL5NEG.js → UWLOCTU3.js} +1 -1
- package/dist/cdn/{XSE3E4FM.js → UWS2OVE2.js} +1 -1
- package/dist/cdn/{GLQMCCUM.js → VCHKZQXV.js} +1 -1
- package/dist/cdn/{62IE7RFR.js → VHNVSIBR.js} +1 -1
- package/dist/cdn/{TPVHN6P2.js → VIMBVYTB.js} +1 -1
- package/dist/cdn/{2KPCMM7D.js → VN32UXKB.js} +1 -1
- package/dist/cdn/{VYOH4T4L.js → VSJFV5PD.js} +1 -1
- package/dist/cdn/{P2I63WVL.js → VTXXOZQS.js} +1 -1
- package/dist/cdn/VWEJ2XSC.js +2 -0
- package/dist/cdn/{OICQWHES.js → VXVPFKIF.js} +1 -1
- package/dist/cdn/{MCMACXJV.js → W5BZZFXV.js} +1 -1
- package/dist/cdn/{R5YW65AI.js → WAH2GHNI.js} +1 -1
- package/dist/cdn/{HA4XWZH4.js → WDPSGA7O.js} +1 -1
- package/dist/cdn/{V2YPYCU6.js → WFBXUCAB.js} +1 -1
- package/dist/cdn/WMWDQS5N.js +2 -0
- package/dist/cdn/{QOIURU47.js → WO3RY5VX.js} +1 -1
- package/dist/cdn/{5DY7GHBN.js → WO73SZZ3.js} +1 -1
- package/dist/cdn/{PPAFKBPN.js → WROQIXSY.js} +1 -1
- package/dist/cdn/{G72ISZDZ.js → WUO5HKHO.js} +1 -1
- package/dist/cdn/X237OYQ4.js +2 -0
- package/dist/cdn/{FBV5KXOY.js → XCT7CITF.js} +1 -1
- package/dist/cdn/{FHHVGI4H.js → XUGZKUJR.js} +1 -1
- package/dist/cdn/{AN7R3DP5.js → Y56CR5OU.js} +1 -1
- package/dist/cdn/{GNWRCB5F.js → YAATK6MI.js} +1 -1
- package/dist/cdn/YKN6WRLD.js +2 -0
- package/dist/cdn/{HQDOPV3Q.js → YN6YOSDN.js} +1 -1
- package/dist/cdn/{AIMWEMBX.js → YQ55VXSN.js} +1 -1
- package/dist/cdn/{2CGIS34C.js → YQAEWR77.js} +1 -1
- package/dist/cdn/{WS46QSWM.js → Z47UGRFF.js} +1 -1
- package/dist/cdn/{3C6FN5WT.js → Z7KXKYCW.js} +1 -1
- package/dist/cdn/{K7XSWKZ2.js → ZF5K3PSA.js} +1 -1
- package/dist/cdn/{EMXGW73P.js → ZFRQ6ENW.js} +1 -1
- package/dist/cdn/{4KQA2GRX.js → ZJDOJSTW.js} +1 -1
- package/dist/cdn/{LBSIU6XT.js → ZO5AYJN5.js} +1 -1
- package/dist/cdn/{67PT3A4A.js → ZOFR64ET.js} +1 -1
- package/dist/cdn/{FSBLGH6E.js → ZRAQIX6Y.js} +1 -1
- package/dist/cdn/{DUMHDAYP.js → ZRDAJM5H.js} +1 -1
- package/dist/cdn/{HDHWPKJ4.js → ZREUT3Y4.js} +1 -1
- package/dist/cdn/{MICLX7QW.js → ZUFXPTE5.js} +1 -1
- package/dist/cdn/{QLXQ4L2R.js → ZV3BF6WC.js} +1 -1
- package/dist/cdn/{JQ7MMDQT.js → ZV4GQMCJ.js} +1 -1
- package/dist/cdn/{PDH2DA3L.js → ZVL34JE2.js} +1 -1
- package/dist/cdn/{VDEMMP33.js → ZYUABP4C.js} +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/components/arcgis-add-attachment-view/customElement.d.ts +33 -0
- package/dist/components/arcgis-attachment-detail-view/customElement.d.ts +200 -0
- package/dist/components/arcgis-attachment-detail-view/customElement.js +126 -0
- package/dist/components/arcgis-attachment-detail-view/index.d.ts +1 -0
- package/dist/components/arcgis-attachment-detail-view/index.js +8 -0
- package/dist/components/arcgis-attachment-preview/customElement.d.ts +38 -0
- package/dist/components/arcgis-attachment-preview/customElement.js +12 -10
- package/dist/components/arcgis-attachment-thumbnail/customElement.d.ts +33 -0
- package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +33 -0
- package/dist/components/arcgis-feature-form-field/customElement.d.ts +33 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +5 -1
- 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/index.d.ts +16 -0
- package/dist/loader.js +1 -0
- package/dist/types/lumina.d.ts +8 -0
- package/dist/types/preact.d.ts +9 -0
- package/dist/types/react.d.ts +10 -0
- package/dist/types/stencil.d.ts +8 -0
- package/package.json +7 -7
- package/dist/cdn/3VCGDZEU.js +0 -2
- package/dist/cdn/42LHTN2R.js +0 -2
- package/dist/cdn/4B2TLORL.js +0 -2
- package/dist/cdn/677OZNT4.js +0 -2
- package/dist/cdn/77U2VO5P.js +0 -2
- package/dist/cdn/7JVPR5EI.js +0 -2
- package/dist/cdn/A7RLC6ZT.js +0 -2
- package/dist/cdn/BJWJ6E3L.js +0 -2
- package/dist/cdn/CNYZSE22.js +0 -2
- package/dist/cdn/DPVRHPHQ.js +0 -2
- package/dist/cdn/DTORO2OE.js +0 -2
- package/dist/cdn/DYWCAORU.js +0 -2
- package/dist/cdn/FYR4QVEY.js +0 -2
- package/dist/cdn/GJKFDTVX.js +0 -2
- package/dist/cdn/GK47522P.js +0 -2
- package/dist/cdn/HQSY7TKA.js +0 -2
- package/dist/cdn/IITDAOGZ.js +0 -2
- package/dist/cdn/JXU37SH6.js +0 -2
- package/dist/cdn/KCLVDXWB.js +0 -2
- package/dist/cdn/LKAJVIS2.js +0 -2
- package/dist/cdn/LOOJWRCW.js +0 -2
- package/dist/cdn/LY6LSUSY.js +0 -2
- package/dist/cdn/LZVMUNZC.js +0 -2
- package/dist/cdn/M3ZQGUYQ.js +0 -2
- package/dist/cdn/MBGCAZPS.js +0 -4
- package/dist/cdn/NWFGMNGG.js +0 -2
- package/dist/cdn/PGSBUAGV.js +0 -2
- package/dist/cdn/QCVMDYJD.js +0 -2
- package/dist/cdn/QWIDIEXY.js +0 -2
- package/dist/cdn/R6C6U6JB.js +0 -2
- package/dist/cdn/SCYBJTZA.js +0 -2
- package/dist/cdn/UMOO7WYM.js +0 -2
- package/dist/cdn/VZ6UFS6H.js +0 -2
- package/dist/cdn/W275EQEJ.js +0 -2
- package/dist/cdn/WK4TNKKC.js +0 -2
- package/dist/cdn/Y6ZXMGO2.js +0 -2
- package/dist/cdn/YCHVPSSP.js +0 -2
- /package/dist/cdn/{XULIO6Y3.js → 3E6IBNWF.js} +0 -0
- /package/dist/cdn/{54GFXFK4.js → 43JS3JXR.js} +0 -0
- /package/dist/cdn/{A7SZYQDH.js → 4JRBTFMB.js} +0 -0
- /package/dist/cdn/{R2D2TXL4.js → 4U7C2G4R.js} +0 -0
- /package/dist/cdn/{YHPASRFL.js → 5QBYMSV7.js} +0 -0
- /package/dist/cdn/{EH4CBZNF.js → A7G5RNN7.js} +0 -0
- /package/dist/cdn/{QVAB57VJ.js → AS55LGS3.js} +0 -0
- /package/dist/cdn/{VKRAWBPC.js → B42Z3IQW.js} +0 -0
- /package/dist/cdn/{C5XAFXEL.js → CIVCCENA.js} +0 -0
- /package/dist/cdn/{RUW7CDCH.js → CJZCG74B.js} +0 -0
- /package/dist/cdn/{GUZCA62E.js → DU7MQDXJ.js} +0 -0
- /package/dist/cdn/{4657ONKJ.js → DVVXBWDN.js} +0 -0
- /package/dist/cdn/{22I5XGTS.js → DXD3FSIB.js} +0 -0
- /package/dist/cdn/{PS3KSP2J.js → DYUSQ3OG.js} +0 -0
- /package/dist/cdn/{CUVRESLH.js → EMFLPMFZ.js} +0 -0
- /package/dist/cdn/{R2P5JM7G.js → F2JEYWUA.js} +0 -0
- /package/dist/cdn/{I4AEBGQM.js → FSKKSFCQ.js} +0 -0
- /package/dist/cdn/{QNBNH7ME.js → HI7Y3XH5.js} +0 -0
- /package/dist/cdn/{24MLXKMZ.js → HSYCQNEN.js} +0 -0
- /package/dist/cdn/{LUTUHOKB.js → IBTIGEEQ.js} +0 -0
- /package/dist/cdn/{IBN4TKBI.js → IHQ2C6NE.js} +0 -0
- /package/dist/cdn/{Y37UMTGV.js → IPLEI5W5.js} +0 -0
- /package/dist/cdn/{5WKEDXRT.js → ITSWOLPG.js} +0 -0
- /package/dist/cdn/{REGHMH6D.js → IYTA36WK.js} +0 -0
- /package/dist/cdn/{42G6XTIG.js → J5PYSABF.js} +0 -0
- /package/dist/cdn/{PY5VGH7F.js → KVN6NUH4.js} +0 -0
- /package/dist/cdn/{ONFKLY6Q.js → L5L2SWJG.js} +0 -0
- /package/dist/cdn/{OX3WBUBR.js → LH3HGDD3.js} +0 -0
- /package/dist/cdn/{4O6FFXUV.js → MGDY6SA3.js} +0 -0
- /package/dist/cdn/{JZHZCJTJ.js → OHIZP5N4.js} +0 -0
- /package/dist/cdn/{DNE47HSP.js → OY2F5AX3.js} +0 -0
- /package/dist/cdn/{75UV3NKU.js → PLRW457V.js} +0 -0
- /package/dist/cdn/{HJVHORPG.js → SMCQ5457.js} +0 -0
- /package/dist/cdn/{LW4IDPBB.js → SN3LTQAO.js} +0 -0
- /package/dist/cdn/{36ZT6IRE.js → T6V5HDYH.js} +0 -0
- /package/dist/cdn/{M4D5WUVD.js → TTGAGK6Y.js} +0 -0
- /package/dist/cdn/{OCFIQBYK.js → UAVE6R7W.js} +0 -0
- /package/dist/cdn/{NWRWQZGL.js → VHCJJ5FD.js} +0 -0
- /package/dist/cdn/{UHI54OG6.js → W5QAG2HP.js} +0 -0
- /package/dist/cdn/{OCQXPA57.js → XELSV7WY.js} +0 -0
- /package/dist/cdn/{7FGOCFTQ.js → YZ23NKH4.js} +0 -0
- /package/dist/cdn/{WEOKELJE.js → ZHP63EHR.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"./JXU37SH6.js";import d from"./HA4XWZH4.js";import c from"./HPWF3IQV.js";import{h as n}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import b from"./QPSAD5DG.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{P as o,X as a,a as i,x as r}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:l},c,,,,s])=>{var d=i`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{max-width:fit-content}.esri-un-validate-topology__container{width:350px}.esri-un-validate-topology__content{border-bottom:none;margin:0}.esri-un-validate-topology__controls-container{gap:.5rem;display:grid}.esri-un-validate-topology__status-icon-container{width:48px;height:48px}.esri-un-validate-topology__status-icon-error{--calcite-color-icon-color: var(--calcite-color-status-warning);padding-top:var(--calcite-spacing-xl);padding-left:var(--calcite-spacing-xl)}.esri-un-validate-topology__status-icon-success{--calcite-color-icon-color: var(--calcite-color-status-success);padding-top:var(--calcite-spacing-xl);padding-left:var(--calcite-spacing-xl)}`,p=s(c),e=class extends o{constructor(){super(...arguments),this.widget=p(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.autoDestroyDisabled=!1,this.extentToValidate=this.widget.extentToValidate,this.icon=this.widget.icon,this.label=this.widget.label,this.state=this.viewModel.state,this.utilityNetwork=this.widget.utilityNetwork,this.arcgisPropertyChange=n()("state"),this.arcgisReady=r()}static{this.properties={view:0,autoDestroyDisabled:5,extentToValidate:1,icon:1,label:1,referenceElement:1,state:32,utilityNetwork:0}}static{this.styles=d}async destroy(){await this.manager.destroy()}async loaded(){await this._loadUtilityNetwork(),this.manager.onLifecycle(()=>[l(()=>this.el.view,()=>{this._loadUtilityNetwork()})])}async _loadUtilityNetwork(){if(this.el.view?.map&&this.el.view.map.portalItem){await this.el.view.map.load();let t=this.el.view.map.utilityNetworks?.getItemAt(0);await t?.load(),this.utilityNetwork=t}}};a("arcgis-utility-network-validate-topology",e);return e},"core/reactiveUtils","widgets/UtilityNetworkValidateTopology",b,c,d,e)
|
|
2
|
+
import e from"./ROAZTNPA.js";import d from"./WDPSGA7O.js";import c from"./AY4NJZW6.js";import{h as n}from"./KMWQECU7.js";import"./IE4EOH76.js";import b from"./6VQ5DE6L.js";import"./FIZMK7GS.js";import"./GX5EDFB2.js";import{R as o,_ as a,a as i,y as r}from"./KGYTRKZZ.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:l},c,,,,s])=>{var d=i`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{max-width:fit-content}.esri-un-validate-topology__container{width:350px}.esri-un-validate-topology__content{border-bottom:none;margin:0}.esri-un-validate-topology__controls-container{gap:.5rem;display:grid}.esri-un-validate-topology__status-icon-container{width:48px;height:48px}.esri-un-validate-topology__status-icon-error{--calcite-color-icon-color: var(--calcite-color-status-warning);padding-top:var(--calcite-spacing-xl);padding-left:var(--calcite-spacing-xl)}.esri-un-validate-topology__status-icon-success{--calcite-color-icon-color: var(--calcite-color-status-success);padding-top:var(--calcite-spacing-xl);padding-left:var(--calcite-spacing-xl)}`,p=s(c),e=class extends o{constructor(){super(...arguments),this.widget=p(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.autoDestroyDisabled=!1,this.extentToValidate=this.widget.extentToValidate,this.icon=this.widget.icon,this.label=this.widget.label,this.state=this.viewModel.state,this.utilityNetwork=this.widget.utilityNetwork,this.arcgisPropertyChange=n()("state"),this.arcgisReady=r()}static{this.properties={view:0,autoDestroyDisabled:5,extentToValidate:1,icon:1,label:1,referenceElement:1,state:32,utilityNetwork:0}}static{this.styles=d}async destroy(){await this.manager.destroy()}async loaded(){await this._loadUtilityNetwork(),this.manager.onLifecycle(()=>[l(()=>this.el.view,()=>{this._loadUtilityNetwork()})])}async _loadUtilityNetwork(){if(this.el.view?.map&&this.el.view.map.portalItem){await this.el.view.map.load();let t=this.el.view.map.utilityNetworks?.getItemAt(0);await t?.load(),this.utilityNetwork=t}}};a("arcgis-utility-network-validate-topology",e);return e},"core/reactiveUtils","widgets/UtilityNetworkValidateTopology",b,c,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import f from"./
|
|
2
|
+
import f from"./TLHMWWF5.js";import{a as d}from"./7SMRFGKB.js";import e from"./HJBIPLFN.js";import c from"./WDPSGA7O.js";import b from"./AY4NJZW6.js";import{h as m}from"./KMWQECU7.js";import"./IE4EOH76.js";import a from"./6VQ5DE6L.js";import"./FIZMK7GS.js";import"./GX5EDFB2.js";import{R as n,_ as h,b as i,y as s}from"./KGYTRKZZ.js";import"./TAVTDQ6S.js";export default $arcgis.t(([v,,,,p,g])=>{var e={forceDirected:"organic-standard",community:"organic-community",simple:"basic-grid",mechanical:"hierarchical-bottom-to-top",radialTree:"radial-root-centric",smartTree:"tree-left-to-right",geographic:"geographic-organic-standard",chronologicalSingle:"chronological-mono-timeline",chronologicalMultiple:"chronological-multi-timeline"},u={basicLayoutCategory:[e.simple],organicLayoutCategory:[e.forceDirected,e.community,e.geographic],treeLayoutCategory:[e.smartTree,e.radialTree],hierarchicalLayoutCategory:[e.mechanical],chronologicalLayoutCategory:[e.chronologicalSingle,e.chronologicalMultiple]},y={[e.forceDirected]:"force-directed-link-chart-layout",[e.community]:"community-link-chart-layout",[e.simple]:"simple-link-chart-layout",[e.mechanical]:"hierarchical-link-chart-layout",[e.radialTree]:"radial-tree-link-chart-layout",[e.smartTree]:"smart-tree-link-chart-layout",[e.geographic]:"geographic-link-chart-layout",[e.chronologicalSingle]:"single-timeline",[e.chronologicalMultiple]:"multi-timeline"},w={[e.forceDirected]:"forceDirected",[e.community]:"community",[e.simple]:"simple",[e.mechanical]:"hierarchical",[e.radialTree]:"radialTree",[e.smartTree]:"smartTree",[e.geographic]:"geographic",[e.chronologicalSingle]:"chronologicalSingle",[e.chronologicalMultiple]:"chronologicalMultiple"},$=g(v),l=class extends n{constructor(){super(...arguments),this.messages=d(),this.viewModel=$(this),this.view=this.viewModel.view,this.appearance="dropdown",this.autoDestroyDisabled=!1,this.closeOnSelectDisabled=!1,this.icon="nodes-link",this.layout=this.viewModel.layout,this.preventExtentUpdate=this.viewModel.preventExtentUpdate,this.state=this.viewModel.state,this.arcgisSwitchLayout=p(()=>this.viewModel,"switchLayout"),this.arcgisPropertyChange=m()("state"),this.arcgisReady=s()}static{this.properties={view:0,appearance:1,autoDestroyDisabled:5,closeOnSelectDisabled:5,icon:1,label:1,layout:32,messageOverrides:0,preventExtentUpdate:5,referenceElement:1,state:32}}async destroy(){await this.manager.destroy()}async switchLayout(t){this.viewModel.switchLayout(t)}_renderDropdown(){let{messages:t,icon:o}=this;return i`<calcite-dropdown scale=s width=m max-items=9 .closeOnSelectDisabled=${this.closeOnSelectDisabled}><calcite-action slot=trigger .disabled=${this.viewModel.state==="disabled"} .icon=${o??void 0} .label=${t.layoutOptions??"Layout"} scale=s .text=${t.layoutOptions??"Layout"}></calcite-action>${Object.entries(u).map(([c,a])=>i`<calcite-dropdown-group selection-mode=single .groupTitle=${this.messages[c]}>${a.map(r=>i`<calcite-dropdown-item .iconStart=${y[r]} .selected=${r===this.layout?!0:void 0} @click=${()=>{this.switchLayout(r)}}>${t[w[r]]}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}</calcite-dropdown>`}_renderMenuBar(){let{messages:t}=this;return i`<calcite-action-bar scale=s floating overflow-mode=none>${Object.entries(u).map(([o,c])=>i`<calcite-action-group .label=${this.messages[o]}>${c.map(a=>i`<calcite-action scale=s .icon=${y[a]} .active=${a===this.layout?!0:void 0} @click=${()=>{this.switchLayout(a)}} .text=${t[w[a]]}></calcite-action>`)}</calcite-action-group>`)}</calcite-action-bar>`}render(){let{appearance:t}=this,o=t==="menu-bar"?this._renderMenuBar():this._renderDropdown();return i`<div class="root">${o}</div>`}};h("arcgis-link-chart-layout-switcher",l);return l},"widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel",a,b,c,e,f)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import t from"./27MWPK5A.js";import"./RE2MJTPB.js";import{a as g}from"./4L43F7HU.js";import s from"./ZYUABP4C.js";import r from"./NC7HUEPX.js";import{a as j,b as q,c as z,g as F,h as J,j as K,k as Q,m,n as T}from"./ZCFWKPXL.js";import{a as H}from"./ZRDAJM5H.js";import{a as b}from"./2FW4S3D6.js";import o from"./OZVJTOTJ.js";import n from"./HU57LQOA.js";import l from"./BZOKZ5VZ.js";import"./WJQUE4DR.js";import i from"./TLHMWWF5.js";import{a as k}from"./7SMRFGKB.js";import{a as w}from"./L5IRXOCJ.js";import{a as G}from"./CVT3K5PU.js";import h from"./HJBIPLFN.js";import e from"./WDPSGA7O.js";import c from"./AY4NJZW6.js";import{h as B}from"./KMWQECU7.js";import"./IE4EOH76.js";import a from"./6VQ5DE6L.js";import"./FIZMK7GS.js";import{e as N}from"./GX5EDFB2.js";import{C as P,P as L,Q as f,R,T as v,X as E,Y as M,_ as x,b as d,y as p}from"./KGYTRKZZ.js";import"./TAVTDQ6S.js";export default $arcgis.t(([re,u,{on:A,watch:te},,,,S,U,,,,,{e:V,h:W,k:X},{a:Y,b:Z,c:ee}])=>{var ie="nested",le=U(re),O=class extends R{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=L(),this._layerFlowItemRef=L(),this._panelFlowItemRef=L(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${P()}`,this._openedLayersController=null,this.messages=k(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,r=m(e,this.operationalItems);if(!r?.sortable)return!1;let l=this._resolveListContainer(t),o=this._resolveListContainer(i),n=this._getContainerItem(l),c=T(l),y=this._getContainerItem(o),_=T(o),$=!!c&&!!_&&c===_,I={selected:r,from:n,to:y},C=l?.group,h=o?.group,se=n?.layer?.type??"",ae=y?.layer?.type??"",D=new Set(["map-image","catalog","knowledge-graph"]);return C&&h&&typeof s=="function"?s(I):$&&!D.has(se)&&!D.has(ae)&&r?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(g.item)),i=m(t,this.operationalItems);this._activeItem=i},this.viewModel=le(this),this.arcgisClose=G(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new u(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new u,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesAvailable=new u(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minDragEnabledItems=z,this.minFilterItems=q,this.openedLayers=new u,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new u,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisFilterChange=p(),this.arcgisOpenedLayersChange=p(),this.arcgisPropertyChange=B()("state"),this.arcgisReady=p(),this.arcgisSelectedItemsChange=p(),this.arcgisTriggerAction=S(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,tableList:32,view:0,visibilityAppearance:1}}static{this.styles=[ee,Z]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(e=>!e.hidden&&e.panel?.open&&!e.panel.disabled&&e.panel.flowEnabled&&(!W(e)||V(e)))}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[A(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),A(()=>this.viewModel.operationalItems,"change",()=>F(this.selectedItems),{initial:!0}),te(()=>this.operationalItems.flatten(e=>e.children).map(e=>e.uid).join(","),()=>{F(this.selectedItems),this.requestUpdate()},{initial:!0}),A(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),te(()=>[this.filterPredicate,this._rootListRef.value],()=>J(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_resolveListContainer(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}_getContainerItem(e){let t=e?.getAttribute("data-item");return t?this._findItemByUid(t):null}_findItemByUid(e){let t=this.operationalItems?.toArray()??[];for(;t.length;){let i=t.shift();if(!i)continue;if(i.uid===e)return i;let a=i.children?.toArray()??[];t.push(...a)}return null}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:s}=a;this._openedLayersController=a,e.forEach((o,n)=>{t.includes(n)||(o?.destroy?.(),e.delete(n))});let r=await Promise.all(t.map(o=>this._createFlowList(o,s)));if(s.aborted)return;i.removeAll(),i.addMany(r);let l=i.at(-1);l?"catalogLayer"in l?(this._catalogLayerList=l,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=l):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:r,selectionMode:l,visibilityAppearance:o}=this;return M(d`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??r} .selectionMode=${i?.selectionMode??l} .visibilityAppearance=${i?.visibilityAppearance??o} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${n=>n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this._getTableListParams(e);return M(d`<arcgis-table-list-next .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${r=>r.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=this._resolveListContainer(e),r=this._resolveListContainer(t),l=m(i,this.operationalItems),o=this._getContainerItem(s),n=this._getContainerItem(r);a==null||!l||(this.viewModel.moveItem(l,n,o,a),X(this,l.uid,c=>c!==i&&this._resolveListContainer(c.parentElement)===s))}_onCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:s}=e;if(t!==i){a.remove();return}s==null||!t||!a||t.insertBefore(a,t.children[s])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{dragEl:i,newIndex:a}=e,s=this._resolveListContainer(e.fromEl),r=this._resolveListContainer(e.toEl),l=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===r&&t?.fromEl===s;if(!(!s||!r||l)){if(this._lastDragDetail={...e,fromEl:s,toEl:r},this._selectedDragItemLayerUid=i.value,s===r){let o=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this._sortLayers(s,o);return}this._moveLayerFromChildList({toEl:r,fromEl:s,dragEl:i,newIndex:a})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)K(this.el.view?.map?.layers,t);else{let i=m(e,this.operationalItems);if(!i)return;Q(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>m(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{state:e}=this,t={[w.hidden]:e==="loading",[w.disabled]:e==="disabled"};return d`<div class=${v(N(w.widget,t))}>${this._visibleItems?.length?this._renderItemTooltips():null}${this._renderItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?d`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return d`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return this.hideNoItemsNotice?null:d`<div class=${v(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return b(e?.uid??s,d`<calcite-flow-item data-layer-uid=${e?.uid??""??E} .description=${s} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${r=>{r.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${f(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return H(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:r}=i,l=()=>this._handlePanelFlowItemBack(s);return d`<calcite-flow-item .description=${r} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),l()}} ${f(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:r,showCollapseButton:l,showHeading:o,_dragEnabled:n,selectionMode:c,filterText:y,openedLayers:_,filterPlaceholder:$,messages:I}=this,C=[d`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${o?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!_.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}>${t?.length?d`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${h=>this._canMove(h,"pull")} .canPut=${h=>this._canMove(h,"put")} data-layer-type=${s??E} .displayMode=${ie} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${$} .filterProps=${j} .filterText=${a?y:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${c} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${h=>{this.filterText=h.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${h=>this._onCalciteListOrderChange(h.detail)} @calciteListDragEnd=${h=>this._onCalciteListDragEnd(h.detail)} ${f(this._rootListRef)}>${t.toArray().map(h=>this._renderItem(h))}${a&&!this.hideNoFilterResultsNotice?d`<div class=${v(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list>`:this._renderNoItems()}</calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:b("root-flow",d`<calcite-flow>${C}</calcite-flow>`)}_renderItem(e,t,i){return b(e.uid,Y({activeItem:this._activeItem,canMove:this._canMove,css:g,displayMode:ie,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};x("arcgis-layer-list-next",O);return O},"layerList/LayerListModel","core/Collection","core/reactiveUtils",a,c,e,h,i,l,n,o,r,s,t)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{R as r,_ as a,b as i}from"./KGYTRKZZ.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:s}])=>{var t=class extends r{constructor(){super(...arguments),this._showPrintAreaEnabled=!1}static{this.properties={_showPrintAreaEnabled:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[s(()=>[this.viewModel.showPrintAreaEnabled],()=>{let{showPrintAreaEnabled:e}=this.viewModel;this._showPrintAreaEnabled=e},{initial:!0})])}render(){return i`<calcite-label layout=inline><calcite-switch .checked=${this._showPrintAreaEnabled} @calciteSwitchChange=${e=>{this.viewModel.showPrintAreaEnabled=!!e.currentTarget.checked}}></calcite-switch>${this.messages.printPreview}</calcite-label>`}};a("arcgis-print-preview-input",t);return t},"core/reactiveUtils")
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{b as a,c as m,d as x,e as p,f as E,h as f,i as S,j as P}from"./J4CHCFLS.js";import{a as g,b as l}from"./XHOI3WNI.js";import d from"./BZOKZ5VZ.js";import"./WJQUE4DR.js";import{a as D}from"./7SMRFGKB.js";import{h as A}from"./KMWQECU7.js";import"./IE4EOH76.js";import"./FIZMK7GS.js";import{b as C}from"./GX5EDFB2.js";import{Q as c,R as G,T as F,_ as k,a as $,b as r,o as n,q as b,s as w,y as h}from"./KGYTRKZZ.js";import"./TAVTDQ6S.js";export default $arcgis.t(([y,{a:u}])=>{var L=$`:host{height:100%}slot:not([hidden]),.default-result-items{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{margin-top:0;margin-bottom:0;&.features-list-active{--calcite-block-content-space: 0}}.no-selectable-results{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-md);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)}`,R={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935,pathNotFound:-2147208444},v=class extends G{constructor(){super(...arguments),this._messages=D({blocking:!0}),this.#i=new Set,this.#s=new Set,this.#r=new Map,this.#l=[],this.#a=new Map,this.#o=new Set,this.#m=t=>{let{detail:e,target:s}=t;if(e.name==="isFeaturesListShown"){let i=s[e.name];!this.#t&&i?(this.#t=s,this.#f(a(this.el))):s===this.#t&&!i&&(this.#t=void 0,this.#h()),this.requestUpdate()}},this._slottedDefaultResultItems=[],this.aggregatedGeometryResultsGraphicsColor=new y(g),this.aggregatedGeometryResultsSize=12,this.autoDestroyDisabled=!1,this.disableHighlightFeatureResults=!1,this.expandable=!1,this.expanded=!1,this.hideActionBar=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=A()("aggregatedGeometryResultsGraphicsColor","aggregatedGeometryResultsSize","hideGraphics","state","traceError","traceResult","utilityNetwork","view"),this.arcgisResultsReady=h(),this.arcgisTraceResultClear=h(),this.arcgisTriggerAction=h()}static{this.properties={_slottedDefaultResultItems:16,actions:0,aggregatedGeometryResultsGraphicsColor:[1,{converter:{fromAttribute:t=>y.fromString(t)??new y(g)}}],aggregatedGeometryResultsSize:9,autoDestroyDisabled:5,disableHighlightFeatureResults:5,expandable:5,expanded:5,heading:1,hideActionBar:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,layers:0,messageOverrides:0,numFeatureResults:32,referenceElement:1,state:32,traceError:0,traceResult:0,traceResultFeatures:32,utilityNetwork:0,view:0}}static{this.styles=L}#t;#u;#e;#g;#i;#s;#r;#l;#a;#o;#m;get#p(){return a(this.el).length>0}get#F(){return this.traceResult?this.#p?a(this.el).filter(f):this.#D(this.traceResult):[]}get#y(){return!!this.traceResult&&!this.traceError&&this.#n}get#R(){if(!this.traceResult||!this.#n)return!1;if(a(this.el).some(i=>!m(i)))return!0;let{aggregatedGeometry:t,elements:e,globalFunctionResults:s}=this.traceResult;return this._slottedDefaultResultItems.some(i=>t!=null&&x(i)||e.length>0&&p(i)||s.length>0&&E(i))}get#n(){if(!this.traceResult)return!1;let{elements:t,globalFunctionResults:e,aggregatedGeometry:s}=this.traceResult;return!!(t.length||e.length||s)}get numFeatureResults(){return this.#e?this.#e.numResults:this.#l[0]?.numResults??0}get traceResultFeatures(){return this.#e?this.#e.features:this.#l[0]?.features??[]}clearResults(){this.#v(),this.arcgisTraceResultClear.emit()}async destroy(){let t=a(this.el).filter(P),e=await Promise.allSettled([...t.map(async s=>await s.destroy()),this.#u?.destroy(),this.#e?.destroy(),this.#g?.destroy()]);for(let s of e)s.status==="rejected"&&u(s.reason,this,"Error while destroying trace result item");await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{let t=a(this.el);return this.#G(t),this.#w(t),()=>{for(let e of this.#r.keys())this.#b(e);for(let e of this.#a.keys())this.#$(e);this.#h()}})}willUpdate(t){t.has("traceResult")&&(this.#v(),this.#y?this.#L():this.traceResult&&!this.traceError&&!this.#n&&this.#c())}loaded(){this.traceResult&&(this.view||b("warn",this,w("view")))}#h(){for(let t of this.#i)t.removeAttribute("hidden");this.#i.clear()}#v(){let t=a(this.el).filter(S);for(let e of t)try{e.clearResult()}catch(s){u(s,this,"Error while clearing trace result item")}this.#u?.clearResult(),this.#e?.clearResult(),this.#g?.clearResult(),this.#s.clear(),n(()=>this.state="ready")}#k(t){t&&(this.#u=t)}#C(t){this.#t&&this.#t===this.#e&&t!==this.#e&&(this.#t=void 0,this.#h()),this.#e=t,!this.#t&&t?.isFeaturesListShown&&(this.#t=t,this.#f(a(this.el))),this.requestUpdate()}#A(t){t&&(this.#g=t)}#c(){n(()=>this.state="ready"),this.arcgisResultsReady.emit()}#D(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t,[d,z,_]=l,o=[];return i!=null&&o.push(d),e!=null&&o.push(z),s.length>0&&o.push(_),o}#x(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#E(t){let{detail:e,target:s}=t;e.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=s[e.name]):e.name==="graphicsColor"?(t.stopPropagation(),this.aggregatedGeometryResultsGraphicsColor=s[e.name]):e.name==="selectionSize"&&(t.stopPropagation(),this.aggregatedGeometryResultsSize=s[e.name])}#S(){this.#d(l[0])}#P(){this.#d(l[1])}#z(){this.#d(l[2])}#_(t){let e=C(t);this.#G(e),this.#w(e)}#f(t){t.forEach(e=>{e!==this.#t&&!e.hasAttribute("hidden")?(e.setAttribute("hidden",""),this.#i.add(e)):e===this.#t&&this.#i.has(e)&&(e.removeAttribute("hidden"),this.#i.delete(e))})}#L(){this.#s=new Set(this.#F),this.#s.size===0?this.#c():n(()=>this.state="loading")}#O(t){if(this.#a.has(t))return;let e=s=>this.#m(s);this.#a.set(t,e),t.addEventListener("arcgisPropertyChange",e)}#H(t){if(this.#r.has(t))return;let e=({target:s})=>this.#d(s);this.#r.set(t,e),t.addEventListener("arcgisResultReady",e)}#$(t){let e=this.#a.get(t);e&&(t.removeEventListener("arcgisPropertyChange",e),this.#a.delete(t))}#b(t){let e=this.#r.get(t);e&&(t.removeEventListener("arcgisResultReady",e),this.#r.delete(t))}#w(t){for(let i of this.#i)t.includes(i)||(i.removeAttribute("hidden"),this.#i.delete(i));let e=t.filter(p);for(let i of this.#l)e.includes(i)||this.#$(i);for(let i of e)this.#O(i);let s=this.#t;s&&(!s.isFeaturesListShown||s!==this.#e&&!e.includes(s))&&(this.#t=void 0,this.#h()),this.#t??=e.find(i=>i.isFeaturesListShown),this.#t&&this.#f(t),this.#l=e,this.requestUpdate()}#G(t){let e=new Set(t.filter(f));for(let s of this.#o)e.has(s)||(this.#b(s),this.#s.delete(s));for(let s of e)this.#H(s),this.state==="loading"&&!this.#o.has(s)&&this.#s.add(s);this.#o=e,this._slottedDefaultResultItems=t.filter(m),this.state==="loading"&&this.#s.size===0&&this.#c()}#d(t){this.#s.delete(t),this.state==="loading"&&this.#s.size===0&&this.#c()}render(){let{traceError:t,traceResult:e}=this,s,i=!this.#y||!this.#p||!this.#R,d=r`<slot .hidden=${i} @slotchange=${this.#_}></slot>`;return t?s=this.#N(t):e?this.#n?this.#p?this.#R||(s=this.#I()):s=this.#T(e):s=this.#U():s=this.#B(),r`<calcite-block class=${F({"results-block":!0,"features-list-active":!!this.#t})} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state==="loading"}>${d}${s}</calcite-block>`}#T(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t;return r`<div class="default-result-items">${i!=null?r`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#E} @arcgisResultReady=${this.#S} ${c(this.#k)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!e.length&&!this.#t?this.#M():null}`:null}${e!=null?r`<arcgis-utility-network-trace-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlight=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!e.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} @arcgisPropertyChange=${this.#m} @arcgisResultReady=${this.#P} @arcgisTriggerAction=${this.#x} ${c(this.#C)}></arcgis-utility-network-trace-elements-result-item>`:null}${s.length>0?r`<arcgis-utility-network-trace-functions-result-item auto-destroy-disabled .heading=${this._messages.headings.functions} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} @arcgisResultReady=${this.#z} ${c(this.#A)}></arcgis-utility-network-trace-functions-result-item>`:null}</div>`}#I(){return r`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`}#M(){return r`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}#N(t){let{_messages:e}=this,s=t.message;switch(t.details?.raw?.extendedCode){case R.dirtyAreasDiscovered:s=e.traceErrors.dirtyAreasDiscovered;break;case R.noValidControllers:s=e.traceErrors.noValidControllers;break;case R.pathNotFound:s=e.traceErrors.pathNotFound;break}return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.traceFailedHeading}</div><div class="no-results-description">${e.traceFailedDescription}</div><div class="no-results-description">${s}</div></div>`}#U(){let{_messages:t}=this;return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.noResultsHeading}</div><div class="no-results-description">${t.noResultsDescription}</div></div>`}#B(){let{_messages:t}=this;return r`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${t.noTraceConfigHeading}</div><div class="no-results-description">${t.noTraceConfigDescription}</div></div>`}};k("arcgis-utility-network-trace-results",v);return v},"Color",d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as M,c as k}from"./
|
|
2
|
+
import{b as M,c as k}from"./C2MDGIL7.js";import a from"./BZOKZ5VZ.js";import{b as F,c as w,f as G}from"./KMWQECU7.js";import{c as R,f as O,h as A}from"./GX5EDFB2.js";import{A as C,P as S,b as y,p as d,y as b}from"./KGYTRKZZ.js";export default $arcgis.t(([{initializeProjection:T},{signal:j},{watch:u,when:q},H,K,{b:D,c:L}])=>{async function*N(n,t){for(let e of n){let o=await d(e,t).catch(()=>{});if(t.aborted)return;yield*Array.isArray(o)?o.filter(i=>i instanceof K):[]}}async function*V(){yield*[]}async function*U(n,t){await d(n,t).catch(()=>{})}async function $(n,t,e,o){let i;if(e instanceof H?(await T(e.spatialReference,n.spatialReference),D(o.signal),i=n.toScreen(e)):i=e,!i)return V();let p=Promise.withResolvers(),a=n.fetchPopupFeatures(i,{...o,defaultPopupTemplateEnabled:t.defaultPopupTemplateEnabled,hitTestResolver:p})??V();return await p.promise,a}function g(n,t){if(t instanceof H)return t;let e="width"in t?{x:t.x+t.width/2,y:t.y+t.height/2}:t;return n.toMap(e)??void 0}async function z(n,t,e,o){let i={};return{diagnostics:i,featureStream:await $(n,t,e,{diagnostics:i,signal:o}),location:g(n,e)}}var x=class extends C{constructor(t){super(t),this.direction=G(),this.popupRef=S(),this._popupElement=j(void 0),this._popupAbortController=null,this._popupClickOpenCount=0,this.slotGroupRefs=M(),this.attributionHeight=0,this._uiContainer=null,this.component.listenOn(globalThis,"unhandledrejection",e=>{let o=e.reason;if(o?.name==="webgl:required"){let{name:i}=o;this.webGLError={name:i}}})}get _focusRegionSelectionSupported(){return!this.component.popupDisabled&&(this.component.popupComponentEnabled||!!this.popupElement&&this.popupElement!==this._defaultPopupElement)}get popupElement(){return this._popupElement.value}set popupElement(t){this._popupElement.value=t}hostLifecycle(){let{view:t}=this.component,e=t.focusRegionShortcutEnabled;return[u(()=>this.component.focusRegionShortcutEnabled??this._focusRegionSelectionSupported,o=>{this.component.view.focusRegionShortcutEnabled=o},{initial:!0,sync:!0}),q(()=>this.component.view.ready,()=>{this._assignDefaultPopup()}),u(()=>this.component.view.popup?.visible,(o,i)=>{(o||i)&&this._cancelPopupOperation(),o&&this.popupElement?.open&&(this.popupElement.open=!1)},{initial:!0}),u(()=>this.component.popupElement?.open,(o,i)=>{i&&!o&&this._cancelPopupOperation()},{initial:!0,sync:!0}),this.component.view.on("focus-region-select",o=>this._handleFocusRegionSelect(o)),this.component.view.on("click",[],o=>{let i=o.native;o.button!==0||i?.ctrlKey||i?.metaKey||this._handleOpenPopup(o).catch(()=>{})},-2),{remove:()=>{t.focusRegionShortcutEnabled=e}}]}hostDestroy(){this._cancelPopupOperation()}async openPopup(t={}){this._assignDefaultPopup();let e=this.popupElement,o=t.location??e?.location,i=!!e&&!t.featureStream&&!t.promises?.length&&!!t.fetchFeatures&&!!o;this._cancelPopupOperation();let p=new AbortController;if(this._popupAbortController=p,e){let{fetchFeatures:a,shouldFocus:h,title:l,featureStream:E,promises:v,location:c,..._}=t,m=c?g(this.component.view,c):void 0,P=c??o,s=i&&P?z(this.component.view,e,P,p.signal):null,f=s?Promise.withResolvers():null;s&&f&&(s.catch(()=>{}),e.featureStream=U(f.promise,p.signal));try{await e.componentOnReady()}catch(r){throw s&&this._isCurrentPopupOperation(p)&&(p.abort(),e.open=!1,await e.clear()),r}if(!this._isCurrentPopupOperation(p))return;if(s)try{let r=await s;if(!this._isCurrentPopupOperation(p))return;Object.assign(e,_),l!==void 0&&(e.heading=l),await e.openFeatureStream(r)}catch(r){if(!L(r))throw this._isCurrentPopupOperation(p)&&(e.open=!1,await e.clear()),r;return}finally{f?.resolve()}else Object.assign(e,_),l!==void 0&&(e.heading=l),E?await e.openFeatureStream({featureStream:E,location:m}):v?.length?await e.openFeatureStream({featureStream:N(v,p.signal),location:m}):(e.featureStream=null,c!==void 0&&(e.location=m),e.open=!0);h&&this._isCurrentPopupOperation(p)&&await e.setFocus()}else{let{location:a,...h}=t;await this.component.view.openPopup({...h,location:a?g(this.component.view,a):void 0})}}closePopup(){this._cancelPopupOperation(),this.popupElement?(this.popupElement.open=!1,this.popupElement.clear()):this.component.view.closePopup()}_cancelPopupOperation(){this._popupAbortController?.abort(),this._popupAbortController=null}_isCurrentPopupOperation(t){return this._popupAbortController===t&&!t.signal.aborted}_assignDefaultPopup(){this.popupRef.value&&!this.popupElement&&(this._defaultPopupElement=this.popupRef.value,this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let e=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=e}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}_maybeDisableViewPopup(){this.component.view&&(this.component.popupComponentEnabled||this.popupElement)&&(this.previousViewPopupEnabled??=this.component.view.popupEnabled,this.component.view.popupEnabled=!1)}_maybeResetViewPopup(){this.component.view&&this.previousViewPopupEnabled!==void 0&&(this.component.view.popupEnabled=this.previousViewPopupEnabled,this.previousViewPopupEnabled=void 0)}async _handleOpenPopup(t){if(this._assignDefaultPopup(),!this.component.popupDisabled){this._popupClickOpenCount++,this._maybeDisableViewPopup();try{this.popupElement&&await this.openPopup({fetchFeatures:!0,location:{x:t.x,y:t.y}})}finally{this._popupClickOpenCount--,this._popupClickOpenCount||this._maybeResetViewPopup()}}}_handleFocusRegionSelect(t){this._assignDefaultPopup(),!(!this._focusRegionSelectionSupported||!this.popupElement)&&queueMicrotask(()=>{let{focusRegion:e}=this.component.view;!t.defaultPrevented&&e&&this.openPopup({fetchFeatures:!0,location:e}).catch(()=>{})})}_handlePopupSlotChange(t){let e=R(t.target,"arcgis-popup");!this.popupElement&&e.length?this.popupElement=e[0]:e.length||(this.popupElement=void 0)}_webGLErrorAlert(){return this.webGLError?y`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return k({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,slotGroupRefs:this.slotGroupRefs,handlePopupSlotChange:t=>this._handlePopupSlotChange(t),webGLErrorElement:this._webGLErrorAlert(),popupElement:this.popupRef})}};function se(n){F((t,e)=>{let o=()=>{if(n.attributionMode!=="auto")return;let i=A(n.el);n.view.attributionMode!==i&&(n.view.attributionMode=i)};e.onLifecycle(()=>(o(),O(n.el,["class"],o))),e.onUpdate(i=>{i.has("attributionMode")&&n.attributionMode==="auto"&&o()})})}var re=w((n,t)=>{let e=b();return t.onLifecycle(()=>u(()=>{let{map:o}=n;if(!o||o.destroyed)return[];let i=[];return o.loadError&&i.push(o),o.basemap?.loadError&&i.push(o.basemap),o.ground.loadError&&i.push(o.ground),[...o.allLayers,...o.allTables].forEach(p=>{p.loadError&&i.push(p)}),i},o=>{o.length&&(n.loadErrorSources=o,e.emit())})),e}),ae=w((n,t)=>{let e=b();return t.onLifecycle(()=>u(()=>n.view?.readyState,o=>{(o==="map-content-error"||o==="rendering-error")&&e.emit()})),e});return{a:x,b:se,c:re,d:ae}},"applications/Components/featureUtils","applications/Components/reactiveUtils","core/reactiveUtils","geometry/Point","Graphic",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./BZOKZ5VZ.js";import{a as h}from"./WJQUE4DR.js";import{q as c}from"./KGYTRKZZ.js";export default $arcgis.t(([{forceInteractive:v},V,{property:a,subclass:m},{ignoreAbortErrors:f},{when:g,watch:_,on:I,whenOnce:b},{getDefaultUnitForView:A},{b:l,c:u,d:d}])=>{var O=Object.defineProperty,F=Object.getOwnPropertyDescriptor,n=(i,t,r,s)=>{for(var o=s>1?void 0:s?F(t,r):t,p=i.length-1,w;p>=0;p--)(w=i[p])&&(o=(s?w(t,r,o):w(o))||o);return s&&o&&O(t,r,o),o},y=Symbol("interactiveHandle"),e=class extends V{constructor(){super({}),this.operationState="inactive",this._ownsAnalysis=!1,this.shouldForceInteractive=!0,this._changeFromReconnect=!1,this._userOperationInfo=null,this._loggedUnsupportedErrorMessage=!1}initialize(){this._set("analysis",this.constructAnalysis()),this._ownsAnalysis=!0;let i=()=>{!this._changeFromReconnect&&!this._viewHasAnalysis&&(this._ownsAnalysis=!1);let t=!this._changeFromReconnect;this._changeFromReconnect=!1,t&&this._scheduleViewReconnect()};this.addHandles([g(()=>this.view?.ready&&!this.supported,()=>{this._loggedUnsupportedErrorMessage||c("error",this,this.unsupportedErrorMessage)},{sync:!0,initial:!0}),_(()=>[this.analysis,this._viewHasAnalysis],i,{sync:!0}),I(()=>this.view,"analysis-view-destroy",t=>{t.analysis===this.analysis&&i()}),_(()=>({view:this.view,ready:!!this.view?.ready,supported:this.supported}),({view:t},r)=>{let s=r?.view;t!==s&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(s)),this._scheduleViewReconnect()},{sync:!0,initial:!0})])}destroy(){this._reconnectViewTask=h(this._reconnectViewTask),this._userOperationInfo=h(this._userOperationInfo),this.analysisView!=null&&(this.analysisView.visible=void 0),this._disconnectFromView(this.view),this._set("view",null),this._ownsAnalysis&&this.analysis?.destroy()}get defaultMeasurementSystem(){return this.view?.ready?A(this.view):"metric"}get active(){return this._userOperationInfo?.state==="running"}set analysis(i){i!==this._get("analysis")&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(this.view),this._setExternalAnalysis(i),this._scheduleViewReconnect())}get connectingToView(){return!!this._reconnectViewTask}get disabled(){return!this.view?.ready||!this.supported}set hideVisualization(i){this._set("hideVisualization",i),this.analysisView&&(this.analysisView.visible=!i)}get interactionDisabled(){return this._get("interactionDisabled")??!1}set interactionDisabled(i){i!==this.interactionDisabled&&(this._set("interactionDisabled",i),i&&this.stop(),this._updateInteractivity())}get ready(){return!!this.analysisView&&!this.connectingToView}get supported(){return!this.view||this.supportedViewType==="both"||this.view.type===this.supportedViewType}get _viewHasAnalysis(){let{view:i}=this;return i?.analyses.includes(this.analysis)===!0}clear(){this._userOperationInfo=h(this._userOperationInfo),this.clearAnalysis()}async start(i){if(this.interactionDisabled){c("warn",this,"Cannot start analysis when interactivity is disabled");return}if(this.hideVisualization){c("warn",this,"Cannot start analysis when not visible");return}this.stop(),i?.clear!==!1&&this.clear();let t={task:null,abort:null,state:"pending"},r=d(async s=>{if(t.state="wait-for-view-ready",await b(()=>this.ready,s),l(s),this.interactionDisabled||(t.state="running",!this.analysisView||!this.view))return;this.operationState="active";let o=i?.operation?.({signal:s})??this.place({signal:s});await f(o)});t.task=r,t.abort=()=>r.abort(),this._userOperationInfo=t;try{await r.promise}finally{(this._userOperationInfo===t||!this._userOperationInfo)&&(this.operationState="inactive"),this._userOperationInfo===t&&(this._userOperationInfo=void 0)}}stop(){this._userOperationInfo=h(this._userOperationInfo)}place(i){throw new Error("place() not implemented for this analysis view model")}clearAnalysis(){}onConnectToAnalysisView(i){}onDisconnectFromAnalysisView(){}_scheduleViewReconnect(){this._reconnectViewTask=h(this._reconnectViewTask);let i=d(async t=>{try{await this._reconnectView(t)}catch(r){if(l(t),!u(r)){c("warn",this,`Failed to use analysis in view model. ${String(r)}`);return}throw r}finally{i===this._reconnectViewTask&&(this._reconnectViewTask=void 0)}});this._reconnectViewTask=i}async _reconnectView(i){let{view:t}=this,r=t?.ready&&this.supported,s=this.analysis;if(this._userOperationInfo=T(this._userOperationInfo),this._disconnectFromView(t),!r||!t||!s)return;if(this._ownsAnalysis)this._changeFromReconnect=!0,t.analyses.add(s);else if(!("parent"in s)||s.parent==null)return;let o=await t.whenAnalysisView(s);l(i),this.analysisView=o,o.visible=!this.hideVisualization,this._updateInteractivity(),this.onConnectToAnalysisView(o)}_disconnectFromView(i){this._ownsAnalysis&&i?.analyses.includes(this.analysis)&&(this._changeFromReconnect=!0,this.clearAnalysis(),i.analyses.remove(this.analysis)),this.onDisconnectFromAnalysisView(),this.removeHandles(y),this._restoreInteractivity(),this.analysisView=void 0}_updateInteractivity(){this.removeHandles(y);let{analysisView:i}=this;this.interactionDisabled&&i?(this._suppressedInteractivity={analysisView:i,interactive:i.interactive},i.interactive=!1):(this._restoreInteractivity(),i&&this.shouldForceInteractive&&this.addHandles(v(i),y))}_restoreInteractivity(){let i=this._suppressedInteractivity;this._suppressedInteractivity=void 0,i&&!i.analysisView.destroyed&&!i.analysisView.interactive&&(i.analysisView.interactive=i.interactive)}_setExternalAnalysis(i){this.analysisView&&!this._ownsAnalysis&&(this.analysisView.visible=void 0,this.removeHandles(y)),this.analysisView=void 0,this._ownsAnalysis=!1,this._set("analysis",i),this._changeFromReconnect=!1}};n([a()],e.prototype,"defaultMeasurementSystem",1);n([a()],e.prototype,"active",1);n([a()],e.prototype,"analysis",1);n([a()],e.prototype,"connectingToView",1);n([a()],e.prototype,"disabled",1);n([a()],e.prototype,"hideVisualization",1);n([a()],e.prototype,"interactionDisabled",1);n([a()],e.prototype,"operationState",2);n([a()],e.prototype,"ready",1);n([a()],e.prototype,"supported",1);n([a()],e.prototype,"view",2);n([a()],e.prototype,"_ownsAnalysis",2);n([a()],e.prototype,"_viewHasAnalysis",1);n([a()],e.prototype,"_reconnectViewTask",2);n([a()],e.prototype,"analysisView",2);n([a()],e.prototype,"shouldForceInteractive",2);e=n([m("esri.components.support.AnalysisViewModel")],e);function T(i){return i?.state==="running"?(i.abort(),null):i}return e},"applications/Components/analysisUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","core/reactiveUtils","applications/Components/getDefaultUnits",a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import a from"./ZUFXPTE5.js";import"./7SMRFGKB.js";import"./KMWQECU7.js";import"./IE4EOH76.js";import"./FIZMK7GS.js";import"./GX5EDFB2.js";import"./KGYTRKZZ.js";import"./TAVTDQ6S.js";export default $arcgis.t(([,{c:r}])=>{return r},"widgets/BatchAttributeForm/inputs/support/inputUtils",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as r}from"./
|
|
2
|
+
import{a as r}from"./KMWQECU7.js";import{A as c}from"./KGYTRKZZ.js";export default $arcgis.t(([{watch:s},{projectIsLoaded:i,projectLoad:p,projectExecute:l}])=>{var n=class extends c{constructor(o){super(o),this.exports=void 0}hostLoaded(){this.component.manager.onLifecycle(()=>s(()=>{let{view:o,trackLocation:t,location:e}=this.component;return t&&o&&e?[t,e,o.size,o.type==="3d"?o.camera:o.viewpoint]:null},()=>{this._updateScreenLocation()},{initial:!0}))}async _updateScreenLocation(){{i()||await p();let{location:o,view:t}=this.component,e=t?.spatialReference,a=e&&o?l(o,e):null;this.exports=this.component.trackLocation&&a&&t?.ready?t.toScreen(a):null}}},L=r(n);return L},"core/reactiveUtils","geometry/operators/projectOperator")
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as u}from"./7SMRFGKB.js";import"./KMWQECU7.js";import"./IE4EOH76.js";import"./FIZMK7GS.js";import"./GX5EDFB2.js";import{Q as n,R as d,W as o,X as s,_ as m,a as l,b as r,y as h}from"./KGYTRKZZ.js";import"./TAVTDQ6S.js";var p=l`:host{display:contents;color:var(--calcite-color-text-1)}.lightbox{gap:var(--calcite-space-sm);border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);box-sizing:border-box;border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm);flex-direction:column;justify-content:center;align-items:center;inline-size:100%;display:flex;max-block-size:100%}.thumbnail-container{display:contents}img{object-fit:contain;width:100%;max-block-size:100%;max-inline-size:100%}audio,video{object-fit:contain;width:100%;overflow:clip;max-block-size:100%;max-inline-size:100%}`,c=class extends d{constructor(){super(...arguments),this._messages=u({blocking:!0,name:"feature-form-next"}),this._attachment=void 0,this._input=void 0,this._hasError=!1,this.previewType="none",this.url=void 0,this.arcgisInternalAttachmentMediaError=h()}static{this.properties={_hasError:16,previewType:16,url:16,attachment:0,input:0,messageOverrides:0}}static{this.styles=p}get _altText(){let{attachment:e,input:t}=this;return!e||!t?"":e.name}get attachment(){return this._attachment}set attachment(e){this._attachment!==e&&(this._attachment=e,this.#e())}get input(){return this._input}set input(e){e!==this._input&&(this._input=e,this.#e())}pause(){this._mediaElement?.deref()?.pause()}connectedCallback(){super.connectedCallback(),this.#e()}disconnectedCallback(){let e=this._mediaElement?.deref();super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this._cleanupMediaElement(e),this.previewType="none")})}#e(){this._hasError=!1;let{_attachment:e,_input:t}=this;if(!e||!t){this.previewType="none",this.url=void 0;return}let i=e.contentType?.split("/").at(0);switch(i){case"image":this.url=t.getAttachmentPreviewUrl(e)??e.url??void 0,this.previewType="image";return;case"video":case"audio":this.url=e.url??void 0,this.previewType=i;return;default:this.previewType="none",this.url=void 0;return}}_handlePreviewError(e){e.stopPropagation(),this._hasError=!0,this.arcgisInternalAttachmentMediaError.emit()}_cleanupMediaElement(e){e?.pause(),e?.removeAttribute("src"),e?.load(),this._mediaElement=void 0}_setMediaElementRef(e){this._mediaElement=e?new WeakRef(e):void 0}#t(){return r`<div class="thumbnail-container"><arcgis-attachment-thumbnail icon-only .attachment=${this.attachment} .input=${this.input} visual-scale=m></arcgis-attachment-thumbnail><div>${this._messages.components.attachments["attachment-preview"].noPreview}</div></div>`}#i(){let{url:e,_altText:t}=this;return r`<img src=${e??s} alt=${t??""??s} data-testid=preview-element @error=${this._handlePreviewError}>`}#r(e){let{url:t,_altText:i}=this;return r`<audio src=${o(t)??s} controls preload=none .ariaLabel=${i} data-testid=preview-element @error=${this._handlePreviewError} ${n(this._setMediaElementRef)}>${e}</audio>`}#a(e){let{url:t,_altText:i}=this;return r`<video src=${o(t)??s} controls preload=none .muted=${!0} .ariaLabel=${i} data-testid=preview-element @error=${this._handlePreviewError} ${n(this._setMediaElementRef)}>${e}</video>`}render(){let{previewType:e,_hasError:t}=this,i=this.#t();if(t)return r`<div class="lightbox">${i}</div>`;let a=i;switch(e){case"audio":a=this.#r(i);break;case"video":a=this.#a(i);break;case"image":a=this.#i();break;default:a=i;break}return r`<div class="lightbox">${a}</div>`}};m("arcgis-attachment-preview",c);export{c as ArcgisAttachmentPreview};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./HU57LQOA.js";import{a as E}from"./ZSPYPXBY.js";import{P as I,X as S,a as M,b as p,p as l,r as m,x as b}from"./3UMLR76Y.js";export default $arcgis.t(([k,{cutExecute:A},{lengthExecute:L},{projectIsLoaded:j,projectLoad:B,projectExecute:N},{proximityGetNearestCoordinate:U},D,F,R,x,$,O,G,{substitute:W},{b:P,e:v,g:C,h:_}])=>{var H=M`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{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,V=`utility-network-trace-locations-sketch-${Date.now()}`,T=class q extends I{constructor(){super(...arguments),this._messages=E({blocking:!0}),this._isSelectWaiting=!1,this.traceLocationType="starting-point",this.traceLocations=new k,this.filterLayers=new k,this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationSelectEnd=b(),this.arcgisTraceLocationSelectStart=b(),this.arcgisError=b()}static{this.properties={_isSelectWaiting:16,beforeMapInteraction:0,afterMapInteraction:0,messageOverrides:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,spatialTolerance:9,error:1,autoDestroyDisabled:5,utilityNetwork:0,heading:1,sketchViewModel:32}}static{this.styles=H}static{this.sketchViewModelMap=new Map}static getSketchViewModel(t){if(!this.sketchViewModelMap.has(t)){let e=this.#a(t,V);e&&this.sketchViewModelMap.set(t,new O({view:t,layer:e}))}return this.sketchViewModelMap.get(t)??null}static#a(t,e){if(!t?.map)return null;let i=t.map.findLayerById(e);if(!i){let r=new R({id:e,listMode:"hide",title:e});return P(t,r),r}return i}static removeSketchGraphicsLayer(t){if(t?.map){let e=t.map.findLayerById(V);e&&t.map.remove(e),this.sketchViewModelMap.delete(t)}}#i;get sketchViewModel(){return this.view?q.getSketchViewModel(this.view):null}async destroy(){try{this.#r()}finally{await this.manager.destroy()}}async load(){j()||await B()}willUpdate(t){t.has("filterLayers")&&this.#o()}#t(t,e){this.error=e,l(t,this,e),this.arcgisError.emit()}#s(t){let{traceLocations:e,view:i}=this;t.spatialProperties.flagGraphic&&i&&i.graphics.remove(t.spatialProperties.flagGraphic),e?.remove(t)}#o(){if(!this.sketchViewModel)return;let t=new k;this.filterLayers?.forEach(e=>{C(e)?e.sublayers.forEach(i=>{t.add(new G({layer:i,enabled:!0}))}):t.add(new G({layer:e,enabled:!0}))}),this.sketchViewModel.snappingOptions={enabled:!1,featureSources:t}}#n(t,e){let i=t.clone(),r=i.spatialReference,s=e.spatialReference;if(!r||!s)return l("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let o=e;if(!r.equals(s)){let y=N(e,r);if(!y)return l("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;o=y}let n=U(i,o);if(n.isEmpty)return l("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=n.coordinate,c=a.x-.5,h=a.y-.5,d=a.x+.5,u=a.y+.5,f=new D({hasZ:!1,hasM:!0,paths:[[[c,h],[d,u]]],spatialReference:i.spatialReference}),g=A(i,f);if(g.length>0){let y=L(i,{unit:"feet"}),w;return g[0].paths[0][0][0]===i.paths[0][0][0]?w=L(g[0],{unit:"feet"}):g.length>1?w=L(g[1],{unit:"feet"}):w=0,w/y}return l("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get#c(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async#l(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){l("error",this,"Cannot add trace location."),e||l("error",this,m("sketchViewModel")),t||l("error",this,m("view"));return}if(this.beforeMapInteraction){this._isSelectWaiting=!0;try{await this.beforeMapInteraction()}finally{this._isSelectWaiting=!1}}await this.#e(t,e)}async#e(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this.#i?.remove(),this.#i=e.on("create",i=>this.#h(i,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}#h(t,e,i){if(t.state==="complete"&&t.graphic){i.layer.remove(t.graphic),this.#p(t,e,i);return}t.state==="cancel"&&(this.#r(),this.arcgisTraceLocationSelectEnd.emit())}async#p(t,e,i){let{utilityNetwork:r}=this,{graphic:s}=t;if(!r){l("error",this,m("utilityNetwork")),this.#r(),this.arcgisTraceLocationSelectEnd.emit();return}if(s?.geometry?.type!=="point"){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let o=s.geometry,n=e.toScreen(o);if(!n){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let a=(await e.hitTest(n,{include:this.filterLayers})).results.filter(c=>c.type==="graphic"&&c?.layer&&c.graphic);if(!a.length){this.#t("info",this._messages.errors.noHitResult),this.#e(e,i);return}this.#r(),await this.#d(a,o,e)?this.arcgisTraceLocationSelectEnd.emit():this.#e(e,i)}#r(){let{view:t,sketchViewModel:e}=this;if(!t){l("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this.#i?.remove(),this.#i=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async#d(t,e,i){if(!t.length)return this.#t("error",this._messages.errors.noHitResult),!1;let r=t[0].graphic;if(this.afterMapInteraction){let o=t.map(n=>{let a=n,c=a.graphic;return c.origin=a.layer,c.sourceLayer=a.layer,c});try{r=await this.afterMapInteraction(o)}catch{r=null}}if(!r)return l("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this.#u(r);return s?await this.#g(s,e,i):(this.#t("error",this._messages.errors.missingAttributes),this.arcgisTraceLocationSelectEnd.emit(),!0)}async#u(t){let e=(v(t.layer),t.layer),i=e.geometryType===null,r=e.fieldsIndex?.get("assetgroup")??!1,s=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",o=e.fieldsIndex?.get("assettype")??!1,n=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),c=t.getObjectId(),h=r?!!t.getAttribute(s):!0,d=o?!!t.getAttribute(n):!0,u=!!t.geometry;if(a&&c&&h&&d&&(u||i))return t;let f=e.createQuery();return f.objectIds=[c],(await e.queryFeatures(f)).features[0]||null}async#g(t,e,i){let{traceLocations:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#m(t,e);if(!n)return this.#t("error",this._messages.errors.errorGeneratingTraceLocationDetails),!1;let a=r?.filter(h=>h.spatialProperties.mapGraphic?.getGlobalId()===s)??[];if(a.length>0){if(o!=="polyline")return this.#t("warn",this._messages.errors.duplicateTraceLocationDetails),!1;if(a.some(h=>Math.abs(h.traceLocation.percentAlong-n.traceLocation.percentAlong)<=this.spatialTolerance))return this.#t("warn",this._messages.errors.duplicateTraceLocationDetailsWithinTolerance),!1}let c=this.#y(t,e,i);return c?(n.spatialProperties.flagGraphic=c,r?.add(n),!0):(this.#t("warn",this._messages.errors.errorAdding),!1)}async#m(t,e){let{traceLocationType:i,utilityNetwork:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#f(t);if(o==="point"||o==="polygon"){let a=r?.getTerminalConfiguration(t),c=a?a.terminals[0].id:1;return{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,terminalId:c}),flagProperties:{title:n,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([c]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(o==="polyline"){let a=this.#n(t.geometry,e);return a<0?(l("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,percentAlong:a}),flagProperties:{title:n,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!o){let a=_(t.layer)?t.layer.parent:t.layer,c=a&&this.#c.includes(a.layerId),h=r?.getTerminalConfiguration(t),d=h?h.terminals[0].id:c?-1:1,u=c?.5:-1;return{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,terminalId:d,percentAlong:u}),flagProperties:{title:n,expanded:!1,terminalConfiguration:h??void 0,selectedTerminals:h?new Set([d]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async#f(t){let e=(v(t.layer),t.layer);return("getFeatureTitle"in e?await e.getFeatureTitle(t):null)||t.getObjectId()?.toString()||this._messages.unknown}#y(t,e,i){let r=t.geometry?t.geometry.type==="point"?t.geometry:e:null,s=this.#w(),o=new F({geometry:r,symbol:s,attributes:t.attributes});return i.graphics.add(o),o}#w(){let{traceLocationType:t}=this,e=[244,21,21,.6],i=[21,244,21,.6];return t==="stopping-point"?new $({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new $({color:e,style:"square",size:12,outline:{color:e,width:0}}):new $({color:i,style:"circle",size:12,outline:{color:i,width:0}})}#b(){let{view:t,traceLocations:e}=this;e?.forEach(i=>{i.spatialProperties.flagGraphic&&t&&t.graphics.remove(i.spatialProperties.flagGraphic)}),e?.removeAll()}#v(t,e){let{flagProperties:i}=t,{selectedTerminals:r}=i,{name:s,id:o}=e,n=r?.has(o)??!1;return p`<calcite-label layout=inline><calcite-checkbox .value=${o} .checked=${n} @calciteCheckboxChange=${a=>{a.target.checked?r?.add(o):r?.delete(o),this.requestUpdate()}}></calcite-checkbox>${s}</calcite-label>`}#k(){return p`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#L(t){let{traceLocation:e}=t;return p`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${e.isFilterBarrier} @calciteSwitchChange=${i=>{e.isFilterBarrier=i.target.checked}}></calcite-switch></div></calcite-label>`}#x(t){let{flagProperties:e}=t,{terminalConfiguration:i,selectedTerminals:r}=e,s=t.traceLocation.type==="barrier",o=i&&i.terminals.length>0&&r?.size===0;return p`<calcite-action .icon=${e.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{e.expanded=!e.expanded,this.requestUpdate()}}></calcite-action>${o&&p`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${e.expanded&&p`<div class="terminals" slot=content-bottom>${s&&this.#L(t)||""}${i&&this.#$(t)||""}${o&&this.#k()||""}</div>`||""}`}#$(t){let{flagProperties:e}=t,{terminalConfiguration:i}=e;if(!i)return l("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=i.terminals;return r.length?r.length===1?[]:r.map(s=>this.#v(t,s)):(l("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#T(t){let{flagProperties:e}=t,{terminalConfiguration:i,expanded:r,title:s}=e,o=i&&i.id!==0,n=t.traceLocation.type==="barrier",a=o||n,c=i?.name??void 0;return p`<calcite-list-item .label=${s} .description=${c} .value=${s} .expanded=${r}>${a?this.#x(t):p`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#s(t)}></calcite-action></calcite-list-item>`}#M(t){if(!t.length)return null;let{traceLocationType:e}=this,i=t.map(s=>this.#T(s)).toArray(),r=W(this._messages.labels.list,{type:e});return p`<div><calcite-list interaction-mode=static selection-mode=none .label=${r}>${i}</calcite-list></div>`}#I(){let{traceLocationType:t,_messages:e,traceLocations:i,heading:r}=this,s=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,o=r??s.heading,n=s.description,a=s.buttonText;return p`<calcite-block .heading=${o} .label=${o} expanded .description=${n}>${i?.length?p`<calcite-button slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this.#b()}>${e.buttons.clear}</calcite-button>${this.#M(i)}`:null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this.#l()}>${a}</calcite-button></div></calcite-block>`}render(){return this.#I()}};S("arcgis-utility-network-trace-locations",T);return T},"core/Collection","geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","layers/GraphicsLayer","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol","widgets/Sketch/SketchViewModel","views/interactive/snapping/FeatureSnappingLayerSource","intl",a)
|
|
2
|
+
import a from"./HU57LQOA.js";import{a as E}from"./7SMRFGKB.js";import{R as I,_ as S,a as M,b as p,q as l,s as m,y as b}from"./KGYTRKZZ.js";export default $arcgis.t(([k,{cutExecute:A},{lengthExecute:L},{projectIsLoaded:j,projectLoad:B,projectExecute:N},{proximityGetNearestCoordinate:U},D,F,R,x,$,O,G,{substitute:W},{b:P,e:v,g:C,h:_}])=>{var H=M`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{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,V=`utility-network-trace-locations-sketch-${Date.now()}`,T=class q extends I{constructor(){super(...arguments),this._messages=E({blocking:!0}),this._isSelectWaiting=!1,this.traceLocationType="starting-point",this.traceLocations=new k,this.filterLayers=new k,this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationSelectEnd=b(),this.arcgisTraceLocationSelectStart=b(),this.arcgisError=b()}static{this.properties={_isSelectWaiting:16,beforeMapInteraction:0,afterMapInteraction:0,messageOverrides:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,spatialTolerance:9,error:1,autoDestroyDisabled:5,utilityNetwork:0,heading:1,sketchViewModel:32}}static{this.styles=H}static{this.sketchViewModelMap=new Map}static getSketchViewModel(t){if(!this.sketchViewModelMap.has(t)){let e=this.#a(t,V);e&&this.sketchViewModelMap.set(t,new O({view:t,layer:e}))}return this.sketchViewModelMap.get(t)??null}static#a(t,e){if(!t?.map)return null;let i=t.map.findLayerById(e);if(!i){let r=new R({id:e,listMode:"hide",title:e});return P(t,r),r}return i}static removeSketchGraphicsLayer(t){if(t?.map){let e=t.map.findLayerById(V);e&&t.map.remove(e),this.sketchViewModelMap.delete(t)}}#i;get sketchViewModel(){return this.view?q.getSketchViewModel(this.view):null}async destroy(){try{this.#r()}finally{await this.manager.destroy()}}async load(){j()||await B()}willUpdate(t){t.has("filterLayers")&&this.#o()}#t(t,e){this.error=e,l(t,this,e),this.arcgisError.emit()}#s(t){let{traceLocations:e,view:i}=this;t.spatialProperties.flagGraphic&&i&&i.graphics.remove(t.spatialProperties.flagGraphic),e?.remove(t)}#o(){if(!this.sketchViewModel)return;let t=new k;this.filterLayers?.forEach(e=>{C(e)?e.sublayers.forEach(i=>{t.add(new G({layer:i,enabled:!0}))}):t.add(new G({layer:e,enabled:!0}))}),this.sketchViewModel.snappingOptions={enabled:!1,featureSources:t}}#n(t,e){let i=t.clone(),r=i.spatialReference,s=e.spatialReference;if(!r||!s)return l("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let o=e;if(!r.equals(s)){let y=N(e,r);if(!y)return l("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;o=y}let n=U(i,o);if(n.isEmpty)return l("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=n.coordinate,c=a.x-.5,h=a.y-.5,d=a.x+.5,u=a.y+.5,f=new D({hasZ:!1,hasM:!0,paths:[[[c,h],[d,u]]],spatialReference:i.spatialReference}),g=A(i,f);if(g.length>0){let y=L(i,{unit:"feet"}),w;return g[0].paths[0][0][0]===i.paths[0][0][0]?w=L(g[0],{unit:"feet"}):g.length>1?w=L(g[1],{unit:"feet"}):w=0,w/y}return l("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get#c(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async#l(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){l("error",this,"Cannot add trace location."),e||l("error",this,m("sketchViewModel")),t||l("error",this,m("view"));return}if(this.beforeMapInteraction){this._isSelectWaiting=!0;try{await this.beforeMapInteraction()}finally{this._isSelectWaiting=!1}}await this.#e(t,e)}async#e(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this.#i?.remove(),this.#i=e.on("create",i=>this.#h(i,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}#h(t,e,i){if(t.state==="complete"&&t.graphic){i.layer.remove(t.graphic),this.#p(t,e,i);return}t.state==="cancel"&&(this.#r(),this.arcgisTraceLocationSelectEnd.emit())}async#p(t,e,i){let{utilityNetwork:r}=this,{graphic:s}=t;if(!r){l("error",this,m("utilityNetwork")),this.#r(),this.arcgisTraceLocationSelectEnd.emit();return}if(s?.geometry?.type!=="point"){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let o=s.geometry,n=e.toScreen(o);if(!n){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let a=(await e.hitTest(n,{include:this.filterLayers})).results.filter(c=>c.type==="graphic"&&c?.layer&&c.graphic);if(!a.length){this.#t("info",this._messages.errors.noHitResult),this.#e(e,i);return}this.#r(),await this.#d(a,o,e)?this.arcgisTraceLocationSelectEnd.emit():this.#e(e,i)}#r(){let{view:t,sketchViewModel:e}=this;if(!t){l("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this.#i?.remove(),this.#i=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async#d(t,e,i){if(!t.length)return this.#t("error",this._messages.errors.noHitResult),!1;let r=t[0].graphic;if(this.afterMapInteraction){let o=t.map(n=>{let a=n,c=a.graphic;return c.origin=a.layer,c.sourceLayer=a.layer,c});try{r=await this.afterMapInteraction(o)}catch{r=null}}if(!r)return l("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this.#u(r);return s?await this.#g(s,e,i):(this.#t("error",this._messages.errors.missingAttributes),this.arcgisTraceLocationSelectEnd.emit(),!0)}async#u(t){let e=(v(t.layer),t.layer),i=e.geometryType===null,r=e.fieldsIndex?.get("assetgroup")??!1,s=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",o=e.fieldsIndex?.get("assettype")??!1,n=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),c=t.getObjectId(),h=r?!!t.getAttribute(s):!0,d=o?!!t.getAttribute(n):!0,u=!!t.geometry;if(a&&c&&h&&d&&(u||i))return t;let f=e.createQuery();return f.objectIds=[c],(await e.queryFeatures(f)).features[0]||null}async#g(t,e,i){let{traceLocations:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#m(t,e);if(!n)return this.#t("error",this._messages.errors.errorGeneratingTraceLocationDetails),!1;let a=r?.filter(h=>h.spatialProperties.mapGraphic?.getGlobalId()===s)??[];if(a.length>0){if(o!=="polyline")return this.#t("warn",this._messages.errors.duplicateTraceLocationDetails),!1;if(a.some(h=>Math.abs(h.traceLocation.percentAlong-n.traceLocation.percentAlong)<=this.spatialTolerance))return this.#t("warn",this._messages.errors.duplicateTraceLocationDetailsWithinTolerance),!1}let c=this.#y(t,e,i);return c?(n.spatialProperties.flagGraphic=c,r?.add(n),!0):(this.#t("warn",this._messages.errors.errorAdding),!1)}async#m(t,e){let{traceLocationType:i,utilityNetwork:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#f(t);if(o==="point"||o==="polygon"){let a=r?.getTerminalConfiguration(t),c=a?a.terminals[0].id:1;return{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,terminalId:c}),flagProperties:{title:n,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([c]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(o==="polyline"){let a=this.#n(t.geometry,e);return a<0?(l("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,percentAlong:a}),flagProperties:{title:n,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!o){let a=_(t.layer)?t.layer.parent:t.layer,c=a&&this.#c.includes(a.layerId),h=r?.getTerminalConfiguration(t),d=h?h.terminals[0].id:c?-1:1,u=c?.5:-1;return{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,terminalId:d,percentAlong:u}),flagProperties:{title:n,expanded:!1,terminalConfiguration:h??void 0,selectedTerminals:h?new Set([d]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async#f(t){let e=(v(t.layer),t.layer);return("getFeatureTitle"in e?await e.getFeatureTitle(t):null)||t.getObjectId()?.toString()||this._messages.unknown}#y(t,e,i){let r=t.geometry?t.geometry.type==="point"?t.geometry:e:null,s=this.#w(),o=new F({geometry:r,symbol:s,attributes:t.attributes});return i.graphics.add(o),o}#w(){let{traceLocationType:t}=this,e=[244,21,21,.6],i=[21,244,21,.6];return t==="stopping-point"?new $({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new $({color:e,style:"square",size:12,outline:{color:e,width:0}}):new $({color:i,style:"circle",size:12,outline:{color:i,width:0}})}#b(){let{view:t,traceLocations:e}=this;e?.forEach(i=>{i.spatialProperties.flagGraphic&&t&&t.graphics.remove(i.spatialProperties.flagGraphic)}),e?.removeAll()}#v(t,e){let{flagProperties:i}=t,{selectedTerminals:r}=i,{name:s,id:o}=e,n=r?.has(o)??!1;return p`<calcite-label layout=inline><calcite-checkbox .value=${o} .checked=${n} @calciteCheckboxChange=${a=>{a.target.checked?r?.add(o):r?.delete(o),this.requestUpdate()}}></calcite-checkbox>${s}</calcite-label>`}#k(){return p`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#L(t){let{traceLocation:e}=t;return p`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${e.isFilterBarrier} @calciteSwitchChange=${i=>{e.isFilterBarrier=i.target.checked}}></calcite-switch></div></calcite-label>`}#x(t){let{flagProperties:e}=t,{terminalConfiguration:i,selectedTerminals:r}=e,s=t.traceLocation.type==="barrier",o=i&&i.terminals.length>0&&r?.size===0;return p`<calcite-action .icon=${e.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{e.expanded=!e.expanded,this.requestUpdate()}}></calcite-action>${o&&p`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${e.expanded&&p`<div class="terminals" slot=content-bottom>${s&&this.#L(t)||""}${i&&this.#$(t)||""}${o&&this.#k()||""}</div>`||""}`}#$(t){let{flagProperties:e}=t,{terminalConfiguration:i}=e;if(!i)return l("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=i.terminals;return r.length?r.length===1?[]:r.map(s=>this.#v(t,s)):(l("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#T(t){let{flagProperties:e}=t,{terminalConfiguration:i,expanded:r,title:s}=e,o=i&&i.id!==0,n=t.traceLocation.type==="barrier",a=o||n,c=i?.name??void 0;return p`<calcite-list-item .label=${s} .description=${c} .value=${s} .expanded=${r}>${a?this.#x(t):p`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#s(t)}></calcite-action></calcite-list-item>`}#M(t){if(!t.length)return null;let{traceLocationType:e}=this,i=t.map(s=>this.#T(s)).toArray(),r=W(this._messages.labels.list,{type:e});return p`<div><calcite-list interaction-mode=static selection-mode=none .label=${r}>${i}</calcite-list></div>`}#I(){let{traceLocationType:t,_messages:e,traceLocations:i,heading:r}=this,s=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,o=r??s.heading,n=s.description,a=s.buttonText;return p`<calcite-block .heading=${o} .label=${o} expanded .description=${n}>${i?.length?p`<calcite-button slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this.#b()}>${e.buttons.clear}</calcite-button>${this.#M(i)}`:null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this.#l()}>${a}</calcite-button></div></calcite-block>`}render(){return this.#I()}};S("arcgis-utility-network-trace-locations",T);return T},"core/Collection","geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","layers/GraphicsLayer","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol","widgets/Sketch/SketchViewModel","views/interactive/snapping/FeatureSnappingLayerSource","intl",a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{b as Z}from"./AL3PLZEE.js";import{a as y}from"./IJFW6VBP.js";import{a as Y}from"./FH3WFF5O.js";import{a as f}from"./6J3KSMFG.js";import g from"./BZOKZ5VZ.js";import"./WJQUE4DR.js";import e from"./TLHMWWF5.js";import{a as Q}from"./7SMRFGKB.js";import d from"./HJBIPLFN.js";import c from"./WDPSGA7O.js";import b from"./AY4NJZW6.js";import{d as N,h as j}from"./KMWQECU7.js";import"./IE4EOH76.js";import a from"./6VQ5DE6L.js";import"./FIZMK7GS.js";import"./GX5EDFB2.js";import{E as U,F,O as H,P as w,Q as S,R as z,X as P,_ as q,a as K,b as u,e as k,y as W}from"./KGYTRKZZ.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{substitute:ne},le,ae,{watch:m,on:re,whenOnce:ce},he,{getOrCreateMapValue:ie,createReactiveMap:de},pe,{property:h,subclass:ge},{ignoreAbortErrors:C},ue,me,,,,v,X,{f:J}])=>{var ve=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],ye=new Set(ve);function ee(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Ce=K`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}`,be={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},fe={selectionTools:{defaultPriority:y.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:y.High,groupKind:"actions"},createTools:{defaultPriority:y.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:y.Medium,groupKind:"split-button",overflowLabel:"action"},settings:{defaultPriority:y.Max,groupKind:"more-button",overflowLabel:"action"},geometrySimplification:{defaultPriority:y.Default,groupKind:"actions"}},Te=500,we=1e3;function Se({getLoading:i,setEffectiveLoading:e}){let t,o;function s(){clearTimeout(o),o=void 0}function c(l){t=l?Date.now():void 0,e(l)}function p(l,g){if(l<=0){c(g);return}o=setTimeout(()=>{s(),c(g)},l)}c(i());let d=m(i,l=>{s(),l?p(Te,!0):p(t==null?0:we-(Date.now()-t),!1)},{sync:!0});return Y(()=>{d.remove(),s()})}var Ee=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,r=(i,e,t,o)=>{for(var s=o>1?void 0:o?_e(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(s=(o?p(e,t,s):p(s))||s);return o&&s&&Ee(e,t,s),s},a=class extends pe{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new ue,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new me({persistSelection:!1}),this.addHandles([m(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),Se({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),m(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),m(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{i.length&&this.update(i)}),m(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),re(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),m(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,c=this._activeCustomToolOptions,p=c||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],d=i.rootPlugins,l=p?.map(n=>({active:n===c,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===c?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(c&&d)return[...this._pluginsToActions(d),...l];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...l];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:be[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...l]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",c=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&c.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let p=e.selectionTools;p["rectangle-selection"]&&c.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),p["lasso-selection"]&&c.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let d=o?.get("selection-toolbar");return d&&c.push(...this._customActionsToSketchActions(d)),c}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await C(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await C((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await ce(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)ie(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await C(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),C(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):C(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,C(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};r([h()],a.prototype,"_isEffectiveRenderStateFrozen",1);r([h()],a.prototype,"_effectiveGeometrySimplificationInProgress",2);r([h()],a.prototype,"_state",1);r([h()],a.prototype,"_customToolOptions",2);r([h()],a.prototype,"_activeCustomToolOptions",2);r([h()],a.prototype,"_customActions",2);r([h()],a.prototype,"selectionViewModel",2);r([h()],a.prototype,"_activeSelectionTool",1);r([h()],a.prototype,"_activePluginUniqueIds",1);r([h()],a.prototype,"_createToolActions",1);r([h()],a.prototype,"_shouldShowBackButton",1);r([h()],a.prototype,"_selectionToolActions",1);r([h()],a.prototype,"_settingsActions",1);r([h()],a.prototype,"_activeTool",1);r([h()],a.prototype,"_selectionCommands",1);r([h()],a.prototype,"_selectionSetActions",1);r([h()],a.prototype,"_undoRedoActions",1);r([h()],a.prototype,"sketchViewModel",2);r([h()],a.prototype,"visibleElements",2);r([h()],a.prototype,"view",2);r([h()],a.prototype,"settingsPopoverOpen",2);r([h()],a.prototype,"availableCreateTools",2);r([h()],a.prototype,"state",1);r([h()],a.prototype,"activeTool",1);r([h()],a.prototype,"activePluginIds",1);r([h()],a.prototype,"groupedActions",1);a=r([ge("components.sketch.SketchComponentViewModel")],a);var O=class extends H{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==U.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return k}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),k}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||J(()=>t(e),{timeout:16})})}},te=F(O),Me=X(i=>new he({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new ae({text:"hello world"}),useLegacyCreateTools:!1})),A=class extends z{constructor(){super(),this.#t=new a,this.#o=w(),this.#s=w(),this._defaultGraphicsLayer=null,this._messages=Q(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=de(),this.viewModel=Me(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.arcgisCreate=v(()=>this.viewModel,"create"),this.arcgisDelete=v(()=>this.viewModel,"delete"),this.arcgisDuplicate=v(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=j()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=W(),this.arcgisRedo=v(()=>this.viewModel,"redo"),this.arcgisUndo=v(()=>this.viewModel,"undo"),this.arcgisUpdate=v(()=>this.viewModel,"update"),N(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[m(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),m(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),m(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),m(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),m(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:1,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32}}static{this.styles=Ce}#t;get#e(){return this.#t.visibleElements}#i;#o;#s;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot;return this.#i??(ye.has(e)?e:Z.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async redo(){this.viewModel.redo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async undo(){this.#t.sketchViewModel?.undo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new le({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:c,relativePosition:p,_contextualToolLocation:d}=this,l=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return u`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${c} .relativePosition=${p} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${S(this.#o)}>${f({hidden:!l?.visible||d!=="inline",children:this._renderActionGroup(l)})}${g.map(n=>this._renderActionGroup(n))}${f({hidden:!l?.visible||d!=="inline-end",children:this._renderActionGroup(l)})}</arcgis-toolbar>${f({hidden:!l?.visible||d!=="separate",children:u`<arcgis-toolbar>${this._renderActionGroup(l)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${f({hidden:this.hideSettingsMenu,children:u`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1} .view=${this.view??void 0}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:c,useViewOptions:p,view:d,viewModel:l}=this;return u`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${p||s} .directionMode=${l.valueOptions.directionMode} .labelsEnabled=${l.labelOptions.enabled} .tooltipsEnabled=${l.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:T,directionMode:E}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=E;break;case"tooltipsEnabled":b.tooltipOptions.enabled=T;break}}}></arcgis-sketch-tooltip-controls>${!p&&!o?u`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${d} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${l.snappingOptions} .showHeader=${c} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:c,overflowLabel:p}=fe[o],d=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,l=t.map(n=>this._renderCommand(n)),g=ee(`more.${p}`,this._messages);switch(c){case"more-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-more-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-split-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return u`<arcgis-toolbar-group .priority=${d}>${l}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:c,icon:p,disabled:d,id:l,kind:g,labelKey:n,labelParameters:T,loading:E,tooltipKey:b,iconFlipRTL:L,onClick:G,refKey:$,textEnabled:R,renderAsAction:oe}){let{_messages:V,_refMap:se,layout:x}=this,_=ee(n,V),M=_===void 0?n:T?ne(_,T):_,I=V?.[b]??M,D=$?ie(se,$,w):this.#s,B={afterCreate:t,afterRemoved:o,afterUpdate:s};return oe?u`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${d} .icon=${p} .iconFlipRtl=${L} id=${l??P} .kind=${g} .loading=${E} .labelText=${x==="horizontal"?M:""} .textEnabled=${R} .tooltipText=${x==="horizontal"&&R?"":I} @arcgisToolbarItemSelected=${G} ${te(B)} ${S(D)}></arcgis-toolbar-action>`:u`<arcgis-toolbar-item .active=${e} .disabled=${d} .icon=${p} id=${l??P} .iconFlipRtl=${L} .labelText=${M} .tooltipText=${I} @arcgisItemSelected=${G} ${te(B)} ${S(D)}></arcgis-toolbar-item>`}};q("arcgis-sketch",A);return A},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,g)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as Z}from"./
|
|
3
|
-
({value})`,m=i.new(o,{labelText:c}),u=d.series.push(s.new(o,{name:n,valueField:b,categoryField:w,tooltip:m}));u.ticks.template.set("forceHidden",!0),u.labels.template.set("forceHidden",!0),u.slices.template.states.create("active",{shiftRadius:l}),this._customizeChartTooltip(m),u.slices.template.setAll({ariaLabel:c,focusable:!0,templateField:"columnSettings"}),u.data.setAll(t),u.appear(this._getChartSeriesAnimationMS()),d.appear(this._getChartAnimationMS()),d.root.dom.classList.toggle("chart-rendered",!0)}_getMinSeriesValue(e){let t=0;return e.forEach(i=>t=Math.min(i.value,t)),t}async _createColumnChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,ColumnSeries:p}]=await Promise.all([import("./
|
|
2
|
+
import{a as Z}from"./2FW4S3D6.js";import b from"./OZVJTOTJ.js";import a from"./HU57LQOA.js";import{b as W,c as J,d as Q}from"./366GLQ5R.js";import{e as H,f as O}from"./KMWQECU7.js";import"./IE4EOH76.js";import"./FIZMK7GS.js";import{h as D}from"./GX5EDFB2.js";import{Q as E,R as U,X as M,_ as B,a as P,b as I}from"./KGYTRKZZ.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{getColorsFromRenderer:oe},{substitute:le},{watch:ce},de,ee,{renderingSanitizer:te},,{f:C,g:j,h:V,i:G,j:K,k:q,m:L,o:F,p:z,q:R}])=>{var he=P`.container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.container .pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.container .pagination-button:hover,.container .pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.item-text{margin-inline-end:var(--calcite-spacing-xs)}.pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.pagination:only-child{margin-inline-start:auto}.pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.item-container{flex:0 1 auto;width:100%}.item-container img{max-width:100%}.item-container img[src$=".SVG"],.item-container img[src$=".svg"]{width:100%}.chart{width:100%;height:155px}`;function k(S){if(!C(S))return null;let[e,t]=S.split("/").slice(1);return{layerId:e,fieldName:t}}var X=15,w="category",b="value",ue="rgba(50, 50, 50, 1)",me=250,pe=500,fe=200,N=class extends U{constructor(){super(...arguments),this._direction=O(),this._prefersReducedMotion=H("(prefers-reduced-motion)"),this.activeMediaInfoIndex=0,this.chartAnimationDisabled=!1,this.headingLevel=2}static{this.properties={_refreshIntervalInfo:16,messages:0,values:0,expressionValues:0,activeMediaInfoIndex:9,chartAnimationDisabled:5,activeMediaInfo:32,formattedMediaInfos:32,description:1,fieldInfoMap:0,layer:0,mediaInfos:0,popupTemplate:0,relatedInfos:0,formattedValues:0,heading:1,graphic:0,formattedMediaInfoCount:32,headingLevel:9}}static{this.styles=he}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}setActiveMedia(e){this._setContentElementMedia(e)}loaded(){this.manager.onLifecycle(()=>[ce(()=>[this.activeMediaInfo,this.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),{initial:!0}),{remove:()=>this._clearMediaRefreshTimer()}])}_setContentElementMedia(e){let{formattedMediaInfoCount:t}=this,i=(e+t)%t;this.activeMediaInfoIndex=i}_pageContentElementMedia(e){let{activeMediaInfoIndex:t}=this,i=t+e;this._setContentElementMedia(i)}_formatMediaInfos(){let{mediaInfos:e,layer:t}=this,i=this.values??{},a=this.formattedValues??{},s=this.fieldInfoMap??new Map,r=this.expressionValues??{};return e?.map(o=>{let n=o?.clone();if(!n)return null;if(n.title=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.title}),n.caption=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.caption}),n.altText=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.altText}),n.type==="image"){if(!n.value)return null;let l=n.value;return this._setImageValue({value:l,formattedValues:a,layer:t}),l.sourceURL?n:void 0}if(n.type==="pie-chart"||n.type==="line-chart"||n.type==="column-chart"||n.type==="bar-chart"){if(!n.value)return null;let l=n.value;return this._setChartValue({value:l,chartType:n.type,values:i,expressionValues:r,formattedValues:a,layer:t}),n}return null}).filter(o=>o!=null)??[]}_setImageValue(e){let t=this.fieldInfoMap??new Map,{value:i,formattedValues:a,layer:s}=e,{linkURL:r,sourceURL:o}=i;if(o){let n=z(o,s);i.sourceURL=F({formattedValues:a,template:n,fieldInfoMap:t})}if(r){let n=z(r,s);i.linkURL=F({formattedValues:a,template:n,fieldInfoMap:t})}}_setChartValue(e){let{value:t,values:i,expressionValues:a,formattedValues:s,chartType:r,layer:o}=e,{popupTemplate:n,relatedInfos:l}=this,{fields:p,normalizeField:d}=t,c=o;if(t.fields=G(p,c),d&&(t.normalizeField=V(d,c)),!p.some(u=>!!(s[u]!=null||C(u)&&l?.size)))return;let m=n?.fieldInfos??[];t.series=[],p.forEach((u,g)=>{let h=t.colors?.[g];if(C(u)){t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:m,fieldName:u,formattedValues:s,expressionValues:a,chartType:r,value:t,color:h})];return}let v=this._getChartOption({value:t,values:i,chartType:r,formattedValues:s,expressionValues:a,fieldName:u,fieldInfos:m,color:h});t.series.push(v)})}_getRelatedChartInfos(e){let{fieldInfos:t,fieldName:i,formattedValues:a,chartType:s,value:r,color:o,expressionValues:n}=e,l=[],p=k(i),d=p&&this.relatedInfos?.get(p.layerId);if(!d)return l;let{relatedFeatures:c,relation:m}=d;if(!m||!c)return l;let{cardinality:u}=m;return c.forEach(g=>{let h=g.attributes;h&&Object.keys(h).forEach(v=>{v===p.fieldName&&l.push(this._getChartOption({value:r,values:h,formattedValues:a,expressionValues:n,fieldName:i,chartType:s,relatedFieldName:v,hasMultipleRelatedFeatures:c?.length>1,fieldInfos:t,color:o}))})}),u&&(u==="one-to-many"||u==="many-to-many")?l:[l[0]]}_getTooltip({label:e,value:t,chartType:i}){return i==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){let{value:t,values:i,formattedValues:a,expressionValues:s,fieldName:r,relatedFieldName:o,fieldInfos:n,chartType:l,hasMultipleRelatedFeatures:p,color:d}=e,{layer:c,graphic:m}=this,u=this.fieldInfoMap??new Map,{normalizeField:g,tooltipField:h}=t,v=g?C(g)?i[k(g).fieldName]:i[g]:null,x=K(r)&&s?.[r]!==void 0?s[r]:o&&i[o]!==void 0?i[o]:i[r]!==void 0?i[r]:a[r],_=x===void 0?null:x&&v&&typeof x=="number"&&typeof v=="number"?x/v:x,f=q(n,r),y=V(r,c),A=(h&&a[h]!==void 0?a[h]:L({fieldInfo:f||new de({fieldName:y}),expressionInfos:this.popupTemplate?.expressionInfos,graphic:m,layer:c}))??"",ie=a[y]??"",Y=_!=null?typeof _=="number"?_:Number(_):null;if(C(r)){let T=u.get(r.toLowerCase()),ae=h?u.get(h.toLowerCase()):null,re=T?.fieldName??r,$=p&&h?k(h).fieldName:ae?.fieldName??h,ne=(p&&$?i[$]:a[$]??(T&&L({fieldInfo:T,layer:c,graphic:m}))??T?.fieldName??o)??"",se=(p&&o?i[o]:a[re])??"";return new ee({fieldName:r,tooltip:this._getTooltip({label:ne,value:se,chartType:l}),color:d,value:Y})}return new ee({fieldName:r,tooltip:this._getTooltip({label:A,value:ie,chartType:l}),color:d,value:Y})}_getRenderer(){let e=this.layer;return this.graphic?.isAggregate&&e?.featureReduction&&"renderer"in e.featureReduction?e.featureReduction.renderer:e?.renderer}async _getSeriesColors(e){let{color:t}=await import("./NWCS3WJE.js"),i=new Map;return e.forEach(a=>{a.color&&i.set(a,t(a.color.toCss(!0)))}),i}async _getRendererColors(){let{color:e}=await import("./NWCS3WJE.js"),t=new Map,i=this._getRenderer(),a="default";if(!i)return t;let s=await oe(i);return s.delete(a),Array.from(s.values()).every(r=>r?.length===1)&&Array.from(s.keys()).forEach(r=>{let o=s.get(r)?.[0]?.toCss(!0);o&&t.set(r,e(o))}),t}async _createChart(e){let{activeMediaInfo:t}=this;if(!e||!t)return;let{createRoot:i}=await import("./QAZ4W6K3.js").then(m=>m.default.then(e=>({createRoot:e}))),a=await i(e);this._chartRoot=a,this._renderChart({mediaInfo:t,root:a})}_handleMediaKeydown(e){let{key:t}=e;e.defaultPrevented||W(e)||(Q(t,this._direction,{horizontalOnly:!0})&&(e.stopPropagation(),e.preventDefault(),this.previous()),J(t,this._direction,{horizontalOnly:!0})&&(e.stopPropagation(),e.preventDefault(),this.next()))}_canAnimateChart(){return!this.chartAnimationDisabled&&!this._prefersReducedMotion}_getChartAnimationMS(){return this._canAnimateChart()?me:0}_getChartSeriesAnimationMS(){return this._canAnimateChart()?pe:0}async _customizeChartTooltip(e,t="horizontal"){let{color:i}=await import("./NWCS3WJE.js");e.setAll({pointerOrientation:t}),e.get("background")?.setAll({stroke:i(ue)}),e.label.setAll({direction:this._direction,oversizedBehavior:"wrap",maxWidth:fe})}async _createPieChart(e,t){let[{Tooltip:i},{PieChart:a,PieSeries:s}]=await Promise.all([import("./NWCS3WJE.js"),import("./Y56CR5OU.js")]),{mediaInfo:r,root:o}=e,{title:n}=r,l=5,p=r?.altText||r?.title||"",d=o.container.children.push(a.new(o,{role:"figure",ariaLabel:p,focusable:!0,paddingBottom:l,paddingTop:l,paddingLeft:l,paddingRight:l})),c=`{category}: {valuePercentTotal.formatNumber('0.00')}%
|
|
3
|
+
({value})`,m=i.new(o,{labelText:c}),u=d.series.push(s.new(o,{name:n,valueField:b,categoryField:w,tooltip:m}));u.ticks.template.set("forceHidden",!0),u.labels.template.set("forceHidden",!0),u.slices.template.states.create("active",{shiftRadius:l}),this._customizeChartTooltip(m),u.slices.template.setAll({ariaLabel:c,focusable:!0,templateField:"columnSettings"}),u.data.setAll(t),u.appear(this._getChartSeriesAnimationMS()),d.appear(this._getChartAnimationMS()),d.root.dom.classList.toggle("chart-rendered",!0)}_getMinSeriesValue(e){let t=0;return e.forEach(i=>t=Math.min(i.value,t)),t}async _createColumnChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,ColumnSeries:p}]=await Promise.all([import("./NWCS3WJE.js"),import("./6RE5RWYP.js")]),{mediaInfo:d,root:c}=t,{value:m,title:u}=d,{_direction:g}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let h=e.xAxes.push(r.new(c,{renderer:o.new(c,{inversed:g==="rtl"}),categoryField:w}));h.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.yAxes.push(l.new(c,{renderer:n.new(c,{inside:!1}),min:this._getMinSeriesValue(m.series)}));v.get("renderer").labels.template.setAll({direction:g});let x="{categoryX}",_=a.new(c,{labelText:x}),f=e.series.push(p.new(c,{name:u,xAxis:h,yAxis:v,valueYField:b,categoryXField:w,tooltip:_}));this._customizeChartTooltip(_),f.columns.template.setAll({ariaLabel:x,focusable:!0,templateField:"columnSettings"}),m.series.length>X&&e.set("scrollbarX",s.new(c,{orientation:"horizontal"})),h.data.setAll(i),f.data.setAll(i),f.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createBarChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,ColumnSeries:p}]=await Promise.all([import("./NWCS3WJE.js"),import("./6RE5RWYP.js")]),{mediaInfo:d,root:c}=t,{value:m,title:u}=d,{_direction:g}=this;e.setAll({wheelX:"panY",wheelY:"zoomY"});let h=e.yAxes.push(r.new(c,{renderer:n.new(c,{inversed:!0}),categoryField:w}));h.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.xAxes.push(l.new(c,{renderer:o.new(c,{inside:!1,inversed:g==="rtl"}),min:this._getMinSeriesValue(m.series)}));v.get("renderer").labels.template.setAll({direction:g});let x="{categoryY}",_=a.new(c,{labelText:x}),f=e.series.push(p.new(c,{name:u,xAxis:v,yAxis:h,valueXField:b,categoryYField:w,tooltip:_}));this._customizeChartTooltip(_,"vertical"),f.columns.template.setAll({ariaLabel:x,focusable:!0,templateField:"columnSettings"}),m.series.length>X&&e.set("scrollbarY",s.new(c,{orientation:"vertical"})),h.data.setAll(i),f.data.setAll(i),f.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createLineChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,LineSeries:p}]=await Promise.all([import("./NWCS3WJE.js"),import("./6RE5RWYP.js")]),{root:d,mediaInfo:c}=t,{value:m,title:u}=c,{_direction:g}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let h=e.xAxes.push(r.new(d,{renderer:o.new(d,{inversed:g==="rtl"}),categoryField:w}));h.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.yAxes.push(l.new(d,{renderer:n.new(d,{inside:!1}),min:this._getMinSeriesValue(m.series)}));v.get("renderer").labels.template.setAll({direction:g});let x="{categoryX}",_=i[0]?.lineSettings?.stroke,f=a.new(d,{getFillFromSprite:!_,labelText:x});_&&f.get("background")?.setAll({fill:_});let y=e.series.push(p.new(d,{name:u,xAxis:h,yAxis:v,valueYField:b,categoryXField:w,tooltip:f}));y.strokes.template.setAll({templateField:"lineSettings"}),this._customizeChartTooltip(f,"vertical"),m.series.length>X&&e.set("scrollbarX",s.new(d,{orientation:"horizontal"})),h.data.setAll(i),y.data.setAll(i),y.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createXYChart(e,t){let{XYChart:i,XYCursor:a}=await import("./6RE5RWYP.js"),{root:s,mediaInfo:r}=e,{type:o}=r,n=r?.altText||r?.title||"",l=s.container.children.push(i.new(s,{role:"figure",ariaLabel:n,focusable:!0,panX:!0,panY:!0}));l.set("cursor",a.new(s,{})),o==="column-chart"&&await this._createColumnChart(l,e,t),o==="bar-chart"&&await this._createBarChart(l,e,t),o==="line-chart"&&await this._createLineChart(l,e,t),l.root.dom.classList.toggle("chart-rendered",!0)}_clearMediaRefreshTimer(){let{_refreshTimer:e}=this;e&&(clearTimeout(e),this._refreshTimer=void 0)}_updateMediaInfoTimestamp(e){let t=Date.now();this._refreshIntervalInfo={timestamp:t,sourceURL:e&&this._getImageSource(e,t)}}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();let{activeMediaInfo:e}=this;e?.type==="image"&&e.refreshInterval>0&&this._setRefreshTimeout(e)}_setRefreshTimeout(e){let{refreshInterval:t,value:i}=e,a=t*6e4;this._updateMediaInfoTimestamp(i.sourceURL);let s=window.setInterval(()=>{this._updateMediaInfoTimestamp(i.sourceURL)},a);this._refreshTimer=s}_getImageSource(e,t){let i=e.includes("?")?"&":"?",[a,s=""]=e.split("#");return`${a}${i}timestamp=${t}${s?"#":""}${s}`}_updateChartElement(e){this._chartRoot?.dispose(),this._chartRoot=void 0,e&&this._createChart(e)}render(){return I`<div class="root" @keydown=${this._handleMediaKeydown}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`}_renderMedia(){let{formattedMediaInfoCount:e,activeMediaInfoIndex:t}=this,i=this._renderMediaText();return e?I`<div class="container">${this._renderMediaInfo()}<div class="item-navigation">${i}${e>1?I`<div class="pagination">${this._renderMediaPageButton("previous")}<span class="pagination-text">${le(this.messages?.pageText??"",{index:t+1,total:e})}</span>${this._renderMediaPageButton("next")}</div>`:null}</div></div>`:null}_renderMediaText(){let{activeMediaInfo:e}=this;if(!e)return null;let t=e?.title?I`<div class="item-title" .innerHTML=${te.sanitize(e.title)??""}></div>`:null,i=e?.caption?I`<div class="item-caption" .innerHTML=${te.sanitize(e.caption)??""}></div>`:null;return t||i?I`<div class="item-text">${t}${i}</div>`:null}_renderImageMediaInfo(e){if(!e.value)return null;let{_refreshIntervalInfo:t}=this,{value:i,refreshInterval:a,altText:s,title:r}=e,{sourceURL:o,linkURL:n}=i,l=j(n??void 0)?"_blank":"_self",p=l==="_blank"?"noreferrer":"",d=a?t:null,c=d?d.sourceURL:o,m=I`<img alt=${(s||r)??M} src=${c??void 0??M}>`;return(n?I`<a href=${n??M} rel=${p??M} target=${l??M} title=${r??M}>${m}</a>`:null)??m}_renderChartMediaInfo(e){let{activeMediaInfoIndex:t,formattedMediaInfoCount:i}=this;return Z(`media-${e.type}-${t}-${i}`,I`<div class="chart" ${E(this._updateChartElement)}></div>`)}_renderMediaInfoType(){let{activeMediaInfo:e}=this;return e?e.type==="image"?this._renderImageMediaInfo(e):e.type.includes("chart")?this._renderChartMediaInfo(e):null:null}_renderMediaInfo(){let{activeMediaInfo:e}=this;return e?I`<div class="item-container"><div class="item">${this._renderMediaInfoType()}</div></div>`:null}_renderMediaPageButton(e){if(this.formattedMediaInfoCount<2)return null;let t=e==="previous",i=t?this.messages?.previous??"":this.messages?.next??"",a=t?"chevron-left":"chevron-right",s=t?this.previous:this.next;return I`<button .ariaLabel=${i} class="pagination-button" @click=${s} tabindex=0 title=${i??M} type=button><calcite-icon flip-rtl class="pagination-icon" .icon=${a} scale=s></calcite-icon></button>`}async _renderChart(e){let{root:t,mediaInfo:i}=e,{value:a,type:s}=i,[{default:r},{default:o},{default:n},{esriChartColorSet:l},{ColorSet:p,Theme:d}]=await Promise.all([import("./SWWJXGPV.js"),import("./ARHQMHUP.js"),import("./I2VQOWJL.js"),import("./OS3TKP63.js"),import("./NWCS3WJE.js")]),c=d.new(t);c.rule("ColorSet").set("colors",l),c.rule("ColorSet").set("reuse",!0);let m=[n.new(t),c];D(this.el)==="dark"&&m.push(o.new(t)),this._canAnimateChart()&&m.push(r.new(t)),t.setThemes(m);let u=await this._getRendererColors(),g=await this._getSeriesColors(a.series),h=p.new(t,{}),v=g.get(a.series[0]),x=v?{lineSettings:{stroke:v}}:void 0,_=a.series.map((f,y)=>{let A=g.get(f)||u.get(f.fieldName)||h.getIndex(y);return{[w]:f.tooltip,[b]:f.value,columnSettings:{fill:A,stroke:A},...x}}).filter(f=>s==="pie-chart"?f.value!=null&&f.value>0:!0);s==="pie-chart"?this._createPieChart(e,_):this._createXYChart(e,_)}};B("arcgis-feature-media",N);return N},"renderers/support/utils","intl","core/reactiveUtils","popup/FieldInfo","popup/content/support/ChartMediaInfoValueSeries","applications/Components/sanitizerUtils",a,b)
|