@esri/solutions-components 1.0.0-next.20250603.1 → 1.0.0-next.20250604
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/{FV7CWXXA.js → 2AFE7E7M.js} +2 -2
- package/dist/cdn/{KC4DY2HC.js → 2B5FSZQH.js} +2 -2
- package/dist/cdn/{KVQYP6QO.js → 2EM743GZ.js} +2 -2
- package/dist/cdn/{DUX7RIHF.js → 2K5LERLJ.js} +2 -2
- package/dist/cdn/{AKWYDDKA.js → 2KM6GVBX.js} +2 -2
- package/dist/cdn/{KOY2DGQB.js → 2MYQP6Y5.js} +2 -2
- package/dist/cdn/{LYOVCHLV.js → 2WSY3VK5.js} +2 -2
- package/dist/cdn/{SEJNBKC3.js → 2WTLR7AF.js} +2 -2
- package/dist/cdn/{7QH32TZC.js → 2ZYEO4QU.js} +2 -2
- package/dist/cdn/345MWWXW.js +4 -0
- package/dist/cdn/3ELXMEAJ.js +4 -0
- package/dist/cdn/{BUGW2FJW.js → 3ML7QFWK.js} +1 -1
- package/dist/cdn/{WOGXYHTW.js → 3OXV4AIJ.js} +1 -1
- package/dist/cdn/{7MLUC4ZF.js → 3R6FI5UM.js} +2 -2
- package/dist/cdn/{NTM7VXP2.js → 3UOZA57X.js} +2 -2
- package/dist/cdn/{3OHXXSQC.js → 42G7HHTM.js} +2 -2
- package/dist/cdn/{5IJJO4LY.js → 47H5FO7V.js} +2 -2
- package/dist/cdn/{F6ZVXJY4.js → 47T4MQZM.js} +2 -2
- package/dist/cdn/{GGLOL5YA.js → 4ALXTQ7N.js} +2 -2
- package/dist/cdn/{QGGEZQ5P.js → 4E3IKHTV.js} +1 -1
- package/dist/cdn/{3I5XCDRF.js → 4FSK32YK.js} +2 -2
- package/dist/cdn/{JDLIQP26.js → 4Q5U26MM.js} +1 -1
- package/dist/cdn/{XOWZ4LD3.js → 4X3BLJYO.js} +2 -2
- package/dist/cdn/{TXPPQ5K7.js → 54BQVAZQ.js} +1 -1
- package/dist/cdn/{QXLE5FAV.js → 55ER3JZZ.js} +1 -1
- package/dist/cdn/{ZZ5CPOFT.js → 5EGJZQNO.js} +2 -2
- package/dist/cdn/{HQRD3W3T.js → 5IXEWYS7.js} +2 -2
- package/dist/cdn/{BMKFZOGZ.js → 5JZHSF5Q.js} +1 -1
- package/dist/cdn/{SXDVITDW.js → 5NTBUHXP.js} +2 -2
- package/dist/cdn/{GSFDUUIV.js → 5TTXDO2X.js} +2 -2
- package/dist/cdn/5UYYGX3U.js +4 -0
- package/dist/cdn/{CPPGBHGB.js → 5WSSG5DQ.js} +2 -2
- package/dist/cdn/{RRTZSCHT.js → 5ZN3LDSR.js} +2 -2
- package/dist/cdn/{E2JMZPHI.js → 63FJFV7Z.js} +2 -2
- package/dist/cdn/{7OBFFSGV.js → 6426ECPL.js} +2 -2
- package/dist/cdn/{JMFIHU24.js → 6FMYJDB3.js} +2 -2
- package/dist/cdn/{F4ZGDGM4.js → 6GI4INVZ.js} +2 -2
- package/dist/cdn/{YSQPEWEY.js → 6KZH4YCI.js} +1 -1
- package/dist/cdn/{G4AY2BY2.js → 6LFV2GIT.js} +1 -1
- package/dist/cdn/{XASSYP2N.js → 6QFHZ3JL.js} +2 -2
- package/dist/cdn/6UX6KQVQ.js +4 -0
- package/dist/cdn/{F6ZZOQ45.js → 6XIFWTU3.js} +2 -2
- package/dist/cdn/{47FBP4UH.js → 6XXYDAON.js} +2 -2
- package/dist/cdn/{OHFEEKIB.js → 6YLZDF5Z.js} +2 -2
- package/dist/cdn/{57F2XN77.js → 73M3K3MB.js} +1 -1
- package/dist/cdn/{TYS4GUXP.js → 76BAM4JD.js} +2 -2
- package/dist/cdn/{7B72B7FY.js → 7AYXAEZ4.js} +4 -4
- package/dist/cdn/{V5XXUD57.js → 7D3QOJHZ.js} +2 -2
- package/dist/cdn/{O7J65UZA.js → 7MJFKTU3.js} +1 -1
- package/dist/cdn/{LJN277XH.js → 7MXFY5SO.js} +1 -1
- package/dist/cdn/{2YSLDCYN.js → 7TR632PO.js} +2 -2
- package/dist/cdn/{DVCGX7AQ.js → 7UF7ASVK.js} +2 -2
- package/dist/cdn/{5V42POES.js → 7VUGOBSM.js} +2 -2
- package/dist/cdn/{HUY2NQF2.js → AC6N4APV.js} +1 -1
- package/dist/cdn/{QPNW6P3H.js → ADCN5EQ6.js} +2 -2
- package/dist/cdn/AEPIDWNF.js +4 -0
- package/dist/cdn/{HE6RDTLW.js → AF677W6B.js} +2 -2
- package/dist/cdn/{MPV7FCIF.js → ALD6NWTO.js} +2 -2
- package/dist/cdn/{VONL6KBY.js → ALLFENVH.js} +2 -2
- package/dist/cdn/{3JEMJ2EV.js → AMWVUVI2.js} +2 -2
- package/dist/cdn/{BB5THTK5.js → ANWOHFXY.js} +2 -2
- package/dist/cdn/ARCAXJNI.js +4 -0
- package/dist/cdn/{YLMFQSC4.js → AWTEJER6.js} +2 -2
- package/dist/cdn/{BTMSD3FY.js → B24P555R.js} +2 -2
- package/dist/cdn/{M7NNYPVJ.js → B5IEC4IT.js} +2 -2
- package/dist/cdn/{T3AWV5HU.js → BE5PQLO3.js} +2 -2
- package/dist/cdn/{CGPIDLBY.js → BGMGLS3V.js} +2 -2
- package/dist/cdn/{3M72CEYO.js → BIUFSOZZ.js} +2 -2
- package/dist/cdn/{YZMGJ7SM.js → BPGVSHQW.js} +2 -2
- package/dist/cdn/{EJKR2ZHP.js → BS33EVAP.js} +2 -2
- package/dist/cdn/{TT5NLCZ7.js → CB6KYK3A.js} +2 -2
- package/dist/cdn/{23TE6EVK.js → CEJDTHNZ.js} +1 -1
- package/dist/cdn/{IFGU7UKD.js → CJNGBIUI.js} +2 -2
- package/dist/cdn/{4FJC45LY.js → CNEWKYEJ.js} +2 -2
- package/dist/cdn/{2I5J5JBB.js → CRZVA7XS.js} +2 -2
- package/dist/cdn/CTJUD4LO.js +4 -0
- package/dist/cdn/{DS2RXS3N.js → CTUCKF3P.js} +2 -2
- package/dist/cdn/{WUYXX4RA.js → CWNIFA6D.js} +1 -1
- package/dist/cdn/{CUB7E2CZ.js → CYNBZWVT.js} +1 -1
- package/dist/cdn/{HIFJRRQY.js → D2PEMAQB.js} +2 -2
- package/dist/cdn/{LJ67HDLQ.js → D4RSDPZE.js} +2 -2
- package/dist/cdn/{7FBWIG3K.js → D7NBVCTF.js} +2 -2
- package/dist/cdn/{JTT7WLPJ.js → DEOYLAEF.js} +2 -2
- package/dist/cdn/{7RAFMZMY.js → DQF7T3WP.js} +2 -2
- package/dist/cdn/{MEWYK3DQ.js → DR4VMI7G.js} +2 -2
- package/dist/cdn/{FAXNU5CL.js → E6UHW6W4.js} +1 -1
- package/dist/cdn/{23KRBWNX.js → E7CZ4ZJ7.js} +1 -1
- package/dist/cdn/{LZ67DRAD.js → EMDO67DU.js} +3 -3
- package/dist/cdn/{GD22AZGD.js → EMZ6RPP3.js} +2 -2
- package/dist/cdn/{VNMQ4LFX.js → EOMS3F3L.js} +2 -2
- package/dist/cdn/{D6S3BMVV.js → ERW3YZU6.js} +1 -1
- package/dist/cdn/{YN72HJN7.js → ETSHTE72.js} +2 -2
- package/dist/cdn/{WEJIR3KC.js → F4VOMVZI.js} +2 -2
- package/dist/cdn/{O3MMCKSZ.js → FCYQRR3U.js} +2 -2
- package/dist/cdn/{BKEUB7D6.js → FHUPZXRA.js} +2 -2
- package/dist/cdn/{OBH5D5B3.js → FJ6RGFDH.js} +2 -2
- package/dist/cdn/{M2LFTGSG.js → FLHA6SUG.js} +2 -2
- package/dist/cdn/{DTQTQMKB.js → FQLSHIBF.js} +1 -1
- package/dist/cdn/GEVOY2L5.js +18 -0
- package/dist/cdn/{JHZMQC26.js → GJ2KTUEU.js} +2 -2
- package/dist/cdn/GMCLBVIJ.js +25 -0
- package/dist/cdn/GMPQXS6C.js +4 -0
- package/dist/cdn/{YT5JSWCJ.js → GNROCWA2.js} +2 -2
- package/dist/cdn/{BXWG6ASU.js → GV4VMWZC.js} +2 -2
- package/dist/cdn/{TM4VLUD7.js → GX6G4BFZ.js} +1 -1
- package/dist/cdn/{HM3EFLFF.js → GXKZH3J4.js} +2 -2
- package/dist/cdn/{AJIFFKGX.js → GZEPT2M3.js} +2 -2
- package/dist/cdn/H6KJVVW5.js +18 -0
- package/dist/cdn/{5ANAYW5P.js → HFUW7B3U.js} +2 -2
- package/dist/cdn/{N55W5Z4W.js → HLWVXTFA.js} +2 -2
- package/dist/cdn/{R475XUMQ.js → HPWA6TTI.js} +2 -2
- package/dist/cdn/{PZYR43RF.js → HQKIH26Q.js} +1 -1
- package/dist/cdn/{6YSPEIYA.js → HQOSEDMS.js} +2 -2
- package/dist/cdn/{YOUICQQX.js → HUNK6CQY.js} +2 -2
- package/dist/cdn/{ZTYNAGFP.js → HWXLPBZH.js} +2 -2
- package/dist/cdn/{FBUSWZJT.js → I2DY4IS2.js} +2 -2
- package/dist/cdn/{E236QMQ7.js → I2YEFWJ6.js} +2 -2
- package/dist/cdn/{Y5NSXWTE.js → I5NHFG7C.js} +2 -2
- package/dist/cdn/{XX372MHT.js → IACEMZB4.js} +2 -2
- package/dist/cdn/IAV6RAUX.js +18 -0
- package/dist/cdn/{JK3NLT2O.js → ICYWQWLJ.js} +2 -2
- package/dist/cdn/{HVBM4D6S.js → IE2Z57EL.js} +1 -1
- package/dist/cdn/{OVZLS4VM.js → IJRPDGUW.js} +1 -1
- package/dist/cdn/{T2KSGTVF.js → IPTJRUEL.js} +2 -2
- package/dist/cdn/{FI7VCDS7.js → IWLSOPNU.js} +2 -2
- package/dist/cdn/{DGMABTNK.js → IY5MA5TQ.js} +2 -2
- package/dist/cdn/{GNMYTB4B.js → J2IBVR4K.js} +2 -2
- package/dist/cdn/{UBMKB36W.js → JMLCAWVB.js} +2 -2
- package/dist/cdn/{NXZVUBHX.js → JMXRRM2J.js} +2 -2
- package/dist/cdn/{LZWGO4KG.js → JUUBSWSN.js} +2 -2
- package/dist/cdn/{7IJWIQKS.js → JVV2LRKV.js} +2 -2
- package/dist/cdn/{H2QIWGB3.js → JYGS22BT.js} +2 -2
- package/dist/cdn/{IJOJIH2Q.js → JYHFFQPV.js} +2 -2
- package/dist/cdn/{K22YDYDF.js → K4J7ONE5.js} +1 -1
- package/dist/cdn/K4LNUMMZ.js +18 -0
- package/dist/cdn/{3FD4XRIR.js → K54F34MD.js} +2 -2
- package/dist/cdn/{K5GUPAGQ.js → K7MDBVZ5.js} +2 -2
- package/dist/cdn/{62PWRVOA.js → KAN7CBK7.js} +1 -1
- package/dist/cdn/{4NKQ4OHH.js → KBJOJOJ4.js} +1 -1
- package/dist/cdn/{PHRFHM2D.js → KCGRRB43.js} +2 -2
- package/dist/cdn/{IUKY4AJJ.js → KCQU26AE.js} +2 -2
- package/dist/cdn/{6RLLS3XZ.js → KEJK7WEU.js} +2 -2
- package/dist/cdn/KGNJ2Y2O.js +4 -0
- package/dist/cdn/{XPLFSIZL.js → KKS7II75.js} +2 -2
- package/dist/cdn/{DHEXYRM4.js → KNAH23B5.js} +2 -2
- package/dist/cdn/{AAE7EK4I.js → KSWXMOC6.js} +2 -2
- package/dist/cdn/{5BB6ZTVD.js → KYOJO322.js} +2 -2
- package/dist/cdn/L3EOUKGK.js +4 -0
- package/dist/cdn/{GDVWCARK.js → L6CZXSW3.js} +2 -2
- package/dist/cdn/{OUXGXK3J.js → LACXORO5.js} +1 -1
- package/dist/cdn/{KHYYZCSF.js → LFDYLJKA.js} +1 -1
- package/dist/cdn/{K2N3GFEJ.js → LKWWHXOA.js} +2 -2
- package/dist/cdn/{SYKOTABZ.js → LNP7R5ZI.js} +2 -2
- package/dist/cdn/{ZMEBOR2G.js → LPK5NKSR.js} +2 -2
- package/dist/cdn/{ADABT6KF.js → LSZWLE7J.js} +2 -2
- package/dist/cdn/{A5OGKGEV.js → LTRG7P5T.js} +2 -2
- package/dist/cdn/{7SBXAJO4.js → LYGETQIB.js} +2 -2
- package/dist/cdn/{XH7TNO6J.js → M2XRDDQA.js} +2 -2
- package/dist/cdn/{K6H6OHMX.js → M3IMWYAR.js} +2 -2
- package/dist/cdn/{EPT2WH3D.js → M5375MUO.js} +2 -2
- package/dist/cdn/{2VPGZ7E2.js → MABGXJJX.js} +2 -2
- package/dist/cdn/{KGUBXPVQ.js → MHW7GG43.js} +2 -2
- package/dist/cdn/{ZVLVAUCM.js → MMGAOSLP.js} +1 -1
- package/dist/cdn/{UYNSQSTA.js → MT4W2VSR.js} +2 -2
- package/dist/cdn/{XAABPBEY.js → MTDTWNGL.js} +2 -2
- package/dist/cdn/{6A4RAOPS.js → MWHO4QDE.js} +2 -2
- package/dist/cdn/{LQSN4MQB.js → MXJ7JORF.js} +2 -2
- package/dist/cdn/{TW3LKPAL.js → NBTA2YSB.js} +2 -2
- package/dist/cdn/{JRBPHSAK.js → NDYM7KNN.js} +2 -2
- package/dist/cdn/{E43HBSTM.js → NG7FCMTK.js} +2 -2
- package/dist/cdn/{HFPFPCEQ.js → NKQJ45UL.js} +2 -2
- package/dist/cdn/{ALV5KMDH.js → NKVMRM3O.js} +2 -2
- package/dist/cdn/NMCGBOOO.js +4 -0
- package/dist/cdn/{6B26NMRD.js → NOWWSO43.js} +2 -2
- package/dist/cdn/{MTIUYXWA.js → NQMT3ZM2.js} +2 -2
- package/dist/cdn/{P4NNQGNZ.js → NVZPOTDK.js} +2 -2
- package/dist/cdn/{G4WB3PBR.js → NYPIOWTH.js} +2 -2
- package/dist/cdn/{QLHC6CPF.js → O5TASUMK.js} +2 -2
- package/dist/cdn/{S7I5NQIT.js → O6YU35I2.js} +2 -2
- package/dist/cdn/{4MPZW2AH.js → OGMFH36G.js} +2 -2
- package/dist/cdn/{B7V2TCV2.js → OHULOUJ7.js} +1 -1
- package/dist/cdn/{RCPW7BND.js → OI44SOUH.js} +2 -2
- package/dist/cdn/{H7LE3225.js → OJALXFPS.js} +2 -2
- package/dist/cdn/OQ4ARNXB.js +4 -0
- package/dist/cdn/{UY4MNUVT.js → OT3LBEYQ.js} +2 -2
- package/dist/cdn/{EZJUU4SD.js → OVYTYWMG.js} +2 -2
- package/dist/cdn/{SO2MJYUC.js → OWQIRWGB.js} +2 -2
- package/dist/cdn/{5X7D5OFH.js → OXHYCHE7.js} +3 -3
- package/dist/cdn/{LXCV6LJ6.js → OZDEHP24.js} +1 -1
- package/dist/cdn/{W22GLIX6.js → P3JN7YAP.js} +2 -2
- package/dist/cdn/{7H4LF6S3.js → PBE7PDSN.js} +2 -2
- package/dist/cdn/{KI6QHNPI.js → PCE2GNPD.js} +1 -1
- package/dist/cdn/{3DYJ4FTG.js → PDQQ3CKY.js} +1 -1
- package/dist/cdn/{5DNXV7XL.js → PODWXGKR.js} +2 -2
- package/dist/cdn/{XG3GBQPB.js → PPLIT4QW.js} +2 -2
- package/dist/cdn/{KY25YQM3.js → Q2UDHSAN.js} +2 -2
- package/dist/cdn/{NOPVFUIA.js → Q65D6PKP.js} +2 -2
- package/dist/cdn/{AE2GFHQI.js → QBEPAEZG.js} +2 -2
- package/dist/cdn/{MLZAIX3K.js → QH4CLBMI.js} +2 -2
- package/dist/cdn/{DDHWUUM5.js → QHAATBTL.js} +2 -2
- package/dist/cdn/{KDBUQPCS.js → QLBAKOYA.js} +2 -2
- package/dist/cdn/{BWIARGK3.js → QOKOI3NT.js} +2 -2
- package/dist/cdn/{BXQLGQ6O.js → QU5VIRGY.js} +2 -2
- package/dist/cdn/{MCDQUORV.js → QU6MV2R4.js} +2 -2
- package/dist/cdn/{ZQ2HPN3W.js → R3KXDLBC.js} +2 -2
- package/dist/cdn/R3QDSUMS.js +4 -0
- package/dist/cdn/{H77AUDKG.js → RAOR6DNG.js} +2 -2
- package/dist/cdn/{WX6NTYZO.js → RIR7ISEG.js} +2 -2
- package/dist/cdn/{4HECS3TA.js → RJVPADY4.js} +2 -2
- package/dist/cdn/{PGSEOWFX.js → RN47VRJO.js} +2 -2
- package/dist/cdn/{ALIHQ2MF.js → ROJ6UXWC.js} +2 -2
- package/dist/cdn/RTQCBY45.js +4 -0
- package/dist/cdn/{WGO54NYU.js → RTSUY2Q2.js} +2 -2
- package/dist/cdn/{WPA4NXXH.js → RZLD7GPX.js} +2 -2
- package/dist/cdn/{UTKAQVP4.js → SCCCHUE7.js} +2 -2
- package/dist/cdn/{MPQ4CIM7.js → SCFIKT66.js} +2 -2
- package/dist/cdn/{K6752QH3.js → SQ72UPK3.js} +2 -2
- package/dist/cdn/{FEK5UIIE.js → SU7JDERD.js} +2 -2
- package/dist/cdn/{2K7BLOL6.js → T7EW26WY.js} +2 -2
- package/dist/cdn/{EJJPCG36.js → TA4R7WKW.js} +2 -2
- package/dist/cdn/{IUO3RQBY.js → TAE7C5OI.js} +2 -2
- package/dist/cdn/{YDN7DHK5.js → THV4VHVL.js} +2 -2
- package/dist/cdn/{HUHVTN5N.js → TLBLKOSP.js} +2 -2
- package/dist/cdn/{QVAA7UWM.js → TOGUBI36.js} +2 -2
- package/dist/cdn/{23JUUYFN.js → TPT5GHCA.js} +2 -2
- package/dist/cdn/{ZJZRCIO6.js → TR24DOO4.js} +2 -2
- package/dist/cdn/{DP4HUTJB.js → TTKYUHNY.js} +2 -2
- package/dist/cdn/{USVRA2PF.js → TXLHJXSD.js} +2 -2
- package/dist/cdn/{LAARQ3SC.js → UCHW2VOH.js} +2 -2
- package/dist/cdn/{ZIZWR2E2.js → UGHIR2H5.js} +2 -2
- package/dist/cdn/{XDB2IAAB.js → UJNLCDAP.js} +2 -2
- package/dist/cdn/{JEXYLSPT.js → UQKWMKYX.js} +2 -2
- package/dist/cdn/{G25UYWU2.js → USOHU6ZJ.js} +2 -2
- package/dist/cdn/{CKP5NRSZ.js → USVH5XRC.js} +2 -2
- package/dist/cdn/{WTVJEJOH.js → UUYHFCW4.js} +2 -2
- package/dist/cdn/{VGUIEWXD.js → UXMQRK5S.js} +1 -1
- package/dist/cdn/{VQKLQBOO.js → UZS6KXNI.js} +2 -2
- package/dist/cdn/{DVOJAUT5.js → V7G2AU5A.js} +2 -2
- package/dist/cdn/{WINQVMKE.js → VGFMPJPG.js} +3 -3
- package/dist/cdn/{TWSVZ4MU.js → VNATQD74.js} +2 -2
- package/dist/cdn/VQ7R4YV2.js +4 -0
- package/dist/cdn/{Z642X5R6.js → VSXWXDUG.js} +2 -2
- package/dist/cdn/{FRU4NUKP.js → VT5P4INT.js} +1 -1
- package/dist/cdn/{NJDPBF7U.js → WICNCAEP.js} +2 -2
- package/dist/cdn/{ZBRMQKPX.js → WNZMO54V.js} +2 -2
- package/dist/cdn/{LO5XB3CJ.js → X3ULYFMR.js} +2 -2
- package/dist/cdn/{7OOX6EYU.js → X3XUCW5D.js} +2 -2
- package/dist/cdn/{OMQTD6W4.js → XC55JAZC.js} +2 -2
- package/dist/cdn/{XIH6ZMGJ.js → XC5VKQJJ.js} +1 -1
- package/dist/cdn/{2NRHRJMW.js → XD7HIK35.js} +2 -2
- package/dist/cdn/{CZPQYOMC.js → XIROVWXB.js} +1 -1
- package/dist/cdn/{6YVXLIWR.js → XISD2FJX.js} +2 -2
- package/dist/cdn/{IAM2GWWY.js → XPSM5W4L.js} +2 -2
- package/dist/cdn/{QHY3HOJZ.js → XWJ5XRDA.js} +1 -1
- package/dist/cdn/{YEYDGCMG.js → XWT4JOO6.js} +2 -2
- package/dist/cdn/{B7C2SG7U.js → Y2TYQRMX.js} +2 -2
- package/dist/cdn/{45GEUPJR.js → Y2XCXPZJ.js} +1 -1
- package/dist/cdn/{55EOCAZO.js → Y4ZIUU3O.js} +2 -2
- package/dist/cdn/{IEKYGBCE.js → Y53CA6HP.js} +2 -2
- package/dist/cdn/{U6HIPEIC.js → YA4UNEDL.js} +2 -2
- package/dist/cdn/{NCWTGVLS.js → YKLMVODS.js} +2 -2
- package/dist/cdn/{AAOA4QBP.js → YL7XZAGN.js} +2 -2
- package/dist/cdn/{ABYYFXA3.js → YN6OX32H.js} +2 -2
- package/dist/cdn/{26OF6DOI.js → YNIZ4XXM.js} +2 -2
- package/dist/cdn/YRGOM6Q5.js +4 -0
- package/dist/cdn/{QX2LVJEP.js → YWL5BSMR.js} +2 -2
- package/dist/cdn/{LW67Q7U3.js → Z2XU5LLK.js} +2 -2
- package/dist/cdn/Z4R46WXZ.js +4 -0
- package/dist/cdn/{SVF5ULXK.js → Z56WHDSU.js} +2 -2
- package/dist/cdn/{YBGWD4DE.js → Z7JJZ3FM.js} +2 -2
- package/dist/cdn/{Y3ESQQEV.js → ZCRJUKEL.js} +2 -2
- package/dist/cdn/{6H5BLERA.js → ZFQHFXDO.js} +2 -2
- package/dist/cdn/{Y2WO5VQQ.js → ZHGAX6R3.js} +2 -2
- package/dist/cdn/{KT3PTRZ6.js → ZPVOBCSG.js} +2 -2
- package/dist/cdn/{6P4GVMOZ.js → ZTMR6MQW.js} +2 -2
- package/dist/cdn/{XN5ERJUX.js → ZUBYVBHB.js} +2 -2
- package/dist/cdn/{ZSIMORYA.js → ZVSE3IZ4.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +2035 -2009
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +7 -9
- package/dist/components/crowdsource-reporter/customElement.js +2 -2
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +35 -37
- package/dist/components/layer-table/index.d.ts +0 -1
- package/dist/components/layer-table/index.js +0 -1
- package/dist/components/map-card/customElement.d.ts +8 -0
- package/dist/components/map-card/customElement.js +41 -36
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +6 -2
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +2 -2
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-panel/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-panel/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +47 -2
- package/dist/docs/docs.json +44 -2
- package/dist/docs/vscode.html-custom-data.json +6 -1
- package/dist/docs/web-types.json +25 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +2 -1
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/react.d.ts +2 -1
- package/dist/types/stencil.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cdn/2HOKIBIJ.js +0 -4
- package/dist/cdn/2W64V4FL.js +0 -4
- package/dist/cdn/4EP3SSVQ.js +0 -4
- package/dist/cdn/CGFFKEWQ.js +0 -4
- package/dist/cdn/CUTLCVEY.js +0 -4
- package/dist/cdn/DV4IGJMT.js +0 -18
- package/dist/cdn/ERUVVBEL.js +0 -4
- package/dist/cdn/H4LF7LYL.js +0 -18
- package/dist/cdn/HACX7AGZ.js +0 -4
- package/dist/cdn/HCQBWHV3.js +0 -18
- package/dist/cdn/LBFKPX2C.js +0 -18
- package/dist/cdn/MVS6QH7E.js +0 -4
- package/dist/cdn/MWGRZML6.js +0 -4
- package/dist/cdn/RCFGDSWA.js +0 -4
- package/dist/cdn/RJRURTM3.js +0 -4
- package/dist/cdn/SOKSUQE7.js +0 -4
- package/dist/cdn/SRCXOI3Y.js +0 -4
- package/dist/cdn/WCNH7COY.js +0 -4
- package/dist/cdn/WZWGNIEX.js +0 -25
- package/dist/cdn/YN3ZXEKJ.js +0 -4
- package/dist/cdn/YOMJ4KM5.js +0 -4
package/dist/cdn/H4LF7LYL.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import"./FAXNU5CL.js";import{b as A}from"./7B72B7FY.js";import"./M7NNYPVJ.js";import"./GSFDUUIV.js";import"./WUYXX4RA.js";import"./4FJC45LY.js";import"./XIH6ZMGJ.js";import"./FRU4NUKP.js";import"./BUGW2FJW.js";import{a as C}from"./HACX7AGZ.js";import"./AAE7EK4I.js";import{c as F,d as O,j as y}from"./XASSYP2N.js";import"./OUXGXK3J.js";import{c as S}from"./K22YDYDF.js";import{a as _,b as p}from"./G25UYWU2.js";import{b as x}from"./QHY3HOJZ.js";import{a as E}from"./WEJIR3KC.js";import{D as v,E as g,I as T,c as w,d,g as o,o as c,q as I}from"./23KRBWNX.js";import"./DTQTQMKB.js";var $=w`@layer{/** @license
|
5
|
-
* Copyright 2025 Esri
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
*/:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{--calcite-label-margin-bottom: 0px}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{--calcite-label-text-color: var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}}`,m=class extends v{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=E({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._enabledLayerIds=[],this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=_(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._shareNode=_(),this._toolbar=_(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this._searchNode=_(),this.featureSelectionChange=c(),this.toggleFilter=c(),this.showDelete=c(),this.relatedRecordToggled=c(),this.editMultipleFeatures=c(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),C(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,_allIds:16,_csvExporting:16,_fetchingData:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=$}static{this.shadowRootOptions=I}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&(console.log("lt mapInfoWatchHandler"),this.mapInfoWatchHandler()),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){console.log("lt mapInfoWatchHandler 2"),this._enabledLayerIds=this.mapInfo?.layerOptions?.layers.map(e=>e.id)||[],this._table&&this._resetColumnTemplates()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._creatingFeature||this._mapClicked(e)}))}async _layerWatchHandler(){this._fetchingData=!0,await this._layer?.when(async()=>{this._definitionExpression=this._layer?.definitionExpression||"",this._floorField=this._layer?.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl(),this._fetchingData=!1})}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async beforeMapInfoChange(e){console.log("lt beforeMapInfoChange");let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,r=this.mapView.allLayerViews.toArray(),h;r.some(async n=>n.layer.title===l?.title&&n.layer.type==="feature"?(h=n,this.mapView&&await y([i],h,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}async load(){await this._initModules(),await this._initToolInfos()}render(){let e=this._fetchingData?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",r=this._canShowFullTextSearch();return this._validateActiveActions(),d`<div><calcite-scrim class=${g(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile&&d`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${r&&d`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${h=>void this._searchTextChanged(h)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??o} type=search ${p(this._searchNode)}></calcite-input></div>`||""}<calcite-loader class=${g(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${g(e)} ${p(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:d`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell></div>`}async _initModules(){let[e,t,i,s]=await x(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate","esri/rest/support/RelationshipQuery"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i,this.RelationshipQuery=s}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t&&t.includes(this._searchExpression)?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{field_names}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return d`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??o}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table;return d`<div class="display-flex" slot=${e??o}><field-selection .layer=${t} .mapView=${this.mapView} .table=${i}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return d`<div class=${"height-51-px width-full display-flex"} slot=${e??o} ${p(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return d`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??o} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading)),e),[])}_validateEnabledActions(){let e=this._featuresSelected(),t=this._multipleFeaturesSelected(),i=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(s=>{s&&i.indexOf(s.icon)>-1&&(s.disabled=s.icon==="pencil"?!t:!e)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._featuresSelected(),t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable,i=this.featureSelectionMode==="multiple"&&this._layer?.capabilities?.operations.supportsUpdate,s=!this.mapHidden&&!t,a=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),l=this._featuresEmpty(),r=this.featureSelectionMode==="single",h=this.enableCSV;if(this._relatedFeatureTable){let u=await this._queryRelatedFeatures();h=u&&Object.keys(u).length>0}let n=[];a&&n.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1}),s&&n.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e}),i&&n.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this._getSelectedIds()),disabled:!this._multipleFeaturesSelected()}),this._deleteEnabled&&n.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0}),n.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e}),this._relatedFeatureTable||n.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e}),!r&&!this._relatedFeatureTable&&n.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:l}),!r&&!this._relatedFeatureTable&&n.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:l}),n.push({active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1}),h&&n.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:l}),this._toolInfos=[...n]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresSelected(){return this._relatedFeatureTable?this._relatedFeatureTable.highlightIds.items.length>0:this.selectedIds.length>0}_multipleFeaturesSelected(){return this._relatedFeatureTable?this._relatedFeatureTable.highlightIds.items.length>1:this.selectedIds.length>1}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,r){let h=this._layer===void 0?!0:l;return d`<calcite-action .active=${e} appearance=solid .disabled=${h} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${r} @click=${a} text text-enabled><div class="display-flex"><calcite-label class="label-override padding-start-1-4">${s}</calcite-label></div></calcite-action>`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return this.mapView&&d`<div id=${this._getId(e)??o}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${p(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`||""}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode.value&&(this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return document.getElementById(t)?d`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`:void 0}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return d`<div class="display-flex" id=${this._getId(e)??o}>${d`<calcite-action appearance=solid .disabled=${a} id=${e??o} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><calcite-label class="label-override padding-start-1-4 danger-label-color">${t}</calcite-label></calcite-action>`}${this._getToolTip("bottom",e,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;return this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table),e?.highlightIds.map(t=>Number.parseInt(t.toString(),10)).toArray()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,relatedRecordsEnabled:!0,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:this.hasAttachmentsEnabled(this._layer),visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this.reactiveUtils&&this._table?.viewModel.addHandles(this.reactiveUtils.watch(()=>this._table.size,i=>{this._size=i})),this.reactiveUtils?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let a={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(a)}let s=i.layer;if(this._checkEditEnabled(s),i.editingEnabled=this._editEnabled&&this.enableInlineEdit,i.attachmentsEnabled=this.hasAttachmentsEnabled(s),i.relatedRecordsEnabled=!0,this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let a=i.layer.popupTemplate?.fieldInfos||i.layer.fields,l=this._getColumnTemplates(i.layer.id,a);this._relatedFeatureTable.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:l})}i.highlightIds.on("change",a=>{this._handleOnChange(a)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0;let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:i}}}=e;return t&&i}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._featuresSelected()?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos||this._layer.fields,t=this._getColumnTemplates(this._layer.id,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos||this._layer.fields,t=this._getColumnTemplates(this._layer.id,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(this._layer),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._table.attachmentsEnabled=this.hasAttachmentsEnabled(this._layer),this._table.relatedRecordsEnabled=!0,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await S(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(e){this._editEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(l=>l.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),r=this._table?.highlightIds.indexOf(l);r&&r<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.rowHighlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let r=await this._queryRelatedFeatures(),h=[];r&&r[l]?.features&&(r[l].features.forEach(n=>{n.attributes&&h.push(n.attributes[e.objectIdField])}),i=h.length>0?h:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,r)=>{if(!r.hidden){let h=r?.name||r?.fieldName;h&&l.push(h.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await A(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(l=>i.relationships?.some(r=>r.id===l.id)),a=this.RelationshipQuery&&new this.RelationshipQuery({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let e=this._getSelectedLayer(this.selectedRelatedIds);e&&this.relatedRecordToggled.emit(e);let t=this._getSelectedIds();this.featureSelectionChange.emit(t)}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _clearSearchText(){if(this._searchNode.value){this._searchNode.value.value="";let e={target:{value:""}};await this._searchTextChanged(e)}}async _zoom(){this._layer&&this.mapView&&await y(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0,await this._clearSearchText();let i=this.mapView&&await O(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await F(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t){console.log("lt _getColumnTemplates");let i;this.mapInfo?.layerOptions?.layers.some(h=>h.id===e?(i=h,!0):!1);let s=this._layer?.attributeTableTemplate?.elements,a=[];s?.length>0&&this.honorMapFieldSettings&&(a=s.map(h=>h.fieldName));let l=i?.fields&&i?.fieldOrder?i.fieldOrder.filter(h=>i?.fields&&i.fields.indexOf(h)>-1):a.length>0?a:void 0,r;return t&&(r=t.reduce((h,n)=>{let u="fieldName"in n?n.fieldName:n.name,H="label"in n?n.label:n.alias,f="label"in n?n.label:n.name,b={type:"field",fieldName:u,label:H,menuConfig:this._getMenuConfig(f||"")};return i&&i.fields&&i?.fields?.length>0?i.fields.indexOf(f||"")>-1&&h.push(b):a.length>0?a.indexOf(f)>-1&&h.push(b):h.push(b),h},[])),r?l?r?.sort(this._sortFields.bind(this,l)):r:[]}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};T("layer-table",m);export{m as LayerTable};
|
package/dist/cdn/HACX7AGZ.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{i as t}from"./AAE7EK4I.js";var n=()=>{};var r=async(e,a)=>{if(!(typeof window>"u"))return await n(),t(JSON.parse('[["instant-apps-interactive-legend",[[2,"instant-apps-interactive-legend",{"view":[16],"zoomTo":[4,"zoom-to"],"featureCount":[1028,"feature-count"],"filterMode":[16],"compact":[4],"handles":[32],"reactiveUtils":[32],"legendvm":[32],"widget":[32],"messages":[32]},null,{"handles":["init"],"reactiveUtils":["init"],"view":["init"],"compact":["compactHandler"]}]]],["instant-apps-language-switcher",[[1,"instant-apps-language-switcher",{"icon":[1],"portalItem":[16],"view":[16],"locales":[16],"defaultLocale":[1,"default-locale"],"selectedLanguage":[1,"selected-language"],"calciteDropdownOverlayPositioning":[1,"calcite-dropdown-overlay-positioning"],"messages":[32],"t9nData":[32],"refresh":[64]}]]],["instant-apps-export",[[1,"instant-apps-export",{"output":[1040],"beforeExport":[16],"popoverIcon":[1,"popover-icon"],"extraContent":[16],"extraContentLabel":[1,"extra-content-label"],"headerTitle":[1025,"header-title"],"logoImage":[1025,"logo-image"],"includeExtraContent":[1028,"include-extra-content"],"showExtraContentInImg":[4,"show-extra-content-in-img"],"includeLegend":[1028,"include-legend"],"includeMap":[1028,"include-map"],"includePopup":[1028,"include-popup"],"includeFileFormat":[1028,"include-file-format"],"mode":[513],"popoverPositioning":[1,"popover-positioning"],"popoverPlacement":[1,"popover-placement"],"scale":[1],"showHeaderTitle":[4,"show-header-title"],"showIncludeLegend":[4,"show-include-legend"],"showIncludeMap":[4,"show-include-map"],"showIncludePopup":[4,"show-include-popup"],"showScaleBar":[4,"show-scale-bar"],"view":[16],"maskBackground":[1,"mask-background"],"maskBorder":[1,"mask-border"],"defaultFileType":[1,"default-file-type"],"baseClass":[32],"exportIsLoading":[32],"messages":[32],"selectedFileType":[32]},null,{"includeMap":["watchIncludeMap"],"view":["watchView"]}]]],["instant-apps-interactive-legend-group-legend-element-caption",[[2,"instant-apps-interactive-legend-group-legend-element-caption",{"legendvm":[16],"featureCount":[4,"feature-count"],"activeLayerInfo":[16],"messages":[16],"isChild":[4,"is-child"],"expanded":[1028]}]]],["instant-apps-landing-page",[[1,"instant-apps-landing-page",{"titleText":[1,"title-text"],"subtitleText":[1,"subtitle-text"],"descriptionText":[1,"description-text"],"entryButtonText":[1,"entry-button-text"],"iconImage":[1,"icon-image"],"iconImageScale":[1,"icon-image-scale"],"iconImageAltText":[1,"icon-image-alt-text"],"alignment":[1],"disableTransition":[4,"disable-transition"],"backgroundImageSrc":[1,"background-image-src"],"open":[1028],"entryButtonScale":[1,"entry-button-scale"],"fontFamily":[513,"font-family"],"enableSignIn":[4,"enable-sign-in"],"portal":[16],"oauthappid":[1]},null,{"open":["emitToggleEvent"]}]]],["instant-apps-measurement",[[2,"instant-apps-measurement",{"view":[16],"areaUnit":[1,"area-unit"],"linearUnit":[1,"linear-unit"],"coordinateFormat":[1,"coordinate-format"],"activeToolType":[1,"active-tool-type"],"closable":[4],"messages":[32]}]]],["instant-apps-app-guide",[[1,"instant-apps-app-guide",{"header":[4],"data":[16],"messages":[32],"headerText":[32]},null,{"data":["watchPropHandler"],"headerText":["watchStateHandler"]}]]],["instant-apps-control-panel",[[1,"instant-apps-control-panel",{"components":[16],"view":[16]}]]],["instant-apps-create",[[1,"instant-apps-create",{"popoverIcon":[1,"popover-icon"],"mode":[513],"popoverPositioning":[1,"popover-positioning"],"popoverPlacement":[1,"popover-placement"],"showHeader":[4,"show-header"],"content":[16],"options":[16],"portal":[16],"baseClass":[32],"messages":[32],"CreateOptionsLookup":[32]},null,{"content":["contentChanged"]}]]],["instant-apps-export-views",[[1,"instant-apps-export-views",{"output":[1040],"beforeExport":[16],"popoverIcon":[1,"popover-icon"],"includeLegend":[1028,"include-legend"],"includeMap":[1028,"include-map"],"includePopup":[1028,"include-popup"],"includeHeader":[1028,"include-header"],"mode":[513],"popoverPositioning":[1,"popover-positioning"],"popoverPlacement":[1,"popover-placement"],"scale":[1],"showIncludeLegend":[4,"show-include-legend"],"showIncludeMap":[4,"show-include-map"],"showIncludePopup":[4,"show-include-popup"],"showIncludeHeader":[4,"show-include-header"],"showScaleBar":[4,"show-scale-bar"],"exportViews":[16],"baseClass":[32],"exportIsLoading":[32],"messages":[32]},null,{"includeMap":["watchIncludeMap"],"exportViews":["watchView"]}]]],["instant-apps-filter-list",[[1,"instant-apps-filter-list",{"layerExpressions":[1040],"autoUpdateUrl":[4,"auto-update-url"],"closeBtn":[4,"close-btn"],"closeBtnOnClick":[16],"comboboxOverlayPositioning":[1,"combobox-overlay-positioning"],"closeBtnText":[1,"close-btn-text"],"openFilters":[4,"open-filters"],"extentSelector":[4,"extent-selector"],"extentSelectorConfig":[16],"urlParams":[1040],"filterCount":[1026,"filter-count"],"view":[16],"zoomBtn":[4,"zoom-btn"],"resetBtn":[4,"reset-btn"],"resetFiltersOnDisconnect":[4,"reset-filters-on-disconnect"],"loading":[32],"filterLayerExpressions":[32],"messages":[32],"baseClass":[32],"initDefExpressions":[32],"initMapImageExpressions":[32],"initPointCloudFilters":[32],"getFilterInitState":[64],"forceReset":[64],"updateInitDefExpressions":[64],"getCurrentLayerExpressions":[64],"handleUpdatingT9nData":[64]},null,{"view":["watchViewHandler"],"layerExpressions":["watchLayerExpressions"]}]]],["instant-apps-keyboard-shortcuts",[[1,"instant-apps-keyboard-shortcuts",{"view":[16],"messages":[32]}]]],["instant-apps-popover",[[0,"instant-apps-popover",{"popoverTitle":[513,"popover-title"],"subtitle":[513],"content":[513],"imgSrc":[513,"img-src"],"imgAlt":[513,"img-alt"],"mediaSrc":[513,"media-src"],"index":[514],"referenceElement":[513,"reference-element"],"parent":[16],"placement":[1],"refId":[1,"ref-id"],"pagination":[516],"disableAction":[516,"disable-action"],"popoverAction":[16],"messageOverrides":[16],"messages":[32]}]]],["instant-apps-popovers",[[4,"instant-apps-popovers",{"inTour":[1540,"in-tour"],"currentId":[1537,"current-id"],"instantAppsPopovers":[16],"beforeOpen":[16],"open":[64],"close":[64],"beginTour":[64],"endTour":[64]}]]],["instant-apps-scoreboard",[[1,"instant-apps-scoreboard",{"view":[16],"items":[16],"position":[1],"mode":[1],"itemLimit":[2,"item-limit"],"autoDockEnabled":[4,"auto-dock-enabled"],"geometry":[1040],"queryType":[1,"query-type"],"state":[32],"messages":[32],"itemIndex":[32],"layers":[32],"layerViews":[32],"isMobile":[32]},null,{"items":["generateUIDs","storeLayers"],"layers":["storeLayerViews"],"geometry":["calculateScoreboardItemValuesFromGeometry"],"layerViews":["calculateScoreboardItemValues"]}]]],["instant-apps-social-share",[[1,"instant-apps-social-share",{"mode":[513],"shareUrl":[1025,"share-url"],"autoUpdateShareUrl":[1028,"auto-update-share-url"],"shareText":[513,"share-text"],"embed":[516],"shareButtonColor":[513,"share-button-color"],"shareButtonType":[513,"share-button-type"],"shareButtonScale":[513,"share-button-scale"],"iframeInnerText":[513,"iframe-inner-text"],"popoverButtonIconScale":[513,"popover-button-icon-scale"],"view":[16],"displayTipText":[516,"display-tip-text"],"shortenShareUrl":[516,"shorten-share-url"],"socialMedia":[516,"social-media"],"shareIconsLayout":[513,"share-icons-layout"],"scale":[513],"successMessage":[513,"success-message"],"flipRtl":[516,"flip-rtl"],"defaultUrlParams":[16],"inlineSuccessPopoverPlacement":[513,"inline-success-popover-placement"],"popoverPositioning":[513,"popover-positioning"],"removePopoverOffset":[516,"remove-popover-offset"],"useNativeShare":[516,"use-native-share"],"isNativeShareEnabled":[1540,"is-native-share-enabled"],"messages":[32],"opened":[32],"copied":[32],"inlineCopyLinkOpened":[32],"inlineCopyEmbedOpened":[32],"embedWidth":[32],"embedHeight":[32]}]]],["instant-apps-splash",[[1,"instant-apps-splash",{"localStorageKey":[1,"local-storage-key"],"titleText":[1,"title-text"],"content":[1025],"primaryButtonText":[1,"primary-button-text"],"open":[1028],"closeButtonDisabled":[4,"close-button-disabled"],"outsideCloseDisabled":[4,"outside-close-disabled"],"secondaryButton":[4,"secondary-button"],"secondaryButtonText":[1,"secondary-button-text"],"secondaryButtonIcon":[1,"secondary-button-icon"],"secondaryButtonCallback":[16],"messages":[32]},null,{"content":["sanitizeContent"]}]]],["instant-apps-time-filter",[[0,"instant-apps-time-filter",{"messages":[16],"timeInfoConfigItems":[16],"filterMode":[16],"view":[16],"timeSliderConfig":[16],"autoPlay":[4,"auto-play"],"timeSliderRef":[32]},null,{"timeInfoConfigItems":["updateTimeInfoConfigItems"],"filterMode":["updateFilterMode"],"timeSliderConfig":["updateTimeSliderConfig"],"autoPlay":["updateAutoPlay"]}]]],["instant-apps-interactive-legend-classic",[[2,"instant-apps-interactive-legend-classic",{"legendvm":[16],"zoomTo":[4,"zoom-to"],"featureCount":[4,"feature-count"],"filterMode":[16],"messages":[16],"isLoading":[32]},null,{"filterMode":["handleFilterModeChange"]}]]],["instant-apps-language-translator",[[6,"instant-apps-language-translator",{"portalItem":[16],"appSettings":[16],"locales":[16],"open":[1028],"userLocaleInputOnChangeCallback":[16],"translatedLocaleInputOnChangeCallback":[16],"saving":[32],"messages":[32],"isCollapse":[32],"getTranslationData":[64],"setTranslationData":[64],"getPortalItemResource":[64],"batchWriteToPortalItemResource":[64]},[[8,"translatorItemDataUpdated","handleT9nItemUpdate"]],{"locales":["handleLocaleChange"],"appSettings":["handleAppSettings"]}]]],["instant-apps-header",[[1,"instant-apps-header",{"titleText":[1,"title-text"],"titleTextLink":[1,"title-text-link"],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"logoImage":[1,"logo-image"],"logoScale":[1537,"logo-scale"],"logoImageAltText":[1,"logo-image-alt-text"],"logoLink":[1,"logo-link"],"infoButton":[1540,"info-button"],"infoIsOpen":[516,"info-is-open"],"infoTitleText":[1,"info-title-text"],"customHeaderHtml":[1025,"custom-header-html"],"headerAlignment":[1025,"header-alignment"],"customHeaderCss":[1025,"custom-header-css"],"fontFamily":[513,"font-family"],"mobileWidthBreakpoint":[2,"mobile-width-breakpoint"],"dir":[32],"initialScale":[32],"toggleInfo":[64]},null,{"customHeaderHtml":["sanitizeCustomHeaderHtml"]}]]],["instant-apps-measurement-tool",[[2,"instant-apps-measurement-tool",{"view":[16],"measureConfiguration":[16],"activeTool":[1,"active-tool"]},null,{"activeTool":["_updateToolType"]}]]],["instant-apps-sign-in",[[1,"instant-apps-sign-in",{"type":[1],"portal":[16],"oauthappid":[1],"openInPopup":[4,"open-in-popup"],"landingPage":[4,"landing-page"],"showIndicator":[4,"show-indicator"],"closeLandingPage":[16],"signInDropdownItems":[16],"ready":[32],"isSignedIn":[32],"user":[32],"messages":[32]},null,{"portal":["watchPortal"],"oauthappid":["watchOauthappid"]}]]],["instant-apps-ckeditor-wrapper_3",[[2,"instant-apps-language-translator-item",{"fieldName":[1,"field-name"],"translatedLanguageLabels":[16],"setting":[16],"userLocaleInputOnChangeCallback":[16],"translatedLocaleInputOnChangeCallback":[16]}],[2,"instant-apps-language-translator-search",{"t9nPlaceholder":[1,"t-9n-placeholder"],"results":[32]}],[0,"instant-apps-ckeditor-wrapper",{"value":[1025],"editorInstance":[1040],"config":[16]},null,{"value":["updateValue"]}]]],["instant-apps-interactive-legend-count_2",[[2,"instant-apps-interactive-legend-layer-element-caption",{"legendvm":[16],"featureCount":[4,"feature-count"],"activeLayerInfo":[16],"messages":[16],"isChild":[4,"is-child"],"expanded":[1028]}],[2,"instant-apps-interactive-legend-count",{"showTotal":[4,"show-total"],"legendvm":[16],"activeLayerInfo":[16],"categoryId":[1,"category-id"],"infoIndex":[2,"info-index"],"messages":[16],"selected":[4],"legendElement":[16]}]]],["instant-apps-interactive-legend-group-legend-element_5",[[6,"instant-apps-interactive-legend-group-legend-element",{"legendvm":[16],"featureCount":[4,"feature-count"],"activeLayerInfo":[16],"messages":[16],"isChild":[4,"is-child"],"expanded":[32]},[[8,"layerCaptionElementExpandUpdated","layerCaptionElementExpandUpdatedEmitted"]]],[6,"instant-apps-interactive-legend-layer-element",{"legendvm":[16],"featureCount":[4,"feature-count"],"activeLayerInfo":[16],"messages":[16],"isChild":[4,"is-child"],"expanded":[32]},[[8,"layerCaptionElementExpandUpdated","layerCaptionElementExpandUpdatedEmitted"]]],[6,"instant-apps-interactive-legend-legend-element",{"activeLayerInfo":[16],"isSizeRamp":[4,"is-size-ramp"],"isChild":[4,"is-child"],"isColorRamp":[4,"is-color-ramp"],"isRelationshipRamp":[4,"is-relationship-ramp"],"isInteractive":[4,"is-interactive"],"zoomTo":[4,"zoom-to"],"legendElement":[16],"titleText":[1,"title-text"],"legendvm":[16],"legendElementIndex":[2,"legend-element-index"],"messages":[16],"expanded":[32]},[[8,"legendLayerExpandUpdated","legendLayerExpandUpdatedEmitted"]]],[2,"instant-apps-interactive-legend-relationship",{"filterMode":[16],"activeLayerInfo":[16],"legendElement":[16],"messages":[16]},[[8,"showAllSelected","showAllSelectedEmitted"]]],[2,"instant-apps-interactive-legend-legend-element-caption",{"legendvm":[16],"activeLayerInfo":[16],"layer":[16],"titleText":[1,"title-text"],"legendElementIndex":[2,"legend-element-index"],"zoomTo":[4,"zoom-to"],"isInteractive":[4,"is-interactive"],"legendElement":[16],"expanded":[1028],"messages":[16]}]]]]'),a)};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();export{r as a};
|
package/dist/cdn/HCQBWHV3.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{a as I}from"./HACX7AGZ.js";import"./AAE7EK4I.js";import{d as C}from"./XASSYP2N.js";import{a as s}from"./OUXGXK3J.js";import"./K22YDYDF.js";import{a as h,b as r}from"./G25UYWU2.js";import{a as x}from"./WEJIR3KC.js";import{D as $,E as m,F as v,I as L,c as f,d as l,g as w,o as b,q as y}from"./23KRBWNX.js";import"./DTQTQMKB.js";var F=f`@layer{/** @license
|
5
|
-
* Copyright 2025 Esri
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
*/:host{display:block;--calcite-label-margin-bottom: 0px;--solutions-theme-foreground-color: var(--calcite-color-foreground-1)}.padding-1-2{padding:.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.z-index-1{z-index:1}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none!important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button,.esri-floor-filter__level-button,.esri-floor-filter__browse-button{width:40px!important;height:40px!important}.position-absolute-50{position:absolute;inset:50px 0 0}.position-absolute-0{position:absolute;inset:0}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0}.floating-container .floating-button{box-shadow:0 10px 25px #5c5d5e99;-webkit-transform:translatey(5px);transform:translatey(5px);-webkit-transition:all .3s;transition:all .3s}.z-index-0{z-index:0!important}.z-index-1{z-index:1!important}.filter-content-space{--calcite-dialog-content-space: 0px}.background-dark{background:var(--calcite-color-background)}.filter-extent-container{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.filter-modal-buttons{display:flex;padding:12px;gap:10px}.filter-extent-message{align-items:center;display:flex;gap:5px}}`,_=class extends ${constructor(){super(),this.coverPageEnabled=!1,this.customInfoText="",this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.honorMapFieldSettings=!1,this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableSnapping=!0,this.enableZoom=!0,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor="",this.popupHeaderHoverColor="",this.popupHeaderHoverTextColor="",this.popupHeaderTextColor="",this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.enableSelectionTool=!0,this.featureSelectionMode="multiple",this._deleteDialogOpen=!1,this._enableCreateFeatures=!0,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._translations=x({name:"crowdsource-manager",blocking:!0}),this._layoutMode=s.GRID,this._panelOpen=!0,this._numSelected=0,this._filterOpen=!1,this._showInformationHeader=!0,this._layerExpressions=[],this._layerIds=[],this._isLoading=!0,this._mapExtentFilterChecked=!1,this._deleteIds=[],this._defaultAppLayoutHonored=!1,this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this._layerTable=h(),this._shouldSetMapView=!1,this._filterList=h(),this._mapCard=h(),this._isMapViewOnLoad=!1,this.showIntroductionWindow=b(),this.showCoverPage=b(),this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"popupClosed",this.popupClosed),this.listenOn(window,"layoutChanged",this.layoutChanged),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"showDelete",this.showDelete),this.listenOn(window,"idsFound",this.idsFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),I(window)}static{this.properties={appLayout:1,appProxies:1,basemapConfig:0,coverPageEnabled:5,customInfoText:1,defaultAppLayout:1,defaultCenter:1,defaultGlobalId:1,defaultLayer:1,defaultLevel:1,defaultOid:1,defaultWebmap:1,honorMapFieldSettings:5,introductionWindowEnabled:5,enableAutoRefresh:5,enableBasemap:5,enableColumnReorder:5,enableCSV:5,enableFloorFilter:5,enableFullscreen:5,enableHome:5,enableLegend:5,enableSearch:5,enableShare:5,enableSnapping:5,enableZoom:5,mapInfos:0,onlyShowUpdatableLayers:5,popupHeaderColor:1,popupHeaderHoverColor:1,popupHeaderHoverTextColor:1,popupHeaderTextColor:1,searchConfiguration:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,theme:1,zoomAndScrollToSelected:5,zoomToScale:9,enableSelectionTool:5,featureSelectionMode:1,_deleteDialogOpen:16,_enableCreateFeatures:16,_hideFooter:16,_hideTable:16,_isMobile:16,_translations:16,_layer:16,_layoutMode:16,_mapInfo:16,_mapView:16,_panelOpen:16,_numSelected:16,_filterOpen:16,_showInformationHeader:16,_layerExpressions:16,_layerIds:16,_isLoading:16,_mapExtentFilterChecked:16,_deleteIds:16}}static{this.styles=F}static{this.shadowRootOptions=y}willUpdate(e){e.has("appLayout")&&this.appLayout&&this.appLayoutWatchHandler(this.appLayout,e.get("appLayout")),e.has("enableZoom")&&(this.hasUpdated||this.enableZoom!==!0)&&this.enableZoomWatchHandler()}appLayoutWatchHandler(e,t){e!==t&&(this._layerTable.value?.validateTableUpdate(e==="splitView"),this._setActiveLayout(e),this.appLayout==="mapView"&&this._layer?.isTable&&this._mapCard.value&&this._mapCard.value.updateLayer(),this._isMapViewOnLoad&&(this._layerTable.value&&this._layerTable.value.refresh(),this._isMapViewOnLoad=!1))}enableZoomWatchHandler(){this._initMapZoom()}async featureSelectionChange(e){this._numSelected=e.detail?.length}async popupClosed(){this._isMobile&&this.showHideMapPopupAndTable(!1)}async layoutChanged(e){this._layoutMode=e.detail}async mapChanged(e){console.log("map change CM"),this._mapChange=e.detail,this.showHideMapPopupAndTable(!1),await this._mapChange?.mapView.when(async()=>{await this._setMapView()})}async layerSelectionChange(e){let t=e.detail[0],i=this._mapView&&await C(this._mapView,t);i&&await i.when(()=>{i.isTable&&!this._isMobile&&(this.appLayout="tableView"),this._layer=i,this._initLayerExpressions(),this._handleFilterListReset(),this._isLoading=!1})}async showDelete(e){this._deleteIds=e.detail.ids,this._deleteDialogOpen=!0}async idsFound(e){this._layerIds=e.detail.layerIds}async clearSelection(){this.showHideMapPopupAndTable(!1)}async relatedRecordToggled(e){let t=e.detail;this._relatedTableLayer=t}load(){this._resizeObserver=new ResizeObserver(()=>this._onResize())}render(){let e=this.popupHeaderColor&&this.popupHeaderColor!=="#FFFFFF"?"border-width-0":"";return l`<calcite-shell class="position-relative"><calcite-panel class=${`width-full height-full ${e}`} .loading=${this._isLoading}>${this._getBody(this._layoutMode,this._panelOpen,this._hideTable)}</calcite-panel>${this._getFooter()}</calcite-shell>${this._filterModal()}${!this._isMobile&&this._deleteModal()||""}`}async updated(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}loaded(){this._resizeObserver?.observe(this.el),!this._defaultAppLayoutHonored&&this.defaultAppLayout?(this._defaultAppLayoutHonored=!0,this.appLayout=this.defaultAppLayout):this.appLayout||(this.appLayout="splitView"),this._isMapViewOnLoad=this.appLayout==="mapView",this._setActiveLayout(this.appLayout)}_getFooter(){let e=this._numSelected>0,t=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._relatedTableLayer:this._layer,i=this._layer?.editingEnabled&&this._layer.capabilities?.operations.supportsDelete;return this._isMobile&&e&&!this._hideFooter?l`<div class=${"width-100"} slot=footer><div class="display-flex padding-1-2"><calcite-button appearance=solid id=solutions-show @click=${()=>this.showHideMapPopupAndTable(!0)} width=full>${this._translations.view.replace("{{n}}",this._numSelected.toString())}</calcite-button>${i?l`<delete-button class="padding-inline-start-1 width-full" id=solutions-delete .ids=${this.updateIdsToBeDeleted()} @deleteClicked=${this.updateIdsToBeDeleted} .layer=${t}></delete-button>`:void 0}</div></div>`:void 0}updateIdsToBeDeleted(){return this._deleteIds=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._layerTable.value.selectedRelatedIds:this._layerTable.value?.selectedIds,this._deleteIds}_setActiveLayout(e){e==="splitView"&&!this._panelOpen&&this._toggleLayout(),e==="mapView"?this._showMapInFullView():this._showMapInCardView()}_getDividerIcon(e,t){let i="";switch(e){case s.HORIZONTAL:i=t?"chevrons-up":"chevrons-down";break;case s.VERTICAL:i=t?"chevrons-left":"chevrons-right";break;case s.GRID:i=t?"chevrons-left":"chevrons-right";break}return i}_getMapSizeClass(e,t,i){let a="";switch(e){case s.HORIZONTAL:a=`${t&&!i?"height-1-2 display-grid":t&&i?"height-full":"height-0"} width-full position-relative`;break;case s.GRID:a=`height-full position-relative ${t?"width-1-3":"width-0"}`;break;case s.VERTICAL:a=`height-full position-relative ${t?"width-1-2":"width-0"}`;break}return a}_getTableSizeClass(e,t){let i="";switch(e){case s.HORIZONTAL:i=`${t?"height-1-2":"height-full"} width-full display-flex flex-column`;break;case s.GRID:i=`${t?"width-2-3":"width-full"} height-full display-flex`;break;case s.VERTICAL:i=`${t?"width-1-2":"width-full"} height-full display-flex`;break}return i}_getBody(e,t,i){let a=e===s.HORIZONTAL?"":"display-flex",o=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<calcite-panel class="width-full height-full position-absolute"><div class=${`width-full height-full overflow-hidden ${a}`}>${this._getMapAndCard(e,t,i)}${this._getTable(e,t,i)}</div>${this.coverPageEnabled&&l`<div class="floating-container" @click=${this.coverPageButtonClick}><calcite-button appearance=solid class=${`floating-button ${o}`} icon-start=content-minimal kind=neutral label round scale=l split-child=primary width=auto></calcite-button></div>`||""}${this.introductionWindowEnabled&&l`<div class="floating-container" @click=${this.infoButtonClick}><calcite-button appearance=solid class=${`floating-button ${o}`} icon-start=information-letter kind=neutral label round scale=l split-child=primary width=auto></calcite-button></div>`||""}</calcite-panel>`}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(e,t,i){let a=this._getMapSizeClass(e,t,i);return l`<div class=${`${a} overflow-hidden z-index-1`}>${this._getMapNode(t)}${this._getPopupExpandNode()}</div>`}_getMapNode(e){let t=this.appLayout==="mapView",i=this.appLayout==="tableView",a=this._isMobile?"height-full":t||i?"position-absolute-0":this._layoutMode===s.HORIZONTAL&&(!this._isMobile||e)?"":"adjusted-height-50",o=this.defaultWebmap&&this.defaultLayer,n=this.enableSelectionTool&&this.featureSelectionMode==="multiple"&&!this._layer?.isTable,d=["home","legend","search","fullscreen","basemap","floorfilter","selectiontool"],p=["map-picker","map-layer-picker"];return l`<div class=${`${a} overflow-hidden`} id=card-mapView><map-card .appLayout=${this.appLayout} .appProxies=${this.appProxies} .basemapConfig=${this.basemapConfig} class="width-full" .defaultLayerId=${o?this.defaultLayer:""} .defaultWebmapId=${this.defaultWebmap} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableSearch=${this.enableSearch} .enableSelectionTool=${n} .enableShare=${this.enableShare} enable-single-expand .hide=${!this._isMobile&&i} zoom-tools-size=s .isMapLayout=${t} .isMobile=${this._isMobile} .mapInfo=${this._mapInfo} .mapInfos=${this.mapInfos?.filter(c=>c.visible!==!1)} map-widgets-index=0 map-widgets-position=top-left mobile-map-widgets-position=top-right map-widgets-size=m .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .selectedFeaturesIds=${this._layerTable.value?.selectedIds??[]} .selectedLayer=${this._layer} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} stack-tools .theme=${this.theme} .mapToolsOrder=${d} .mobileToolsOrder=${p} .zoomToScale=${this.zoomToScale} ${r(this._mapCard)}></map-card></div>`}_getPopupExpandNode(){let e=this._isMobile?"height-full":"height-full position-relative",t=this._isMobile&&this._showInformationHeader?"display-none height-0":"",i=this.popupHeaderColor?"":this._isMobile?"calcite-mode-light":"calcite-mode-dark",a=this._isMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isMobile?"display-none height-0":"",o=this.mapInfos?.length>1&&this.appLayout==="tableView"?"position-relative top-51":"",n=this.appLayout!=="tableView"?"position-sticky":"";return l`<div class=${`${i} ${e} ${a} ${o} ${n}`} style=${v({"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor})}><calcite-panel>${!this._isMobile&&this._showInformationHeader||this._numSelected>0&&!this._isMobile?l`<div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-icon icon=information scale=s></calcite-icon><div class="padding-inline-start-75">${this._translations.information}</div></div>`:l`<div></div>`}${this._getCardNode()}</calcite-panel></div>`}_getCardNode(){let e=this.appLayout==="mapView",t=this.appLayout==="tableView",i=this._isMobile?"height-full":t&&this.mapInfos?.length>1?"adjusted-height-100-51":e||t?"height-full":this._numSelected>0&&!this._isMobile?"height-50":this._showInformationHeader?this._isMobile?"height-full":"height-50":"adjusted-height-50_25",a=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<div class=${`width-50 height-full ${a}`}><card-manager class=${`${i} width-full`} .customInfoText=${this.customInfoText} .enableCreateFeatures=${this._enableCreateFeatures&&!this._isMobile} .enableEditGeometry=${this?._mapInfo?.enableEditGeometry} .enableSnapping=${this.enableSnapping} .isMobile=${this._isMobile} .layerOrTable=${this._layer} .mapView=${this?._mapView} @backFromCreateWorkFlow=${()=>{this._showInformationHeader=!0}} @createWorkFlowStarted=${()=>{this.appLayout=this._layer?.isTable?"tableView":"mapView",this._showInformationHeader=!1}} @featureOrRecordSubmitted=${()=>this._layerTable.value&&void this._layerTable.value.refresh()} .selectedFeaturesIds=${this._layerTable.value?.selectedIds} .selectingFeatureFromMap=${this.appLayout==="mapView"} .showSketchWidgets=${this._layer?.geometryType!=="point"} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected}></card-manager></div>`}_getTable(e,t,i){let a=this.appLayout==="mapView",o=this.appLayout==="tableView",n=i&&this._isMobile?"visibility-hidden":a?"display-none":"",d=a?"height-full width-full z-index-0":"display-none",p=this._getTableSizeClass(e,t),c=e===s.HORIZONTAL?"horizontal":"vertical",T=e===s.HORIZONTAL?"header":"panel-start",u=this.defaultWebmap&&this.defaultLayer,g=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,S=this.defaultOid?this.defaultOid?.indexOf(",")>-1?this.defaultOid.split(",").map(M=>Number.parseInt(M,10)):[Number.parseInt(this.defaultOid,10)]:void 0;return l`<calcite-shell class=${`${p} border-bottom z-index-1`}>${this._isMobile?void 0:l`<calcite-action-bar class="border-sides" expand-disabled .layout=${c} slot=${T??w}>${this.getActions(e,t)}</calcite-action-bar>`}<div class=${`width-full height-full position-relative z-index-0 ${n}`}><layer-table .appLayout=${this.appLayout} .defaultGlobalId=${u?g:void 0} .defaultLayerId=${u?this.defaultLayer:""} .defaultOid=${u&&!g?S:void 0} .enableAutoRefresh=${this.enableAutoRefresh} .enableCSV=${this.enableCSV} .enableColumnReorder=${this.enableColumnReorder} .enableInlineEdit=${this?._mapInfo?.enableInlineEdit} .enableShare=${this.enableShare} .featureSelectionMode=${this.featureSelectionMode} .honorMapFieldSettings=${this.honorMapFieldSettings} .isMobile=${this._isMobile} .mapHidden=${o} .mapInfo=${this._mapInfo} .mapView=${this?._mapView} .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} .showNewestFirst=${this.showNewestFirst} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected} .zoomToScale=${this.zoomToScale} ${r(this._layerTable)}></layer-table></div><div class=${m(d)} id=full-map-view></div></calcite-shell>`}getActions(e,t){let i=this._getDividerIcon(e,t),a=t?this._translations.close:this._translations.open,o="toggle-layout";return l`<calcite-action .active=${this.appLayout==="splitView"} class="toggle-node" .disabled=${this._layer?.isTable} icon=browser id=browser-action @click=${()=>{this.appLayout="splitView"}} text></calcite-action><calcite-tooltip placement=right reference-element=browser-action><span>${this._translations.splitView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="tableView"} class="toggle-node" icon=dock-left id=dock-left-action @click=${()=>{this.appLayout="tableView"}} text></calcite-action><calcite-tooltip placement=right reference-element=dock-left-action><span>${this._translations.tableView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="mapView"} class="toggle-node" .disabled=${this._layer?.isTable} icon=browser-map id=browser-map-action @click=${()=>{this.appLayout="mapView"}} text></calcite-action><calcite-tooltip placement=right reference-element=browser-map-action><span>${this._translations.mapView}</span></calcite-tooltip><calcite-action class="toggle-node" .icon=${i} id=${o} @click=${()=>this._toggleLayout()} slot=actions-end text></calcite-action><calcite-tooltip placement=bottom .referenceElement=${o}><span>${a}</span></calcite-tooltip>`}_deleteModal(){let e=(this._layerTable.value?.selectedRelatedIds?.length??0)>0?this._relatedTableLayer:this._layer;return l`<delete-dialog id=deleteDialogId .ids=${this._deleteIds} .layer=${e} @deleteDialogClose=${()=>this._deleteDialogOpen=!1} .open=${this._deleteDialogOpen}></delete-dialog>`}_mapExtentFilter(){let e=this._layerExpressions?.length===0;return l`<calcite-panel><div><calcite-block class=${m(this.theme==="dark"?"background-dark":"")} heading menu-placement=bottom-end open><div class="filter-extent-container"><div class="filter-extent-message"><span>${this._translations.filterByExtentMsg}</span><calcite-icon icon=information id=filter-message-info scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top reference-element=filter-message-info>${this._translations.filterByExtentTooltipMsg}</calcite-tooltip></div><calcite-switch .checked=${this._mapExtentFilterChecked} @calciteSwitchChange=${t=>{let i=!!(t.target.checked||this._filterList.value?.filterCount&&this._filterList.value?.filterCount>0);this._layerTable.value&&this._layerTable.value?.filterUpdate(i,t.target.checked),this._mapCard.value&&this._mapCard.value?.updateFilterState(i),this._mapExtentFilterChecked=t.target.checked}} scale=m></calcite-switch></div></calcite-block>${e&&l`<div class="filter-modal-buttons" slot=footer><calcite-button appearance=outline @click=${this._handleFilterListReset} width=full>${this._translations.Resetfilter}</calcite-button><calcite-button @click=${this._closeFilter} width=full>${this._translations.close}</calcite-button></div>`||""}</div></calcite-panel>`}_filterModal(){let e=this._layerExpressions?.length>0;return l`<calcite-dialog class="filter-content-space" .heading=${this._translations.filter.replace("{{title}}",this._layer?.title||"")} id=solutions-filter-dialog-manager kind=brand modal @calciteDialogClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width=s>${!this._layer?.isTable&&this._mapExtentFilter()||""}${e&&this._mapView&&l`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${this._handleFilterListReset} @filterUpdate=${()=>void this._updateFilter()} .view=${this._mapView} ${r(this._filterList)}></instant-apps-filter-list>`||""}</calcite-dialog>`}_updateFilter(){let e=this._filterList?.value?.filterCount&&this._filterList.value.filterCount>0||this._mapExtentFilterChecked;this._layerTable.value&&this._layerTable.value?.filterUpdate(e),this._mapCard.value&&this._mapCard.value.updateFilterState(e)}_initLayerExpressions(){let e=this._mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=e?e.filter(t=>t.id===this._layer?.id):[]}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._mapExtentFilterChecked=!1,this._mapCard.value&&this._mapCard.value.resetFilter(),this._layerTable.value&&this._layerTable.value.filterReset()}async _closeFilter(){this._filterOpen&&(this._filterOpen=!1,this._layerTable.value&&this._layerTable.value.closeFilter())}_onResize(){let e=this.el.offsetWidth<1024,t=!this._isMobile&&e;this._isMobile=e,t&&(this._panelOpen=!0),this._isMobile?(this.showHideMapPopupAndTable(!this._isMobile),this.appLayout="splitView"):(this._layer?.isTable&&(this.appLayout="tableView"),this._isMobile=!1),this._layoutMode=this._isMobile?s.HORIZONTAL:s.GRID}_toggleLayout(){this._panelOpen=!this._panelOpen}_showMapInCardView(){if(this.appLayout!=="mapView"){let e=document.getElementById("full-map-view")?.childNodes[0],t=document.getElementById("card-mapView");e&&t&&t.appendChild(e)}}_showMapInFullView(){let e=document.getElementById("card-mapView")?.childNodes,t;e?.forEach(a=>{!t&&a.mapView&&(t=a)});let i=document.getElementById("full-map-view");t&&i&&i.appendChild(t)}showHideMapPopupAndTable(e){this._hideTable=e,this._hideFooter=e}_getMapInfo(e){console.log("_getMapInfo");let t;return this.mapInfos.some(i=>i.id===e?(t={...i},!0):!1),t}async _setMapView(){console.log("_setMapView CM");let e=this._mapChange&&this._getMapInfo(this._mapChange.id);if(e&&this._mapChange){this._mapInfo=e,this._enableCreateFeatures=this._mapInfo.enableCreateFeatures,this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;let t=!this.defaultCenter||this._defaultCenterHonored?void 0:this.defaultCenter?.split(";").map(a=>Number.parseFloat(a)),i=!this.defaultLevel||this._defaultLevelHonored?void 0:Number.parseInt(this.defaultLevel,10);t&&i&&(await this._mapView.goTo({center:t,zoom:i}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView?.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView?.ui.remove("zoom")}};L("crowdsource-manager",_);export{_ as CrowdsourceManager};
|
package/dist/cdn/LBFKPX2C.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{a as S}from"./HACX7AGZ.js";import"./AAE7EK4I.js";import{c as v,j as L}from"./XASSYP2N.js";import"./OUXGXK3J.js";import"./K22YDYDF.js";import{a as h,b as r}from"./G25UYWU2.js";import{b as w}from"./QHY3HOJZ.js";import{a as $}from"./WEJIR3KC.js";import{D as y,E as b,I,c as g,d as o,g as c,o as d,q as _}from"./23KRBWNX.js";import"./DTQTQMKB.js";function W(l){return l?.indexOf("http://")!==-1}function m(l){return W(l)?l.replace(/^http:\/\//,"https://"):l}function M(l,e,i){return i&&i.forEach(a=>{l.allLayers.forEach(t=>{t&&t.url===a.sourceUrl&&(t.url=m(a.proxyUrl),t.portalItem&&t.portalItem.when(()=>{t.portalItem.url=m(a.proxyUrl)}),e.request?.interceptors?.push({urls:a.sourceUrl,before:s=>{s.url&&s.url===a.sourceUrl&&(s.url=m(a.proxyUrl))}}))})}),l}var x=g`@layer{/** @license
|
5
|
-
* Copyright 2025 Esri
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
*/:host{display:block;--calcite-label-margin-bottom: 0;--calcite-block-padding: 0}.map-height{height:calc(100% - 53px)}.height-full{height:100%}.height-49-px{height:49px}.box-shadow{box-shadow:none!important}.visibility-hidden-1{visibility:hidden;height:1px}.hidden{visibility:hidden!important}.display-flex{display:flex}.display-none{display:none}.display-block{display:block}.absolute-right{position:absolute;right:0;left:unset}.esri-ui-inner-container.esri-ui-corner-container{direction:ltr}html[dir=rtl] .absolute-right{left:0;right:unset}.panel-header-override{--calcite-panel-header-content-space: 0px}@media only screen and (max-width: 1024px){.esri-zoom{display:none!important}}}`,f=class extends y{constructor(){super(),this.defaultWebmapId="",this.defaultLayerId="",this.enableHome=!1,this.enableLegend=!1,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableShare=!1,this.enableSingleExpand=!1,this.enableSearch=!1,this.enableBasemap=!1,this.hide=!1,this.zoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-left",this.mobileMapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.stackTools=!1,this.mapToolsOrder=[],this.mobileToolsOrder=[],this.isMapLayout=!1,this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.selectedFeaturesIds=[],this.showOnlyUpdatableLayers=!1,this.isMobile=!1,this.enableSelectionTool=!1,this._translations=$({name:"map-card",blocking:!0}),this._toolInfos=[],this._filterActive=!1,this._enabledLayerIds=[],this._defaultWebmapHonored=!1,this._loadedId="",this._mapDiv=h(),this._mapPicker=h(),this._mapTools=h(),this._mobMapTools=h(),this._mapListExpanded=!1,this._definitionExpression="",this._mapLayerPicker=h(),this._toolbar=h(),this._selectedWebMapId="",this.mapChanged=d(),this.beforeMapChanged=d(),this.toggleFilter=d(),this.clearSelection=d(),this.listenOn(window,"mapInfoChange",this.mapInfoChange),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.enableSingleExpand=!0,this.stackTools=!0,S(window)}static{this.properties={appLayout:1,appProxies:1,defaultWebmapId:1,defaultLayerId:1,enableHome:5,enableLegend:5,enableFloorFilter:5,enableFullscreen:5,enableShare:5,enableSingleExpand:5,enableSearch:5,enableBasemap:5,basemapConfig:0,hide:5,zoomToolsSize:1,mapInfos:0,mapWidgetsIndex:9,mapWidgetsPosition:1,mobileMapWidgetsPosition:1,mapWidgetsSize:1,mapView:0,stackTools:5,theme:1,mapToolsOrder:0,mobileToolsOrder:0,isMapLayout:5,shareIncludeEmbed:5,shareIncludeSocial:5,selectedFeaturesIds:0,selectedLayer:0,zoomToScale:9,showOnlyUpdatableLayers:5,isMobile:5,mapInfo:0,enableSelectionTool:5,_translations:16,_searchConfiguration:16,_webMapInfo:16,_toolInfos:16,_filterActive:16,_mapDivHeight:16,_mapDivWidth:16}}static{this.styles=x}static{this.shadowRootOptions=_}willUpdate(e){e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("selectedLayer")&&this.selectedLayerWatchHandler(),e.has("selectedFeaturesIds")&&this.selectedFeaturesIdsWatchHandler()}appLayoutWatchHandler(){this._updateShareUrl()}async mapInfoWatchHandler(){this._enabledLayerIds=this.mapInfo?.layerOptions?.layers.map(e=>e.id)||[]}async mapViewWatchHandler(){this.mapView&&this._updateShareUrl()}async selectedLayerWatchHandler(){await this.selectedLayer?.when(async()=>{this._definitionExpression=this.selectedLayer?.definitionExpression||""})}async selectedFeaturesIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions()}async resetFilter(){this._filterActive=!1,this._updateShareUrl()}async updateFilterState(e){this._filterActive=e,this._updateShareUrl()}async updateLayer(){this._mapLayerPicker.value&&this._mapLayerPicker.value.updateLayer()}async mapInfoChange(e){this._selectedWebMapId=e.detail.id,await this._loadMap(e.detail)}noLayersFound(){this.selectedLayer=void 0,this.selectedFeaturesIds=[]}layerSelectionChange(){setTimeout(()=>{this._initToolInfos()},50)}async load(){await this._initModules(),this._initToolInfos(),this._mapSizeObserver||(this._mapSizeObserver=new ResizeObserver(()=>{if(this._mapDivWidth&&this._mapDiv.value){let e=this.isMobile?160:110;this._mapDivWidth=this._mapDiv.value.offsetWidth-e}}))}render(){let e=this.hide?"visibility-hidden-1":"",i=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",a="height-full",t=this.isMapLayout?"":"display-none",s=this.isMobile?"":"hidden";return this._validateActiveActions(),o`<calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker()}${this._getHeaderActions()}<div slot=header-actions-end class="display-flex absolute-right">${this.enableShare&&this.isMapLayout?this._getShare("share"):void 0}</div><calcite-progress class=${b(t)} value=0></calcite-progress><div class=${`${e} ${a}`}><div class="height-full" ${r(this._mapDiv)}></div></div>${o`<map-tools .basemapConfig=${this.basemapConfig} class=${`box-shadow ${i}`} .defaultLayerId=${this.defaultLayerId} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableSearch=${this.enableSearch} .enableSingleExpand=${this.enableSingleExpand} .enableSelectionTool=${this.enableSelectionTool} .isMobile=${this.isMobile} .parentComponentHeight=${this._mapDivHeight} .parentComponentWidth=${this._mapDivWidth} .zoomToolsSize=${this.zoomToolsSize} layout=horizontal .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .position=${this.mapWidgetsPosition} .selectedLayer=${this.selectedLayer} .searchConfiguration=${this._searchConfiguration} .stackTools=${this.stackTools} .toolOrder=${this.mapToolsOrder} ${r(this._mapTools)}></map-tools><map-tools class=${`box-shadow ${i} ${s}`} .enableBasemap=${this.enableBasemap} .enabledLayerIds=${this._enabledLayerIds} enable-map-layer-picker enable-map-picker .isMobile=${this.isMobile} .zoomToolsSize=${this.zoomToolsSize} layout=vertical .mapInfos=${this.mapInfos} .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .parentComponentHeight=${this._mapDivHeight} .position=${this.mobileMapWidgetsPosition} .selectedLayer=${this.selectedLayer} .selectedWebMapId=${this._selectedWebMapId} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} .stackTools=${this.stackTools} .toolOrder=${this.mobileToolsOrder} ${r(this._mobMapTools)}></map-tools>`}</calcite-panel>`}updated(){this._mapDivHeight=this._mapDiv.value?.offsetHeight??0,document.onclick=e=>this._handleDocumentClick(e)}loaded(){this._mapDiv.value&&this._mapSizeObserver?.observe(this._mapDiv.value),this._updateShareUrl()}async _initModules(){let[e,i,a,t]=await w(["esri/WebMap","esri/views/MapView","esri/widgets/Home","esri/config"]);this.WebMap=e,this.MapView=i,this.Home=a,this.esriConfig=t}async _loadMap(e){let i=!this._defaultWebmapHonored&&this.defaultWebmapId,a=this.mapInfos?.filter(n=>n.id===this.defaultWebmapId),t=JSON.stringify(e)!==JSON.stringify(this._webMapInfo);this._webMapInfo=i&&a?a[0]:!e?.id&&this.mapInfos.length>0?this.mapInfos[0]:e;let s=this._webMapInfo.id,p=i&&e?.id===this.defaultWebmapId;if(this._loadedId!==s&&!i||p){let n=this.WebMap&&new this.WebMap({portalItem:{id:s}});this.appProxies&&n&&this.esriConfig&&(await n.load(),await M(n,this.esriConfig,this.appProxies)),this.mapView=this.MapView&&new this.MapView({container:this._mapDiv.value,map:n,resizeAlign:"center"}),this._loadedId=s,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapView&&await this.mapView.when(()=>{if(this.mapView){let u=this.isMobile?160:110;this._mapDivWidth=this._mapDiv.value&&this._mapDiv.value.offsetWidth-u,this._mapTools.value&&this.mapView.ui.add(this._mapTools.value,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._mobMapTools.value&&this.mapView.ui.add(this._mobMapTools.value,{position:this.mobileMapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=p?!0:this._defaultWebmapHonored,this.mapChanged.emit({id:s,mapView:this.mapView})}})}else i?(this._defaultWebmapHonored=!0,this._mapPicker.value&&this._mapPicker.value.setMapByID(s)):t&&this.mapView&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:s,mapView:this.mapView}));this._updateShareUrl()}_getMapLayerPicker(){let e=this.isMapLayout?"header-actions-start":"",i=this.mapInfos?.length>1?"":"display-none",a=this.isMapLayout?"height-0":"width-full",t="display-flex",s=this.isMapLayout?"":"display-none";return o`${!this.isMobile&&o`<div slot=${e??c}><map-picker class=${`${i} ${a}`} id=map-picker .isMapLayout=${this.isMapLayout} .mapInfos=${this.mapInfos} .selectedWebMapId=${this._selectedWebMapId} ${r(this._mapPicker)}></map-picker></div>`||""}<div slot=header-actions-start class=${`mapView-header display-flex ${s}`} id=solutions-map-layer-picker-container><div class=${`border-end ${t}`}>${this.mapView&&o`<map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this.selectedLayer?[this.selectedLayer.id]:[]} show-single-layer-as-label show-tables show-tables-disabled type=dropdown ${r(this._mapLayerPicker)}></map-layer-picker>`||""}</div></div>`}_getHeaderActions(){return o`<div slot=header-content><calcite-action-bar class=${b("display-flex")} expand-disabled expanded id=${this._getId("bar")??c} layout=horizontal><calcite-action-group>${this.isMapLayout?this._getActions():void 0}</calcite-action-group></calcite-action-bar></div>`}_getShare(e){return o`<div class="share-action" id=${this._getId(e)??c}>${this.mapView&&o`<instant-apps-social-share class="instant-app-share" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${r(i=>{i&&(this._shareNode=i,this._updateShareUrl())})}></instant-apps-social-share>`||""}${this._getToolTip("bottom",e,this._translations?.share)}</div>`}_updateShareUrl(){let e=this._shareNode?.shareUrl;if(!e)return;let i=new URL(e);this._loadedId?i.searchParams.set("webmap",this._loadedId):i.searchParams.delete("webmap"),this.selectedLayer?.id?i.searchParams.set("layer",this.selectedLayer.id):i.searchParams.delete("layer"),this.selectedFeaturesIds?.length>0?i.searchParams.set("oid",this.selectedFeaturesIds.join(",")):i.searchParams.delete("oid"),this.appLayout&&i.searchParams.set("applayout",this.appLayout),this._shareNode&&(this._shareNode.shareUrl=i.href)}_initToolInfos(){let e=this.selectedFeaturesIds?.length>0;this.selectedFeaturesIds?.length>1;let i=[];i.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this._toggleFilter(),disabled:!1}),i.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e}),i.push({active:!1,icon:"refresh",indicator:!1,label:this._translations.refresh,func:()=>this.selectedLayer?.refresh(),disabled:!1}),i.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this.clearSelection.emit(),disabled:!e}),this._toolInfos=i}_validateActiveActions(){let e=["filter"];this._toolInfos?.forEach(i=>{i&&e.indexOf(i.icon)>-1&&i.icon==="filter"&&(i.indicator=this._filterActive)})}_validateEnabledActions(){let e=this.selectedFeaturesIds?.length>0,i=this.selectedFeaturesIds?.length>1&&this.selectedLayer?.capabilities?.operations?.supportsUpdate,a=["zoom-to-object","pencil","erase"];this._toolInfos?.forEach(t=>{t&&a.indexOf(t.icon)>-1&&(t.disabled=t.icon==="pencil"?!i:!e)})}_handleDocumentClick(e){e.target.tagName!=="MAP-PICKER"&&(this._mapListExpanded=!1,this._mapPicker.value&&this._mapPicker.value.close())}async _zoom(){if(this.selectedLayer&&this.mapView){let e=await v(this.mapView,this.selectedLayer.id);e&&await L(this.selectedFeaturesIds,e,this.mapView,!0,void 0,this.zoomToScale)}}async _toggleFilter(){this.toggleFilter.emit()}_hasFilterExpressions(){let e=[];return this.mapInfo?.filterConfig?.layerExpressions&&this.selectedLayer?.id&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===this.selectedLayer?.id)),e.length>0}_getActions(){return this._toolInfos?.reduce((e,i)=>(i&&e.push(this._getAction(i.active,i.icon,i.indicator,i.label,i.func,i.disabled,i.loading)),e),[])}_getToolTip(e,i,a){return document.getElementById(i)?o`<calcite-tooltip .placement=${e} .referenceElement=${"map-"+i}><span>${a}</span></calcite-tooltip>`:void 0}_getAction(e,i,a,t,s,p,n){let u=this.selectedLayer===void 0?!0:p;return o`<calcite-action .active=${e} appearance=solid .disabled=${u} .icon=${i} .id=${"map-"+i} .indicator=${a} .label=${t} .loading=${n} @click=${s} .text=${t} text-enabled></calcite-action>`}_getId(e){return`solutions-action-${e}`}};I("map-card",f);export{f as MapCard};
|
package/dist/cdn/MVS6QH7E.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{a}from"./EJJPCG36.js";import"./KHYYZCSF.js";import"./QPNW6P3H.js";import"./Y2WO5VQQ.js";import"./YSQPEWEY.js";import"./FRU4NUKP.js";import"./WOGXYHTW.js";import"./DTQTQMKB.js";export{a as buildUiSchema};
|
package/dist/cdn/MWGRZML6.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{a as O}from"./JDLIQP26.js";import{d as _}from"./CUB7E2CZ.js";import{a as l,d as p}from"./WUYXX4RA.js";import"./FRU4NUKP.js";import"./DTQTQMKB.js";function C(e,a){let i=[];return O(e,(t,c)=>(c.split(".").pop()===a&&i.push(t),t)),i.filter(p)}function E(e){return C(e,"scope").map(a=>a.split("/")[2]).filter(p)}function h(e,a){let i=l(e);return i.required&&(i.required=[...i.required].filter(t=>a.includes(t))),i.properties&&Object.keys(i.properties).forEach(t=>{a.indexOf(t)===-1&&delete i.properties[t]}),i.allOf&&(i.allOf=i.allOf.map(t=>h(t,a))),i.if&&(i.if=h(i.if,a)),i.then&&(i.then=h(i.then,a)),i.else&&(i.else=h(i.else,a)),i}function w(e,a){let i=E(a);return e=h(e,i),e}function q(e){return e&&e.split(":")[2]}async function G(e,a,i,t){let c=q(a),r,u,s,m,d;switch(c){case"stat":s=import("./BKEUB7D6.js"),m={"hub:card:stat":()=>import("./F4ZGDGM4.js")}[a],await Promise.all([s,m()]).then(async([f,o])=>{let{MetricSchema:n}=f;r=l(n),u=await o.buildUiSchema(e,i,t),o.buildDefaults&&(d=o.buildDefaults(e,i,t))});break;case"follow":s=import("./XH7TNO6J.js"),m={"hub:card:follow":()=>import("./JTT7WLPJ.js")}[a],await Promise.all([s,m()]).then(([f,o])=>{let{FollowSchema:n}=f;r=l(n),u=o.buildUiSchema(e,i,t)});break;case"eventGallery":s=import("./HUHVTN5N.js"),m=import("./GDVWCARK.js");let[{EventGalleryCardSchema:g},{buildUiSchema:b}]=await Promise.all([s,m]);r=l(g),u=await b(e,i,t);break}return r=w(r,u),Promise.resolve({schema:r,uiSchema:u})}var V=(e,a)=>{var i;let t=l((i=e.properties)===null||i===void 0?void 0:i._slug);if(!t)return e;let{orgUrlKey:c}=a;t.maxLength=_(c);let r=l(e.allOf)||[],{pattern:u}=t;delete t.pattern;let{id:s}=a;r.push({if:{properties:{_slug:{minLength:1}}},then:{properties:{_slug:{pattern:u}}}},{if:{properties:{_slug:{pattern:u}}},then:{properties:{_slug:{isUniqueSlug:{id:s,orgUrlKey:c}}}}});let m=l(e);return m.properties._slug=t,m.allOf=r,m};async function L(e,a,i,t){let c=a.split(":")[1],r,u,s;switch(c){case"site":let{getSiteSchema:m}=await import("./XPLFSIZL.js");r=m(i.id);let d=await{"hub:site:edit":()=>import("./BXWG6ASU.js"),"hub:site:create":()=>import("./DGMABTNK.js"),"hub:site:followers":()=>import("./YZMGJ7SM.js"),"hub:site:discussions":()=>import("./A5OGKGEV.js"),"hub:site:settings":()=>import("./T3AWV5HU.js")}[a]();u=await d.buildUiSchema(e,i,t),d.buildDefaults&&(s=await d.buildDefaults(e,i,t));break;case"discussion":let{DiscussionSchema:g}=await import("./DVCGX7AQ.js");r=l(g);let b=await{"hub:discussion:edit":()=>import("./NXZVUBHX.js"),"hub:discussion:create":()=>import("./SEJNBKC3.js"),"hub:discussion:settings":()=>import("./MPQ4CIM7.js"),"hub:discussion:settings:discussions":()=>import("./ADABT6KF.js")}[a]();u=await b.buildUiSchema(e,i,t),b.buildDefaults&&(s=await b.buildDefaults(e,i,t));break;case"channel":let{ChannelSchema:f}=await import("./RJRURTM3.js");r=l(f);let o=await{"hub:channel:edit":()=>import("./XN5ERJUX.js"),"hub:channel:create":()=>import("./MVS6QH7E.js")}[a]();u=await o.buildUiSchema(e,i,t),o.buildDefaults&&(s=await o.buildDefaults(e,i,t));break;case"project":let{ProjectSchema:n}=await import("./ERUVVBEL.js");r=l(n);let v=await{"hub:project:edit":()=>import("./5V42POES.js"),"hub:project:create":()=>import("./OBH5D5B3.js"),"hub:project:create2":()=>import("./KDBUQPCS.js"),"hub:project:metrics":()=>import("./CKP5NRSZ.js"),"hub:project:settings":()=>import("./DS2RXS3N.js")}[a]();u=await v.buildUiSchema(e,i,t),v.buildDefaults&&(s=await v.buildDefaults(e,i,t));break;case"initiative":let{InitiativeSchema:F}=await import("./SOKSUQE7.js");r=l(F);let S=await{"hub:initiative:edit":()=>import("./KC4DY2HC.js"),"hub:initiative:create":()=>import("./UYNSQSTA.js"),"hub:initiative:create2":()=>import("./5ANAYW5P.js"),"hub:initiative:metrics":()=>import("./F6ZZOQ45.js"),"hub:initiative:associations":()=>import("./6YVXLIWR.js"),"hub:initiative:settings":()=>import("./JK3NLT2O.js")}[a]();u=await S.buildUiSchema(e,i,t),S.buildDefaults&&(s=await S.buildDefaults(e,i,t));break;case"page":let{PageSchema:I}=await import("./XDB2IAAB.js");r=l(I);let D=await{"hub:page:edit":()=>import("./JEXYLSPT.js"),"hub:page:create":()=>import("./JRBPHSAK.js")}[a]();u=await D.buildUiSchema(e,i,t),D.buildDefaults&&(s=await D.buildDefaults(e,i,t));break;case"content":let{ContentSchema:K}=await import("./JHZMQC26.js");r=l(K);let U=await{"hub:content:edit":()=>import("./MCDQUORV.js"),"hub:content:discussions":()=>import("./5BB6ZTVD.js"),"hub:content:settings":()=>import("./SYKOTABZ.js")}[a]();u=await U.buildUiSchema(e,i,t),U.buildDefaults&&(s=await U.buildDefaults(e,i,t));break;case"template":let{TemplateSchema:y}=await import("./YBGWD4DE.js");r=l(y);let k=await{"hub:template:edit":()=>import("./FI7VCDS7.js")}[a]();u=await k.buildUiSchema(e,i,t),k.buildDefaults&&(s=await k.buildDefaults(e,i,t));break;case"group":let{GroupSchema:z}=await import("./2HOKIBIJ.js");r=l(z);let M=await{"hub:group:create:followers":()=>import("./23JUUYFN.js"),"hub:group:create:association":()=>import("./WPA4NXXH.js"),"hub:group:create:view":()=>import("./ABYYFXA3.js"),"hub:group:create:edit":()=>import("./QVAA7UWM.js"),"hub:group:create":()=>import("./CUTLCVEY.js"),"hub:group:edit":()=>import("./PHRFHM2D.js"),"hub:group:settings":()=>import("./4EP3SSVQ.js"),"hub:group:discussions":()=>import("./ZBRMQKPX.js")}[a]();u=await M.buildUiSchema(e,i,t),M.buildDefaults&&(s=await M.buildDefaults(e,i,t));break;case"survey":let{SurveySchema:A}=await import("./3FD4XRIR.js");r=l(A),u=await(await{"hub:survey:edit":()=>import("./NCWTGVLS.js"),"hub:survey:settings":()=>import("./EPT2WH3D.js")}[a]()).buildUiSchema(e,i,t);break;case"event":let B=await{"hub:event:create":()=>import("./2W64V4FL.js"),"hub:event:edit":()=>import("./YN72HJN7.js"),"hub:event:registrants":()=>import("./MLZAIX3K.js")}[a](),H=await{"hub:event:create":()=>import("./H2QIWGB3.js"),"hub:event:edit":()=>import("./RCFGDSWA.js"),"hub:event:registrants":()=>import("./N55W5Z4W.js")}[a]();r=B.buildSchema(),u=await H.buildUiSchema(e,i,t);break;case"initiativeTemplate":let{InitiativeTemplateSchema:J}=await import("./K2N3GFEJ.js");r=l(J);let j=await{"hub:initiativeTemplate:edit":()=>import("./XX372MHT.js")}[a]();u=await j.buildUiSchema(e,i,t),j.buildDefaults&&(s=await j.buildDefaults(e,i,t));break;case"user":let{UserSchema:N}=await import("./SVF5ULXK.js");r=l(N);let P=await{"hub:user:settings":()=>import("./6RLLS3XZ.js")}[a]();u=await P.buildUiSchema(e,i,t),P.buildDefaults&&(s=await P.buildDefaults(e,i,t));break;case"card":let T=await G(e,a,i,t);r=T.schema,u=T.uiSchema,s=T.defaults}return r=w(r,u),r=V(r,i),Promise.resolve({schema:r,uiSchema:u,defaults:s})}async function gi(e,a,i,t){return L(e,a,i,t)}export{gi as getEditorConfig};
|
package/dist/cdn/RCFGDSWA.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{a as d}from"./TM4VLUD7.js";import{a as y}from"./2VPGZ7E2.js";import"./7H4LF6S3.js";import"./3DYJ4FTG.js";import"./WUYXX4RA.js";import"./KI6QHNPI.js";import{a as s,b as p}from"./UBMKB36W.js";import"./U6HIPEIC.js";import"./2I5J5JBB.js";import{a as n}from"./VNMQ4LFX.js";import{a}from"./HFPFPCEQ.js";import"./4FJC45LY.js";import"./XIH6ZMGJ.js";import"./YSQPEWEY.js";import"./FRU4NUKP.js";import{a as l}from"./S7I5NQIT.js";import"./LXCV6LJ6.js";import"./7IJWIQKS.js";import"./WOGXYHTW.js";import"./UTKAQVP4.js";import"./5DNXV7XL.js";import"./YLMFQSC4.js";import"./55EOCAZO.js";import"./QX2LVJEP.js";import"./EZJUU4SD.js";import"./SO2MJYUC.js";import"./NTM7VXP2.js";import"./OVZLS4VM.js";import"./7QH32TZC.js";import{a as t,b as r}from"./PZYR43RF.js";import"./XAABPBEY.js";import"./GD22AZGD.js";import"./7MLUC4ZF.js";import"./45GEUPJR.js";import"./ZMEBOR2G.js";import"./ZQ2HPN3W.js";import"./TXPPQ5K7.js";import"./57F2XN77.js";import"./DTQTQMKB.js";var T=async(e,i,o)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.eventInfo.label`,options:{helperText:{labelKey:`${e}.sections.eventInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...y(e,i.thumbnail,d(i),"event",o.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(i.tags,o.portal.id,o.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await n(e,o)]}]},{type:"Section",labelKey:`${e}.sections.dateTime.label`,elements:[{labelKey:`${e}.fields.allDay.label`,type:"Control",scope:"/properties/isAllDay",options:{control:"hub-field-input-switch"}},{labelKey:`${e}.fields.startDate.label`,scope:"/properties/startDate",type:"Control",options:{control:"hub-field-input-date",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.startDate.requiredError`}]}},{labelKey:`${e}.fields.startTime.label`,scope:"/properties/startTime",type:"Control",rule:{condition:{scope:"/properties/isAllDay",schema:{const:!1}},effect:l.SHOW},options:{control:"hub-field-input-time",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.startTime.requiredError`}]}},{labelKey:`${e}.fields.endDate.label`,scope:"/properties/endDate",type:"Control",options:{control:"hub-field-input-date",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.endDate.requiredError`},{type:"ERROR",keyword:"formatMinimum",icon:!0,labelKey:`${e}.fields.endDate.minDateError`}]}},{labelKey:`${e}.fields.endTime.label`,scope:"/properties/endTime",type:"Control",rule:{condition:{scope:"/properties/isAllDay",schema:{const:!1}},effect:l.SHOW},options:{control:"hub-field-input-time",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.endTime.requiredError`},{type:"ERROR",keyword:"formatExclusiveMinimum",icon:!0,labelKey:`${e}.fields.endTime.minTimeError`}]}},{labelKey:`${e}.fields.timeZone.label`,scope:"/properties/timeZone",type:"Control",options:{control:"hub-field-input-time-zone",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.timeZone.requiredError`}]}}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{labelKey:`${e}.fields.attendanceType.label`,scope:"/properties/attendanceType",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.attendanceType.inPerson.label:translate}}`,`{{${e}.fields.attendanceType.online.label:translate}}`,`{{${e}.fields.attendanceType.both.label:translate}}`],layout:"horizontal"}},{scope:"/properties/location",type:"Control",labelKey:`${e}.fields.location.label`,rule:{condition:{scope:"/properties/attendanceType",schema:{const:"online"}},effect:l.HIDE},options:{control:"hub-field-input-location-picker",enableInvalidGeometryWarning:!0,extent:await s(i.location,o.hubRequestOptions),options:await p(i.id,i.type,i.location,o.portal.name,o.hubRequestOptions),locationNameRequired:!0,messages:[{type:"ERROR",keyword:"if",hidden:!0}],noticeTitleElementAriaLevel:3}},{type:"Section",labelKey:`${e}.sections.inPersonRegistrationCapacity.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.inPersonRegistrationCapacity.helperText`}},rule:{condition:{scope:"/properties/attendanceType",schema:{enum:[t.InPerson,t.Both]}},effect:l.SHOW},elements:[{labelKey:`${e}.fields.inPersonCapacityType.label`,scope:"/properties/inPersonCapacityType",type:"Control",rule:{condition:{scope:"/properties/attendanceType",schema:{enum:[t.InPerson,t.Both]}},effect:l.SHOW},options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.inPersonCapacityType.unlimited.label:translate}}`,`{{${e}.fields.inPersonCapacityType.fixed.label:translate}}`],layout:"horizontal"}},{labelKey:`${e}.fields.inPersonCapacity.label`,scope:"/properties/inPersonCapacity",type:"Control",rule:{condition:{schema:{properties:{attendanceType:{enum:[t.InPerson,t.Both]},inPersonCapacityType:{const:r.Fixed}}}},effect:l.SHOW},options:{control:"hub-field-input-input",type:"number",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.inPersonCapacity.requiredError`},{type:"ERROR",keyword:"minimum",icon:!0,labelKey:`${e}.fields.inPersonCapacity.minimumError`}]}}]},{type:"Section",labelKey:`${e}.sections.onlineRegistrationDetails.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.onlineRegistrationDetails.helperText`}},rule:{condition:{scope:"/properties/attendanceType",schema:{enum:[t.Online,t.Both]}},effect:l.SHOW},elements:[{labelKey:`${e}.fields.onlineUrl.label`,scope:"/properties/onlineUrl",type:"Control",rule:{condition:{scope:"/properties/attendanceType",schema:{enum:[t.Online,t.Both]}},effect:l.SHOW},options:{control:"hub-field-input-input",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.onlineUrl.requiredError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"}]}},{labelKey:`${e}.fields.onlineDetails.label`,scope:"/properties/onlineDetails",type:"Control",rule:{condition:{scope:"/properties/attendanceType",schema:{enum:[t.Online,t.Both]}},effect:l.SHOW},options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.onlineRegistrationCapacity.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.onlineRegistrationCapacity.helperText`}},rule:{condition:{schema:{properties:{attendanceType:{enum:[t.Online,t.Both]}}}},effect:l.SHOW},elements:[{labelKey:`${e}.fields.onlineCapacityType.label`,scope:"/properties/onlineCapacityType",type:"Control",rule:{condition:{scope:"/properties/attendanceType",schema:{enum:[t.Online,t.Both]}},effect:l.SHOW},options:{control:"hub-field-input-tile-select",enum:{i18nScope:`${e}.fields.onlineCapacityType`},labels:[`{{${e}.fields.onlineCapacityType.unlimited.label:translate}}`,`{{${e}.fields.onlineCapacityType.fixed.label:translate}}`],layout:"horizontal"}},{labelKey:`${e}.fields.onlineCapacity.label`,scope:"/properties/onlineCapacity",type:"Control",rule:{condition:{schema:{properties:{attendanceType:{enum:[t.Online,t.Both]},onlineCapacityType:{const:r.Fixed}}}},effect:l.SHOW},options:{control:"hub-field-input-input",type:"number",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.onlineCapacity.requiredError`},{type:"ERROR",keyword:"minimum",icon:!0,labelKey:`${e}.fields.onlineCapacity.minimumError`}]}}]}]}]});export{T as buildUiSchema};
|
package/dist/cdn/RJRURTM3.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{a,b}from"./7IJWIQKS.js";import"./WOGXYHTW.js";import"./DTQTQMKB.js";export{a as ChannelEditorTypes,b as ChannelSchema};
|
package/dist/cdn/SOKSUQE7.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{a,b}from"./GD22AZGD.js";import"./7MLUC4ZF.js";import"./45GEUPJR.js";import"./ZQ2HPN3W.js";import"./TXPPQ5K7.js";import"./57F2XN77.js";import"./DTQTQMKB.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
|
package/dist/cdn/SRCXOI3Y.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{a as h}from"./ALIHQ2MF.js";import{a as Y}from"./UY4MNUVT.js";import{a as R}from"./O7J65UZA.js";import{a as V,d as W,e as H,f as B,g as J,h as G}from"./7SBXAJO4.js";import{c as y,f as E,l as b,m as I}from"./DP4HUTJB.js";import"./GSFDUUIV.js";import"./SXDVITDW.js";import"./ZVLVAUCM.js";import{a as M,c as U,e as C}from"./CUB7E2CZ.js";import"./KHYYZCSF.js";import{a as N,d as F}from"./HUY2NQF2.js";import{a as g}from"./Y2WO5VQQ.js";import{d as j}from"./7H4LF6S3.js";import"./3DYJ4FTG.js";import{a as p,b as A,c as L,e as u}from"./WUYXX4RA.js";import"./KI6QHNPI.js";import"./U6HIPEIC.js";import"./2I5J5JBB.js";import{h as $}from"./4FJC45LY.js";import"./XIH6ZMGJ.js";import"./YSQPEWEY.js";import{a as l}from"./FRU4NUKP.js";import{b as T}from"./TXPPQ5K7.js";import"./DTQTQMKB.js";function X(e,t=!1){let{id:r,properties:i}=e,s=i?.slug;return s?M(t?C(s,r):s):r}var d;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(d||(d={}));var f;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(f||(f={}));function z(e,t){var r;let i=e._slug;delete e._slug;let s=p(e);return s.orgUrlKey=e.orgUrlKey?e.orgUrlKey:t.urlKey,s.extent=(r=e.location)===null||r===void 0?void 0:r.extent,i?s.slug=U(i,s.orgUrlKey):s.slug="",s}var le=1,ue=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],ye=e=>[{orgId:e}],de={item:ue,event:ye};function Q(e){if(l(e,"schemaVersion")===le)return e;{let t=p(e);return t=fe(t),t}}function fe(e){if(l(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},r=l(e,"groups")||[],i=[];Array.isArray(r)&&r.length?i=r:typeof r=="string"&&(i=[r]),i.length&&(t.scopes=Object.entries(t.scopes).reduce((n,o)=>Object.assign(Object.assign({},n),{[o[0]]:Object.assign(Object.assign({},o[1]),{filters:[{predicates:[{group:i}]}]})}),{}));let s=l(e,"orgId");return s&&(t.scopes=Object.entries(t.scopes).reduce((n,o)=>{let a=o[0],c=o[1];return Object.assign(Object.assign({},n),{[a]:Object.assign(Object.assign({},c),{filters:[...c.filters,{operation:"AND",predicates:de[a](s)}]})})},{})),t}}function Z(e,t){let r=Object.assign(Object.assign({},t),e),i=Object.keys(t);return Object.keys(r).reduce((n,o)=>(i.includes(o)||n.push(o),n),[]).forEach(n=>{delete r[n]}),r}function q(e,t){let r;return t.authentication&&(r=t.authentication.token),{self:j(e.id,t),siteRelative:E(e.type,X(e),e.typeKeywords),siteRelativeEntityType:E(e.type),workspaceRelative:Y(e.type,e.id),thumbnail:y(e,t,r)}}var w="Hub Project",ee={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:T.notStarted,tags:[],typeKeywords:[w],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:N},te={item:{type:w,title:"",description:"",snippet:"",tags:[],typeKeywords:[w],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:T.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function re(e,t){return q(e,t)}function v(e,t,r){var i,s;let n;return r.authentication&&(n=r.authentication.token),t=H(e.item,t),t.thumbnailUrl=y(e.item,r,n),t.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(i=e.data.view)===null||i===void 0?void 0:i.featuredImageUrl}),t.catalog=Q(t.catalog||{}),t.features=Z(((s=e.data.settings)===null||s===void 0?void 0:s.features)||{},F),t.links=re(e.item,r),t}function _(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},t,r){let{value:i,valueType:s,dynamicMetric:n}=e,o=R(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:m,statistic:x,serviceUrl:oe,fieldType:ne,sourceLink:D,sourceTitle:O,allowExpressionSet:k,expressionSet:P,legacyWhere:S}=n||{},{entityInfo:ae,metricName:ce}=r||{},pe={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:m,statistic:x,where:S||ge(k?P:[])}:{type:"static-value",value:i,valueType:s},name:ce||t,entityInfo:ae||{id:void 0,name:void 0,type:void 0},id:t};delete o.itemId;let me=Object.assign(Object.assign({},o),{displayType:o.displayType||"stat-card",visibility:o.visibility||f.hidden,metricId:t,fieldType:ne,itemId:c,expressionSet:P,allowExpressionSet:k,statistic:x,sourceLink:e.type==="dynamic"&&D?D:o.sourceLink,sourceTitle:e.type==="dynamic"&&O?O:o.sourceTitle,allowLink:e.type==="dynamic"?o.allowDynamicLink:o.allowLink,type:e.type});return{metric:pe,displayConfig:me}}function ge(e=[]){let t=e.map(r=>{let{field:i,values:s,relationship:n}=r,o=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!s||!s.length||!i||!i.name)return!1;let a;switch(i.type){case"esriFieldTypeString":a=n===d.LIKE?`${i.name} like '%${s[0]}%'`:`(${i.name} IN (${s.map(c=>`'${o(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof s[0]=="string"&&(a=`${i.name} >= timestamp '${o(s[0])} 00:00:00'`),typeof s[1]=="string"&&(a=`${i.name} <= timestamp '${o(s[1])} 23:59:59'`),typeof s[0]=="string"&&typeof s[1]=="string"&&(a=`${i.name} >= timestamp '${o(s[0])} 00:00:00' AND ${i.name} <= timestamp '${o(s[1])} 23:59:59'`);break;default:u(s[0])||(a=`(${i.name}) >= ${s[0]}`),u(s[1])||(a=`(${i.name}) <= ${s[1]}`),!u(s[0])&&!u(s[1])&&(a=`(${i.name}) >= ${s[0]} AND (${i.name}) <= ${s[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(t)}function K(e,t){let r=e.filter(i=>!i.startsWith("status|"));return r.push(`status|${t}`),r}function se(e,t,r){let i=p(e),s=t.id,n=g(i,"metrics",[]),o=n.findIndex(m=>m.id===s),a=g(i,"view.metricDisplays",[]),c=a.findIndex(m=>m.metricId===s);return o>-1?n[o]=t:n.push(t),c>-1?a[c]=r:a.push(r),i.view.metricDisplays=a,i.metrics=n,i}async function Tt(e,t){let r=Object.assign(Object.assign({},ee),e);r.slug||(r.slug=V(r.name,r.orgUrlKey)),await h(r,t),r.typeKeywords=K(r.typeKeywords,r.status),r.typeKeywords=b(r.typeKeywords,r.isDiscussable);let i=new I(_()),s=i.entityToStore(r,p(te));s=await J(s,t);let n=i.storeToEntity(s,{});return n=v(s,n,t),n}function Et(e,t){var r;let i=e._metric;delete e._groups,delete e._thumbnail,(r=e.view)===null||r===void 0||delete r.featuredImage,delete e._metric,delete e._groups;let s=z(e,t);if(i&&Object.keys(i).length){let n=i.metricId||A(L(`${i.cardTitle}_`)),{metric:o,displayConfig:a}=ie(i,n,{metricName:i.cardTitle});s=se(s,o,a)}return s}async function ht(e,t){await h(e,t),e.typeKeywords=K(e.typeKeywords,e.status),e.typeKeywords=b(e.typeKeywords,e.isDiscussable);let r=await B(e.id,t),i=new I(_()),s=i.entityToStore(e,r),n=await G(s,t),o=i.storeToEntity(n,e);return o=v(r,o,t),o}async function bt(e,t){let r=Object.assign(Object.assign({},t),{id:e});await $(r)}export{Tt as createProject,bt as deleteProject,Et as editorToProject,ht as updateProject};
|
package/dist/cdn/WCNH7COY.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250603.1 */
|
4
|
-
import{a as G}from"./UY4MNUVT.js";import{b as K,f as P,m as _,n as U,o as L}from"./DP4HUTJB.js";import"./GSFDUUIV.js";import"./SXDVITDW.js";import"./KHYYZCSF.js";import"./7H4LF6S3.js";import"./3DYJ4FTG.js";import{a as j}from"./WUYXX4RA.js";import"./KI6QHNPI.js";import"./U6HIPEIC.js";import"./2I5J5JBB.js";import{k as S}from"./4FJC45LY.js";import"./XIH6ZMGJ.js";import"./YSQPEWEY.js";import"./FRU4NUKP.js";import{b}from"./OVZLS4VM.js";import{a as c,b as p}from"./PZYR43RF.js";import"./DTQTQMKB.js";function x(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,r)=>[...t,{entityKey:r,storeKey:r}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function g(e){let{token:t,authentication:r}=e;return r?r.getToken(r.portal):Promise.resolve(t)}async function v(e,t){let{url:r,method:a,data:n}=e,{mode:o,cache:i,credentials:d}=t,{headers:m,params:E}=le(e,t),s=`${ce(t.hubApiUrl)}${r}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:o};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:A,status:re}=y;if(y.ok)return y.json();let oe=await y.json();throw new I(A,s,re,JSON.stringify(oe.message))}function ce(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function le(e,t){let r=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&r.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:r,params:a}}var I=class extends Error{constructor(t,r,a,n){super(t),this.status=a,this.url=r,this.error=n}};var k;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(k||(k={}));var M;(function(e){e.asc="asc",e.desc="desc"})(M||(M={}));var H;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(H||(H={}));var B;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(B||(B={}));var V;(function(e){e.csv="csv",e.json="json"})(V||(V={}));var $;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})($||($={}));var Z;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(Z||(Z={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var F;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(F||(F={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var q;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(q||(q={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var W=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var J=(e,t,r)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},r),z=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),Q=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var X=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function Y(e){return e.token=await g(e),W(e.data,e)}async function ee(e){return e.token=await g(e),J(e.eventId,e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e)}function C(e){return[K(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function R(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function ne(e){var t;let r=P("event",C(e));return{self:r,siteRelative:r,siteRelativeEntityType:P("event"),workspaceRelative:G("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:R()}}function ae(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function ie(e){return e.token=await g(e),Q(e.data,e)}async function se(e){return e.token=await g(e),X(e.registrationId,e)}function N(){let e=b();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function O(){let{startDateTime:e,endDateTime:t}=b();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends _{storeToEntity(t,r){var a,n,o,i,d,m,E,D;let s=L(t,r,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((o=t.onlineMeeting)===null||o===void 0)&&o.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:A})=>({entityId:y,entityType:A})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.links=ne(t),s.slug=C(t),s.thumbnailUrl||(s.thumbnailUrl=R()),s.view={showMap:!!t.location},s.location=ae(t),s}entityToStore(t,r){let a=j(t),n=U(a,r,this.mappings),o=a.access;return o==="shared"?n.access=f.PRIVATE:n.access=o.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function w(e,t,r){let a=e.filter(({entityId:o})=>t.includes(o)),n=t.filter(o=>!a.find(({entityId:i})=>i===o));if(n.length){let{results:o}=await S({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:r.authentication}),i=o.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function nt(e,t){let r=Object.assign(Object.assign({},N()),e);r.endDate=r.startDate;let a=new h(x()),n=a.entityToStore(r,O()),o=await w(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:o,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await Y(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function at(e,t){var r,a;let n=Object.assign(Object.assign({},N()),e),o=new h(x()),i=o.entityToStore(n,O()),d=await w(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((r=i.description)===null||r===void 0?void 0:r.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await ee(Object.assign({eventId:i.id,data:m},t)),o.storeToEntity(i,{})}async function it(e,t){await te(Object.assign({eventId:e},t))}function st(e,t){return ie(Object.assign({data:e},t))}async function rt(e,t){await se(Object.assign({registrationId:e},t))}export{nt as createHubEvent,st as createHubEventRegistration,it as deleteHubEvent,rt as deleteHubEventRegistration,at as updateHubEvent};
|