@arcgis/map-components 5.2.0-next.59 → 5.2.0-next.60
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/{RDXFUCMG.js → 22FLXX55.js} +1 -1
- package/dist/cdn/{G7APNTVJ.js → 26W2NMYE.js} +1 -1
- package/dist/cdn/{NMWYQ5WX.js → 27DFVIVV.js} +1 -1
- package/dist/cdn/{5L764GTN.js → 2AASXHQF.js} +1 -1
- package/dist/cdn/{FBL4FNP2.js → 2BCD2J5T.js} +1 -1
- package/dist/cdn/{SX7O6EXI.js → 2DHPGACO.js} +1 -1
- package/dist/cdn/{RII7CWWU.js → 2F546CPM.js} +1 -1
- package/dist/cdn/{GSPJRG26.js → 2FJWRTFE.js} +1 -1
- package/dist/cdn/{LZPZZMEH.js → 2YCUXNZC.js} +1 -1
- package/dist/cdn/{EE4X5YOU.js → 2ZETLPCO.js} +1 -1
- package/dist/cdn/{62TMUUMH.js → 3N7DHHCP.js} +1 -1
- package/dist/cdn/{UVQAPLIX.js → 3YGZGNIG.js} +1 -1
- package/dist/cdn/{VZK5BXWY.js → 447CU6QV.js} +1 -1
- package/dist/cdn/{22NMICPW.js → 44SYZMRA.js} +1 -1
- package/dist/cdn/{LBRZ6IVX.js → 47SFVJQS.js} +1 -1
- package/dist/cdn/{SY3M2ZUK.js → 4BFCBXCA.js} +1 -1
- package/dist/cdn/{A3BUMPTF.js → 4LHBEGTU.js} +1 -1
- package/dist/cdn/4SV6HHMC.js +2 -0
- package/dist/cdn/{HSB4XYHA.js → 4T4GCBM3.js} +1 -1
- package/dist/cdn/{ZSK55FRY.js → 4YOX2SCZ.js} +1 -1
- package/dist/cdn/{4JAQPYHG.js → 54FMWJL7.js} +1 -1
- package/dist/cdn/{6V4MOKPT.js → 5AUIH5PW.js} +1 -1
- package/dist/cdn/{WACJO3GM.js → 5F6Q3XF5.js} +1 -1
- package/dist/cdn/{4WENIFOF.js → 5JXXMDY6.js} +1 -1
- package/dist/cdn/{PISSWA2X.js → 5N7BVEJM.js} +1 -1
- package/dist/cdn/5W6NJGFF.js +2 -0
- package/dist/cdn/{SYRZLONH.js → 5W7XCJ5B.js} +1 -1
- package/dist/cdn/{XYM5LHFM.js → 5YORAY7J.js} +1 -1
- package/dist/cdn/{DPDU2GSI.js → 635CQLYS.js} +1 -1
- package/dist/cdn/{EP7FUAF2.js → 6BYE6FYG.js} +1 -1
- package/dist/cdn/{C2D24FZL.js → 6E7OZHUN.js} +1 -1
- package/dist/cdn/{OGYAUMMI.js → 6KHHCJ5X.js} +1 -1
- package/dist/cdn/{SDBR2UYJ.js → 6NNRGJYB.js} +1 -1
- package/dist/cdn/{RN6YVTSJ.js → 7HLWU5PX.js} +1 -1
- package/dist/cdn/{7MO7E734.js → 7ICJOTUR.js} +1 -1
- package/dist/cdn/{Z7J6NDSB.js → A22AUGYH.js} +1 -1
- package/dist/cdn/{7HOAA7SE.js → A4USUD2G.js} +1 -1
- package/dist/cdn/{VRBQLCFE.js → A636G66O.js} +1 -1
- package/dist/cdn/{25J4CQKL.js → AC43TA2Y.js} +1 -1
- package/dist/cdn/{J3LU4VHH.js → AFJW3C3J.js} +1 -1
- package/dist/cdn/{EPBKJBDS.js → AGEFGOQ4.js} +1 -1
- package/dist/cdn/{QXFHLDLD.js → AK62SYBC.js} +1 -1
- package/dist/cdn/{6WBCA7YD.js → ALIKGBJJ.js} +1 -1
- package/dist/cdn/{CVJT2CDW.js → ALUQRMZW.js} +1 -1
- package/dist/cdn/{EUCWM5S7.js → AR56PQPF.js} +1 -1
- package/dist/cdn/{226ASAN4.js → AX4YVQW5.js} +1 -1
- package/dist/cdn/AX6GSVZL.js +2 -0
- package/dist/cdn/{HQVDDVBE.js → BC7EPFWD.js} +1 -1
- package/dist/cdn/{E7E7MIKH.js → BF42UPF6.js} +1 -1
- package/dist/cdn/{KWXR6G2J.js → BPGR7WZ3.js} +1 -1
- package/dist/cdn/{CUXUSAP4.js → BPJIXO5J.js} +1 -1
- package/dist/cdn/{4GB5RIYZ.js → BU6JMSUW.js} +1 -1
- package/dist/cdn/{3WKJVIT5.js → BWKADIQY.js} +1 -1
- package/dist/cdn/{5PZ64P44.js → CAGM7ZNR.js} +1 -1
- package/dist/cdn/{GECBQL23.js → CFIH5Y4K.js} +1 -1
- package/dist/cdn/{SP3SHKU4.js → CIC5ZUY7.js} +1 -1
- package/dist/cdn/{JOJYHVDS.js → CJS5I43A.js} +1 -1
- package/dist/cdn/{3QFONUZB.js → CLOJ3UVQ.js} +1 -1
- package/dist/cdn/{77AOOZB2.js → CPVH7W2O.js} +1 -1
- package/dist/cdn/{GD5VVQPA.js → CYBCFSSA.js} +1 -1
- package/dist/cdn/{XPA3T33A.js → CYNVIPKG.js} +1 -1
- package/dist/cdn/{27DGJIUB.js → D3U2ST6B.js} +1 -1
- package/dist/cdn/{QOD6TYZ2.js → D7DH54CE.js} +1 -1
- package/dist/cdn/{U5IS4L54.js → DCNNPWXR.js} +1 -1
- package/dist/cdn/{OO3JRV5K.js → DFLF2GHB.js} +1 -1
- package/dist/cdn/{4QYMX7LR.js → DMA5N4U3.js} +1 -1
- package/dist/cdn/{BCGQ7UIU.js → DZWUKLIN.js} +1 -1
- package/dist/cdn/{CTSJYC3X.js → E2NYZWXE.js} +1 -1
- package/dist/cdn/{3BV6XBJZ.js → E7MAE44R.js} +1 -1
- package/dist/cdn/{42XU4L5C.js → EFUM5T3J.js} +1 -1
- package/dist/cdn/{PCBZQRX4.js → EHI4E3OA.js} +1 -1
- package/dist/cdn/{V6VLUKHQ.js → EI6T7BKN.js} +1 -1
- package/dist/cdn/{3ZQEDFHR.js → EIKXN526.js} +1 -1
- package/dist/cdn/{7PLMJIAQ.js → EIUWI6SJ.js} +1 -1
- package/dist/cdn/{YL6EQO7B.js → EJ3X446I.js} +1 -1
- package/dist/cdn/{DC357Y2K.js → F35ORGGB.js} +1 -1
- package/dist/cdn/F3VS53GP.js +2 -0
- package/dist/cdn/{Y23AXDJB.js → FCEB7HIL.js} +1 -1
- package/dist/cdn/{AUE4JQXJ.js → FTO3BR3P.js} +1 -1
- package/dist/cdn/{GOVUDM4N.js → FURSVK7Y.js} +1 -1
- package/dist/cdn/{Y7JVOMNJ.js → FYNG6CYN.js} +1 -1
- package/dist/cdn/{QUYXPMFZ.js → GFG5O7YM.js} +1 -1
- package/dist/cdn/{7YMLPJVW.js → GHTQIXMG.js} +1 -1
- package/dist/cdn/GOIKNGEI.js +2 -0
- package/dist/cdn/{NGUV3VWT.js → GXGBUAE7.js} +1 -1
- package/dist/cdn/{DZ6TMBVB.js → GY2CXLXB.js} +1 -1
- package/dist/cdn/{RFYPQ3GQ.js → HCEP3NVU.js} +1 -1
- package/dist/cdn/HEGMKLJO.js +2 -0
- package/dist/cdn/{35EU7G2H.js → HFPQ7CSJ.js} +1 -1
- package/dist/cdn/{7SZGIUAX.js → HR3OA66U.js} +1 -1
- package/dist/cdn/{TOF5NAVM.js → HWDZDKDX.js} +1 -1
- package/dist/cdn/I3WV6OM4.js +2 -0
- package/dist/cdn/{T4ULWFGS.js → IIPETVIW.js} +1 -1
- package/dist/cdn/{6G7UWNCY.js → IJIN5G4N.js} +1 -1
- package/dist/cdn/{3ZQ375NT.js → ISAKFCBN.js} +1 -1
- package/dist/cdn/{HT23X37X.js → ITYCDXB3.js} +1 -1
- package/dist/cdn/{6URRJVLV.js → J2AISQHP.js} +1 -1
- package/dist/cdn/{N5PSINKS.js → J2R2J6UR.js} +1 -1
- package/dist/cdn/{4RQVKULG.js → JDVBEPJQ.js} +1 -1
- package/dist/cdn/{DPKCDN3P.js → JGOVELNR.js} +1 -1
- package/dist/cdn/{QA56535U.js → JIALAMBB.js} +1 -1
- package/dist/cdn/{CUZUYZE2.js → JJFLMGAX.js} +1 -1
- package/dist/cdn/{V5TLUM7M.js → JL3C3PJK.js} +1 -1
- package/dist/cdn/{HGJ56PKD.js → JLO3FL27.js} +1 -1
- package/dist/cdn/{I5U3QCTO.js → JNXAPZOG.js} +1 -1
- package/dist/cdn/JOJQC6AF.js +2 -0
- package/dist/cdn/{IFZLE6R4.js → JUAJIR4N.js} +1 -1
- package/dist/cdn/{3YJVHAJW.js → JYAIIIMS.js} +1 -1
- package/dist/cdn/{FEWZYBBW.js → KAAQWUI6.js} +1 -1
- package/dist/cdn/{IEWD6LOR.js → KBBYF7KD.js} +1 -1
- package/dist/cdn/{LXF6LDWE.js → KEV6I36K.js} +1 -1
- package/dist/cdn/{WB5Y7X7S.js → KKBZEDN4.js} +1 -1
- package/dist/cdn/{3VIS3UL6.js → KQKQJVFM.js} +1 -1
- package/dist/cdn/{MJB3NLLH.js → KS6PL4CM.js} +1 -1
- package/dist/cdn/{PWOCWDXH.js → KX7Y7MML.js} +1 -1
- package/dist/cdn/{5USS47OO.js → KXLECJE4.js} +1 -1
- package/dist/cdn/{6VNX2RV3.js → KXUS2Z2Z.js} +1 -1
- package/dist/cdn/{OUQRKL6Q.js → L7AWHKQN.js} +1 -1
- package/dist/cdn/{262J7OXJ.js → LB4H4S5X.js} +1 -1
- package/dist/cdn/{UKO2UCD3.js → LP6TTSIT.js} +1 -1
- package/dist/cdn/{Y455YVQT.js → LQCHLWS5.js} +1 -1
- package/dist/cdn/{3YZRY2EG.js → M4HY5VMM.js} +1 -1
- package/dist/cdn/{2QX2M2WC.js → M5BID47D.js} +1 -1
- package/dist/cdn/{BCDL4T34.js → M5DTOYQQ.js} +1 -1
- package/dist/cdn/{MHG26BRV.js → M6WSCBQP.js} +1 -1
- package/dist/cdn/{CVSQSV2T.js → MBJ27YMN.js} +1 -1
- package/dist/cdn/MBRWWICI.js +2 -0
- package/dist/cdn/MBZPYZX2.js +2 -0
- package/dist/cdn/MGS4P6UC.js +2 -0
- package/dist/cdn/{WMNHZG4Z.js → MRRTS5P6.js} +1 -1
- package/dist/cdn/{VWED2WAO.js → MZQT7KZP.js} +1 -1
- package/dist/cdn/{C6RQ2TQ4.js → N2KU7FO4.js} +1 -1
- package/dist/cdn/{UOXJUYC7.js → NEQT2ZY6.js} +1 -1
- package/dist/cdn/{57E26JZ5.js → NNBWJV4O.js} +1 -1
- package/dist/cdn/{2JBFSC6D.js → NRHOAASJ.js} +1 -1
- package/dist/cdn/{LQHENS2H.js → O6YIIKVP.js} +1 -1
- package/dist/cdn/{GYZYY2TM.js → OANCY5SX.js} +1 -1
- package/dist/cdn/{KCEGLGM4.js → OFW7MIOM.js} +1 -1
- package/dist/cdn/{R2Z6LGSX.js → OIT4E6K2.js} +1 -1
- package/dist/cdn/{SGIT6SHY.js → OKC5OJJS.js} +1 -1
- package/dist/cdn/{DEQA63VJ.js → OMGRHB7H.js} +1 -1
- package/dist/cdn/{NGYAHM32.js → OO6NV5GK.js} +1 -1
- package/dist/cdn/{PJ6BIN6B.js → OPQJE7BZ.js} +1 -1
- package/dist/cdn/{O5T75PGZ.js → OWAKPT2D.js} +1 -1
- package/dist/cdn/{D5N26QOS.js → OXANZYRI.js} +1 -1
- package/dist/cdn/{A2TTJCDV.js → OZTQXCFB.js} +1 -1
- package/dist/cdn/{QRAQ7SYI.js → P25T7SEL.js} +1 -1
- package/dist/cdn/{F7RMRBE3.js → P5HQL37E.js} +1 -1
- package/dist/cdn/{RZX4PVJV.js → PFPOP2U4.js} +1 -1
- package/dist/cdn/{LSP6WL4P.js → PIRTG67V.js} +1 -1
- package/dist/cdn/{OCLSVHBG.js → PPIFGJX4.js} +1 -1
- package/dist/cdn/{JP24H6WY.js → PUAXDNBG.js} +1 -1
- package/dist/cdn/{BJYHPARY.js → Q5ACGCP3.js} +1 -1
- package/dist/cdn/{EE4DGDQU.js → QHILZ2NJ.js} +1 -1
- package/dist/cdn/{7JO4QKKH.js → QMYYA3S6.js} +1 -1
- package/dist/cdn/{ZJIWWNJV.js → QTYBVQMT.js} +1 -1
- package/dist/cdn/{XP3BVKWY.js → QVOYYXIU.js} +1 -1
- package/dist/cdn/{RAYQEF6G.js → QZLVTEOQ.js} +1 -1
- package/dist/cdn/{GPJG37UL.js → R3DTZBMN.js} +1 -1
- package/dist/cdn/{O6L7TWQH.js → RAH7WYLV.js} +1 -1
- package/dist/cdn/{XWIR344G.js → RONABERI.js} +1 -1
- package/dist/cdn/{FBKD4RWJ.js → RWVY76K4.js} +1 -1
- package/dist/cdn/{CZLAUEZF.js → RY3HMV3O.js} +1 -1
- package/dist/cdn/{OW2CJGSF.js → RYXTEZZH.js} +1 -1
- package/dist/cdn/{TZYCSEIK.js → SCPSWHG4.js} +1 -1
- package/dist/cdn/{RY73K52N.js → SJRSZW3M.js} +1 -1
- package/dist/cdn/{XH4BVYMC.js → SRBEW7NV.js} +1 -1
- package/dist/cdn/{EMW3ALJA.js → SSGPECUS.js} +1 -1
- package/dist/cdn/SSK7OVMF.js +2 -0
- package/dist/cdn/{NJW4OAOH.js → STU7FJ5Z.js} +1 -1
- package/dist/cdn/{4PF56QFJ.js → SWAX3RUB.js} +1 -1
- package/dist/cdn/{TLOB62Q3.js → T2KDO5HD.js} +1 -1
- package/dist/cdn/{GMIAQHT4.js → T6CKYPI7.js} +1 -1
- package/dist/cdn/{3AS7CJFU.js → TAZWQ7EC.js} +1 -1
- package/dist/cdn/{CPMHDQHY.js → TH7SCVOQ.js} +1 -1
- package/dist/cdn/{6J7L2FAB.js → TM6LGP6D.js} +1 -1
- package/dist/cdn/{3MWUCGFA.js → TWMQVARD.js} +1 -1
- package/dist/cdn/{SF6DG2BU.js → U25QRAQN.js} +1 -1
- package/dist/cdn/{G6WHFUIF.js → U3L7RZL4.js} +1 -1
- package/dist/cdn/{CM7EQXWU.js → U4S4PHBB.js} +1 -1
- package/dist/cdn/{DJYIVAB2.js → UI32UC33.js} +1 -1
- package/dist/cdn/{7DBZFTR6.js → UOHCNL3F.js} +1 -1
- package/dist/cdn/UU2VWYLI.js +2 -0
- package/dist/cdn/{6ZLGA6NY.js → UX6QVJG6.js} +1 -1
- package/dist/cdn/{AIVVE6PW.js → UXREMHTR.js} +1 -1
- package/dist/cdn/{X6BTGTK3.js → V2N7V36Y.js} +1 -1
- package/dist/cdn/{IVZM7EPG.js → V63SHRQJ.js} +1 -1
- package/dist/cdn/{I3BAOV7V.js → VFAQKJXX.js} +1 -1
- package/dist/cdn/{MJVODTWO.js → VFLELQHU.js} +1 -1
- package/dist/cdn/{XOFHG45P.js → VIAVQT2D.js} +1 -1
- package/dist/cdn/{SMETKDNO.js → VN4DKI5B.js} +1 -1
- package/dist/cdn/{5IAV6PUT.js → VPXMBT5B.js} +1 -1
- package/dist/cdn/{JIIWY7WR.js → VQR2HIW2.js} +1 -1
- package/dist/cdn/{NO5YSGEU.js → VVLDHLAY.js} +1 -1
- package/dist/cdn/{BQALWYAT.js → VZD4UCKC.js} +1 -1
- package/dist/cdn/{ZMVTKENO.js → WYZPOKJF.js} +1 -1
- package/dist/cdn/X2QNONZE.js +2 -0
- package/dist/cdn/{SL7K5BE2.js → X6K2RSPI.js} +1 -1
- package/dist/cdn/{3CBU3MJL.js → XB7KKTY6.js} +1 -1
- package/dist/cdn/{XPGYKHZB.js → XCIYLNTM.js} +1 -1
- package/dist/cdn/{FD73ZZE6.js → XCUAPJNZ.js} +1 -1
- package/dist/cdn/{NXOZVS4Z.js → XD4EGOJ3.js} +1 -1
- package/dist/cdn/XD52OHCM.js +2 -0
- package/dist/cdn/{X6PWBP6M.js → XFH2TUXK.js} +1 -1
- package/dist/cdn/{KUBYN76S.js → XQP3UJJB.js} +1 -1
- package/dist/cdn/{WGJ4M2WU.js → XTK3DMAO.js} +1 -1
- package/dist/cdn/{RZ6SODVT.js → XUSIBTEV.js} +1 -1
- package/dist/cdn/{2KWY4AXN.js → XWJQBDNW.js} +1 -1
- package/dist/cdn/{2U5G2QWZ.js → Y3X3K2RU.js} +1 -1
- package/dist/cdn/{TIPGSYM6.js → YNKKNHTQ.js} +1 -1
- package/dist/cdn/{FMG7FAUK.js → YQ2OS5PW.js} +1 -1
- package/dist/cdn/{7RN4FELN.js → YTL7TRUR.js} +1 -1
- package/dist/cdn/{EF66VW43.js → Z2PS3LGI.js} +1 -1
- package/dist/cdn/{3C7K3QVM.js → Z6MJ3CFF.js} +1 -1
- package/dist/cdn/{BFXQ5WCT.js → ZA2AHCVY.js} +1 -1
- package/dist/cdn/{H5DDBPGU.js → ZEHQXP4U.js} +1 -1
- package/dist/cdn/{ZMZJEEHS.js → ZHW7XZUM.js} +1 -1
- package/dist/cdn/ZKQKAXTB.js +2 -0
- package/dist/cdn/{RVHKL3JR.js → ZSLANXPZ.js} +1 -1
- package/dist/cdn/{5KMBHKTM.js → ZUNHOHIR.js} +1 -1
- package/dist/cdn/assets/oriented-imagery-viewer-video-controls/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/time-bar/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/async-utils.js +63 -51
- package/dist/chunks/dateUtils.js +128 -0
- package/dist/chunks/time-utils.js +28 -16
- package/dist/chunks/utils2.js +6 -5
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +47 -47
- package/dist/components/arcgis-oriented-imagery-viewer-video-controls/customElement.d.ts +34 -0
- package/dist/components/arcgis-oriented-imagery-viewer-video-controls/customElement.js +61 -0
- package/dist/components/arcgis-oriented-imagery-viewer-video-controls/index.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer-video-controls/index.js +5 -0
- package/dist/components/arcgis-table-list-next/customElement.js +1 -1
- package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +71 -0
- package/dist/components/arcgis-time-bar/customElement.d.ts +1006 -0
- package/dist/components/arcgis-time-bar/customElement.js +587 -0
- package/dist/components/arcgis-time-bar/index.d.ts +1 -0
- package/dist/components/arcgis-time-bar/index.js +7 -0
- package/dist/components/arcgis-time-bar/types.d.ts +45 -0
- package/dist/components/arcgis-time-bar-date/customElement.js +37 -0
- package/dist/components/arcgis-time-bar-date/index.js +1 -0
- package/dist/components/arcgis-time-bar-extent/customElement.js +30 -0
- package/dist/components/arcgis-time-bar-extent/index.js +2 -0
- package/dist/components/arcgis-time-bar-settings/customElement.js +352 -0
- package/dist/components/arcgis-time-bar-settings/index.js +18 -0
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +172 -0
- package/dist/components/arcgis-time-bar-slider/customElement.js +150 -0
- package/dist/components/arcgis-time-bar-slider/index.d.ts +1 -0
- package/dist/components/arcgis-time-bar-slider/index.js +5 -0
- 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/index.d.ts +18 -0
- package/dist/loader.js +6 -0
- package/dist/support/time-utils.d.ts +7 -0
- package/dist/types/lumina.d.ts +17 -0
- package/dist/types/preact.d.ts +20 -0
- package/dist/types/react.d.ts +23 -0
- package/dist/types/stencil.d.ts +17 -0
- package/package.json +4 -4
- package/dist/cdn/3AEP2FXT.js +0 -2
- package/dist/cdn/4TYWHTFT.js +0 -2
- package/dist/cdn/AFXGNK7O.js +0 -2
- package/dist/cdn/H5B4VHOH.js +0 -2
- package/dist/cdn/NSF5Q73E.js +0 -2
- package/dist/cdn/P6CDJ2IV.js +0 -2
- package/dist/cdn/PGKGXEJ7.js +0 -2
- package/dist/cdn/TJ47T76E.js +0 -2
- package/dist/cdn/VEZP32RO.js +0 -2
- /package/dist/cdn/{CDSRIIHC.js → XRPUXUOQ.js} +0 -0
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import
|
|
3
|
-
import { property as l, subclass as
|
|
4
|
-
import
|
|
5
|
-
import { a as
|
|
6
|
-
import { log as
|
|
7
|
-
var
|
|
8
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
9
|
-
(u = t[
|
|
10
|
-
return o && n &&
|
|
2
|
+
import d from "@arcgis/core/core/Accessor.js";
|
|
3
|
+
import { property as l, subclass as m } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
4
|
+
import p from "@arcgis/core/core/Error.js";
|
|
5
|
+
import { a as h, r as w } from "./maybe.js";
|
|
6
|
+
import { log as _ } from "@arcgis/toolkit/log";
|
|
7
|
+
var v = Object.defineProperty, A = Object.getOwnPropertyDescriptor, a = (t, r, e, o) => {
|
|
8
|
+
for (var n = o > 1 ? void 0 : o ? A(r, e) : r, i = t.length - 1, u; i >= 0; i--)
|
|
9
|
+
(u = t[i]) && (n = (o ? u(r, e, n) : u(n)) || n);
|
|
10
|
+
return o && n && v(r, e, n), n;
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function S(t, r, e) {
|
|
13
13
|
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
14
|
-
const n = "details" in t && t.details && typeof t.details == "object" && !Array.isArray(t.details) ? { detail: t.details } : void 0,
|
|
15
|
-
|
|
14
|
+
const n = "details" in t && t.details && typeof t.details == "object" && !Array.isArray(t.details) ? { detail: t.details } : void 0, i = e ? `${e} - ${String(t)}` : String(t);
|
|
15
|
+
_("error", r, i, n);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return new
|
|
18
|
+
function f(t = "Aborted") {
|
|
19
|
+
return new p("AbortError", t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function j(t, r = "Aborted") {
|
|
22
22
|
if (g(t))
|
|
23
|
-
throw
|
|
23
|
+
throw f(r);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function b(t) {
|
|
26
26
|
return t instanceof AbortSignal ? t : t?.signal ?? void 0;
|
|
27
27
|
}
|
|
28
28
|
function g(t) {
|
|
29
|
-
return
|
|
29
|
+
return b(t)?.aborted ?? !1;
|
|
30
30
|
}
|
|
31
31
|
function y(t) {
|
|
32
32
|
return t?.name === "AbortError";
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function C(t) {
|
|
35
35
|
return { ok: !0, value: t };
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function E(t) {
|
|
38
38
|
return { ok: !1, error: t };
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function k(t) {
|
|
41
41
|
return t?.ok ? t.value : null;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function T(t) {
|
|
44
44
|
return t != null && !t.ok ? t.error : null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const e =
|
|
46
|
+
function c(t, r) {
|
|
47
|
+
const e = b(t);
|
|
48
48
|
if (e == null)
|
|
49
49
|
return;
|
|
50
50
|
if (e.aborted) {
|
|
@@ -54,29 +54,29 @@ function I(t, r) {
|
|
|
54
54
|
const o = () => r();
|
|
55
55
|
return e.addEventListener("abort", o, { once: !0 }), { remove: () => e.removeEventListener("abort", o) };
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return new
|
|
57
|
+
function H(t, r) {
|
|
58
|
+
return new s(t, r);
|
|
59
59
|
}
|
|
60
|
-
let
|
|
60
|
+
let s = class extends d {
|
|
61
61
|
constructor(t, r) {
|
|
62
62
|
super({}), this._abortHandle = null, this.abort = () => {
|
|
63
|
-
this._abortController =
|
|
63
|
+
this._abortController = h(this._abortController);
|
|
64
64
|
}, this.remove = this.abort, this._abortController = new AbortController();
|
|
65
65
|
const { signal: e } = this._abortController;
|
|
66
66
|
this.promise = t(e), this.promise.then(
|
|
67
67
|
(o) => {
|
|
68
|
-
this._result =
|
|
68
|
+
this._result = C(o), this._cleanup();
|
|
69
69
|
},
|
|
70
70
|
(o) => {
|
|
71
|
-
this._result =
|
|
71
|
+
this._result = E(o), this._cleanup();
|
|
72
72
|
}
|
|
73
|
-
), this._abortHandle =
|
|
73
|
+
), this._abortHandle = c(r, this.abort);
|
|
74
74
|
}
|
|
75
75
|
get value() {
|
|
76
|
-
return
|
|
76
|
+
return k(this._result);
|
|
77
77
|
}
|
|
78
78
|
get error() {
|
|
79
|
-
return
|
|
79
|
+
return T(this._result);
|
|
80
80
|
}
|
|
81
81
|
get finished() {
|
|
82
82
|
return this._result != null;
|
|
@@ -85,30 +85,30 @@ let i = class extends f {
|
|
|
85
85
|
this.abort();
|
|
86
86
|
}
|
|
87
87
|
_cleanup() {
|
|
88
|
-
this._abortHandle =
|
|
88
|
+
this._abortHandle = w(this._abortHandle), this._abortController = null;
|
|
89
89
|
}
|
|
90
90
|
[Symbol.dispose]() {
|
|
91
91
|
this._cleanup();
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
|
|
94
|
+
a([
|
|
95
95
|
l()
|
|
96
|
-
],
|
|
97
|
-
|
|
96
|
+
], s.prototype, "value", 1);
|
|
97
|
+
a([
|
|
98
98
|
l()
|
|
99
|
-
],
|
|
100
|
-
|
|
99
|
+
], s.prototype, "error", 1);
|
|
100
|
+
a([
|
|
101
101
|
l()
|
|
102
|
-
],
|
|
103
|
-
|
|
102
|
+
], s.prototype, "finished", 1);
|
|
103
|
+
a([
|
|
104
104
|
l()
|
|
105
|
-
],
|
|
106
|
-
|
|
105
|
+
], s.prototype, "promise", 2);
|
|
106
|
+
a([
|
|
107
107
|
l()
|
|
108
|
-
],
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
],
|
|
108
|
+
], s.prototype, "_result", 2);
|
|
109
|
+
s = a([
|
|
110
|
+
m("esri.components.asyncUtils.ReactiveTask")
|
|
111
|
+
], s);
|
|
112
112
|
function q(t) {
|
|
113
113
|
return t.catch((r) => {
|
|
114
114
|
if (!y(r))
|
|
@@ -131,13 +131,25 @@ function x(t, r = {}) {
|
|
|
131
131
|
function L(t) {
|
|
132
132
|
"cancelIdleCallback" in window && window.cancelIdleCallback(t), window.clearTimeout(t);
|
|
133
133
|
}
|
|
134
|
+
function M(t, r) {
|
|
135
|
+
const e = new AbortController();
|
|
136
|
+
return c(r, () => e.abort()), new Promise((o, n) => {
|
|
137
|
+
let i = setTimeout(() => {
|
|
138
|
+
i = void 0, o();
|
|
139
|
+
}, t);
|
|
140
|
+
c(e, () => {
|
|
141
|
+
i !== void 0 && (clearTimeout(i), i = void 0, n(f()));
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
134
145
|
export {
|
|
135
146
|
g as a,
|
|
136
147
|
q as b,
|
|
137
|
-
|
|
138
|
-
|
|
148
|
+
H as c,
|
|
149
|
+
M as d,
|
|
150
|
+
L as e,
|
|
139
151
|
y as i,
|
|
140
|
-
|
|
152
|
+
S as l,
|
|
141
153
|
x as r,
|
|
142
|
-
|
|
154
|
+
j as t
|
|
143
155
|
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import c from "@arcgis/core/time/TimeExtent.js";
|
|
3
|
+
import { log as w } from "@arcgis/toolkit/log";
|
|
4
|
+
import { u as y } from "./time-utils.js";
|
|
5
|
+
import { offsetDate as l, truncateDate as p } from "@arcgis/core/core/timeUtils.js";
|
|
6
|
+
const d = { count: 10 };
|
|
7
|
+
function B(t) {
|
|
8
|
+
return D(t) && t.interval.unit === y ? (w(
|
|
9
|
+
"warn",
|
|
10
|
+
"arcgis-slider-time",
|
|
11
|
+
'A stop interval with an "unknown" time unit is not supported. The default stop definition will be used.'
|
|
12
|
+
), d) : t;
|
|
13
|
+
}
|
|
14
|
+
function I(t) {
|
|
15
|
+
return !!t && "count" in t;
|
|
16
|
+
}
|
|
17
|
+
function P(t) {
|
|
18
|
+
return !!t && "dates" in t;
|
|
19
|
+
}
|
|
20
|
+
function D(t) {
|
|
21
|
+
return !!t && "interval" in t;
|
|
22
|
+
}
|
|
23
|
+
const T = 1e4;
|
|
24
|
+
function g(t, o) {
|
|
25
|
+
const { start: e, end: n } = t;
|
|
26
|
+
if (!e || !n || e.getTime() > n.getTime() || o <= 0)
|
|
27
|
+
return [];
|
|
28
|
+
if (o > T)
|
|
29
|
+
return g(t, d.count);
|
|
30
|
+
const r = [], s = e.getTime(), u = n.getTime() - s;
|
|
31
|
+
for (let m = 0; m <= o; m++)
|
|
32
|
+
r.push(new Date(s + m / o * u));
|
|
33
|
+
return r;
|
|
34
|
+
}
|
|
35
|
+
function C(t, o) {
|
|
36
|
+
const { start: e, end: n } = t, { value: r, unit: s } = o;
|
|
37
|
+
if (!e || !n || e.getTime() > n.getTime() || r <= 0)
|
|
38
|
+
return [];
|
|
39
|
+
const i = n.getTime() - e.getTime(), u = o.toMilliseconds();
|
|
40
|
+
if (u <= 0 || i / u > T)
|
|
41
|
+
return g(t, d.count);
|
|
42
|
+
const m = [];
|
|
43
|
+
let a = e;
|
|
44
|
+
for (; a.getTime() <= n.getTime(); )
|
|
45
|
+
m.push(new Date(a)), a = l(a, r, s);
|
|
46
|
+
return m;
|
|
47
|
+
}
|
|
48
|
+
function F(t, o) {
|
|
49
|
+
const [e, n] = t;
|
|
50
|
+
if (e)
|
|
51
|
+
switch (o) {
|
|
52
|
+
case "time-window":
|
|
53
|
+
return n ? new c({ start: e, end: n }) : void 0;
|
|
54
|
+
case "cumulative-from-start":
|
|
55
|
+
return new c({ start: null, end: e });
|
|
56
|
+
case "cumulative-from-end":
|
|
57
|
+
return new c({ start: e, end: null });
|
|
58
|
+
case "instant":
|
|
59
|
+
return new c({ start: e, end: e });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function j(t, o, e, n) {
|
|
63
|
+
const { value: r, unit: s } = e;
|
|
64
|
+
if (t.getTime() > o.getTime() || r <= 0 || s === "unknown")
|
|
65
|
+
return [];
|
|
66
|
+
let i = p(t, e, n);
|
|
67
|
+
const u = [];
|
|
68
|
+
for (; i.getTime() <= o.getTime(); )
|
|
69
|
+
i.getTime() >= t.getTime() && u.push(i), i = l(i, r, s, n);
|
|
70
|
+
return u;
|
|
71
|
+
}
|
|
72
|
+
function E(t, o) {
|
|
73
|
+
const e = new Intl.DateTimeFormat("en", {
|
|
74
|
+
day: "2-digit",
|
|
75
|
+
month: "2-digit",
|
|
76
|
+
timeZone: o,
|
|
77
|
+
year: "numeric"
|
|
78
|
+
}).formatToParts(t), n = e.find(({ type: i }) => i === "year")?.value ?? "1900", r = e.find(({ type: i }) => i === "month")?.value ?? "01", s = e.find(({ type: i }) => i === "day")?.value ?? "01";
|
|
79
|
+
return `${n}-${r}-${s}`;
|
|
80
|
+
}
|
|
81
|
+
function U(t, o) {
|
|
82
|
+
const e = new Intl.DateTimeFormat("en", {
|
|
83
|
+
hour12: !1,
|
|
84
|
+
hour: "2-digit",
|
|
85
|
+
minute: "2-digit",
|
|
86
|
+
second: "2-digit",
|
|
87
|
+
timeZone: o
|
|
88
|
+
}).formatToParts(t), n = e.find(({ type: i }) => i === "hour")?.value ?? "00", r = e.find(({ type: i }) => i === "minute")?.value ?? "00", s = e.find(({ type: i }) => i === "second")?.value ?? "00";
|
|
89
|
+
return `${n}:${r}:${s}`;
|
|
90
|
+
}
|
|
91
|
+
function b(t, o) {
|
|
92
|
+
const e = new Intl.DateTimeFormat("en", {
|
|
93
|
+
hour12: !1,
|
|
94
|
+
hour: "2-digit",
|
|
95
|
+
minute: "2-digit",
|
|
96
|
+
month: "2-digit",
|
|
97
|
+
day: "2-digit",
|
|
98
|
+
second: "2-digit",
|
|
99
|
+
timeZone: o,
|
|
100
|
+
year: "numeric"
|
|
101
|
+
}).formatToParts(t), n = Number(e.find(({ type: a }) => a === "year")?.value ?? 0), r = Number(e.find(({ type: a }) => a === "month")?.value ?? 0), s = Number(e.find(({ type: a }) => a === "day")?.value ?? 0), i = Number(e.find(({ type: a }) => a === "hour")?.value ?? 0) % 24, u = Number(e.find(({ type: a }) => a === "minute")?.value ?? 0), m = Number(e.find(({ type: a }) => a === "second")?.value ?? 0);
|
|
102
|
+
return { year: n, month: r, day: s, hour: i, minute: u, second: m };
|
|
103
|
+
}
|
|
104
|
+
function N(t, o) {
|
|
105
|
+
const { year: e, month: n, day: r, hour: s, minute: i, second: u } = b(t, o);
|
|
106
|
+
return Date.UTC(e, n - 1, r, s, i, u) - t.getTime();
|
|
107
|
+
}
|
|
108
|
+
function A(t, o, e) {
|
|
109
|
+
const n = /^(\d{4})-(\d{2})-(\d{2})$/u.exec(t), r = /^(\d{2}):(\d{2}):(\d{2})$/u.exec(o);
|
|
110
|
+
if (!n || !r)
|
|
111
|
+
return;
|
|
112
|
+
const s = Number(n[1]), i = Number(n[2]), u = Number(n[3]), m = Number(r[1]), a = Number(r[2]), h = Number(r[3]), f = new Date(Date.UTC(s, i - 1, u, m, a, h)), v = N(f, e);
|
|
113
|
+
return new Date(f.getTime() - v);
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
D as a,
|
|
117
|
+
U as b,
|
|
118
|
+
B as c,
|
|
119
|
+
A as d,
|
|
120
|
+
d as e,
|
|
121
|
+
E as f,
|
|
122
|
+
P as g,
|
|
123
|
+
g as h,
|
|
124
|
+
I as i,
|
|
125
|
+
C as j,
|
|
126
|
+
j as k,
|
|
127
|
+
F as l
|
|
128
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
const
|
|
2
|
+
const r = "system", u = "unknown";
|
|
3
|
+
const l = Intl.DateTimeFormat().resolvedOptions().timeZone, c = {
|
|
3
4
|
milliseconds: 1,
|
|
4
5
|
seconds: 1e3,
|
|
5
6
|
minutes: 6e4,
|
|
@@ -16,42 +17,53 @@ const f = "system", d = "unknown", g = Intl.DateTimeFormat().resolvedOptions().t
|
|
|
16
17
|
function a(e, s, t) {
|
|
17
18
|
return e === 0 ? 0 : e * c[s] / c[t];
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function m(e) {
|
|
20
21
|
return e instanceof Date && !Number.isNaN(e.getTime());
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function f(e, s, t = "hours") {
|
|
23
24
|
const n = new Date(e.getTime()), i = a(s, t, "milliseconds");
|
|
24
25
|
return n.setTime(n.getTime() + i), n;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function d(e, s) {
|
|
27
28
|
const t = a(s, "hours", "milliseconds"), n = new Date(e.getTime() + t), i = n.toISOString().slice(0, 10), o = n.getUTCHours() * 60 + n.getUTCMinutes();
|
|
28
29
|
return { localDate: i, minutesSinceMidnight: o };
|
|
29
30
|
}
|
|
30
31
|
function T(e, s, t) {
|
|
31
|
-
return
|
|
32
|
+
return f(new Date(e), s - t * 60, "minutes");
|
|
32
33
|
}
|
|
33
34
|
function D(e, s) {
|
|
34
35
|
const t = e?.environment?.lighting;
|
|
35
|
-
if (
|
|
36
|
+
if (g(t)) {
|
|
36
37
|
const n = t.displayUTCOffset ?? s ?? 0, i = t.date;
|
|
37
|
-
if (
|
|
38
|
-
const { localDate: o } =
|
|
38
|
+
if (m(i)) {
|
|
39
|
+
const { localDate: o } = d(i, n);
|
|
39
40
|
return o;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function g(e) {
|
|
44
45
|
return e?.type === "sun";
|
|
45
46
|
}
|
|
47
|
+
function h(e) {
|
|
48
|
+
switch (e) {
|
|
49
|
+
case r:
|
|
50
|
+
return l;
|
|
51
|
+
case u:
|
|
52
|
+
return "UTC";
|
|
53
|
+
default:
|
|
54
|
+
return e;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
46
57
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
58
|
+
l as a,
|
|
59
|
+
d as b,
|
|
49
60
|
a as c,
|
|
50
|
-
|
|
61
|
+
m as d,
|
|
51
62
|
D as g,
|
|
52
|
-
|
|
63
|
+
g as i,
|
|
53
64
|
T as l,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
f as o,
|
|
66
|
+
h as r,
|
|
67
|
+
r as s,
|
|
68
|
+
u
|
|
57
69
|
};
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -52,13 +52,13 @@ function y(r, t, i) {
|
|
|
52
52
|
function w(r, t) {
|
|
53
53
|
return !!(t && t === "Stretched" && "version" in r && typeof r.version == "number" && r.version >= 10.3 && r.declaredClass === "esri.layers.ImageryLayer");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function v(r) {
|
|
56
56
|
return r ? r / 72 * 96 : 0;
|
|
57
57
|
}
|
|
58
58
|
function b(r) {
|
|
59
59
|
return r ? r * 72 / 96 : 0;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function N(r) {
|
|
62
62
|
if (typeof r == "string") {
|
|
63
63
|
const t = r.match(m);
|
|
64
64
|
if (t) {
|
|
@@ -76,7 +76,8 @@ function L(r, t) {
|
|
|
76
76
|
function F(r, t) {
|
|
77
77
|
if (!t || !r)
|
|
78
78
|
return;
|
|
79
|
-
|
|
79
|
+
const i = r.querySelector("svg") ?? r.querySelector("canvas") ?? r;
|
|
80
|
+
!(i instanceof SVGElement) && !i.hasAttribute("role") && i.setAttribute("role", "img"), i.setAttribute("aria-label", t);
|
|
80
81
|
}
|
|
81
82
|
export {
|
|
82
83
|
y as a,
|
|
@@ -84,7 +85,7 @@ export {
|
|
|
84
85
|
u as c,
|
|
85
86
|
L as g,
|
|
86
87
|
w as i,
|
|
87
|
-
|
|
88
|
+
v as p,
|
|
88
89
|
F as s,
|
|
89
|
-
|
|
90
|
+
N as t
|
|
90
91
|
};
|
|
@@ -12,7 +12,7 @@ import { u as ye } from "../../chunks/useView.js";
|
|
|
12
12
|
import { t as A } from "../../chunks/earth-utils.js";
|
|
13
13
|
import { m as J } from "../../chunks/handle.js";
|
|
14
14
|
import { o as H, i as u, l as I, b as D, d as K, g as xe } from "../../chunks/time-utils.js";
|
|
15
|
-
import { r as Se, b as De,
|
|
15
|
+
import { r as Se, b as De, e as Te } from "../../chunks/async-utils.js";
|
|
16
16
|
import { createTrackingTarget as ke, runTracked as Q, signal as Ce } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
17
17
|
import { C as X } from "../../chunks/component-wrapper.js";
|
|
18
18
|
import { V as T } from "../../chunks/visible-element.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { html as c } from "lit";
|
|
3
3
|
import { keyed as Y } from "lit/directives/keyed.js";
|
|
4
|
-
import { isLayerFromCatalog as
|
|
5
|
-
import { safeClassMap as
|
|
4
|
+
import { isLayerFromCatalog as Se } from "@arcgis/core/layers/catalog/catalogUtils.js";
|
|
5
|
+
import { safeClassMap as u, safeStyleMap as xe, nothing as r } from "@arcgis/lumina";
|
|
6
6
|
import { classes as F } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { createRef as Z, ref as ee } from "lit/directives/ref.js";
|
|
8
|
-
import { g as
|
|
9
|
-
import { h as
|
|
10
|
-
import { s as
|
|
8
|
+
import { g as Me, a as le } from "../../../chunks/action-utils.js";
|
|
9
|
+
import { h as Le, j as te, l as Ee, k as ke, n as we, o as Pe, g as De } from "../../../chunks/layer-list-utils.js";
|
|
10
|
+
import { s as Fe } from "../../../chunks/component-utils.js";
|
|
11
11
|
const ne = /* @__PURE__ */ new Map();
|
|
12
12
|
function ce(i) {
|
|
13
13
|
return i ? ne.get(i) ?? !1 : !1;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Oe(i, e) {
|
|
16
16
|
const l = !(i.aria?.pressed ?? ce(e));
|
|
17
17
|
return i.aria = { ...i.aria, pressed: l }, e && ne.set(e, l), l;
|
|
18
18
|
}
|
|
@@ -24,50 +24,50 @@ function ie(i, e) {
|
|
|
24
24
|
return;
|
|
25
25
|
O(e) === "exclusive" && i.visible || (i.visible = !i.visible);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ge(i, e) {
|
|
28
28
|
i.panel.open = !i.panel.open, i.panel.open && e && e();
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
i && l === e.layer?.uid && (
|
|
30
|
+
function Re(i, e, l, d) {
|
|
31
|
+
i && l === e.layer?.uid && (Fe(i), d?.(null));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ve(i, e, l) {
|
|
34
34
|
l.type === "toggle" && (l.value = !l.value), i(l, e);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function He(i) {
|
|
37
37
|
return i.actionsSections.map((e) => e.filter((l) => l.visible));
|
|
38
38
|
}
|
|
39
39
|
function se(i, e) {
|
|
40
40
|
const { icon: l } = e;
|
|
41
41
|
if (l)
|
|
42
42
|
return null;
|
|
43
|
-
const
|
|
44
|
-
return
|
|
43
|
+
const d = "image" in e ? e.image : void 0;
|
|
44
|
+
return d ? c`<span aria-hidden=true class=${u(F(i.itemActionIcon, { [i.itemActionImage]: !!d }))} style=${xe(Me(d))}></span>` : null;
|
|
45
45
|
}
|
|
46
46
|
function ae(i, e, l) {
|
|
47
|
-
const { item:
|
|
48
|
-
return c`<calcite-action .active=${
|
|
47
|
+
const { item: d, css: C, handleAction: a } = i, { active: v, disabled: T, title: f, type: h, indicator: S } = e, I = le(e);
|
|
48
|
+
return c`<calcite-action .active=${h === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${T} .icon=${I} .indicator=${S} .loading=${v} @click=${() => Ve(a, d, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${f ?? ""} .textEnabled=${l} title=${f ?? void 0 ?? r}>${se(C, e)}</calcite-action>`;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
const { item: e,
|
|
50
|
+
function Ue(i) {
|
|
51
|
+
const { item: e, itemType: l = "layer", parent: d, hideStatusIndicators: C, css: a, visibilityAppearance: v, hideCatalogLayerList: T, dragEnabled: f = !1, rootGroupUid: h, listModeDisabled: S = !1, selectionMode: I, displayMode: oe, layerTablesEnabled: x, showErrors: re, parentTitles: G, selectedItems: de, activeItem: ue, handleCatalogOpen: me, handleTablesOpen: $e, selectedDragItemLayerUid: ge, handleSelectedDragItemLayerUidChange: pe, handlePanelOpen: be, messages: n, setCurrentActiveItem: R, clearActiveItem: V } = i, g = Z(), M = Z(), ye = l === "table" ? n.untitledTable ?? "" : n.untitledLayer ?? "", b = e.title || ye || "";
|
|
52
52
|
let H = null;
|
|
53
|
-
|
|
53
|
+
C || (H = c`<arcgis-layer-list-item-indicator class=${u(a.statusIndicator)} .messages=${n} .item=${e} .parent=${d} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
54
54
|
let U = null;
|
|
55
55
|
{
|
|
56
|
-
const { layer: t } = e, s = t && "persistenceEnabled" in t && (
|
|
57
|
-
(i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (U = c`<calcite-icon class=${
|
|
56
|
+
const { layer: t } = e, s = t && "persistenceEnabled" in t && (Se(t) || !t.persistenceEnabled);
|
|
57
|
+
(i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (U = c`<calcite-icon class=${u(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
|
|
58
58
|
}
|
|
59
59
|
let q = null;
|
|
60
|
-
if ("visible" in e && "visibleToggle" in a &&
|
|
61
|
-
const t = O(
|
|
60
|
+
if ("visible" in e && "visibleToggle" in a && v) {
|
|
61
|
+
const t = O(d);
|
|
62
62
|
if (t !== "inherited") {
|
|
63
|
-
const s =
|
|
63
|
+
const s = Le({
|
|
64
64
|
visible: e.visible,
|
|
65
65
|
exclusive: t === "exclusive",
|
|
66
|
-
visibilityAppearance:
|
|
67
|
-
}), o =
|
|
68
|
-
q = c`<calcite-action .aria=${{ pressed: P }} class=${
|
|
69
|
-
|
|
70
|
-
}} .slot=${o ? "actions-start" : "actions-end"} .text=${
|
|
66
|
+
visibilityAppearance: v
|
|
67
|
+
}), o = v === "checkbox", m = n.layerVisibility, y = e.title ?? e.layer?.title ?? "", p = y ? `${m ?? ""}: ${y}` : m ?? "", P = ce(e.layer?.id);
|
|
68
|
+
q = c`<calcite-action .aria=${{ pressed: P }} class=${u(a.visibleToggle)} .icon=${o ? s : void 0} .label=${p} @click=${(D) => {
|
|
69
|
+
Oe(D.currentTarget, e.layer?.id), ie(e, d);
|
|
70
|
+
}} .slot=${o ? "actions-start" : "actions-end"} .text=${m ?? ""} title=${m ?? r}>${o ? null : c`<calcite-icon class=${u(F({
|
|
71
71
|
[a.visibleIcon]: t !== "exclusive" && e.visible
|
|
72
72
|
}))} .icon=${s} scale=s></calcite-icon>`}</calcite-action>`;
|
|
73
73
|
}
|
|
@@ -75,30 +75,30 @@ function Ve(i) {
|
|
|
75
75
|
let j = null;
|
|
76
76
|
{
|
|
77
77
|
const t = e.panel;
|
|
78
|
-
t?.open && !t.disabled && !t.flowEnabled && (j = c`<div class=${
|
|
78
|
+
t?.open && !t.disabled && !t.flowEnabled && (j = c`<div class=${u(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${i.view}></arcgis-layer-list-item-panel></div>`);
|
|
79
79
|
}
|
|
80
80
|
let B = null;
|
|
81
81
|
{
|
|
82
82
|
const t = e.panel;
|
|
83
83
|
if (t?.visible) {
|
|
84
|
-
const { open: s, title: o, disabled:
|
|
85
|
-
B = c`<calcite-action .active=${s} .disabled=${
|
|
84
|
+
const { open: s, title: o, disabled: m } = t, y = { icon: t.icon, image: t.image, indicator: !1 }, p = le(y);
|
|
85
|
+
B = c`<calcite-action .active=${s} .disabled=${m} .icon=${p} @click=${() => Ge(e, be)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${se(a, t)}</calcite-action>`;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
let N = null;
|
|
89
89
|
{
|
|
90
90
|
const t = e.layer, s = t?.type === "catalog-footprint", o = t?.type === "sublayer" && te(t, "footprints");
|
|
91
|
-
"itemCatalogIcon" in a && (s || o) && (N = c`<calcite-icon class=${
|
|
91
|
+
"itemCatalogIcon" in a && (s || o) && (N = c`<calcite-icon class=${u(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
|
|
92
92
|
}
|
|
93
93
|
let _ = null;
|
|
94
94
|
{
|
|
95
95
|
const t = e.layer, s = t?.type === "catalog-dynamic-group", o = t?.type === "sublayer" && te(t, "layers-in-view");
|
|
96
|
-
"itemCatalogIcon" in a && (s || o) && (_ = c`<calcite-icon class=${
|
|
96
|
+
"itemCatalogIcon" in a && (s || o) && (_ = c`<calcite-icon class=${u(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`);
|
|
97
97
|
}
|
|
98
98
|
let z = null;
|
|
99
99
|
if ("visible" in e) {
|
|
100
100
|
const t = e.layer;
|
|
101
|
-
!
|
|
101
|
+
!T && t?.type === "catalog-dynamic-group" && (z = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => me?.(e)} scale=s slot=actions-end .text=${b ?? ""}></calcite-action>`);
|
|
102
102
|
}
|
|
103
103
|
let J = null, L = !1;
|
|
104
104
|
{
|
|
@@ -113,32 +113,32 @@ function Ve(i) {
|
|
|
113
113
|
L = x.includes(t.type) && "subtables" in t && !!t.subtables?.length;
|
|
114
114
|
break;
|
|
115
115
|
}
|
|
116
|
-
"itemTableIcon" in a && "visible" in e && "tables" in n && L && (J = Y(`${e.uid}-tables`, c`<calcite-list-item class=${
|
|
116
|
+
"itemTableIcon" in a && "visible" in e && "tables" in n && L && (J = Y(`${e.uid}-tables`, c`<calcite-list-item class=${u(a.item)} data-layer-id=${t?.id ?? r} drag-disabled .label=${n.tables} title=${n.tables ?? r} @calciteListItemSelect=${() => $e?.(e)} .value=${e}><calcite-icon class=${u(a.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>`));
|
|
117
117
|
}
|
|
118
118
|
let K = null;
|
|
119
119
|
if ("children" in e) {
|
|
120
|
-
const t = [...G ?? [], e.title], { children: s, layer: o } = e,
|
|
121
|
-
(
|
|
120
|
+
const t = [...G ?? [], e.title], { children: s, layer: o } = e, m = o?.type !== "catalog-dynamic-group" && Ee(e), y = S ? !1 : ke(o), p = o?.type === "group", P = !y && !m && f && p, D = p && "sortable" in e && e.sortable, Ce = f && ("childrenSortable" in e && e.childrenSortable || D) && we(e), Te = m ? (s?.filter(($) => !$.hidden && (re || !$.error)).toArray() ?? []).map(($) => Ue({ ...i, item: $, parent: e, parentTitles: t })) : null;
|
|
121
|
+
(m || P) && (K = c`<calcite-list .canPull=${($) => i.canMove ? i.canMove($, "pull") : !1} .canPut=${($) => i.canMove ? i.canMove($, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${h ?? r} .displayMode=${oe} .dragEnabled=${Ce} .group=${p ? h : `${h}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${I}>${Te}${J}</calcite-list>`);
|
|
122
122
|
}
|
|
123
123
|
let E = null;
|
|
124
124
|
if (e.error) {
|
|
125
125
|
const t = "layerError" in n ? n.layerError : n.tableError;
|
|
126
|
-
E = c`<div class=${
|
|
127
|
-
} else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${
|
|
128
|
-
const Q =
|
|
126
|
+
E = c`<div class=${u(a.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>`;
|
|
127
|
+
} else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${u(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${ee(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
|
|
128
|
+
const Q = He(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), W = Pe(Q), ve = Q.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => ae(i, s, !0))}</calcite-action-group>`), fe = (t) => {
|
|
129
129
|
e.actionsOpen = t.currentTarget.open;
|
|
130
130
|
};
|
|
131
131
|
let X = null;
|
|
132
|
-
k > 1 && (X = c`<calcite-action-menu appearance=transparent .label=${n.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${
|
|
132
|
+
k > 1 && (X = c`<calcite-action-menu appearance=transparent .label=${n.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${fe}><calcite-action .aria=${{
|
|
133
133
|
expanded: e.actionsOpen ?? !1,
|
|
134
134
|
hasPopup: "true"
|
|
135
|
-
}} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${
|
|
135
|
+
}} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${ve}</calcite-action-menu>`);
|
|
136
136
|
let w = null;
|
|
137
137
|
k === 1 && W ? w = ae(i, W, !1) : k > 1 && (w = X);
|
|
138
|
-
const
|
|
138
|
+
const he = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, Ie = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, Ae = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
|
|
139
139
|
return queueMicrotask(() => {
|
|
140
|
-
|
|
141
|
-
}), Y(e.uid, c`<calcite-list-item class=${
|
|
140
|
+
Re(g.value ?? null, e, ge, pe), M.value && (i.handleTooltipReferenceChange?.(A?.uid, M.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = g.value);
|
|
141
|
+
}), Y(e.uid, c`<calcite-list-item class=${u(F(a.item, "itemActive" in a && { [a.itemActive]: ue?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || Ie} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: G ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${I !== "none" ? de.includes(e) : !1} title=${he ?? r} .unavailable=${Ae} .value=${e} @focusin=${() => {
|
|
142
142
|
R?.(e), g.value?.classList.add(a.itemActive);
|
|
143
143
|
}} @focusout=${() => {
|
|
144
144
|
V?.(), g.value?.classList.remove(a.itemActive);
|
|
@@ -147,11 +147,11 @@ function Ve(i) {
|
|
|
147
147
|
}} @mouseleave=${() => {
|
|
148
148
|
V?.(), g.value?.classList.remove(a.itemActive);
|
|
149
149
|
}} @calciteListItemSelect=${(t) => {
|
|
150
|
-
t.target === t.currentTarget && "visible" in e &&
|
|
150
|
+
t.target === t.currentTarget && "visible" in e && De(t.currentTarget, i.operationalItems) === e && I === "none" && O(d) !== "inherited" && ie(e, d);
|
|
151
151
|
}} @calciteListItemToggle=${(t) => {
|
|
152
152
|
"open" in e && (t.stopPropagation(), e.open = t.target.expanded);
|
|
153
153
|
}} ${ee(g)}>${N}${_}${H}${q}${z}${U}${K}${E}${j}${B}${w}</calcite-list-item>`);
|
|
154
154
|
}
|
|
155
155
|
export {
|
|
156
|
-
|
|
156
|
+
Ue as ArcgisLayerListItem
|
|
157
157
|
};
|