@esri/solutions-components 1.0.0-next.20250529 → 1.0.0-next.20250530
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/{TY2EF45G.js → 23QD6NT3.js} +2 -2
- package/dist/cdn/{2ZUJD5AD.js → 2BKGC3GR.js} +2 -2
- package/dist/cdn/{IG7QAE66.js → 2EOEAV5E.js} +2 -2
- package/dist/cdn/2NWAL23W.js +4 -0
- package/dist/cdn/{WE55IR65.js → 2VNIKRUP.js} +2 -2
- package/dist/cdn/{3U2U74SE.js → 2WTCHQJH.js} +2 -2
- package/dist/cdn/{IRRQO5CV.js → 2XITJCRB.js} +2 -2
- package/dist/cdn/{M6SOFRXG.js → 2Z3TWB2K.js} +2 -2
- package/dist/cdn/{CMN2AYDQ.js → 36LI3UQA.js} +2 -2
- package/dist/cdn/{VGPBHCUA.js → 3CHLZWTV.js} +2 -2
- package/dist/cdn/{2EHK45MD.js → 43ULSAMW.js} +2 -2
- package/dist/cdn/{PIPEV3OJ.js → 474ZEOFB.js} +1 -1
- package/dist/cdn/{6CNKQASY.js → 4AKAPNSY.js} +2 -2
- package/dist/cdn/{34WE4WGE.js → 4FC3X2PR.js} +2 -2
- package/dist/cdn/{XSGGYDKA.js → 4M4MXT54.js} +2 -2
- package/dist/cdn/{YEZX2STW.js → 4MBXYMTN.js} +2 -2
- package/dist/cdn/{UBBHZHDW.js → 4UN2BYLH.js} +1 -1
- package/dist/cdn/{CQ52DPYT.js → 4WQSWJOC.js} +6 -6
- package/dist/cdn/{MERI2IPM.js → 57KRALMV.js} +2 -2
- package/dist/cdn/{I23XII7K.js → 5AXS3KFI.js} +2 -2
- package/dist/cdn/{MBVXL42Z.js → 5HIKUFVB.js} +2 -2
- package/dist/cdn/{L65DCN7P.js → 5LO4GJR2.js} +2 -2
- package/dist/cdn/{CD7VMTO4.js → 5S2LGZK4.js} +2 -2
- package/dist/cdn/5S33JONB.js +18 -0
- package/dist/cdn/{JHLZBE2H.js → 5TJLMZD4.js} +2 -2
- package/dist/cdn/{VKETYNXW.js → 5TRKAS2N.js} +1 -1
- package/dist/cdn/{CJAS26OB.js → 5Y5ORVLB.js} +1 -1
- package/dist/cdn/{VSTGGUZK.js → 5ZNOFKZT.js} +2 -2
- package/dist/cdn/623GWCXD.js +18 -0
- package/dist/cdn/{W7QG4M7T.js → 624IUPMH.js} +2 -2
- package/dist/cdn/{ZOOVZHOK.js → 65WW5KKH.js} +2 -2
- package/dist/cdn/{DVR62LDC.js → 66KXCMW2.js} +2 -2
- package/dist/cdn/{KQIZ2GDQ.js → 6B752FN2.js} +2 -2
- package/dist/cdn/{WLKUJQRU.js → 6DWD2XLO.js} +2 -2
- package/dist/cdn/{HT74CDSC.js → 6EHPMLHH.js} +2 -2
- package/dist/cdn/{I6Z5B637.js → 6OHWZOS5.js} +2 -2
- package/dist/cdn/{EWVKDPUE.js → 6PMWYOH6.js} +2 -2
- package/dist/cdn/{KTZDXQPI.js → 6TLILFC7.js} +2 -2
- package/dist/cdn/{OFMQL2TF.js → 6WM4LAYI.js} +1 -1
- package/dist/cdn/{GZKPFYAM.js → 6Y2HFRCC.js} +2 -2
- package/dist/cdn/{5VSN554X.js → 73MN3UQT.js} +2 -2
- package/dist/cdn/{5UITQU2N.js → 76ZVHQZN.js} +2 -2
- package/dist/cdn/{VW6JN55F.js → 77XUB3YE.js} +2 -2
- package/dist/cdn/7DEB6EKJ.js +4 -0
- package/dist/cdn/{ZF3JCFZR.js → 7HKKUGXJ.js} +3 -3
- package/dist/cdn/{PQITD64K.js → 7ICYEZEV.js} +1 -1
- package/dist/cdn/{A7H7UXUU.js → 7MSPLAAS.js} +1 -1
- package/dist/cdn/{HO55MVPH.js → 7RRAT3I3.js} +2 -2
- package/dist/cdn/{TNZ4XBH5.js → A3472HMO.js} +2 -2
- package/dist/cdn/{YZ5BUYLK.js → A7QSMG5S.js} +1 -1
- package/dist/cdn/{SIUCADXK.js → AAZLISVR.js} +2 -2
- package/dist/cdn/{PSU4Y4GU.js → ACD5DGKO.js} +2 -2
- package/dist/cdn/{OEKUH3DY.js → ADKZI66G.js} +2 -2
- package/dist/cdn/{SHS2OYS6.js → AOWCHDDD.js} +2 -2
- package/dist/cdn/{SVOLMSLO.js → ASAQWYLX.js} +2 -2
- package/dist/cdn/{B6O5E62J.js → ASMSD26H.js} +2 -2
- package/dist/cdn/{ELZHWADN.js → AWWFUP7R.js} +2 -2
- package/dist/cdn/{KK4R4RB5.js → B5VH5463.js} +2 -2
- package/dist/cdn/{QV4737XL.js → B6D7BVKN.js} +2 -2
- package/dist/cdn/{CBFZPGQJ.js → B6UMTBML.js} +2 -2
- package/dist/cdn/{XO4KTFRU.js → B7LQMG3R.js} +2 -2
- package/dist/cdn/{Z5IQXT4B.js → BHDI3U4H.js} +2 -2
- package/dist/cdn/{QVUPBSTG.js → BJMWCYCG.js} +1 -1
- package/dist/cdn/{3DCJPGOF.js → BLRHWO52.js} +2 -2
- package/dist/cdn/{3UJZ5I7O.js → BTLOBHUI.js} +2 -2
- package/dist/cdn/BWUWGBTF.js +4 -0
- package/dist/cdn/{XYIQTF6U.js → C5O32W6W.js} +2 -2
- package/dist/cdn/{ANSHXVUS.js → C6W5EVRT.js} +2 -2
- package/dist/cdn/{OQHQ57J7.js → C7F3GRAL.js} +2 -2
- package/dist/cdn/{TEP3NDWJ.js → CDW32ZV2.js} +2 -2
- package/dist/cdn/{SYSXQSA6.js → CIR5U4D6.js} +2 -2
- package/dist/cdn/{UCRNQMRU.js → CNE6Q3HD.js} +2 -2
- package/dist/cdn/{KTRLOM42.js → COHNJZCA.js} +2 -2
- package/dist/cdn/{22F2E7DL.js → CRVOSDOH.js} +2 -2
- package/dist/cdn/{V2DXFLU4.js → CVHD4WPU.js} +2 -2
- package/dist/cdn/{VNV6A7CF.js → CVY3C2IL.js} +2 -2
- package/dist/cdn/{7ZUUC6DP.js → D3CEKY4I.js} +2 -2
- package/dist/cdn/{NGIRTVWH.js → D64CJOFO.js} +2 -2
- package/dist/cdn/{QZUAQQ3P.js → DFVGHMS4.js} +2 -2
- package/dist/cdn/DI3ZJNYG.js +4 -0
- package/dist/cdn/{6L3F6BFA.js → DKFDVAPB.js} +2 -2
- package/dist/cdn/{V3BLUNST.js → DMOHDVMJ.js} +2 -2
- package/dist/cdn/{7M6YXFB5.js → DPCZKJNP.js} +2 -2
- package/dist/cdn/{XRG5DQGE.js → DPQI6KC3.js} +2 -2
- package/dist/cdn/{YNGA26LA.js → DTFCT5IZ.js} +2 -2
- package/dist/cdn/{ZEHWM6HI.js → DXVTCY4M.js} +2 -2
- package/dist/cdn/{MTOOTZQI.js → EDGMFTA5.js} +1 -1
- package/dist/cdn/{OMPBVFCR.js → FBFPEXXQ.js} +2 -2
- package/dist/cdn/{CW2WNLB7.js → FINGXX6A.js} +2 -2
- package/dist/cdn/{AMSXU6J4.js → FIZQWFHG.js} +2 -2
- package/dist/cdn/{RFEBS7C5.js → FJZZPZAP.js} +1 -1
- package/dist/cdn/{YQDYJQJ4.js → FLMBYBSQ.js} +2 -2
- package/dist/cdn/{4IOIIFIM.js → FMBJIOBG.js} +2 -2
- package/dist/cdn/{HXPK6KDH.js → FOARVMCU.js} +1 -1
- package/dist/cdn/{MDFCULAI.js → FT36ADUC.js} +2 -2
- package/dist/cdn/{T3NA6UDZ.js → FVYY2V6T.js} +2 -2
- package/dist/cdn/{23PMGEQL.js → FX4JCXT3.js} +2 -2
- package/dist/cdn/{NBKOPC5Q.js → G2RF3XGL.js} +2 -2
- package/dist/cdn/{S3UGHIFC.js → G6J2G3OU.js} +2 -2
- package/dist/cdn/{SXJ7GRUF.js → G6RPSMZU.js} +2 -2
- package/dist/cdn/{6DXAXPUD.js → GAJRZJ5F.js} +2 -2
- package/dist/cdn/{6R6OYJVT.js → GHOZRGNX.js} +2 -2
- package/dist/cdn/GIZRBHCR.js +18 -0
- package/dist/cdn/{PISN5OKR.js → GNLCPEV7.js} +2 -2
- package/dist/cdn/{KE74BJMB.js → GPVKAG4C.js} +2 -2
- package/dist/cdn/{RZXGXREU.js → GULDKM5K.js} +2 -2
- package/dist/cdn/{M3AVCRO4.js → GVMSMEI4.js} +2 -2
- package/dist/cdn/{P4LJCVA7.js → GWZJKQMN.js} +2 -2
- package/dist/cdn/{7MSRA3IO.js → H22ZUYLG.js} +3 -3
- package/dist/cdn/H3WID2XT.js +18 -0
- package/dist/cdn/{SRJLXS6W.js → H3YXFKQG.js} +2 -2
- package/dist/cdn/{56BQACWT.js → H46M3Z3P.js} +2 -2
- package/dist/cdn/{HD7XGDY6.js → H46O6YAN.js} +2 -2
- package/dist/cdn/{SZX7DHFT.js → H5ZIHIO2.js} +3 -3
- package/dist/cdn/{SAEVHHR3.js → H6V2DNZK.js} +2 -2
- package/dist/cdn/{QIB2KP72.js → HBZ4X7UP.js} +2 -2
- package/dist/cdn/{JYK6TDSJ.js → HF75TXAE.js} +2 -2
- package/dist/cdn/{DRJABTK7.js → HK4LMSCI.js} +2 -2
- package/dist/cdn/{XHJWTMCT.js → HOZJEHZI.js} +2 -2
- package/dist/cdn/{MMPQ2QJN.js → HPD42QK2.js} +2 -2
- package/dist/cdn/{LDMOVLG2.js → HSDQUCF6.js} +2 -2
- package/dist/cdn/{NE3FOSLN.js → HUJDORKB.js} +2 -2
- package/dist/cdn/{DHSJIEVP.js → IAZYT5SM.js} +2 -2
- package/dist/cdn/{L2MT5NNG.js → IFQJHKJ3.js} +2 -2
- package/dist/cdn/{5TFWVXSN.js → INHTUKGG.js} +2 -2
- package/dist/cdn/{APEQ2BTV.js → IOFFIYTL.js} +1 -1
- package/dist/cdn/{BA5HIJYD.js → IWEV46QA.js} +2 -2
- package/dist/cdn/{FA54BB4Q.js → IY4EENZ5.js} +2 -2
- package/dist/cdn/{KBGNJGIB.js → JDBE77NZ.js} +2 -2
- package/dist/cdn/{EMBLQAAQ.js → JDPFMWSP.js} +2 -2
- package/dist/cdn/{FF6RFYZ3.js → JHW7VZTV.js} +2 -2
- package/dist/cdn/{UTIFEFDK.js → JL5VELML.js} +2 -2
- package/dist/cdn/{6MAL6YPV.js → JQ5YNHDK.js} +2 -2
- package/dist/cdn/{B54RDYLP.js → JRD5PLWA.js} +2 -2
- package/dist/cdn/{DKKGZZOY.js → JSUMCSCE.js} +2 -2
- package/dist/cdn/{MXLHE5QX.js → K4F6G4OQ.js} +1 -1
- package/dist/cdn/{2XUUNJUX.js → KPU6AFJN.js} +2 -2
- package/dist/cdn/KVNQHEXQ.js +4 -0
- package/dist/cdn/{O5BDM4G2.js → LCP3BY3N.js} +2 -2
- package/dist/cdn/{A37BTCTY.js → LCUHKJMS.js} +2 -2
- package/dist/cdn/{4F2LFQN2.js → LI5GC7CN.js} +2 -2
- package/dist/cdn/{WKAFVMUJ.js → LMGSYVDG.js} +1 -1
- package/dist/cdn/{24ELTHH2.js → LQRMHTGZ.js} +2 -2
- package/dist/cdn/{T6MGJ2FX.js → LRUGHWTN.js} +1 -1
- package/dist/cdn/{GKDLJDIH.js → LXA33IHT.js} +2 -2
- package/dist/cdn/{ADPT4Z5I.js → LZS774B3.js} +1 -1
- package/dist/cdn/{N6BYO52H.js → MFK4TJVR.js} +2 -2
- package/dist/cdn/{72OMG7WE.js → MHWXPIZF.js} +2 -2
- package/dist/cdn/{RWV5F7WK.js → MJ7SNROO.js} +2 -2
- package/dist/cdn/{VIDPRDXR.js → MJ7WUNVY.js} +2 -2
- package/dist/cdn/{TMGKZSJI.js → MPF442O4.js} +2 -2
- package/dist/cdn/{WY7J26FD.js → MPJ2AA4Y.js} +2 -2
- package/dist/cdn/{4AGBYYWR.js → MSAGS3RU.js} +2 -2
- package/dist/cdn/{7ORG4F3G.js → MSC6SQKC.js} +2 -2
- package/dist/cdn/{O24TCIIN.js → MTI5LVZW.js} +2 -2
- package/dist/cdn/{ODURGCIS.js → MZNCYU5F.js} +2 -2
- package/dist/cdn/{U4OCNATD.js → N4SJLKUB.js} +2 -2
- package/dist/cdn/{YOTK6Z27.js → N6WVCUYZ.js} +2 -2
- package/dist/cdn/{UAF53BXA.js → NFHEIYMD.js} +2 -2
- package/dist/cdn/{WZ6XHGCP.js → NGOP7PKK.js} +2 -2
- package/dist/cdn/{SMXI5EIJ.js → NIVL5UGT.js} +2 -2
- package/dist/cdn/{JXODPBXP.js → NKOVTFUU.js} +1 -1
- package/dist/cdn/{G7QJKSNL.js → NO2SL2YF.js} +1 -1
- package/dist/cdn/{UKO5L625.js → NOSOENXA.js} +2 -2
- package/dist/cdn/{EM3G7QFZ.js → NPELRLAT.js} +1 -1
- package/dist/cdn/{GN66Y5LZ.js → NQHY7XX2.js} +2 -2
- package/dist/cdn/{VVAGB4VS.js → NUCJR6CY.js} +2 -2
- package/dist/cdn/{DWULDOGT.js → NW4KXWWN.js} +2 -2
- package/dist/cdn/{QQ3M5GWK.js → O34SMVFC.js} +2 -2
- package/dist/cdn/{GKNGHRMJ.js → O7VNTXYR.js} +1 -1
- package/dist/cdn/{7QCSUQ3P.js → OFMVTSKF.js} +2 -2
- package/dist/cdn/{YLMIP3RE.js → OGSX3AIB.js} +2 -2
- package/dist/cdn/{5UJJLT3Q.js → OK6EFAL5.js} +2 -2
- package/dist/cdn/{UYT46AKO.js → OKMLPIEO.js} +2 -2
- package/dist/cdn/{P6ZDLJIZ.js → OL6BCU24.js} +2 -2
- package/dist/cdn/{DYD4LMT3.js → OLE4GCSZ.js} +2 -2
- package/dist/cdn/{W56NSLCQ.js → OOIVSIXL.js} +2 -2
- package/dist/cdn/{QBTSHZ23.js → OTV4TIHA.js} +1 -1
- package/dist/cdn/{SDRE7JDF.js → OY2EULMD.js} +1 -1
- package/dist/cdn/{EDIBA6QG.js → PC7NVT5O.js} +2 -2
- package/dist/cdn/{XOUHNJHN.js → PKQBHNHV.js} +2 -2
- package/dist/cdn/{HNF452FU.js → PLZQ55P6.js} +1 -1
- package/dist/cdn/{23PVARAU.js → PNYGXVOF.js} +2 -2
- package/dist/cdn/{K4W6SYTG.js → PQ6UKR2D.js} +2 -2
- package/dist/cdn/PQF5AGW3.js +18 -0
- package/dist/cdn/{JQDAEE73.js → PUL6DFZP.js} +2 -2
- package/dist/cdn/{LQDHWWRU.js → PYTYKQXT.js} +2 -2
- package/dist/cdn/{TD5IVTRF.js → Q2NP2O3M.js} +1 -1
- package/dist/cdn/{SZNSMDGT.js → QHCRENJA.js} +2 -2
- package/dist/cdn/{BF37ZEPR.js → QKSO2DZS.js} +2 -2
- package/dist/cdn/{OVTA5H4T.js → QQFRILT6.js} +2 -2
- package/dist/cdn/QSOWUBRL.js +18 -0
- package/dist/cdn/{5RMSLPWG.js → QUXU6A5O.js} +2 -2
- package/dist/cdn/{CVRCQ5HP.js → QWW5LVKF.js} +1 -1
- package/dist/cdn/{XLZ64BEJ.js → R2MSIDPH.js} +2 -2
- package/dist/cdn/{QM5H7VYL.js → R4TKAAQV.js} +2 -2
- package/dist/cdn/{2ZPTNUA6.js → R7RG6ML5.js} +2 -2
- package/dist/cdn/{DYKRSLLP.js → RFBPGTLV.js} +2 -2
- package/dist/cdn/{ACRA7E6W.js → RJMRH5EB.js} +2 -2
- package/dist/cdn/{5ILOL3VZ.js → RM2TEOMI.js} +2 -2
- package/dist/cdn/{GFO4YOIW.js → RTSDGCAZ.js} +2 -2
- package/dist/cdn/{EYFEAXBT.js → RU4LFZ43.js} +2 -2
- package/dist/cdn/{EUFQQOA4.js → RUXEHYBS.js} +2 -2
- package/dist/cdn/{UJLJGLW7.js → RUZUM5JL.js} +2 -2
- package/dist/cdn/{7ICHGNXG.js → RVP3IPFW.js} +2 -2
- package/dist/cdn/{MRPHTYOJ.js → RZ64SXIZ.js} +2 -2
- package/dist/cdn/S3DJ42LQ.js +4 -0
- package/dist/cdn/{SZEM2EHO.js → S76CATML.js} +2 -2
- package/dist/cdn/{NAC4IVQN.js → S7HDN545.js} +2 -2
- package/dist/cdn/{7MRTXU77.js → SAVY6UWC.js} +2 -2
- package/dist/cdn/{HGQZCOHD.js → SFZSSATF.js} +1 -1
- package/dist/cdn/{HRSYEVGT.js → SITUZTCB.js} +1 -1
- package/dist/cdn/{WOGQTTMQ.js → SM4ERQVS.js} +2 -2
- package/dist/cdn/SOCFGEQX.js +4 -0
- package/dist/cdn/{MV427I3C.js → STR7L3II.js} +1 -1
- package/dist/cdn/{HWO7EVRZ.js → SUYA6BJE.js} +2 -2
- package/dist/cdn/SWLTPJE7.js +19 -0
- package/dist/cdn/{OA7M66YO.js → T6ENDM5I.js} +2 -2
- package/dist/cdn/{M4IXEKBY.js → TDAFNKRF.js} +2 -2
- package/dist/cdn/{GCQF54UK.js → TGF4D4AP.js} +2 -2
- package/dist/cdn/{62Q46XIH.js → TJYWSXAE.js} +2 -2
- package/dist/cdn/{45XFWRP7.js → TNKUKSQO.js} +2 -2
- package/dist/cdn/{KPAQ3ZTS.js → TZB4SIVB.js} +2 -2
- package/dist/cdn/{UI36LWLL.js → U4AOWHPN.js} +2 -2
- package/dist/cdn/{WRH4ARRG.js → UCOGDUDQ.js} +2 -2
- package/dist/cdn/{QJFSESG4.js → UF7C45QH.js} +1 -1
- package/dist/cdn/{T4Y52WGE.js → UFB3TUWD.js} +2 -2
- package/dist/cdn/{2HS2BVZO.js → UJIWOKHV.js} +2 -2
- package/dist/cdn/ULUZHD23.js +18 -0
- package/dist/cdn/UMIMUVFB.js +18 -0
- package/dist/cdn/{U7VSH5U2.js → UMQ6LGJX.js} +2 -2
- package/dist/cdn/{G3J32RZQ.js → UPY2LA6F.js} +2 -2
- package/dist/cdn/{EW5DFDNH.js → USLNR5GM.js} +2 -2
- package/dist/cdn/{4LXXRE6R.js → UTUTEFAQ.js} +2 -2
- package/dist/cdn/{R6O5SXGW.js → UU5CNOQW.js} +1 -1
- package/dist/cdn/{4US6OCOO.js → UVD3URNY.js} +2 -2
- package/dist/cdn/{DJU7MWHJ.js → V3UMFOSY.js} +2 -2
- package/dist/cdn/{XC3Q5PZT.js → VI4S4LJS.js} +1 -1
- package/dist/cdn/{VKNATPNO.js → VNKBLONB.js} +2 -2
- package/dist/cdn/{VVFVPSSG.js → VQNKIJYJ.js} +2 -2
- package/dist/cdn/{5P5AUANP.js → VSFHEXKM.js} +2 -2
- package/dist/cdn/{2I3RBMYQ.js → VUE2KPGT.js} +1 -1
- package/dist/cdn/{SNKQKTF5.js → VVBT7KBI.js} +2 -2
- package/dist/cdn/{T5XPAGAX.js → VVKUWUHS.js} +2 -2
- package/dist/cdn/{TMZSC5SR.js → W3LLXNL3.js} +1 -1
- package/dist/cdn/{CT5CFC6A.js → W77AHKSW.js} +2 -2
- package/dist/cdn/{KNPSOAUA.js → WB3MRH4D.js} +2 -2
- package/dist/cdn/{SZIDYXBQ.js → WFQNYZM4.js} +2 -2
- package/dist/cdn/{LIBRFKCM.js → WG6YT6NR.js} +2 -2
- package/dist/cdn/{HCJHR62T.js → WJF7O2KL.js} +2 -2
- package/dist/cdn/{SYKS3B3D.js → WTHR4PDS.js} +2 -2
- package/dist/cdn/{VFBNMUDW.js → WVOYVMPB.js} +2 -2
- package/dist/cdn/{3BLEPTHW.js → X472G43W.js} +2 -2
- package/dist/cdn/{J6CBKWC5.js → X5I4YW2D.js} +2 -2
- package/dist/cdn/{Z6R4EOTY.js → X7YNYBQ7.js} +1 -1
- package/dist/cdn/{7WLYMUGL.js → XANWM4XJ.js} +2 -2
- package/dist/cdn/{ULXGJVDB.js → XJHNY525.js} +2 -2
- package/dist/cdn/XJJZC34E.js +4 -0
- package/dist/cdn/{ZD3T67AM.js → XQTZGROY.js} +2 -2
- package/dist/cdn/{NSZXCZP7.js → XS2PGUTI.js} +2 -2
- package/dist/cdn/{2FMI4XL2.js → XUI76RRO.js} +2 -2
- package/dist/cdn/{75ZAC7NS.js → XXHTK6SD.js} +2 -2
- package/dist/cdn/{ETWIUFM7.js → Y6GOEXCP.js} +1 -1
- package/dist/cdn/{4BKMMULU.js → YDQ3OJQO.js} +1 -1
- package/dist/cdn/{XLDJZOUJ.js → YEZ45MYI.js} +2 -2
- package/dist/cdn/{GUDEXG6V.js → YGOJWFRE.js} +1 -1
- package/dist/cdn/{X5OWGOXU.js → YHPDJ5FN.js} +2 -2
- package/dist/cdn/{6DRKMWXF.js → YUXVO62S.js} +2 -2
- package/dist/cdn/YWKKYK5K.js +18 -0
- package/dist/cdn/{7W2AE66R.js → YWR7J3GR.js} +2 -2
- package/dist/cdn/{3HCDCU43.js → Z25W4Z6L.js} +2 -2
- package/dist/cdn/{FN24P4EB.js → Z3VO6XU3.js} +2 -2
- package/dist/cdn/{MIV6HEM2.js → ZBE4V2ZL.js} +2 -2
- package/dist/cdn/{XONRKBJJ.js → ZK3VF62M.js} +1 -1
- package/dist/cdn/{H6K43NC4.js → ZKKTR3BI.js} +1 -1
- package/dist/cdn/{XW74QTNT.js → ZKOIDQFC.js} +2 -2
- package/dist/cdn/assets/solution-deploying-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deploying-panel/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +140 -138
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.d.ts +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 +12 -5
- package/dist/components/create-feature/customElement.js +44 -50
- package/dist/components/create-related-feature/customElement.js +3 -3
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.d.ts +0 -6
- package/dist/components/crowdsource-reporter/customElement.js +98 -87
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.d.ts +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.d.ts +2 -0
- package/dist/components/feature-details/customElement.js +7 -5
- package/dist/components/feature-list/customElement.d.ts +2 -0
- package/dist/components/feature-list/customElement.js +20 -20
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +4 -4
- package/dist/components/map-card/customElement.js +17 -14
- 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 +11 -13
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.d.ts +1 -1
- package/dist/components/map-picker/customElement.js +5 -8
- 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.d.ts +5 -0
- package/dist/components/map-tools/customElement.js +15 -15
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-panel/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-panel/customElement.d.ts +1 -0
- package/dist/components/solution-deploy-panel/customElement.js +5 -5
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.d.ts +7 -0
- package/dist/components/solution-deploying-panel/customElement.js +48 -15
- package/dist/components/solution-deploying-panel/index.d.ts +7 -0
- package/dist/components/solution-deploying-panel/index.js +7 -0
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.d.ts +2 -0
- package/dist/components/solution-item-accordion/customElement.js +4 -4
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +144 -49
- package/dist/docs/docs.json +171 -38
- package/dist/docs/vscode.html-custom-data.json +14 -14
- package/dist/docs/web-types.json +68 -31
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +6 -6
- package/dist/types/lumina.d.ts +7 -5
- package/dist/types/preact.d.ts +7 -5
- package/dist/types/react.d.ts +7 -5
- package/dist/types/stencil.d.ts +7 -5
- package/package.json +1 -1
- package/dist/cdn/36U22S3P.js +0 -4
- package/dist/cdn/7EATDK55.js +0 -18
- package/dist/cdn/7XIDJLOC.js +0 -18
- package/dist/cdn/AXCYNZ46.js +0 -4
- package/dist/cdn/CKBIJDER.js +0 -4
- package/dist/cdn/E3PDIDRG.js +0 -18
- package/dist/cdn/ECDHMENM.js +0 -18
- package/dist/cdn/GC2WWII6.js +0 -4
- package/dist/cdn/GZHED2T5.js +0 -18
- package/dist/cdn/I5HRU5SK.js +0 -18
- package/dist/cdn/IAJ5KZ3E.js +0 -4
- package/dist/cdn/IPLAPU5V.js +0 -18
- package/dist/cdn/JL6K5LHB.js +0 -4
- package/dist/cdn/N6JZQI3A.js +0 -18
- package/dist/cdn/OK3WFQXW.js +0 -18
- package/dist/cdn/USR7IYW4.js +0 -19
- package/dist/cdn/VXGAHN5L.js +0 -4
- package/dist/cdn/WE2Y6SOG.js +0 -4
package/dist/types/stencil.d.ts
CHANGED
@@ -94,7 +94,7 @@ interface StencilConsentManager extends Required<Pick<ConsentManager, 'firstUseV
|
|
94
94
|
onConsentGranted?: EventHandler<HTMLConsentManagerElement["consentGranted"]>;
|
95
95
|
}
|
96
96
|
|
97
|
-
interface StencilCreateFeature extends Partial<Pick<CreateFeature, 'customizeSubmit' | 'enableSearch' | 'enableSnapping' | 'floorLevel' | 'formElements' | 'isMobile' | 'mapView' | 'reportingAreaLayer' | '
|
97
|
+
interface StencilCreateFeature extends Partial<Pick<CreateFeature, 'customizeSubmit' | 'enableSearch' | 'enableSnapping' | 'floorLevel' | 'formElements' | 'isMobile' | 'mapView' | 'reportingArea' | 'reportingAreaLayer' | 'reportingAreaMessage' | 'searchConfiguration' | 'selectedLayerId' | 'showGuidingMsg' | 'showSketchWidgets' | 'submitNewReportsMessage' | 'updateMapPosition'>>, StencilJsx.HTMLAttributes<HTMLCreateFeatureElement> {
|
98
98
|
onDrawComplete?: EventHandler<HTMLCreateFeatureElement["drawComplete"]>;
|
99
99
|
onEditingAttachment?: EventHandler<HTMLCreateFeatureElement["editingAttachment"]>;
|
100
100
|
onEditingLocation?: EventHandler<HTMLCreateFeatureElement["editingLocation"]>;
|
@@ -116,7 +116,7 @@ interface StencilCrowdsourceManager extends Partial<Pick<CrowdsourceManager, 'ap
|
|
116
116
|
onShowIntroductionWindow?: EventHandler<HTMLCrowdsourceManagerElement["showIntroductionWindow"]>;
|
117
117
|
}
|
118
118
|
|
119
|
-
interface StencilCrowdsourceReporter extends Partial<Pick<CrowdsourceReporter, 'center' | 'commentButtonText' | 'commentSubmittedMessage' | 'defaultWebmap' | 'description' | 'enableAnonymousAccess' | 'enableAnonymousComments' | 'enableComments' | 'enableHome' | 'enableLogin' | 'enableNewReports' | 'enableSearch' | 'enableSnapping' | 'enableZoom' | 'filterByMapExtent' | 'floorLevel' | 'isMobile' | 'layerExpressions' | 'layerId' | 'level' | 'loginTitle' | 'mapInfos' | 'mapView' | 'objectId' | 'reportButtonText' | 'reportingArea' | 'reportingAreaLayer' | 'reportingAreaMessage' | 'reportingOptions' | '
|
119
|
+
interface StencilCrowdsourceReporter extends Partial<Pick<CrowdsourceReporter, 'center' | 'commentButtonText' | 'commentSubmittedMessage' | 'defaultWebmap' | 'description' | 'enableAnonymousAccess' | 'enableAnonymousComments' | 'enableComments' | 'enableHome' | 'enableLogin' | 'enableNewReports' | 'enableSearch' | 'enableSnapping' | 'enableZoom' | 'filterByMapExtent' | 'floorLevel' | 'isMobile' | 'layerExpressions' | 'layerId' | 'level' | 'loginTitle' | 'mapInfos' | 'mapView' | 'objectId' | 'reportButtonText' | 'reportingArea' | 'reportingAreaLayer' | 'reportingAreaMessage' | 'reportingOptions' | 'reportsHeader' | 'reportSubmittedMessage' | 'searchConfiguration' | 'showComments' | 'showFeatureSymbol' | 'showFullCommentTitle' | 'showMyReportsOnly' | 'showUserImageInCommentsList' | 'sortOption' | 'submitNewReportsMessage' | 'theme' | 'zoomToScale'>>, StencilJsx.HTMLAttributes<HTMLCrowdsourceReporterElement> {
|
120
120
|
onTogglePanel?: EventHandler<HTMLCrowdsourceReporterElement["togglePanel"]>;
|
121
121
|
}
|
122
122
|
|
@@ -143,6 +143,7 @@ interface StencilEditCard extends Partial<Pick<EditCard, 'enableEditGeometry' |
|
|
143
143
|
|
144
144
|
interface StencilFeatureDetails extends Partial<Pick<FeatureDetails, 'enableSnapping' | 'graphics' | 'layerItemsHash' | 'mapView' | 'reportingOptions' | 'showFullCommentTitle' | 'showUserImageInCommentsList'>>, StencilJsx.HTMLAttributes<HTMLFeatureDetailsElement> {
|
145
145
|
onAddComment?: EventHandler<HTMLFeatureDetailsElement["addComment"]>;
|
146
|
+
onCommentClick?: EventHandler<HTMLFeatureDetailsElement["commentClick"]>;
|
146
147
|
onCommentSelect?: EventHandler<HTMLFeatureDetailsElement["commentSelect"]>;
|
147
148
|
onFeatureSelectionChange?: EventHandler<HTMLFeatureDetailsElement["featureSelectionChange"]>;
|
148
149
|
onLikeOrDislikeClicked?: EventHandler<HTMLFeatureDetailsElement["likeOrDislikeClicked"]>;
|
@@ -150,6 +151,7 @@ interface StencilFeatureDetails extends Partial<Pick<FeatureDetails, 'enableSnap
|
|
150
151
|
}
|
151
152
|
|
152
153
|
interface StencilFeatureList extends Partial<Pick<FeatureList, 'applyLayerViewFilter' | 'filterByMapExtent' | 'highlightOnHover' | 'highlightOnMap' | 'mapView' | 'noFeaturesFoundMsg' | 'pageSize' | 'reportingOptions' | 'selectedLayerId' | 'showErrorWhenNoFeatures' | 'showFeatureSymbol' | 'showFullTitle' | 'showInitialLoading' | 'showUserImageInList' | 'sortingInfo' | 'textSize' | 'whereClause'>>, StencilJsx.HTMLAttributes<HTMLFeatureListElement> {
|
154
|
+
onFeatureClick?: EventHandler<HTMLFeatureListElement["featureClick"]>;
|
153
155
|
onFeatureSelect?: EventHandler<HTMLFeatureListElement["featureSelect"]>;
|
154
156
|
}
|
155
157
|
|
@@ -223,7 +225,7 @@ interface StencilMapSelectTools extends Partial<Pick<MapSelectTools, 'bufferColo
|
|
223
225
|
onSelectionSetChange?: EventHandler<HTMLMapSelectToolsElement["selectionSetChange"]>;
|
224
226
|
}
|
225
227
|
|
226
|
-
interface StencilMapTools extends Partial<Pick<MapTools, 'basemapConfig' | 'defaultLayerId' | 'enableBasemap' | 'enableFloorFilter' | 'enableFullscreen' | 'enableHome' | 'enableLegend' | 'enableMapLayerPicker' | 'enableMapPicker' | 'enableSearch' | 'enableSelectionTool' | 'enableSingleExpand' | 'isMobile' | 'layout' | 'mapInfos' | 'mapView' | 'mapWidgetsSize' | 'parentComponentHeight' | 'parentComponentWidth' | 'position' | 'searchConfiguration' | 'selectedLayer' | 'selectedWebMapId' | 'showOnlyUpdatableLayers' | 'stackTools' | 'toolOrder' | 'zoomToolsSize'>>, StencilJsx.HTMLAttributes<HTMLMapToolsElement> {
|
228
|
+
interface StencilMapTools extends Partial<Pick<MapTools, 'basemapConfig' | 'defaultLayerId' | 'enableBasemap' | 'enabledLayerIds' | 'enableFloorFilter' | 'enableFullscreen' | 'enableHome' | 'enableLegend' | 'enableMapLayerPicker' | 'enableMapPicker' | 'enableSearch' | 'enableSelectionTool' | 'enableSingleExpand' | 'isMobile' | 'layout' | 'mapInfos' | 'mapView' | 'mapWidgetsSize' | 'parentComponentHeight' | 'parentComponentWidth' | 'position' | 'searchConfiguration' | 'selectedLayer' | 'selectedWebMapId' | 'showOnlyUpdatableLayers' | 'stackTools' | 'toolOrder' | 'zoomToolsSize'>>, StencilJsx.HTMLAttributes<HTMLMapToolsElement> {
|
227
229
|
}
|
228
230
|
|
229
231
|
interface StencilPciCalculator extends StencilJsx.HTMLAttributes<HTMLPciCalculatorElement> {
|
@@ -274,7 +276,7 @@ interface StencilSolutionDeployPanel extends Partial<Pick<SolutionDeployPanel, '
|
|
274
276
|
interface StencilSolutionDeployedCard extends Partial<Pick<SolutionDeployedCard, 'deployedDate' | 'description' | 'heading' | 'itemId' | 'owner' | 'thumbnail' | 'updateAvailable'>>, StencilJsx.HTMLAttributes<HTMLSolutionDeployedCardElement> {
|
275
277
|
}
|
276
278
|
|
277
|
-
interface StencilSolutionDeployingPanel extends StencilJsx.HTMLAttributes<HTMLSolutionDeployingPanelElement> {
|
279
|
+
interface StencilSolutionDeployingPanel extends Partial<Pick<SolutionDeployingPanel, 'solutionItem'>>, StencilJsx.HTMLAttributes<HTMLSolutionDeployingPanelElement> {
|
278
280
|
}
|
279
281
|
|
280
282
|
interface StencilSolutionDetailsCard extends Partial<Pick<SolutionDetailsCard, 'chip' | 'description' | 'heading' | 'itemId' | 'thumbnail'>>, StencilJsx.HTMLAttributes<HTMLSolutionDetailsCardElement> {
|
@@ -286,7 +288,7 @@ interface StencilSolutionDetailsPanel extends StencilJsx.HTMLAttributes<HTMLSolu
|
|
286
288
|
interface StencilSolutionItem extends Partial<Pick<SolutionItem, 'authentication' | 'itemId' | 'organizationVariables' | 'solutionVariables'>>, StencilJsx.HTMLAttributes<HTMLSolutionItemElement> {
|
287
289
|
}
|
288
290
|
|
289
|
-
interface StencilSolutionItemAccordion extends Partial<Pick<SolutionItemAccordion, 'linkType' | 'listSelectionMode' | 'templateInfos'>>, StencilJsx.HTMLAttributes<HTMLSolutionItemAccordionElement> {
|
291
|
+
interface StencilSolutionItemAccordion extends Partial<Pick<SolutionItemAccordion, 'linkType' | 'listSelectionMode' | 'templateInfos' | 'typeKeywords'>>, StencilJsx.HTMLAttributes<HTMLSolutionItemAccordionElement> {
|
290
292
|
onSolutionItemHover?: EventHandler<HTMLSolutionItemAccordionElement["solutionItemHover"]>;
|
291
293
|
onSolutionItemSelect?: EventHandler<HTMLSolutionItemAccordionElement["solutionItemSelect"]>;
|
292
294
|
onSolutionTypeHover?: EventHandler<HTMLSolutionItemAccordionElement["solutionTypeHover"]>;
|
package/package.json
CHANGED
package/dist/cdn/36U22S3P.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.20250529 */
|
4
|
-
import{a,b}from"./SAEVHHR3.js";import"./JXODPBXP.js";import"./SDRE7JDF.js";export{a as ChannelEditorTypes,b as ChannelSchema};
|
package/dist/cdn/7EATDK55.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.20250529 */
|
4
|
-
import{a as h}from"./23PVARAU.js";import{D as d,I as p,c as a,d as l,g as c,o as n}from"./2I3RBMYQ.js";import"./SDRE7JDF.js";var u=a`/** @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}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color: var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}`,r=class extends d{constructor(){super(...arguments),this.linkType="item",this.listSelectionMode="none",this.templateInfos=[],this._sortedTemplateInfos=[],this._translations=h({name:"solution-item-accordion",blocking:!0}),this._sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic (hosted)","Real Time Analytic (hosted)","Feed (hosted)","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Table (hosted, view)","Table (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"],this.solutionItemHover=n(),this.solutionItemSelect=n(),this.solutionTypeHover=n()}static{this.properties={linkType:1,listSelectionMode:1,templateInfos:0,_sortedTemplateInfos:16,_translations:16}}static{this.styles=u}willUpdate(e){e.has("templateInfos")&&(this.hasUpdated||this.templateInfos?.length>0)&&this.templateInfosWatchHandler()}async templateInfosWatchHandler(){this._sortedTemplateInfos=this._sortTemplates()}async collapseAll(){this.el?.shadowRoot?.querySelectorAll("calcite-accordion-item")?.forEach(e=>{e.expanded=!1})}async deselectAll(){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(e=>{e.selected&&(e.selected=!1,(e.parentElement?.parentElement).expanded=!1)})}async selectItem(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async load(){this._sortedTemplateInfos=this._sortTemplates()}render(){return this._getAccordion()}_deselectOthers(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id!==e&&(t.selected=!1)})}_getAccordion(){let e=[],t=this._sortedTemplateInfos.reduce((i,o)=>{let s=this._getTypeForDisplay(o.type,o.typeKeywords);return e.indexOf(s)<0&&(e.push(s),i.push(this._getAccordionItem(o))),i},[]);return l`<calcite-accordion class="border-override" selection-mode=single>${t}</calcite-accordion>`}_getAccordionItem(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords),i=this._sortedTemplateInfos.filter(o=>this._getTypeForDisplay(o.type,o.typeKeywords)===t);return l`<calcite-accordion-item .description=${`${t} (${i.length})`} @mouseenter=${()=>this.solutionTypeHover.emit({itemType:t,entering:!0})} @mouseleave=${()=>this.solutionTypeHover.emit({itemType:t,entering:!1})}><solution-item-icon class="padding-start-1 display-flex align-center" slot=actions-start .type=${e.type} .typeKeywords=${e.typeKeywords}></solution-item-icon>${this._getList(i)}</calcite-accordion-item>`}_getList(e){let t=this._sortTemplatesByTitle(e);return l`<calcite-list label selection-appearance=border .selectionMode=${this.listSelectionMode}>${t.map(i=>this._getListItem(i))}</calcite-list>`}_getListItem(e){let t=e.typeKeywords.includes("Deployed")&&e.url,i=this.linkType==="action";return l`<calcite-list-item id=${e.id??c} @mouseenter=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!0})} @mouseleave=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!1})} @calciteListItemSelect=${()=>{this._deselectOthers(e.id),this.solutionItemSelect.emit({itemId:e.id,selected:!0}),t&&!i&&window.open(e.url,"_blank")}} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${t&&!i?"underline":""}`}>${e.title}</div><div class="solution-list-item-description">${e.snippet}</div></div>${t&&i?l`<div slot=actions-end><calcite-action icon=launch .id=${`${e.id}-launch`} @click=${()=>window.open(e.url,"_blank")} text></calcite-action><calcite-tooltip overlay-positioning=fixed .referenceElement=${`${e.id}-launch`}><span>${this._translations?.openDetails}</span></calcite-tooltip></div>`:null}</calcite-list-item>`}_sortTemplatesByTitle(e){return e.sort((t,i)=>t.title<i.title?-1:t.title>i.title?1:0)}_sortTemplates(){return this.templateInfos.sort((e,t)=>{let i=this._getTypeForSort(e),o=this._getTypeForSort(t),s=this._sortOrder.indexOf(i),m=this._sortOrder.indexOf(o);return s-m})}_getTypeForSort(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords);return this._sortOrder.indexOf(t)<0&&(t="TypeNotFound"),t}_getTypeForDisplay(e,t){let i=e;if(e==="Feature Service"){let o=t.indexOf("View Service")>-1,s=t.indexOf("Table")>-1;i=o&&s?"Table (hosted, view)":s?"Table (hosted)":o?"Feature Layer (hosted, view)":"Feature Layer (hosted)"}return e==="Web Mapping Application"&&(i=t.indexOf("configurableApp")>-1?"Instant App":i),i=e==="Geoprocessing Service"?"Tool":i,i=e==="Feed"?"Feed (hosted)":i,i=e==="Real Time Analytic"?"Real Time Analytic (hosted)":i,i=e==="Big Data Analytic"?"Big Data Analytic (hosted)":i,i=e==="Vector Tile Service"?"Tile Layer":i,i}};p("solution-item-accordion",r);export{r as SolutionItemAccordion};
|
package/dist/cdn/7XIDJLOC.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.20250529 */
|
4
|
-
import{a as S}from"./AMSXU6J4.js";import"./HCJHR62T.js";import{c as v,j as L}from"./BF37ZEPR.js";import"./CJAS26OB.js";import"./QBTSHZ23.js";import{a as r,b as n}from"./BA5HIJYD.js";import{b as w}from"./QVUPBSTG.js";import{a as $}from"./23PVARAU.js";import{D as y,E as b,I,c as g,d as o,g as u,o as p,q as _}from"./2I3RBMYQ.js";import"./SDRE7JDF.js";function W(l){return l?.indexOf("http://")!==-1}function c(l){return W(l)?l.replace(/^http:\/\//,"https://"):l}function M(l,e,i){return i&&i.forEach(t=>{l.allLayers.forEach(s=>{s&&s.url===t.sourceUrl&&(s.url=c(t.proxyUrl),s.portalItem&&s.portalItem.when(()=>{s.portalItem.url=c(t.proxyUrl)}),e.request?.interceptors?.push({urls:t.sourceUrl,before:a=>{a.url&&a.url===t.sourceUrl&&(a.url=c(t.proxyUrl))}}))})}),l}var x=g`@layer{/** @license
|
5
|
-
* Copyright 2025 Esri
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
*/:host{display:block;--calcite-label-margin-bottom: 0;--calcite-block-padding: 0}.map-height{height:calc(100% - 53px)}.height-full{height:100%}.height-49-px{height:49px}.box-shadow{box-shadow:none!important}.visibility-hidden-1{visibility:hidden;height:1px}.hidden{visibility:hidden!important}.display-flex{display:flex}.display-none{display:none}.display-block{display:block}.absolute-right{position:absolute;right:0;left:unset}.esri-ui-inner-container.esri-ui-corner-container{direction:ltr}html[dir=rtl] .absolute-right{left:0;right:unset}@media only screen and (max-width: 1024px){.esri-zoom{display:none!important}}}`,f=class extends y{constructor(){super(),this.defaultWebmapId="",this.defaultLayerId="",this.enableHome=!1,this.enableLegend=!1,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableShare=!1,this.enableSingleExpand=!1,this.enableSearch=!1,this.enableBasemap=!1,this.hide=!1,this.zoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-left",this.mobileMapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.stackTools=!1,this.mapToolsOrder=[],this.mobileToolsOrder=[],this.isMapLayout=!1,this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.selectedFeaturesIds=[],this.showOnlyUpdatableLayers=!1,this.isMobile=!1,this.enableSelectionTool=!1,this._translations=$({name:"map-card",blocking:!0}),this._toolInfos=[],this._filterActive=!1,this._defaultWebmapHonored=!1,this._loadedId="",this._mapDiv=r(),this._mapPicker=r(),this._mapTools=r(),this._mobMapTools=r(),this._mapListExpanded=!1,this._definitionExpression="",this._mapLayerPicker=r(),this._toolbar=r(),this._selectedWebMapId="",this.mapChanged=p(),this.beforeMapChanged=p(),this.toggleFilter=p(),this.clearSelection=p(),this.listenOn(window,"mapInfoChange",this.mapInfoChange),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.enableSingleExpand=!0,this.stackTools=!0,S(window)}static{this.properties={appLayout:1,appProxies:1,defaultWebmapId:1,defaultLayerId:1,enableHome:5,enableLegend:5,enableFloorFilter:5,enableFullscreen:5,enableShare:5,enableSingleExpand:5,enableSearch:5,enableBasemap:5,basemapConfig:0,hide:5,zoomToolsSize:1,mapInfos:0,mapWidgetsIndex:9,mapWidgetsPosition:1,mobileMapWidgetsPosition:1,mapWidgetsSize:1,mapView:0,stackTools:5,theme:1,mapToolsOrder:0,mobileToolsOrder:0,isMapLayout:5,shareIncludeEmbed:5,shareIncludeSocial:5,selectedFeaturesIds:0,selectedLayer:0,zoomToScale:9,showOnlyUpdatableLayers:5,isMobile:5,mapInfo:0,enableSelectionTool:5,_translations:16,_searchConfiguration:16,_webMapInfo:16,_toolInfos:16,_filterActive:16,_mapDivHeight:16,_mapDivWidth:16}}static{this.styles=x}static{this.shadowRootOptions=_}willUpdate(e){e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("selectedLayer")&&this.selectedLayerWatchHandler(),e.has("selectedFeaturesIds")&&this.selectedFeaturesIdsWatchHandler()}appLayoutWatchHandler(){this._updateShareUrl()}async mapViewWatchHandler(){this.mapView&&this._updateShareUrl()}async selectedLayerWatchHandler(){await this.selectedLayer?.when(async()=>{this._definitionExpression=this.selectedLayer?.definitionExpression||""})}async selectedFeaturesIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions()}async resetFilter(){this._filterActive=!1,this._updateShareUrl()}async updateFilterState(e){this._filterActive=e,this._updateShareUrl()}async updateLayer(){this._mapLayerPicker.value&&this._mapLayerPicker.value.updateLayer()}async mapInfoChange(e){this._selectedWebMapId=e.detail.id,await this._loadMap(e.detail)}noLayersFound(){this.selectedLayer=void 0,this.selectedFeaturesIds=[]}layerSelectionChange(){setTimeout(()=>{this._initToolInfos()},50)}async load(){await this._initModules(),this._initToolInfos(),this._mapSizeObserver||(this._mapSizeObserver=new ResizeObserver(()=>{if(this._mapDivWidth&&this._mapDiv.value){let e=this.isMobile?160:110;this._mapDivWidth=this._mapDiv.value.offsetWidth-e}}))}render(){let e=this.isMapLayout?"display-flex height-49-px":"",i=this.hide?"visibility-hidden-1":"",t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",s=this.isMobile?"":this.mapInfos?.length>1||this.isMapLayout?"map-height":"height-full",a=this.isMapLayout?"":"display-none",d=this.isMobile?"":"hidden";return this._validateActiveActions(),o`${!this.isMobile&&o`<div class=${`${e} width-full`} ${n(this._toolbar)}>${this._getActionBar()}<div slot=header-actions-end class="display-flex absolute-right">${this.enableShare&&this.isMapLayout?this._getShare("share"):void 0}</div></div>`||""}<calcite-progress class=${b(a)} value=0></calcite-progress><div class=${`${i} ${s}`}><div class="height-full" ${n(this._mapDiv)}></div></div>${o`<map-tools .basemapConfig=${this.basemapConfig} class=${`box-shadow ${t}`} .defaultLayerId=${this.defaultLayerId} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableSearch=${this.enableSearch} .enableSingleExpand=${this.enableSingleExpand} .enableSelectionTool=${this.enableSelectionTool} .isMobile=${this.isMobile} .parentComponentHeight=${this._mapDivHeight} .parentComponentWidth=${this._mapDivWidth} .zoomToolsSize=${this.zoomToolsSize} layout=horizontal .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .position=${this.mapWidgetsPosition} .selectedLayer=${this.selectedLayer} .searchConfiguration=${this._searchConfiguration} .stackTools=${this.stackTools} .toolOrder=${this.mapToolsOrder} ${n(this._mapTools)}></map-tools><map-tools class=${`box-shadow ${t} ${d}`} .enableBasemap=${this.enableBasemap} enable-map-layer-picker enable-map-picker .isMobile=${this.isMobile} .zoomToolsSize=${this.zoomToolsSize} layout=vertical .mapInfos=${this.mapInfos} .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .parentComponentHeight=${this._mapDivHeight} .position=${this.mobileMapWidgetsPosition} .selectedLayer=${this.selectedLayer} .selectedWebMapId=${this._selectedWebMapId} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} .stackTools=${this.stackTools} .toolOrder=${this.mobileToolsOrder} ${n(this._mobMapTools)}></map-tools>`}`}updated(){this._mapDivHeight=this._mapDiv.value?.offsetHeight??0,document.onclick=e=>this._handleDocumentClick(e)}loaded(){this._mapDiv.value&&this._mapSizeObserver?.observe(this._mapDiv.value),this._updateShareUrl()}async _initModules(){let[e,i,t,s]=await w(["esri/WebMap","esri/views/MapView","esri/widgets/Home","esri/config"]);this.WebMap=e,this.MapView=i,this.Home=t,this.esriConfig=s}async _loadMap(e){let i=!this._defaultWebmapHonored&&this.defaultWebmapId,t=this.mapInfos?.filter(h=>h.id===this.defaultWebmapId),s=JSON.stringify(e)!==JSON.stringify(this._webMapInfo);this._webMapInfo=i&&t?t[0]:!e?.id&&this.mapInfos.length>0?this.mapInfos[0]:e;let a=this._webMapInfo.id,d=i&&e?.id===this.defaultWebmapId;if(this._loadedId!==a&&!i||d){let h=this.WebMap&&new this.WebMap({portalItem:{id:a}});this.appProxies&&h&&this.esriConfig&&(await h.load(),await M(h,this.esriConfig,this.appProxies)),this.mapView=this.MapView&&new this.MapView({container:this._mapDiv.value,map:h,resizeAlign:"center"}),this._loadedId=a,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapView&&await this.mapView.when(()=>{if(this.mapView){let m=this.isMobile?160:110;this._mapDivWidth=this._mapDiv.value&&this._mapDiv.value.offsetWidth-m,this._mapTools.value&&this.mapView.ui.add(this._mapTools.value,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._mobMapTools.value&&this.mapView.ui.add(this._mobMapTools.value,{position:this.mobileMapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=d?!0:this._defaultWebmapHonored,this.mapChanged.emit({id:a,mapView:this.mapView})}})}else i?(this._defaultWebmapHonored=!0,this._mapPicker.value&&this._mapPicker.value.setMapByID(a)):s&&this.mapView&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:a,mapView:this.mapView}));this._updateShareUrl()}_getActionBar(){let e=this.mapInfos?.length>1?"":"display-none",i=this.isMapLayout?"":"width-full",t="display-flex",s=this.isMapLayout?"":"display-none";return o`<calcite-action-bar class=${b(t)} expand-disabled expanded id=${this._getId("bar")??u} layout=horizontal><map-picker class=${`${e} ${i}`} id=map-picker .isMapLayout=${this.isMapLayout} .mapInfos=${this.mapInfos} .selectedWebMapId=${this._selectedWebMapId} ${n(this._mapPicker)}></map-picker><div class=${`mapView-header display-flex ${s}`} id=solutions-map-layer-picker-container><div class=${`border-end ${t}`}>${this.mapView&&o`<map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this.selectedLayer?[this.selectedLayer.id]:[]} show-single-layer-as-label show-tables show-tables-disabled type=dropdown ${n(this._mapLayerPicker)}></map-layer-picker>`||""}</div></div>${this.isMapLayout?this._getActions():void 0}</calcite-action-bar>`}_getShare(e){return o`<div class="share-action" id=${this._getId(e)??u}>${this.mapView&&o`<instant-apps-social-share class="instant-app-share" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${n(i=>{i&&(this._shareNode=i,this._updateShareUrl())})}></instant-apps-social-share>`||""}${this._getToolTip("bottom",e,this._translations?.share)}</div>`}_updateShareUrl(){let e=this._shareNode?.shareUrl;if(!e)return;let i=new URL(e);this._loadedId?i.searchParams.set("webmap",this._loadedId):i.searchParams.delete("webmap"),this.selectedLayer?.id?i.searchParams.set("layer",this.selectedLayer.id):i.searchParams.delete("layer"),this.selectedFeaturesIds?.length>0?i.searchParams.set("oid",this.selectedFeaturesIds.join(",")):i.searchParams.delete("oid"),this.appLayout&&i.searchParams.set("applayout",this.appLayout),this._shareNode&&(this._shareNode.shareUrl=i.href)}_initToolInfos(){let e=this.selectedFeaturesIds?.length>0;this.selectedFeaturesIds?.length>1;let i=[];i.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this._toggleFilter(),disabled:!1}),i.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e}),i.push({active:!1,icon:"refresh",indicator:!1,label:this._translations.refresh,func:()=>this.selectedLayer?.refresh(),disabled:!1}),i.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this.clearSelection.emit(),disabled:!e}),this._toolInfos=i}_validateActiveActions(){let e=["filter"];this._toolInfos?.forEach(i=>{i&&e.indexOf(i.icon)>-1&&i.icon==="filter"&&(i.indicator=this._filterActive)})}_validateEnabledActions(){let e=this.selectedFeaturesIds?.length>0,i=this.selectedFeaturesIds?.length>1&&this.selectedLayer?.capabilities?.operations?.supportsUpdate,t=["zoom-to-object","pencil","erase"];this._toolInfos?.forEach(s=>{s&&t.indexOf(s.icon)>-1&&(s.disabled=s.icon==="pencil"?!i:!e)})}_handleDocumentClick(e){e.target.tagName!=="MAP-PICKER"&&(this._mapListExpanded=!1,this._mapPicker.value&&this._mapPicker.value.close())}async _zoom(){if(this.selectedLayer&&this.mapView){let e=await v(this.mapView,this.selectedLayer.id);e&&await L(this.selectedFeaturesIds,e,this.mapView,!0,void 0,this.zoomToScale)}}async _toggleFilter(){this.toggleFilter.emit()}_hasFilterExpressions(){let e=[];return this.mapInfo?.filterConfig?.layerExpressions&&this.selectedLayer?.id&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===this.selectedLayer?.id)),e.length>0}_getActions(){return this._toolInfos?.reduce((e,i)=>(i&&e.push(this._getAction(i.active,i.icon,i.indicator,i.label,i.func,i.disabled,i.loading)),e),[])}_getToolTip(e,i,t){return document.getElementById(i)?o`<calcite-tooltip .placement=${e} .referenceElement=${"map-"+i}><span>${t}</span></calcite-tooltip>`:void 0}_getAction(e,i,t,s,a,d,h){let m=this.selectedLayer===void 0?!0:d;return o`<calcite-action .active=${e} appearance=solid .disabled=${m} .icon=${i} .id=${"map-"+i} .indicator=${t} .label=${s} .loading=${h} @click=${a} .text=${s} text-enabled></calcite-action>`}_getId(e){return`solutions-action-${e}`}};I("map-card",f);export{f as MapCard};
|
package/dist/cdn/AXCYNZ46.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.20250529 */
|
4
|
-
import{a as O}from"./MTOOTZQI.js";import{d as _}from"./ETWIUFM7.js";import{a as l,d as p}from"./TD5IVTRF.js";import"./Z6R4EOTY.js";import"./SDRE7JDF.js";function C(e,a){let i=[];return O(e,(t,c)=>(c.split(".").pop()===a&&i.push(t),t)),i.filter(p)}function E(e){return C(e,"scope").map(a=>a.split("/")[2]).filter(p)}function h(e,a){let i=l(e);return i.required&&(i.required=[...i.required].filter(t=>a.includes(t))),i.properties&&Object.keys(i.properties).forEach(t=>{a.indexOf(t)===-1&&delete i.properties[t]}),i.allOf&&(i.allOf=i.allOf.map(t=>h(t,a))),i.if&&(i.if=h(i.if,a)),i.then&&(i.then=h(i.then,a)),i.else&&(i.else=h(i.else,a)),i}function w(e,a){let i=E(a);return e=h(e,i),e}function q(e){return e&&e.split(":")[2]}async function G(e,a,i,t){let c=q(a),r,u,s,m,d;switch(c){case"stat":s=import("./ZOOVZHOK.js"),m={"hub:card:stat":()=>import("./YQDYJQJ4.js")}[a],await Promise.all([s,m()]).then(async([f,o])=>{let{MetricSchema:n}=f;r=l(n),u=await o.buildUiSchema(e,i,t),o.buildDefaults&&(d=o.buildDefaults(e,i,t))});break;case"follow":s=import("./OEKUH3DY.js"),m={"hub:card:follow":()=>import("./SVOLMSLO.js")}[a],await Promise.all([s,m()]).then(([f,o])=>{let{FollowSchema:n}=f;r=l(n),u=o.buildUiSchema(e,i,t)});break;case"eventGallery":s=import("./SXJ7GRUF.js"),m=import("./DYD4LMT3.js");let[{EventGalleryCardSchema:g},{buildUiSchema:b}]=await Promise.all([s,m]);r=l(g),u=await b(e,i,t);break}return r=w(r,u),Promise.resolve({schema:r,uiSchema:u})}var V=(e,a)=>{var i;let t=l((i=e.properties)===null||i===void 0?void 0:i._slug);if(!t)return e;let{orgUrlKey:c}=a;t.maxLength=_(c);let r=l(e.allOf)||[],{pattern:u}=t;delete t.pattern;let{id:s}=a;r.push({if:{properties:{_slug:{minLength:1}}},then:{properties:{_slug:{pattern:u}}}},{if:{properties:{_slug:{pattern:u}}},then:{properties:{_slug:{isUniqueSlug:{id:s,orgUrlKey:c}}}}});let m=l(e);return m.properties._slug=t,m.allOf=r,m};async function L(e,a,i,t){let c=a.split(":")[1],r,u,s;switch(c){case"site":let{getSiteSchema:m}=await import("./JYK6TDSJ.js");r=m(i.id);let d=await{"hub:site:edit":()=>import("./SYKS3B3D.js"),"hub:site:create":()=>import("./3HCDCU43.js"),"hub:site:followers":()=>import("./23PMGEQL.js"),"hub:site:discussions":()=>import("./EWVKDPUE.js"),"hub:site:settings":()=>import("./4F2LFQN2.js")}[a]();u=await d.buildUiSchema(e,i,t),d.buildDefaults&&(s=await d.buildDefaults(e,i,t));break;case"discussion":let{DiscussionSchema:g}=await import("./SNKQKTF5.js");r=l(g);let b=await{"hub:discussion:edit":()=>import("./O24TCIIN.js"),"hub:discussion:create":()=>import("./5RMSLPWG.js"),"hub:discussion:settings":()=>import("./MDFCULAI.js"),"hub:discussion:settings:discussions":()=>import("./2EHK45MD.js")}[a]();u=await b.buildUiSchema(e,i,t),b.buildDefaults&&(s=await b.buildDefaults(e,i,t));break;case"channel":let{ChannelSchema:f}=await import("./36U22S3P.js");r=l(f);let o=await{"hub:channel:edit":()=>import("./A37BTCTY.js"),"hub:channel:create":()=>import("./GC2WWII6.js")}[a]();u=await o.buildUiSchema(e,i,t),o.buildDefaults&&(s=await o.buildDefaults(e,i,t));break;case"project":let{ProjectSchema:n}=await import("./JL6K5LHB.js");r=l(n);let v=await{"hub:project:edit":()=>import("./KE74BJMB.js"),"hub:project:create":()=>import("./CT5CFC6A.js"),"hub:project:create2":()=>import("./YOTK6Z27.js"),"hub:project:metrics":()=>import("./VW6JN55F.js"),"hub:project:settings":()=>import("./XLDJZOUJ.js")}[a]();u=await v.buildUiSchema(e,i,t),v.buildDefaults&&(s=await v.buildDefaults(e,i,t));break;case"initiative":let{InitiativeSchema:F}=await import("./IAJ5KZ3E.js");r=l(F);let S=await{"hub:initiative:edit":()=>import("./WLKUJQRU.js"),"hub:initiative:create":()=>import("./K4W6SYTG.js"),"hub:initiative:create2":()=>import("./JHLZBE2H.js"),"hub:initiative:metrics":()=>import("./6MAL6YPV.js"),"hub:initiative:associations":()=>import("./WE55IR65.js"),"hub:initiative:settings":()=>import("./HO55MVPH.js")}[a]();u=await S.buildUiSchema(e,i,t),S.buildDefaults&&(s=await S.buildDefaults(e,i,t));break;case"page":let{PageSchema:I}=await import("./MMPQ2QJN.js");r=l(I);let D=await{"hub:page:edit":()=>import("./M6SOFRXG.js"),"hub:page:create":()=>import("./KTZDXQPI.js")}[a]();u=await D.buildUiSchema(e,i,t),D.buildDefaults&&(s=await D.buildDefaults(e,i,t));break;case"content":let{ContentSchema:K}=await import("./LIBRFKCM.js");r=l(K);let U=await{"hub:content:edit":()=>import("./ACRA7E6W.js"),"hub:content:discussions":()=>import("./MIV6HEM2.js"),"hub:content:settings":()=>import("./24ELTHH2.js")}[a]();u=await U.buildUiSchema(e,i,t),U.buildDefaults&&(s=await U.buildDefaults(e,i,t));break;case"template":let{TemplateSchema:y}=await import("./VIDPRDXR.js");r=l(y);let k=await{"hub:template:edit":()=>import("./34WE4WGE.js")}[a]();u=await k.buildUiSchema(e,i,t),k.buildDefaults&&(s=await k.buildDefaults(e,i,t));break;case"group":let{GroupSchema:z}=await import("./VXGAHN5L.js");r=l(z);let M=await{"hub:group:create:followers":()=>import("./O5BDM4G2.js"),"hub:group:create:association":()=>import("./U4OCNATD.js"),"hub:group:create:view":()=>import("./N6BYO52H.js"),"hub:group:create:edit":()=>import("./ULXGJVDB.js"),"hub:group:create":()=>import("./V3BLUNST.js"),"hub:group:edit":()=>import("./UYT46AKO.js"),"hub:group:settings":()=>import("./2FMI4XL2.js"),"hub:group:discussions":()=>import("./DHSJIEVP.js")}[a]();u=await M.buildUiSchema(e,i,t),M.buildDefaults&&(s=await M.buildDefaults(e,i,t));break;case"survey":let{SurveySchema:A}=await import("./6CNKQASY.js");r=l(A),u=await(await{"hub:survey:edit":()=>import("./ZEHWM6HI.js"),"hub:survey:settings":()=>import("./UAF53BXA.js")}[a]()).buildUiSchema(e,i,t);break;case"event":let B=await{"hub:event:create":()=>import("./WE2Y6SOG.js"),"hub:event:edit":()=>import("./5TFWVXSN.js"),"hub:event:registrants":()=>import("./45XFWRP7.js")}[a](),H=await{"hub:event:create":()=>import("./5UJJLT3Q.js"),"hub:event:edit":()=>import("./GN66Y5LZ.js"),"hub:event:registrants":()=>import("./B6O5E62J.js")}[a]();r=B.buildSchema(),u=await H.buildUiSchema(e,i,t);break;case"initiativeTemplate":let{InitiativeTemplateSchema:J}=await import("./TMGKZSJI.js");r=l(J);let j=await{"hub:initiativeTemplate:edit":()=>import("./5UITQU2N.js")}[a]();u=await j.buildUiSchema(e,i,t),j.buildDefaults&&(s=await j.buildDefaults(e,i,t));break;case"user":let{UserSchema:N}=await import("./QZUAQQ3P.js");r=l(N);let P=await{"hub:user:settings":()=>import("./WZ6XHGCP.js")}[a]();u=await P.buildUiSchema(e,i,t),P.buildDefaults&&(s=await P.buildDefaults(e,i,t));break;case"card":let T=await G(e,a,i,t);r=T.schema,u=T.uiSchema,s=T.defaults}return r=w(r,u),r=V(r,i),Promise.resolve({schema:r,uiSchema:u,defaults:s})}async function gi(e,a,i,t){return L(e,a,i,t)}export{gi as getEditorConfig};
|
package/dist/cdn/CKBIJDER.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.20250529 */
|
4
|
-
import{b as e,e as r}from"./GKDLJDIH.js";import"./MV427I3C.js";import"./CD7VMTO4.js";import"./CVRCQ5HP.js";import{d as t}from"./7W2AE66R.js";import"./R6O5SXGW.js";import"./7ORG4F3G.js";import"./QJFSESG4.js";import"./TD5IVTRF.js";import"./PQITD64K.js";import"./T3NA6UDZ.js";import"./G7QJKSNL.js";import"./Z6R4EOTY.js";import"./JXODPBXP.js";import"./SDRE7JDF.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/E3PDIDRG.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.20250529 */
|
4
|
-
import{a as l,b as a}from"./BA5HIJYD.js";import{b}from"./QVUPBSTG.js";import{a as f}from"./23PVARAU.js";import{D as w,E as o,I as u,c as _,d as h,g as c}from"./2I3RBMYQ.js";import"./SDRE7JDF.js";var $=_`/** @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}.display-none{display:none}.display-flex{display:flex}.margin-top-1-2{margin-top:.5rem}.margin-left-1-2{margin-left:.5rem}.square-32{width:32px;height:32px}.square-40{width:40px;height:40px}.square-48{width:48px;height:48px}.width-40{width:40px}.square-40-41{width:40px;height:41px}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.box-shadow{box-shadow:0 1px 2px #0000004d}.margin-bottom-1-2{margin-bottom:.5rem}`,m=class extends w{constructor(){super(...arguments),this.enableLegend=!1,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableSearch=!1,this.enableBasemap=!1,this.enableHome=!1,this.enableSingleExpand=!1,this.zoomToolsSize="m",this.layout="vertical",this.mapWidgetsSize="m",this.enableMapPicker=!1,this.enableMapLayerPicker=!1,this.position="top-right",this.stackTools=!0,this.enableSelectionTool=!1,this.toolOrder=["home","legend","search","fullscreen","floorfilter","selectiontool","map-picker","map-layer-picker"],this.mapInfos=[],this.defaultLayerId="",this.isMobile=!1,this.selectedWebMapId="",this.showOnlyUpdatableLayers=!1,this._hasFloorInfo=!1,this._translations=f({name:"map-tools",blocking:!0}),this._showTools=!0,this._showBasemapWidget=!1,this._showFloorFilter=!1,this._showFullscreen=!1,this._showLegendWidget=!1,this._showSearchWidget=!1,this._selectionToolActive=!1,this._showEllipsisTools=!0,this._ellipsisTools=[],this._basemapElement=l(),this._floorFilterElement=l(),this._fullscreenElement=l(),this._legendElement=l(),this._searchElement=l(),this._widgets=[],this._selectionToolElement=l(),this._mapTools=[],this._mapTool=l()}static{this.properties={basemapConfig:0,enableLegend:5,enableFloorFilter:5,enableFullscreen:5,enableSearch:5,enableBasemap:5,enableHome:5,enableSingleExpand:5,zoomToolsSize:1,layout:1,mapView:0,mapWidgetsSize:1,enableMapPicker:5,enableMapLayerPicker:5,position:1,searchConfiguration:0,stackTools:5,enableSelectionTool:5,toolOrder:0,selectedLayer:0,mapInfos:0,defaultLayerId:1,isMobile:5,parentComponentHeight:9,parentComponentWidth:9,selectedWebMapId:1,showOnlyUpdatableLayers:5,_hasFloorInfo:16,_translations:16,_showTools:16,_showBasemapWidget:16,_showFloorFilter:16,_showFullscreen:16,_showLegendWidget:16,_showSearchWidget:16,_selectionToolActive:16,_showEllipsisTools:16,_ellipsisTools:16}}static{this.styles=$}willUpdate(e){e.has("mapView")&&this.mapViewWatchHandler(),e.has("parentComponentWidth")&&this.parentComponentWidth&&this.parentComponentWidthWatchHandler(this.parentComponentWidth),e.has("_showBasemapWidget")&&(this.hasUpdated||this._showBasemapWidget!==!1)&&this._showBasemapWidgetWatchHandler(this._showBasemapWidget),e.has("_showFloorFilter")&&(this.hasUpdated||this._showFloorFilter!==!1)&&this._showFloorFilterWatchHandler(this._showFloorFilter),e.has("_showFullscreen")&&(this.hasUpdated||this._showFullscreen!==!1)&&this._showFullscreenWatchHandler(this._showFullscreen),e.has("_showLegendWidget")&&(this.hasUpdated||this._showLegendWidget!==!1)&&this._showLegendWidgetWatchHandler(this._showLegendWidget),e.has("_showSearchWidget")&&(this.hasUpdated||this._showSearchWidget!==!1)&&this._showSearchWidgetWatchHandler(this._showSearchWidget)}async mapViewWatchHandler(){await this.mapView?.when(()=>{this.enableHome&&this._initHome(),this.parentComponentWidth&&this._updateTools(this.parentComponentWidth)})}async parentComponentWidthWatchHandler(e){this._updateTools(e)}async _showBasemapWidgetWatchHandler(e){let s=this._basemapElement.value?this._basemapElement.value.basemapWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showFloorFilterWatchHandler(e){let s=this._floorFilterElement.value?this._floorFilterElement.value.floorFilterWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showFullscreenWatchHandler(e){let s=this._fullscreenElement.value?this._fullscreenElement.value.fullscreenWidget:void 0;s&&(e?s.viewModel.state==="ready"&&s.viewModel.enter():s.viewModel.state==="active"&&s.viewModel.exit())}async _showLegendWidgetWatchHandler(e){let s=this._legendElement.value?this._legendElement.value.legendWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showSearchWidgetWatchHandler(e){let s=this._searchElement.value?this._searchElement.value.searchWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async load(){this._mapTools=[...this.toolOrder],await this._initModules()}render(){this._setZoomToolsSize();let e=this.layout==="horizontal"?"display-flex":"",s=this._getToggleIcon(),i=this._showTools?e:"display-none",t=this._showEllipsisTools?"":"display-none",n=this._showSearchWidget?"":"display-none",r=this._showBasemapWidget?"":"display-none",p=this._showLegendWidget?"":"display-none",d=this._showFloorFilter?"":"display-none",W=this._showFullscreen?"":"display-none",y=this._showTools?this._translations.collapse:this._translations.expand,T=!this.enableBasemap&&!this.enableFullscreen&&!this.enableLegend&&!this.enableSearch?"display-none":"",v=this.enableSingleExpand?this.layout==="horizontal"?"margin-left-1-2":"margin-top-1-2":"",F=this._ellipsisTools.length>0&&this._showTools?"":"display-none",g=this.stackTools&&this._ellipsisTools.length===0?"box-shadow":"";return h`<div class=${`${T} ${e}`}>${this.enableSingleExpand?h`<div class=${o(g)}>${this._getActionGroup(s,!1,y||"",()=>this._toggleTools())}</div>`:void 0}<div class=${`${v} ${g} ${i}`}>${this._getMapWidgets(this._mapTools)}</div><div><div class=${o(F)}>${this._getActionGroup("ellipsis",!1,"",()=>this._toggleEllipsisTools())}<div class=${o(t)}>${this._getMapWidgets(this._ellipsisTools)}</div></div></div></div><basemap-gallery .basemapConfig=${this.basemapConfig} class=${o(r)} .mapView=${this.mapView} ${a(this._basemapElement)}></basemap-gallery><map-search class=${o(n)} .mapView=${this.mapView} result-graphic-enabled .searchConfiguration=${this.searchConfiguration} ${a(this._searchElement)}></map-search><map-legend class=${o(p)} .mapView=${this.mapView} ${a(this._legendElement)}></map-legend><map-fullscreen class=${o(W)} .mapView=${this.mapView} @fullscreenStateChange=${E=>this._fullscreenStateChange(E.detail)} ${a(this._fullscreenElement)}></map-fullscreen><floor-filter class=${o(d)} .enabled=${this.enableFloorFilter} .mapView=${this.mapView} ${a(this._floorFilterElement)}></floor-filter><selection-tool .mapView=${this.mapView} @drawingComplete=${()=>{this._selectionToolActive=!this._selectionToolActive}} .selectedLayerId=${this.selectedLayer?.id} tool=rectangle ${a(this._selectionToolElement)}></selection-tool>${this.enableMapPicker&&h`<map-picker class=mapPickerClass .height=${(this.parentComponentHeight??0)-25} id=map-picker .mapInfos=${this.mapInfos} reference-element=map .selectedWebMapId=${this.selectedWebMapId} show-map-list-in-popover></map-picker>`||""}${this.enableMapLayerPicker&&h`<map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} .height=${(this.parentComponentHeight??0)-25} .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} reference-element=layers scale=s .selectedIds=${this.selectedLayer?[this.selectedLayer.id]:[]} show-layers-list-in-popover show-tables type=dropdown></map-layer-picker>`||""}`}async _initModules(){let[e,s]=await b(["esri/widgets/Expand","esri/widgets/Home"]);this.Expand=e,this.Home=s}_initHome(){this.enableHome&&(this._homeWidget=this.Home&&new this.Home({view:this.mapView}))}_setZoomToolsSize(){let e=document.getElementsByClassName("esri-zoom")[0]?.children[0],s=document.getElementsByClassName("esri-zoom")[0]?.children[1];if(e&&s){let i=this.zoomToolsSize==="s"?"32px":this.zoomToolsSize==="m"?"40px":"48px";e.style.width=i,e.style.height=i,s.style.width=i,s.style.height=i}this.layout==="horizontal"&&(document.getElementsByClassName("esri-zoom")[0]?.setAttribute("style","position: absolute; top: 50px;"),document.getElementsByClassName("esri-ui-top-left")[0]?.setAttribute("style","flex-direction: row; gap: 5px; align-items: flex-start;"))}_getToggleIcon(){let e;return this.layout==="horizontal"?e=this._showTools?"chevrons-left":"chevrons-right":e=this._showTools?"chevrons-up":"chevrons-down",e}_updateTools(e){let s=JSON.parse(JSON.stringify(this.toolOrder));this._hasFloorInfo=this.mapView?.map?.floorInfo;let i=s.indexOf("floorfilter");i>-1&&!this._hasFloorInfo&&s.splice(i,1);let t=Math.ceil(e/40)-1;t&&t!==s.length-1?(this._mapTools=s.slice(0,t),this._ellipsisTools=s.slice(t,s.length)):(this._mapTools=s,this._ellipsisTools=[])}_getMapWidgets(e){let s=this._showFullscreen?"full-screen-exit":"full-screen",i=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen;return e.map(t=>{switch(t){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,()=>this._showLegend()):this.enableLegend?this._getWidget(t,this._legendElement.value?.legendWidget,!0):void 0;case"search":return this.enableSearch&&this.enableSingleExpand?this._getActionGroup("magnifying-glass",!1,this._translations.search,()=>this._search()):this.enableSearch?this._getWidget(t,this._searchElement.value?.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(s,!1,i||"",()=>this._expand()):this.enableFullscreen?this._getWidget(t,this._fullscreenElement.value?.fullscreenWidget,!1):void 0;case"basemap":return this.enableBasemap&&this.enableSingleExpand?this._getActionGroup("basemap",!1,this._translations.basemap,()=>this._toggleBasemapPicker()):this.enableBasemap?this._getWidget(t,this._basemapElement.value?.basemapWidget,!0):void 0;case"floorfilter":return this.enableFloorFilter&&this._hasFloorInfo&&this.enableSingleExpand?this._getActionGroup("urban-model",!1,this._translations.floorFilter,()=>this._toggleFloorFilter()):this.enableFloorFilter&&this._hasFloorInfo?this._getWidget(t,this._floorFilterElement.value?.floorFilterWidget,!0):void 0;case"selectiontool":return this.enableSelectionTool?this._getActionGroup("cursor-selection",!1,this._translations.selectByRectangle,()=>this._toggleSelectionTool(),this._selectionToolActive):void 0;case"home":return this.enableHome?this._getActionGroup("home",!1,this._translations.defaultMapView,()=>this._homeWidget?.go()):void 0;case"map-picker":return this.enableMapPicker?this._getActionGroup("map",!1,"",()=>{}):void 0;case"map-layer-picker":return this.enableMapLayerPicker?this._getActionGroup("layers",!1,"",()=>{}):void 0;default:return""}})}_fullscreenStateChange(e){e==="ready"&&this._showFullscreen?this._showFullscreen=!1:e==="active"&&!this._showFullscreen&&(this._showFullscreen=!0)}_getActionGroup(e,s,i,t,n){let r=this.mapWidgetsSize==="s"?"square-32":this.mapWidgetsSize==="m"?"square-40":"square-48",p=this.stackTools?"":"margin-bottom-1-2",d=this.stackTools?"":"box-shadow";return h`<div><calcite-action alignment=center .indicator=${n} class=${`map-actions ${r} ${p} border-bottom ${d}`} .disabled=${s} .icon=${e} id=${e??c} @click=${t} scale=s text ${a(this._mapTool)}><calcite-icon icon=cheveron-up scale=s slot=icon></calcite-icon></calcite-action>${!this.isMobile&&h`<calcite-tooltip .placement=${this.layout==="vertical"?"auto":"bottom"} reference-element=${e??c}><span>${i}</span></calcite-tooltip>`||""}</div>`}_getWidget(e,s,i){if(this._widgets.indexOf(e)<0&&this.mapView&&s){let t=this.toolOrder.indexOf(e),n=this.Expand&&new this.Expand({view:this.mapView,content:s}),r=this.enableHome?2:1;this.mapView.ui.add(i?n:s,{position:this.position,index:t>-1?t+r:1}),this._widgets.push(e)}}_showLegend(){this._showLegendWidget=!this._showLegendWidget,this._showTools=!1,this._toggleEllipsisTools()}_search(){this._showSearchWidget=!this._showSearchWidget,this._showTools=!1,this._toggleEllipsisTools()}_toggleBasemapPicker(){this._showBasemapWidget=!this._showBasemapWidget,this._showTools=!1,this._toggleEllipsisTools()}_toggleFloorFilter(){this._showFloorFilter=!this._showFloorFilter,this._showTools=!1,this._toggleEllipsisTools()}_toggleSelectionTool(){this._selectionToolActive=!this._selectionToolActive,this._selectionToolElement.value?.toggleSelectionTool()}_expand(){this._showFullscreen=!this._showFullscreen}_toggleTools(){this._showTools||(this._showBasemapWidget=!1,this._showSearchWidget=!1,this._showLegendWidget=!1,this._showFloorFilter=!1),this._showTools=!this._showTools,this._toggleEllipsisTools()}_toggleEllipsisTools(){this._showEllipsisTools=!this._showEllipsisTools}};u("map-tools",m);export{m as MapTools};
|
package/dist/cdn/ECDHMENM.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.20250529 */
|
4
|
-
import"./A7H7UXUU.js";import{b as C}from"./CQ52DPYT.js";import"./UI36LWLL.js";import"./UTIFEFDK.js";import"./TD5IVTRF.js";import"./T3NA6UDZ.js";import"./G7QJKSNL.js";import"./Z6R4EOTY.js";import"./OFMQL2TF.js";import{a as O}from"./AMSXU6J4.js";import"./HCJHR62T.js";import{c as S,d as F,j as b}from"./BF37ZEPR.js";import"./CJAS26OB.js";import{c as E}from"./QBTSHZ23.js";import{a as p,b as g}from"./BA5HIJYD.js";import{b as T}from"./QVUPBSTG.js";import{a as x}from"./23PVARAU.js";import{D as I,E as _,I as v,c as m,d,g as o,o as c,q as w}from"./2I3RBMYQ.js";import"./SDRE7JDF.js";var $=m`@layer{/** @license
|
5
|
-
* Copyright 2025 Esri
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
*/:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{--calcite-label-margin-bottom: 0px}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{--calcite-label-text-color: var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}}`,y=class extends I{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=x({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=p(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._shareNode=p(),this._toolbar=p(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this.featureSelectionChange=c(),this.toggleFilter=c(),this.showDelete=c(),this.relatedRecordToggled=c(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),O(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,_allIds:16,_csvExporting:16,_fetchingData:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=$}static{this.shadowRootOptions=w}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._table&&this._resetColumnTemplates()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._creatingFeature||this._mapClicked(e)}))}async _layerWatchHandler(){this._fetchingData=!0,await this._layer?.when(async()=>{this._definitionExpression=this._layer?.definitionExpression||"",this._floorField=this._layer?.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl(),this._fetchingData=!1})}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,n=this.mapView.allLayerViews.toArray(),h;n.some(async r=>r.layer.title===l?.title&&r.layer.type==="feature"?(h=r,this.mapView&&await b([i],h,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}async load(){await this._initModules(),await this._initToolInfos()}render(){let e=this._fetchingData?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",n=this._canShowFullTextSearch();return this._validateActiveActions(),d`<div><calcite-scrim class=${_(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile&&d`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${n&&d`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${h=>void this._searchTextChanged(h)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??o} type=search></calcite-input></div>`||""}<calcite-loader class=${_(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${_(e)} ${g(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:d`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell></div>`}async _initModules(){let[e,t,i,s]=await T(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate","esri/rest/support/RelationshipQuery"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i,this.RelationshipQuery=s}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length&&t){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t?.indexOf(this._searchExpression)>-1?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return d`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??o}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table;return d`<div class="display-flex" slot=${e??o}><field-selection .layer=${t} .mapView=${this.mapView} .table=${i}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return d`<div class=${"height-51-px width-full display-flex"} slot=${e??o} ${g(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return d`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??o} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading)),e),[])}_validateEnabledActions(){let e=this._featuresSelected(),t=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate,i=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(s=>{s&&i.indexOf(s.icon)>-1&&(s.disabled=s.icon==="pencil"?!t:!e)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._featuresSelected(),t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable;this.selectedIds.length>1&&this._layer?.capabilities?.operations.supportsUpdate;let i=!this.mapHidden&&!t,s=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),a=this._featuresEmpty(),l=this.featureSelectionMode==="single",n=this.enableCSV;if(this._relatedFeatureTable){let r=await this._queryRelatedFeatures();n=r&&Object.keys(r).length>0}let h=[];s&&h.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1}),i&&h.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e}),this._deleteEnabled&&h.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0}),h.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e}),this._relatedFeatureTable||h.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e}),!l&&!this._relatedFeatureTable&&h.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:a}),!l&&!this._relatedFeatureTable&&h.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:a}),h.push({active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1}),n&&h.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:a}),this._toolInfos=[...h]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresSelected(){return this._relatedFeatureTable?this._relatedFeatureTable.highlightIds.items.length>0:this.selectedIds.length>0}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,n){let h=this._layer===void 0?!0:l;return d`<calcite-action .active=${e} appearance=solid .disabled=${h} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${n} @click=${a} text text-enabled><div class="display-flex"><calcite-label class="label-override padding-start-1-4">${s}</calcite-label></div></calcite-action>`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return this.mapView&&d`<div id=${this._getId(e)??o}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${g(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`||""}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode.value&&(this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return document.getElementById(t)?d`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`:void 0}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return d`<div class="display-flex" id=${this._getId(e)??o}>${d`<calcite-action appearance=solid .disabled=${a} id=${e??o} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><calcite-label class="label-override padding-start-1-4 danger-label-color">${t}</calcite-label></calcite-action>`}${this._getToolTip("bottom",e,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;return this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table),e?.highlightIds.map(t=>Number.parseInt(t.toString(),10)).toArray()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,relatedRecordsEnabled:!0,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:!0,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this.reactiveUtils&&this._table?.viewModel.addHandles(this.reactiveUtils.watch(()=>this._table.size,i=>{this._size=i})),this.reactiveUtils?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let s={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(s)}if(this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let s=i.layer.popupTemplate?.fieldInfos||i.layer.fields,a=this._getColumnTemplates(i.layer.id,s);this._relatedFeatureTable.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:a})}i.highlightIds.on("change",s=>{this._handleOnChange(s)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0;let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._featuresSelected()?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos||this._layer.fields,t=this._getColumnTemplates(this._layer.id,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos||this._layer.fields,t=this._getColumnTemplates(this._layer.id,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await E(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(){this._editEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(l=>l.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),n=this._table?.highlightIds.indexOf(l);n&&n<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.rowHighlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let n=await this._queryRelatedFeatures(),h=[];n&&n[l]?.features&&(n[l].features.forEach(r=>{r.attributes&&h.push(r.attributes[e.objectIdField])}),i=h.length>0?h:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,n)=>{if(!n.hidden){let h=n?.name||n?.fieldName;h&&l.push(h.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await C(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(l=>i.relationships?.some(n=>n.id===l.id)),a=this.RelationshipQuery&&new this.RelationshipQuery({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let e=this._getSelectedLayer(this.selectedRelatedIds);e&&this.relatedRecordToggled.emit(e);let t=this._getSelectedIds();this.featureSelectionChange.emit(t)}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _zoom(){this._layer&&this.mapView&&await b(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0;let i=this.mapView&&await F(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await S(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t){let i;this.mapInfo?.layerOptions?.layers.some(h=>h.id===e?(i=h,!0):!1);let s=this._layer?.attributeTableTemplate?.elements,a=[];s?.length>0&&this.honorMapFieldSettings&&(a=s.map(h=>h.fieldName));let l=i?.fields&&i?.fieldOrder?i.fieldOrder.filter(h=>i?.fields&&i.fields.indexOf(h)>-1):a.length>0?a:void 0,n;return t&&(n=t.reduce((h,r)=>{let A="fieldName"in r?r.fieldName:r.name,H="label"in r?r.label:r.alias,u="label"in r?r.label:r.name,f={type:"field",fieldName:A,label:H,menuConfig:this._getMenuConfig(u||"")};return i&&i?.fields?i.fields.indexOf(u||"")>-1&&h.push(f):a.length>0?a.indexOf(u)>-1&&h.push(f):h.push(f),h},[])),n?l?n?.sort(this._sortFields.bind(this,l)):n:[]}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};v("layer-table",y);export{y as LayerTable};
|
package/dist/cdn/GC2WWII6.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.20250529 */
|
4
|
-
import{a}from"./ELZHWADN.js";import"./R6O5SXGW.js";import"./J6CBKWC5.js";import"./SHS2OYS6.js";import"./H6K43NC4.js";import"./Z6R4EOTY.js";import"./JXODPBXP.js";import"./SDRE7JDF.js";export{a as buildUiSchema};
|
package/dist/cdn/GZHED2T5.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.20250529 */
|
4
|
-
import{a as y}from"./LDMOVLG2.js";import"./XONRKBJJ.js";import{a as w,b as f,d as v}from"./BF37ZEPR.js";import"./CJAS26OB.js";import"./QBTSHZ23.js";import{a as d,b as c}from"./BA5HIJYD.js";import{a as L}from"./23PVARAU.js";import{D as g,E as p,F as n,I as u,c as b,d as i,g as l,o as r,q as _}from"./2I3RBMYQ.js";import"./SDRE7JDF.js";var I=b`@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}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom: 0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}.popover-list{overflow:auto;width:250px}}`,m=class extends g{constructor(){super(...arguments),this.appearance="transparent",this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.enabledTableIds=[],this.isMobile=!1,this.showOnlyUpdatableLayers=!1,this.placeholderIcon="",this.selectedIds=[],this.scale="m",this.showTables=!1,this.showTablesDisabled=!1,this.showSingleLayerAsLabel=!1,this.type="select",this.showLayersListInPopover=!1,this.referenceElement="",this.force=!1,this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=!1,this.ids=[],this.selectedName="",this._translations=L({name:"map-layer-picker",blocking:!0}),this.defaultLayerHonored=!1,this._layerSelectElement=d(),this._layerComboboxElement=d(),this._skipEditCheck=!1,this._popover=d(),this.beforeLayerSelectionChange=r(),this.idsFound=r(),this.noLayersFound=r(),this.layerSelectionChange=r()}static{this.properties={appearance:1,defaultLayerId:1,display:1,enabledLayerIds:0,enabledTableIds:0,height:9,isMobile:5,mapView:0,showOnlyUpdatableLayers:5,placeholderIcon:1,selectedIds:0,scale:1,showTables:5,showTablesDisabled:5,showSingleLayerAsLabel:5,type:1,showLayersListInPopover:5,referenceElement:1,force:16,_hasMultipleLayers:16,_hasValidLayers:16,_isDropdownOpen:16,ids:16,selectedName:16,_translations:16}}static{this.styles=I}static{this.shadowRootOptions=_}willUpdate(e){e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("type")&&(this._layerElement=this.type==="select"?this._layerSelectElement:this._layerComboboxElement)}async mapViewWatchHandler(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}async setLayerById(e,t=!1){this._skipEditCheck=t,!t||t&&e!==this.selectedIds[0]?this._setSelectedLayer(e):t&&e===this.selectedIds[0]&&(this.force=!0,setTimeout(()=>{this.force=!1},10)),this._skipEditCheck=!1}async setLayerByIds(e,t=!1){this._skipEditCheck=t,this._layerSelectionChange(e),this._skipEditCheck=!1}async updateLayer(){await this._setSelectedLayer(this.ids[0])}async load(){await this._setLayers()}updated(){this._popover.value?.addEventListener("calcitePopoverOpen",()=>{this.el.querySelector("calcite-dropdown-item[selected]").setFocus()})}render(){let e="map-layer-picker",t=this.height&&this.height>0&&!this.showLayersListInPopover?{height:`${this.height.toString()}px`}:{};return t={...t,display:this.display},i`<div class="map-layer-picker-container" style=${n(t)}><div class="map-layer-picker" style=${n(t)}>${this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():this.type==="combobox"?this._getCombobox(e):this.type==="select"?this._getSelect(e):this.showLayersListInPopover?this._getMapLayerPopOver():this._getDropdown(e):this._getInvalidPlaceholder()}</div></div>`}loaded(){if(this.ids?.length>0||this.selectedIds?.length===1){let e=this.selectedIds.length===1?this.selectedIds[0]:this.ids[0];this.type==="select"?this._layerElement.value&&(this._layerElement.value.value=e):this.type==="dropdown"&&(this.selectedName=this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e].name:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e].name:"")}}_getMapLayerPopOver(){let e=this.height&&this.height>0?{height:`${this.height.toString()}px`}:{};return i`<calcite-popover auto-close focus-trap-disabled .label=${this.referenceElement} placement=auto .referenceElement=${this.referenceElement} scale=s ${c(this._popover)}><div class=popover-list style=${n(e)}>${this._getMapLayerOptions()}</div></calcite-popover>`}_getInvalidPlaceholder(){return i`<div><calcite-notice class="height-100" icon=exclamation-mark-triangle id=no-valid-layers kind=danger open><div slot=message>${this._translations.noLayersFound}</div></calcite-notice><calcite-tooltip .label=${this._translations.enableEditUpdate} placement=bottom reference-element=no-valid-layers><span>${this._translations.enableEditUpdate}</span></calcite-tooltip></div>`}_getSingleLayerPlaceholder(){let e=this._getItemTypeIcon();return i`<div class="layer-picker-label-container cursor-default"><calcite-icon .icon=${e} scale=s></calcite-icon><calcite-label class="no-bottom-margin padding-start-1">${this.selectedName}</calcite-label></div>`}_getSelect(e){return i`<calcite-select id=${e??l} label @calciteSelectChange=${()=>this._layerSelectionChange()} .scale=${this.scale} ${c(this._layerElement)}>${this._getMapLayerOptions()}</calcite-select>`}_getCombobox(e){return i`<calcite-combobox clear-disabled id=${e??l} label @calciteComboboxChange=${()=>this._layerSelectionChange()} .placeholderIcon=${this.placeholderIcon} .scale=${this.scale} selection-mode=single ${c(this._layerElement)}>${this._getMapLayerOptions()}</calcite-combobox>`}_getDropdown(e){return i`<calcite-dropdown class="layer-picker-dropdown" @calciteDropdownBeforeClose=${()=>this._isDropdownOpen=!1} @calciteDropdownBeforeOpen=${()=>this._isDropdownOpen=!0}>${this.isMobile?this._getDropdownButton():this._getActionDropdownButton(e)}<calcite-dropdown-group selection-mode=single>${this._getMapLayerOptions()}</calcite-dropdown-group></calcite-dropdown>`}_getActionDropdownButton(e){return i`<calcite-action id=${e??l} slot=trigger text>${this._getDropdownButton()}</calcite-action>`}_getDropdownButton(){let e=this._getItemTypeIcon(),t=this.isMobile?"":"max-width-350",s=this.isMobile?"trigger":"",a=this._isDropdownOpen?"chevron-up":"chevron-down";return i`<calcite-button alignment=icon-end-space-between .appearance=${this.appearance} class=${p(t)} .iconEnd=${a} .iconStart=${e} kind=neutral slot=${s??l} width=full><div>${this.selectedName}</div></calcite-button>`}_getItemTypeIcon(){let e="layers";if(this.selectedIds.length>0&&this._layerNameHash){let t=this.selectedIds[0];e=Object.keys(this._layerNameHash).indexOf(t)>-1?"layers":"table"}return e}_getMapLayerOptions(){return this.ids.reduce((e,t)=>(this._validLayer(t)?e.push(this._getItem(t,"layer")):this._validTable(t)&&e.push(this._getItem(t,"table")),e),[])}_getItem(e,t){let s=t==="layer"&&this._layerNameHash?this._layerNameHash[e]:this._tableNameHash?this._tableNameHash[e]:void 0,a=this.showOnlyUpdatableLayers?s&&!s.supportsUpdate:!1,h=s?.name,o=this.selectedIds.indexOf(e)>-1;return this.type==="combobox"?i`<calcite-combobox-item .disabled=${a} .selected=${o} .textLabel=${h} .value=${e}></calcite-combobox-item>`:this.type==="select"?i`<calcite-option .disabled=${a} .label=${h} .selected=${o} .value=${e}></calcite-option>`:this.force&&o||!this.force?i`<calcite-dropdown-group class=${p(a?"disabled":"")} id=${h??l} .selectionMode=${a?"none":"single"}><calcite-dropdown-item .disabled=${!!(t==="table"&&this.showTablesDisabled)} .iconStart=${t} @click=${a?void 0:()=>void this._setSelectedLayer(e)} .selected=${o}>${h}</calcite-dropdown-item></calcite-dropdown-group>`:null}async _setSelectedLayer(e){if(e!==this.selectedIds[0]){let t;if(this.defaultLayerId&&!this.defaultLayerHonored&&(t=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=t!==void 0,e=this.defaultLayerHonored?this.defaultLayerId:e),t=t||this._getLayerFromHash(e),!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentId:this.selectedIds[0],newId:e,ref:this.el}).defaultPrevented)return;this.selectedName=t?.name,this.selectedIds=[e],this._popover.value&&(this._popover.value.open=!1),this.layerSelectionChange.emit(this.selectedIds)}else{let t=this.mapView&&await v(this.mapView,this.selectedIds[0]);this.selectedName=t?.title||""}}_getLayerFromHash(e){return this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e]:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();let e=[];this._layerNameHash&&(e=this.showOnlyUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash));let t=[];this._tableNameHash&&(t=this.showTables?this.showOnlyUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[]),this.ids=[...e.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.reverse().indexOf(s)>-1:!0),...t.reverse().filter(s=>this.enabledTableIds?.length>0?this.enabledTableIds.reverse().indexOf(s)>-1:!0)],this.idsFound.emit({layerIds:e,tableIds:t})}}_getEditableIds(e){return Object.keys(e).reduce((t,s)=>(e[s].supportsUpdate&&t.push(s),t),[])}async _initLayerTableHash(){this._layerNameHash=this.mapView&&await w(this.mapView,this.showOnlyUpdatableLayers),this._tableNameHash=this.showTables&&this.mapView?await f(this.mapView,this.showOnlyUpdatableLayers):{}}_validLayer(e){let t=this._layerNameHash&&this._layerNameHash[e]?.name;return t!==void 0&&Object.keys(y.managedLayers).indexOf(t)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0)}_validTable(e){let t=this._tableNameHash&&this._tableNameHash[e]?.name,s=t&&this.showTables;return s?y.managedTables.indexOf(t)<0&&(this.enabledTableIds?.length>0?this.enabledTableIds.indexOf(e)>-1:!0):s!==void 0}_layerSelectionChange(e){if(this._layerElement.value){let t=e||(Array.isArray(this._layerElement.value.value)?this._layerElement.value.value:[this._layerElement.value.value]);if(JSON.stringify(t)!==JSON.stringify([""])){if(!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentIds:this.selectedIds,newIds:t,ref:this.el}).defaultPrevented)return;this.selectedIds=t,this.layerSelectionChange.emit(this.selectedIds)}}}};u("map-layer-picker",m);export{m as MapLayerPicker};
|
package/dist/cdn/I5HRU5SK.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.20250529 */
|
4
|
-
import{d as u,e as L}from"./BF37ZEPR.js";import"./CJAS26OB.js";import"./QBTSHZ23.js";import{a as m,b as w}from"./BA5HIJYD.js";import{b}from"./QVUPBSTG.js";import{a as V}from"./23PVARAU.js";import{D as M,E as p,I as v,c as y,d as c,o as h,q as f}from"./2I3RBMYQ.js";import"./SDRE7JDF.js";var E=y`@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)}.edit-location-btn{margin:5px;display:flex}.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}}}`,_=class extends M{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.updateMapPosition=!1,this.reportingAreaLayer="",this.reportOutsideAreaMessage="",this.showSketchWidgets=!1,this._currentPage="templatePicker",this._editorLoading=!1,this._inValidGeomtryDrawn=!1,this._translations=V({name:"create-feature",blocking:!0}),this._addingAttachment=!1,this._calciteNotice=m(),this._isSubmitBtnClicked=!1,this._mapViewContainer=m(),this._searchDiv=m(),this.success=h(),this.fail=h(),this.drawComplete=h(),this.editingLocation=h(),this.editingAttachment=h(),this.progressStatus=h(),this.modeChanged=h()}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,updateMapPosition:5,reportingAreaLayer:1,reportOutsideAreaMessage:1,showSketchWidgets:5,_currentPage:16,_editorLoading:16,_inValidGeomtryDrawn:16,_translations:16}}static{this.styles=E}static{this.shadowRootOptions=f}willUpdate(e){e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("isMobile")&&this.hasUpdated&&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],i={layer:this._selectedLayer,template:t};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(i),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 showForm(){this.progressStatus.emit(100),this._container?.classList.remove("display-none"),this._mapViewContainer.value?.classList?.replace("show-map","hide-map"),this._currentPage="featureForm"}async load(){await this.initModules()}async loaded(){await this.init()}async updated(){if(this.isMobile&&this.updateMapPosition){let e=this._currentPage==="drawing"?80:30,t=this.enableSearch?this._searchDiv.value?.offsetHeight:0;await this._calciteNotice.value?.componentOnReady();let i=(this._calciteNotice.value?.offsetHeight||0)+t+e;this._mapViewContainer.value&&(this._mapViewContainer.value.style.top=`${i}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"||this._currentPage==="editing"?"":"display-none",t=this._editorLoading?"":"display-none",i=this._editorLoading?"display-none":"",s=this.isMobile&&this.updateMapPosition?"show-map":"display-none",a=this._inValidGeomtryDrawn?"danger":"success",r=this._inValidGeomtryDrawn?"exclamation-mark-triangle":"lightbulb",n=this.showGuidingMsg&&this._currentPage!=="templatePicker",d=this._translations.chooseCategoryMsg;return this._inValidGeomtryDrawn?d=this.reportOutsideAreaMessage||this._translations.reportOutsideAreaMessage:this._currentPage==="drawing"||this._currentPage==="editing"?d=this._translations.provideLocationMsg:this._currentPage==="featureForm"&&(d=this._translations.provideDetailsMsg),c`${n&&c`<calcite-notice class="notice-msg" .icon=${r} .kind=${a} open ${w(this._calciteNotice)}><div slot=message>${d}</div></calcite-notice>`||""}<calcite-loader class=${p(t)} label scale=s></calcite-loader>${this._currentPage==="featureForm"&&this.isMobile&&c`<calcite-button appearance=transparent class="edit-location-btn" icon-start=pin @click=${this.editLocation}>${this._translations.editLocationLabel}</calcite-button>`||""}<div class=${p(i)} id=feature-form></div>${this.enableSearch&&c`<div class=${`search-widget ${e} ${i}`} id=search-widget-ref ${w(this._searchDiv)}></div>`||""}<div class=${p(s)} ${w(this._mapViewContainer)}></div>`}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile&&this.updateMapPosition?this.createMobileMapView():this._loadWidgets()))}async initModules(){let[e,t,i,s,a,r,n,d]=await b(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView","esri/widgets/Home"]);this.Editor=e,this.reactiveUtils=t,this.Search=i,this.ExpressionInfo=s,this.FieldElement=a,this.FormTemplate=r,this.MapView=n,this.Home=d}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,center:this.mapView.center}).when(e=>{this._updatedMapView=e;let t=this.Home&&new this.Home({view:this._updatedMapView});t&&this._updatedMapView.ui.add(t,"top-left"),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),i=this.mapView&&await u(this.mapView,this.selectedLayerId);if(i&&(this._selectedLayer=i,!this._selectedLayer?.isTable&&t&&t.forEach(s=>{e.push({layer:s,enabled:s?.type==="feature"&&s?.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:this.showSketchWidgets&&this._selectedLayer?.geometryType!=="point"},container:this._container}),this._mapViewContainer.value?this.el.insertBefore(this._container,this._mapViewContainer.value):this.el.appendChild(this._container),this._selectedLayer?.isTable&&(this._editorLoading=!0),this._editor)){let s=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,o=>{o==="adding-attachment"||o==="editing-attachment"?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)});s&&this._editor.viewModel.addHandles(s);let a=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureTemplatesViewModel.state,o=>{o==="ready"&&this._editor?.viewModel?.activeWorkflow?.type!=="create-features"&&(this.progressStatus.emit(50),this._editorLoading=!0)});a&&this._editor.viewModel.addHandles(a);let r=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureFormViewModel?.state,o=>{o==="ready"&&this._editor?.viewModel.featureFormViewModel&&this._currentPage!=="editing"&&(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(!1))});r&&this._editor.viewModel.addHandles(r);let n=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,o=>{o==="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"))});n&&this._editor.viewModel.addHandles(n),this._editor.on("sketch-create",async o=>{if(o.detail.state==="complete"&&this.reportingAreaLayer){let l=o.detail.graphic.geometry;await this.queryIntersectingFeatures(l)}});let d;this._editor.on("sketch-update",o=>{clearTimeout(d),d=window.setTimeout(async()=>{if(this.reportingAreaLayer){let l=o.detail.graphics[0].geometry;await this.queryIntersectingFeatures(l)}},50)})}}async queryIntersectingFeatures(e){let t=this.mapView&&await u(this.mapView,this.reportingAreaLayer);if(t){let i=t.createQuery();i.geometry=e,i.spatialRelationship="intersects";let s=await t.queryFeatureCount(i)===0;this._inValidGeomtryDrawn=s,this.drawComplete.emit(this._inValidGeomtryDrawn)}}editLocation(){this.progressStatus.emit(75),this.editingLocation.emit(),this._container?.classList.add("display-none"),this._mapViewContainer.value?.classList.replace("hide-map","show-map"),this._currentPage="editing"}async startCreate(){return await this.hideEditorsElements(),new Promise((e,t)=>{if(this._editor?.viewModel.featureTemplatesViewModel.items?.length){let i=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({})},a=>t(a))},700)})),i.length===1&&this._editor.viewModel.featureTemplatesViewModel.select(i[0]);let s=i.length>1;this.hideEditorsElements().then(()=>{s&&e({})},a=>s&&t(a))}})}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",s=>{this._updatedMapView?.goTo(s.results[0].results[0].extent),this._selectedLayer?.geometryType==="point"&&(t=s.results[0].results[0]?.feature.geometry)}));let i=this.reactiveUtils?.watch(()=>this._search?.viewModel.state,s=>{s==="ready"&&setTimeout(()=>{if(this._editor?.viewModel.sketchViewModel?.createGraphic&&t)this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",t),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements();else if(this._editor?.viewModel.sketchViewModel&&this._editor.viewModel.sketchViewModel.updateGraphics.length>0&&t){let a=this._editor?.viewModel.sketchViewModel?.updateGraphics.getItemAt(0);a&&(a.set("geometry",t),this._editor?.viewModel.sketchViewModel?.update(a),this.hideEditorsElements())}},100)});i&&this._search.viewModel.addHandles(i)}}_getSearchConfig(e,t){let i="includeDefaultSources",s=e.sources;return s&&s?.length>0?(e[i]=!1,s.forEach(a=>{if(a.hasOwnProperty("layer")){let r=a,n=r.layer?.id,d=n?t.map?.findLayerById(n):"",o=r?.layer?.url;d?r.layer=d:o&&this.FeatureLayer&&(r.layer=new this.FeatureLayer(o))}}),s?.forEach(a=>{if(a.hasOwnProperty("locator")){let r=a;if(r?.name==="ArcGIS World Geocoding Service"){let n=r.outFields||["Addr_type","Match_addr","StAddr","City"];r.outFields=n,r.singleLineFieldName="SingleLine"}r.url=r.url,delete r.url}})):e={...e,includeDefaultSources:!0},e}async _setFloorLevel(e){if(!e)return;let t=this._selectedLayer,i=t?.floorInfo?.floorField;if(i){let s=t.fields.find(a=>a.name===i);if(s&&!t?.formTemplate)this._editor?.viewModel.featureFormViewModel&&(this._editor.viewModel.featureFormViewModel.setValue(s.name,e),s.editable=!1);else if(t.formTemplate&&this.formElements&&this.ExpressionInfo&&this.FieldElement){let a=new this.ExpressionInfo({expression:`'${e}'`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),r=new this.FieldElement({label:i,editableExpression:"false",fieldName:i,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:a.name});this._updatedMapView?.map.editableLayers.forEach(n=>{let d=this.formElements.orgElements,o=this.formElements.orgExpressionInfos,l=[...d];if(l.push(r),n.type==="feature"&&this.FormTemplate){let g=n,S=new this.FormTemplate({title:g?.formTemplate?.title,description:g?.formTemplate?.description,elements:l,expressionInfos:[a].concat(o)});n.formTemplate=S}})}}}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))}};v("create-feature",_);export{_ as CreateFeature};
|
package/dist/cdn/IAJ5KZ3E.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.20250529 */
|
4
|
-
import{a,b}from"./6DRKMWXF.js";import"./4US6OCOO.js";import"./YZ5BUYLK.js";import"./5ILOL3VZ.js";import"./ADPT4Z5I.js";import"./RFEBS7C5.js";import"./SDRE7JDF.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
|
package/dist/cdn/IPLAPU5V.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.20250529 */
|
4
|
-
import{a as S}from"./DYKRSLLP.js";import"./CQ52DPYT.js";import"./UI36LWLL.js";import"./UTIFEFDK.js";import"./TD5IVTRF.js";import"./T3NA6UDZ.js";import"./G7QJKSNL.js";import"./Z6R4EOTY.js";import"./OFMQL2TF.js";import{c as d,d as u,g as v}from"./BF37ZEPR.js";import"./CJAS26OB.js";import"./QBTSHZ23.js";import{a as p,b as c}from"./BA5HIJYD.js";import{b}from"./QVUPBSTG.js";import{a as F}from"./23PVARAU.js";import{D as w,E as x,F as I,I as L,c as f,d as l,g as m,o as y,q as _}from"./2I3RBMYQ.js";import"./SDRE7JDF.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}.notice-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500}.feature-list-popup-title-small{font-size:small}.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=p(),this._calciteList=p(),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.filterByMapExtentWatchHandler(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 filterByMapExtentWatchHandler(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="notice-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&&l`<div>${this.filterByMapExtent&&this.getExtentNotice()||""}${this._featureItems}</div>`||""}</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 d(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("{{field_names}}",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 d(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 d(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,o;return this.showUserImageInList&&this._selectedLayer?.editFieldsInfo?.creatorField&&(n=await this.getUserInformation(a)),this.showFeatureSymbol&&(o=await this.getFeatureSymbol(a)),i&&this.getAbbreviatedLikeCount(a),r&&this.getFeatureItem(a,r,o,n)});return Promise.all(s)}getExtentNotice(){return l`<calcite-notice class="notice-msg" icon=extent-filter kind=brand open scale=s><div slot=message>${this._translations.extentFilterMsg}</div></calcite-notice>`}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",o=this.showUserImageInList?115:65,E=this._calciteList.value.offsetWidth-o;return l`<calcite-list-item @mouseleave=${()=>{this.clearHighlights()}} @mouseover=${()=>{this.onFeatureHover(e)}} @calciteListItemSelect=${h=>{this.featureClicked(h,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(h=>h&&h.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/JL6K5LHB.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.20250529 */
|
4
|
-
import{a,b}from"./VSTGGUZK.js";import"./4US6OCOO.js";import"./YZ5BUYLK.js";import"./5ILOL3VZ.js";import"./ADPT4Z5I.js";import"./RFEBS7C5.js";import"./SDRE7JDF.js";export{a as ProjectEditorTypes,b as ProjectSchema};
|