@arcgis/map-components 5.2.0-next.25 → 5.2.0-next.27
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/{7TE4BSW7.js → 2NYG7G7M.js} +1 -1
- package/dist/cdn/{RDYFXGBG.js → 2SEZT4WZ.js} +1 -1
- package/dist/cdn/{SLPRDDKL.js → 333FN2FH.js} +1 -1
- package/dist/cdn/{O3S3JGUF.js → 3ACWQZMG.js} +1 -1
- package/dist/cdn/{3ZLJBZUR.js → 3IVI7KSX.js} +1 -1
- package/dist/cdn/3JEAUEUY.js +2 -0
- package/dist/cdn/{NIH6ZDQF.js → 3MDY3AXY.js} +1 -1
- package/dist/cdn/{QBTISG6Z.js → 3PM2WTS4.js} +1 -1
- package/dist/cdn/{CIMTQPRO.js → 3TFVMVSU.js} +1 -1
- package/dist/cdn/{5OIAYTR6.js → 3UEX6WWW.js} +1 -1
- package/dist/cdn/{JDWZTXWP.js → 3XUZ45XB.js} +1 -1
- package/dist/cdn/{OGNQD4YE.js → 3XWUH3TJ.js} +1 -1
- package/dist/cdn/{XHCEMCMK.js → 3YDQP3TL.js} +1 -1
- package/dist/cdn/{WR7D5AWQ.js → 42N4OII5.js} +1 -1
- package/dist/cdn/{ZN5DPJ47.js → 435CL2BU.js} +1 -1
- package/dist/cdn/{TA7BOHI2.js → 43OLIA7Q.js} +1 -1
- package/dist/cdn/{W67QMPVV.js → 45O57WR4.js} +1 -1
- package/dist/cdn/{FHL4L2ZY.js → 45OF43WO.js} +1 -1
- package/dist/cdn/{CXHORYLL.js → 4DU47CLL.js} +1 -1
- package/dist/cdn/{7TA73NAM.js → 4ICKT52U.js} +1 -1
- package/dist/cdn/4IKFF53M.js +2 -0
- package/dist/cdn/4JHO27KW.js +2 -0
- package/dist/cdn/{TALJULOQ.js → 4L35X2II.js} +1 -1
- package/dist/cdn/4LB5GOV2.js +2 -0
- package/dist/cdn/{KDXJMMWU.js → 4NMNJIYV.js} +1 -1
- package/dist/cdn/4RGFCQOB.js +2 -0
- package/dist/cdn/{4BJSMXKG.js → 54WXILYF.js} +1 -1
- package/dist/cdn/{A6O75S47.js → 63RAMAYF.js} +1 -1
- package/dist/cdn/{EVEGXXQF.js → 6EKV3B5S.js} +1 -1
- package/dist/cdn/{MOQQDHMJ.js → 6FOYKQEP.js} +1 -1
- package/dist/cdn/{25YGNXRQ.js → 6HJM34BD.js} +1 -1
- package/dist/cdn/{KHIEG5JF.js → 6HXM4D4W.js} +1 -1
- package/dist/cdn/{ACMQRVHQ.js → 6IEKX6LJ.js} +1 -1
- package/dist/cdn/6JMYHTFN.js +2 -0
- package/dist/cdn/{NGTGQ4VB.js → 6O7GP3C3.js} +1 -1
- package/dist/cdn/{JPLUPA6R.js → 6PS3YIDY.js} +1 -1
- package/dist/cdn/{KVM3SKQX.js → 6S7LUYCJ.js} +1 -1
- package/dist/cdn/{KRXDH2HI.js → 6ZJFTT6R.js} +1 -1
- package/dist/cdn/{IN7S26X4.js → 6ZP6GZS7.js} +1 -1
- package/dist/cdn/{Y62ISVYZ.js → 75PSCL4A.js} +1 -1
- package/dist/cdn/{IFWIGLKK.js → 7ED4UQDB.js} +1 -1
- package/dist/cdn/{HNA422YB.js → 7GXEJLOM.js} +1 -1
- package/dist/cdn/{XDKYOMSQ.js → 7KPJBKO6.js} +1 -1
- package/dist/cdn/{5LM2XZIK.js → 7LRGEABA.js} +1 -1
- package/dist/cdn/{K23ECU7I.js → 7MKSGCWC.js} +1 -1
- package/dist/cdn/{JKGGA54X.js → 7MWEEVVD.js} +1 -1
- package/dist/cdn/{VZNQJ644.js → 7PTCONZB.js} +1 -1
- package/dist/cdn/{4NPLHQZG.js → 7XUCMK3B.js} +1 -1
- package/dist/cdn/{LMNWYSI3.js → 7ZVWCRXE.js} +1 -1
- package/dist/cdn/{BXDVZQ2A.js → A2Q7UAOI.js} +1 -1
- package/dist/cdn/{AASOO75T.js → A5W6D3EH.js} +1 -1
- package/dist/cdn/{XJMQFTSS.js → AEBJAVUX.js} +1 -1
- package/dist/cdn/{K6U6L7EK.js → AGTJNHWI.js} +1 -1
- package/dist/cdn/{YEPPZ46U.js → ATLWKCAP.js} +1 -1
- package/dist/cdn/AU7UZMXF.js +2 -0
- package/dist/cdn/{6EFOGQLH.js → AW7PMR3D.js} +1 -1
- package/dist/cdn/{LKRXUVVK.js → B2ZGMSHQ.js} +1 -1
- package/dist/cdn/{O5TKBG2D.js → B7P66JTS.js} +1 -1
- package/dist/cdn/{USYDTYRK.js → BCXPJXAK.js} +1 -1
- package/dist/cdn/BK6P2PBO.js +2 -0
- package/dist/cdn/BM3NHWBY.js +2 -0
- package/dist/cdn/{KUUKJIQM.js → BPQPJXPT.js} +1 -1
- package/dist/cdn/{MRDKTBHD.js → BPXKEXYV.js} +1 -1
- package/dist/cdn/{F7ZQA7S5.js → BRDTU3O6.js} +1 -1
- package/dist/cdn/{LLPO63LQ.js → BXLXZYRC.js} +1 -1
- package/dist/cdn/{VG7WYAOD.js → CCFKZSFO.js} +1 -1
- package/dist/cdn/{JXS44YCP.js → COGFFO5G.js} +1 -1
- package/dist/cdn/{5BIMGLS7.js → CTUD7CTJ.js} +1 -1
- package/dist/cdn/{RDFCQM5U.js → CX5LLKOW.js} +1 -1
- package/dist/cdn/DBJFHC3S.js +2 -0
- package/dist/cdn/DFMHSA2D.js +2 -0
- package/dist/cdn/{G46IIKPN.js → DLMGAC2A.js} +1 -1
- package/dist/cdn/{IJQZON2Z.js → DU6OKLV4.js} +1 -1
- package/dist/cdn/{PIRSSTSR.js → DUDVPO32.js} +1 -1
- package/dist/cdn/{OKHEBRQW.js → DUWXDGIW.js} +1 -1
- package/dist/cdn/EBWDF4RR.js +2 -0
- package/dist/cdn/{RP3SPYWY.js → EEF3VY5V.js} +1 -1
- package/dist/cdn/{DYG6G3ZY.js → EFYUNXBG.js} +1 -1
- package/dist/cdn/{LDYIWX26.js → EI7NXMGF.js} +1 -1
- package/dist/cdn/{WGR4TMS3.js → EIHTWPOP.js} +1 -1
- package/dist/cdn/{L4BJVEKK.js → EK44YZYH.js} +1 -1
- package/dist/cdn/{P5N66JAU.js → EK7GAWIV.js} +1 -1
- package/dist/cdn/{AAMJRMEX.js → EL6TAK3S.js} +1 -1
- package/dist/cdn/{MXY2C4UH.js → ENSUS3VL.js} +1 -1
- package/dist/cdn/{JMJ3LJGR.js → ESTUA4YE.js} +1 -1
- package/dist/cdn/{SEG3YDME.js → EVYO2SIO.js} +1 -1
- package/dist/cdn/{FOFJHQ4Z.js → FCRUDE4P.js} +1 -1
- package/dist/cdn/{NGMHPU5E.js → FCRWSG6Z.js} +1 -1
- package/dist/cdn/{76M43EVT.js → FJT2YAI6.js} +1 -1
- package/dist/cdn/{SLTQSWGA.js → G4CPNGQ6.js} +1 -1
- package/dist/cdn/{XIOGQDJH.js → GJIDZ4M6.js} +1 -1
- package/dist/cdn/{P3U6DQN6.js → GLNO2ZMW.js} +1 -1
- package/dist/cdn/{HBEXNLQM.js → GPPU5K5J.js} +1 -1
- package/dist/cdn/{ZUXQKICJ.js → GPVFCWMU.js} +1 -1
- package/dist/cdn/{TOVZMHWU.js → GRUB3M36.js} +1 -1
- package/dist/cdn/{JMRI4LOI.js → H3J6GAKO.js} +1 -1
- package/dist/cdn/{HNFXE43W.js → HIHYNNEU.js} +1 -1
- package/dist/cdn/{FT7ETWDM.js → HKTQWWXP.js} +1 -1
- package/dist/cdn/I5MVHBKV.js +2 -0
- package/dist/cdn/{BXKNMJRR.js → IDZCPNFC.js} +1 -1
- package/dist/cdn/{XHZ4LEYE.js → IHVHH3Z4.js} +1 -1
- package/dist/cdn/{FWRUNJU5.js → IKBRNNUA.js} +1 -1
- package/dist/cdn/{NSE7MO5B.js → IPLVHFN5.js} +1 -1
- package/dist/cdn/{W3HICVNX.js → IQSSVLSC.js} +1 -1
- package/dist/cdn/{B56MNMJP.js → ITCLBS5H.js} +1 -1
- package/dist/cdn/{ZFFLDL4P.js → IZVYML7I.js} +1 -1
- package/dist/cdn/{CM2CNZDR.js → JBD3X2G7.js} +1 -1
- package/dist/cdn/{C4F6EN5S.js → JCHYVWCR.js} +1 -1
- package/dist/cdn/JCRPP54Z.js +2 -0
- package/dist/cdn/{GXVM7UPW.js → JLZJ354E.js} +1 -1
- package/dist/cdn/JSQZYDU6.js +2 -0
- package/dist/cdn/{YJP7TIKT.js → K3BJFKYY.js} +1 -1
- package/dist/cdn/{IGK4DKJ2.js → K5M3ZRVS.js} +1 -1
- package/dist/cdn/{GWZQD2KS.js → K7LJE67S.js} +1 -1
- package/dist/cdn/{FX7YHZMN.js → K7UC43CL.js} +1 -1
- package/dist/cdn/{YJM4JJRY.js → KBHTEAAG.js} +1 -1
- package/dist/cdn/{VOZ7A7UW.js → KG2IHV32.js} +1 -1
- package/dist/cdn/{IXZEUVT2.js → KLXEJCTT.js} +1 -1
- package/dist/cdn/{H47NPYUM.js → KPOSO4HB.js} +1 -1
- package/dist/cdn/{MFNC5YCH.js → KQT5MAFE.js} +1 -1
- package/dist/cdn/{DKH7GP3H.js → KXLCQG2D.js} +1 -1
- package/dist/cdn/{KLZFVT3D.js → KZBBEVWQ.js} +1 -1
- package/dist/cdn/{TMTDOGUQ.js → LA3UYF7I.js} +1 -1
- package/dist/cdn/{OOGQULHG.js → LKR52VUM.js} +1 -1
- package/dist/cdn/{OOLXNUY7.js → MAJ3JPSY.js} +1 -1
- package/dist/cdn/{FKGPQIBN.js → MDXQUNKW.js} +1 -1
- package/dist/cdn/{J33ULIDR.js → MECGUFOT.js} +1 -1
- package/dist/cdn/{UNJTV3EI.js → MMNJNQ3Q.js} +1 -1
- package/dist/cdn/{REGSXPSY.js → MOIULPNJ.js} +1 -1
- package/dist/cdn/{UCPXN4Y5.js → MPYM4XNR.js} +1 -1
- package/dist/cdn/{2HQBEMYE.js → MTYQJ4TB.js} +1 -1
- package/dist/cdn/{6FRKBUG7.js → MZ35VFYR.js} +1 -1
- package/dist/cdn/{6ANMW473.js → N3JXA7DZ.js} +1 -1
- package/dist/cdn/{YKNC7IPO.js → NANWWHJ6.js} +1 -1
- package/dist/cdn/{2ENPU5CD.js → NAWH5P73.js} +1 -1
- package/dist/cdn/{Q6WNAJIC.js → NC472JXT.js} +1 -1
- package/dist/cdn/{BZNHYPVY.js → NCHQCPM6.js} +1 -1
- package/dist/cdn/{PDXPDGIN.js → NQSW6QJ6.js} +1 -1
- package/dist/cdn/{4BGPI3L3.js → NR53EGV6.js} +1 -1
- package/dist/cdn/{HVUITMRU.js → NRYA6EOZ.js} +1 -1
- package/dist/cdn/{EN3H2GBU.js → NVKY5H7W.js} +1 -1
- package/dist/cdn/{TOWBALAU.js → NXELRSXN.js} +1 -1
- package/dist/cdn/{O24XZVUV.js → NYS47GN2.js} +1 -1
- package/dist/cdn/{XDS3ZIHV.js → O7SRECHG.js} +1 -1
- package/dist/cdn/{2DSE5WHM.js → OF562TYT.js} +1 -1
- package/dist/cdn/{FAWJCFZQ.js → OMHMO6DD.js} +1 -1
- package/dist/cdn/{ZRRENPUV.js → OPP5DWFT.js} +1 -1
- package/dist/cdn/{HJ72UWKP.js → PIRA7ITO.js} +1 -1
- package/dist/cdn/{DFZK7FIP.js → PKS3JYAN.js} +1 -1
- package/dist/cdn/{TQHPE2X2.js → PLLSFCLD.js} +1 -1
- package/dist/cdn/{EQSDRIG6.js → PXZ7GYGB.js} +1 -1
- package/dist/cdn/{AC3GTCHJ.js → QAU5TWTZ.js} +1 -1
- package/dist/cdn/{SJIHZIXG.js → QFH7PJYV.js} +1 -1
- package/dist/cdn/{GJNYMDKO.js → QKCBJKWT.js} +1 -1
- package/dist/cdn/{M2MJH2FX.js → R5NVFWFA.js} +1 -1
- package/dist/cdn/R6Y3QBJZ.js +2 -0
- package/dist/cdn/{CFM2RF2I.js → R72MT5TQ.js} +1 -1
- package/dist/cdn/{KVE5RIEE.js → RKXL42SK.js} +1 -1
- package/dist/cdn/{TPZUKUI7.js → RO35U2LW.js} +1 -1
- package/dist/cdn/{J2ZJJKEI.js → ROIAI7KY.js} +1 -1
- package/dist/cdn/{FPX4MV2U.js → S3NMAVL6.js} +1 -1
- package/dist/cdn/{HUBIN764.js → S7HZFJQZ.js} +1 -1
- package/dist/cdn/SAEE5GTI.js +2 -0
- package/dist/cdn/{KTXZR4IK.js → SBUR54TP.js} +1 -1
- package/dist/cdn/{PGCAY24R.js → SFP62RAJ.js} +1 -1
- package/dist/cdn/{GJMQ36NP.js → SGY36MUJ.js} +1 -1
- package/dist/cdn/{KG7UUIXV.js → SHJGMBBY.js} +1 -1
- package/dist/cdn/{Z42EKLRO.js → SJP5NLRB.js} +1 -1
- package/dist/cdn/{Y34KC34C.js → SNDTIGUT.js} +1 -1
- package/dist/cdn/{EMFCOFJ7.js → SPJCXMMT.js} +1 -1
- package/dist/cdn/{5Y3L2RDW.js → SSVJJAR5.js} +1 -1
- package/dist/cdn/{2HCFI5P5.js → SWKWLPLG.js} +1 -1
- package/dist/cdn/{UCEBZVNP.js → TA7JY4OV.js} +1 -1
- package/dist/cdn/{LDIKIEPN.js → TAFFNLUI.js} +1 -1
- package/dist/cdn/{H2U2JK4T.js → TCFK2EXM.js} +1 -1
- package/dist/cdn/{RMIR7645.js → TCKCE5NB.js} +1 -1
- package/dist/cdn/{BCFML3VR.js → TCS6CS2V.js} +1 -1
- package/dist/cdn/{DPZPIVA7.js → TCYTMU4A.js} +1 -1
- package/dist/cdn/{ITRTOO6W.js → TDEIRM7H.js} +1 -1
- package/dist/cdn/{CTPATSJU.js → TMOESX4H.js} +1 -1
- package/dist/cdn/{TUTJXJ6H.js → TSL4BZHI.js} +1 -1
- package/dist/cdn/{3M2ZWBEY.js → TZAGBPDN.js} +1 -1
- package/dist/cdn/{64S26ZIP.js → TZHGOM2Y.js} +1 -1
- package/dist/cdn/{2MO6LJPR.js → UEYLTX3J.js} +1 -1
- package/dist/cdn/{FG75P4KZ.js → UFGA4NGM.js} +1 -1
- package/dist/cdn/{6LYXJS6X.js → UMJTWBQ3.js} +1 -1
- package/dist/cdn/{ZZRHGYCY.js → UQIJOVPD.js} +1 -1
- package/dist/cdn/{RAUCP5RZ.js → V2FVPSX3.js} +1 -1
- package/dist/cdn/{Q4PNCUBK.js → V7MKCC7O.js} +1 -1
- package/dist/cdn/{L4UGJGS2.js → VHIOEBAH.js} +1 -1
- package/dist/cdn/{JCTU3MST.js → VJ2SMYNX.js} +1 -1
- package/dist/cdn/{6FMZAOVP.js → VLJKBHDD.js} +1 -1
- package/dist/cdn/{5SZX4F2U.js → VLXRN5II.js} +1 -1
- package/dist/cdn/{RXXEVGCM.js → VRWFW2LF.js} +1 -1
- package/dist/cdn/{YGAY263P.js → VSXLCBBA.js} +1 -1
- package/dist/cdn/{MDHIPDGE.js → VYBNGAPG.js} +1 -1
- package/dist/cdn/{HHSGISLJ.js → W2WYFYTT.js} +1 -1
- package/dist/cdn/{IPJSPBVN.js → WBLJSZV4.js} +1 -1
- package/dist/cdn/{KUPGJQBQ.js → WKQXQLLR.js} +1 -1
- package/dist/cdn/XJU225AF.js +2 -0
- package/dist/cdn/{TCQVDAIJ.js → XJVFSXPM.js} +1 -1
- package/dist/cdn/XPSJ37QH.js +2 -0
- package/dist/cdn/{VPF46BTA.js → YCVINCOI.js} +1 -1
- package/dist/cdn/{EM4QPCQL.js → YMCZRMWW.js} +1 -1
- package/dist/cdn/{V6GGLHFM.js → YMHPA3VC.js} +1 -1
- package/dist/cdn/YNIECEKR.js +2 -0
- package/dist/cdn/YOXKII2K.js +2 -0
- package/dist/cdn/{SF7HIXTT.js → YSLSCMZ4.js} +1 -1
- package/dist/cdn/{6WOZIOJH.js → YU7SUXHY.js} +1 -1
- package/dist/cdn/{ZAYZVEUD.js → YUCJQ6XI.js} +1 -1
- package/dist/cdn/{LXVRZSZ6.js → YUV3XEWE.js} +1 -1
- package/dist/cdn/{RCRVCOEZ.js → Z66KOPPI.js} +1 -1
- package/dist/cdn/{TI4T3QPS.js → Z77JVENV.js} +1 -1
- package/dist/cdn/{J5LPKT5M.js → ZBWHLMXA.js} +1 -1
- package/dist/cdn/{QXTTJTWV.js → ZQBMKJX7.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/css.js +25 -0
- package/dist/chunks/earth-utils.js +21 -0
- package/dist/chunks/layer-list-next.js +7 -0
- package/dist/chunks/layer-list-utils.js +6 -6
- package/dist/chunks/runtime.js +5 -5
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +108 -125
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +85 -103
- package/dist/components/arcgis-daylight/customElement.js +174 -190
- package/dist/components/arcgis-feature-table/customElement.js +34 -34
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +86 -93
- package/dist/components/arcgis-features/customElement.d.ts +2 -2
- package/dist/components/arcgis-features/customElement.js +23 -21
- package/dist/components/arcgis-features-next/customElement.d.ts +0 -7
- package/dist/components/arcgis-features-next/customElement.js +1 -5
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +51 -9
- package/dist/components/arcgis-layer-list-next/customElement.js +111 -110
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +0 -9
- package/dist/components/arcgis-popup/customElement.js +0 -3
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +4 -1
- package/dist/components/arcgis-presentation/customElement.d.ts +7 -0
- package/dist/components/arcgis-presentation/customElement.js +117 -101
- package/dist/components/arcgis-search/customElement.js +5 -5
- package/dist/components/arcgis-shadow-cast/customElement.js +96 -85
- package/dist/components/arcgis-table-list-next/customElement.js +59 -80
- package/dist/components/arcgis-time-of-day-slider/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +4 -4
- package/dist/cdn/5P3LF4QU.js +0 -2
- package/dist/cdn/5RXWVXJA.js +0 -2
- package/dist/cdn/BGWYOIKY.js +0 -2
- package/dist/cdn/BV6DN77M.js +0 -2
- package/dist/cdn/DKG4Q4BC.js +0 -2
- package/dist/cdn/GOXEUMKX.js +0 -2
- package/dist/cdn/GUBDP7SN.js +0 -2
- package/dist/cdn/IXWSTLNL.js +0 -2
- package/dist/cdn/JD2JNE73.js +0 -2
- package/dist/cdn/KLKFMZ7U.js +0 -2
- package/dist/cdn/MV56NKNP.js +0 -2
- package/dist/cdn/NR6V3DTH.js +0 -2
- package/dist/cdn/SRKKE3UN.js +0 -2
- package/dist/cdn/UGOZSFW2.js +0 -2
- package/dist/cdn/VL2VVN6C.js +0 -2
- package/dist/cdn/VVATJD2C.js +0 -2
- package/dist/cdn/VZVNKP6W.js +0 -2
- package/dist/cdn/YAJLIV63.js +0 -2
- package/dist/cdn/YUBFK6NS.js +0 -2
- package/dist/chunks/layer-list-item-indicator.js +0 -74
- package/dist/chunks/layer-list-item.js +0 -6
- /package/dist/cdn/{OTZMVWAB.js → H7BPQQ3W.js} +0 -0
|
@@ -1,58 +1,41 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { repeat as
|
|
6
|
-
import
|
|
2
|
+
import { c as O } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as D, html as o } from "lit";
|
|
4
|
+
import { keyed as d } from "lit/directives/keyed.js";
|
|
5
|
+
import { repeat as x } from "lit/directives/repeat.js";
|
|
6
|
+
import k from "@arcgis/core/widgets/BasemapLayerList/BasemapLayerListViewModel.js";
|
|
7
7
|
import y from "@arcgis/core/core/Collection.js";
|
|
8
|
-
import { on as
|
|
9
|
-
import { LitElement as G, createEvent as N, renderElement as
|
|
10
|
-
import { usePropertyChange as
|
|
11
|
-
import { reEmitEvent as
|
|
12
|
-
import { classes as
|
|
8
|
+
import { on as S, watch as U } from "@arcgis/core/core/reactiveUtils.js";
|
|
9
|
+
import { LitElement as G, createEvent as N, renderElement as w, safeClassMap as f, nothing as _ } from "@arcgis/lumina";
|
|
10
|
+
import { usePropertyChange as H } from "@arcgis/lumina/controllers";
|
|
11
|
+
import { reEmitEvent as V } from "@arcgis/lumina/controllers/accessor";
|
|
12
|
+
import { classes as q } from "@arcgis/toolkit/dom";
|
|
13
13
|
import { generateGuid as j } from "@arcgis/toolkit/string";
|
|
14
|
-
import { createRef as m, ref as
|
|
15
|
-
import { u as
|
|
16
|
-
import { u as
|
|
17
|
-
import { m as
|
|
18
|
-
import { g as
|
|
19
|
-
import { g as
|
|
14
|
+
import { createRef as m, ref as g } from "lit/directives/ref.js";
|
|
15
|
+
import { u as z } from "../../chunks/useCloseEvent.js";
|
|
16
|
+
import { u as J } from "../../chunks/useT9n.js";
|
|
17
|
+
import { m as K } from "../../chunks/useViewModel.js";
|
|
18
|
+
import { g as L } from "../../chunks/globalCss.js";
|
|
19
|
+
import { g as h, a as $, b as Q, r as W, s as F, c as X, d as Y, e as Z } from "../../chunks/layer-list-utils.js";
|
|
20
20
|
import { ArcgisLayerListItem as ee } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
|
|
21
|
-
import { s as te } from "../../chunks/layer-list-
|
|
22
|
-
import "../../chunks/
|
|
21
|
+
import { s as te, a as se } from "../../chunks/layer-list-next.js";
|
|
22
|
+
import { c as ie } from "../../chunks/css.js";
|
|
23
|
+
import "../arcgis-layer-list-item-indicator/customElement.js";
|
|
23
24
|
import "../arcgis-layer-list-item-panel/customElement.js";
|
|
24
25
|
const p = {
|
|
25
|
-
|
|
26
|
-
actionGroup: "action-group",
|
|
27
|
-
filterNoResults: "filter-no-results",
|
|
28
|
-
item: "item",
|
|
29
|
-
itemActive: "active",
|
|
30
|
-
itemContentBottom: "content-bottom",
|
|
31
|
-
itemMessage: "message",
|
|
32
|
-
itemActionIcon: "action-icon",
|
|
33
|
-
itemActionImage: "action-image",
|
|
34
|
-
itemTemporaryIcon: "temporary-icon",
|
|
35
|
-
itemTableIcon: "table-icon",
|
|
36
|
-
itemCatalogIcon: "catalog-icon",
|
|
37
|
-
statusIndicator: "status-indicator",
|
|
38
|
-
publishing: "publishing",
|
|
39
|
-
updating: "updating",
|
|
40
|
-
connectionStatus: "connection-status",
|
|
41
|
-
connectionStatusConnected: "connection-status--connected",
|
|
42
|
-
visibleToggle: "visible-toggle",
|
|
43
|
-
visibleIcon: "visible-icon",
|
|
26
|
+
...ie,
|
|
44
27
|
section: "section",
|
|
45
28
|
editing: "editing",
|
|
46
29
|
editingForm: "editing-form"
|
|
47
|
-
}, ie = B`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{display:flex;min-height:var(--calcite-space-3xl);overflow-y:auto;transition:max-height .25s ease-in-out;--arcgis-layer-list-visibility-icon: hidden}:host>div{display:flex;width:100%}.editing-form{display:flex;height:100%}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.item{--calcite-list-item-icon-center: 8.5px}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);background-position:50%;background-repeat:no-repeat;background-size:contain;font-size:var(--calcite-font-size);text-align:center}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}.content-bottom,.message{margin:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`, F = "nested", se = ".*\\S+.*", T = "data-basemap-layer-type", ae = q(D);
|
|
48
|
-
class
|
|
30
|
+
}, ae = D`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`, T = "nested", le = ".*\\S+.*", E = "data-basemap-layer-type", re = K(k);
|
|
31
|
+
class oe extends G {
|
|
49
32
|
constructor() {
|
|
50
|
-
super(...arguments), this._baseListRef = m(), this._referenceListRef = m(), this._editTitleInputRef = m(), this._layerFlowItemRef = m(), this._panelFlowItemRef = m(), this._rootFlowItemRef = m(), this._editingFlowItemRef = m(), this._lastDragDetail = null, this._selectedDragItemLayerUid = null, this._rootGroupUid = `basemap-${j()}`, this._openedLayersController = null, this._focusRootFlowItem = !1, this._focusPanelFlowItem = !1, this._focusLayerFlowItem = null, this._focusEditingFlowItem = !1, this.messages =
|
|
51
|
-
const
|
|
52
|
-
if (!
|
|
33
|
+
super(...arguments), this._baseListRef = m(), this._referenceListRef = m(), this._editTitleInputRef = m(), this._layerFlowItemRef = m(), this._panelFlowItemRef = m(), this._rootFlowItemRef = m(), this._editingFlowItemRef = m(), this._lastDragDetail = null, this._selectedDragItemLayerUid = null, this._rootGroupUid = `basemap-${j()}`, this._openedLayersController = null, this._focusRootFlowItem = !1, this._focusPanelFlowItem = !1, this._focusLayerFlowItem = null, this._focusEditingFlowItem = !1, this.messages = J(), this.viewModel = re(this), this.arcgisClose = z(this), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, i) => {
|
|
34
|
+
const l = i === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, r = h(e, this._allItems);
|
|
35
|
+
if (!r?.sortable)
|
|
53
36
|
return !1;
|
|
54
|
-
const a =
|
|
55
|
-
return
|
|
37
|
+
const a = h(t, this._allItems), n = $(t), c = h(s, this._allItems), I = $(s), u = !!n && !!I && n === I, M = { selected: r, from: a, to: c }, R = t.group, P = s.group, A = a?.layer?.type ?? "", B = c?.layer?.type ?? "", v = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
|
|
38
|
+
return R && P && typeof l == "function" ? l(M) : u && !v.has(A) && !v.has(B) && r.layer?.type !== "sublayer";
|
|
56
39
|
}, this._onTriggerAction = (e, t) => {
|
|
57
40
|
this.triggerAction(e, t);
|
|
58
41
|
}, this._onTooltipReferenceChange = (e, t) => {
|
|
@@ -70,8 +53,8 @@ class re extends G {
|
|
|
70
53
|
}, this._setActiveItem = (e) => {
|
|
71
54
|
if (this.visibilityAppearance !== "default")
|
|
72
55
|
return;
|
|
73
|
-
const t = Array.from(e.composedPath()).find((
|
|
74
|
-
this._activeItem =
|
|
56
|
+
const t = Array.from(e.composedPath()).find((s) => s.classList?.contains(p.item));
|
|
57
|
+
this._activeItem = h(t, this._allItems) ?? null;
|
|
75
58
|
}, this._onSelectedDragItemLayerUidChange = (e) => {
|
|
76
59
|
this._selectedDragItemLayerUid = e;
|
|
77
60
|
}, this._toggleEditingTitle = () => {
|
|
@@ -81,13 +64,13 @@ class re extends G {
|
|
|
81
64
|
e.preventDefault();
|
|
82
65
|
const t = this._editTitleInputRef.value?.value;
|
|
83
66
|
t?.trim() && (this.basemapTitle = t), this._toggleEditingTitle();
|
|
84
|
-
}, this._activeItem = null, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.openedLayerLists = new y(), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.baseFilterText = "", this.baseListItemCreatedFunction = this.viewModel.baseListItemCreatedFunction, this.basemapTitle = this.viewModel.basemapTitle, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.editingTitle = !1, this.filterPlaceholder = "", this.headingLevel = 2, this.icon = "layers", this.layerTablesEnabled = new y(["knowledge-graph"]), this.minFilterItems =
|
|
67
|
+
}, this._activeItem = null, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.openedLayerLists = new y(), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.baseFilterText = "", this.baseListItemCreatedFunction = this.viewModel.baseListItemCreatedFunction, this.basemapTitle = this.viewModel.basemapTitle, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.editingTitle = !1, this.filterPlaceholder = "", this.headingLevel = 2, this.icon = "layers", this.layerTablesEnabled = new y(["knowledge-graph"]), this.minFilterItems = Q, this.openedLayers = new y(), this.referenceFilterText = "", this.referenceListItemCreatedFunction = this.viewModel.referenceListItemCreatedFunction, this.selectedItems = new y(), this.selectionMode = "none", this.visibilityAppearance = "default", this.hideBaseLayers = !1, this.hideCatalogLayerList = !1, this.hideHeading = !1, this.hideReferenceLayers = !1, this.hideStatusIndicators = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showEditTitleButton = !1, this.showErrors = !1, this.showFilter = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = H()("state"), this.arcgisReady = N(), this.arcgisTriggerAction = V(() => this.viewModel, "trigger-action");
|
|
85
68
|
}
|
|
86
69
|
static {
|
|
87
70
|
this.properties = { _activeItem: 16, _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, openedLayerLists: 16, _allItems: 16, _visibleBaseItems: 16, _visibleReferenceItems: 16, _openedPanelItems: 16, _totalBaseItems: 16, _totalReferenceItems: 16, _baseFilterEnabled: 16, _referenceFilterEnabled: 16, _renderedOpenLayerFlowItems: 16, view: 0, autoDestroyDisabled: 5, baseFilterPredicate: 0, baseFilterText: 1, baseItems: 32, baseListItemCreatedFunction: 0, basemapTitle: 1, catalogLayerList: 32, catalogOptions: 0, closed: 5, collapsed: 7, dragEnabled: 5, editingTitle: 5, filterPlaceholder: 1, headingLevel: 9, icon: 1, knowledgeGraphOptions: 0, label: 1, layerTablesEnabled: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, mapImageOptions: 0, minFilterItems: 9, openedLayers: 32, position: 1, referenceElement: 1, referenceFilterPredicate: 0, referenceFilterText: 1, referenceItems: 32, referenceListItemCreatedFunction: 0, selectedItems: 0, selectionMode: 1, tableList: 32, tileOptions: 0, visibilityAppearance: 1, hideBaseLayers: 5, hideCatalogLayerList: 5, hideHeading: 5, hideReferenceLayers: 5, hideStatusIndicators: 5, showCloseButton: 5, showCollapseButton: 5, showEditTitleButton: 5, showErrors: 5, showFilter: 5, showTemporaryLayerIndicators: 5, messageOverrides: 0, state: 32 };
|
|
88
71
|
}
|
|
89
72
|
static {
|
|
90
|
-
this.styles = [
|
|
73
|
+
this.styles = [te, ae, se];
|
|
91
74
|
}
|
|
92
75
|
get _allItems() {
|
|
93
76
|
return this.referenceItems.concat(this.baseItems);
|
|
@@ -133,45 +116,45 @@ class re extends G {
|
|
|
133
116
|
}
|
|
134
117
|
loaded() {
|
|
135
118
|
this.manager.onLifecycle(() => [
|
|
136
|
-
|
|
119
|
+
S(() => this.openedLayers, "change", () => {
|
|
137
120
|
this._handleOpenedLayersChange();
|
|
138
121
|
}, { initial: !0 }),
|
|
139
|
-
|
|
122
|
+
U(() => [this.viewModel.referenceItems.toArray(), this.viewModel.baseItems.toArray()], () => W(this.selectedItems), { initial: !0 })
|
|
140
123
|
]);
|
|
141
124
|
}
|
|
142
125
|
updated() {
|
|
143
|
-
|
|
126
|
+
F(this._baseListRef.value, this.baseFilterPredicate, this.baseItems), F(this._referenceListRef.value, this.referenceFilterPredicate, this.referenceItems);
|
|
144
127
|
}
|
|
145
128
|
triggerAction(e, t) {
|
|
146
129
|
this.viewModel.triggerAction(e, t);
|
|
147
130
|
}
|
|
148
131
|
async _createFlowList(e, t) {
|
|
149
|
-
const
|
|
150
|
-
if (
|
|
151
|
-
return
|
|
152
|
-
const
|
|
153
|
-
return t.aborted || this._layerListMap.set(e,
|
|
132
|
+
const s = this._layerListMap.get(e);
|
|
133
|
+
if (s)
|
|
134
|
+
return s;
|
|
135
|
+
const i = e.type === "catalog" ? await this._createCatalogLayerList(e) : await this._createTableList(e);
|
|
136
|
+
return t.aborted || this._layerListMap.set(e, i), i;
|
|
154
137
|
}
|
|
155
138
|
async _handleOpenedLayersChange() {
|
|
156
|
-
const { _layerListMap: e, openedLayers: t, openedLayerLists:
|
|
139
|
+
const { _layerListMap: e, openedLayers: t, openedLayerLists: s } = this;
|
|
157
140
|
this._openedLayersController?.abort();
|
|
158
|
-
const
|
|
159
|
-
this._openedLayersController =
|
|
160
|
-
t.includes(c) || (
|
|
141
|
+
const i = new AbortController(), { signal: l } = i;
|
|
142
|
+
this._openedLayersController = i, e.forEach((n, c) => {
|
|
143
|
+
t.includes(c) || (n?.destroy?.(), e.delete(c));
|
|
161
144
|
});
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
145
|
+
const r = await Promise.all(t.map((n) => this._createFlowList(n, l)));
|
|
146
|
+
if (l.aborted)
|
|
164
147
|
return;
|
|
165
|
-
|
|
166
|
-
const a =
|
|
148
|
+
s.removeAll(), s.addMany(r);
|
|
149
|
+
const a = s.at(-1);
|
|
167
150
|
a ? "catalogLayer" in a ? (this._catalogLayerList = a, this._tableList = void 0) : (this._catalogLayerList = void 0, this._tableList = a) : (this._catalogLayerList = void 0, this._tableList = void 0);
|
|
168
151
|
}
|
|
169
152
|
_destroyOpenedLayerLists() {
|
|
170
153
|
this.openedLayerLists.destroyAll(), this.openedLayers.removeAll(), this._layerListMap.clear();
|
|
171
154
|
}
|
|
172
155
|
async _createCatalogLayerList(e) {
|
|
173
|
-
const { headingLevel: t, catalogOptions:
|
|
174
|
-
return
|
|
156
|
+
const { headingLevel: t, catalogOptions: s, filterPlaceholder: i, minFilterItems: l, selectionMode: r, visibilityAppearance: a, layerTablesEnabled: n } = this;
|
|
157
|
+
return w(o`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? i} .listItemCreatedFunction=${s?.listItemCreatedFunction} .minFilterItems=${s?.minFilterItems ?? l} .selectionMode=${s?.selectionMode ?? r} .visibilityAppearance=${s?.visibilityAppearance ?? a} .showErrors=${s?.visibleElements?.errors ?? this.showErrors} .showFilter=${s?.visibleElements?.filter ?? this.showFilter} .hideStatusIndicators=${s?.visibleElements?.statusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.visibleElements?.temporaryLayerIndicators ?? this.showTemporaryLayerIndicators} @arcgisReady=${(c) => c.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${n} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list>`);
|
|
175
158
|
}
|
|
176
159
|
_getTableListParams(e) {
|
|
177
160
|
switch (e.type) {
|
|
@@ -187,56 +170,56 @@ class re extends G {
|
|
|
187
170
|
}
|
|
188
171
|
async _createTableList(e) {
|
|
189
172
|
const t = this._getTableListParams(e);
|
|
190
|
-
return
|
|
173
|
+
return w(o`<arcgis-table-list .headingLevel=${t?.headingLevel ?? this.headingLevel} .selectionMode=${t?.selectionMode ?? this.selectionMode} .dragEnabled=${t?.dragEnabled ?? this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon ?? void 0} .label=${t?.label ?? void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(s) => s.stopPropagation()}></arcgis-table-list>`);
|
|
191
174
|
}
|
|
192
175
|
_handlePanelFlowItemBack(e) {
|
|
193
176
|
e.open = !1, this._focusRootFlowItem = !0;
|
|
194
177
|
}
|
|
195
|
-
_moveLayerFromChildList({ toEl: e, fromEl: t, dragEl:
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
targetItem:
|
|
178
|
+
_moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: s, newIndex: i }) {
|
|
179
|
+
const l = h(s, this._allItems), r = h(e, this._allItems), a = h(t, this._allItems), n = C(t), c = C(e);
|
|
180
|
+
i == null || !l || !a || !r || !n || !c || this.viewModel.moveListItem({
|
|
181
|
+
targetItem: l,
|
|
199
182
|
fromParentItem: a,
|
|
200
|
-
toParentItem:
|
|
201
|
-
newIndex:
|
|
202
|
-
from:
|
|
183
|
+
toParentItem: r,
|
|
184
|
+
newIndex: i,
|
|
185
|
+
from: n,
|
|
203
186
|
to: c
|
|
204
187
|
});
|
|
205
188
|
}
|
|
206
189
|
_handleCalciteListDragEnd(e) {
|
|
207
|
-
const { fromEl: t, toEl:
|
|
208
|
-
if (t !==
|
|
209
|
-
|
|
190
|
+
const { fromEl: t, toEl: s, dragEl: i, oldIndex: l } = e;
|
|
191
|
+
if (t !== s) {
|
|
192
|
+
i.remove();
|
|
210
193
|
return;
|
|
211
194
|
}
|
|
212
|
-
|
|
195
|
+
l == null || !t || !i || t.insertBefore(i, t.children[l]);
|
|
213
196
|
}
|
|
214
197
|
_onCalciteListOrderChange(e) {
|
|
215
|
-
const { _lastDragDetail: t } = this, { toEl:
|
|
216
|
-
if (!
|
|
198
|
+
const { _lastDragDetail: t } = this, { toEl: s, fromEl: i, dragEl: l, newIndex: r } = e, a = t?.newIndex === r && t?.dragEl === l && t?.toEl === s && t?.fromEl === i;
|
|
199
|
+
if (!i || !s || a)
|
|
217
200
|
return;
|
|
218
|
-
this._lastDragDetail = e, this._selectedDragItemLayerUid =
|
|
219
|
-
const
|
|
220
|
-
if (
|
|
221
|
-
const
|
|
222
|
-
this._sortLayers(
|
|
201
|
+
this._lastDragDetail = e, this._selectedDragItemLayerUid = l.value.layer?.uid ?? null;
|
|
202
|
+
const n = i, c = s;
|
|
203
|
+
if (n === c) {
|
|
204
|
+
const I = Array.from(i.children).filter((u) => u?.matches("calcite-list-item")).map((u) => u.value.layer?.uid ?? "");
|
|
205
|
+
this._sortLayers(n, I);
|
|
223
206
|
return;
|
|
224
207
|
}
|
|
225
|
-
this._moveLayerFromChildList({ toEl: c, fromEl:
|
|
208
|
+
this._moveLayerFromChildList({ toEl: c, fromEl: n, dragEl: l, newIndex: r });
|
|
226
209
|
}
|
|
227
210
|
_sortLayers(e, t) {
|
|
228
211
|
if (e === this._referenceListRef.value || e === this._baseListRef.value) {
|
|
229
|
-
const
|
|
230
|
-
|
|
212
|
+
const i = e === this._baseListRef.value ? this.view?.map?.basemap?.baseLayers : this.view?.map?.basemap?.referenceLayers;
|
|
213
|
+
X(i, t);
|
|
231
214
|
return;
|
|
232
215
|
}
|
|
233
|
-
const
|
|
234
|
-
|
|
216
|
+
const s = h(e, this._allItems);
|
|
217
|
+
s && Y(s, t);
|
|
235
218
|
}
|
|
236
219
|
_handleCalciteListChange(e) {
|
|
237
220
|
if (this.selectionMode === "none")
|
|
238
221
|
return;
|
|
239
|
-
const t = e.target.selectedItems.map((
|
|
222
|
+
const t = e.target.selectedItems.map((s) => h(s, this._allItems)).filter(Boolean);
|
|
240
223
|
this.selectedItems.removeAll(), this.selectedItems.addMany(t);
|
|
241
224
|
}
|
|
242
225
|
_focusFlowItem(e, t) {
|
|
@@ -244,70 +227,70 @@ class re extends G {
|
|
|
244
227
|
}
|
|
245
228
|
render() {
|
|
246
229
|
const e = {
|
|
247
|
-
[
|
|
248
|
-
[
|
|
230
|
+
[L.hidden]: this.state === "loading",
|
|
231
|
+
[L.disabled]: this.state === "disabled"
|
|
249
232
|
};
|
|
250
|
-
return
|
|
233
|
+
return o`<div class=${f(q(L.widget, L.panel, e))}>${this._renderItems()}${this._renderItemTooltips()}</div>`;
|
|
251
234
|
}
|
|
252
235
|
_renderItemTooltip(e) {
|
|
253
|
-
return e ?
|
|
236
|
+
return e ? o`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid ?? "")}>${this.messages.layerIncompatibleTooltip}</calcite-tooltip>` : null;
|
|
254
237
|
}
|
|
255
238
|
_renderItemTooltipNodes(e) {
|
|
256
239
|
if (e.incompatible)
|
|
257
240
|
return this._renderItemTooltip(e);
|
|
258
|
-
const t = e.children?.filter((
|
|
241
|
+
const t = e.children?.filter((s) => !s.hidden).toArray().map((s) => this._renderItemTooltipNodes(s));
|
|
259
242
|
return t?.length ? t : null;
|
|
260
243
|
}
|
|
261
244
|
_renderItemTooltips() {
|
|
262
245
|
return this._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map((e) => this._renderItemTooltipNodes(e));
|
|
263
246
|
}
|
|
264
247
|
_renderNoLayersInfoMessage(e) {
|
|
265
|
-
return
|
|
248
|
+
return o`<div slot=message>${e}</div>`;
|
|
266
249
|
}
|
|
267
250
|
_renderNoLayersInfo(e, t) {
|
|
268
|
-
return
|
|
251
|
+
return o`<div class=${f(p.itemMessage)}>${d(t, o`<calcite-notice icon=information kind=info open width=full>${this._renderNoLayersInfoMessage(e)}</calcite-notice>`)}</div>`;
|
|
269
252
|
}
|
|
270
253
|
_renderEditingInput() {
|
|
271
|
-
return
|
|
254
|
+
return o`<div class=${f(p.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${le} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle ?? _} type=text .value=${this.viewModel.basemapTitle ?? void 0} ${g(this._editTitleInputRef)}></calcite-input></calcite-label></div>`;
|
|
272
255
|
}
|
|
273
256
|
_renderEditingForm() {
|
|
274
|
-
return this.editingTitle ?
|
|
257
|
+
return this.editingTitle ? o`<form class=${f(p.editingForm)} @submit=${this._formSubmit}><calcite-flow-item .heading=${this.hideHeading ? void 0 : this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length && !this._openedPanelItems.length} @calciteFlowItemBack=${(e) => {
|
|
275
258
|
e.preventDefault(), this._toggleEditingTitle();
|
|
276
|
-
}} ${
|
|
259
|
+
}} ${g(this._editingFlowItemRef)}>${this._renderEditingInput()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item></form>` : null;
|
|
277
260
|
}
|
|
278
261
|
_renderEditTitleButton() {
|
|
279
|
-
return this.showEditTitleButton && !this.editingTitle ?
|
|
262
|
+
return this.showEditTitleButton && !this.editingTitle ? o`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit ?? ""} title=${this.messages.edit ?? _}></calcite-action>` : null;
|
|
280
263
|
}
|
|
281
264
|
_renderItems() {
|
|
282
265
|
const e = [
|
|
283
|
-
|
|
266
|
+
d("root-flow-item", o`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading ? void 0 : this.viewModel.basemapTitle ?? this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle && !this.openedLayers.length && !this._openedPanelItems.length} @calciteFlowItemClose=${() => {
|
|
284
267
|
this.closed = !0;
|
|
285
|
-
}} ${
|
|
268
|
+
}} ${g(this._rootFlowItemRef)}>${this._renderEditTitleButton()}${this._renderReferenceSection()}${this._renderBaseSection()}</calcite-flow-item>`),
|
|
286
269
|
this._renderEditingForm(),
|
|
287
270
|
this._renderPanelFlowItems(),
|
|
288
271
|
this._renderedOpenLayerFlowItems
|
|
289
272
|
];
|
|
290
|
-
return this._focusRootFlowItem = this._focusFlowItem(this._rootFlowItemRef.value, this._focusRootFlowItem), this._focusEditingFlowItem = this._focusFlowItem(this._editingFlowItemRef.value, this._focusEditingFlowItem), this.closed ? null :
|
|
273
|
+
return this._focusRootFlowItem = this._focusFlowItem(this._rootFlowItemRef.value, this._focusRootFlowItem), this._focusEditingFlowItem = this._focusFlowItem(this._editingFlowItemRef.value, this._focusEditingFlowItem), this.closed ? null : d("root-flow", o`<calcite-flow>${e}</calcite-flow>`);
|
|
291
274
|
}
|
|
292
275
|
_renderPanelFlowItems() {
|
|
293
|
-
return
|
|
294
|
-
const { panel:
|
|
295
|
-
return this._focusPanelFlowItem = this._focusFlowItem(this._panelFlowItemRef.value, this._focusPanelFlowItem),
|
|
296
|
-
|
|
297
|
-
}} ${
|
|
276
|
+
return x(this._openedPanelItems.toArray(), (e) => e.uid, (e, t) => {
|
|
277
|
+
const { panel: s, title: i } = e, l = () => this._handlePanelFlowItemBack(s);
|
|
278
|
+
return this._focusPanelFlowItem = this._focusFlowItem(this._panelFlowItemRef.value, this._focusPanelFlowItem), o`<calcite-flow-item .description=${i} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length && t === this._openedPanelItems.length - 1} @calciteFlowItemBack=${(r) => {
|
|
279
|
+
r.preventDefault(), l();
|
|
280
|
+
}} ${g(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`;
|
|
298
281
|
});
|
|
299
282
|
}
|
|
300
283
|
_renderLayerFlowItem(e, t) {
|
|
301
|
-
const
|
|
302
|
-
return this._focusLayerFlowItem === e.uid && (this._focusLayerFlowItem = this._focusFlowItem(this._layerFlowItemRef.value, !0) ? e.uid : null),
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
}} ${
|
|
284
|
+
const s = e.title || this.messages.untitledLayer;
|
|
285
|
+
return this._focusLayerFlowItem === e.uid && (this._focusLayerFlowItem = this._focusFlowItem(this._layerFlowItemRef.value, !0) ? e.uid : null), d(e.uid, o`<calcite-flow-item data-layer-uid=${e.uid ?? _} .description=${s} .heading=${this.messages[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(i) => {
|
|
286
|
+
i.preventDefault(), this.openedLayers.pop();
|
|
287
|
+
const l = this.openedLayers.at(-1);
|
|
288
|
+
l ? this._focusLayerFlowItem = l.uid : this._focusRootFlowItem = !0;
|
|
289
|
+
}} ${g(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`);
|
|
307
290
|
}
|
|
308
|
-
_renderList(e, t,
|
|
309
|
-
const
|
|
310
|
-
return
|
|
291
|
+
_renderList(e, t, s) {
|
|
292
|
+
const i = t === "reference" ? this._referenceFilterEnabled : this._baseFilterEnabled, l = t === "reference" ? this.referenceFilterText : this.baseFilterText, r = (t === "reference" ? this.messages.noReferenceLayers : this.messages.noBaseLayers) ?? this.messages.noItemsToDisplay ?? "";
|
|
293
|
+
return d(`block-${t}`, o`<calcite-block class=${f(p.section)} collapsible expanded .heading=${t === "reference" ? this.messages.referenceHeading : this.messages.baseHeading} .headingLevel=${this.headingLevel + 1}>${e?.length ? null : this._renderNoLayersInfo(r, t)}${d(`list-${t}`, o`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(a) => this._canMove(a, "pull")} .canPut=${(a) => this._canMove(a, "put")} data-basemap-layer-type=${t ?? _} data-layer-type=${this._rootGroupUid ?? _} .displayMode=${T} .dragEnabled=${this.dragEnabled} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${Z} .filterText=${i ? l : ""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel ?? ""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${(a) => this._handleCalciteListDragEnd(a.detail)} @calciteListFilter=${(a) => this[t === "reference" ? "referenceFilterText" : "baseFilterText"] = a.currentTarget?.filterText ?? ""} @calciteListOrderChange=${(a) => this._onCalciteListOrderChange(a.detail)} ${g(t === "reference" ? this._referenceListRef : this._baseListRef)}>${e?.toArray().map((a) => this._renderItem(a, s))}${i ? o`<div class=${f(p.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoLayersInfoMessage(r)}</calcite-notice></div>` : null}</calcite-list>`)}</calcite-block>`);
|
|
311
294
|
}
|
|
312
295
|
_renderBaseSection() {
|
|
313
296
|
return this.hideBaseLayers ? null : this._renderList(this._visibleBaseItems, "base", this._visibleBaseItems.length === 1);
|
|
@@ -315,15 +298,15 @@ class re extends G {
|
|
|
315
298
|
_renderReferenceSection() {
|
|
316
299
|
return this.hideReferenceLayers ? null : this._renderList(this._visibleReferenceItems, "reference", !1);
|
|
317
300
|
}
|
|
318
|
-
_renderItem(e, t,
|
|
319
|
-
return
|
|
301
|
+
_renderItem(e, t, s, i) {
|
|
302
|
+
return d(e.uid, ee({ activeItem: this._activeItem, canMove: this._canMove, css: p, displayMode: T, dragEnabled: this.dragEnabled && !t, hideCatalogLayerList: this.hideCatalogLayerList, hideStatusIndicators: this.hideStatusIndicators, item: e, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, operationalItems: this._allItems, parent: s, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, clearActiveItem: this._clearActiveItem, showErrors: this.showErrors, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
|
|
320
303
|
}
|
|
321
304
|
}
|
|
322
|
-
function
|
|
323
|
-
const e =
|
|
305
|
+
function C(b) {
|
|
306
|
+
const e = b.closest(`[${E}]`)?.getAttribute(E);
|
|
324
307
|
return e === "base" || e === "reference" ? e : null;
|
|
325
308
|
}
|
|
326
|
-
|
|
309
|
+
O("arcgis-basemap-layer-list-next", oe);
|
|
327
310
|
export {
|
|
328
|
-
|
|
311
|
+
oe as ArcgisBasemapLayerListNext
|
|
329
312
|
};
|