@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.
Files changed (273) hide show
  1. package/dist/cdn/{RDXFUCMG.js → 22FLXX55.js} +1 -1
  2. package/dist/cdn/{G7APNTVJ.js → 26W2NMYE.js} +1 -1
  3. package/dist/cdn/{NMWYQ5WX.js → 27DFVIVV.js} +1 -1
  4. package/dist/cdn/{5L764GTN.js → 2AASXHQF.js} +1 -1
  5. package/dist/cdn/{FBL4FNP2.js → 2BCD2J5T.js} +1 -1
  6. package/dist/cdn/{SX7O6EXI.js → 2DHPGACO.js} +1 -1
  7. package/dist/cdn/{RII7CWWU.js → 2F546CPM.js} +1 -1
  8. package/dist/cdn/{GSPJRG26.js → 2FJWRTFE.js} +1 -1
  9. package/dist/cdn/{LZPZZMEH.js → 2YCUXNZC.js} +1 -1
  10. package/dist/cdn/{EE4X5YOU.js → 2ZETLPCO.js} +1 -1
  11. package/dist/cdn/{62TMUUMH.js → 3N7DHHCP.js} +1 -1
  12. package/dist/cdn/{UVQAPLIX.js → 3YGZGNIG.js} +1 -1
  13. package/dist/cdn/{VZK5BXWY.js → 447CU6QV.js} +1 -1
  14. package/dist/cdn/{22NMICPW.js → 44SYZMRA.js} +1 -1
  15. package/dist/cdn/{LBRZ6IVX.js → 47SFVJQS.js} +1 -1
  16. package/dist/cdn/{SY3M2ZUK.js → 4BFCBXCA.js} +1 -1
  17. package/dist/cdn/{A3BUMPTF.js → 4LHBEGTU.js} +1 -1
  18. package/dist/cdn/4SV6HHMC.js +2 -0
  19. package/dist/cdn/{HSB4XYHA.js → 4T4GCBM3.js} +1 -1
  20. package/dist/cdn/{ZSK55FRY.js → 4YOX2SCZ.js} +1 -1
  21. package/dist/cdn/{4JAQPYHG.js → 54FMWJL7.js} +1 -1
  22. package/dist/cdn/{6V4MOKPT.js → 5AUIH5PW.js} +1 -1
  23. package/dist/cdn/{WACJO3GM.js → 5F6Q3XF5.js} +1 -1
  24. package/dist/cdn/{4WENIFOF.js → 5JXXMDY6.js} +1 -1
  25. package/dist/cdn/{PISSWA2X.js → 5N7BVEJM.js} +1 -1
  26. package/dist/cdn/5W6NJGFF.js +2 -0
  27. package/dist/cdn/{SYRZLONH.js → 5W7XCJ5B.js} +1 -1
  28. package/dist/cdn/{XYM5LHFM.js → 5YORAY7J.js} +1 -1
  29. package/dist/cdn/{DPDU2GSI.js → 635CQLYS.js} +1 -1
  30. package/dist/cdn/{EP7FUAF2.js → 6BYE6FYG.js} +1 -1
  31. package/dist/cdn/{C2D24FZL.js → 6E7OZHUN.js} +1 -1
  32. package/dist/cdn/{OGYAUMMI.js → 6KHHCJ5X.js} +1 -1
  33. package/dist/cdn/{SDBR2UYJ.js → 6NNRGJYB.js} +1 -1
  34. package/dist/cdn/{RN6YVTSJ.js → 7HLWU5PX.js} +1 -1
  35. package/dist/cdn/{7MO7E734.js → 7ICJOTUR.js} +1 -1
  36. package/dist/cdn/{Z7J6NDSB.js → A22AUGYH.js} +1 -1
  37. package/dist/cdn/{7HOAA7SE.js → A4USUD2G.js} +1 -1
  38. package/dist/cdn/{VRBQLCFE.js → A636G66O.js} +1 -1
  39. package/dist/cdn/{25J4CQKL.js → AC43TA2Y.js} +1 -1
  40. package/dist/cdn/{J3LU4VHH.js → AFJW3C3J.js} +1 -1
  41. package/dist/cdn/{EPBKJBDS.js → AGEFGOQ4.js} +1 -1
  42. package/dist/cdn/{QXFHLDLD.js → AK62SYBC.js} +1 -1
  43. package/dist/cdn/{6WBCA7YD.js → ALIKGBJJ.js} +1 -1
  44. package/dist/cdn/{CVJT2CDW.js → ALUQRMZW.js} +1 -1
  45. package/dist/cdn/{EUCWM5S7.js → AR56PQPF.js} +1 -1
  46. package/dist/cdn/{226ASAN4.js → AX4YVQW5.js} +1 -1
  47. package/dist/cdn/AX6GSVZL.js +2 -0
  48. package/dist/cdn/{HQVDDVBE.js → BC7EPFWD.js} +1 -1
  49. package/dist/cdn/{E7E7MIKH.js → BF42UPF6.js} +1 -1
  50. package/dist/cdn/{KWXR6G2J.js → BPGR7WZ3.js} +1 -1
  51. package/dist/cdn/{CUXUSAP4.js → BPJIXO5J.js} +1 -1
  52. package/dist/cdn/{4GB5RIYZ.js → BU6JMSUW.js} +1 -1
  53. package/dist/cdn/{3WKJVIT5.js → BWKADIQY.js} +1 -1
  54. package/dist/cdn/{5PZ64P44.js → CAGM7ZNR.js} +1 -1
  55. package/dist/cdn/{GECBQL23.js → CFIH5Y4K.js} +1 -1
  56. package/dist/cdn/{SP3SHKU4.js → CIC5ZUY7.js} +1 -1
  57. package/dist/cdn/{JOJYHVDS.js → CJS5I43A.js} +1 -1
  58. package/dist/cdn/{3QFONUZB.js → CLOJ3UVQ.js} +1 -1
  59. package/dist/cdn/{77AOOZB2.js → CPVH7W2O.js} +1 -1
  60. package/dist/cdn/{GD5VVQPA.js → CYBCFSSA.js} +1 -1
  61. package/dist/cdn/{XPA3T33A.js → CYNVIPKG.js} +1 -1
  62. package/dist/cdn/{27DGJIUB.js → D3U2ST6B.js} +1 -1
  63. package/dist/cdn/{QOD6TYZ2.js → D7DH54CE.js} +1 -1
  64. package/dist/cdn/{U5IS4L54.js → DCNNPWXR.js} +1 -1
  65. package/dist/cdn/{OO3JRV5K.js → DFLF2GHB.js} +1 -1
  66. package/dist/cdn/{4QYMX7LR.js → DMA5N4U3.js} +1 -1
  67. package/dist/cdn/{BCGQ7UIU.js → DZWUKLIN.js} +1 -1
  68. package/dist/cdn/{CTSJYC3X.js → E2NYZWXE.js} +1 -1
  69. package/dist/cdn/{3BV6XBJZ.js → E7MAE44R.js} +1 -1
  70. package/dist/cdn/{42XU4L5C.js → EFUM5T3J.js} +1 -1
  71. package/dist/cdn/{PCBZQRX4.js → EHI4E3OA.js} +1 -1
  72. package/dist/cdn/{V6VLUKHQ.js → EI6T7BKN.js} +1 -1
  73. package/dist/cdn/{3ZQEDFHR.js → EIKXN526.js} +1 -1
  74. package/dist/cdn/{7PLMJIAQ.js → EIUWI6SJ.js} +1 -1
  75. package/dist/cdn/{YL6EQO7B.js → EJ3X446I.js} +1 -1
  76. package/dist/cdn/{DC357Y2K.js → F35ORGGB.js} +1 -1
  77. package/dist/cdn/F3VS53GP.js +2 -0
  78. package/dist/cdn/{Y23AXDJB.js → FCEB7HIL.js} +1 -1
  79. package/dist/cdn/{AUE4JQXJ.js → FTO3BR3P.js} +1 -1
  80. package/dist/cdn/{GOVUDM4N.js → FURSVK7Y.js} +1 -1
  81. package/dist/cdn/{Y7JVOMNJ.js → FYNG6CYN.js} +1 -1
  82. package/dist/cdn/{QUYXPMFZ.js → GFG5O7YM.js} +1 -1
  83. package/dist/cdn/{7YMLPJVW.js → GHTQIXMG.js} +1 -1
  84. package/dist/cdn/GOIKNGEI.js +2 -0
  85. package/dist/cdn/{NGUV3VWT.js → GXGBUAE7.js} +1 -1
  86. package/dist/cdn/{DZ6TMBVB.js → GY2CXLXB.js} +1 -1
  87. package/dist/cdn/{RFYPQ3GQ.js → HCEP3NVU.js} +1 -1
  88. package/dist/cdn/HEGMKLJO.js +2 -0
  89. package/dist/cdn/{35EU7G2H.js → HFPQ7CSJ.js} +1 -1
  90. package/dist/cdn/{7SZGIUAX.js → HR3OA66U.js} +1 -1
  91. package/dist/cdn/{TOF5NAVM.js → HWDZDKDX.js} +1 -1
  92. package/dist/cdn/I3WV6OM4.js +2 -0
  93. package/dist/cdn/{T4ULWFGS.js → IIPETVIW.js} +1 -1
  94. package/dist/cdn/{6G7UWNCY.js → IJIN5G4N.js} +1 -1
  95. package/dist/cdn/{3ZQ375NT.js → ISAKFCBN.js} +1 -1
  96. package/dist/cdn/{HT23X37X.js → ITYCDXB3.js} +1 -1
  97. package/dist/cdn/{6URRJVLV.js → J2AISQHP.js} +1 -1
  98. package/dist/cdn/{N5PSINKS.js → J2R2J6UR.js} +1 -1
  99. package/dist/cdn/{4RQVKULG.js → JDVBEPJQ.js} +1 -1
  100. package/dist/cdn/{DPKCDN3P.js → JGOVELNR.js} +1 -1
  101. package/dist/cdn/{QA56535U.js → JIALAMBB.js} +1 -1
  102. package/dist/cdn/{CUZUYZE2.js → JJFLMGAX.js} +1 -1
  103. package/dist/cdn/{V5TLUM7M.js → JL3C3PJK.js} +1 -1
  104. package/dist/cdn/{HGJ56PKD.js → JLO3FL27.js} +1 -1
  105. package/dist/cdn/{I5U3QCTO.js → JNXAPZOG.js} +1 -1
  106. package/dist/cdn/JOJQC6AF.js +2 -0
  107. package/dist/cdn/{IFZLE6R4.js → JUAJIR4N.js} +1 -1
  108. package/dist/cdn/{3YJVHAJW.js → JYAIIIMS.js} +1 -1
  109. package/dist/cdn/{FEWZYBBW.js → KAAQWUI6.js} +1 -1
  110. package/dist/cdn/{IEWD6LOR.js → KBBYF7KD.js} +1 -1
  111. package/dist/cdn/{LXF6LDWE.js → KEV6I36K.js} +1 -1
  112. package/dist/cdn/{WB5Y7X7S.js → KKBZEDN4.js} +1 -1
  113. package/dist/cdn/{3VIS3UL6.js → KQKQJVFM.js} +1 -1
  114. package/dist/cdn/{MJB3NLLH.js → KS6PL4CM.js} +1 -1
  115. package/dist/cdn/{PWOCWDXH.js → KX7Y7MML.js} +1 -1
  116. package/dist/cdn/{5USS47OO.js → KXLECJE4.js} +1 -1
  117. package/dist/cdn/{6VNX2RV3.js → KXUS2Z2Z.js} +1 -1
  118. package/dist/cdn/{OUQRKL6Q.js → L7AWHKQN.js} +1 -1
  119. package/dist/cdn/{262J7OXJ.js → LB4H4S5X.js} +1 -1
  120. package/dist/cdn/{UKO2UCD3.js → LP6TTSIT.js} +1 -1
  121. package/dist/cdn/{Y455YVQT.js → LQCHLWS5.js} +1 -1
  122. package/dist/cdn/{3YZRY2EG.js → M4HY5VMM.js} +1 -1
  123. package/dist/cdn/{2QX2M2WC.js → M5BID47D.js} +1 -1
  124. package/dist/cdn/{BCDL4T34.js → M5DTOYQQ.js} +1 -1
  125. package/dist/cdn/{MHG26BRV.js → M6WSCBQP.js} +1 -1
  126. package/dist/cdn/{CVSQSV2T.js → MBJ27YMN.js} +1 -1
  127. package/dist/cdn/MBRWWICI.js +2 -0
  128. package/dist/cdn/MBZPYZX2.js +2 -0
  129. package/dist/cdn/MGS4P6UC.js +2 -0
  130. package/dist/cdn/{WMNHZG4Z.js → MRRTS5P6.js} +1 -1
  131. package/dist/cdn/{VWED2WAO.js → MZQT7KZP.js} +1 -1
  132. package/dist/cdn/{C6RQ2TQ4.js → N2KU7FO4.js} +1 -1
  133. package/dist/cdn/{UOXJUYC7.js → NEQT2ZY6.js} +1 -1
  134. package/dist/cdn/{57E26JZ5.js → NNBWJV4O.js} +1 -1
  135. package/dist/cdn/{2JBFSC6D.js → NRHOAASJ.js} +1 -1
  136. package/dist/cdn/{LQHENS2H.js → O6YIIKVP.js} +1 -1
  137. package/dist/cdn/{GYZYY2TM.js → OANCY5SX.js} +1 -1
  138. package/dist/cdn/{KCEGLGM4.js → OFW7MIOM.js} +1 -1
  139. package/dist/cdn/{R2Z6LGSX.js → OIT4E6K2.js} +1 -1
  140. package/dist/cdn/{SGIT6SHY.js → OKC5OJJS.js} +1 -1
  141. package/dist/cdn/{DEQA63VJ.js → OMGRHB7H.js} +1 -1
  142. package/dist/cdn/{NGYAHM32.js → OO6NV5GK.js} +1 -1
  143. package/dist/cdn/{PJ6BIN6B.js → OPQJE7BZ.js} +1 -1
  144. package/dist/cdn/{O5T75PGZ.js → OWAKPT2D.js} +1 -1
  145. package/dist/cdn/{D5N26QOS.js → OXANZYRI.js} +1 -1
  146. package/dist/cdn/{A2TTJCDV.js → OZTQXCFB.js} +1 -1
  147. package/dist/cdn/{QRAQ7SYI.js → P25T7SEL.js} +1 -1
  148. package/dist/cdn/{F7RMRBE3.js → P5HQL37E.js} +1 -1
  149. package/dist/cdn/{RZX4PVJV.js → PFPOP2U4.js} +1 -1
  150. package/dist/cdn/{LSP6WL4P.js → PIRTG67V.js} +1 -1
  151. package/dist/cdn/{OCLSVHBG.js → PPIFGJX4.js} +1 -1
  152. package/dist/cdn/{JP24H6WY.js → PUAXDNBG.js} +1 -1
  153. package/dist/cdn/{BJYHPARY.js → Q5ACGCP3.js} +1 -1
  154. package/dist/cdn/{EE4DGDQU.js → QHILZ2NJ.js} +1 -1
  155. package/dist/cdn/{7JO4QKKH.js → QMYYA3S6.js} +1 -1
  156. package/dist/cdn/{ZJIWWNJV.js → QTYBVQMT.js} +1 -1
  157. package/dist/cdn/{XP3BVKWY.js → QVOYYXIU.js} +1 -1
  158. package/dist/cdn/{RAYQEF6G.js → QZLVTEOQ.js} +1 -1
  159. package/dist/cdn/{GPJG37UL.js → R3DTZBMN.js} +1 -1
  160. package/dist/cdn/{O6L7TWQH.js → RAH7WYLV.js} +1 -1
  161. package/dist/cdn/{XWIR344G.js → RONABERI.js} +1 -1
  162. package/dist/cdn/{FBKD4RWJ.js → RWVY76K4.js} +1 -1
  163. package/dist/cdn/{CZLAUEZF.js → RY3HMV3O.js} +1 -1
  164. package/dist/cdn/{OW2CJGSF.js → RYXTEZZH.js} +1 -1
  165. package/dist/cdn/{TZYCSEIK.js → SCPSWHG4.js} +1 -1
  166. package/dist/cdn/{RY73K52N.js → SJRSZW3M.js} +1 -1
  167. package/dist/cdn/{XH4BVYMC.js → SRBEW7NV.js} +1 -1
  168. package/dist/cdn/{EMW3ALJA.js → SSGPECUS.js} +1 -1
  169. package/dist/cdn/SSK7OVMF.js +2 -0
  170. package/dist/cdn/{NJW4OAOH.js → STU7FJ5Z.js} +1 -1
  171. package/dist/cdn/{4PF56QFJ.js → SWAX3RUB.js} +1 -1
  172. package/dist/cdn/{TLOB62Q3.js → T2KDO5HD.js} +1 -1
  173. package/dist/cdn/{GMIAQHT4.js → T6CKYPI7.js} +1 -1
  174. package/dist/cdn/{3AS7CJFU.js → TAZWQ7EC.js} +1 -1
  175. package/dist/cdn/{CPMHDQHY.js → TH7SCVOQ.js} +1 -1
  176. package/dist/cdn/{6J7L2FAB.js → TM6LGP6D.js} +1 -1
  177. package/dist/cdn/{3MWUCGFA.js → TWMQVARD.js} +1 -1
  178. package/dist/cdn/{SF6DG2BU.js → U25QRAQN.js} +1 -1
  179. package/dist/cdn/{G6WHFUIF.js → U3L7RZL4.js} +1 -1
  180. package/dist/cdn/{CM7EQXWU.js → U4S4PHBB.js} +1 -1
  181. package/dist/cdn/{DJYIVAB2.js → UI32UC33.js} +1 -1
  182. package/dist/cdn/{7DBZFTR6.js → UOHCNL3F.js} +1 -1
  183. package/dist/cdn/UU2VWYLI.js +2 -0
  184. package/dist/cdn/{6ZLGA6NY.js → UX6QVJG6.js} +1 -1
  185. package/dist/cdn/{AIVVE6PW.js → UXREMHTR.js} +1 -1
  186. package/dist/cdn/{X6BTGTK3.js → V2N7V36Y.js} +1 -1
  187. package/dist/cdn/{IVZM7EPG.js → V63SHRQJ.js} +1 -1
  188. package/dist/cdn/{I3BAOV7V.js → VFAQKJXX.js} +1 -1
  189. package/dist/cdn/{MJVODTWO.js → VFLELQHU.js} +1 -1
  190. package/dist/cdn/{XOFHG45P.js → VIAVQT2D.js} +1 -1
  191. package/dist/cdn/{SMETKDNO.js → VN4DKI5B.js} +1 -1
  192. package/dist/cdn/{5IAV6PUT.js → VPXMBT5B.js} +1 -1
  193. package/dist/cdn/{JIIWY7WR.js → VQR2HIW2.js} +1 -1
  194. package/dist/cdn/{NO5YSGEU.js → VVLDHLAY.js} +1 -1
  195. package/dist/cdn/{BQALWYAT.js → VZD4UCKC.js} +1 -1
  196. package/dist/cdn/{ZMVTKENO.js → WYZPOKJF.js} +1 -1
  197. package/dist/cdn/X2QNONZE.js +2 -0
  198. package/dist/cdn/{SL7K5BE2.js → X6K2RSPI.js} +1 -1
  199. package/dist/cdn/{3CBU3MJL.js → XB7KKTY6.js} +1 -1
  200. package/dist/cdn/{XPGYKHZB.js → XCIYLNTM.js} +1 -1
  201. package/dist/cdn/{FD73ZZE6.js → XCUAPJNZ.js} +1 -1
  202. package/dist/cdn/{NXOZVS4Z.js → XD4EGOJ3.js} +1 -1
  203. package/dist/cdn/XD52OHCM.js +2 -0
  204. package/dist/cdn/{X6PWBP6M.js → XFH2TUXK.js} +1 -1
  205. package/dist/cdn/{KUBYN76S.js → XQP3UJJB.js} +1 -1
  206. package/dist/cdn/{WGJ4M2WU.js → XTK3DMAO.js} +1 -1
  207. package/dist/cdn/{RZ6SODVT.js → XUSIBTEV.js} +1 -1
  208. package/dist/cdn/{2KWY4AXN.js → XWJQBDNW.js} +1 -1
  209. package/dist/cdn/{2U5G2QWZ.js → Y3X3K2RU.js} +1 -1
  210. package/dist/cdn/{TIPGSYM6.js → YNKKNHTQ.js} +1 -1
  211. package/dist/cdn/{FMG7FAUK.js → YQ2OS5PW.js} +1 -1
  212. package/dist/cdn/{7RN4FELN.js → YTL7TRUR.js} +1 -1
  213. package/dist/cdn/{EF66VW43.js → Z2PS3LGI.js} +1 -1
  214. package/dist/cdn/{3C7K3QVM.js → Z6MJ3CFF.js} +1 -1
  215. package/dist/cdn/{BFXQ5WCT.js → ZA2AHCVY.js} +1 -1
  216. package/dist/cdn/{H5DDBPGU.js → ZEHQXP4U.js} +1 -1
  217. package/dist/cdn/{ZMZJEEHS.js → ZHW7XZUM.js} +1 -1
  218. package/dist/cdn/ZKQKAXTB.js +2 -0
  219. package/dist/cdn/{RVHKL3JR.js → ZSLANXPZ.js} +1 -1
  220. package/dist/cdn/{5KMBHKTM.js → ZUNHOHIR.js} +1 -1
  221. package/dist/cdn/assets/oriented-imagery-viewer-video-controls/t9n/messages.en.json +1 -0
  222. package/dist/cdn/assets/time-bar/t9n/messages.en.json +1 -0
  223. package/dist/cdn/index.js +1 -1
  224. package/dist/cdn/main.css +1 -1
  225. package/dist/chunks/async-utils.js +63 -51
  226. package/dist/chunks/dateUtils.js +128 -0
  227. package/dist/chunks/time-utils.js +28 -16
  228. package/dist/chunks/utils2.js +6 -5
  229. package/dist/components/arcgis-daylight/customElement.js +1 -1
  230. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +47 -47
  231. package/dist/components/arcgis-oriented-imagery-viewer-video-controls/customElement.d.ts +34 -0
  232. package/dist/components/arcgis-oriented-imagery-viewer-video-controls/customElement.js +61 -0
  233. package/dist/components/arcgis-oriented-imagery-viewer-video-controls/index.d.ts +1 -0
  234. package/dist/components/arcgis-oriented-imagery-viewer-video-controls/index.js +5 -0
  235. package/dist/components/arcgis-table-list-next/customElement.js +1 -1
  236. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +71 -0
  237. package/dist/components/arcgis-time-bar/customElement.d.ts +1006 -0
  238. package/dist/components/arcgis-time-bar/customElement.js +587 -0
  239. package/dist/components/arcgis-time-bar/index.d.ts +1 -0
  240. package/dist/components/arcgis-time-bar/index.js +7 -0
  241. package/dist/components/arcgis-time-bar/types.d.ts +45 -0
  242. package/dist/components/arcgis-time-bar-date/customElement.js +37 -0
  243. package/dist/components/arcgis-time-bar-date/index.js +1 -0
  244. package/dist/components/arcgis-time-bar-extent/customElement.js +30 -0
  245. package/dist/components/arcgis-time-bar-extent/index.js +2 -0
  246. package/dist/components/arcgis-time-bar-settings/customElement.js +352 -0
  247. package/dist/components/arcgis-time-bar-settings/index.js +18 -0
  248. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +172 -0
  249. package/dist/components/arcgis-time-bar-slider/customElement.js +150 -0
  250. package/dist/components/arcgis-time-bar-slider/index.d.ts +1 -0
  251. package/dist/components/arcgis-time-bar-slider/index.js +5 -0
  252. package/dist/docs/api.json +1 -1
  253. package/dist/docs/docs.json +1 -1
  254. package/dist/docs/vscode.html-custom-data.json +1 -1
  255. package/dist/docs/web-types.json +1 -1
  256. package/dist/index.d.ts +18 -0
  257. package/dist/loader.js +6 -0
  258. package/dist/support/time-utils.d.ts +7 -0
  259. package/dist/types/lumina.d.ts +17 -0
  260. package/dist/types/preact.d.ts +20 -0
  261. package/dist/types/react.d.ts +23 -0
  262. package/dist/types/stencil.d.ts +17 -0
  263. package/package.json +4 -4
  264. package/dist/cdn/3AEP2FXT.js +0 -2
  265. package/dist/cdn/4TYWHTFT.js +0 -2
  266. package/dist/cdn/AFXGNK7O.js +0 -2
  267. package/dist/cdn/H5B4VHOH.js +0 -2
  268. package/dist/cdn/NSF5Q73E.js +0 -2
  269. package/dist/cdn/P6CDJ2IV.js +0 -2
  270. package/dist/cdn/PGKGXEJ7.js +0 -2
  271. package/dist/cdn/TJ47T76E.js +0 -2
  272. package/dist/cdn/VEZP32RO.js +0 -2
  273. /package/dist/cdn/{CDSRIIHC.js → XRPUXUOQ.js} +0 -0
