@nasa-terra/components 0.0.138 → 0.0.139

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 (1236) hide show
  1. package/cdn/chunks/chunk.2B6TL25H.js +19 -0
  2. package/cdn/chunks/chunk.2FIXNDLC.js +251 -0
  3. package/cdn/chunks/chunk.2JCOSZFR.js +904 -0
  4. package/cdn/chunks/chunk.2MHHVQSB.js +29 -0
  5. package/cdn/chunks/chunk.33ULU7GO.js +491 -0
  6. package/cdn/chunks/chunk.345AQZWM.js +19 -0
  7. package/cdn/chunks/chunk.34RZT4O6.js +29 -0
  8. package/cdn/chunks/chunk.3FBMVJTN.js +29 -0
  9. package/cdn/chunks/chunk.3JDGYF5R.js +36 -0
  10. package/cdn/chunks/chunk.3JUFEPIK.js +29 -0
  11. package/cdn/chunks/chunk.3KHAS7JP.js +19 -0
  12. package/cdn/chunks/chunk.3L5XNF4T.js +234 -0
  13. package/cdn/chunks/chunk.45XFWGEL.js +110 -0
  14. package/cdn/chunks/chunk.4B6VMFFW.js +19 -0
  15. package/cdn/chunks/chunk.4CH5UZQH.js +19 -0
  16. package/cdn/chunks/chunk.4CPFXOHY.js +19 -0
  17. package/cdn/chunks/chunk.4LE5R3PR.js +29 -0
  18. package/cdn/chunks/chunk.4N2A5YBK.js +472 -0
  19. package/cdn/chunks/chunk.4UFYI2TK.js +10718 -0
  20. package/cdn/chunks/chunk.5A3HYRPD.js +224 -0
  21. package/cdn/chunks/chunk.5BGHAY2N.js +35 -0
  22. package/cdn/chunks/chunk.5EJ2BIR7.js +32 -0
  23. package/cdn/chunks/chunk.5K7UOJJ2.js +32 -0
  24. package/cdn/chunks/chunk.5NWMRQKE.js +32 -0
  25. package/cdn/chunks/chunk.5SZU56B7.js +19 -0
  26. package/cdn/chunks/chunk.5ULQ5ZPE.js +19 -0
  27. package/cdn/chunks/chunk.5XFTJ654.js +132 -0
  28. package/cdn/chunks/chunk.6KNI6BO4.js +29 -0
  29. package/cdn/chunks/chunk.6LSZVT44.js +32 -0
  30. package/cdn/chunks/chunk.6P475YE7.js +32 -0
  31. package/cdn/chunks/chunk.6PDKWTOW.js +279 -0
  32. package/cdn/chunks/chunk.6TK5NIXR.js +538 -0
  33. package/cdn/chunks/chunk.6VCBC23Q.js +19 -0
  34. package/cdn/chunks/chunk.6YF3W7LT.js +19 -0
  35. package/cdn/chunks/chunk.6YOCEYSK.js +32 -0
  36. package/cdn/chunks/chunk.77TXG6FM.js +188 -0
  37. package/cdn/chunks/chunk.7NFYZMNG.js +19 -0
  38. package/cdn/chunks/chunk.7PZGJRJ4.js +264 -0
  39. package/cdn/chunks/chunk.7RCNCS4U.js +198 -0
  40. package/cdn/chunks/chunk.A3HR5UMX.js +19 -0
  41. package/cdn/chunks/chunk.A44ASB2E.js +19 -0
  42. package/cdn/chunks/chunk.AH6W6EGS.js +77 -0
  43. package/cdn/chunks/chunk.AHOS6VUF.js +155 -0
  44. package/cdn/chunks/chunk.AJW5O45L.js +29 -0
  45. package/cdn/chunks/chunk.APDRZBCN.js +34 -0
  46. package/cdn/chunks/chunk.AT7GXBD2.js +19 -0
  47. package/cdn/chunks/chunk.B7436PBE.js +99 -0
  48. package/cdn/chunks/chunk.BAXXFOKW.js +29 -0
  49. package/cdn/chunks/chunk.BEQD5VET.js +477 -0
  50. package/cdn/chunks/chunk.BGEG3ILU.js +19 -0
  51. package/cdn/chunks/chunk.BIL4QU4I.js +158 -0
  52. package/cdn/chunks/chunk.BKJBB7P6.js +19 -0
  53. package/cdn/chunks/chunk.BRFX2VMD.js +86 -0
  54. package/cdn/chunks/chunk.C2NSEJUB.js +29 -0
  55. package/cdn/chunks/chunk.C2OZB7DE.js +19 -0
  56. package/cdn/chunks/chunk.C5HGW4V2.js +276 -0
  57. package/cdn/chunks/chunk.C6LHPBOI.js +1966 -0
  58. package/cdn/chunks/chunk.CA7RFX6N.js +359 -0
  59. package/cdn/chunks/chunk.CGX2AIUE.js +29 -0
  60. package/cdn/chunks/chunk.CI2GQALQ.js +78 -0
  61. package/cdn/chunks/chunk.CQ424ME5.js +2073 -0
  62. package/cdn/chunks/chunk.CV5XFSGK.js +19 -0
  63. package/cdn/chunks/chunk.D5R3LEZU.js +49 -0
  64. package/cdn/chunks/chunk.D6CMNUDX.js +954 -0
  65. package/cdn/chunks/chunk.D6L5MXGZ.js +37 -0
  66. package/cdn/chunks/chunk.DAQXODMO.js +19 -0
  67. package/cdn/chunks/chunk.DCLC7OGT.js +29 -0
  68. package/cdn/chunks/chunk.DHNU3YDL.js +19 -0
  69. package/cdn/chunks/chunk.DJYUXTUP.js +1803 -0
  70. package/cdn/chunks/chunk.DLPRJG7W.js +32 -0
  71. package/cdn/chunks/chunk.DNWNXGQY.js +19 -0
  72. package/cdn/chunks/chunk.DYMNEARK.js +29 -0
  73. package/cdn/chunks/chunk.E3W5BATW.js +60 -0
  74. package/cdn/chunks/chunk.E6OTJQA2.js +615 -0
  75. package/cdn/chunks/chunk.EEL5QODT.js +41 -0
  76. package/cdn/chunks/chunk.EHOIWBWJ.js +302 -0
  77. package/cdn/chunks/chunk.EI2XTC4O.js +278 -0
  78. package/cdn/chunks/chunk.EQZREVVY.js +29 -0
  79. package/cdn/chunks/chunk.EVBUT74B.js +19 -0
  80. package/cdn/chunks/chunk.F73O5LKK.js +134 -0
  81. package/cdn/chunks/chunk.FBI2TYXB.js +19 -0
  82. package/cdn/chunks/chunk.FG2ISGVU.js +660 -0
  83. package/cdn/chunks/chunk.FLUN2UKH.js +372 -0
  84. package/cdn/chunks/chunk.FTQ5KMTQ.js +151 -0
  85. package/cdn/chunks/chunk.FU6DSPVY.js +657 -0
  86. package/cdn/chunks/chunk.G5YHIN6F.js +104 -0
  87. package/cdn/chunks/chunk.GIFNSZH6.js +39 -0
  88. package/cdn/chunks/chunk.GJLQFN2E.js +29 -0
  89. package/cdn/chunks/chunk.GKLZDT4V.js +229 -0
  90. package/cdn/chunks/chunk.GR3J7ERT.js +19 -0
  91. package/cdn/chunks/chunk.GZI4VIBC.js +19 -0
  92. package/cdn/chunks/chunk.GZTLYMW7.js +29 -0
  93. package/cdn/chunks/chunk.H3I32IFN.js +19 -0
  94. package/cdn/chunks/chunk.HBVF6X6O.js +29 -0
  95. package/cdn/chunks/chunk.HPVMDHB6.js +19 -0
  96. package/cdn/chunks/chunk.HZR3QQV5.js +19 -0
  97. package/cdn/chunks/chunk.I33GZT57.js +19 -0
  98. package/cdn/chunks/chunk.I3MKG2KR.js +92 -0
  99. package/cdn/chunks/chunk.IDIC52JU.js +19 -0
  100. package/cdn/chunks/chunk.IMOHWICB.js +36 -0
  101. package/cdn/chunks/chunk.IN3SYHXS.js +19 -0
  102. package/cdn/chunks/chunk.ISFWCXRF.js +599 -0
  103. package/cdn/chunks/chunk.IZ3GPCEW.js +33860 -0
  104. package/cdn/chunks/chunk.IZV5Q7KV.js +74 -0
  105. package/cdn/chunks/chunk.J2K53JZV.js +34 -0
  106. package/cdn/chunks/chunk.J75QLCBQ.js +19 -0
  107. package/cdn/chunks/chunk.JAG3QJFT.js +134 -0
  108. package/cdn/chunks/chunk.JD3LSW7U.js +29 -0
  109. package/cdn/chunks/chunk.JGC7PGMS.js +19 -0
  110. package/cdn/chunks/chunk.JHZDDMUY.js +29 -0
  111. package/cdn/chunks/chunk.JLLXBG72.js +19 -0
  112. package/cdn/chunks/chunk.JNZU345Q.js +55346 -0
  113. package/cdn/chunks/chunk.JOH7WPM6.js +19 -0
  114. package/cdn/chunks/chunk.JOP5IKGK.js +29 -0
  115. package/cdn/chunks/chunk.JSLMWT5S.js +19 -0
  116. package/cdn/chunks/chunk.JX5TX7XM.js +524 -0
  117. package/cdn/chunks/chunk.K6SKQZRX.js +157 -0
  118. package/cdn/chunks/chunk.KG6VRPUL.js +610 -0
  119. package/cdn/chunks/chunk.KH7BIODL.js +29 -0
  120. package/cdn/chunks/chunk.KLZ3WTOX.js +19 -0
  121. package/cdn/chunks/chunk.KQC463Q4.js +170 -0
  122. package/cdn/chunks/chunk.LDVBSHNI.js +29 -0
  123. package/cdn/chunks/chunk.LPESW6XC.js +19 -0
  124. package/cdn/chunks/chunk.LS7YQA7Q.js +19 -0
  125. package/cdn/chunks/chunk.LTJFOFDO.js +19 -0
  126. package/cdn/chunks/chunk.LTTBS7JX.js +259 -0
  127. package/cdn/chunks/chunk.LYIM3DGX.js +35 -0
  128. package/cdn/chunks/chunk.M3AZOEG5.js +33 -0
  129. package/cdn/chunks/chunk.MEMDT5D6.js +33 -0
  130. package/cdn/chunks/chunk.N2FBKLVM.js +36 -0
  131. package/cdn/chunks/chunk.NFP4XN3M.js +19 -0
  132. package/cdn/chunks/chunk.NJ37BF2N.js +29 -0
  133. package/cdn/chunks/chunk.NNJTL2WE.js +32 -0
  134. package/cdn/chunks/chunk.NOEET5Z4.js +32 -0
  135. package/cdn/chunks/chunk.NPTP4N36.js +165 -0
  136. package/cdn/chunks/chunk.NU3XX242.js +93 -0
  137. package/cdn/chunks/chunk.O2MNTOTN.js +19 -0
  138. package/cdn/chunks/chunk.OD5OVBHN.js +19 -0
  139. package/cdn/chunks/chunk.OFE5O3W5.js +35 -0
  140. package/cdn/chunks/chunk.OLXTWZ2Y.js +19 -0
  141. package/cdn/chunks/chunk.OTPQCBBK.js +36 -0
  142. package/cdn/chunks/chunk.OVEGRLIS.js +19 -0
  143. package/cdn/chunks/chunk.OVTNQSJY.js +29 -0
  144. package/cdn/chunks/chunk.OW4UIENR.js +34 -0
  145. package/cdn/chunks/chunk.OWFXU56I.js +47 -0
  146. package/cdn/chunks/chunk.OZRSX7RA.js +230 -0
  147. package/cdn/chunks/chunk.PKYJISOI.js +67 -0
  148. package/cdn/chunks/chunk.PKYJN5TL.js +132 -0
  149. package/cdn/chunks/chunk.PMXXCLGN.js +99 -0
  150. package/cdn/chunks/chunk.QQQCEJ3P.js +19 -0
  151. package/cdn/chunks/chunk.QTCUUPJT.js +32 -0
  152. package/cdn/chunks/chunk.QTWGHAMX.js +231 -0
  153. package/cdn/chunks/chunk.R62X6UTY.js +71 -0
  154. package/cdn/chunks/chunk.RBI4SUTP.js +29 -0
  155. package/cdn/chunks/chunk.RF5JQS6G.js +19 -0
  156. package/cdn/chunks/chunk.RI2OOOHA.js +35 -0
  157. package/cdn/chunks/chunk.RJDT2HQD.js +943 -0
  158. package/cdn/chunks/chunk.RPTJEEJR.js +19 -0
  159. package/cdn/chunks/chunk.RRWPHI7Y.js +19 -0
  160. package/cdn/chunks/chunk.S4AGLUO5.js +460 -0
  161. package/cdn/chunks/chunk.SACSIPDE.js +93 -0
  162. package/cdn/chunks/chunk.SBOWWLCP.js +29 -0
  163. package/cdn/chunks/chunk.SDD4Y6YW.js +29 -0
  164. package/cdn/chunks/chunk.SF5YSOET.js +621 -0
  165. package/cdn/chunks/chunk.SOGAAP43.js +29 -0
  166. package/cdn/chunks/chunk.T4J7SCOW.js +19 -0
  167. package/cdn/chunks/chunk.T6VYAQOK.js +284 -0
  168. package/cdn/chunks/chunk.T7Y2NRB3.js +19 -0
  169. package/cdn/chunks/chunk.TGEAFYSD.js +32 -0
  170. package/cdn/chunks/chunk.TLGEOSTJ.js +33 -0
  171. package/cdn/chunks/chunk.TRPJ2WOJ.js +60 -0
  172. package/cdn/chunks/chunk.TRRLACND.js +83 -0
  173. package/cdn/chunks/chunk.TSLZA2FP.js +79 -0
  174. package/cdn/chunks/chunk.TTL2D2K3.js +33 -0
  175. package/cdn/chunks/chunk.TTZRS2Z2.js +32 -0
  176. package/cdn/chunks/chunk.TW2COE3D.js +113 -0
  177. package/cdn/chunks/chunk.U4BF3ZWF.js +190 -0
  178. package/cdn/chunks/chunk.UNEVE6A4.js +435 -0
  179. package/cdn/chunks/chunk.UPAWY7GC.js +62 -0
  180. package/cdn/chunks/chunk.UT54KXFP.js +19 -0
  181. package/cdn/chunks/chunk.UTEDJXOP.js +82 -0
  182. package/cdn/chunks/chunk.UUUUK3QA.js +123 -0
  183. package/cdn/chunks/chunk.UXIMEXHC.js +37 -0
  184. package/cdn/chunks/chunk.VIW62643.js +29 -0
  185. package/cdn/chunks/chunk.VM2TQ3LY.js +19 -0
  186. package/cdn/chunks/chunk.VOCQHX7F.js +32 -0
  187. package/cdn/chunks/chunk.VS2VJKT2.js +19 -0
  188. package/cdn/chunks/chunk.WLXVWP7V.js +19 -0
  189. package/cdn/chunks/chunk.WOEBW5PN.js +19 -0
  190. package/cdn/chunks/chunk.WSJODP2O.js +30 -0
  191. package/cdn/chunks/chunk.XQJPYZPB.js +32 -0
  192. package/cdn/chunks/chunk.XTDFLS7Z.js +33 -0
  193. package/cdn/chunks/chunk.XZQ44RGE.js +189 -0
  194. package/cdn/chunks/chunk.YH2RHLYO.js +19 -0
  195. package/cdn/chunks/chunk.YHFXH4XR.js +19 -0
  196. package/cdn/chunks/chunk.YID2PD4H.js +83 -0
  197. package/cdn/chunks/chunk.YJL3JAIE.js +19 -0
  198. package/cdn/chunks/chunk.YMBKFE6C.js +19 -0
  199. package/cdn/chunks/chunk.YQ73WBVE.js +29 -0
  200. package/cdn/chunks/chunk.YQF3O4M6.js +240 -0
  201. package/cdn/chunks/chunk.ZDTOKUHN.js +19 -0
  202. package/cdn/chunks/chunk.ZGAJXSLY.js +32 -0
  203. package/cdn/chunks/chunk.ZM3NLLMD.js +357 -0
  204. package/cdn/chunks/chunk.ZVC2TYWY.js +106 -0
  205. package/cdn/components/accordion/accordion.component.js +5 -5
  206. package/cdn/components/accordion/accordion.js +6 -6
  207. package/cdn/components/alert/alert.component.js +3 -3
  208. package/cdn/components/alert/alert.js +4 -4
  209. package/cdn/components/avatar/avatar.component.js +7 -7
  210. package/cdn/components/avatar/avatar.js +8 -8
  211. package/cdn/components/badge/badge.component.js +2 -2
  212. package/cdn/components/badge/badge.js +3 -3
  213. package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
  214. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  215. package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
  216. package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
  217. package/cdn/components/browse-variables/browse-variables.component.js +15 -15
  218. package/cdn/components/browse-variables/browse-variables.js +16 -16
  219. package/cdn/components/button/button.component.d.ts +6 -0
  220. package/cdn/components/button/button.component.js +8 -8
  221. package/cdn/components/button/button.js +9 -9
  222. package/cdn/components/button-group/button-group.component.js +2 -2
  223. package/cdn/components/button-group/button-group.js +3 -3
  224. package/cdn/components/caption/caption.component.js +2 -2
  225. package/cdn/components/caption/caption.js +3 -3
  226. package/cdn/components/card/card.component.js +2 -2
  227. package/cdn/components/card/card.js +3 -3
  228. package/cdn/components/checkbox/checkbox.component.js +8 -8
  229. package/cdn/components/checkbox/checkbox.js +9 -9
  230. package/cdn/components/chip/chip.component.d.ts +2 -0
  231. package/cdn/components/chip/chip.component.js +2 -2
  232. package/cdn/components/chip/chip.js +3 -3
  233. package/cdn/components/combobox/combobox.component.js +6 -6
  234. package/cdn/components/combobox/combobox.js +7 -7
  235. package/cdn/components/data-access/data-access.component.d.ts +3 -1
  236. package/cdn/components/data-access/data-access.component.js +31 -30
  237. package/cdn/components/data-access/data-access.controller.d.ts +8 -0
  238. package/cdn/components/data-access/data-access.controller.js +1 -1
  239. package/cdn/components/data-access/data-access.js +32 -31
  240. package/cdn/components/data-access/data-access.styles.js +1 -1
  241. package/cdn/components/data-access/notebooks/data-access-notebook.js +3 -77
  242. package/cdn/components/data-grid/data-grid.component.js +5 -5
  243. package/cdn/components/data-grid/data-grid.js +6 -6
  244. package/cdn/components/data-rods/data-rods.component.js +36 -36
  245. package/cdn/components/data-rods/data-rods.js +37 -37
  246. package/cdn/components/data-subsetter/data-subsetter.component.js +42 -41
  247. package/cdn/components/data-subsetter/data-subsetter.controller.js +1 -1
  248. package/cdn/components/data-subsetter/data-subsetter.js +43 -42
  249. package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  250. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +43 -42
  251. package/cdn/components/data-subsetter-history/data-subsetter-history.js +44 -43
  252. package/cdn/components/date-picker/date-picker.component.js +17 -17
  253. package/cdn/components/date-picker/date-picker.js +18 -18
  254. package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
  255. package/cdn/components/date-range-slider/date-range-slider.js +3 -3
  256. package/cdn/components/dialog/dialog.component.js +10 -10
  257. package/cdn/components/dialog/dialog.js +11 -11
  258. package/cdn/components/divider/divider.component.js +2 -2
  259. package/cdn/components/divider/divider.js +3 -3
  260. package/cdn/components/dropdown/dropdown.component.js +4 -4
  261. package/cdn/components/dropdown/dropdown.js +5 -5
  262. package/cdn/components/earthdata-login/earthdata-login.component.js +16 -16
  263. package/cdn/components/earthdata-login/earthdata-login.js +17 -17
  264. package/cdn/components/file-upload/file-upload.component.js +2 -2
  265. package/cdn/components/file-upload/file-upload.js +3 -3
  266. package/cdn/components/icon/icon.component.js +3 -3
  267. package/cdn/components/icon/icon.js +4 -4
  268. package/cdn/components/input/input.component.js +8 -8
  269. package/cdn/components/input/input.js +9 -9
  270. package/cdn/components/loader/loader.component.js +2 -2
  271. package/cdn/components/loader/loader.js +3 -3
  272. package/cdn/components/login/login.component.js +13 -13
  273. package/cdn/components/login/login.js +14 -14
  274. package/cdn/components/map/leaflet-utils.d.ts +1 -0
  275. package/cdn/components/map/leaflet-utils.js +1 -1
  276. package/cdn/components/map/map.component.d.ts +4 -0
  277. package/cdn/components/map/map.component.js +5 -5
  278. package/cdn/components/map/map.js +6 -6
  279. package/cdn/components/menu/menu.component.js +2 -2
  280. package/cdn/components/menu/menu.js +3 -3
  281. package/cdn/components/menu-item/menu-item.component.js +11 -11
  282. package/cdn/components/menu-item/menu-item.js +12 -12
  283. package/cdn/components/menu-item/submenu-controller.js +3 -3
  284. package/cdn/components/option/option.component.js +6 -6
  285. package/cdn/components/option/option.js +7 -7
  286. package/cdn/components/pagination/pagination.component.js +6 -6
  287. package/cdn/components/pagination/pagination.js +7 -7
  288. package/cdn/components/plot/plot.component.js +2 -2
  289. package/cdn/components/plot/plot.js +3 -3
  290. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  291. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  292. package/cdn/components/plot-toolbar/plot-toolbar.component.js +14 -14
  293. package/cdn/components/plot-toolbar/plot-toolbar.js +15 -15
  294. package/cdn/components/popup/popup.component.js +2 -2
  295. package/cdn/components/popup/popup.js +3 -3
  296. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  297. package/cdn/components/progress-bar/progress-bar.js +3 -3
  298. package/cdn/components/radio/radio.component.js +4 -4
  299. package/cdn/components/radio/radio.js +5 -5
  300. package/cdn/components/radio-group/radio-group.component.js +2 -2
  301. package/cdn/components/radio-group/radio-group.js +3 -3
  302. package/cdn/components/scroll-hint/scroll-hint.component.js +4 -4
  303. package/cdn/components/scroll-hint/scroll-hint.js +5 -5
  304. package/cdn/components/select/select.component.js +10 -10
  305. package/cdn/components/select/select.js +11 -11
  306. package/cdn/components/site-header/site-header.component.js +5 -5
  307. package/cdn/components/site-header/site-header.js +5 -5
  308. package/cdn/components/site-navigation/site-navigation.component.js +2 -2
  309. package/cdn/components/site-navigation/site-navigation.js +2 -2
  310. package/cdn/components/skeleton/skeleton.component.js +2 -2
  311. package/cdn/components/skeleton/skeleton.js +3 -3
  312. package/cdn/components/slider/slider.component.js +2 -2
  313. package/cdn/components/slider/slider.js +3 -3
  314. package/cdn/components/spatial-picker/spatial-picker.component.d.ts +4 -0
  315. package/cdn/components/spatial-picker/spatial-picker.component.js +18 -18
  316. package/cdn/components/spatial-picker/spatial-picker.js +19 -19
  317. package/cdn/components/status-indicator/status-indicator.component.js +2 -2
  318. package/cdn/components/status-indicator/status-indicator.js +3 -3
  319. package/cdn/components/stepper/stepper.component.js +2 -2
  320. package/cdn/components/stepper/stepper.js +3 -3
  321. package/cdn/components/stepper-step/stepper-step.component.js +6 -6
  322. package/cdn/components/stepper-step/stepper-step.js +7 -7
  323. package/cdn/components/tab/tab.component.js +6 -6
  324. package/cdn/components/tab/tab.js +7 -7
  325. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  326. package/cdn/components/tab-panel/tab-panel.js +3 -3
  327. package/cdn/components/tabs/tabs.component.js +6 -6
  328. package/cdn/components/tabs/tabs.js +7 -7
  329. package/cdn/components/tag/tag.component.js +6 -6
  330. package/cdn/components/tag/tag.js +7 -7
  331. package/cdn/components/textarea/textarea.component.js +4 -4
  332. package/cdn/components/textarea/textarea.js +5 -5
  333. package/cdn/components/time-average-map/time-average-map.component.js +20 -20
  334. package/cdn/components/time-average-map/time-average-map.js +21 -21
  335. package/cdn/components/time-series/time-series.component.js +20 -20
  336. package/cdn/components/time-series/time-series.js +21 -21
  337. package/cdn/components/toast/toast.component.js +4 -4
  338. package/cdn/components/toast/toast.js +5 -5
  339. package/cdn/components/toggle/toggle.component.js +4 -4
  340. package/cdn/components/toggle/toggle.js +5 -5
  341. package/cdn/components/tooltip/tooltip.component.js +3 -3
  342. package/cdn/components/tooltip/tooltip.js +4 -4
  343. package/cdn/components/variable-combobox/lib.js +3 -3
  344. package/cdn/components/variable-combobox/variable-combobox.component.js +16 -16
  345. package/cdn/components/variable-combobox/variable-combobox.controller.js +4 -4
  346. package/cdn/components/variable-combobox/variable-combobox.js +17 -17
  347. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +12 -12
  348. package/cdn/components/variable-keyword-search/variable-keyword-search.js +13 -13
  349. package/cdn/custom-elements.json +4094 -3989
  350. package/cdn/react/accordion/index.js +6 -6
  351. package/cdn/react/alert/index.js +4 -4
  352. package/cdn/react/avatar/index.js +8 -8
  353. package/cdn/react/badge/index.js +3 -3
  354. package/cdn/react/breadcrumb/index.js +3 -3
  355. package/cdn/react/breadcrumbs/index.js +3 -3
  356. package/cdn/react/browse-variables/index.js +16 -16
  357. package/cdn/react/button/index.d.ts +12 -1
  358. package/cdn/react/button/index.js +9 -9
  359. package/cdn/react/button-group/index.js +3 -3
  360. package/cdn/react/caption/index.js +3 -3
  361. package/cdn/react/card/index.js +3 -3
  362. package/cdn/react/checkbox/index.js +9 -9
  363. package/cdn/react/chip/index.d.ts +8 -1
  364. package/cdn/react/chip/index.js +3 -3
  365. package/cdn/react/combobox/index.js +7 -7
  366. package/cdn/react/data-access/index.js +32 -31
  367. package/cdn/react/data-grid/index.js +6 -6
  368. package/cdn/react/data-rods/index.js +37 -37
  369. package/cdn/react/data-subsetter/index.js +43 -42
  370. package/cdn/react/data-subsetter-history/index.js +44 -43
  371. package/cdn/react/date-picker/index.js +18 -18
  372. package/cdn/react/date-range-slider/index.js +3 -3
  373. package/cdn/react/dialog/index.js +11 -11
  374. package/cdn/react/divider/index.js +3 -3
  375. package/cdn/react/dropdown/index.js +5 -5
  376. package/cdn/react/earthdata-login/index.js +17 -17
  377. package/cdn/react/file-upload/index.js +3 -3
  378. package/cdn/react/icon/index.js +4 -4
  379. package/cdn/react/index.d.ts +10 -10
  380. package/cdn/react/index.js +193 -192
  381. package/cdn/react/input/index.js +9 -9
  382. package/cdn/react/loader/index.js +3 -3
  383. package/cdn/react/login/index.js +14 -14
  384. package/cdn/react/map/index.js +6 -6
  385. package/cdn/react/menu/index.js +3 -3
  386. package/cdn/react/menu-item/index.js +12 -12
  387. package/cdn/react/option/index.js +7 -7
  388. package/cdn/react/pagination/index.js +7 -7
  389. package/cdn/react/plot/index.js +3 -3
  390. package/cdn/react/plot-toolbar/index.js +15 -15
  391. package/cdn/react/popup/index.js +3 -3
  392. package/cdn/react/progress-bar/index.js +3 -3
  393. package/cdn/react/radio/index.js +5 -5
  394. package/cdn/react/radio-group/index.js +3 -3
  395. package/cdn/react/scroll-hint/index.js +5 -5
  396. package/cdn/react/select/index.js +11 -11
  397. package/cdn/react/site-header/index.js +6 -6
  398. package/cdn/react/site-navigation/index.js +3 -3
  399. package/cdn/react/skeleton/index.js +3 -3
  400. package/cdn/react/slider/index.js +3 -3
  401. package/cdn/react/spatial-picker/index.js +19 -19
  402. package/cdn/react/status-indicator/index.js +3 -3
  403. package/cdn/react/stepper/index.js +3 -3
  404. package/cdn/react/stepper-step/index.js +7 -7
  405. package/cdn/react/tab/index.js +7 -7
  406. package/cdn/react/tab-panel/index.js +3 -3
  407. package/cdn/react/tabs/index.js +7 -7
  408. package/cdn/react/tag/index.js +7 -7
  409. package/cdn/react/textarea/index.js +5 -5
  410. package/cdn/react/time-average-map/index.js +21 -21
  411. package/cdn/react/time-series/index.js +21 -21
  412. package/cdn/react/toast/index.js +5 -5
  413. package/cdn/react/toggle/index.js +5 -5
  414. package/cdn/react/tooltip/index.js +4 -4
  415. package/cdn/react/variable-combobox/index.js +17 -17
  416. package/cdn/react/variable-keyword-search/index.js +13 -13
  417. package/cdn/terra-ui-components.js +180 -179
  418. package/cdn/types/vue/index.d.ts +647 -627
  419. package/cdn/utilities/mimetypes.js +1 -1
  420. package/cdn/vscode.html-custom-data.json +350 -335
  421. package/cdn/web-types.json +1434 -1376
  422. package/dist/chunks/chunk.23NLQYJ7.js +11 -0
  423. package/dist/chunks/chunk.2HXEBKDJ.js +11 -0
  424. package/dist/chunks/chunk.2TL5SGLD.js +11 -0
  425. package/dist/chunks/chunk.2VDXL62K.js +11 -0
  426. package/dist/chunks/chunk.2VHPJYJX.js +11 -0
  427. package/dist/chunks/chunk.3247IXNN.js +11 -0
  428. package/dist/chunks/chunk.3CINJNOA.js +24 -0
  429. package/dist/chunks/chunk.3GYL6ORG.js +21 -0
  430. package/dist/chunks/chunk.3ONUIWXV.js +29 -0
  431. package/dist/chunks/chunk.3QWCR7W7.js +24 -0
  432. package/dist/chunks/chunk.3SE6ZIME.js +11 -0
  433. package/dist/chunks/chunk.3UO4BPIZ.js +11 -0
  434. package/dist/chunks/chunk.3XFQA2XA.js +11 -0
  435. package/dist/chunks/chunk.45MY2TZ5.js +93 -0
  436. package/dist/chunks/chunk.47EHCMIS.js +11 -0
  437. package/dist/chunks/chunk.4IT7UTHS.js +21 -0
  438. package/dist/chunks/chunk.4JDUHDVS.js +525 -0
  439. package/dist/chunks/chunk.4WIFFN7U.js +89 -0
  440. package/dist/chunks/chunk.5CQ3UBKW.js +21 -0
  441. package/dist/chunks/chunk.5K55E6UH.js +25 -0
  442. package/dist/chunks/chunk.5KYQIBJW.js +11 -0
  443. package/dist/chunks/chunk.5OE6LILN.js +844 -0
  444. package/dist/chunks/chunk.5RCWRDS6.js +642 -0
  445. package/dist/chunks/chunk.65RMIPXH.js +21 -0
  446. package/dist/chunks/chunk.6E2CQRCE.js +291 -0
  447. package/dist/chunks/chunk.6FWNBIFP.js +21 -0
  448. package/dist/chunks/chunk.6JNRKHB4.js +25 -0
  449. package/dist/chunks/chunk.6L37ZKYY.js +28 -0
  450. package/dist/chunks/chunk.6TFGD3QA.js +180 -0
  451. package/dist/chunks/chunk.74BMSBNF.js +11 -0
  452. package/dist/chunks/chunk.7BLY6TM7.js +11 -0
  453. package/dist/chunks/chunk.7BOCHV2R.js +21 -0
  454. package/dist/chunks/chunk.7QALYCE5.js +11 -0
  455. package/dist/chunks/chunk.7VBFJCK4.js +21 -0
  456. package/dist/chunks/chunk.7WF6TPF6.js +11 -0
  457. package/dist/chunks/chunk.A56NOSXD.js +443 -0
  458. package/dist/chunks/chunk.ATQZRLHV.js +21 -0
  459. package/dist/chunks/chunk.AYGU6XYF.js +11 -0
  460. package/dist/chunks/chunk.B3DZ7FFL.js +271 -0
  461. package/dist/chunks/chunk.B5CILBXM.js +11 -0
  462. package/dist/chunks/chunk.B75DWB3E.js +21 -0
  463. package/dist/chunks/chunk.BH2KP7PZ.js +24 -0
  464. package/dist/chunks/chunk.BRJ7H3TE.js +25 -0
  465. package/dist/chunks/chunk.BRSGX5AM.js +11 -0
  466. package/dist/chunks/chunk.BSUXEC3M.js +143 -0
  467. package/dist/chunks/chunk.D2NEYV7K.js +262 -0
  468. package/dist/chunks/chunk.D2WXN4BG.js +11 -0
  469. package/dist/chunks/chunk.D5M6M4QG.js +11 -0
  470. package/dist/chunks/chunk.D67GQK4P.js +11 -0
  471. package/dist/chunks/chunk.D7UB7ALS.js +31 -0
  472. package/dist/chunks/chunk.DEO7CUOC.js +86 -0
  473. package/dist/chunks/chunk.DGI2HS6F.js +24 -0
  474. package/dist/chunks/chunk.DLLWR2VD.js +11 -0
  475. package/dist/chunks/chunk.DM52LQTY.js +11 -0
  476. package/dist/chunks/chunk.DQZBUH37.js +345 -0
  477. package/dist/chunks/chunk.DRBSI7XC.js +24 -0
  478. package/dist/chunks/chunk.DRS2JY44.js +67 -0
  479. package/dist/chunks/chunk.DZHKU3N5.js +245 -0
  480. package/dist/chunks/chunk.EOUABBGI.js +123 -0
  481. package/dist/chunks/chunk.ESLNXPTJ.js +21 -0
  482. package/dist/chunks/chunk.EVTNY6AO.js +153 -0
  483. package/dist/chunks/chunk.FCVMQBC6.js +927 -0
  484. package/dist/chunks/chunk.FEL4RVQO.js +11 -0
  485. package/dist/chunks/chunk.FEORSNUI.js +220 -0
  486. package/dist/chunks/chunk.FGTNTIOR.js +21 -0
  487. package/dist/chunks/chunk.FIT2RVBA.js +180 -0
  488. package/dist/chunks/chunk.FLBPWUOX.js +11 -0
  489. package/dist/chunks/chunk.FLJ2EW3R.js +11 -0
  490. package/dist/chunks/chunk.FM6RMNPW.js +29 -0
  491. package/dist/chunks/chunk.FP2ZZ5E2.js +28 -0
  492. package/dist/chunks/chunk.FRFLTGR4.js +24 -0
  493. package/dist/chunks/chunk.FSKG5KRG.js +20 -0
  494. package/dist/chunks/chunk.GA27DR2B.js +220 -0
  495. package/dist/chunks/chunk.GHURD4CJ.js +11 -0
  496. package/dist/chunks/chunk.GSU5W4TG.js +1788 -0
  497. package/dist/chunks/chunk.HAQWUOM4.js +75 -0
  498. package/dist/chunks/chunk.HQVGLVRZ.js +52 -0
  499. package/dist/chunks/chunk.HRIOFO3J.js +25 -0
  500. package/dist/chunks/chunk.HT2SR5A4.js +21 -0
  501. package/dist/chunks/chunk.HV6RS7ZE.js +11 -0
  502. package/dist/chunks/chunk.HW7S6WES.js +11 -0
  503. package/dist/chunks/chunk.HXDEAUF3.js +11 -0
  504. package/dist/chunks/chunk.IACKHKNK.js +39 -0
  505. package/dist/chunks/chunk.ICKWGKAA.js +24 -0
  506. package/dist/chunks/chunk.IDSPFGMF.js +24 -0
  507. package/dist/chunks/chunk.IEWMER6A.js +27 -0
  508. package/dist/chunks/chunk.IG5E3PNG.js +145 -0
  509. package/dist/chunks/chunk.ILC2ULOI.js +91 -0
  510. package/dist/chunks/chunk.J22KHIHT.js +11 -0
  511. package/dist/chunks/chunk.J543UX5E.js +11 -0
  512. package/dist/chunks/chunk.JBAD2K7T.js +21 -0
  513. package/dist/chunks/chunk.JLZUVFCE.js +287 -0
  514. package/dist/chunks/chunk.JTBVF4U6.js +422 -0
  515. package/dist/chunks/chunk.K2SZX5IG.js +21 -0
  516. package/dist/chunks/chunk.K3AWJBDJ.js +21 -0
  517. package/dist/chunks/chunk.KE3MZQ6G.js +21 -0
  518. package/dist/chunks/chunk.KFBVHRHZ.js +11 -0
  519. package/dist/chunks/chunk.KMFDKQOL.js +83 -0
  520. package/dist/chunks/chunk.LFAE5YNF.js +11 -0
  521. package/dist/chunks/chunk.LFAOPKE4.js +21 -0
  522. package/dist/chunks/chunk.LLHM6XAL.js +11 -0
  523. package/dist/chunks/chunk.LOG6ATWX.js +609 -0
  524. package/dist/chunks/chunk.LOSJS73C.js +48 -0
  525. package/dist/chunks/chunk.LTYKZQRC.js +121 -0
  526. package/dist/chunks/chunk.LUHKHMDR.js +11 -0
  527. package/dist/chunks/chunk.LVEVEN6X.js +11 -0
  528. package/dist/chunks/chunk.M5JKEDTX.js +24 -0
  529. package/dist/chunks/chunk.MILX66GG.js +25 -0
  530. package/dist/chunks/chunk.MJAA2EKQ.js +214 -0
  531. package/dist/chunks/chunk.MJQNLZIJ.js +57 -0
  532. package/dist/chunks/chunk.MOVS4YNJ.js +24 -0
  533. package/dist/chunks/chunk.MU56K6DK.js +24 -0
  534. package/dist/chunks/chunk.N44PPT5L.js +74 -0
  535. package/dist/chunks/chunk.N7PWSHBL.js +24 -0
  536. package/dist/chunks/chunk.NAZZYKXP.js +11 -0
  537. package/dist/chunks/chunk.NDFKP43K.js +52 -0
  538. package/dist/chunks/chunk.NFRQWBWE.js +78 -0
  539. package/dist/chunks/chunk.NO5K5I44.js +27 -0
  540. package/dist/chunks/chunk.NP4VI55C.js +21 -0
  541. package/dist/chunks/chunk.NSUXBNRY.js +1124 -0
  542. package/dist/chunks/chunk.NYSYEO6S.js +477 -0
  543. package/dist/chunks/chunk.OKITA6RN.js +43 -0
  544. package/dist/chunks/chunk.ONVJYGXW.js +112 -0
  545. package/dist/chunks/chunk.OOZ35KRV.js +458 -0
  546. package/dist/chunks/chunk.OQMU445F.js +229 -0
  547. package/dist/chunks/chunk.PNYCPGP6.js +21 -0
  548. package/dist/chunks/chunk.PWY2KP3Q.js +581 -0
  549. package/dist/chunks/chunk.QFGNVANU.js +345 -0
  550. package/dist/chunks/chunk.QKEGFJMV.js +11 -0
  551. package/dist/chunks/chunk.QKFXTGWF.js +11 -0
  552. package/dist/chunks/chunk.QQEZTSC7.js +24 -0
  553. package/dist/chunks/chunk.QROD7XSA.js +21 -0
  554. package/dist/chunks/chunk.QWM7TR7V.js +11 -0
  555. package/dist/chunks/chunk.QWW2BYOP.js +21 -0
  556. package/dist/chunks/chunk.R45WTHZT.js +11 -0
  557. package/dist/chunks/chunk.R4VDG6AK.js +446 -0
  558. package/dist/chunks/chunk.R7XNQ3UF.js +11 -0
  559. package/dist/chunks/chunk.RE75I24N.js +11 -0
  560. package/dist/chunks/chunk.RI2R4X2H.js +11 -0
  561. package/dist/chunks/chunk.RKNRGTZP.js +27 -0
  562. package/dist/chunks/chunk.RKYRE5YW.js +64 -0
  563. package/dist/chunks/chunk.RMC5XGJR.js +937 -0
  564. package/dist/chunks/chunk.RNCN4M47.js +26 -0
  565. package/dist/chunks/chunk.RQ27EUVN.js +190 -0
  566. package/dist/chunks/chunk.RQLZOB4O.js +214 -0
  567. package/dist/chunks/chunk.S4FQNSDY.js +11 -0
  568. package/dist/chunks/chunk.S4RYPA4R.js +24 -0
  569. package/dist/chunks/chunk.S5DYKI6G.js +11 -0
  570. package/dist/chunks/chunk.S7FJE6DS.js +97 -0
  571. package/dist/chunks/chunk.SA6GMLYJ.js +11 -0
  572. package/dist/chunks/chunk.SD3BVNB4.js +11 -0
  573. package/dist/chunks/chunk.SVXJ6IWX.js +21 -0
  574. package/dist/chunks/chunk.T255GJVN.js +213 -0
  575. package/dist/chunks/chunk.T2UA4I4O.js +472 -0
  576. package/dist/chunks/chunk.TCOLWI6Z.js +21 -0
  577. package/dist/chunks/chunk.TD4HMCFI.js +21 -0
  578. package/dist/chunks/chunk.TPZRD4LL.js +11 -0
  579. package/dist/chunks/chunk.TQRJHVPX.js +27 -0
  580. package/dist/chunks/chunk.TRCVXOB3.js +25 -0
  581. package/dist/chunks/chunk.TRZ24D6C.js +28 -0
  582. package/dist/chunks/chunk.TU3Z4DM7.js +21 -0
  583. package/dist/chunks/chunk.U3XIKOX7.js +73 -0
  584. package/dist/chunks/chunk.UAQROBYW.js +21 -0
  585. package/dist/chunks/chunk.UGI4WX6F.js +11 -0
  586. package/dist/chunks/chunk.ULZ5HNOZ.js +11 -0
  587. package/dist/chunks/chunk.V2TFKPNC.js +449 -0
  588. package/dist/chunks/chunk.VPDGNTFF.js +11 -0
  589. package/dist/chunks/chunk.VPYT2IYR.js +11 -0
  590. package/dist/chunks/chunk.VQDCH34V.js +85 -0
  591. package/dist/chunks/chunk.VVCGM4BW.js +21 -0
  592. package/dist/chunks/chunk.VVQDHS65.js +2062 -0
  593. package/dist/chunks/chunk.W6TNURMD.js +24 -0
  594. package/dist/chunks/chunk.WIYDJCKH.js +11 -0
  595. package/dist/chunks/chunk.WP3THC5K.js +591 -0
  596. package/dist/chunks/chunk.WPKMKO7L.js +596 -0
  597. package/dist/chunks/chunk.WRZTYDD7.js +101 -0
  598. package/dist/chunks/chunk.X4LEFOTK.js +26 -0
  599. package/dist/chunks/chunk.X4T5FEVN.js +409 -0
  600. package/dist/chunks/chunk.X627CJ3G.js +161 -0
  601. package/dist/chunks/chunk.XBO7X2M2.js +11 -0
  602. package/dist/chunks/chunk.XE4T3WTA.js +120 -0
  603. package/dist/chunks/chunk.XJTJGJAK.js +21 -0
  604. package/dist/chunks/chunk.XSFRIUM5.js +355 -0
  605. package/dist/chunks/chunk.XWO3K7ZZ.js +11 -0
  606. package/dist/chunks/chunk.YS3LXZOQ.js +11 -0
  607. package/dist/chunks/chunk.YX54YA5F.js +247 -0
  608. package/dist/chunks/chunk.Z2UUIIRV.js +11 -0
  609. package/dist/chunks/chunk.Z35NQ7A7.js +33 -0
  610. package/dist/chunks/chunk.Z4UDKTEF.js +11 -0
  611. package/dist/chunks/chunk.Z6G2TOJC.js +241 -0
  612. package/dist/chunks/chunk.ZD56437X.js +180 -0
  613. package/dist/chunks/chunk.ZDZUNTE2.js +28 -0
  614. package/dist/chunks/chunk.ZIVBHHJU.js +21 -0
  615. package/dist/chunks/chunk.ZLAXCM2J.js +61 -0
  616. package/dist/chunks/chunk.ZP2DB3XG.js +264 -0
  617. package/dist/chunks/chunk.ZPH3RFHS.js +252 -0
  618. package/dist/chunks/chunk.ZXLL6LDL.js +11 -0
  619. package/dist/components/accordion/accordion.component.js +5 -5
  620. package/dist/components/accordion/accordion.js +6 -6
  621. package/dist/components/alert/alert.component.js +3 -3
  622. package/dist/components/alert/alert.js +4 -4
  623. package/dist/components/avatar/avatar.component.js +5 -5
  624. package/dist/components/avatar/avatar.js +6 -6
  625. package/dist/components/badge/badge.component.js +2 -2
  626. package/dist/components/badge/badge.js +3 -3
  627. package/dist/components/breadcrumb/breadcrumb.component.js +2 -2
  628. package/dist/components/breadcrumb/breadcrumb.js +3 -3
  629. package/dist/components/breadcrumbs/breadcrumbs.component.js +2 -2
  630. package/dist/components/breadcrumbs/breadcrumbs.js +3 -3
  631. package/dist/components/browse-variables/browse-variables.component.js +11 -11
  632. package/dist/components/browse-variables/browse-variables.js +12 -12
  633. package/dist/components/button/button.component.d.ts +6 -0
  634. package/dist/components/button/button.component.js +5 -5
  635. package/dist/components/button/button.js +6 -6
  636. package/dist/components/button-group/button-group.component.js +2 -2
  637. package/dist/components/button-group/button-group.js +3 -3
  638. package/dist/components/caption/caption.component.js +2 -2
  639. package/dist/components/caption/caption.js +3 -3
  640. package/dist/components/card/card.component.js +2 -2
  641. package/dist/components/card/card.js +3 -3
  642. package/dist/components/checkbox/checkbox.component.js +5 -5
  643. package/dist/components/checkbox/checkbox.js +6 -6
  644. package/dist/components/chip/chip.component.d.ts +2 -0
  645. package/dist/components/chip/chip.component.js +2 -2
  646. package/dist/components/chip/chip.js +3 -3
  647. package/dist/components/combobox/combobox.component.js +2 -2
  648. package/dist/components/combobox/combobox.js +3 -3
  649. package/dist/components/data-access/data-access.component.d.ts +3 -1
  650. package/dist/components/data-access/data-access.component.js +24 -23
  651. package/dist/components/data-access/data-access.controller.d.ts +8 -0
  652. package/dist/components/data-access/data-access.controller.js +1 -1
  653. package/dist/components/data-access/data-access.js +25 -24
  654. package/dist/components/data-access/data-access.styles.js +1 -1
  655. package/dist/components/data-access/notebooks/data-access-notebook.js +3 -70
  656. package/dist/components/data-grid/data-grid.component.js +3 -3
  657. package/dist/components/data-grid/data-grid.js +4 -4
  658. package/dist/components/data-rods/data-rods.component.js +27 -27
  659. package/dist/components/data-rods/data-rods.js +28 -28
  660. package/dist/components/data-subsetter/data-subsetter.component.js +35 -34
  661. package/dist/components/data-subsetter/data-subsetter.controller.js +1 -1
  662. package/dist/components/data-subsetter/data-subsetter.js +36 -35
  663. package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  664. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +36 -35
  665. package/dist/components/data-subsetter-history/data-subsetter-history.js +37 -36
  666. package/dist/components/date-picker/date-picker.component.js +12 -12
  667. package/dist/components/date-picker/date-picker.js +13 -13
  668. package/dist/components/date-range-slider/date-range-slider.component.js +2 -2
  669. package/dist/components/date-range-slider/date-range-slider.js +3 -3
  670. package/dist/components/dialog/dialog.component.js +7 -7
  671. package/dist/components/dialog/dialog.js +8 -8
  672. package/dist/components/divider/divider.component.js +2 -2
  673. package/dist/components/divider/divider.js +3 -3
  674. package/dist/components/dropdown/dropdown.component.js +4 -4
  675. package/dist/components/dropdown/dropdown.js +5 -5
  676. package/dist/components/earthdata-login/earthdata-login.component.js +12 -12
  677. package/dist/components/earthdata-login/earthdata-login.js +13 -13
  678. package/dist/components/file-upload/file-upload.component.js +2 -2
  679. package/dist/components/file-upload/file-upload.js +3 -3
  680. package/dist/components/icon/icon.component.js +3 -3
  681. package/dist/components/icon/icon.js +4 -4
  682. package/dist/components/input/input.component.js +5 -5
  683. package/dist/components/input/input.js +6 -6
  684. package/dist/components/loader/loader.component.js +2 -2
  685. package/dist/components/loader/loader.js +3 -3
  686. package/dist/components/login/login.component.js +10 -10
  687. package/dist/components/login/login.js +11 -11
  688. package/dist/components/map/leaflet-utils.d.ts +1 -0
  689. package/dist/components/map/leaflet-utils.js +1 -1
  690. package/dist/components/map/map.component.d.ts +4 -0
  691. package/dist/components/map/map.component.js +3 -3
  692. package/dist/components/map/map.js +4 -4
  693. package/dist/components/menu/menu.component.js +2 -2
  694. package/dist/components/menu/menu.js +3 -3
  695. package/dist/components/menu-item/menu-item.component.js +7 -7
  696. package/dist/components/menu-item/menu-item.js +8 -8
  697. package/dist/components/option/option.component.js +4 -4
  698. package/dist/components/option/option.js +5 -5
  699. package/dist/components/pagination/pagination.component.js +4 -4
  700. package/dist/components/pagination/pagination.js +5 -5
  701. package/dist/components/plot/plot.component.js +2 -2
  702. package/dist/components/plot/plot.js +3 -3
  703. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  704. package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  705. package/dist/components/plot-toolbar/plot-toolbar.component.js +10 -10
  706. package/dist/components/plot-toolbar/plot-toolbar.js +11 -11
  707. package/dist/components/popup/popup.component.js +2 -2
  708. package/dist/components/popup/popup.js +3 -3
  709. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  710. package/dist/components/progress-bar/progress-bar.js +3 -3
  711. package/dist/components/radio/radio.component.js +2 -2
  712. package/dist/components/radio/radio.js +3 -3
  713. package/dist/components/radio-group/radio-group.component.js +2 -2
  714. package/dist/components/radio-group/radio-group.js +3 -3
  715. package/dist/components/scroll-hint/scroll-hint.component.js +4 -4
  716. package/dist/components/scroll-hint/scroll-hint.js +5 -5
  717. package/dist/components/select/select.component.js +8 -8
  718. package/dist/components/select/select.js +9 -9
  719. package/dist/components/site-header/site-header.component.js +5 -5
  720. package/dist/components/site-header/site-header.js +5 -5
  721. package/dist/components/site-navigation/site-navigation.component.js +2 -2
  722. package/dist/components/site-navigation/site-navigation.js +2 -2
  723. package/dist/components/skeleton/skeleton.component.js +2 -2
  724. package/dist/components/skeleton/skeleton.js +3 -3
  725. package/dist/components/slider/slider.component.js +2 -2
  726. package/dist/components/slider/slider.js +3 -3
  727. package/dist/components/spatial-picker/spatial-picker.component.d.ts +4 -0
  728. package/dist/components/spatial-picker/spatial-picker.component.js +13 -13
  729. package/dist/components/spatial-picker/spatial-picker.js +14 -14
  730. package/dist/components/status-indicator/status-indicator.component.js +2 -2
  731. package/dist/components/status-indicator/status-indicator.js +3 -3
  732. package/dist/components/stepper/stepper.component.js +2 -2
  733. package/dist/components/stepper/stepper.js +3 -3
  734. package/dist/components/stepper-step/stepper-step.component.js +4 -4
  735. package/dist/components/stepper-step/stepper-step.js +5 -5
  736. package/dist/components/tab/tab.component.js +4 -4
  737. package/dist/components/tab/tab.js +5 -5
  738. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  739. package/dist/components/tab-panel/tab-panel.js +3 -3
  740. package/dist/components/tabs/tabs.component.js +4 -4
  741. package/dist/components/tabs/tabs.js +5 -5
  742. package/dist/components/tag/tag.component.js +4 -4
  743. package/dist/components/tag/tag.js +5 -5
  744. package/dist/components/textarea/textarea.component.js +2 -2
  745. package/dist/components/textarea/textarea.js +3 -3
  746. package/dist/components/time-average-map/time-average-map.component.js +16 -16
  747. package/dist/components/time-average-map/time-average-map.js +17 -17
  748. package/dist/components/time-series/time-series.component.js +16 -16
  749. package/dist/components/time-series/time-series.js +17 -17
  750. package/dist/components/toast/toast.component.js +4 -4
  751. package/dist/components/toast/toast.js +5 -5
  752. package/dist/components/toggle/toggle.component.js +2 -2
  753. package/dist/components/toggle/toggle.js +3 -3
  754. package/dist/components/tooltip/tooltip.component.js +3 -3
  755. package/dist/components/tooltip/tooltip.js +4 -4
  756. package/dist/components/variable-combobox/variable-combobox.component.js +8 -8
  757. package/dist/components/variable-combobox/variable-combobox.js +9 -9
  758. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +8 -8
  759. package/dist/components/variable-keyword-search/variable-keyword-search.js +9 -9
  760. package/dist/custom-elements.json +4094 -3989
  761. package/dist/react/accordion/index.js +6 -6
  762. package/dist/react/alert/index.js +4 -4
  763. package/dist/react/avatar/index.js +6 -6
  764. package/dist/react/badge/index.js +3 -3
  765. package/dist/react/breadcrumb/index.js +3 -3
  766. package/dist/react/breadcrumbs/index.js +3 -3
  767. package/dist/react/browse-variables/index.js +12 -12
  768. package/dist/react/button/index.d.ts +12 -1
  769. package/dist/react/button/index.js +6 -6
  770. package/dist/react/button-group/index.js +3 -3
  771. package/dist/react/caption/index.js +3 -3
  772. package/dist/react/card/index.js +3 -3
  773. package/dist/react/checkbox/index.js +6 -6
  774. package/dist/react/chip/index.d.ts +8 -1
  775. package/dist/react/chip/index.js +3 -3
  776. package/dist/react/combobox/index.js +3 -3
  777. package/dist/react/data-access/index.js +25 -24
  778. package/dist/react/data-grid/index.js +4 -4
  779. package/dist/react/data-rods/index.js +28 -28
  780. package/dist/react/data-subsetter/index.js +36 -35
  781. package/dist/react/data-subsetter-history/index.js +37 -36
  782. package/dist/react/date-picker/index.js +13 -13
  783. package/dist/react/date-range-slider/index.js +3 -3
  784. package/dist/react/dialog/index.js +8 -8
  785. package/dist/react/divider/index.js +3 -3
  786. package/dist/react/dropdown/index.js +5 -5
  787. package/dist/react/earthdata-login/index.js +13 -13
  788. package/dist/react/file-upload/index.js +3 -3
  789. package/dist/react/icon/index.js +4 -4
  790. package/dist/react/index.d.ts +10 -10
  791. package/dist/react/index.js +183 -182
  792. package/dist/react/input/index.js +6 -6
  793. package/dist/react/loader/index.js +3 -3
  794. package/dist/react/login/index.js +11 -11
  795. package/dist/react/map/index.js +4 -4
  796. package/dist/react/menu/index.js +3 -3
  797. package/dist/react/menu-item/index.js +8 -8
  798. package/dist/react/option/index.js +5 -5
  799. package/dist/react/pagination/index.js +5 -5
  800. package/dist/react/plot/index.js +3 -3
  801. package/dist/react/plot-toolbar/index.js +11 -11
  802. package/dist/react/popup/index.js +3 -3
  803. package/dist/react/progress-bar/index.js +3 -3
  804. package/dist/react/radio/index.js +3 -3
  805. package/dist/react/radio-group/index.js +3 -3
  806. package/dist/react/scroll-hint/index.js +5 -5
  807. package/dist/react/select/index.js +9 -9
  808. package/dist/react/site-header/index.js +6 -6
  809. package/dist/react/site-navigation/index.js +3 -3
  810. package/dist/react/skeleton/index.js +3 -3
  811. package/dist/react/slider/index.js +3 -3
  812. package/dist/react/spatial-picker/index.js +14 -14
  813. package/dist/react/status-indicator/index.js +3 -3
  814. package/dist/react/stepper/index.js +3 -3
  815. package/dist/react/stepper-step/index.js +5 -5
  816. package/dist/react/tab/index.js +5 -5
  817. package/dist/react/tab-panel/index.js +3 -3
  818. package/dist/react/tabs/index.js +5 -5
  819. package/dist/react/tag/index.js +5 -5
  820. package/dist/react/textarea/index.js +3 -3
  821. package/dist/react/time-average-map/index.js +17 -17
  822. package/dist/react/time-series/index.js +17 -17
  823. package/dist/react/toast/index.js +5 -5
  824. package/dist/react/toggle/index.js +3 -3
  825. package/dist/react/tooltip/index.js +4 -4
  826. package/dist/react/variable-combobox/index.js +9 -9
  827. package/dist/react/variable-keyword-search/index.js +9 -9
  828. package/dist/terra-ui-components.js +170 -169
  829. package/dist/terra_ui_components-0.0.139-py3-none-any.whl +0 -0
  830. package/dist/terra_ui_components-0.0.139.tar.gz +0 -0
  831. package/dist/types/vue/index.d.ts +647 -627
  832. package/dist/utilities/mimetypes.js +1 -1
  833. package/dist/vscode.html-custom-data.json +350 -335
  834. package/dist/web-types.json +1434 -1376
  835. package/package.json +1 -1
  836. package/cdn/chunks/chunk.22S7J53Z.js +0 -67
  837. package/cdn/chunks/chunk.23PCIPDF.js +0 -19
  838. package/cdn/chunks/chunk.27G75GGU.js +0 -538
  839. package/cdn/chunks/chunk.2DACQFXN.js +0 -19
  840. package/cdn/chunks/chunk.2HPWHMTS.js +0 -83
  841. package/cdn/chunks/chunk.2LPNFAXL.js +0 -943
  842. package/cdn/chunks/chunk.2MOKVZJ5.js +0 -110
  843. package/cdn/chunks/chunk.2PRXFIL2.js +0 -19
  844. package/cdn/chunks/chunk.2RKK2NJX.js +0 -284
  845. package/cdn/chunks/chunk.2URR7KQD.js +0 -19
  846. package/cdn/chunks/chunk.2XVJ2QDX.js +0 -29
  847. package/cdn/chunks/chunk.3EEC7I6T.js +0 -77
  848. package/cdn/chunks/chunk.3GXGMTY7.js +0 -60
  849. package/cdn/chunks/chunk.3HLUFJVD.js +0 -33
  850. package/cdn/chunks/chunk.3IJ5N6XV.js +0 -19
  851. package/cdn/chunks/chunk.3W2QKJNA.js +0 -29
  852. package/cdn/chunks/chunk.3WBMN6AO.js +0 -33
  853. package/cdn/chunks/chunk.4BYM3PSZ.js +0 -32
  854. package/cdn/chunks/chunk.4F2POTGR.js +0 -29
  855. package/cdn/chunks/chunk.4FQQUENV.js +0 -19
  856. package/cdn/chunks/chunk.4LKUKF5P.js +0 -29
  857. package/cdn/chunks/chunk.4YVAC4T7.js +0 -33
  858. package/cdn/chunks/chunk.5FD7SPJL.js +0 -32
  859. package/cdn/chunks/chunk.5GWHRZQO.js +0 -19
  860. package/cdn/chunks/chunk.5LCERF7M.js +0 -19
  861. package/cdn/chunks/chunk.5OMJSDRO.js +0 -19
  862. package/cdn/chunks/chunk.5P5LI5FQ.js +0 -19
  863. package/cdn/chunks/chunk.5RYT4QNM.js +0 -157
  864. package/cdn/chunks/chunk.5U26YRUO.js +0 -170
  865. package/cdn/chunks/chunk.65KOPVPE.js +0 -35
  866. package/cdn/chunks/chunk.6QHNIMU5.js +0 -132
  867. package/cdn/chunks/chunk.6SS4U5IB.js +0 -19
  868. package/cdn/chunks/chunk.726GSTJK.js +0 -19
  869. package/cdn/chunks/chunk.746ESAP4.js +0 -29
  870. package/cdn/chunks/chunk.77UG26Q7.js +0 -92
  871. package/cdn/chunks/chunk.7F576CLI.js +0 -19
  872. package/cdn/chunks/chunk.7LCQR7LX.js +0 -29
  873. package/cdn/chunks/chunk.7QVY7QC6.js +0 -189
  874. package/cdn/chunks/chunk.A53THORF.js +0 -29
  875. package/cdn/chunks/chunk.A55R7KNO.js +0 -19
  876. package/cdn/chunks/chunk.AB6QWTLJ.js +0 -165
  877. package/cdn/chunks/chunk.AEOF7YXM.js +0 -47
  878. package/cdn/chunks/chunk.AGZ2BKOZ.js +0 -460
  879. package/cdn/chunks/chunk.ALSEUQQT.js +0 -657
  880. package/cdn/chunks/chunk.AMUJG4EI.js +0 -19
  881. package/cdn/chunks/chunk.ANK46MTZ.js +0 -19
  882. package/cdn/chunks/chunk.BCZ5AOSN.js +0 -34
  883. package/cdn/chunks/chunk.BDWYMWDI.js +0 -32
  884. package/cdn/chunks/chunk.BFOWS3V6.js +0 -37
  885. package/cdn/chunks/chunk.BRRAV2JK.js +0 -231
  886. package/cdn/chunks/chunk.BW6BIUC2.js +0 -29
  887. package/cdn/chunks/chunk.BZ23ZYNY.js +0 -198
  888. package/cdn/chunks/chunk.BZYXIVRE.js +0 -278
  889. package/cdn/chunks/chunk.C6DIHTFR.js +0 -19
  890. package/cdn/chunks/chunk.C6MK52WZ.js +0 -19
  891. package/cdn/chunks/chunk.CANTU3KL.js +0 -19
  892. package/cdn/chunks/chunk.CBLIEAVP.js +0 -29
  893. package/cdn/chunks/chunk.CKCFFHK4.js +0 -62
  894. package/cdn/chunks/chunk.CQZGT3XF.js +0 -29
  895. package/cdn/chunks/chunk.D3UNVSUC.js +0 -2022
  896. package/cdn/chunks/chunk.DE3Q4BBO.js +0 -83
  897. package/cdn/chunks/chunk.DK42QW5C.js +0 -264
  898. package/cdn/chunks/chunk.DMSAIZSF.js +0 -1803
  899. package/cdn/chunks/chunk.DPIARO6Q.js +0 -19
  900. package/cdn/chunks/chunk.DULIUURY.js +0 -19
  901. package/cdn/chunks/chunk.EGTBQ75C.js +0 -279
  902. package/cdn/chunks/chunk.EK3TJLP7.js +0 -29
  903. package/cdn/chunks/chunk.EK5L73QA.js +0 -19
  904. package/cdn/chunks/chunk.EOLEDDT6.js +0 -86
  905. package/cdn/chunks/chunk.EPQMWW6J.js +0 -29
  906. package/cdn/chunks/chunk.ERM35NF4.js +0 -93
  907. package/cdn/chunks/chunk.EVDKCSEM.js +0 -32
  908. package/cdn/chunks/chunk.F2IGIRGX.js +0 -74
  909. package/cdn/chunks/chunk.FOIYQ7RV.js +0 -467
  910. package/cdn/chunks/chunk.FSUD7737.js +0 -19
  911. package/cdn/chunks/chunk.G3CUJEHV.js +0 -29
  912. package/cdn/chunks/chunk.G6LSS7OJ.js +0 -234
  913. package/cdn/chunks/chunk.G7IGT7KJ.js +0 -36
  914. package/cdn/chunks/chunk.GEYCHQ5S.js +0 -19
  915. package/cdn/chunks/chunk.GH5IWK3V.js +0 -10710
  916. package/cdn/chunks/chunk.GNYNWKDR.js +0 -29
  917. package/cdn/chunks/chunk.GQ4YZR4O.js +0 -29
  918. package/cdn/chunks/chunk.GXQYS4G4.js +0 -104
  919. package/cdn/chunks/chunk.H2EOOEC4.js +0 -32
  920. package/cdn/chunks/chunk.H5U3SX4J.js +0 -19
  921. package/cdn/chunks/chunk.H6GFTJJC.js +0 -19
  922. package/cdn/chunks/chunk.H723KDWI.js +0 -29
  923. package/cdn/chunks/chunk.H7HEIQO7.js +0 -33860
  924. package/cdn/chunks/chunk.HGRXLEEU.js +0 -78
  925. package/cdn/chunks/chunk.HJJFATJF.js +0 -134
  926. package/cdn/chunks/chunk.HPJOXSJL.js +0 -99
  927. package/cdn/chunks/chunk.HPWISA4T.js +0 -32
  928. package/cdn/chunks/chunk.HQ3IRDFT.js +0 -132
  929. package/cdn/chunks/chunk.HTKDQEYN.js +0 -36
  930. package/cdn/chunks/chunk.HWI2JJEQ.js +0 -19
  931. package/cdn/chunks/chunk.II7IZSEJ.js +0 -904
  932. package/cdn/chunks/chunk.IPTHOEUZ.js +0 -19
  933. package/cdn/chunks/chunk.IQHRKQHK.js +0 -123
  934. package/cdn/chunks/chunk.IWVNVNRD.js +0 -134
  935. package/cdn/chunks/chunk.J7B53F7T.js +0 -19
  936. package/cdn/chunks/chunk.JAGIG3PS.js +0 -29
  937. package/cdn/chunks/chunk.JCOCWS4Y.js +0 -35
  938. package/cdn/chunks/chunk.JEKYQJZD.js +0 -357
  939. package/cdn/chunks/chunk.JMSXD2OA.js +0 -19
  940. package/cdn/chunks/chunk.JOPDNTLL.js +0 -19
  941. package/cdn/chunks/chunk.JTEBR63A.js +0 -19
  942. package/cdn/chunks/chunk.JWUFGQTE.js +0 -19
  943. package/cdn/chunks/chunk.JYAJFSDC.js +0 -1966
  944. package/cdn/chunks/chunk.KBC7X22B.js +0 -19
  945. package/cdn/chunks/chunk.KDYBLSZ6.js +0 -60
  946. package/cdn/chunks/chunk.KLNG6LEF.js +0 -19
  947. package/cdn/chunks/chunk.KN7CYKOZ.js +0 -19
  948. package/cdn/chunks/chunk.KPOY32Z4.js +0 -276
  949. package/cdn/chunks/chunk.L3U4G4GP.js +0 -34
  950. package/cdn/chunks/chunk.LMHAVRVQ.js +0 -19
  951. package/cdn/chunks/chunk.LUDKYZBX.js +0 -19
  952. package/cdn/chunks/chunk.LXRQFDWU.js +0 -19
  953. package/cdn/chunks/chunk.LXWHSW5M.js +0 -33
  954. package/cdn/chunks/chunk.LYISQVUE.js +0 -29
  955. package/cdn/chunks/chunk.M7XTHQO4.js +0 -19
  956. package/cdn/chunks/chunk.MHTCA6EK.js +0 -19
  957. package/cdn/chunks/chunk.MNXZLSBR.js +0 -29
  958. package/cdn/chunks/chunk.MP7U25LC.js +0 -39
  959. package/cdn/chunks/chunk.MUYT47EJ.js +0 -29
  960. package/cdn/chunks/chunk.MV5F7X43.js +0 -29
  961. package/cdn/chunks/chunk.MWHEXKSI.js +0 -29
  962. package/cdn/chunks/chunk.MYTBFYRV.js +0 -155
  963. package/cdn/chunks/chunk.N3MGBFYG.js +0 -599
  964. package/cdn/chunks/chunk.N4RNLOLD.js +0 -359
  965. package/cdn/chunks/chunk.NGYUCASL.js +0 -32
  966. package/cdn/chunks/chunk.NHDAPMOC.js +0 -19
  967. package/cdn/chunks/chunk.NMK7HPSZ.js +0 -35
  968. package/cdn/chunks/chunk.NOXGDE7O.js +0 -19
  969. package/cdn/chunks/chunk.NPYN4EGN.js +0 -29
  970. package/cdn/chunks/chunk.NYU4LPG2.js +0 -19
  971. package/cdn/chunks/chunk.NZ7QQGRM.js +0 -302
  972. package/cdn/chunks/chunk.OCVBP6KL.js +0 -29
  973. package/cdn/chunks/chunk.OITJCECC.js +0 -491
  974. package/cdn/chunks/chunk.OJVQCUP2.js +0 -71
  975. package/cdn/chunks/chunk.OTYA7NZY.js +0 -19
  976. package/cdn/chunks/chunk.OWXZOXTN.js +0 -372
  977. package/cdn/chunks/chunk.OYK4FLZ4.js +0 -19
  978. package/cdn/chunks/chunk.P6IJ6UUF.js +0 -29
  979. package/cdn/chunks/chunk.PBOV3MQO.js +0 -49
  980. package/cdn/chunks/chunk.PDGPGRPX.js +0 -29
  981. package/cdn/chunks/chunk.PFFAQQPP.js +0 -19
  982. package/cdn/chunks/chunk.PMN3V7QB.js +0 -259
  983. package/cdn/chunks/chunk.POJX7GJA.js +0 -19
  984. package/cdn/chunks/chunk.PQYL532M.js +0 -19
  985. package/cdn/chunks/chunk.PT5QZXKJ.js +0 -32
  986. package/cdn/chunks/chunk.PVTI6G7R.js +0 -113
  987. package/cdn/chunks/chunk.QBQCXVZP.js +0 -472
  988. package/cdn/chunks/chunk.QPKDJX5G.js +0 -239
  989. package/cdn/chunks/chunk.QV6YXRE6.js +0 -435
  990. package/cdn/chunks/chunk.R44HCWQ3.js +0 -190
  991. package/cdn/chunks/chunk.RCZL3APN.js +0 -36
  992. package/cdn/chunks/chunk.RKO275X6.js +0 -30
  993. package/cdn/chunks/chunk.RPWP7LSQ.js +0 -610
  994. package/cdn/chunks/chunk.SCB6PWFB.js +0 -19
  995. package/cdn/chunks/chunk.SI4TEPPY.js +0 -890
  996. package/cdn/chunks/chunk.SOGQ2GFO.js +0 -41
  997. package/cdn/chunks/chunk.SOZGAICH.js +0 -224
  998. package/cdn/chunks/chunk.T2LJU5SC.js +0 -158
  999. package/cdn/chunks/chunk.T4EQTEDI.js +0 -79
  1000. package/cdn/chunks/chunk.TAWVX55V.js +0 -29
  1001. package/cdn/chunks/chunk.TEGV7WUJ.js +0 -29
  1002. package/cdn/chunks/chunk.TJIFH3OX.js +0 -19
  1003. package/cdn/chunks/chunk.TVRR3SM5.js +0 -32
  1004. package/cdn/chunks/chunk.TYVMFE7P.js +0 -615
  1005. package/cdn/chunks/chunk.UAEW4PIB.js +0 -524
  1006. package/cdn/chunks/chunk.UBEL6UBN.js +0 -99
  1007. package/cdn/chunks/chunk.UEUKNHJC.js +0 -93
  1008. package/cdn/chunks/chunk.UJCGG4LB.js +0 -32
  1009. package/cdn/chunks/chunk.UKKTTXZ2.js +0 -32
  1010. package/cdn/chunks/chunk.UVCHR5V3.js +0 -151
  1011. package/cdn/chunks/chunk.V47MTYLG.js +0 -29
  1012. package/cdn/chunks/chunk.V64ILDXX.js +0 -19
  1013. package/cdn/chunks/chunk.V6YDSLCU.js +0 -29
  1014. package/cdn/chunks/chunk.VGTDPEH5.js +0 -32
  1015. package/cdn/chunks/chunk.VR3FNL4S.js +0 -29
  1016. package/cdn/chunks/chunk.W3SOQHSJ.js +0 -36
  1017. package/cdn/chunks/chunk.WGWGWRMN.js +0 -19
  1018. package/cdn/chunks/chunk.WHKE4O5L.js +0 -621
  1019. package/cdn/chunks/chunk.WPOANU47.js +0 -240
  1020. package/cdn/chunks/chunk.WRYG3KHH.js +0 -188
  1021. package/cdn/chunks/chunk.WTTMQ3RX.js +0 -230
  1022. package/cdn/chunks/chunk.X7SD5NZE.js +0 -37
  1023. package/cdn/chunks/chunk.X7UMBNMW.js +0 -19
  1024. package/cdn/chunks/chunk.XDMRI6O6.js +0 -19
  1025. package/cdn/chunks/chunk.XDPFQFMM.js +0 -224
  1026. package/cdn/chunks/chunk.XOCXQRA3.js +0 -32
  1027. package/cdn/chunks/chunk.YAAK53WD.js +0 -106
  1028. package/cdn/chunks/chunk.YIOSR74U.js +0 -35
  1029. package/cdn/chunks/chunk.YJNRUXVJ.js +0 -19
  1030. package/cdn/chunks/chunk.YKG6245M.js +0 -55346
  1031. package/cdn/chunks/chunk.YOCCV5RU.js +0 -19
  1032. package/cdn/chunks/chunk.YPKJMU5S.js +0 -655
  1033. package/cdn/chunks/chunk.YREZG3NX.js +0 -19
  1034. package/cdn/chunks/chunk.YRG7HJM6.js +0 -29
  1035. package/cdn/chunks/chunk.Z4XS4UXZ.js +0 -19
  1036. package/cdn/chunks/chunk.Z6EB64K7.js +0 -19
  1037. package/cdn/chunks/chunk.ZLUS3OQ6.js +0 -19
  1038. package/cdn/chunks/chunk.ZPYXJAFE.js +0 -32
  1039. package/dist/chunks/chunk.27KI24GD.js +0 -11
  1040. package/dist/chunks/chunk.2CEJINHY.js +0 -25
  1041. package/dist/chunks/chunk.2II5UBAU.js +0 -27
  1042. package/dist/chunks/chunk.2NY6YVAI.js +0 -11
  1043. package/dist/chunks/chunk.2O3OEA2T.js +0 -21
  1044. package/dist/chunks/chunk.37GK355W.js +0 -220
  1045. package/dist/chunks/chunk.3JBYISXS.js +0 -180
  1046. package/dist/chunks/chunk.3T5HNZUF.js +0 -927
  1047. package/dist/chunks/chunk.47YXFNIF.js +0 -11
  1048. package/dist/chunks/chunk.4HDDLDMW.js +0 -24
  1049. package/dist/chunks/chunk.4JCHESW7.js +0 -21
  1050. package/dist/chunks/chunk.4MGGBJBD.js +0 -20
  1051. package/dist/chunks/chunk.4OCJUPPM.js +0 -21
  1052. package/dist/chunks/chunk.4OLY33CP.js +0 -180
  1053. package/dist/chunks/chunk.4TYIRSZN.js +0 -43
  1054. package/dist/chunks/chunk.5BQA6VBW.js +0 -11
  1055. package/dist/chunks/chunk.5JPNE62Q.js +0 -28
  1056. package/dist/chunks/chunk.62C2ADOH.js +0 -21
  1057. package/dist/chunks/chunk.63JSVLOD.js +0 -399
  1058. package/dist/chunks/chunk.64DJ53R3.js +0 -25
  1059. package/dist/chunks/chunk.6F7LCNNM.js +0 -21
  1060. package/dist/chunks/chunk.6GBIVIOO.js +0 -355
  1061. package/dist/chunks/chunk.6HBIOGWN.js +0 -458
  1062. package/dist/chunks/chunk.6K4MV3RU.js +0 -24
  1063. package/dist/chunks/chunk.6UMTX7EO.js +0 -1788
  1064. package/dist/chunks/chunk.6ZFKVBPI.js +0 -252
  1065. package/dist/chunks/chunk.72RIQ36D.js +0 -214
  1066. package/dist/chunks/chunk.76HSLOAZ.js +0 -24
  1067. package/dist/chunks/chunk.77YRLV3O.js +0 -11
  1068. package/dist/chunks/chunk.7IBZ6ZUJ.js +0 -11
  1069. package/dist/chunks/chunk.7JVCMXN3.js +0 -525
  1070. package/dist/chunks/chunk.7NW66R5Y.js +0 -11
  1071. package/dist/chunks/chunk.7OCJU3PJ.js +0 -1124
  1072. package/dist/chunks/chunk.7U2Y3NXL.js +0 -11
  1073. package/dist/chunks/chunk.7YXSXQJ3.js +0 -11
  1074. package/dist/chunks/chunk.7Z6VY2RU.js +0 -11
  1075. package/dist/chunks/chunk.A7ZBEFXF.js +0 -28
  1076. package/dist/chunks/chunk.AJFCJLZG.js +0 -11
  1077. package/dist/chunks/chunk.AKPRFRKY.js +0 -123
  1078. package/dist/chunks/chunk.AOPR4VC2.js +0 -21
  1079. package/dist/chunks/chunk.AS3JETCG.js +0 -83
  1080. package/dist/chunks/chunk.BAMCVKFY.js +0 -262
  1081. package/dist/chunks/chunk.BBXDX7XQ.js +0 -264
  1082. package/dist/chunks/chunk.BD64ORBT.js +0 -21
  1083. package/dist/chunks/chunk.BDMFPOB3.js +0 -153
  1084. package/dist/chunks/chunk.BEGIYBUS.js +0 -190
  1085. package/dist/chunks/chunk.BENFLFQZ.js +0 -11
  1086. package/dist/chunks/chunk.BFHIXX4U.js +0 -21
  1087. package/dist/chunks/chunk.BGF4PQZ6.js +0 -28
  1088. package/dist/chunks/chunk.BLERQFGP.js +0 -11
  1089. package/dist/chunks/chunk.BR5HVZCU.js +0 -11
  1090. package/dist/chunks/chunk.BT63KJKP.js +0 -596
  1091. package/dist/chunks/chunk.CFOWQQDC.js +0 -609
  1092. package/dist/chunks/chunk.CHT47WGF.js +0 -25
  1093. package/dist/chunks/chunk.CJ7MQ35P.js +0 -24
  1094. package/dist/chunks/chunk.CN2OLYQA.js +0 -21
  1095. package/dist/chunks/chunk.CS5R35CD.js +0 -143
  1096. package/dist/chunks/chunk.CY6KS3HH.js +0 -11
  1097. package/dist/chunks/chunk.D33KF56V.js +0 -93
  1098. package/dist/chunks/chunk.D3XHEM4H.js +0 -101
  1099. package/dist/chunks/chunk.D5N54JEF.js +0 -29
  1100. package/dist/chunks/chunk.D7OVG36E.js +0 -11
  1101. package/dist/chunks/chunk.DVLKC7ZJ.js +0 -20
  1102. package/dist/chunks/chunk.DVQMBWH4.js +0 -21
  1103. package/dist/chunks/chunk.EDU6RZWQ.js +0 -345
  1104. package/dist/chunks/chunk.EJ3R63YT.js +0 -443
  1105. package/dist/chunks/chunk.EUPUISG5.js +0 -24
  1106. package/dist/chunks/chunk.EWJSXTRF.js +0 -89
  1107. package/dist/chunks/chunk.EYNXMCNN.js +0 -11
  1108. package/dist/chunks/chunk.EZL4X7UO.js +0 -24
  1109. package/dist/chunks/chunk.F4577XDE.js +0 -180
  1110. package/dist/chunks/chunk.FEUUY4FA.js +0 -21
  1111. package/dist/chunks/chunk.FLATMOMI.js +0 -64
  1112. package/dist/chunks/chunk.FNEAFLHQ.js +0 -75
  1113. package/dist/chunks/chunk.GEKN4QMR.js +0 -11
  1114. package/dist/chunks/chunk.GMJA54M4.js +0 -449
  1115. package/dist/chunks/chunk.GMN2EZI5.js +0 -26
  1116. package/dist/chunks/chunk.GTIN5YXM.js +0 -11
  1117. package/dist/chunks/chunk.GVRHGI7T.js +0 -21
  1118. package/dist/chunks/chunk.GZGK3NZM.js +0 -24
  1119. package/dist/chunks/chunk.HJ24Q5U2.js +0 -21
  1120. package/dist/chunks/chunk.HM7EXYG4.js +0 -52
  1121. package/dist/chunks/chunk.HNU2NERA.js +0 -11
  1122. package/dist/chunks/chunk.HOFNZZF6.js +0 -21
  1123. package/dist/chunks/chunk.HXWAC4CL.js +0 -11
  1124. package/dist/chunks/chunk.I555DIYU.js +0 -21
  1125. package/dist/chunks/chunk.I5YMZFAS.js +0 -21
  1126. package/dist/chunks/chunk.IDPJRCWG.js +0 -11
  1127. package/dist/chunks/chunk.IODXA5NM.js +0 -21
  1128. package/dist/chunks/chunk.J63XF4G3.js +0 -11
  1129. package/dist/chunks/chunk.JLB32QOX.js +0 -67
  1130. package/dist/chunks/chunk.JMAN4SOM.js +0 -11
  1131. package/dist/chunks/chunk.JNJYP7N7.js +0 -27
  1132. package/dist/chunks/chunk.JR6GJEJS.js +0 -21
  1133. package/dist/chunks/chunk.K35EF5DO.js +0 -91
  1134. package/dist/chunks/chunk.KBPURB4K.js +0 -11
  1135. package/dist/chunks/chunk.KJWEICKD.js +0 -21
  1136. package/dist/chunks/chunk.LD6WT55R.js +0 -21
  1137. package/dist/chunks/chunk.LMJVRZ7T.js +0 -21
  1138. package/dist/chunks/chunk.LQOREKXP.js +0 -27
  1139. package/dist/chunks/chunk.LSF7LGVH.js +0 -85
  1140. package/dist/chunks/chunk.LVZ2W77N.js +0 -21
  1141. package/dist/chunks/chunk.LWAOH7JM.js +0 -21
  1142. package/dist/chunks/chunk.MAV5CTFJ.js +0 -11
  1143. package/dist/chunks/chunk.MO4GCIYR.js +0 -21
  1144. package/dist/chunks/chunk.MP44DMFP.js +0 -11
  1145. package/dist/chunks/chunk.MPGTGEBK.js +0 -28
  1146. package/dist/chunks/chunk.MX6ECHZV.js +0 -209
  1147. package/dist/chunks/chunk.MZFE3ADD.js +0 -11
  1148. package/dist/chunks/chunk.NATWUBK2.js +0 -11
  1149. package/dist/chunks/chunk.NERPVLIM.js +0 -247
  1150. package/dist/chunks/chunk.NKBZRH5X.js +0 -11
  1151. package/dist/chunks/chunk.NKWZFK5L.js +0 -39
  1152. package/dist/chunks/chunk.NQ53TPL3.js +0 -21
  1153. package/dist/chunks/chunk.NQNBY6DB.js +0 -422
  1154. package/dist/chunks/chunk.NUB7Q7TQ.js +0 -74
  1155. package/dist/chunks/chunk.NUEQ3UEE.js +0 -11
  1156. package/dist/chunks/chunk.NWUGCT42.js +0 -24
  1157. package/dist/chunks/chunk.OA3ZKP52.js +0 -11
  1158. package/dist/chunks/chunk.OM7CC4EU.js +0 -11
  1159. package/dist/chunks/chunk.ORFWYFU7.js +0 -581
  1160. package/dist/chunks/chunk.PBNI7ZSV.js +0 -21
  1161. package/dist/chunks/chunk.PEUUMUUU.js +0 -472
  1162. package/dist/chunks/chunk.PGABGACQ.js +0 -11
  1163. package/dist/chunks/chunk.PLJODQM3.js +0 -11
  1164. package/dist/chunks/chunk.QFKBI6JI.js +0 -11
  1165. package/dist/chunks/chunk.QK2RZ65K.js +0 -33
  1166. package/dist/chunks/chunk.QLZ5YF5Z.js +0 -271
  1167. package/dist/chunks/chunk.QNMCP2AR.js +0 -11
  1168. package/dist/chunks/chunk.QWT24I4A.js +0 -446
  1169. package/dist/chunks/chunk.QYBTI75Q.js +0 -121
  1170. package/dist/chunks/chunk.R23CNJKU.js +0 -11
  1171. package/dist/chunks/chunk.RCNNYHAP.js +0 -291
  1172. package/dist/chunks/chunk.RFCA33K7.js +0 -11
  1173. package/dist/chunks/chunk.RMGJUXDI.js +0 -161
  1174. package/dist/chunks/chunk.RVAAC4AG.js +0 -25
  1175. package/dist/chunks/chunk.RYH3IREP.js +0 -11
  1176. package/dist/chunks/chunk.RZ5NQVGM.js +0 -11
  1177. package/dist/chunks/chunk.RZBQAZIP.js +0 -29
  1178. package/dist/chunks/chunk.S4TF5Z5E.js +0 -52
  1179. package/dist/chunks/chunk.SBQXHA4N.js +0 -279
  1180. package/dist/chunks/chunk.TALRRPAJ.js +0 -27
  1181. package/dist/chunks/chunk.TBDE7WHX.js +0 -11
  1182. package/dist/chunks/chunk.TFIG7TXR.js +0 -229
  1183. package/dist/chunks/chunk.TGXTBKMP.js +0 -2008
  1184. package/dist/chunks/chunk.TH5SUUSJ.js +0 -21
  1185. package/dist/chunks/chunk.TJLI2QOA.js +0 -345
  1186. package/dist/chunks/chunk.TKJKD22D.js +0 -477
  1187. package/dist/chunks/chunk.TO672C5A.js +0 -11
  1188. package/dist/chunks/chunk.TQJ6GCND.js +0 -11
  1189. package/dist/chunks/chunk.TSSQWQDX.js +0 -24
  1190. package/dist/chunks/chunk.TWGD4KIO.js +0 -11
  1191. package/dist/chunks/chunk.TYR4WWGF.js +0 -637
  1192. package/dist/chunks/chunk.U2XT53ET.js +0 -78
  1193. package/dist/chunks/chunk.UBHAMQJ3.js +0 -24
  1194. package/dist/chunks/chunk.UCZ3JP6I.js +0 -86
  1195. package/dist/chunks/chunk.UFMWOIDP.js +0 -11
  1196. package/dist/chunks/chunk.UFQAJ63A.js +0 -61
  1197. package/dist/chunks/chunk.UPQ2CCUP.js +0 -245
  1198. package/dist/chunks/chunk.UQOAG4HF.js +0 -591
  1199. package/dist/chunks/chunk.UWGVWZZZ.js +0 -874
  1200. package/dist/chunks/chunk.VCZ3HYKI.js +0 -11
  1201. package/dist/chunks/chunk.VJ6DZKYW.js +0 -220
  1202. package/dist/chunks/chunk.VNJKQ7PB.js +0 -11
  1203. package/dist/chunks/chunk.VOVBBPAD.js +0 -11
  1204. package/dist/chunks/chunk.VQOM56SU.js +0 -11
  1205. package/dist/chunks/chunk.VXPVNED2.js +0 -112
  1206. package/dist/chunks/chunk.VXSDG2DE.js +0 -24
  1207. package/dist/chunks/chunk.W476TIEM.js +0 -21
  1208. package/dist/chunks/chunk.WBJWKXVP.js +0 -11
  1209. package/dist/chunks/chunk.WBT6AU3X.js +0 -844
  1210. package/dist/chunks/chunk.WGFRRTTN.js +0 -11
  1211. package/dist/chunks/chunk.WI2KVU46.js +0 -229
  1212. package/dist/chunks/chunk.WKJV3X6X.js +0 -11
  1213. package/dist/chunks/chunk.WUB5DIAS.js +0 -21
  1214. package/dist/chunks/chunk.XD45SRCY.js +0 -11
  1215. package/dist/chunks/chunk.XLXTQ5KU.js +0 -11
  1216. package/dist/chunks/chunk.XVVN4QUK.js +0 -11
  1217. package/dist/chunks/chunk.XZO7HEJG.js +0 -11
  1218. package/dist/chunks/chunk.Y3FPTRVT.js +0 -31
  1219. package/dist/chunks/chunk.Y5OFPBE5.js +0 -26
  1220. package/dist/chunks/chunk.YEGWLABS.js +0 -24
  1221. package/dist/chunks/chunk.YI45NXMT.js +0 -24
  1222. package/dist/chunks/chunk.YOUQS7PA.js +0 -120
  1223. package/dist/chunks/chunk.YOWRPG5U.js +0 -11
  1224. package/dist/chunks/chunk.YQK2U4KS.js +0 -11
  1225. package/dist/chunks/chunk.YTEQPK7W.js +0 -97
  1226. package/dist/chunks/chunk.Z7ZV4LS3.js +0 -11
  1227. package/dist/chunks/chunk.ZBS5W6T3.js +0 -11
  1228. package/dist/chunks/chunk.ZFGJ4G36.js +0 -21
  1229. package/dist/chunks/chunk.ZGRWZLQ5.js +0 -145
  1230. package/dist/chunks/chunk.ZLUNBGHN.js +0 -24
  1231. package/dist/chunks/chunk.ZOUNZ5LX.js +0 -21
  1232. package/dist/chunks/chunk.ZUYH24XB.js +0 -57
  1233. package/dist/chunks/chunk.ZVYU2FUG.js +0 -48
  1234. package/dist/chunks/chunk.ZXB6OMD6.js +0 -213
  1235. package/dist/terra_ui_components-0.0.138-py3-none-any.whl +0 -0
  1236. package/dist/terra_ui_components-0.0.138.tar.gz +0 -0
