@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,10 +1,14 @@
1
1
  import {
2
2
  format
3
- } from "./chunk.BPNFS4ED.js";
3
+ } from "./chunk.K6GAF43H.js";
4
4
  import {
5
5
  h,
6
6
  i
7
7
  } from "./chunk.UGTZ22DI.js";
8
+ import {
9
+ formatDate,
10
+ getUTCDate
11
+ } from "./chunk.YIABHSHN.js";
8
12
  import {
9
13
  __asyncGenerator,
10
14
  __await,
@@ -340,6 +344,7 @@ function storeDataByKey(store, key, data) {
340
344
  }
341
345
 
342
346
  // src/components/time-series/time-series.controller.ts
347
+ var NUM_DATAPOINTS_TO_WARN_USER = 5e4;
343
348
  var endpoint = "https://8weebb031a.execute-api.us-east-1.amazonaws.com/SIT/timeseries-no-user";
344
349
  var plotlyDefaultData = {
345
350
  // holds the default Plotly configuration options.
@@ -349,7 +354,7 @@ var plotlyDefaultData = {
349
354
  line: { color: "rgb(28, 103, 227)" }
350
355
  // TODO: configureable?
351
356
  };
352
- var _bearerToken, _loadTimeSeries, loadTimeSeries_fn, _calculateDataGaps, calculateDataGaps_fn, _fetchTimeSeriesChunk, fetchTimeSeriesChunk_fn, _parseTimeSeriesCsv, parseTimeSeriesCsv_fn, _getDataInRange, getDataInRange_fn;
357
+ var _bearerToken, _userConfirmedWarning, _loadTimeSeries, loadTimeSeries_fn, _calculateDataGaps, calculateDataGaps_fn, _fetchTimeSeriesChunk, fetchTimeSeriesChunk_fn, _parseTimeSeriesCsv, parseTimeSeriesCsv_fn, _getDataInRange, getDataInRange_fn, _normalizeCoordinates, normalizeCoordinates_fn, _checkDataPointLimits, checkDataPointLimits_fn;
353
358
  var TimeSeriesController = class {
354
359
  constructor(host, bearerToken) {
355
360
  __privateAdd(this, _loadTimeSeries);
@@ -370,7 +375,17 @@ var TimeSeriesController = class {
370
375
  * given a set of data and a date range, will return only the data that falls within that range
371
376
  */
372
377
  __privateAdd(this, _getDataInRange);
378
+ /**
379
+ * Normalizes coordinates to 2 decimal places
380
+ */
381
+ __privateAdd(this, _normalizeCoordinates);
382
+ /**
383
+ * Checks if the current date range will exceed data point limits
384
+ * Returns true if it's safe to proceed, false if confirmation is needed
385
+ */
386
+ __privateAdd(this, _checkDataPointLimits);
373
387
  __privateAdd(this, _bearerToken, null);
388
+ __privateAdd(this, _userConfirmedWarning, false);
374
389
  this.emptyPlotData = [
375
390
  __spreadProps(__spreadValues({}, plotlyDefaultData), {
376
391
  x: [],
@@ -380,10 +395,9 @@ var TimeSeriesController = class {
380
395
  __privateSet(this, _bearerToken, bearerToken);
381
396
  this.host = host;
382
397
  this.task = new h(host, {
383
- autoRun: false,
384
398
  // passing the signal in so the fetch request will be aborted when the task is aborted
385
399
  task: async (_args, { signal }) => {
386
- if (!this.collection || !this.variable || !this.startDate || !this.endDate || !this.location) {
400
+ if (!this.host.catalogVariable || !this.host.startDate || !this.host.endDate || !this.host.location) {
387
401
  return i;
388
402
  }
389
403
  const timeSeries = await __privateMethod(this, _loadTimeSeries, loadTimeSeries_fn).call(this, signal);
@@ -396,34 +410,49 @@ var TimeSeriesController = class {
396
410
  this.host.emit("terra-time-series-data-change", {
397
411
  detail: {
398
412
  data: timeSeries,
399
- collection: this.collection,
400
- variable: this.variable,
401
- startDate: this.startDate.toISOString(),
402
- endDate: this.endDate.toISOString(),
403
- location: this.location
413
+ variable: this.host.catalogVariable,
414
+ startDate: formatDate(this.host.startDate),
415
+ endDate: formatDate(this.host.endDate),
416
+ location: this.host.location
404
417
  }
405
418
  });
406
419
  return this.lastTaskValue;
407
- }
420
+ },
421
+ args: () => [
422
+ this.host.catalogVariable,
423
+ this.host.startDate,
424
+ this.host.endDate,
425
+ this.host.location
426
+ ]
408
427
  });
409
428
  }
410
429
  render(renderFunctions) {
411
430
  return this.task.render(renderFunctions);
412
431
  }
432
+ /**
433
+ * Called when the user confirms the data point warning
434
+ */
435
+ confirmDataPointWarning() {
436
+ __privateSet(this, _userConfirmedWarning, true);
437
+ this.host.showDataPointWarning = false;
438
+ }
413
439
  };
414
440
  _bearerToken = new WeakMap();
441
+ _userConfirmedWarning = new WeakMap();
415
442
  _loadTimeSeries = new WeakSet();
416
443
  loadTimeSeries_fn = async function(signal) {
417
- const variableEntryId = `${this.collection}_${this.variable}`.replace(
418
- /\./g,
419
- "_"
420
- );
421
- const cacheKey = `${variableEntryId}_${this.location}`;
444
+ const [lat, lon] = this.host.location.split(",");
445
+ const normalizedLocation = __privateMethod(this, _normalizeCoordinates, normalizeCoordinates_fn).call(this, lat, lon);
446
+ const location = `${normalizedLocation.lat},%20${normalizedLocation.lon}`;
447
+ const startDate = getUTCDate(this.host.startDate);
448
+ const endDate = getUTCDate(this.host.endDate);
449
+ const variableEntryId = this.host.catalogVariable.dataFieldId;
450
+ const cacheKey = `${variableEntryId}_${location}`;
422
451
  const existingTerraData = await getDataByKey(
423
452
  "time-series" /* TIME_SERIES */,
424
453
  cacheKey
425
454
  );
426
- if (existingTerraData && this.startDate.getTime() >= new Date(existingTerraData.startDate).getTime() && this.endDate.getTime() <= new Date(existingTerraData.endDate).getTime()) {
455
+ if (existingTerraData && startDate.getTime() >= new Date(existingTerraData.startDate).getTime() && endDate.getTime() <= new Date(existingTerraData.endDate).getTime()) {
427
456
  return __privateMethod(this, _getDataInRange, getDataInRange_fn).call(this, existingTerraData);
428
457
  }
429
458
  const dataGaps = __privateMethod(this, _calculateDataGaps, calculateDataGaps_fn).call(this, existingTerraData);
@@ -433,7 +462,7 @@ loadTimeSeries_fn = async function(signal) {
433
462
  const allChunks = [];
434
463
  for (const gap of dataGaps) {
435
464
  const chunks = calculateDateChunks(
436
- this.host.timeInterval,
465
+ this.host.catalogVariable.dataProductTimeInterval,
437
466
  gap.start,
438
467
  gap.end
439
468
  );
@@ -479,28 +508,35 @@ loadTimeSeries_fn = async function(signal) {
479
508
  };
480
509
  _calculateDataGaps = new WeakSet();
481
510
  calculateDataGaps_fn = function(existingData) {
511
+ const start = getUTCDate(this.host.startDate);
512
+ const end = getUTCDate(this.host.endDate);
482
513
  if (!existingData) {
483
- return [{ start: this.startDate, end: this.endDate }];
514
+ return [{ start, end }];
484
515
  }
485
516
  const existingStartDate = new Date(existingData.startDate);
486
517
  const existingEndDate = new Date(existingData.endDate);
487
518
  const gaps = [];
488
- if (this.startDate < existingStartDate) {
489
- gaps.push({ start: this.startDate, end: existingStartDate });
519
+ if (start < existingStartDate) {
520
+ gaps.push({ start, end: existingStartDate });
490
521
  }
491
- if (this.endDate > existingEndDate) {
492
- gaps.push({ start: existingEndDate, end: this.endDate });
522
+ if (end > existingEndDate) {
523
+ gaps.push({ start: existingEndDate, end });
493
524
  }
494
525
  return gaps;
495
526
  };
496
527
  _fetchTimeSeriesChunk = new WeakSet();
497
528
  fetchTimeSeriesChunk_fn = async function(variableEntryId, startDate, endDate, signal) {
498
529
  var _a;
499
- const [lon, lat] = decodeURIComponent((_a = this.location) != null ? _a : ", ").split(", ");
530
+ if (!__privateGet(this, _userConfirmedWarning) && !__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this, this.host.catalogVariable, startDate, endDate)) {
531
+ throw new Error("User cancelled data point warning");
532
+ }
533
+ __privateSet(this, _userConfirmedWarning, false);
534
+ const [lat, lon] = decodeURIComponent((_a = this.host.location) != null ? _a : ",").split(",");
535
+ const normalizedLocation = __privateMethod(this, _normalizeCoordinates, normalizeCoordinates_fn).call(this, lat, lon);
500
536
  const url = `${endpoint}?${new URLSearchParams({
501
537
  data: variableEntryId,
502
- lat,
503
- lon,
538
+ lat: normalizedLocation.lat,
539
+ lon: normalizedLocation.lon,
504
540
  time_start: format(startDate, "yyyy-MM-dd") + "T00%3A00%3A00",
505
541
  time_end: format(endDate, "yyyy-MM-dd") + "T23%3A59%3A59"
506
542
  }).toString()}`;
@@ -554,18 +590,39 @@ parseTimeSeriesCsv_fn = function(text) {
554
590
  };
555
591
  _getDataInRange = new WeakSet();
556
592
  getDataInRange_fn = function(data) {
593
+ const startDate = getUTCDate(this.host.startDate);
594
+ const endDate = getUTCDate(this.host.endDate);
557
595
  return __spreadProps(__spreadValues({}, data), {
558
596
  data: data.data.filter((row) => {
559
597
  const timestamp = new Date(row.timestamp);
560
- return timestamp >= this.startDate && timestamp <= this.endDate;
598
+ return timestamp >= startDate && timestamp <= endDate;
561
599
  }).sort(
562
600
  (a, b) => new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime()
563
601
  )
564
602
  });
565
603
  };
604
+ _normalizeCoordinates = new WeakSet();
605
+ normalizeCoordinates_fn = function(lat, lon) {
606
+ return {
607
+ lat: Number(lat).toFixed(2),
608
+ lon: Number(lon).toFixed(2)
609
+ };
610
+ };
611
+ _checkDataPointLimits = new WeakSet();
612
+ checkDataPointLimits_fn = function(catalogVariable, startDate, endDate) {
613
+ this.host.estimatedDataPoints = calculateDataPoints(
614
+ catalogVariable.dataProductTimeInterval,
615
+ startDate,
616
+ endDate
617
+ );
618
+ if (this.host.estimatedDataPoints < NUM_DATAPOINTS_TO_WARN_USER) {
619
+ return true;
620
+ }
621
+ this.host.showDataPointWarning = true;
622
+ return false;
623
+ };
566
624
 
567
625
  export {
568
- calculateDataPoints,
569
626
  plotlyDefaultData,
570
627
  TimeSeriesController
571
628
  };
@@ -8,23 +8,23 @@ import {
8
8
  s
9
9
  } from "./chunk.GNSDRDLV.js";
10
10
  import {
11
- watch
12
- } from "./chunk.6MMTW476.js";
11
+ button_styles_default
12
+ } from "./chunk.YVG2XG3L.js";
13
13
  import {
14
14
  e
15
15
  } from "./chunk.YVSJQ4KD.js";
16
+ import {
17
+ watch
18
+ } from "./chunk.6MMTW476.js";
16
19
  import {
17
20
  TerraElement,
18
21
  component_styles_default
19
- } from "./chunk.OGI7F4SN.js";
22
+ } from "./chunk.2BBYUVXZ.js";
20
23
  import {
21
24
  e as e2,
22
25
  n as n2,
23
26
  r
24
27
  } from "./chunk.2FFSUM6T.js";
25
- import {
26
- button_styles_default
27
- } from "./chunk.YVG2XG3L.js";
28
28
  import {
29
29
  __decorateClass,
30
30
  __privateAdd,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isValid,
3
3
  toDate
4
- } from "./chunk.FRHQ2JZY.js";
4
+ } from "./chunk.YIABHSHN.js";
5
5
 
6
6
  // node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs
7
7
  var formatDistanceLocale = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraLogin
3
- } from "./chunk.3JPFQJXJ.js";
3
+ } from "./chunk.VD37HWZF.js";
4
4
 
5
5
  // src/react/login/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraTimeSeries
3
- } from "./chunk.GD2FHNDE.js";
3
+ } from "./chunk.UQYGB6XL.js";
4
4
 
5
5
  // src/components/time-series/time-series.ts
6
6
  var time_series_default = TerraTimeSeries;
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.OGI7F4SN.js";
10
+ } from "./chunk.2BBYUVXZ.js";
11
11
  import {
12
12
  n,
13
13
  r
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraCombobox
3
- } from "./chunk.2GGZHPMT.js";
3
+ } from "./chunk.HEVFNGHQ.js";
4
4
 
5
5
  // src/components/combobox/combobox.ts
6
6
  var combobox_default = TerraCombobox;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraBrowseVariables
3
- } from "./chunk.7HEVEWEJ.js";
3
+ } from "./chunk.RCPEY33L.js";
4
4
 
5
5
  // src/components/browse-variables/browse-variables.ts
6
6
  var browse_variables_default = TerraBrowseVariables;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraMap
3
- } from "./chunk.X4377OEL.js";
3
+ } from "./chunk.RN6XJ3EC.js";
4
4
 
5
5
  // src/components/map/map.ts
6
6
  var map_default = TerraMap;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraTimeSeries
3
- } from "./chunk.4TEZ5QPN.js";
3
+ } from "./chunk.UQYGB6XL.js";
4
4
 
