@nasa-terra/components 0.0.165 → 0.0.167

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 (1274) hide show
  1. package/cdn/chunks/chunk.22JAM2GR.js +149 -0
  2. package/cdn/chunks/chunk.2KSTLEEW.js +19 -0
  3. package/cdn/chunks/chunk.2MOKVZJ5.js +110 -0
  4. package/cdn/chunks/chunk.2MRTLI7C.js +29 -0
  5. package/cdn/chunks/chunk.2OYHOPUN.js +29 -0
  6. package/cdn/chunks/chunk.2W6MOIKV.js +36 -0
  7. package/cdn/chunks/chunk.2ZAILZIZ.js +29 -0
  8. package/cdn/chunks/chunk.34GKSDDH.js +29 -0
  9. package/cdn/chunks/chunk.35NWYWPA.js +610 -0
  10. package/cdn/chunks/chunk.3DZICDY5.js +19 -0
  11. package/cdn/chunks/chunk.3EEC7I6T.js +77 -0
  12. package/cdn/chunks/chunk.3HQ5B2XG.js +60 -0
  13. package/cdn/chunks/chunk.3KF4JV5X.js +19 -0
  14. package/cdn/chunks/chunk.3OCLA6PR.js +113 -0
  15. package/cdn/chunks/chunk.3PYSUHMX.js +74 -0
  16. package/cdn/chunks/chunk.3RYHRIU7.js +47 -0
  17. package/cdn/chunks/chunk.3T7254VH.js +1002 -0
  18. package/cdn/chunks/chunk.3X2FJVEK.js +99 -0
  19. package/cdn/chunks/chunk.3YIIQKB4.js +29 -0
  20. package/cdn/chunks/chunk.4E526L3E.js +29 -0
  21. package/cdn/chunks/chunk.4JULN6G5.js +29 -0
  22. package/cdn/chunks/chunk.56M3T4SS.js +19 -0
  23. package/cdn/chunks/chunk.5RFPNO6G.js +19 -0
  24. package/cdn/chunks/chunk.5RYT4QNM.js +157 -0
  25. package/cdn/chunks/chunk.5VTC5O3H.js +29 -0
  26. package/cdn/chunks/chunk.5XLABLQB.js +276 -0
  27. package/cdn/chunks/chunk.66SSQP45.js +19 -0
  28. package/cdn/chunks/chunk.67XHQN22.js +19 -0
  29. package/cdn/chunks/chunk.6JBKCS52.js +83 -0
  30. package/cdn/chunks/chunk.6JIAMAMY.js +29 -0
  31. package/cdn/chunks/chunk.6TBKK4LM.js +493 -0
  32. package/cdn/chunks/chunk.6Y4YTK5P.js +238 -0
  33. package/cdn/chunks/chunk.77XDQUES.js +19 -0
  34. package/cdn/chunks/chunk.7FSPBN74.js +99 -0
  35. package/cdn/chunks/chunk.7PS6V6WS.js +1966 -0
  36. package/cdn/chunks/chunk.7SUZRUNK.js +19 -0
  37. package/cdn/chunks/chunk.7T52ILDL.js +599 -0
  38. package/cdn/chunks/chunk.7VUN6GFK.js +29 -0
  39. package/cdn/chunks/chunk.AFC2HLIY.js +19 -0
  40. package/cdn/chunks/chunk.AOBU6O57.js +990 -0
  41. package/cdn/chunks/chunk.AQ3JLCWN.js +165 -0
  42. package/cdn/chunks/chunk.ATCGQBQH.js +19 -0
  43. package/cdn/chunks/chunk.B3EEU2CI.js +29 -0
  44. package/cdn/chunks/chunk.B4TQIGEX.js +19 -0
  45. package/cdn/chunks/chunk.B526UDNH.js +29 -0
  46. package/cdn/chunks/chunk.BFVSGVAT.js +19 -0
  47. package/cdn/chunks/chunk.BJF5R6JW.js +190 -0
  48. package/cdn/chunks/chunk.BMK7DPMC.js +19 -0
  49. package/cdn/chunks/chunk.BNPVRBVC.js +123 -0
  50. package/cdn/chunks/chunk.BPUKB6TK.js +29 -0
  51. package/cdn/chunks/chunk.BRIHWEDS.js +29 -0
  52. package/cdn/chunks/chunk.BUGYJIDA.js +29 -0
  53. package/cdn/chunks/chunk.BY3XMPVV.js +731 -0
  54. package/cdn/chunks/chunk.C4QTAT3W.js +32 -0
  55. package/cdn/chunks/chunk.C7BHHMPD.js +29 -0
  56. package/cdn/chunks/chunk.CCYPCKYP.js +29 -0
  57. package/cdn/chunks/chunk.CE7S2HSD.js +19 -0
  58. package/cdn/chunks/chunk.CHP6L4IZ.js +29 -0
  59. package/cdn/chunks/chunk.CNFKSV5Y.js +41 -0
  60. package/cdn/chunks/chunk.CNQ5DP2Y.js +19 -0
  61. package/cdn/chunks/chunk.CR32YRI3.js +32 -0
  62. package/cdn/chunks/chunk.CV3BFVNC.js +224 -0
  63. package/cdn/chunks/chunk.DBV4CPVA.js +93 -0
  64. package/cdn/chunks/chunk.DKXKWPJK.js +189 -0
  65. package/cdn/chunks/chunk.DLQNZ2FX.js +201 -0
  66. package/cdn/chunks/chunk.DQKC3KIY.js +19 -0
  67. package/cdn/chunks/chunk.DVUHMHS7.js +77 -0
  68. package/cdn/chunks/chunk.DYNAESKX.js +32 -0
  69. package/cdn/chunks/chunk.DZJULA3U.js +33858 -0
  70. package/cdn/chunks/chunk.EEBXXJ5S.js +19 -0
  71. package/cdn/chunks/chunk.EGTBQ75C.js +279 -0
  72. package/cdn/chunks/chunk.ERLTY6RD.js +32 -0
  73. package/cdn/chunks/chunk.ERM35NF4.js +93 -0
  74. package/cdn/chunks/chunk.ESRB43Y5.js +616 -0
  75. package/cdn/chunks/chunk.F4EH5N56.js +33 -0
  76. package/cdn/chunks/chunk.FLBSTQ3K.js +19 -0
  77. package/cdn/chunks/chunk.FPAJGJR7.js +35 -0
  78. package/cdn/chunks/chunk.FQMP346K.js +19 -0
  79. package/cdn/chunks/chunk.FXITFED3.js +37 -0
  80. package/cdn/chunks/chunk.G6Z24R6Y.js +19 -0
  81. package/cdn/chunks/chunk.GCKUWBFX.js +477 -0
  82. package/cdn/chunks/chunk.GEBLYMYM.js +264 -0
  83. package/cdn/chunks/chunk.GN2ZQBKO.js +34 -0
  84. package/cdn/chunks/chunk.HFTGBEXB.js +188 -0
  85. package/cdn/chunks/chunk.HHPVOMGD.js +278 -0
  86. package/cdn/chunks/chunk.HPJ222W5.js +33 -0
  87. package/cdn/chunks/chunk.HV5AHGSZ.js +288 -0
  88. package/cdn/chunks/chunk.HXT3MQZB.js +86 -0
  89. package/cdn/chunks/chunk.HYTFGYES.js +524 -0
  90. package/cdn/chunks/chunk.HZLKJ66W.js +29 -0
  91. package/cdn/chunks/chunk.I6RAXH53.js +19 -0
  92. package/cdn/chunks/chunk.IJQLOBAC.js +132 -0
  93. package/cdn/chunks/chunk.ISYLWUTX.js +19 -0
  94. package/cdn/chunks/chunk.ITCNMUXT.js +56 -0
  95. package/cdn/chunks/chunk.IWVNVNRD.js +134 -0
  96. package/cdn/chunks/chunk.J3Z3NPJ4.js +134 -0
  97. package/cdn/chunks/chunk.J6VLXGTF.js +36 -0
  98. package/cdn/chunks/chunk.J7I3DOXG.js +272 -0
  99. package/cdn/chunks/chunk.JBRXER73.js +19 -0
  100. package/cdn/chunks/chunk.JGEML6NJ.js +30 -0
  101. package/cdn/chunks/chunk.JK27J74D.js +62 -0
  102. package/cdn/chunks/chunk.K7YIOV7T.js +19 -0
  103. package/cdn/chunks/chunk.KCZYTXMI.js +39 -0
  104. package/cdn/chunks/chunk.KD6G7ERX.js +68 -0
  105. package/cdn/chunks/chunk.KGCLCQ7X.js +60 -0
  106. package/cdn/chunks/chunk.KILIHVMF.js +32 -0
  107. package/cdn/chunks/chunk.KMCDDWE5.js +35 -0
  108. package/cdn/chunks/chunk.KU5FXVEU.js +19 -0
  109. package/cdn/chunks/chunk.KWBRNY25.js +19 -0
  110. package/cdn/chunks/chunk.KXBA6WIZ.js +904 -0
  111. package/cdn/chunks/chunk.L2NSE4OV.js +19 -0
  112. package/cdn/chunks/chunk.L4G7AM4D.js +19 -0
  113. package/cdn/chunks/chunk.LCNNIIGG.js +372 -0
  114. package/cdn/chunks/chunk.LE77IFIT.js +29 -0
  115. package/cdn/chunks/chunk.LJV444BY.js +19 -0
  116. package/cdn/chunks/chunk.LPUGYJQ6.js +19 -0
  117. package/cdn/chunks/chunk.MGD4I7TI.js +33 -0
  118. package/cdn/chunks/chunk.MGVK6RY6.js +19 -0
  119. package/cdn/chunks/chunk.MSKQVFVO.js +36 -0
  120. package/cdn/chunks/chunk.MYXC7VZK.js +19 -0
  121. package/cdn/chunks/chunk.N2ZLSKRS.js +19 -0
  122. package/cdn/chunks/chunk.N7Y6PI75.js +19 -0
  123. package/cdn/chunks/chunk.NBYFCLIA.js +230 -0
  124. package/cdn/chunks/chunk.NCSQNVLT.js +34 -0
  125. package/cdn/chunks/chunk.NKVAAAFV.js +19 -0
  126. package/cdn/chunks/chunk.NLM2F46S.js +37 -0
  127. package/cdn/chunks/chunk.NQ6WTKJ5.js +39 -0
  128. package/cdn/chunks/chunk.NRJZH24F.js +19 -0
  129. package/cdn/chunks/chunk.NT5A6ZHT.js +136 -0
  130. package/cdn/chunks/chunk.NYZK4RJY.js +19 -0
  131. package/cdn/chunks/chunk.O22V5PWM.js +35 -0
  132. package/cdn/chunks/chunk.O45AJCZN.js +32 -0
  133. package/cdn/chunks/chunk.O5BUI6HD.js +499 -0
  134. package/cdn/chunks/chunk.OBIYKNGD.js +36 -0
  135. package/cdn/chunks/chunk.OE32JNHX.js +2290 -0
  136. package/cdn/chunks/chunk.OE6QBUL3.js +151 -0
  137. package/cdn/chunks/chunk.OIBHUA2X.js +33 -0
  138. package/cdn/chunks/chunk.ONZYR5V7.js +19 -0
  139. package/cdn/chunks/chunk.OTBLJV2P.js +19 -0
  140. package/cdn/chunks/chunk.OWBCL4YY.js +92 -0
  141. package/cdn/chunks/chunk.OWOOYBL5.js +621 -0
  142. package/cdn/chunks/chunk.OYDCM6EP.js +19 -0
  143. package/cdn/chunks/chunk.P4OWV3H2.js +412 -0
  144. package/cdn/chunks/chunk.PLP3BQV2.js +29 -0
  145. package/cdn/chunks/chunk.PMUKNJQB.js +357 -0
  146. package/cdn/chunks/chunk.PUDKOG7O.js +19 -0
  147. package/cdn/chunks/chunk.PVPOTYBO.js +29 -0
  148. package/cdn/chunks/chunk.Q67OTTO2.js +145 -0
  149. package/cdn/chunks/chunk.QB7PKQGX.js +32 -0
  150. package/cdn/chunks/chunk.QHPWQ6EU.js +234 -0
  151. package/cdn/chunks/chunk.QIALAQUY.js +19 -0
  152. package/cdn/chunks/chunk.QMAOK6H7.js +287 -0
  153. package/cdn/chunks/chunk.QN47HJMJ.js +99 -0
  154. package/cdn/chunks/chunk.QPO4FJDV.js +19 -0
  155. package/cdn/chunks/chunk.QTCDR4K5.js +19 -0
  156. package/cdn/chunks/chunk.QZA56TJF.js +83 -0
  157. package/cdn/chunks/chunk.R2CKSIEB.js +302 -0
  158. package/cdn/chunks/chunk.R3ELIEXH.js +158 -0
  159. package/cdn/chunks/chunk.RESQSJZW.js +19 -0
  160. package/cdn/chunks/chunk.RLB5ZGN3.js +2243 -0
  161. package/cdn/chunks/chunk.RPIMP5VU.js +29 -0
  162. package/cdn/chunks/chunk.RRIBXI6T.js +662 -0
  163. package/cdn/chunks/chunk.RVVT6D2O.js +32 -0
  164. package/cdn/chunks/chunk.RWRHKJV7.js +29 -0
  165. package/cdn/chunks/chunk.S6HRHLBY.js +29 -0
  166. package/cdn/chunks/chunk.SBRPQN46.js +239 -0
  167. package/cdn/chunks/chunk.SBV4CE52.js +293 -0
  168. package/cdn/chunks/chunk.SCVPK7ZI.js +19 -0
  169. package/cdn/chunks/chunk.SGVXOEMD.js +359 -0
  170. package/cdn/chunks/chunk.SOL4KQRB.js +32 -0
  171. package/cdn/chunks/chunk.STIIRCSR.js +32 -0
  172. package/cdn/chunks/chunk.SVWVRXE5.js +19 -0
  173. package/cdn/chunks/chunk.T4EQTEDI.js +79 -0
  174. package/cdn/chunks/chunk.TAVW4BSX.js +231 -0
  175. package/cdn/chunks/chunk.TCVQUZH3.js +19 -0
  176. package/cdn/chunks/chunk.TGA7THVX.js +32 -0
  177. package/cdn/chunks/chunk.TLGXE7WV.js +52 -0
  178. package/cdn/chunks/chunk.TO3IZDTY.js +435 -0
  179. package/cdn/chunks/chunk.TU5LEWLH.js +78 -0
  180. package/cdn/chunks/chunk.UCYLBWS6.js +19 -0
  181. package/cdn/chunks/chunk.UGVKO2F3.js +29 -0
  182. package/cdn/chunks/chunk.UMXEOKQR.js +29 -0
  183. package/cdn/chunks/chunk.UQ3KQHGM.js +29 -0
  184. package/cdn/chunks/chunk.UXW4BGB3.js +35 -0
  185. package/cdn/chunks/chunk.UZO2S5ZV.js +55346 -0
  186. package/cdn/chunks/chunk.UZUUSYPD.js +19 -0
  187. package/cdn/chunks/chunk.V5RXILK4.js +19 -0
  188. package/cdn/chunks/chunk.VKGMZPCA.js +19 -0
  189. package/cdn/chunks/chunk.VMITYTMW.js +29 -0
  190. package/cdn/chunks/chunk.VOHWSUS6.js +19 -0
  191. package/cdn/chunks/chunk.VRFTM5EZ.js +33 -0
  192. package/cdn/chunks/chunk.VW4JRARC.js +19 -0
  193. package/cdn/chunks/chunk.W2L4LFHP.js +538 -0
  194. package/cdn/chunks/chunk.WIHIKDOO.js +19 -0
  195. package/cdn/chunks/chunk.WIVXANPA.js +1056 -0
  196. package/cdn/chunks/chunk.WJ4RUTUN.js +19 -0
  197. package/cdn/chunks/chunk.WUS3RA7A.js +259 -0
  198. package/cdn/chunks/chunk.XHDWZUS3.js +19 -0
  199. package/cdn/chunks/chunk.XXKZMY2K.js +19 -0
  200. package/cdn/chunks/chunk.XZVBKL46.js +104 -0
  201. package/cdn/chunks/chunk.YI5QUNXX.js +19 -0
  202. package/cdn/chunks/chunk.YIJM5IYA.js +32 -0
  203. package/cdn/chunks/chunk.YIYWTQKE.js +32 -0
  204. package/cdn/chunks/chunk.YLEDVKIQ.js +155 -0
  205. package/cdn/chunks/chunk.YQWDPYX2.js +71 -0
  206. package/cdn/chunks/chunk.YTZMHMX3.js +29 -0
  207. package/cdn/chunks/chunk.Z2DAFDC2.js +49 -0
  208. package/cdn/chunks/chunk.Z4LEEFSD.js +19 -0
  209. package/cdn/chunks/chunk.ZGA7FO7P.js +32 -0
  210. package/cdn/chunks/chunk.ZN6PR35U.js +106 -0
  211. package/cdn/components/accordion/accordion.component.js +5 -5
  212. package/cdn/components/accordion/accordion.js +6 -6
  213. package/cdn/components/alert/alert.component.js +3 -3
  214. package/cdn/components/alert/alert.js +4 -4
  215. package/cdn/components/avatar/avatar.component.js +7 -7
  216. package/cdn/components/avatar/avatar.js +8 -8
  217. package/cdn/components/badge/badge.component.js +2 -2
  218. package/cdn/components/badge/badge.js +3 -3
  219. package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
  220. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  221. package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
  222. package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
  223. package/cdn/components/browse-variables/browse-variables.component.js +18 -18
  224. package/cdn/components/browse-variables/browse-variables.controller.js +3 -3
  225. package/cdn/components/browse-variables/browse-variables.js +19 -19
  226. package/cdn/components/button/button.component.js +7 -7
  227. package/cdn/components/button/button.js +8 -8
  228. package/cdn/components/button-group/button-group.component.js +2 -2
  229. package/cdn/components/button-group/button-group.js +3 -3
  230. package/cdn/components/caption/caption.component.js +2 -2
  231. package/cdn/components/caption/caption.js +3 -3
  232. package/cdn/components/card/card.component.js +2 -2
  233. package/cdn/components/card/card.js +3 -3
  234. package/cdn/components/checkbox/checkbox.component.js +8 -8
  235. package/cdn/components/checkbox/checkbox.js +9 -9
  236. package/cdn/components/chip/chip.component.js +2 -2
  237. package/cdn/components/chip/chip.js +3 -3
  238. package/cdn/components/combobox/combobox.component.d.ts +4 -1
  239. package/cdn/components/combobox/combobox.component.js +6 -6
  240. package/cdn/components/combobox/combobox.js +7 -7
  241. package/cdn/components/data-access/data-access.component.d.ts +2 -0
  242. package/cdn/components/data-access/data-access.component.js +29 -27
  243. package/cdn/components/data-access/data-access.controller.js +3 -3
  244. package/cdn/components/data-access/data-access.js +30 -28
  245. package/cdn/components/data-grid/data-grid.component.js +5 -5
  246. package/cdn/components/data-grid/data-grid.js +6 -6
  247. package/cdn/components/data-rods/data-rods.component.js +38 -38
  248. package/cdn/components/data-rods/data-rods.js +39 -39
  249. package/cdn/components/data-subsetter/data-subsetter.component.d.ts +2 -1
  250. package/cdn/components/data-subsetter/data-subsetter.component.js +45 -45
  251. package/cdn/components/data-subsetter/data-subsetter.controller.d.ts +3 -1
  252. package/cdn/components/data-subsetter/data-subsetter.controller.js +3 -3
  253. package/cdn/components/data-subsetter/data-subsetter.js +46 -46
  254. package/cdn/components/data-subsetter/data-subsetter.styles.js +1 -1
  255. package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  256. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +46 -46
  257. package/cdn/components/data-subsetter-history/data-subsetter-history.js +47 -47
  258. package/cdn/components/date-picker/date-picker.component.d.ts +10 -0
  259. package/cdn/components/date-picker/date-picker.component.js +14 -14
  260. package/cdn/components/date-picker/date-picker.js +15 -15
  261. package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
  262. package/cdn/components/date-range-slider/date-range-slider.js +3 -3
  263. package/cdn/components/dialog/dialog.component.js +10 -10
  264. package/cdn/components/dialog/dialog.js +11 -11
  265. package/cdn/components/dialog/dialog.styles.js +1 -1
  266. package/cdn/components/divider/divider.component.js +2 -2
  267. package/cdn/components/divider/divider.js +3 -3
  268. package/cdn/components/dropdown/dropdown.component.js +3 -3
  269. package/cdn/components/dropdown/dropdown.js +4 -4
  270. package/cdn/components/earthdata-login/earthdata-login.component.js +15 -15
  271. package/cdn/components/earthdata-login/earthdata-login.js +16 -16
  272. package/cdn/components/file-upload/file-upload.component.js +2 -2
  273. package/cdn/components/file-upload/file-upload.js +3 -3
  274. package/cdn/components/icon/icon.component.js +3 -3
  275. package/cdn/components/icon/icon.js +4 -4
  276. package/cdn/components/input/input.component.js +8 -8
  277. package/cdn/components/input/input.js +9 -9
  278. package/cdn/components/loader/loader.component.js +2 -2
  279. package/cdn/components/loader/loader.js +3 -3
  280. package/cdn/components/login/login.component.js +12 -12
  281. package/cdn/components/login/login.js +13 -13
  282. package/cdn/components/map/leaflet-utils.d.ts +1 -1
  283. package/cdn/components/map/map.component.js +4 -4
  284. package/cdn/components/map/map.js +5 -5
  285. package/cdn/components/menu/menu.component.js +2 -2
  286. package/cdn/components/menu/menu.js +3 -3
  287. package/cdn/components/menu-item/menu-item.component.js +11 -11
  288. package/cdn/components/menu-item/menu-item.js +12 -12
  289. package/cdn/components/menu-item/submenu-controller.js +3 -3
  290. package/cdn/components/option/option.component.js +6 -6
  291. package/cdn/components/option/option.js +7 -7
  292. package/cdn/components/pagination/pagination.component.js +6 -6
  293. package/cdn/components/pagination/pagination.js +7 -7
  294. package/cdn/components/plot/plot.component.js +2 -2
  295. package/cdn/components/plot/plot.js +3 -3
  296. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  297. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  298. package/cdn/components/plot-toolbar/plot-toolbar.component.js +15 -15
  299. package/cdn/components/plot-toolbar/plot-toolbar.controller.js +3 -3
  300. package/cdn/components/plot-toolbar/plot-toolbar.js +16 -16
  301. package/cdn/components/popup/popup.component.js +2 -2
  302. package/cdn/components/popup/popup.js +3 -3
  303. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  304. package/cdn/components/progress-bar/progress-bar.js +3 -3
  305. package/cdn/components/radio/radio.component.js +4 -4
  306. package/cdn/components/radio/radio.js +5 -5
  307. package/cdn/components/radio-group/radio-group.component.js +2 -2
  308. package/cdn/components/radio-group/radio-group.js +3 -3
  309. package/cdn/components/scroll-hint/scroll-hint.component.js +4 -4
  310. package/cdn/components/scroll-hint/scroll-hint.js +5 -5
  311. package/cdn/components/select/select.component.js +10 -10
  312. package/cdn/components/select/select.js +11 -11
  313. package/cdn/components/site-header/site-header.component.js +5 -5
  314. package/cdn/components/site-header/site-header.js +5 -5
  315. package/cdn/components/site-navigation/site-navigation.component.js +2 -2
  316. package/cdn/components/site-navigation/site-navigation.js +2 -2
  317. package/cdn/components/skeleton/skeleton.component.js +2 -2
  318. package/cdn/components/skeleton/skeleton.js +3 -3
  319. package/cdn/components/slider/slider.component.js +2 -2
  320. package/cdn/components/slider/slider.js +3 -3
  321. package/cdn/components/spatial-picker/spatial-picker.component.js +15 -15
  322. package/cdn/components/spatial-picker/spatial-picker.js +16 -16
  323. package/cdn/components/status-indicator/status-indicator.component.js +2 -2
  324. package/cdn/components/status-indicator/status-indicator.js +3 -3
  325. package/cdn/components/stepper/stepper.component.js +2 -2
  326. package/cdn/components/stepper/stepper.js +3 -3
  327. package/cdn/components/stepper-step/stepper-step.component.js +6 -6
  328. package/cdn/components/stepper-step/stepper-step.js +7 -7
  329. package/cdn/components/tab/tab.component.js +6 -6
  330. package/cdn/components/tab/tab.js +7 -7
  331. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  332. package/cdn/components/tab-panel/tab-panel.js +3 -3
  333. package/cdn/components/tabs/tabs.component.js +6 -6
  334. package/cdn/components/tabs/tabs.js +7 -7
  335. package/cdn/components/tag/tag.component.js +6 -6
  336. package/cdn/components/tag/tag.js +7 -7
  337. package/cdn/components/textarea/textarea.component.js +4 -4
  338. package/cdn/components/textarea/textarea.js +5 -5
  339. package/cdn/components/time-average-map/time-average-map.component.js +24 -24
  340. package/cdn/components/time-average-map/time-average-map.js +25 -25
  341. package/cdn/components/time-series/time-series.component.js +23 -23
  342. package/cdn/components/time-series/time-series.js +24 -24
  343. package/cdn/components/toast/toast.component.js +4 -4
  344. package/cdn/components/toast/toast.js +5 -5
  345. package/cdn/components/toggle/toggle.component.js +4 -4
  346. package/cdn/components/toggle/toggle.js +5 -5
  347. package/cdn/components/tooltip/tooltip.component.js +3 -3
  348. package/cdn/components/tooltip/tooltip.js +4 -4
  349. package/cdn/components/variable-combobox/lib.js +3 -3
  350. package/cdn/components/variable-combobox/variable-combobox.component.d.ts +4 -1
  351. package/cdn/components/variable-combobox/variable-combobox.component.js +15 -15
  352. package/cdn/components/variable-combobox/variable-combobox.controller.js +4 -4
  353. package/cdn/components/variable-combobox/variable-combobox.js +16 -16
  354. package/cdn/components/variable-keyword-search/variable-keyword-search.component.d.ts +4 -1
  355. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +14 -14
  356. package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +3 -3
  357. package/cdn/components/variable-keyword-search/variable-keyword-search.js +15 -15
  358. package/cdn/custom-elements.json +2648 -2570
  359. package/cdn/internal/animate.d.ts +3 -3
  360. package/cdn/metadata-catalog/cmr-catalog.d.ts +2 -1
  361. package/cdn/metadata-catalog/queries.d.ts +1 -0
  362. package/cdn/metadata-catalog/types.d.ts +13 -0
  363. package/cdn/react/accordion/index.js +6 -6
  364. package/cdn/react/alert/index.js +4 -4
  365. package/cdn/react/avatar/index.js +8 -8
  366. package/cdn/react/badge/index.js +3 -3
  367. package/cdn/react/breadcrumb/index.js +3 -3
  368. package/cdn/react/breadcrumbs/index.js +3 -3
  369. package/cdn/react/browse-variables/index.js +19 -19
  370. package/cdn/react/button/index.js +8 -8
  371. package/cdn/react/button-group/index.js +3 -3
  372. package/cdn/react/caption/index.js +3 -3
  373. package/cdn/react/card/index.js +3 -3
  374. package/cdn/react/checkbox/index.js +9 -9
  375. package/cdn/react/chip/index.js +3 -3
  376. package/cdn/react/combobox/index.js +7 -7
  377. package/cdn/react/data-access/index.js +30 -28
  378. package/cdn/react/data-grid/index.js +6 -6
  379. package/cdn/react/data-rods/index.js +39 -39
  380. package/cdn/react/data-subsetter/index.js +46 -46
  381. package/cdn/react/data-subsetter-history/index.js +47 -47
  382. package/cdn/react/date-picker/index.js +15 -15
  383. package/cdn/react/date-range-slider/index.js +3 -3
  384. package/cdn/react/dialog/index.js +11 -11
  385. package/cdn/react/divider/index.js +3 -3
  386. package/cdn/react/dropdown/index.js +4 -4
  387. package/cdn/react/earthdata-login/index.js +16 -16
  388. package/cdn/react/file-upload/index.js +3 -3
  389. package/cdn/react/icon/index.js +4 -4
  390. package/cdn/react/index.d.ts +12 -12
  391. package/cdn/react/index.js +198 -198
  392. package/cdn/react/input/index.js +9 -9
  393. package/cdn/react/loader/index.js +3 -3
  394. package/cdn/react/login/index.js +13 -13
  395. package/cdn/react/map/index.js +5 -5
  396. package/cdn/react/menu/index.js +3 -3
  397. package/cdn/react/menu-item/index.js +12 -12
  398. package/cdn/react/option/index.js +7 -7
  399. package/cdn/react/pagination/index.js +7 -7
  400. package/cdn/react/plot/index.js +3 -3
  401. package/cdn/react/plot-toolbar/index.js +16 -16
  402. package/cdn/react/popup/index.js +3 -3
  403. package/cdn/react/progress-bar/index.js +3 -3
  404. package/cdn/react/radio/index.js +5 -5
  405. package/cdn/react/radio-group/index.js +3 -3
  406. package/cdn/react/scroll-hint/index.js +5 -5
  407. package/cdn/react/select/index.js +11 -11
  408. package/cdn/react/site-header/index.js +6 -6
  409. package/cdn/react/site-navigation/index.js +3 -3
  410. package/cdn/react/skeleton/index.js +3 -3
  411. package/cdn/react/slider/index.js +3 -3
  412. package/cdn/react/spatial-picker/index.js +16 -16
  413. package/cdn/react/status-indicator/index.js +3 -3
  414. package/cdn/react/stepper/index.js +3 -3
  415. package/cdn/react/stepper-step/index.js +7 -7
  416. package/cdn/react/tab/index.js +7 -7
  417. package/cdn/react/tab-panel/index.js +3 -3
  418. package/cdn/react/tabs/index.js +7 -7
  419. package/cdn/react/tag/index.js +7 -7
  420. package/cdn/react/textarea/index.js +5 -5
  421. package/cdn/react/time-average-map/index.js +25 -25
  422. package/cdn/react/time-series/index.js +24 -24
  423. package/cdn/react/toast/index.js +5 -5
  424. package/cdn/react/toggle/index.js +5 -5
  425. package/cdn/react/tooltip/index.js +4 -4
  426. package/cdn/react/variable-combobox/index.js +16 -16
  427. package/cdn/react/variable-keyword-search/index.js +15 -15
  428. package/cdn/terra-ui-components.js +186 -186
  429. package/cdn/types/vue/index.d.ts +695 -684
  430. package/cdn/utilities/mimetypes.d.ts +1 -1
  431. package/cdn/utilities/mimetypes.js +1 -1
  432. package/cdn/vscode.html-custom-data.json +343 -340
  433. package/cdn/web-types.json +1897 -1878
  434. package/dist/chunks/chunk.2HPCVNQL.js +21 -0
  435. package/dist/chunks/chunk.2OT2UXF4.js +11 -0
  436. package/dist/chunks/chunk.32NG2VNQ.js +11 -0
  437. package/dist/chunks/chunk.36JXOS6Y.js +21 -0
  438. package/dist/chunks/chunk.3CCSEGFN.js +21 -0
  439. package/dist/chunks/chunk.3GSDEVDN.js +52 -0
  440. package/dist/chunks/chunk.3JAVPASP.js +609 -0
  441. package/dist/chunks/chunk.3L4WRUGE.js +74 -0
  442. package/dist/chunks/chunk.3NOU5S4K.js +91 -0
  443. package/dist/chunks/chunk.3RMARKUW.js +24 -0
  444. package/dist/chunks/chunk.3SVUDGSO.js +11 -0
  445. package/dist/chunks/chunk.3WCZNEVP.js +52 -0
  446. package/dist/chunks/chunk.3XVU2CMW.js +25 -0
  447. package/dist/chunks/chunk.42RWQXVF.js +11 -0
  448. package/dist/chunks/chunk.44B2QB57.js +11 -0
  449. package/dist/chunks/chunk.44C2RMYG.js +345 -0
  450. package/dist/chunks/chunk.4KI6GHHX.js +11 -0
  451. package/dist/chunks/chunk.4TO6RQDT.js +11 -0
  452. package/dist/chunks/chunk.4UBHRRUU.js +220 -0
  453. package/dist/chunks/chunk.4YCY2DV3.js +21 -0
  454. package/dist/chunks/chunk.4YYCBOVI.js +11 -0
  455. package/dist/chunks/chunk.524NKNPG.js +39 -0
  456. package/dist/chunks/chunk.5EJAFKZ7.js +21 -0
  457. package/dist/chunks/chunk.5V4FAK7C.js +11 -0
  458. package/dist/chunks/chunk.5YSU3HL7.js +33 -0
  459. package/dist/chunks/chunk.64SWCNHI.js +262 -0
  460. package/dist/chunks/chunk.6AVQFT4P.js +48 -0
  461. package/dist/chunks/chunk.6ITSS4GH.js +11 -0
  462. package/dist/chunks/chunk.6KCKKNYD.js +48 -0
  463. package/dist/chunks/chunk.6QSTETYN.js +11 -0
  464. package/dist/chunks/chunk.6TW6DP7W.js +11 -0
  465. package/dist/chunks/chunk.74HB6B26.js +27 -0
  466. package/dist/chunks/chunk.7FZCDHMN.js +11 -0
  467. package/dist/chunks/chunk.7MXXFSLC.js +24 -0
  468. package/dist/chunks/chunk.7QOQXG7V.js +280 -0
  469. package/dist/chunks/chunk.A54SXMF6.js +11 -0
  470. package/dist/chunks/chunk.A75XMZQF.js +91 -0
  471. package/dist/chunks/chunk.A7AZEOWS.js +21 -0
  472. package/dist/chunks/chunk.ABJSJSVR.js +451 -0
  473. package/dist/chunks/chunk.ACW2XVAY.js +29 -0
  474. package/dist/chunks/chunk.AJY5IKAP.js +596 -0
  475. package/dist/chunks/chunk.ANAQ3U23.js +11 -0
  476. package/dist/chunks/chunk.ANLBJK37.js +25 -0
  477. package/dist/chunks/chunk.AYMNVM3K.js +422 -0
  478. package/dist/chunks/chunk.AYXVVA52.js +24 -0
  479. package/dist/chunks/chunk.B7H4U76E.js +21 -0
  480. package/dist/chunks/chunk.BBCOXXME.js +75 -0
  481. package/dist/chunks/chunk.BENDF532.js +11 -0
  482. package/dist/chunks/chunk.BRDHFOSA.js +11 -0
  483. package/dist/chunks/chunk.C24Z45OK.js +58 -0
  484. package/dist/chunks/chunk.C5ZKA7VW.js +25 -0
  485. package/dist/chunks/chunk.CBMMWN53.js +11 -0
  486. package/dist/chunks/chunk.CIDFDZRW.js +230 -0
  487. package/dist/chunks/chunk.CTUS2BRJ.js +21 -0
  488. package/dist/chunks/chunk.CVM4QQIH.js +11 -0
  489. package/dist/chunks/chunk.CWP2OCTX.js +28 -0
  490. package/dist/chunks/chunk.DBWF2K7N.js +24 -0
  491. package/dist/chunks/chunk.DFOY2RXN.js +121 -0
  492. package/dist/chunks/chunk.DKRMDAXH.js +21 -0
  493. package/dist/chunks/chunk.DLG3ISTI.js +345 -0
  494. package/dist/chunks/chunk.DS2GXZ4J.js +64 -0
  495. package/dist/chunks/chunk.EFW6UAEH.js +11 -0
  496. package/dist/chunks/chunk.ENBFHQ3L.js +291 -0
  497. package/dist/chunks/chunk.EPPQF7KD.js +24 -0
  498. package/dist/chunks/chunk.EQ6VDEGW.js +11 -0
  499. package/dist/chunks/chunk.ET4GP57T.js +213 -0
  500. package/dist/chunks/chunk.ETNOCBXV.js +259 -0
  501. package/dist/chunks/chunk.F5A3CI7J.js +21 -0
  502. package/dist/chunks/chunk.F6YXPWWD.js +11 -0
  503. package/dist/chunks/chunk.FDY3GDIO.js +21 -0
  504. package/dist/chunks/chunk.FGIV23AN.js +29 -0
  505. package/dist/chunks/chunk.FKS74UUE.js +21 -0
  506. package/dist/chunks/chunk.FQFJCEW7.js +402 -0
  507. package/dist/chunks/chunk.FQJUCC6Z.js +180 -0
  508. package/dist/chunks/chunk.FTQDFGAR.js +28 -0
  509. package/dist/chunks/chunk.GRBQETKI.js +21 -0
  510. package/dist/chunks/chunk.GT6B4BF3.js +11 -0
  511. package/dist/chunks/chunk.GTMUZKD3.js +11 -0
  512. package/dist/chunks/chunk.HARVA2IP.js +21 -0
  513. package/dist/chunks/chunk.HK5E3MB4.js +11 -0
  514. package/dist/chunks/chunk.HOMKMLDI.js +986 -0
  515. package/dist/chunks/chunk.HSGP3NJV.js +112 -0
  516. package/dist/chunks/chunk.HUDMN5IZ.js +11 -0
  517. package/dist/chunks/chunk.HWE36KUL.js +214 -0
  518. package/dist/chunks/chunk.IJQWDDTY.js +21 -0
  519. package/dist/chunks/chunk.IKMWLDCT.js +21 -0
  520. package/dist/chunks/chunk.IP6RYMMF.js +11 -0
  521. package/dist/chunks/chunk.IW47OQDJ.js +27 -0
  522. package/dist/chunks/chunk.IYF6RYNW.js +11 -0
  523. package/dist/chunks/chunk.JCQVYTHW.js +21 -0
  524. package/dist/chunks/chunk.JHMPD5S3.js +11 -0
  525. package/dist/chunks/chunk.JK62FCBM.js +277 -0
  526. package/dist/chunks/chunk.JTJTZNBC.js +11 -0
  527. package/dist/chunks/chunk.K66DWQG7.js +474 -0
  528. package/dist/chunks/chunk.K6WBYPK4.js +2228 -0
  529. package/dist/chunks/chunk.K7B5G7VZ.js +484 -0
  530. package/dist/chunks/chunk.K7QSTEOZ.js +11 -0
  531. package/dist/chunks/chunk.KTF6ZVQC.js +247 -0
  532. package/dist/chunks/chunk.KW76EJFU.js +2277 -0
  533. package/dist/chunks/chunk.LENFD4DV.js +844 -0
  534. package/dist/chunks/chunk.LIJJ2CVM.js +21 -0
  535. package/dist/chunks/chunk.LPCY54WK.js +11 -0
  536. package/dist/chunks/chunk.LPYTOTCB.js +124 -0
  537. package/dist/chunks/chunk.MFCOSXFW.js +21 -0
  538. package/dist/chunks/chunk.MGDJ2LD5.js +220 -0
  539. package/dist/chunks/chunk.MICLMHWK.js +11 -0
  540. package/dist/chunks/chunk.MNZZPXWB.js +11 -0
  541. package/dist/chunks/chunk.MQVNIT4S.js +973 -0
  542. package/dist/chunks/chunk.MTAR5BJL.js +153 -0
  543. package/dist/chunks/chunk.MZ4FDVFI.js +139 -0
  544. package/dist/chunks/chunk.N363OJZ2.js +89 -0
  545. package/dist/chunks/chunk.NLK5RRJT.js +11 -0
  546. package/dist/chunks/chunk.NUD2D7OX.js +11 -0
  547. package/dist/chunks/chunk.NXYNTUNF.js +24 -0
  548. package/dist/chunks/chunk.NY5YVZRV.js +11 -0
  549. package/dist/chunks/chunk.NZNBKBV5.js +11 -0
  550. package/dist/chunks/chunk.OHLDTKQU.js +21 -0
  551. package/dist/chunks/chunk.OIS2I2WX.js +11 -0
  552. package/dist/chunks/chunk.OKCQAPIO.js +11 -0
  553. package/dist/chunks/chunk.ON3YVM46.js +138 -0
  554. package/dist/chunks/chunk.ORHU4TOP.js +25 -0
  555. package/dist/chunks/chunk.OVF3LEJ5.js +61 -0
  556. package/dist/chunks/chunk.OVYETBCA.js +11 -0
  557. package/dist/chunks/chunk.OYOOZ5CY.js +20 -0
  558. package/dist/chunks/chunk.PHNX45ET.js +93 -0
  559. package/dist/chunks/chunk.PNW5CV46.js +11 -0
  560. package/dist/chunks/chunk.POB3HHX4.js +11 -0
  561. package/dist/chunks/chunk.PUQIBC6P.js +525 -0
  562. package/dist/chunks/chunk.PX7JSWL7.js +67 -0
  563. package/dist/chunks/chunk.QHDDMY67.js +21 -0
  564. package/dist/chunks/chunk.QP5XM7WT.js +720 -0
  565. package/dist/chunks/chunk.QQMW6GT2.js +1045 -0
  566. package/dist/chunks/chunk.QQWZTESV.js +21 -0
  567. package/dist/chunks/chunk.QVJT4Q7B.js +24 -0
  568. package/dist/chunks/chunk.R4KWN2HX.js +443 -0
  569. package/dist/chunks/chunk.RBEXUNHZ.js +581 -0
  570. package/dist/chunks/chunk.REHHQZMY.js +11 -0
  571. package/dist/chunks/chunk.RJRVYB3F.js +83 -0
  572. package/dist/chunks/chunk.RNNZRROI.js +85 -0
  573. package/dist/chunks/chunk.RQHF447H.js +123 -0
  574. package/dist/chunks/chunk.RWTN6VR5.js +11 -0
  575. package/dist/chunks/chunk.RYP4SV66.js +11 -0
  576. package/dist/chunks/chunk.S5JREWKQ.js +21 -0
  577. package/dist/chunks/chunk.S65PVGZW.js +11 -0
  578. package/dist/chunks/chunk.SJVXFIWD.js +43 -0
  579. package/dist/chunks/chunk.SMIEZHJ2.js +11 -0
  580. package/dist/chunks/chunk.SWGKKZUD.js +27 -0
  581. package/dist/chunks/chunk.SYBFIXLK.js +11 -0
  582. package/dist/chunks/chunk.SZAADZKK.js +252 -0
  583. package/dist/chunks/chunk.T7XC2TPO.js +43 -0
  584. package/dist/chunks/chunk.TFN2HUUW.js +78 -0
  585. package/dist/chunks/chunk.TJ5S7Y7N.js +11 -0
  586. package/dist/chunks/chunk.TKTDW7K4.js +592 -0
  587. package/dist/chunks/chunk.TXGZZ232.js +26 -0
  588. package/dist/chunks/chunk.U22BJ3HS.js +24 -0
  589. package/dist/chunks/chunk.U6JA4K4J.js +24 -0
  590. package/dist/chunks/chunk.UCXSNYW7.js +24 -0
  591. package/dist/chunks/chunk.UHIHGVN4.js +31 -0
  592. package/dist/chunks/chunk.UNJJ4K5X.js +24 -0
  593. package/dist/chunks/chunk.UNO3VVAK.js +11 -0
  594. package/dist/chunks/chunk.UU2S72KN.js +30 -0
  595. package/dist/chunks/chunk.V7PI7GT2.js +21 -0
  596. package/dist/chunks/chunk.VBCVUNIU.js +67 -0
  597. package/dist/chunks/chunk.VBWBPTPK.js +230 -0
  598. package/dist/chunks/chunk.VIBAVNO2.js +11 -0
  599. package/dist/chunks/chunk.VOGQH6VT.js +28 -0
  600. package/dist/chunks/chunk.VWZX32FU.js +145 -0
  601. package/dist/chunks/chunk.VYXIWUES.js +11 -0
  602. package/dist/chunks/chunk.W52CDXRW.js +11 -0
  603. package/dist/chunks/chunk.WBEYZIEP.js +24 -0
  604. package/dist/chunks/chunk.WFDKB6ZX.js +21 -0
  605. package/dist/chunks/chunk.WHFZNJAZ.js +409 -0
  606. package/dist/chunks/chunk.WJT6IE7Z.js +28 -0
  607. package/dist/chunks/chunk.WPBID72S.js +11 -0
  608. package/dist/chunks/chunk.WPUBNP6J.js +355 -0
  609. package/dist/chunks/chunk.WUSLL2E3.js +86 -0
  610. package/dist/chunks/chunk.WWDJTRJH.js +264 -0
  611. package/dist/chunks/chunk.X4HRSJ4F.js +11 -0
  612. package/dist/chunks/chunk.XA65IBXV.js +11 -0
  613. package/dist/chunks/chunk.XB6CG3ZS.js +24 -0
  614. package/dist/chunks/chunk.XBRKSIRT.js +97 -0
  615. package/dist/chunks/chunk.XC6HL6VP.js +101 -0
  616. package/dist/chunks/chunk.XHJJAZ6W.js +11 -0
  617. package/dist/chunks/chunk.XIFDLBOB.js +25 -0
  618. package/dist/chunks/chunk.XIXMPQO2.js +21 -0
  619. package/dist/chunks/chunk.XMGVOXBG.js +11 -0
  620. package/dist/chunks/chunk.XQHIGAKF.js +1122 -0
  621. package/dist/chunks/chunk.XQVFPFWL.js +245 -0
  622. package/dist/chunks/chunk.XYQ5OEQP.js +190 -0
  623. package/dist/chunks/chunk.YDUPN3OG.js +180 -0
  624. package/dist/chunks/chunk.YEL7UCDK.js +477 -0
  625. package/dist/chunks/chunk.YIGP5HKO.js +26 -0
  626. package/dist/chunks/chunk.YLUFHBYX.js +21 -0
  627. package/dist/chunks/chunk.YP3AWZ7P.js +11 -0
  628. package/dist/chunks/chunk.YY5TU7AJ.js +21 -0
  629. package/dist/chunks/chunk.Z7RT3KHG.js +24 -0
  630. package/dist/chunks/chunk.ZDDLFJFZ.js +27 -0
  631. package/dist/chunks/chunk.ZHCDFME3.js +272 -0
  632. package/dist/chunks/chunk.ZJISEOPZ.js +11 -0
  633. package/dist/chunks/chunk.ZKLP6636.js +180 -0
  634. package/dist/chunks/chunk.ZLLSS62V.js +21 -0
  635. package/dist/chunks/chunk.ZLZJXLHD.js +21 -0
  636. package/dist/chunks/chunk.ZVEB7QG2.js +143 -0
  637. package/dist/components/accordion/accordion.component.js +5 -5
  638. package/dist/components/accordion/accordion.js +6 -6
  639. package/dist/components/alert/alert.component.js +3 -3
  640. package/dist/components/alert/alert.js +4 -4
  641. package/dist/components/avatar/avatar.component.js +5 -5
  642. package/dist/components/avatar/avatar.js +6 -6
  643. package/dist/components/badge/badge.component.js +2 -2
  644. package/dist/components/badge/badge.js +3 -3
  645. package/dist/components/breadcrumb/breadcrumb.component.js +2 -2
  646. package/dist/components/breadcrumb/breadcrumb.js +3 -3
  647. package/dist/components/breadcrumbs/breadcrumbs.component.js +2 -2
  648. package/dist/components/breadcrumbs/breadcrumbs.js +3 -3
  649. package/dist/components/browse-variables/browse-variables.component.js +15 -15
  650. package/dist/components/browse-variables/browse-variables.controller.js +3 -3
  651. package/dist/components/browse-variables/browse-variables.js +16 -16
  652. package/dist/components/button/button.component.js +5 -5
  653. package/dist/components/button/button.js +6 -6
  654. package/dist/components/button-group/button-group.component.js +2 -2
  655. package/dist/components/button-group/button-group.js +3 -3
  656. package/dist/components/caption/caption.component.js +2 -2
  657. package/dist/components/caption/caption.js +3 -3
  658. package/dist/components/card/card.component.js +2 -2
  659. package/dist/components/card/card.js +3 -3
  660. package/dist/components/checkbox/checkbox.component.js +5 -5
  661. package/dist/components/checkbox/checkbox.js +6 -6
  662. package/dist/components/chip/chip.component.js +2 -2
  663. package/dist/components/chip/chip.js +3 -3
  664. package/dist/components/combobox/combobox.component.d.ts +4 -1
  665. package/dist/components/combobox/combobox.component.js +2 -2
  666. package/dist/components/combobox/combobox.js +3 -3
  667. package/dist/components/data-access/data-access.component.d.ts +2 -0
  668. package/dist/components/data-access/data-access.component.js +23 -21
  669. package/dist/components/data-access/data-access.controller.js +3 -3
  670. package/dist/components/data-access/data-access.js +24 -22
  671. package/dist/components/data-grid/data-grid.component.js +3 -3
  672. package/dist/components/data-grid/data-grid.js +4 -4
  673. package/dist/components/data-rods/data-rods.component.js +30 -30
  674. package/dist/components/data-rods/data-rods.js +31 -31
  675. package/dist/components/data-subsetter/data-subsetter.component.d.ts +2 -1
  676. package/dist/components/data-subsetter/data-subsetter.component.js +39 -39
  677. package/dist/components/data-subsetter/data-subsetter.controller.d.ts +3 -1
  678. package/dist/components/data-subsetter/data-subsetter.controller.js +3 -3
  679. package/dist/components/data-subsetter/data-subsetter.js +40 -40
  680. package/dist/components/data-subsetter/data-subsetter.styles.js +1 -1
  681. package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  682. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +40 -40
  683. package/dist/components/data-subsetter-history/data-subsetter-history.js +41 -41
  684. package/dist/components/date-picker/date-picker.component.d.ts +10 -0
  685. package/dist/components/date-picker/date-picker.component.js +10 -10
  686. package/dist/components/date-picker/date-picker.js +11 -11
  687. package/dist/components/date-range-slider/date-range-slider.component.js +2 -2
  688. package/dist/components/date-range-slider/date-range-slider.js +3 -3
  689. package/dist/components/dialog/dialog.component.js +8 -8
  690. package/dist/components/dialog/dialog.js +9 -9
  691. package/dist/components/dialog/dialog.styles.js +1 -1
  692. package/dist/components/divider/divider.component.js +2 -2
  693. package/dist/components/divider/divider.js +3 -3
  694. package/dist/components/dropdown/dropdown.component.js +3 -3
  695. package/dist/components/dropdown/dropdown.js +4 -4
  696. package/dist/components/earthdata-login/earthdata-login.component.js +12 -12
  697. package/dist/components/earthdata-login/earthdata-login.js +13 -13
  698. package/dist/components/file-upload/file-upload.component.js +2 -2
  699. package/dist/components/file-upload/file-upload.js +3 -3
  700. package/dist/components/icon/icon.component.js +3 -3
  701. package/dist/components/icon/icon.js +4 -4
  702. package/dist/components/input/input.component.js +5 -5
  703. package/dist/components/input/input.js +6 -6
  704. package/dist/components/loader/loader.component.js +2 -2
  705. package/dist/components/loader/loader.js +3 -3
  706. package/dist/components/login/login.component.js +10 -10
  707. package/dist/components/login/login.js +11 -11
  708. package/dist/components/map/leaflet-utils.d.ts +1 -1
  709. package/dist/components/map/map.component.js +2 -2
  710. package/dist/components/map/map.js +3 -3
  711. package/dist/components/menu/menu.component.js +2 -2
  712. package/dist/components/menu/menu.js +3 -3
  713. package/dist/components/menu-item/menu-item.component.js +7 -7
  714. package/dist/components/menu-item/menu-item.js +8 -8
  715. package/dist/components/option/option.component.js +4 -4
  716. package/dist/components/option/option.js +5 -5
  717. package/dist/components/pagination/pagination.component.js +4 -4
  718. package/dist/components/pagination/pagination.js +5 -5
  719. package/dist/components/plot/plot.component.js +2 -2
  720. package/dist/components/plot/plot.js +3 -3
  721. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  722. package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  723. package/dist/components/plot-toolbar/plot-toolbar.component.js +12 -12
  724. package/dist/components/plot-toolbar/plot-toolbar.controller.js +3 -3
  725. package/dist/components/plot-toolbar/plot-toolbar.js +13 -13
  726. package/dist/components/popup/popup.component.js +2 -2
  727. package/dist/components/popup/popup.js +3 -3
  728. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  729. package/dist/components/progress-bar/progress-bar.js +3 -3
  730. package/dist/components/radio/radio.component.js +2 -2
  731. package/dist/components/radio/radio.js +3 -3
  732. package/dist/components/radio-group/radio-group.component.js +2 -2
  733. package/dist/components/radio-group/radio-group.js +3 -3
  734. package/dist/components/scroll-hint/scroll-hint.component.js +4 -4
  735. package/dist/components/scroll-hint/scroll-hint.js +5 -5
  736. package/dist/components/select/select.component.js +8 -8
  737. package/dist/components/select/select.js +9 -9
  738. package/dist/components/site-header/site-header.component.js +5 -5
  739. package/dist/components/site-header/site-header.js +5 -5
  740. package/dist/components/site-navigation/site-navigation.component.js +2 -2
  741. package/dist/components/site-navigation/site-navigation.js +2 -2
  742. package/dist/components/skeleton/skeleton.component.js +2 -2
  743. package/dist/components/skeleton/skeleton.js +3 -3
  744. package/dist/components/slider/slider.component.js +2 -2
  745. package/dist/components/slider/slider.js +3 -3
  746. package/dist/components/spatial-picker/spatial-picker.component.js +10 -10
  747. package/dist/components/spatial-picker/spatial-picker.js +11 -11
  748. package/dist/components/status-indicator/status-indicator.component.js +2 -2
  749. package/dist/components/status-indicator/status-indicator.js +3 -3
  750. package/dist/components/stepper/stepper.component.js +2 -2
  751. package/dist/components/stepper/stepper.js +3 -3
  752. package/dist/components/stepper-step/stepper-step.component.js +4 -4
  753. package/dist/components/stepper-step/stepper-step.js +5 -5
  754. package/dist/components/tab/tab.component.js +4 -4
  755. package/dist/components/tab/tab.js +5 -5
  756. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  757. package/dist/components/tab-panel/tab-panel.js +3 -3
  758. package/dist/components/tabs/tabs.component.js +4 -4
  759. package/dist/components/tabs/tabs.js +5 -5
  760. package/dist/components/tag/tag.component.js +4 -4
  761. package/dist/components/tag/tag.js +5 -5
  762. package/dist/components/textarea/textarea.component.js +2 -2
  763. package/dist/components/textarea/textarea.js +3 -3
  764. package/dist/components/time-average-map/time-average-map.component.js +21 -21
  765. package/dist/components/time-average-map/time-average-map.js +22 -22
  766. package/dist/components/time-series/time-series.component.js +20 -20
  767. package/dist/components/time-series/time-series.js +21 -21
  768. package/dist/components/toast/toast.component.js +4 -4
  769. package/dist/components/toast/toast.js +5 -5
  770. package/dist/components/toggle/toggle.component.js +2 -2
  771. package/dist/components/toggle/toggle.js +3 -3
  772. package/dist/components/tooltip/tooltip.component.js +3 -3
  773. package/dist/components/tooltip/tooltip.js +4 -4
  774. package/dist/components/variable-combobox/variable-combobox.component.d.ts +4 -1
  775. package/dist/components/variable-combobox/variable-combobox.component.js +8 -8
  776. package/dist/components/variable-combobox/variable-combobox.js +9 -9
  777. package/dist/components/variable-keyword-search/variable-keyword-search.component.d.ts +4 -1
  778. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +11 -11
  779. package/dist/components/variable-keyword-search/variable-keyword-search.controller.js +3 -3
  780. package/dist/components/variable-keyword-search/variable-keyword-search.js +12 -12
  781. package/dist/custom-elements.json +2648 -2570
  782. package/dist/internal/animate.d.ts +3 -3
  783. package/dist/metadata-catalog/cmr-catalog.d.ts +2 -1
  784. package/dist/metadata-catalog/queries.d.ts +1 -0
  785. package/dist/metadata-catalog/types.d.ts +13 -0
  786. package/dist/react/accordion/index.js +6 -6
  787. package/dist/react/alert/index.js +4 -4
  788. package/dist/react/avatar/index.js +6 -6
  789. package/dist/react/badge/index.js +3 -3
  790. package/dist/react/breadcrumb/index.js +3 -3
  791. package/dist/react/breadcrumbs/index.js +3 -3
  792. package/dist/react/browse-variables/index.js +16 -16
  793. package/dist/react/button/index.js +6 -6
  794. package/dist/react/button-group/index.js +3 -3
  795. package/dist/react/caption/index.js +3 -3
  796. package/dist/react/card/index.js +3 -3
  797. package/dist/react/checkbox/index.js +6 -6
  798. package/dist/react/chip/index.js +3 -3
  799. package/dist/react/combobox/index.js +3 -3
  800. package/dist/react/data-access/index.js +24 -22
  801. package/dist/react/data-grid/index.js +4 -4
  802. package/dist/react/data-rods/index.js +31 -31
  803. package/dist/react/data-subsetter/index.js +40 -40
  804. package/dist/react/data-subsetter-history/index.js +41 -41
  805. package/dist/react/date-picker/index.js +11 -11
  806. package/dist/react/date-range-slider/index.js +3 -3
  807. package/dist/react/dialog/index.js +9 -9
  808. package/dist/react/divider/index.js +3 -3
  809. package/dist/react/dropdown/index.js +4 -4
  810. package/dist/react/earthdata-login/index.js +13 -13
  811. package/dist/react/file-upload/index.js +3 -3
  812. package/dist/react/icon/index.js +4 -4
  813. package/dist/react/index.d.ts +12 -12
  814. package/dist/react/index.js +190 -190
  815. package/dist/react/input/index.js +6 -6
  816. package/dist/react/loader/index.js +3 -3
  817. package/dist/react/login/index.js +11 -11
  818. package/dist/react/map/index.js +3 -3
  819. package/dist/react/menu/index.js +3 -3
  820. package/dist/react/menu-item/index.js +8 -8
  821. package/dist/react/option/index.js +5 -5
  822. package/dist/react/pagination/index.js +5 -5
  823. package/dist/react/plot/index.js +3 -3
  824. package/dist/react/plot-toolbar/index.js +13 -13
  825. package/dist/react/popup/index.js +3 -3
  826. package/dist/react/progress-bar/index.js +3 -3
  827. package/dist/react/radio/index.js +3 -3
  828. package/dist/react/radio-group/index.js +3 -3
  829. package/dist/react/scroll-hint/index.js +5 -5
  830. package/dist/react/select/index.js +9 -9
  831. package/dist/react/site-header/index.js +6 -6
  832. package/dist/react/site-navigation/index.js +3 -3
  833. package/dist/react/skeleton/index.js +3 -3
  834. package/dist/react/slider/index.js +3 -3
  835. package/dist/react/spatial-picker/index.js +11 -11
  836. package/dist/react/status-indicator/index.js +3 -3
  837. package/dist/react/stepper/index.js +3 -3
  838. package/dist/react/stepper-step/index.js +5 -5
  839. package/dist/react/tab/index.js +5 -5
  840. package/dist/react/tab-panel/index.js +3 -3
  841. package/dist/react/tabs/index.js +5 -5
  842. package/dist/react/tag/index.js +5 -5
  843. package/dist/react/textarea/index.js +3 -3
  844. package/dist/react/time-average-map/index.js +22 -22
  845. package/dist/react/time-series/index.js +21 -21
  846. package/dist/react/toast/index.js +5 -5
  847. package/dist/react/toggle/index.js +3 -3
  848. package/dist/react/tooltip/index.js +4 -4
  849. package/dist/react/variable-combobox/index.js +9 -9
  850. package/dist/react/variable-keyword-search/index.js +12 -12
  851. package/dist/terra-ui-components.js +178 -178
  852. package/dist/terra_ui_components-0.0.167-py3-none-any.whl +0 -0
  853. package/dist/terra_ui_components-0.0.167.tar.gz +0 -0
  854. package/dist/types/vue/index.d.ts +695 -684
  855. package/dist/utilities/mimetypes.d.ts +1 -1
  856. package/dist/utilities/mimetypes.js +1 -1
  857. package/dist/vscode.html-custom-data.json +343 -340
  858. package/dist/web-types.json +1897 -1878
  859. package/package.json +1 -1
  860. package/cdn/chunks/chunk.2EWZZROF.js +0 -19
  861. package/cdn/chunks/chunk.2NM4U2LU.js +0 -187
  862. package/cdn/chunks/chunk.2S7FXDXE.js +0 -19
  863. package/cdn/chunks/chunk.2TM2DOUK.js +0 -34
  864. package/cdn/chunks/chunk.2U6GNQHA.js +0 -32
  865. package/cdn/chunks/chunk.2UNOREJQ.js +0 -19
  866. package/cdn/chunks/chunk.2VNRC5N4.js +0 -19
  867. package/cdn/chunks/chunk.2VYORYI2.js +0 -189
  868. package/cdn/chunks/chunk.2Z7U2X7L.js +0 -29
  869. package/cdn/chunks/chunk.3ALJUIVF.js +0 -19
  870. package/cdn/chunks/chunk.3BYVGEYV.js +0 -32
  871. package/cdn/chunks/chunk.3KKPV5OI.js +0 -288
  872. package/cdn/chunks/chunk.3M7YL7BY.js +0 -34
  873. package/cdn/chunks/chunk.3UNTOIV2.js +0 -29
  874. package/cdn/chunks/chunk.3WIWERHG.js +0 -41
  875. package/cdn/chunks/chunk.3WPT4WPA.js +0 -158
  876. package/cdn/chunks/chunk.3XEK6ZJA.js +0 -19
  877. package/cdn/chunks/chunk.45XFWGEL.js +0 -110
  878. package/cdn/chunks/chunk.46WWZTCI.js +0 -39
  879. package/cdn/chunks/chunk.4AWQ3P7Z.js +0 -19
  880. package/cdn/chunks/chunk.4BS3A266.js +0 -19
  881. package/cdn/chunks/chunk.4PDBX7DI.js +0 -37
  882. package/cdn/chunks/chunk.4QFIJBCO.js +0 -60
  883. package/cdn/chunks/chunk.4SH2XSLJ.js +0 -47
  884. package/cdn/chunks/chunk.4YZDZQ4Y.js +0 -32
  885. package/cdn/chunks/chunk.53RRYVCX.js +0 -29
  886. package/cdn/chunks/chunk.57GXVKQI.js +0 -29
  887. package/cdn/chunks/chunk.5SABEIEW.js +0 -359
  888. package/cdn/chunks/chunk.5XSRMYEO.js +0 -132
  889. package/cdn/chunks/chunk.6BPRQKWC.js +0 -19
  890. package/cdn/chunks/chunk.6PDKWTOW.js +0 -279
  891. package/cdn/chunks/chunk.6TFBNK24.js +0 -19
  892. package/cdn/chunks/chunk.6Y6CEFC4.js +0 -19
  893. package/cdn/chunks/chunk.74ZEGEWV.js +0 -19
  894. package/cdn/chunks/chunk.77ZBM3DP.js +0 -662
  895. package/cdn/chunks/chunk.7DBJ6F7W.js +0 -35
  896. package/cdn/chunks/chunk.7IJFDHCX.js +0 -32
  897. package/cdn/chunks/chunk.7JN43LMT.js +0 -19
  898. package/cdn/chunks/chunk.7JXWQSAX.js +0 -36
  899. package/cdn/chunks/chunk.7NLSXSIB.js +0 -29
  900. package/cdn/chunks/chunk.7PFNDNEY.js +0 -234
  901. package/cdn/chunks/chunk.7R3QM2PS.js +0 -30
  902. package/cdn/chunks/chunk.7S3RPGH3.js +0 -29
  903. package/cdn/chunks/chunk.7THLKNXU.js +0 -29
  904. package/cdn/chunks/chunk.7UCPGD44.js +0 -106
  905. package/cdn/chunks/chunk.7XDSA7NO.js +0 -278
  906. package/cdn/chunks/chunk.7XIXO5VA.js +0 -19
  907. package/cdn/chunks/chunk.7YGWLDY2.js +0 -19
  908. package/cdn/chunks/chunk.A3DLYWF7.js +0 -19
  909. package/cdn/chunks/chunk.AH6W6EGS.js +0 -77
  910. package/cdn/chunks/chunk.AM27WUW5.js +0 -29
  911. package/cdn/chunks/chunk.ANGGR464.js +0 -19
  912. package/cdn/chunks/chunk.BCDPCFGL.js +0 -19
  913. package/cdn/chunks/chunk.BJ3N2M74.js +0 -477
  914. package/cdn/chunks/chunk.BLLQQEU4.js +0 -93
  915. package/cdn/chunks/chunk.BPMODTFZ.js +0 -19
  916. package/cdn/chunks/chunk.C3WIXITA.js +0 -19
  917. package/cdn/chunks/chunk.C4NRIXB5.js +0 -32
  918. package/cdn/chunks/chunk.C6ZU7BQU.js +0 -19
  919. package/cdn/chunks/chunk.CED7VU3A.js +0 -19
  920. package/cdn/chunks/chunk.CIQJX7DN.js +0 -19
  921. package/cdn/chunks/chunk.CNUZIWX3.js +0 -49
  922. package/cdn/chunks/chunk.CPMSN4UJ.js +0 -188
  923. package/cdn/chunks/chunk.CWXB2IIO.js +0 -29
  924. package/cdn/chunks/chunk.D7RTNDXT.js +0 -19
  925. package/cdn/chunks/chunk.DJQP2IMA.js +0 -264
  926. package/cdn/chunks/chunk.DNR3FVXW.js +0 -357
  927. package/cdn/chunks/chunk.DRMQM3ZI.js +0 -302
  928. package/cdn/chunks/chunk.DZE46JZE.js +0 -33
  929. package/cdn/chunks/chunk.E23QC5CB.js +0 -19
  930. package/cdn/chunks/chunk.E2XCXOAJ.js +0 -74
  931. package/cdn/chunks/chunk.E5SLLQG3.js +0 -19
  932. package/cdn/chunks/chunk.E74MOGHY.js +0 -19
  933. package/cdn/chunks/chunk.EK3MCWKP.js +0 -19
  934. package/cdn/chunks/chunk.ETNO4HXV.js +0 -276
  935. package/cdn/chunks/chunk.EYD3JBVW.js +0 -19
  936. package/cdn/chunks/chunk.EYQLI54B.js +0 -29
  937. package/cdn/chunks/chunk.F3RTIMRW.js +0 -1039
  938. package/cdn/chunks/chunk.F5QWVMPR.js +0 -99
  939. package/cdn/chunks/chunk.F73O5LKK.js +0 -134
  940. package/cdn/chunks/chunk.F7XFAAJE.js +0 -33
  941. package/cdn/chunks/chunk.FDZIJYAO.js +0 -610
  942. package/cdn/chunks/chunk.FEAWTNIM.js +0 -19
  943. package/cdn/chunks/chunk.FEG7AH52.js +0 -230
  944. package/cdn/chunks/chunk.FJEMKM6L.js +0 -99
  945. package/cdn/chunks/chunk.FLYZMRBH.js +0 -19
  946. package/cdn/chunks/chunk.FMZGNUT6.js +0 -32
  947. package/cdn/chunks/chunk.FPTDR7CZ.js +0 -19
  948. package/cdn/chunks/chunk.FT4EMWLT.js +0 -36
  949. package/cdn/chunks/chunk.G3TTBDUB.js +0 -29
  950. package/cdn/chunks/chunk.GDWGIG42.js +0 -33858
  951. package/cdn/chunks/chunk.GESX3J6K.js +0 -29
  952. package/cdn/chunks/chunk.GLGGOYSS.js +0 -32
  953. package/cdn/chunks/chunk.GP34NE53.js +0 -248
  954. package/cdn/chunks/chunk.GQDFFYST.js +0 -37
  955. package/cdn/chunks/chunk.GUH7MM42.js +0 -224
  956. package/cdn/chunks/chunk.GWUI2AWV.js +0 -32
  957. package/cdn/chunks/chunk.HDHDBLD7.js +0 -78
  958. package/cdn/chunks/chunk.HEU3DA6R.js +0 -19
  959. package/cdn/chunks/chunk.HUPSCPKB.js +0 -35
  960. package/cdn/chunks/chunk.HVEKBFXN.js +0 -19
  961. package/cdn/chunks/chunk.I7DZOR75.js +0 -35
  962. package/cdn/chunks/chunk.I7I7IRUJ.js +0 -165
  963. package/cdn/chunks/chunk.IQO7QZ6F.js +0 -19
  964. package/cdn/chunks/chunk.IZB43GH7.js +0 -616
  965. package/cdn/chunks/chunk.JAMHC4MV.js +0 -83
  966. package/cdn/chunks/chunk.JFHC3LXJ.js +0 -56
  967. package/cdn/chunks/chunk.JIFH4KW6.js +0 -29
  968. package/cdn/chunks/chunk.JZSQM3VW.js +0 -29
  969. package/cdn/chunks/chunk.K6LGN35W.js +0 -136
  970. package/cdn/chunks/chunk.K6SKQZRX.js +0 -157
  971. package/cdn/chunks/chunk.K7EC2QO6.js +0 -145
  972. package/cdn/chunks/chunk.KBLQRHVM.js +0 -33
  973. package/cdn/chunks/chunk.KIYBBETI.js +0 -599
  974. package/cdn/chunks/chunk.KJIZK2GR.js +0 -33
  975. package/cdn/chunks/chunk.KPCBPIM2.js +0 -19
  976. package/cdn/chunks/chunk.L3OIOVRC.js +0 -36
  977. package/cdn/chunks/chunk.LBABTGAS.js +0 -146
  978. package/cdn/chunks/chunk.LBLAQB7E.js +0 -19
  979. package/cdn/chunks/chunk.LK77ZQIZ.js +0 -19
  980. package/cdn/chunks/chunk.LLAXCJPT.js +0 -32
  981. package/cdn/chunks/chunk.LQCV7ZYM.js +0 -83
  982. package/cdn/chunks/chunk.M55UUYE6.js +0 -19
  983. package/cdn/chunks/chunk.M5MAEZD5.js +0 -29
  984. package/cdn/chunks/chunk.M6362XDV.js +0 -19
  985. package/cdn/chunks/chunk.MFFHCZ5L.js +0 -19
  986. package/cdn/chunks/chunk.MIQUNAYB.js +0 -19
  987. package/cdn/chunks/chunk.MOZTMXIO.js +0 -29
  988. package/cdn/chunks/chunk.MWWSE5AO.js +0 -19
  989. package/cdn/chunks/chunk.MY73O246.js +0 -499
  990. package/cdn/chunks/chunk.NKC2HFQO.js +0 -19
  991. package/cdn/chunks/chunk.NKP4OZ6C.js +0 -19
  992. package/cdn/chunks/chunk.NPKRRICT.js +0 -36
  993. package/cdn/chunks/chunk.NU3XX242.js +0 -93
  994. package/cdn/chunks/chunk.OEG2PCOY.js +0 -29
  995. package/cdn/chunks/chunk.OICPTIVQ.js +0 -1002
  996. package/cdn/chunks/chunk.ONRLLQNT.js +0 -86
  997. package/cdn/chunks/chunk.ORNWQAHG.js +0 -29
  998. package/cdn/chunks/chunk.OUTTGBUO.js +0 -29
  999. package/cdn/chunks/chunk.OVVZBWQ5.js +0 -32
  1000. package/cdn/chunks/chunk.OWCDD7DL.js +0 -977
  1001. package/cdn/chunks/chunk.P4RQ4MFI.js +0 -33
  1002. package/cdn/chunks/chunk.PAHZERFK.js +0 -19
  1003. package/cdn/chunks/chunk.Q3LBEGYY.js +0 -19
  1004. package/cdn/chunks/chunk.QFRZNTBB.js +0 -19
  1005. package/cdn/chunks/chunk.QLUPX74R.js +0 -32
  1006. package/cdn/chunks/chunk.QNBW7SSE.js +0 -19
  1007. package/cdn/chunks/chunk.QRYITAX4.js +0 -29
  1008. package/cdn/chunks/chunk.QYV5WCX7.js +0 -372
  1009. package/cdn/chunks/chunk.S2F2564D.js +0 -77
  1010. package/cdn/chunks/chunk.S7E2TP3A.js +0 -29
  1011. package/cdn/chunks/chunk.SA2UUVST.js +0 -19
  1012. package/cdn/chunks/chunk.SA4JCYIC.js +0 -287
  1013. package/cdn/chunks/chunk.SBHQWVNS.js +0 -123
  1014. package/cdn/chunks/chunk.SDNNLHZQ.js +0 -259
  1015. package/cdn/chunks/chunk.SEQFSNN4.js +0 -33
  1016. package/cdn/chunks/chunk.SIGBMSJD.js +0 -19
  1017. package/cdn/chunks/chunk.SJWU5EWL.js +0 -904
  1018. package/cdn/chunks/chunk.SQBGXFEJ.js +0 -375
  1019. package/cdn/chunks/chunk.STCSMNYB.js +0 -113
  1020. package/cdn/chunks/chunk.SUWTMK7P.js +0 -19
  1021. package/cdn/chunks/chunk.SW5PSOVR.js +0 -2175
  1022. package/cdn/chunks/chunk.TFYS773O.js +0 -538
  1023. package/cdn/chunks/chunk.THX5KACF.js +0 -29
  1024. package/cdn/chunks/chunk.TOZJSWZM.js +0 -257
  1025. package/cdn/chunks/chunk.TPINKMZJ.js +0 -32
  1026. package/cdn/chunks/chunk.TSLZA2FP.js +0 -79
  1027. package/cdn/chunks/chunk.TUZUVIYQ.js +0 -493
  1028. package/cdn/chunks/chunk.TWGFMAIL.js +0 -239
  1029. package/cdn/chunks/chunk.TZLNQAFG.js +0 -68
  1030. package/cdn/chunks/chunk.U2G7CWH4.js +0 -19
  1031. package/cdn/chunks/chunk.U4WOOAKH.js +0 -19
  1032. package/cdn/chunks/chunk.U7DU43ZD.js +0 -29
  1033. package/cdn/chunks/chunk.UDIXHKOM.js +0 -29
  1034. package/cdn/chunks/chunk.UGUHGDCA.js +0 -32
  1035. package/cdn/chunks/chunk.ULCUBVWX.js +0 -92
  1036. package/cdn/chunks/chunk.UNRDSWSJ.js +0 -19
  1037. package/cdn/chunks/chunk.UOHYVQ6N.js +0 -190
  1038. package/cdn/chunks/chunk.UPGC5XHC.js +0 -1966
  1039. package/cdn/chunks/chunk.UQWL4L3A.js +0 -19
  1040. package/cdn/chunks/chunk.URRRD4PA.js +0 -32
  1041. package/cdn/chunks/chunk.UVILYQWA.js +0 -134
  1042. package/cdn/chunks/chunk.UXDVYLP3.js +0 -29
  1043. package/cdn/chunks/chunk.VA6OPZBX.js +0 -293
  1044. package/cdn/chunks/chunk.VF7MKBFU.js +0 -731
  1045. package/cdn/chunks/chunk.VKVSAKRF.js +0 -29
  1046. package/cdn/chunks/chunk.VOG4NJCY.js +0 -19
  1047. package/cdn/chunks/chunk.VXY5YRVZ.js +0 -29
  1048. package/cdn/chunks/chunk.W4OUTCDL.js +0 -29
  1049. package/cdn/chunks/chunk.W5D76LYB.js +0 -104
  1050. package/cdn/chunks/chunk.W7KGVFJQ.js +0 -52
  1051. package/cdn/chunks/chunk.WD2GZO6V.js +0 -19
  1052. package/cdn/chunks/chunk.WNX4WGS3.js +0 -524
  1053. package/cdn/chunks/chunk.WWAK3QTQ.js +0 -155
  1054. package/cdn/chunks/chunk.WXIFDT4N.js +0 -231
  1055. package/cdn/chunks/chunk.XCDWBMH6.js +0 -99
  1056. package/cdn/chunks/chunk.XOBAY4RP.js +0 -62
  1057. package/cdn/chunks/chunk.XSKBH44W.js +0 -71
  1058. package/cdn/chunks/chunk.XTBGTVDX.js +0 -29
  1059. package/cdn/chunks/chunk.Y76X56VW.js +0 -60
  1060. package/cdn/chunks/chunk.YATRTMXH.js +0 -35
  1061. package/cdn/chunks/chunk.YCWFBBIW.js +0 -19
  1062. package/cdn/chunks/chunk.YG57KJCC.js +0 -621
  1063. package/cdn/chunks/chunk.YM5CME77.js +0 -151
  1064. package/cdn/chunks/chunk.YP7ODXXO.js +0 -55346
  1065. package/cdn/chunks/chunk.YXXYHJWO.js +0 -435
  1066. package/cdn/chunks/chunk.ZNBYJMJX.js +0 -29
  1067. package/cdn/chunks/chunk.ZTV3CFZX.js +0 -19
  1068. package/cdn/chunks/chunk.ZVDRQMOJ.js +0 -19
  1069. package/cdn/chunks/chunk.ZWNN5ZH2.js +0 -2248
  1070. package/dist/chunks/chunk.23NL6ZID.js +0 -48
  1071. package/dist/chunks/chunk.24Y45GCJ.js +0 -422
  1072. package/dist/chunks/chunk.2BUIWDOP.js +0 -11
  1073. package/dist/chunks/chunk.2FCEMVJR.js +0 -474
  1074. package/dist/chunks/chunk.2I67FVGM.js +0 -245
  1075. package/dist/chunks/chunk.2JGKWM6C.js +0 -74
  1076. package/dist/chunks/chunk.2JLEP7WV.js +0 -135
  1077. package/dist/chunks/chunk.34D76IWL.js +0 -277
  1078. package/dist/chunks/chunk.3E224JEK.js +0 -409
  1079. package/dist/chunks/chunk.3KXUPHQI.js +0 -91
  1080. package/dist/chunks/chunk.3L6HPYYD.js +0 -11
  1081. package/dist/chunks/chunk.3PZSDY3H.js +0 -11
  1082. package/dist/chunks/chunk.46LR3GBN.js +0 -21
  1083. package/dist/chunks/chunk.47TCOBJL.js +0 -93
  1084. package/dist/chunks/chunk.4C6H35CR.js +0 -609
  1085. package/dist/chunks/chunk.4FJ3X63Q.js +0 -21
  1086. package/dist/chunks/chunk.4KAGHT32.js +0 -11
  1087. package/dist/chunks/chunk.4S7VDYUE.js +0 -11
  1088. package/dist/chunks/chunk.4XAFSDPF.js +0 -21
  1089. package/dist/chunks/chunk.4YE3RHPD.js +0 -27
  1090. package/dist/chunks/chunk.5356OGOU.js +0 -596
  1091. package/dist/chunks/chunk.5ONQAV7J.js +0 -11
  1092. package/dist/chunks/chunk.5PJNFHW7.js +0 -11
  1093. package/dist/chunks/chunk.5W5ACDR2.js +0 -11
  1094. package/dist/chunks/chunk.62XR66HC.js +0 -75
  1095. package/dist/chunks/chunk.6BTZPYYD.js +0 -85
  1096. package/dist/chunks/chunk.6G2CQWQW.js +0 -21
  1097. package/dist/chunks/chunk.6JWHPMOL.js +0 -43
  1098. package/dist/chunks/chunk.6LYMZ74C.js +0 -26
  1099. package/dist/chunks/chunk.6OWWYTVJ.js +0 -139
  1100. package/dist/chunks/chunk.7BP2RTH6.js +0 -345
  1101. package/dist/chunks/chunk.7CO4TCAE.js +0 -39
  1102. package/dist/chunks/chunk.7DHYCCKV.js +0 -28
  1103. package/dist/chunks/chunk.7DXRWFLB.js +0 -21
  1104. package/dist/chunks/chunk.7GVOOFGX.js +0 -21
  1105. package/dist/chunks/chunk.A2EGUC6U.js +0 -11
  1106. package/dist/chunks/chunk.A4Y5JGLO.js +0 -291
  1107. package/dist/chunks/chunk.AGVANNFL.js +0 -11
  1108. package/dist/chunks/chunk.AIN7RMJA.js +0 -20
  1109. package/dist/chunks/chunk.AMORIPDA.js +0 -11
  1110. package/dist/chunks/chunk.AOG6UBAK.js +0 -581
  1111. package/dist/chunks/chunk.AOMYOT5P.js +0 -21
  1112. package/dist/chunks/chunk.AWZVKNCO.js +0 -280
  1113. package/dist/chunks/chunk.B25JSTW3.js +0 -24
  1114. package/dist/chunks/chunk.B35TXTHD.js +0 -25
  1115. package/dist/chunks/chunk.B75F4EUF.js +0 -11
  1116. package/dist/chunks/chunk.BFYI5XHA.js +0 -86
  1117. package/dist/chunks/chunk.BMP66UJR.js +0 -451
  1118. package/dist/chunks/chunk.BN7IWGKR.js +0 -24
  1119. package/dist/chunks/chunk.BPYGZWI3.js +0 -180
  1120. package/dist/chunks/chunk.BRSRN5QN.js +0 -24
  1121. package/dist/chunks/chunk.CE47STSQ.js +0 -11
  1122. package/dist/chunks/chunk.CERMDF55.js +0 -176
  1123. package/dist/chunks/chunk.CHYOTCHZ.js +0 -11
  1124. package/dist/chunks/chunk.CIMAQVS2.js +0 -11
  1125. package/dist/chunks/chunk.CIMGUV6Y.js +0 -24
  1126. package/dist/chunks/chunk.CLRSZEB2.js +0 -24
  1127. package/dist/chunks/chunk.CQVTWL6Z.js +0 -21
  1128. package/dist/chunks/chunk.CQYKQRWL.js +0 -11
  1129. package/dist/chunks/chunk.CR7VTG7C.js +0 -89
  1130. package/dist/chunks/chunk.CU5BQKH2.js +0 -477
  1131. package/dist/chunks/chunk.CYCA3NBR.js +0 -1028
  1132. package/dist/chunks/chunk.DACLOTFS.js +0 -28
  1133. package/dist/chunks/chunk.DITKLYBN.js +0 -180
  1134. package/dist/chunks/chunk.DKUE6PE4.js +0 -11
  1135. package/dist/chunks/chunk.DLNPETOO.js +0 -21
  1136. package/dist/chunks/chunk.DTXOJ33G.js +0 -21
  1137. package/dist/chunks/chunk.DZV7WWTJ.js +0 -11
  1138. package/dist/chunks/chunk.EDG6QOJD.js +0 -27
  1139. package/dist/chunks/chunk.ELELOKAM.js +0 -1122
  1140. package/dist/chunks/chunk.EMK63FTO.js +0 -720
  1141. package/dist/chunks/chunk.ESD54SLD.js +0 -24
  1142. package/dist/chunks/chunk.ET27O3TP.js +0 -21
  1143. package/dist/chunks/chunk.EUVVVTAD.js +0 -11
  1144. package/dist/chunks/chunk.F2SPMDPY.js +0 -11
  1145. package/dist/chunks/chunk.F3ZB3JGC.js +0 -11
  1146. package/dist/chunks/chunk.FKHGRLRX.js +0 -28
  1147. package/dist/chunks/chunk.FKT5MJBI.js +0 -11
  1148. package/dist/chunks/chunk.FM5ENKI6.js +0 -11
  1149. package/dist/chunks/chunk.FSGSFQFY.js +0 -43
  1150. package/dist/chunks/chunk.FUTLNYKY.js +0 -262
  1151. package/dist/chunks/chunk.FWCHY6C4.js +0 -484
  1152. package/dist/chunks/chunk.G4FDMA5K.js +0 -21
  1153. package/dist/chunks/chunk.GCFEUSUL.js +0 -21
  1154. package/dist/chunks/chunk.GMHPIB55.js +0 -61
  1155. package/dist/chunks/chunk.GMMKTV4V.js +0 -11
  1156. package/dist/chunks/chunk.GNEHDIYJ.js +0 -28
  1157. package/dist/chunks/chunk.GOUVLQBF.js +0 -21
  1158. package/dist/chunks/chunk.GP55JK77.js +0 -21
  1159. package/dist/chunks/chunk.GTAPYKS6.js +0 -25
  1160. package/dist/chunks/chunk.H56NTNBW.js +0 -11
  1161. package/dist/chunks/chunk.HETGYAIO.js +0 -48
  1162. package/dist/chunks/chunk.HSQFX4AI.js +0 -29
  1163. package/dist/chunks/chunk.HTALZVYR.js +0 -11
  1164. package/dist/chunks/chunk.HUXLAZB4.js +0 -11
  1165. package/dist/chunks/chunk.HZGL7RFR.js +0 -11
  1166. package/dist/chunks/chunk.HZJ3FPWX.js +0 -525
  1167. package/dist/chunks/chunk.IGMGR4ZS.js +0 -101
  1168. package/dist/chunks/chunk.IHWF6YAG.js +0 -11
  1169. package/dist/chunks/chunk.IKVDW6B4.js +0 -24
  1170. package/dist/chunks/chunk.IRBK2ABM.js +0 -214
  1171. package/dist/chunks/chunk.ITXGVZ3Z.js +0 -24
  1172. package/dist/chunks/chunk.J2CM4WQY.js +0 -25
  1173. package/dist/chunks/chunk.JIEKTF4Q.js +0 -67
  1174. package/dist/chunks/chunk.JIXCGGBH.js +0 -11
  1175. package/dist/chunks/chunk.JQYBVE6K.js +0 -11
  1176. package/dist/chunks/chunk.JQZKVVMA.js +0 -2160
  1177. package/dist/chunks/chunk.JRY3VDVA.js +0 -21
  1178. package/dist/chunks/chunk.JY44NYXW.js +0 -240
  1179. package/dist/chunks/chunk.JYPYYB7H.js +0 -355
  1180. package/dist/chunks/chunk.KA344ZWW.js +0 -180
  1181. package/dist/chunks/chunk.KDFIJ2XZ.js +0 -21
  1182. package/dist/chunks/chunk.KREYCF2O.js +0 -21
  1183. package/dist/chunks/chunk.KYVRLVBM.js +0 -124
  1184. package/dist/chunks/chunk.L2F66NTF.js +0 -11
  1185. package/dist/chunks/chunk.L7HBQCK2.js +0 -21
  1186. package/dist/chunks/chunk.LFGKDLWB.js +0 -11
  1187. package/dist/chunks/chunk.LKC67DSF.js +0 -11
  1188. package/dist/chunks/chunk.LLJK5HH7.js +0 -29
  1189. package/dist/chunks/chunk.LMTCPKOW.js +0 -58
  1190. package/dist/chunks/chunk.LNJDOWJT.js +0 -11
  1191. package/dist/chunks/chunk.LSVWT3PR.js +0 -345
  1192. package/dist/chunks/chunk.M7I7E4A3.js +0 -33
  1193. package/dist/chunks/chunk.MBN5DJT2.js +0 -21
  1194. package/dist/chunks/chunk.MHQYU34F.js +0 -21
  1195. package/dist/chunks/chunk.MPGLTYB6.js +0 -11
  1196. package/dist/chunks/chunk.N4TIYPDB.js +0 -21
  1197. package/dist/chunks/chunk.NBQU43OA.js +0 -21
  1198. package/dist/chunks/chunk.NCGR4ABQ.js +0 -97
  1199. package/dist/chunks/chunk.NMIMLWDR.js +0 -11
  1200. package/dist/chunks/chunk.NVNFECEI.js +0 -24
  1201. package/dist/chunks/chunk.NVUIBB4S.js +0 -11
  1202. package/dist/chunks/chunk.NWAYZFWI.js +0 -11
  1203. package/dist/chunks/chunk.NY7KKKRO.js +0 -230
  1204. package/dist/chunks/chunk.NZ3NKZKC.js +0 -24
  1205. package/dist/chunks/chunk.O5MZZQEP.js +0 -21
  1206. package/dist/chunks/chunk.OA5W6DJB.js +0 -11
  1207. package/dist/chunks/chunk.OAB3DDK5.js +0 -11
  1208. package/dist/chunks/chunk.OCEDSOZX.js +0 -11
  1209. package/dist/chunks/chunk.OKBW6URU.js +0 -11
  1210. package/dist/chunks/chunk.OVOPZGEQ.js +0 -11
  1211. package/dist/chunks/chunk.OXLDFPNG.js +0 -21
  1212. package/dist/chunks/chunk.P67X474T.js +0 -27
  1213. package/dist/chunks/chunk.P6JXLYSN.js +0 -272
  1214. package/dist/chunks/chunk.PADXM5M4.js +0 -11
  1215. package/dist/chunks/chunk.PHMEQKNL.js +0 -844
  1216. package/dist/chunks/chunk.PKDYXLVJ.js +0 -24
  1217. package/dist/chunks/chunk.POZSYZAF.js +0 -986
  1218. package/dist/chunks/chunk.PPJMSHGN.js +0 -11
  1219. package/dist/chunks/chunk.PX354GM6.js +0 -24
  1220. package/dist/chunks/chunk.Q5243NGP.js +0 -25
  1221. package/dist/chunks/chunk.Q5BAROG6.js +0 -11
  1222. package/dist/chunks/chunk.QERV4LTZ.js +0 -52
  1223. package/dist/chunks/chunk.QJQRZAWC.js +0 -365
  1224. package/dist/chunks/chunk.QT2W6HFD.js +0 -252
  1225. package/dist/chunks/chunk.QVAO6BXX.js +0 -21
  1226. package/dist/chunks/chunk.R27R2AP4.js +0 -121
  1227. package/dist/chunks/chunk.RB3PF4D4.js +0 -143
  1228. package/dist/chunks/chunk.RB5DJUVF.js +0 -27
  1229. package/dist/chunks/chunk.RD2C6T6M.js +0 -21
  1230. package/dist/chunks/chunk.RO4MUFVF.js +0 -67
  1231. package/dist/chunks/chunk.S26GNPAB.js +0 -123
  1232. package/dist/chunks/chunk.S3WMAEHE.js +0 -145
  1233. package/dist/chunks/chunk.SGCHDWXR.js +0 -11
  1234. package/dist/chunks/chunk.SKC62H4B.js +0 -11
  1235. package/dist/chunks/chunk.SOPQY2QK.js +0 -21
  1236. package/dist/chunks/chunk.T26ST6IU.js +0 -244
  1237. package/dist/chunks/chunk.T4NPZPD3.js +0 -443
  1238. package/dist/chunks/chunk.T5D6H2LT.js +0 -112
  1239. package/dist/chunks/chunk.T6IXCNHI.js +0 -213
  1240. package/dist/chunks/chunk.TIGMAWX4.js +0 -24
  1241. package/dist/chunks/chunk.TMB4QBMB.js +0 -11
  1242. package/dist/chunks/chunk.TPSLZ3TQ.js +0 -11
  1243. package/dist/chunks/chunk.TT3GKM5K.js +0 -247
  1244. package/dist/chunks/chunk.U3YHERE2.js +0 -11
  1245. package/dist/chunks/chunk.U4G2J5CP.js +0 -25
  1246. package/dist/chunks/chunk.U7E4P6HB.js +0 -220
  1247. package/dist/chunks/chunk.UGC5X6N6.js +0 -11
  1248. package/dist/chunks/chunk.UOPABB4M.js +0 -11
  1249. package/dist/chunks/chunk.UYM4IZDG.js +0 -264
  1250. package/dist/chunks/chunk.V7YAD2DD.js +0 -11
  1251. package/dist/chunks/chunk.VZKXMTPH.js +0 -220
  1252. package/dist/chunks/chunk.W4OTNTHJ.js +0 -11
  1253. package/dist/chunks/chunk.WB55OBFF.js +0 -2235
  1254. package/dist/chunks/chunk.WMBZEBFZ.js +0 -83
  1255. package/dist/chunks/chunk.WVISM2XC.js +0 -31
  1256. package/dist/chunks/chunk.WWHBYZSK.js +0 -52
  1257. package/dist/chunks/chunk.WYB3Y5OW.js +0 -26
  1258. package/dist/chunks/chunk.X2LVPENQ.js +0 -78
  1259. package/dist/chunks/chunk.X3AHCDBL.js +0 -11
  1260. package/dist/chunks/chunk.X7ZDUHWH.js +0 -11
  1261. package/dist/chunks/chunk.XCEIA7BY.js +0 -21
  1262. package/dist/chunks/chunk.XFRO2CBR.js +0 -21
  1263. package/dist/chunks/chunk.XR75EBXL.js +0 -24
  1264. package/dist/chunks/chunk.XRH6YDK4.js +0 -153
  1265. package/dist/chunks/chunk.XZTZVISY.js +0 -91
  1266. package/dist/chunks/chunk.Y6FMCUGS.js +0 -11
  1267. package/dist/chunks/chunk.Y6RWRJYS.js +0 -11
  1268. package/dist/chunks/chunk.YBIDA2BA.js +0 -64
  1269. package/dist/chunks/chunk.ZBDDC5PN.js +0 -11
  1270. package/dist/chunks/chunk.ZDDLBZZE.js +0 -24
  1271. package/dist/chunks/chunk.ZFEQ3S27.js +0 -592
  1272. package/dist/chunks/chunk.ZLFMCRKN.js +0 -960
  1273. package/dist/terra_ui_components-0.0.165-py3-none-any.whl +0 -0
  1274. package/dist/terra_ui_components-0.0.165.tar.gz +0 -0
