@esri/solutions-components 1.0.0-next.20250513.1 → 1.0.0-next.20250515
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/{NJJU4T5L.js → 23N2TP2U.js} +2 -2
- package/dist/cdn/{MYWEE66N.js → 26F52XJ4.js} +2 -2
- package/dist/cdn/{TASEETLT.js → 2ATGBBXI.js} +1 -1
- package/dist/cdn/{W2BBALTD.js → 2CMKQSTG.js} +2 -2
- package/dist/cdn/{XCC7EMQO.js → 2DZWTY5Z.js} +2 -2
- package/dist/cdn/{D6E3WEYR.js → 2LBDMIHW.js} +2 -2
- package/dist/cdn/{JADH56DH.js → 2WESX4ZJ.js} +2 -2
- package/dist/cdn/{BS6MCVLT.js → 2ZJLJSNL.js} +2 -2
- package/dist/cdn/{J2AOE72O.js → 2ZVA7LIO.js} +2 -2
- package/dist/cdn/{4DOBOTOA.js → 36LZSNLK.js} +2 -2
- package/dist/cdn/{YDZXBSPS.js → 3DXVBCNJ.js} +1 -1
- package/dist/cdn/{DVK7WGWJ.js → 3JBSHSBK.js} +1 -1
- package/dist/cdn/{MQYS3NXM.js → 3KXPYTFO.js} +2 -2
- package/dist/cdn/{QQ5XIIVB.js → 3PD56TNY.js} +2 -2
- package/dist/cdn/{E5J3LXUI.js → 3SJBWYL5.js} +2 -2
- package/dist/cdn/{QMDSZ7FM.js → 3SKPALOD.js} +2 -2
- package/dist/cdn/{U2VNJ7F6.js → 3YUXYDCU.js} +2 -2
- package/dist/cdn/{T2ZDNBN5.js → 45NLVYD2.js} +2 -2
- package/dist/cdn/{P3NUNSXP.js → 4BJTAHRR.js} +2 -2
- package/dist/cdn/{52BCWQEA.js → 4COPBZ75.js} +2 -2
- package/dist/cdn/{2K3MMRXW.js → 4D3MUHNY.js} +2 -2
- package/dist/cdn/{ICNH5LLB.js → 4EC6YUBV.js} +2 -2
- package/dist/cdn/{DUMJIXV7.js → 4ORYJB3C.js} +1 -1
- package/dist/cdn/{KRLBHVWO.js → 4RBMVUFC.js} +2 -2
- package/dist/cdn/{MM4GYF2M.js → 4UYKBU75.js} +2 -2
- package/dist/cdn/{KXKPHNIN.js → 4VMJ6JM3.js} +2 -2
- package/dist/cdn/{DKBSVQN3.js → 52LWU2FN.js} +2 -2
- package/dist/cdn/{67LEPSGW.js → 5BAH4EHG.js} +2 -2
- package/dist/cdn/{CT7VEZDK.js → 5C4NKYOX.js} +2 -2
- package/dist/cdn/{QN47PAEX.js → 5CIZTVOS.js} +2 -2
- package/dist/cdn/{BVZUGCOI.js → 5GCHXF7X.js} +2 -2
- package/dist/cdn/{3QDSK6LK.js → 5HNFMFQV.js} +2 -2
- package/dist/cdn/5J3WMHWV.js +18 -0
- package/dist/cdn/{DHRLL7NQ.js → 5UPTLYW5.js} +2 -2
- package/dist/cdn/5X3QU457.js +4 -0
- package/dist/cdn/{3TUJ4JJ5.js → 5ZXKSVIU.js} +2 -2
- package/dist/cdn/{OOKZNHYN.js → 66ITCR5N.js} +1 -1
- package/dist/cdn/{762BKOZV.js → 66N5MBY3.js} +2 -2
- package/dist/cdn/{UBMZTDIG.js → 67DTXBBR.js} +2 -2
- package/dist/cdn/{F2TP7D3Z.js → 67QQKXDJ.js} +1 -1
- package/dist/cdn/{MWVT5VTF.js → 6KRG356T.js} +2 -2
- package/dist/cdn/{THV6PWO2.js → 6LGFY3R5.js} +2 -2
- package/dist/cdn/{7TZTFXYB.js → 6NABQWZ3.js} +2 -2
- package/dist/cdn/{JAXLR4NG.js → 6O3QCIE5.js} +1 -1
- package/dist/cdn/{7NJWTG5Q.js → 6QTMIHEC.js} +3 -3
- package/dist/cdn/{2JBJHRHU.js → 6RH65IFM.js} +2 -2
- package/dist/cdn/{5O34KXSF.js → 6TE2RGMA.js} +2 -2
- package/dist/cdn/{BTPTRXRA.js → 6WSHOSY7.js} +2 -2
- package/dist/cdn/{U5CODQHI.js → 6X4ZHBBN.js} +2 -2
- package/dist/cdn/{V4OFJDAH.js → 6ZZDD5NV.js} +2 -2
- package/dist/cdn/{5Z7R3XOW.js → 73I5E5OD.js} +1 -1
- package/dist/cdn/{ZOFTKF6J.js → 7ARISA4U.js} +2 -2
- package/dist/cdn/{DNUOMN67.js → 7B33KQDI.js} +1 -1
- package/dist/cdn/{47XOSUMG.js → 7MA75IR2.js} +2 -2
- package/dist/cdn/{JYBRQYQO.js → 7PMC4D54.js} +2 -2
- package/dist/cdn/{LHQQTERG.js → 7RDPQPMM.js} +2 -2
- package/dist/cdn/{AWLITXKE.js → 7VCRIN7I.js} +2 -2
- package/dist/cdn/{DX2VURSL.js → 7XYWGLMM.js} +2 -2
- package/dist/cdn/{NERPCGAI.js → A56OJYPR.js} +2 -2
- package/dist/cdn/{47DEY33Q.js → A664B6AF.js} +2 -2
- package/dist/cdn/{F4S54KIN.js → ACNTTNDQ.js} +2 -2
- package/dist/cdn/{YFTV5FQP.js → AFASQVMK.js} +1 -1
- package/dist/cdn/{36KGPYQP.js → AFTBSFMR.js} +2 -2
- package/dist/cdn/{QIQDU5TD.js → AHXTRFWZ.js} +2 -2
- package/dist/cdn/{SMHCAJLS.js → AINYOBBF.js} +2 -2
- package/dist/cdn/AKPNGNH4.js +18 -0
- package/dist/cdn/{YC5MPBUM.js → ALBMYWYN.js} +2 -2
- package/dist/cdn/{WKEGSNNF.js → ALR3KEZC.js} +1 -1
- package/dist/cdn/{QMZEUTLX.js → ANFSSQQI.js} +1 -1
- package/dist/cdn/{MUVB5RUT.js → APGA46X3.js} +2 -2
- package/dist/cdn/{H2XZ5TPS.js → B3VO4WYY.js} +2 -2
- package/dist/cdn/{ICTNZMXC.js → B6HR6QZA.js} +1 -1
- package/dist/cdn/{VCPH6BNX.js → BCQ2DTD5.js} +2 -2
- package/dist/cdn/{XPNMHAKP.js → BDTYAGLC.js} +2 -2
- package/dist/cdn/{UFXHNUVA.js → BESVHLXM.js} +2 -2
- package/dist/cdn/{VRSOFLBM.js → BIQ6QCQA.js} +2 -2
- package/dist/cdn/{52MJSDMV.js → BVNNJUSD.js} +2 -2
- package/dist/cdn/{7POMEGOT.js → BVVAHFLK.js} +2 -2
- package/dist/cdn/{UFMXTBV5.js → BYDG7JHV.js} +2 -2
- package/dist/cdn/{HFGSRQ53.js → C4JEVLRU.js} +2 -2
- package/dist/cdn/{QCY5Q4DC.js → C7JOBGXP.js} +2 -2
- package/dist/cdn/{TGPT6425.js → CAHUHRK2.js} +2 -2
- package/dist/cdn/{QRQDRKIY.js → CDJ5Q5HV.js} +2 -2
- package/dist/cdn/{4WY233D6.js → CJOKEOHI.js} +2 -2
- package/dist/cdn/{BCWHIGGF.js → CLDZMCWM.js} +2 -2
- package/dist/cdn/{IBDM4N5B.js → CPSI63AR.js} +2 -2
- package/dist/cdn/CVM5BXJ4.js +18 -0
- package/dist/cdn/{OJ6AH4AP.js → D5M5LTVQ.js} +2 -2
- package/dist/cdn/{2DDJ2AFS.js → D6JNWFQ2.js} +2 -2
- package/dist/cdn/{XKATHJUA.js → D6XN6AVD.js} +2 -2
- package/dist/cdn/{4OCR3H4M.js → DHX773QS.js} +2 -2
- package/dist/cdn/{X4VJZ3Q6.js → DMGFOT7S.js} +2 -2
- package/dist/cdn/{RBCCFTZL.js → DOXRXR3O.js} +2 -2
- package/dist/cdn/{F4CZ5GDH.js → E5G5BQVQ.js} +2 -2
- package/dist/cdn/{CCTVQ7J6.js → E6WGNT7N.js} +2 -2
- package/dist/cdn/{CLOM3LFK.js → E7T2LXDX.js} +2 -2
- package/dist/cdn/{ZZV2JD2S.js → ECQOAPT7.js} +2 -2
- package/dist/cdn/{7TXDKHSR.js → EKGGY7NI.js} +2 -2
- package/dist/cdn/{GD5M2FA3.js → EKHAPRLS.js} +1 -1
- package/dist/cdn/{F7TRMIZC.js → ELRVW2N6.js} +2 -2
- package/dist/cdn/{6YQEXU32.js → EUOB6X5W.js} +2 -2
- package/dist/cdn/{UZT7DBX5.js → EXHB6XZK.js} +2 -2
- package/dist/cdn/{SHCFADDZ.js → EYMUMZ5J.js} +1 -1
- package/dist/cdn/{U7PVKGZW.js → FFYSY6PA.js} +2 -2
- package/dist/cdn/{D2LLTH6P.js → FMUXS2KA.js} +2 -2
- package/dist/cdn/{R2H5RSJ2.js → FQCSK64F.js} +1 -1
- package/dist/cdn/{ZBZY2YEI.js → FRXFIEEX.js} +2 -2
- package/dist/cdn/{44RAERGT.js → G3GBPH5Q.js} +2 -2
- package/dist/cdn/{4SXLUGVC.js → G6A7Q5SL.js} +2 -2
- package/dist/cdn/{PCLM5T4X.js → GGOZCZ7Z.js} +2 -2
- package/dist/cdn/{YNV6UHCS.js → GJEWDQ6U.js} +2 -2
- package/dist/cdn/{ZHW2F3VO.js → GKRQRV6C.js} +2 -2
- package/dist/cdn/{4JQ3EMVS.js → GUU4RGPC.js} +2 -2
- package/dist/cdn/{KN3DG5N5.js → GYREL2J2.js} +2 -2
- package/dist/cdn/{65GRV5ZI.js → GZEE77B7.js} +2 -2
- package/dist/cdn/{UCLIEM25.js → H4Q5BGHM.js} +2 -2
- package/dist/cdn/{DPO6UDKC.js → HAU2GXZT.js} +2 -2
- package/dist/cdn/{524EKBTA.js → HDJZEA3B.js} +2 -2
- package/dist/cdn/{OXFWSAQC.js → HDMN7WTP.js} +2 -2
- package/dist/cdn/{Q3SDKCO5.js → HTGIEEBY.js} +1 -1
- package/dist/cdn/{SYY2ZMAO.js → HUJUDNUY.js} +2 -2
- package/dist/cdn/{YCUSWAJ3.js → HYBQ2NDR.js} +2 -2
- package/dist/cdn/{IEEDUG7D.js → I22XI4WM.js} +2 -2
- package/dist/cdn/{NYYKUTZ2.js → I6OZZ7CZ.js} +2 -2
- package/dist/cdn/{6HKXUI6P.js → IBAGTVMI.js} +2 -2
- package/dist/cdn/{NRIFWRSL.js → IGBHGJTS.js} +2 -2
- package/dist/cdn/{FQA6EV3F.js → IMEDBZ5S.js} +2 -2
- package/dist/cdn/{ARKBNGKH.js → INWQFJEZ.js} +2 -2
- package/dist/cdn/{7BAB326V.js → IOLNZ32Y.js} +2 -2
- package/dist/cdn/{FW3OFREF.js → IPWANK7D.js} +1 -1
- package/dist/cdn/{3O5NME66.js → IPZENYML.js} +1 -1
- package/dist/cdn/{GU775YRY.js → IRYFH43C.js} +1 -1
- package/dist/cdn/{QUP6DAHI.js → ITTYPRJK.js} +2 -2
- package/dist/cdn/{2T3QIT6S.js → IURBHH44.js} +2 -2
- package/dist/cdn/{LIY7L5HY.js → IUSP4L2X.js} +2 -2
- package/dist/cdn/{Y7GXXND2.js → IZJ33UKN.js} +2 -2
- package/dist/cdn/{YZSZKD4O.js → JBQAUCJL.js} +1 -1
- package/dist/cdn/{JC5GPNKP.js → JCBAI5O4.js} +2 -2
- package/dist/cdn/{SFM44CFT.js → JDQYBFEM.js} +2 -2
- package/dist/cdn/{HDVUMH4E.js → JGEHFAOB.js} +1 -1
- package/dist/cdn/{LJVAXK4D.js → JN2O5WN7.js} +2 -2
- package/dist/cdn/{PKRP2ZND.js → JNHCEB7N.js} +2 -2
- package/dist/cdn/{QKEAWMVG.js → JRPHX3EY.js} +2 -2
- package/dist/cdn/{SOTTOWSO.js → JYPNJNYX.js} +2 -2
- package/dist/cdn/{AEJKH2N4.js → K2OQTIEU.js} +2 -2
- package/dist/cdn/{4T5G7D3M.js → KCFXKQ6H.js} +2 -2
- package/dist/cdn/{ZBD6UXKS.js → KDPUQPU5.js} +2 -2
- package/dist/cdn/{EMLYWNKX.js → KDSRFQUE.js} +2 -2
- package/dist/cdn/{VBBBC5BC.js → KDUSQQND.js} +2 -2
- package/dist/cdn/{UZURAIZS.js → KJILSIDE.js} +2 -2
- package/dist/cdn/{3TOH77TX.js → KLHIBWFQ.js} +2 -2
- package/dist/cdn/{DQEAYFAF.js → KNUB3FBB.js} +2 -2
- package/dist/cdn/{BMT45QOY.js → KURMZQQZ.js} +2 -2
- package/dist/cdn/{ARTYQZHE.js → KWK42VXY.js} +1 -1
- package/dist/cdn/{3CR3QCZT.js → KY7PRIZF.js} +2 -2
- package/dist/cdn/{5GGF35L5.js → L4VPULLD.js} +2 -2
- package/dist/cdn/{XQXPNULI.js → LAY6C7HB.js} +1 -1
- package/dist/cdn/{743KENLL.js → LJJVDGHM.js} +2 -2
- package/dist/cdn/{BEUU4V47.js → LOCVAN6F.js} +2 -2
- package/dist/cdn/{FQQPKFKR.js → LRRIKCE2.js} +2 -2
- package/dist/cdn/{2BYLFULE.js → LVCQO2K7.js} +2 -2
- package/dist/cdn/{SPDLS67W.js → LXFWUNVP.js} +2 -2
- package/dist/cdn/{W4CDQBTA.js → LZCEQI26.js} +2 -2
- package/dist/cdn/{AVRXN4UR.js → M2KSMSQO.js} +2 -2
- package/dist/cdn/{7ZWQ5RIA.js → M2MSYZSD.js} +2 -2
- package/dist/cdn/{B6EMT5VV.js → M5EG3FQJ.js} +2 -2
- package/dist/cdn/{4I2ETJ5R.js → MCXTS4JF.js} +1 -1
- package/dist/cdn/{VEH7MCF4.js → MDRXFVSB.js} +2 -2
- package/dist/cdn/{BRP2ZFTA.js → MHGZOPPR.js} +2 -2
- package/dist/cdn/{L6ZKECRD.js → MJYGVYSW.js} +2 -2
- package/dist/cdn/{TWXMTERQ.js → MKSHYPRV.js} +2 -2
- package/dist/cdn/{JMWKZJCV.js → MLKIE5VV.js} +2 -2
- package/dist/cdn/{NMQL6RPI.js → MO23ACKS.js} +2 -2
- package/dist/cdn/MPEH57SJ.js +18 -0
- package/dist/cdn/MPO4XMNF.js +4 -0
- package/dist/cdn/{NTLHACLF.js → MSWQT7TY.js} +2 -2
- package/dist/cdn/{CBESNLSQ.js → MYYQDZEE.js} +2 -2
- package/dist/cdn/{3HOUIYSB.js → NDVB7FMN.js} +2 -2
- package/dist/cdn/{LJHTCGCE.js → NJFK7CIV.js} +2 -2
- package/dist/cdn/{PHNR5GQ7.js → NW3DHWQE.js} +2 -2
- package/dist/cdn/{AZKYXX53.js → NXDWBWMV.js} +1 -1
- package/dist/cdn/{DYDTMS5A.js → O2XKTKTD.js} +2 -2
- package/dist/cdn/OI5VAKHF.js +18 -0
- package/dist/cdn/OMQQD3JK.js +18 -0
- package/dist/cdn/{UIY6JQVD.js → OVIPRCEI.js} +2 -2
- package/dist/cdn/{EKWMSR5N.js → OZ4JULVU.js} +2 -2
- package/dist/cdn/{R2JFZODC.js → P5MHBFPN.js} +2 -2
- package/dist/cdn/{FGM64GKL.js → PQI5USQN.js} +1 -1
- package/dist/cdn/{OWP2RUTT.js → PX5FDGEF.js} +2 -2
- package/dist/cdn/{23YKBWAC.js → Q5ZPQS4M.js} +2 -2
- package/dist/cdn/{UNKRKQGZ.js → Q73ZDSA6.js} +2 -2
- package/dist/cdn/QC5PVU4U.js +4 -0
- package/dist/cdn/QC7VP5BM.js +4 -0
- package/dist/cdn/{M5IOEAD5.js → QIBM4MJ3.js} +2 -2
- package/dist/cdn/{WTQ7BZT3.js → QM2IRBAI.js} +2 -2
- package/dist/cdn/{74OAFWYK.js → QOXI7254.js} +2 -2
- package/dist/cdn/{NLJKG426.js → QRYMJOQV.js} +2 -2
- package/dist/cdn/{BWXM7YAS.js → QRYXEJFM.js} +2 -2
- package/dist/cdn/{6CYK6BB7.js → R72NRTHP.js} +1 -1
- package/dist/cdn/{RK2A2EVN.js → REEBLDD6.js} +2 -2
- package/dist/cdn/{N7YKFWHI.js → RMJEHRRB.js} +2 -2
- package/dist/cdn/{HTFV4B6M.js → RMJK52PM.js} +2 -2
- package/dist/cdn/{IA5UUSGD.js → RWH2AWXG.js} +2 -2
- package/dist/cdn/{C3XQ4X7S.js → RX7ZPHMK.js} +2 -2
- package/dist/cdn/{IQBIY4LU.js → RXACRE43.js} +2 -2
- package/dist/cdn/RYXY32II.js +4 -0
- package/dist/cdn/{KDUEXCFJ.js → S4HO7NFA.js} +1 -1
- package/dist/cdn/{M7SGJ27H.js → S4VQAWKF.js} +2 -2
- package/dist/cdn/{XT4NY5DN.js → S5JSVUAJ.js} +2 -2
- package/dist/cdn/{7EV7MOH7.js → S7G5EHDS.js} +2 -2
- package/dist/cdn/SAXYW6EJ.js +18 -0
- package/dist/cdn/{VQRIVYMR.js → SKG3GRSQ.js} +2 -2
- package/dist/cdn/{3MPH6U6A.js → SLZWCSZ3.js} +2 -2
- package/dist/cdn/SPFMAZYY.js +6 -0
- package/dist/cdn/{Y62AFNGV.js → SPWSHOC7.js} +2 -2
- package/dist/cdn/SSYNV2Y3.js +4 -0
- package/dist/cdn/{JO3TGX3S.js → SZRIJQUC.js} +2 -2
- package/dist/cdn/{CXYY2U43.js → T2HZQDNL.js} +2 -2
- package/dist/cdn/{MM73SXGN.js → TBIAFKVV.js} +2 -2
- package/dist/cdn/{Q4LK4Y27.js → TCCP7ZN6.js} +2 -2
- package/dist/cdn/{GMYAKEAU.js → TDR3ILPH.js} +2 -2
- package/dist/cdn/{V7IFHU6D.js → TFCQJ7FF.js} +2 -2
- package/dist/cdn/{YT2UVLBQ.js → THIAJFXL.js} +2 -2
- package/dist/cdn/{3ZAAVHR2.js → TPUGDKF4.js} +2 -2
- package/dist/cdn/{SCZ6RNHE.js → TQVYJ6ES.js} +1 -1
- package/dist/cdn/{KD4M5XSM.js → TRAYLXST.js} +2 -2
- package/dist/cdn/{B7XFXDPR.js → TRUEMLVO.js} +1 -1
- package/dist/cdn/{UVWG3C2B.js → TXTAZE6A.js} +1 -1
- package/dist/cdn/{ANP7AZFG.js → TZEXYZAX.js} +2 -2
- package/dist/cdn/{M2TI7O6U.js → TZMHMBTY.js} +2 -2
- package/dist/cdn/{KAOZRVHT.js → U46DKBO2.js} +2 -2
- package/dist/cdn/{HGJHBG4H.js → ULMB672I.js} +2 -2
- package/dist/cdn/{AFRKXBZK.js → ULXJVPIJ.js} +2 -2
- package/dist/cdn/UMTMI6S7.js +4 -0
- package/dist/cdn/{74BFRFR6.js → UOHT46KU.js} +4 -4
- package/dist/cdn/{2SMSSXCB.js → UT3JTVRA.js} +2 -2
- package/dist/cdn/{XXMZR5G3.js → VTMPWMTZ.js} +1 -1
- package/dist/cdn/{FN3PUVIO.js → VV5INFN4.js} +2 -2
- package/dist/cdn/{P5SS2UTJ.js → VXLTNBGZ.js} +2 -2
- package/dist/cdn/{TGKBXQFJ.js → VXTN5F7G.js} +1 -1
- package/dist/cdn/{PFQ3QFCX.js → VYCWGWM7.js} +2 -2
- package/dist/cdn/{PW2VRRCC.js → W4SML3LZ.js} +2 -2
- package/dist/cdn/W6FC4UZF.js +4 -0
- package/dist/cdn/{7QIW3X3J.js → WFJLELHX.js} +2 -2
- package/dist/cdn/{HQTPWCRI.js → WGQ2QEU5.js} +2 -2
- package/dist/cdn/{C5KZI572.js → WJFW6D7C.js} +2 -2
- package/dist/cdn/{BK4S3RXL.js → WN6PFLPE.js} +2 -2
- package/dist/cdn/{V66DC2RZ.js → X5CZLO7L.js} +4 -4
- package/dist/cdn/{RKMNK4LY.js → X5G6AZM2.js} +2 -2
- package/dist/cdn/{XQ3FJCBS.js → X5V4ZBM3.js} +2 -2
- package/dist/cdn/{VSY4FDGY.js → X6GM67UB.js} +2 -2
- package/dist/cdn/{3SIKQBUD.js → XBG2C2N3.js} +2 -2
- package/dist/cdn/{2VM36EOG.js → XHYEN7R2.js} +2 -2
- package/dist/cdn/{66TACLFN.js → XN7HDVXU.js} +2 -2
- package/dist/cdn/{QKA6L5H2.js → XPIXEKGB.js} +2 -2
- package/dist/cdn/{JQFYSHOL.js → XPQFKO6A.js} +2 -2
- package/dist/cdn/{YZDPVYVB.js → XQZA5YI6.js} +2 -2
- package/dist/cdn/{KBP3WSLN.js → XZQYHWXJ.js} +2 -2
- package/dist/cdn/{ELHHO2HG.js → Y6ALXXYW.js} +1 -1
- package/dist/cdn/YKFW75K5.js +18 -0
- package/dist/cdn/{246GABX4.js → YLZQJENK.js} +2 -2
- package/dist/cdn/{DOSGDH3U.js → YM3WJMVG.js} +2 -2
- package/dist/cdn/YX3NA2YO.js +4 -0
- package/dist/cdn/{RWUIYZW7.js → Z2PMCOOH.js} +2 -2
- package/dist/cdn/{KJUPNH26.js → Z6DAH3AG.js} +1 -1
- package/dist/cdn/{IXYPSCHA.js → Z77MUEC6.js} +2 -2
- package/dist/cdn/{6JLMDDJ5.js → ZFWVJDR7.js} +2 -2
- package/dist/cdn/{IFS2FCRW.js → ZN4WY6QD.js} +2 -2
- package/dist/cdn/{BMFQADY6.js → ZNQADXNA.js} +2 -2
- package/dist/cdn/{Q7ODV6KG.js → ZPLSIWIH.js} +2 -2
- package/dist/cdn/{L3CECNF2.js → ZS4B6BPM.js} +1 -1
- package/dist/cdn/{MCBLASJ3.js → ZVR66H4T.js} +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/feature-list/t9n/messages.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/layer-list/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/appConfig.json +1 -0
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/common.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/{cdn/ZHA5K55V.js → chunks/userSessionContext.js} +9 -3
- 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 +1 -1
- package/dist/components/create-feature/customElement.d.ts +27 -5
- package/dist/components/create-feature/customElement.js +90 -48
- package/dist/components/create-feature/index.d.ts +1 -0
- package/dist/components/create-feature/index.js +1 -0
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.d.ts +13 -1
- package/dist/components/crowdsource-reporter/customElement.js +142 -97
- 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 +11 -8
- 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 +11 -8
- package/dist/components/layer-table/customElement.d.ts +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +17 -17
- 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 +1 -1
- 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 +1 -1
- 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.d.ts +0 -6
- package/dist/components/selection-tool/customElement.js +14 -18
- 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 +6 -6
- 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.d.ts +44 -0
- package/dist/components/solutions-all-panel/customElement.js +433 -17
- package/dist/components/solutions-all-panel/index.d.ts +2 -0
- package/dist/components/solutions-all-panel/index.js +2 -0
- package/dist/components/solutions-all-shell/assets/appConfig.json.d.ts +42 -0
- package/dist/components/solutions-all-shell/customElement.d.ts +16 -0
- package/dist/components/solutions-all-shell/customElement.js +63 -17
- package/dist/components/solutions-all-shell/index.d.ts +9 -0
- package/dist/components/solutions-all-shell/index.js +9 -0
- 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 +571 -43
- package/dist/docs/docs.json +449 -37
- package/dist/docs/vscode.html-custom-data.json +111 -11
- package/dist/docs/web-types.json +246 -33
- package/dist/index.d.ts +31 -2
- package/dist/index.js +1 -1
- package/dist/loader.js +6 -6
- package/dist/types/lumina.d.ts +8 -5
- package/dist/types/preact.d.ts +8 -5
- package/dist/types/react.d.ts +8 -5
- package/dist/types/stencil.d.ts +8 -5
- package/dist/utils/CardsFetcher.d.ts +125 -0
- package/dist/utils/cardsHelpers.d.ts +146 -0
- package/dist/utils/helpers.d.ts +161 -0
- package/dist/utils/interfaces.d.ts +59 -0
- package/dist/utils/userSessionContext.d.ts +5 -0
- package/package.json +2 -1
- package/dist/cdn/4AGFHRFX.js +0 -18
- package/dist/cdn/4IU5MAMG.js +0 -4
- package/dist/cdn/C3QQO3JT.js +0 -18
- package/dist/cdn/DADLOUNZ.js +0 -18
- package/dist/cdn/DJLABPFC.js +0 -18
- package/dist/cdn/DXOLFQBJ.js +0 -4
- package/dist/cdn/EQ7BO6C2.js +0 -4
- package/dist/cdn/JKV6HJNN.js +0 -18
- package/dist/cdn/KAP76DTH.js +0 -4
- package/dist/cdn/LYF2DSS7.js +0 -4
- package/dist/cdn/M2IPXBJW.js +0 -18
- package/dist/cdn/NUCM6ABX.js +0 -6
- package/dist/cdn/PWU7JUQ7.js +0 -4
- package/dist/cdn/TVA5RLDT.js +0 -18
- package/dist/cdn/XFRJGRQ2.js +0 -4
- package/dist/cdn/ZAFJT72F.js +0 -4
- package/dist/cdn/assets/selection-tool/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/selection-tool/t9n/messages.json +0 -1
@@ -0,0 +1,161 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2025 Esri
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import * as common from "@esri/solution-common";
|
18
|
+
import * as restTypes from "@esri/arcgis-rest-types";
|
19
|
+
export type TEnvironments = "dev" | "qa" | "prod";
|
20
|
+
export interface ICacheBatch<T> {
|
21
|
+
cards: T[];
|
22
|
+
paging: restTypes.IPagedResponse;
|
23
|
+
}
|
24
|
+
export interface ISortableItem {
|
25
|
+
createdMs: number;
|
26
|
+
numViews: number;
|
27
|
+
title: string;
|
28
|
+
[key: string]: any;
|
29
|
+
}
|
30
|
+
export interface ISpatialReference {
|
31
|
+
label: string;
|
32
|
+
wkid: number;
|
33
|
+
defaultExtent: string;
|
34
|
+
}
|
35
|
+
export interface IURLParamPair {
|
36
|
+
"k": string;
|
37
|
+
"v": string;
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* Generates a URL search string from a set of key/value pairs.
|
41
|
+
*
|
42
|
+
* @param paramPairs Key/value pairs to add to search string
|
43
|
+
* @returns URL search string beginning with "?"; empty string if paramPairs is empty
|
44
|
+
*/
|
45
|
+
export declare function addParams(paramPairs: IURLParamPair[]): string;
|
46
|
+
/**
|
47
|
+
* Indicates if Velocity is available.
|
48
|
+
*
|
49
|
+
* @param userSession Authentication
|
50
|
+
* @returns Promise resolving to true if Velocity is available
|
51
|
+
*/
|
52
|
+
export declare function checkVelocitySupport(userSession: common.UserSession | undefined): Promise<boolean>;
|
53
|
+
/**
|
54
|
+
* Trims and packages content into the HTML for a single div.
|
55
|
+
*
|
56
|
+
* @param content A string of HTML to be packaged into a div HTML
|
57
|
+
* @returns Packaged content HTML if not null, undefined, or empty; "" otherwise
|
58
|
+
*/
|
59
|
+
export declare function createDivHtml(content: string | null | undefined): string;
|
60
|
+
/**
|
61
|
+
* Creates the parameters part of a URL.
|
62
|
+
*
|
63
|
+
* @param paramPairs A list of objects that each contain the name of the key and the value of the key; each
|
64
|
+
* key/value pair is added to the parameters string in order
|
65
|
+
* @returns Parameters part of a URL, preceded by "?"
|
66
|
+
*/
|
67
|
+
export declare function createUrlParams(paramPairs: IURLParamPair[]): string;
|
68
|
+
/**
|
69
|
+
* Constructs a URL to a thumbnail based on various inputs.
|
70
|
+
*
|
71
|
+
* @param solutionId Id of item that has thumbnail
|
72
|
+
* @param thumbnailFileName Filename of thumbnail
|
73
|
+
* @param fallBackUrl URL to use if thumbnailFileName is omitted
|
74
|
+
* @param portalUrl URL of portal, e.g., "https://www.arcgis.com"
|
75
|
+
* @returns The constructed URL
|
76
|
+
*/
|
77
|
+
export declare function generateThumbnailUrl(solutionId: string, thumbnailFileName: string, fallBackUrl: string, portalUrl: string): string;
|
78
|
+
/**
|
79
|
+
* Gets the portal to use for an anonymous user session.
|
80
|
+
*
|
81
|
+
* @param authPortalUrl The PortalUrl from the authentication, if available
|
82
|
+
* @returns Portal URL to use for the session
|
83
|
+
*/
|
84
|
+
export declare function getAnonymousPortalUrl(authPortalUrl?: string): string;
|
85
|
+
/**
|
86
|
+
* Returns the default extent for the spatial reference matching the supplied wkid in a set of spatial references;
|
87
|
+
* in the case of no matches, returns the supplied default extent.
|
88
|
+
*
|
89
|
+
* @param wkid Spatial reference WKID to look up for its default extent
|
90
|
+
* @param srs List of spatial references
|
91
|
+
* @param defaultExtent Fallback extent
|
92
|
+
* @returns Extent as a string
|
93
|
+
*/
|
94
|
+
export declare function getDefaultExtent(wkid: number, srs: ISpatialReference[], defaultExtent: string): string;
|
95
|
+
/**
|
96
|
+
* Check the current portal environment
|
97
|
+
*
|
98
|
+
* @param docHost The hostname of the current page
|
99
|
+
* @param authHost The hostname from the authentication, if available
|
100
|
+
* @returns Flag indicating the type of telemetry environment
|
101
|
+
*/
|
102
|
+
export declare function getEnvironment(docHost: string, authHost?: string): TEnvironments;
|
103
|
+
/**
|
104
|
+
* Formats a supplied timestamp (or the current time) using a supplied locale.
|
105
|
+
*
|
106
|
+
* @param timestamp The number of millisecond since midnight January 1, 1970 UTC
|
107
|
+
* @param locale The locale to use
|
108
|
+
* @return Date string using the "long date" format, e.g., for "fr" (d MMMM y): "20 mai 2020"
|
109
|
+
*/
|
110
|
+
export declare function getLocaleLongDateString(timestamp: number, locale?: string): string;
|
111
|
+
/**
|
112
|
+
* Gets a translation.
|
113
|
+
*
|
114
|
+
* @param translationsObj JSON object containing translation hierarchy
|
115
|
+
* @param translationKeywordPath Path into translationsObj for desired string, e.g., if translationsObj is
|
116
|
+
* { "buttons": { "retry": "Retry" } }, then one can get the Retry button's text using translationKeywordPath
|
117
|
+
* "buttons.retry"
|
118
|
+
* @param replacementsObj Object containing replacements for retrieved string. E.g., if translationsObj is
|
119
|
+
* { "hello": "Hello, ${name}" } and replacementsObj is { "name": "Solutions" }, the returned string will be
|
120
|
+
* "Hello, Solutions"
|
121
|
+
* @return translation or "???" if `translationKeywordPath` doesn't correspond to a string in `translationsObj`
|
122
|
+
*/
|
123
|
+
export declare function getTranslation(translationsObj: common.IStringValuePair, translationKeywordPath: string, replacementsObj?: common.IStringValuePair): string;
|
124
|
+
/**
|
125
|
+
* Finds a keyword that begins with a specified prefix and returns the text in that keyword that follows the prefix.
|
126
|
+
*
|
127
|
+
* @param keywords List of keywords to examine
|
128
|
+
* @param prefix Required prefix
|
129
|
+
* @returns Part of matched keyword following prefix, or "" if keyword prefix is not found; returns first match found
|
130
|
+
*/
|
131
|
+
export declare function getTypeKeywordProp(keywords: string[], prefix: string): string;
|
132
|
+
/**
|
133
|
+
* Determines if app is in testing mode based on presence of "test" in URL parameters
|
134
|
+
*
|
135
|
+
* @param search The page's document.location.search
|
136
|
+
* @return True if "test" parameter is present
|
137
|
+
*/
|
138
|
+
export declare function inTestingMode(search: string): boolean;
|
139
|
+
/**
|
140
|
+
* Set translatable portions of global nav's account menu.
|
141
|
+
*
|
142
|
+
* @param globalNavConfig Global nav configuration structure
|
143
|
+
* @param translations Translations for global nav, following same structure as configuration
|
144
|
+
* @return Updated globalNavConfig, which is also modified in place
|
145
|
+
*/
|
146
|
+
export declare function mergeTranslationsIntoGlobalNavAccountMenu(globalNavConfig: any, translations: any): any;
|
147
|
+
/**
|
148
|
+
* Set translatable portions of global nav's Solutions menu.
|
149
|
+
*
|
150
|
+
* @param globalNavConfig Global nav configuration structure
|
151
|
+
* @param translations Translations for global nav, following same structure as configuration
|
152
|
+
* @return Updated globalNavConfig, which is also modified in place
|
153
|
+
*/
|
154
|
+
export declare function mergeTranslationsIntoGlobalNavSolutionsMenu(globalNavConfig: any, translations: any): any;
|
155
|
+
/**
|
156
|
+
* Performs shallow merge of two objects
|
157
|
+
*
|
158
|
+
* @param a
|
159
|
+
* @param b
|
160
|
+
*/
|
161
|
+
export declare function _merge(a: any, b: any): any;
|
@@ -510,3 +510,62 @@ export interface ISolutionTypeHover {
|
|
510
510
|
entering: boolean;
|
511
511
|
}
|
512
512
|
export type ChipType = 'updated' | 'deployed' | 'none';
|
513
|
+
export type SortType = "relevance" | "title" | "popularity" | "new" | "updated" | "suggested";
|
514
|
+
export type FilterType = "type" | "industry" | "domain";
|
515
|
+
export declare enum EIndustry {
|
516
|
+
aec = "Architecture, Engineering, and Construction (AEC)",
|
517
|
+
airportPortRail = "Airports, Ports, and Rails",
|
518
|
+
business = "Business",
|
519
|
+
conservation = "Conservation",
|
520
|
+
defense = "Defense",
|
521
|
+
facilities = "Facilities",
|
522
|
+
pipeline = "Pipeline",
|
523
|
+
publicSafety = "Public Safety",
|
524
|
+
renewables = "Renewables",
|
525
|
+
stateAndLocalGovernment = "State and Local Government",
|
526
|
+
utilities = "Utilities"
|
527
|
+
}
|
528
|
+
export declare enum EDomain {
|
529
|
+
airport = "Airports",
|
530
|
+
agriculture = "Agriculture",
|
531
|
+
assessmentAndTaxation = "Assessment and Taxation",
|
532
|
+
districtEnergy = "District Energy",
|
533
|
+
elections = "Elections",
|
534
|
+
electric = "Electric",
|
535
|
+
emergencyManagement = "Emergency Management",
|
536
|
+
environmentAndNaturalResources = "Environment and Natural Resources",
|
537
|
+
fireService = "Fire Service",
|
538
|
+
fishAndWildlife = "Fish and Wildlife",
|
539
|
+
gas = "Gas",
|
540
|
+
healthAndHumanServices = "Health and Human Services",
|
541
|
+
lawEnforcement = "Law Enforcement",
|
542
|
+
naturalResources = "Natural Resources",
|
543
|
+
parks = "Parks",
|
544
|
+
planningAndDevelopment = "Planning and Development",
|
545
|
+
protectedAreas = "Protected Areas",
|
546
|
+
publicWorks = "Public Works",
|
547
|
+
sewer = "Sewer",
|
548
|
+
stormwater = "Stormwater",
|
549
|
+
telecommunications = "Telecommunications",
|
550
|
+
transportation = "Transportation",
|
551
|
+
water = "Water Distribution"
|
552
|
+
}
|
553
|
+
export declare enum EType {
|
554
|
+
new = "New Release",
|
555
|
+
suggested = "Suggested"
|
556
|
+
}
|
557
|
+
export interface IFilterOption {
|
558
|
+
type: FilterType;
|
559
|
+
displayValue: string;
|
560
|
+
value: EIndustry | EDomain | EType;
|
561
|
+
}
|
562
|
+
export interface ISearchOption {
|
563
|
+
searchTerm: string;
|
564
|
+
}
|
565
|
+
export interface ISolutionDetailsCard {
|
566
|
+
chip: ChipType;
|
567
|
+
description: string;
|
568
|
+
heading: string;
|
569
|
+
itemId: string;
|
570
|
+
thumbnail: string;
|
571
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@esri/solutions-components",
|
3
|
-
"version": "1.0.0-next.
|
3
|
+
"version": "1.0.0-next.20250515",
|
4
4
|
"description": "Web Components for Esri's Solutions Applications",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.js",
|
@@ -87,6 +87,7 @@
|
|
87
87
|
"@arcgis/lumina": ">=4.33.0-next <4.34.0",
|
88
88
|
"@arcgis/map-config-components": ">=4.33.0-next <4.34.0",
|
89
89
|
"@esri/arcgis-html-sanitizer": "^4.1.0",
|
90
|
+
"@esri/arcgis-rest-types": "^3.7.0",
|
90
91
|
"@esri/solution-common": "^6.2.0-alpha.0",
|
91
92
|
"jspdf": "^3.0.1"
|
92
93
|
},
|
package/dist/cdn/4AGFHRFX.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.20250513.1 */
|
4
|
-
import{a as S}from"./QQ5XIIVB.js";import"./74BFRFR6.js";import"./V66DC2RZ.js";import"./2DDJ2AFS.js";import"./KJUPNH26.js";import"./BTPTRXRA.js";import"./ARTYQZHE.js";import"./Q3SDKCO5.js";import"./JAXLR4NG.js";import{c as p,d as u,g as v}from"./2VM36EOG.js";import"./GD5M2FA3.js";import"./TASEETLT.js";import{a as d,b as c}from"./B6EMT5VV.js";import{b}from"./4I2ETJ5R.js";import{a as F}from"./66TACLFN.js";import{B as L,c as f,d as l,f as m,n as y,q as _,w,x,y as I}from"./NUCM6ABX.js";import"./AZKYXX53.js";var $=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}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500;white-space:pre-line}.feature-list-popup-title-small{font-size:small;white-space:pre-line}.feature-list-popup-title-small-ellipsis{font-size:small;white-space:nowrap!important;text-overflow:ellipsis;overflow:hidden}.popup-title{padding:0 5px;word-break:break-word}.profile-img{margin:0 5px;min-width:32px}.like-container{display:flex;align-items:center;gap:5px;color:gray!important;font-style:italic}.feature-symbol{padding:0 3px;min-width:30px;display:flex;justify-content:center}.search{padding:10px;background-color:var(--calcite-color-foreground-1)!important;border-block-end:1px solid var(--calcite-color-border-3)}}`,g=class extends w{constructor(){super(...arguments),this.selectedLayerId="",this.noFeaturesFoundMsg="",this.pageSize=100,this.highlightOnMap=!1,this.highlightOnHover=!1,this.textSize="large",this.showInitialLoading=!0,this.showErrorWhenNoFeatures=!0,this.showUserImageInList=!1,this.showFeatureSymbol=!1,this.applyLayerViewFilter=!1,this.showFullTitle=!0,this.filterByMapExtent=!1,this._featureItems=[],this._featuresCount=0,this._isLoading=!1,this._searchPlaceHolder="",this._fullTextSearchInfo=[],this._translations=F({name:"feature-list",blocking:!0}),this._pagination=d(),this._calciteList=d(),this._validFieldTypes=["small-integer","integer","big-integer","single","long"],this._abbreviatedLikeCount="",this._likeFieldAvailable=!1,this._searchExpression="",this.featureSelect=y()}static{this.properties={selectedLayerId:1,mapView:0,noFeaturesFoundMsg:1,pageSize:9,highlightOnMap:5,highlightOnHover:5,sortingInfo:0,whereClause:1,textSize:1,showInitialLoading:5,showErrorWhenNoFeatures:5,showUserImageInList:5,showFeatureSymbol:5,applyLayerViewFilter:5,reportingOptions:0,showFullTitle:5,filterByMapExtent:5,_featureItems:16,_featuresCount:16,_isLoading:16,_searchPlaceHolder:16,_fullTextSearchInfo:16,_translations:16}}static{this.styles=$}static{this.shadowRootOptions=_}willUpdate(e){e.has("selectedLayerId")&&this.selectedLayerWatchHandler(),e.has("sortingInfo")&&this.sortingInfoWatchHandler(),e.has("whereClause")&&this.whereClauseHandler(),e.has("filterByMapExtent")&&(this.hasUpdated||this.filterByMapExtent!==!1)&&this.filterByMapExtentHandler(this.filterByMapExtent)}async selectedLayerWatchHandler(){this._selectedLayer=this.mapView&&await u(this.mapView,this.selectedLayerId),await this.initializeFeatureItems()}async sortingInfoWatchHandler(){await this.initializeFeatureItems()}async whereClauseHandler(){await this.initializeFeatureItems()}async filterByMapExtentHandler(e){e?this.initializeMapExtentFilter():this._filterByMapExtentHandle&&this._filterByMapExtentHandle.remove()}async refresh(e){if(e&&this._pagination.value){let t={target:{startItem:this._pagination.value.startItem}};await this.pageChanged(t)}else this._searchExpression?await this._searchFullText():await this.initializeFeatureItems()}async load(){await this.initModules(),this._isLoading=!!this.showInitialLoading,this._popupUtils=new S,this.mapView&&this.selectedLayerId&&(this._selectedLayer=await u(this.mapView,this.selectedLayerId),this._getFullTextSearchInfo()),this.filterByMapExtent&&this.initializeMapExtentFilter()}async loaded(){await this.initializeFeatureItems()}render(){let e=this._canShowFullTextSearch();return l`<calcite-panel>${e&&l`<calcite-input class=search clearable icon=search @calciteInputChange=${this._searchTextChanged} .placeholder=${this._searchPlaceHolder} title type=search></calcite-input>`||""}${this._isLoading&&l`<calcite-loader label scale=m></calcite-loader>`||""}${this.showErrorWhenNoFeatures&&this._featureItems.length===0&&!this._isLoading&&l`<calcite-notice class="error-msg" icon=feature-details kind=info open><div slot=message>${this.filterByMapExtent?this._translations.featureErrorMsgInCurrentMapView:this.noFeaturesFoundMsg?this.noFeaturesFoundMsg:this._translations.featureErrorMsg}</div></calcite-notice>`||""}<calcite-list class=${x(this.textSize==="small"&&!this.showFullTitle?"overflow-hidden":"")} label selection-appearance=border selection-mode=none ${c(this._calciteList)}>${!this._isLoading&&this._featureItems.length>0&&this._featureItems||""}</calcite-list>${this.pageSize&&this._featuresCount>this.pageSize&&l`<div class="width-full" slot=footer><calcite-pagination class="pagination" @calcitePaginationChange=${this.pageChanged} .pageSize=${this.pageSize} start-item=1 .totalItems=${this._featuresCount} ${c(this._pagination)}></calcite-pagination></div>`||""}</calcite-panel>`}async initModules(){let[e,t,i,s]=await b(["esri/Color","esri/config","esri/symbols/support/symbolUtils","esri/core/reactiveUtils"]);this.Color=e,this.esriConfig=t,this.symbolUtils=i,this.reactiveUtils=s}async getWhereCondition(){let e="1=1";if(this.whereClause&&(e=this.whereClause),this._selectedLayer?.definitionExpression&&(e=e+" AND "+this._selectedLayer.definitionExpression),this.applyLayerViewFilter){let t=this.mapView&&await p(this.mapView,this.selectedLayerId);t?.filter?.where&&(e=e+" AND "+t.filter.where)}return e}async initializeFeatureItems(){if(this._selectedLayer){this._pagination.value?.goTo("start"),this._isLoading=!!this.showInitialLoading,this._featureItems=await this.queryPage(0);let e={where:await this.getWhereCondition(),geometry:this.filterByMapExtent?this.mapView?.extent:null};this._featuresCount=await this._selectedLayer.queryFeatureCount(e),this._isLoading=!1}}initializeMapExtentFilter(){this._filterByMapExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,()=>{this.initializeFeatureItems()},{initial:!0})}async pageChanged(e){this._isLoading=!0,this._highlightHandle&&(this._highlightHandle.remove(),this._highlightHandle=void 0);let t=e.target.startItem-1;this._featureItems=await this.queryPage(t),this._isLoading=!1}_canShowFullTextSearch(){return this._selectedLayer?.capabilities?.query?.supportsFullTextSearch&&this._selectedLayer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._selectedLayer?.capabilities?.query?.supportsFullTextSearch){let e=this._selectedLayer.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._selectedLayer?.getField(s.trim());i.push(a?.alias||"")}),this._searchPlaceHolder=this._translations.searchPlaceholder?this._translations.searchPlaceholder.replace("{{fields}}",i.join(", ")):"",this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),await this._searchFullText()}async _searchFullText(){this._searchExpression&&this._clearSearchDefinitionExpression();let e=[];if(this._fullTextSearchInfo&&this._fullTextSearchInfo[0].searchTerm){let t=this._selectedLayer?.createQuery();t&&(t.fullText=this._fullTextSearchInfo,e=await this._selectedLayer?.queryObjectIds(t),await this._updateSearchDefinitionExpression(e?.length?e:[-1]))}await this.initializeFeatureItems()}async _updateSearchDefinitionExpression(e){if(this._selectedLayer){let t=this._selectedLayer.definitionExpression;if(e?.length){let i=`objectId in(${e})`;this._selectedLayer.definitionExpression=this._searchExpression&&t&&t?.indexOf(this._searchExpression)>-1?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}}_clearSearchDefinitionExpression(){if(this._selectedLayer){let e=this._selectedLayer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._selectedLayer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._selectedLayer.definitionExpression=e.replace(this._searchExpression,""))}this._searchExpression=""}async featureClicked(e,t){if(this.clearHighlights(),this.highlightOnMap){let i=Number(e.target.value),s=this.mapView&&await p(this.mapView,this.selectedLayerId);this._highlightHandle=s&&this.mapView?await v([i],s,this.mapView,!0):void 0}await this.emitSelectedFeature(t)}async emitSelectedFeature(e){let t=e.layer,i=t.createQuery();i.returnGeometry=!0;let s=Number(e.getObjectId());if(!Number.isNaN(s)&&i){i.objectIds=[s];let a=await t.queryFeatures(i);this.featureSelect.emit(a.features[0])}}async onFeatureHover(e){if(this.clearHighlights(),this.highlightOnHover){let t=Number(e.getObjectId()),i=this.mapView&&await p(this.mapView,this.selectedLayerId);i&&(this._highlights&&(i.highlights=JSON.parse(this._highlights)),this.Color&&(i.highlightOptions={color:new this.Color("#FFFF00")}),this._highlights=JSON.stringify(i.highlights),this._highlightHandle=i.highlight([t]))}}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}async queryPage(e){let t=this._selectedLayer;if(t){let i=this.sortingInfo?.field?this.sortingInfo.field:t.objectIdField,s=this.sortingInfo?.order?this.sortingInfo.order:"desc",a=await this.getWhereCondition(),r={start:e,num:this.pageSize,outFields:["*"],returnGeometry:!0,where:a,outSpatialReference:this.mapView?.spatialReference.toJSON(),geometry:this.filterByMapExtent?this.mapView?.extent:null};i&&s&&(r.orderByFields=[i.toString()+" "+s]);let n=await t.queryFeatures(r);return await this.createFeatureItem(n)}else return}async createFeatureItem(e){let t=e?.features,i=this.reportingOptions&&this.reportingOptions[this.selectedLayerId].like,s=t.map(async a=>{let r=this.mapView?.map&&await this._popupUtils?.getPopupTitle(a,this.mapView.map),n,h;return this.showUserImageInList&&this._selectedLayer?.editFieldsInfo?.creatorField&&(n=await this.getUserInformation(a)),this.showFeatureSymbol&&(h=await this.getFeatureSymbol(a)),i&&this.getAbbreviatedLikeCount(a),r&&this.getFeatureItem(a,r,h,n)});return Promise.all(s)}getAbbreviatedLikeCount(e){let t=this._selectedLayer;if(t){let i=this.reportingOptions&&this.reportingOptions[t.id].likeField;t.fields.forEach(s=>{if(this._validFieldTypes.indexOf(s.type)>-1&&s.name===i&&this.reportingOptions&&this.reportingOptions[t.id].like){this._likeFieldAvailable=!0;let a=e.attributes[i]||0;a>999&&this._translations.millions_value&&this._translations.thousands_value&&(a=a>999999?this._translations.millions_value.replace("{{abbreviated_value}}",Math.floor(a/1e6).toString()):this._translations.thousands_value.replace("{{abbreviated_value}}",Math.floor(a/1e3).toString())),this._abbreviatedLikeCount=a}})}}getFeatureItem(e,t,i,s){if(this._selectedLayer?.id&&this._calciteList.value&&this.reportingOptions){let a=e.attributes[this._selectedLayer.objectIdField].toString();t=t??a;let r=Number(e.attributes[this.reportingOptions?.[this._selectedLayer.id].likeField||""]).toLocaleString(),n=this.textSize==="small"&&!this.showFullTitle?"feature-list-popup-title-small-ellipsis":this.textSize==="small"?"feature-list-popup-title-small":"feature-list-popup-title",h=this.showUserImageInList?115:65,E=this._calciteList.value.offsetWidth-h;return l`<calcite-list-item @mouseleave=${()=>{this.clearHighlights()}} @mouseover=${()=>{this.onFeatureHover(e)}} @calciteListItemSelect=${o=>{this.featureClicked(o,e)}} .value=${a}>${this.showUserImageInList&&l`<calcite-avatar class=profile-img .fullName=${s?.fullName} scale=m slot=content-start .thumbnail=${s?.userProfileUrl} .userId=${s?.id} .username=${s?.fullName?s.username:void 0}></calcite-avatar>`||""}${this.showFeatureSymbol&&i&&l`<div class=feature-symbol slot=content-start ${c(o=>o&&o.replaceChildren(i))}></div>`||""}<div class=${`popup-title ${n}`} slot=content-start style=${I({maxWidth:this.textSize==="large"?"none":`${E}px`})}>${t}</div>${this._likeFieldAvailable&&l`<div class=like-container id=${a.concat("like")??m} slot=content-end><span>${this._abbreviatedLikeCount}</span><calcite-icon icon=thumbs-up scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top .referenceElement=${a.concat("like")}>${r}</calcite-tooltip></div>`||""}<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`}else return}async getUserInformation(e){let t=this._selectedLayer?.editFieldsInfo?.creatorField;if(t){e.attributes.hasOwnProperty(t.toLowerCase())?t=t.toLowerCase():e.attributes.hasOwnProperty(t.toUpperCase())&&(t=t.toUpperCase());let i=`${this.esriConfig?.portalUrl}/sharing/rest/community/users/${e.attributes[t]}?f=json&returnUserLicensedItems=true`,s=this.mapView?.map?.portalItem.portal?.credential?.token;s&&(i+=`&token=${s}`);let a=await(await fetch(i)).json(),r=a?.username??e.attributes[t],n=`${this.esriConfig?.portalUrl}/sharing/rest/community/users/${r}/info/blob.png`;return a?.access&&s&&(n+=`?token=${s}`),a.userProfileUrl=n,a}else return}async getFeatureSymbol(e){let t=document.createElement("div");return await this.symbolUtils?.getDisplayedSymbol(e).then(async i=>{if(i&&await this.symbolUtils?.renderPreviewHTML(i,{node:t}),t.children?.length){let s=t.children[0];if(s){let a=Number(s.getAttribute("height")),r=Number(s.getAttribute("width"));r>30&&s.setAttribute("width","30"),a>30&&s.setAttribute("height","30"),s.setAttribute("viewBox",`0 0 ${r} ${a}`)}}}),t}};L("feature-list",g);export{g as FeatureList};
|
package/dist/cdn/4IU5MAMG.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.20250513.1 */
|
4
|
-
import{a,b}from"./NJJU4T5L.js";import"./DVK7WGWJ.js";import"./7ZWQ5RIA.js";import"./SHCFADDZ.js";import"./R2H5RSJ2.js";import"./AZKYXX53.js";export{a as EventEditorTypes,b as buildSchema};
|
package/dist/cdn/C3QQO3JT.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.20250513.1 */
|
4
|
-
import{a as S}from"./KBP3WSLN.js";import"./T2ZDNBN5.js";import{a as $,c as u,d as c,e as m,f as v,g as C}from"./2VM36EOG.js";import"./GD5M2FA3.js";import{b as I}from"./TASEETLT.js";import{a as n,b as o}from"./B6EMT5VV.js";import{b as L}from"./4I2ETJ5R.js";import{a as F}from"./66TACLFN.js";import{B as b,c as f,d as a,f as d,n as g,q as w,w as y,x as p}from"./NUCM6ABX.js";import"./AZKYXX53.js";var x=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)}.width-full{width:100%!important}.width-0{width:0}.height-full{height:100%!important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1)!important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:700}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}}`,_=class extends y{constructor(){super(),this.center="",this.commentButtonText="",this.commentSubmittedMessage="",this.defaultWebmap="",this.description="",this.enableAnonymousAccess=!1,this.enableAnonymousComments=!1,this.enableComments=!1,this.enableHome=!0,this.enableLogin=!1,this.enableNewReports=!1,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=!1,this.layerExpressions=[],this.layerId="",this.level="",this.loginTitle="",this.mapInfos=[],this.objectId="",this.reportButtonText="",this.reportsHeader="",this.reportSubmittedMessage="",this.showComments=!1,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage="",this.theme="light",this.floorLevel="",this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this._featureCreationFailedErrorMsg="",this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._reportSubmitted=!1,this._selectedLayerName="",this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=F({name:"crowdsource-reporter",blocking:!0}),this._updatedProgressBarStatus=25,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1,this._createFeature=n(),this._currentFeatureId="",this._editableLayerIds=[],this._featureDetails=n(),this._featureList=n(),this._selectedRelatedFeature=[],this._filterList=n(),this._layerList=n(),this._createRelatedFeature=n(),this._layers=[],this._selectedFeature=[],this._selectedFeatureIndex=0,this._selectedLayerId="",this._shareNode=n(),this._urlParamsLoaded=!1,this._validLayers=[],this._nonVisibleValidLayers=[],this._showFullPanel=!1,this._floorExpression="",this._formElements=[],this._prevSelectedLayerId="",this._t9nLayerExpressions=[],this.togglePanel=g(),S(window)}static{this.properties={center:1,commentButtonText:1,commentSubmittedMessage:1,defaultWebmap:1,description:1,enableAnonymousAccess:5,enableAnonymousComments:5,enableComments:5,enableHome:5,enableLogin:5,enableNewReports:5,enableSearch:5,enableSnapping:5,enableZoom:5,isMobile:5,layerExpressions:0,layerId:1,level:1,loginTitle:1,mapInfos:0,mapView:0,objectId:1,reportButtonText:1,reportingOptions:0,reportsHeader:1,reportSubmittedMessage:1,searchConfiguration:0,showComments:5,showUserImageInCommentsList:5,showFeatureSymbol:5,showMyReportsOnly:5,submitNewReportsMessage:1,theme:1,zoomToScale:9,floorLevel:1,showFullCommentTitle:5,filterByMapExtent:5,sortOption:1,_featureCreationFailedErrorMsg:16,_filterActive:16,_flowItems:16,_hasValidLayers:16,_mapInfo:16,_reportSubmitted:16,_selectedLayerName:16,_showSubmitCancelButton:16,_showLoadingIndicator:16,_sidePanelCollapsed:16,_translations:16,_updatedProgressBarStatus:16,_updatedSorting:16,_updatedSortOption:16,_commentSubmitted:16,_addingCommentFailed:16,_filterOpen:16}}static{this.styles=x}static{this.shadowRootOptions=w}willUpdate(e){e.has("isMobile")&&this.isMobileWatchHandler(this.isMobile),e.has("mapView")&&this.mapViewWatchHandler(),e.has("floorLevel")&&this.floorLevelWatchHandler(),e.has("showMyReportsOnly")&&(this.hasUpdated||this.showMyReportsOnly!==!1)&&this.showMyReportsOnlyWatchHandler(),e.has("sortOption")&&(this.hasUpdated||this.sortOption!=="newest")&&this.sortOptionWatchHandler(),e.has("filterByMapExtent")&&(this.hasUpdated||this.filterByMapExtent!==!1)&&this.filterByMapExtentChangeWatchHandler(),e.has("layerExpressions")&&(this.hasUpdated||this.layerExpressions?.length>0)&&this.layerExpressionsWatchHandler(),e.has("showFeatureSymbol")&&(this.hasUpdated||this.showFeatureSymbol!==!1)&&this.showFeatureSymbolWatchHandler(),(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList.value?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}async isMobileWatchHandler(e){this.updatePanelState(!1,this._showFullPanel),e&&this._flowItems[this._flowItems.length-1]==="filter-panel"?(await this.backFromFilterPanel(),this._filterOpen=!0):!e&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async mapViewWatchHandler(){await this.mapView?.when(async()=>{this.setInitExpressions(),await this.setMapView()})}async floorLevelWatchHandler(){if(this._editableLayerIds)for(let e of this._editableLayerIds){let t=this.mapView&&await c(this.mapView,e);t&&t.floorInfo?.floorField&&this._updateFloorDefinitionExpression(t)}this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value&&await this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh(),this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}async sortOptionWatchHandler(){this.updateSortingOptions()}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){this.resetFilterList(),await this.handleSelectedLayersFilter(),await this._featureList.value?.refresh()}async showFeatureSymbolWatchHandler(){await this._featureList.value?.refresh()}async updateLayerExpressionsT9n(e){if(this._t9nLayerExpressions=e||this.layerExpressions,this._filterList.value!=null)await this._filterList.value.handleUpdatingT9nData(this._t9nLayerExpressions);else if(this._currentLayerExpressions!=null){let t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}async load(){this._urlParamsLoaded=!1,await this._initModules(),await this.mapView?.when(async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter(e=>{let t=e&&this.reportingOptions&&this.reportingOptions[e];return t&&t.visible}):[],this.setInitExpressions(),await this.setMapView()})}render(){let e=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return a`${this._reportSubmitted&&a`<calcite-alert auto-close class=${`${e} report-submitted-msg`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._reportSubmitted=!1}} open placement=top><div slot=message>${this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg}</div></calcite-alert>`||""}${this._featureCreationFailedErrorMsg&&a`<calcite-alert auto-close class=${p(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._featureCreationFailedErrorMsg=""}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._featureCreationFailedErrorMsg}</div></calcite-alert>`||""}${this._commentSubmitted&&a`<calcite-alert auto-close class=${`report-submitted ${e}`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._commentSubmitted=!1}} open placement=top><div slot=message>${this.commentSubmittedMessage||this._translations.commentSubmittedMsg}</div></calcite-alert>`||""}${this._addingCommentFailed&&a`<calcite-alert auto-close class=${p(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._addingCommentFailed=!1}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._translations.addingCommentFailedMsg}</div></calcite-alert>`||""}<div><calcite-shell content-behind>${this._getReporter()}</calcite-shell></div>${this.isMobile&&this.filterModal()||""}`}async _initModules(){let[e,t]=await L(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter"]);this.reactiveUtils=e,this.FeatureFilter=t}async setSelectedLayer(e,t){this._selectedLayerId=e,this._selectedLayer=this.mapView&&await c(this.mapView,e),this._selectedLayerName=t,this._validLayers.forEach(i=>{this._nonVisibleValidLayers.find(s=>s.id===i.id)||i.set("visible",!e||i.id===e)})}_getLayersConfig(e){return this.reportingOptions&&this.reportingOptions[e]?this.reportingOptions[e]:null}_getReporter(){let e=[];this._flowItems.forEach(i=>{switch(i){case"layer-list":e.push(this.getLayerListFlowItem());break;case"feature-list":e.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":e.push(this.getFilterPanel());break;case"feature-details":e.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":e.push(this.getChooseCategoryFlowItem());break;case"feature-create":e.push(this.getFeatureCreateFlowItem());break;case"comment-details":e.push(this.getCommentDetailsFlowItem());break;case"add-comment":e.push(this.getAddCommentFlowItem());break}});let t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return a`<calcite-panel class=${`width-full ${t}`}>${this.mapView?a`<calcite-flow>${e?.length>0&&e||""}</calcite-flow>`:a`<calcite-loader label scale=m></calcite-loader>`}</calcite-panel>`}filterModal(){return(this.layerExpressions?this.layerExpressions.filter(e=>e.id===this._selectedLayerId):[]).length>0&&a`<calcite-modal aria-labelledby=modal-title class="modal" kind=brand @calciteModalClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width-scale=s><div class="display-flex align-center" id=modal-title slot=header>${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)}</div><div slot=content>${this.mapView&&a`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>{this._filterActive=!1,this._featureList.value&&this._featureList.value.refresh()}} @filterUpdate=${()=>{this._filterList.value?.filterCount!==void 0&&this._handleFilterUpdate(this._filterList.value?.filterCount>0)}} reset-btn .view=${this.mapView} ${o(this._filterList)}></instant-apps-filter-list>`||""}</div></calcite-modal>`||""}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,this._filterList.value!=null&&(this._currentLayerExpressions=await this._filterList.value.getCurrentLayerExpressions())}async sortOptionClick(e,t,i){this._updatedSorting={field:e,order:t},this._updatedSortOption=i}_toggleSort(){let e=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return a`<calcite-popover auto-close label offset-distance=0 .placement=${this.isMobile?"leading-start":"bottom-start"} pointer-disabled reference-element=sort-popover><calcite-list label selection-mode=single-persist><calcite-list-item .label=${this._translations.sortNewest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")}} .selected=${this._updatedSortOption==="newest"} value=newest></calcite-list-item><calcite-list-item .label=${this._translations.sortOldest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")}} .selected=${this._updatedSortOption==="oldest"} value=oldest></calcite-list-item>${e&&a`<calcite-list-item .label=${this._translations.sortHighestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t!==void 0&&this.sortOptionClick(t,"desc","highestVoted")}} .selected=${this._updatedSortOption==="highestVoted"} value=highestVoted></calcite-list-item><calcite-list-item .label=${this._translations.sortLowestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t&&this.sortOptionClick(t,"asc","lowestVoted")}} .selected=${this._updatedSortOption==="lowestVoted"} value=lowestVoted></calcite-list-item>`||""}</calcite-list></calcite-popover>`}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(e){this._showLoadingIndicator=!0,this._filterActive=e,this._featureList.value&&await this._featureList.value.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return a`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportsHeader} .selected=${this._flowItems[this._flowItems.length-1]==="layer-list"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this._hasValidLayers&&this.enableNewReports&&a`<calcite-button appearance=solid @click=${this.navigateToChooseCategory} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel><layer-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} .layers=${this._editableLayerIds?.length>0?this._editableLayerIds:this._layers} .mapView=${this.mapView} @layerSelect=${this.displayFeaturesList} @layersListLoaded=${this.layerListLoaded} show-feature-count show-next-icon ${o(this._layerList)}></layer-list></calcite-panel></calcite-flow-item>`}getChooseCategoryFlowItem(){let e=this.reportingOptions?Object.keys(this.reportingOptions).filter(t=>this.reportingOptions&&this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd):[];return a`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="reporting-layer-list"}><calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><calcite-notice class="notice-msg" icon=lightbulb kind=success open><div slot=message>${this._translations.chooseCategoryMsg}</div></calcite-notice><layer-list class="height-full" .layers=${e} .mapView=${this.mapView} @layerSelect=${this.navigateToCreateFeature}></layer-list></calcite-panel></calcite-flow-item>`}getFeatureCreateFlowItem(){return a`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} @calciteFlowItemBack=${this.backFromCreateFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-create"}>${this._showSubmitCancelButton&&a`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" @click=${this.onCreateFeatureSubmitButtonClick} width=full>${this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}<calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><create-feature customize-submit enable-search .enableSnapping=${this.enableSnapping} .floorLevel=${this.floorLevel} .formElements=${this._formElements.find(e=>e.id===this._selectedLayerId)} .isMobile=${this.isMobile} .mapView=${this.mapView} @drawComplete=${this.onFormReady} @editingAttachment=${this.showSubmitCancelButton} @fail=${this.createFeatureFailed} @modeChanged=${this.backFromCreateFeaturePanel} @progressStatus=${this.updatedProgressStatus} @success=${this.onReportSubmitted} .searchConfiguration=${this.searchConfiguration} .selectedLayerId=${this._selectedLayerId} .submitNewReportsMessage=${this.submitNewReportsMessage} ${o(this._createFeature)}></create-feature></calcite-panel></calcite-flow-item>`}updatedProgressStatus(e){this._updatedProgressBarStatus=e.detail}onFormReady(){this._showSubmitCancelButton=!0}showSubmitCancelButton(e){this._showSubmitCancelButton=!e.detail}onCreateFeatureSubmitButtonClick(){this._createFeature.value&&this._createFeature.value.submit()}backFromCreateFeaturePanel(){this._createFeature.value&&this.updateNonVisibleLayersOnMap(!1),this.backFromSelectedPanel()}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature.value&&this._createRelatedFeature.value.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature.value&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(e){console.error(e.detail),this._featureCreationFailedErrorMsg=e.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(e){console.error(e.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromSelectedPanel(),this._showLoadingIndicator=!0,this._featureDetails.value&&await this._featureDetails.value.refresh(this._currentFeature),setTimeout(()=>{this._showLoadingIndicator=!1},300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList.value&&await this._layerList.value.refresh(),this._editableLayerIds.length===1?(this._featureList.value&&await this._featureList.value.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(e){e.detail.layerId&&e.detail.layerName&&await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(e){this._nonVisibleValidLayers.find(t=>t.id===this._selectedLayerId)&&this._selectedLayer&&this._selectedLayer.set("visible",e)}async layerListLoaded(e){if(this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"||this._flowItems[0]==="feature-list"){let t=e.detail,i=this.mapView&&await m(this.mapView),s=[];this._validLayers=[],this._nonVisibleValidLayers=[],i?.forEach(l=>{t.includes(l.id)&&(this._validLayers.push(l),l.visible||this._nonVisibleValidLayers.push(l),this._getLayersConfig(l.id)?.reporting&&this._layerItemsHash&&this._layerItemsHash[l.id]&&this._layerItemsHash[l.id].supportsAdd&&s.push(l.id))}),this.handleMapClick(),this._hasValidLayers=s.length>0,this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}}async displayFeaturesList(e){await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId}updateSortingOptions(){let e=this.sortOption===""?"newest":this.sortOption,t=e==="oldest"||e==="lowestVoted"?"asc":"desc",i=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"",s=this._selectedLayer&&(e==="newest"||e==="oldest")?this._selectedLayer.objectIdField:i;this._updatedSorting={field:s||"",order:t},this._updatedSortOption=!i&&(e==="highestVoted"||e==="lowestVoted")?"newest":e}async backFromFilterPanel(){this._filterList.value!=null&&(this._currentLayerExpressions=await this._filterList.value.getCurrentLayerExpressions()),this._featureList.value&&await this._featureList.value.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;let e=[...this._flowItems];if(e[e.length-1]==="comment-details"||e[e.length-1]==="add-comment"||this.clearHighlights(),(e[e.length-1]==="reporting-layer-list"||e[e.length-1]==="feature-create"&&(e[0]==="feature-list"||e[e.length-2]==="feature-list"))&&this.updatePanelState(this._sidePanelCollapsed,!1),e.pop(),e.length===1&&e[0]==="layer-list"){this.navigateToHomePage();return}this._flowItems=[...e]}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(e,t){this._sidePanelCollapsed=e,this._showFullPanel=t,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(e){this._showLoadingIndicator=!0,await this.setSelectedFeatures([e.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){let e=this._currentFeature?.layer,t=this.mapView&&await v(this.mapView);e.relationships?.some(i=>{let s=t?.filter(l=>e.url===l.url&&l.layerId===i.relatedTableId);return s&&s.length>0?(this._relatedTable=s[0],!0):!1})}async updatingFeatureDetails(e){this._showLoadingIndicator=e}async selectionChanged(e){this.updatingFeatureDetails(!0),await this.setCurrentFeature(e.detail.selectedFeature[0]),this.highlightOnMap(e.detail.selectedFeature[0]),this._selectedFeatureIndex=e.detail.selectedFeatureIndex,this._featureDetails.value&&await this._featureDetails.value.refresh(e.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(e){this._selectedRelatedFeature=[e.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(e,t){let i=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash&&this._layerItemsHash[this._selectedLayerId].supportsAdd,s=this._currentLayerExpressions?.length;return a`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${t} .loading=${!this.isMobile&&this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-list"}>${this._toggleSort()}<calcite-action icon=sort-ascending-arrow id=sort-popover slot=header-actions-end .text=${this._translations.sort} title=${this._translations.sort??d}></calcite-action>${s&&a`<calcite-action icon=filter .indicator=${this._filterActive} @click=${()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]}} slot=header-actions-end .text=${this._translations.filter} title=${this._translations.filter??d}></calcite-action>`||""}${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.enableNewReports&&i&&a`<calcite-button appearance=solid @click=${this.navigateToCreateFeature} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel>${a`<feature-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} highlight-on-hover .mapView=${this.mapView} .noFeaturesFoundMsg=${this._translations.featureErrorMsg} @featureSelect=${this.onFeatureSelectFromList} page-size=30 .reportingOptions=${this.reportingOptions} .selectedLayerId=${e} .showFeatureSymbol=${this.showFeatureSymbol} .sortingInfo=${this._updatedSorting} ${o(this._featureList)}></feature-list>`}</calcite-panel></calcite-flow-item>`}getFilterPanel(){return a`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromFilterPanel} .selected=${this._flowItems[this._flowItems.length-1]==="filter-panel"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer><div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${!this._filterActive} @click=${this.resetFilterList} width=full>${this._translations.resetFilter}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromFilterPanel} width=full>${this._translations.close}</calcite-button></div></div><calcite-panel>${this.mapView&&a`<instant-apps-filter-list .closeBtnOnClick=${()=>{}} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>void this._handleFilterListReset()} @filterUpdate=${()=>{let e=this._filterList.value?.filterCount;e!==void 0&&this._handleFilterUpdate(e>0)}} .view=${this.mapView} ${o(this._filterList)}></instant-apps-filter-list>`||""}</calcite-panel></calcite-flow-item>`}getFeatureDetailsFlowItem(){let e=this._selectedLayer?.relationships,t=this._getLayersConfig(this._selectedLayerId)?.comment&&e&&e.length>0&&this._relatedTable;return a`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.mapView&&a`<instant-apps-social-share class=share-node flip-rtl popover-button-icon-scale=s remove-popover-offset scale=m share-button-color=neutral share-button-type=action slot=header-actions-end social-media .view=${this.mapView} ${o(this._shareNode)}></instant-apps-social-share>`||""}${this._selectedFeature.length>1&&this.getFeaturesPagination()||""}<calcite-panel><feature-details class=full-height .enableSnapping=${this.enableSnapping} .graphics=${this._selectedFeature} .layerItemsHash=${this._layerItemsHash} .mapView=${this.mapView} @addComment=${this.showAddCommentsPanel} @commentSelect=${this.onCommentSelectFromList} @featureSelectionChange=${this.selectionChanged} @likeOrDislikeClicked=${()=>{this._featureList.value&&this._featureList.value.refresh(!0)}} @loadingStatus=${i=>void this.updatingFeatureDetails(i.detail)} .reportingOptions=${this.reportingOptions} .showFullCommentTitle=${this.showFullCommentTitle} .showUserImageInCommentsList=${this.showUserImageInCommentsList} ${o(this._featureDetails)}></feature-details>${t&&a`<calcite-button appearance=solid @click=${this.showAddCommentsPanel} slot=footer width=full>${this.commentButtonText||this._translations.comment}</calcite-button>`||""}</calcite-panel></calcite-flow-item>`}getFeaturesPagination(){return a`<div class="feature-pagination"><div><calcite-button appearance=transparent icon-start=chevron-left id=solutions-back @click=${()=>this._featureDetails.value&&void this._featureDetails.value.back()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-back><span>${this._translations.back}</span></calcite-tooltip></div><calcite-button appearance=transparent @click=${()=>this._featureDetails.value&&void this._featureDetails.value.toggleListView()} scale=s><span class="pagination-count">${this._getCount()}</span></calcite-button><div><calcite-button appearance=transparent icon-start=chevron-right id=solutions-next @click=${()=>this._featureDetails.value&&void this._featureDetails.value.next()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>`}getCommentDetailsFlowItem(){return a`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="comment-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<calcite-panel><info-card .enableSnapping=${this.enableSnapping} .graphics=${this._selectedRelatedFeature} .mapView=${this.mapView}></info-card></calcite-panel></calcite-flow-item>`}getAddCommentFlowItem(){return a`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromCreateRelatedFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="add-comment"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer>${this._showSubmitCancelButton&&a`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" @click=${this.onCreateRelatedFeatureSubmitButtonClick} width=full>${this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateRelatedFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}</div><calcite-panel><create-related-feature customize-submit .enableSnapping=${this.enableSnapping} .mapView=${this.mapView} @fail=${this.addCommentFailed} @formReady=${this.onFormReady} @isActionPending=${this.showSubmitCancelButton} @success=${this.onCommentSubmitted} .selectedFeature=${this._currentFeature} .table=${this._relatedTable} ${o(this._createRelatedFeature)}></create-related-feature></calcite-panel></calcite-flow-item>`}async setSelectedFeatures(e){this._selectedFeature=e,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:void 0)}async setCurrentFeature(e){if(this._currentFeature=e,e&&e.layer){let t=e.layer;t.title&&this.setSelectedLayer(t.id,t.title),this._currentFeatureId=e.attributes[t.objectIdField],this._getLayersConfig(t.id)?.comment&&t.relationships&&t.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(e){if(this.clearHighlights(),e&&e.geometry&&e.layer&&e.layer.id!==void 0){let t=this.mapView&&await u(this.mapView,e.layer.id.toString());if(t){t.highlightOptions=null;let i=Number(e.getObjectId());this._highlightHandle=this.mapView&&await C([i],t,this.mapView,!0,this.zoomToScale)}}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return a`<calcite-action .icon=${this._sidePanelCollapsed?"chevrons-up":"chevrons-down"} @click=${this.toggleSidePanel} slot=header-actions-end .text=${(this._sidePanelCollapsed?this._translations.expand:this._translations.collapse)||""}></calcite-action>`}async setMapView(){await this.getLayersToShowInList(),await this._updateFeatures(),this._editableLayerIds?.length===1?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView&&(this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0))}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",this.onMapClick.bind(this))}async onMapClick(e){if(this.mapView){this.mapView.popupEnabled=!1;let t=await this.mapView.hitTest(e);if(t.results.length>0){let i=[];t.results.forEach(function(r){r.type==="graphic"&&i.push(r.graphic)});let s=i.filter(r=>{if(r.layer?.type==="feature"){let h=r.layer;return this._validLayers.includes(h)}else return!1}),l=i.filter(r=>{if(r.layer?.type==="feature"){let h=r.layer;return!this._validLayers.includes(h)&&h?.popupEnabled&&h?.id}else return!1});if(s.length>0&&(await this.setSelectedFeatures(s),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(i[0])):this._flowItems=[...this._flowItems,"feature-details"]),l.length>0){this.mapView.popupEnabled=!0;let r={features:l,updateLocationEnabled:!0};await this.mapView.openPopup(r)}}}}_getCount(){let e=(this._selectedFeatureIndex+1).toString(),t=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",e).replace("{{total}}",t)}_updateFloorDefinitionExpression(e){let t=`${e?.floorInfo?.floorField} = '${this.floorLevel}'`,i=e.definitionExpression;e.definitionExpression=i&&i?.indexOf(this._floorExpression)>-1?i.replace(this._floorExpression,t):t,this._floorExpression=t}_getFormElements(){let e=this._selectedLayer;if(e?.floorInfo?.floorField&&this.floorLevel&&e?.formTemplate){let t=this._formElements.find(i=>i.id===e.id);(this._formElements.length===0||!t)&&this._formElements.push({id:e.id,orgElements:e.formTemplate.elements,orgExpressionInfos:e.formTemplate.expressionInfos})}}reduceToConfiguredLayers(e,t){return Object.keys(e).reduce((i,s)=>{let l=this.reportingOptions?this._getLayersConfig(s)?.visible:e[s].supportsAdd;return!t.includes(s)&&l&&i.push(s),i},[])}refreshLists(){setTimeout(()=>{this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh()},50)}async _updateFeatures(){for(let e of this._editableLayerIds){let t=this.mapView&&await u(this.mapView,e);t&&(await this._showMyFeaturesOnly(t),t.layer?.floorInfo?.floorField&&this.floorLevel&&this._updateFloorDefinitionExpression(t.layer))}}async _showMyFeaturesOnly(e){let t=(this.mapView?.map).portalItem.portal?.credential?.userId;if(t&&e){let i=e.layer.editFieldsInfo?.creatorField.toLowerCase();e.filter=this.showMyReportsOnly&&i&&this.FeatureFilter?new this.FeatureFilter({where:i+"='"+t+"'"}):null}}async getLayersToShowInList(){let e=this.mapView&&await $(this.mapView,!0),t=this.mapView&&await m(this.mapView),i=[];t?.forEach(s=>{s?.type==="feature"&&s?.editingEnabled&&s?.capabilities?.operations?.supportsAdd&&(e[s.id].supportsAdd=!0),s?.editingEnabled||i.push(s.id)}),this._editableLayerIds=this.reduceToConfiguredLayers(e,i),this._layerItemsHash=e}async renderFeaturesList(){this._flowItems=["feature-list"];let e={detail:this._editableLayerIds};await this.layerListLoaded(e),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0]?.title||""),this.updateSortingOptions(),this.handleSelectedLayersFilter()}_updateShareURL(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this._selectedLayerId?t.searchParams.set("layerid",this._selectedLayerId):t.searchParams.delete("layerid"),this._selectedFeature?.length?t.searchParams.set("oid",this._currentFeatureId):t.searchParams.delete("oid"),this._shareNode.value&&(this._shareNode.value.shareUrl=t.href)}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView?.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){let e=this.mapView&&await c(this.mapView,this.layerId);if(e){let t=this.mapView&&await I([Number(this.objectId)],e,[],!0,this.mapView.spatialReference);t?.length&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems[this._flowItems.length-1]!=="feature-details"?this._flowItems=[...this._flowItems,"feature-details"]:this._flowItems=[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){let e=this.layerExpressions?structuredClone(this.layerExpressions.filter(t=>t.id===this._selectedLayerId)):[];this._t9nLayerExpressions!=null&&this.handleLayerExpressionsT9n(e,this._t9nLayerExpressions),this._currentLayerExpressions=e,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){let e=this.mapView&&await c(this.mapView,this._prevSelectedLayerId);e&&this._initDefExpressions&&(e.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}resetFilterList(){this._filterList.value?.forceReset(),this._selectedLayer!==void 0&&this._initDefExpressions&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(this._selectedLayer===void 0)return;let e=[];if(this._currentLayerExpressions&&this._currentLayerExpressions?.length>0){let t=this._currentLayerExpressions[0];for(let i of t.expressions){let{active:s,definitionExpression:l}=i;s&&l&&e.push(`(${l})`)}this._filterActive=e.length>0,this.updateFilterLayerDefExpression(e,t.operator)}}updateFilterLayerDefExpression(e,t){let i=this._initDefExpressions&&this._initDefExpressions[this._selectedLayerId],s=e?.length>0&&i?`(${e.join(t)}) AND (${i})`:e.length>0?e.join(t):i;this._selectedLayer&&(this._selectedLayer.definitionExpression=s)}setInitExpressions(){if(this._initDefExpressions={},this.mapView==null)return;let e=this.mapView.map;e.allLayers.concat(e.allTables).forEach(t=>{if(t.type!=="feature")return;let i=t;this._initDefExpressions&&(this._initDefExpressions[i.id]=i.definitionExpression||"")})}handleLayerExpressionsT9n(e,t){e?.forEach(i=>{let s=t?.find(l=>l.id===i.id);s!=null&&(i.title=s.title,i.expressions?.forEach(l=>{let r=s.expressions?.find(h=>h.id===l.id);r!=null&&(l.name=r.name)}))})}};b("crowdsource-reporter",_);export{_ as CrowdsourceReporter};
|
package/dist/cdn/DADLOUNZ.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.20250513.1 */
|
4
|
-
import{a as r}from"./66TACLFN.js";import{B as n,c as s,d as t,q as i,w as o}from"./NUCM6ABX.js";import"./AZKYXX53.js";var a=s`@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
|
-
*/}`,e=class extends o{constructor(){super(...arguments),this._translations=r({name:"solutions-all-shell",blocking:!0})}static{this.properties={_translations:16}}static{this.styles=a}static{this.shadowRootOptions=i}render(){return t`<calcite-shell></calcite-shell>`}};n("solutions-all-shell",e);export{e as SolutionsAllShell};
|
package/dist/cdn/DJLABPFC.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.20250513.1 */
|
4
|
-
import{c as p}from"./2VM36EOG.js";import"./GD5M2FA3.js";import"./TASEETLT.js";import{b as h}from"./4I2ETJ5R.js";import{a as n}from"./66TACLFN.js";import{B as l,c as o,n as s,q as r,w as c}from"./NUCM6ABX.js";import"./AZKYXX53.js";var m=o`@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;pointer-events:all!important}}`,a=class extends c{constructor(){super(...arguments),this.locale="",this.selectedLayerId="",this.tool="rectangle",this._translations=n({name:"selection-tool"}),this.drawingComplete=s(),this.featuresSelected=s()}static{this.properties={locale:1,mapView:0,selectedLayerId:1,tool:1,_translations:16}}static{this.styles=m}static{this.shadowRootOptions=r}willUpdate(e){e.has("locale")&&this.localeWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler()}async localeWatchHandler(){this.el.lang=this.locale}async mapViewWatchHandler(){await this.mapView?.when(()=>{this._initSketchViewModel()})}async toggleSelectionTool(){this._graphicsLayer?.removeAll(),this._selectionTool&&this._selectionTool.state==="active"?this._selectionTool.cancel():this._selectionTool?.create(this.tool)}async load(){await this._initModules()}async loaded(){await this.init()}render(){return""}async _initModules(){let[e,t]=await h(["esri/layers/GraphicsLayer","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=e,this.SketchViewModel=t}async init(){this.mapView&&this._initSketchViewModel()}_initSketchViewModel(){this._graphicsLayer=this.GraphicsLayer&&new this.GraphicsLayer,this._selectionTool=this.SketchViewModel&&new this.SketchViewModel({layer:this._graphicsLayer,view:this.mapView}),this._selectionTool&&this._selectionTool.on("create",e=>{if(e.state==="complete"){this.drawingComplete.emit();let t=e.graphic.geometry;t&&this._selectFeatures(t),this._graphicsLayer&&this._graphicsLayer.removeAll()}}),this.mapView?.map&&this._graphicsLayer&&this.mapView.map.layers.add(this._graphicsLayer)}async _selectFeatures(e){let t=this.mapView&&await p(this.mapView,this.selectedLayerId);try{let i={geometry:e},d=t&&await t.queryObjectIds(i);this.featuresSelected.emit(d)}catch(i){console.error("Error selecting features:",i)}}};l("selection-tool",a);export{a as SelectionTool};
|
package/dist/cdn/DXOLFQBJ.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.20250513.1 */
|
4
|
-
import{a,b}from"./NMQL6RPI.js";import"./HDVUMH4E.js";import"./AZKYXX53.js";export{a as ChannelEditorTypes,b as ChannelSchema};
|
package/dist/cdn/EQ7BO6C2.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.20250513.1 */
|
4
|
-
import{a,b}from"./7TXDKHSR.js";import"./R2H5RSJ2.js";import"./AZKYXX53.js";export{a as GroupEditorTypes,b as GroupSchema};
|
package/dist/cdn/JKV6HJNN.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.20250513.1 */
|
4
|
-
import{d as V,e as L}from"./2VM36EOG.js";import"./GD5M2FA3.js";import"./TASEETLT.js";import{a as p,b as m}from"./B6EMT5VV.js";import{b as v}from"./4I2ETJ5R.js";import{a as b}from"./66TACLFN.js";import{B as M,c as g,d as h,n as d,q as f,w as y,x as c}from"./NUCM6ABX.js";import"./AZKYXX53.js";var S=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}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none!important}.esri-editor__panel-content{padding-block:0px!important}.esri-editor .esri-item-list__group__header,.esri-editor__panel-content__section .esri-widget__heading{display:none!important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px!important;padding-inline:10px!important}.search-widget{width:92%!important;margin:5px 14px 20px}.display-none{display:none!important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px!important;position:absolute!important;bottom:0;height:auto!important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px!important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0!important;min-height:0!important}}}`,w=class extends y{constructor(){super(...arguments),this.customizeSubmit=!1,this.enableSearch=!1,this.enableSnapping=!1,this.floorLevel="",this.isMobile=!1,this.selectedLayerId="",this.showGuidingMsg=!0,this.submitNewReportsMessage="",this._currentPage="templatePicker",this._editorLoading=!1,this._translations=b({name:"create-feature",blocking:!0}),this._addingAttachment=!1,this._calciteNotice=p(),this._isSubmitBtnClicked=!1,this._mapViewContainer=p(),this._searchDiv=p(),this.success=d(),this.fail=d(),this.drawComplete=d(),this.editingAttachment=d(),this.progressStatus=d(),this.modeChanged=d()}static{this.properties={customizeSubmit:5,enableSearch:5,enableSnapping:5,floorLevel:1,formElements:1,isMobile:5,mapView:0,searchConfiguration:0,selectedLayerId:1,showGuidingMsg:5,submitNewReportsMessage:1,_currentPage:16,_editorLoading:16,_translations:16}}static{this.styles=S}static{this.shadowRootOptions=f}willUpdate(e){e.has("mapView")&&this.mapViewWatchHandler(),e.has("isMobile")&&this.isMobileHandler(),e.has("_editorLoading")&&(this.hasUpdated||this._editorLoading!==!1)&&this._editorLoadingWatchHandler(this._editorLoading)}async mapViewWatchHandler(){this.mapView&&await this.mapView.when(async()=>{await this.init()})}async isMobileHandler(){this.modeChanged.emit()}async _editorLoadingWatchHandler(e){if(e){if(this._container?.classList.add("display-none"),this._selectedLayer?.isTable){if(this._selectedLayer.templates&&this._editor){let t=this._selectedLayer.templates[0],s={layer:this._selectedLayer,template:t};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(s),await this.hideEditorsElements()}}else await this.startCreate();this._container?.classList.remove("display-none"),this._editorLoading=!1}}async submit(){this._editor?.viewModel?.featureFormViewModel&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}async refresh(e){this._editor&&this._setFloorLevel(e)}async load(){await this.initModules()}async loaded(){await this.init()}updated(){if(this.isMobile&&this._calciteNotice.value&&this._searchDiv.value&&this._mapViewContainer.value){let e=this._calciteNotice.value.offsetHeight+this._searchDiv.value.offsetHeight+80;this._mapViewContainer.value.style.top=`${e}px`}}disconnectedCallback(){super.disconnectedCallback(),this._editor&&(this._editor.viewModel.sketchViewModel&&this._editor.viewModel.sketchViewModel?.destroy(),this._editor.destroy(),this.enableSnapping&&this.mapView?.ui.view&&((this.mapView?.ui.view).grid=null))}render(){let e=this._currentPage==="drawing"?"":"display-none",t=this._editorLoading?"":"display-none",s=this._editorLoading?"display-none":"",i=this.isMobile?"show-map":"display-none",o=this.showGuidingMsg&&this._currentPage!=="templatePicker",a=this._translations.chooseCategoryMsg;return this._currentPage==="drawing"?a=this._translations.provideLocationMsg:this._currentPage==="featureForm"&&(a=this._translations.provideDetailsMsg),h`${o&&h`<calcite-notice class="notice-msg" icon=lightbulb kind=success open ${m(this._calciteNotice)}><div slot=message>${a}</div></calcite-notice>`||""}<calcite-loader class=${c(t)} label scale=s></calcite-loader><div class=${c(s)} id=feature-form></div>${this.enableSearch&&h`<div class=${`search-widget ${e} ${s}`} id=search-widget-ref ${m(this._searchDiv)}></div>`||""}<div class=${c(i)} ${m(this._mapViewContainer)}></div>`}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile?this.createMobileMapView():this._loadWidgets()))}async initModules(){let[e,t,s,i,o,a,r]=await v(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView"]);this.Editor=e,this.reactiveUtils=t,this.Search=s,this.ExpressionInfo=i,this.FieldElement=o,this.FormTemplate=a,this.MapView=r}async createMobileMapView(){this._mapViewContainer.value&&this.MapView&&this.mapView&&(this._mapViewContainer.value.classList.add("hide-map"),await new this.MapView({map:this.mapView.map,container:this._mapViewContainer.value,zoom:this.mapView.zoom}).when(e=>{this._updatedMapView=e,this._loadWidgets()},e=>{console.log(e)}))}async _loadWidgets(){await this.createEditorWidget(),this.enableSearch&&await this.createSearchWidget()}async createEditorWidget(){this._editor&&this._editor.destroy();let e=[];this._container=document.createElement("div"),this._container?.classList.add("display-none"),this.enableSnapping||this._container.classList.add("hide-editor-toolbar");let t=this._updatedMapView&&await L(this._updatedMapView),s=this.mapView&&await V(this.mapView,this.selectedLayerId);if(s&&(this._selectedLayer=s,!this._selectedLayer?.isTable&&t&&t.forEach(i=>{e.push({layer:i,enabled:i?.type==="feature"&&i?.id===this.selectedLayerId,addEnabled:!0,updateEnabled:!1,deleteEnabled:!1})})),this.Editor&&(this._editor=new this.Editor({view:this._updatedMapView,layerInfos:e,visibleElements:{settingsMenu:this.enableSnapping,snappingControls:this.enableSnapping,createFeaturesSection:!0,editFeaturesSection:!1,flow:!0,sketch:!1},container:this._container}),this._mapViewContainer.value?this.el.insertBefore(this._container,this._mapViewContainer.value):this.el.appendChild(this._container)),this._editor){let i=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,n=>{n==="adding-attachment"||n==="editing-attachment"?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)});i&&this._editor.viewModel.addHandles(i);let o=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureTemplatesViewModel.state,n=>{n==="ready"&&this._editor?.viewModel?.activeWorkflow?.type!=="create-features"&&(this.progressStatus.emit(50),this._editorLoading=!0)});o&&this._editor.viewModel.addHandles(o);let a=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureFormViewModel?.state,n=>{n==="ready"&&this._editor?.viewModel.featureFormViewModel&&(this._mapViewContainer.value?.classList?.replace("show-map","hide-map"),this._editor.viewModel.featureFormViewModel.addHandles(this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this))),setTimeout(()=>{this._setFloorLevel(this.floorLevel)},50),this._currentPage="featureForm",this.progressStatus.emit(100),this.drawComplete.emit())});a&&this._editor.viewModel.addHandles(a);let r=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,n=>{n==="creating-features"&&this._editor?.viewModel.featureFormViewModel&&this._editor.viewModel.featureFormViewModel.state==="disabled"&&(this._mapViewContainer.value?.classList?.replace("hide-map","show-map"),this._selectedLayer&&!this._selectedLayer.isTable&&(this._currentPage="drawing"))});r&&this._editor.viewModel.addHandles(r)}}async startCreate(){return await this.hideEditorsElements(),new Promise((e,t)=>{if(this._editor?.viewModel.featureTemplatesViewModel.items?.length){let s=this._editor.viewModel.featureTemplatesViewModel.items[0].items;this._editor.viewModel.featureTemplatesViewModel.addHandles(this._editor.viewModel.featureTemplatesViewModel.on("select",()=>{this.progressStatus.emit(75),setTimeout(()=>{this.hideEditorsElements().then(()=>{e({})},o=>t(o))},700)})),s.length===1&&this._editor.viewModel.featureTemplatesViewModel.select(s[0]);let i=s.length>1;this.hideEditorsElements().then(()=>{i&&e({})},o=>i&&t(o))}})}async createSearchWidget(){if(this._updatedMapView&&this.Search){let e={view:this._updatedMapView};this.searchConfiguration&&(e={...this._getSearchConfig(this.searchConfiguration,this._updatedMapView)}),this._search=new this.Search(e),this._search.container="search-widget-ref",this._search.popupEnabled=!1,this._search.resultGraphicEnabled=!1;let t;this._search.viewModel.addHandles(this._search.on("search-complete",i=>{this._updatedMapView?.goTo(i.results[0].results[0].extent),this._selectedLayer?.geometryType==="point"&&(t=i.results[0].results[0]?.feature.geometry)}));let s=this.reactiveUtils?.watch(()=>this._search?.viewModel.state,i=>{i==="ready"&&setTimeout(()=>{this._editor?.viewModel.sketchViewModel?.createGraphic&&t&&(this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",t),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements())},100)});s&&this._search.viewModel.addHandles(s)}}_getSearchConfig(e,t){let s="includeDefaultSources",i=e.sources;return i&&i?.length>0?(e[s]=!1,i.forEach(o=>{if(o.hasOwnProperty("layer")){let a=o,r=a.layer?.id,n=r?t.map?.findLayerById(r):"",l=a?.layer?.url;n?a.layer=n:l&&this.FeatureLayer&&(a.layer=new this.FeatureLayer(l))}}),i?.forEach(o=>{if(o.hasOwnProperty("locator")){let a=o;if(a?.name==="ArcGIS World Geocoding Service"){let r=a.outFields||["Addr_type","Match_addr","StAddr","City"];a.outFields=r,a.singleLineFieldName="SingleLine"}a.url=a.url,delete a.url}})):e={...e,includeDefaultSources:!0},e}async _setFloorLevel(e){if(!e)return;let t=this._selectedLayer,s=t?.floorInfo?.floorField;if(s){let i=t.fields.find(o=>o.name===s);if(i&&!t?.formTemplate)this._editor?.viewModel.featureFormViewModel&&(this._editor.viewModel.featureFormViewModel.setValue(i.name,e),i.editable=!1);else if(t.formTemplate&&this.formElements&&this.ExpressionInfo&&this.FieldElement){let o=new this.ExpressionInfo({expression:`"${e}"`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),a=new this.FieldElement({label:s,editableExpression:"false",fieldName:s,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:o.name});this._updatedMapView?.map.editableLayers.forEach(r=>{let n=this.formElements.orgElements,l=this.formElements.orgExpressionInfos,u=[...n];if(u.push(a),r.type==="feature"&&this.FormTemplate){let _=r,E=new this.FormTemplate({title:_?.formTemplate?.title,description:_?.formTemplate?.description,elements:u,expressionInfos:[o].concat(l)});r.formTemplate=E}})}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach(e=>{let t=e.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");t?.querySelector("header")?.setAttribute("style","display: none"),t?.querySelector("footer")?.setAttribute("style","display: none")}))}async submitted(e){if(e.invalid.length){this._isSubmitBtnClicked=!1;return}if(this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{this._editor?.activeWorkflow&&(await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some(t=>{if(t.error)throw t.error}))}catch(t){this.fail.emit(t);return}this.success.emit()}}async timeout(e){return new Promise(t=>setTimeout(t,e))}};M("create-feature",w);export{w as CreateFeature};
|
package/dist/cdn/KAP76DTH.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.20250513.1 */
|
4
|
-
import{b as e,e as r}from"./BWXM7YAS.js";import"./UVWG3C2B.js";import"./52BCWQEA.js";import"./6CYK6BB7.js";import{d as t}from"./7POMEGOT.js";import"./ICTNZMXC.js";import"./LJVAXK4D.js";import"./OOKZNHYN.js";import"./KJUPNH26.js";import"./TGKBXQFJ.js";import"./BTPTRXRA.js";import"./ARTYQZHE.js";import"./Q3SDKCO5.js";import"./HDVUMH4E.js";import"./AZKYXX53.js";async function c(a,n){let o=await e(Object.assign({channelId:a,data:{relations:[t.CHANNEL_ACL]}},n.hubRequestOptions));return r(o,n.currentUser)}export{c as fetchHubChannel};
|
package/dist/cdn/LYF2DSS7.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.20250513.1 */
|
4
|
-
import{a,b}from"./JYBRQYQO.js";import"./KXKPHNIN.js";import"./F2TP7D3Z.js";import"./4DOBOTOA.js";import"./QMZEUTLX.js";import"./R2H5RSJ2.js";import"./AZKYXX53.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
|
package/dist/cdn/M2IPXBJW.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.20250513.1 */
|
4
|
-
import{a as r}from"./66TACLFN.js";import{B as l,c as s,d as e,w as c,x as o,z as n}from"./NUCM6ABX.js";import"./AZKYXX53.js";var h=s`/** @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
|
-
*/calcite-card{width:240px}@media (max-width: 800px){calcite-card{width:calc(50% - .5rem)}}@media (max-width: 400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(50%);filter:brightness(50%);-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease;transition:all 1s ease}calcite-card:hover .hover-text{opacity:1;color:var(--calcite-color-text-inverse)}calcite-card:hover{outline:2px solid var(--calcite-ui-brand);box-sizing:border-box}.chip-updated{--calcite-chip-icon-color: var(--calcite-ui-brand)}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.hover-text{transition:.5s ease;opacity:0;position:absolute;top:30%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}`,t=class extends c{constructor(){super(...arguments),this.chip="none",this.description="",this.heading="",this.itemId="",this.thumbnail="",this._translations=r({name:"solution-details-card",blocking:!0})}static{this.properties={chip:1,description:1,heading:1,itemId:1,thumbnail:1,_translations:16}}static{this.styles=h}render(){console.log(this.chip);let d=this.chip==="updated"?"chip-updated":"chip-deployed",a="solution-details-card-chip",i=this.chip==="updated"?this._translations.updated:this._translations.deployed;return e`<div><calcite-card .label=${this.description} @click=${this._cardSelected}><div slot=thumbnail><img class="thumbnail" alt="Sample image alt" src=${this.thumbnail??n}><div class="hover-text"><calcite-icon class="info-icon" icon=information scale=s></calcite-icon><div>${this._translations.viewDetails}</div></div></div><span slot=heading>${this.heading}</span><p slot=description>${this.description}</p>${this.chip!=="none"?e`<div slot=footer-end><calcite-chip class=${o(d)} .icon=${this.chip==="updated"?"mega-phone":"check-circle"} id=${a} .label=${i} .value=${i} scale=s></calcite-chip><calcite-tooltip .referenceElement=${a}><span>${i}</span></calcite-tooltip></div>`:void 0}<div slot=footer-start></div></calcite-card></div>`}_cardSelected(){alert(`Do actions for ${this.itemId}`)}};l("solution-details-card",t);export{t as SolutionDetailsCard};
|