@arcgis/map-components 5.2.4 → 5.2.6
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/{EKSBCS54.js → 25A56PXK.js} +1 -1
- package/dist/cdn/{ZJE2W2CU.js → 2CFJPN4S.js} +1 -1
- package/dist/cdn/{7ZT4OUUW.js → 2FP7IKKN.js} +1 -1
- package/dist/cdn/{RAWM42BS.js → 2FR4CLUD.js} +1 -1
- package/dist/cdn/{Y7AXHIRQ.js → 2GSOQ24O.js} +1 -1
- package/dist/cdn/{SMT4LA5X.js → 2HI2GJRN.js} +1 -1
- package/dist/cdn/{4TGV2X47.js → 2JBDXTTD.js} +1 -1
- package/dist/cdn/{Z4BEJRTJ.js → 2PBCUATI.js} +1 -1
- package/dist/cdn/{3YL6SRFS.js → 2S7LIDVT.js} +1 -1
- package/dist/cdn/{KSGX44II.js → 2VKUFSSX.js} +1 -1
- package/dist/cdn/{CUX6ELAH.js → 3AFCHGXC.js} +1 -1
- package/dist/cdn/{VFGAPD6E.js → 3CFNER5S.js} +1 -1
- package/dist/cdn/{GBGU5QK5.js → 3K56NQBG.js} +1 -1
- package/dist/cdn/{J7OIAUDA.js → 3KOLD5XB.js} +1 -1
- package/dist/cdn/{45ZOIFQJ.js → 3OAQCH4R.js} +1 -1
- package/dist/cdn/{NC77ZFVJ.js → 3OSWVLRC.js} +1 -1
- package/dist/cdn/{4UQ6UUHY.js → 3YPRWZEQ.js} +1 -1
- package/dist/cdn/{G55BOIXB.js → 463RVG74.js} +1 -1
- package/dist/cdn/{AETNFVGH.js → 473ABYHW.js} +1 -1
- package/dist/cdn/{DLYAECAD.js → 4CFPZELD.js} +1 -1
- package/dist/cdn/{M5MUX3SR.js → 4CZYIMXZ.js} +1 -1
- package/dist/cdn/{CLVKSUYH.js → 4G4MMUFH.js} +1 -1
- package/dist/cdn/{AXUOAFV7.js → 4S7GDURY.js} +1 -1
- package/dist/cdn/{VVCANCHO.js → 4T5CO3R3.js} +1 -1
- package/dist/cdn/{HSA4KTTI.js → 4UM7OFIQ.js} +1 -1
- package/dist/cdn/{L4HEGMVE.js → 4VYHSFFJ.js} +1 -1
- package/dist/cdn/{DRGUJ5LY.js → 4YZX4KJS.js} +1 -1
- package/dist/cdn/{F5B4WIVL.js → 4ZTKK3XC.js} +1 -1
- package/dist/cdn/{45DBVQ5G.js → 53GUZKRC.js} +1 -1
- package/dist/cdn/{3Z2A32L3.js → 55PIRXM5.js} +1 -1
- package/dist/cdn/{QGMWSIUI.js → 5BOCI774.js} +1 -1
- package/dist/cdn/{6CRONNHI.js → 5GBH7Q3I.js} +1 -1
- package/dist/cdn/{N6L2XHFN.js → 5HFXUGWD.js} +1 -1
- package/dist/cdn/{YLB7LLOQ.js → 5IBF3LPQ.js} +1 -1
- package/dist/cdn/{76ZJGD75.js → 5IQ47S32.js} +1 -1
- package/dist/cdn/{FBL6FWKR.js → 5JNRDQCA.js} +1 -1
- package/dist/cdn/{2NW2URBZ.js → 5LOEWEGB.js} +1 -1
- package/dist/cdn/{NXABZYBC.js → 5OMRYPCZ.js} +1 -1
- package/dist/cdn/{HKKK7PAM.js → 5PZ4YP7B.js} +1 -1
- package/dist/cdn/{HP2P5OYN.js → 5RABZG2H.js} +1 -1
- package/dist/cdn/{22YQ2I4Q.js → 5UAW2E7Q.js} +1 -1
- package/dist/cdn/{S6RI6HCD.js → 5VI3IG5Z.js} +1 -1
- package/dist/cdn/{PPURK2BH.js → 5X7CUWTJ.js} +1 -1
- package/dist/cdn/{UEDZF47N.js → 5XCSK4KA.js} +1 -1
- package/dist/cdn/{27YN5YT4.js → 5XYNDXYU.js} +1 -1
- package/dist/cdn/{RLUANYVV.js → 623IOSG5.js} +1 -1
- package/dist/cdn/{42PE2SPG.js → 63PTAZB7.js} +1 -1
- package/dist/cdn/{CRSLMZ6H.js → 63X25JWZ.js} +1 -1
- package/dist/cdn/{OSV6AIA4.js → 63XX2EC6.js} +1 -1
- package/dist/cdn/{CTWWJ6FV.js → 64LUDGU7.js} +1 -1
- package/dist/cdn/{PLYXWZK5.js → 6C4F25GU.js} +1 -1
- package/dist/cdn/{AXA4NQBL.js → 6DD6U4YE.js} +1 -1
- package/dist/cdn/{X4FA56YR.js → 6FA3Z5YP.js} +1 -1
- package/dist/cdn/{F2WMR3YQ.js → 6T7X6FX2.js} +1 -1
- package/dist/cdn/{65VYDNYQ.js → 72LTFDRQ.js} +1 -1
- package/dist/cdn/{HXPDO6CM.js → 74P7YNL7.js} +1 -1
- package/dist/cdn/{65F7YFJC.js → 74SWKHIC.js} +1 -1
- package/dist/cdn/{5IS4UXVE.js → 7HG2FAQG.js} +1 -1
- package/dist/cdn/{5XBLTA7T.js → 7JSO4EXW.js} +1 -1
- package/dist/cdn/{B72ELQQW.js → 7MGBISTN.js} +1 -1
- package/dist/cdn/{TFVRJUSJ.js → 7PY43HO6.js} +1 -1
- package/dist/cdn/{ZXTGLPB7.js → 7TRMSQUP.js} +1 -1
- package/dist/cdn/{R5YS4GKL.js → 7URKIQ55.js} +1 -1
- package/dist/cdn/{3XGDS5QW.js → A7663BNM.js} +1 -1
- package/dist/cdn/{4TI6CNOV.js → ADRQCJ2Q.js} +1 -1
- package/dist/cdn/AFPDNKPL.js +2 -0
- package/dist/cdn/AUAMUJF2.js +2 -0
- package/dist/cdn/{GCBY5PIC.js → B3HDV53M.js} +1 -1
- package/dist/cdn/{QARHM5T5.js → B3YR45OK.js} +1 -1
- package/dist/cdn/{D3YO4ZOH.js → B5VQZNW7.js} +1 -1
- package/dist/cdn/{HUZONYD7.js → BA6W4QD4.js} +1 -1
- package/dist/cdn/{5MIP6ZL7.js → BCNDQDLZ.js} +1 -1
- package/dist/cdn/{UC2COAGW.js → BI4AWJIO.js} +1 -1
- package/dist/cdn/{ADWVRV5I.js → BQ6MLBGP.js} +1 -1
- package/dist/cdn/{725LPPIM.js → BQQGIUPB.js} +1 -1
- package/dist/cdn/{3QFEQCVN.js → BSTFFS4W.js} +1 -1
- package/dist/cdn/{OCPTS6HN.js → BTLHGTOP.js} +1 -1
- package/dist/cdn/{TLKQ4SHF.js → BWQHPMXS.js} +1 -1
- package/dist/cdn/{3Q4C6BLY.js → BXB243NN.js} +1 -1
- package/dist/cdn/{E2NFVZER.js → C2LXKJYV.js} +1 -1
- package/dist/cdn/{G76VVSVA.js → C4SVRS4H.js} +1 -1
- package/dist/cdn/{7Z6N5WXJ.js → C5OTEBGC.js} +1 -1
- package/dist/cdn/{LZL7VTQH.js → C6BGBOHC.js} +1 -1
- package/dist/cdn/{Z7EK7SAF.js → CCUNOWR3.js} +1 -1
- package/dist/cdn/{IBPMRPU6.js → CFTLRJP2.js} +1 -1
- package/dist/cdn/{WGDJZRA7.js → CGFJYNQ2.js} +1 -1
- package/dist/cdn/{R7UUK7UW.js → CIVSPEMY.js} +1 -1
- package/dist/cdn/{OJGHH26G.js → CJNH6IJX.js} +1 -1
- package/dist/cdn/{IYJPEFK5.js → CJPXNA5A.js} +1 -1
- package/dist/cdn/{JXONVBDR.js → CKIQ4BDA.js} +1 -1
- package/dist/cdn/{C5MWND53.js → CLFSDWFC.js} +1 -1
- package/dist/cdn/{26VIAHPF.js → CR6AAH7F.js} +1 -1
- package/dist/cdn/CREY4Z6D.js +2 -0
- package/dist/cdn/{7LWKOSKH.js → D4R2XIGR.js} +1 -1
- package/dist/cdn/{XJVBEFHM.js → DDWGVKRL.js} +1 -1
- package/dist/cdn/{ADYG2EMM.js → DS2MUI4M.js} +1 -1
- package/dist/cdn/{OQEFMTO6.js → DX7V4NXG.js} +1 -1
- package/dist/cdn/{RZHSZ3H2.js → E5SUKEXA.js} +1 -1
- package/dist/cdn/{DDVFTISN.js → E6HZ7FK5.js} +1 -1
- package/dist/cdn/{PEER45DY.js → ECVUMLQY.js} +1 -1
- package/dist/cdn/{JPP2BFD4.js → EGH2DIPQ.js} +1 -1
- package/dist/cdn/{7NQQ3S77.js → EHUMNX7W.js} +1 -1
- package/dist/cdn/{3ASVOZZN.js → ERE4LLTO.js} +1 -1
- package/dist/cdn/{ZE7TYDWG.js → ESBRNEHV.js} +1 -1
- package/dist/cdn/{CNBOU73I.js → EWLYQETG.js} +1 -1
- package/dist/cdn/{JXZOSS7R.js → F27TCSSR.js} +1 -1
- package/dist/cdn/{2P4UY266.js → FISDVO72.js} +1 -1
- package/dist/cdn/{LF2NKUJA.js → FKJVY66M.js} +1 -1
- package/dist/cdn/{6N7PM73F.js → FMHP6L74.js} +1 -1
- package/dist/cdn/{UWPWTJ2J.js → FMKSZYHG.js} +1 -1
- package/dist/cdn/{A7E66LIH.js → FSLYS2UZ.js} +1 -1
- package/dist/cdn/{Z3EC3N7C.js → FXIQTDXI.js} +1 -1
- package/dist/cdn/{FQBXGJER.js → G2CJRHJX.js} +1 -1
- package/dist/cdn/{JJTRGGUD.js → GAW357NY.js} +1 -1
- package/dist/cdn/{WM2BIX22.js → GC5AUTOI.js} +1 -1
- package/dist/cdn/{SDQDUGKX.js → GMAWKMJU.js} +1 -1
- package/dist/cdn/{L2JMPLBI.js → GMJ2BGZJ.js} +1 -1
- package/dist/cdn/{NZUH5VXN.js → GXOPZYS6.js} +1 -1
- package/dist/cdn/{YGLWJECZ.js → GXXTJR5X.js} +1 -1
- package/dist/cdn/{33CM77ZT.js → GZQ5S6OJ.js} +1 -1
- package/dist/cdn/{6RB62D2W.js → HGHKUKDU.js} +1 -1
- package/dist/cdn/{AVIXHXI6.js → HGJEEYWB.js} +1 -1
- package/dist/cdn/{WVBYHVGU.js → HJUNRFFP.js} +1 -1
- package/dist/cdn/HKVHH5S7.js +2 -0
- package/dist/cdn/{VLIXVXP3.js → HPG7MJVU.js} +1 -1
- package/dist/cdn/{C2DNE5TB.js → I675U3AI.js} +1 -1
- package/dist/cdn/{3UZK6UYW.js → IAKYKOOL.js} +1 -1
- package/dist/cdn/{ZBTXET66.js → IHVVALDE.js} +1 -1
- package/dist/cdn/{K5FZWX5N.js → IIOUXXXA.js} +1 -1
- package/dist/cdn/{4QN3V76Q.js → IJ3WQDI2.js} +1 -1
- package/dist/cdn/{XRTRPQD7.js → IQMONREK.js} +1 -1
- package/dist/cdn/{6R6R3XTH.js → IU6C2BF7.js} +1 -1
- package/dist/cdn/{PTTMCU4E.js → J7J7MHFY.js} +1 -1
- package/dist/cdn/{2IYRSXZS.js → JKDO7CJ5.js} +1 -1
- package/dist/cdn/{G6OJLMKT.js → JMTCMMUJ.js} +1 -1
- package/dist/cdn/{GPPCLLAX.js → JTZ4ADQX.js} +1 -1
- package/dist/cdn/{TULJ7Y32.js → JV5HU2P3.js} +1 -1
- package/dist/cdn/{66I2OTCZ.js → JVS4TF4J.js} +1 -1
- package/dist/cdn/{P2GMODLP.js → K76CC5SU.js} +1 -1
- package/dist/cdn/{P5PUHTTZ.js → KEW5XA6H.js} +1 -1
- package/dist/cdn/{2BBD6VW2.js → KFP27BHL.js} +1 -1
- package/dist/cdn/{J6SWGP36.js → KGDQMML5.js} +1 -1
- package/dist/cdn/{PE2PWL2J.js → KIRD6MFZ.js} +1 -1
- package/dist/cdn/{NZVK73Y3.js → KQDKBJZK.js} +1 -1
- package/dist/cdn/{LHPWDJ75.js → KQQBUMWO.js} +1 -1
- package/dist/cdn/{YVZZACFZ.js → LWJRON65.js} +1 -1
- package/dist/cdn/{VLPW3VFM.js → LYS5KKCI.js} +1 -1
- package/dist/cdn/{KBRTUP24.js → M2HY6CLQ.js} +1 -1
- package/dist/cdn/{JM6DRQRN.js → MD5SOSQZ.js} +1 -1
- package/dist/cdn/{4RATJWRO.js → MHRGKC47.js} +1 -1
- package/dist/cdn/{LTMZ7TOT.js → MKTY2EZX.js} +1 -1
- package/dist/cdn/{FEBHYZ6D.js → MM4NZ3OE.js} +1 -1
- package/dist/cdn/{VVRC5BEV.js → MXWOTLK7.js} +1 -1
- package/dist/cdn/{43BJYWX5.js → MYHXKD6I.js} +1 -1
- package/dist/cdn/{UX6GYAWK.js → NA7MAHEV.js} +1 -1
- package/dist/cdn/{FQJ27ZN5.js → NDT34NBY.js} +1 -1
- package/dist/cdn/{PJKKBIRS.js → NJ4S342W.js} +1 -1
- package/dist/cdn/{VXEZRMIB.js → NL7EF3SL.js} +1 -1
- package/dist/cdn/{YX5HLX3D.js → NNB3XTRP.js} +1 -1
- package/dist/cdn/{BDNXOVLN.js → NNW5TRZN.js} +1 -1
- package/dist/cdn/{TWCJYCYQ.js → NTKXD63E.js} +1 -1
- package/dist/cdn/{VO5QOZLY.js → ODKFGRBW.js} +1 -1
- package/dist/cdn/{FHYP6EF2.js → OGDHPVHL.js} +1 -1
- package/dist/cdn/{YJQE7EHO.js → OGNO6LK2.js} +1 -1
- package/dist/cdn/{DZH4KU2P.js → OOUJLZ5Y.js} +1 -1
- package/dist/cdn/{ICXOGGZG.js → OXN4KDEM.js} +1 -1
- package/dist/cdn/{H65Z7MWV.js → OY2V3ITB.js} +1 -1
- package/dist/cdn/{QPY7IYQY.js → P23YOWRV.js} +1 -1
- package/dist/cdn/{FG72D6YZ.js → P7O2PUPO.js} +1 -1
- package/dist/cdn/{LZGMWFOO.js → PCYQ7KBI.js} +1 -1
- package/dist/cdn/{RZ5SLTHC.js → PEZE34ZX.js} +1 -1
- package/dist/cdn/{7IHIG427.js → PFPLJDX4.js} +1 -1
- package/dist/cdn/{J4FJYZ25.js → PHSGPNUO.js} +1 -1
- package/dist/cdn/PR3LFC6X.js +2 -0
- package/dist/cdn/{27KYQNKP.js → PSBKVBLU.js} +1 -1
- package/dist/cdn/{5JQT4A7C.js → PWMNTTWQ.js} +1 -1
- package/dist/cdn/{IQ3QP74J.js → PY2AD3SA.js} +1 -1
- package/dist/cdn/{Y6AHWNUS.js → QG32Z3FU.js} +1 -1
- package/dist/cdn/{USFLEWDK.js → QYSEVHOP.js} +1 -1
- package/dist/cdn/{UXW5MQM7.js → QZR27KPH.js} +1 -1
- package/dist/cdn/{3AXMZRRO.js → R2IWNHUS.js} +1 -1
- package/dist/cdn/{JCRUAYGH.js → R5S53Q74.js} +1 -1
- package/dist/cdn/{CYISOXDZ.js → RBIPQKHC.js} +1 -1
- package/dist/cdn/{KP4YBPWU.js → RDQMC4U5.js} +1 -1
- package/dist/cdn/{JNOTFCBC.js → RFZCABOP.js} +1 -1
- package/dist/cdn/RMPTTU44.js +2 -0
- package/dist/cdn/{CSS4XGEC.js → RN7TERZS.js} +1 -1
- package/dist/cdn/{5GJOYBI7.js → S2LWYEIV.js} +1 -1
- package/dist/cdn/{OC5LFUMP.js → S6JQDPNK.js} +1 -1
- package/dist/cdn/{N4R7LN4Y.js → SNAFVANI.js} +1 -1
- package/dist/cdn/{CXUGFNZW.js → SUFM3RB5.js} +1 -1
- package/dist/cdn/{AL6L663C.js → SXRFAMDI.js} +1 -1
- package/dist/cdn/{6BCQ52L7.js → SXZSMTBG.js} +1 -1
- package/dist/cdn/{3GPIVC5P.js → SYX3VAKX.js} +1 -1
- package/dist/cdn/{IAAFKO6G.js → SZH7BGJI.js} +1 -1
- package/dist/cdn/{FG2YJIYE.js → T3AOKIBN.js} +1 -1
- package/dist/cdn/{VJSPMUHM.js → T5Q6V6TJ.js} +1 -1
- package/dist/cdn/{GQ3SO3TR.js → T7KV2GLV.js} +1 -1
- package/dist/cdn/{RMMYKX2C.js → TCYR5PM4.js} +1 -1
- package/dist/cdn/{OGJW7OTX.js → TGX2CLGU.js} +1 -1
- package/dist/cdn/{GFZOUGIU.js → TMVM7RBO.js} +1 -1
- package/dist/cdn/{45COW2XC.js → TYFJJMSR.js} +1 -1
- package/dist/cdn/{OOAN57X4.js → U7QPKZAK.js} +1 -1
- package/dist/cdn/{3UB7YDP2.js → UBFTJWX6.js} +1 -1
- package/dist/cdn/{NDAKSOSF.js → UDHYXRPB.js} +1 -1
- package/dist/cdn/{IRN4ISDZ.js → UTKIRJ2E.js} +1 -1
- package/dist/cdn/{2Z5F2BEF.js → UU4XFZ3T.js} +1 -1
- package/dist/cdn/{7NHKX7LM.js → UW6JPJZQ.js} +1 -1
- package/dist/cdn/{26HV57H7.js → UXX7PUPN.js} +1 -1
- package/dist/cdn/{OAOXF5KZ.js → UYKMNICN.js} +1 -1
- package/dist/cdn/{4UHNVQPP.js → VAYHZ3VY.js} +1 -1
- package/dist/cdn/{3XBN5QVA.js → VLEDMSBM.js} +1 -1
- package/dist/cdn/{OW7VEQ7M.js → VOZE5FCK.js} +1 -1
- package/dist/cdn/VSJHTIKP.js +2 -0
- package/dist/cdn/{ZF5GBMSS.js → VY2QCKFS.js} +1 -1
- package/dist/cdn/{NU7WF2LD.js → W7XMDR4O.js} +1 -1
- package/dist/cdn/{Y37A4DUY.js → WFHFJSXA.js} +1 -1
- package/dist/cdn/{6AWNWO34.js → WGUVMOU5.js} +1 -1
- package/dist/cdn/WIVJUPOP.js +2 -0
- package/dist/cdn/{XF2UVS35.js → WLAXLYUL.js} +1 -1
- package/dist/cdn/{Y4XOPAG7.js → WS6V6H6O.js} +1 -1
- package/dist/cdn/{E3LXH4CS.js → WSOSZNOG.js} +1 -1
- package/dist/cdn/{7HSEOEBC.js → WT3F3EXR.js} +1 -1
- package/dist/cdn/{ADQWQBEW.js → WXH2AUIM.js} +1 -1
- package/dist/cdn/{I4KVOO6N.js → X7DPVTML.js} +1 -1
- package/dist/cdn/{7BUZBVCD.js → X7K5JY6V.js} +1 -1
- package/dist/cdn/{MRD6F6I3.js → XFYNHZJA.js} +1 -1
- package/dist/cdn/{IN5R6JL7.js → XHLERBQC.js} +1 -1
- package/dist/cdn/{GVUTAN2R.js → XHT4SN2J.js} +1 -1
- package/dist/cdn/{EHE46WJD.js → XJ2M5MYA.js} +1 -1
- package/dist/cdn/{Z5M2ALAH.js → XOI62O2T.js} +1 -1
- package/dist/cdn/{LQG26YL6.js → XR4OCVXI.js} +1 -1
- package/dist/cdn/Y5K6C565.js +2 -0
- package/dist/cdn/{JA7KC626.js → Y7NGCD4U.js} +1 -1
- package/dist/cdn/{FJBCC7ZH.js → YAMG2P7Q.js} +1 -1
- package/dist/cdn/{A4TJO5PZ.js → YFBVLNP4.js} +1 -1
- package/dist/cdn/{4QTVZIDY.js → YRUYS2Z6.js} +1 -1
- package/dist/cdn/{UVLOCGTT.js → YWKNEODK.js} +1 -1
- package/dist/cdn/{M5LPUEIS.js → YXXL3UQI.js} +1 -1
- package/dist/cdn/{BYJVWNVL.js → YYNR3ZFT.js} +1 -1
- package/dist/cdn/{XHHIPQFI.js → ZI2XM56L.js} +1 -1
- package/dist/cdn/{QTFACWJS.js → ZLDMHG4Z.js} +1 -1
- package/dist/cdn/{IXBOTGHC.js → ZN3G5W36.js} +1 -1
- package/dist/cdn/{BMJXYAYT.js → ZNNDL6TI.js} +1 -1
- package/dist/cdn/{7EMK74ZF.js → ZUNVTMPM.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.js +68 -60
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +62 -62
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/3GXZW3ZZ.js +0 -2
- package/dist/cdn/DGYFI3QX.js +0 -2
- package/dist/cdn/NBGFUVYW.js +0 -2
- package/dist/cdn/OCNR4NPT.js +0 -2
- package/dist/cdn/OOCTOODF.js +0 -2
- package/dist/cdn/TR7SBUZN.js +0 -2
- package/dist/cdn/TSGJUXIR.js +0 -2
- package/dist/cdn/XVWPYACH.js +0 -2
- package/dist/cdn/YRYVYLP7.js +0 -2
|
@@ -2,39 +2,40 @@
|
|
|
2
2
|
import { c as x } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as h } from "lit";
|
|
4
4
|
import { keyed as v } from "lit/directives/keyed.js";
|
|
5
|
-
import { repeat as
|
|
5
|
+
import { repeat as U } from "lit/directives/repeat.js";
|
|
6
6
|
import k from "@arcgis/core/layerList/LayerListModel.js";
|
|
7
|
-
import { classes as
|
|
8
|
-
import { generateGuid as
|
|
7
|
+
import { classes as B } from "@arcgis/toolkit/dom";
|
|
8
|
+
import { generateGuid as S } from "@arcgis/toolkit/string";
|
|
9
9
|
import { createRef as w, ref as b } from "lit/directives/ref.js";
|
|
10
10
|
import { u as G } from "../../chunks/useT9n.js";
|
|
11
11
|
import { m as H } from "../../chunks/useViewModel.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
12
|
+
import { m as q } from "../../chunks/handle.js";
|
|
13
|
+
import { g as C } from "../../chunks/globalCss.js";
|
|
14
|
+
import { c as y } from "../../chunks/css.js";
|
|
15
|
+
import { g as m, a as M, m as V, b as j, r as T, s as z, c as J, d as K, e as Q } from "../../chunks/layer-list-utils.js";
|
|
15
16
|
import p from "@arcgis/core/core/Collection.js";
|
|
16
|
-
import { on as
|
|
17
|
-
import { LitElement as
|
|
18
|
-
import { usePropertyChange as
|
|
19
|
-
import { reEmitEvent as
|
|
20
|
-
import { u as
|
|
21
|
-
import { ArcgisLayerListItem as
|
|
22
|
-
import { s as
|
|
23
|
-
import { i as
|
|
17
|
+
import { on as $, watch as A } from "@arcgis/core/core/reactiveUtils.js";
|
|
18
|
+
import { LitElement as W, createEvent as I, renderElement as D, safeClassMap as F, nothing as O } from "@arcgis/lumina";
|
|
19
|
+
import { usePropertyChange as X } from "@arcgis/lumina/controllers";
|
|
20
|
+
import { reEmitEvent as Y } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
21
|
+
import { u as Z } from "../../chunks/useCloseEvent.js";
|
|
22
|
+
import { ArcgisLayerListItem as ee } from "./layer-list-item/customElement.js";
|
|
23
|
+
import { s as te, a as se } from "../../chunks/layer-list-next.js";
|
|
24
|
+
import { i as ie, h as ae, r as re } from "../../chunks/utils.js";
|
|
24
25
|
import "../arcgis-layer-list-item-indicator/customElement.js";
|
|
25
|
-
const P = "nested",
|
|
26
|
-
class oe extends
|
|
26
|
+
const P = "nested", le = H(k);
|
|
27
|
+
class oe extends W {
|
|
27
28
|
constructor() {
|
|
28
|
-
super(...arguments), this._lastDragDetail = null, this._rootListRef = w(), this._layerFlowItemRef = w(), this._panelFlowItemRef = w(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${
|
|
29
|
+
super(...arguments), this._lastDragDetail = null, this._rootListRef = w(), this._layerFlowItemRef = w(), this._panelFlowItemRef = w(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${S()}`, this._openedLayersController = null, this._updateAnimationFrame = null, this.messages = G(), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, a) => {
|
|
29
30
|
const i = a === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, r = m(e, this.operationalItems);
|
|
30
31
|
if (!r?.sortable)
|
|
31
32
|
return !1;
|
|
32
|
-
const
|
|
33
|
+
const l = this._resolveListContainer(t), o = this._resolveListContainer(s), n = this._getContainerItem(l), d = M(l), g = this._getContainerItem(o), u = M(o), L = !!d && !!u && d === u, f = {
|
|
33
34
|
selected: r,
|
|
34
35
|
from: n,
|
|
35
36
|
to: g
|
|
36
|
-
}, _ =
|
|
37
|
-
return _ && c && typeof i == "function" ? i(
|
|
37
|
+
}, _ = l?.group, c = o?.group, R = n?.layer?.type ?? "", N = g?.layer?.type ?? "", E = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
|
|
38
|
+
return _ && c && typeof i == "function" ? i(f) : L && !E.has(R) && !E.has(N) && r?.layer?.type !== "sublayer";
|
|
38
39
|
}, this._onCatalogOpen = (e) => {
|
|
39
40
|
this.openedLayers.push(e.layer?.parent);
|
|
40
41
|
}, this._onTablesOpen = (e) => {
|
|
@@ -46,21 +47,27 @@ class oe extends Q {
|
|
|
46
47
|
}, this._setActiveItem = (e) => {
|
|
47
48
|
if (this.visibilityAppearance !== "default")
|
|
48
49
|
return;
|
|
49
|
-
const t = Array.from(e.composedPath()).find((a) => a.classList?.contains(
|
|
50
|
+
const t = Array.from(e.composedPath()).find((a) => a.classList?.contains(y.item)), s = m(t, this.operationalItems);
|
|
50
51
|
this._activeItem = s;
|
|
51
|
-
}, this.
|
|
52
|
+
}, this._scheduleUpdate = () => {
|
|
53
|
+
this._updateAnimationFrame === null && (this._updateAnimationFrame = requestAnimationFrame(() => {
|
|
54
|
+
this._updateAnimationFrame = null, this.isConnected && this.requestUpdate();
|
|
55
|
+
}));
|
|
56
|
+
}, this._cancelScheduledUpdate = () => {
|
|
57
|
+
this._updateAnimationFrame !== null && (cancelAnimationFrame(this._updateAnimationFrame), this._updateAnimationFrame = null);
|
|
58
|
+
}, this.viewModel = le(this), this.arcgisClose = Z(this), this._activeItem = null, this._onTooltipReferenceChange = (e, t) => {
|
|
52
59
|
t ? this._tooltipReferenceMap.set(e, t) : this._tooltipReferenceMap.delete(e);
|
|
53
60
|
}, this._onSelectedDragItemLayerUidChange = (e) => {
|
|
54
61
|
this._selectedDragItemLayerUid = e;
|
|
55
62
|
}, this._onTriggerAction = (e, t) => {
|
|
56
63
|
this.triggerAction(e, t);
|
|
57
|
-
}, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new p(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new p(), this.tileOptions = null, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.hideCatalogLayerList = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideStatusIndicators = !1, this.icon = "layers", this.layerTablesAvailable = new p(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.minDragEnabledItems = V, this.minFilterItems = j, this.openedLayers = new p(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new p(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.view = this.viewModel.view, this.visibilityAppearance = "default", this.arcgisFilterChange = I(), this.arcgisOpenedLayersChange = I(), this.arcgisPropertyChange =
|
|
64
|
+
}, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new p(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new p(), this.tileOptions = null, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.hideCatalogLayerList = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideStatusIndicators = !1, this.icon = "layers", this.layerTablesAvailable = new p(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.minDragEnabledItems = V, this.minFilterItems = j, this.openedLayers = new p(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new p(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.view = this.viewModel.view, this.visibilityAppearance = "default", this.arcgisFilterChange = I(), this.arcgisOpenedLayersChange = I(), this.arcgisPropertyChange = X()("state"), this.arcgisReady = I(), this.arcgisSelectedItemsChange = I(), this.arcgisTriggerAction = Y(() => this.viewModel, "trigger-action");
|
|
58
65
|
}
|
|
59
66
|
static {
|
|
60
67
|
this.properties = { _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, _totalItems: 16, _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, layerTablesEnabled: 16, mapImageOptions: 16, openedLayerLists: 16, tileOptions: 16, _renderedOpenLayerFlowItems: 16, autoDestroyDisabled: 5, catalogLayerList: 32, catalogOptions: 0, closed: 5, collapsed: 5, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, hideCatalogLayerList: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, hideStatusIndicators: 5, icon: 1, knowledgeGraphOptions: 0, label: 1, layerTablesAvailable: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, listModeDisabled: 5, messageOverrides: 0, minDragEnabledItems: 9, minFilterItems: 9, openedLayers: 32, operationalItems: 0, referenceElement: 1, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, showTemporaryLayerIndicators: 5, state: 32, tableList: 32, view: 0, visibilityAppearance: 1 };
|
|
61
68
|
}
|
|
62
69
|
static {
|
|
63
|
-
this.styles = [
|
|
70
|
+
this.styles = [te, se];
|
|
64
71
|
}
|
|
65
72
|
get _totalItems() {
|
|
66
73
|
return this.viewModel.operationalItems.flatten((t) => t.children.filter((s) => s.layer?.type !== "catalog-dynamic-group")).length;
|
|
@@ -69,7 +76,7 @@ class oe extends Q {
|
|
|
69
76
|
return this.operationalItems?.filter((e) => !e.hidden && (this.showErrors || !e.error));
|
|
70
77
|
}
|
|
71
78
|
get _openedPanelItems() {
|
|
72
|
-
return this._visibleItems.flatten((e) => e.children).filter((e) => !e.hidden && e.panel?.open && !e.panel.disabled && e.panel.flowEnabled && (!
|
|
79
|
+
return this._visibleItems.flatten((e) => e.children).filter((e) => !e.hidden && e.panel?.open && !e.panel.disabled && e.panel.flowEnabled && (!ie(e) || ae(e)));
|
|
73
80
|
}
|
|
74
81
|
get _dragEnabled() {
|
|
75
82
|
return this._totalItems >= this.minDragEnabledItems && this.dragEnabled;
|
|
@@ -92,15 +99,16 @@ class oe extends Q {
|
|
|
92
99
|
}
|
|
93
100
|
loaded() {
|
|
94
101
|
this.manager.onLifecycle(() => [
|
|
95
|
-
|
|
102
|
+
$(() => this.openedLayers, "change", () => {
|
|
96
103
|
this._handleOpenedLayersChange();
|
|
97
104
|
}, { initial: !0 }),
|
|
98
|
-
|
|
105
|
+
$(() => this.viewModel.operationalItems, "change", () => T(this.selectedItems), { initial: !0 }),
|
|
99
106
|
A(() => this.operationalItems.flatten((e) => e.children).map((e) => e.uid).join(","), () => {
|
|
100
|
-
|
|
107
|
+
T(this.selectedItems), this._scheduleUpdate();
|
|
101
108
|
}, { initial: !0 }),
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
q(this._cancelScheduledUpdate),
|
|
110
|
+
$(() => this.selectedItems, "change", () => this.arcgisSelectedItemsChange.emit()),
|
|
111
|
+
A(() => [this.filterPredicate, this._rootListRef.value], () => z(this._rootListRef.value, this.filterPredicate, this.operationalItems))
|
|
104
112
|
]);
|
|
105
113
|
}
|
|
106
114
|
triggerAction(e, t) {
|
|
@@ -142,22 +150,22 @@ class oe extends Q {
|
|
|
142
150
|
const { _layerListMap: e, openedLayers: t, openedLayerLists: s } = this;
|
|
143
151
|
this._openedLayersController?.abort();
|
|
144
152
|
const a = new AbortController(), { signal: i } = a;
|
|
145
|
-
this._openedLayersController = a, e.forEach((
|
|
146
|
-
t.includes(n) || (
|
|
153
|
+
this._openedLayersController = a, e.forEach((o, n) => {
|
|
154
|
+
t.includes(n) || (o?.destroy?.(), e.delete(n));
|
|
147
155
|
});
|
|
148
|
-
const r = await Promise.all(t.map((
|
|
156
|
+
const r = await Promise.all(t.map((o) => this._createFlowList(o, i)));
|
|
149
157
|
if (i.aborted)
|
|
150
158
|
return;
|
|
151
159
|
s.removeAll(), s.addMany(r);
|
|
152
|
-
const
|
|
153
|
-
|
|
160
|
+
const l = s.at(-1);
|
|
161
|
+
l ? "catalogLayer" in l ? (this._catalogLayerList = l, this._tableList = void 0) : (this._catalogLayerList = void 0, this._tableList = l) : (this._catalogLayerList = void 0, this._tableList = void 0), this.arcgisOpenedLayersChange.emit();
|
|
154
162
|
}
|
|
155
163
|
_destroyOpenedLayerLists() {
|
|
156
164
|
this.openedLayerLists.destroyAll(), this.openedLayers.removeAll(), this._layerListMap.clear();
|
|
157
165
|
}
|
|
158
166
|
async _createCatalogLayerList(e) {
|
|
159
|
-
const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems: r, selectionMode:
|
|
160
|
-
return D(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ??
|
|
167
|
+
const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems: r, selectionMode: l, visibilityAppearance: o } = this;
|
|
168
|
+
return D(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ?? l} .visibilityAppearance=${s?.visibilityAppearance ?? o} .showErrors=${s?.showErrors ?? this.showErrors} .showFilter=${s?.showFilter ?? this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators ?? this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${(n) => n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
|
|
161
169
|
}
|
|
162
170
|
_getTableListParams(e) {
|
|
163
171
|
switch (e.type) {
|
|
@@ -185,10 +193,10 @@ class oe extends Q {
|
|
|
185
193
|
e.open = !1;
|
|
186
194
|
}
|
|
187
195
|
_moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: s, newIndex: a }) {
|
|
188
|
-
const i = this._resolveListContainer(e), r = this._resolveListContainer(t),
|
|
189
|
-
a == null || !
|
|
196
|
+
const i = this._resolveListContainer(e), r = this._resolveListContainer(t), l = m(s, this.operationalItems), o = this._getContainerItem(i), n = this._getContainerItem(r);
|
|
197
|
+
a == null || !l || (this.viewModel.moveItem(l, n, o, a), re(
|
|
190
198
|
this,
|
|
191
|
-
|
|
199
|
+
l.uid,
|
|
192
200
|
// Make sure we have the current node and not a stale one
|
|
193
201
|
(d) => d !== s && this._resolveListContainer(d.parentElement) === i
|
|
194
202
|
));
|
|
@@ -202,15 +210,15 @@ class oe extends Q {
|
|
|
202
210
|
i == null || !t || !a || t.insertBefore(a, t.children[i]);
|
|
203
211
|
}
|
|
204
212
|
_onCalciteListOrderChange(e) {
|
|
205
|
-
const { _lastDragDetail: t } = this, { dragEl: s, newIndex: a } = e, i = this._resolveListContainer(e.fromEl), r = this._resolveListContainer(e.toEl),
|
|
206
|
-
if (!(!i || !r ||
|
|
213
|
+
const { _lastDragDetail: t } = this, { dragEl: s, newIndex: a } = e, i = this._resolveListContainer(e.fromEl), r = this._resolveListContainer(e.toEl), l = t?.newIndex === a && t?.dragEl === s && t?.toEl === r && t?.fromEl === i;
|
|
214
|
+
if (!(!i || !r || l)) {
|
|
207
215
|
if (this._lastDragDetail = {
|
|
208
216
|
...e,
|
|
209
217
|
fromEl: i,
|
|
210
218
|
toEl: r
|
|
211
|
-
}, this._selectedDragItemLayerUid = s.value, i === r) {
|
|
212
|
-
const
|
|
213
|
-
this._sortLayers(i,
|
|
219
|
+
}, this._selectedDragItemLayerUid = s.value.layer?.uid ?? null, i === r) {
|
|
220
|
+
const o = Array.from(i.children).filter((n) => n?.matches("calcite-list-item")).map((n) => n.value.layer?.uid ?? "");
|
|
221
|
+
this._sortLayers(i, o);
|
|
214
222
|
return;
|
|
215
223
|
}
|
|
216
224
|
this._moveLayerFromChildList({
|
|
@@ -224,12 +232,12 @@ class oe extends Q {
|
|
|
224
232
|
_sortLayers(e, t) {
|
|
225
233
|
if (e)
|
|
226
234
|
if (e === this._rootListRef.value)
|
|
227
|
-
|
|
235
|
+
J(this.el.view?.map?.layers, t);
|
|
228
236
|
else {
|
|
229
237
|
const s = m(e, this.operationalItems);
|
|
230
238
|
if (!s)
|
|
231
239
|
return;
|
|
232
|
-
|
|
240
|
+
K(s, t);
|
|
233
241
|
}
|
|
234
242
|
}
|
|
235
243
|
_handleCalciteListChange(e) {
|
|
@@ -241,10 +249,10 @@ class oe extends Q {
|
|
|
241
249
|
}
|
|
242
250
|
render() {
|
|
243
251
|
const { state: e } = this, t = {
|
|
244
|
-
[
|
|
245
|
-
[
|
|
252
|
+
[C.hidden]: e === "loading",
|
|
253
|
+
[C.disabled]: e === "disabled"
|
|
246
254
|
};
|
|
247
|
-
return h`<div class=${
|
|
255
|
+
return h`<div class=${F(B(C.widget, t))}>${this._visibleItems?.length ? this._renderItemTooltips() : null}${this._renderItems()}</div>`;
|
|
248
256
|
}
|
|
249
257
|
_renderItemTooltip(e) {
|
|
250
258
|
const { _tooltipReferenceMap: t, messages: s } = this;
|
|
@@ -263,7 +271,7 @@ class oe extends Q {
|
|
|
263
271
|
return h`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
|
|
264
272
|
}
|
|
265
273
|
_renderNoItems() {
|
|
266
|
-
return this.hideNoItemsNotice ? null : h`<div class=${
|
|
274
|
+
return this.hideNoItemsNotice ? null : h`<div class=${F(y.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
|
|
267
275
|
}
|
|
268
276
|
_renderLayerFlowItem(e, t) {
|
|
269
277
|
const { messages: s, openedLayers: a } = this, i = e.title || this.messages.untitledLayer;
|
|
@@ -273,25 +281,25 @@ class oe extends Q {
|
|
|
273
281
|
}
|
|
274
282
|
_renderPanelFlowItems() {
|
|
275
283
|
const { _openedPanelItems: e, openedLayers: t } = this;
|
|
276
|
-
return
|
|
277
|
-
const { panel: r, title:
|
|
278
|
-
return h`<calcite-flow-item .description=${
|
|
279
|
-
n.preventDefault(),
|
|
280
|
-
}} ${b(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${a} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${
|
|
284
|
+
return U(e.toArray(), (a) => a.uid, (a, i) => {
|
|
285
|
+
const { panel: r, title: l } = a, o = () => this._handlePanelFlowItemBack(r);
|
|
286
|
+
return h`<calcite-flow-item .description=${l} .heading=${r.title} .headingLevel=${this.headingLevel} .selected=${!t.length && i === e.length - 1} @calciteFlowItemBack=${(n) => {
|
|
287
|
+
n.preventDefault(), o();
|
|
288
|
+
}} ${b(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${a} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${o} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`;
|
|
281
289
|
});
|
|
282
290
|
}
|
|
283
291
|
_renderItems() {
|
|
284
|
-
const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: r, showCollapseButton:
|
|
285
|
-
h`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${
|
|
292
|
+
const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: r, showCollapseButton: l, showHeading: o, _dragEnabled: n, selectionMode: d, filterText: g, openedLayers: u, filterPlaceholder: L, messages: f } = this, _ = [
|
|
293
|
+
h`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${o ? f.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !s.length} @calciteFlowItemClose=${() => this.closed = !1}>${t?.length ? h`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${i ?? O} .displayMode=${P} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${L} .filterProps=${Q} .filterText=${a ? g : ""} .group=${i} .label=${f.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${d} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => {
|
|
286
294
|
this.filterText = c.currentTarget?.filterText ?? "", this.arcgisFilterChange.emit();
|
|
287
|
-
}} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${b(this._rootListRef)}>${t.toArray().map((c) => this._renderItem(c))}${a && !this.hideNoFilterResultsNotice ? h`<div class=${
|
|
295
|
+
}} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${b(this._rootListRef)}>${t.toArray().map((c) => this._renderItem(c))}${a && !this.hideNoFilterResultsNotice ? h`<div class=${F(y.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list>` : this._renderNoItems()}</calcite-flow-item>`,
|
|
288
296
|
this._renderPanelFlowItems(),
|
|
289
297
|
this._renderedOpenLayerFlowItems
|
|
290
298
|
];
|
|
291
299
|
return this.closed ? null : v("root-flow", h`<calcite-flow>${_}</calcite-flow>`);
|
|
292
300
|
}
|
|
293
301
|
_renderItem(e, t, s) {
|
|
294
|
-
return v(e.uid,
|
|
302
|
+
return v(e.uid, ee({ activeItem: this._activeItem, canMove: this._canMove, css: y, displayMode: P, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, hideCatalogLayerList: this.hideCatalogLayerList, item: e, messages: this.messages, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, operationalItems: this.operationalItems, parent: t, parentTitles: s, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, showCloseButton: this.showCloseButton, showCollapseButton: this.showCollapseButton, showErrors: this.showErrors, showHeading: this.showHeading, showFilter: this.showFilter, clearActiveItem: this._clearActiveItem, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
|
|
295
303
|
}
|
|
296
304
|
}
|
|
297
305
|
x("arcgis-layer-list-next", oe);
|
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { html as s } from "lit";
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { isLayerFromCatalog as
|
|
3
|
+
import { keyed as W } from "lit/directives/keyed.js";
|
|
4
|
+
import { isLayerFromCatalog as Pe } from "@arcgis/core/layers/catalog/catalogUtils.js";
|
|
5
5
|
import { safeClassMap as r, nothing as d } from "@arcgis/lumina";
|
|
6
|
-
import { classes as
|
|
7
|
-
import { createRef as
|
|
8
|
-
import { a as
|
|
9
|
-
import { f as
|
|
10
|
-
import { a as
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
return l ?
|
|
6
|
+
import { classes as X } from "@arcgis/toolkit/dom";
|
|
7
|
+
import { createRef as Y, ref as Z } from "lit/directives/ref.js";
|
|
8
|
+
import { a as we } from "../../../chunks/action-utils.js";
|
|
9
|
+
import { f as Oe, i as ee, l as Fe, h as Ge, j as Re, k as Ve, g as He } from "../../../chunks/layer-list-utils.js";
|
|
10
|
+
import { a as Ue, b as qe, i as je, g as te, t as ie, h as ae, c as Be, F as Ne, d as _e, L as le, f as ze } from "../../../chunks/utils.js";
|
|
11
|
+
const ne = /* @__PURE__ */ new Map();
|
|
12
|
+
function se(l) {
|
|
13
|
+
return l ? ne.get(l) ?? !1 : !1;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const g = !(l.aria?.pressed ??
|
|
17
|
-
return l.aria = { ...l.aria, pressed: g }, e &&
|
|
15
|
+
function Je(l, e) {
|
|
16
|
+
const g = !(l.aria?.pressed ?? se(e));
|
|
17
|
+
return l.aria = { ...l.aria, pressed: g }, e && ne.set(e, g), g;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const { item: e, itemType: g = "layer", parent: v, hideStatusIndicators:
|
|
21
|
-
let F = null;
|
|
22
|
-
!ne && !c && (F = s`<arcgis-layer-list-item-indicator class=${r(i.statusIndicator)} .messages=${a} .item=${e} .parent=${v} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
19
|
+
function Ke(l) {
|
|
20
|
+
const { item: e, itemType: g = "layer", parent: v, hideStatusIndicators: ce, css: i, visibilityAppearance: I, hideCatalogLayerList: oe, dragEnabled: E = !1, rootGroupUid: A, listModeDisabled: re = !1, selectionMode: T, displayMode: de, layerTablesEnabled: C, showErrors: me, parentTitles: P, selectedItems: ue, activeItem: pe, handleCatalogOpen: be, handleTablesOpen: ge, selectedDragItemLayerUid: w, handleSelectedDragItemLayerUidChange: ye, handlePanelOpen: $e, messages: a, setCurrentActiveItem: O, clearActiveItem: F } = l, ve = Ue(e), fe = qe(e), c = je(e), y = Y(), S = Y(), he = g === "table" ? a.untitledTable ?? "" : a.untitledLayer ?? "", Ie = ve ? a.trackInfo?.[e.content.name] ?? e.content.name : "", Ae = fe ? a.telemetryDisplay?.[e.content.name] ?? e.content.name : "", p = e.title || Ie || Ae || he || "";
|
|
23
21
|
let G = null;
|
|
22
|
+
!ce && !c && (G = s`<arcgis-layer-list-item-indicator class=${r(i.statusIndicator)} .messages=${a} .item=${e} .parent=${v} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
23
|
+
let R = null;
|
|
24
24
|
{
|
|
25
|
-
const { layer: t } = e, n = t && "persistenceEnabled" in t && (
|
|
26
|
-
!c && (l.showTemporaryLayerIndicators || l.showTemporaryTableIndicators) && n && (
|
|
25
|
+
const { layer: t } = e, n = t && "persistenceEnabled" in t && (Pe(t) || !t.persistenceEnabled);
|
|
26
|
+
!c && (l.showTemporaryLayerIndicators || l.showTemporaryTableIndicators) && n && (R = s`<calcite-icon class=${r(i.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${a.temporary ?? d}></calcite-icon>`);
|
|
27
27
|
}
|
|
28
|
-
let
|
|
28
|
+
let V = null;
|
|
29
29
|
if ("visible" in e && "visibleToggle" in i && I) {
|
|
30
|
-
const t =
|
|
30
|
+
const t = te(v);
|
|
31
31
|
if (t !== "inherited") {
|
|
32
|
-
const n =
|
|
32
|
+
const n = Oe({
|
|
33
33
|
visible: e.visible,
|
|
34
34
|
exclusive: t === "exclusive",
|
|
35
35
|
visibilityAppearance: I
|
|
36
|
-
}), o = I === "checkbox", m = a.layerVisibility, $ = p, b = $ ? `${m ?? ""}: ${$}` : m ?? "",
|
|
37
|
-
|
|
38
|
-
c ||
|
|
39
|
-
}} .slot=${o ? "actions-start" : "actions-end"} .text=${m ?? ""} title=${m ?? d}>${o ? null : s`<calcite-icon class=${r(
|
|
36
|
+
}), o = I === "checkbox", m = a.layerVisibility, $ = p, b = $ ? `${m ?? ""}: ${$}` : m ?? "", h = c ? e.visible : se(e.layer?.id);
|
|
37
|
+
V = s`<calcite-action .aria=${{ pressed: h }} class=${r(i.visibleToggle)} .icon=${o ? n : void 0} .label=${b} @click=${(D) => {
|
|
38
|
+
c || Je(D.currentTarget, e.layer?.id), ie(e, v);
|
|
39
|
+
}} .slot=${o ? "actions-start" : "actions-end"} .text=${m ?? ""} title=${m ?? d}>${o ? null : s`<calcite-icon class=${r(X({
|
|
40
40
|
[i.visibleIcon]: t !== "exclusive" && e.visible
|
|
41
41
|
}))} .icon=${n} scale=s></calcite-icon>`}</calcite-action>`;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
let
|
|
44
|
+
let H = null;
|
|
45
45
|
{
|
|
46
46
|
const t = e.panel;
|
|
47
|
-
t?.open && !t.disabled && !t.flowEnabled && (!c ||
|
|
47
|
+
t?.open && !t.disabled && !t.flowEnabled && (!c || ae(e)) && (H = s`<div class=${r(i.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${l.view}></arcgis-layer-list-item-panel></div>`);
|
|
48
48
|
}
|
|
49
|
-
let
|
|
49
|
+
let U = null;
|
|
50
50
|
{
|
|
51
51
|
const t = e.panel;
|
|
52
|
-
if (t?.visible && (!c ||
|
|
52
|
+
if (t?.visible && (!c || ae(e))) {
|
|
53
53
|
const { open: n, title: o, disabled: m } = t;
|
|
54
54
|
(t.content === "legend" || Array.isArray(t.content) && t.content.includes("legend")) && (t.icon = "legend");
|
|
55
55
|
const $ = {
|
|
56
56
|
icon: t.icon,
|
|
57
57
|
image: t.image ?? void 0,
|
|
58
58
|
indicator: !1
|
|
59
|
-
}, b =
|
|
60
|
-
|
|
59
|
+
}, b = we($);
|
|
60
|
+
U = s`<calcite-action .active=${n} .disabled=${m} .icon=${b} @click=${() => Be(e, $e)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? d}>${Ne(i, t)}</calcite-action>`;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
let U = null;
|
|
64
|
-
{
|
|
65
|
-
const t = e.layer, n = t?.type === "catalog-footprint", o = t?.type === "sublayer" && Y(t, "footprints");
|
|
66
|
-
!c && "itemCatalogIcon" in i && (n || o) && (U = s`<calcite-icon class=${r(i.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
|
|
67
|
-
}
|
|
68
63
|
let q = null;
|
|
69
64
|
{
|
|
70
|
-
const t = e.layer, n = t?.type === "catalog-
|
|
71
|
-
!c && "itemCatalogIcon" in i && (n || o) && (q = s`<calcite-icon class=${r(i.itemCatalogIcon)} icon=
|
|
65
|
+
const t = e.layer, n = t?.type === "catalog-footprint", o = t?.type === "sublayer" && ee(t, "footprints");
|
|
66
|
+
!c && "itemCatalogIcon" in i && (n || o) && (q = s`<calcite-icon class=${r(i.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
|
|
72
67
|
}
|
|
73
68
|
let j = null;
|
|
69
|
+
{
|
|
70
|
+
const t = e.layer, n = t?.type === "catalog-dynamic-group", o = t?.type === "sublayer" && ee(t, "layers-in-view");
|
|
71
|
+
!c && "itemCatalogIcon" in i && (n || o) && (j = s`<calcite-icon class=${r(i.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`);
|
|
72
|
+
}
|
|
73
|
+
let B = null;
|
|
74
74
|
if ("visible" in e) {
|
|
75
75
|
const t = e.layer;
|
|
76
|
-
!c && !
|
|
76
|
+
!c && !oe && t?.type === "catalog-dynamic-group" && (B = s`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => be?.(e)} slot=actions-end .text=${p ?? ""}></calcite-action>`);
|
|
77
77
|
}
|
|
78
|
-
let
|
|
78
|
+
let N = null, L = !1;
|
|
79
79
|
{
|
|
80
80
|
const t = e.layer;
|
|
81
81
|
if (!c && C && t)
|
|
@@ -88,50 +88,50 @@ function Je(l) {
|
|
|
88
88
|
L = C.includes(t.type) && "subtables" in t && !!t.subtables?.length;
|
|
89
89
|
break;
|
|
90
90
|
}
|
|
91
|
-
"itemTableIcon" in i && "visible" in e && "tables" in a && L && (
|
|
91
|
+
"itemTableIcon" in i && "visible" in e && "tables" in a && L && (N = W(`${e.uid}-tables`, s`<calcite-list-item class=${r(i.item)} data-layer-id=${t?.id ?? d} drag-disabled .label=${a.tables} title=${a.tables ?? d} @calciteListItemSelect=${() => ge?.(e)} .value=${e}><calcite-icon class=${r(i.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`));
|
|
92
92
|
}
|
|
93
|
-
let
|
|
93
|
+
let _ = null;
|
|
94
94
|
if ("children" in e) {
|
|
95
|
-
const t = [...P ?? [], e.title], { children: n, layer: o } = e, m = o?.type !== "catalog-dynamic-group" &&
|
|
95
|
+
const t = [...P ?? [], e.title], { children: n, layer: o } = e, m = o?.type !== "catalog-dynamic-group" && Fe(e), $ = re ? !1 : Ge(o), b = o?.type === "group", h = !$ && !m && E && b, D = b && "sortable" in e && e.sortable, Me = n.some((u) => "sortable" in u && u.sortable), ke = g === "layer" ? Re(e) : !0, De = E && (m || h) && (Me || h) && ("childrenSortable" in e && e.childrenSortable || D) && ke, Ee = m ? (n?.filter((u) => !u.hidden && (me || !u.error)).toArray() ?? []).map((u) => Ke({
|
|
96
96
|
...l,
|
|
97
97
|
item: u,
|
|
98
98
|
parent: e,
|
|
99
99
|
parentTitles: t
|
|
100
100
|
})) : null;
|
|
101
|
-
(m ||
|
|
101
|
+
(m || h) && (_ = s`<calcite-list .canPull=${(u) => l.canMove ? l.canMove(u, "pull") : !1} .canPut=${(u) => l.canMove ? l.canMove(u, "put") : !1} data-item=${e.uid ?? d} data-layer-type=${A ?? d} .displayMode=${de} .dragEnabled=${De} .group=${b ? A : `${A}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${T}>${Ee}${N}</calcite-list>`);
|
|
102
102
|
}
|
|
103
103
|
let x = null;
|
|
104
104
|
if (!c && e.error) {
|
|
105
105
|
const t = "layerError" in a ? a.layerError : a.tableError;
|
|
106
106
|
x = s`<div class=${r(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
|
|
107
|
-
} else "incompatible" in e && e.incompatible && "layerIncompatible" in a && (x = s`<div class=${r(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${
|
|
108
|
-
const
|
|
107
|
+
} else "incompatible" in e && e.incompatible && "layerIncompatible" in a && (x = s`<div class=${r(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Z(S)}><div slot=message>${a.layerIncompatible}</div></calcite-notice></div>`);
|
|
108
|
+
const z = _e(e), M = e.actionsSections.reduce((t, n) => t + n.length, 0), J = Ve(z), Te = z.toArray().map((t) => s`<calcite-action-group>${t.toArray().map((n) => le(l, n, !0))}</calcite-action-group>`), Ce = (t) => {
|
|
109
109
|
e.actionsOpen = t.currentTarget.open;
|
|
110
110
|
};
|
|
111
|
-
let
|
|
112
|
-
M > 1 && (
|
|
111
|
+
let K = null;
|
|
112
|
+
M > 1 && (K = s`<calcite-action-menu appearance=transparent .label=${a.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${Ce}><calcite-action .aria=${{
|
|
113
113
|
expanded: e.actionsOpen ?? !1,
|
|
114
114
|
hasPopup: "true"
|
|
115
|
-
}} icon=ellipsis slot=trigger .text=${a.options ?? ""} title=${a.options ?? d}></calcite-action>${
|
|
115
|
+
}} icon=ellipsis slot=trigger .text=${a.options ?? ""} title=${a.options ?? d}></calcite-action>${Te}</calcite-action-menu>`);
|
|
116
116
|
let k = null;
|
|
117
|
-
M === 1 &&
|
|
118
|
-
const
|
|
119
|
-
return queueMicrotask(() => {
|
|
120
|
-
|
|
121
|
-
}),
|
|
122
|
-
|
|
117
|
+
M === 1 && J ? k = le(l, J, !1) : M > 1 && (k = K);
|
|
118
|
+
const Se = c ? p : "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in a && !e.visibleAtCurrentTimeExtent ? `${p} (${a.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in a && !e.visibleAtCurrentScale ? `${p} (${a.layerInvisibleAtScale})` : p, Le = "parent" in e && e.parent?.layer?.type === "catalog", f = e.layer, xe = !c && ("visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent), Q = !c && w === f?.uid;
|
|
119
|
+
return (Q || "incompatible" in e && e.incompatible) && queueMicrotask(() => {
|
|
120
|
+
Q && ze(y.value ?? null, e, w, ye), S.value && (l.handleTooltipReferenceChange?.(f?.uid, S.value), queueMicrotask(() => l.handleTooltipReferenceChange?.(f?.uid, null)));
|
|
121
|
+
}), W(e.uid, s`<calcite-list-item class=${r(X(i.item, "itemActive" in i && { [i.itemActive]: pe?.uid === e.uid }))} data-item=${e.uid ?? d} data-layer-id=${f?.id ?? d} .dragDisabled=${!("sortable" in e && e.sortable) || Le} id=${(c ? void 0 : f?.uid) ?? d} .label=${p} .metadata=${{ parentTitles: P ?? [], _title: p }} .expanded=${"open" in e && e.open} .selected=${T !== "none" ? ue.includes(e) : !1} title=${Se ?? d} .unavailable=${xe} .value=${e} @focusin=${() => {
|
|
122
|
+
O?.(e), y.value?.classList.add(i.itemActive);
|
|
123
123
|
}} @focusout=${() => {
|
|
124
|
-
|
|
124
|
+
F?.(), y.value?.classList.remove(i.itemActive);
|
|
125
125
|
}} @mouseover=${() => {
|
|
126
|
-
|
|
126
|
+
O?.(e), y.value?.classList.add(i.itemActive);
|
|
127
127
|
}} @mouseleave=${() => {
|
|
128
|
-
|
|
128
|
+
F?.(), y.value?.classList.remove(i.itemActive);
|
|
129
129
|
}} @calciteListItemSelect=${(t) => {
|
|
130
|
-
t.target === t.currentTarget && "visible" in e &&
|
|
130
|
+
t.target === t.currentTarget && "visible" in e && He(t.currentTarget, l.operationalItems) === e && T === "none" && te(v) !== "inherited" && ie(e, v);
|
|
131
131
|
}} @calciteListItemToggle=${(t) => {
|
|
132
132
|
"open" in e && (t.stopPropagation(), e.open = t.target.expanded);
|
|
133
|
-
}} ${
|
|
133
|
+
}} ${Z(y)}>${q}${j}${G}${V}${B}${R}${_}${x}${H}${U}${k}</calcite-list-item>`);
|
|
134
134
|
}
|
|
135
135
|
export {
|
|
136
|
-
|
|
136
|
+
Ke as ArcgisLayerListItem
|
|
137
137
|
};
|