5
5
  // src/react/time-series/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableKeywordSearch
3
- } from "./chunk.S4INEVCC.js";
3
+ } from "./chunk.Y7P4LXE6.js";
4
4
 
5
5
  // src/components/variable-keyword-search/variable-keyword-search.ts
6
6
  var variable_keyword_search_default = TerraVariableKeywordSearch;
@@ -1,41 +1,41 @@
1
1
  import {
2
2
  TerraVariableKeywordSearch
3
- } from "./chunk.S4INEVCC.js";
3
+ } from "./chunk.Y7P4LXE6.js";
4
4
  import {
5
5
  TerraSkeleton
6
- } from "./chunk.FROJF7FV.js";
6
+ } from "./chunk.CZILWG23.js";
7
7
  import {
8
8
  getRandomIntInclusive
9
9
  } from "./chunk.7PAVW6KC.js";
10
10
  import {
11
11
  TerraLoader
12
- } from "./chunk.WI5HA4EV.js";
12
+ } from "./chunk.LSHZ2GJS.js";
13
13
  import {
14
14
  TerraIcon
15
- } from "./chunk.TY7DVGTP.js";
15
+ } from "./chunk.FKZEIUI7.js";
16
+ import {
17
+ BrowseVariablesController
18
+ } from "./chunk.ALXMBVVZ.js";
19
+ import {
20
+ s
21
+ } from "./chunk.UGTZ22DI.js";
22
+ import {
23
+ browse_variables_styles_default
24
+ } from "./chunk.4EVDB43F.js";
16
25
  import {
17
26
  TerraButton
18
- } from "./chunk.FBCYHMRV.js";
27
+ } from "./chunk.J53H64HP.js";
19
28
  import {
20
29
  watch
21
30
  } from "./chunk.6MMTW476.js";
