@nasa-terra/components 0.0.43 → 0.0.45

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 (330) hide show
  1. package/cdn/chunks/{chunk.KJ4BZBTX.js → chunk.27EMK3NO.js} +16 -4
  2. package/cdn/chunks/{chunk.OGI7F4SN.js → chunk.2BBYUVXZ.js} +1 -1
  3. package/cdn/chunks/{chunk.JZBUILMZ.js → chunk.2JVFCPZQ.js} +50 -6
  4. package/cdn/chunks/{chunk.5TCPFCD2.js → chunk.2XTKUKIB.js} +7 -7
  5. package/{dist/chunks/chunk.V7QPBR74.js → cdn/chunks/chunk.3S6YU4GV.js} +1 -1
  6. package/cdn/chunks/{chunk.ESMJ3XDS.js → chunk.4IAWGN7F.js} +1 -1
  7. package/cdn/chunks/{chunk.SNULTXLY.js → chunk.4UYNOT7W.js} +1 -1
  8. package/cdn/chunks/{chunk.ZJAN35CA.js → chunk.4Z4SJPRM.js} +1 -1
  9. package/{dist/chunks/chunk.4CGQC6VG.js → cdn/chunks/chunk.6EHV6K3S.js} +1 -1
  10. package/cdn/chunks/{chunk.MUAWDIKB.js → chunk.6NEMJOXS.js} +2 -2
  11. package/cdn/chunks/chunk.754XAIN7.js +39 -0
  12. package/cdn/chunks/{chunk.4T3FDB6X.js → chunk.AIVF2LYW.js} +1 -1
  13. package/cdn/chunks/{chunk.BKOLMPIY.js → chunk.ALXMBVVZ.js} +3 -3
  14. package/{dist/chunks/chunk.WSTFOCG3.js → cdn/chunks/chunk.BIBODSR4.js} +1 -1
  15. package/{dist/chunks/chunk.5SCGJTRA.js → cdn/chunks/chunk.BSPUHX7G.js} +1 -1
  16. package/cdn/chunks/{chunk.FROJF7FV.js → chunk.CZILWG23.js} +2 -2
  17. package/cdn/chunks/{chunk.GGDBLPBD.js → chunk.DDY3FGPF.js} +1 -1
  18. package/cdn/chunks/{chunk.WQQBVCL5.js → chunk.DF3GGEJ5.js} +1 -1
  19. package/cdn/chunks/{chunk.NL52F475.js → chunk.DWZFUOHR.js} +1 -1
  20. package/cdn/chunks/{chunk.RGXPGRGO.js → chunk.EBWKHD35.js} +1 -1
  21. package/cdn/chunks/{chunk.HY2OIJPI.js → chunk.EDZIBUTU.js} +1 -1
  22. package/cdn/chunks/{chunk.XJVNZTEE.js → chunk.FE7PKR4T.js} +1 -1
  23. package/cdn/chunks/{chunk.TY7DVGTP.js → chunk.FKZEIUI7.js} +5 -5
  24. package/cdn/chunks/{chunk.UJXGVWQA.js → chunk.FM3UWDOB.js} +1 -1
  25. package/cdn/chunks/{chunk.2GGZHPMT.js → chunk.HEVFNGHQ.js} +8 -8
  26. package/{dist/chunks/chunk.FLB4JM62.js → cdn/chunks/chunk.HFCQI2MX.js} +1 -1
  27. package/cdn/chunks/chunk.HSD63J4K.js +11 -0
  28. package/cdn/chunks/{chunk.ANZFZPPU.js → chunk.IL7RNVV6.js} +84 -27
  29. package/cdn/chunks/{chunk.FBCYHMRV.js → chunk.J53H64HP.js} +6 -6
  30. package/cdn/chunks/{chunk.BPNFS4ED.js → chunk.K6GAF43H.js} +1 -1
  31. package/cdn/chunks/{chunk.XGH62P7U.js → chunk.KDZX6267.js} +1 -1
  32. package/cdn/chunks/{chunk.KAY2II66.js → chunk.KP4VCTRF.js} +1 -1
  33. package/cdn/chunks/{chunk.WI5HA4EV.js → chunk.LSHZ2GJS.js} +1 -1
  34. package/cdn/chunks/{chunk.XAQF3BDY.js → chunk.LW4FDJZV.js} +1 -1
  35. package/cdn/chunks/{chunk.RBDPBQSI.js → chunk.NZQLJJWI.js} +1 -1
  36. package/{dist/chunks/chunk.T6R6HWM7.js → cdn/chunks/chunk.O73IBY6C.js} +1 -1
  37. package/{dist/chunks/chunk.N2FQ2MRM.js → cdn/chunks/chunk.QI4CW6SZ.js} +1 -1
  38. package/cdn/chunks/{chunk.HPB6CXCO.js → chunk.QWNJZLAC.js} +1 -1
  39. package/cdn/chunks/{chunk.7HEVEWEJ.js → chunk.RCPEY33L.js} +15 -15
  40. package/cdn/chunks/{chunk.Q6QGJGPK.js → chunk.REGE7WJB.js} +1 -1
  41. package/cdn/chunks/{chunk.IAPB27AW.js → chunk.RN6XJ3EC.js} +6 -6
  42. package/{dist/chunks/chunk.QIA6DTTP.js → cdn/chunks/chunk.SLY7YUFC.js} +1 -1
  43. package/cdn/chunks/chunk.SVB6CWAO.js +187 -0
  44. package/{dist/chunks/chunk.H7YVB7XB.js → cdn/chunks/chunk.T6GXXTCR.js} +1 -1
  45. package/cdn/chunks/chunk.TEWFW2B2.js +21 -0
  46. package/{dist/chunks/chunk.YS5RGF3Z.js → cdn/chunks/chunk.TWMOVOPK.js} +1 -1
  47. package/cdn/chunks/{chunk.XTDVJMOY.js → chunk.U5KI6JRO.js} +1 -1
  48. package/cdn/chunks/{chunk.HNZE7Q25.js → chunk.UOAXJTR4.js} +1 -1
  49. package/cdn/chunks/chunk.UQYGB6XL.js +660 -0
  50. package/cdn/chunks/{chunk.3JPFQJXJ.js → chunk.VD37HWZF.js} +10 -10
  51. package/cdn/chunks/{chunk.D7BYLJCK.js → chunk.VV7CXX5L.js} +12 -12
  52. package/cdn/chunks/{chunk.D2R6EOTB.js → chunk.VWQZIINL.js} +1 -1
  53. package/{dist/chunks/chunk.CPI32ZAZ.js → cdn/chunks/chunk.XGF2P4YV.js} +1 -1
  54. package/cdn/chunks/{chunk.ELAWVWEZ.js → chunk.XO3SOVHY.js} +2 -29
  55. package/cdn/chunks/{chunk.E6NS2XK6.js → chunk.XSXK5XPO.js} +1 -1
  56. package/cdn/chunks/chunk.XU3NXPIM.js +193 -0
  57. package/{dist/chunks/chunk.LNGXE27U.js → cdn/chunks/chunk.Y6FGE5IT.js} +1 -1
  58. package/cdn/chunks/{chunk.T6H2MZZI.js → chunk.Y7I2RXN6.js} +1 -10
  59. package/cdn/chunks/{chunk.S4INEVCC.js → chunk.Y7P4LXE6.js} +11 -11
  60. package/cdn/chunks/{chunk.ZU6ADSVN.js → chunk.YCRGAL67.js} +1 -1
  61. package/{dist/chunks/chunk.AFI6EDPJ.js → cdn/chunks/chunk.YDTFMWV3.js} +1 -1
  62. package/cdn/chunks/{chunk.L5Q6MO7Q.js → chunk.YHH2QGV3.js} +1 -1
  63. package/cdn/chunks/chunk.YIABHSHN.js +505 -0
  64. package/cdn/chunks/{chunk.4XFHUWXK.js → chunk.YZXMJRFT.js} +1 -1
  65. package/{dist/chunks/chunk.37HULH6M.js → cdn/chunks/chunk.ZPUZYX2F.js} +1 -1
  66. package/cdn/chunks/{chunk.QUT2NHTH.js → chunk.ZROILKPX.js} +1 -1
  67. package/cdn/chunks/{chunk.CH45CXZY.js → chunk.ZX2ZNCYX.js} +1 -1
  68. package/cdn/components/browse-variables/browse-variables.component.js +23 -22
  69. package/cdn/components/browse-variables/browse-variables.controller.js +4 -2
  70. package/cdn/components/browse-variables/browse-variables.js +24 -23
  71. package/cdn/components/browse-variables/browse-variables.types.d.ts +8 -0
  72. package/cdn/components/button/button.component.js +4 -4
  73. package/cdn/components/button/button.js +5 -5
  74. package/cdn/components/chip/chip.component.js +2 -2
  75. package/cdn/components/chip/chip.js +3 -3
  76. package/cdn/components/combobox/combobox.component.js +5 -5
  77. package/cdn/components/combobox/combobox.js +6 -6
  78. package/cdn/components/data-rods/data-rods.component.d.ts +57 -0
  79. package/cdn/components/data-rods/data-rods.component.js +62 -0
  80. package/cdn/components/data-rods/data-rods.d.ts +8 -0
  81. package/cdn/components/data-rods/data-rods.js +63 -0
  82. package/cdn/components/data-rods/data-rods.styles.d.ts +2 -0
  83. package/cdn/components/data-rods/data-rods.styles.js +9 -0
  84. package/cdn/components/date-picker/date-picker.component.js +2 -2
  85. package/cdn/components/date-picker/date-picker.js +3 -3
  86. package/cdn/components/date-range-slider/date-range-slider.component.js +5 -6
  87. package/cdn/components/date-range-slider/date-range-slider.js +6 -7
  88. package/cdn/components/dialog/dialog.component.js +2 -2
  89. package/cdn/components/dialog/dialog.js +3 -3
  90. package/cdn/components/icon/icon.component.js +4 -4
  91. package/cdn/components/icon/icon.js +5 -5
  92. package/cdn/components/icon/library.js +2 -2
  93. package/cdn/components/loader/loader.component.js +2 -2
  94. package/cdn/components/loader/loader.js +3 -3
  95. package/cdn/components/login/login.component.js +13 -13
  96. package/cdn/components/login/login.js +14 -14
  97. package/cdn/components/map/leaflet-draw.styles.js +1 -1
  98. package/cdn/components/map/leaflet-utils.js +1 -1
  99. package/cdn/components/map/map.component.js +6 -6
  100. package/cdn/components/map/map.js +7 -7
  101. package/cdn/components/plot/plot.component.js +2 -2
  102. package/cdn/components/plot/plot.js +3 -3
  103. package/cdn/components/skeleton/skeleton.component.js +4 -4
  104. package/cdn/components/skeleton/skeleton.js +5 -5
  105. package/cdn/components/spatial-picker/spatial-picker.component.d.ts +8 -0
  106. package/cdn/components/spatial-picker/spatial-picker.component.js +7 -7
  107. package/cdn/components/spatial-picker/spatial-picker.js +8 -8
  108. package/cdn/components/time-series/time-series.component.d.ts +8 -49
  109. package/cdn/components/time-series/time-series.component.js +17 -40
  110. package/cdn/components/time-series/time-series.controller.d.ts +6 -9
  111. package/cdn/components/time-series/time-series.controller.js +3 -3
  112. package/cdn/components/time-series/time-series.js +18 -41
  113. package/cdn/components/time-series/time-series.styles.js +1 -1
  114. package/cdn/components/time-series/time-series.types.d.ts +1 -1
  115. package/cdn/components/variable-combobox/lib.js +1 -1
  116. package/cdn/components/variable-combobox/variable-combobox.component.js +14 -14
  117. package/cdn/components/variable-combobox/variable-combobox.controller.js +3 -3
  118. package/cdn/components/variable-combobox/variable-combobox.js +15 -15
  119. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +17 -15
  120. package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +4 -2
  121. package/cdn/components/variable-keyword-search/variable-keyword-search.js +18 -16
  122. package/cdn/custom-elements.json +1524 -1479
  123. package/cdn/events/terra-time-series-data-change.d.ts +2 -2
  124. package/cdn/react/browse-variables/index.js +24 -23
  125. package/cdn/react/button/index.js +5 -5
  126. package/cdn/react/chip/index.js +3 -3
  127. package/cdn/react/combobox/index.js +6 -6
  128. package/cdn/react/data-rods/index.d.ts +9 -0
  129. package/cdn/react/data-rods/index.js +63 -0
  130. package/cdn/react/date-picker/index.js +3 -3
  131. package/cdn/react/date-range-slider/index.js +6 -7
  132. package/cdn/react/dialog/index.js +3 -3
  133. package/cdn/react/icon/index.js +5 -5
  134. package/cdn/react/index.d.ts +5 -4
  135. package/cdn/react/index.js +87 -83
  136. package/cdn/react/loader/index.js +3 -3
  137. package/cdn/react/login/index.js +14 -14
  138. package/cdn/react/map/index.js +7 -7
  139. package/cdn/react/plot/index.js +3 -3
  140. package/cdn/react/skeleton/index.js +5 -5
  141. package/cdn/react/spatial-picker/index.js +8 -8
  142. package/cdn/react/time-series/index.d.ts +0 -2
  143. package/cdn/react/time-series/index.js +18 -41
  144. package/cdn/react/variable-combobox/index.js +15 -15
  145. package/cdn/react/variable-keyword-search/index.js +18 -16
  146. package/cdn/terra-ui-components.d.ts +1 -0
  147. package/cdn/terra-ui-components.js +91 -86
  148. package/cdn/types/vue/index.d.ts +97 -78
  149. package/cdn/utilities/animation.js +2 -2
  150. package/cdn/utilities/date.d.ts +8 -0
  151. package/cdn/utilities/date.js +5 -2
  152. package/cdn/utilities/icon-library.js +2 -2
  153. package/cdn/variable-catalog/giovanni-variable-catalog.d.ts +4 -0
  154. package/cdn/variable-catalog/queries.d.ts +1 -0
  155. package/cdn/variable-catalog/types.d.ts +15 -0
  156. package/cdn/vscode.html-custom-data.json +146 -105
  157. package/cdn/web-types.json +306 -259
  158. package/dist/chunks/{chunk.FAYNPOTP.js → chunk.2R2CMZU5.js} +1 -1
  159. package/dist/chunks/{chunk.M6QZS4UJ.js → chunk.33MT36PS.js} +3 -3
  160. package/dist/chunks/{chunk.4AOEB4BK.js → chunk.3B622XLR.js} +2 -2
  161. package/dist/chunks/{chunk.E4PWWMRO.js → chunk.3C5R6F2R.js} +1 -1
  162. package/{cdn/chunks/chunk.HWT242NM.js → dist/chunks/chunk.3CTBJXJY.js} +1 -1
  163. package/dist/chunks/{chunk.GHEMW42S.js → chunk.44QP2ERH.js} +1 -1
  164. package/dist/chunks/{chunk.KOMSLHFU.js → chunk.47RYAEL6.js} +1 -1
  165. package/dist/chunks/chunk.4AMT22AE.js +11 -0
  166. package/dist/chunks/{chunk.TWPOB6FJ.js → chunk.6DOKSRWY.js} +1 -1
  167. package/{cdn/chunks/chunk.7BF65WWU.js → dist/chunks/chunk.6XHLGITH.js} +1 -1
  168. package/dist/chunks/{chunk.JTXEL73L.js → chunk.75SJTCIV.js} +1 -1
  169. package/dist/chunks/chunk.7JBFBZ5C.js +27 -0
  170. package/dist/chunks/{chunk.WAIWLZ6Z.js → chunk.7OWQQEAP.js} +83 -26
  171. package/dist/chunks/{chunk.TCMWMNOB.js → chunk.7ZF43BLB.js} +5 -5
  172. package/dist/chunks/{chunk.W2CS6IVI.js → chunk.7ZPJWNP3.js} +1 -1
  173. package/dist/chunks/{chunk.YQPJQSUN.js → chunk.A7QBYP2G.js} +1 -1
  174. package/dist/chunks/{chunk.NL2R2NSO.js → chunk.AY7TGBWI.js} +2 -31
  175. package/{cdn/chunks/chunk.TVULBZN7.js → dist/chunks/chunk.BA5UHVQA.js} +1 -1
  176. package/dist/chunks/{chunk.HJTPJ2RC.js → chunk.BMR2MSLS.js} +1 -1
  177. package/dist/chunks/{chunk.ENYPV32S.js → chunk.CBBRYITQ.js} +6 -6
  178. package/{cdn/chunks/chunk.7SSKWW2H.js → dist/chunks/chunk.CBPNOBYV.js} +1 -1
  179. package/dist/chunks/{chunk.7P5EOY66.js → chunk.DKAE3S5I.js} +4 -4
  180. package/dist/chunks/{chunk.H22DYLKA.js → chunk.DUGMF3IG.js} +5 -5
  181. package/{cdn/chunks/chunk.YUAVRIVY.js → dist/chunks/chunk.EDRHDXR5.js} +1 -1
  182. package/dist/chunks/{chunk.JGX3UBBP.js → chunk.EQN4RFGU.js} +1 -1
  183. package/dist/chunks/{chunk.67I5KKLX.js → chunk.GIJRARNO.js} +1 -1
  184. package/dist/chunks/{chunk.MILUFBKY.js → chunk.H4HQMP7O.js} +1 -1
  185. package/{cdn/chunks/chunk.CANVOVRP.js → dist/chunks/chunk.HHQCCB7G.js} +1 -1
  186. package/dist/chunks/{chunk.4XAV4ODI.js → chunk.HO7IFKH7.js} +1 -1
  187. package/dist/chunks/{chunk.XR6W57RO.js → chunk.I2NF2HZM.js} +1 -1
  188. package/dist/chunks/{chunk.5EHGVGXV.js → chunk.K2IRF2QI.js} +1 -10
  189. package/dist/chunks/{chunk.MZHCB5V5.js → chunk.K4PW2RMT.js} +1 -1
  190. package/{cdn/chunks/chunk.YYL6BIZT.js → dist/chunks/chunk.KB7LV3EL.js} +1 -1
  191. package/dist/chunks/{chunk.ZLAVT4EU.js → chunk.LE33GS2U.js} +7 -7
  192. package/dist/chunks/{chunk.5AOSWMDT.js → chunk.LFZXSVJS.js} +1 -1
  193. package/{cdn/chunks/chunk.GZEUJ2JS.js → dist/chunks/chunk.LO5DQW6B.js} +1 -1
  194. package/dist/chunks/{chunk.QDWCCDUY.js → chunk.LYNMSIPM.js} +1 -1
  195. package/dist/chunks/{chunk.MS3DCXPP.js → chunk.MEPZIAGL.js} +1 -1
  196. package/{cdn/chunks/chunk.5HHHG4SV.js → dist/chunks/chunk.MLOEWNPV.js} +1 -1
  197. package/dist/chunks/{chunk.JFAR45NP.js → chunk.MS6UNHXS.js} +1 -1
  198. package/dist/chunks/{chunk.RXZPXAB4.js → chunk.MUOIGLIS.js} +50 -6
  199. package/dist/chunks/{chunk.KD3R2URP.js → chunk.NHJ3EBNG.js} +1 -1
  200. package/dist/chunks/{chunk.QHNJQDE5.js → chunk.NHW27P5N.js} +1 -1
  201. package/{cdn/chunks/chunk.MNRRHWDX.js → dist/chunks/chunk.NWOLKB4W.js} +1 -1
  202. package/{cdn/chunks/chunk.LFJJNF7C.js → dist/chunks/chunk.NY5ELIGL.js} +1 -1
  203. package/{cdn/chunks/chunk.BRFSUY5D.js → dist/chunks/chunk.NZCOLBOI.js} +1 -1
  204. package/dist/chunks/{chunk.O5QN7EQO.js → chunk.O4UZCLJJ.js} +1 -1
  205. package/dist/chunks/{chunk.AAWOHDFX.js → chunk.P442U2FF.js} +16 -4
  206. package/{cdn/chunks/chunk.RJCMYVMK.js → dist/chunks/chunk.Q6DRT4JH.js} +1 -1
  207. package/dist/chunks/chunk.QW3YB4FP.js +647 -0
  208. package/{cdn/chunks/chunk.3GLWKAG4.js → dist/chunks/chunk.RMHKCYA6.js} +1 -1
  209. package/dist/chunks/{chunk.UPG6O57L.js → chunk.RT2CYLEI.js} +1 -1
  210. package/dist/chunks/{chunk.OOLLCVNR.js → chunk.S2YNNRAG.js} +1 -1
  211. package/dist/chunks/chunk.TFI3UXXB.js +193 -0
  212. package/dist/chunks/{chunk.E4LMDFCL.js → chunk.TY6D5XAZ.js} +1 -1
  213. package/dist/chunks/chunk.V3AQ3G4R.js +21 -0
  214. package/dist/chunks/{chunk.5LMWCV76.js → chunk.V3YFBP3T.js} +1 -1
  215. package/dist/chunks/chunk.VFU2O56V.js +180 -0
  216. package/dist/chunks/{chunk.OMJNBUCH.js → chunk.VQIZ36B7.js} +12 -12
  217. package/dist/chunks/{chunk.SZGKWCF3.js → chunk.WAHH4JE5.js} +1 -1
  218. package/dist/chunks/{chunk.OFKYTBNH.js → chunk.WW7KBC2J.js} +4 -4
  219. package/dist/chunks/{chunk.QM5FOCP6.js → chunk.XMJAGELF.js} +1 -1
  220. package/dist/chunks/{chunk.6YWP3FBT.js → chunk.YNJTPABM.js} +1 -1
  221. package/dist/chunks/{chunk.NDYEIMNI.js → chunk.Z7YYSHP5.js} +8 -8
  222. package/dist/chunks/chunk.ZIB2YERI.js +36 -0
  223. package/dist/chunks/{chunk.X4377OEL.js → chunk.ZMMA3LHG.js} +6 -6
  224. package/dist/components/browse-variables/browse-variables.component.js +19 -18
  225. package/dist/components/browse-variables/browse-variables.controller.js +4 -2
  226. package/dist/components/browse-variables/browse-variables.js +20 -19
  227. package/dist/components/browse-variables/browse-variables.types.d.ts +8 -0
  228. package/dist/components/button/button.component.js +3 -3
  229. package/dist/components/button/button.js +4 -4
  230. package/dist/components/chip/chip.component.js +2 -2
  231. package/dist/components/chip/chip.js +3 -3
  232. package/dist/components/combobox/combobox.component.js +3 -3
  233. package/dist/components/combobox/combobox.js +4 -4
  234. package/dist/components/data-rods/data-rods.component.d.ts +57 -0
  235. package/dist/components/data-rods/data-rods.component.js +47 -0
  236. package/dist/components/data-rods/data-rods.d.ts +8 -0
  237. package/dist/components/data-rods/data-rods.js +48 -0
  238. package/dist/components/data-rods/data-rods.styles.d.ts +2 -0
  239. package/dist/components/data-rods/data-rods.styles.js +7 -0
  240. package/dist/components/date-picker/date-picker.component.js +2 -2
  241. package/dist/components/date-picker/date-picker.js +3 -3
  242. package/dist/components/date-range-slider/date-range-slider.component.js +4 -4
  243. package/dist/components/date-range-slider/date-range-slider.js +5 -5
  244. package/dist/components/dialog/dialog.component.js +2 -2
  245. package/dist/components/dialog/dialog.js +3 -3
  246. package/dist/components/icon/icon.component.js +4 -4
  247. package/dist/components/icon/icon.js +5 -5
  248. package/dist/components/icon/library.js +2 -2
  249. package/dist/components/loader/loader.component.js +2 -2
  250. package/dist/components/loader/loader.js +3 -3
  251. package/dist/components/login/login.component.js +11 -11
  252. package/dist/components/login/login.js +12 -12
  253. package/dist/components/map/leaflet-draw.styles.js +1 -1
  254. package/dist/components/map/leaflet-utils.js +1 -1
  255. package/dist/components/map/map.component.js +5 -5
  256. package/dist/components/map/map.js +6 -6
  257. package/dist/components/plot/plot.component.js +2 -2
  258. package/dist/components/plot/plot.js +3 -3
  259. package/dist/components/skeleton/skeleton.component.js +2 -2
  260. package/dist/components/skeleton/skeleton.js +3 -3
  261. package/dist/components/spatial-picker/spatial-picker.component.d.ts +8 -0
  262. package/dist/components/spatial-picker/spatial-picker.component.js +6 -6
  263. package/dist/components/spatial-picker/spatial-picker.js +7 -7
  264. package/dist/components/time-series/time-series.component.d.ts +8 -49
  265. package/dist/components/time-series/time-series.component.js +14 -32
  266. package/dist/components/time-series/time-series.controller.d.ts +6 -9
  267. package/dist/components/time-series/time-series.controller.js +2 -1
  268. package/dist/components/time-series/time-series.js +15 -33
  269. package/dist/components/time-series/time-series.styles.js +1 -1
  270. package/dist/components/time-series/time-series.types.d.ts +1 -1
  271. package/dist/components/variable-combobox/lib.js +1 -1
  272. package/dist/components/variable-combobox/variable-combobox.component.js +11 -11
  273. package/dist/components/variable-combobox/variable-combobox.controller.js +2 -2
  274. package/dist/components/variable-combobox/variable-combobox.js +12 -12
  275. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +14 -12
  276. package/dist/components/variable-keyword-search/variable-keyword-search.controller.js +3 -1
  277. package/dist/components/variable-keyword-search/variable-keyword-search.js +15 -13
  278. package/dist/custom-elements.json +1524 -1479
  279. package/dist/events/terra-time-series-data-change.d.ts +2 -2
  280. package/dist/react/browse-variables/index.js +20 -19
  281. package/dist/react/button/index.js +4 -4
  282. package/dist/react/chip/index.js +3 -3
  283. package/dist/react/combobox/index.js +4 -4
  284. package/dist/react/data-rods/index.d.ts +9 -0
  285. package/dist/react/data-rods/index.js +48 -0
  286. package/dist/react/date-picker/index.js +3 -3
  287. package/dist/react/date-range-slider/index.js +5 -5
  288. package/dist/react/dialog/index.js +3 -3
  289. package/dist/react/icon/index.js +5 -5
  290. package/dist/react/index.d.ts +5 -4
  291. package/dist/react/index.js +81 -76
  292. package/dist/react/loader/index.js +3 -3
  293. package/dist/react/login/index.js +12 -12
  294. package/dist/react/map/index.js +6 -6
  295. package/dist/react/plot/index.js +3 -3
  296. package/dist/react/skeleton/index.js +3 -3
  297. package/dist/react/spatial-picker/index.js +7 -7
  298. package/dist/react/time-series/index.d.ts +0 -2
  299. package/dist/react/time-series/index.js +15 -33
  300. package/dist/react/variable-combobox/index.js +12 -12
  301. package/dist/react/variable-keyword-search/index.js +15 -13
  302. package/dist/terra-ui-components.d.ts +1 -0
  303. package/dist/terra-ui-components.js +84 -78
  304. package/dist/terra_ui_components-0.0.45-py3-none-any.whl +0 -0
  305. package/dist/{terra_ui_components-0.0.43.tar.gz → terra_ui_components-0.0.45.tar.gz} +0 -0
  306. package/dist/types/vue/index.d.ts +97 -78
  307. package/dist/utilities/date.d.ts +8 -0
  308. package/dist/utilities/date.js +5 -1
  309. package/dist/utilities/icon-library.js +2 -2
  310. package/dist/variable-catalog/giovanni-variable-catalog.d.ts +4 -0
  311. package/dist/variable-catalog/queries.d.ts +1 -0
  312. package/dist/variable-catalog/types.d.ts +15 -0
  313. package/dist/vscode.html-custom-data.json +146 -105
  314. package/dist/web-types.json +306 -259
  315. package/package.json +1 -1
  316. package/cdn/chunks/chunk.46IWBVYP.js +0 -13
  317. package/cdn/chunks/chunk.FRHQ2JZY.js +0 -30
  318. package/cdn/chunks/chunk.GD2FHNDE.js +0 -1131
  319. package/cdn/chunks/chunk.TNVTVMRS.js +0 -36
  320. package/cdn/components/browse-variables/repositories/giovanni.repository.d.ts +0 -8
  321. package/cdn/components/browse-variables/repositories/giovanni.repository.js +0 -7
  322. package/dist/chunks/chunk.4TEZ5QPN.js +0 -671
  323. package/dist/chunks/chunk.OIDMX5LU.js +0 -10
  324. package/dist/chunks/chunk.TNVTVMRS.js +0 -36
  325. package/dist/components/browse-variables/repositories/giovanni.repository.d.ts +0 -8
  326. package/dist/components/browse-variables/repositories/giovanni.repository.js +0 -7
  327. package/dist/terra_ui_components-0.0.43-py3-none-any.whl +0 -0
  328. package/cdn/chunks/{chunk.7DOMZGX7.js → chunk.MDRUDBRH.js} +3 -3
  329. package/cdn/chunks/{chunk.LOCO37M5.js → chunk.X2C7E56W.js} +3 -3
  330. package/dist/chunks/{chunk.7DOMZGX7.js → chunk.MDRUDBRH.js} +3 -3