@@ -1,1803 +0,0 @@
1
- import {
2
- date_picker_styles_default
3
- } from "./chunk.LEBRE2AX.js";
4
- import {
5
- TerraDropdown
6
- } from "./chunk.27G75GGU.js";
7
- import {
8
- TerraInput
9
- } from "./chunk.RPWP7LSQ.js";
10
- import {
11
- e as e2,
12
- n as n2
13
- } from "./chunk.5RYT4QNM.js";
14
- import {
15
- TerraButton
16
- } from "./chunk.FOIYQ7RV.js";
17
- import {
18
- isValid
19
- } from "./chunk.QSDOLP4K.js";
20
- import {
21
- watch
22
- } from "./chunk.5WMSKURU.js";
23
- import {
24
- TerraElement,
25
- component_styles_default,
26
- e,
27
- n,
28
- r
29
- } from "./chunk.ALSEUQQT.js";
30
- import {
31
- x
32
- } from "./chunk.3ZQGAH53.js";
33
- import {
34
- __decorateClass,
35
- init_buffer,
36
- init_dirname,
37
- init_process
38
- } from "./chunk.CZA6CSBG.js";
39
-
40
- // src/components/date-picker/date-picker.component.ts
41
- init_dirname();
42
- init_buffer();
43
- init_process();
44
- var TerraDatePicker = class extends TerraElement {
45
- constructor() {
46
- super();
47
- this.range = false;
48
- this.hideLabel = false;
49
- this.label = "Select Date";
50
- this.helpText = "";
51
- this.showPresets = false;
52
- this.presets = [];
53
- this.enableTime = false;
54
- this.inline = false;
55
- this.splitInputs = false;
56
- this.placeholder = "Select Date";
57
- this.startPlaceholder = "Start Date";
58
- this.endPlaceholder = "End Date";
59
- this.isOpen = false;
60
- this.leftMonth = /* @__PURE__ */ new Date();
61
- this.rightMonth = /* @__PURE__ */ new Date();
62
- this.selectedStart = null;
63
- this.selectedEnd = null;
64
- this.hoverDate = null;
65
- this.isSelectingRange = false;
66
- this.showLeftMonthDropdown = false;
67
- this.showRightMonthDropdown = false;
68
- this.startHour = 12;
69
- this.startMinute = 0;
70
- this.endHour = 12;
71
- this.endMinute = 0;
72
- this.timePeriod = "AM";
73
- this.endTimePeriod = "PM";
74
- this.selectedDates = {
75
- startDate: (/* @__PURE__ */ new Date()).toString(),
76
- endDate: (/* @__PURE__ */ new Date()).toString()
77
- };
78
- this.dropdownRef = e2();
79
- this.DAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
80
- this.MONTHS = [
81
- "January",
82
- "February",
83
- "March",
84
- "April",
85
- "May",
86
- "June",
87
- "July",
88
- "August",
89
- "September",
90
- "October",
91
- "November",
92
- "December"
93
- ];
94
- this.initializePresets();
95
- }
96
- /**
97
- * Parse a date string (YYYY-MM-DD) as a local date, avoiding timezone issues.
98
- * When you do `new Date("2024-03-20")`, JavaScript interprets it as UTC midnight,
99
- * which can cause off-by-one day errors when using getDate() in local timezone.
100
- * This function parses the date as a local date instead.
101
- */
102
- parseLocalDate(dateString) {
103
- const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
104
- if (dateOnlyPattern.test(dateString)) {
105
- const [year, month, day] = dateString.split("-").map(Number);
106
- return new Date(year, month - 1, day);
107
- }
108
- return new Date(dateString);
109
- }
110
- /**
111
- * Check if two dates are in the same calendar month and year
112
- */
113
- isSameMonth(date1, date2) {
114
- return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth();
115
- }
116
- /**
117
- * Check if a date's month/year matches a given month Date
118
- */
119
- isDateInMonth(date, monthDate) {
120
- return date.getFullYear() === monthDate.getFullYear() && date.getMonth() === monthDate.getMonth();
121
- }
122
- getBounds() {
123
- const min = this.minDate ? this.parseLocalDate(this.minDate) : void 0;
124
- const max = this.maxDate ? this.parseLocalDate(this.maxDate) : void 0;
125
- return { min, max };
126
- }
127
- doesRangeOverlapBounds(range) {
128
- const { startDate, endDate } = range;
129
- const { min, max } = this.getBounds();
130
- if (!this.range) {
131
- if (!startDate)
132
- return false;
133
- if (min && startDate < min)
134
- return false;
135
- if (max && startDate > max)
136
- return false;
137
- return true;
138
- }
139
- const start = startDate != null ? startDate : /* @__PURE__ */ new Date(-864e13);
140
- const end = endDate != null ? endDate : /* @__PURE__ */ new Date(864e13);
141
- if (!min && !max)
142
- return true;
143
- const windowStart = min != null ? min : /* @__PURE__ */ new Date(-864e13);
144
- const windowEnd = max != null ? max : /* @__PURE__ */ new Date(864e13);
145
- return end >= windowStart && start <= windowEnd;
146
- }
147
- isPresetWithinBounds(range) {
148
- return this.doesRangeOverlapBounds(range);
149
- }
150
- get filteredPresets() {
151
- return (this.presets || []).filter(
152
- (preset) => this.isPresetWithinBounds(preset.getValue())
153
- );
154
- }
155
- open() {
156
- this.isOpen = true;
157
- if (this.maxDate && !this.selectedStart && !this.selectedEnd) {
158
- const max = this.parseLocalDate(this.maxDate);
159
- if (!isNaN(max.getTime())) {
160
- if (this.range) {
161
- this.rightMonth = new Date(max);
162
- const left = new Date(max);
163
- left.setMonth(left.getMonth() - 1);
164
- this.leftMonth = left;
165
- } else {
166
- this.leftMonth = new Date(max);
167
- }
168
- }
169
- }
170
- if (!this.inline && this.dropdownRef.value) {
171
- this.dropdownRef.value.show();
172
- }
173
- this.requestUpdate();
174
- }
175
- close() {
176
- this.isOpen = false;
177
- if (!this.inline && this.dropdownRef.value) {
178
- this.dropdownRef.value.hide();
179
- }
180
- this.requestUpdate();
181
- }
182
- setOpen(open) {
183
- if (open) {
184
- this.open();
185
- } else {
186
- this.close();
187
- }
188
- }
189
- handleInlineChange() {
190
- if (this.inline) {
191
- this.isOpen = true;
192
- if (this.dropdownRef.value) {
193
- this.dropdownRef.value.hide();
194
- }
195
- }
196
- }
197
- handleStartEndDateChange() {
198
- if (this.startDate) {
199
- const start = this.parseLocalDate(this.startDate);
200
- if (!isNaN(start.getTime())) {
201
- this.selectedStart = start;
202
- if (this.enableTime) {
203
- this.initializeTimeFromDate(start, true);
204
- }
205
- }
206
- } else {
207
- this.selectedStart = null;
208
- }
209
- if (this.range) {
210
- if (this.endDate) {
211
- const end = this.parseLocalDate(this.endDate);
212
- if (!isNaN(end.getTime())) {
213
- this.selectedEnd = end;
214
- if (this.enableTime) {
215
- this.initializeTimeFromDate(end, false);
216
- }
217
- }
218
- } else {
219
- this.selectedEnd = null;
220
- }
221
- if (this.selectedStart && this.selectedEnd) {
222
- const isSingleMonthRange = this.isSameMonth(
223
- this.selectedStart,
224
- this.selectedEnd
225
- );
226
- if (isSingleMonthRange) {
227
- if (this.isDateInMonth(this.selectedStart, this.leftMonth)) {
228
- this.leftMonth = new Date(this.selectedStart);
229
- if (this.isDateInMonth(this.selectedStart, this.rightMonth)) {
230
- this.rightMonth = new Date(this.selectedStart);
231
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
232
- }
233
- } else if (this.isDateInMonth(this.selectedStart, this.rightMonth)) {
234
- this.rightMonth = new Date(this.selectedStart);
235
- } else {
236
- this.leftMonth = new Date(this.selectedStart);
237
- }
238
- } else {
239
- this.leftMonth = new Date(this.selectedStart);
240
- this.rightMonth = new Date(this.selectedEnd);
241
- }
242
- } else if (this.selectedStart) {
243
- this.leftMonth = new Date(this.selectedStart);
244
- this.rightMonth = new Date(this.leftMonth);
245
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
246
- }
247
- } else {
248
- if (this.selectedStart) {
249
- this.leftMonth = new Date(this.selectedStart);
250
- }
251
- this.selectedEnd = null;
252
- }
253
- }
254
- initializePresets() {
255
- if (this.presets.length === 0) {
256
- this.presets = [
257
- {
258
- label: "Today",
259
- getValue: () => {
260
- const today = /* @__PURE__ */ new Date();
261
- return {
262
- startDate: today,
263
- endDate: this.range ? today : null
264
- };
265
- }
266
- },
267
- {
268
- label: "Yesterday",
269
- getValue: () => {
270
- const yesterday = /* @__PURE__ */ new Date();
271
- yesterday.setDate(yesterday.getDate() - 1);
272
- return {
273
- startDate: yesterday,
274
- endDate: this.range ? yesterday : null
275
- };
276
- }
277
- },
278
- {
279
- label: "Last 7 days",
280
- getValue: () => {
281
- const end = /* @__PURE__ */ new Date();
282
- const start = /* @__PURE__ */ new Date();
283
- start.setDate(start.getDate() - 6);
284
- return { startDate: start, endDate: end };
285
- }
286
- },
287
- {
288
- label: "Last 30 days",
289
- getValue: () => {
290
- const end = /* @__PURE__ */ new Date();
291
- const start = /* @__PURE__ */ new Date();
292
- start.setDate(start.getDate() - 29);
293
- return { startDate: start, endDate: end };
294
- }
295
- },
296
- {
297
- label: "Last 6 months",
298
- getValue: () => {
299
- const end = /* @__PURE__ */ new Date();
300
- const start = /* @__PURE__ */ new Date();
301
- start.setMonth(start.getMonth() - 6);
302
- return { startDate: start, endDate: end };
303
- }
304
- },
305
- {
306
- label: "Last year",
307
- getValue: () => {
308
- const end = /* @__PURE__ */ new Date();
309
- const start = /* @__PURE__ */ new Date();
310
- start.setFullYear(start.getFullYear() - 1);
311
- return { startDate: start, endDate: end };
312
- }
313
- },
314
- {
315
- label: "All time",
316
- getValue: () => {
317
- const { min, max } = this.getBounds();
318
- return {
319
- startDate: min || null,
320
- endDate: max || null
321
- };
322
- }
323
- }
324
- ];
325
- }
326
- }
327
- firstUpdated() {
328
- const params = new URLSearchParams(window.location.search);
329
- const timeStartParam = params.get("time_start") || this.startDate;
330
- const timeEndParam = params.get("time_end") || this.endDate;
331
- if (timeStartParam) {
332
- this.selectedStart = this.parseLocalDate(timeStartParam);
333
- this.leftMonth = new Date(this.selectedStart);
334
- if (this.enableTime) {
335
- this.initializeTimeFromDate(this.selectedStart, true);
336
- }
337
- }
338
- if (this.range && timeEndParam) {
339
- this.selectedEnd = this.parseLocalDate(timeEndParam);
340
- if (this.enableTime) {
341
- this.initializeTimeFromDate(this.selectedEnd, false);
342
- }
343
- if (this.selectedStart && this.selectedEnd) {
344
- const isSingleMonthRange = this.isSameMonth(
345
- this.selectedStart,
346
- this.selectedEnd
347
- );
348
- if (isSingleMonthRange) {
349
- this.rightMonth = new Date(this.selectedStart);
350
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
351
- } else {
352
- this.rightMonth = new Date(this.selectedEnd);
353
- }
354
- } else if (this.selectedEnd) {
355
- this.rightMonth = new Date(this.selectedEnd);
356
- }
357
- }
358
- if (this.range && !timeEndParam) {
359
- this.rightMonth = new Date(this.leftMonth);
360
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
361
- }
362
- if (this.inline) {
363
- this.isOpen = true;
364
- }
365
- }
366
- disconnectedCallback() {
367
- super.disconnectedCallback();
368
- }
369
- handleDropdownShow() {
370
- this.isOpen = true;
371
- }
372
- handleDropdownHide() {
373
- this.isOpen = false;
374
- }
375
- formatDisplayDate(date, isStart = true) {
376
- if (!date)
377
- return "";
378
- const format = this.displayFormat || (this.enableTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
379
- const year = date.getFullYear();
380
- const month = String(date.getMonth() + 1).padStart(2, "0");
381
- const day = String(date.getDate()).padStart(2, "0");
382
- let hours;
383
- let minutes;
384
- let seconds;
385
- if (this.enableTime) {
386
- const hour12 = isStart ? this.startHour : this.endHour;
387
- const period = isStart ? this.timePeriod : this.endTimePeriod;
388
- let hour24 = hour12;
389
- if (period === "PM" && hour12 !== 12) {
390
- hour24 = hour12 + 12;
391
- } else if (period === "AM" && hour12 === 12) {
392
- hour24 = 0;
393
- }
394
- hours = String(hour24).padStart(2, "0");
395
- minutes = String(isStart ? this.startMinute : this.endMinute).padStart(
396
- 2,
397
- "0"
398
- );
399
- seconds = "00";
400
- } else {
401
- hours = String(date.getHours()).padStart(2, "0");
402
- minutes = String(date.getMinutes()).padStart(2, "0");
403
- seconds = String(date.getSeconds()).padStart(2, "0");
404
- }
405
- return format.replace("YYYY", year.toString()).replace("MM", month).replace("DD", day).replace("HH", hours).replace("mm", minutes).replace("ss", seconds);
406
- }
407
- getDisplayValue() {
408
- if (this.range) {
409
- if (this.selectedStart && this.selectedEnd) {
410
- return `${this.formatDisplayDate(this.selectedStart, true)} \u2013 ${this.formatDisplayDate(this.selectedEnd, false)}`;
411
- } else if (this.selectedStart) {
412
- return this.formatDisplayDate(this.selectedStart, true);
413
- }
414
- return "";
415
- } else {
416
- return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
417
- }
418
- }
419
- getStartDateDisplayValue() {
420
- return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
421
- }
422
- getEndDateDisplayValue() {
423
- return this.selectedEnd ? this.formatDisplayDate(this.selectedEnd, false) : "";
424
- }
425
- parseAndFormatDate(dateStr) {
426
- const trimmed = dateStr.trim();
427
- if (!trimmed)
428
- return null;
429
- const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
430
- let date;
431
- if (dateOnlyPattern.test(trimmed)) {
432
- date = this.parseLocalDate(trimmed);
433
- } else {
434
- date = new Date(trimmed);
435
- if (!isValid(date)) {
436
- return null;
437
- }
438
- }
439
- if (!isValid(date)) {
440
- return null;
441
- }
442
- const year = date.getFullYear();
443
- const month = date.getMonth() + 1;
444
- const day = date.getDate();
445
- return `${year}-${String(month).padStart(2, "0")}-${String(day).padStart(2, "0")}`;
446
- }
447
- handleInputBlur(event) {
448
- const input = event.target;
449
- const value = input.value || "";
450
- if (!value.trim()) {
451
- this.selectedStart = null;
452
- this.selectedEnd = null;
453
- input.setCustomValidity("");
454
- this.emitChange();
455
- return;
456
- }
457
- if (this.range) {
458
- const parts = value.split(" - ");
459
- if (parts.length !== 2) {
460
- input.setCustomValidity(
461
- "Date range must be in format: YYYY-MM-DD - YYYY-MM-DD"
462
- );
463
- return;
464
- }
465
- const startFormatted = this.parseAndFormatDate(parts[0]);
466
- const endFormatted = this.parseAndFormatDate(parts[1]);
467
- if (!startFormatted) {
468
- input.setCustomValidity("Invalid start date format");
469
- return;
470
- }
471
- if (!endFormatted) {
472
- input.setCustomValidity("Invalid end date format");
473
- return;
474
- }
475
- const start = this.parseLocalDate(startFormatted);
476
- const end = this.parseLocalDate(endFormatted);
477
- let finalStart = start;
478
- let finalEnd = end;
479
- if (start > end) {
480
- finalStart = end;
481
- finalEnd = start;
482
- }
483
- if (this.minDate) {
484
- const min = this.parseLocalDate(this.minDate);
485
- if (finalStart < min) {
486
- input.setCustomValidity(
487
- `Start date must be on or after ${this.minDate}`
488
- );
489
- return;
490
- }
491
- }
492
- if (this.maxDate) {
493
- const max = this.parseLocalDate(this.maxDate);
494
- if (finalEnd > max) {
495
- input.setCustomValidity(
496
- `End date must be on or before ${this.maxDate}`
497
- );
498
- return;
499
- }
500
- }
501
- this.selectedStart = finalStart;
502
- this.selectedEnd = finalEnd;
503
- this.updateMonthViews();
504
- input.setCustomValidity("");
505
- this.emitChange();
506
- } else {
507
- const formatted = this.parseAndFormatDate(value);
508
- if (!formatted) {
509
- input.setCustomValidity("Invalid date format");
510
- return;
511
- }
512
- const date = this.parseLocalDate(formatted);
513
- if (this.minDate) {
514
- const min = this.parseLocalDate(this.minDate);
515
- if (date < min) {
516
- input.setCustomValidity(
517
- `Date must be on or after ${this.minDate}`
518
- );
519
- return;
520
- }
521
- }
522
- if (this.maxDate) {
523
- const max = this.parseLocalDate(this.maxDate);
524
- if (date > max) {
525
- input.setCustomValidity(
526
- `Date must be on or before ${this.maxDate}`
527
- );
528
- return;
529
- }
530
- }
531
- this.selectedStart = date;
532
- this.selectedEnd = null;
533
- this.updateMonthViews();
534
- input.setCustomValidity("");
535
- this.emitChange();
536
- }
537
- }
538
- handleStartInputBlur(event) {
539
- const input = event.target;
540
- const value = input.value || "";
541
- if (!value.trim()) {
542
- this.selectedStart = null;
543
- input.setCustomValidity("");
544
- this.emitChange();
545
- return;
546
- }
547
- const formatted = this.parseAndFormatDate(value);
548
- if (!formatted) {
549
- input.setCustomValidity("Invalid date format");
550
- return;
551
- }
552
- const date = this.parseLocalDate(formatted);
553
- if (this.minDate) {
554
- const min = this.parseLocalDate(this.minDate);
555
- if (date < min) {
556
- input.setCustomValidity(`Date must be on or after ${this.minDate}`);
557
- return;
558
- }
559
- }
560
- if (this.maxDate) {
561
- const max = this.parseLocalDate(this.maxDate);
562
- if (date > max) {
563
- input.setCustomValidity(`Date must be on or before ${this.maxDate}`);
564
- return;
565
- }
566
- }
567
- if (this.selectedEnd && date > this.selectedEnd) {
568
- input.setCustomValidity("Start date must be before end date");
569
- return;
570
- }
571
- this.selectedStart = date;
572
- this.leftMonth = new Date(date);
573
- input.setCustomValidity("");
574
- this.emitChange();
575
- }
576
- handleEndInputBlur(event) {
577
- const input = event.target;
578
- const value = input.value || "";
579
- if (!value.trim()) {
580
- this.selectedEnd = null;
581
- input.setCustomValidity("");
582
- this.emitChange();
583
- return;
584
- }
585
- const formatted = this.parseAndFormatDate(value);
586
- if (!formatted) {
587
- input.setCustomValidity("Invalid date format");
588
- return;
589
- }
590
- const date = this.parseLocalDate(formatted);
591
- if (this.minDate) {
592
- const min = this.parseLocalDate(this.minDate);
593
- if (date < min) {
594
- input.setCustomValidity(`Date must be on or after ${this.minDate}`);
595
- return;
596
- }
597
- }
598
- if (this.maxDate) {
599
- const max = this.parseLocalDate(this.maxDate);
600
- if (date > max) {
601
- input.setCustomValidity(`Date must be on or before ${this.maxDate}`);
602
- return;
603
- }
604
- }
605
- if (this.selectedStart && date < this.selectedStart) {
606
- input.setCustomValidity("End date must be after start date");
607
- return;
608
- }
609
- this.selectedEnd = date;
610
- if (this.selectedStart && this.isSameMonth(this.selectedStart, this.selectedEnd)) {
611
- this.rightMonth = new Date(this.selectedStart);
612
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
613
- } else {
614
- this.rightMonth = new Date(date);
615
- }
616
- input.setCustomValidity("");
617
- this.emitChange();
618
- }
619
- updateMonthViews() {
620
- if (this.selectedStart) {
621
- this.leftMonth = new Date(this.selectedStart);
622
- if (this.range && this.selectedEnd) {
623
- if (this.isSameMonth(this.selectedStart, this.selectedEnd)) {
624
- this.rightMonth = new Date(this.selectedStart);
625
- this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
626
- } else {
627
- this.rightMonth = new Date(this.selectedEnd);
628
- }
629
- }
630
- }
631
- }
632
- handleKeydown(event) {
633
- if (event.key === " ") {
634
- event.stopPropagation();
635
- return;
636
- }
637
- if (event.key === "Enter") {
638
- event.preventDefault();
639
- this.handleInputBlur(event);
640
- }
641
- }
642
- previousMonth(isLeft) {
643
- if (isLeft) {
644
- const newMonth = new Date(this.leftMonth);
645
- newMonth.setMonth(newMonth.getMonth() - 1);
646
- this.leftMonth = newMonth;
647
- } else {
648
- const newMonth = new Date(this.rightMonth);
649
- newMonth.setMonth(newMonth.getMonth() - 1);
650
- this.rightMonth = newMonth;
651
- }
652
- }
653
- nextMonth(isLeft) {
654
- if (isLeft) {
655
- const newMonth = new Date(this.leftMonth);
656
- newMonth.setMonth(newMonth.getMonth() + 1);
657
- this.leftMonth = newMonth;
658
- } else {
659
- const newMonth = new Date(this.rightMonth);
660
- newMonth.setMonth(newMonth.getMonth() + 1);
661
- this.rightMonth = newMonth;
662
- }
663
- }
664
- toggleMonthDropdown(isLeft, event) {
665
- event.stopPropagation();
666
- if (isLeft) {
667
- this.showLeftMonthDropdown = !this.showLeftMonthDropdown;
668
- this.showRightMonthDropdown = false;
669
- } else {
670
- this.showRightMonthDropdown = !this.showRightMonthDropdown;
671
- this.showLeftMonthDropdown = false;
672
- }
673
- }
674
- selectMonth(month, isLeft) {
675
- if (isLeft) {
676
- const newMonth = new Date(this.leftMonth);
677
- newMonth.setMonth(month);
678
- this.leftMonth = newMonth;
679
- this.showLeftMonthDropdown = false;
680
- } else {
681
- const newMonth = new Date(this.rightMonth);
682
- newMonth.setMonth(month);
683
- this.rightMonth = newMonth;
684
- this.showRightMonthDropdown = false;
685
- }
686
- }
687
- changeYear(delta, isLeft) {
688
- if (isLeft) {
689
- const newMonth = new Date(this.leftMonth);
690
- newMonth.setFullYear(newMonth.getFullYear() + delta);
691
- this.leftMonth = newMonth;
692
- } else {
693
- const newMonth = new Date(this.rightMonth);
694
- newMonth.setFullYear(newMonth.getFullYear() + delta);
695
- this.rightMonth = newMonth;
696
- }
697
- }
698
- handleYearInput(event, isLeft) {
699
- const input = event.target;
700
- const year = parseInt(input.value, 10);
701
- if (!isNaN(year) && year >= 1900 && year <= 2100) {
702
- if (isLeft) {
703
- const newMonth = new Date(this.leftMonth);
704
- newMonth.setFullYear(year);
705
- this.leftMonth = newMonth;
706
- } else {
707
- const newMonth = new Date(this.rightMonth);
708
- newMonth.setFullYear(year);
709
- this.rightMonth = newMonth;
710
- }
711
- }
712
- }
713
- getDaysInMonth(date) {
714
- const year = date.getFullYear();
715
- const month = date.getMonth();
716
- const firstDay = new Date(year, month, 1);
717
- const lastDay = new Date(year, month + 1, 0);
718
- const days = [];
719
- const firstDayOfWeek = firstDay.getDay();
720
- for (let i = firstDayOfWeek - 1; i >= 0; i--) {
721
- const day = new Date(year, month, -i);
722
- days.push(day);
723
- }
724
- for (let i = 1; i <= lastDay.getDate(); i++) {
725
- days.push(new Date(year, month, i));
726
- }
727
- const remainingDays = 7 - days.length % 7;
728
- if (remainingDays < 7) {
729
- for (let i = 1; i <= remainingDays; i++) {
730
- days.push(new Date(year, month + 1, i));
731
- }
732
- }
733
- return days;
734
- }
735
- isSameDay(date1, date2) {
736
- if (!date1 || !date2)
737
- return false;
738
- return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
739
- }
740
- isInRange(date) {
741
- if (!this.selectedStart || !this.selectedEnd)
742
- return false;
743
- const time = date.getTime();
744
- return time >= this.selectedStart.getTime() && time <= this.selectedEnd.getTime();
745
- }
746
- isInHoverRange(date) {
747
- if (!this.range || !this.selectedStart || !this.hoverDate || this.selectedEnd)
748
- return false;
749
- const time = date.getTime();
750
- const start = Math.min(this.selectedStart.getTime(), this.hoverDate.getTime());
751
- const end = Math.max(this.selectedStart.getTime(), this.hoverDate.getTime());
752
- return time >= start && time <= end;
753
- }
754
- isDisabled(date) {
755
- if (this.minDate) {
756
- const min = this.parseLocalDate(this.minDate);
757
- const minMidnight = new Date(
758
- min.getFullYear(),
759
- min.getMonth(),
760
- min.getDate()
761
- );
762
- const dateMidnight = new Date(
763
- date.getFullYear(),
764
- date.getMonth(),
765
- date.getDate()
766
- );
767
- if (dateMidnight < minMidnight)
768
- return true;
769
- }
770
- if (this.maxDate) {
771
- const max = this.parseLocalDate(this.maxDate);
772
- const maxMidnight = new Date(
773
- max.getFullYear(),
774
- max.getMonth(),
775
- max.getDate()
776
- );
777
- const dateMidnight = new Date(
778
- date.getFullYear(),
779
- date.getMonth(),
780
- date.getDate()
781
- );
782
- if (dateMidnight > maxMidnight)
783
- return true;
784
- }
785
- return false;
786
- }
787
- selectDate(date) {
788
- if (this.isDisabled(date))
789
- return;
790
- if (this.range) {
791
- if (!this.selectedStart || this.selectedEnd) {
792
- this.selectedStart = date;
793
- this.selectedEnd = null;
794
- this.isSelectingRange = true;
795
- } else {
796
- if (date < this.selectedStart) {
797
- this.selectedEnd = this.selectedStart;
798
- this.selectedStart = date;
799
- } else {
800
- this.selectedEnd = date;
801
- }
802
- this.isSelectingRange = false;
803
- this.emitChange();
804
- if (!this.inline) {
805
- this.isOpen = false;
806
- }
807
- }
808
- } else {
809
- this.selectedStart = date;
810
- this.selectedEnd = null;
811
- this.emitChange();
812
- if (!this.inline) {
813
- this.isOpen = false;
814
- }
815
- }
816
- }
817
- handleDateHover(date) {
818
- if (this.range && this.selectedStart && !this.selectedEnd) {
819
- this.hoverDate = date;
820
- }
821
- }
822
- selectPreset(preset) {
823
- const { startDate, endDate } = preset.getValue();
824
- if (!this.isPresetWithinBounds({ startDate, endDate })) {
825
- return;
826
- }
827
- const { min, max } = this.getBounds();
828
- if (this.range) {
829
- let s = startDate;
830
- let e3 = endDate;
831
- if (s && min && s < min)
832
- s = new Date(min);
833
- if (s && max && s > max)
834
- s = new Date(max);
835
- if (e3 && min && e3 < min)
836
- e3 = new Date(min);
837
- if (e3 && max && e3 > max)
838
- e3 = new Date(max);
839
- if (s && e3 && e3 < s) {
840
- const tmp = s;
841
- s = e3;
842
- e3 = tmp;
843
- }
844
- this.selectedStart = s;
845
- this.selectedEnd = e3;
846
- } else {
847
- let s = startDate;
848
- if (s && min && s < min)
849
- s = new Date(min);
850
- if (s && max && s > max)
851
- s = new Date(max);
852
- this.selectedStart = s;
853
- this.selectedEnd = null;
854
- }
855
- if (this.selectedStart) {
856
- this.leftMonth = new Date(this.selectedStart);
857
- if (this.range && this.selectedEnd) {
858
- this.rightMonth = new Date(this.selectedEnd);
859
- }
860
- }
861
- this.emitChange();
862
- if (!this.range && !this.inline) {
863
- this.isOpen = false;
864
- }
865
- }
866
- emitChange() {
867
- let startDateTime = "";
868
- let endDateTime = "";
869
- if (this.selectedStart) {
870
- if (this.enableTime) {
871
- const startDate = new Date(this.selectedStart);
872
- let hours = this.startHour;
873
- if (this.timePeriod === "PM" && hours !== 12)
874
- hours += 12;
875
- if (this.timePeriod === "AM" && hours === 12)
876
- hours = 0;
877
- startDate.setHours(hours, this.startMinute, 0, 0);
878
- startDateTime = startDate.toISOString();
879
- } else {
880
- startDateTime = this.selectedStart.toISOString().split("T")[0];
881
- }
882
- }
883
- if (this.selectedEnd) {
884
- if (this.enableTime) {
885
- const endDate = new Date(this.selectedEnd);
886
- let hours = this.endHour;
887
- if (this.endTimePeriod === "PM" && hours !== 12)
888
- hours += 12;
889
- if (this.endTimePeriod === "AM" && hours === 12)
890
- hours = 0;
891
- endDate.setHours(hours, this.endMinute, 0, 0);
892
- endDateTime = endDate.toISOString();
893
- } else {
894
- endDateTime = this.selectedEnd.toISOString().split("T")[0];
895
- }
896
- }
897
- this.emit("terra-date-range-change", {
898
- detail: {
899
- startDate: startDateTime,
900
- endDate: endDateTime
901
- }
902
- });
903
- }
904
- initializeTimeFromDate(date, isStart) {
905
- let hours = date.getHours();
906
- const minutes = date.getMinutes();
907
- const period = hours >= 12 ? "PM" : "AM";
908
- if (hours === 0)
909
- hours = 12;
910
- else if (hours > 12)
911
- hours -= 12;
912
- if (isStart) {
913
- this.startHour = hours;
914
- this.startMinute = minutes;
915
- this.timePeriod = period;
916
- } else {
917
- this.endHour = hours;
918
- this.endMinute = minutes;
919
- this.endTimePeriod = period;
920
- }
921
- }
922
- changeTime(type, delta, isStart) {
923
- if (type === "hour") {
924
- if (isStart) {
925
- let newHour = this.startHour + delta;
926
- if (newHour > 12)
927
- newHour = 1;
928
- if (newHour < 1)
929
- newHour = 12;
930
- this.startHour = newHour;
931
- } else {
932
- let newHour = this.endHour + delta;
933
- if (newHour > 12)
934
- newHour = 1;
935
- if (newHour < 1)
936
- newHour = 12;
937
- this.endHour = newHour;
938
- }
939
- } else {
940
- if (isStart) {
941
- let newMinute = this.startMinute + delta;
942
- if (newMinute >= 60)
943
- newMinute = 0;
944
- if (newMinute < 0)
945
- newMinute = 59;
946
- this.startMinute = newMinute;
947
- } else {
948
- let newMinute = this.endMinute + delta;
949
- if (newMinute >= 60)
950
- newMinute = 0;
951
- if (newMinute < 0)
952
- newMinute = 59;
953
- this.endMinute = newMinute;
954
- }
955
- }
956
- }
957
- handleTimeInput(event, type, isStart) {
958
- const input = event.target;
959
- let value = parseInt(input.value, 10);
960
- if (type === "hour") {
961
- if (isNaN(value) || value < 1 || value > 12) {
962
- input.value = isStart ? this.startHour.toString().padStart(2, "0") : this.endHour.toString().padStart(2, "0");
963
- return;
964
- }
965
- if (isStart)
966
- this.startHour = value;
967
- else
968
- this.endHour = value;
969
- } else {
970
- if (isNaN(value) || value < 0 || value >= 60) {
971
- input.value = isStart ? this.startMinute.toString().padStart(2, "0") : this.endMinute.toString().padStart(2, "0");
972
- return;
973
- }
974
- if (isStart)
975
- this.startMinute = value;
976
- else
977
- this.endMinute = value;
978
- }
979
- }
980
- togglePeriod(isStart) {
981
- if (isStart) {
982
- this.timePeriod = this.timePeriod === "AM" ? "PM" : "AM";
983
- } else {
984
- this.endTimePeriod = this.endTimePeriod === "AM" ? "PM" : "AM";
985
- }
986
- }
987
- renderCalendar(month, isLeft = true) {
988
- const days = this.getDaysInMonth(month);
989
- const currentMonth = month.getMonth();
990
- const showDropdown = isLeft ? this.showLeftMonthDropdown : this.showRightMonthDropdown;
991
- return x`
992
- <div class="calendar">
993
- <div class="calendar__header">
994
- <button
995
- type="button"
996
- class="calendar__nav"
997
- @click=${() => this.previousMonth(isLeft)}
998
- >
999
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
1000
- <path
1001
- d="M10 12L6 8L10 4"
1002
- stroke="currentColor"
1003
- stroke-width="2"
1004
- stroke-linecap="round"
1005
- stroke-linejoin="round"
1006
- />
1007
- </svg>
1008
- </button>
1009
-
1010
- <div class="calendar__month-year">
1011
- <div class="calendar__month-dropdown-wrapper">
1012
- <button
1013
- type="button"
1014
- class="calendar__month-button"
1015
- @click=${(e3) => this.toggleMonthDropdown(isLeft, e3)}
1016
- >
1017
- ${this.MONTHS[month.getMonth()]}
1018
- <svg
1019
- width="12"
1020
- height="12"
1021
- viewBox="0 0 12 12"
1022
- fill="none"
1023
- class="calendar__month-icon"
1024
- >
1025
- <path
1026
- d="M3 5L6 8L9 5"
1027
- stroke="currentColor"
1028
- stroke-width="1.5"
1029
- stroke-linecap="round"
1030
- stroke-linejoin="round"
1031
- />
1032
- </svg>
1033
- </button>
1034
-
1035
- ${showDropdown ? x`
1036
- <div class="calendar__month-dropdown">
1037
- ${this.MONTHS.map(
1038
- (monthName, index) => x`
1039
- <button
1040
- type="button"
1041
- class="calendar__month-option ${index === month.getMonth() ? "calendar__month-option--selected" : ""}"
1042
- @click=${() => this.selectMonth(
1043
- index,
1044
- isLeft
1045
- )}
1046
- >
1047
- ${index === month.getMonth() ? x`
1048
- <svg
1049
- width="16"
1050
- height="16"
1051
- viewBox="0 0 16 16"
1052
- fill="none"
1053
- class="calendar__month-check"
1054
- >
1055
- <path
1056
- d="M13 4L6 11L3 8"
1057
- stroke="currentColor"
1058
- stroke-width="2"
1059
- stroke-linecap="round"
1060
- stroke-linejoin="round"
1061
- />
1062
- </svg>
1063
- ` : ""}
1064
- ${monthName}
1065
- </button>
1066
- `
1067
- )}
1068
- </div>
1069
- ` : ""}
1070
- </div>
1071
-
1072
- <div class="calendar__year-input-wrapper">
1073
- <input
1074
- type="number"
1075
- class="calendar__year-input"
1076
- .value=${month.getFullYear().toString()}
1077
- @input=${(e3) => this.handleYearInput(e3, isLeft)}
1078
- @blur=${(e3) => {
1079
- const input = e3.target;
1080
- input.value = month.getFullYear().toString();
1081
- }}
1082
- min="1900"
1083
- max="2100"
1084
- />
1085
- <div class="calendar__year-spinners">
1086
- <button
1087
- type="button"
1088
- class="calendar__year-spinner calendar__year-spinner--up"
1089
- @click=${() => this.changeYear(1, isLeft)}
1090
- >
1091
- <svg
1092
- width="10"
1093
- height="10"
1094
- viewBox="0 0 10 10"
1095
- fill="none"
1096
- >
1097
- <path
1098
- d="M2 6L5 3L8 6"
1099
- stroke="currentColor"
1100
- stroke-width="1.5"
1101
- stroke-linecap="round"
1102
- stroke-linejoin="round"
1103
- />
1104
- </svg>
1105
- </button>
1106
- <button
1107
- type="button"
1108
- class="calendar__year-spinner calendar__year-spinner--down"
1109
- @click=${() => this.changeYear(-1, isLeft)}
1110
- >
1111
- <svg
1112
- width="10"
1113
- height="10"
1114
- viewBox="0 0 10 10"
1115
- fill="none"
1116
- >
1117
- <path
1118
- d="M2 4L5 7L8 4"
1119
- stroke="currentColor"
1120
- stroke-width="1.5"
1121
- stroke-linecap="round"
1122
- stroke-linejoin="round"
1123
- />
1124
- </svg>
1125
- </button>
1126
- </div>
1127
- </div>
1128
- </div>
1129
-
1130
- <button
1131
- type="button"
1132
- class="calendar__nav"
1133
- @click=${() => this.nextMonth(isLeft)}
1134
- >
1135
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
1136
- <path
1137
- d="M6 12L10 8L6 4"
1138
- stroke="currentColor"
1139
- stroke-width="2"
1140
- stroke-linecap="round"
1141
- stroke-linejoin="round"
1142
- />
1143
- </svg>
1144
- </button>
1145
- </div>
1146
- <div class="calendar__weekdays">
1147
- ${this.DAYS.map(
1148
- (day) => x`<div class="calendar__weekday">${day}</div>`
1149
- )}
1150
- </div>
1151
- <div class="calendar__days">
1152
- ${days.map((date) => {
1153
- const isCurrentMonth = date.getMonth() === currentMonth;
1154
- const isSelected = this.isSameDay(date, this.selectedStart) || this.isSameDay(date, this.selectedEnd);
1155
- const isStart = this.isSameDay(date, this.selectedStart);
1156
- const isEnd = this.isSameDay(date, this.selectedEnd);
1157
- const inRange = this.isInRange(date);
1158
- const inHoverRange = this.isInHoverRange(date);
1159
- const isDisabled = this.isDisabled(date);
1160
- return x`
1161
- <button
1162
- type="button"
1163
- class="calendar__day ${!isCurrentMonth ? "calendar__day--outside" : ""}
1164
- ${isSelected ? "calendar__day--selected" : ""}
1165
- ${isStart ? "calendar__day--start" : ""}
1166
- ${isEnd ? "calendar__day--end" : ""}
1167
- ${inRange ? "calendar__day--in-range" : ""}
1168
- ${inHoverRange ? "calendar__day--hover-range" : ""}
1169
- ${isDisabled ? "calendar__day--disabled" : ""}"
1170
- @click=${() => this.selectDate(date)}
1171
- @mouseenter=${() => this.handleDateHover(date)}
1172
- ?disabled=${isDisabled}
1173
- >
1174
- ${date.getDate()}
1175
- </button>
1176
- `;
1177
- })}
1178
- </div>
1179
- </div>
1180
- `;
1181
- }
1182
- renderTimePicker() {
1183
- if (!this.enableTime)
1184
- return "";
1185
- return x`
1186
- <div class="date-picker__time">
1187
- <div class="date-picker__time-section">
1188
- <div class="date-picker__time-inputs">
1189
- <div class="date-picker__time-input-group">
1190
- <input
1191
- type="number"
1192
- class="date-picker__time-input"
1193
- .value=${this.startHour.toString().padStart(2, "0")}
1194
- @input=${(e3) => this.handleTimeInput(e3, "hour", true)}
1195
- @blur=${(e3) => {
1196
- const input = e3.target;
1197
- input.value = this.startHour.toString().padStart(2, "0");
1198
- }}
1199
- min="1"
1200
- max="12"
1201
- />
1202
- <div class="date-picker__time-spinners">
1203
- <button
1204
- type="button"
1205
- class="date-picker__time-spinner"
1206
- @click=${() => this.changeTime("hour", 1, true)}
1207
- >
1208
- <svg
1209
- width="10"
1210
- height="10"
1211
- viewBox="0 0 10 10"
1212
- fill="none"
1213
- >
1214
- <path
1215
- d="M2 6L5 3L8 6"
1216
- stroke="currentColor"
1217
- stroke-width="1.5"
1218
- stroke-linecap="round"
1219
- stroke-linejoin="round"
1220
- />
1221
- </svg>
1222
- </button>
1223
- <button
1224
- type="button"
1225
- class="date-picker__time-spinner"
1226
- @click=${() => this.changeTime("hour", -1, true)}
1227
- >
1228
- <svg
1229
- width="10"
1230
- height="10"
1231
- viewBox="0 0 10 10"
1232
- fill="none"
1233
- >
1234
- <path
1235
- d="M2 4L5 7L8 4"
1236
- stroke="currentColor"
1237
- stroke-width="1.5"
1238
- stroke-linecap="round"
1239
- stroke-linejoin="round"
1240
- />
1241
- </svg>
1242
- </button>
1243
- </div>
1244
- </div>
1245
-
1246
- <span class="date-picker__time-separator">:</span>
1247
-
1248
- <div class="date-picker__time-input-group">
1249
- <input
1250
- type="number"
1251
- class="date-picker__time-input"
1252
- .value=${this.startMinute.toString().padStart(2, "0")}
1253
- @input=${(e3) => this.handleTimeInput(e3, "minute", true)}
1254
- @blur=${(e3) => {
1255
- const input = e3.target;
1256
- input.value = this.startMinute.toString().padStart(2, "0");
1257
- }}
1258
- min="0"
1259
- max="59"
1260
- />
1261
- <div class="date-picker__time-spinners">
1262
- <button
1263
- type="button"
1264
- class="date-picker__time-spinner"
1265
- @click=${() => this.changeTime("minute", 1, true)}
1266
- >
1267
- <svg
1268
- width="10"
1269
- height="10"
1270
- viewBox="0 0 10 10"
1271
- fill="none"
1272
- >
1273
- <path
1274
- d="M2 6L5 3L8 6"
1275
- stroke="currentColor"
1276
- stroke-width="1.5"
1277
- stroke-linecap="round"
1278
- stroke-linejoin="round"
1279
- />
1280
- </svg>
1281
- </button>
1282
- <button
1283
- type="button"
1284
- class="date-picker__time-spinner"
1285
- @click=${() => this.changeTime("minute", -1, true)}
1286
- >
1287
- <svg
1288
- width="10"
1289
- height="10"
1290
- viewBox="0 0 10 10"
1291
- fill="none"
1292
- >
1293
- <path
1294
- d="M2 4L5 7L8 4"
1295
- stroke="currentColor"
1296
- stroke-width="1.5"
1297
- stroke-linecap="round"
1298
- stroke-linejoin="round"
1299
- />
1300
- </svg>
1301
- </button>
1302
- </div>
1303
- </div>
1304
-
1305
- <button
1306
- type="button"
1307
- class="date-picker__time-period"
1308
- @click=${() => this.togglePeriod(true)}
1309
- >
1310
- ${this.timePeriod}
1311
- </button>
1312
- </div>
1313
- </div>
1314
-
1315
- ${this.range ? x`
1316
- <span class="date-picker__separator">–</span>
1317
-
1318
- <div class="date-picker__time-section">
1319
- <div class="date-picker__time-inputs">
1320
- <div class="date-picker__time-input-group">
1321
- <input
1322
- type="number"
1323
- class="date-picker__time-input"
1324
- .value=${this.endHour.toString().padStart(2, "0")}
1325
- @input=${(e3) => this.handleTimeInput(e3, "hour", false)}
1326
- @blur=${(e3) => {
1327
- const input = e3.target;
1328
- input.value = this.endHour.toString().padStart(2, "0");
1329
- }}
1330
- min="1"
1331
- max="12"
1332
- />
1333
- <div class="date-picker__time-spinners">
1334
- <button
1335
- type="button"
1336
- class="date-picker__time-spinner"
1337
- @click=${() => this.changeTime("hour", 1, false)}
1338
- >
1339
- <svg
1340
- width="10"
1341
- height="10"
1342
- viewBox="0 0 10 10"
1343
- fill="none"
1344
- >
1345
- <path
1346
- d="M2 6L5 3L8 6"
1347
- stroke="currentColor"
1348
- stroke-width="1.5"
1349
- stroke-linecap="round"
1350
- stroke-linejoin="round"
1351
- />
1352
- </svg>
1353
- </button>
1354
- <button
1355
- type="button"
1356
- class="date-picker__time-spinner"
1357
- @click=${() => this.changeTime("hour", -1, false)}
1358
- >
1359
- <svg
1360
- width="10"
1361
- height="10"
1362
- viewBox="0 0 10 10"
1363
- fill="none"
1364
- >
1365
- <path
1366
- d="M2 4L5 7L8 4"
1367
- stroke="currentColor"
1368
- stroke-width="1.5"
1369
- stroke-linecap="round"
1370
- stroke-linejoin="round"
1371
- />
1372
- </svg>
1373
- </button>
1374
- </div>
1375
- </div>
1376
-
1377
- <span class="date-picker__time-separator">:</span>
1378
-
1379
- <div class="date-picker__time-input-group">
1380
- <input
1381
- type="number"
1382
- class="date-picker__time-input"
1383
- .value=${this.endMinute.toString().padStart(2, "0")}
1384
- @input=${(e3) => this.handleTimeInput(
1385
- e3,
1386
- "minute",
1387
- false
1388
- )}
1389
- @blur=${(e3) => {
1390
- const input = e3.target;
1391
- input.value = this.endMinute.toString().padStart(2, "0");
1392
- }}
1393
- min="0"
1394
- max="59"
1395
- />
1396
- <div class="date-picker__time-spinners">
1397
- <button
1398
- type="button"
1399
- class="date-picker__time-spinner"
1400
- @click=${() => this.changeTime("minute", 1, false)}
1401
- >
1402
- <svg
1403
- width="10"
1404
- height="10"
1405
- viewBox="0 0 10 10"
1406
- fill="none"
1407
- >
1408
- <path
1409
- d="M2 6L5 3L8 6"
1410
- stroke="currentColor"
1411
- stroke-width="1.5"
1412
- stroke-linecap="round"
1413
- stroke-linejoin="round"
1414
- />
1415
- </svg>
1416
- </button>
1417
- <button
1418
- type="button"
1419
- class="date-picker__time-spinner"
1420
- @click=${() => this.changeTime(
1421
- "minute",
1422
- -1,
1423
- false
1424
- )}
1425
- >
1426
- <svg
1427
- width="10"
1428
- height="10"
1429
- viewBox="0 0 10 10"
1430
- fill="none"
1431
- >
1432
- <path
1433
- d="M2 4L5 7L8 4"
1434
- stroke="currentColor"
1435
- stroke-width="1.5"
1436
- stroke-linecap="round"
1437
- stroke-linejoin="round"
1438
- />
1439
- </svg>
1440
- </button>
1441
- </div>
1442
- </div>
1443
-
1444
- <button
1445
- type="button"
1446
- class="date-picker__time-period"
1447
- @click=${() => this.togglePeriod(false)}
1448
- >
1449
- ${this.endTimePeriod}
1450
- </button>
1451
- </div>
1452
- </div>
1453
- ` : ""}
1454
- </div>
1455
- `;
1456
- }
1457
- renderCalendarIcon() {
1458
- return x`
1459
- <svg
1460
- slot="suffix"
1461
- class="date-picker__icon"
1462
- width="20"
1463
- height="20"
1464
- viewBox="0 0 24 24"
1465
- fill="none"
1466
- stroke="currentColor"
1467
- stroke-width="2"
1468
- >
1469
- <rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
1470
- <line x1="16" y1="2" x2="16" y2="6"></line>
1471
- <line x1="8" y1="2" x2="8" y2="6"></line>
1472
- <line x1="3" y1="10" x2="21" y2="10"></line>
1473
- </svg>
1474
- `;
1475
- }
1476
- renderCalendarContent() {
1477
- return x`
1478
- <div class="date-picker__dropdown" part="calendar">
1479
- <div class="date-picker__content">
1480
- ${this.showPresets && this.filteredPresets.length > 0 ? x`
1481
- <div class="date-picker__sidebar" part="sidebar">
1482
- ${this.filteredPresets.map(
1483
- (preset) => x`
1484
- <button
1485
- type="button"
1486
- class="date-picker__preset"
1487
- @click=${() => this.selectPreset(preset)}
1488
- >
1489
- ${preset.label}
1490
- </button>
1491
- `
1492
- )}
1493
- </div>
1494
- ` : ""}
1495
-
1496
- <div class="date-picker__calendars">
1497
- ${this.renderCalendar(this.leftMonth, true)}
1498
- ${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
1499
- </div>
1500
- </div>
1501
-
1502
- ${this.enableTime ? this.renderTimePicker() : ""}
1503
- </div>
1504
- `;
1505
- }
1506
- render() {
1507
- const showSplitInputs = this.range && this.splitInputs;
1508
- if (this.inline) {
1509
- return x`
1510
- <div
1511
- class="date-picker date-picker--inline ${showSplitInputs ? "date-picker--split-inputs" : ""}"
1512
- @click=${(e3) => e3.stopPropagation()}
1513
- >
1514
- ${showSplitInputs ? x`
1515
- <div class="date-picker__inputs">
1516
- <terra-input
1517
- .label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
1518
- .hideLabel=${this.hideLabel}
1519
- .helpText=${this.helpText}
1520
- .value=${this.getStartDateDisplayValue()}
1521
- @terra-blur=${this.handleStartInputBlur}
1522
- @keydown=${this.handleKeydown}
1523
- placeholder=${this.startPlaceholder}
1524
- name="start-date"
1525
- >
1526
- ${this.renderCalendarIcon()}
1527
- </terra-input>
1528
- <terra-input
1529
- .label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
1530
- .hideLabel=${this.hideLabel}
1531
- .helpText=${this.helpText}
1532
- .value=${this.getEndDateDisplayValue()}
1533
- @terra-blur=${this.handleEndInputBlur}
1534
- @keydown=${this.handleKeydown}
1535
- placeholder=${this.endPlaceholder}
1536
- name="end-date"
1537
- >
1538
- ${this.renderCalendarIcon()}
1539
- </terra-input>
1540
- </div>
1541
- ` : x`
1542
- <terra-input
1543
- .label=${this.label}
1544
- .hideLabel=${this.hideLabel}
1545
- .helpText=${this.helpText}
1546
- .value=${this.getDisplayValue()}
1547
- placeholder=${this.placeholder}
1548
- @terra-blur=${this.handleInputBlur}
1549
- @keydown=${this.handleKeydown}
1550
- name="date"
1551
- >
1552
- ${this.renderCalendarIcon()}
1553
- </terra-input>
1554
- `}
1555
-
1556
- <div class="date-picker__dropdown-wrapper">
1557
- <div
1558
- class="date-picker__dropdown date-picker__dropdown--inline"
1559
- part="calendar"
1560
- >
1561
- <div class="date-picker__content">
1562
- ${this.showPresets && this.filteredPresets.length > 0 ? x`
1563
- <div
1564
- class="date-picker__sidebar"
1565
- part="sidebar"
1566
- >
1567
- ${this.filteredPresets.map(
1568
- (preset) => x`
1569
- <button
1570
- type="button"
1571
- class="date-picker__preset"
1572
- @click=${() => this.selectPreset(
1573
- preset
1574
- )}
1575
- >
1576
- ${preset.label}
1577
- </button>
1578
- `
1579
- )}
1580
- </div>
1581
- ` : ""}
1582
-
1583
- <div class="date-picker__calendars">
1584
- ${this.renderCalendar(this.leftMonth, true)}
1585
- ${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
1586
- </div>
1587
- </div>
1588
-
1589
- ${this.enableTime ? this.renderTimePicker() : ""}
1590
- </div>
1591
- </div>
1592
- </div>
1593
- `;
1594
- }
1595
- return x`
1596
- <div
1597
- class="date-picker ${showSplitInputs ? "date-picker--split-inputs" : ""}"
1598
- @click=${(e3) => e3.stopPropagation()}
1599
- >
1600
- ${showSplitInputs ? x`
1601
- <div class="date-picker__inputs">
1602
- <terra-dropdown
1603
- ${n2(this.dropdownRef)}
1604
- placement="bottom-start"
1605
- distance="4"
1606
- @terra-show=${this.handleDropdownShow}
1607
- @terra-hide=${this.handleDropdownHide}
1608
- hoist
1609
- >
1610
- <terra-input
1611
- slot="trigger"
1612
- .label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
1613
- .hideLabel=${this.hideLabel}
1614
- .helpText=${this.helpText}
1615
- .value=${this.getStartDateDisplayValue()}
1616
- placeholder=${this.startPlaceholder}
1617
- @terra-blur=${this.handleStartInputBlur}
1618
- @keydown=${this.handleKeydown}
1619
- name="start-date"
1620
- >
1621
- ${this.renderCalendarIcon()}
1622
- </terra-input>
1623
- ${this.renderCalendarContent()}
1624
- </terra-dropdown>
1625
- <terra-dropdown
1626
- placement="bottom-start"
1627
- distance="4"
1628
- @terra-show=${this.handleDropdownShow}
1629
- @terra-hide=${this.handleDropdownHide}
1630
- hoist
1631
- >
1632
- <terra-input
1633
- slot="trigger"
1634
- .label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
1635
- .hideLabel=${this.hideLabel}
1636
- .helpText=${this.helpText}
1637
- .value=${this.getEndDateDisplayValue()}
1638
- placeholder=${this.endPlaceholder}
1639
- @terra-blur=${this.handleEndInputBlur}
1640
- @keydown=${this.handleKeydown}
1641
- name="end-date"
1642
- >
1643
- ${this.renderCalendarIcon()}
1644
- </terra-input>
1645
- ${this.renderCalendarContent()}
1646
- </terra-dropdown>
1647
- </div>
1648
- ` : x`
1649
- <terra-dropdown
1650
- ${n2(this.dropdownRef)}
1651
- placement="bottom-start"
1652
- distance="4"
1653
- @terra-show=${this.handleDropdownShow}
1654
- @terra-hide=${this.handleDropdownHide}
1655
- hoist
1656
- >
1657
- <terra-input
1658
- slot="trigger"
1659
- .label=${this.label}
1660
- .hideLabel=${this.hideLabel}
1661
- .helpText=${this.helpText}
1662
- .value=${this.getDisplayValue()}
1663
- placeholder=${this.placeholder}
1664
- @terra-blur=${this.handleInputBlur}
1665
- @keydown=${this.handleKeydown}
1666
- name="date"
1667
- >
1668
- ${this.renderCalendarIcon()}
1669
- </terra-input>
1670
- ${this.renderCalendarContent()}
1671
- </terra-dropdown>
1672
- `}
1673
- </div>
1674
- `;
1675
- }
1676
- };
1677
- TerraDatePicker.styles = [component_styles_default, date_picker_styles_default];
1678
- TerraDatePicker.dependencies = {
1679
- "terra-button": TerraButton,
1680
- "terra-input": TerraInput,
1681
- "terra-dropdown": TerraDropdown
1682
- };
1683
- __decorateClass([
1684
- n()
1685
- ], TerraDatePicker.prototype, "id", 2);
1686
- __decorateClass([
1687
- n({ type: Boolean })
1688
- ], TerraDatePicker.prototype, "range", 2);
1689
- __decorateClass([
1690
- n({ attribute: "min-date" })
1691
- ], TerraDatePicker.prototype, "minDate", 2);
1692
- __decorateClass([
1693
- n({ attribute: "max-date" })
1694
- ], TerraDatePicker.prototype, "maxDate", 2);
1695
- __decorateClass([
1696
- n({ attribute: "start-date" })
1697
- ], TerraDatePicker.prototype, "startDate", 2);
1698
- __decorateClass([
1699
- n({ attribute: "end-date" })
1700
- ], TerraDatePicker.prototype, "endDate", 2);
1701
- __decorateClass([
1702
- n({ attribute: "hide-label", type: Boolean })
1703
- ], TerraDatePicker.prototype, "hideLabel", 2);
1704
- __decorateClass([
1705
- n()
1706
- ], TerraDatePicker.prototype, "label", 2);
1707
- __decorateClass([
1708
- n({ attribute: "help-text" })
1709
- ], TerraDatePicker.prototype, "helpText", 2);
1710
- __decorateClass([
1711
- n({ attribute: "start-label" })
1712
- ], TerraDatePicker.prototype, "startLabel", 2);
1713
- __decorateClass([
1714
- n({ attribute: "end-label" })
1715
- ], TerraDatePicker.prototype, "endLabel", 2);
1716
- __decorateClass([
1717
- n({ type: Boolean, attribute: "show-presets" })
1718
- ], TerraDatePicker.prototype, "showPresets", 2);
1719
- __decorateClass([
1720
- n({ type: Array })
1721
- ], TerraDatePicker.prototype, "presets", 2);
1722
- __decorateClass([
1723
- n({ type: Boolean, attribute: "enable-time" })
1724
- ], TerraDatePicker.prototype, "enableTime", 2);
1725
- __decorateClass([
1726
- n({ attribute: "display-format" })
1727
- ], TerraDatePicker.prototype, "displayFormat", 2);
1728
- __decorateClass([
1729
- n({ type: Boolean })
1730
- ], TerraDatePicker.prototype, "inline", 2);
1731
- __decorateClass([
1732
- n({ type: Boolean, attribute: "split-inputs" })
1733
- ], TerraDatePicker.prototype, "splitInputs", 2);
1734
- __decorateClass([
1735
- n()
1736
- ], TerraDatePicker.prototype, "placeholder", 2);
1737
- __decorateClass([
1738
- n()
1739
- ], TerraDatePicker.prototype, "startPlaceholder", 2);
1740
- __decorateClass([
1741
- n()
1742
- ], TerraDatePicker.prototype, "endPlaceholder", 2);
1743
- __decorateClass([
1744
- r()
1745
- ], TerraDatePicker.prototype, "isOpen", 2);
1746
- __decorateClass([
1747
- r()
1748
- ], TerraDatePicker.prototype, "leftMonth", 2);
1749
- __decorateClass([
1750
- r()
1751
- ], TerraDatePicker.prototype, "rightMonth", 2);
1752
- __decorateClass([
1753
- r()
1754
- ], TerraDatePicker.prototype, "selectedStart", 2);
1755
- __decorateClass([
1756
- r()
1757
- ], TerraDatePicker.prototype, "selectedEnd", 2);
1758
- __decorateClass([
1759
- r()
1760
- ], TerraDatePicker.prototype, "hoverDate", 2);
1761
- __decorateClass([
1762
- r()
1763
- ], TerraDatePicker.prototype, "isSelectingRange", 2);
1764
- __decorateClass([
1765
- r()
1766
- ], TerraDatePicker.prototype, "showLeftMonthDropdown", 2);
1767
- __decorateClass([
1768
- r()
1769
- ], TerraDatePicker.prototype, "showRightMonthDropdown", 2);
1770
- __decorateClass([
1771
- r()
1772
- ], TerraDatePicker.prototype, "startHour", 2);
1773
- __decorateClass([
1774
- r()
1775
- ], TerraDatePicker.prototype, "startMinute", 2);
1776
- __decorateClass([
1777
- r()
1778
- ], TerraDatePicker.prototype, "endHour", 2);
1779
- __decorateClass([
1780
- r()
1781
- ], TerraDatePicker.prototype, "endMinute", 2);
1782
- __decorateClass([
1783
- r()
1784
- ], TerraDatePicker.prototype, "timePeriod", 2);
1785
- __decorateClass([
1786
- r()
1787
- ], TerraDatePicker.prototype, "endTimePeriod", 2);
1788
- __decorateClass([
1789
- r()
1790
- ], TerraDatePicker.prototype, "selectedDates", 2);
1791
- __decorateClass([
1792
- e(".date-picker__dropdown")
1793
- ], TerraDatePicker.prototype, "dropdown", 2);
1794
- __decorateClass([
1795
- watch("inline")
1796
- ], TerraDatePicker.prototype, "handleInlineChange", 1);
1797
- __decorateClass([
1798
- watch(["startDate", "endDate"])
1799
- ], TerraDatePicker.prototype, "handleStartEndDateChange", 1);
1800
-
1801
- export {
1802
- TerraDatePicker
1803
- };