@arcgis/map-components 5.2.0-next.136 → 5.2.0-next.137
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/{CG5EOZ5E.js → 276JOEH5.js} +1 -1
- package/dist/cdn/{DC4IVPQR.js → 27SNQYDX.js} +1 -1
- package/dist/cdn/{IKSUH4JU.js → 2AHPZLDU.js} +1 -1
- package/dist/cdn/{FKJYZGQV.js → 2AQYGR7K.js} +1 -1
- package/dist/cdn/{PZCNDQCM.js → 2EX7U37S.js} +1 -1
- package/dist/cdn/{OT6BZEVU.js → 2FUHDWJC.js} +1 -1
- package/dist/cdn/{AYFIXEVM.js → 2J3UOPGJ.js} +1 -1
- package/dist/cdn/{N7DY2QVI.js → 2QSFXHH3.js} +1 -1
- package/dist/cdn/{BDZ5LS7M.js → 2V5W5ALT.js} +1 -1
- package/dist/cdn/{H5W2Z2ZP.js → 2XFC7FKR.js} +1 -1
- package/dist/cdn/{NGOHAYP2.js → 3746LNYV.js} +1 -1
- package/dist/cdn/{CPKZEXWU.js → 3ALNFDAR.js} +1 -1
- package/dist/cdn/{TW3HJT3L.js → 3AMRNVK5.js} +1 -1
- package/dist/cdn/{AMWU2257.js → 3DSZKELU.js} +1 -1
- package/dist/cdn/{KYJLH5NA.js → 3DUIQTNG.js} +1 -1
- package/dist/cdn/{3OSRTFM7.js → 3ERS7RUZ.js} +1 -1
- package/dist/cdn/3IEK6I4A.js +2 -0
- package/dist/cdn/{MCU53PRF.js → 3JJWAMPV.js} +1 -1
- package/dist/cdn/{HJLEBQWT.js → 3JKLGU3I.js} +1 -1
- package/dist/cdn/{EV3HM55D.js → 3MAFD37H.js} +1 -1
- package/dist/cdn/{JEOUMVSL.js → 3MQPSWL6.js} +1 -1
- package/dist/cdn/{FDDVTJUT.js → 43ZSEAIE.js} +1 -1
- package/dist/cdn/{6B7OAZCR.js → 44NWCQ3H.js} +1 -1
- package/dist/cdn/{I6R62DOM.js → 45BUMM7P.js} +1 -1
- package/dist/cdn/{F6AE2AOX.js → 4F2ZWXO2.js} +1 -1
- package/dist/cdn/{ZYFORDEE.js → 4PGC5LTJ.js} +1 -1
- package/dist/cdn/{BMMTFWDL.js → 4Q4G4CNX.js} +1 -1
- package/dist/cdn/{3R6PNKAZ.js → 4S6SFZIL.js} +1 -1
- package/dist/cdn/{65BUPBAJ.js → 4SX63TIS.js} +1 -1
- package/dist/cdn/{3EQJPQ6F.js → 4Z7UMO6K.js} +1 -1
- package/dist/cdn/{3SJHCSFU.js → 55AW5TTI.js} +1 -1
- package/dist/cdn/{SFO6AP7T.js → 57WVZSOG.js} +1 -1
- package/dist/cdn/{YFCVMQTJ.js → 5U46L4OS.js} +1 -1
- package/dist/cdn/{JDF3QJHI.js → 5V2DO6ZW.js} +1 -1
- package/dist/cdn/{YFDOLBYH.js → 5WEBD55E.js} +1 -1
- package/dist/cdn/{BTC4LBE2.js → 5XVK5ZBK.js} +1 -1
- package/dist/cdn/{ZONAK2AT.js → 62F5KELU.js} +1 -1
- package/dist/cdn/{SGICUDOM.js → 6BLFYSDN.js} +1 -1
- package/dist/cdn/{VIMZLJRR.js → 6G5V7CRA.js} +1 -1
- package/dist/cdn/{ZVIW6QGG.js → 6IVEAPNI.js} +1 -1
- package/dist/cdn/{IL5HIKPU.js → 6J55YK5V.js} +1 -1
- package/dist/cdn/{TNCMYQSA.js → 6QJR3DJW.js} +1 -1
- package/dist/cdn/{F47MOBA6.js → 6TLWZEWR.js} +1 -1
- package/dist/cdn/{5JJW2F4I.js → 6YAG53VX.js} +1 -1
- package/dist/cdn/{AN5VDLBT.js → 6ZVO5NHN.js} +1 -1
- package/dist/cdn/{7SV2YDBW.js → 72Y7QTEN.js} +1 -1
- package/dist/cdn/{BQ7NE3DK.js → 7EQZKGJN.js} +1 -1
- package/dist/cdn/{CM7JI36S.js → 7JKQBKSB.js} +1 -1
- package/dist/cdn/{U4HYLVBE.js → 7JSXMSEG.js} +1 -1
- package/dist/cdn/{YVNN7BY7.js → 7N3DOELC.js} +1 -1
- package/dist/cdn/{LWH2GP6K.js → 7OWBS7XZ.js} +1 -1
- package/dist/cdn/{JNB3AQXF.js → 7Q6VLSIF.js} +1 -1
- package/dist/cdn/{JQUJV7QG.js → 7QOFSLJB.js} +1 -1
- package/dist/cdn/{3NNYNR4J.js → 7U6NRRQA.js} +1 -1
- package/dist/cdn/{QR64BMEG.js → 7YLDIVUT.js} +1 -1
- package/dist/cdn/{EF7GIYDU.js → 7YPRQCAD.js} +1 -1
- package/dist/cdn/{R54YGQ26.js → A2SML6M2.js} +1 -1
- package/dist/cdn/{L4IWJ5HD.js → A4GXQYJT.js} +1 -1
- package/dist/cdn/{OHCCNZCY.js → A76HBA6R.js} +1 -1
- package/dist/cdn/{W7QOIJAF.js → AA7WI5WW.js} +1 -1
- package/dist/cdn/{75OH7AOP.js → AAKBSWDH.js} +1 -1
- package/dist/cdn/ABPL62RR.js +2 -0
- package/dist/cdn/{LDUBRVF7.js → AKAINU52.js} +1 -1
- package/dist/cdn/{L6FOENSG.js → AMJGX73U.js} +1 -1
- package/dist/cdn/{URWPOPI7.js → AW3C3DKA.js} +1 -1
- package/dist/cdn/AY7H4VHX.js +2 -0
- package/dist/cdn/{K3TUMGVI.js → B42FANDV.js} +1 -1
- package/dist/cdn/{KS2KPSVW.js → B5GJ5JEW.js} +1 -1
- package/dist/cdn/{7WPN2Q4H.js → BPJVF2UL.js} +1 -1
- package/dist/cdn/{WIVG25HH.js → BSTO7TGD.js} +1 -1
- package/dist/cdn/{ILRRVKYV.js → BT7MBQAG.js} +1 -1
- package/dist/cdn/{CWCTE5IC.js → CFPD5HGW.js} +1 -1
- package/dist/cdn/{MQIR4CZ4.js → CGN2BQTU.js} +1 -1
- package/dist/cdn/{DVWF3ZI2.js → CL3HYAJB.js} +1 -1
- package/dist/cdn/{ZB2IZQYA.js → CV32R3JN.js} +1 -1
- package/dist/cdn/{NS22DZHN.js → CX45KI3X.js} +1 -1
- package/dist/cdn/{4J5X3RUS.js → CZOM5NWO.js} +1 -1
- package/dist/cdn/{2X677DFU.js → CZQ2TKVF.js} +1 -1
- package/dist/cdn/{T6GHF2C6.js → D2EWOBIL.js} +1 -1
- package/dist/cdn/{GHJBVA4W.js → D4NEQTQR.js} +1 -1
- package/dist/cdn/{M5N2K22Y.js → D7X7YG2F.js} +1 -1
- package/dist/cdn/{CODEI67F.js → DKT2KG4V.js} +1 -1
- package/dist/cdn/{Y7LCZTZN.js → DMYMCGHJ.js} +1 -1
- package/dist/cdn/DQIOYHTH.js +2 -0
- package/dist/cdn/{QZ5LJH35.js → DSDPDMLP.js} +1 -1
- package/dist/cdn/{ERHYWMHC.js → DZWDOJZM.js} +1 -1
- package/dist/cdn/{M5K25M52.js → EAUDMHFA.js} +1 -1
- package/dist/cdn/{NDZTQ5ZP.js → EAWNLTVO.js} +1 -1
- package/dist/cdn/{EWCRUGKH.js → ECWWQI7V.js} +1 -1
- package/dist/cdn/{A76WBNBW.js → EESGZV4K.js} +1 -1
- package/dist/cdn/{I2BIPOZQ.js → EKR2SAT2.js} +2 -2
- package/dist/cdn/{526WYJC7.js → EKYJUYXH.js} +1 -1
- package/dist/cdn/{HGGXNI56.js → EOTKZ4F3.js} +1 -1
- package/dist/cdn/{MN5HTWFG.js → EQTOPYEM.js} +1 -1
- package/dist/cdn/{WMARZKLI.js → ER2RSSPF.js} +1 -1
- package/dist/cdn/{WQQBKYQP.js → ET4ZLYK5.js} +1 -1
- package/dist/cdn/{IZBEIVBQ.js → EXH7T4QA.js} +1 -1
- package/dist/cdn/{PSTY67SN.js → F4O7DFPZ.js} +1 -1
- package/dist/cdn/{UONIIMIO.js → FATDNJDN.js} +1 -1
- package/dist/cdn/{F6WCDCVZ.js → FFJCCMDZ.js} +1 -1
- package/dist/cdn/{MRLCJSMH.js → FHDODVXQ.js} +1 -1
- package/dist/cdn/{F4GSGW6P.js → FKKIIIIL.js} +1 -1
- package/dist/cdn/{4RUPG7KN.js → FKQMO7IP.js} +1 -1
- package/dist/cdn/FMBYMUUP.js +2 -0
- package/dist/cdn/{5X5STRNV.js → FNSGB45I.js} +1 -1
- package/dist/cdn/{ILQQNZAY.js → FPYAF2JF.js} +1 -1
- package/dist/cdn/{EK7HMUVN.js → FR6WQYRX.js} +1 -1
- package/dist/cdn/{INSKARCW.js → FRGKA6VF.js} +1 -1
- package/dist/cdn/{XR33HMFY.js → FSIR3Q5K.js} +1 -1
- package/dist/cdn/{Q4EDWHEQ.js → FUHDYY2C.js} +1 -1
- package/dist/cdn/G7BSJ3HI.js +2 -0
- package/dist/cdn/{H5IDCIGU.js → GF7RZ4IH.js} +1 -1
- package/dist/cdn/{2DB2WQZ2.js → GFHRW7Q3.js} +1 -1
- package/dist/cdn/{ERYQD36J.js → GJW3WBSJ.js} +1 -1
- package/dist/cdn/{BEAV4EJ5.js → GTRQNPQ7.js} +1 -1
- package/dist/cdn/{YMRXKAOB.js → GV3IXBBT.js} +1 -1
- package/dist/cdn/{3DRCMLE6.js → H4UVQDZP.js} +1 -1
- package/dist/cdn/{Y76FKVQF.js → H6664MSX.js} +1 -1
- package/dist/cdn/{6JQ33U5S.js → HDY2VVQT.js} +1 -1
- package/dist/cdn/{UMQLYM36.js → HL3NRTKO.js} +1 -1
- package/dist/cdn/{4XLFPSJA.js → HLGU3U73.js} +1 -1
- package/dist/cdn/{OSMCEUNX.js → HM52HZIP.js} +1 -1
- package/dist/cdn/{YEDKH6UB.js → HP3L6VCW.js} +1 -1
- package/dist/cdn/{QHVMGF72.js → HPDEHYUR.js} +1 -1
- package/dist/cdn/{TWCK5GSX.js → HWJFBZLB.js} +1 -1
- package/dist/cdn/{JFA3BQNT.js → HX4CDWS4.js} +1 -1
- package/dist/cdn/{3SU3DIGX.js → HZFVQECI.js} +1 -1
- package/dist/cdn/{PIVEKSAG.js → IDOS6KP5.js} +1 -1
- package/dist/cdn/{RWGOXXTN.js → IDXQSKKB.js} +1 -1
- package/dist/cdn/{BEUJMB3Y.js → IFMBHZHX.js} +1 -1
- package/dist/cdn/{XEPOSXGI.js → IHONRMLO.js} +1 -1
- package/dist/cdn/{XUMOMEIU.js → ILRRFR6A.js} +1 -1
- package/dist/cdn/{7JCDDJEO.js → IRZGEFF5.js} +1 -1
- package/dist/cdn/{F3I3X5LJ.js → IU7VNFYQ.js} +1 -1
- package/dist/cdn/{HJS42AP6.js → J6O4QZ4A.js} +1 -1
- package/dist/cdn/{JXXITWQ3.js → JBKQB24G.js} +1 -1
- package/dist/cdn/{5F5KCXDO.js → JGFXEJ2F.js} +1 -1
- package/dist/cdn/{7HYL6HZM.js → JMXO55BZ.js} +1 -1
- package/dist/cdn/{4UYEQJ5Q.js → JOUEH4P2.js} +1 -1
- package/dist/cdn/{RGYBVXLH.js → JPKB745U.js} +1 -1
- package/dist/cdn/{PX2NWKEU.js → JPV3UKED.js} +1 -1
- package/dist/cdn/{WIAVK47T.js → K63E6F2R.js} +1 -1
- package/dist/cdn/{KCSLK5X4.js → K6DG7Q2R.js} +1 -1
- package/dist/cdn/{JNNG6SGW.js → KBE3EGCX.js} +1 -1
- package/dist/cdn/{SSNCB7LI.js → KBHLE7HT.js} +1 -1
- package/dist/cdn/{PISCWAG5.js → KG75OVSI.js} +1 -1
- package/dist/cdn/{4HPOOW2U.js → KJ6TWPZT.js} +1 -1
- package/dist/cdn/{MVBMO6GU.js → KKMKYRXT.js} +1 -1
- package/dist/cdn/{TXCP3D4T.js → KM2GXXBO.js} +1 -1
- package/dist/cdn/{UHVGSQZX.js → KT6XHXWT.js} +1 -1
- package/dist/cdn/{6XE3DEYV.js → KVID3JTE.js} +1 -1
- package/dist/cdn/{ILB7T57D.js → KY3ND2AY.js} +1 -1
- package/dist/cdn/{UGZMQPKL.js → LE373OSG.js} +1 -1
- package/dist/cdn/{ZTJ5RKET.js → LL7R6ETJ.js} +1 -1
- package/dist/cdn/{4TV72DOP.js → LMFSC4DB.js} +1 -1
- package/dist/cdn/{RQ3C7MN3.js → LNVKGGEJ.js} +1 -1
- package/dist/cdn/{WO4RKS5X.js → LT6PQIWR.js} +1 -1
- package/dist/cdn/{UBRGB2BM.js → LVCLEIMR.js} +1 -1
- package/dist/cdn/{NST47N4L.js → LWXWJVPR.js} +1 -1
- package/dist/cdn/{VM22FCS7.js → M5SZ7IHC.js} +1 -1
- package/dist/cdn/{NUOVRUNM.js → M64WT6LH.js} +1 -1
- package/dist/cdn/MA3URN32.js +2 -0
- package/dist/cdn/{ORZZVKYZ.js → MPKC74OS.js} +1 -1
- package/dist/cdn/{SNMWKAFO.js → MTV7N4IX.js} +1 -1
- package/dist/cdn/{BAHKHMBR.js → MZO3OOLZ.js} +1 -1
- package/dist/cdn/{XJJQGFWN.js → N4MW5VBL.js} +1 -1
- package/dist/cdn/{X633YHFG.js → NAQIQCPU.js} +1 -1
- package/dist/cdn/{OC7FE4UI.js → NEGRFTGQ.js} +1 -1
- package/dist/cdn/{6G2OC6X3.js → NIZSEYT5.js} +1 -1
- package/dist/cdn/{7YB4E7JF.js → NWHZD76J.js} +1 -1
- package/dist/cdn/{DOURJ47L.js → O4HMFAR4.js} +1 -1
- package/dist/cdn/{DM7LIJDU.js → O57LOC52.js} +1 -1
- package/dist/cdn/{KCHYYDUK.js → O7Y5ESTY.js} +1 -1
- package/dist/cdn/{7MTVNJT6.js → ODRTGQPR.js} +1 -1
- package/dist/cdn/{JMKQ5ZE3.js → OGAUCGGG.js} +1 -1
- package/dist/cdn/{2KVWP7C2.js → OX55WUIT.js} +1 -1
- package/dist/cdn/{7NFLX5FY.js → OZRG346X.js} +1 -1
- package/dist/cdn/{HDZY2M4D.js → P2O4PYOD.js} +2 -2
- package/dist/cdn/{YIXQRLNL.js → PC227EUS.js} +1 -1
- package/dist/cdn/{XUUOPL4Q.js → Q22KIHFH.js} +1 -1
- package/dist/cdn/{NAIKAKHU.js → Q2RZMF4G.js} +1 -1
- package/dist/cdn/{EBF7F6FV.js → Q5FKIZZ2.js} +1 -1
- package/dist/cdn/{YL32ZRHM.js → Q6DDRM2O.js} +1 -1
- package/dist/cdn/{G5YUYYQA.js → QDXORLKV.js} +1 -1
- package/dist/cdn/{D2TVY2FV.js → QJWFZYU4.js} +1 -1
- package/dist/cdn/{I2BUUAYU.js → QRKOCGQA.js} +1 -1
- package/dist/cdn/{VZE75HIS.js → QULOCPMK.js} +1 -1
- package/dist/cdn/{CBB2T3RI.js → R2WT5JJH.js} +1 -1
- package/dist/cdn/{LK3YGRVI.js → RAOEF6YV.js} +1 -1
- package/dist/cdn/{EKRYB356.js → RKTSSP3O.js} +1 -1
- package/dist/cdn/{G4EYCW4W.js → RMIXX6DI.js} +1 -1
- package/dist/cdn/{I6UNOZIU.js → S62FQUEJ.js} +1 -1
- package/dist/cdn/{KHOIXBJX.js → S676FY5E.js} +1 -1
- package/dist/cdn/{2CLE72G4.js → SLMVVKZQ.js} +1 -1
- package/dist/cdn/{AB5ED2JR.js → SOFRKY5U.js} +1 -1
- package/dist/cdn/{RL5WBJH2.js → SREWXCMU.js} +1 -1
- package/dist/cdn/{VSUOUORA.js → STN7DK4L.js} +1 -1
- package/dist/cdn/{GQJMWPC4.js → SXK337TP.js} +1 -1
- package/dist/cdn/{7O4U5KJX.js → SZSNXJFV.js} +1 -1
- package/dist/cdn/{DN5C7ZD7.js → T3TH5DE4.js} +1 -1
- package/dist/cdn/{NCIDWMPT.js → U5RLZAPF.js} +1 -1
- package/dist/cdn/{NEK27Q3B.js → UARFO4JX.js} +1 -1
- package/dist/cdn/{6R4JCD5X.js → UDDCWU3X.js} +1 -1
- package/dist/cdn/{QAXZ4V3U.js → UQS5IGQW.js} +1 -1
- package/dist/cdn/{55MKAVVI.js → UVWYEW4V.js} +1 -1
- package/dist/cdn/{PSG5IQUE.js → UXDGVSAC.js} +1 -1
- package/dist/cdn/{XMP3WRQ6.js → UYATOYWO.js} +1 -1
- package/dist/cdn/{5YQC25ID.js → V2BYIBVC.js} +1 -1
- package/dist/cdn/{FZBSTBH3.js → V2TJMHWI.js} +1 -1
- package/dist/cdn/V7OEXGEA.js +2 -0
- package/dist/cdn/{RH5K6YB3.js → VCSX4G2U.js} +1 -1
- package/dist/cdn/{22FG37EV.js → VD6Y7E7L.js} +1 -1
- package/dist/cdn/{EZMCUVKV.js → VEAJ52RN.js} +1 -1
- package/dist/cdn/{I7NHERZ6.js → VEXLHNEH.js} +1 -1
- package/dist/cdn/{RXRZKDP2.js → VJE33ARY.js} +1 -1
- package/dist/cdn/{IZMOYSTQ.js → VLMEN6HE.js} +1 -1
- package/dist/cdn/{2DHCFLH6.js → VQVU72A5.js} +1 -1
- package/dist/cdn/{7XCYURYF.js → W3GAVPP4.js} +1 -1
- package/dist/cdn/{LY5JI6RG.js → W3IOUXYL.js} +1 -1
- package/dist/cdn/{MI5LCW2A.js → W3RMU7EH.js} +1 -1
- package/dist/cdn/{2H37ZCDJ.js → W6RTXUUX.js} +1 -1
- package/dist/cdn/{H53QNXP3.js → WCEDE4CZ.js} +1 -1
- package/dist/cdn/{FFX7NJUV.js → WE7CJG55.js} +1 -1
- package/dist/cdn/{R2XADTZ4.js → WIMFUYH2.js} +1 -1
- package/dist/cdn/{KDF33PNA.js → WOMTFWWS.js} +1 -1
- package/dist/cdn/{AETC4BXC.js → WTLDXS6T.js} +1 -1
- package/dist/cdn/{2ZC5OSXY.js → X34YVIZX.js} +1 -1
- package/dist/cdn/{TXYWZMGM.js → XAADUJ74.js} +1 -1
- package/dist/cdn/XH6FWHBJ.js +2 -0
- package/dist/cdn/{QMTJIBIF.js → XIYYT5SJ.js} +1 -1
- package/dist/cdn/{ZTIABCV6.js → XSC3MQIT.js} +1 -1
- package/dist/cdn/{5W3B6N7U.js → XTPRVANS.js} +1 -1
- package/dist/cdn/{MN3BQEFN.js → XXVFJB4L.js} +1 -1
- package/dist/cdn/{O6Q5GNQ5.js → Y2LELW5Y.js} +1 -1
- package/dist/cdn/YDB2XJRU.js +2 -0
- package/dist/cdn/{U3MXAIIV.js → YLC4L2QV.js} +1 -1
- package/dist/cdn/{WSJLW4KK.js → YOFYOEJW.js} +1 -1
- package/dist/cdn/{MJFEMHMA.js → YOUMOTN3.js} +1 -1
- package/dist/cdn/YP6QRP5H.js +2 -0
- package/dist/cdn/{JYFFD5QA.js → YPNGSV66.js} +1 -1
- package/dist/cdn/{EL7UV72L.js → YRIUMDYH.js} +1 -1
- package/dist/cdn/YWC5AUFV.js +2 -0
- package/dist/cdn/{WZZBK6H2.js → ZJY3JAZ5.js} +1 -1
- package/dist/cdn/{FEEOQGVI.js → ZOZAQOE6.js} +1 -1
- package/dist/cdn/{2AGPRFMG.js → ZPRBYWVQ.js} +1 -1
- package/dist/cdn/{MVML6D4K.js → ZRHQFLLR.js} +1 -1
- package/dist/cdn/{YPRBAWD7.js → ZSARJE6G.js} +1 -1
- package/dist/cdn/{OWJM7UDS.js → ZX7PM7DO.js} +1 -1
- package/dist/cdn/{K3KO5IH4.js → ZYUFPCJ4.js} +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/attachment-utils.js +1 -1
- package/dist/components/arcgis-add-attachment-view/customElement.d.ts +3 -0
- package/dist/components/arcgis-attachment-preview/customElement.d.ts +154 -0
- package/dist/components/arcgis-attachment-preview/customElement.js +114 -0
- package/dist/components/arcgis-attachment-preview/index.d.ts +1 -0
- package/dist/components/arcgis-attachment-preview/index.js +2 -0
- package/dist/components/arcgis-attachment-thumbnail/customElement.d.ts +9 -0
- package/dist/components/arcgis-attachment-thumbnail/customElement.js +15 -9
- package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +3 -0
- package/dist/components/arcgis-feature-form-field/customElement.d.ts +3 -0
- package/dist/components/arcgis-scene/customElement.d.ts +2 -2
- package/dist/components/arcgis-scene/customElement.js +4 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/loader.js +2 -1
- package/dist/types/lumina.d.ts +6 -1
- package/dist/types/preact.d.ts +7 -1
- package/dist/types/react.d.ts +8 -1
- package/dist/types/stencil.d.ts +6 -1
- package/package.json +6 -6
- package/dist/cdn/A6MTABTS.js +0 -2
- package/dist/cdn/CBFS3BEX.js +0 -2
- package/dist/cdn/CV6Q2BL5.js +0 -2
- package/dist/cdn/DRRHERCS.js +0 -2
- package/dist/cdn/G37JKMBJ.js +0 -2
- package/dist/cdn/IROZR6HA.js +0 -2
- package/dist/cdn/KEMBLOSU.js +0 -2
- package/dist/cdn/QPIPHZCB.js +0 -2
- package/dist/cdn/RVVE37BK.js +0 -2
- package/dist/cdn/WTONUAJ6.js +0 -2
- package/dist/cdn/YGXUS6KG.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./SZSNXJFV.js";import"./WIMFUYH2.js";import"./V2TJMHWI.js";import"./QUZTFUWM.js";import"./LMFSC4DB.js";import"./XURWCCLX.js";import{P as a,S as c,X as l,a as o,b as n}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([p])=>{var f=o`:host{display:contents}.root{--spinner-offset: calc(var(--calcite-loader-size) / 4 * -1);position:absolute;margin-block-start:var(--spinner-offset);margin-inline-start:var(--spinner-offset);padding:var(--calcite-spacing-xxs);border-radius:100%;background-color:color-mix(in srgb,var(--calcite-color-text-inverse) 50%,transparent);--calcite-loader-track-color: transparent;--calcite-loader-progress-color-inline: var(--calcite-color-text-1)}`,i=class extends a{constructor(){super(...arguments),this.trackLocation=!1,this.screenLocation=p(this)}static{this.properties={trackLocation:5,screenLocation:32,label:1,location:0,referenceElement:0,view:0}}static{this.styles=f}_getViewOffset(){let t=this.view?.container?.getBoundingClientRect(),e=this.referenceElement?.getBoundingClientRect();return{left:t&&e?t.left-e.left:0,top:t&&e?t.top-e.top:0}}_getPositionStyles(){let{screenLocation:t,view:e}=this;if(e==null||t==null)return{};let r=16,s=this._getViewOffset();return{"--calcite-loader-size":`${r}px`,left:`${t.x+s.left-r/2}px`,top:`${t.y+s.top-r/2}px`}}render(){return this.screenLocation?n`<div class="root" style=${c(this._getPositionStyles())}><calcite-loader .label=${this.label??""} inline></calcite-loader></div>`:null}};l("arcgis-spinner",i);return i},b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import f from"./
|
|
2
|
+
import f from"./R2WT5JJH.js";import{a as d}from"./A76HBA6R.js";import e from"./FMBYMUUP.js";import c from"./AAKBSWDH.js";import b from"./DKT2KG4V.js";import{h as m}from"./WIMFUYH2.js";import"./V2TJMHWI.js";import a from"./W3GAVPP4.js";import"./QUZTFUWM.js";import"./LMFSC4DB.js";import"./XURWCCLX.js";import{P as n,X as h,b as i,x as s}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([v,,,,p,g])=>{var e={forceDirected:"organic-standard",community:"organic-community",simple:"basic-grid",mechanical:"hierarchical-bottom-to-top",radialTree:"radial-root-centric",smartTree:"tree-left-to-right",geographic:"geographic-organic-standard",chronologicalSingle:"chronological-mono-timeline",chronologicalMultiple:"chronological-multi-timeline"},u={basicLayoutCategory:[e.simple],organicLayoutCategory:[e.forceDirected,e.community,e.geographic],treeLayoutCategory:[e.smartTree,e.radialTree],hierarchicalLayoutCategory:[e.mechanical],chronologicalLayoutCategory:[e.chronologicalSingle,e.chronologicalMultiple]},y={[e.forceDirected]:"force-directed-link-chart-layout",[e.community]:"community-link-chart-layout",[e.simple]:"simple-link-chart-layout",[e.mechanical]:"hierarchical-link-chart-layout",[e.radialTree]:"radial-tree-link-chart-layout",[e.smartTree]:"smart-tree-link-chart-layout",[e.geographic]:"geographic-link-chart-layout",[e.chronologicalSingle]:"single-timeline",[e.chronologicalMultiple]:"multi-timeline"},w={[e.forceDirected]:"forceDirected",[e.community]:"community",[e.simple]:"simple",[e.mechanical]:"hierarchical",[e.radialTree]:"radialTree",[e.smartTree]:"smartTree",[e.geographic]:"geographic",[e.chronologicalSingle]:"chronologicalSingle",[e.chronologicalMultiple]:"chronologicalMultiple"},$=g(v),l=class extends n{constructor(){super(...arguments),this.messages=d(),this.viewModel=$(this),this.view=this.viewModel.view,this.appearance="dropdown",this.autoDestroyDisabled=!1,this.closeOnSelectDisabled=!1,this.icon="nodes-link",this.layout=this.viewModel.layout,this.preventExtentUpdate=this.viewModel.preventExtentUpdate,this.state=this.viewModel.state,this.arcgisSwitchLayout=p(()=>this.viewModel,"switchLayout"),this.arcgisPropertyChange=m()("state"),this.arcgisReady=s()}static{this.properties={view:0,appearance:1,autoDestroyDisabled:5,closeOnSelectDisabled:5,icon:1,label:1,layout:32,messageOverrides:0,preventExtentUpdate:5,referenceElement:1,state:32}}async destroy(){await this.manager.destroy()}async switchLayout(t){this.viewModel.switchLayout(t)}_renderDropdown(){let{messages:t,icon:o}=this;return i`<calcite-dropdown scale=s width=m max-items=9 .closeOnSelectDisabled=${this.closeOnSelectDisabled}><calcite-action slot=trigger .disabled=${this.viewModel.state==="disabled"} .icon=${o??void 0} .label=${t.layoutOptions??"Layout"} scale=s .text=${t.layoutOptions??"Layout"}></calcite-action>${Object.entries(u).map(([c,a])=>i`<calcite-dropdown-group selection-mode=single .groupTitle=${this.messages[c]}>${a.map(r=>i`<calcite-dropdown-item .iconStart=${y[r]} .selected=${r===this.layout?!0:void 0} @click=${()=>{this.switchLayout(r)}}>${t[w[r]]}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}</calcite-dropdown>`}_renderMenuBar(){let{messages:t}=this;return i`<calcite-action-bar scale=s floating overflow-mode=none>${Object.entries(u).map(([o,c])=>i`<calcite-action-group .label=${this.messages[o]}>${c.map(a=>i`<calcite-action scale=s .icon=${y[a]} .active=${a===this.layout?!0:void 0} @click=${()=>{this.switchLayout(a)}} .text=${t[w[a]]}></calcite-action>`)}</calcite-action-group>`)}</calcite-action-bar>`}render(){let{appearance:t}=this,o=t==="menu-bar"?this._renderMenuBar():this._renderDropdown();return i`<div class="root">${o}</div>`}};h("arcgis-link-chart-layout-switcher",l);return l},"widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel",a,b,c,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./TMJX7DFH.js";import{p as u}from"./
|
|
2
|
+
import a from"./TMJX7DFH.js";import{p as u}from"./EKR2SAT2.js";export default $arcgis.t(([{replace:f},{fieldFormatFromFieldInfo:h},{j:s}])=>{var c=/^\s*expression\//iu,y=/href=(""|'')/giu,N=/(\{([^{\r\n]+)\})/gu,I=/href\s*=\s*(?:"([^"]+)"|'([^']+)')/giu,F=/'/gu,C="relationships/",w=/^(?:mailto:|tel:)/u;function U(e,t){let n=new Map;if(!e)return n;for(let r of e){if(!r.fieldName)continue;let o=d(r.fieldName,t);r.fieldName=o,n.set(o.toLowerCase(),r)}return n}function W(e){let t=[];if(!e)return t;let{fieldInfos:n,content:r}=e;return n&&t.push(...n),!r||!Array.isArray(r)||r.forEach(o=>{if(o.type==="fields"){let i=o?.fieldInfos;i&&t.push(...i)}}),t}function B(e,t){return e?.getEffectivePopupTemplate(t)??void 0}function D(e){if(e!=null)return"sourceLayer"in e&&e.sourceLayer?e.sourceLayer:e.layer??void 0}var L=new Set(["building","knowledge-graph","link-chart","map-image","map-notes","sketch","subtype-group","tile"]);function G(e){let t=e?.origin;return(t==null?void 0:L.has(t.type??"")?t.sublayer:t.layer)??e?.layer}function b(e=""){return e?e.includes(C):!1}function J(e=""){if(e)return!w.test(e.trim().toLowerCase())}function d(e,t){let n=g(t,e);return n?n.name:e}function K(e,t){return e?.map(n=>d(n,t))}function p(e){return e?c.test(e):!1}function v(e,t){if(!t||!p(t)||!e)return;let n=t.replace(c,"").toLowerCase();return e.find(({name:r})=>r.toLowerCase()===n)}function Q(e,t){if(!(!e?.length||!t))return e.find(n=>n.fieldName?.toLowerCase()===t.toLowerCase())}function A(e){let{fieldInfo:t,graphic:n,layer:r}=e;return k({fieldInfo:t,graphic:n})?s(r,{graphic:n}):null}function k({fieldInfo:e,graphic:t}){return!!e?.fieldName&&!p(e.fieldName)&&!b(e.fieldName)&&!t?.popupTemplate}function X({expressionInfos:e,fieldInfo:t,graphic:n,isContentFieldInfos:r,layer:o}){if(!t?.fieldName)return null;let i=v(e,t?.fieldName);if(i)return i.title||null;let a=A({fieldInfo:t,graphic:n,layer:o});if(a){let l=a.getFieldAlias(t.fieldName);return r?t.label||l||t.fieldName:l||t.fieldName}return t.label||t.fieldName}function _(e){let{configurableFieldsContainer:t,fieldInfo:n,isContentFieldInfos:r}=e;if(!n?.fieldName)return null;let o=!t.popupTemplate&&!t.fieldConfigurations?h(n,t.getField(n.fieldName)):t.getFieldConfiguration(n.fieldName)?.fieldFormat;return r&&n.fieldFormat||o}function m(e){return e.trim()}function x(e){return e.replaceAll(y,"")}function E(e,t){return`{${t.get(e.toLowerCase())?.fieldName||e}}`}function M({formattedValues:e,template:t,fieldInfoMap:n}){return m(x(f(f(t,r=>E(r,n)),e)))}function g(e,t){return!(e&&"getField"in e&&typeof e.getField=="function")||!t?null:e.getField(t)??null}function T(e,t){return e.replaceAll(N,(n,r,o)=>{let i=g(t,o);return i?`{${i.name}}`:r})}function V(e,t,n=!1){let r=t[e];if(typeof r=="string"){let o=(n?encodeURIComponent(r):r).replaceAll(F,"%27");t[e]=o}}function j(e,t=!1){let n={...e};return Object.keys(n).forEach(r=>V(r,n,t)),n}function $(e,t,n){t=m(t);let r=t&&!t.startsWith("{");return f(e,j(n,r||!1))}function q(e,t,n){let r=T(e,n);return r&&r.replaceAll(I,(o,i,a)=>$(o,i||a,t))}function z({values:e,globalValues:t,layer:n,text:r,fieldInfoMap:o}){return r?M({formattedValues:t,template:q(r,{...t,...e},n),fieldInfoMap:o}):""}async function H({type:e,value:t,event:n}){try{return typeof t=="function"?t(n):await t}catch(r){u("error","arcgis-feature",`An error occurred when calling the "${e}" function`,{detail:{error:r,graphic:n.graphic,value:t}});return}}return{a:U,b:W,c:B,d:D,e:G,f:b,g:J,h:d,i:K,j:p,k:Q,l:A,m:X,n:_,o:M,p:T,q:z,r:H}},"applications/Components/stringUtils","applications/Components/fieldFormatUtils",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as s}from"./
|
|
2
|
+
import{a as s}from"./KBHLE7HT.js";import{a as y}from"./A76HBA6R.js";import"./WIMFUYH2.js";import"./V2TJMHWI.js";import"./QUZTFUWM.js";import"./LMFSC4DB.js";import"./XURWCCLX.js";import{P as b,X as h,a as p,b as o,p as l,r as u}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getGraphicLayer:$}])=>{function v(r,t,e){let{associationType:i}=r;switch(i){case"attachment":return t==="to"?e.attachment:e.structure;case"containment":return t==="to"?e.content:e.container;case"junction-edge-from-connectivity":case"junction-edge-to-connectivity":case"junction-edge-midspan-connectivity":case"junction-junction-connectivity":case"connectivity":return e.connectivity}}function f(r,t){let e=$(r);return e&&"globalIdField"in e&&e.globalIdField&&t.fromNetworkElement?r.getGlobalId()===t.fromNetworkElement.globalId:!1}var k=p`:host{--calcite-block-padding: 0;display:flex;flex-direction:column;background-color:transparent}calcite-block{margin-block:0;border:1px solid var(--calcite-color-border-3)}calcite-block:first-of-type{border-radius:var(--calcite-spacing-sm) var(--calcite-spacing-sm) 0 0}calcite-block:last-of-type{margin-block-end:var(--calcite-spacing-md);border-top:none;border-radius:0 0 var(--calcite-spacing-sm) var(--calcite-spacing-sm)}calcite-block calcite-label{margin-inline:var(--calcite-spacing-md)}.info-container{display:flex;flex-direction:column}.info-container>*{margin-block-end:var(--calcite-spacing-md)}`,g=class extends b{constructor(){super(...arguments),this._messages=y({name:"utility-network-associations",blocking:!0}),this.#t=50,this.topLayerDisabled=!1}static{this.properties={association:0,associationType:1,percentAlong:9,sourceFeature:0,targetFeature:0,topLayerDisabled:5,utilityNetwork:0}}static{this.styles=k}get#c(){return!this.association||!this.sourceFeature||!this.targetFeature||!this.utilityNetwork}#t;get associationType(){return this.association?.associationType}set associationType(t){let{association:e}=this;!e||t===void 0||(e.associationType=t,(t==="junction-edge-from-connectivity"||t==="junction-edge-to-connectivity")&&(e.percentAlong=void 0))}get percentAlong(){return this.#t}set percentAlong(t){this.#t=t,this.association?.associationType==="junction-edge-midspan-connectivity"&&(this.association.percentAlong=t/100)}loaded(){this.association||l("error",this,u("association")),this.sourceFeature||l("error",this,u("sourceFeature")),this.targetFeature||l("error",this,u("targetFeature")),this.utilityNetwork||l("error",this,u("utilityNetwork"))}willUpdate(t){t.has("association")&&(this.percentAlong=(this.association?.percentAlong??.5)*100)}#o(t){let e=$(t);return e!=null&&typeof e=="object"&&"geometryType"in e&&e.geometryType==null}#a(){let{_messages:t,associationType:e}=this;if(!e)return null;switch(e){case"attachment":case"connectivity":case"containment":case"junction-junction-connectivity":return null;case"junction-edge-midspan-connectivity":case"junction-edge-from-connectivity":case"junction-edge-to-connectivity":{let i=e==="junction-edge-midspan-connectivity"?e:"junction-edge-from-connectivity",n=[this.#i("junction-edge-midspan-connectivity",i,t.midspanEdge),this.#i("junction-edge-from-connectivity",i,t.endpointEdge)];return o`<div class="info-container">${s("additional-content",o`<calcite-label>${t.connectTo}<calcite-combobox .label=${t.edgeConnectionComboboxLabel} overlay-positioning=fixed selection-mode=single-persist .topLayerDisabled=${this.topLayerDisabled} @calciteComboboxChange=${({currentTarget:c})=>{this.associationType=c.value}}>${n}</calcite-combobox></calcite-label>`)}${i==="junction-edge-midspan-connectivity"?this.#m():this.#l()}</div>`}}}#e(t,e,i){return o`<calcite-block .description=${e} expanded .heading=${t}>${i}</calcite-block>`}#s(t,e,i){return s(`#${t}`,o`<calcite-combobox-item .heading=${i} .selected=${e===t} .value=${`${t}`}></calcite-combobox-item>`)}#i(t,e,i){return s(`#${t}`,o`<calcite-combobox-item .heading=${i} .selected=${e===t} .value=${t}></calcite-combobox-item>`)}#n(t,e){let{_messages:i,utilityNetwork:n}=this;if(!n)return null;let c=n.getTerminalConfiguration(t)?.terminals.map(a=>this.#s(a.id,e.terminalId,a.name))||[];return o`<calcite-label>${i.terminal}<calcite-combobox .label=${i.terminalComboboxLabel} overlay-positioning=fixed selection-mode=single-persist .topLayerDisabled=${this.topLayerDisabled} @calciteComboboxChange=${({currentTarget:a})=>{e.terminalId=Number.parseInt(a.value,10)}}>${c}</calcite-combobox></calcite-label>`}#r(){let{_messages:t,association:e}=this;if(!e)return null;let i=e.isContentVisible??!1;return o`<calcite-label layout=inline>${t.visible}<calcite-switch .checked=${i} @calciteSwitchChange=${({currentTarget:n})=>{e.isContentVisible=n.checked}}></calcite-switch></calcite-label>`}#l(){let{_messages:t,associationType:e}=this,i=e==="junction-edge-to-connectivity";return s("endpoint-edge",o`<calcite-label>${t.edgeSide}<calcite-label layout=inline>${t.fromSide}<calcite-switch .checked=${i} @calciteSwitchChange=${({currentTarget:n})=>{let c=n.checked?"junction-edge-to-connectivity":"junction-edge-from-connectivity";this.associationType=c}}></calcite-switch>${t.toSide}</calcite-label></calcite-label>`)}#u(){let{association:t,associationType:e,sourceFeature:i,targetFeature:n}=this;if(!t||!e||!i||!n)return null;let c=f(i.feature,t)?i:n,a=c.label,m=v(t,"from",this._messages.associationTypes);switch(e){case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":return this.#e(a,m,this.#n(c.feature,t.fromNetworkElement));case"attachment":case"containment":return this.#e(a,m)}}#m(){let{_messages:t,percentAlong:e}=this;return s("midspan-edge",o`<calcite-label>${t.midspanLocation}<calcite-input-number max=100 min=0 number-button-type=vertical suffix-text=% .value=${`${e}`} @calciteInputNumberInput=${({currentTarget:i})=>{let n=Number.parseFloat(i.value);Number.isNaN(n)||(this.percentAlong=n)}}></calcite-input-number></calcite-label>`)}#d(){let{association:t,associationType:e,sourceFeature:i,targetFeature:n}=this;if(!t||!e||!i||!n)return null;let c=f(i.feature,t)?n:i,a=c.label,m=v(t,"to",this._messages.associationTypes),d;switch(e){case"connectivity":case"junction-junction-connectivity":d=this.#n(c.feature,t.toNetworkElement);break;case"containment":d=this.#o(c.feature)?void 0:this.#r();break}return this.#e(a,m,d)}render(){return this.#c?null:o`${this.#u()}${this.#d()}${this.#a()}`}};h("arcgis-feature-form-utility-network-association-settings",g);return g},"applications/Components/graphicOriginUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as d}from"./
|
|
2
|
+
import{a as d}from"./A76HBA6R.js";import"./WIMFUYH2.js";import"./V2TJMHWI.js";import"./QUZTFUWM.js";import"./LMFSC4DB.js";import"./XURWCCLX.js";import{N as l,O as c,P as n,X as h,a,b as o,p as r}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:t,when:p}])=>{function u(i,e,m){return i?e(i):m?.(i)}var f=a`:host{position:absolute;align-self:center;inset-block-end:0;background-color:color-mix(in srgb,var(--calcite-color-surface-1) 80%,transparent);inline-size:80%}calcite-label{padding:0 .5rem;--calcite-label-margin-bottom: 0}calcite-slider{inline-size:100%}`,s=class extends n{constructor(){super(...arguments),this.handlePlayPause=()=>{this._playing?this.pause():this.play()},this.handleSeek=()=>{let e=this.#e.value?.value;typeof e!="number"||e<0||e>this._duration||this.seek(e)},this.play=async()=>{try{await this.videoRef?.play()}catch(e){r("error",this,"Error playing video",{detail:{error:{message:e.message}}})}},this.pause=()=>this.videoRef?.pause(),this.rewind=async()=>await this.seek(0),this.seek=e=>(this.pause(),this.videoRef&&(this.videoRef.currentTime=e),this.play()),this.toggleMute=()=>{this.videoRef&&(this.videoRef.muted=!this.videoRef.muted,this._audio=!this.videoRef.muted)},this.#e=l(),this._messages=d(),this._audio=!1,this._playing=!1,this._currentTime=0,this._duration=0,this.messageOverrides=this._messages._overrides}static{this.properties={_audio:16,_playing:16,_currentTime:16,_duration:16,_videoReady:16,messageOverrides:0,videoRef:0}}static{this.styles=f}#e;get _videoReady(){return this.videoRef?.readyState!==void 0&&this.videoRef.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA}loaded(){this.manager.onLifecycle(()=>[t(()=>this.videoRef,"play",()=>{this._playing=!0}),t(()=>this.videoRef,"pause",()=>{this._playing=!1}),p(()=>this._videoReady,()=>{this.videoRef&&(this._duration=this.videoRef.duration,this._audio=!this.videoRef.muted,this._playing=!this.videoRef.paused)},{initial:!0,sync:!0}),t(()=>this.videoRef,"timeupdate",()=>{this.videoRef&&(this._currentTime=this.videoRef.currentTime)})])}render(){return u(()=>this._videoReady,()=>o`<calcite-label scale=s layout=inline-space-between><calcite-action-group layout=horizontal scale=s><calcite-action scale=m @click=${this.handlePlayPause} .text=${this._playing?this._messages.pause:this._messages.play} .icon=${this._playing?"pause-f":"play-f"}></calcite-action><calcite-action scale=m icon=reset .text=${this._messages.rewind} @click=${this.rewind}></calcite-action><calcite-action scale=m .text=${this._audio?this._messages.mute:this._messages.unmute} .icon=${this._audio?"sound":"sound-off"} @click=${this.toggleMute}></calcite-action></calcite-action-group><calcite-slider scale=s .value=${Number(this._currentTime.toFixed(2))??0} label-handles label-ticks .max=${this._duration} .ticks=${this._duration} step=0.001 @calciteSliderChange=${this.handleSeek} @calciteSliderInput=${this.pause} ${c(this.#e)}></calcite-slider></calcite-label>`)}};h("arcgis-oriented-imagery-viewer-video-controls",s);return s},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{P as d,R as h,S as p,
|
|
2
|
+
import{P as d,R as h,S as p,U as r,X as g,a as o,b as s,x as c}from"./EKR2SAT2.js";import"./H6RQVSYM.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;overflow-wrap:anywhere}`,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" .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.2/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./SSNCB7LI.js";import i from"./CBB2T3RI.js";import{a as x}from"./OHCCNZCY.js";import e from"./75OH7AOP.js";import d from"./CODEI67F.js";import{h as C}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import b from"./7XCYURYF.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{O as I,P as y,R as c,T as h,W as w,a as f,b as a,x as g}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:m,formatNumber:p},{isFeatureItem:M,isLayerItem:v,isGroupLayerItem:L},S,,,,F])=>{var r={container:"container",flowItem:"flow-item",layerDropdown:"layer-dropdown",listItemFeature:"feature",listItemFeatureIcon:"feature-icon",listItemIcon:"icon",itemCount:"item-count",notice:"notice",panel:"panel"},T=f`:host{width:100%;display:flex;height:100%;flex:1 1 0;>*{align-items:center;align-self:center;width:100%;height:100%}}.root{display:flex;flex-direction:column}calcite-flow{height:100%;width:100%}.container,.flow-item,.panel{display:flex}.flow-item{overflow:auto}.flow-item[scale=s] .container{gap:var(--calcite-spacing-sm);padding:var(--calcite-spacing-sm) 0}.flow-item[scale=m] .container{gap:var(--calcite-spacing-md);padding:var(--calcite-spacing-md) 0}.flow-item[scale=l] .container{gap:var(--calcite-spacing-lg);padding:var(--calcite-spacing-lg) 0}.container{flex-direction:column;background-color:var(--calcite-color-foreground-1)}.container>*{background-color:var(--calcite-color-foreground-1)}.container>*[scale=s]{padding:0 var(--calcite-spacing-sm) 0 var(--calcite-spacing-sm);font-size:var(--calcite-font-size-sm)}.container>*[scale=m]{padding:0 var(--calcite-spacing-md) 0 var(--calcite-spacing-md);font-size:var(--calcite-font-size-md)}.container>*[scale=l]{padding:0 var(--calcite-spacing-lg) 0 var(--calcite-spacing-lg);font-size:var(--calcite-font-size-lg)}.icon{display:flex;align-items:center;justify-content:center;min-width:var(--calcite-spacing-xxl);height:var(--calcite-spacing-xxl)}.icon span{line-height:0}.feature-icon .icon{margin-inline-start:calc(var(--calcite-spacing-lg) * -1)}calcite-chip{align-self:center;margin-inline:var(--calcite-spacing-xxs);line-height:initial}.item-count{display:flex;gap:.5em;align-items:center}`,_=F(S),$=class extends y{constructor(){super(...arguments),this.viewModel=_(this),this.messages=x(),this.#i=!1,this.#t=new WeakSet,this.#e=null,this.autoDestroyDisabled=!1,this.icon="selection",this.view=this.viewModel.view,this.displayMode="group",this.filterText=this.viewModel.filterText,this.hideChip=!1,this.hideChipCloseButton=!1,this.hideFilter=!1,this.hideFilterNotice=!1,this.hideHeader=!1,this.hideItemCloseActions=!1,this.hideItemCount=!1,this.hideItemIcons=!1,this.hideItemMenus=!1,this.hideLayerFilter=!1,this.hideMenu=!1,this.hideZoomToButton=!1,this.highlightOnHoverDisabled=!1,this.layer=this.viewModel.layer,this.maxVisibleFeatureCountPerLayer=this.viewModel.maxVisibleFeatureCountPerLayer,this.menuScale="m",this.selectionManager=this.viewModel.selectionManager,this.visualScale="s",this.arcgisClear=g(),this.arcgisPropertyChange=C()("state"),this.arcgisReady=g()}static{this.properties={hasFilterText:16,isUpdating:16,itemWithOpenMenu:16,autoDestroyDisabled:5,disabled:5,icon:1,label:1,referenceElement:1,view:0,activeLayerItem:32,afterListItemSelect:0,allLayerItems:32,count:32,displayMode:1,effectiveSelectionManager:32,filterText:1,hideChip:5,hideChipCloseButton:5,hideFilter:5,hideFilterNotice:5,hideHeader:5,hideItemCloseActions:5,hideItemCount:5,hideItemIcons:5,hideItemMenus:5,hideLayerFilter:5,hideMenu:5,hideZoomToButton:5,highlightOnHoverDisabled:5,listItemActionConfigurations:0,listItemUnavailableFunction:0,layer:0,layerItems:32,maxVisibleFeatureCountExceeded:32,maxVisibleFeatureCountPerLayer:9,menuScale:1,selectionManager:0,state:32,visibleFeatureCount:32,visibleFeatureItems:32,visibleLayerCount:32,visualScale:1}}static{this.styles=T}#i;#t;#e;get hasFilterText(){let{filterText:e}=this;return e!=null&&e!==""}get isUpdating(){return this.viewModel.isUpdating}get disabled(){return this.#i||this.state==="disabled"}set disabled(e){this.#i=e}get activeLayerItem(){return this.viewModel.activeLayerItem}get allLayerItems(){return this.viewModel.allLayerItems}get count(){return this.viewModel.effectiveCount}get effectiveSelectionManager(){return this.viewModel.effectiveSelectionManager}get layerItems(){return this.viewModel.layerItems}get maxVisibleFeatureCountExceeded(){return this.viewModel.maxVisibleFeatureCountExceeded}get state(){return this.viewModel.state}get visibleFeatureCount(){return this.viewModel.visibleFeatureCount}get visibleFeatureItems(){return this.viewModel.visibleFeatureItems}get visibleLayerCount(){return this.viewModel.visibleLayerCount}async clear(){this.viewModel.clear()}async collapseAll(){this.viewModel.collapseAll()}async deselectItem(e){this.viewModel.deselectItem(e)}async destroy(){this.viewModel?.destroy()}async expandAll(){this.viewModel.expandAll()}async findLayerItem(e){return this.viewModel.findLayerItem(e)}async findParentItem(e){return this.viewModel.findParentItem(e)}async goToItem(e){this.viewModel.goToItem(e)}async removeFromSelection(e){this.viewModel.removeFromSelection(e)}async replace(e){this.viewModel.replace(e)}async selectItem(e){this.viewModel.selectSingleItem(e)}connectedCallback(){super.connectedCallback(),this.#e=new IntersectionObserver((e,t)=>{let{messages:s}=this;e.forEach(i=>{if(!i.isIntersecting)return;let l=i.target;if(this.#t.has(l)){t.unobserve(l);return}let d=l.getAttribute("data-thumbnail-key"),n=d?this._getFeatureItemByThumbnailKey(d):void 0;if(!n)return;this.#t.add(l);let u=n.title&&s.previewTemplateAriaLabel?m(s.previewTemplateAriaLabel,{label:n.title}):s.preview;if(n.thumbnail){l.appendChild(n.thumbnail);return}n.fetchThumbnail({ariaLabel:u}).then(b=>b&&l.appendChild(b)).catch(()=>this.#t.delete(l))})})}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect()}_isDropdownItemVisible(e,t){let{hidden:s,type:i}=t;return(typeof s=="function"?s({item:e}):s)?!1:!!(!i||i==="feature"&&M(e)||i==="layer"&&v(e)||i==="group"&&L(e))}_handleClearSelection(){this.clear(),this.arcgisClear.emit()}_onFeatureItemBlur(){this.highlightOnHoverDisabled||this.viewModel.removeTemporaryHighlight()}_onFeatureItemFocus(e){this.highlightOnHoverDisabled||this.viewModel.addTemporaryHighlight(e)}_closeItemMenu(e){(!e||e===this.itemWithOpenMenu)&&(this.itemWithOpenMenu=void 0)}_getFeatureItemByThumbnailKey(e){return this.viewModel.visibleFeatureItems.find(t=>t.thumbnailKey===e)}_isItemUnavailable(e){return!e.layerIsVisible||this.listItemUnavailableFunction?.({item:e})||!1}_makeObserverRef(){let e=null;return t=>{t?(e=t,this.#e?.observe(t)):e&&(this.#e?.unobserve(e),e=null)}}_afterListItemSelect(e,t){t.stopPropagation(),this._closeItemMenu(),this.afterListItemSelect?.({item:e})}_getTooltipForChip(e){let{messages:t}=this;return!t?.selectionCount||!t?.clearSelectionCount?"":this.hideChipCloseButton?m(t.selectionCount,{count:e}):m(t.clearSelectionCount,{count:e})}#n(){if(this.hideChip||this.hideHeader)return;let{count:e}=this,t=p(e),s=!this.hideChipCloseButton&&e>0;return a`<calcite-chip appearance=outline .closable=${s} .closed=${e===0} .disabled=${this.disabled} .icon=${this.maxVisibleFeatureCountExceeded?"exclamation-mark-triangle":void 0} .label=${t} .scale=${this.visualScale} slot=header-actions-end title=${this._getTooltipForChip(e)??h} @calciteChipClose=${this._handleClearSelection}>${t}</calcite-chip>`}#c(){if(this.hideHeader||this.hideMenu)return;let{menuScale:e,messages:t}=this,s=this.disabled||this.count===0;return[a`<calcite-action .disabled=${s} icon=reset .scale=${e} slot=header-menu-actions .text=${t.clear??""} text-enabled @click=${this.clear}></calcite-action>`,a`<calcite-action .disabled=${s} icon=folders .scale=${e} slot=header-menu-actions .text=${t.collapseAll??""} text-enabled @click=${this.collapseAll}></calcite-action>`]}#r(){let{layerItems:e,messages:t}=this;if(this.count===0||e.length<2||this.hideLayerFilter)return;let s=t.allLayersCount?m(t.allLayersCount,{count:e.length}):"";return a`<calcite-combobox class=${c(r.layerDropdown)} .disabled=${this.disabled} .label=${t.filterByLayer??""} overlay-positioning=fixed .placeholder=${t.filterByLayer} .scale=${this.visualScale} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{this.filterText=void 0;let l=i.selectedItems[0]?.value??void 0;this.layer=l==="all-layers"?void 0:l}}>${o("all-layers",a`<calcite-combobox-item .heading=${s} icon=layers .selected=${this.layer==null} value=all-layers></calcite-combobox-item>`)}${this.layerItems.map(i=>this.#h(i))}</calcite-combobox>`}#d(){if(!(this.hideFilter||this.count===0))return a`<calcite-input clearable .disabled=${this.disabled} icon=search .placeholder=${this.messages.filter} .scale=${this.visualScale} .value=${this.filterText} @calciteInputInput=${({target:{value:e}})=>{this.filterText=e}}></calcite-input>`}#h(e){let t=e.title||this.messages?.untitledLayer||"";return o(e.key,a`<calcite-combobox-item .heading=${t} .icon=${e.iconName} .selected=${e.layer===this.layer} .value=${e.layer}></calcite-combobox-item>`)}#m(){let{messages:e}=this;if(this.visibleFeatureCount!==0)return a`<calcite-list .disabled=${this.disabled} display-mode=nested interaction-mode=interactive .label=${e.componentLabel??""} .loading=${this.isUpdating} .scale=${this.visualScale} selection-mode=none>${this.#s(this.allLayerItems)}</calcite-list>`}#s(e){return this.activeLayerItem?this.#l(this.activeLayerItem):e.map(t=>L(t)?this.#g(t):v(t)?this.#l(t):null).filter(t=>t!=null)}#u(){if(!(this.disabled||this.visibleFeatureCount>0||this.hideFilter||this.hideFilterNotice))return a`<calcite-notice class=${c(r.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale} width=full><div slot=message>${this.messages.noMatchingFeatures}</div></calcite-notice>`}#p(e){if(this.hideItemCount)return;let{messages:t}=this,s=p(e.total),i=p(e.visibleTotal),l=t.selectionCount?m(t.selectionCount,{count:s}):void 0;return!this.hasFilterText&&e.maxVisibleFeatureCountExceeded?a`<span class=${c(r.itemCount)} slot=content-end title=${l??h}><calcite-icon icon=exclamation-mark-triangle scale=s title=${t.tooManyFeatures??h}></calcite-icon>${`${p(this.maxVisibleFeatureCountPerLayer)}+`}</span>`:a`<span class=${c(r.itemCount)} slot=content-end title=${l??h}>${i}</span>`}#a(e){if(this.hideItemMenus)return;let{messages:t}=this,s=this.itemWithOpenMenu===e,i=M(e),l=i?t.deselectFeature:v(e)?t.deselectLayer:t.deselectGroup;return[o("dropdown",a`<calcite-dropdown .open=${s} overlay-positioning=fixed placement=bottom-end .scale=${this.menuScale} slot=actions-end width=m @calciteDropdownClose=${()=>this._closeItemMenu(e)} @calciteDropdownOpen=${()=>{this.itemWithOpenMenu=e}}>${o("action",a`<calcite-action icon=ellipsis .scale=${this.visualScale} slot=trigger .text=${t.menu??""}></calcite-action>`)}${s?o("dropdown-group",a`<calcite-dropdown-group selection-mode=none>${this.hideZoomToButton?void 0:o("zoom-to",a`<calcite-dropdown-item icon-start=layer-zoom-to @calciteDropdownItemSelect=${()=>this.goToItem(e)}>${t.zoomTo}</calcite-dropdown-item>`)}${o("select-single",a`<calcite-dropdown-item icon-start=selection-filter @calciteDropdownItemSelect=${()=>this.selectItem(e)}>${i?t.onlySelectFeature:t.onlySelectThis}</calcite-dropdown-item>`)}${o("clear-selection",a`<calcite-dropdown-item icon-start=selection-x @calciteDropdownItemSelect=${()=>this.deselectItem(e)}>${l}</calcite-dropdown-item>`)}${this.listItemActionConfigurations?.map(d=>{let{disabled:n,label:u}=d;if(this._isDropdownItemVisible(e,d))return o(`custom-action-${u}`,a`<calcite-dropdown-item .disabled=${typeof n=="function"?n({item:e}):!!n} .iconStart=${d.icon??void 0} @calciteDropdownItemSelect=${()=>d.callback({item:e})}>${u}</calcite-dropdown-item>`)})}</calcite-dropdown-group>`):void 0}</calcite-dropdown>`)]}#g(e){let t=e.title||this.messages.untitledLayer;if(e.visibleTotal===0)return;let{displayMode:s}=this;return s==="layer"||s==="feature"?this.#s(e.items):o(e.key,a`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons?void 0:e.iconName} .label=${t} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${i=>{i.stopPropagation(),e.expanded=!1}} @calciteListItemClose=${i=>{i.stopPropagation(),this.deselectItem(e)}} @calciteListItemExpand=${i=>{i.stopPropagation(),e.expanded=!0}} @calciteListItemSelect=${i=>this._afterListItemSelect(e,i)}>${this.#a(e)}${this.#s(e.items)}</calcite-list-item>`)}#l(e){if(e.visibleTotal===0||!e.visible)return;if(this.displayMode==="feature")return this.#o(e.featureItems);let{messages:t}=this,s=e.title||t.untitledLayer;return o(e.key,a`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons?void 0:e.iconName} .label=${s} title=${(e.layerIsVisible?void 0:t.layerIsNotVisible)??h} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${i=>{i.stopPropagation(),e.expanded=!1}} @calciteListItemClose=${i=>{i.stopPropagation(),this.deselectItem(e)}} @calciteListItemExpand=${i=>{i.stopPropagation(),e.expanded=!0}} @calciteListItemSelect=${i=>this._afterListItemSelect(e,i)}>${this.#p(e)}${this.#a(e)}${this.#o(e.featureItems)}${e.maxVisibleFeatureCountExceeded?a`<calcite-notice class=${c(r.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale}><div slot=message>${t.tooManyFeatures}</div></calcite-notice>`:void 0}</calcite-list-item>`)}#o(e){return e.map(t=>this.#v(t))}#v(e){if(!e.visible)return;let{hideItemIcons:t,messages:s}=this,i=e.title||s.untitledFeature,l=!t&&this.displayMode!=="feature",d=!t&&e.supportsThumbnail;return o(e.key,a`<calcite-list-item class=${c(l?r.listItemFeatureIcon:r.listItemFeature)} .closable=${!this.hideItemCloseActions} .iconStart=${d?void 0:e.iconName} .label=${i} .unavailable=${this._isItemUnavailable(e)} .value=${i} @blur=${this._onFeatureItemBlur} @calciteListItemClose=${n=>{n.stopPropagation(),this.deselectItem(e)}} @calciteListItemSelect=${n=>this._afterListItemSelect(e,n)} @focus=${this._onFeatureItemFocus.bind(this,e)} @pointerenter=${this._onFeatureItemFocus.bind(this,e)} @pointerleave=${this._onFeatureItemBlur}>${this.#$(e)}${this.#a(e)}</calcite-list-item>`)}#$(e){if(!(this.hideItemIcons||!e.supportsThumbnail))return o("thumbnail-container",a`<div class=${c(r.listItemIcon)} slot=content-start>${o(e.thumbnailKey,a`<span data-thumbnail-key=${e.thumbnailKey??h} ${I(this._makeObserverRef())}></span>`)}</div>`)}render(){let e=this.hideHeader?void 0:this.el.title||this.messages.selection;return a`<div><calcite-flow><calcite-flow-item class=${c(r.flowItem)} .heading=${e} .loading=${this.state==="loading"} overlay-positioning=fixed .scale=${this.visualScale} selected><calcite-panel class=${c(r.panel)} .disabled=${this.disabled} overlay-positioning=fixed .scale=${this.visualScale}><div class=${c(r.container)}>${this.#r()}${this.#d()}${this.#m()}${this.#u()}</div></calcite-panel>${this.#n()}${this.#c()}</calcite-flow-item></calcite-flow></div>`}};w("arcgis-selection-list",$);return $},"intl","widgets/support/SelectionList/selectionListUtils","widgets/support/SelectionList/SelectionListViewModel",b,d,e,i)
|
|
2
|
+
import{a as o}from"./KBHLE7HT.js";import i from"./R2WT5JJH.js";import{a as x}from"./A76HBA6R.js";import e from"./AAKBSWDH.js";import d from"./DKT2KG4V.js";import{h as C}from"./WIMFUYH2.js";import"./V2TJMHWI.js";import b from"./W3GAVPP4.js";import"./QUZTFUWM.js";import"./LMFSC4DB.js";import"./XURWCCLX.js";import{O as I,P as y,R as c,U as h,X as w,a as f,b as a,x as g}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:m,formatNumber:p},{isFeatureItem:M,isLayerItem:v,isGroupLayerItem:L},S,,,,F])=>{var r={container:"container",flowItem:"flow-item",layerDropdown:"layer-dropdown",listItemFeature:"feature",listItemFeatureIcon:"feature-icon",listItemIcon:"icon",itemCount:"item-count",notice:"notice",panel:"panel"},T=f`:host{width:100%;display:flex;height:100%;flex:1 1 0;>*{align-items:center;align-self:center;width:100%;height:100%}}.root{display:flex;flex-direction:column}calcite-flow{height:100%;width:100%}.container,.flow-item,.panel{display:flex}.flow-item{overflow:auto}.flow-item[scale=s] .container{gap:var(--calcite-spacing-sm);padding:var(--calcite-spacing-sm) 0}.flow-item[scale=m] .container{gap:var(--calcite-spacing-md);padding:var(--calcite-spacing-md) 0}.flow-item[scale=l] .container{gap:var(--calcite-spacing-lg);padding:var(--calcite-spacing-lg) 0}.container{flex-direction:column;background-color:var(--calcite-color-foreground-1)}.container>*{background-color:var(--calcite-color-foreground-1)}.container>*[scale=s]{padding:0 var(--calcite-spacing-sm) 0 var(--calcite-spacing-sm);font-size:var(--calcite-font-size-sm)}.container>*[scale=m]{padding:0 var(--calcite-spacing-md) 0 var(--calcite-spacing-md);font-size:var(--calcite-font-size-md)}.container>*[scale=l]{padding:0 var(--calcite-spacing-lg) 0 var(--calcite-spacing-lg);font-size:var(--calcite-font-size-lg)}.icon{display:flex;align-items:center;justify-content:center;min-width:var(--calcite-spacing-xxl);height:var(--calcite-spacing-xxl)}.icon span{line-height:0}.feature-icon .icon{margin-inline-start:calc(var(--calcite-spacing-lg) * -1)}calcite-chip{align-self:center;margin-inline:var(--calcite-spacing-xxs);line-height:initial}.item-count{display:flex;gap:.5em;align-items:center}`,_=F(S),$=class extends y{constructor(){super(...arguments),this.viewModel=_(this),this.messages=x(),this.#i=!1,this.#t=new WeakSet,this.#e=null,this.autoDestroyDisabled=!1,this.icon="selection",this.view=this.viewModel.view,this.displayMode="group",this.filterText=this.viewModel.filterText,this.hideChip=!1,this.hideChipCloseButton=!1,this.hideFilter=!1,this.hideFilterNotice=!1,this.hideHeader=!1,this.hideItemCloseActions=!1,this.hideItemCount=!1,this.hideItemIcons=!1,this.hideItemMenus=!1,this.hideLayerFilter=!1,this.hideMenu=!1,this.hideZoomToButton=!1,this.highlightOnHoverDisabled=!1,this.layer=this.viewModel.layer,this.maxVisibleFeatureCountPerLayer=this.viewModel.maxVisibleFeatureCountPerLayer,this.menuScale="m",this.selectionManager=this.viewModel.selectionManager,this.visualScale="s",this.arcgisClear=g(),this.arcgisPropertyChange=C()("state"),this.arcgisReady=g()}static{this.properties={hasFilterText:16,isUpdating:16,itemWithOpenMenu:16,autoDestroyDisabled:5,disabled:5,icon:1,label:1,referenceElement:1,view:0,activeLayerItem:32,afterListItemSelect:0,allLayerItems:32,count:32,displayMode:1,effectiveSelectionManager:32,filterText:1,hideChip:5,hideChipCloseButton:5,hideFilter:5,hideFilterNotice:5,hideHeader:5,hideItemCloseActions:5,hideItemCount:5,hideItemIcons:5,hideItemMenus:5,hideLayerFilter:5,hideMenu:5,hideZoomToButton:5,highlightOnHoverDisabled:5,listItemActionConfigurations:0,listItemUnavailableFunction:0,layer:0,layerItems:32,maxVisibleFeatureCountExceeded:32,maxVisibleFeatureCountPerLayer:9,menuScale:1,selectionManager:0,state:32,visibleFeatureCount:32,visibleFeatureItems:32,visibleLayerCount:32,visualScale:1}}static{this.styles=T}#i;#t;#e;get hasFilterText(){let{filterText:e}=this;return e!=null&&e!==""}get isUpdating(){return this.viewModel.isUpdating}get disabled(){return this.#i||this.state==="disabled"}set disabled(e){this.#i=e}get activeLayerItem(){return this.viewModel.activeLayerItem}get allLayerItems(){return this.viewModel.allLayerItems}get count(){return this.viewModel.effectiveCount}get effectiveSelectionManager(){return this.viewModel.effectiveSelectionManager}get layerItems(){return this.viewModel.layerItems}get maxVisibleFeatureCountExceeded(){return this.viewModel.maxVisibleFeatureCountExceeded}get state(){return this.viewModel.state}get visibleFeatureCount(){return this.viewModel.visibleFeatureCount}get visibleFeatureItems(){return this.viewModel.visibleFeatureItems}get visibleLayerCount(){return this.viewModel.visibleLayerCount}async clear(){this.viewModel.clear()}async collapseAll(){this.viewModel.collapseAll()}async deselectItem(e){this.viewModel.deselectItem(e)}async destroy(){this.viewModel?.destroy()}async expandAll(){this.viewModel.expandAll()}async findLayerItem(e){return this.viewModel.findLayerItem(e)}async findParentItem(e){return this.viewModel.findParentItem(e)}async goToItem(e){this.viewModel.goToItem(e)}async removeFromSelection(e){this.viewModel.removeFromSelection(e)}async replace(e){this.viewModel.replace(e)}async selectItem(e){this.viewModel.selectSingleItem(e)}connectedCallback(){super.connectedCallback(),this.#e=new IntersectionObserver((e,t)=>{let{messages:s}=this;e.forEach(i=>{if(!i.isIntersecting)return;let l=i.target;if(this.#t.has(l)){t.unobserve(l);return}let d=l.getAttribute("data-thumbnail-key"),n=d?this._getFeatureItemByThumbnailKey(d):void 0;if(!n)return;this.#t.add(l);let u=n.title&&s.previewTemplateAriaLabel?m(s.previewTemplateAriaLabel,{label:n.title}):s.preview;if(n.thumbnail){l.appendChild(n.thumbnail);return}n.fetchThumbnail({ariaLabel:u}).then(b=>b&&l.appendChild(b)).catch(()=>this.#t.delete(l))})})}disconnectedCallback(){super.disconnectedCallback(),this.#e?.disconnect()}_isDropdownItemVisible(e,t){let{hidden:s,type:i}=t;return(typeof s=="function"?s({item:e}):s)?!1:!!(!i||i==="feature"&&M(e)||i==="layer"&&v(e)||i==="group"&&L(e))}_handleClearSelection(){this.clear(),this.arcgisClear.emit()}_onFeatureItemBlur(){this.highlightOnHoverDisabled||this.viewModel.removeTemporaryHighlight()}_onFeatureItemFocus(e){this.highlightOnHoverDisabled||this.viewModel.addTemporaryHighlight(e)}_closeItemMenu(e){(!e||e===this.itemWithOpenMenu)&&(this.itemWithOpenMenu=void 0)}_getFeatureItemByThumbnailKey(e){return this.viewModel.visibleFeatureItems.find(t=>t.thumbnailKey===e)}_isItemUnavailable(e){return!e.layerIsVisible||this.listItemUnavailableFunction?.({item:e})||!1}_makeObserverRef(){let e=null;return t=>{t?(e=t,this.#e?.observe(t)):e&&(this.#e?.unobserve(e),e=null)}}_afterListItemSelect(e,t){t.stopPropagation(),this._closeItemMenu(),this.afterListItemSelect?.({item:e})}_getTooltipForChip(e){let{messages:t}=this;return!t?.selectionCount||!t?.clearSelectionCount?"":this.hideChipCloseButton?m(t.selectionCount,{count:e}):m(t.clearSelectionCount,{count:e})}#n(){if(this.hideChip||this.hideHeader)return;let{count:e}=this,t=p(e),s=!this.hideChipCloseButton&&e>0;return a`<calcite-chip appearance=outline .closable=${s} .closed=${e===0} .disabled=${this.disabled} .icon=${this.maxVisibleFeatureCountExceeded?"exclamation-mark-triangle":void 0} .label=${t} .scale=${this.visualScale} slot=header-actions-end title=${this._getTooltipForChip(e)??h} @calciteChipClose=${this._handleClearSelection}>${t}</calcite-chip>`}#c(){if(this.hideHeader||this.hideMenu)return;let{menuScale:e,messages:t}=this,s=this.disabled||this.count===0;return[a`<calcite-action .disabled=${s} icon=reset .scale=${e} slot=header-menu-actions .text=${t.clear??""} text-enabled @click=${this.clear}></calcite-action>`,a`<calcite-action .disabled=${s} icon=folders .scale=${e} slot=header-menu-actions .text=${t.collapseAll??""} text-enabled @click=${this.collapseAll}></calcite-action>`]}#r(){let{layerItems:e,messages:t}=this;if(this.count===0||e.length<2||this.hideLayerFilter)return;let s=t.allLayersCount?m(t.allLayersCount,{count:e.length}):"";return a`<calcite-combobox class=${c(r.layerDropdown)} .disabled=${this.disabled} .label=${t.filterByLayer??""} overlay-positioning=fixed .placeholder=${t.filterByLayer} .scale=${this.visualScale} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{this.filterText=void 0;let l=i.selectedItems[0]?.value??void 0;this.layer=l==="all-layers"?void 0:l}}>${o("all-layers",a`<calcite-combobox-item .heading=${s} icon=layers .selected=${this.layer==null} value=all-layers></calcite-combobox-item>`)}${this.layerItems.map(i=>this.#h(i))}</calcite-combobox>`}#d(){if(!(this.hideFilter||this.count===0))return a`<calcite-input clearable .disabled=${this.disabled} icon=search .placeholder=${this.messages.filter} .scale=${this.visualScale} .value=${this.filterText} @calciteInputInput=${({target:{value:e}})=>{this.filterText=e}}></calcite-input>`}#h(e){let t=e.title||this.messages?.untitledLayer||"";return o(e.key,a`<calcite-combobox-item .heading=${t} .icon=${e.iconName} .selected=${e.layer===this.layer} .value=${e.layer}></calcite-combobox-item>`)}#m(){let{messages:e}=this;if(this.visibleFeatureCount!==0)return a`<calcite-list .disabled=${this.disabled} display-mode=nested interaction-mode=interactive .label=${e.componentLabel??""} .loading=${this.isUpdating} .scale=${this.visualScale} selection-mode=none>${this.#s(this.allLayerItems)}</calcite-list>`}#s(e){return this.activeLayerItem?this.#l(this.activeLayerItem):e.map(t=>L(t)?this.#g(t):v(t)?this.#l(t):null).filter(t=>t!=null)}#u(){if(!(this.disabled||this.visibleFeatureCount>0||this.hideFilter||this.hideFilterNotice))return a`<calcite-notice class=${c(r.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale} width=full><div slot=message>${this.messages.noMatchingFeatures}</div></calcite-notice>`}#p(e){if(this.hideItemCount)return;let{messages:t}=this,s=p(e.total),i=p(e.visibleTotal),l=t.selectionCount?m(t.selectionCount,{count:s}):void 0;return!this.hasFilterText&&e.maxVisibleFeatureCountExceeded?a`<span class=${c(r.itemCount)} slot=content-end title=${l??h}><calcite-icon icon=exclamation-mark-triangle scale=s title=${t.tooManyFeatures??h}></calcite-icon>${`${p(this.maxVisibleFeatureCountPerLayer)}+`}</span>`:a`<span class=${c(r.itemCount)} slot=content-end title=${l??h}>${i}</span>`}#a(e){if(this.hideItemMenus)return;let{messages:t}=this,s=this.itemWithOpenMenu===e,i=M(e),l=i?t.deselectFeature:v(e)?t.deselectLayer:t.deselectGroup;return[o("dropdown",a`<calcite-dropdown .open=${s} overlay-positioning=fixed placement=bottom-end .scale=${this.menuScale} slot=actions-end width=m @calciteDropdownClose=${()=>this._closeItemMenu(e)} @calciteDropdownOpen=${()=>{this.itemWithOpenMenu=e}}>${o("action",a`<calcite-action icon=ellipsis .scale=${this.visualScale} slot=trigger .text=${t.menu??""}></calcite-action>`)}${s?o("dropdown-group",a`<calcite-dropdown-group selection-mode=none>${this.hideZoomToButton?void 0:o("zoom-to",a`<calcite-dropdown-item icon-start=layer-zoom-to @calciteDropdownItemSelect=${()=>this.goToItem(e)}>${t.zoomTo}</calcite-dropdown-item>`)}${o("select-single",a`<calcite-dropdown-item icon-start=selection-filter @calciteDropdownItemSelect=${()=>this.selectItem(e)}>${i?t.onlySelectFeature:t.onlySelectThis}</calcite-dropdown-item>`)}${o("clear-selection",a`<calcite-dropdown-item icon-start=selection-x @calciteDropdownItemSelect=${()=>this.deselectItem(e)}>${l}</calcite-dropdown-item>`)}${this.listItemActionConfigurations?.map(d=>{let{disabled:n,label:u}=d;if(this._isDropdownItemVisible(e,d))return o(`custom-action-${u}`,a`<calcite-dropdown-item .disabled=${typeof n=="function"?n({item:e}):!!n} .iconStart=${d.icon??void 0} @calciteDropdownItemSelect=${()=>d.callback({item:e})}>${u}</calcite-dropdown-item>`)})}</calcite-dropdown-group>`):void 0}</calcite-dropdown>`)]}#g(e){let t=e.title||this.messages.untitledLayer;if(e.visibleTotal===0)return;let{displayMode:s}=this;return s==="layer"||s==="feature"?this.#s(e.items):o(e.key,a`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons?void 0:e.iconName} .label=${t} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${i=>{i.stopPropagation(),e.expanded=!1}} @calciteListItemClose=${i=>{i.stopPropagation(),this.deselectItem(e)}} @calciteListItemExpand=${i=>{i.stopPropagation(),e.expanded=!0}} @calciteListItemSelect=${i=>this._afterListItemSelect(e,i)}>${this.#a(e)}${this.#s(e.items)}</calcite-list-item>`)}#l(e){if(e.visibleTotal===0||!e.visible)return;if(this.displayMode==="feature")return this.#o(e.featureItems);let{messages:t}=this,s=e.title||t.untitledLayer;return o(e.key,a`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons?void 0:e.iconName} .label=${s} title=${(e.layerIsVisible?void 0:t.layerIsNotVisible)??h} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${i=>{i.stopPropagation(),e.expanded=!1}} @calciteListItemClose=${i=>{i.stopPropagation(),this.deselectItem(e)}} @calciteListItemExpand=${i=>{i.stopPropagation(),e.expanded=!0}} @calciteListItemSelect=${i=>this._afterListItemSelect(e,i)}>${this.#p(e)}${this.#a(e)}${this.#o(e.featureItems)}${e.maxVisibleFeatureCountExceeded?a`<calcite-notice class=${c(r.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale}><div slot=message>${t.tooManyFeatures}</div></calcite-notice>`:void 0}</calcite-list-item>`)}#o(e){return e.map(t=>this.#v(t))}#v(e){if(!e.visible)return;let{hideItemIcons:t,messages:s}=this,i=e.title||s.untitledFeature,l=!t&&this.displayMode!=="feature",d=!t&&e.supportsThumbnail;return o(e.key,a`<calcite-list-item class=${c(l?r.listItemFeatureIcon:r.listItemFeature)} .closable=${!this.hideItemCloseActions} .iconStart=${d?void 0:e.iconName} .label=${i} .unavailable=${this._isItemUnavailable(e)} .value=${i} @blur=${this._onFeatureItemBlur} @calciteListItemClose=${n=>{n.stopPropagation(),this.deselectItem(e)}} @calciteListItemSelect=${n=>this._afterListItemSelect(e,n)} @focus=${this._onFeatureItemFocus.bind(this,e)} @pointerenter=${this._onFeatureItemFocus.bind(this,e)} @pointerleave=${this._onFeatureItemBlur}>${this.#$(e)}${this.#a(e)}</calcite-list-item>`)}#$(e){if(!(this.hideItemIcons||!e.supportsThumbnail))return o("thumbnail-container",a`<div class=${c(r.listItemIcon)} slot=content-start>${o(e.thumbnailKey,a`<span data-thumbnail-key=${e.thumbnailKey??h} ${I(this._makeObserverRef())}></span>`)}</div>`)}render(){let e=this.hideHeader?void 0:this.el.title||this.messages.selection;return a`<div><calcite-flow><calcite-flow-item class=${c(r.flowItem)} .heading=${e} .loading=${this.state==="loading"} overlay-positioning=fixed .scale=${this.visualScale} selected><calcite-panel class=${c(r.panel)} .disabled=${this.disabled} overlay-positioning=fixed .scale=${this.visualScale}><div class=${c(r.container)}>${this.#r()}${this.#d()}${this.#m()}${this.#u()}</div></calcite-panel>${this.#n()}${this.#c()}</calcite-flow-item></calcite-flow></div>`}};w("arcgis-selection-list",$);return $},"intl","widgets/support/SelectionList/selectionListUtils","widgets/support/SelectionList/SelectionListViewModel",b,d,e,i)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import k from"./ZTIABCV6.js";import{a as R}from"./SSNCB7LI.js";import i from"./BEUJMB3Y.js";import h from"./TMJX7DFH.js";import g from"./QZ5LJH35.js";import{a as E}from"./VJVKFKSG.js";import{b as U,c as j,d as G}from"./7N4V2IN6.js";import e from"./CBB2T3RI.js";import{a as V}from"./OHCCNZCY.js";import c from"./75OH7AOP.js";import b from"./CODEI67F.js";import{f as z,h as P}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import a from"./7XCYURYF.js";import"./QUZTFUWM.js";import{b as A}from"./4TV72DOP.js";import{a as D}from"./XURWCCLX.js";import{N as f,O as m,P as H,R as M,T as d,U as N,W as B,a as O,b as n,n as T,x as C}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([J,q,Q,{initializeProjection:Y},{renderingSanitizer:b},{stripHTML:S},{substitute:h,formatNumber:I},{when:ee,watch:u},{getGraphicOriginTitle:te},,,,Z,,,{e:k},{c:K,d:W}])=>{var ie=O`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.content-feature{--calcite-flow-item-footer-padding: 0;--calcite-flow-header-top-space: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}.diagnostics-notice{padding:var(--calcite-space-md)}`;function ae(_){return _?.declaredClass.startsWith("esri.layers.")??!1}function se(_){if(!(!_||!("featureReduction"in _)))return _.featureReduction?.type}var ne=Z(Q),oe=25,re=5,L=class extends H{constructor(){super(...arguments),this._zoomToFeature=new J({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"}),this._fetchFeaturesController=null,this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._setFocusAnimationFrameId=null,this._setFocusAnimationFrameResolve=null,this._rootFlowItemNode=f(),this._featureMenuViewportNode=f(),this._actionBarMenuNode=f(),this._flowContainerNode=f(),this._aggregatedFeaturesComponent=f(),this.messages=V(),this._selectedFeatureComponent=f(),this._direction=z(),this._cancelOpenRelatedFeature=()=>{this._openRelatedFeatureAbortController=E(this._openRelatedFeatureAbortController)},this._spinnerVisible=!1,this._spinnerVisibilityTimeout=null,this._openRelatedFeatureAbortController=null,this.flowItems=new q,this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._hasActionsStartSlotContent=!1,this._hasActionsEndSlotContent=!1,this.viewModel=ne(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.autoDestroyDisabled=!1,this.focusTrapEnabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.diagnostics=this.viewModel.diagnostics,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.effectiveHeading=this.viewModel.effectiveHeading,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=!1,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featureItemAbilities=this.viewModel.featureItemAbilities,this.goToOverride=this.viewModel.goToOverride,this.headerActions=new q,this.heading=this.viewModel.heading,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideHeading=!1,this.hideSelectFeature=!1,this.hideSpinner=!1,this.hideContent=!1,this.chartAnimationDisabled=this.viewModel.featureItemAbilities?.chartAnimation,this.hideAttachmentsContent=this.viewModel.featureItemAbilities?.attachmentsContent,this.hideEmptyRelationshipContent=!1,this.hideCustomContent=this.viewModel.featureItemAbilities?.customContent,this.hideExpressionContent=!1,this.hideFieldsContent=this.viewModel.featureItemAbilities?.fieldsContent,this.hideMediaContent=this.viewModel.featureItemAbilities?.mediaContent,this.hideRelationshipContent=this.viewModel.featureItemAbilities?.relationshipContent,this.hideTextContent=this.viewModel.featureItemAbilities?.textContent,this.hideUtilityNetworkContent=this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent,this.hideLastEditedInfo=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.open=this.viewModel.open,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.showCollapseButton=!1,this.spatialReference=this.viewModel.spatialReference,this.state=this.viewModel.state,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.arcgisPropertyChange=P()("active","collapsed","effectiveHeading","featureCount","featureMenuOpen","features","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=C(),this.arcgisClose=C(),this.arcgisTriggerAction=C()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_aggregatedFeatureCount:16,_selectedAggregatedFeatureIndex:16,_aggregatedFeaturesLoading:16,_hasActionsStartSlotContent:16,_hasActionsEndSlotContent:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,_selectedFeatureHeading:16,_selectedFeatureHeadingText:16,_selectedFeatureContent:16,_featureFlowItemSelected:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,focusTrapEnabled:5,collapseDirection:1,collapsed:5,content:1,diagnostics:0,defaultPopupTemplateEnabled:5,effectiveHeading:32,featureCount:9,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureItemAbilities:0,goToOverride:0,headerActions:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSelectFeature:5,hideSpinner:5,hideContent:5,chartAnimationDisabled:5,hideAttachmentsContent:5,hideEmptyRelationshipContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,hideRelationshipContent:5,hideTextContent:5,hideUtilityNetworkContent:5,hideLastEditedInfo:5,highlightDisabled:5,icon:1,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,map:0,messageOverrides:0,open:5,referenceElement:1,responsiveActionsEnabled:5,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:32,timeZone:1,updateLocationEnabled:5,view:0}}static{this.styles=ie}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.viewModel.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this._selectedFeatureHeading)&&!!(this.content||this._selectedFeatureContent))}get _selectedFeatureHeading(){return this.viewModel.selectedFeatureItem?.heading}get _selectedFeatureHeadingText(){return this._selectedFeatureHeading??this.messages.untitled}get _selectedFeatureContent(){return this.viewModel.selectedFeatureItem?.content}get _featureFlowItemSelected(){return this.initialDisplayMode==="list"?!!this.selectedFeature:!this.featureMenuOpen}clear(){this.viewModel.clear()}close(){this.open=!1}async destroy(){await this.manager.destroy(),this._clearSpinnerVisibilityTimeout(),this._removeSpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._cancelSetFocusAnimationFrame(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._cancelFetchingFeatures(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){this._cancelFetchingFeatures();let{signal:a}=t??{},i=new AbortController,{signal:s}=i,o=a?AbortSignal.any([s,a]):s;this._fetchFeaturesController=i,!e&&this.view&&this.location&&(await Y(this.location.spatialReference,this.view.spatialReference,null,{signal:o}),e=this.view.toScreen(this.location)??void 0),e&&await this.viewModel.fetchFeatures(e,{...t,signal:o})}next(){this.viewModel.next()}previous(){this.viewModel.previous()}async setFocus(){this._cancelSetFocusAnimationFrame(),await new Promise(e=>{this._setFocusAnimationFrameResolve=e,this._setFocusAnimationFrameId=requestAnimationFrame(()=>{this._setFocusAnimationFrameId=null;try{if(!this.isConnected||!this.viewModel?.active)return;this._flowContainerNode.value?.setFocus()}finally{this._resolveSetFocusAnimationFrame()}})})}connectedCallback(){super.connectedCallback(),this._createSpinner()}disconnectedCallback(){super.disconnectedCallback(),this._clearSpinnerVisibilityTimeout(),this._cancelSetFocusAnimationFrame(),this._removeSpinner(this.referenceElement)}loaded(){this.manager.onLifecycle(()=>[ee(()=>[this.initialDisplayMode==="list"&&!!this.viewModel?.selectedFeature,this.viewModel?.active],()=>{this.setFocus()}),u(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),u(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),u(()=>this.viewModel?.view?.scale,()=>this._viewScaleChange()),u(()=>this.viewModel?.view,(e,t)=>t&&this._viewChange()),u(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),u(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),u(()=>this.viewModel?.featureItems,()=>this._featureMenuViewportScrollTop()),u(()=>this.flowItems.length,()=>this._syncSelectedDrillInFeature()),u(()=>this.viewModel.aggregatedFeaturesEnabled,e=>{e||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._removeFlowItems())}),u(()=>this.referenceElement,(e,t)=>{this._removeSpinner(t),this._createSpinner()},{initial:!0}),u(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.pendingLocation,this.viewModel?.waitingForResult,this.viewModel?.open],()=>this._createSpinner(),{initial:!0})])}updated(){let e=this._selectedFeatureComponent.value??void 0;this.selectedFeatureComponent!==e&&T(()=>this.selectedFeatureComponent=e)}_resolveSetFocusAnimationFrame(){let e=this._setFocusAnimationFrameResolve;this._setFocusAnimationFrameResolve=null,e?.()}_cancelSetFocusAnimationFrame(){this._setFocusAnimationFrameId!=null&&(cancelAnimationFrame(this._setFocusAnimationFrameId),this._setFocusAnimationFrameId=null),this._resolveSetFocusAnimationFrame()}_cancelFetchingFeatures(){this._fetchFeaturesController=E(this._fetchFeaturesController)}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureItems:e}=this.viewModel,t=new Map;return e.forEach(a=>{let i=a?.graphic;if(!i)return;let s=k(i),o=ae(s)?s:null,r=t.get(o);r||(r=[],t.set(o,r)),r.push(a)}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;if(this._openRelatedFeatureAbortController=t,await e.updateGeometry(),t.signal.aborted)return;let a=e.graphic,i=a?.geometry;if(i==null||a==null){this._openRelatedFeatureAbortController=null;return}if(this._removeFlowItems(),await this.viewModel.zoomTo({target:i}),t.signal.aborted)return;let{labelPointExecute:s}=await $arcgis.t(m=>m[0],"geometry/operators/labelPointOperator");if(t.signal.aborted)return;let o=s(i);o!=null&&(this.location=o),this.features=[a],this.open=!0,this._openRelatedFeatureAbortController=null}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?this.selectedFeatureIndex=-1:this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?this.selectedFeatureIndex=-1:this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"&&this._handleFeatureMenuBack()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionLabel(e){let{messages:t}=this;return e.id==="zoom-to-feature"?h(t.zoomLabel??"",{messages:t,title:this._selectedFeatureHeadingText}):null}_getActionTitle(e){let{messages:t,selectedFeature:a}=this,{id:i}=e,s=a?.attributes,o=e.title??"",r=i==="zoom-to-feature"?h(o,{messages:t}):i==="remove-selected-feature"?h(o,{messages:t}):i==="zoom-to-aggregated-features"?h(o,{messages:t}):i==="browse-aggregated-features"?h(o,{messages:t}):e.title;return r&&s?h(r,s):r??""}_onMainKeydown(e){let{key:t}=e;e.defaultPrevented||U(e)||(G(t,this._direction,{horizontalOnly:!0})&&(e.preventDefault(),e.stopPropagation(),this._closeFeatureMenu(),this.previous()),j(t,this._direction,{horizontalOnly:!0})&&(e.preventDefault(),e.stopPropagation(),this._closeFeatureMenu(),this.next()))}_featureMenuViewportScrollTop(){this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:a,waitingForResult:i}=this.viewModel;i||!a||e===t||e===-1||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){e.disabled||(e?.type==="toggle"&&(e.value=!e.value),W(e,this.viewModel),this.arcgisTriggerAction.emit({action:e}))}_viewScaleChange(){let{selectedFeature:e}=this,t=k(e);!e?.isAggregate||se(t)!=="cluster"||(this.viewModel.aggregatedFeaturesEnabled=!1,this.open=!1,this.clear())}_viewChange(){this.viewModel.clear(),this.open=!1,this._aggregatedFeatureCount=0,this._removeFlowItems()}_handleAggregatedFeaturesPropertyChange({detail:e,target:t}){e.name==="aggregatedFeatureCount"&&(this._aggregatedFeatureCount=t.aggregatedFeatureCount),e.name==="selectedAggregatedFeatureIndex"&&(this._selectedAggregatedFeatureIndex=t.selectedAggregatedFeatureIndex,this._syncSelectedDrillInFeature()),e.name==="loading"&&(this._aggregatedFeaturesLoading=t.loading)}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_syncSelectedDrillInFeature(){let e=this.flowItems.getItemAt(this.flowItems.length-1);T(()=>this.selectedDrillInFeature=e?.graphic??void 0)}_removeFlowItems(){this.viewModel.aggregatedFeaturesEnabled=!1,this.flowItems?.destroyAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":case"feature-utility-network-association-type":return e.description;case"feature-relationship":return e.allItemsDescription}}_handleDrillInBackClick(){this.flowItems?.pop()?.destroy()}_getHeading(){let{effectiveHeading:e}=this.viewModel;return!this.hideHeading&&e?e:""}_handleActionsStartSlotChange(e){this._hasActionsStartSlotContent=D(e)}_handleActionsEndSlotChange(e){this._hasActionsEndSlotContent=D(e)}_removeSpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl),this._spinnerEl=void 0}_clearSpinnerVisibilityTimeout(){this._spinnerVisibilityTimeout!=null&&(clearTimeout(this._spinnerVisibilityTimeout),this._spinnerVisibilityTimeout=null)}_getSpinnerTrackLocation(){return!this.hideSpinner&&this.viewModel.open&&this.viewModel?.waitingForResult?this._spinnerVisible?!0:(this._spinnerVisibilityTimeout??=setTimeout(()=>{this._spinnerVisibilityTimeout=null,this._spinnerVisible=!0,this._createSpinner()},oe),!1):(this._clearSpinnerVisibilityTimeout(),this._spinnerVisible=!1,!1)}_createSpinner(){let e=this.referenceElement;e&&(this._removeSpinner(e),this._spinnerEl=N(n`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${this._getSpinnerTrackLocation()} .location=${this.viewModel?.pendingLocation??this.viewModel?.location??void 0} .referenceElement=${e} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}render(){return n`<div class="root">${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(()=>this._previousFeature(),()=>this._nextFeature()),this.initialDisplayMode==="list"?this._renderFeaturePaginationText(this.viewModel.featureCount,this.viewModel.selectedFeatureIndex):this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?n`<div slot=header-top class="header">${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?n`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(e,t){let{messages:a}=this;return n`<div class="pagination-text">${h(a.pageText??"",{index:I(t+1),total:I(e)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:a,streamingFeatures:i,selectedFeatureIndex:s}=t;return n`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures??""} .loading=${i} @click=${this._handlePaginationMenuButton} .text=${h(e.pageText??"",{index:I(s+1),total:I(a)})} text-enabled title=${e.showAllFeatures??""??d}></calcite-action>`}_renderPagination(e,t){let{previous:a,next:i}=this.messages;return n`<calcite-action-bar class="pagination-action-bar" expand-toggle-disabled layout=horizontal overflow-mode=none scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${a??""} @click=${e} .text=${a??""} title=${a??""??d}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${i??""} @click=${t} .text=${i??""} title=${i??""??d}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e,t){let{initialDisplayMode:a}=this,{selectedFeatureItem:i}=this.viewModel,s=e===i;return n`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(t)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(t)} .selected=${s} @calciteListItemSelect=${()=>this._selectFeature(t)}><span .innerHTML=${(b.sanitize(e.heading)||this.messages.untitled)??""} slot=content></span>${a==="list"?n`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,a=this._groupResultsByLayer(),i=new Map;t.featureItems.forEach((o,r)=>i.set(o,r));let s=this.initialDisplayMode==="list"?"none":"single";return t.featureItems.length?n`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${s}>${Array.from(a.keys(),o=>{let r=a.get(o)?.map(c=>{let g=i.get(c);return g==null?null:this._renderFeatureMenuItem(c,g)}),l=o?o.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&l!==null?R(o??"map-graphics",n`<calcite-list-item-group .heading=${l}>${r}</calcite-list-item-group>`):r})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?n`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t??d}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(e){let{headingLevel:t,hideCloseButton:a,_isCollapsed:i,_collapseEnabled:s,featureNavigationTop:o,initialDisplayMode:r,selectedFeature:l,hideHeading:c}=this,{active:g,selectedFeatureItem:v,content:F}=this.viewModel,p=this._getHeading();if(r==="list"&&!l)return null;let w=v?!v.content:!F;return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${M(A({"content-feature":!0,"flow-item-collapsed":i}))} .closable=${!a} .closed=${!g} .collapsed=${i} .collapseDirection=${this.collapseDirection??(o?"down":"up")} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!c&&p?S(p):void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!c&&p?n`<div slot=heading><div .innerHTML=${b.sanitize(p??"")??""}></div></div>`:null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${M(A("container","content-container",{"content-hidden":w}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderDiagnosticsRefineResults(){let{messages:e}=this,{view:t}=this.viewModel;return t!=null&&"effectiveMaxZoom"in t.constraints&&t.constraints.effectiveMaxZoom>=0&&t.zoom>=t.constraints.effectiveMaxZoom?e.maxRecordCountDescriptionRefineResultsMaxZoomLevel:e.maxRecordCountDescriptionRefineResults}_renderDiagnosticsList(e){let{messages:t}=this,a=Array.from(e,i=>te(i)??t.untitled);return a.length?n`<p>${t.maxRecordCountDescriptionWithLayerList}</p><ul>${a.map(i=>n`<li>${i}</li>`)}</ul><p>${this._renderDiagnosticsRefineResults()}</p>`:null}_renderDiagnosticsMultipleLayers(){let{messages:e}=this;return n`<p>${e.maxRecordCountDescriptionMultipleLayers}</p><p>${this._renderDiagnosticsRefineResults()}</p>`}_renderDiagnostics(){let{messages:e}=this,{diagnostics:t}=this.viewModel,a=t?.layerLimitExceeded;return a?.size?n`<calcite-notice class="diagnostics-notice" open kind=info scale=s><span slot=title>${e.maxRecordCountHeading}</span><div slot=message>${a.size<=re?this._renderDiagnosticsList(a):this._renderDiagnosticsMultipleLayers()}</div></calcite-notice>`:null}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:a,messages:i,initialDisplayMode:s,featureMenuOpen:o,_featureFlowItemSelected:r,_collapseEnabled:l,_isCollapsed:c,featureNavigationTop:g,headingLevel:v}=this,{active:F,featureItems:p,streamingFeatures:w}=e,x=a??i.selectFeature,$=h(i.backLabel??"",{title:this._selectedFeatureHeadingText});if(s==="feature"&&!o)return null;let y=!r;return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${M(A({"flow-item-collapsed":c}))} .closable=${!t} .closed=${!F} .collapsed=${s==="list"&&c} .collapseDirection=${this.collapseDirection??(g?"down":"up")} .collapsible=${s==="list"&&l} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand,back:$}} .description=${this.hideFeatureMenuHeading?void 0:h(i.total??"",{total:p.length})} .heading=${this.hideFeatureMenuHeading?void 0:x} .headingLevel=${v} .loading=${e.waitingForContents} .selected=${y} @calciteFlowItemBack=${X=>{X.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${w?n`<calcite-loader class="loader" inline .label=${i.loading??""} slot=header-actions-end></calcite-loader>`:null}${this._renderDiagnostics()}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${m(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?n`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${$} title=${$??d}>${i.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:a,hideCloseButton:i,hideSelectFeature:s,active:o,hideHeading:r}=this,l="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,c=l&&!s,g=e.flowType==="feature-association",v=a.returnToInitialFeature??"",F=a?.selectFeature,p=this._getActionTitle(this._zoomToFeature),w=this._getActionLabel(this._zoomToFeature),x=!this.hideActionBar&&g&&l,$=e.flowType==="feature"&&this.viewModel.aggregatedFeaturesEnabled?n`<div class="footer" slot=footer>${this._renderPagination(()=>{this._aggregatedFeaturesComponent.value?.previous()},()=>{this._aggregatedFeaturesComponent.value?.next()})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount,this._selectedAggregatedFeatureIndex)}</div>`:null;return n`<calcite-flow-item .closable=${!i} .closed=${!o} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${S(this._getDrillInFlowItemDescription(e)??"")} .heading=${r?void 0:S(e.heading??"")} .selected=${t} @calciteFlowItemBack=${y=>{y.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r?null:n`<div slot=heading><div .innerHTML=${b.sanitize(e.heading??"")??""}></div></div>`}<div slot=description><div .innerHTML=${b.sanitize(this._getDrillInFlowItemDescription(e)??"")??""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${v??""} title=${v??""??d}></calcite-action>${c?n`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${F??""} title=${F??d}></calcite-action>`:null}${x?n`<calcite-action-bar expand-toggle-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon??void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${p} title=${w??p??d} .label=${w??p} @click=${()=>K(this.viewModel,this._zoomToFeature,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class="container">${e}</div>${$}</calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e.length>0,a=this.viewModel.aggregatedFeaturesEnabled&&this.viewModel.selectedFeature?.isAggregate&&!t,i=a&&e.length===0,s=e.length===0&&this._featureFlowItemSelected&&!a,o=e?.map((c,g)=>this._renderFlowItem(c,this._featureFlowItemSelected&&g===e.length-1)),r=this._renderBrowseAggregateContainer(!!i),l=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(s)]:[this._renderContentFeature(s),this._renderFeatureMenuContainer()];return n`<calcite-flow ${m(this._flowContainerNode)}>${l}${r}${o}</calcite-flow>`}_renderBrowseAggregateContainer(e){let{hideCloseButton:t,active:a,messages:i}=this,{selectedFeature:s}=this.viewModel,o=this.viewModel.aggregatedFeaturesEnabled&&s?.isAggregate,r=h(i.backLabel??"",{title:this._selectedFeatureHeadingText});return o?n`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .focusTrapEnabled=${this.focusTrapEnabled} .description=${this._aggregatedFeatureCount?h(i.total??"",{total:this._aggregatedFeatureCount}):""} .heading=${i.aggregatedFeatures} @calciteFlowItemBack=${l=>{l.preventDefault(),this.viewModel.aggregatedFeaturesEnabled=!1}} .messageOverrides=${{back:r}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s??void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map??void 0} .messageOverrides=${this.messageOverrides} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.view??void 0} ${m(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${()=>this.viewModel.aggregatedFeaturesEnabled=!1} slot=footer-start scale=s width=full .label=${r} title=${r??d}>${i.back}</calcite-button></calcite-flow-item>`:null}_renderActionBar(){let e=this.viewModel.selectedFeatureItem?.isFeatureFromTable,t=this.viewModel.allActions.toArray(),a=e&&!this.location?t.filter(o=>o.id!==this._zoomToFeature.id):t,i=!!a.length||this._hasActionsStartSlotContent||this._hasActionsEndSlotContent,s=this._isCollapsed||this.hideActionBar||!i;return n`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s?void 0:"action-bar")??d} .hidden=${s}><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${m(this._actionBarMenuNode)}>${this._renderActions(a)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`}_renderActions(e){return e.map(t=>{let a=this._getActionTitle(t),i=this._getActionLabel(t);return n`<calcite-action .active=${t.type==="toggle"?t.value:!1} .disabled=${t.disabled} .icon=${t.icon??void 0} .loading=${t.active} scale=s .textEnabled=${!this._hideActionText} .text=${a??""} .label=${i??a} title=${i??a??d} .hidden=${!t.visible} @click=${()=>this._triggerAction(t)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureItem:t}=this.viewModel;return t?n`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature-next>`:typeof e=="string"?R(e,n`<div .innerHTML=${b.sanitize(e)??""}></div>`):e??null}};B("arcgis-features-next",L);return L},"support/actions/ActionButton","core/Collection","popup/FeatureContentCollection","applications/Components/featureUtils","applications/Components/sanitizerUtils","applications/Components/stringUtils","intl","core/reactiveUtils","graphic/getGraphicOriginTitle",a,b,c,e,g,h,i,k)
|
|
2
|
+
import k from"./XSC3MQIT.js";import{a as R}from"./KBHLE7HT.js";import i from"./IFMBHZHX.js";import h from"./TMJX7DFH.js";import g from"./DSDPDMLP.js";import{a as E}from"./VJVKFKSG.js";import{b as U,c as j,d as G}from"./7N4V2IN6.js";import e from"./R2WT5JJH.js";import{a as V}from"./A76HBA6R.js";import c from"./AAKBSWDH.js";import b from"./DKT2KG4V.js";import{f as z,h as P}from"./WIMFUYH2.js";import"./V2TJMHWI.js";import a from"./W3GAVPP4.js";import"./QUZTFUWM.js";import{b as A}from"./LMFSC4DB.js";import{a as D}from"./XURWCCLX.js";import{N as f,O as m,P as H,R as M,U as d,V as N,X as B,a as O,b as n,n as T,x as C}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([J,q,Q,{initializeProjection:Y},{renderingSanitizer:b},{stripHTML:S},{substitute:h,formatNumber:I},{when:ee,watch:u},{getGraphicOriginTitle:te},,,,Z,,,{e:k},{c:K,d:W}])=>{var ie=O`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.content-feature{--calcite-flow-item-footer-padding: 0;--calcite-flow-header-top-space: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}.diagnostics-notice{padding:var(--calcite-space-md)}`;function ae(_){return _?.declaredClass.startsWith("esri.layers.")??!1}function se(_){if(!(!_||!("featureReduction"in _)))return _.featureReduction?.type}var ne=Z(Q),oe=25,re=5,L=class extends H{constructor(){super(...arguments),this._zoomToFeature=new J({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"}),this._fetchFeaturesController=null,this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._setFocusAnimationFrameId=null,this._setFocusAnimationFrameResolve=null,this._rootFlowItemNode=f(),this._featureMenuViewportNode=f(),this._actionBarMenuNode=f(),this._flowContainerNode=f(),this._aggregatedFeaturesComponent=f(),this.messages=V(),this._selectedFeatureComponent=f(),this._direction=z(),this._cancelOpenRelatedFeature=()=>{this._openRelatedFeatureAbortController=E(this._openRelatedFeatureAbortController)},this._spinnerVisible=!1,this._spinnerVisibilityTimeout=null,this._openRelatedFeatureAbortController=null,this.flowItems=new q,this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._hasActionsStartSlotContent=!1,this._hasActionsEndSlotContent=!1,this.viewModel=ne(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.autoDestroyDisabled=!1,this.focusTrapEnabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.diagnostics=this.viewModel.diagnostics,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.effectiveHeading=this.viewModel.effectiveHeading,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=!1,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featureItemAbilities=this.viewModel.featureItemAbilities,this.goToOverride=this.viewModel.goToOverride,this.headerActions=new q,this.heading=this.viewModel.heading,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideHeading=!1,this.hideSelectFeature=!1,this.hideSpinner=!1,this.hideContent=!1,this.chartAnimationDisabled=this.viewModel.featureItemAbilities?.chartAnimation,this.hideAttachmentsContent=this.viewModel.featureItemAbilities?.attachmentsContent,this.hideEmptyRelationshipContent=!1,this.hideCustomContent=this.viewModel.featureItemAbilities?.customContent,this.hideExpressionContent=!1,this.hideFieldsContent=this.viewModel.featureItemAbilities?.fieldsContent,this.hideMediaContent=this.viewModel.featureItemAbilities?.mediaContent,this.hideRelationshipContent=this.viewModel.featureItemAbilities?.relationshipContent,this.hideTextContent=this.viewModel.featureItemAbilities?.textContent,this.hideUtilityNetworkContent=this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent,this.hideLastEditedInfo=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.open=this.viewModel.open,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.showCollapseButton=!1,this.spatialReference=this.viewModel.spatialReference,this.state=this.viewModel.state,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.arcgisPropertyChange=P()("active","collapsed","effectiveHeading","featureCount","featureMenuOpen","features","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=C(),this.arcgisClose=C(),this.arcgisTriggerAction=C()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_aggregatedFeatureCount:16,_selectedAggregatedFeatureIndex:16,_aggregatedFeaturesLoading:16,_hasActionsStartSlotContent:16,_hasActionsEndSlotContent:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,_selectedFeatureHeading:16,_selectedFeatureHeadingText:16,_selectedFeatureContent:16,_featureFlowItemSelected:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,focusTrapEnabled:5,collapseDirection:1,collapsed:5,content:1,diagnostics:0,defaultPopupTemplateEnabled:5,effectiveHeading:32,featureCount:9,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureItemAbilities:0,goToOverride:0,headerActions:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSelectFeature:5,hideSpinner:5,hideContent:5,chartAnimationDisabled:5,hideAttachmentsContent:5,hideEmptyRelationshipContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,hideRelationshipContent:5,hideTextContent:5,hideUtilityNetworkContent:5,hideLastEditedInfo:5,highlightDisabled:5,icon:1,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,map:0,messageOverrides:0,open:5,referenceElement:1,responsiveActionsEnabled:5,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:32,timeZone:1,updateLocationEnabled:5,view:0}}static{this.styles=ie}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.viewModel.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this._selectedFeatureHeading)&&!!(this.content||this._selectedFeatureContent))}get _selectedFeatureHeading(){return this.viewModel.selectedFeatureItem?.heading}get _selectedFeatureHeadingText(){return this._selectedFeatureHeading??this.messages.untitled}get _selectedFeatureContent(){return this.viewModel.selectedFeatureItem?.content}get _featureFlowItemSelected(){return this.initialDisplayMode==="list"?!!this.selectedFeature:!this.featureMenuOpen}clear(){this.viewModel.clear()}close(){this.open=!1}async destroy(){await this.manager.destroy(),this._clearSpinnerVisibilityTimeout(),this._removeSpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._cancelSetFocusAnimationFrame(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._cancelFetchingFeatures(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){this._cancelFetchingFeatures();let{signal:a}=t??{},i=new AbortController,{signal:s}=i,o=a?AbortSignal.any([s,a]):s;this._fetchFeaturesController=i,!e&&this.view&&this.location&&(await Y(this.location.spatialReference,this.view.spatialReference,null,{signal:o}),e=this.view.toScreen(this.location)??void 0),e&&await this.viewModel.fetchFeatures(e,{...t,signal:o})}next(){this.viewModel.next()}previous(){this.viewModel.previous()}async setFocus(){this._cancelSetFocusAnimationFrame(),await new Promise(e=>{this._setFocusAnimationFrameResolve=e,this._setFocusAnimationFrameId=requestAnimationFrame(()=>{this._setFocusAnimationFrameId=null;try{if(!this.isConnected||!this.viewModel?.active)return;this._flowContainerNode.value?.setFocus()}finally{this._resolveSetFocusAnimationFrame()}})})}connectedCallback(){super.connectedCallback(),this._createSpinner()}disconnectedCallback(){super.disconnectedCallback(),this._clearSpinnerVisibilityTimeout(),this._cancelSetFocusAnimationFrame(),this._removeSpinner(this.referenceElement)}loaded(){this.manager.onLifecycle(()=>[ee(()=>[this.initialDisplayMode==="list"&&!!this.viewModel?.selectedFeature,this.viewModel?.active],()=>{this.setFocus()}),u(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),u(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),u(()=>this.viewModel?.view?.scale,()=>this._viewScaleChange()),u(()=>this.viewModel?.view,(e,t)=>t&&this._viewChange()),u(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),u(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),u(()=>this.viewModel?.featureItems,()=>this._featureMenuViewportScrollTop()),u(()=>this.flowItems.length,()=>this._syncSelectedDrillInFeature()),u(()=>this.viewModel.aggregatedFeaturesEnabled,e=>{e||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._removeFlowItems())}),u(()=>this.referenceElement,(e,t)=>{this._removeSpinner(t),this._createSpinner()},{initial:!0}),u(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.pendingLocation,this.viewModel?.waitingForResult,this.viewModel?.open],()=>this._createSpinner(),{initial:!0})])}updated(){let e=this._selectedFeatureComponent.value??void 0;this.selectedFeatureComponent!==e&&T(()=>this.selectedFeatureComponent=e)}_resolveSetFocusAnimationFrame(){let e=this._setFocusAnimationFrameResolve;this._setFocusAnimationFrameResolve=null,e?.()}_cancelSetFocusAnimationFrame(){this._setFocusAnimationFrameId!=null&&(cancelAnimationFrame(this._setFocusAnimationFrameId),this._setFocusAnimationFrameId=null),this._resolveSetFocusAnimationFrame()}_cancelFetchingFeatures(){this._fetchFeaturesController=E(this._fetchFeaturesController)}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureItems:e}=this.viewModel,t=new Map;return e.forEach(a=>{let i=a?.graphic;if(!i)return;let s=k(i),o=ae(s)?s:null,r=t.get(o);r||(r=[],t.set(o,r)),r.push(a)}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;if(this._openRelatedFeatureAbortController=t,await e.updateGeometry(),t.signal.aborted)return;let a=e.graphic,i=a?.geometry;if(i==null||a==null){this._openRelatedFeatureAbortController=null;return}if(this._removeFlowItems(),await this.viewModel.zoomTo({target:i}),t.signal.aborted)return;let{labelPointExecute:s}=await $arcgis.t(m=>m[0],"geometry/operators/labelPointOperator");if(t.signal.aborted)return;let o=s(i);o!=null&&(this.location=o),this.features=[a],this.open=!0,this._openRelatedFeatureAbortController=null}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?this.selectedFeatureIndex=-1:this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?this.selectedFeatureIndex=-1:this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"&&this._handleFeatureMenuBack()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionLabel(e){let{messages:t}=this;return e.id==="zoom-to-feature"?h(t.zoomLabel??"",{messages:t,title:this._selectedFeatureHeadingText}):null}_getActionTitle(e){let{messages:t,selectedFeature:a}=this,{id:i}=e,s=a?.attributes,o=e.title??"",r=i==="zoom-to-feature"?h(o,{messages:t}):i==="remove-selected-feature"?h(o,{messages:t}):i==="zoom-to-aggregated-features"?h(o,{messages:t}):i==="browse-aggregated-features"?h(o,{messages:t}):e.title;return r&&s?h(r,s):r??""}_onMainKeydown(e){let{key:t}=e;e.defaultPrevented||U(e)||(G(t,this._direction,{horizontalOnly:!0})&&(e.preventDefault(),e.stopPropagation(),this._closeFeatureMenu(),this.previous()),j(t,this._direction,{horizontalOnly:!0})&&(e.preventDefault(),e.stopPropagation(),this._closeFeatureMenu(),this.next()))}_featureMenuViewportScrollTop(){this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:a,waitingForResult:i}=this.viewModel;i||!a||e===t||e===-1||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){e.disabled||(e?.type==="toggle"&&(e.value=!e.value),W(e,this.viewModel),this.arcgisTriggerAction.emit({action:e}))}_viewScaleChange(){let{selectedFeature:e}=this,t=k(e);!e?.isAggregate||se(t)!=="cluster"||(this.viewModel.aggregatedFeaturesEnabled=!1,this.open=!1,this.clear())}_viewChange(){this.viewModel.clear(),this.open=!1,this._aggregatedFeatureCount=0,this._removeFlowItems()}_handleAggregatedFeaturesPropertyChange({detail:e,target:t}){e.name==="aggregatedFeatureCount"&&(this._aggregatedFeatureCount=t.aggregatedFeatureCount),e.name==="selectedAggregatedFeatureIndex"&&(this._selectedAggregatedFeatureIndex=t.selectedAggregatedFeatureIndex,this._syncSelectedDrillInFeature()),e.name==="loading"&&(this._aggregatedFeaturesLoading=t.loading)}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_syncSelectedDrillInFeature(){let e=this.flowItems.getItemAt(this.flowItems.length-1);T(()=>this.selectedDrillInFeature=e?.graphic??void 0)}_removeFlowItems(){this.viewModel.aggregatedFeaturesEnabled=!1,this.flowItems?.destroyAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":case"feature-utility-network-association-type":return e.description;case"feature-relationship":return e.allItemsDescription}}_handleDrillInBackClick(){this.flowItems?.pop()?.destroy()}_getHeading(){let{effectiveHeading:e}=this.viewModel;return!this.hideHeading&&e?e:""}_handleActionsStartSlotChange(e){this._hasActionsStartSlotContent=D(e)}_handleActionsEndSlotChange(e){this._hasActionsEndSlotContent=D(e)}_removeSpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl),this._spinnerEl=void 0}_clearSpinnerVisibilityTimeout(){this._spinnerVisibilityTimeout!=null&&(clearTimeout(this._spinnerVisibilityTimeout),this._spinnerVisibilityTimeout=null)}_getSpinnerTrackLocation(){return!this.hideSpinner&&this.viewModel.open&&this.viewModel?.waitingForResult?this._spinnerVisible?!0:(this._spinnerVisibilityTimeout??=setTimeout(()=>{this._spinnerVisibilityTimeout=null,this._spinnerVisible=!0,this._createSpinner()},oe),!1):(this._clearSpinnerVisibilityTimeout(),this._spinnerVisible=!1,!1)}_createSpinner(){let e=this.referenceElement;e&&(this._removeSpinner(e),this._spinnerEl=N(n`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${this._getSpinnerTrackLocation()} .location=${this.viewModel?.pendingLocation??this.viewModel?.location??void 0} .referenceElement=${e} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}render(){return n`<div class="root">${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(()=>this._previousFeature(),()=>this._nextFeature()),this.initialDisplayMode==="list"?this._renderFeaturePaginationText(this.viewModel.featureCount,this.viewModel.selectedFeatureIndex):this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?n`<div slot=header-top class="header">${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?n`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(e,t){let{messages:a}=this;return n`<div class="pagination-text">${h(a.pageText??"",{index:I(t+1),total:I(e)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:a,streamingFeatures:i,selectedFeatureIndex:s}=t;return n`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures??""} .loading=${i} @click=${this._handlePaginationMenuButton} .text=${h(e.pageText??"",{index:I(s+1),total:I(a)})} text-enabled title=${e.showAllFeatures??""??d}></calcite-action>`}_renderPagination(e,t){let{previous:a,next:i}=this.messages;return n`<calcite-action-bar class="pagination-action-bar" expand-toggle-disabled layout=horizontal overflow-mode=none scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${a??""} @click=${e} .text=${a??""} title=${a??""??d}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${i??""} @click=${t} .text=${i??""} title=${i??""??d}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e,t){let{initialDisplayMode:a}=this,{selectedFeatureItem:i}=this.viewModel,s=e===i;return n`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(t)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(t)} .selected=${s} @calciteListItemSelect=${()=>this._selectFeature(t)}><span .innerHTML=${(b.sanitize(e.heading)||this.messages.untitled)??""} slot=content></span>${a==="list"?n`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,a=this._groupResultsByLayer(),i=new Map;t.featureItems.forEach((o,r)=>i.set(o,r));let s=this.initialDisplayMode==="list"?"none":"single";return t.featureItems.length?n`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${s}>${Array.from(a.keys(),o=>{let r=a.get(o)?.map(c=>{let g=i.get(c);return g==null?null:this._renderFeatureMenuItem(c,g)}),l=o?o.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&l!==null?R(o??"map-graphics",n`<calcite-list-item-group .heading=${l}>${r}</calcite-list-item-group>`):r})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?n`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t??d}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(e){let{headingLevel:t,hideCloseButton:a,_isCollapsed:i,_collapseEnabled:s,featureNavigationTop:o,initialDisplayMode:r,selectedFeature:l,hideHeading:c}=this,{active:g,selectedFeatureItem:v,content:F}=this.viewModel,p=this._getHeading();if(r==="list"&&!l)return null;let w=v?!v.content:!F;return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${M(A({"content-feature":!0,"flow-item-collapsed":i}))} .closable=${!a} .closed=${!g} .collapsed=${i} .collapseDirection=${this.collapseDirection??(o?"down":"up")} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!c&&p?S(p):void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!c&&p?n`<div slot=heading><div .innerHTML=${b.sanitize(p??"")??""}></div></div>`:null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${M(A("container","content-container",{"content-hidden":w}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderDiagnosticsRefineResults(){let{messages:e}=this,{view:t}=this.viewModel;return t!=null&&"effectiveMaxZoom"in t.constraints&&t.constraints.effectiveMaxZoom>=0&&t.zoom>=t.constraints.effectiveMaxZoom?e.maxRecordCountDescriptionRefineResultsMaxZoomLevel:e.maxRecordCountDescriptionRefineResults}_renderDiagnosticsList(e){let{messages:t}=this,a=Array.from(e,i=>te(i)??t.untitled);return a.length?n`<p>${t.maxRecordCountDescriptionWithLayerList}</p><ul>${a.map(i=>n`<li>${i}</li>`)}</ul><p>${this._renderDiagnosticsRefineResults()}</p>`:null}_renderDiagnosticsMultipleLayers(){let{messages:e}=this;return n`<p>${e.maxRecordCountDescriptionMultipleLayers}</p><p>${this._renderDiagnosticsRefineResults()}</p>`}_renderDiagnostics(){let{messages:e}=this,{diagnostics:t}=this.viewModel,a=t?.layerLimitExceeded;return a?.size?n`<calcite-notice class="diagnostics-notice" open kind=info scale=s><span slot=title>${e.maxRecordCountHeading}</span><div slot=message>${a.size<=re?this._renderDiagnosticsList(a):this._renderDiagnosticsMultipleLayers()}</div></calcite-notice>`:null}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:a,messages:i,initialDisplayMode:s,featureMenuOpen:o,_featureFlowItemSelected:r,_collapseEnabled:l,_isCollapsed:c,featureNavigationTop:g,headingLevel:v}=this,{active:F,featureItems:p,streamingFeatures:w}=e,x=a??i.selectFeature,$=h(i.backLabel??"",{title:this._selectedFeatureHeadingText});if(s==="feature"&&!o)return null;let y=!r;return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${M(A({"flow-item-collapsed":c}))} .closable=${!t} .closed=${!F} .collapsed=${s==="list"&&c} .collapseDirection=${this.collapseDirection??(g?"down":"up")} .collapsible=${s==="list"&&l} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand,back:$}} .description=${this.hideFeatureMenuHeading?void 0:h(i.total??"",{total:p.length})} .heading=${this.hideFeatureMenuHeading?void 0:x} .headingLevel=${v} .loading=${e.waitingForContents} .selected=${y} @calciteFlowItemBack=${X=>{X.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${w?n`<calcite-loader class="loader" inline .label=${i.loading??""} slot=header-actions-end></calcite-loader>`:null}${this._renderDiagnostics()}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${m(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?n`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${$} title=${$??d}>${i.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:a,hideCloseButton:i,hideSelectFeature:s,active:o,hideHeading:r}=this,l="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,c=l&&!s,g=e.flowType==="feature-association",v=a.returnToInitialFeature??"",F=a?.selectFeature,p=this._getActionTitle(this._zoomToFeature),w=this._getActionLabel(this._zoomToFeature),x=!this.hideActionBar&&g&&l,$=e.flowType==="feature"&&this.viewModel.aggregatedFeaturesEnabled?n`<div class="footer" slot=footer>${this._renderPagination(()=>{this._aggregatedFeaturesComponent.value?.previous()},()=>{this._aggregatedFeaturesComponent.value?.next()})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount,this._selectedAggregatedFeatureIndex)}</div>`:null;return n`<calcite-flow-item .closable=${!i} .closed=${!o} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${S(this._getDrillInFlowItemDescription(e)??"")} .heading=${r?void 0:S(e.heading??"")} .selected=${t} @calciteFlowItemBack=${y=>{y.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r?null:n`<div slot=heading><div .innerHTML=${b.sanitize(e.heading??"")??""}></div></div>`}<div slot=description><div .innerHTML=${b.sanitize(this._getDrillInFlowItemDescription(e)??"")??""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${v??""} title=${v??""??d}></calcite-action>${c?n`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${F??""} title=${F??d}></calcite-action>`:null}${x?n`<calcite-action-bar expand-toggle-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon??void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${p} title=${w??p??d} .label=${w??p} @click=${()=>K(this.viewModel,this._zoomToFeature,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class="container">${e}</div>${$}</calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e.length>0,a=this.viewModel.aggregatedFeaturesEnabled&&this.viewModel.selectedFeature?.isAggregate&&!t,i=a&&e.length===0,s=e.length===0&&this._featureFlowItemSelected&&!a,o=e?.map((c,g)=>this._renderFlowItem(c,this._featureFlowItemSelected&&g===e.length-1)),r=this._renderBrowseAggregateContainer(!!i),l=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(s)]:[this._renderContentFeature(s),this._renderFeatureMenuContainer()];return n`<calcite-flow ${m(this._flowContainerNode)}>${l}${r}${o}</calcite-flow>`}_renderBrowseAggregateContainer(e){let{hideCloseButton:t,active:a,messages:i}=this,{selectedFeature:s}=this.viewModel,o=this.viewModel.aggregatedFeaturesEnabled&&s?.isAggregate,r=h(i.backLabel??"",{title:this._selectedFeatureHeadingText});return o?n`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .focusTrapEnabled=${this.focusTrapEnabled} .description=${this._aggregatedFeatureCount?h(i.total??"",{total:this._aggregatedFeatureCount}):""} .heading=${i.aggregatedFeatures} @calciteFlowItemBack=${l=>{l.preventDefault(),this.viewModel.aggregatedFeaturesEnabled=!1}} .messageOverrides=${{back:r}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s??void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map??void 0} .messageOverrides=${this.messageOverrides} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.view??void 0} ${m(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${()=>this.viewModel.aggregatedFeaturesEnabled=!1} slot=footer-start scale=s width=full .label=${r} title=${r??d}>${i.back}</calcite-button></calcite-flow-item>`:null}_renderActionBar(){let e=this.viewModel.selectedFeatureItem?.isFeatureFromTable,t=this.viewModel.allActions.toArray(),a=e&&!this.location?t.filter(o=>o.id!==this._zoomToFeature.id):t,i=!!a.length||this._hasActionsStartSlotContent||this._hasActionsEndSlotContent,s=this._isCollapsed||this.hideActionBar||!i;return n`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s?void 0:"action-bar")??d} .hidden=${s}><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${m(this._actionBarMenuNode)}>${this._renderActions(a)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`}_renderActions(e){return e.map(t=>{let a=this._getActionTitle(t),i=this._getActionLabel(t);return n`<calcite-action .active=${t.type==="toggle"?t.value:!1} .disabled=${t.disabled} .icon=${t.icon??void 0} .loading=${t.active} scale=s .textEnabled=${!this._hideActionText} .text=${a??""} .label=${i??a} title=${i??a??d} .hidden=${!t.visible} @click=${()=>this._triggerAction(t)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureItem:t}=this.viewModel;return t?n`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature-next>`:typeof e=="string"?R(e,n`<div .innerHTML=${b.sanitize(e)??""}></div>`):e??null}};B("arcgis-features-next",L);return L},"support/actions/ActionButton","core/Collection","popup/FeatureContentCollection","applications/Components/featureUtils","applications/Components/sanitizerUtils","applications/Components/stringUtils","intl","core/reactiveUtils","graphic/getGraphicOriginTitle",a,b,c,e,g,h,i,k)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as _,b as z,c as V}from"./
|
|
2
|
+
import{a as _,b as z,c as V}from"./FNSGB45I.js";import{a as e,b as O,c as p,d as s,e as o,f as r}from"./VDTRRLON.js";import{a as y}from"./GU3M4JMW.js";import{a as d}from"./A76HBA6R.js";import{a as g}from"./JD74LG7K.js";import f from"./DKT2KG4V.js";import"./WIMFUYH2.js";import"./V2TJMHWI.js";import b from"./W3GAVPP4.js";import"./QUZTFUWM.js";import"./LMFSC4DB.js";import"./XURWCCLX.js";import{P as l,R as u,U as a,X as w,b as c,x as v}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{a:f}])=>{var h=class extends l{constructor(){super(...arguments),this.messages=d({name:"zoom"}),this._state="disabled",this.view=f(this),this.autoDestroyDisabled=!1,this.icon="magnifying-glass-plus",this.layout="vertical",this.visualScale="m",this.arcgisReady=v()}static{this.properties={_state:16,_canZoomIn:16,_canZoomOut:16,_maxFOV:16,_minFOV:16,zoomLevel:32,view:0,autoDestroyDisabled:5,icon:1,label:1,layout:3,messageOverrides:0,referenceElement:1,visualScale:1,state:32,hfov:32,vfov:32}}static{this.styles=V}get _canZoomIn(){return this.view?.ready?this._minFOV===0?!0:this.view.camera.fov>this._minFOV:!1}get _canZoomOut(){return this.view?.ready?this._maxFOV===0?!0:this.view.camera.fov<this._maxFOV:!1}get _maxFOV(){if(!this.view?.ready)return s;let t=this.view.width/this.view.height;return e(s,t)}get _minFOV(){if(!this.view?.ready)return o;let t=this.view.width/this.view.height;return e(o,t)}get zoomLevel(){if(!this.view?.ready)return;let{hfov:t}=this;return Math.max(1,Math.log(s/t)/Math.log(2))}get state(){return this._state}get hfov(){let{view:t}=this;if(!t?.ready)return;let i=t.width/t.height;return O(t.camera.fov,i)}get vfov(){let{view:t}=this;if(!t?.ready)return;let i=t.width/t.height;return p(t.camera.fov,i)}async destroy(){await this.manager.destroy()}zoomFOV(t){this.view?.ready&&(this.view.camera.fov=y(t,this._minFOV,this._maxFOV),this.view.camera=this.view.camera.clone())}zoomIn(){if(!this._canZoomIn||!this.view)return;let t=this.view.width/this.view.height;this.zoomFOV(this.view.camera.fov-e(r,t))}zoomOut(){if(!this._canZoomOut||!this.view)return;let t=this.view.width/this.view.height;this.zoomFOV(this.view.camera.fov+e(r,t))}render(){let t=_(this.view),i=z(this.view),{zoomIn:n,zoomOut:m}=this.messages;return c`<div class=${u({[g.arcgisButton]:!0,horizontal:this.layout==="horizontal"})}><calcite-button class="zoom-in" .disabled=${!t} icon-start=plus kind=neutral .label=${n} @click=${this.zoomIn} .scale=${this.visualScale} title=${n??a}></calcite-button><calcite-button class="zoom-out" .disabled=${!i} icon-start=minus kind=neutral .label=${m} @click=${this.zoomOut} .scale=${this.visualScale} title=${m??a}></calcite-button></div>`}};w("arcgis-oriented-imagery-viewer-panoramic-viewer-zoom",h);return h},b,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./4F2ZWXO2.js";import d from"./DL57EVZ4.js";import b from"./YU5BTZEI.js";import{f as F}from"./WIMFUYH2.js";import"./V2TJMHWI.js";import"./QUZTFUWM.js";import{b as c}from"./LMFSC4DB.js";import"./XURWCCLX.js";import{P as C,R as m,S as f,U as a,X as A,a as H,b as h,c as W}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getBoundingBox:O,computeBBox:P,getTransformMatrix:D},,,{a:U,b:X,c:Y,d:j}])=>{var Q=H`.diamond-container{display:flex;font-size:var(--calcite-font-size-sm)}.diamond-left-column{align-self:center;padding-inline-end:5px;max-width:85px;text-align:right}.diamond-right-column{align-self:center;padding-inline-start:5px;max-width:85px;text-align:left}.diamond-middle-column{display:flex;flex-direction:column;text-align:center}.diamond-middle-column-label{align-self:center;max-width:85px}.diamond-middle-column-ramp{width:85px;height:85px}.square-table{display:table;font-size:var(--calcite-font-size-sm)}.square-table-row{display:table-row}.square-table-cell{display:table-cell}.square-table-label{max-width:95px}.square-table-label-left-bottom{vertical-align:bottom;text-align:left}.square-table-label-right-bottom{vertical-align:bottom;text-align:right}.square-table-label-left-top{vertical-align:top;text-align:left}.square-table-label-right-top{vertical-align:top;text-align:right}`,Z="http://www.w3.org/2000/svg",v=class extends C{constructor(){super(...arguments),this._direction=F(),this.legendElement=null}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=Q}_getLineMarkers(n,r){let e="arrowStart",i="arrowEnd",s=n==="left",t={markerStart:null,markerEnd:null};switch(r){case"HL":s?t.markerStart=`url(#${i})`:t.markerEnd=`url(#${e})`;break;case"LL":t.markerStart=`url(#${i})`;break;case"LH":s?t.markerEnd=`url(#${e})`:t.markerStart=`url(#${i})`;break;default:t.markerEnd=`url(#${e})`;break}return t}render(){let n=this.legendElement,{focus:r,labels:e}=n,i=!!r,s=this._renderRamp(n),t={justifyContent:"center"},l=this._direction==="rtl";return i?h`<div class="diamond-container" style=${f(t)}><div class="diamond-left-column">${l?e.right:e.left}</div><div class="diamond-middle-column"><div class="diamond-middle-column-label">${e.top}</div>${s}<div class="diamond-middle-column-label">${e.bottom}</div></div><div class="diamond-right-column">${l?e.left:e.right}</div></div>`:h`<div class="square-table"><div class="square-table-row"><div class=${m(c("square-table-cell","square-table-label","square-table-label-right-bottom"))}>${l?e.top:e.left}</div><div class="square-table-cell"></div><div class=${m(c("square-table-cell","square-table-label","square-table-label-left-bottom"))}>${l?e.left:e.top}</div></div><div class="square-table-row"><div class="square-table-cell"></div>${s}<div class="square-table-cell"></div></div><div class="square-table-row"><div class=${m(c("square-table-cell","square-table-label","square-table-label-right-top"))}>${l?e.right:e.bottom}</div><div class="square-table-cell"></div><div class=${m(c("square-table-cell","square-table-label","square-table-label-left-top"))}>${l?e.bottom:e.right}</div></div></div>`}_renderRamp(n){let{focus:r,numClasses:e,colors:i,rotation:s}=n,t=this.opacity,l=this.messages.previewRelationshipRampAriaLabel,o=60,u=!!r,d=Math.sqrt(o**2+o**2)+(u?0:5),$=[],k=[],x=[],b=o/e;for(let p=0;p<e;p++){let J=p*b;for(let g=0;g<e;g++){let K=g*b,_=X(i[p][g]),N=Y(null),R={type:"rect",x:K,y:J,width:b,height:b},z=U(_);z&&$.push(z);let B=j(R,_.fill,N,null);B&&k.push(B),x.push(O(R))}}let q=15,w=15,y=10,E;u||(E="margin: -15px -15px -18px -15px");let L=this._getLineMarkers("left",r),S=this._getLineMarkers("right",r),M=P(x),T=D(M,d,d,0,!1,s,!1),G=D(M,d,d,0,!1,u?-45:null,!1),I={filter:this.cssEffectFilter,opacity:t==null?"":`${t}`};return h`<div class=${m(u?"diamond-middle-column-ramp":"square-table-cell")} style=${f(I)}><svg .ariaLabel=${l} height=${d??a} role=img style=${f(E)} width=${d??a} xmlns=${Z}>${W`<defs><marker .id=${"arrowStart"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=5 refY=5><polyline fill=none points="0,0 5,5 0,10" stroke=#555555 stroke-width=1 /></marker><marker .id=${"arrowEnd"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=0 refY=5><polyline fill=none points="5,0 0,5 5,10" stroke=#555555 stroke-width=1 /></marker>${$}</defs><g transform=${T??a}>${k}</g><g transform=${G??a}><line fill=none marker-end=${L.markerEnd??void 0??a} marker-start=${L.markerStart??void 0??a} stroke=#555555 stroke-width=1 x1=${-10} x2=${-10} y1=${o-q} y2=${q} /><line fill=none marker-end=${S.markerEnd??void 0??a} marker-start=${S.markerStart??void 0??a} stroke=#555555 stroke-width=1 x1=${w} x2=${o-w} y1=${o+y} y2=${o+y} /></g>`}</svg></div>`}};A("arcgis-legend-relationship-ramp",v);return v},"applications/Components/svgUtils",b,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as g}from"./
|
|
2
|
+
import{a as g}from"./A76HBA6R.js";import{a as v}from"./JD74LG7K.js";import e from"./DKT2KG4V.js";import{h as f}from"./WIMFUYH2.js";import"./V2TJMHWI.js";import b from"./W3GAVPP4.js";import"./QUZTFUWM.js";import{b as d,d as h}from"./LMFSC4DB.js";import"./XURWCCLX.js";import{P as i,R as a,U as u,X as m,a as c,b as n,x as o}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{a:p}])=>{var E=c`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}`;function x(s){return s.includes("#")||s.includes(".")||s.includes("[")?s:`#${s}`}var r=class extends i{constructor(){super(),this.messages=g(),this.view=p(this),this.visualScale="m",this.arcgisPropertyChange=f()("state"),this.arcgisReady=o(),this.listenOn(document,"fullscreenchange",()=>this.fullscreenElement=document.fullscreenElement)}static{this.properties={fullscreenElement:16,view:0,element:1,label:1,messageOverrides:0,referenceElement:1,visualScale:1,state:35}}static{this.styles=E}get fullscreenTitle(){return this.state==="active"?this.messages.exit:this.messages.enter}#e;get element(){return this.#e}set element(e){if(typeof e=="string"){let t=x(e),l=h(this.el,t);this.#e=l||void 0}else this.#e=e}get state(){if(!document.fullscreenEnabled)return"unsupported";let e=this._getElement();return e?this.fullscreenElement===e?"active":"ready":"disabled"}connectedCallback(){super.connectedCallback(),this.fullscreenElement=document.fullscreenElement}_getElement(){let e=this.view?.container,t=e?.getRootNode(),l=t instanceof ShadowRoot?t.host:null;return this.element??e?.parentElement??l??null}_toggle(){this.state!=="unsupported"&&(document.fullscreenElement?document.exitFullscreen():this._getElement()?.requestFullscreen())}render(){let{fullscreenTitle:e,state:t}=this,l=t==="unsupported",b=t==="ready"||t==="disabled"||t==="unsupported"?"zoom-out-fixed":"zoom-in-fixed";return n`<div class=${a(d("root",v.arcgisButton))}><calcite-button .disabled=${t==="disabled"||l} .iconStart=${b} kind=neutral .label=${e} @click=${this._toggle} .scale=${this.visualScale} title=${e??u}></calcite-button></div>`}};m("arcgis-fullscreen",r);return r},b,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import k from"./TMJX7DFH.js";import j from"./QZ5LJH35.js";import"./VJVKFKSG.js";import{a as $}from"./OHCCNZCY.js";import i from"./CODEI67F.js";import"./R2XADTZ4.js";import"./FZBSTBH3.js";import e from"./7XCYURYF.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{B as w,P as x,T as g,W as f,a as b,b as a,p as c,r as h,x as d}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getOwningPortalUrl:C,hasUserTypeExtension:I},{on:E,watch:T,whenOnce:L},D,{getVersioningStates:q},,{a:_},{a:v,b:l,c:k,d:N},{e:V}])=>{var B=b`: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-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--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%)}calcite-block{margin:0;border-bottom:none}calcite-combobox{margin-bottom:var(--calcite-spacing-sm)}calcite-icon{width:32px}`,p={noDirtyAreasInExtent:-2147208940,operationOnlyAllowedByOwner:-2147217144,cannotAcquireVersionLockV10:-2147217146,cannotAcquireVersionLockV11:-2147220947},m=class extends x{constructor(){super(...arguments),this._messages=$({blocking:!0}),this.#o=`unvnt_${w()}`,this.disabled=!1,this.disableExecuteOnDefaultVersion=!1,this.extentToValidate="current",this.hideUtilityNetworkSelect=!1,this.state={type:"disabled"},this.view=_(this),this.arcgisReady=d(),this.arcgisValidateNetworkTopologyEnd=d(),this.arcgisValidateNetworkTopologyStart=d()}static{this.properties={beforeValidateNetworkTopologyStart:0,disabled:5,disableExecuteOnDefaultVersion:5,extentToValidate:1,hideUtilityNetworkSelect:5,label:1,messageOverrides:0,referenceElement:1,result:0,state:0,utilityNetwork:0,view:0}}static{this.styles=B}get#n(){return`${this.#o}_execute-action`}get#r(){return this._messages.actions.validateTopology+(this.extentToValidate==="current"?` ${this._messages.input.selectExtent.options.currentExtent.toLowerCase()}`:` ${this._messages.input.selectExtent.options.entireExtent.toLowerCase()}`)}get#h(){return this.#a.isDefault}get#d(){return this.#a?.currentVersionInfo?.access==="protected"}get#g(){return this.#i?.privileges?.includes("features:user:manageVersions")??!1}get#p(){let e=this.#a?.currentVersionInfo?.versionIdentifier.name;return e?.substring(0,e.lastIndexOf("."))?.toUpperCase()===this.#i?.username?.toUpperCase()}#i;#s;#o;#e;get#a(){return this.#l?.find(e=>e.featureServiceUrl===this.utilityNetwork?.featureServiceUrl)}#l;async load(){this.manager.onLifecycle(()=>[E(()=>this.view?.map?.allLayers,"change",e=>{let t=e.added.concat(e.removed);this.#c(t)&&this.#t()}),E(()=>this.view?.map?.utilityNetworks,"change",()=>{this.#t()}),T(()=>this.utilityNetwork?.gdbVersion,()=>{L(()=>this.utilityNetwork?.gdbVersion===this.#a?.currentVersionInfo?.versionIdentifier.name).then(()=>{this.#t()})}),T(()=>this.view,()=>{this.#t()},{initial:!0})])}#c(e){let t=this.utilityNetwork?.networkSystemLayers.dirtyAreasLayerUrl;if(t)return e.find(i=>V(i)&&`${i.url}/${i.layerId}`===t)}async#u(){try{if(this.result=void 0,!this.view){this.state={type:"error-disable-component",message:this._messages.errors.noView};return}if(!this.utilityNetwork){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks};return}this.beforeValidateNetworkTopologyStart&&await this.beforeValidateNetworkTopologyStart();let{view:e,utilityNetwork:t}=this;if(!e){this.state={type:"error-disable-component",message:this._messages.errors.noView};return}if(!t){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetwork},c("warn",this,h("utilityNetwork"));return}if(this.arcgisValidateNetworkTopologyStart.emit().defaultPrevented){c("info",this,this._messages.info.validateCanceled);return}this.state={type:"executing"};let i={outSpatialReference:e.spatialReference?.clone()||null,validateArea:this.extentToValidate==="current"||!t.fullExtent?e.extent.clone():t.fullExtent.clone()};this.result=await t.validateTopology(i),this.state={type:"success",message:this._messages.status.success}}catch(e){let{_messages:{errors:{cannotAcquireVersionLock:t,noDirtyAreasInExtent:i,operationOnlyAllowedByOwner:o}}}=this;this.result=void 0;let r=e,s=r.details?.raw?.extendedCode,n=r.message||this._messages.info.validateCanceled;switch(s){case p.noDirtyAreasInExtent:n=i;break;case p.cannotAcquireVersionLockV10:case p.cannotAcquireVersionLockV11:n=t;break;case p.operationOnlyAllowedByOwner:n=o;break}this.state={type:"error-info",message:n}}finally{this.arcgisValidateNetworkTopologyEnd.emit()}}async#t(){this.#s?.abort();let e=N(async t=>{this.state={type:"loading"},this.result=void 0;let{view:i}=this;if(!i){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.noView},c("warn",this,h("view"));return}if(i.type!=="2d"){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.sceneViewNotSupported};return}let o=i.map;await o.load({signal:t}),l(t);let r=o.utilityNetworks??null;if(!r?.length){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks};return}let s=this.utilityNetwork;if((!s||!r.find(O=>O.id===s?.id))&&(s=r.getItemAt(0)),!s){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks},c("warn",this,h("utilityNetwork"));return}await s.load({signal:t}),l(t);let n=(Number(s.sourceJSON.currentVersion)||0)<=11.1?"utilityNetwork":"advediting",A=await C(s.layerUrl,{signal:t})??void 0;l(t);let u=new D({url:A});await u.load({signal:t}),l(t),this.#i=u.user;let U=this.#i?.username??"",S=await I(u,U,n);if(l(t),this.#e=r,this.utilityNetwork=s,!S){this.state=n==="advediting"?{type:"error-disable-execute",message:this._messages.errors.noAdvancedEditingUserTypeExtension}:{type:"error-disable-execute",message:this._messages.errors.noUtilityNetworkServiceUserTypeExtension};return}let y=this.#c(o.allLayers.toArray());if(!y){this.state={type:"error-disable-execute",message:this._messages.errors.noDirtyAreasLayer};return}if(await y.load({signal:t}),l(t),this.#l=await q(this.view,!1),this.#h&&this.disableExecuteOnDefaultVersion){this.state={type:"error-disable-execute",message:this._messages.errors.operationDisabledOnDefaultVersion};return}if(this.#d&&!this.#p&&!this.#g){this.state={type:"error-disable-execute",message:this._messages.errors.operationOnlyAllowedByOwner};return}this.state={type:"ready"}});this.#s=e;try{await e.promise}catch(t){if(k(t))return;this.state={type:"error-disable-execute",message:this._messages.errors.utilityNetworkLoadFailed},v(t,this,this.state.message)}finally{this.#s===e&&(this.#s=void 0)}}_renderExtentToValidateCombobox(){if(this.state.type!=="error-disable-component")return a`<calcite-combobox .disabled=${this.disabled||this.state.type==="disabled"||this.state.type==="executing"} .label=${this._messages.input.selectExtent.label} .labelText=${this._messages.input.selectExtent.label} selection-mode=single-persist @calciteComboboxChange=${e=>{this.extentToValidate=e.target.value}}><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.currentExtent} .selected=${this.extentToValidate==="current"} value=current></calcite-combobox-item><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.entireExtent} .selected=${this.extentToValidate==="entire"} value=entire></calcite-combobox-item></calcite-combobox>`}_renderInfoNotice(){if(this.state.type==="error-disable-component"||this.state.type==="error-disable-execute"||this.state.type==="error-info"||this.state.type==="success")return a`<calcite-notice .closable=${this.state.type==="error-info"||this.state.type==="success"} .kind=${this.state.type==="success"?"success":"warning"} open scale=s width=full @calciteNoticeClose=${()=>this.state={type:"ready"}}><div slot=message>${this.state.message}</div></calcite-notice>`}_renderStatusIcon(){let e=`${this.#o}_status-icon`;switch(this.state.type){case"error-disable-component":case"error-disable-execute":case"error-info":return a`<calcite-icon icon=exclamation-mark-triangle id=${e??g} scale=s slot=actions-end></calcite-icon>`;case"executing":return a`<calcite-action loading disabled slot=actions-end .text=${this._messages.status.executing}></calcite-action>`;case"success":return a`<calcite-icon icon=check-circle id=${e??g} scale=s slot=actions-end></calcite-icon>`;default:return a`<calcite-icon icon=blank scale=m slot=actions-end></calcite-icon>`}}_renderUtilityNetworkCombobox(){if(!(!this.#e||this.#e?.length===1||this.state.type==="error-disable-component"||this.hideUtilityNetworkSelect))return a`<calcite-combobox .disabled=${this.state.type==="executing"} .label=${this._messages.input.selectUtilityNetwork.label} .labelText=${this._messages.input.selectUtilityNetwork.label} selection-mode=single-persist @calciteComboboxChange=${e=>{let t=e.target.value;this.utilityNetwork=this.#e?.find(i=>i.id===t),this.#t()}}>${this.#e.map(e=>a`<calcite-combobox-item .heading=${e.title} .selected=${e===this.utilityNetwork} .value=${e.id}></calcite-combobox-item>`)}</calcite-combobox>`}_renderValidateNetworkTopologyAction(){if(this.state.type!=="error-disable-component")return a`<calcite-action .disabled=${this.disabled||this.state.type==="disabled"||this.state.type==="error-disable-execute"||this.state.type==="executing"} icon=play-f id=${this.#n??g} .label=${this.#r} slot=actions-end .text=${this.#r} @click=${this.#u}></calcite-action>`}_renderValidateNetworkTopologyActionTooltip(){if(this.state.type!=="error-disable-component")return a`<calcite-tooltip .referenceElement=${this.#n}><span>${this.#r}</span></calcite-tooltip>`}render(){let e=this._renderStatusIcon(),t=this._renderValidateNetworkTopologyAction(),i=this._renderValidateNetworkTopologyActionTooltip(),o=this._renderUtilityNetworkCombobox(),r=this._renderExtentToValidateCombobox(),s=this._renderInfoNotice();return a`<calcite-panel .loading=${this.state.type==="loading"}><calcite-block expandable expanded .heading=${this.label}>${e}${t}${o}${r}${s}</calcite-block>${i}</calcite-panel>`}};f("arcgis-utility-network-validate-network-topology",m);return m},"applications/Components/featureUtils","core/reactiveUtils","portal/Portal","versionManagement/utils",e,i,j,k)
|
|
2
|
+
import k from"./TMJX7DFH.js";import j from"./DSDPDMLP.js";import"./VJVKFKSG.js";import{a as $}from"./A76HBA6R.js";import i from"./DKT2KG4V.js";import"./WIMFUYH2.js";import"./V2TJMHWI.js";import e from"./W3GAVPP4.js";import"./QUZTFUWM.js";import"./LMFSC4DB.js";import"./XURWCCLX.js";import{B as w,P as x,U as g,X as f,a as b,b as a,p as c,r as h,x as d}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getOwningPortalUrl:C,hasUserTypeExtension:I},{on:E,watch:T,whenOnce:L},D,{getVersioningStates:q},,{a:_},{a:v,b:l,c:k,d:N},{e:V}])=>{var B=b`: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-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--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%)}calcite-block{margin:0;border-bottom:none}calcite-combobox{margin-bottom:var(--calcite-spacing-sm)}calcite-icon{width:32px}`,p={noDirtyAreasInExtent:-2147208940,operationOnlyAllowedByOwner:-2147217144,cannotAcquireVersionLockV10:-2147217146,cannotAcquireVersionLockV11:-2147220947},m=class extends x{constructor(){super(...arguments),this._messages=$({blocking:!0}),this.#o=`unvnt_${w()}`,this.disabled=!1,this.disableExecuteOnDefaultVersion=!1,this.extentToValidate="current",this.hideUtilityNetworkSelect=!1,this.state={type:"disabled"},this.view=_(this),this.arcgisReady=d(),this.arcgisValidateNetworkTopologyEnd=d(),this.arcgisValidateNetworkTopologyStart=d()}static{this.properties={beforeValidateNetworkTopologyStart:0,disabled:5,disableExecuteOnDefaultVersion:5,extentToValidate:1,hideUtilityNetworkSelect:5,label:1,messageOverrides:0,referenceElement:1,result:0,state:0,utilityNetwork:0,view:0}}static{this.styles=B}get#n(){return`${this.#o}_execute-action`}get#r(){return this._messages.actions.validateTopology+(this.extentToValidate==="current"?` ${this._messages.input.selectExtent.options.currentExtent.toLowerCase()}`:` ${this._messages.input.selectExtent.options.entireExtent.toLowerCase()}`)}get#h(){return this.#a.isDefault}get#d(){return this.#a?.currentVersionInfo?.access==="protected"}get#g(){return this.#i?.privileges?.includes("features:user:manageVersions")??!1}get#p(){let e=this.#a?.currentVersionInfo?.versionIdentifier.name;return e?.substring(0,e.lastIndexOf("."))?.toUpperCase()===this.#i?.username?.toUpperCase()}#i;#s;#o;#e;get#a(){return this.#l?.find(e=>e.featureServiceUrl===this.utilityNetwork?.featureServiceUrl)}#l;async load(){this.manager.onLifecycle(()=>[E(()=>this.view?.map?.allLayers,"change",e=>{let t=e.added.concat(e.removed);this.#c(t)&&this.#t()}),E(()=>this.view?.map?.utilityNetworks,"change",()=>{this.#t()}),T(()=>this.utilityNetwork?.gdbVersion,()=>{L(()=>this.utilityNetwork?.gdbVersion===this.#a?.currentVersionInfo?.versionIdentifier.name).then(()=>{this.#t()})}),T(()=>this.view,()=>{this.#t()},{initial:!0})])}#c(e){let t=this.utilityNetwork?.networkSystemLayers.dirtyAreasLayerUrl;if(t)return e.find(i=>V(i)&&`${i.url}/${i.layerId}`===t)}async#u(){try{if(this.result=void 0,!this.view){this.state={type:"error-disable-component",message:this._messages.errors.noView};return}if(!this.utilityNetwork){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks};return}this.beforeValidateNetworkTopologyStart&&await this.beforeValidateNetworkTopologyStart();let{view:e,utilityNetwork:t}=this;if(!e){this.state={type:"error-disable-component",message:this._messages.errors.noView};return}if(!t){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetwork},c("warn",this,h("utilityNetwork"));return}if(this.arcgisValidateNetworkTopologyStart.emit().defaultPrevented){c("info",this,this._messages.info.validateCanceled);return}this.state={type:"executing"};let i={outSpatialReference:e.spatialReference?.clone()||null,validateArea:this.extentToValidate==="current"||!t.fullExtent?e.extent.clone():t.fullExtent.clone()};this.result=await t.validateTopology(i),this.state={type:"success",message:this._messages.status.success}}catch(e){let{_messages:{errors:{cannotAcquireVersionLock:t,noDirtyAreasInExtent:i,operationOnlyAllowedByOwner:o}}}=this;this.result=void 0;let r=e,s=r.details?.raw?.extendedCode,n=r.message||this._messages.info.validateCanceled;switch(s){case p.noDirtyAreasInExtent:n=i;break;case p.cannotAcquireVersionLockV10:case p.cannotAcquireVersionLockV11:n=t;break;case p.operationOnlyAllowedByOwner:n=o;break}this.state={type:"error-info",message:n}}finally{this.arcgisValidateNetworkTopologyEnd.emit()}}async#t(){this.#s?.abort();let e=N(async t=>{this.state={type:"loading"},this.result=void 0;let{view:i}=this;if(!i){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.noView},c("warn",this,h("view"));return}if(i.type!=="2d"){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.sceneViewNotSupported};return}let o=i.map;await o.load({signal:t}),l(t);let r=o.utilityNetworks??null;if(!r?.length){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks};return}let s=this.utilityNetwork;if((!s||!r.find(O=>O.id===s?.id))&&(s=r.getItemAt(0)),!s){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks},c("warn",this,h("utilityNetwork"));return}await s.load({signal:t}),l(t);let n=(Number(s.sourceJSON.currentVersion)||0)<=11.1?"utilityNetwork":"advediting",A=await C(s.layerUrl,{signal:t})??void 0;l(t);let u=new D({url:A});await u.load({signal:t}),l(t),this.#i=u.user;let U=this.#i?.username??"",S=await I(u,U,n);if(l(t),this.#e=r,this.utilityNetwork=s,!S){this.state=n==="advediting"?{type:"error-disable-execute",message:this._messages.errors.noAdvancedEditingUserTypeExtension}:{type:"error-disable-execute",message:this._messages.errors.noUtilityNetworkServiceUserTypeExtension};return}let y=this.#c(o.allLayers.toArray());if(!y){this.state={type:"error-disable-execute",message:this._messages.errors.noDirtyAreasLayer};return}if(await y.load({signal:t}),l(t),this.#l=await q(this.view,!1),this.#h&&this.disableExecuteOnDefaultVersion){this.state={type:"error-disable-execute",message:this._messages.errors.operationDisabledOnDefaultVersion};return}if(this.#d&&!this.#p&&!this.#g){this.state={type:"error-disable-execute",message:this._messages.errors.operationOnlyAllowedByOwner};return}this.state={type:"ready"}});this.#s=e;try{await e.promise}catch(t){if(k(t))return;this.state={type:"error-disable-execute",message:this._messages.errors.utilityNetworkLoadFailed},v(t,this,this.state.message)}finally{this.#s===e&&(this.#s=void 0)}}_renderExtentToValidateCombobox(){if(this.state.type!=="error-disable-component")return a`<calcite-combobox .disabled=${this.disabled||this.state.type==="disabled"||this.state.type==="executing"} .label=${this._messages.input.selectExtent.label} .labelText=${this._messages.input.selectExtent.label} selection-mode=single-persist @calciteComboboxChange=${e=>{this.extentToValidate=e.target.value}}><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.currentExtent} .selected=${this.extentToValidate==="current"} value=current></calcite-combobox-item><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.entireExtent} .selected=${this.extentToValidate==="entire"} value=entire></calcite-combobox-item></calcite-combobox>`}_renderInfoNotice(){if(this.state.type==="error-disable-component"||this.state.type==="error-disable-execute"||this.state.type==="error-info"||this.state.type==="success")return a`<calcite-notice .closable=${this.state.type==="error-info"||this.state.type==="success"} .kind=${this.state.type==="success"?"success":"warning"} open scale=s width=full @calciteNoticeClose=${()=>this.state={type:"ready"}}><div slot=message>${this.state.message}</div></calcite-notice>`}_renderStatusIcon(){let e=`${this.#o}_status-icon`;switch(this.state.type){case"error-disable-component":case"error-disable-execute":case"error-info":return a`<calcite-icon icon=exclamation-mark-triangle id=${e??g} scale=s slot=actions-end></calcite-icon>`;case"executing":return a`<calcite-action loading disabled slot=actions-end .text=${this._messages.status.executing}></calcite-action>`;case"success":return a`<calcite-icon icon=check-circle id=${e??g} scale=s slot=actions-end></calcite-icon>`;default:return a`<calcite-icon icon=blank scale=m slot=actions-end></calcite-icon>`}}_renderUtilityNetworkCombobox(){if(!(!this.#e||this.#e?.length===1||this.state.type==="error-disable-component"||this.hideUtilityNetworkSelect))return a`<calcite-combobox .disabled=${this.state.type==="executing"} .label=${this._messages.input.selectUtilityNetwork.label} .labelText=${this._messages.input.selectUtilityNetwork.label} selection-mode=single-persist @calciteComboboxChange=${e=>{let t=e.target.value;this.utilityNetwork=this.#e?.find(i=>i.id===t),this.#t()}}>${this.#e.map(e=>a`<calcite-combobox-item .heading=${e.title} .selected=${e===this.utilityNetwork} .value=${e.id}></calcite-combobox-item>`)}</calcite-combobox>`}_renderValidateNetworkTopologyAction(){if(this.state.type!=="error-disable-component")return a`<calcite-action .disabled=${this.disabled||this.state.type==="disabled"||this.state.type==="error-disable-execute"||this.state.type==="executing"} icon=play-f id=${this.#n??g} .label=${this.#r} slot=actions-end .text=${this.#r} @click=${this.#u}></calcite-action>`}_renderValidateNetworkTopologyActionTooltip(){if(this.state.type!=="error-disable-component")return a`<calcite-tooltip .referenceElement=${this.#n}><span>${this.#r}</span></calcite-tooltip>`}render(){let e=this._renderStatusIcon(),t=this._renderValidateNetworkTopologyAction(),i=this._renderValidateNetworkTopologyActionTooltip(),o=this._renderUtilityNetworkCombobox(),r=this._renderExtentToValidateCombobox(),s=this._renderInfoNotice();return a`<calcite-panel .loading=${this.state.type==="loading"}><calcite-block expandable expanded .heading=${this.label}>${e}${t}${o}${r}${s}</calcite-block>${i}</calcite-panel>`}};f("arcgis-utility-network-validate-network-topology",m);return m},"applications/Components/featureUtils","core/reactiveUtils","portal/Portal","versionManagement/utils",e,i,j,k)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{P as r,
|
|
2
|
+
import{P as r,X as d,b as i}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:u}])=>{function v(a){return a.followingMode==="none"?"circle-disallowed":a.followingMode==="follow-sensor"?"zoom-to-object":a.followingMode==="follow-frame"?"follow":"video"}var n=class extends r{constructor(){super(...arguments),this._disabled=!1}static{this.properties={_disabled:16,viewModel:0,toggleMetadata:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.state,e=>{this._disabled=e==="not-ready"||e==="waiting"},{initial:!0})])}render(){let{viewModel:e,messages:l,_disabled:o}=this,t=e.currentTime>0,c=!!e.layer?.telemetry?.sensorLocation,m=!!e.layer?.telemetry?.sensorPath,g=!!e.layer?.telemetry?.sensorTrail,$=!!e.layer?.telemetry?.lineOfSight,y=!!e.layer?.telemetry?.frameCenter,s=!!e.layer?.telemetry?.frameOutline,f=!!e.layer?.groundControlPoints,p=i`<div><calcite-popover auto-close .label=${l.layers} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=layers-action scale=s><calcite-panel .heading=${l.layers}><calcite-list .label=${l.layers} selection-mode=multiple><calcite-list-item .disabled=${t&&!c} .label=${l.sensor} @click=${()=>{e.toggleSensorDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorLocation}></calcite-list-item><calcite-list-item .disabled=${t&&!$} .label=${l.sightLine} @click=${()=>{e.toggleSensorSightLineDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.lineOfSight}></calcite-list-item><calcite-list-item .disabled=${t&&!m} .label=${l.sensorPath} @click=${()=>{e.toggleSensorPathDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorPath}></calcite-list-item><calcite-list-item .disabled=${t&&!g} .label=${l.sensorTrail} @click=${()=>{e.toggleSensorTrailDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorTrail}></calcite-list-item><calcite-list-item .disabled=${t&&!y} .label=${l.frameCenter} @click=${()=>{e.toggleFrameCenterDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frameCenter}></calcite-list-item><calcite-list-item .disabled=${t&&!s} .label=${l.frameOutline} @click=${()=>{e.toggleFrameOutlineDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frameOutline}></calcite-list-item><calcite-list-item .disabled=${t&&!f} .label=${l.frame} @click=${()=>{e.toggleFrameDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frame}></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} icon=layers id=layers-action scale=s slot=trigger .text=${l.layers}></calcite-action></div>`,b=i`<div><calcite-popover auto-close .label=${l.follow} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=follow-action scale=s><calcite-panel .heading=${l.follow}><calcite-list .label=${l.follow} selection-mode=single><calcite-list-item .label=${l.none} @click=${()=>{e.followingMode="none"}} .selected=${e.followingMode==="none"}><calcite-icon icon=circle-disallowed scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!c} .label=${l.sensor} @click=${()=>{e.followingMode="follow-sensor"}} .selected=${e.followingMode==="follow-sensor"}><calcite-icon icon=zoom-to-object scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!s} .label=${l.frame} @click=${()=>{e.followingMode="follow-frame"}} .selected=${e.followingMode==="follow-frame"}><calcite-icon icon=follow scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!s&&!c} .label=${l.video} @click=${()=>{e.followingMode="follow-both"}} .selected=${e.followingMode==="follow-both"}><calcite-icon icon=video scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} .icon=${v(e)} id=follow-action scale=s slot=trigger .text=${l.follow}></calcite-action></div>`,w=i`<arcgis-video-player-settings .messages=${l} .viewModel=${e}></arcgis-video-player-settings>`,h=i`<calcite-action alignment=center .disabled=${o} icon=feature-details @click=${()=>this.toggleMetadata()} scale=s .text=${l.metadata}></calcite-action>`;return i`<calcite-action-bar expand-toggle-disabled layout=horizontal scale=s>${[p,b,w,h]}</calcite-action-bar>`}};d("arcgis-video-player-controls-group",n);return n},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./JE6NC2E6.js";import"./GU3M4JMW.js";import{a as h}from"./
|
|
2
|
+
import a from"./JE6NC2E6.js";import"./GU3M4JMW.js";import{a as h}from"./A76HBA6R.js";import"./WIMFUYH2.js";import"./V2TJMHWI.js";import"./QUZTFUWM.js";import"./LMFSC4DB.js";import"./XURWCCLX.js";import{P as o,X as m,a as r,b as i,x as d}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{b:p}])=>{var $=r`.container{display:flex;flex-direction:column;gap:var(--calcite-space-sm)}`,n=class extends o{constructor(){super(...arguments),this._messages=h({name:"feature-form-next"}),this.formDisabled=!1,this.arcgisFilesSelect=d()}static{this.properties={_effectiveDisabled:16,input:0,attachment:0,formDisabled:5,messageOverrides:0}}static{this.styles=$}get _effectiveDisabled(){return this.formDisabled?!0:this.attachment?!this.input?.editable:this.input?.addDisabled!==!1}get _multipleEnabled(){if(this.attachment)return!1;if(!this.input)return!0;let{maxAttachmentCount:t,effectiveAttachmentCount:e}=this.input;return t==null?!0:e<t-1}_handleFilesSelect(t){t.stopPropagation(),this.arcgisFilesSelect.emit({files:t.detail.files})}render(){let{_effectiveDisabled:t,input:e,_multipleEnabled:f,attachment:a}=this;if(!e)return;let{units:l}=this._messages,s=this._messages.components?.attachments?.["add-attachment-view"],c=!!this.attachment,u=c&&a?i`<calcite-label>${s?.fileToBeReplaced}<calcite-card><div slot=heading>${a.name}</div><div slot=description>${l?.bytes?p(l,a.size):""}</div></calcite-card></calcite-label>`:void 0,g=c?"refresh":"upload",v=!c,b=e.isCaptureOnly?i`<calcite-notice data-testid=notice icon kind=warning open scale=s width=full><div slot=message>${s?.captureMethodNotSupported}</div></calcite-notice>`:i`<arcgis-file-picker data-testid=filepicker .disabled=${t} .fileTypeCategories=${e.categories} .heading=${a?s?.heading:void 0} .icon=${g} .multipleEnabled=${f} @arcgisFilesSelect=${this._handleFilesSelect}></arcgis-file-picker><arcgis-attachment-validation-view data-testid=validations .includeCountCriteria=${v} .input=${e}></arcgis-attachment-validation-view>${u}`;return i`<div class="container" data-testid=add-attachment-view-root>${b}</div>`}};m("arcgis-add-attachment-view",n);return n},a)
|