@@ -1,671 +0,0 @@
1
- import {
2
- TerraVariableCombobox
3
- } from "./chunk.NDYEIMNI.js";
4
- import {
5
- spatial_picker_default
6
- } from "./chunk.UPG6O57L.js";
7
- import {
8
- TimeSeriesController,
9
- calculateDataPoints
10
- } from "./chunk.WAIWLZ6Z.js";
11
- import {
12
- time_series_styles_default
13
- } from "./chunk.5EHGVGXV.js";
14
- import {
15
- TerraPlot
16
- } from "./chunk.QM5FOCP6.js";
17
- import {
18
- TerraDateRangeSlider
19
- } from "./chunk.H22DYLKA.js";
20
- import {
21
- TerraLoader
22
- } from "./chunk.MS3DCXPP.js";
23
- import {
24
- TerraIcon
25
- } from "./chunk.TCMWMNOB.js";
26
- import {
27
- TerraButton
28
- } from "./chunk.7P5EOY66.js";
29
- import {
30
- watch
31
- } from "./chunk.SK7IZCKP.js";
32
- import {
33
- TerraElement,
34
- component_styles_default
35
- } from "./chunk.QHNJQDE5.js";
36
- import {
37
- __decorateClass,
38
- __privateAdd,
39
- __privateGet,
40
- __privateMethod,
41
- __privateSet
42
- } from "./chunk.TVFCHGU3.js";
43
-
44
- // src/components/time-series/time-series.component.ts
45
- import dayjs from "dayjs";
46
- import timezone from "dayjs/plugin/timezone.js";
47
- import utc from "dayjs/plugin/utc.js";
48
- import { cache } from "lit/directives/cache.js";
49
- import { downloadImage } from "plotly.js-dist-min";
50
- import { html, nothing } from "lit";
51
- import { property, query, state } from "lit/decorators.js";
52
- import { TaskStatus } from "@lit/task";
53
- var NUM_DATAPOINTS_TO_WARN_USER = 5e4;
54
- dayjs.extend(utc);
55
- dayjs.extend(timezone);
56
- dayjs.tz.setDefault("Etc/GMT");
57
- var _timeSeriesController, _checkDataPointLimits, checkDataPointLimits_fn, _confirmDataPointWarning, confirmDataPointWarning_fn, _cancelDataPointWarning, cancelDataPointWarning_fn, _adaptPropertyToController, adaptPropertyToController_fn, _maybeSliceTimeForStartEnd, maybeSliceTimeForStartEnd_fn, _handleVariableChange, handleVariableChange_fn, _handleMapChange, handleMapChange_fn, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn, _abortDataLoad, abortDataLoad_fn, _downloadCSV, downloadCSV_fn, _convertToCSV, convertToCSV_fn, _downloadPNG, downloadPNG_fn, _handleActiveMenuItem, handleActiveMenuItem_fn;
58
- var TerraTimeSeries = class extends TerraElement {
59
- constructor() {
60
- super(...arguments);
61
- /**
62
- * Checks if the current date range will exceed data point limits
63
- * eturns true if it's safe to proceed, false if confirmation is needed
64
- */
65
- __privateAdd(this, _checkDataPointLimits);
66
- __privateAdd(this, _confirmDataPointWarning);
67
- __privateAdd(this, _cancelDataPointWarning);
68
- __privateAdd(this, _adaptPropertyToController);
69
- /**
70
- * The Collection Beginning DateTime changes when a new collection is selected.
71
- * We want to auto-select a reasonable slice of time and send a request to the data API, the
72
- * same as if the user moved the time slider.
73
- * However, if the component has the startDate or endDate set externally, don't override that;
74
- * this is an init-only action.
75
- */
76
- __privateAdd(this, _maybeSliceTimeForStartEnd);
77
- __privateAdd(this, _handleVariableChange);
78
- __privateAdd(this, _handleMapChange);
79
- /**
80
- * anytime the date range slider changes, update the start and end date
81
- */
82
- __privateAdd(this, _handleDateRangeSliderChangeEvent);
83
- /**
84
- * aborts the underlying data loading task, which cancels the network request
85
- */
86
- __privateAdd(this, _abortDataLoad);
87
- /**
88
- * TODO:
89
- * [x] re-enable downloads here
90
- * [x] get live data from Giovanni
91
- * [x] display required information in information menuitem
92
- * [x] ask about adding help links
93
- * [ ] see what can be simplified from downloadCSV
94
- */
95
- __privateAdd(this, _downloadCSV);
96
- __privateAdd(this, _convertToCSV);
97
- __privateAdd(this, _downloadPNG);
98
- __privateAdd(this, _handleActiveMenuItem);
99
- __privateAdd(this, _timeSeriesController, void 0);
100
- this.showDataPointWarning = false;
101
- this.estimatedDataPoints = 0;
102
- this.activeMenuItem = null;
103
- }
104
- handleCollectionUpdate(_oldValue, newValue) {
105
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "collection", newValue);
106
- }
107
- handlevariableUpdate(_oldValue, newValue) {
108
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "variable", newValue);
109
- }
110
- handleStartDateUpdate(_oldValue, newValue) {
111
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "startDate", newValue);
112
- }
113
- handleEndDateUpdate(_oldValue, newValue) {
114
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "endDate", newValue);
115
- }
116
- handleLocationUpdate(_oldValue, newValue) {
117
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "location", newValue);
118
- }
119
- handleFocus(_oldValue, newValue) {
120
- if (newValue === null) {
121
- return;
122
- }
123
- this.menu.focus();
124
- }
125
- connectedCallback() {
126
- super.connectedCallback();
127
- __privateSet(this, _timeSeriesController, new TimeSeriesController(this, this.bearerToken));
128
- }
129
- render() {
130
- var _a, _b;
131
- return html`
132
- <terra-variable-combobox
133
- exportparts="base:variable-combobox__base, combobox:variable-combobox__combobox, button:variable-combobox__button, listbox:variable-combobox__listbox"
134
- .value=${this.collection && this.variable ? `${this.collection}_${this.variable}` : nothing}
135
- .bearerToken=${(_a = this.bearerToken) != null ? _a : null}
136
- .useTags=${true}
137
- @terra-combobox-change="${__privateMethod(this, _handleVariableChange, handleVariableChange_fn)}"
138
- ></terra-variable-combobox>
139
-
140
- <terra-spatial-picker
141
- initial-value=${this.location}
142
- exportparts="map:spatial-picker__map, leaflet-bbox:spatial-picker__leaflet-bbox, leaflet-point:spatial-picker__leaflet-point"
143
- label="Select Point"
144
- @terra-map-change=${__privateMethod(this, _handleMapChange, handleMapChange_fn)}
145
- ></terra-spatial-picker>
146
-
147
- <div class="plot-container">
148
- ${cache(
149
- this.variable ? html`
150
- <header>
151
- <h2 class="title">
152
- ${this.variableLongName}
153
- </h2>
154
-
155
- <div class="toggles">
156
- <terra-button
157
- circle
158
- outline
159
- aria-expanded=${this.activeMenuItem === "information"}
160
- aria-controls="menu"
161
- aria-haspopup="true"
162
- class="toggle"
163
- @click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
164
- data-menu-name="information"
165
- >
166
- <span class="sr-only">Information for ${this.variableLongName}</span>
167
-
168
- <terra-icon
169
- name="outline-information-circle"
170
- library="heroicons"
171
- font-size="1.5em"
172
- ></terra-icon>
173
- </terra-button>
174
-
175
- <terra-button
176
- circle
177
- outline
178
- aria-expanded=${this.activeMenuItem === "download"}
179
- aria-controls="menu"
180
- aria-haspopup="true"
181
- class="toggle"
182
- @click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
183
- data-menu-name="download"
184
- >
185
- <span class="sr-only">Download options for ${this.variableLongName}</span>
186
-
187
- <terra-icon
188
- name="outline-arrow-down-tray"
189
- library="heroicons"
190
- font-size="1.5em"
191
- ></terra-icon>
192
- </terra-button>
193
-
194
- <terra-button
195
- circle
196
- outline
197
- aria-expanded=${this.activeMenuItem === "help"}
198
- aria-controls="menu"
199
- aria-haspopup="true"
200
- class="toggle"
201
- @click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
202
- data-menu-name="help"
203
- >
204
- <span class="sr-only">Help link for ${this.variableLongName}</span>
205
-
206
- <terra-icon
207
- name="outline-question-mark-circle"
208
- library="heroicons"
209
- font-size="1.5em"
210
- ></terra-icon>
211
- </terra-button>
212
- </div>
213
-
214
- <menu
215
- role="menu"
216
- id="menu"
217
- data-expanded=${this.activeMenuItem !== null}
218
- tabindex="-1"
219
- >
220
- <li
221
- role="menuitem"
222
- ?hidden=${this.activeMenuItem !== "information"}
223
- >
224
- <h3 class="sr-only">Information</h3>
225
-
226
- <dl>
227
- <dt>Variable Longname</dt>
228
- <dd>${this.variableLongName}</dd>
229
-
230
- <dt>Variable Shortname</dt>
231
- <dd>${this.variable}</dd>
232
-
233
- <dt>Units</dt>
234
- <dd>
235
- <code>${this.units}</code>
236
- </dd>
237
-
238
- <dt>Dataset Information</dt>
239
- <dd>
240
- <a
241
- href=${this.datasetLandingPage}
242
- rel="noopener noreffer"
243
- target="_blank"
244
- >${this.collectionLongName}
245
-
246
- <terra-icon
247
- name="outline-arrow-top-right-on-square"
248
- library="heroicons"
249
- ></terra-icon>
250
- </a>
251
- </dd>
252
-
253
- <dt>Variable Information</dt>
254
- <dd>
255
- <a
256
- href=${this.variableLandingPage}
257
- rel="noopener noreffer"
258
- target="_blank"
259
- >Variable Glossary
260
-
261
- <terra-icon
262
- name="outline-arrow-top-right-on-square"
263
- library="heroicons"
264
- ></terra-icon>
265
- </a>
266
- </dd>
267
- </dl>
268
- </li>
269
-
270
- <li
271
- role="menuitem"
272
- ?hidden=${this.activeMenuItem !== "download"}
273
- >
274
- <h3 class="sr-only">Download Options</h3>
275
-
276
- <p>
277
- This plot can be downloaded as either a
278
- <abbr title="Portable Network Graphic"
279
- >PNG</abbr
280
- >
281
- image or
282
- <abbr title="Comma-Separated Value"
283
- >CSV</abbr
284
- >
285
- data.
286
- </p>
287
-
288
- <terra-button
289
- outline
290
- variant="default"
291
- @click=${__privateMethod(this, _downloadPNG, downloadPNG_fn)}
292
- >
293
- <span class="sr-only"
294
- >Download Plot Data as
295
- </span>
296
- PNG
297
- <terra-icon
298
- slot="prefix"
299
- name="outline-photo"
300
- library="heroicons"
301
- font-size="1.5em"
302
- ></terra-icon>
303
- </terra-button>
304
-
305
- <terra-button
306
- outline
307
- variant="default"
308
- @click=${__privateMethod(this, _downloadCSV, downloadCSV_fn)}
309
- >
310
- <span class="sr-only"
311
- >Download Plot Data as
312
- </span>
313
- CSV
314
- <terra-icon
315
- slot="prefix"
316
- name="outline-document-chart-bar"
317
- library="heroicons"
318
- font-size="1.5em"
319
- ></terra-icon>
320
- </terra-button>
321
- </li>
322
-
323
- <li
324
- role="menuitem"
325
- ?hidden=${this.activeMenuItem !== "help"}
326
- >
327
- <h3 class="sr-only">Help Links</h3>
328
- <ul>
329
- <li>
330
- <a href="https://forum.earthdata.nasa.gov/viewforum.php?f=7&DAAC=3" rel"noopener noreffer">Earthdata User Forum
331
- <terra-icon
332
- name="outline-arrow-top-right-on-square"
333
- library="heroicons"
334
- ></terra-icon>
335
- </a>
336
- </li>
337
- </ul>
338
- </li>
339
- </menu>
340
- </header>
341
- ` : html`<div class="spacer"></div>`
342
- )}
343
-
344
- <terra-plot
345
- exportparts="base:plot__base, plot-title:plot__title"
346
- .data=${(_b = __privateGet(this, _timeSeriesController).lastTaskValue) != null ? _b : __privateGet(this, _timeSeriesController).emptyPlotData}
347
- .layout="${{
348
- xaxis: {
349
- title: "Time",
350
- showgrid: false,
351
- zeroline: false
352
- },
353
- yaxis: {
354
- title: this.variableLongName && this.units ? `${this.variableLongName}, ${this.units}` : null,
355
- showline: false
356
- },
357
- title: {
358
- text: this.collection && this.location ? `${this.collection} @ ${this.location}` : null
359
- }
360
- }}"
361
- .config=${{
362
- displayModeBar: true,
363
- displaylogo: false,
364
- modeBarButtonsToRemove: ["toImage", "zoom2d", "resetScale2d"],
365
- responsive: true
366
- }}
367
- ></terra-plot>
368
- </div>
369
-
370
- <terra-date-range-slider
371
- exportparts="slider:date-range-slider__slider"
372
- min-date=${this.collectionBeginningDateTime}
373
- max-date=${this.collectionEndingDateTime}
374
- start-date=${this.startDate}
375
- end-date=${this.endDate}
376
- @terra-date-range-change="${__privateMethod(this, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn)}"
377
- ></terra-date-range-slider>
378
-
379
- <dialog
380
- ?open=${__privateGet(this, _timeSeriesController).task.status === TaskStatus.PENDING}
381
- >
382
- <terra-loader indeterminate></terra-loader>
383
- <p>Plotting ${this.collection} ${this.variable}&hellip;</p>
384
- <terra-button @click=${__privateMethod(this, _abortDataLoad, abortDataLoad_fn)}>Cancel</terra-button>
385
- </dialog>
386
-
387
- <dialog ?open=${this.showDataPointWarning} class="quota-dialog">
388
- <h2>This is a large request</h2>
389
-
390
- <p>
391
- You are requesting approximately
392
- ${this.estimatedDataPoints.toLocaleString()} data points.
393
- </p>
394
-
395
- <p>
396
- Requesting large amounts of data may cause you to reach your
397
- monthly quota limit.
398
- </p>
399
-
400
- <p>Would you still like to proceed with this request?</p>
401
-
402
- <div class="dialog-buttons">
403
- <terra-button
404
- @click=${__privateMethod(this, _cancelDataPointWarning, cancelDataPointWarning_fn)}
405
- variant="default"
406
- >
407
- Cancel
408
- </terra-button>
409
-
410
- <terra-button
411
- @click=${__privateMethod(this, _confirmDataPointWarning, confirmDataPointWarning_fn)}
412
- variant="primary"
413
- >
414
- Proceed
415
- </terra-button>
416
- </div>
417
- </dialog>
418
- `;
419
- }
420
- };
421
- _timeSeriesController = new WeakMap();
422
- _checkDataPointLimits = new WeakSet();
423
- checkDataPointLimits_fn = function() {
424
- if (!this.timeInterval || !this.startDate || !this.endDate) {
425
- return true;
426
- }
427
- const startDate = dayjs.utc(this.startDate).toDate();
428
- const endDate = dayjs.utc(this.endDate).toDate();
429
- this.estimatedDataPoints = calculateDataPoints(
430
- this.timeInterval,
431
- startDate,
432
- endDate
433
- );
434
- if (this.estimatedDataPoints < NUM_DATAPOINTS_TO_WARN_USER) {
435
- return true;
436
- }
437
- this.showDataPointWarning = true;
438
- return false;
439
- };
440
- _confirmDataPointWarning = new WeakSet();
441
- confirmDataPointWarning_fn = function() {
442
- this.showDataPointWarning = false;
443
- __privateGet(this, _timeSeriesController).task.run();
444
- };
445
- _cancelDataPointWarning = new WeakSet();
446
- cancelDataPointWarning_fn = function() {
447
- this.showDataPointWarning = false;
448
- };
449
- _adaptPropertyToController = new WeakSet();
450
- adaptPropertyToController_fn = function(property2, value) {
451
- switch (property2) {
452
- case "startDate":
453
- case "endDate":
454
- __privateGet(this, _timeSeriesController)[property2] = dayjs.utc(value).toDate();
455
- break;
456
- case "location":
457
- const [lat, lon] = value.split(",");
458
- __privateGet(this, _timeSeriesController)[property2] = `${lon},%20${lat}`;
459
- break;
460
- default:
461
- __privateGet(this, _timeSeriesController)[property2] = value;
462
- break;
463
- }
464
- };
465
- _maybeSliceTimeForStartEnd = new WeakSet();
466
- maybeSliceTimeForStartEnd_fn = function() {
467
- const hasExternallySetDates = !!this.startDate || !!this.endDate;
468
- const hasBothDatesFromCollection = !!this.collectionBeginningDateTime && !!this.collectionEndingDateTime;
469
- if (hasExternallySetDates || !hasBothDatesFromCollection) {
470
- return;
471
- }
472
- const diff = Math.abs(
473
- new Date(this.collectionEndingDateTime).getTime() - new Date(this.collectionBeginningDateTime).getTime()
474
- );
475
- const threeQuarterRange = Math.floor(diff * 0.75);
476
- const startDate = Math.abs(
477
- new Date(this.collectionBeginningDateTime).getTime() + threeQuarterRange
478
- );
479
- this.startDate = dayjs.utc(startDate).format();
480
- this.endDate = dayjs.utc(this.collectionEndingDateTime).format();
481
- };
482
- _handleVariableChange = new WeakSet();
483
- handleVariableChange_fn = function(event) {
484
- this.collectionBeginningDateTime = dayjs.utc().format(event.detail.collectionBeginningDateTime);
485
- this.collectionEndingDateTime = dayjs.utc().format(event.detail.collectionEndingDateTime);
486
- __privateMethod(this, _maybeSliceTimeForStartEnd, maybeSliceTimeForStartEnd_fn).call(this);
487
- this.collection = `${event.detail.collectionShortName}_${event.detail.collectionVersion}`;
488
- this.collectionLongName = event.detail.collectionLongName;
489
- this.datasetLandingPage = event.detail.datasetLandingPage;
490
- this.units = event.detail.units;
491
- this.variable = event.detail.name;
492
- this.variableLandingPage = event.detail.variableLandingPage;
493
- this.variableLongName = event.detail.longName;
494
- this.timeInterval = event.detail.timeInterval;
495
- if (__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this)) {
496
- __privateGet(this, _timeSeriesController).task.run();
497
- }
498
- };
499
- _handleMapChange = new WeakSet();
500
- handleMapChange_fn = function(event) {
501
- const type = event.detail.geoJson.geometry.type;
502
- if (type === "Point") {
503
- const { latLng } = event.detail;
504
- this.location = `${latLng.lat.toFixed(4)},${latLng.lng.toFixed(4)}`;
505
- if (__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this)) {
506
- __privateGet(this, _timeSeriesController).task.run();
507
- }
508
- }
509
- };
510
- _handleDateRangeSliderChangeEvent = new WeakSet();
511
- handleDateRangeSliderChangeEvent_fn = function(event) {
512
- this.startDate = event.detail.startDate;
513
- this.endDate = event.detail.endDate;
514
- if (__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this)) {
515
- __privateGet(this, _timeSeriesController).task.run();
516
- }
517
- };
518
- _abortDataLoad = new WeakSet();
519
- abortDataLoad_fn = function() {
520
- var _a;
521
- (_a = __privateGet(this, _timeSeriesController).task) == null ? void 0 : _a.abort();
522
- };
523
- _downloadCSV = new WeakSet();
524
- downloadCSV_fn = function(_event) {
525
- var _a;
526
- const controllerData = (_a = __privateGet(this, _timeSeriesController).lastTaskValue) != null ? _a : __privateGet(this, _timeSeriesController).emptyPlotData;
527
- let plotData = [];
528
- controllerData.forEach((plot, index) => {
529
- plotData[index] = plot;
530
- });
531
- const csvData = plotData.map((trace) => {
532
- return trace.x.map((x, i) => {
533
- return {
534
- x,
535
- y: trace.y[i]
536
- };
537
- });
538
- }).flat();
539
- const csv = __privateMethod(this, _convertToCSV, convertToCSV_fn).call(this, csvData);
540
- csv;
541
- };
542
- _convertToCSV = new WeakSet();
543
- convertToCSV_fn = function(data) {
544
- const header = Object.keys(data[0]).join(",") + "\n";
545
- const rows = data.map((obj) => Object.values(obj).join(",")).join("\n");
546
- return header + rows;
547
- };
548
- _downloadPNG = new WeakSet();
549
- downloadPNG_fn = function(_event) {
550
- var _a;
551
- downloadImage((_a = this.plot) == null ? void 0 : _a.base, {
552
- filename: `${this.collection}_${this.variable}`,
553
- format: "png",
554
- width: 1920,
555
- height: 1080
556
- });
557
- };
558
- _handleActiveMenuItem = new WeakSet();
559
- handleActiveMenuItem_fn = function(event) {
560
- const button = event.currentTarget;
561
- const menuName = button.dataset.menuName;
562
- this.activeMenuItem = menuName === this.activeMenuItem ? null : menuName;
563
- };
564
- TerraTimeSeries.styles = [component_styles_default, time_series_styles_default];
565
- TerraTimeSeries.dependencies = {
566
- "terra-plot": TerraPlot,
567
- "terra-date-range-slider": TerraDateRangeSlider,
568
- "terra-spatial-picker": spatial_picker_default,
569
- "terra-variable-combobox": TerraVariableCombobox,
570
- "terra-loader": TerraLoader,
571
- "terra-icon": TerraIcon,
572
- "terra-button": TerraButton
573
- };
574
- __decorateClass([
575
- property({ reflect: true })
576
- ], TerraTimeSeries.prototype, "collection", 2);
577
- __decorateClass([
578
- property({ reflect: true })
579
- ], TerraTimeSeries.prototype, "collectionLongName", 2);
580
- __decorateClass([
581
- property({ reflect: true })
582
- ], TerraTimeSeries.prototype, "datasetLandingPage", 2);
583
- __decorateClass([
584
- property({ reflect: true })
585
- ], TerraTimeSeries.prototype, "variable", 2);
586
- __decorateClass([
587
- property({ reflect: true })
588
- ], TerraTimeSeries.prototype, "variableLandingPage", 2);
589
- __decorateClass([
590
- property({ reflect: true })
591
- ], TerraTimeSeries.prototype, "variableLongName", 2);
592
- __decorateClass([
593
- property({
594
- attribute: "start-date",
595
- reflect: true
596
- })
597
- ], TerraTimeSeries.prototype, "startDate", 2);
598
- __decorateClass([
599
- property({
600
- attribute: "end-date",
601
- reflect: true
602
- })
603
- ], TerraTimeSeries.prototype, "endDate", 2);
604
- __decorateClass([
605
- property({
606
- reflect: true
607
- })
608
- ], TerraTimeSeries.prototype, "location", 2);
609
- __decorateClass([
610
- property({
611
- reflect: true
612
- })
613
- ], TerraTimeSeries.prototype, "units", 2);
614
- __decorateClass([
615
- property({ attribute: "bearer-token", reflect: false })
616
- ], TerraTimeSeries.prototype, "bearerToken", 2);
617
- __decorateClass([
618
- query("terra-date-range-slider")
619
- ], TerraTimeSeries.prototype, "dateRangeSlider", 2);
620
- __decorateClass([
621
- query("terra-plot")
622
- ], TerraTimeSeries.prototype, "plot", 2);
623
- __decorateClass([
624
- query("terra-spatial-picker")
625
- ], TerraTimeSeries.prototype, "spatialPicker", 2);
626
- __decorateClass([
627
- query("terra-variable-combobo")
628
- ], TerraTimeSeries.prototype, "variableCombobox", 2);
629
- __decorateClass([
630
- query("#menu")
631
- ], TerraTimeSeries.prototype, "menu", 2);
632
- __decorateClass([
633
- state()
634
- ], TerraTimeSeries.prototype, "collectionBeginningDateTime", 2);
635
- __decorateClass([
636
- state()
637
- ], TerraTimeSeries.prototype, "collectionEndingDateTime", 2);
638
- __decorateClass([
639
- state()
640
- ], TerraTimeSeries.prototype, "timeInterval", 2);
641
- __decorateClass([
642
- state()
643
- ], TerraTimeSeries.prototype, "showDataPointWarning", 2);
644
- __decorateClass([
645
- state()
646
- ], TerraTimeSeries.prototype, "estimatedDataPoints", 2);
647
- __decorateClass([
648
- state()
649
- ], TerraTimeSeries.prototype, "activeMenuItem", 2);
650
- __decorateClass([
651
- watch("collection")
652
- ], TerraTimeSeries.prototype, "handleCollectionUpdate", 1);
653
- __decorateClass([
654
- watch("variable")
655
- ], TerraTimeSeries.prototype, "handlevariableUpdate", 1);
656
- __decorateClass([
657
- watch("startDate")
658
- ], TerraTimeSeries.prototype, "handleStartDateUpdate", 1);
659
- __decorateClass([
660
- watch("endDate")
661
- ], TerraTimeSeries.prototype, "handleEndDateUpdate", 1);
662
- __decorateClass([
663
- watch("location")
664
- ], TerraTimeSeries.prototype, "handleLocationUpdate", 1);
665
- __decorateClass([
666
- watch("activeMenuItem")
667
- ], TerraTimeSeries.prototype, "handleFocus", 1);
668
-
669
- export {
670
- TerraTimeSeries
671
- };
@@ -1,10 +0,0 @@
1
- // src/utilities/date.ts
2
- import { isValid } from "date-fns";
3
- function isValidDate(date) {
4
- const parsedDate = Date.parse(date);
5
- return !isNaN(parsedDate) && isValid(parsedDate);
6
- }
7
-
8
- export {
9
- isValidDate
10
- };