@@ -0,0 +1,587 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as W } from "../../chunks/runtime.js";
3
+ import x from "@arcgis/core/time/TimeExtent.js";
4
+ import { css as V, html as v } from "lit";
5
+ import z from "@arcgis/core/core/Accessor.js";
6
+ import q from "@arcgis/core/webdoc/widgets/TimeSlider.js";
7
+ import H from "@arcgis/core/webdoc/Widgets.js";
8
+ import { b as G, d as L, i as U } from "../../chunks/async-utils.js";
9
+ import { c as Y, e as J, g as F, i as C, h as K, j as Q, k as X, l as Z, a as tt } from "../../chunks/dateUtils.js";
10
+ import { convertDateFormatToIntlOptions as T } from "@arcgis/core/intl.js";
11
+ import { r as et, s as it } from "../../chunks/time-utils.js";
12
+ import k from "@arcgis/core/time/TimeInterval.js";
13
+ import { getTimeSliderSettingsFromWebDocument as st } from "@arcgis/core/support/timeUtils.js";
14
+ import { log as nt } from "@arcgis/toolkit/log";
15
+ import { property as l, subclass as at } from "@arcgis/core/core/accessorSupport/decorators.js";
16
+ import { watch as w, whenOnce as O } from "@arcgis/core/core/reactiveUtils.js";
17
+ import { LitElement as ot, createEvent as rt } from "@arcgis/lumina";
18
+ import { createRef as lt, ref as A } from "lit/directives/ref.js";
19
+ import { getSlotAssignedElements as ut } from "@arcgis/toolkit/dom/slots";
20
+ import { m as mt } from "../../chunks/useViewModel.js";
21
+ import { useDirection as ct, usePropertyChange as ht } from "@arcgis/lumina/controllers";
22
+ import { u as dt } from "../../chunks/useT9n.js";
23
+ const B = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap();
24
+ function vt(t) {
25
+ const { locale: e, formatOptions: n } = t, a = yt(n), u = new Intl.DateTimeFormat(e, a);
26
+ return B.set(t, u), u;
27
+ }
28
+ function pt(t) {
29
+ const { locale: e, formatOptions: n } = t, a = new Intl.NumberFormat(e, n);
30
+ return I.set(t, a), a;
31
+ }
32
+ function ft(t) {
33
+ return B.get(t) ?? vt(t);
34
+ }
35
+ function gt(t) {
36
+ return I.get(t) ?? pt(t);
37
+ }
38
+ function yt(t) {
39
+ return t.timeZone ? {
40
+ ...t,
41
+ timeZone: et(t.timeZone)
42
+ } : t;
43
+ }
44
+ const i = (t, e, n) => ({ minorTick: t, majorTick: e, majorTickFormat: n }), s = {
45
+ sf: { second: "numeric", fractionalSecondDigits: 3 },
46
+ s: { second: "numeric" },
47
+ ms: { minute: "numeric", second: "numeric" },
48
+ mi: { minute: "numeric" },
49
+ hm: { hour: "numeric", minute: "numeric" },
50
+ dm: { day: "numeric", month: "short" },
51
+ m: { month: "short" },
52
+ my: { month: "short", year: "numeric" },
53
+ y: { year: "numeric" }
54
+ }, wt = [
55
+ i({ value: 1, unit: "milliseconds" }, { value: 20, unit: "milliseconds" }, s.sf),
56
+ i({ value: 2, unit: "milliseconds" }, { value: 50, unit: "milliseconds" }, s.sf),
57
+ i({ value: 5, unit: "milliseconds" }, { value: 100, unit: "milliseconds" }, s.sf),
58
+ i({ value: 10, unit: "milliseconds" }, { value: 200, unit: "milliseconds" }, s.sf),
59
+ i({ value: 20, unit: "milliseconds" }, { value: 500, unit: "milliseconds" }, s.sf),
60
+ i({ value: 50, unit: "milliseconds" }, { value: 1, unit: "seconds" }, s.s),
61
+ i({ value: 100, unit: "milliseconds" }, { value: 2, unit: "seconds" }, s.s),
62
+ i({ value: 200, unit: "milliseconds" }, { value: 5, unit: "seconds" }, s.s),
63
+ i({ value: 500, unit: "milliseconds" }, { value: 10, unit: "seconds" }, s.s),
64
+ i({ value: 1, unit: "seconds" }, { value: 20, unit: "seconds" }, s.ms),
65
+ i({ value: 2, unit: "seconds" }, { value: 30, unit: "seconds" }, s.ms),
66
+ i({ value: 5, unit: "seconds" }, { value: 1, unit: "minutes" }, s.mi),
67
+ i({ value: 10, unit: "seconds" }, { value: 2, unit: "minutes" }, s.mi),
68
+ i({ value: 20, unit: "seconds" }, { value: 5, unit: "minutes" }, s.mi),
69
+ i({ value: 40, unit: "seconds" }, { value: 10, unit: "minutes" }, s.mi),
70
+ i({ value: 1, unit: "minutes" }, { value: 30, unit: "minutes" }, s.hm),
71
+ i({ value: 2, unit: "minutes" }, { value: 1, unit: "hours" }, s.hm),
72
+ i({ value: 5, unit: "minutes" }, { value: 2, unit: "hours" }, s.hm),
73
+ i({ value: 10, unit: "minutes" }, { value: 4, unit: "hours" }, s.hm),
74
+ i({ value: 20, unit: "minutes" }, { value: 8, unit: "hours" }, s.hm),
75
+ i({ value: 40, unit: "minutes" }, { value: 1, unit: "days" }, s.dm),
76
+ i({ value: 1, unit: "hours" }, { value: 1, unit: "days" }, s.dm),
77
+ i({ value: 2, unit: "hours" }, { value: 2, unit: "days" }, s.dm),
78
+ i({ value: 5, unit: "hours" }, { value: 4, unit: "days" }, s.dm),
79
+ i({ value: 10, unit: "hours" }, { value: 10, unit: "days" }, s.dm),
80
+ i({ value: 20, unit: "hours" }, { value: 15, unit: "days" }, s.dm),
81
+ i({ value: 1, unit: "days" }, { value: 20, unit: "days" }, s.dm),
82
+ i({ value: 2, unit: "days" }, { value: 1, unit: "months" }, s.m),
83
+ i({ value: 5, unit: "days" }, { value: 3, unit: "months" }, s.m),
84
+ i({ value: 10, unit: "days" }, { value: 6, unit: "months" }, s.my),
85
+ i({ value: 20, unit: "days" }, { value: 1, unit: "years" }, s.y),
86
+ i({ value: 1, unit: "months" }, { value: 2, unit: "years" }, s.y),
87
+ i({ value: 2, unit: "months" }, { value: 4, unit: "years" }, s.y),
88
+ i({ value: 5, unit: "months" }, { value: 10, unit: "years" }, s.y),
89
+ i({ value: 1, unit: "years" }, { value: 20, unit: "years" }, s.y),
90
+ i({ value: 2, unit: "years" }, { value: 50, unit: "years" }, s.y),
91
+ i({ value: 5, unit: "years" }, { value: 100, unit: "years" }, s.y),
92
+ i({ value: 10, unit: "years" }, { value: 200, unit: "years" }, s.y),
93
+ i({ value: 20, unit: "years" }, { value: 500, unit: "years" }, s.y),
94
+ i({ value: 50, unit: "years" }, { value: 1e3, unit: "years" }, s.y),
95
+ i({ value: 1, unit: "centuries" }, { value: 20, unit: "centuries" }, s.y),
96
+ i({ value: 2, unit: "centuries" }, { value: 50, unit: "centuries" }, s.y),
97
+ i({ value: 5, unit: "centuries" }, { value: 100, unit: "centuries" }, s.y),
98
+ i({ value: 10, unit: "centuries" }, { value: 200, unit: "centuries" }, s.y),
99
+ i({ value: 20, unit: "centuries" }, { value: 500, unit: "centuries" }, s.y),
100
+ i({ value: 50, unit: "centuries" }, { value: 1e3, unit: "centuries" }, s.y),
101
+ i({ value: 100, unit: "centuries" }, { value: 2e3, unit: "centuries" }, s.y),
102
+ i({ value: 200, unit: "centuries" }, { value: 5e3, unit: "centuries" }, s.y),
103
+ i({ value: 500, unit: "centuries" }, { value: 1e4, unit: "centuries" }, s.y),
104
+ i({ value: 1e3, unit: "centuries" }, { value: 2e4, unit: "centuries" }, s.y)
105
+ ];
106
+ function xt(t) {
107
+ return wt.map(({ minorTick: e, majorTick: n, majorTickFormat: a }, u) => {
108
+ const c = new k(e), f = new k(n), m = c.toMilliseconds(), g = {
109
+ ...a,
110
+ timeZone: t
111
+ };
112
+ return { minor: c, major: f, duration: m, format: g, index: u };
113
+ });
114
+ }
115
+ var _t = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, N = (t) => {
116
+ throw TypeError(t);
117
+ }, r = (t, e, n, a) => {
118
+ for (var u = a > 1 ? void 0 : a ? Et(e, n) : e, c = t.length - 1, f; c >= 0; c--)
119
+ (f = t[c]) && (u = (a ? f(e, n, u) : f(u)) || u);
120
+ return a && u && _t(e, n, u), u;
121
+ }, j = (t, e, n) => e.has(t) || N("Cannot " + n), M = (t, e, n) => (j(t, e, "read from private field"), n ? n.call(t) : e.get(t)), R = (t, e, n) => e.has(t) ? N("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), p = (t, e, n) => (j(t, e, "access private method"), n), _, h, D, $, E, b, P;
122
+ let o = class extends z {
123
+ constructor() {
124
+ super(...arguments), R(this, h), R(this, _, new AbortController()), this.disabled = !1, this.format = "date", this.loadPersistedSettingsDisabled = !1, this.loop = !1, this.mode = "time-window", this.savePersistedSettingsDisabled = !1, this.stops = J;
125
+ }
126
+ get _adjustedMajorTickFormat() {
127
+ const { era: t, timeZone: e } = this;
128
+ return {
129
+ ...this.majorTickFormat,
130
+ era: this.majorTickFormat?.year ? t : void 0,
131
+ timeZone: e
132
+ };
133
+ }
134
+ get _dateFormat() {
135
+ const { era: t, timeZone: e } = this;
136
+ return { ...T("short-date"), era: t, timeZone: e };
137
+ }
138
+ get _dateTimeFormat() {
139
+ const { era: t, timeZone: e } = this;
140
+ return {
141
+ ...T("short-date"),
142
+ ...T("long-time"),
143
+ era: t,
144
+ timeZone: e
145
+ };
146
+ }
147
+ get _thumbPositions() {
148
+ if (!this.timeExtent || this.timeExtent.isAllTime || this.timeExtent.isEmpty)
149
+ return null;
150
+ const { start: t, end: e } = this.timeExtent;
151
+ switch (this.mode) {
152
+ case "cumulative-from-end":
153
+ case "instant":
154
+ return t ? [t.getTime()] : null;
155
+ case "cumulative-from-start":
156
+ return e ? [e.getTime()] : null;
157
+ case "time-window":
158
+ return t && e ? [t.getTime(), e.getTime()] : null;
159
+ }
160
+ }
161
+ get _timeFormat() {
162
+ const { timeZone: t } = this;
163
+ return { ...T("long-time"), timeZone: t };
164
+ }
165
+ get effectiveStops() {
166
+ const { fullTimeExtent: t, stops: e } = this;
167
+ if (!e)
168
+ return;
169
+ if (F(e)) {
170
+ const { dates: a } = e;
171
+ if (!a?.length)
172
+ return;
173
+ const u = a.sort((y, d) => y.getTime() - d.getTime());
174
+ if (!t?.start || !t?.end)
175
+ return u;
176
+ const { start: c, end: f } = t, m = c.getTime(), g = f.getTime();
177
+ return u.filter((y) => {
178
+ const d = y.getTime();
179
+ return d >= m && d <= g;
180
+ });
181
+ }
182
+ const n = e.timeExtent ?? t;
183
+ if (n)
184
+ return C(e) ? K(n, e.count) : Q(n, e.interval);
185
+ }
186
+ get effectiveStopsEpoch() {
187
+ return this.effectiveStops?.map((t) => t.getTime());
188
+ }
189
+ get era() {
190
+ return (this.fullTimeExtent?.start?.getFullYear() ?? 0) < 0 ? "short" : void 0;
191
+ }
192
+ get interactive() {
193
+ return !(this.disabled || this.state === "disabled");
194
+ }
195
+ get isOutOfRange() {
196
+ const { timeExtent: t, fullTimeExtent: e } = this, { start: n, end: a } = e ?? {};
197
+ if (!n || !a || !t || t.isAllTime || t.isEmpty)
198
+ return !0;
199
+ const { start: u, end: c } = t ?? {}, f = u != null && (u < n || u > a), m = c != null && (c > a || c < n);
200
+ return f || m;
201
+ }
202
+ get majorTickFormatter() {
203
+ return (t) => this._formatDate(t, this._adjustedMajorTickFormat);
204
+ }
205
+ set playRate(t) {
206
+ t <= 0 || t > 1e3 * 60 * 60 || (this.state === "playing" && p(this, h, $).call(this), this._set("playRate", t));
207
+ }
208
+ get state() {
209
+ return this.fullTimeExtent ? this._animationController ? "playing" : "ready" : "disabled";
210
+ }
211
+ get tickFormats() {
212
+ return xt(this.timeZone);
213
+ }
214
+ get timeZone() {
215
+ return this._userTimeZone ?? this.viewTimeZone ?? it;
216
+ }
217
+ set timeZone(t) {
218
+ this._userTimeZone = t ?? void 0;
219
+ }
220
+ get viewTimeZone() {
221
+ return this.view?.type === "2d" ? this.view.timeZone : void 0;
222
+ }
223
+ //#endregion
224
+ //#region Public Methods
225
+ destroy() {
226
+ M(this, _).abort(), this.view?.unregisterComponent(this), p(this, h, b).call(this);
227
+ }
228
+ formatDate(t) {
229
+ return this._formatDate(t, this._dateFormat);
230
+ }
231
+ formatDateTime(t) {
232
+ return this._formatDate(t, this._dateTimeFormat);
233
+ }
234
+ formatNumber(t, e) {
235
+ return this._formatNumber(t, e);
236
+ }
237
+ formatTime(t) {
238
+ return this._formatDate(t, this._timeFormat);
239
+ }
240
+ getTickValues(t) {
241
+ const { fullTimeExtent: e, timeZone: n } = this;
242
+ if (!e)
243
+ return [];
244
+ const { start: a, end: u } = e;
245
+ return !a || !u ? [] : X(a, u, t, n).map((f) => f.getTime());
246
+ }
247
+ async initialize() {
248
+ this.addHandles([
249
+ /* This watch is used to initialize the timeExtent when the effectiveStops are first computed. */
250
+ w(
251
+ () => this.effectiveStops,
252
+ (t) => {
253
+ t && (this.timeExtent ??= Z(t, this.mode));
254
+ },
255
+ { initial: !0 }
256
+ ),
257
+ /* Apply component timeExtent to the view (when it changes) */
258
+ w(
259
+ () => this.timeExtent,
260
+ (t) => {
261
+ !this.view || this.view.timeExtent && t?.equals(this.view.timeExtent) || (!t || t.isAllTime) && (!this.view.timeExtent || this.view.timeExtent.isAllTime) || (this.view.timeExtent = t);
262
+ },
263
+ { initial: !0 }
264
+ ),
265
+ /* Apply the view's timeExtent to the component but only when the view changes. */
266
+ w(
267
+ () => this.view,
268
+ (t) => {
269
+ t?.timeExtent && (this.timeExtent = t.timeExtent);
270
+ }
271
+ ),
272
+ w(
273
+ () => this.view,
274
+ (t, e) => {
275
+ e?.unregisterComponent(this), t?.registerComponent(this);
276
+ },
277
+ { initial: !0, sync: !0 }
278
+ ),
279
+ /* Apply the view's timeExtent to the component. */
280
+ w(
281
+ () => this.view?.timeExtent,
282
+ (t) => {
283
+ !t || t.equals(this.timeExtent) || t.isAllTime && (!this.timeExtent || this.timeExtent.isAllTime) || (this.timeExtent = t ?? void 0);
284
+ }
285
+ ),
286
+ w(
287
+ () => this.mode,
288
+ (t) => {
289
+ if (!(!this.timeExtent || this.timeExtent.isAllTime || this.timeExtent.isEmpty || !this.fullTimeExtent?.start || !this.fullTimeExtent.end))
290
+ switch (t) {
291
+ case "time-window":
292
+ this.timeExtent = new x({
293
+ start: this.timeExtent.start ?? this.timeExtent.end,
294
+ end: this.timeExtent.end ?? this.timeExtent.start
295
+ });
296
+ break;
297
+ case "cumulative-from-start":
298
+ this.timeExtent = new x({ start: null, end: this.timeExtent.end ?? this.timeExtent.start });
299
+ break;
300
+ case "cumulative-from-end":
301
+ this.timeExtent = new x({ start: this.timeExtent.start ?? this.timeExtent.end, end: null });
302
+ break;
303
+ case "instant":
304
+ this.timeExtent = new x({
305
+ start: this.timeExtent.start ?? this.timeExtent.end,
306
+ end: this.timeExtent.start ?? this.timeExtent.end
307
+ });
308
+ break;
309
+ }
310
+ }
311
+ )
312
+ ]), await G(
313
+ (async () => {
314
+ if (await O(() => this.view?.ready, { signal: M(this, _).signal }), this.loadPersistedSettingsDisabled)
315
+ return;
316
+ const t = await st(
317
+ this.view?.map,
318
+ M(this, _).signal
319
+ );
320
+ t && (this.fullTimeExtent = t.fullTimeExtent ?? void 0, this.loop = t.loop, this.mode = t.mode, this.playRate = t.playRate, this.stops = t.stops ?? void 0, this.timeExtent = t.timeExtent ?? void 0);
321
+ })()
322
+ );
323
+ }
324
+ next() {
325
+ p(this, h, E).call(this, { forward: !0, allowRestart: !1 });
326
+ }
327
+ play() {
328
+ p(this, h, $).call(this);
329
+ }
330
+ previous() {
331
+ p(this, h, E).call(this, { forward: !1, allowRestart: !1 });
332
+ }
333
+ stop() {
334
+ p(this, h, b).call(this);
335
+ }
336
+ updateWebDocument(t) {
337
+ if (this.savePersistedSettingsDisabled)
338
+ return;
339
+ const e = new q({
340
+ currentTimeExtent: this.timeExtent,
341
+ fullTimeExtent: this.fullTimeExtent,
342
+ loop: this.loop,
343
+ numStops: C(this.stops) ? this.stops.count : null,
344
+ numThumbs: this.mode === "time-window" ? 2 : 1,
345
+ stopDelay: this.playRate,
346
+ stopInterval: tt(this.stops) ? this.stops.interval : null,
347
+ stops: F(this.stops) ? this.stops.dates : null
348
+ });
349
+ t.widgets ??= new H(), t.widgets.timeSlider = e;
350
+ }
351
+ _formatDate(t, e) {
352
+ return ft({ locale: this.locale, formatOptions: e }).format(t);
353
+ }
354
+ _formatNumber(t, e) {
355
+ return gt({ locale: this.locale, formatOptions: e }).format(t);
356
+ }
357
+ //#endregion
358
+ };
359
+ _ = /* @__PURE__ */ new WeakMap();
360
+ h = /* @__PURE__ */ new WeakSet();
361
+ D = async function() {
362
+ try {
363
+ const { view: t } = this, e = this._animationController?.signal;
364
+ await Promise.all([L(this.playRate, e), t && O(() => !t.updating, e)]);
365
+ } catch (t) {
366
+ U(t) || nt("error", "arcgis-slider-time", "animation error", { detail: { error: t } }), this._animationController = void 0;
367
+ return;
368
+ }
369
+ p(this, h, E).call(this, { forward: !0, allowRestart: !1 }), this._animationController && p(this, h, D).call(this);
370
+ };
371
+ $ = function() {
372
+ p(this, h, b).call(this), this._animationController = new AbortController(), p(this, h, E).call(this, { forward: !0, allowRestart: !0 }), p(this, h, D).call(this);
373
+ };
374
+ E = function({ forward: t, allowRestart: e }) {
375
+ const { _thumbPositions: n, effectiveStopsEpoch: a } = this;
376
+ if (!n || !a)
377
+ return;
378
+ const u = n.map((m) => {
379
+ const g = a.indexOf(m);
380
+ if (g !== -1)
381
+ return g;
382
+ const S = a.reduce(
383
+ (y, d) => Math.abs(d - m) < Math.abs(y - m) ? d : y
384
+ );
385
+ return a.indexOf(S);
386
+ }), c = u.map((m) => m += t ? 1 : -1);
387
+ if (c.some((m) => m < 0 || m > a.length - 1))
388
+ if (this.loop || e) {
389
+ const m = Math.min(...u), g = Math.max(...u), y = (t ? u.map((d) => d - m) : u.map((d) => d + (a.length - 1 - g))).map((d) => a[d]);
390
+ this.timeExtent = p(this, h, P).call(this, y);
391
+ } else
392
+ this.state === "playing" && this.stop();
393
+ else {
394
+ const m = c.map((g) => a[g]);
395
+ this.timeExtent = p(this, h, P).call(this, m);
396
+ }
397
+ };
398
+ b = function() {
399
+ this._animationController?.abort(), this._animationController = void 0;
400
+ };
401
+ P = function(t) {
402
+ if (!t)
403
+ return;
404
+ const e = [...t].sort((n, a) => n - a).map((n) => new Date(n));
405
+ return Z(e, this.mode);
406
+ };
407
+ r([
408
+ l()
409
+ ], o.prototype, "_adjustedMajorTickFormat", 1);
410
+ r([
411
+ l()
412
+ ], o.prototype, "_animationController", 2);
413
+ r([
414
+ l()
415
+ ], o.prototype, "_dateFormat", 1);
416
+ r([
417
+ l()
418
+ ], o.prototype, "_dateTimeFormat", 1);
419
+ r([
420
+ l()
421
+ ], o.prototype, "_thumbPositions", 1);
422
+ r([
423
+ l()
424
+ ], o.prototype, "_timeFormat", 1);
425
+ r([
426
+ l()
427
+ ], o.prototype, "_userTimeZone", 2);
428
+ r([
429
+ l()
430
+ ], o.prototype, "disabled", 2);
431
+ r([
432
+ l()
433
+ ], o.prototype, "effectiveStops", 1);
434
+ r([
435
+ l()
436
+ ], o.prototype, "effectiveStopsEpoch", 1);
437
+ r([
438
+ l()
439
+ ], o.prototype, "era", 1);
440
+ r([
441
+ l()
442
+ ], o.prototype, "format", 2);
443
+ r([
444
+ l({ type: x })
445
+ ], o.prototype, "fullTimeExtent", 2);
446
+ r([
447
+ l()
448
+ ], o.prototype, "interactive", 1);
449
+ r([
450
+ l()
451
+ ], o.prototype, "isOutOfRange", 1);
452
+ r([
453
+ l()
454
+ ], o.prototype, "loadPersistedSettingsDisabled", 2);
455
+ r([
456
+ l()
457
+ ], o.prototype, "locale", 2);
458
+ r([
459
+ l()
460
+ ], o.prototype, "loop", 2);
461
+ r([
462
+ l()
463
+ ], o.prototype, "majorTickFormat", 2);
464
+ r([
465
+ l()
466
+ ], o.prototype, "majorTickFormatter", 1);
467
+ r([
468
+ l()
469
+ ], o.prototype, "mode", 2);
470
+ r([
471
+ l({ value: 1e3 })
472
+ ], o.prototype, "playRate", 1);
473
+ r([
474
+ l()
475
+ ], o.prototype, "savePersistedSettingsDisabled", 2);
476
+ r([
477
+ l()
478
+ ], o.prototype, "state", 1);
479
+ r([
480
+ l({ cast: Y })
481
+ ], o.prototype, "stops", 2);
482
+ r([
483
+ l()
484
+ ], o.prototype, "tickFormats", 1);
485
+ r([
486
+ l({ type: x })
487
+ ], o.prototype, "timeExtent", 2);
488
+ r([
489
+ l()
490
+ ], o.prototype, "timeZone", 1);
491
+ r([
492
+ l()
493
+ ], o.prototype, "view", 2);
494
+ r([
495
+ l()
496
+ ], o.prototype, "viewTimeZone", 1);
497
+ o = r([
498
+ at("components.time-bar.TimeBarViewModel")
499
+ ], o);
500
+ const Tt = V`:host{box-shadow:var(--arcgis-internal-box-shadow, var(--calcite-shadow-sm));transition:max-height var(--calcite-internal-animation-timing-medium) ease-in-out}::slotted([slot="actions-end"]){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline-start:var(--calcite-spacing-sm)}.action-bar,.time-extent-group,.time-extent-group>slot{display:flex;flex:1 0 auto;place-items:center}.label{block-size:var(--calcite-size-fixed-xxxl);inline-size:175px}.settings{inline-size:calc(var(--arcgis-internal-panel-width) - 2 * var(--calcite-spacing-lg))}`, bt = mt(o);
501
+ class St extends ot {
502
+ constructor() {
503
+ super(...arguments), this._viewModel = bt(this), this.messages = dt({ name: "time-bar", blocking: !0 }), this.#t = lt(), this.#e = ct(), this.#i = (e) => {
504
+ this._settingsActionElement = e;
505
+ }, this.autoDestroyDisabled = !1, this.disabled = this._viewModel.disabled, this.effectiveStops = this._viewModel.effectiveStops, this.format = this._viewModel.format, this.fullTimeExtent = this._viewModel.fullTimeExtent, this.icon = "clock", this.loadPersistedSettingsDisabled = this._viewModel.loadPersistedSettingsDisabled, this.loop = this._viewModel.loop, this.mode = this._viewModel.mode, this.playRate = this._viewModel.playRate, this.savePersistedSettingsDisabled = this._viewModel.savePersistedSettingsDisabled, this.showNext = !1, this.showPlay = !1, this.showPrevious = !1, this.showSettings = !1, this.state = this._viewModel.state, this.stops = this._viewModel.stops, this.timeExtent = this._viewModel.timeExtent, this.timeZone = this._viewModel.timeZone, this.view = this._viewModel.view, this.arcgisPropertyChange = ht()("effectiveStops", "fullTimeExtent", "state", "timeExtent"), this.arcgisReady = rt();
506
+ }
507
+ static {
508
+ this.properties = { _settingsActionElement: 16, autoDestroyDisabled: 5, disabled: 5, effectiveStops: 32, format: 1, fullTimeExtent: 0, icon: 1, label: 1, loadPersistedSettingsDisabled: 5, loop: 5, messageOverrides: 0, mode: 1, playRate: 9, referenceElement: 1, savePersistedSettingsDisabled: 5, showNext: 5, showPlay: 5, showPrevious: 5, showSettings: 5, state: 32, stops: 0, timeExtent: 0, timeZone: 1, view: 0 };
509
+ }
510
+ static {
511
+ this.styles = Tt;
512
+ }
513
+ #t;
514
+ #e;
515
+ #i;
516
+ async applyTimeSliderSettings(e) {
517
+ this._viewModel.set(e);
518
+ }
519
+ async destroy() {
520
+ await this.manager.destroy();
521
+ }
522
+ async next() {
523
+ this._viewModel.next();
524
+ }
525
+ async play() {
526
+ this._viewModel.play();
527
+ }
528
+ async previous() {
529
+ this._viewModel.previous();
530
+ }
531
+ async stop() {
532
+ this._viewModel.stop();
533
+ }
534
+ async updateWebDocument(e) {
535
+ this._viewModel.updateWebDocument(e);
536
+ }
537
+ willUpdate(e) {
538
+ e.has("messages") && (this._viewModel.locale = this.messages._lang);
539
+ }
540
+ #m(e) {
541
+ const { currentTarget: n } = e, a = (
542
+ // prioritizes slotted element (if it exists)
543
+ ut(n).at(0) ?? // fallback to default label
544
+ n.querySelector("arcgis-time-bar-extent")
545
+ );
546
+ a && (a.viewModel = this._viewModel);
547
+ }
548
+ async #c() {
549
+ switch (this.state) {
550
+ case "disabled":
551
+ case "playing":
552
+ return await this.stop();
553
+ case "ready":
554
+ return await this.play();
555
+ }
556
+ }
557
+ render() {
558
+ return v`<div role=presentation><calcite-action-bar class="action-bar" layout=horizontal expand-disabled floating>${this.#e === "ltr" ? v`${this.#n()}${this.#u()}${this.#l()}${this.#s()}` : v`${this.#l()}${this.#u()}${this.#n()}${this.#s()}`}</calcite-action-bar></div>`;
559
+ }
560
+ #s() {
561
+ return v`<slot name=actions-end slot=actions-end></slot>`;
562
+ }
563
+ #n() {
564
+ return this.showPrevious || this.showPlay || this.showNext ? v`<calcite-action-group>${this.#e === "ltr" ? v`${this.#o()}${this.#r()}${this.#a()}` : v`${this.#a()}${this.#r()}${this.#o()}`}</calcite-action-group>` : null;
565
+ }
566
+ #a() {
567
+ return this.showNext ? v`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing"} icon=forward @click=${this.next} .text=${this.messages.next}></calcite-action>` : null;
568
+ }
569
+ #o() {
570
+ return this.showPlay ? v`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length} .icon=${this.state === "playing" ? "pause-f" : "play-f"} @click=${this.#c} .text=${this.state === "playing" ? this.messages.stop : this.messages.play}></calcite-action>` : null;
571
+ }
572
+ #r() {
573
+ return this.showPrevious ? v`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing"} icon=reverse @click=${this.previous} .text=${this.messages.previous}></calcite-action>` : null;
574
+ }
575
+ #l() {
576
+ return this.showSettings ? v`<calcite-action-group><calcite-action .disabled=${!this._viewModel.interactive} .text=${this.messages.settings} icon=sliders-horizontal ${A(this.#i)}></calcite-action>${this._settingsActionElement ? v`<calcite-popover auto-close .heading=${this.messages.timeBarSettings} .label=${this.messages.timeBarSettings} .referenceElement=${this._settingsActionElement} @calcitePopoverClose=${() => {
577
+ this.#t.value?.navigateToOverview();
578
+ }} overlay-positioning=fixed><slot name=settings><arcgis-time-bar-settings class="settings" .messages=${this.messages} .viewModel=${this._viewModel} ${A(this.#t)}></arcgis-time-bar-settings></slot></calcite-popover>` : void 0}</calcite-action-group>` : null;
579
+ }
580
+ #u() {
581
+ return v`<calcite-action-group class="time-extent-group"><slot name=time-extent @slotchange=${this.#m}><arcgis-time-bar-extent class="label" .viewModel=${this._viewModel}></arcgis-time-bar-extent></slot></calcite-action-group>`;
582
+ }
583
+ }
584
+ W("arcgis-time-bar", St);
585
+ export {
586
+ St as ArcgisTimeBar
587
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,7 @@
1
+ import "@esri/calcite-components/components/calcite-action-bar";
2
+ import "@esri/calcite-components/components/calcite-action-group";
3
+ import "@esri/calcite-components/components/calcite-action";
4
+ import "@esri/calcite-components/components/calcite-popover";
5
+ import "../arcgis-time-bar-settings/index.js";
6
+ import "../arcgis-time-bar-extent/index.js";
7
+ export * from "./customElement.js";
@@ -0,0 +1,45 @@
1
+ import type TimeExtent from "@arcgis/core/time/TimeExtent.js";
2
+ import type TimeInterval from "@arcgis/core/time/TimeInterval.js";
3
+ import type { DateTimeFormatOptions } from "@arcgis/core/intl/date.js";
4
+
5
+ /** Defines the different formats for displaying time in the time bar component. */
6
+ export type Format = "date-time" | "date";
7
+
8
+ /** Defines the different modes of the time slider component. */
9
+ export type Mode = "cumulative-from-end" | "cumulative-from-start" | "instant" | "time-window";
10
+
11
+ /** Defines the different states of the time bar component. */
12
+ export type State = "disabled" | "playing" | "ready";
13
+
14
+ /** Stops are positioned at specific dates. */
15
+ export interface StopsByDates {
16
+ dates: Date[];
17
+ }
18
+
19
+ /** Stops are positioned at regular intervals defined by a [time interval](https://developers.arcgis.com/javascript/latest/references/core/time/TimeInterval). */
20
+ export interface StopsByInterval {
21
+ /** The interval at which stops will be created. */
22
+ interval: TimeInterval;
23
+ /** The time extent over which the stops will be distributed. */
24
+ timeExtent?: TimeExtent;
25
+ }
26
+
27
+ /**
28
+ * Stops are positioned at a specific number of evenly spaced locations along the time slider.
29
+ * The exact positions of the stops will be calculated based on the provided count and the time extent of the slider.
30
+ */
31
+ export interface StopsByCount {
32
+ /** The number of stops to create along the time slider. */
33
+ count: number;
34
+ /** The time extent over which the stops will be distributed. */
35
+ timeExtent?: TimeExtent;
36
+ }
37
+
38
+ export type Stops = StopsByCount | StopsByDates | StopsByInterval;
39
+
40
+ export interface TickFormat {
41
+ duration: number;
42
+ format: DateTimeFormatOptions;
43
+ major: TimeInterval;
44
+ minor: TimeInterval;
45
+ }
@@ -0,0 +1,37 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as l } from "../../chunks/runtime.js";
3
+ import { css as n, html as i } from "lit";
4
+ import { LitElement as c, safeClassMap as r } from "@arcgis/lumina";
5
+ const d = n`:host{block-size:auto;display:inline-grid;inline-size:max-content}.align-center{justify-items:center}.align-end{justify-items:end}.align-start{justify-items:start}.date{font-weight:var(--calcite-font-weight-bold)}.disabled{opacity:var(--calcite-opacity-disabled)}.table-date,.table-date-time{align-content:center;align-items:center;display:grid;grid-template-columns:1fr}.table-date{grid-template-rows:var(--calcite-font-size-sm)}.table-date-time{grid-template-rows:var(--calcite-font-size-sm) var(--calcite-font-size-sm)}.time{font-weight:var(--calcite-font-weight-normal)}`;
6
+ class o extends c {
7
+ constructor() {
8
+ super(...arguments), this.align = "center", this.autoDestroyDisabled = !1;
9
+ }
10
+ static {
11
+ this.properties = { align: 1, autoDestroyDisabled: 5, date: 0, viewModel: 0 };
12
+ }
13
+ static {
14
+ this.styles = d;
15
+ }
16
+ async destroy() {
17
+ await this.manager.destroy();
18
+ }
19
+ render() {
20
+ const { align: a, date: e, viewModel: t } = this;
21
+ if (!t)
22
+ return null;
23
+ const { disabled: s } = t;
24
+ if (!e)
25
+ return i`<div class=${r({ "table-date": !0, [`align-${a}`]: !0, disabled: s })}><span class="date">\u221E</span></div>`;
26
+ switch (t.format) {
27
+ case "date":
28
+ return i`<div class=${r({ "table-date": !0, [`align-${a}`]: !0, disabled: s })}><span class="date">${t.formatDate(e)}</span></div>`;
29
+ case "date-time":
30
+ return i`<div class=${r({ "table-date-time": !0, [`align-${a}`]: !0, disabled: s })}><span class="date">${t.formatDate(e)}</span><span class="time">${t.formatTime(e)}</span></div>`;
31
+ }
32
+ }
33
+ }
34
+ l("arcgis-time-bar-date", o);
35
+ export {
36
+ o as ArcgisTimeBarDate
37
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";