@arcgis/map-components 5.1.0-next.94 → 5.1.0-next.96
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/{3UIUMMLG.js → 275TABLZ.js} +1 -1
- package/dist/cdn/{ZL3CSJU4.js → 2J42FBYN.js} +1 -1
- package/dist/cdn/{R3WL7KY6.js → 2QLVX5KR.js} +1 -1
- package/dist/cdn/{XNZFVKZY.js → 2T6C5D5Z.js} +1 -1
- package/dist/cdn/{MCGKNN23.js → 2W4ZASDU.js} +1 -1
- package/dist/cdn/{YCIA6ESZ.js → 2XA5VKFB.js} +1 -1
- package/dist/cdn/{BVHIMMQZ.js → 37ET5N3U.js} +1 -1
- package/dist/cdn/{ZYPAW3ZI.js → 3F4KXFH5.js} +1 -1
- package/dist/cdn/{ZJN6UUR4.js → 3FTGWMYP.js} +1 -1
- package/dist/cdn/{PP3ZDADO.js → 3LF64HWX.js} +1 -1
- package/dist/cdn/{N3PGBI5P.js → 3NT2PSQ5.js} +1 -1
- package/dist/cdn/{UIWXAYUP.js → 3W5LJ4AP.js} +1 -1
- package/dist/cdn/{5E6PE65A.js → 3YYUV3EO.js} +1 -1
- package/dist/cdn/{UOT2FCSQ.js → 4EK7PZ5M.js} +1 -1
- package/dist/cdn/{X55JXSXH.js → 4GN7X3VA.js} +1 -1
- package/dist/cdn/4GPGAR5Y.js +2 -0
- package/dist/cdn/{SMUFWMGG.js → 4KGZNDVB.js} +1 -1
- package/dist/cdn/{57WQVTC2.js → 554D54AD.js} +1 -1
- package/dist/cdn/{XISJTOJV.js → 56GDMEZE.js} +1 -1
- package/dist/cdn/{XWD2WUJV.js → 57A2O7CZ.js} +1 -1
- package/dist/cdn/{BDASTP3D.js → 5A2T35G4.js} +1 -1
- package/dist/cdn/{K26WS5WS.js → 5AY6FU6R.js} +1 -1
- package/dist/cdn/{K2RCQ3S4.js → 5FEFHUMM.js} +1 -1
- package/dist/cdn/{SKUO7YQD.js → 64QHDCUF.js} +1 -1
- package/dist/cdn/{RCLKTOCN.js → 66O32Z3S.js} +1 -1
- package/dist/cdn/{3M3HVWX5.js → 67GDORQV.js} +1 -1
- package/dist/cdn/{ATTV2K2S.js → 6G6PWW2Q.js} +1 -1
- package/dist/cdn/{VZZFI5LH.js → 6LADJTTX.js} +1 -1
- package/dist/cdn/{XU2LZ5PF.js → 6NSYCKDQ.js} +1 -1
- package/dist/cdn/{5S64MDG5.js → 6OWWUSS7.js} +1 -1
- package/dist/cdn/{SN73654V.js → 6QUBJ7E2.js} +1 -1
- package/dist/cdn/{UEAC3ZX7.js → 6UF3I2GQ.js} +1 -1
- package/dist/cdn/{K2DPIVNY.js → 77IMVUYA.js} +1 -1
- package/dist/cdn/{3UA2XDDN.js → 7FBS2YPD.js} +1 -1
- package/dist/cdn/{MJLYS4D6.js → 7NYRLFG6.js} +1 -1
- package/dist/cdn/{SUE6ZIET.js → 7QN5ETG3.js} +1 -1
- package/dist/cdn/{6Z5ORZ2B.js → 7RY6UVUF.js} +1 -1
- package/dist/cdn/{4ZDRPGCJ.js → AG4XP7WD.js} +1 -1
- package/dist/cdn/{46JVFHXL.js → AQL3HNTJ.js} +1 -1
- package/dist/cdn/{VUNTFVQY.js → B2COUWK5.js} +1 -1
- package/dist/cdn/{KSQRNB2Z.js → B3QD4K6Y.js} +1 -1
- package/dist/cdn/{2DMGAVGS.js → BLPEMTBM.js} +1 -1
- package/dist/cdn/{SLO3RS7Y.js → BPXRWL4P.js} +1 -1
- package/dist/cdn/{T473T3LG.js → BXJHAM43.js} +1 -1
- package/dist/cdn/{XEZGNV3L.js → BXTQCGGX.js} +1 -1
- package/dist/cdn/{K7H4JUDB.js → C3WBF7XC.js} +1 -1
- package/dist/cdn/{LJT6EZCS.js → CDNHMAUM.js} +1 -1
- package/dist/cdn/{FJY5EA2S.js → CH27MJRF.js} +1 -1
- package/dist/cdn/CJCVY3SM.js +2 -0
- package/dist/cdn/{UNC2Y424.js → CNTHGHGO.js} +1 -1
- package/dist/cdn/{DAO42MDC.js → COI7GRVR.js} +1 -1
- package/dist/cdn/{SVK455WD.js → CUJU6FOW.js} +1 -1
- package/dist/cdn/{IFIOUBWT.js → CWMB6MYT.js} +1 -1
- package/dist/cdn/{WDCYTHR5.js → D2DQYFAE.js} +1 -1
- package/dist/cdn/{A2SFKWAL.js → D6SKLDR6.js} +1 -1
- package/dist/cdn/{5IDKVBD3.js → DHD7IQMK.js} +1 -1
- package/dist/cdn/{4HIVPFCR.js → DPP7TVRA.js} +1 -1
- package/dist/cdn/{D5W4MV7H.js → DRYESB57.js} +1 -1
- package/dist/cdn/{GDHU6FB7.js → DU33A6QD.js} +1 -1
- package/dist/cdn/{VHG7HRXL.js → E5WBI5X5.js} +1 -1
- package/dist/cdn/{WRWNOEUN.js → EBDZKNBH.js} +1 -1
- package/dist/cdn/{Q6IMZMFI.js → EBK4AZBW.js} +1 -1
- package/dist/cdn/{RQ5AH3UV.js → EY6456J2.js} +1 -1
- package/dist/cdn/{JITTSIXQ.js → EZKQ32UE.js} +1 -1
- package/dist/cdn/{PUGRPSE4.js → F5GS7T5H.js} +1 -1
- package/dist/cdn/{EMYF3NHI.js → F6TM5JIA.js} +1 -1
- package/dist/cdn/{KRWHYRGY.js → F74Q35TC.js} +1 -1
- package/dist/cdn/{MAQOMR7D.js → F7XZ67WM.js} +1 -1
- package/dist/cdn/FBUEM62L.js +2 -0
- package/dist/cdn/{NJP6OBBN.js → FE4VLVCJ.js} +1 -1
- package/dist/cdn/{2H2DMVMF.js → FULJ4HOF.js} +1 -1
- package/dist/cdn/{QHSIMKPK.js → G3XG6IQK.js} +1 -1
- package/dist/cdn/{7I55Z3PZ.js → GA25H7TO.js} +1 -1
- package/dist/cdn/{64Q47BWH.js → GBIE6ESD.js} +1 -1
- package/dist/cdn/{2YB6S64G.js → GEIIUKCL.js} +1 -1
- package/dist/cdn/{AWTAJAUI.js → GFSXVSH3.js} +1 -1
- package/dist/cdn/{ZTFE5VIJ.js → GGX2U62R.js} +1 -1
- package/dist/cdn/{LNKHXXYR.js → GRJZ5XH4.js} +1 -1
- package/dist/cdn/{62G4GYVI.js → GUATS4JC.js} +1 -1
- package/dist/cdn/{QTDWVVZ3.js → GX4HWNBP.js} +1 -1
- package/dist/cdn/{VSKUN6HM.js → GZNXU67E.js} +1 -1
- package/dist/cdn/{T5CHGHFY.js → H2EFMN5O.js} +1 -1
- package/dist/cdn/{4GX6K4QV.js → HFMTROLW.js} +1 -1
- package/dist/cdn/{UOOE5336.js → HMWOHSHV.js} +1 -1
- package/dist/cdn/{6GMOTVSO.js → HTGRCL67.js} +1 -1
- package/dist/cdn/HTQ2BHR7.js +2 -0
- package/dist/cdn/{WLTOQWZB.js → HYBXTQYR.js} +1 -1
- package/dist/cdn/{3VGXWPQK.js → HYYJAFDF.js} +1 -1
- package/dist/cdn/{QXRPFQIH.js → IDOO4DBA.js} +1 -1
- package/dist/cdn/{QD6FFBIJ.js → ILZF34TP.js} +1 -1
- package/dist/cdn/{HQNCVN73.js → INM3C2CU.js} +1 -1
- package/dist/cdn/{6V7YOGR4.js → IRJXJAHW.js} +1 -1
- package/dist/cdn/{V4RMKJUW.js → IU2X5JKR.js} +1 -1
- package/dist/cdn/{AHAEFJXW.js → IXPKHDYQ.js} +1 -1
- package/dist/cdn/{65B3NTSL.js → J4QI2XAM.js} +1 -1
- package/dist/cdn/{W7KCNEQL.js → J76FNJLA.js} +1 -1
- package/dist/cdn/{ZCQAWUVA.js → JBJJSR3A.js} +1 -1
- package/dist/cdn/{XO5ETTHD.js → JJEA2LYD.js} +1 -1
- package/dist/cdn/{CKGSEXVO.js → JQVJUBK3.js} +1 -1
- package/dist/cdn/{Q4Z25HZZ.js → JZI5HE35.js} +1 -1
- package/dist/cdn/{3N5NYUQ4.js → K4X6NI5B.js} +1 -1
- package/dist/cdn/{MAFF3ZL7.js → K6KU3WDF.js} +1 -1
- package/dist/cdn/{ZXJWPP5J.js → KELOCYUX.js} +1 -1
- package/dist/cdn/{IA5VGN4S.js → KLRWWLVV.js} +1 -1
- package/dist/cdn/{Z5ZYDPSC.js → KQ5SR3R6.js} +1 -1
- package/dist/cdn/{FGZC6Q4U.js → L2GFOEBX.js} +1 -1
- package/dist/cdn/{J6K64FAM.js → LFJPCLIF.js} +1 -1
- package/dist/cdn/{F2T4T7QR.js → LHLMIMWB.js} +1 -1
- package/dist/cdn/{H54OQ5CH.js → LWOHSXSL.js} +1 -1
- package/dist/cdn/{FF62HZ2F.js → MBFZTFOF.js} +1 -1
- package/dist/cdn/{266WI6FR.js → MDICXONO.js} +1 -1
- package/dist/cdn/{EQEMVJRY.js → MFWRNJRB.js} +1 -1
- package/dist/cdn/{RVLC2U3T.js → MQSMJ752.js} +1 -1
- package/dist/cdn/{D5R7F5KN.js → MSQZ5Y7W.js} +1 -1
- package/dist/cdn/MTKZBIHD.js +4 -0
- package/dist/cdn/{7DQQFAVI.js → MZ5UTKUW.js} +1 -1
- package/dist/cdn/{SN7YZQCO.js → N47EYOIP.js} +1 -1
- package/dist/cdn/{SZCDFVDJ.js → N7AIF75B.js} +1 -1
- package/dist/cdn/{AJ7PACLN.js → NAUELW7F.js} +1 -1
- package/dist/cdn/{B647LFEA.js → NHKVX7X4.js} +1 -1
- package/dist/cdn/{PAUCVKJP.js → NLOTYLYD.js} +1 -1
- package/dist/cdn/{MUR25U2W.js → NOKOBGO5.js} +1 -1
- package/dist/cdn/{SOMOHX4W.js → NPYJ33ZZ.js} +1 -1
- package/dist/cdn/{XYLQAWUN.js → NQUJODZJ.js} +1 -1
- package/dist/cdn/{RBZSSI26.js → O3B4KGIM.js} +1 -1
- package/dist/cdn/{636SD5YI.js → O6IQDA6U.js} +1 -1
- package/dist/cdn/{E2DUJ3PM.js → O773XPW4.js} +1 -1
- package/dist/cdn/{UZXNZF42.js → OMILTOU6.js} +1 -1
- package/dist/cdn/{YAWKQTTR.js → OP2AQIQD.js} +1 -1
- package/dist/cdn/{6PHYFOHH.js → OTRHRG4K.js} +1 -1
- package/dist/cdn/{66YJK5TN.js → OU6CKOXX.js} +1 -1
- package/dist/cdn/{DSAWFUXK.js → OV3M75AU.js} +1 -1
- package/dist/cdn/{W27GXCEC.js → P5W4IZQ7.js} +1 -1
- package/dist/cdn/{GSIO2ZPC.js → PE2SL2JT.js} +1 -1
- package/dist/cdn/PEO4YFUQ.js +2 -0
- package/dist/cdn/{D4ZQOMOH.js → PQYAQLWZ.js} +1 -1
- package/dist/cdn/{GFNS6DWD.js → PYJOYJLJ.js} +1 -1
- package/dist/cdn/{XUJGETHA.js → QFYJVLO7.js} +1 -1
- package/dist/cdn/{372AEJRW.js → QRL36FQF.js} +1 -1
- package/dist/cdn/{C2LLHKD7.js → QS27JYF4.js} +1 -1
- package/dist/cdn/{R7XZ64RD.js → QXNQMZ2O.js} +1 -1
- package/dist/cdn/{7HI6SDQK.js → RDVUWMJL.js} +1 -1
- package/dist/cdn/{POZYAP5U.js → RGXDYVNJ.js} +1 -1
- package/dist/cdn/{3DLPQGFS.js → RTMPZHFG.js} +1 -1
- package/dist/cdn/{S2IGQZN6.js → S35VRA2Q.js} +1 -1
- package/dist/cdn/S6EIVRDH.js +2 -0
- package/dist/cdn/{GPYPWFDI.js → SANMFYL5.js} +1 -1
- package/dist/cdn/{47GZDSBT.js → SBWTPIZH.js} +1 -1
- package/dist/cdn/{HCAJWILB.js → SNDZKJDW.js} +1 -1
- package/dist/cdn/{G5JRWW4N.js → T6N6SMRC.js} +1 -1
- package/dist/cdn/{DMYT2NGU.js → TCBAZRSC.js} +1 -1
- package/dist/cdn/{STAEZF3H.js → TLW6EUMH.js} +1 -1
- package/dist/cdn/{O3Q5EADH.js → TOSMQANL.js} +1 -1
- package/dist/cdn/{X43QDFKP.js → TRS3RTXT.js} +1 -1
- package/dist/cdn/{QG5A5CAV.js → TT745B6J.js} +1 -1
- package/dist/cdn/{JWHIGOCO.js → TTVGFF4P.js} +1 -1
- package/dist/cdn/{QMR3YL46.js → U2OEVO7O.js} +1 -1
- package/dist/cdn/{77GYZHXQ.js → UGMECJB5.js} +1 -1
- package/dist/cdn/{ZRWZ5OQK.js → UGNN7NUH.js} +1 -1
- package/dist/cdn/{TIP4QUW7.js → ULVRY7SN.js} +1 -1
- package/dist/cdn/{VWOPI2DX.js → UWOBBUXS.js} +1 -1
- package/dist/cdn/{VEGB3Z7Z.js → UZIWAJUS.js} +1 -1
- package/dist/cdn/{5NSQZMF6.js → V4UDDYXG.js} +1 -1
- package/dist/cdn/{TBGGJL5S.js → V6CAMCLS.js} +1 -1
- package/dist/cdn/{IJULQXYC.js → VCOJNSMR.js} +1 -1
- package/dist/cdn/{JTQEQIQN.js → VDTXVUTI.js} +1 -1
- package/dist/cdn/{WMQ4C7GL.js → VH5VIBP2.js} +1 -1
- package/dist/cdn/{7GN54I5I.js → VHM4V7EX.js} +1 -1
- package/dist/cdn/{M4KJ5Q7J.js → VJ7LVGB3.js} +1 -1
- package/dist/cdn/{FHPU53JE.js → VJBFX2TR.js} +1 -1
- package/dist/cdn/{54JWVQJQ.js → VROG3646.js} +1 -1
- package/dist/cdn/{T5K2XFNK.js → VSFDIVO3.js} +1 -1
- package/dist/cdn/{NABXYQM6.js → VSYFDRLW.js} +1 -1
- package/dist/cdn/{A35RPLAM.js → VTARIBL6.js} +1 -1
- package/dist/cdn/VTGHFASH.js +2 -0
- package/dist/cdn/{H4LUQZPZ.js → W2QDJLIF.js} +1 -1
- package/dist/cdn/{5POIGC3F.js → W46HOMCK.js} +1 -1
- package/dist/cdn/WBMQWJPR.js +2 -0
- package/dist/cdn/WGPAZAL4.js +2 -0
- package/dist/cdn/{XHYVTSLE.js → WP7WCBSK.js} +1 -1
- package/dist/cdn/{FBSEFCKA.js → WQKSM3ZG.js} +1 -1
- package/dist/cdn/{UYUEVVYI.js → WUMHMR2U.js} +1 -1
- package/dist/cdn/{KHM4SNZ7.js → WYA63JWJ.js} +1 -1
- package/dist/cdn/{3YI6JMPT.js → WZD56JKD.js} +1 -1
- package/dist/cdn/XHK6DBBU.js +2 -0
- package/dist/cdn/{TH3C6YTI.js → XIN3BIAA.js} +1 -1
- package/dist/cdn/XLCCCQDQ.js +2 -0
- package/dist/cdn/{QATUESST.js → YGXWGRVN.js} +1 -1
- package/dist/cdn/{BZPFKOQX.js → YHUPCIHU.js} +1 -1
- package/dist/cdn/YK6AXMWY.js +2 -0
- package/dist/cdn/{PG52GEPB.js → YKZWVFIT.js} +1 -1
- package/dist/cdn/{6BD74YDF.js → YNGHIC64.js} +1 -1
- package/dist/cdn/{6IJGTPXG.js → YSTT74WA.js} +1 -1
- package/dist/cdn/{RXSGPYBA.js → YTEF6GVH.js} +1 -1
- package/dist/cdn/{6P5CNXUG.js → YXFBW6ZD.js} +1 -1
- package/dist/cdn/{WW6DO3EN.js → Z4ZJOKKX.js} +1 -1
- package/dist/cdn/{3KMSE2II.js → Z63CNYOU.js} +1 -1
- package/dist/cdn/{MVULTZL6.js → ZYG4YNMK.js} +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-item-indicator.js +1 -1
- package/dist/chunks/layer-list-utils.js +13 -13
- package/dist/chunks/slots.js +3 -3
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +120 -43
- package/dist/components/arcgis-coordinate-conversion/customElement.js +240 -184
- package/dist/components/arcgis-coordinate-conversion/index.js +11 -3
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -7
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +0 -2
- package/dist/components/arcgis-features/customElement.d.ts +15 -1
- package/dist/components/arcgis-features/customElement.js +53 -53
- package/dist/components/arcgis-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-new/customElement.js +3 -3
- package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +76 -66
- package/dist/components/arcgis-map/customElement.d.ts +5 -1
- package/dist/components/arcgis-popup/customElement.d.ts +15 -1
- package/dist/components/arcgis-popup/customElement.js +31 -31
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +1 -0
- package/dist/components/arcgis-presentation/customElement.d.ts +8 -0
- package/dist/components/arcgis-presentation/customElement.js +37 -26
- package/dist/components/arcgis-presentation-captions/customElement.js +5 -5
- package/dist/components/arcgis-scene/customElement.d.ts +4 -0
- package/dist/components/arcgis-slice/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +2 -2
- package/dist/components/arcgis-unit-radio-button-group/customElement.js +39 -0
- package/dist/components/arcgis-unit-radio-button-group/index.js +4 -0
- package/dist/components/arcgis-unit-select/customElement.js +8 -8
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +3 -3
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -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/loader.js +6 -5
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +5 -5
- package/dist/cdn/2XVIUHZR.js +0 -2
- package/dist/cdn/3TNGLWSM.js +0 -2
- package/dist/cdn/4PGPOFFE.js +0 -2
- package/dist/cdn/63PP72KA.js +0 -2
- package/dist/cdn/7W2JQJJR.js +0 -2
- package/dist/cdn/DDD7772O.js +0 -4
- package/dist/cdn/I4CEHX7Z.js +0 -2
- package/dist/cdn/LS5SUX5K.js +0 -2
- package/dist/cdn/NSN5TBKU.js +0 -2
- package/dist/cdn/OHF7YMVK.js +0 -2
- package/dist/cdn/R2L7EANK.js +0 -2
- package/dist/cdn/UOZXW7WA.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as T}from"./GA25H7TO.js";import{a as P}from"./HMWOHSHV.js";import{c as E}from"./S4I3X6AX.js";import e from"./3LF64HWX.js";import{a as M}from"./UGNN7NUH.js";import d from"./YSTT74WA.js";import b from"./4GN7X3VA.js";import{h as z}from"./JBJJSR3A.js";import"./6G6PWW2Q.js";import a from"./CWMB6MYT.js";import"./VSFDIVO3.js";import{M as w,N as g,O as k,U as C,a as $,b as n,f as c,q as f,x as m}from"./MTKZBIHD.js";import"./3TTFCHAA.js";export default $arcgis.t(([{convertUnit:F},{getDefaultUnitForView:D},{hasDisplayProperties:x},I,U,_,O,,,,S])=>{var A=$`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.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}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);width:var(--arcgis-coordinate-conversion-width, 320px);--calcite-block-content-space: var(--arcgis-coordinate-conversion-block-content-space)}.root{background-color:var(--calcite-color-foreground-1)}calcite-alert{--calcite-alert-offset-size: var(--calcite-spacing-sm)}calcite-notice{padding:var(--calcite-spacing-sm)}calcite-block{--calcite-block-content-space: 0;margin:0}.go-to-input-holder{display:flex}.go-to-input-holder calcite-input{flex:1}.conversions-block{border:none;padding-bottom:var(--calcite-spacing-sm)}.live-mode-block{--calcite-label-margin-bottom: 0;padding:var(--calcite-spacing-sm)}.live-mode-label{width:fit-content;margin-inline-start:auto}.font-size-small{font-size:var(--calcite-font-size--2)}.format-radio-label{display:flex;flex-direction:column}.radio-label{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size--2)}.radio-description{font-weight:var(--calcite-font-weight-light);font-size:var(--calcite-font-size--3)}.unit-select-panel{--calcite-panel-space: var(--calcite-spacing-md)}.popover-footer{padding:var(--calcite-spacing-sm);border-top:1px solid var(--calcite-color-border-3)}.input-form-group{display:flex;flex-direction:column;align-items:flex-start;margin:var(--calcite-spacing-sm)}.input-form-group-footer{margin:var(--calcite-spacing-sm)}.add-conversion-trigger{margin-inline-start:var(--calcite-spacing-sm);margin-block-start:var(--calcite-spacing-sm)}.input-form-group calcite-label{width:100%}.settings{padding:var(--calcite-spacing-md);display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1);max-width:var(--arcgis-coordinate-conversion-width, 320px)}.settings calcite-label{width:100%}.settings calcite-input{flex:1}.settings-form-group-horizontal{display:flex}`,B=2500,V=1e3,q=new I({x:0,y:0}),l={copy:"copy",gear:"gear",goTo:"zoom-to-object",lightbulb:"lightbulb",plus:"plus",refresh:"refresh",warning:"exclamation-mark-triangle"},j=S(U),y=class extends k{constructor(){super(...arguments),this._alertTimer=-1,this._conversionPopoverMap=new Map,this._coordinateInput=w(),this.messages=M({name:"coordinate-conversion",blocking:!0}),this._multipleConversionsDisabled=!1,this.quantityFormatter=new O,this.viewModel=j(this),this.clearAlertTimeout=()=>{window.clearTimeout(this._alertTimer),this.alertProperties={...this.alertProperties,open:!1}},this.onElevationPopoverTriggerMount=e=>{this._elevationPopoverTrigger=e},this.onFormatPopoverTriggerMount=e=>{this._formatsPopoverTrigger=e},this.stopPropagation=e=>{e.stopPropagation()},this.handleFormatComboboxChange=e=>{let o=e.target.selectedItems[0].value,i=this.formats.find(t=>t.name===o);if(i){let t=this.activeConversion??this.conversions.at(0)??null,r=new _({format:i});t&&this.transferConversionPopoverState(t,r),this.conversions.splice(0,1,r),this.activeConversion=r,this.setPreviewConversion()}},this.alertProperties={kind:"brand",message:null,title:null,open:!1},this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.invalidInput=!1,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.conversions=this.viewModel.conversions,this.currentLocation=this.viewModel.currentLocation,this.expanded=!1,this.formats=this.viewModel.formats,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=4,this.hideCaptureButton=!1,this.hideCaptureSection=!1,this.hideInputButton=!1,this.hideInputSection=!1,this.hideExpandButton=!1,this.hideSettingsButton=!1,this.icon="coordinate-system",this.label=this.messages.componentLabel,this.locationSymbol=this.viewModel.locationSymbol,this.mode=this.viewModel.mode,this.orientation="auto",this.removeLeadingZeros=this.viewModel.removeLeadingZeros,this.showElevation=!1,this.state=this.viewModel.state,this.storageType=this.viewModel.storageType,this.arcgisConversionChange=m(),this.arcgisPropertyChange=z()("currentLocation","state","mode","verticalUnit"),this.arcgisReady=m(),this.renderConversionView=(e,o)=>{let{messages:i}=this,{format:t}=e,r=t?.label??"",s=o===0,a=e.displayCoordinate&&this.mode!=="live",d=this.getConversionPopoverState(e),p=i.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??""),b=this.hideSettingsButton?null:n`<calcite-action data-format=${e.format?.name??c} .icon=${l.gear} .label=${p} @click=${h=>this.openConversionSettings(e,h)} @keydown=${this.stopPropagation} scale=s slot=actions-end .text=${p} title=${p??c} ${g(d.triggerRef)}></calcite-action>`,v=s&&!e.displayCoordinate?i.noLocation:e.displayCoordinate;return P(e?.format?.name,n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(v)} .iconEnd=${a?l.copy:void 0} @click=${()=>a&&this.copyToClipboard(e.displayCoordinate)} @keydown=${h=>{h.key==="Enter"&&a&&this.copyToClipboard(e.displayCoordinate)}} role=button scale=s title=${v??void 0??c}>${b}</calcite-list-item>`)},this.renderLiveModeSection=()=>{let{messages:e}=this,o=this.mode==="idle"?this.viewModel.mode:this.mode;return n`<calcite-block class="live-mode-block" .disabled=${this.disabled} expanded .headingLevel=${this.headingLevel} .label=${e.captureMode} scale=s><calcite-label alignment=end class="live-mode-label" layout=inline scale=s>${e.captureMode}<calcite-switch .checked=${o==="capture"} @calciteSwitchChange=${this.toggleMode}></calcite-switch></calcite-label></calcite-block>`}}static{this.properties={activeConversion:16,alertProperties:16,defaultMeasurementSystem:16,disabled:16,displayedElevation:16,elevationPopoverOpen:16,formatsPopoverOpen:16,invalidInput:16,inputFormat:16,previewConversion:16,view:0,autoDestroyDisabled:5,conversions:0,currentLocation:0,expanded:7,formats:0,goToOverride:0,headingLevel:9,hideCaptureButton:7,hideCaptureSection:7,hideInputButton:7,hideInputSection:7,hideExpandButton:7,hideSettingsButton:7,icon:1,ignoreCoordinatePrecision:5,label:1,locationSymbol:0,mode:3,multipleConversionsDisabled:7,orientation:3,referenceElement:1,removeLeadingZeros:7,showElevation:7,state:32,storageDisabled:7,storageType:1,verticalUnit:1}}static{this.styles=A}get defaultMeasurementSystem(){return this.view?.ready?D(this.view):"metric"}get disabled(){return this.viewModel.state==="disabled"}get displayedElevation(){let{currentLocation:e,verticalUnit:o,messages:i}=this;if(e?.z===void 0||e.z===null)return i.noElevation;{let t=F(e.z,"meters",o);return this.quantityFormatter.formatLength({value:t,unit:o,type:"length"},2,"plural")}}get ignoreCoordinatePrecision(){return!this.viewModel.calculateCoordinatePrecision}set ignoreCoordinatePrecision(e){this.viewModel.calculateCoordinatePrecision=!e}get multipleConversionsDisabled(){return this._multipleConversionsDisabled}set multipleConversionsDisabled(e){e&&(this.expanded=!1,this.conversions.splice(1,this.conversions.length-1)),this._multipleConversionsDisabled=e}get storageDisabled(){return!this.viewModel.storageEnabled}set storageDisabled(e){this.viewModel.storageEnabled=!e}get verticalUnit(){return this._userVerticalUnit??(this.defaultMeasurementSystem==="imperial"?"feet":"meters")}set verticalUnit(e){this._userVerticalUnit=e}async destroy(){this.clearAlertTimeout(),await this.manager.destroy()}async reverseConvert(e,o){return await this.viewModel.reverseConvert(e,o)}load(){this.manager.onLifecycle(()=>[this.conversions.on("change",()=>this.arcgisConversionChange.emit())])}willUpdate(e){if(e.has("currentLocation")){let o=e.get("currentLocation");(this.mode==="capture"||this.mode==="idle")&&!this.currentLocation?.equals(o)&&this.viewModel.setLocation(this.currentLocation)}}closeAllPopovers(){for(let e of this._conversionPopoverMap.values())e.open=!1;this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.requestUpdate()}async copyToClipboard(e){e&&(e=e.replace(//gu,""),await navigator.clipboard.writeText(e),this.showAlertMessage(null,this.messages.copySuccessMessage,"success",V))}findSettingsFormat(){return this.activeConversion?.format||this.conversions.reduceRight((e,o)=>{let i=o.format;return i&&x(i)?i:e},null)||this.formats.find(e=>x(e))||null}getConversionPopoverState(e){let o=this._conversionPopoverMap.get(e);return o||(o={triggerRef:w(),open:!1},this._conversionPopoverMap.set(e,o)),o}getDisplayCoordinate(e){return e?e.includes(",")?e.replace(/, /gu,",\xA0\u200B").replace(/ /gu,"\xA0"):e:"\u200B"}getFormatDescription(e){let{messages:o}=this;return o.formatDescriptions[e.name]??o.formatDescriptions.custom}getId(e){return`arcgis-coordinate-conversion-${e}`}handleElevationSettingsTrigger(e){let o=!this.elevationPopoverOpen;this.closeAllPopovers(),this.elevationPopoverOpen=o,e.stopPropagation()}openConversionSettings(e,o){let i=this.getConversionPopoverState(e),t=this.activeConversion!==e||!i.open;this.closeAllPopovers(),i.open=t,this._conversionPopoverTrigger=t?o.currentTarget:void 0,this.activeConversion=t?e:void 0,t&&this.setPreviewConversion(),this.requestUpdate(),o.stopPropagation()}async processUserInput(e,o,i){let{viewModel:t}=this;try{let r=await this._reverseConvert(e,o);if(r)i&&t.goToLocation(r).catch(s=>{f(this)(s),this.showAlertMessage(null,this.messages.locationOffBasemap,"warning")});else throw new Error("failed to process user input");this.mode==="capture"?t.resume():this.mode="capture",this.invalidInput=!1,this.currentLocation=r??void 0,t.setLocation(r)}catch(r){f(this)(r),this.showAlertMessage(null,this.messages.invalidCoordinate,"warning"),this.invalidInput=!0}}async processUserKeyboardInput(e){let{key:o}=e;if(o==="Enter"){let i=this.inputFormat||this.conversions.at(0)?.format,t=this._coordinateInput.value?.value;if(!i||!t)return;await this.processUserInput(t,i,!0)}else this.invalidInput=!1}async processUserMouseInput(e){let o=this.inputFormat||this.conversions.at(0)?.format,i=this._coordinateInput.value?.value;!o||!i||await this.processUserInput(i,o,e)}async _reverseConvert(e,o){return await o.reverseConvert(e)}setDefaultPattern(e){e.stopPropagation();let o=this.findSettingsFormat();o?.defaultPattern&&(o.currentPattern=o.defaultPattern)}setInputFormat(e){let o=e.target.selectedOption.value;o!==null&&(this.inputFormat=o)}setPreviewConversion(){let e=this.findSettingsFormat(),o=this.viewModel;if(e){let i=this.conversions.find(t=>t.format===e);this.previewConversion=new _({format:e,position:{location:this.currentLocation,coordinate:i?.position?.coordinate}}),this.previewConversion.position?.coordinate||o.previewConversion(this.previewConversion,o.currentLocation??q)}}showAlertMessage(e,o,i,t=B){this.alertProperties={...this.alertProperties,title:e,message:o,kind:i,open:!0},window.clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout(()=>{this.alertProperties={...this.alertProperties,open:!1}},t)}toggleConversion(e){let o=e.target,i=this.formats.find(t=>t.name===o.getAttribute("data-format"));if(i){let t=this.conversions.find(r=>r.format===i);if(t){if(this.conversions.length>1){let r=this._conversionPopoverMap.get(t);r&&(r.open=!1,this._conversionPopoverMap.delete(t)),this.activeConversion===t&&(this.activeConversion=void 0),this.conversions.remove(t)}}else{let r=new _({format:i});this.conversions.add(r)}}}toggleMode(){this.mode=this.viewModel.mode==="live"?"capture":"live"}transferConversionPopoverState(e,o){let i=this.getConversionPopoverState(e),t=this.getConversionPopoverState(o);t.open=i.open,this._conversionPopoverMap.delete(e)}updateCurrentPattern(e){e.stopPropagation();let o=e.target,i=this.findSettingsFormat();i&&(i.currentPattern=o.value)}render(){let{headingLevel:e}=this,o=this.renderConversionPopover();return n`<calcite-panel class=root .headingLevel=${e} scale=s>${this.renderConversionsView()}${this.renderAlert()}</calcite-panel>${o}`}renderAlert(){let{messages:e}=this,{open:o,message:i,title:t,kind:r}=this.alertProperties;return n`<calcite-alert class="alert" .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} .open=${o} placement=top scale=s slot=alerts>${t?n`<div slot=title>${t}</div>`:null}${i?n`<div slot=message>${i}</div>`:null}</calcite-alert>`}renderConversionOptions(e,o){return e.map(i=>n`<calcite-option .label=${i.label.toUpperCase()} .selected=${i===o} .value=${i}>${i.label}</calcite-option>`)}renderConversionPopover(){let{activeConversion:e,messages:o}=this;if(!e)return null;let i=this.getConversionPopoverState(e),t=o.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??"");return this.renderPopover({content:this.renderSettingsView(),getPopoverOpenProperty:()=>i.open,heading:t,includeFooter:!0,label:t,placement:"left",setPopoverOpenProperty:r=>{i.open=r,r||(this._conversionPopoverTrigger=void 0,this.activeConversion=void 0),this.requestUpdate()},trigger:null,triggerElement:i.triggerRef.value??this._conversionPopoverTrigger??void 0})}renderConversionsView(){if(!this.conversions)return;let{messages:e,multipleConversionsDisabled:o}=this,i=(o?this.conversions.slice(0,1):this.conversions).map(this.renderConversionView).reverse(),t=this.showElevation?this.renderElevation():null,r=this.hideCaptureSection?null:this.renderLiveModeSection(),s=this.hideInputSection?null:this.renderCoordinateInputView(),a=this.multipleConversionsDisabled?null:this.renderFormatDropdown(),d=this.disabled?n`<calcite-notice .icon=${l.lightbulb} open width=full><div class="font-size-small" slot=message>${e.noBasemap}</div></calcite-notice>`:null;return n`<calcite-panel>${r}${d}${s}<calcite-block class="conversions-block" .disabled=${this.disabled} expanded .heading=${e.coordinates} .headingLevel=${this.headingLevel} scale=s><calcite-list interaction-mode=static .label=${e.coordinates} scale=s>${i}</calcite-list>${a}</calcite-block>${t}</calcite-panel>`}renderCoordinateInputView(){let{messages:e}=this,o=this.inputFormat??this.conversions.at(0)?.format,i=this.getId("coordinate-input"),t=this.renderConversionOptions(this.formats,o??void 0),r=n`<calcite-action .icon=${l.goTo} .label=${e.convertAndGoTo} @click=${()=>this.processUserMouseInput(!0)} @keydown=${this.stopPropagation} scale=s .text=${e.convertAndGoTo} title=${e.convertAndGoTo??c}></calcite-action>`;return n`<calcite-block collapsible .disabled=${this.disabled} .heading=${e.input} .headingLevel=${this.headingLevel} scale=s><div class="input-form-group"><calcite-label scale=s>${e.inputFormat}<calcite-select aria-controls=${i??c} class="input-select" .label=${e.inputFormat} @calciteSelectChange=${this.setInputFormat} scale=s>${t}</calcite-select></calcite-label><calcite-label scale=s>${e.inputCoordTitle}<div class="go-to-input-holder"><calcite-input class="coordinate-input" data-format=${o??c} id=${i??c} @keydown=${this.processUserKeyboardInput} .placeholder=${e.inputCoordTitle} required scale=s .status=${this.invalidInput?"invalid":"idle"} ${g(this._coordinateInput)}></calcite-input>${r}</div></calcite-label></div><div class="input-form-group-footer"><calcite-button appearance=outline kind=neutral @click=${()=>this.processUserMouseInput(!1)} type=button scale=s width=auto>${e.convert}</calcite-button></div></calcite-block>`}renderElevation(){let{messages:e}=this,o=this.displayedElevation??e.noElevation,i=this.hideSettingsButton?null:n`<calcite-action .icon=${l.gear} .label=${e.selectElevationUnit} @click=${this.handleElevationSettingsTrigger} @keydown=${this.stopPropagation} scale=s slot=actions-end .text=${e.selectElevationUnit} title=${e.selectElevationUnit??c} ${g(this.onElevationPopoverTriggerMount)}></calcite-action>`,t=this.hideSettingsButton?null:this.renderElevationSettingsDropdown(),r=this.currentLocation?.z!==void 0&&this.mode!=="live";return n`<calcite-block .disabled=${this.disabled} expanded .heading=${e.elevation} .headingLevel=${this.headingLevel} scale=s><calcite-list-item class="elevation-list-item" description=\u200B .iconEnd=${r?l.copy:void 0} .label=${o} @click=${()=>r&&this.copyToClipboard(o)} @keydown=${s=>{s.key==="Enter"&&r&&this.copyToClipboard(o)}} role=button scale=s tabindex=0 title=${o??c}>${i}</calcite-list-item>${t}</calcite-block>`}renderElevationSettingsDropdown(){let{messages:e}=this,o=n`<arcgis-unit-radio-button-group @arcgisUnitSelectChange=${i=>this.verticalUnit=i.detail} .options=${E} .name=${e.selectElevationUnit} scale=s .value=${this.verticalUnit}></arcgis-unit-radio-button-group>`;return this.renderPopover({content:o,closeOnEnter:!0,getPopoverOpenProperty:()=>this.elevationPopoverOpen,includeFooter:!1,label:e.selectElevationUnit,setPopoverOpenProperty:i=>this.elevationPopoverOpen=i,trigger:null,triggerElement:this._elevationPopoverTrigger})}renderFormatDropdown(){let{messages:e}=this,o=n`<calcite-list .label=${e.addConversion} scale=s selection-mode=multiple>${T(this.formats,t=>t,t=>{let r=!!this.conversions.find(a=>a.format===t),s=this.getFormatDescription(t);return n`<calcite-list-item data-format=${t.name??c} .description=${s} .disabled=${r&&this.conversions.length===1} .label=${t.label.toUpperCase()} @calciteListItemSelect=${this.toggleConversion} .selected=${r}></calcite-list-item>`})}</calcite-list>`,i=n`<calcite-button appearance=outline class="add-conversion-trigger" .iconStart=${l.plus} kind=neutral .label=${e.selectFormats} round scale=s ${g(this.onFormatPopoverTriggerMount)}>${e.selectFormats}</calcite-button>`;return this.renderPopover({content:o,includeFooter:!0,getPopoverOpenProperty:()=>this.formatsPopoverOpen,label:e.selectFormats,setPopoverOpenProperty:t=>this.formatsPopoverOpen=t,trigger:i,triggerElement:this._formatsPopoverTrigger})}renderPopover({content:e,closeOnEnter:o,heading:i,getPopoverOpenProperty:t,includeFooter:r,label:s,placement:a,setPopoverOpenProperty:d,slot:p,trigger:b,triggerDisabled:v,triggerElement:h}){let{messages:L}=this;return n`${b}${h?n`<calcite-popover auto-close .heading=${i} .headingLevel=${this.headingLevel} .label=${s} @calcitePopoverBeforeOpen=${()=>{d(!0)}} @calcitePopoverClose=${u=>{d(!1),u.stopPropagation()}} @keydown=${u=>{o&&(u.key==="Enter"||u.key===" ")&&d(!1)}} .open=${t()} .placement=${a??"auto"} .referenceElement=${h} scale=s slot=${p??c} .triggerDisabled=${v}>${e}${r?n`<div class="popover-footer"><calcite-button appearance=solid class="popover-done-button" kind=brand @click=${()=>d(!1)} scale=s width=full>${L.done}</calcite-button></div>`:null}</calcite-popover>`:null}`}renderSettingsView(){let{messages:e}=this,o=this.findSettingsFormat(),i=this.getId("pattern-input"),t=this.getId("preview-coordinate"),r=o?.currentPattern,s=this.multipleConversionsDisabled?this.renderSingleFormatDropdown():null;if(!o||!x(o))return n`<div class="settings"><calcite-label scale=s>${e.format}${s??n`<calcite-notice class="no-display-properties-notice" .icon=${l.warning} open scale=s><div class="font-size-small" slot=message>${e.noDisplayProperties}</div></calcite-notice>`}</calcite-label></div>`;let a=n`<calcite-action .icon=${l.refresh} .label=${e.defaultPattern} @click=${this.setDefaultPattern} scale=s .text=${e.defaultPattern} title=${e.defaultPattern??c}></calcite-action>`;return n`<div class="settings"><calcite-label scale=s>${e.format}${s}</calcite-label><calcite-label .for=${i} scale=s>${e.display}<div class="settings-form-group-horizontal"><calcite-input aria-controls=${t??c} class="pattern-input" id=${i??c} @calciteInputInput=${this.updateCurrentPattern} scale=s type=text .value=${r}></calcite-input>${a}</div></calcite-label><calcite-label scale=s>${e.preview}<calcite-input read-only scale=s type=text .value=${this.previewConversion?.displayCoordinate??void 0}></calcite-input></calcite-label></div>`}renderSingleFormatDropdown(){let{messages:e}=this;return n`<calcite-combobox clear-disabled .label=${e.selectFormat} @calciteComboboxChange=${this.handleFormatComboboxChange} scale=s selection-mode=single>${this.formats.map(o=>n`<calcite-combobox-item .description=${this.getFormatDescription(o)} .heading=${o.label.toUpperCase()} .selected=${!!this.conversions.find(i=>i.format===o)} .value=${o.name}></calcite-combobox-item>`)}</calcite-combobox>`}};C("arcgis-coordinate-conversion",y);return y},"applications/Components/unitUtils","applications/Components/getDefaultUnits","applications/Components/formatUtils","geometry/Point","widgets/CoordinateConversion/CoordinateConversionViewModel","widgets/CoordinateConversion/support/Conversion","applications/Components/QuantityFormatter",a,b,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as I}from"./MP6Z45SA.js";import a from"./R3NYK6BO.js";import{a as A}from"./UOOE5336.js";import{O as q,S as L,U as N,a as T,b as p}from"./DDD7772O.js";import"./3TTFCHAA.js";export default $arcgis.t(([{createReactiveMap:C,findUtilityNetwork:V,getOrCreateMapValue:Q},{stripHTML:S},f,{ignoreAbortErrors:$},{watch:k},D,B,P,x,G,{b:E,f:F}])=>{var O=T`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,M=100,j={assetGroup:"assetgroup",assetType:"assettype"},U="{00000000-0000-0000-0000-000000000000}",v=class extends q{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await $(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await $(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=I(this._queryController,M),this._queryFeatureCountDebounced=I(this._queryFeatureCountController,M),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=C(),this._associationViewModels=C(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=F(t)?t.parent:t;return V(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:r,associationTypes:l}=this;return o||t&&!a?"loading":i||r?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[k(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),k(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),k(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(L(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.heading} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let r=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(r)).reduce((l,c)=>l+c,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,r=Array.from(e.entries()).map(async([c,d])=>{let u=await this._findLayersBySourceId(c);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(r);let l=[];return await Promise.all(t.toArray().map(async c=>{let{fromNetworkElement:d,toNetworkElement:u}=c,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:c,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===U&&e.globalId===U){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,r=e.toNetworkElement,l=s(a,o),c=s(i,r);return l&&c&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(r=>!!e?.isUtilityLayer(r)&&r.layerId===a),o=s.allTables.filter(r=>!!e?.isUtilityLayer(r)&&r.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get(j.assetGroup),r=t.fieldsIndex.get(j.assetType),l=s!=null,c=a!=null,d=i?D.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&c?`(${r?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,r=t.getObjectId()?.toString();return o||r||""}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:r,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!r||!s||!i||!o)return;let c=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;c.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(c,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let r=F(e)?e.parent:e,l=new B({globalId:s,networkSourceId:i.getSourceIdByLayerId(r.layerId)}),c=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":c.add("attachment");break;case"container":case"content":c.add("containment");break;case"connectivity":c.add("connectivity"),c.add("junction-junction-connectivity"),c.add("junction-edge-from-connectivity"),c.add("junction-edge-midspan-connectivity"),c.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new P({elements:[l],types:Array.from(c)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),r=new x({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),{features:l}=await E(t,r,i);return l}_parseFeatureObjects(t,e){let s=C();t.forEach(a=>{let i=(a?.feature).sourceLayer;Q(s,i,()=>new f).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let r=this._associationFeatures.get(o);r?i.forEach(l=>{r.find(c=>this._matchesGlobalFeature(l,c))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let r=this._associationViewModels.get(o)||new f;i?.filter(Boolean).forEach((l,c)=>{if(!r.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;r.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},c)}}),this._associationViewModels.set(o,r)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${S(t.description)} .label=${S(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};N("arcgis-feature-utility-network-associations",v);return v},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/Query","popup/Feature",a)
|
|
2
|
+
import{a as I}from"./MP6Z45SA.js";import a from"./R3NYK6BO.js";import{a as A}from"./HMWOHSHV.js";import{O as q,S as L,U as N,a as T,b as p}from"./MTKZBIHD.js";import"./3TTFCHAA.js";export default $arcgis.t(([{createReactiveMap:C,findUtilityNetwork:V,getOrCreateMapValue:Q},{stripHTML:S},f,{ignoreAbortErrors:$},{watch:k},D,B,P,x,G,{b:E,f:F}])=>{var O=T`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,M=100,j={assetGroup:"assetgroup",assetType:"assettype"},U="{00000000-0000-0000-0000-000000000000}",v=class extends q{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await $(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await $(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=I(this._queryController,M),this._queryFeatureCountDebounced=I(this._queryFeatureCountController,M),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=C(),this._associationViewModels=C(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=F(t)?t.parent:t;return V(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:r,associationTypes:l}=this;return o||t&&!a?"loading":i||r?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[k(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),k(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),k(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(L(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.heading} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let r=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(r)).reduce((l,c)=>l+c,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,r=Array.from(e.entries()).map(async([c,d])=>{let u=await this._findLayersBySourceId(c);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(r);let l=[];return await Promise.all(t.toArray().map(async c=>{let{fromNetworkElement:d,toNetworkElement:u}=c,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:c,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===U&&e.globalId===U){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,r=e.toNetworkElement,l=s(a,o),c=s(i,r);return l&&c&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(r=>!!e?.isUtilityLayer(r)&&r.layerId===a),o=s.allTables.filter(r=>!!e?.isUtilityLayer(r)&&r.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get(j.assetGroup),r=t.fieldsIndex.get(j.assetType),l=s!=null,c=a!=null,d=i?D.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&c?`(${r?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,r=t.getObjectId()?.toString();return o||r||""}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:r,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!r||!s||!i||!o)return;let c=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;c.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(c,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let r=F(e)?e.parent:e,l=new B({globalId:s,networkSourceId:i.getSourceIdByLayerId(r.layerId)}),c=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":c.add("attachment");break;case"container":case"content":c.add("containment");break;case"connectivity":c.add("connectivity"),c.add("junction-junction-connectivity"),c.add("junction-edge-from-connectivity"),c.add("junction-edge-midspan-connectivity"),c.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new P({elements:[l],types:Array.from(c)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),r=new x({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),{features:l}=await E(t,r,i);return l}_parseFeatureObjects(t,e){let s=C();t.forEach(a=>{let i=(a?.feature).sourceLayer;Q(s,i,()=>new f).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let r=this._associationFeatures.get(o);r?i.forEach(l=>{r.find(c=>this._matchesGlobalFeature(l,c))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let r=this._associationViewModels.get(o)||new f;i?.filter(Boolean).forEach((l,c)=>{if(!r.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;r.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},c)}}),this._associationViewModels.set(o,r)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${S(t.description)} .label=${S(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};N("arcgis-feature-utility-network-associations",v);return v},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/Query","popup/Feature",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{O as l,U as a,b as i}from"./
|
|
2
|
+
import{O as l,U as a,b as i}from"./MTKZBIHD.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:u}])=>{var s=class extends l{static{this.properties={viewModel:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.templateOptions.customTextElements,()=>this.requestUpdate(),{initial:!0})])}render(){let e=this.viewModel.templateOptions.customTextElements;return e?i`<div>${e.map(r=>{let[t,c]=Object.entries(r)[0];return t==="date"?null:i`<calcite-label>${t}<calcite-input .value=${c??""} @calciteInputInput=${o=>{let n=e.find(m=>{let[p]=Object.entries(m)[0];return p===t});n&&(n[t]=o.target.value)}}></calcite-input></calcite-label>`})}</div>`:null}};a("arcgis-print-custom-text-elements",s);return s},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{O as r,U as a,b as i}from"./
|
|
2
|
+
import{O as r,U as a,b as i}from"./MTKZBIHD.js";import"./3TTFCHAA.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/5.1/LICENSE.txt */
|
|
2
|
+
import i from"./L2GFOEBX.js";import f from"./FULJ4HOF.js";import{a as E}from"./HMWOHSHV.js";import e from"./3LF64HWX.js";import{a as F}from"./UGNN7NUH.js";import"./54VXNFQ4.js";import d from"./YSTT74WA.js";import c from"./4GN7X3VA.js";import{f as P,h as $}from"./JBJJSR3A.js";import"./6G6PWW2Q.js";import a from"./CWMB6MYT.js";import{c as k}from"./VSFDIVO3.js";import{M as g,N as u,O as z,P as v,Q as D,U as A,a as M,b as h,x as b}from"./MTKZBIHD.js";import"./3TTFCHAA.js";export default $arcgis.t(([V,{stripHTML:B},{watch:p},I,,,,L,,N])=>{var R=M`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--arcgis-internal-popup-content-small-size: 280px;--arcgis-internal-popup-content-medium-size: 340px;--arcgis-internal-popup-content-large-size: 400px;--arcgis-internal-popup-content-x-large-size: 460px;--arcgis-internal-popup-content-min-size-y: 48px;--arcgis-internal-popup-pointer-size-half: calc(var(--arcgis-internal-popup-pointer-size) / 2);--arcgis-internal-popup-pointer-size-half-negative: calc(var(--arcgis-internal-popup-pointer-size-half) * -1)}.root{display:flex;position:absolute;flex-flow:column nowrap;z-index:401;pointer-events:none;border:none;overflow:visible;padding:0;width:auto;height:auto;background-color:transparent}.hidden{visibility:hidden}.root:popover-open{display:flex;position:fixed;flex-flow:column nowrap;margin:0}arcgis-features{flex:1;width:100%}.shadow{box-shadow:var(--calcite-shadow-sm)}.aligned-top-center{transform-origin:50% 100%}.aligned-bottom-center{transform-origin:50% -5%}.aligned-top-left,.aligned-bottom-left{transform-origin:100% 50%}.aligned-top-right,.aligned-bottom-right{transform-origin:-5% 50%}.aligned-top-center,.aligned-top-left,.aligned-top-right{animation:popup-intro-animation-down .2s ease-in-out}.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:popup-intro-animation-up .2s ease-in-out}.main-container{display:flex;position:relative;z-index:1;background-color:var(--calcite-color-foreground-1);width:var(--arcgis-internal-popup-content-medium-size);min-height:var(--arcgis-internal-popup-content-min-size-y);max-height:var(--arcgis-internal-popup-content-medium-size);overflow:hidden;pointer-events:auto}.pointer{position:absolute;width:0;height:0}.pointer-direction{position:absolute;width:var(--arcgis-internal-popup-pointer-size);height:var(--arcgis-internal-popup-pointer-size);content:"";background-color:var(--calcite-color-foreground-1)}.aligned-top-center .pointer{top:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-bottom-center .pointer{bottom:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-top-left .pointer{right:var(--arcgis-internal-popup-pointer-size-half);bottom:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-bottom-left .pointer{top:var(--arcgis-internal-popup-pointer-size-half);right:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-top-right .pointer{bottom:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-bottom-right .pointer{top:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-top-center .pointer-direction,.aligned-bottom-center .pointer-direction{transform:scale(.75,2) rotate(45deg)}.aligned-top-left .pointer-direction,.aligned-bottom-left .pointer-direction,.aligned-top-right .pointer-direction,.aligned-bottom-right .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:var(--arcgis-internal-popup-pointer-size-half-negative);transform:scale(.75,2.5) rotate(45deg)}.aligned-top-center .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.aligned-bottom-center .pointer-direction{bottom:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.is-xl-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-large-size)}.is-md-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-medium-size)}.is-sm-width-breakpoint .main-container,.is-xs-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-small-size)}.is-xs-width-breakpoint.is-docked-top-center,.is-xs-width-breakpoint.is-docked-bottom-center{margin:0;width:auto}.is-xs-width-breakpoint.is-docked-top-center .main-container,.is-xs-width-breakpoint.is-docked-bottom-center .main-container{position:absolute;right:0;left:0;width:100%;max-height:75%}.is-xs-width-breakpoint.is-docked-bottom-center .main-container{bottom:0}.is-xs-width-breakpoint.is-docked-top-center .main-container{top:0}.is-xl-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-large-size)}.is-sm-height-breakpoint .main-container,.is-xs-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-small-size)}.is-docked{flex-flow:row nowrap;inset:0;margin:var(--arcgis-layout-overlay-space-top, 0) var(--arcgis-layout-overlay-space-right, 0) var(--arcgis-layout-overlay-space-bottom, 0) var(--arcgis-layout-overlay-space-left, 0);padding:var(--calcite-spacing-lg) var(--calcite-spacing-lg) var(--calcite-spacing-xxxl) var(--calcite-spacing-lg);animation:docking-animation .25s ease-out}.is-docked-top-left,.is-docked-top-center,.is-docked-top-right,.is-docked-top-start,.is-docked-top-end{align-items:flex-start}.is-docked-bottom-left,.is-docked-bottom-center,.is-docked-bottom-right,.is-docked-bottom-start,.is-docked-bottom-end{align-items:flex-end}.is-docked-top-left,.is-docked-bottom-left,.is-docked-top-start,.is-docked-bottom-start{justify-content:flex-start}.is-docked-top-center,.is-docked-bottom-center{justify-content:center}.is-docked-top-right,.is-docked-bottom-right,.is-docked-top-end,.is-docked-bottom-end{justify-content:flex-end}.is-docked-top-left.is-rtl,.is-docked-top-right.is-rtl,.is-docked-bottom-left.is-rtl,.is-docked-bottom-right.is-rtl{flex-direction:row-reverse}.is-docked-top-left .main-container,.is-docked-top-right .main-container,.is-docked-bottom-left .main-container,.is-docked-bottom-right .main-container,.is-docked-top-start .main-container,.is-docked-top-end .main-container,.is-docked-bottom-start .main-container,.is-docked-bottom-end .main-container{max-height:80%}.is-docked-top-center .main-container,.is-docked-bottom-center .main-container{max-height:40%}@media(prefers-reduced-motion){.aligned-top-center,.aligned-top-left,.aligned-top-right,.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:none}}@media(prefers-reduced-motion){.is-docked{animation:none}}@keyframes docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{transform:translateY(calc(var(--calcite-spacing-xs) * -1));opacity:0}to{transform:translate(0);opacity:1}}@keyframes popup-intro-animation-up{0%{transform:translateY(var(--calcite-spacing-xs));opacity:0}to{transform:translate(0);opacity:1}}`;function w(_){return _&&Number.parseInt(_.replaceAll(/[^-\d.]/gu,""),10)||0}var j=L(V),O={buttonEnabled:!0,position:"auto",breakpoint:{width:544}},C=class extends z{constructor(){super(...arguments),this._direction=P(),this._featuresComponent=g(),this._dockAction=new I({id:"popup-dock-action"}),this._mainContainerNode=g(),this._pointerNode=g(),this.messages=F(),this.viewModel=j(this),this._containerNode=g(),this._popupResizeObserver=new ResizeObserver(()=>this._positionContainer()),this._positionContainer=()=>{this.positionStyle=this._calculatePositionStyle()},this.screenLocation=N(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.alignment="auto",this.autoCloseEnabled=!1,this.autoDestroyDisabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.dockEnabled=!1,this.effectiveHeading=this.viewModel.effectiveHeading,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=!1,this.features=this.viewModel.features,this.goToOverride=this.viewModel.goToOverride,this.heading=this.viewModel.heading,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideCollapseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideHeading=!1,this.hideSpinner=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.open=this.viewModel.open,this.promises=this.viewModel.promises,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.state=this.viewModel.state,this.topLayerDisabled=!1,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.arcgisPropertyChange=$()("active","collapsed","currentAlignment","dockEnabled","effectiveHeading","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=b(),this.arcgisClose=b(),this.arcgisTriggerAction=b()}static{this.properties={screenLocation:16,positionStyle:16,_featureNavigationTop:16,actions:0,active:0,alignment:1,autoCloseEnabled:5,autoDestroyDisabled:5,collapsed:5,content:1,currentAlignment:32,currentDockPosition:32,defaultPopupTemplateEnabled:5,dockEnabled:5,dockOptions:0,effectiveHeading:32,featureCount:0,featureMenuOpen:5,featureMenuTitle:1,features:0,goToOverride:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideCollapseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSpinner:5,highlightDisabled:5,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,messageOverrides:0,open:5,promises:0,referenceElement:1,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,state:32,topLayerDisabled:5,updateLocationEnabled:5,view:0}}static{this.styles=R}get trackLocation(){return this.active&&!this.dockEnabled}get _featureNavigationTop(){let{currentAlignment:t,currentDockPosition:e}=this;return t==="bottom-left"||t==="bottom-center"||t==="bottom-right"||t==="bottom-start"||t==="bottom-end"||e==="top-left"||e==="top-center"||e==="top-right"||e==="top-start"||e==="top-end"}get currentAlignment(){return this._getCurrentAlignment()}get currentDockPosition(){return this._getCurrentDockPosition()}get dockOptions(){return this._dockOptions||O}set dockOptions(t){let e={...O},o=this.viewModel?.view?.breakpoints,i={};o&&(i.width=o.xsmall,i.height=o.xsmall);let a={...e,...t},n={...e.breakpoint,...i},{breakpoint:s}=a;typeof s=="object"?a.breakpoint={...n,...s}:s&&(a.breakpoint=n),this._dockOptions=a}get selectedDrillInFeature(){return this._featuresComponent.value?.selectedDrillInFeature??null}get selectedFeatureComponent(){return this._featuresComponent.value?.selectedFeatureComponent??null}async handleViewClick(t){return this.viewModel.handleViewClick(t)}async clear(){return this.viewModel.clear()}async destroy(){await this.manager.destroy(),this._dockAction.destroy(),this._popupResizeObserver.disconnect()}async fetchFeatures(t,e){return await this._featuresComponent.value?.fetchFeatures(t,e)}async next(){return this.viewModel.next()}async previous(){return this.viewModel.previous()}async setFocus(){this._featuresComponent.value?.setFocus()}async triggerAction(t){return await this._featuresComponent.value?.triggerAction(t)}loaded(){this.manager.onLifecycle(()=>[p(()=>[this.viewModel?.view?.widthBreakpoint,this.dockEnabled,this._direction],()=>this._handleDockIcon(),{initial:!0}),p(()=>[this.dockEnabled,this.messages?.undock,this.messages?.dock],()=>this._handleDockEnabled(),{initial:!0}),p(()=>[this.dockOptions,this._featuresComponent.value],()=>{let{_dockAction:t,dockOptions:e}=this,o=this._featuresComponent.value?.headerActions;o?.remove(t),e.buttonEnabled&&o?.add(t)},{initial:!0}),p(()=>[this._pointerNode.value,this.alignment,this.currentAlignment,this.dockEnabled,this.dockOptions,this.screenLocation,this.viewModel?.active,this.viewModel?.location,this.viewModel?.view?.size],()=>this._positionContainer(),{initial:!0}),p(()=>this._mainContainerNode.value,t=>{this._popupResizeObserver.disconnect(),t&&this._popupResizeObserver.observe(t)},{initial:!0}),p(()=>this.viewModel?.view?.size,(t,e)=>this._updateDockEnabledForViewSize(t,e)),p(()=>this.viewModel?.view?.ready,()=>this._setDockEnabledForViewSize(this.dockOptions),{initial:!0}),p(()=>this.view?.map,t=>{this.viewModel.map=t},{initial:!0}),p(()=>this.screenLocation,(t,e)=>this._autoClose(t,e)),p(()=>[this.active,this._containerNode.value,this.dockEnabled,this.topLayerDisabled],()=>this._togglePopover(),{initial:!0})])}_togglePopover(){this._containerNode.value?.togglePopover(this.active&&!this.dockEnabled&&!this.topLayerDisabled)}_handleClose(t){t.stopPropagation(),this.arcgisClose.emit()}_autoClose(t,e){this.autoCloseEnabled&&t!=null&&e!=null&&(this.open=!1)}_handleArcgisPropertyChange(t){t.detail.name==="collapsed"&&(this.collapsed=t.target.collapsed)}_handleArcgisTriggerAction(t){t.stopPropagation(),t.detail.action===this._dockAction&&(this.dockEnabled=!this.dockEnabled),this.arcgisTriggerAction.emit({action:t.detail.action})}_isOutsideView(t){let{popupHeight:e,popupWidth:o,screenLocation:i,side:a,view:n}=t;return Number.isNaN(o)||Number.isNaN(e)||!n||!i?!1:a==="right"&&i.x+o/2>n.width||a==="left"&&i.x-o/2<0||a==="top"&&i.y-e<0||a==="bottom"&&i.y+e>n.height}_getPointerSize(){let{_pointerNode:t}=this,e=t.value?window.getComputedStyle(t.value):null,o=w(e?.height),i=w(e?.width);return Math.hypot(o,i)}_calculateAutoAlignment(t){if(t!=="auto")return t;let{_mainContainerNode:e,_popupRect:o,viewModel:i}=this,{view:a}=i,{screenLocation:n}=this;if(n==null||!a||!o||!e.value)return"top-center";let s=window.getComputedStyle(e.value),l=w(s.maxHeight),r=w(s.height),c=this._getPointerSize(),{height:d,width:y}=o,m=y+c,f=Math.max(d,l,r)+c,S=this._isOutsideView({popupHeight:f,popupWidth:m,screenLocation:n,side:"right",view:a}),T=this._isOutsideView({popupHeight:f,popupWidth:m,screenLocation:n,side:"left",view:a}),x=this._isOutsideView({popupHeight:f,popupWidth:m,screenLocation:n,side:"top",view:a}),H=this._isOutsideView({popupHeight:f,popupWidth:m,screenLocation:n,side:"bottom",view:a});return T?x?"bottom-right":"top-right":S?x?"bottom-left":"top-left":x?H?"top-center":"bottom-center":"top-center"}_callCurrentAlignment(t){return typeof t=="function"?t.call(this):t}_getCurrentAlignment(){return this.dockEnabled||!this.active||!this._mainContainerNode.value?null:this._calculateAutoAlignment(this._callCurrentAlignment(this.alignment))}_callDockPosition(t){return typeof t=="function"?t.call(this):t}_getDockPosition(){return this._calculateAutoDockPosition(this._callDockPosition(this.dockOptions?.position))}_getCurrentDockPosition(){return this.dockEnabled&&this.active?this._getDockPosition():null}_calculateAutoDockPosition(t){if(t!=="auto")return t;let e=this.viewModel?.view,o="top-end";if(!e)return o;let{breakpoints:i}=e;return i?.xsmall&&e.width<=i.xsmall?"bottom-center":o}_getDockIcon(){let t=this._getDockPosition(),{_direction:e}=this;if(this.dockEnabled)return"minimize";switch(t){case"top-left":case"bottom-left":return"dock-left";case"top-center":return"maximize";case"bottom-center":return"dock-bottom";case"top-right":case"bottom-right":return"dock-right";case"top-start":case"bottom-start":return e==="rtl"?"dock-right":"dock-left";default:return e==="rtl"?"dock-left":"dock-right"}}_handleDockIcon(){this._dockAction.icon=this._getDockIcon()}_handleDockEnabled(){this._dockAction.title=this.dockEnabled?this.messages?.undock:this.messages?.dock}_calculateAlignmentPosition(t,e,o,i){if(t<0||e<0||!o||!i||t>o.width||e>o.height)return;let{topLayerDisabled:a}=this,n=a?t:t+o.x,s=a?e:e+o.y,{_direction:l,currentAlignment:r}=this,c=this._getPointerSize(),d=c/2;if(r==="top-left"||r==="top-start"&&l==="ltr"||r==="top-end"&&l==="rtl")return{top:s-(i.height+d),left:n-i.width-d};if(r==="top-center")return{top:s-(i.height+c),left:n-i.width/2};if(r==="top-right"||r==="top-end"&&l==="ltr"||r==="top-start"&&l==="rtl")return{top:s-(i.height+d),left:n+d};if(r==="bottom-left"||r==="bottom-start"&&l==="ltr"||r==="bottom-end"&&l==="rtl")return{top:s+d,left:n-i.width-d};if(r==="bottom-center")return{top:s+c,left:n-i.width/2};if(r==="bottom-right"||r==="bottom-end"&&l==="ltr"||r==="bottom-start"&&l==="rtl")return{top:s+d,left:n+d}}_getPositionStyleValue(t){return t!=null?`${t}px`:"auto"}_calculatePositionStyle(){if(this.dockEnabled)return;let{screenLocation:t}=this;if(t==null)return;let e=this.view?.container?.getBoundingClientRect(),o=this._mainContainerNode.value?.getBoundingClientRect();this._popupRect=o;let i=this._calculateAlignmentPosition(t.x,t.y,e,o);if(i)return`inset: ${this._getPositionStyleValue(i.top)} ${this._getPositionStyleValue(i.right)} ${this._getPositionStyleValue(i.bottom)} ${this._getPositionStyleValue(i.left)};`}_dockingThresholdCrossed(t,e,o){let[i,a]=t,[n,s]=e,{width:l=0,height:r=0}=o??{};return i<=l&&n>l||i>l&&n<=l||a<=r&&s>r||a>r&&s<=r}_updateDockEnabledForViewSize(t,e){if(!t||!e||!this.viewModel?.view?.ready)return;let{dockOptions:o}=this,i=o.breakpoint;typeof i=="object"&&this._dockingThresholdCrossed(t,e,i)&&this._setDockEnabledForViewSize(o)}_shouldDockAtCurrentViewSize(t){let e=t.breakpoint,o=this.viewModel?.view?.ui;if(!o)return!1;let{width:i,height:a}=o;if(Number.isNaN(i)||Number.isNaN(a)||typeof e!="object")return!1;let n=typeof e.width=="number"&&i<=(e.width??0),s=typeof e.height=="number"&&a<=(e.height??0);return n||s}_setDockEnabledForViewSize(t){this.viewModel?.view?.ready&&typeof t.breakpoint=="object"&&(this.dockEnabled=this._shouldDockAtCurrentViewSize(t))}render(){let{_direction:t,dockEnabled:e,currentAlignment:o,currentDockPosition:i,positionStyle:a}=this,{active:n,view:s}=this.viewModel,l=n&&e,r=n&&!e,c=s?.widthBreakpoint,d=s?.heightBreakpoint,y={"aligned-top-center":o==="top-center","aligned-bottom-center":o==="bottom-center","aligned-top-left":o==="top-left"||o==="top-start"&&t==="ltr"||o==="top-end"&&t==="rtl","aligned-bottom-left":o==="bottom-left"||o==="bottom-start"&&t==="ltr"||o==="bottom-end"&&t==="rtl","aligned-top-right":o==="top-right"||o==="top-end"&&t==="ltr"||o==="top-start"&&t==="rtl","aligned-bottom-right":o==="bottom-right"||o==="bottom-end"&&t==="ltr"||o==="bottom-start"&&t==="rtl","is-docked":l,shadow:r,"is-rtl":this._direction==="rtl","is-docked-top-start":i==="top-start","is-docked-top-end":i==="top-end","is-docked-top-left":i==="top-left","is-docked-top-center":i==="top-center","is-docked-top-right":i==="top-right","is-docked-bottom-left":i==="bottom-left","is-docked-bottom-center":i==="bottom-center","is-docked-bottom-right":i==="bottom-right","is-docked-bottom-start":i==="bottom-start","is-docked-bottom-end":i==="bottom-end","is-xl-width-breakpoint":c==="xlarge","is-lg-width-breakpoint":c==="large","is-md-width-breakpoint":c==="medium","is-sm-width-breakpoint":c==="small","is-xs-width-breakpoint":c==="xsmall","is-xl-height-breakpoint":d==="xlarge","is-lg-height-breakpoint":d==="large","is-md-height-breakpoint":d==="medium","is-sm-height-breakpoint":d==="small","is-xs-height-breakpoint":d==="xsmall"};return h`<div style=${D(a)} class=${v(k("root",y,{hidden:!n||!a&&!e}))} .ariaHidden=${!n} .ariaLabel=${B(this.heading??"")} role=dialog popover=manual ${u(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`}_renderPointer(){return!this.dockEnabled||!this.active?h`<div class="pointer" role=presentation><div class=${v(k("pointer-direction","shadow"))} ${u(this._pointerNode)}></div></div>`:null}_renderMainContainer(){let t={shadow:this.dockEnabled};return h`<div class=${v(k("main-container",t))} ${u(this._mainContainerNode)}>${E(this.viewModel,h`<arcgis-features .collapsed=${this.collapsed} .autoDestroyDisabled=${this.autoDestroyDisabled} .featureNavigationTop=${this._featureNavigationTop} .headingLevel=${this.headingLevel} .hidden=${!this.active} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.hideCloseButton} .hideFeatureListLayerTitle=${this.hideFeatureListLayerTitle} .hideFeatureMenuHeading=${this.hideFeatureMenuHeading} .hideFeatureNavigation=${this.hideFeatureNavigation} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${u(this._featuresComponent)}></arcgis-features>`)}</div>`}};A("arcgis-popup",C);return C},"popup/Features","applications/Components/stringUtils","core/reactiveUtils","support/actions/ActionButton",a,c,d,e,f,i)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{O as d,P as h,Q as p,R as r,U as g,a as o,b as s,x as c}from"./
|
|
2
|
+
import{O as d,P as h,Q as p,R as r,U as g,a as o,b as s,x as c}from"./MTKZBIHD.js";import"./3TTFCHAA.js";export default $arcgis.t(([{substitute:v}])=>{var x=o`:host{--internal-block-spacing: var(--calcite-spacing-sm-plus);--internal-inline-spacing: var(--calcite-spacing-md);--internal-collapse-toggle-size: 32px;--internal-color-indicator-width: 3px;--internal-opacity-disabled: .4}.container{position:relative;background:var(--calcite-color-foreground-2)}.disabled{filter:grayscale(1);opacity:var(--internal-opacity-disabled)}.color-indicator{position:absolute;inset-inline-start:0;top:0;width:var(--internal-color-indicator-width);height:100%}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.content{display:block;padding:var(--internal-block-spacing) var(--internal-inline-spacing);padding-top:0}.collapse-toggle{flex-shrink:0;width:var(--internal-collapse-toggle-size);height:var(--internal-collapse-toggle-size)}.label{--calcite-label-margin-bottom: 0;flex-grow:1;flex-shrink:1;padding-inline-start:var(--internal-inline-spacing);min-width:0}`,l=class extends d{constructor(){super(...arguments),this.expanded=!1,this.featureSelected=!1,this.hideCheckbox=!1,this.arcgisExpandedToggle=c()}static{this.properties={effectiveDisplayUnits:0,expanded:5,featureSelected:5,hideCheckbox:5,messages:0,result:0}}static{this.styles=x}async destroy(){await this.manager.destroy()}render(){return s`<div class=${h({container:!0,expanded:this.expanded,disabled:this._disabled})}>${this._renderColorIndicator()}<div class="header">${this._renderLabelWithCheckbox()}${this._renderCollapseToggleButton()}</div>${this.expanded?this._renderStatistics():void 0}</div>`}_renderColorIndicator(){return s`<div class="color-indicator" style=${p({backgroundColor:this.result.profile.color.toCss()})}></div>`}_renderCollapseToggleButton(){let{expanded:e,messages:t}=this,i=t[e?"hideDetails":"showDetails"]??"";return s`<calcite-action class="collapse-toggle" data-testid=${`legend-toggle-${this.result.profile.id}`} .icon=${e?"chevron-up":"chevron-down"} @click=${()=>this.arcgisExpandedToggle.emit(this.result.profile)} .text=${i} title=${i??r}></calcite-action>`}_renderLabelWithCheckbox(){let{result:e,hideCheckbox:t,messages:i}=this;return s`<calcite-label class="label" layout=inline>${t?void 0:this._renderCheckbox()}${u(e,i)}</calcite-label>`}_renderCheckbox(){let{result:e,messages:t}=this,{profile:i}=e,n=i.enabled,f=t[n?"hideProfile":"showProfile"]??"",b=v(f,{name:u(e,t)});return s`<calcite-checkbox .checked=${n} class="checkbox" title=${b??r} .disabled=${this._disabled} @calciteCheckboxChange=${()=>{i.enabled=!i.enabled}}></calcite-checkbox>`}_renderStatistics(){return s`<div class="content"><arcgis-elevation-profile-statistics .messages=${this.messages} .result=${this._disabled?void 0:this.result} .effectiveDisplayUnits=${this.effectiveDisplayUnits}></arcgis-elevation-profile-statistics></div>`}get _disabled(){return!this.featureSelected&&this.result.profile.type==="input"}};function u({profile:a},{profiles:e}){let t=a.title;if(t!=null)return t;if(!e)return"";switch(a.type){case"ground":return e.ground;case"input":return e.input;case"query":return e.query;case"scene":return e.scene;default:return""}}g("arcgis-elevation-profile-legend-item",l);return l},"intl")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{d as c}from"./IQPGSWSL.js";import{a as s}from"./IGSZABNU.js";import{O as p,P as g,U as u,a as m,b as i}from"./
|
|
2
|
+
import{d as c}from"./IQPGSWSL.js";import{a as s}from"./IGSZABNU.js";import{O as p,P as g,U as u,a as m,b as i}from"./MTKZBIHD.js";import"./3TTFCHAA.js";var b=m`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}.label{display:block}.discrete-label-text{font-weight:var(--calcite-font-weight-medium);opacity:var(--calcite-opacity-disabled)}.label-open{&:not(.label-empty){margin-bottom:var(--calcite-spacing-xs)}.discrete-label-text{opacity:1}}arcgis-shadow-cast-discrete-config{padding:0 var(--calcite-spacing-xs)}`,d=class extends p{constructor(){super(...arguments),this.scale="s",this.minMinDuration=0,this.maxMinDuration=c(8,"hours","milliseconds"),this.hideColorPicker=!1,this.hideSlider=!1,this.hideContextOptions=!1,this.hideContextToggle=!1,this.hideContextColorPicker=!1,this.hideContextInterval=!1}static{this.properties={options:0,scale:1,minMinDuration:9,maxMinDuration:9,messages:0,hideColorPicker:5,hideSlider:5,hideContextOptions:5,hideContextToggle:5,hideContextColorPicker:5,hideContextInterval:5}}static{this.styles=b}render(){let{options:o,scale:t}=this,e=this.messages?.minDuration;return i`${s({hidden:this.hideSlider,children:i`<calcite-label .scale=${t}>${e?.minDurationLabel}<calcite-slider fill-placement=end label-ticks .min=${r(this.minMinDuration)} .max=${r(this.maxMinDuration)} .value=${r(o.minDuration)} snap step=0.5 .scale=${t} ticks=1 @calciteSliderInput=${a=>{o.minDuration=f(a.currentTarget.value)}}></calcite-slider></calcite-label>`})}${s({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${this.options.color} .label=${e?.colorLabel} @arcgisColorChanged=${a=>{o.color=a.detail}}></arcgis-color-select>`})}${s({hidden:this.hideContextOptions,children:this._renderContextOptions()})}`}_renderContextOptions(){let{options:o,scale:t}=this,e=o.contextEnabled,a=this.messages?.minDuration,l=!this.hideContextToggle,x=!this.hideContextColorPicker,C=!this.hideContextInterval,h=x||C;if(!(!l&&(!e||!h)))return i`<div><calcite-label class=${g({label:!0,"label-open":e,"label-empty":!h})} .layout=${l?"inline-space-between":"default"} .scale=${t}><span class="discrete-label-text">${a?.discreteLabel??"foo"}</span>${s({hidden:!l,children:i`<calcite-switch .checked=${e} .scale=${t} @calciteSwitchChange=${$=>{this.options.contextEnabled=$.target.checked}}></calcite-switch>`})}</calcite-label>${s({hidden:!e,children:i`<arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideContextColorPicker} .hideInterval=${this.hideContextInterval} .messages=${this.messages} .options=${this.options.contextOptions} .scale=${t}></arcgis-shadow-cast-discrete-config>`})}</div>`}};function r(n){return c(n,"milliseconds","hours")}function f(n){return Math.round(c(n,"hours","milliseconds"))}u("arcgis-shadow-cast-min-duration-config",d);export{d as ArcgisShadowCastMinDurationConfig};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as x}from"./
|
|
2
|
+
import{a as x}from"./JBJJSR3A.js";import{k as y,u as m,v as h,w as v,z as E}from"./MTKZBIHD.js";export default $arcgis.t(([{on:C,watch:w},{createObservable:b,trackAccess:g},{property:P,subclass:k},A])=>{var U=(o,e)=>{let t=y().manager;t.onLoaded(()=>t.onLifecycle(()=>C(o,e,n.emit)));let n=v();return n},V=(o,e)=>r=>O(r,o),u=class extends E{constructor(e,r){super(e),this.Y=new Map,this.A=void 0,this.#o=b();let t=this;t.#e=r,t.Z(),t.setProvisionalExports($(e,new WeakRef(t),e.M.length-1,t.instance,t.Y),!1),m(e,n=>{if(n){let c=w(()=>e[n],s=>{if(s===t.instance)return;let i=t.instance;t.exports=s,t.instance=s,t.Y.forEach((a,l)=>e.requestUpdate(a,i[l])),t.#t&&i.destroy(),t.#t=!1},{sync:!0});t.onDestroy(c.remove)}},t.exports)}#t;#o;#e;get exports(){return g(this.#o),super.exports}set exports(e){super.exports=e,this.#o.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},O=x(u),$=(o,e,r,t,n)=>new Proxy(t,{get:(c,s)=>{let i=c[s];if(typeof s=="symbol"||n.has(s))return i;let a=o.M[r];return a.A=s,h(o,l=>{if(a.A=void 0,l!==void 0){let p=l.key;n.set(s,p);let d=o.constructor.getPropertyOptions(p),f=s!==p&&p.toLowerCase().includes("disable");M(e,d,s,p,f),d.i===void 0&&N(d,r,s,f)}},i)}}),M=(o,e,r,t,n,c)=>c=w(()=>{let s=o.deref();return s===void 0||s.component.manager.destroyed?c=c.remove():s.exports[r]},(s,i)=>{if(!c)return;o.deref().component?.requestUpdate(t,n?!i:i),e.c=!1},{sync:!0}),N=(o,e,r,t)=>{o.d.get=function(){let n=this.M[e]?.exports[r];return t?!n:n},o.d.set=function(n){let c=this.M[e];c.A!==r&&(c.exports[r]=t?!n:n)}},Z=o=>o.Y,q=(o,e)=>{let r=e.manager.useRefSync(o);r?.hostDestroy(),r?.Z(),r?.hostConnected()},G=o=>{let e=class extends A{},r=typeof o=="function"?o():o,t=Object.getOwnPropertyDescriptors(r);for(let[c,s]of Object.entries(t))Object.defineProperty(e.prototype,c,s),P()(e.prototype,c);let n=k()(e);return new n};return{a:U,b:V,c:u,d:$,e:Z,f:q,g:G}},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./IXPKHDYQ.js";import b from"./KYU6MBFA.js";import{f as w}from"./JBJJSR3A.js";import"./6G6PWW2Q.js";import"./VSFDIVO3.js";import{O as y,Q as t,U as g,a as h,b as a}from"./MTKZBIHD.js";import"./3TTFCHAA.js";export default $arcgis.t(([,{a:u,b:s,c:x,d:o,e:$}])=>{var S=h`.layer-row{display:flex;align-items:center}.symbol{display:block;margin:auto}.symbol-container{position:relative}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.layer-cell-info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.univariate-color-ramp-card{position:relative}.univariate-color-ramp-card:before{content:"";border-left:var(--calcite-border-width-sm) solid var(--calcite-color-background);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-background);width:100%;height:15px;display:block;position:absolute;top:var(--calcite-border-width-sm)}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,n=class extends y{constructor(){super(...arguments),this._direction=w(),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=S}render(){let{legendElement:E,opacity:l}=this,{sizeRampElement:e,colorRampElement:c}=$(E,this.messages,l,"horizontal");if(!e)return null;let z=x(e,"full",!0,"horizontal"),k=o(e,"above",!0,"horizontal"),L=o(e,"below",!0,"horizontal"),d=12,p=this.messages?.previewColorRampAriaLabel,m=s(c,{width:k,height:d,rampAlignment:"horizontal",opacity:l,type:"above",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),A=s(c,{width:L,height:d,rampAlignment:"horizontal",opacity:l,type:"below",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),f=u(e,"card"),v=e.infos.map(i=>i.label),F=v.length-1,R=v.map((i,b)=>b===0||b===F?a`<div>${i}</div>`:null),C={display:"flex",flexDirection:"column"},D={display:"flex",flexDirection:"row"},r={marginTop:"3px",display:"flex"};this._direction==="rtl"?r.marginRight=`${f}px`:r.marginLeft=`${f}px`;let j={width:`${z}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return a`<div class="layer-row" style=${t(C)}><div class="symbol-container" style=${t(D)}>${e.infos.map(i=>a`<div class="symbol">${i.preview}</div>`)}</div>${m?a`<div class="univariate-color-ramp-card" style=${t(r)}><div>${m}</div><div>${A}</div></div>`:null}<div class="layer-cell layer-cell-info"><div class="ramp-labels" style=${t(j)}>${R}</div></div></div>`}};g("arcgis-legend-card-univariate-above-and-below-ramp",n);return n},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as h}from"./
|
|
2
|
+
import{a as h}from"./N47EYOIP.js";import"./JBJJSR3A.js";import"./6G6PWW2Q.js";import"./VSFDIVO3.js";import{O as c,U as r,a as n,b as t}from"./MTKZBIHD.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:l}])=>{var p=n`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`,u=["catalog-footprint","geojson","csv","graphics","kml","map-notes","stream"];function m(i){if(!i)return!1;let{map:e,graphics:d}=i;return d?.length?!0:e?.allLayers.some(a=>{if(a.type==="feature"&&"source"in a){let{type:o}=a.source;return o!=="feature-layer"&&o!=="ogc-feature"}return u.includes(a.type)})??!1}function g(i){let e=i?.map;return!!e&&e.tables.length>0}var s=class extends c{constructor(){super(...arguments),this._handles=h("disconnect"),this.autoPopulateAuthor=!1,this.hideFeatureAttributes=!1,this.hideIncludeTables=!1}static{this.properties={_selectedTemplate:16,_showAuthorInput:16,_showCopyrightInput:16,_showLegendInput:16,_showNorthArrowInput:16,_showScaleBarInput:16,_showForceFeatureAttributes:16,_showTablesInput:16,autoPopulateAuthor:5,viewModel:0,messages:0,hideFeatureAttributes:5,hideIncludeTables:5}}static{this.styles=p}loaded(){this.manager.onLifecycle(()=>[l(()=>this.viewModel.templateOptions.id,e=>{this._handles.removeHandles("template-handle"),this._selectedTemplate=e?this.viewModel.getLayoutTemplateById(e)??void 0:void 0,this._handles.addHandles(l(()=>[this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText,this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText,this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend,this._selectedTemplate?.mapSurroundInfoOptions?.northArrow?.length,this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar?.length],()=>{this._showAuthorInput=this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText??!0,this._showCopyrightInput=this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText??!0,this._showLegendInput=this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend??!0,this._showNorthArrowInput=!!this._selectedTemplate?.mapSurroundInfoOptions?.northArrow.length,this._showScaleBarInput=!!this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar.length,this._showForceFeatureAttributes=m(this.viewModel.view)&&!!this._selectedTemplate?.layoutItem?.id&&!this.hideFeatureAttributes,this._showTablesInput=g(this.viewModel.view)&&!!this._selectedTemplate?.layoutItem?.id&&!this.hideIncludeTables},{initial:!0}),"template-handle")},{initial:!0}),l(()=>[this.viewModel.portal?.user,this.autoPopulateAuthor],()=>{!this.viewModel.templateOptions.author&&this.autoPopulateAuthor&&this.viewModel.portal?.user?.username&&(this.viewModel.templateOptions.author=this.viewModel.portal.user.username,this.requestUpdate())},{initial:!0})])}render(){return t`<div aria-labelledby=${`${this.el.id}__advancedOptionsForLayout`} class="advanced-options-container">${this._renderScaleSection()}${this._renderAuthorSection()}${this._renderCopyrightSection()}${this._renderDpiSection()}${this._renderOutSpatialReferenceSection()}${this._renderCustomTextElementSection()}${this._renderLegendSection()}${this._renderNorthArrowSection()}${this._renderScaleBarSection()}${this._renderForceFeatureAttributesSection()}${this._renderIncludeTablesSection()}</div>`}_renderScaleSection(){return t`<arcgis-print-scale-section .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-scale-section>`}_renderAuthorSection(){return this._showAuthorInput?t`<div><calcite-label>${this.messages.author}<calcite-input .value=${this.viewModel.templateOptions.author??""} @calciteInputInput=${e=>this.viewModel.templateOptions.author=e.target.value}></calcite-input></calcite-label></div>`:null}_renderCopyrightSection(){return this._showCopyrightInput?t`<div><calcite-label>${this.messages.copyright}<calcite-input .value=${this.viewModel.templateOptions.copyright??""} @calciteInputInput=${e=>this.viewModel.templateOptions.copyright=e.target.value}></calcite-input></calcite-label></div>`:null}_renderDpiSection(){return t`<arcgis-print-dpi-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-dpi-input>`}_renderOutSpatialReferenceSection(){return t`<arcgis-print-out-spatial-reference-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-out-spatial-reference-input>`}_renderCustomTextElementSection(){return t`<arcgis-print-custom-text-elements .viewModel=${this.viewModel}></arcgis-print-custom-text-elements>`}_renderLegendSection(){return this._showLegendInput?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.legendEnabled} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.legendEnabled=e.target.checked}></calcite-checkbox>${this.messages.legend}</calcite-label>${this.viewModel.templateOptions.legendEnabled?t`<calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.dynamicLegendEnabled} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.dynamicLegendEnabled=e.target.checked}></calcite-checkbox>${this.messages.dynamicLegend}</calcite-label>`:null}</div>`:null}_renderNorthArrowSection(){return this._showNorthArrowInput?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.northArrowEnabled} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.northArrowEnabled=e.target.checked}></calcite-checkbox>${this.messages.northArrow}</calcite-label></div>`:null}_renderScaleBarSection(){return this._showScaleBarInput?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.scaleBarEnabled} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.scaleBarEnabled=e.target.checked}></calcite-checkbox>${this.messages.scaleBar}</calcite-label>${this.viewModel.templateOptions.scaleBarEnabled&&!this._selectedTemplate?.layoutItem?.id?t`<calcite-label>${this.messages.scaleBarUnit}<calcite-select label="Scale bar unit" .value=${this.viewModel.templateOptions.scaleBarUnit||void 0} @calciteSelectChange=${e=>{this.viewModel.templateOptions.scaleBarUnit=e.target.value}}><calcite-option value=kilometers>${this.messages.milesAndKilometers}</calcite-option><calcite-option value=meters>${this.messages.feetAndMeters}</calcite-option></calcite-select></calcite-label>`:null}</div>`:null}_renderForceFeatureAttributesSection(){return this._showForceFeatureAttributes?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.forceFeatureAttributes} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.forceFeatureAttributes=e.target.checked}></calcite-checkbox>${this.messages.forceFeatureAttributes}</calcite-label></div>`:null}_renderIncludeTablesSection(){return this._showTablesInput?t`<div><calcite-label layout=inline><calcite-checkbox .checked=${!!this.viewModel.templateOptions.includeTables} @calciteCheckboxChange=${e=>this.viewModel.templateOptions.includeTables=e.target.checked}></calcite-checkbox>${this.messages.includeTables}</calcite-label></div>`:null}};r("arcgis-print-layout-advanced-options",s);return s},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{O as n,U as l,a as s,b as i}from"./
|
|
2
|
+
import{O as n,U as l,a as s,b as i}from"./MTKZBIHD.js";import"./3TTFCHAA.js";var c=s`:host{display:flex;flex-direction:column;height:100%}.advanced-options-section{border:1px solid var(--calcite-color-border-1);margin-bottom:var(--calcite-spacing-sm)}.map-only-section{padding:var(--calcite-spacing-sm) var(--calcite-spacing-sm);display:flex;flex-direction:column;flex:1 0;gap:var(--calcite-spacing-md)}.panel-container{display:flex;flex:1 0;flex-direction:column;gap:var(--calcite-spacing-sm)}.size-container{--button-width: 32px;display:inline-grid;grid-template-columns:1fr 1fr var(--button-width);column-gap:var(--calcite-spacing-xs);width:100%}.swap-button{flex:1 0 auto;border:none;color:var(--calcite-color-border-input);align-self:flex-end;margin-bottom:var(--calcite-spacing-md)}.swap-button calcite-button{width:var(--button-width);height:var(--button-width)}`,a=class extends n{constructor(){super(...arguments),this.hideAdvancedOptions=!1}static{this.properties={hideAdvancedOptions:5,viewModel:0,messages:0,selectExportsTab:0}}static{this.styles=c}loaded(){this.manager.onLifecycle(()=>[])}render(){return i`<section class="map-only-section" tabindex=-1><div class="panel-container">${this._renderFileNameInput()}${this._renderFileFormatSection()}${this._renderSizeSection()}${this._renderAdvancedSection()}</div>${this._renderExportButton()}</section>`}_renderFileNameInput(){let{fileName:t,fileNamePlaceHolder:e}=this.messages;return i`<calcite-label>${t}<calcite-input .placeholder=${e} .value=${this.viewModel.templateOptions.fileName??""} @calciteInputInput=${r=>{this.viewModel.templateOptions.fileName=r.currentTarget.value}}></calcite-input></calcite-label>`}_renderFileFormatSection(){return i`<arcgis-print-format-select .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-format-select>`}_renderSizeSection(){return i`<div><div class="size-container"><calcite-label>${this.messages.width}<calcite-input-number .value=${`${this.viewModel.templateOptions.width}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${t=>{let e=Number(t.target.value);!Number.isNaN(e)&&e>0&&Number.isFinite(e)?this.viewModel.templateOptions.width=e:t.target.value=`${this.viewModel.templateOptions.width}`}}></calcite-input-number></calcite-label><calcite-label>${this.messages.height}<calcite-input-number .value=${`${this.viewModel.templateOptions.height}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${t=>{let e=Number(t.target.value);!Number.isNaN(e)&&e>0&&Number.isFinite(e)?this.viewModel.templateOptions.height=e:t.target.value=`${this.viewModel.templateOptions.height}`}}></calcite-input-number></calcite-label><div class="swap-button"><calcite-button icon-start=arrow-right-left .label=${this.messages.swap} appearance=transparent kind=neutral @click=${()=>{[this.viewModel.templateOptions.width,this.viewModel.templateOptions.height]=[this.viewModel.templateOptions.height,this.viewModel.templateOptions.width],this.requestUpdate()}}></calcite-button></div></div><arcgis-print-preview-input .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-preview-input></div>`}_renderAdvancedSection(){return this.hideAdvancedOptions?null:i`<calcite-block .ariaLabel=${this.messages.advancedOptions} class="advanced-options-section" collapsible .heading=${this.messages.advancedOptions}><arcgis-print-map-only-advanced-options .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-map-only-advanced-options></calcite-block>`}_renderExportButton(){return i`<arcgis-print-export-button .fileName=${this.viewModel.templateOptions.fileName??void 0} .messages=${this.messages} .viewModel=${this.viewModel} .selectExportsTab=${this.selectExportsTab}></arcgis-print-export-button>`}};l("arcgis-print-map-only-panel",a);export{a as PrintMapOnlyPanel};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./UOOE5336.js";import g from"./V4RMKJUW.js";import"./PC4PAQXQ.js";import f from"./PP3ZDADO.js";import{a as b}from"./ZRWZ5OQK.js";import e from"./6IJGTPXG.js";import c from"./X55JXSXH.js";import"./ZCQAWUVA.js";import"./ATTV2K2S.js";import a from"./IFIOUBWT.js";import"./T5K2XFNK.js";import{N as l,O as p,U as m,a as u,b as r,p as d,x as s}from"./DDD7772O.js";import"./3TTFCHAA.js";export default $arcgis.t(([_,,{when:f},R,,,,w,{a:y}])=>{var $=u`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1);calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}`,C=w(R),h=class extends p{constructor(){super(...arguments),this._messages=b({blocking:!0}),this._viewModel=C(this),this._highlightHandles=[],this._handleRunTraceButtonClick=()=>{this._setTraceWarnings(),!(this.showNoStartingPointsWarning||this.showMissingTerminalWarning)&&(this.showNoStartingPointsWarning=!1,this.showMissingTerminalWarning=!1,this._clearTraceResult(),this._switchTab("results"),this._runTrace())},this._handleTraceInputsRefChange=e=>{e&&(this._traceInputsElement=e)},this._handleTraceResultsRefChange=e=>{e&&(this._traceResultsElement=e)},this.activeTab="input",this.showMissingTerminalWarning=!1,this.showNoStartingPointsWarning=!1,this.mode="default",this.autoDestroyDisabled=!1,this.aggregatedGeometryGraphicsColor=new _([255,255,0,.6]),this.disableHighlightFeatureResults=!1,this.hideActionBar=!1,this.hideFeatureResults=!1,this.state=this._viewModel.state,this.view=this._viewModel.view,this.arcgisHideGraphicsChange=s(),this.arcgisReady=s(),this.arcgisTraceLocationSelectEnd=s(),this.arcgisTraceLocationSelectStart=s(),this.arcgisTraceResultClear=s(),this.arcgisTraceResultFeaturesReady=s()}static{this.properties={activeTab:16,traceError:16,traceResult:16,showMissingTerminalWarning:16,showNoStartingPointsWarning:16,mode:16,autoDestroyDisabled:5,beforeTraceLocationSelectStart:0,aggregatedGeometryGraphicsColor:0,disableHighlightFeatureResults:5,hideActionBar:5,hideFeatureResults:5,label:3,messageOverrides:0,traceResultFeatures:32,referenceElement:1,state:32,view:0}}static{this.styles=$}get _allLayers(){let{view:e}=this;return e?.map?e.map.allLayers.toArray().concat(e.map.allTables.toArray()):[]}get _isSubnetworkNameTraceSelected(){let e=this._traceInputsElement?.selectedNamedTraceConfiguration?.traceType;return!!this._traceInputsElement?.selectedNamedTraceConfiguration?.traceConfiguration?.subnetworkName&&e==="subnetwork"}get traceResultFeatures(){return this._traceResultsElement?.traceResultFeatures??[]}async destroy(){this._clearHighlights(),this._traceResultsElement?.destroy(),this._traceInputsElement?.destroy(),await this.manager.destroy()}load(){this.manager.onLifecycle(()=>[f(()=>!this._viewModel.utilityNetwork,()=>this._switchTab("input"))])}_clearTraceResult(){this.traceResult=void 0,this._clearHighlights(),this._clearAggregatedGeometryGraphics()}_setTraceWarnings(){let e=this._traceInputsElement?.traceLocations,t=this._traceInputsElement?.traceLocationFlagInfos,a=!!this._traceInputsElement?.unTraceConfiguration?.subnetworkName,i=e?.some(n=>n.type==="starting-point"),c=t?.some(n=>!!n.flagProperties.terminalConfiguration&&!n.flagProperties.selectedTerminals?.size)??!1;this.traceError=void 0,this.showNoStartingPointsWarning=!this._isSubnetworkNameTraceSelected&&!i||this._isSubnetworkNameTraceSelected&&!a,this.showMissingTerminalWarning=c}_switchTab(e){this.activeTab=e}_getLoadError(e){let{_messages:t}=this;switch(e){case"no-user-type-extension":return t.errors.loadErrors.noUserTypeExtension;case"no-utility-network":return t.errors.loadErrors.noUtilityNetwork;case"no-view":return t.errors.loadErrors.noView;case"sceneView-not-supported":return t.errors.loadErrors.sceneViewNotSupported;default:return e}}_clearHighlights(){this._highlightHandles.forEach(e=>e.remove()),this._highlightHandles=[]}_clearAggregatedGeometryGraphics(){this._traceResultsElement?.clearAggregatedGeometryGraphics()}_highlightResults(){let{traceResult:e,view:t}=this,a=this._viewModel.utilityNetwork;!a||!e?.elements||!t||a.getObjectIdsFromElements(e.elements).forEach(i=>{let c=t.allLayerViews.find(v=>{let g=v.layer;if(a.isUtilityLayer(g)){let T=Number(i.layerUrl.split("/").pop());return g.layerId===T}return!1});if(!c)return;let n=c.highlight(i.objectIds);this._highlightHandles.push(n)})}async _runTrace(){let e=this._traceInputsElement?.selectedNamedTraceConfiguration,t=this._traceInputsElement?.unTraceConfiguration;if(!(e?.traceType&&t)){d("error",this,"Trace configuration not found");return}let a=this._traceInputsElement?.traceLocations;try{this.traceResult=await this._viewModel.executeTraceConfiguration({traceType:e.traceType,traceConfiguration:t,traceLocations:a??[],resultTypes:e.resultTypes,outSpatialReference:this.view?.spatialReference}),this.disableHighlightFeatureResults||this._highlightResults()}catch(i){y(i,this,"Error while running trace"),this.traceError=i,this.traceResult=void 0}}_handleHideGraphicsChange(e){e.stopPropagation(),this.arcgisHideGraphicsChange.emit(e.detail)}_handleTraceLocationSelectStart(e){e.stopPropagation(),this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented&&e.preventDefault()}_handleTraceLocationSelectEnd(e){e.stopPropagation(),this.arcgisTraceLocationSelectEnd.emit()}_handleTraceResultFeaturesReady(e){e.stopPropagation(),this.arcgisTraceResultFeaturesReady.emit()}_handleAggregatedGeometryGraphicsColorChange(e){let t=e.detail;this.aggregatedGeometryGraphicsColor=new _(t)}_handleSelectedNamedTraceConfigurationChange(){this.showNoStartingPointsWarning=!1,this.showMissingTerminalWarning=!1}_handleUtilityNetworkChange(){this._viewModel.utilityNetwork=this._traceInputsElement?.selectedUtilityNetwork}renderMissingTerminalWarning(){return r`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this.showMissingTerminalWarning=!1}><div slot=title>${this._messages.errors.missingTerminalTitle}</div><div slot=message>${this._messages.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`}renderNoStartingPointsWarning(){return r`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this.showNoStartingPointsWarning=!1}><div slot=title>${this._messages.errors.noStartingPointsTitle}</div><div slot=message>${this._messages.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`}renderResultsTab(){return o(`${this.el.id}__results-tab-item`,r`<calcite-tab .selected=${this.activeTab==="results"}>${this.state==="executing"?r`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>`:r`<arcgis-utility-network-trace-results .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .layers=${this._allLayers} .messageOverrides=${{resultFeaturesAreHidden:this.messageOverrides?.resultFeaturesAreHidden}} .referenceElement=${this.referenceElement} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork??void 0} .view=${this.view??void 0} @arcgisAggregatedGeometryGraphicsColorChange=${this._handleAggregatedGeometryGraphicsColorChange} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} ${l(this._handleTraceResultsRefChange)}></arcgis-utility-network-trace-results>`}</calcite-tab>`)}renderResultsFooter(){let{traceResult:e}=this,t=!!(e?.elements.length||e?.globalFunctionResults.length||e?.aggregatedGeometry)&&this._traceResultsElement?.state==="ready",a=this._traceResultsElement?.numResults??0;return r`<calcite-button appearance=outline width=full @click=${()=>{this._switchTab("input"),this._clearTraceResult(),this.arcgisTraceResultClear.emit()}} .disabled=${!t} slot=footer>${a>0&&!this.hideFeatureResults&&this.state!=="executing"?this._messages.buttons.clearResultsCustom.replace("{number}",a.toString()):this._messages.buttons.clearResultsGeneric}</calcite-button>`}renderInputTab(){let{mode:e}=this,{loadError:t}=this._viewModel,a=(t==="no-user-type-extension"||t==="sceneView-not-supported"?r`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this._getLoadError(t)}</div></calcite-notice>`:void 0)??r`${this.showNoStartingPointsWarning&&e==="default"&&this.renderNoStartingPointsWarning()||""}${this.showMissingTerminalWarning&&e==="default"&&this.renderMissingTerminalWarning()||""}<arcgis-utility-network-trace-inputs .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .referenceElement=${this.referenceElement} .view=${this.view??void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisPropertyChange=${i=>{i.stopPropagation(),i.detail.name==="mode"&&(this.mode=i.target.mode)}} @arcgisSelectedNamedTraceConfigurationChange=${this._handleSelectedNamedTraceConfigurationChange} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisUtilityNetworkChange=${this._handleUtilityNetworkChange} ${l(this._handleTraceInputsRefChange)}></arcgis-utility-network-trace-inputs>`;return o(`${this.el.id}__inputs-tab-item`,r`<calcite-tab .selected=${this.activeTab==="input"}><div class="inputs-tab-container">${a}</div></calcite-tab>`)}renderInputFooter(){let{mode:e,state:t}=this;if(e!=="default")return null;let a=t==="disabled"||!this._traceInputsElement?.selectedNamedTraceConfiguration;return r`<calcite-button appearance=solid width=full @click=${this._handleRunTraceButtonClick} slot=footer .disabled=${a}>${this._messages.buttons.getResults}</calcite-button>`}render(){let{activeTab:e,state:t,view:a}=this,{utilityNetwork:i}=this._viewModel;return r`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${()=>this._switchTab("input")} .selected=${e==="input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${()=>this._switchTab("results")} .selected=${e==="results"} .disabled=${t==="disabled"||t==="loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.renderInputTab()}${a&&i?this.renderResultsTab():null}</calcite-tabs>${e==="input"?this.renderInputFooter():null}${e==="results"?this.renderResultsFooter():null}</calcite-panel>`}};m("arcgis-utility-network-trace-analysis",h);return h},"Color","core/Error","core/reactiveUtils","networks/UtilityNetworkTraceAnalysis",a,c,e,f,g)
|
|
2
|
+
import{a as o}from"./HMWOHSHV.js";import g from"./IU2X5JKR.js";import"./PC4PAQXQ.js";import f from"./3LF64HWX.js";import{a as b}from"./UGNN7NUH.js";import e from"./YSTT74WA.js";import c from"./4GN7X3VA.js";import"./JBJJSR3A.js";import"./6G6PWW2Q.js";import a from"./CWMB6MYT.js";import"./VSFDIVO3.js";import{N as l,O as p,U as m,a as u,b as r,p as d,x as s}from"./MTKZBIHD.js";import"./3TTFCHAA.js";export default $arcgis.t(([_,,{when:f},R,,,,w,{a:y}])=>{var $=u`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1);calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}`,C=w(R),h=class extends p{constructor(){super(...arguments),this._messages=b({blocking:!0}),this._viewModel=C(this),this._highlightHandles=[],this._handleRunTraceButtonClick=()=>{this._setTraceWarnings(),!(this.showNoStartingPointsWarning||this.showMissingTerminalWarning)&&(this.showNoStartingPointsWarning=!1,this.showMissingTerminalWarning=!1,this._clearTraceResult(),this._switchTab("results"),this._runTrace())},this._handleTraceInputsRefChange=e=>{e&&(this._traceInputsElement=e)},this._handleTraceResultsRefChange=e=>{e&&(this._traceResultsElement=e)},this.activeTab="input",this.showMissingTerminalWarning=!1,this.showNoStartingPointsWarning=!1,this.mode="default",this.autoDestroyDisabled=!1,this.aggregatedGeometryGraphicsColor=new _([255,255,0,.6]),this.disableHighlightFeatureResults=!1,this.hideActionBar=!1,this.hideFeatureResults=!1,this.state=this._viewModel.state,this.view=this._viewModel.view,this.arcgisHideGraphicsChange=s(),this.arcgisReady=s(),this.arcgisTraceLocationSelectEnd=s(),this.arcgisTraceLocationSelectStart=s(),this.arcgisTraceResultClear=s(),this.arcgisTraceResultFeaturesReady=s()}static{this.properties={activeTab:16,traceError:16,traceResult:16,showMissingTerminalWarning:16,showNoStartingPointsWarning:16,mode:16,autoDestroyDisabled:5,beforeTraceLocationSelectStart:0,aggregatedGeometryGraphicsColor:0,disableHighlightFeatureResults:5,hideActionBar:5,hideFeatureResults:5,label:3,messageOverrides:0,traceResultFeatures:32,referenceElement:1,state:32,view:0}}static{this.styles=$}get _allLayers(){let{view:e}=this;return e?.map?e.map.allLayers.toArray().concat(e.map.allTables.toArray()):[]}get _isSubnetworkNameTraceSelected(){let e=this._traceInputsElement?.selectedNamedTraceConfiguration?.traceType;return!!this._traceInputsElement?.selectedNamedTraceConfiguration?.traceConfiguration?.subnetworkName&&e==="subnetwork"}get traceResultFeatures(){return this._traceResultsElement?.traceResultFeatures??[]}async destroy(){this._clearHighlights(),this._traceResultsElement?.destroy(),this._traceInputsElement?.destroy(),await this.manager.destroy()}load(){this.manager.onLifecycle(()=>[f(()=>!this._viewModel.utilityNetwork,()=>this._switchTab("input"))])}_clearTraceResult(){this.traceResult=void 0,this._clearHighlights(),this._clearAggregatedGeometryGraphics()}_setTraceWarnings(){let e=this._traceInputsElement?.traceLocations,t=this._traceInputsElement?.traceLocationFlagInfos,a=!!this._traceInputsElement?.unTraceConfiguration?.subnetworkName,i=e?.some(n=>n.type==="starting-point"),c=t?.some(n=>!!n.flagProperties.terminalConfiguration&&!n.flagProperties.selectedTerminals?.size)??!1;this.traceError=void 0,this.showNoStartingPointsWarning=!this._isSubnetworkNameTraceSelected&&!i||this._isSubnetworkNameTraceSelected&&!a,this.showMissingTerminalWarning=c}_switchTab(e){this.activeTab=e}_getLoadError(e){let{_messages:t}=this;switch(e){case"no-user-type-extension":return t.errors.loadErrors.noUserTypeExtension;case"no-utility-network":return t.errors.loadErrors.noUtilityNetwork;case"no-view":return t.errors.loadErrors.noView;case"sceneView-not-supported":return t.errors.loadErrors.sceneViewNotSupported;default:return e}}_clearHighlights(){this._highlightHandles.forEach(e=>e.remove()),this._highlightHandles=[]}_clearAggregatedGeometryGraphics(){this._traceResultsElement?.clearAggregatedGeometryGraphics()}_highlightResults(){let{traceResult:e,view:t}=this,a=this._viewModel.utilityNetwork;!a||!e?.elements||!t||a.getObjectIdsFromElements(e.elements).forEach(i=>{let c=t.allLayerViews.find(v=>{let g=v.layer;if(a.isUtilityLayer(g)){let T=Number(i.layerUrl.split("/").pop());return g.layerId===T}return!1});if(!c)return;let n=c.highlight(i.objectIds);this._highlightHandles.push(n)})}async _runTrace(){let e=this._traceInputsElement?.selectedNamedTraceConfiguration,t=this._traceInputsElement?.unTraceConfiguration;if(!(e?.traceType&&t)){d("error",this,"Trace configuration not found");return}let a=this._traceInputsElement?.traceLocations;try{this.traceResult=await this._viewModel.executeTraceConfiguration({traceType:e.traceType,traceConfiguration:t,traceLocations:a??[],resultTypes:e.resultTypes,outSpatialReference:this.view?.spatialReference}),this.disableHighlightFeatureResults||this._highlightResults()}catch(i){y(i,this,"Error while running trace"),this.traceError=i,this.traceResult=void 0}}_handleHideGraphicsChange(e){e.stopPropagation(),this.arcgisHideGraphicsChange.emit(e.detail)}_handleTraceLocationSelectStart(e){e.stopPropagation(),this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented&&e.preventDefault()}_handleTraceLocationSelectEnd(e){e.stopPropagation(),this.arcgisTraceLocationSelectEnd.emit()}_handleTraceResultFeaturesReady(e){e.stopPropagation(),this.arcgisTraceResultFeaturesReady.emit()}_handleAggregatedGeometryGraphicsColorChange(e){let t=e.detail;this.aggregatedGeometryGraphicsColor=new _(t)}_handleSelectedNamedTraceConfigurationChange(){this.showNoStartingPointsWarning=!1,this.showMissingTerminalWarning=!1}_handleUtilityNetworkChange(){this._viewModel.utilityNetwork=this._traceInputsElement?.selectedUtilityNetwork}renderMissingTerminalWarning(){return r`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this.showMissingTerminalWarning=!1}><div slot=title>${this._messages.errors.missingTerminalTitle}</div><div slot=message>${this._messages.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`}renderNoStartingPointsWarning(){return r`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this.showNoStartingPointsWarning=!1}><div slot=title>${this._messages.errors.noStartingPointsTitle}</div><div slot=message>${this._messages.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`}renderResultsTab(){return o(`${this.el.id}__results-tab-item`,r`<calcite-tab .selected=${this.activeTab==="results"}>${this.state==="executing"?r`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>`:r`<arcgis-utility-network-trace-results .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .layers=${this._allLayers} .messageOverrides=${{resultFeaturesAreHidden:this.messageOverrides?.resultFeaturesAreHidden}} .referenceElement=${this.referenceElement} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork??void 0} .view=${this.view??void 0} @arcgisAggregatedGeometryGraphicsColorChange=${this._handleAggregatedGeometryGraphicsColorChange} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} ${l(this._handleTraceResultsRefChange)}></arcgis-utility-network-trace-results>`}</calcite-tab>`)}renderResultsFooter(){let{traceResult:e}=this,t=!!(e?.elements.length||e?.globalFunctionResults.length||e?.aggregatedGeometry)&&this._traceResultsElement?.state==="ready",a=this._traceResultsElement?.numResults??0;return r`<calcite-button appearance=outline width=full @click=${()=>{this._switchTab("input"),this._clearTraceResult(),this.arcgisTraceResultClear.emit()}} .disabled=${!t} slot=footer>${a>0&&!this.hideFeatureResults&&this.state!=="executing"?this._messages.buttons.clearResultsCustom.replace("{number}",a.toString()):this._messages.buttons.clearResultsGeneric}</calcite-button>`}renderInputTab(){let{mode:e}=this,{loadError:t}=this._viewModel,a=(t==="no-user-type-extension"||t==="sceneView-not-supported"?r`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this._getLoadError(t)}</div></calcite-notice>`:void 0)??r`${this.showNoStartingPointsWarning&&e==="default"&&this.renderNoStartingPointsWarning()||""}${this.showMissingTerminalWarning&&e==="default"&&this.renderMissingTerminalWarning()||""}<arcgis-utility-network-trace-inputs .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .referenceElement=${this.referenceElement} .view=${this.view??void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisPropertyChange=${i=>{i.stopPropagation(),i.detail.name==="mode"&&(this.mode=i.target.mode)}} @arcgisSelectedNamedTraceConfigurationChange=${this._handleSelectedNamedTraceConfigurationChange} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisUtilityNetworkChange=${this._handleUtilityNetworkChange} ${l(this._handleTraceInputsRefChange)}></arcgis-utility-network-trace-inputs>`;return o(`${this.el.id}__inputs-tab-item`,r`<calcite-tab .selected=${this.activeTab==="input"}><div class="inputs-tab-container">${a}</div></calcite-tab>`)}renderInputFooter(){let{mode:e,state:t}=this;if(e!=="default")return null;let a=t==="disabled"||!this._traceInputsElement?.selectedNamedTraceConfiguration;return r`<calcite-button appearance=solid width=full @click=${this._handleRunTraceButtonClick} slot=footer .disabled=${a}>${this._messages.buttons.getResults}</calcite-button>`}render(){let{activeTab:e,state:t,view:a}=this,{utilityNetwork:i}=this._viewModel;return r`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${()=>this._switchTab("input")} .selected=${e==="input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${()=>this._switchTab("results")} .selected=${e==="results"} .disabled=${t==="disabled"||t==="loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.renderInputTab()}${a&&i?this.renderResultsTab():null}</calcite-tabs>${e==="input"?this.renderInputFooter():null}${e==="results"?this.renderResultsFooter():null}</calcite-panel>`}};m("arcgis-utility-network-trace-analysis",h);return h},"Color","core/Error","core/reactiveUtils","networks/UtilityNetworkTraceAnalysis",a,c,e,f,g)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./IU2X5JKR.js";import{a as h}from"./PC4PAQXQ.js";import{p as c}from"./MTKZBIHD.js";export default $arcgis.t(([{forceInteractive:m},f,{property:o,subclass:g},{ignoreAbortErrors:A},{when:I,watch:v,on:O,whenOnce:F},{getDefaultUnitForView:b},{b:u,c:d,d:_,e:y}])=>{var T=Object.defineProperty,R=Object.getOwnPropertyDescriptor,n=(s,i,t,a)=>{for(var r=a>1?void 0:a?R(i,t):i,l=s.length-1,p;l>=0;l--)(p=s[l])&&(r=(a?p(i,t,r):p(r))||r);return a&&r&&T(i,t,r),r},w=Symbol("interactiveHandle"),e=class extends f{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 s=()=>{!this._changeFromReconnect&&!this._viewHasAnalysis&&(this._ownsAnalysis=!1);let i=!this._changeFromReconnect;this._changeFromReconnect=!1,i&&this._scheduleViewReconnect()};this.addHandles([I(()=>this.view?.ready&&!this.supported,()=>{this._loggedUnsupportedErrorMessage||c("error",this,this.unsupportedErrorMessage)},{sync:!0,initial:!0}),v(()=>[this.analysis,this._viewHasAnalysis],s,{sync:!0}),O(()=>this.view,"analysis-view-destroy",i=>{i.analysis===this.analysis&&s()}),v(()=>({view:this.view,ready:!!this.view?.ready,supported:this.supported}),({view:i},t)=>{let a=t?.view;i!==a&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(a)),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?b(this.view):"metric"}get active(){return this._userOperationInfo?.state==="running"}set analysis(s){s!==this._get("analysis")&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(this.view),this._setExternalAnalysis(s),this._scheduleViewReconnect())}get connectingToView(){return!!this._reconnectViewTask}get disabled(){return!this.view?.ready||!this.supported}set hideVisualization(s){this._set("hideVisualization",s),this.analysisView&&(this.analysisView.visible=!s)}get ready(){return!!this.analysisView&&!this.connectingToView}get supported(){return!this.view||this.supportedViewType==="both"||this.view.type===this.supportedViewType}get _viewHasAnalysis(){let{view:s}=this;return s?.analyses.includes(this.analysis)===!0}clear(){this._userOperationInfo=h(this._userOperationInfo),this.clearAnalysis()}async start(s){if(this.hideVisualization){c("warn",this,"Cannot start analysis when not visible");return}this.stop(),s?.clear!==!1&&this.clear();let i={task:null,abort:null,state:"pending"},t=y(async a=>{if(i.state="wait-for-view-ready",await F(()=>this.ready,a),i.state="running",!this.analysisView||!this.view)return;this.operationState="active";let r=s?.operation?.({signal:a})??this.place({signal:a});await A(r)});return t.promise.finally(()=>{(this._userOperationInfo===i||!this._userOperationInfo)&&(this.operationState="inactive")}),i.task=t,i.abort=()=>t.abort(),this._userOperationInfo=i,await t.promise}stop(){this._userOperationInfo=h(this._userOperationInfo)}place(s){throw new Error("place() not implemented for this analysis view model")}clearAnalysis(){}onConnectToAnalysisView(s){}onDisconnectFromAnalysisView(){}_scheduleViewReconnect(){this._reconnectViewTask=h(this._reconnectViewTask);let s=y(async i=>{try{await this._reconnectView(i)}catch(t){if(u(i),!_(t)){c("warn",this,`Failed to use analysis in view model. ${String(t)}`);return}throw t}finally{s===this._reconnectViewTask&&(this._reconnectViewTask=void 0)}});this._reconnectViewTask=s}async _reconnectView(s){let{view:i}=this,t=i?.ready&&this.supported,a=this.analysis;if(this._userOperationInfo=V(this._userOperationInfo),this._disconnectFromView(i),!t||!i||!a)return;this._ownsAnalysis&&(this._changeFromReconnect=!0,i.analyses.add(a));let r=await i.whenAnalysisView(a);if(this.analysisView=r,d(s)){this._userOperationInfo=V(this._userOperationInfo);return}r.visible=!this.hideVisualization,this.shouldForceInteractive&&this.addHandles(m(r),w),this.onConnectToAnalysisView(r)}_disconnectFromView(s){this._ownsAnalysis&&s?.analyses.includes(this.analysis)&&(this._changeFromReconnect=!0,this.clearAnalysis(),s.analyses.remove(this.analysis)),this.onDisconnectFromAnalysisView(),this.removeHandles(w),this.analysisView=void 0}_setExternalAnalysis(s){this.analysisView&&!this._ownsAnalysis&&(this.analysisView.visible=void 0,this.removeHandles(w)),this.analysisView=void 0,this._ownsAnalysis=!1,this._set("analysis",s),this._changeFromReconnect=!1}};n([o()],e.prototype,"defaultMeasurementSystem",1);n([o()],e.prototype,"active",1);n([o()],e.prototype,"analysis",1);n([o()],e.prototype,"connectingToView",1);n([o()],e.prototype,"disabled",1);n([o()],e.prototype,"hideVisualization",1);n([o()],e.prototype,"operationState",2);n([o()],e.prototype,"ready",1);n([o()],e.prototype,"supported",1);n([o()],e.prototype,"view",2);n([o()],e.prototype,"_ownsAnalysis",2);n([o()],e.prototype,"_viewHasAnalysis",1);n([o()],e.prototype,"_reconnectViewTask",2);n([o()],e.prototype,"analysisView",2);n([o()],e.prototype,"shouldForceInteractive",2);e=n([g("esri.components.support.AnalysisViewModel")],e);function V(s){return s?.state==="running"?(s.abort(),null):s}return e},"applications/Components/analysisUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","core/reactiveUtils","applications/Components/getDefaultUnits",a)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"componentLabel":"Coordinate conversion","abbreviatedDirections":{"north":"N","south":"S","east":"E","west":"W"},"addConversion":"Add conversion","alertLabel":"Coordinate conversion alert","
|
|
1
|
+
{"componentLabel":"Coordinate conversion","abbreviatedDirections":{"north":"N","south":"S","east":"E","west":"W"},"addConversion":"Add conversion","alertLabel":"Coordinate conversion alert","captureMode":"Capture mode","display":"Display","convert":"Convert","convertAndGoTo":"Convert and go to location","coordinates":"Coordinates","copyLabel":"Copy coordinate","copyElevationLabel":"Copy elevation","copySuccessMessage":"Copied","defaultPattern":"Reset to default","done":"Done","elevation":"Elevation","selectElevationUnit":"Select elevation unit","format":"Format","formatDescriptions":{"dd":"Decimal Degrees° N/S/E/W","dms":"Degrees° Minutes' Seconds\" N/S/E/W","ddm":"Degrees° Decimal Minutes' N/S/E/W","mgrs":"Military Grid Reference System","usng":"United States National Grid","utm":"Universal Transverse Mercator","xy":"Longitude, Latitude","basemap":"Easting, Northing in Basemap Units","custom":"Custom Format"},"input":"Input","inputCoordTitle":"Input coordinate","inputFormat":"Input format","invalidCoordinate":"Invalid coordinate","liveMode":"Live mode","locationOffBasemap":"Input coordinate is outside basemap extent","noBasemap":"No basemap available.","noDisplayProperties":"The selected format is missing the defaultPattern and coordinateSegments properties.","noElevation":"No elevation","noLocation":"No position","preview":"Preview","selectFormat":"Select format","selectFormats":"Select formats","settingsTitleWithFormat":"Format settings ({formatName})"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"componentLabel":"المعالم","zoom":"تكبير/تصغير إلى","browseAggregatedFeatures":"بيت_Browse features________________لاحقة","aggregatedFeatures":"بيت_Aggregated features____________________لاحقة","aggregatedFeaturesPlaceholder":"بيت_Filter features________________لاحقة","noAggregatedFeatures":"بيت_No aggregated features_______________________لاحقة","featuresList":"المعالم","total":"الإجمالي: {total}","pageText":"{index} من {total}","selectFeature":"تحديد معلم","down":"أسفل","first":"الأول","last":"أخير","next":"التالي","page":"الصفحة","previous":"السابق","up":"أعلى","untitled":"بلا عنوان","loading":"تحميل","back":"رجوع","errorMessage":"خطأ","returnToInitialFeature":"الرجوع إلى المعلم الأوَّلي"}
|
|
1
|
+
{"componentLabel":"المعالم","zoom":"تكبير/تصغير إلى","browseAggregatedFeatures":"بيت_Browse features________________لاحقة","aggregatedFeatures":"بيت_Aggregated features____________________لاحقة","aggregatedFeaturesPlaceholder":"بيت_Filter features________________لاحقة","collapse":"بيت_Collapse features__________________لاحقة","expand":"بيت_Expand features________________لاحقة","noAggregatedFeatures":"بيت_No aggregated features_______________________لاحقة","featuresList":"المعالم","total":"الإجمالي: {total}","pageText":"{index} من {total}","selectFeature":"تحديد معلم","down":"أسفل","first":"الأول","last":"أخير","next":"التالي","page":"الصفحة","previous":"السابق","up":"أعلى","untitled":"بلا عنوان","loading":"تحميل","back":"رجوع","errorMessage":"خطأ","returnToInitialFeature":"الرجوع إلى المعلم الأوَّلي"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"componentLabel":"Обекти","zoom":"Приближаване","browseAggregatedFeatures":"й_Browse features________________й","aggregatedFeatures":"й_Aggregated features____________________й","aggregatedFeaturesPlaceholder":"й_Filter features________________й","noAggregatedFeatures":"й_No aggregated features_______________________й","featuresList":"Обекти","total":"Общо: {total}","pageText":"{index} от {total}","selectFeature":"Избиране на обект","down":"Надолу","first":"Първи","last":"Последен","next":"Напред","page":"Страница","previous":"Предишно","up":"Нагоре","untitled":"Без заглавие","loading":"Зареждане","back":"Назад","errorMessage":"Грешка","returnToInitialFeature":"Връщане към първоначалния обект"}
|
|
1
|
+
{"componentLabel":"Обекти","zoom":"Приближаване","browseAggregatedFeatures":"й_Browse features________________й","aggregatedFeatures":"й_Aggregated features____________________й","aggregatedFeaturesPlaceholder":"й_Filter features________________й","collapse":"й_Collapse features__________________й","expand":"й_Expand features________________й","noAggregatedFeatures":"й_No aggregated features_______________________й","featuresList":"Обекти","total":"Общо: {total}","pageText":"{index} от {total}","selectFeature":"Избиране на обект","down":"Надолу","first":"Първи","last":"Последен","next":"Напред","page":"Страница","previous":"Предишно","up":"Нагоре","untitled":"Без заглавие","loading":"Зареждане","back":"Назад","errorMessage":"Грешка","returnToInitialFeature":"Връщане към първоначалния обект"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"componentLabel":"Geoobjekte","zoom":"Povećaj na","browseAggregatedFeatures":"Č_Browse features________________ž","aggregatedFeatures":"Č_Aggregated features____________________ž","aggregatedFeaturesPlaceholder":"Č_Filter features________________ž","noAggregatedFeatures":"Č_No aggregated features_______________________ž","featuresList":"Geoobjekte","total":"Ukupno: {total}","pageText":"{index} od {total}","selectFeature":"Odaberi geoobjekt","down":"Dolje","first":"Prvo","last":"Posljednje","next":"Sljedeće","page":"Stranica","previous":"Prethodno","up":"Gore","untitled":"Neimenovano","loading":"Učitavanje","back":"Natrag","errorMessage":"Pogreška","returnToInitialFeature":"Povratak na početnu značajku"}
|
|
1
|
+
{"componentLabel":"Geoobjekte","zoom":"Povećaj na","browseAggregatedFeatures":"Č_Browse features________________ž","aggregatedFeatures":"Č_Aggregated features____________________ž","aggregatedFeaturesPlaceholder":"Č_Filter features________________ž","collapse":"Č_Collapse features__________________ž","expand":"Č_Expand features________________ž","noAggregatedFeatures":"Č_No aggregated features_______________________ž","featuresList":"Geoobjekte","total":"Ukupno: {total}","pageText":"{index} od {total}","selectFeature":"Odaberi geoobjekt","down":"Dolje","first":"Prvo","last":"Posljednje","next":"Sljedeće","page":"Stranica","previous":"Prethodno","up":"Gore","untitled":"Neimenovano","loading":"Učitavanje","back":"Natrag","errorMessage":"Pogreška","returnToInitialFeature":"Povratak na početnu značajku"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"componentLabel":"Entitats","zoom":"Aplica el zoom a","browseAggregatedFeatures":"ó_Browse features________________à","aggregatedFeatures":"ó_Aggregated features____________________à","aggregatedFeaturesPlaceholder":"ó_Filter features________________à","noAggregatedFeatures":"ó_No aggregated features_______________________à","featuresList":"Entitats","total":"Total: {total}","pageText":"{index} de {total}","selectFeature":"Seleccioneu una entitat","down":"Avall","first":"Primer","last":"Últim","next":"Següent","page":"Pàgina","previous":"Anterior","up":"Amunt","untitled":"Sense títol","loading":"S'està carregant...","back":"Enrere","errorMessage":"Error","returnToInitialFeature":"Torna a l'entitat inicial"}
|
|
1
|
+
{"componentLabel":"Entitats","zoom":"Aplica el zoom a","browseAggregatedFeatures":"ó_Browse features________________à","aggregatedFeatures":"ó_Aggregated features____________________à","aggregatedFeaturesPlaceholder":"ó_Filter features________________à","collapse":"ó_Collapse features__________________à","expand":"ó_Expand features________________à","noAggregatedFeatures":"ó_No aggregated features_______________________à","featuresList":"Entitats","total":"Total: {total}","pageText":"{index} de {total}","selectFeature":"Seleccioneu una entitat","down":"Avall","first":"Primer","last":"Últim","next":"Següent","page":"Pàgina","previous":"Anterior","up":"Amunt","untitled":"Sense títol","loading":"S'està carregant...","back":"Enrere","errorMessage":"Error","returnToInitialFeature":"Torna a l'entitat inicial"}
|