22
31
  import {
23
32
  TerraElement,
24
33
  component_styles_default
25
- } from "./chunk.OGI7F4SN.js";
34
+ } from "./chunk.2BBYUVXZ.js";
26
35
  import {
27
36
  n,
28
37
  r
29
38
  } from "./chunk.2FFSUM6T.js";
30
- import {
31
- BrowseVariablesController
32
- } from "./chunk.BKOLMPIY.js";
33
- import {
34
- s
35
- } from "./chunk.UGTZ22DI.js";
36
- import {
37
- browse_variables_styles_default
38
- } from "./chunk.4EVDB43F.js";
39
39
  import {
40
40
  T,
41
41
  x
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableCombobox
3
- } from "./chunk.D7BYLJCK.js";
3
+ } from "./chunk.VV7CXX5L.js";
4
4
 
5
5
  // src/components/variable-combobox/variable-combobox.ts
6
6
  var variable_combobox_default = TerraVariableCombobox;
@@ -1,18 +1,18 @@
1
+ import {
2
+ map_styles_default
3
+ } from "./chunk.TZK42POE.js";
1
4
  import {
2
5
  leaflet_draw_styles_default
3
- } from "./chunk.KJ4BZBTX.js";
6
+ } from "./chunk.27EMK3NO.js";
4
7
  import {
5
8
  Leaflet
6
- } from "./chunk.MUAWDIKB.js";
9
+ } from "./chunk.6NEMJOXS.js";
7
10
  import {
8
11
  leaflet_styles_default
9
12
  } from "./chunk.VHHIJXG2.js";