@@ -1,2160 +0,0 @@
1
- import {
2
- date_picker_styles_default
3
- } from "./chunk.6BJRMCOW.js";
4
- import {
5
- TerraInput
6
- } from "./chunk.5356OGOU.js";
7
- import {
8
- TerraDropdown
9
- } from "./chunk.HZJ3FPWX.js";
10
- import {
11
- TerraButton
12
- } from "./chunk.3E224JEK.js";
13
- import {
14
- TerraElement,
15
- component_styles_default
16
- } from "./chunk.BMP66UJR.js";
17
- import {
18
- __decorateClass
19
- } from "./chunk.SHKVBVTI.js";
20
-
21
- // src/components/date-picker/date-picker.component.ts
22
- import { property, state, query } from "lit/decorators.js";
23
- import { html } from "lit";
24
- import { createRef, ref } from "lit/directives/ref.js";
25
- import { isValid } from "date-fns";
26
- var TerraDatePicker = class extends TerraElement {
27
- constructor() {
28
- super();
29
- this.range = false;
30
- this.hideLabel = false;
31
- this.label = "Select Date";
32
- this.helpText = "";
33
- this.startHelpText = "";
34
- this.endHelpText = "";
35
- this.showPresets = false;
36
- this.presets = [];
37
- this.enableTime = false;
38
- this.inline = false;
39
- this.splitInputs = false;
40
- this.placeholder = "Select Date";
41
- this.startPlaceholder = "Start Date";
42
- this.endPlaceholder = "End Date";
43
- this.role = "group";
44
- this.ariaLabel = "Date picker";
45
- this.isOpen = false;
46
- this.leftMonth = /* @__PURE__ */ new Date();
47
- this.rightMonth = /* @__PURE__ */ new Date();
48
- this.selectedStart = null;
49
- this.selectedEnd = null;
50
- this.hoverDate = null;
51
- this.isSelectingRange = false;
52
- this.showLeftMonthDropdown = false;
53
- this.showRightMonthDropdown = false;
54
- this.startHour = 0;
55
- this.startMinute = 0;
56
- this.startSecond = 0;
57
- this.endHour = 23;
58
- this.endMinute = 59;
59
- this.endSecond = 59;
60
- this.selectedDates = {
61
- startDate: (/* @__PURE__ */ new Date()).toString(),
62
- endDate: (/* @__PURE__ */ new Date()).toString()
63
- };
64
- this.dropdownRef = createRef();
65
- this.DAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
66
- this.MONTHS = [
67
- "January",
68
- "February",
69
- "March",
70
- "April",
71
- "May",
72
- "June",
73
- "July",
74
- "August",
75
- "September",
76
- "October",
77
- "November",
78
- "December"
79
- ];
80
- this.initializePresets();
81
- }
82
- /**
83
- * Parse a date string (YYYY-MM-DD or ISO datetime) as a local date, avoiding timezone issues.
84
- * When you do `new Date("2024-03-20")`, JavaScript interprets it as UTC midnight,
85
- * which can cause off-by-one day errors when using getDate() in local timezone.
86
- * This function parses the date as a local date instead.
87
- *
88
- * When enableTime is true, datetime strings are parsed as UTC to match API min/max dates.
89
- */
90
- parseLocalDate(dateString) {
91
- const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
92
- if (dateOnlyPattern.test(dateString)) {
93
- const [year, month, day] = dateString.split("-").map(Number);
94
- if (this.enableTime) {
95
- return new Date(Date.UTC(year, month - 1, day, 0, 0, 0));
96
- }
97
- return new Date(year, month - 1, day);
98
- }
99
- const dateTimePattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/;
100
- if (dateTimePattern.test(dateString)) {
101
- const [datePart, timePart] = dateString.split("T");
102
- const [year, month, day] = datePart.split("-").map(Number);
103
- const [hours, minutes, seconds] = timePart.split(":").map(Number);
104
- return new Date(Date.UTC(year, month - 1, day, hours, minutes, seconds));
105
- }
106
- return new Date(dateString);
107
- }
108
- /**
109
- * Check if two dates are in the same calendar month and year
110
- */
111
- isSameMonth(date1, date2) {
112
- if (this.enableTime) {
113
- return date1.getUTCFullYear() === date2.getUTCFullYear() && date1.getUTCMonth() === date2.getUTCMonth();
114
- }
115
- return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth();
116
- }
117
- /**
118
- * Check if a date's month/year matches a given month Date
119
- */
120
- isDateInMonth(date, monthDate) {
121
- if (this.enableTime) {
122
- return date.getUTCFullYear() === monthDate.getUTCFullYear() && date.getUTCMonth() === monthDate.getUTCMonth();
123
- }
124
- return date.getFullYear() === monthDate.getFullYear() && date.getMonth() === monthDate.getMonth();
125
- }
126
- getBounds() {
127
- const min = this.minDate ? this.parseLocalDate(this.minDate) : void 0;
128
- const max = this.maxDate ? this.parseLocalDate(this.maxDate) : void 0;
129
- return { min, max };
130
- }
131
- doesRangeOverlapBounds(range) {
132
- const { startDate, endDate } = range;
133
- const { min, max } = this.getBounds();
134
- if (!this.range) {
135
- if (!startDate)
136
- return false;
137
- if (min && startDate < min)
138
- return false;
139
- if (max && startDate > max)
140
- return false;
141
- return true;
142
- }
143
- const start = startDate != null ? startDate : /* @__PURE__ */ new Date(-864e13);
144
- const end = endDate != null ? endDate : /* @__PURE__ */ new Date(864e13);
145
- if (!min && !max)
146
- return true;
147
- const windowStart = min != null ? min : /* @__PURE__ */ new Date(-864e13);
148
- const windowEnd = max != null ? max : /* @__PURE__ */ new Date(864e13);
149
- return end >= windowStart && start <= windowEnd;
150
- }
151
- isPresetWithinBounds(range) {
152
- return this.doesRangeOverlapBounds(range);
153
- }
154
- get filteredPresets() {
155
- return (this.presets || []).filter(
156
- (preset) => this.isPresetWithinBounds(preset.getValue())
157
- );
158
- }
159
- open() {
160
- this.isOpen = true;
161
- if (this.maxDate && !this.selectedStart && !this.selectedEnd) {
162
- const max = this.parseLocalDate(this.maxDate);
163
- if (!isNaN(max.getTime())) {
164
- if (this.range) {
165
- this.rightMonth = new Date(max);
166
- const left = new Date(max);
167
- left.setMonth(left.getMonth() - 1);
168
- this.leftMonth = left;
169
- } else {
170
- this.leftMonth = new Date(max);
171
- }
172
- }
173
- }
174
- if (!this.inline && this.dropdownRef.value) {
175
- this.dropdownRef.value.show();
176
- }
177
- this.requestUpdate();
178
- }
179
- close() {
180
- this.isOpen = false;
181
- if (!this.inline && this.dropdownRef.value) {
182
- this.dropdownRef.value.hide();
183
- }
184
- this.requestUpdate();
185
- }
186
- setOpen(open) {
187
- if (open) {
188
- this.open();
189
- } else {
190
- this.close();
191
- }
192
- }
193
- willUpdate(changedProperties) {
194
- super.willUpdate(changedProperties);
195
- if (changedProperties.has("inline")) {
196
- if (this.inline) {
197
- this.isOpen = true;
198
- if (this.dropdownRef.value) {
199
- this.dropdownRef.value.hide();
200
- }
201
- }
202
- }
203
- if (changedProperties.has("minDate") || changedProperties.has("maxDate")) {
204
- if (this.maxDate && !this.selectedStart && !this.selectedEnd) {
205
- const max = this.parseLocalDate(this.maxDate);
206
- if (!isNaN(max.getTime())) {
207
- if (this.range) {
208
- this.rightMonth = new Date(max);
209
- const left = new Date(max);
210
- left.setMonth(left.getMonth() - 1);
211
- this.leftMonth = left;
212
- } else {
213
- this.leftMonth = new Date(max);
214
- }
215
- }
216
- }
217
- }
218
- if (changedProperties.has("startDate") || changedProperties.has("endDate")) {
219
- if (this.startDate) {
220
- const start = this.parseLocalDate(this.startDate);
221
- if (!isNaN(start.getTime())) {
222
- this.selectedStart = start;
223
- if (this.enableTime) {
224
- this.initializeTimeFromDate(start, true);
225
- }
226
- }
227
- } else {
228
- this.selectedStart = null;
229
- }
230
- if (this.range) {
231
- if (this.endDate) {
232
- const end = this.parseLocalDate(this.endDate);
233
- if (!isNaN(end.getTime())) {
234
- this.selectedEnd = end;
235
- if (this.enableTime) {
236
- this.initializeTimeFromDate(end, false);
237
- }
238
- }
239
- } else {
240
- this.selectedEnd = null;
241
- }
242
- if (this.selectedStart && this.selectedEnd) {
243
- const isSingleMonthRange = this.isSameMonth(
244
- this.selectedStart,
245
- this.selectedEnd
246
- );
247
- if (isSingleMonthRange) {
248
- if (this.isDateInMonth(this.selectedStart, this.leftMonth)) {
249
- this.leftMonth = new Date(this.selectedStart);
250
- if (this.isDateInMonth(
251
- this.selectedStart,
252
- this.rightMonth
253
- )) {
254
- this.rightMonth = new Date(this.selectedStart);
255
- this.rightMonth.setMonth(
256
- this.rightMonth.getMonth() + 1
257
- );
258
- }
259
- } else if (this.isDateInMonth(this.selectedStart, this.rightMonth)) {
260
- this.rightMonth = new Date(this.selectedStart);
261
- } else {
262
- this.leftMonth = new Date(this.selectedStart);
263
- }
264
- } else {
265
- this.leftMonth = new Date(this.selectedStart);
266
- this.rightMonth = new Date(this.selectedEnd);
267
- }
268
- } else if (this.selectedStart) {
269
- this.leftMonth = new Date(this.selectedStart);
270
- this.rightMonth = new Date(this.leftMonth);
271
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
272
- }
273
- } else {
274
- if (this.selectedStart) {
275
- this.leftMonth = new Date(this.selectedStart);
276
- }
277
- this.selectedEnd = null;
278
- }
279
- }
280
- }
281
- initializePresets() {
282
- if (this.presets.length === 0) {
283
- this.presets = [
284
- {
285
- label: "Today",
286
- getValue: () => {
287
- const today = /* @__PURE__ */ new Date();
288
- return {
289
- startDate: today,
290
- endDate: this.range ? today : null
291
- };
292
- }
293
- },
294
- {
295
- label: "Yesterday",
296
- getValue: () => {
297
- const yesterday = /* @__PURE__ */ new Date();
298
- yesterday.setDate(yesterday.getDate() - 1);
299
- return {
300
- startDate: yesterday,
301
- endDate: this.range ? yesterday : null
302
- };
303
- }
304
- },
305
- {
306
- label: "Last 7 days",
307
- getValue: () => {
308
- const end = /* @__PURE__ */ new Date();
309
- const start = /* @__PURE__ */ new Date();
310
- start.setDate(start.getDate() - 6);
311
- return { startDate: start, endDate: end };
312
- }
313
- },
314
- {
315
- label: "Last 30 days",
316
- getValue: () => {
317
- const end = /* @__PURE__ */ new Date();
318
- const start = /* @__PURE__ */ new Date();
319
- start.setDate(start.getDate() - 29);
320
- return { startDate: start, endDate: end };
321
- }
322
- },
323
- {
324
- label: "Last 6 months",
325
- getValue: () => {
326
- const end = /* @__PURE__ */ new Date();
327
- const start = /* @__PURE__ */ new Date();
328
- start.setMonth(start.getMonth() - 6);
329
- return { startDate: start, endDate: end };
330
- }
331
- },
332
- {
333
- label: "Last year",
334
- getValue: () => {
335
- const end = /* @__PURE__ */ new Date();
336
- const start = /* @__PURE__ */ new Date();
337
- start.setFullYear(start.getFullYear() - 1);
338
- return { startDate: start, endDate: end };
339
- }
340
- },
341
- {
342
- label: "All time",
343
- getValue: () => {
344
- const { min, max } = this.getBounds();
345
- return {
346
- startDate: min || null,
347
- endDate: max || null
348
- };
349
- }
350
- }
351
- ];
352
- }
353
- }
354
- firstUpdated() {
355
- const params = new URLSearchParams(window.location.search);
356
- const timeStartParam = params.get("time_start") || this.startDate;
357
- const timeEndParam = params.get("time_end") || this.endDate;
358
- if (timeStartParam) {
359
- this.selectedStart = this.parseLocalDate(timeStartParam);
360
- this.leftMonth = new Date(this.selectedStart);
361
- if (this.enableTime) {
362
- this.initializeTimeFromDate(this.selectedStart, true);
363
- }
364
- }
365
- if (this.range && timeEndParam) {
366
- this.selectedEnd = this.parseLocalDate(timeEndParam);
367
- if (this.enableTime) {
368
- this.initializeTimeFromDate(this.selectedEnd, false);
369
- }
370
- if (this.selectedStart && this.selectedEnd) {
371
- const isSingleMonthRange = this.isSameMonth(
372
- this.selectedStart,
373
- this.selectedEnd
374
- );
375
- if (isSingleMonthRange) {
376
- this.rightMonth = new Date(this.selectedStart);
377
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
378
- } else {
379
- this.rightMonth = new Date(this.selectedEnd);
380
- }
381
- } else if (this.selectedEnd) {
382
- this.rightMonth = new Date(this.selectedEnd);
383
- }
384
- }
385
- if (this.range && !timeEndParam) {
386
- this.rightMonth = new Date(this.leftMonth);
387
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
388
- }
389
- if (this.inline) {
390
- this.isOpen = true;
391
- }
392
- }
393
- disconnectedCallback() {
394
- super.disconnectedCallback();
395
- }
396
- handleDropdownShow() {
397
- this.isOpen = true;
398
- }
399
- handleDropdownHide() {
400
- this.isOpen = false;
401
- }
402
- formatDisplayDate(date, isStart = true) {
403
- if (!date)
404
- return "";
405
- const format = this.displayFormat || (this.enableTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
406
- if (this.enableTime) {
407
- const year2 = date.getUTCFullYear();
408
- const month2 = String(date.getUTCMonth() + 1).padStart(2, "0");
409
- const day2 = String(date.getUTCDate()).padStart(2, "0");
410
- const hours = String(isStart ? this.startHour : this.endHour).padStart(
411
- 2,
412
- "0"
413
- );
414
- const minutes = String(
415
- isStart ? this.startMinute : this.endMinute
416
- ).padStart(2, "0");
417
- const seconds = String(
418
- isStart ? this.startSecond : this.endSecond
419
- ).padStart(2, "0");
420
- return format.replace("YYYY", year2.toString()).replace("MM", month2).replace("DD", day2).replace("HH", hours).replace("mm", minutes).replace("ss", seconds);
421
- }
422
- const year = date.getFullYear();
423
- const month = String(date.getMonth() + 1).padStart(2, "0");
424
- const day = String(date.getDate()).padStart(2, "0");
425
- return format.replace("YYYY", year.toString()).replace("MM", month).replace("DD", day);
426
- }
427
- getDisplayValue() {
428
- if (this.range) {
429
- if (this.selectedStart && this.selectedEnd) {
430
- return `${this.formatDisplayDate(this.selectedStart, true)} \u2013 ${this.formatDisplayDate(this.selectedEnd, false)}`;
431
- } else if (this.selectedStart) {
432
- return this.formatDisplayDate(this.selectedStart, true);
433
- }
434
- return "";
435
- } else {
436
- return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
437
- }
438
- }
439
- getStartDateDisplayValue() {
440
- return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
441
- }
442
- getEndDateDisplayValue() {
443
- return this.selectedEnd ? this.formatDisplayDate(this.selectedEnd, false) : "";
444
- }
445
- parseAndFormatDate(dateStr) {
446
- const trimmed = dateStr.trim();
447
- if (!trimmed)
448
- return null;
449
- const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
450
- const dateTimePattern = /^\d{4}-\d{2}-\d{2}[T\s]\d{1,2}:\d{2}(:\d{2})?$/;
451
- let date;
452
- if (dateOnlyPattern.test(trimmed)) {
453
- date = this.parseLocalDate(trimmed);
454
- } else if (this.enableTime && dateTimePattern.test(trimmed)) {
455
- const [datePart, timePart] = trimmed.split(/[T\s]+/);
456
- const [year, month, day] = datePart.split("-").map(Number);
457
- const timeComponents = timePart.split(":").map(Number);
458
- const hours = timeComponents[0] || 0;
459
- const minutes = timeComponents[1] || 0;
460
- const seconds = timeComponents[2] || 0;
461
- date = new Date(Date.UTC(year, month - 1, day, hours, minutes, seconds));
462
- } else {
463
- date = new Date(trimmed);
464
- if (!isValid(date)) {
465
- return null;
466
- }
467
- }
468
- if (!isValid(date)) {
469
- return null;
470
- }
471
- if (this.enableTime) {
472
- if (dateOnlyPattern.test(trimmed)) {
473
- return trimmed;
474
- } else {
475
- const utcYear = date.getUTCFullYear();
476
- const utcMonth = date.getUTCMonth() + 1;
477
- const utcDay = date.getUTCDate();
478
- const utcHours = date.getUTCHours();
479
- const utcMinutes = date.getUTCMinutes();
480
- const utcSeconds = date.getUTCSeconds();
481
- return `${utcYear}-${String(utcMonth).padStart(2, "0")}-${String(utcDay).padStart(2, "0")}T${String(utcHours).padStart(2, "0")}:${String(utcMinutes).padStart(2, "0")}:${String(utcSeconds).padStart(2, "0")}`;
482
- }
483
- } else {
484
- const year = date.getFullYear();
485
- const month = date.getMonth() + 1;
486
- const day = date.getDate();
487
- return `${year}-${String(month).padStart(2, "0")}-${String(day).padStart(2, "0")}`;
488
- }
489
- }
490
- clearInputValidation() {
491
- const inputs = this.renderRoot.querySelectorAll("terra-input");
492
- inputs.forEach((input) => {
493
- input.setCustomValidity("");
494
- });
495
- }
496
- /**
497
- * Format a date string for display in error messages
498
- * When time is disabled, only show the date portion (YYYY-MM-DD)
499
- */
500
- formatDateForError(dateString) {
501
- if (!this.enableTime) {
502
- return dateString.split("T")[0];
503
- }
504
- return dateString;
505
- }
506
- /**
507
- * Set validation error on input and emit invalid event
508
- */
509
- setInputValidationError(input, message) {
510
- input.setCustomValidity(message);
511
- requestAnimationFrame(() => {
512
- ;
513
- input.validationErrorMessage = message;
514
- input.requestUpdate();
515
- });
516
- this.emit("terra-date-selection-invalid", {
517
- detail: { message }
518
- });
519
- }
520
- handleInputBlur(event) {
521
- const input = event.target;
522
- const value = input.value || "";
523
- if (!value.trim()) {
524
- this.selectedStart = null;
525
- this.selectedEnd = null;
526
- input.setCustomValidity("");
527
- this.emitChange();
528
- return;
529
- }
530
- if (this.range) {
531
- const parts = value.split(" - ");
532
- if (parts.length !== 2) {
533
- const message = "Date range must be in format: YYYY-MM-DD - YYYY-MM-DD";
534
- this.setInputValidationError(input, message);
535
- return;
536
- }
537
- const startFormatted = this.parseAndFormatDate(parts[0]);
538
- const endFormatted = this.parseAndFormatDate(parts[1]);
539
- if (!startFormatted) {
540
- const message = "Invalid start date format";
541
- this.setInputValidationError(input, message);
542
- return;
543
- }
544
- if (!endFormatted) {
545
- const message = "Invalid end date format";
546
- this.setInputValidationError(input, message);
547
- return;
548
- }
549
- let start;
550
- let end;
551
- if (this.enableTime && startFormatted.includes("T")) {
552
- start = new Date(startFormatted);
553
- this.initializeTimeFromDate(start, true);
554
- } else if (this.enableTime) {
555
- const [year, month, day] = startFormatted.split("-").map(Number);
556
- start = new Date(
557
- Date.UTC(
558
- year,
559
- month - 1,
560
- day,
561
- this.startHour,
562
- this.startMinute,
563
- this.startSecond
564
- )
565
- );
566
- } else {
567
- start = this.parseLocalDate(startFormatted);
568
- }
569
- if (this.enableTime && endFormatted.includes("T")) {
570
- end = new Date(endFormatted);
571
- this.initializeTimeFromDate(end, false);
572
- } else if (this.enableTime) {
573
- const [year, month, day] = endFormatted.split("-").map(Number);
574
- end = new Date(
575
- Date.UTC(
576
- year,
577
- month - 1,
578
- day,
579
- this.endHour,
580
- this.endMinute,
581
- this.endSecond
582
- )
583
- );
584
- } else {
585
- end = this.parseLocalDate(endFormatted);
586
- }
587
- let finalStart = start;
588
- let finalEnd = end;
589
- if (start > end) {
590
- finalStart = end;
591
- finalEnd = start;
592
- }
593
- if (this.minDate) {
594
- const min = this.parseLocalDate(this.minDate);
595
- if (finalStart < min) {
596
- const message = `Start date must be on or after ${this.formatDateForError(this.minDate)}`;
597
- this.setInputValidationError(input, message);
598
- return;
599
- }
600
- }
601
- if (this.maxDate) {
602
- const max = this.parseLocalDate(this.maxDate);
603
- if (finalEnd > max) {
604
- const message = `End date must be on or before ${this.formatDateForError(this.maxDate)}`;
605
- this.setInputValidationError(input, message);
606
- return;
607
- }
608
- }
609
- this.selectedStart = finalStart;
610
- this.selectedEnd = finalEnd;
611
- this.updateMonthViews();
612
- input.value = `${startFormatted} - ${endFormatted}`;
613
- input.setCustomValidity("");
614
- this.emitChange();
615
- } else {
616
- const formatted = this.parseAndFormatDate(value);
617
- if (!formatted) {
618
- const message = "Invalid date format";
619
- this.setInputValidationError(input, message);
620
- return;
621
- }
622
- let date;
623
- if (this.enableTime && formatted.includes("T")) {
624
- date = new Date(formatted);
625
- this.initializeTimeFromDate(date, true);
626
- } else if (this.enableTime) {
627
- const [year, month, day] = formatted.split("-").map(Number);
628
- date = new Date(
629
- Date.UTC(
630
- year,
631
- month - 1,
632
- day,
633
- this.startHour,
634
- this.startMinute,
635
- this.startSecond
636
- )
637
- );
638
- } else {
639
- date = this.parseLocalDate(formatted);
640
- }
641
- if (this.minDate) {
642
- const min = this.parseLocalDate(this.minDate);
643
- if (date < min) {
644
- const message = `Date must be on or after ${this.formatDateForError(this.minDate)}`;
645
- this.setInputValidationError(input, message);
646
- return;
647
- }
648
- }
649
- if (this.maxDate) {
650
- const max = this.parseLocalDate(this.maxDate);
651
- if (date > max) {
652
- const message = `Date must be on or before ${this.formatDateForError(this.maxDate)}`;
653
- this.setInputValidationError(input, message);
654
- return;
655
- }
656
- }
657
- this.selectedStart = date;
658
- this.selectedEnd = null;
659
- this.updateMonthViews();
660
- input.value = formatted;
661
- input.setCustomValidity("");
662
- this.emitChange();
663
- }
664
- }
665
- handleStartInputBlur(event) {
666
- const input = event.target;
667
- const value = input.value || "";
668
- if (!value.trim()) {
669
- this.selectedStart = null;
670
- input.setCustomValidity("");
671
- this.emitChange();
672
- return;
673
- }
674
- const formatted = this.parseAndFormatDate(value);
675
- if (!formatted) {
676
- const message = "Invalid date format";
677
- this.setInputValidationError(input, message);
678
- return;
679
- }
680
- let date;
681
- if (this.enableTime && formatted.includes("T")) {
682
- date = new Date(formatted);
683
- this.initializeTimeFromDate(date, true);
684
- } else if (this.enableTime) {
685
- const [year, month, day] = formatted.split("-").map(Number);
686
- date = new Date(
687
- Date.UTC(
688
- year,
689
- month - 1,
690
- day,
691
- this.startHour,
692
- this.startMinute,
693
- this.startSecond
694
- )
695
- );
696
- } else {
697
- date = this.parseLocalDate(formatted);
698
- }
699
- if (this.minDate) {
700
- const min = this.parseLocalDate(this.minDate);
701
- if (date < min) {
702
- const message = `Date must be on or after ${this.formatDateForError(this.minDate)}`;
703
- this.setInputValidationError(input, message);
704
- return;
705
- }
706
- }
707
- if (this.maxDate) {
708
- const max = this.parseLocalDate(this.maxDate);
709
- if (date > max) {
710
- const message = `Date must be on or before ${this.formatDateForError(this.maxDate)}`;
711
- this.setInputValidationError(input, message);
712
- return;
713
- }
714
- }
715
- if (this.selectedEnd && date > this.selectedEnd) {
716
- const message = "Start date must be before end date";
717
- this.setInputValidationError(input, message);
718
- return;
719
- }
720
- this.selectedStart = date;
721
- this.leftMonth = new Date(date);
722
- input.value = formatted;
723
- input.setCustomValidity("");
724
- this.emitChange();
725
- }
726
- handleEndInputBlur(event) {
727
- const input = event.target;
728
- const value = input.value || "";
729
- if (!value.trim()) {
730
- this.selectedEnd = null;
731
- input.setCustomValidity("");
732
- this.emitChange();
733
- return;
734
- }
735
- const formatted = this.parseAndFormatDate(value);
736
- if (!formatted) {
737
- const message = "Invalid date format";
738
- this.setInputValidationError(input, message);
739
- return;
740
- }
741
- let date;
742
- if (this.enableTime && formatted.includes("T")) {
743
- date = new Date(formatted);
744
- this.initializeTimeFromDate(date, false);
745
- } else if (this.enableTime) {
746
- const [year, month, day] = formatted.split("-").map(Number);
747
- date = new Date(
748
- Date.UTC(
749
- year,
750
- month - 1,
751
- day,
752
- this.endHour,
753
- this.endMinute,
754
- this.endSecond
755
- )
756
- );
757
- } else {
758
- date = this.parseLocalDate(formatted);
759
- }
760
- if (this.minDate) {
761
- const min = this.parseLocalDate(this.minDate);
762
- if (date < min) {
763
- const message = `Date must be on or after ${this.formatDateForError(this.minDate)}`;
764
- this.setInputValidationError(input, message);
765
- return;
766
- }
767
- }
768
- if (this.maxDate) {
769
- const max = this.parseLocalDate(this.maxDate);
770
- if (date > max) {
771
- const message = `Date must be on or before ${this.formatDateForError(this.maxDate)}`;
772
- this.setInputValidationError(input, message);
773
- return;
774
- }
775
- }
776
- if (this.selectedStart) {
777
- if (this.enableTime && this.isSameDay(date, this.selectedStart)) {
778
- const startTimeSeconds = this.startHour * 3600 + this.startMinute * 60 + this.startSecond;
779
- const endTimeSeconds = this.endHour * 3600 + this.endMinute * 60 + this.endSecond;
780
- if (endTimeSeconds < startTimeSeconds) {
781
- const message = "End time must be after start time when dates are the same";
782
- this.setInputValidationError(input, message);
783
- return;
784
- }
785
- } else if (date < this.selectedStart) {
786
- const message = "End date must be after start date";
787
- this.setInputValidationError(input, message);
788
- return;
789
- }
790
- }
791
- this.selectedEnd = date;
792
- if (this.selectedStart && this.isSameMonth(this.selectedStart, this.selectedEnd)) {
793
- this.rightMonth = new Date(this.selectedStart);
794
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
795
- } else {
796
- this.rightMonth = new Date(date);
797
- }
798
- input.setCustomValidity("");
799
- this.emitChange();
800
- }
801
- updateMonthViews() {
802
- if (this.selectedStart) {
803
- this.leftMonth = new Date(this.selectedStart);
804
- if (this.range && this.selectedEnd) {
805
- if (this.isSameMonth(this.selectedStart, this.selectedEnd)) {
806
- this.rightMonth = new Date(this.selectedStart);
807
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
808
- } else {
809
- this.rightMonth = new Date(this.selectedEnd);
810
- }
811
- }
812
- }
813
- }
814
- handleKeydown(event) {
815
- if (event.key === " ") {
816
- event.stopPropagation();
817
- return;
818
- }
819
- if (event.key === "Enter") {
820
- event.preventDefault();
821
- this.handleInputBlur(event);
822
- }
823
- }
824
- previousMonth(isLeft) {
825
- if (isLeft) {
826
- const newMonth = new Date(this.leftMonth);
827
- newMonth.setMonth(newMonth.getMonth() - 1);
828
- this.leftMonth = newMonth;
829
- } else {
830
- const newMonth = new Date(this.rightMonth);
831
- newMonth.setMonth(newMonth.getMonth() - 1);
832
- this.rightMonth = newMonth;
833
- }
834
- }
835
- nextMonth(isLeft) {
836
- if (isLeft) {
837
- const newMonth = new Date(this.leftMonth);
838
- newMonth.setMonth(newMonth.getMonth() + 1);
839
- this.leftMonth = newMonth;
840
- } else {
841
- const newMonth = new Date(this.rightMonth);
842
- newMonth.setMonth(newMonth.getMonth() + 1);
843
- this.rightMonth = newMonth;
844
- }
845
- }
846
- toggleMonthDropdown(isLeft, event) {
847
- event.stopPropagation();
848
- if (isLeft) {
849
- this.showLeftMonthDropdown = !this.showLeftMonthDropdown;
850
- this.showRightMonthDropdown = false;
851
- } else {
852
- this.showRightMonthDropdown = !this.showRightMonthDropdown;
853
- this.showLeftMonthDropdown = false;
854
- }
855
- }
856
- selectMonth(month, isLeft) {
857
- if (isLeft) {
858
- const newMonth = new Date(this.leftMonth);
859
- newMonth.setDate(1);
860
- newMonth.setMonth(month);
861
- this.leftMonth = newMonth;
862
- this.showLeftMonthDropdown = false;
863
- } else {
864
- const newMonth = new Date(this.rightMonth);
865
- newMonth.setDate(1);
866
- newMonth.setMonth(month);
867
- this.rightMonth = newMonth;
868
- this.showRightMonthDropdown = false;
869
- }
870
- }
871
- changeYear(delta, isLeft) {
872
- if (isLeft) {
873
- const newMonth = new Date(this.leftMonth);
874
- newMonth.setFullYear(newMonth.getFullYear() + delta);
875
- this.leftMonth = newMonth;
876
- } else {
877
- const newMonth = new Date(this.rightMonth);
878
- newMonth.setFullYear(newMonth.getFullYear() + delta);
879
- this.rightMonth = newMonth;
880
- }
881
- }
882
- handleYearInput(event, isLeft) {
883
- const input = event.target;
884
- const year = parseInt(input.value, 10);
885
- if (!isNaN(year) && year >= 1900 && year <= 2100) {
886
- if (isLeft) {
887
- const newMonth = new Date(this.leftMonth);
888
- newMonth.setFullYear(year);
889
- this.leftMonth = newMonth;
890
- } else {
891
- const newMonth = new Date(this.rightMonth);
892
- newMonth.setFullYear(year);
893
- this.rightMonth = newMonth;
894
- }
895
- }
896
- }
897
- getDaysInMonth(date) {
898
- const year = date.getFullYear();
899
- const month = date.getMonth();
900
- const createDate = (y, m, d) => {
901
- if (this.enableTime) {
902
- return new Date(Date.UTC(y, m, d, 0, 0, 0));
903
- }
904
- return new Date(y, m, d);
905
- };
906
- const firstDay = createDate(year, month, 1);
907
- const lastDay = new Date(year, month + 1, 0);
908
- const days = [];
909
- const firstDayOfWeek = this.enableTime ? firstDay.getUTCDay() : firstDay.getDay();
910
- for (let i = firstDayOfWeek - 1; i >= 0; i--) {
911
- const day = createDate(year, month, -i);
912
- days.push(day);
913
- }
914
- for (let i = 1; i <= lastDay.getDate(); i++) {
915
- days.push(createDate(year, month, i));
916
- }
917
- const remainingDays = 7 - days.length % 7;
918
- if (remainingDays < 7) {
919
- for (let i = 1; i <= remainingDays; i++) {
920
- days.push(createDate(year, month + 1, i));
921
- }
922
- }
923
- return days;
924
- }
925
- isSameDay(date1, date2) {
926
- if (!date1 || !date2)
927
- return false;
928
- if (this.enableTime) {
929
- return date1.getUTCFullYear() === date2.getUTCFullYear() && date1.getUTCMonth() === date2.getUTCMonth() && date1.getUTCDate() === date2.getUTCDate();
930
- }
931
- return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
932
- }
933
- isInRange(date) {
934
- if (!this.selectedStart || !this.selectedEnd)
935
- return false;
936
- const time = date.getTime();
937
- return time >= this.selectedStart.getTime() && time <= this.selectedEnd.getTime();
938
- }
939
- isInHoverRange(date) {
940
- if (!this.range || !this.selectedStart || !this.hoverDate || this.selectedEnd)
941
- return false;
942
- const time = date.getTime();
943
- const start = Math.min(this.selectedStart.getTime(), this.hoverDate.getTime());
944
- const end = Math.max(this.selectedStart.getTime(), this.hoverDate.getTime());
945
- return time >= start && time <= end;
946
- }
947
- isDisabled(date) {
948
- if (this.minDate) {
949
- const min = this.parseLocalDate(this.minDate);
950
- const minMidnight = new Date(
951
- Date.UTC(min.getUTCFullYear(), min.getUTCMonth(), min.getUTCDate())
952
- );
953
- const dateMidnight = new Date(
954
- Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate())
955
- );
956
- if (dateMidnight < minMidnight)
957
- return true;
958
- }
959
- if (this.maxDate) {
960
- const max = this.parseLocalDate(this.maxDate);
961
- const maxMidnight = new Date(
962
- Date.UTC(max.getUTCFullYear(), max.getUTCMonth(), max.getUTCDate())
963
- );
964
- const dateMidnight = new Date(
965
- Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate())
966
- );
967
- if (dateMidnight > maxMidnight)
968
- return true;
969
- }
970
- return false;
971
- }
972
- selectDate(date) {
973
- if (this.isDisabled(date)) {
974
- this.emit("terra-date-selection-invalid", {
975
- detail: {
976
- message: `You are not allowed to select dates outside ${this.minDate} to ${this.maxDate}.`
977
- }
978
- });
979
- return;
980
- }
981
- this.clearInputValidation();
982
- if (this.range) {
983
- if (!this.selectedStart || this.selectedEnd) {
984
- this.selectedStart = date;
985
- this.selectedEnd = null;
986
- this.isSelectingRange = true;
987
- } else {
988
- if (date < this.selectedStart) {
989
- this.selectedEnd = this.selectedStart;
990
- this.selectedStart = date;
991
- } else {
992
- this.selectedEnd = date;
993
- }
994
- this.isSelectingRange = false;
995
- if (this.enableTime && this.selectedStart && this.selectedEnd && this.isSameDay(this.selectedStart, this.selectedEnd)) {
996
- const startTimeSeconds = this.startHour * 3600 + this.startMinute * 60 + this.startSecond;
997
- const endTimeSeconds = this.endHour * 3600 + this.endMinute * 60 + this.endSecond;
998
- if (endTimeSeconds < startTimeSeconds) {
999
- this.emit("terra-date-selection-invalid", {
1000
- detail: {
1001
- message: "End time is before start time. Please adjust the time values."
1002
- }
1003
- });
1004
- }
1005
- }
1006
- this.emitChange();
1007
- if (!this.inline) {
1008
- this.isOpen = false;
1009
- }
1010
- }
1011
- } else {
1012
- this.selectedStart = date;
1013
- this.selectedEnd = null;
1014
- this.emitChange();
1015
- if (!this.inline) {
1016
- this.isOpen = false;
1017
- }
1018
- }
1019
- }
1020
- handleDateHover(date) {
1021
- if (this.range && this.selectedStart && !this.selectedEnd) {
1022
- this.hoverDate = date;
1023
- }
1024
- }
1025
- selectPreset(preset) {
1026
- const { startDate, endDate } = preset.getValue();
1027
- if (!this.isPresetWithinBounds({ startDate, endDate })) {
1028
- this.emit("terra-date-selection-invalid", {
1029
- detail: {
1030
- message: `The preset "${preset.label}" is not available within the allowed date range ${this.minDate} to ${this.maxDate}.`
1031
- }
1032
- });
1033
- return;
1034
- }
1035
- this.clearInputValidation();
1036
- const { min, max } = this.getBounds();
1037
- if (this.range) {
1038
- let s = startDate;
1039
- let e = endDate;
1040
- if (s && min && s < min)
1041
- s = new Date(min);
1042
- if (s && max && s > max)
1043
- s = new Date(max);
1044
- if (e && min && e < min)
1045
- e = new Date(min);
1046
- if (e && max && e > max)
1047
- e = new Date(max);
1048
- if (s && e && e < s) {
1049
- const tmp = s;
1050
- s = e;
1051
- e = tmp;
1052
- }
1053
- this.selectedStart = s;
1054
- this.selectedEnd = e;
1055
- } else {
1056
- let s = startDate;
1057
- if (s && min && s < min)
1058
- s = new Date(min);
1059
- if (s && max && s > max)
1060
- s = new Date(max);
1061
- this.selectedStart = s;
1062
- this.selectedEnd = null;
1063
- }
1064
- if (this.selectedStart) {
1065
- this.leftMonth = new Date(this.selectedStart);
1066
- if (this.range && this.selectedEnd) {
1067
- this.rightMonth = new Date(this.selectedEnd);
1068
- }
1069
- }
1070
- this.emitChange();
1071
- if (!this.range && !this.inline) {
1072
- this.isOpen = false;
1073
- }
1074
- }
1075
- emitChange() {
1076
- let startDateTime = "";
1077
- let endDateTime = "";
1078
- if (this.selectedStart) {
1079
- if (this.enableTime) {
1080
- const startDate = new Date(this.selectedStart);
1081
- startDate.setUTCHours(
1082
- this.startHour,
1083
- this.startMinute,
1084
- this.startSecond,
1085
- 0
1086
- );
1087
- startDateTime = startDate.toISOString();
1088
- } else {
1089
- const year = this.selectedStart.getFullYear();
1090
- const month = String(this.selectedStart.getMonth() + 1).padStart(
1091
- 2,
1092
- "0"
1093
- );
1094
- const day = String(this.selectedStart.getDate()).padStart(2, "0");
1095
- startDateTime = `${year}-${month}-${day}`;
1096
- }
1097
- }
1098
- if (this.selectedEnd) {
1099
- if (this.enableTime) {
1100
- const endDate = new Date(this.selectedEnd);
1101
- endDate.setUTCHours(this.endHour, this.endMinute, this.endSecond, 0);
1102
- endDateTime = endDate.toISOString();
1103
- } else {
1104
- const year = this.selectedEnd.getFullYear();
1105
- const month = String(this.selectedEnd.getMonth() + 1).padStart(2, "0");
1106
- const day = String(this.selectedEnd.getDate()).padStart(2, "0");
1107
- endDateTime = `${year}-${month}-${day}`;
1108
- }
1109
- }
1110
- this.emit("terra-date-range-change", {
1111
- detail: {
1112
- startDate: startDateTime,
1113
- endDate: endDateTime
1114
- }
1115
- });
1116
- }
1117
- initializeTimeFromDate(date, isStart) {
1118
- const hours = date.getUTCHours();
1119
- const minutes = date.getUTCMinutes();
1120
- const seconds = date.getUTCSeconds();
1121
- if (isStart) {
1122
- this.startHour = hours;
1123
- this.startMinute = minutes;
1124
- this.startSecond = seconds;
1125
- } else {
1126
- this.endHour = hours;
1127
- this.endMinute = minutes;
1128
- this.endSecond = seconds;
1129
- }
1130
- }
1131
- changeTime(type, delta, isStart) {
1132
- if (type === "hour") {
1133
- if (isStart) {
1134
- let newHour = this.startHour + delta;
1135
- if (newHour > 23)
1136
- newHour = 0;
1137
- if (newHour < 0)
1138
- newHour = 23;
1139
- this.startHour = newHour;
1140
- } else {
1141
- let newHour = this.endHour + delta;
1142
- if (newHour > 23)
1143
- newHour = 0;
1144
- if (newHour < 0)
1145
- newHour = 23;
1146
- this.endHour = newHour;
1147
- }
1148
- } else if (type === "minute") {
1149
- if (isStart) {
1150
- let newMinute = this.startMinute + delta;
1151
- if (newMinute >= 60)
1152
- newMinute = 0;
1153
- if (newMinute < 0)
1154
- newMinute = 59;
1155
- this.startMinute = newMinute;
1156
- } else {
1157
- let newMinute = this.endMinute + delta;
1158
- if (newMinute >= 60)
1159
- newMinute = 0;
1160
- if (newMinute < 0)
1161
- newMinute = 59;
1162
- this.endMinute = newMinute;
1163
- }
1164
- } else {
1165
- if (isStart) {
1166
- let newSecond = this.startSecond + delta;
1167
- if (newSecond >= 60)
1168
- newSecond = 0;
1169
- if (newSecond < 0)
1170
- newSecond = 59;
1171
- this.startSecond = newSecond;
1172
- } else {
1173
- let newSecond = this.endSecond + delta;
1174
- if (newSecond >= 60)
1175
- newSecond = 0;
1176
- if (newSecond < 0)
1177
- newSecond = 59;
1178
- this.endSecond = newSecond;
1179
- }
1180
- }
1181
- this.emitChange();
1182
- this.requestUpdate();
1183
- }
1184
- handleTimeInput(event, type, isStart) {
1185
- const input = event.target;
1186
- let value = parseInt(input.value, 10);
1187
- if (type === "hour") {
1188
- if (isNaN(value) || value < 0 || value > 23) {
1189
- input.value = isStart ? this.startHour.toString().padStart(2, "0") : this.endHour.toString().padStart(2, "0");
1190
- return;
1191
- }
1192
- if (isStart)
1193
- this.startHour = value;
1194
- else
1195
- this.endHour = value;
1196
- } else if (type === "minute") {
1197
- if (isNaN(value) || value < 0 || value >= 60) {
1198
- input.value = isStart ? this.startMinute.toString().padStart(2, "0") : this.endMinute.toString().padStart(2, "0");
1199
- return;
1200
- }
1201
- if (isStart)
1202
- this.startMinute = value;
1203
- else
1204
- this.endMinute = value;
1205
- } else {
1206
- if (isNaN(value) || value < 0 || value >= 60) {
1207
- input.value = isStart ? this.startSecond.toString().padStart(2, "0") : this.endSecond.toString().padStart(2, "0");
1208
- return;
1209
- }
1210
- if (isStart)
1211
- this.startSecond = value;
1212
- else
1213
- this.endSecond = value;
1214
- }
1215
- this.emitChange();
1216
- this.requestUpdate();
1217
- }
1218
- renderCalendar(month, isLeft = true) {
1219
- const days = this.getDaysInMonth(month);
1220
- const currentMonth = month.getMonth();
1221
- const showDropdown = isLeft ? this.showLeftMonthDropdown : this.showRightMonthDropdown;
1222
- return html`
1223
- <div class="calendar">
1224
- <div class="calendar__header">
1225
- <button
1226
- type="button"
1227
- class="calendar__nav"
1228
- @click=${() => this.previousMonth(isLeft)}
1229
- >
1230
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
1231
- <path
1232
- d="M10 12L6 8L10 4"
1233
- stroke="currentColor"
1234
- stroke-width="2"
1235
- stroke-linecap="round"
1236
- stroke-linejoin="round"
1237
- />
1238
- </svg>
1239
- </button>
1240
-
1241
- <div class="calendar__month-year">
1242
- <div class="calendar__month-dropdown-wrapper">
1243
- <button
1244
- type="button"
1245
- class="calendar__month-button"
1246
- @click=${(e) => this.toggleMonthDropdown(isLeft, e)}
1247
- >
1248
- ${this.MONTHS[month.getMonth()]}
1249
- <svg
1250
- width="12"
1251
- height="12"
1252
- viewBox="0 0 12 12"
1253
- fill="none"
1254
- class="calendar__month-icon"
1255
- >
1256
- <path
1257
- d="M3 5L6 8L9 5"
1258
- stroke="currentColor"
1259
- stroke-width="1.5"
1260
- stroke-linecap="round"
1261
- stroke-linejoin="round"
1262
- />
1263
- </svg>
1264
- </button>
1265
-
1266
- ${showDropdown ? html`
1267
- <div class="calendar__month-dropdown">
1268
- ${this.MONTHS.map(
1269
- (monthName, index) => html`
1270
- <button
1271
- type="button"
1272
- class="calendar__month-option ${index === month.getMonth() ? "calendar__month-option--selected" : ""}"
1273
- @click=${() => this.selectMonth(
1274
- index,
1275
- isLeft
1276
- )}
1277
- >
1278
- ${index === month.getMonth() ? html`
1279
- <svg
1280
- width="16"
1281
- height="16"
1282
- viewBox="0 0 16 16"
1283
- fill="none"
1284
- class="calendar__month-check"
1285
- >
1286
- <path
1287
- d="M13 4L6 11L3 8"
1288
- stroke="currentColor"
1289
- stroke-width="2"
1290
- stroke-linecap="round"
1291
- stroke-linejoin="round"
1292
- />
1293
- </svg>
1294
- ` : ""}
1295
- ${monthName}
1296
- </button>
1297
- `
1298
- )}
1299
- </div>
1300
- ` : ""}
1301
- </div>
1302
-
1303
- <div class="calendar__year-input-wrapper">
1304
- <input
1305
- type="number"
1306
- class="calendar__year-input"
1307
- .value=${month.getFullYear().toString()}
1308
- @input=${(e) => this.handleYearInput(e, isLeft)}
1309
- @blur=${(e) => {
1310
- const input = e.target;
1311
- input.value = month.getFullYear().toString();
1312
- }}
1313
- min="1900"
1314
- max="2100"
1315
- />
1316
- <div class="calendar__year-spinners">
1317
- <button
1318
- type="button"
1319
- class="calendar__year-spinner calendar__year-spinner--up"
1320
- @click=${() => this.changeYear(1, isLeft)}
1321
- >
1322
- <svg
1323
- width="10"
1324
- height="10"
1325
- viewBox="0 0 10 10"
1326
- fill="none"
1327
- >
1328
- <path
1329
- d="M2 6L5 3L8 6"
1330
- stroke="currentColor"
1331
- stroke-width="1.5"
1332
- stroke-linecap="round"
1333
- stroke-linejoin="round"
1334
- />
1335
- </svg>
1336
- </button>
1337
- <button
1338
- type="button"
1339
- class="calendar__year-spinner calendar__year-spinner--down"
1340
- @click=${() => this.changeYear(-1, isLeft)}
1341
- >
1342
- <svg
1343
- width="10"
1344
- height="10"
1345
- viewBox="0 0 10 10"
1346
- fill="none"
1347
- >
1348
- <path
1349
- d="M2 4L5 7L8 4"
1350
- stroke="currentColor"
1351
- stroke-width="1.5"
1352
- stroke-linecap="round"
1353
- stroke-linejoin="round"
1354
- />
1355
- </svg>
1356
- </button>
1357
- </div>
1358
- </div>
1359
- </div>
1360
-
1361
- <button
1362
- type="button"
1363
- class="calendar__nav"
1364
- @click=${() => this.nextMonth(isLeft)}
1365
- >
1366
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
1367
- <path
1368
- d="M6 12L10 8L6 4"
1369
- stroke="currentColor"
1370
- stroke-width="2"
1371
- stroke-linecap="round"
1372
- stroke-linejoin="round"
1373
- />
1374
- </svg>
1375
- </button>
1376
- </div>
1377
- <div class="calendar__weekdays">
1378
- ${this.DAYS.map(
1379
- (day) => html`<div class="calendar__weekday">${day}</div>`
1380
- )}
1381
- </div>
1382
- <div class="calendar__days">
1383
- ${days.map((date) => {
1384
- const dateMonth = this.enableTime ? date.getUTCMonth() : date.getMonth();
1385
- const dateDay = this.enableTime ? date.getUTCDate() : date.getDate();
1386
- const isCurrentMonth = dateMonth === currentMonth;
1387
- const isSelected = this.isSameDay(date, this.selectedStart) || this.isSameDay(date, this.selectedEnd);
1388
- const isStart = this.isSameDay(date, this.selectedStart);
1389
- const isEnd = this.isSameDay(date, this.selectedEnd);
1390
- const inRange = this.isInRange(date);
1391
- const inHoverRange = this.isInHoverRange(date);
1392
- const isDisabled = this.isDisabled(date);
1393
- return html`
1394
- <button
1395
- type="button"
1396
- class="calendar__day ${!isCurrentMonth ? "calendar__day--outside" : ""}
1397
- ${isSelected ? "calendar__day--selected" : ""}
1398
- ${isStart ? "calendar__day--start" : ""}
1399
- ${isEnd ? "calendar__day--end" : ""}
1400
- ${inRange ? "calendar__day--in-range" : ""}
1401
- ${inHoverRange ? "calendar__day--hover-range" : ""}
1402
- ${isDisabled ? "calendar__day--disabled" : ""}"
1403
- @click=${() => this.selectDate(date)}
1404
- @mouseenter=${() => this.handleDateHover(date)}
1405
- ?disabled=${isDisabled}
1406
- >
1407
- ${dateDay}
1408
- </button>
1409
- `;
1410
- })}
1411
- </div>
1412
- </div>
1413
- `;
1414
- }
1415
- renderTimePicker() {
1416
- if (!this.enableTime)
1417
- return "";
1418
- return html`
1419
- <div class="date-picker__time">
1420
- <div class="date-picker__time-section">
1421
- <div class="date-picker__time-inputs">
1422
- <div class="date-picker__time-input-group">
1423
- <input
1424
- type="number"
1425
- class="date-picker__time-input"
1426
- .value=${this.startHour.toString().padStart(2, "0")}
1427
- @input=${(e) => this.handleTimeInput(e, "hour", true)}
1428
- @blur=${(e) => {
1429
- const input = e.target;
1430
- input.value = this.startHour.toString().padStart(2, "0");
1431
- }}
1432
- min="0"
1433
- max="23"
1434
- />
1435
- <div class="date-picker__time-spinners">
1436
- <button
1437
- type="button"
1438
- class="date-picker__time-spinner"
1439
- @click=${() => this.changeTime("hour", 1, true)}
1440
- >
1441
- <svg
1442
- width="10"
1443
- height="10"
1444
- viewBox="0 0 10 10"
1445
- fill="none"
1446
- >
1447
- <path
1448
- d="M2 6L5 3L8 6"
1449
- stroke="currentColor"
1450
- stroke-width="1.5"
1451
- stroke-linecap="round"
1452
- stroke-linejoin="round"
1453
- />
1454
- </svg>
1455
- </button>
1456
- <button
1457
- type="button"
1458
- class="date-picker__time-spinner"
1459
- @click=${() => this.changeTime("hour", -1, true)}
1460
- >
1461
- <svg
1462
- width="10"
1463
- height="10"
1464
- viewBox="0 0 10 10"
1465
- fill="none"
1466
- >
1467
- <path
1468
- d="M2 4L5 7L8 4"
1469
- stroke="currentColor"
1470
- stroke-width="1.5"
1471
- stroke-linecap="round"
1472
- stroke-linejoin="round"
1473
- />
1474
- </svg>
1475
- </button>
1476
- </div>
1477
- </div>
1478
-
1479
- <span class="date-picker__time-separator">:</span>
1480
-
1481
- <div class="date-picker__time-input-group">
1482
- <input
1483
- type="number"
1484
- class="date-picker__time-input"
1485
- .value=${this.startMinute.toString().padStart(2, "0")}
1486
- @input=${(e) => this.handleTimeInput(e, "minute", true)}
1487
- @blur=${(e) => {
1488
- const input = e.target;
1489
- input.value = this.startMinute.toString().padStart(2, "0");
1490
- }}
1491
- min="0"
1492
- max="59"
1493
- />
1494
- <div class="date-picker__time-spinners">
1495
- <button
1496
- type="button"
1497
- class="date-picker__time-spinner"
1498
- @click=${() => this.changeTime("minute", 1, true)}
1499
- >
1500
- <svg
1501
- width="10"
1502
- height="10"
1503
- viewBox="0 0 10 10"
1504
- fill="none"
1505
- >
1506
- <path
1507
- d="M2 6L5 3L8 6"
1508
- stroke="currentColor"
1509
- stroke-width="1.5"
1510
- stroke-linecap="round"
1511
- stroke-linejoin="round"
1512
- />
1513
- </svg>
1514
- </button>
1515
- <button
1516
- type="button"
1517
- class="date-picker__time-spinner"
1518
- @click=${() => this.changeTime("minute", -1, true)}
1519
- >
1520
- <svg
1521
- width="10"
1522
- height="10"
1523
- viewBox="0 0 10 10"
1524
- fill="none"
1525
- >
1526
- <path
1527
- d="M2 4L5 7L8 4"
1528
- stroke="currentColor"
1529
- stroke-width="1.5"
1530
- stroke-linecap="round"
1531
- stroke-linejoin="round"
1532
- />
1533
- </svg>
1534
- </button>
1535
- </div>
1536
- </div>
1537
-
1538
- <span class="date-picker__time-separator">:</span>
1539
-
1540
- <div class="date-picker__time-input-group">
1541
- <input
1542
- type="number"
1543
- class="date-picker__time-input"
1544
- .value=${this.startSecond.toString().padStart(2, "0")}
1545
- @input=${(e) => this.handleTimeInput(e, "second", true)}
1546
- @blur=${(e) => {
1547
- const input = e.target;
1548
- input.value = this.startSecond.toString().padStart(2, "0");
1549
- }}
1550
- min="0"
1551
- max="59"
1552
- />
1553
- <div class="date-picker__time-spinners">
1554
- <button
1555
- type="button"
1556
- class="date-picker__time-spinner"
1557
- @click=${() => this.changeTime("second", 1, true)}
1558
- >
1559
- <svg
1560
- width="10"
1561
- height="10"
1562
- viewBox="0 0 10 10"
1563
- fill="none"
1564
- >
1565
- <path
1566
- d="M2 6L5 3L8 6"
1567
- stroke="currentColor"
1568
- stroke-width="1.5"
1569
- stroke-linecap="round"
1570
- stroke-linejoin="round"
1571
- />
1572
- </svg>
1573
- </button>
1574
- <button
1575
- type="button"
1576
- class="date-picker__time-spinner"
1577
- @click=${() => this.changeTime("second", -1, true)}
1578
- >
1579
- <svg
1580
- width="10"
1581
- height="10"
1582
- viewBox="0 0 10 10"
1583
- fill="none"
1584
- >
1585
- <path
1586
- d="M2 4L5 7L8 4"
1587
- stroke="currentColor"
1588
- stroke-width="1.5"
1589
- stroke-linecap="round"
1590
- stroke-linejoin="round"
1591
- />
1592
- </svg>
1593
- </button>
1594
- </div>
1595
- </div>
1596
- </div>
1597
- </div>
1598
-
1599
- ${this.range ? html`
1600
- <span class="date-picker__separator">–</span>
1601
-
1602
- <div class="date-picker__time-section">
1603
- <div class="date-picker__time-inputs">
1604
- <div class="date-picker__time-input-group">
1605
- <input
1606
- type="number"
1607
- class="date-picker__time-input"
1608
- .value=${this.endHour.toString().padStart(2, "0")}
1609
- @input=${(e) => this.handleTimeInput(e, "hour", false)}
1610
- @blur=${(e) => {
1611
- const input = e.target;
1612
- input.value = this.endHour.toString().padStart(2, "0");
1613
- }}
1614
- min="0"
1615
- max="23"
1616
- />
1617
- <div class="date-picker__time-spinners">
1618
- <button
1619
- type="button"
1620
- class="date-picker__time-spinner"
1621
- @click=${() => this.changeTime("hour", 1, false)}
1622
- >
1623
- <svg
1624
- width="10"
1625
- height="10"
1626
- viewBox="0 0 10 10"
1627
- fill="none"
1628
- >
1629
- <path
1630
- d="M2 6L5 3L8 6"
1631
- stroke="currentColor"
1632
- stroke-width="1.5"
1633
- stroke-linecap="round"
1634
- stroke-linejoin="round"
1635
- />
1636
- </svg>
1637
- </button>
1638
- <button
1639
- type="button"
1640
- class="date-picker__time-spinner"
1641
- @click=${() => this.changeTime("hour", -1, false)}
1642
- >
1643
- <svg
1644
- width="10"
1645
- height="10"
1646
- viewBox="0 0 10 10"
1647
- fill="none"
1648
- >
1649
- <path
1650
- d="M2 4L5 7L8 4"
1651
- stroke="currentColor"
1652
- stroke-width="1.5"
1653
- stroke-linecap="round"
1654
- stroke-linejoin="round"
1655
- />
1656
- </svg>
1657
- </button>
1658
- </div>
1659
- </div>
1660
-
1661
- <span class="date-picker__time-separator">:</span>
1662
-
1663
- <div class="date-picker__time-input-group">
1664
- <input
1665
- type="number"
1666
- class="date-picker__time-input"
1667
- .value=${this.endMinute.toString().padStart(2, "0")}
1668
- @input=${(e) => this.handleTimeInput(
1669
- e,
1670
- "minute",
1671
- false
1672
- )}
1673
- @blur=${(e) => {
1674
- const input = e.target;
1675
- input.value = this.endMinute.toString().padStart(2, "0");
1676
- }}
1677
- min="0"
1678
- max="59"
1679
- />
1680
- <div class="date-picker__time-spinners">
1681
- <button
1682
- type="button"
1683
- class="date-picker__time-spinner"
1684
- @click=${() => this.changeTime("minute", 1, false)}
1685
- >
1686
- <svg
1687
- width="10"
1688
- height="10"
1689
- viewBox="0 0 10 10"
1690
- fill="none"
1691
- >
1692
- <path
1693
- d="M2 6L5 3L8 6"
1694
- stroke="currentColor"
1695
- stroke-width="1.5"
1696
- stroke-linecap="round"
1697
- stroke-linejoin="round"
1698
- />
1699
- </svg>
1700
- </button>
1701
- <button
1702
- type="button"
1703
- class="date-picker__time-spinner"
1704
- @click=${() => this.changeTime(
1705
- "minute",
1706
- -1,
1707
- false
1708
- )}
1709
- >
1710
- <svg
1711
- width="10"
1712
- height="10"
1713
- viewBox="0 0 10 10"
1714
- fill="none"
1715
- >
1716
- <path
1717
- d="M2 4L5 7L8 4"
1718
- stroke="currentColor"
1719
- stroke-width="1.5"
1720
- stroke-linecap="round"
1721
- stroke-linejoin="round"
1722
- />
1723
- </svg>
1724
- </button>
1725
- </div>
1726
- </div>
1727
-
1728
- <span class="date-picker__time-separator">:</span>
1729
-
1730
- <div class="date-picker__time-input-group">
1731
- <input
1732
- type="number"
1733
- class="date-picker__time-input"
1734
- .value=${this.endSecond.toString().padStart(2, "0")}
1735
- @input=${(e) => this.handleTimeInput(
1736
- e,
1737
- "second",
1738
- false
1739
- )}
1740
- @blur=${(e) => {
1741
- const input = e.target;
1742
- input.value = this.endSecond.toString().padStart(2, "0");
1743
- }}
1744
- min="0"
1745
- max="59"
1746
- />
1747
- <div class="date-picker__time-spinners">
1748
- <button
1749
- type="button"
1750
- class="date-picker__time-spinner"
1751
- @click=${() => this.changeTime("second", 1, false)}
1752
- >
1753
- <svg
1754
- width="10"
1755
- height="10"
1756
- viewBox="0 0 10 10"
1757
- fill="none"
1758
- >
1759
- <path
1760
- d="M2 6L5 3L8 6"
1761
- stroke="currentColor"
1762
- stroke-width="1.5"
1763
- stroke-linecap="round"
1764
- stroke-linejoin="round"
1765
- />
1766
- </svg>
1767
- </button>
1768
- <button
1769
- type="button"
1770
- class="date-picker__time-spinner"
1771
- @click=${() => this.changeTime(
1772
- "second",
1773
- -1,
1774
- false
1775
- )}
1776
- >
1777
- <svg
1778
- width="10"
1779
- height="10"
1780
- viewBox="0 0 10 10"
1781
- fill="none"
1782
- >
1783
- <path
1784
- d="M2 4L5 7L8 4"
1785
- stroke="currentColor"
1786
- stroke-width="1.5"
1787
- stroke-linecap="round"
1788
- stroke-linejoin="round"
1789
- />
1790
- </svg>
1791
- </button>
1792
- </div>
1793
- </div>
1794
- </div>
1795
- </div>
1796
- ` : ""}
1797
- </div>
1798
- `;
1799
- }
1800
- renderCalendarIcon() {
1801
- return html`
1802
- <svg
1803
- slot="suffix"
1804
- class="date-picker__icon"
1805
- width="20"
1806
- height="20"
1807
- viewBox="0 0 24 24"
1808
- fill="none"
1809
- stroke="currentColor"
1810
- stroke-width="2"
1811
- >
1812
- <rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
1813
- <line x1="16" y1="2" x2="16" y2="6"></line>
1814
- <line x1="8" y1="2" x2="8" y2="6"></line>
1815
- <line x1="3" y1="10" x2="21" y2="10"></line>
1816
- </svg>
1817
- `;
1818
- }
1819
- renderCalendarContent() {
1820
- return html`
1821
- <div class="date-picker__dropdown" part="calendar">
1822
- <div class="date-picker__content">
1823
- ${this.showPresets && this.filteredPresets.length > 0 ? html`
1824
- <div class="date-picker__sidebar" part="sidebar">
1825
- <slot name="sidebar-header"></slot>
1826
-
1827
- <div class="presets">
1828
- ${this.filteredPresets.map(
1829
- (preset) => html`
1830
- <button
1831
- type="button"
1832
- class="date-picker__preset"
1833
- @click=${() => this.selectPreset(preset)}
1834
- >
1835
- ${preset.label}
1836
- </button>
1837
- `
1838
- )}
1839
- </div>
1840
-
1841
- <slot name="sidebar-footer"></slot>
1842
- </div>
1843
- ` : ""}
1844
-
1845
- <div class="date-picker__calendars">
1846
- ${this.renderCalendar(this.leftMonth, true)}
1847
- ${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
1848
- </div>
1849
- </div>
1850
-
1851
- ${this.enableTime ? this.renderTimePicker() : ""}
1852
- </div>
1853
- `;
1854
- }
1855
- render() {
1856
- const showSplitInputs = this.range && this.splitInputs;
1857
- if (this.inline) {
1858
- return html`
1859
- <div
1860
- class="date-picker date-picker--inline ${showSplitInputs ? "date-picker--split-inputs" : ""}"
1861
- @click=${(e) => e.stopPropagation()}
1862
- >
1863
- ${showSplitInputs ? html`
1864
- <div class="date-picker__inputs">
1865
- <terra-input
1866
- .label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
1867
- .hideLabel=${this.hideLabel}
1868
- .helpText=${this.startHelpText || this.helpText}
1869
- .value=${this.getStartDateDisplayValue()}
1870
- @terra-blur=${this.handleStartInputBlur}
1871
- @keydown=${this.handleKeydown}
1872
- placeholder=${this.startPlaceholder}
1873
- name="start-date"
1874
- >
1875
- ${this.renderCalendarIcon()}
1876
- </terra-input>
1877
- <terra-input
1878
- .label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
1879
- .hideLabel=${this.hideLabel}
1880
- .helpText=${this.endHelpText || this.helpText}
1881
- .value=${this.getEndDateDisplayValue()}
1882
- @terra-blur=${this.handleEndInputBlur}
1883
- @keydown=${this.handleKeydown}
1884
- placeholder=${this.endPlaceholder}
1885
- name="end-date"
1886
- >
1887
- ${this.renderCalendarIcon()}
1888
- </terra-input>
1889
- </div>
1890
- ` : html`
1891
- <terra-input
1892
- .label=${this.label}
1893
- .hideLabel=${this.hideLabel}
1894
- .helpText=${this.helpText}
1895
- .value=${this.getDisplayValue()}
1896
- placeholder=${this.placeholder}
1897
- @terra-blur=${this.handleInputBlur}
1898
- @keydown=${this.handleKeydown}
1899
- name="date"
1900
- >
1901
- ${this.renderCalendarIcon()}
1902
- </terra-input>
1903
- `}
1904
-
1905
- <slot name="additional-text"></slot>
1906
-
1907
- <div class="date-picker__dropdown-wrapper">
1908
- <div
1909
- class="date-picker__dropdown date-picker__dropdown--inline"
1910
- part="calendar"
1911
- >
1912
- <div class="date-picker__content">
1913
- ${this.showPresets && this.filteredPresets.length > 0 ? html`
1914
- <div
1915
- class="date-picker__sidebar"
1916
- part="sidebar"
1917
- >
1918
- ${this.filteredPresets.map(
1919
- (preset) => html`
1920
- <button
1921
- type="button"
1922
- class="date-picker__preset"
1923
- @click=${() => this.selectPreset(
1924
- preset
1925
- )}
1926
- >
1927
- ${preset.label}
1928
- </button>
1929
- `
1930
- )}
1931
- </div>
1932
- ` : ""}
1933
-
1934
- <div class="date-picker__calendars">
1935
- ${this.renderCalendar(this.leftMonth, true)}
1936
- ${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
1937
- </div>
1938
- </div>
1939
-
1940
- ${this.enableTime ? this.renderTimePicker() : ""}
1941
- </div>
1942
- </div>
1943
- </div>
1944
- `;
1945
- }
1946
- return html`
1947
- <div
1948
- class="date-picker ${showSplitInputs ? "date-picker--split-inputs" : ""}"
1949
- @click=${(e) => e.stopPropagation()}
1950
- >
1951
- ${showSplitInputs ? html`
1952
- <div class="date-picker__inputs">
1953
- <terra-dropdown
1954
- ${ref(this.dropdownRef)}
1955
- placement="bottom-start"
1956
- distance="4"
1957
- @terra-show=${this.handleDropdownShow}
1958
- @terra-hide=${this.handleDropdownHide}
1959
- hoist
1960
- >
1961
- <terra-input
1962
- slot="trigger"
1963
- .label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
1964
- .hideLabel=${this.hideLabel}
1965
- .helpText=${this.startHelpText || this.helpText}
1966
- .value=${this.getStartDateDisplayValue()}
1967
- placeholder=${this.startPlaceholder}
1968
- @terra-blur=${this.handleStartInputBlur}
1969
- @keydown=${this.handleKeydown}
1970
- name="start-date"
1971
- >
1972
- ${this.renderCalendarIcon()}
1973
- </terra-input>
1974
- ${this.renderCalendarContent()}
1975
- </terra-dropdown>
1976
- <terra-dropdown
1977
- placement="bottom-start"
1978
- distance="4"
1979
- @terra-show=${this.handleDropdownShow}
1980
- @terra-hide=${this.handleDropdownHide}
1981
- hoist
1982
- >
1983
- <terra-input
1984
- slot="trigger"
1985
- .label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
1986
- .hideLabel=${this.hideLabel}
1987
- .helpText=${this.endHelpText || this.helpText}
1988
- .value=${this.getEndDateDisplayValue()}
1989
- placeholder=${this.endPlaceholder}
1990
- @terra-blur=${this.handleEndInputBlur}
1991
- @keydown=${this.handleKeydown}
1992
- name="end-date"
1993
- >
1994
- ${this.renderCalendarIcon()}
1995
- </terra-input>
1996
- ${this.renderCalendarContent()}
1997
- </terra-dropdown>
1998
- </div>
1999
- ` : html`
2000
- <terra-dropdown
2001
- ${ref(this.dropdownRef)}
2002
- placement="bottom-start"
2003
- distance="4"
2004
- @terra-show=${this.handleDropdownShow}
2005
- @terra-hide=${this.handleDropdownHide}
2006
- hoist
2007
- >
2008
- <terra-input
2009
- slot="trigger"
2010
- .label=${this.label}
2011
- .hideLabel=${this.hideLabel}
2012
- .helpText=${this.helpText}
2013
- .value=${this.getDisplayValue()}
2014
- placeholder=${this.placeholder}
2015
- @terra-blur=${this.handleInputBlur}
2016
- @keydown=${this.handleKeydown}
2017
- name="date"
2018
- >
2019
- ${this.renderCalendarIcon()}
2020
- </terra-input>
2021
- ${this.renderCalendarContent()}
2022
- </terra-dropdown>
2023
- `}
2024
- </div>
2025
- `;
2026
- }
2027
- };
2028
- TerraDatePicker.styles = [component_styles_default, date_picker_styles_default];
2029
- TerraDatePicker.dependencies = {
2030
- "terra-button": TerraButton,
2031
- "terra-input": TerraInput,
2032
- "terra-dropdown": TerraDropdown
2033
- };
2034
- __decorateClass([
2035
- property()
2036
- ], TerraDatePicker.prototype, "id", 2);
2037
- __decorateClass([
2038
- property({ type: Boolean, reflect: true })
2039
- ], TerraDatePicker.prototype, "range", 2);
2040
- __decorateClass([
2041
- property({ attribute: "min-date", reflect: true })
2042
- ], TerraDatePicker.prototype, "minDate", 2);
2043
- __decorateClass([
2044
- property({ attribute: "max-date", reflect: true })
2045
- ], TerraDatePicker.prototype, "maxDate", 2);
2046
- __decorateClass([
2047
- property({ attribute: "start-date", reflect: true })
2048
- ], TerraDatePicker.prototype, "startDate", 2);
2049
- __decorateClass([
2050
- property({ attribute: "end-date", reflect: true })
2051
- ], TerraDatePicker.prototype, "endDate", 2);
2052
- __decorateClass([
2053
- property({ attribute: "hide-label", type: Boolean })
2054
- ], TerraDatePicker.prototype, "hideLabel", 2);
2055
- __decorateClass([
2056
- property()
2057
- ], TerraDatePicker.prototype, "label", 2);
2058
- __decorateClass([
2059
- property({ attribute: "help-text" })
2060
- ], TerraDatePicker.prototype, "helpText", 2);
2061
- __decorateClass([
2062
- property({ attribute: "start-help-text" })
2063
- ], TerraDatePicker.prototype, "startHelpText", 2);
2064
- __decorateClass([
2065
- property({ attribute: "end-help-text" })
2066
- ], TerraDatePicker.prototype, "endHelpText", 2);
2067
- __decorateClass([
2068
- property({ attribute: "start-label" })
2069
- ], TerraDatePicker.prototype, "startLabel", 2);
2070
- __decorateClass([
2071
- property({ attribute: "end-label" })
2072
- ], TerraDatePicker.prototype, "endLabel", 2);
2073
- __decorateClass([
2074
- property({ type: Boolean, attribute: "show-presets" })
2075
- ], TerraDatePicker.prototype, "showPresets", 2);
2076
- __decorateClass([
2077
- property({ type: Array })
2078
- ], TerraDatePicker.prototype, "presets", 2);
2079
- __decorateClass([
2080
- property({ type: Boolean, attribute: "enable-time" })
2081
- ], TerraDatePicker.prototype, "enableTime", 2);
2082
- __decorateClass([
2083
- property({ attribute: "display-format" })
2084
- ], TerraDatePicker.prototype, "displayFormat", 2);
2085
- __decorateClass([
2086
- property({ type: Boolean })
2087
- ], TerraDatePicker.prototype, "inline", 2);
2088
- __decorateClass([
2089
- property({ type: Boolean, attribute: "split-inputs" })
2090
- ], TerraDatePicker.prototype, "splitInputs", 2);
2091
- __decorateClass([
2092
- property()
2093
- ], TerraDatePicker.prototype, "placeholder", 2);
2094
- __decorateClass([
2095
- property()
2096
- ], TerraDatePicker.prototype, "startPlaceholder", 2);
2097
- __decorateClass([
2098
- property()
2099
- ], TerraDatePicker.prototype, "endPlaceholder", 2);
2100
- __decorateClass([
2101
- property({ reflect: true })
2102
- ], TerraDatePicker.prototype, "role", 2);
2103
- __decorateClass([
2104
- property({ reflect: true, attribute: "aria-label" })
2105
- ], TerraDatePicker.prototype, "ariaLabel", 2);
2106
- __decorateClass([
2107
- state()
2108
- ], TerraDatePicker.prototype, "isOpen", 2);
2109
- __decorateClass([
2110
- state()
2111
- ], TerraDatePicker.prototype, "leftMonth", 2);
2112
- __decorateClass([
2113
- state()
2114
- ], TerraDatePicker.prototype, "rightMonth", 2);
2115
- __decorateClass([
2116
- state()
2117
- ], TerraDatePicker.prototype, "selectedStart", 2);
2118
- __decorateClass([
2119
- state()
2120
- ], TerraDatePicker.prototype, "selectedEnd", 2);
2121
- __decorateClass([
2122
- state()
2123
- ], TerraDatePicker.prototype, "hoverDate", 2);
2124
- __decorateClass([
2125
- state()
2126
- ], TerraDatePicker.prototype, "isSelectingRange", 2);
2127
- __decorateClass([
2128
- state()
2129
- ], TerraDatePicker.prototype, "showLeftMonthDropdown", 2);
2130
- __decorateClass([
2131
- state()
2132
- ], TerraDatePicker.prototype, "showRightMonthDropdown", 2);
2133
- __decorateClass([
2134
- state()
2135
- ], TerraDatePicker.prototype, "startHour", 2);
2136
- __decorateClass([
2137
- state()
2138
- ], TerraDatePicker.prototype, "startMinute", 2);
2139
- __decorateClass([
2140
- state()
2141
- ], TerraDatePicker.prototype, "startSecond", 2);
2142
- __decorateClass([
2143
- state()
2144
- ], TerraDatePicker.prototype, "endHour", 2);
2145
- __decorateClass([
2146
- state()
2147
- ], TerraDatePicker.prototype, "endMinute", 2);
2148
- __decorateClass([
2149
- state()
2150
- ], TerraDatePicker.prototype, "endSecond", 2);
2151
- __decorateClass([
2152
- state()
2153
- ], TerraDatePicker.prototype, "selectedDates", 2);
2154
- __decorateClass([
2155
- query(".date-picker__dropdown")
2156
- ], TerraDatePicker.prototype, "dropdown", 2);
2157
-
2158
- export {
2159
- TerraDatePicker
2160
- };