10
13
  import {
11
14
  MapController
12
15
  } from "./chunk.M4BZHL67.js";
13
- import {
14
- map_styles_default
15
- } from "./chunk.TZK42POE.js";
16
16
  import {
17
17
  h
18
18
  } from "./chunk.QB5SASDL.js";
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  TerraElement,
27
27
  component_styles_default
28
- } from "./chunk.OGI7F4SN.js";
28
+ } from "./chunk.2BBYUVXZ.js";
29
29
  import {
30
30
  e,
31
31
  n,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableKeywordSearch
3
- } from "./chunk.ZLAVT4EU.js";
3
+ } from "./chunk.Y7P4LXE6.js";
4
4
 
5
5
  // src/react/variable-keyword-search/index.ts
6
6
  import * as React from "react";
@@ -0,0 +1,187 @@
1
+ import {
2
+ TerraVariableCombobox
3
+ } from "./chunk.VV7CXX5L.js";
4
+ import {
5
+ TerraSpatialPicker
6
+ } from "./chunk.2JVFCPZQ.js";
7
+ import {
8
+ TerraTimeSeries
9
+ } from "./chunk.UQYGB6XL.js";
10
+ import {
11
+ TerraDateRangeSlider
12
+ } from "./chunk.2XTKUKIB.js";
13
+ import {
14
+ data_rods_styles_default
15
+ } from "./chunk.754XAIN7.js";
16
+ import {
17
+ GiovanniVariableCatalog
18
+ } from "./chunk.XU3NXPIM.js";
19
+ import {
20
+ h
21
+ } from "./chunk.UGTZ22DI.js";
22
+ import {
23
+ getUTCDate
24
+ } from "./chunk.YIABHSHN.js";
25
+ import {
26
+ TerraElement,
27
+ component_styles_default
28
+ } from "./chunk.2BBYUVXZ.js";
29
+ import {
30
+ n,
31
+ r
32
+ } from "./chunk.2FFSUM6T.js";
33
+ import {
34
+ x
35
+ } from "./chunk.PQFHJHNO.js";
36
+ import {
37
+ __decorateClass,
38
+ __privateAdd,
39
+ __privateGet,
40
+ __privateMethod
41
+ } from "./chunk.6JHIJHTB.js";
42
+
43
+ // src/components/data-rods/data-rods.component.ts
44
+ var _catalog, _fetchVariableTask, _getVariableEntryId, getVariableEntryId_fn, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn, _handleVariableChange, handleVariableChange_fn, _handleMapChange, handleMapChange_fn;
45
+ var TerraDataRods = class extends TerraElement {
46
+ constructor() {
47
+ super(...arguments);
48
+ __privateAdd(this, _getVariableEntryId);
49
+ /**
50
+ * anytime the date range slider changes, update the start and end date
51
+ */
52
+ __privateAdd(this, _handleDateRangeSliderChangeEvent);
53
+ __privateAdd(this, _handleVariableChange);
54
+ __privateAdd(this, _handleMapChange);
55
+ __privateAdd(this, _catalog, new GiovanniVariableCatalog());
56
+ // @ts-expect-error
57
+ __privateAdd(this, _fetchVariableTask, new h(this, {
58
+ task: async (_args, { signal }) => {
59
+ var _a, _b, _c, _d;
60
+ const variableEntryId = __privateMethod(this, _getVariableEntryId, getVariableEntryId_fn).call(this);
61
+ console.debug("fetch variable ", variableEntryId);
62
+ if (!variableEntryId) {
63
+ return;
64
+ }
65
+ const variable = await __privateGet(this, _catalog).getVariable(variableEntryId, {
66
+ signal
67
+ });
68
+ console.debug("found variable ", variable);
69
+ if (!variable) {
70
+ return;
71
+ }
72
+ this.startDate = (_b = this.startDate) != null ? _b : (_a = variable.exampleInitialStartDate) == null ? void 0 : _a.toISOString();
73
+ this.endDate = (_d = this.endDate) != null ? _d : (_c = variable.exampleInitialEndDate) == null ? void 0 : _c.toISOString();
74
+ this.catalogVariable = variable;
75
+ },
76
+ args: () => [this.variableEntryId, this.collection, this.variable]
77
+ }));
78
+ }
79
+ render() {
80
+ var _a;
81
+ const minDate = this.catalogVariable ? getUTCDate(this.catalogVariable.dataProductBeginDateTime) : void 0;
82
+ const maxDate = this.catalogVariable ? getUTCDate(this.catalogVariable.dataProductEndDateTime) : void 0;
83
+ return x`
84
+ <terra-variable-combobox
85
+ exportparts="base:variable-combobox__base, combobox:variable-combobox__combobox, button:variable-combobox__button, listbox:variable-combobox__listbox"
86
+ .value=${__privateMethod(this, _getVariableEntryId, getVariableEntryId_fn).call(this)}
87
+ .bearerToken=${(_a = this.bearerToken) != null ? _a : null}
88
+ .useTags=${true}
89
+ @terra-combobox-change="${__privateMethod(this, _handleVariableChange, handleVariableChange_fn)}"
90
+ ></terra-variable-combobox>
91
+
92
+ <terra-spatial-picker
93
+ initial-value=${this.location}
94
+ exportparts="map:spatial-picker__map, leaflet-bbox:spatial-picker__leaflet-bbox, leaflet-point:spatial-picker__leaflet-point"
95
+ label="Select Point"
96
+ @terra-map-change=${__privateMethod(this, _handleMapChange, handleMapChange_fn)}
97
+ ></terra-spatial-picker>
98
+
99
+ <terra-time-series
100
+ variable-entry-id=${__privateMethod(this, _getVariableEntryId, getVariableEntryId_fn).call(this)}
101
+ start-date=${this.startDate}
102
+ end-date=${this.endDate}
103
+ location=${this.location}
104
+ bearer-token=${this.bearerToken}
105
+ ></terra-time-series>
106
+
107
+ <terra-date-range-slider
108
+ exportparts="slider:date-range-slider__slider"
109
+ min-date=${minDate}
110
+ max-date=${maxDate}
111
+ start-date=${this.startDate}
112
+ end-date=${this.endDate}
113
+ @terra-date-range-change="${__privateMethod(this, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn)}"
114
+ ></terra-date-range-slider>
115
+ `;
116
+ }
117
+ };
118
+ _catalog = new WeakMap();
119
+ _fetchVariableTask = new WeakMap();
120
+ _getVariableEntryId = new WeakSet();
121
+ getVariableEntryId_fn = function() {
122
+ var _a;
123
+ if (!this.variableEntryId && !(this.collection && this.variable)) {
124
+ return;
125
+ }
126
+ return (_a = this.variableEntryId) != null ? _a : `${this.collection}_${this.variable}`;
127
+ };
128
+ _handleDateRangeSliderChangeEvent = new WeakSet();
129
+ handleDateRangeSliderChangeEvent_fn = function(event) {
130
+ this.startDate = event.detail.startDate;
131
+ this.endDate = event.detail.endDate;
132
+ };
133
+ _handleVariableChange = new WeakSet();
134
+ handleVariableChange_fn = function(event) {
135
+ this.variableEntryId = event.detail.entryId;
136
+ };
137
+ _handleMapChange = new WeakSet();
138
+ handleMapChange_fn = function(event) {
139
+ const type = event.detail.geoJson.geometry.type;
140
+ if (type === "Point") {
141
+ const { latLng } = event.detail;
142
+ this.location = `${latLng.lat.toFixed(4)},${latLng.lng.toFixed(4)}`;
143
+ }
144
+ };
145
+ TerraDataRods.styles = [component_styles_default, data_rods_styles_default];
146
+ TerraDataRods.dependencies = {
147
+ "terra-time-series": TerraTimeSeries,
148
+ "terra-date-range-slider": TerraDateRangeSlider,
149
+ "terra-spatial-picker": TerraSpatialPicker,
150
+ "terra-variable-combobox": TerraVariableCombobox
151
+ };
152
+ __decorateClass([
153
+ n({ attribute: "variable-entry-id", reflect: true })
154
+ ], TerraDataRods.prototype, "variableEntryId", 2);
155
+ __decorateClass([
156
+ n({ reflect: true })
157
+ ], TerraDataRods.prototype, "collection", 2);
158
+ __decorateClass([
159
+ n({ reflect: true })
160
+ ], TerraDataRods.prototype, "variable", 2);
161
+ __decorateClass([
162
+ n({
163
+ attribute: "start-date",
164
+ reflect: true
165
+ })
166
+ ], TerraDataRods.prototype, "startDate", 2);
167
+ __decorateClass([
168
+ n({
169
+ attribute: "end-date",
170
+ reflect: true
171
+ })
172
+ ], TerraDataRods.prototype, "endDate", 2);
173
+ __decorateClass([
174
+ n({
175
+ reflect: true
176
+ })
177
+ ], TerraDataRods.prototype, "location", 2);
178
+ __decorateClass([
179
+ n({ attribute: "bearer-token", reflect: false })
180
+ ], TerraDataRods.prototype, "bearerToken", 2);
181
+ __decorateClass([
182
+ r()
183
+ ], TerraDataRods.prototype, "catalogVariable", 2);
184
+
185
+ export {
186
+ TerraDataRods
187
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraPlot
3
- } from "./chunk.QM5FOCP6.js";
3
+ } from "./chunk.FM3UWDOB.js";
4
4
 
5
5
  // src/components/plot/plot.ts
6
6
  var plot_default = TerraPlot;
@@ -0,0 +1,21 @@
1
+ import {
2
+ TerraDataRods
3
+ } from "./chunk.SVB6CWAO.js";
4
+
5
+ // src/react/data-rods/index.ts
6
+ import * as React from "react";
7
+ import { createComponent } from "@lit/react";
8
+ var tagName = "terra-data-rods";
9
+ TerraDataRods.define("terra-data-rods");
10
+ var reactWrapper = createComponent({
11
+ tagName,
12
+ elementClass: TerraDataRods,
13
+ react: React,
14
+ events: {},
15
+ displayName: "TerraDataRods"
16
+ });
17
+ var data_rods_default = reactWrapper;
18
+
19
+ export {
20
+ data_rods_default
21
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraCombobox
3
- } from "./chunk.OFKYTBNH.js";
3
+ } from "./chunk.HEVFNGHQ.js";
4
4
 
5
5
  // src/react/combobox/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraSpatialPicker
3
- } from "./chunk.JZBUILMZ.js";
3
+ } from "./chunk.2JVFCPZQ.js";
4
4
 
5
5
  // src/react/spatial-picker/index.ts
6
6
  import * as React from "react";