@nasa-terra/components 0.0.16 → 0.0.19

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 (356) hide show
  1. package/cdn/chunks/{chunk.2TIJ6R6B.js → chunk.255N2VBJ.js} +1 -1
  2. package/cdn/chunks/{chunk.JIUOSOVY.js → chunk.26M35UMA.js} +1 -1
  3. package/cdn/chunks/{chunk.7VSR26CA.js → chunk.2MR4S2RG.js} +2 -2
  4. package/cdn/chunks/{chunk.EHY7VY3A.js → chunk.35UPRHLO.js} +1 -1
  5. package/cdn/chunks/{chunk.XV5OXFZF.js → chunk.3QDQU6IH.js} +1 -1
  6. package/cdn/chunks/{chunk.JM34BH4L.js → chunk.3X46EXSH.js} +1 -1
  7. package/cdn/chunks/{chunk.336JMC6Z.js → chunk.4BM5VFHP.js} +4 -2
  8. package/cdn/chunks/{chunk.KNJGM7ZC.js → chunk.7NUP2QM3.js} +1 -1
  9. package/cdn/chunks/{chunk.FKIVBKR4.js → chunk.A7JNBDMV.js} +1 -1
  10. package/{dist/chunks/chunk.2GTDPFRM.js → cdn/chunks/chunk.CVMKTAN6.js} +1 -1
  11. package/cdn/chunks/{chunk.RPXN4NU2.js → chunk.D4PVXIX4.js} +1 -1
  12. package/cdn/chunks/{chunk.VLVUJMLW.js → chunk.D4RFPP4E.js} +14 -14
  13. package/cdn/chunks/{chunk.IA24KXWX.js → chunk.EFFYILRO.js} +1 -1
  14. package/{dist/chunks/chunk.CBU7JODA.js → cdn/chunks/chunk.FXBR2CLR.js} +1 -1
  15. package/cdn/chunks/{chunk.AI62NGNK.js → chunk.GGXVEHRQ.js} +1 -1
  16. package/cdn/chunks/{chunk.MGN45BTW.js → chunk.GVXNMKZL.js} +1 -1
  17. package/cdn/chunks/{chunk.LCBLTPNH.js → chunk.H4JY2YI5.js} +1 -1
  18. package/cdn/chunks/{chunk.3ENNXZ6R.js → chunk.HOJQS4WB.js} +23 -14
  19. package/cdn/chunks/{chunk.T3R3UWJ7.js → chunk.HYBK26DZ.js} +3 -3
  20. package/cdn/chunks/{chunk.VXV5USN7.js → chunk.I4SJOUOT.js} +9 -9
  21. package/cdn/chunks/{chunk.5TCRMMVM.js → chunk.IEKKFDDR.js} +1 -1
  22. package/cdn/chunks/{chunk.QQ3GAD4X.js → chunk.JF5WE7DB.js} +4 -4
  23. package/cdn/chunks/{chunk.F6HKKNJR.js → chunk.K3KUUN7M.js} +15 -15
  24. package/cdn/chunks/{chunk.EIMG4XGS.js → chunk.KGVGJIN6.js} +4 -4
  25. package/cdn/chunks/{chunk.DY5SMOW7.js → chunk.KRV3QC6E.js} +1 -2
  26. package/cdn/chunks/{chunk.SDCAKUF2.js → chunk.MU5VF7T7.js} +1 -1
  27. package/cdn/chunks/{chunk.57LVW27O.js → chunk.N36ACYG7.js} +1 -1
  28. package/cdn/chunks/{chunk.TG4WI6CA.js → chunk.N6CSKYGG.js} +1 -1
  29. package/cdn/chunks/{chunk.PETOVVIO.js → chunk.PHMP6QZK.js} +1 -1
  30. package/cdn/chunks/{chunk.TOG3CR4L.js → chunk.Q7V7IFTI.js} +1 -1
  31. package/cdn/chunks/{chunk.WVAKAESC.js → chunk.RJCQ5JYU.js} +1 -1
  32. package/cdn/chunks/{chunk.ODLY7QWO.js → chunk.RPRZYXWX.js} +1 -1
  33. package/cdn/chunks/{chunk.F3WO26WZ.js → chunk.SAY53MDH.js} +3 -3
  34. package/{dist/chunks/chunk.KPXFSE3J.js → cdn/chunks/chunk.SBTMIM4P.js} +6 -3
  35. package/cdn/chunks/{chunk.RYDRC65X.js → chunk.SU7526RC.js} +1 -1
  36. package/{dist/chunks/chunk.34PQNYPP.js → cdn/chunks/chunk.T6LQIGOC.js} +1 -1
  37. package/{dist/chunks/chunk.KCYAARKK.js → cdn/chunks/chunk.T6XNILRG.js} +1 -1
  38. package/cdn/chunks/{chunk.5EGY75T5.js → chunk.UBVSIOSK.js} +4 -4
  39. package/cdn/chunks/{chunk.77DLQZVO.js → chunk.UQREFLTK.js} +1 -1
  40. package/cdn/chunks/{chunk.GZ24SYY3.js → chunk.VJ3ZRWAI.js} +2 -6
  41. package/cdn/chunks/{chunk.TD5OSBG3.js → chunk.VVXXEKVB.js} +1 -1
  42. package/cdn/chunks/{chunk.PBTOMMNF.js → chunk.VWOCHHDI.js} +7 -7
  43. package/cdn/chunks/{chunk.G6ADH3AH.js → chunk.WLGNUWUQ.js} +1 -1
  44. package/cdn/chunks/{chunk.QE6VXD5B.js → chunk.WRRDTOCT.js} +5 -2
  45. package/cdn/chunks/{chunk.IFWHGZLJ.js → chunk.XPKFSIPV.js} +1 -1
  46. package/cdn/chunks/{chunk.OB7ATVCO.js → chunk.YGXFM6FJ.js} +1 -1
  47. package/cdn/chunks/{chunk.CZH6I2IA.js → chunk.ZAYAT2TO.js} +1 -1
  48. package/cdn/chunks/{chunk.X2ZVRY4H.js → chunk.ZJVBOKXX.js} +1 -1
  49. package/cdn/chunks/{chunk.NGNH7UG4.js → chunk.ZMHMRAXL.js} +4 -4
  50. package/cdn/chunks/{chunk.MSS2SPZN.js → chunk.ZSTKVGYN.js} +1 -1
  51. package/cdn/components/browse-variables/browse-variables.component.js +19 -19
  52. package/cdn/components/browse-variables/browse-variables.js +20 -20
  53. package/cdn/components/button/button.component.js +4 -4
  54. package/cdn/components/button/button.js +5 -5
  55. package/cdn/components/chip/chip.component.js +2 -2
  56. package/cdn/components/chip/chip.js +3 -3
  57. package/cdn/components/combobox/combobox.component.js +4 -4
  58. package/cdn/components/combobox/combobox.js +5 -5
  59. package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
  60. package/cdn/components/date-range-slider/date-range-slider.js +4 -4
  61. package/cdn/components/giovanni-search/giovanni-search.component.js +13 -13
  62. package/cdn/components/giovanni-search/giovanni-search.js +14 -14
  63. package/cdn/components/icon/icon.component.js +4 -4
  64. package/cdn/components/icon/icon.js +5 -5
  65. package/cdn/components/icon/library.js +2 -2
  66. package/cdn/components/loader/loader.component.js +2 -2
  67. package/cdn/components/loader/loader.js +3 -3
  68. package/cdn/components/login/login.component.js +13 -13
  69. package/cdn/components/login/login.js +14 -14
  70. package/cdn/components/map/leaflet-utils.d.ts +1 -1
  71. package/cdn/components/map/leaflet-utils.js +1 -1
  72. package/cdn/components/map/map.component.js +5 -5
  73. package/cdn/components/map/map.controller.js +1 -1
  74. package/cdn/components/map/map.js +6 -6
  75. package/cdn/components/plot/plot.component.js +2 -2
  76. package/cdn/components/plot/plot.js +3 -3
  77. package/cdn/components/skeleton/skeleton.component.js +2 -2
  78. package/cdn/components/skeleton/skeleton.js +3 -3
  79. package/cdn/components/spatial-picker/spatial-picker.component.js +6 -6
  80. package/cdn/components/spatial-picker/spatial-picker.js +7 -7
  81. package/cdn/components/time-series/time-series.component.d.ts +4 -2
  82. package/cdn/components/time-series/time-series.component.js +25 -25
  83. package/cdn/components/time-series/time-series.controller.d.ts +4 -3
  84. package/cdn/components/time-series/time-series.controller.js +1 -1
  85. package/cdn/components/time-series/time-series.js +26 -26
  86. package/cdn/components/variable-combobox/variable-combobox.component.js +12 -12
  87. package/cdn/components/variable-combobox/variable-combobox.controller.js +2 -2
  88. package/cdn/components/variable-combobox/variable-combobox.js +13 -13
  89. package/cdn/custom-elements.json +458 -450
  90. package/cdn/events/events.d.ts +1 -0
  91. package/cdn/events/terra-time-series-data-change.d.ts +16 -0
  92. package/cdn/react/browse-variables/index.js +20 -20
  93. package/cdn/react/button/index.js +5 -5
  94. package/cdn/react/chip/index.js +3 -3
  95. package/cdn/react/combobox/index.js +5 -5
  96. package/cdn/react/date-range-slider/index.js +4 -4
  97. package/cdn/react/giovanni-search/index.js +14 -14
  98. package/cdn/react/icon/index.js +5 -5
  99. package/cdn/react/index.d.ts +2 -2
  100. package/cdn/react/index.js +64 -64
  101. package/cdn/react/loader/index.js +3 -3
  102. package/cdn/react/login/index.js +14 -14
  103. package/cdn/react/map/index.js +6 -6
  104. package/cdn/react/plot/index.js +3 -3
  105. package/cdn/react/skeleton/index.js +3 -3
  106. package/cdn/react/spatial-picker/index.js +7 -7
  107. package/cdn/react/time-series/index.d.ts +8 -1
  108. package/cdn/react/time-series/index.js +26 -26
  109. package/cdn/react/variable-combobox/index.js +13 -13
  110. package/cdn/terra-ui-components.js +58 -58
  111. package/cdn/types/vue/index.d.ts +68 -63
  112. package/cdn/utilities/icon-library.js +2 -2
  113. package/cdn/vscode.html-custom-data.json +49 -49
  114. package/cdn/web-types.json +85 -75
  115. package/{cdn/chunks/chunk.JBZMCSPD.js → dist/chunks/chunk.267RAJCD.js} +1 -1
  116. package/dist/chunks/{chunk.DV6U7J5D.js → chunk.2GFNQRFQ.js} +6 -6
  117. package/dist/chunks/{chunk.2KFIIWTA.js → chunk.2GIVYMVS.js} +1 -1
  118. package/dist/chunks/{chunk.ECOMXZ5Z.js → chunk.2SW6ZLO3.js} +6 -6
  119. package/dist/chunks/{chunk.5TCRMMVM.js → chunk.5BLMPQLX.js} +1 -1
  120. package/{cdn/chunks/chunk.MTNKN7SC.js → dist/chunks/chunk.6BQMITBG.js} +1 -1
  121. package/dist/chunks/{chunk.BQKL24VU.js → chunk.6W5DHHGH.js} +1 -1
  122. package/{cdn/chunks/chunk.NZLN7XGH.js → dist/chunks/chunk.6XGCF2AT.js} +1 -1
  123. package/{cdn/chunks/chunk.WALPLM23.js → dist/chunks/chunk.BLNX7W6U.js} +1 -1
  124. package/{cdn/chunks/chunk.34PQNYPP.js → dist/chunks/chunk.BQZFEJJM.js} +1 -1
  125. package/{cdn/chunks/chunk.NXW5W246.js → dist/chunks/chunk.CG2UCM6R.js} +4 -4
  126. package/{cdn/chunks/chunk.QJJV3URN.js → dist/chunks/chunk.CIHL36QS.js} +1 -1
  127. package/{cdn/chunks/chunk.NHY4FPXP.js → dist/chunks/chunk.DOHDFFXP.js} +6 -6
  128. package/{cdn/chunks/chunk.CUBR5ACQ.js → dist/chunks/chunk.DTO6LPWI.js} +1 -1
  129. package/{cdn/chunks/chunk.TFD7EM3D.js → dist/chunks/chunk.DWTCCF6R.js} +1 -1
  130. package/dist/chunks/{chunk.DR7BNSRT.js → chunk.E2GNJGZV.js} +1 -1
  131. package/dist/chunks/{chunk.SL7W466R.js → chunk.EX74UTJ7.js} +1 -1
  132. package/{cdn/chunks/chunk.UFFAH5CF.js → dist/chunks/chunk.FYQLL4HT.js} +1 -1
  133. package/{cdn/chunks/chunk.5HSDW7A7.js → dist/chunks/chunk.GAYRUSX6.js} +1 -1
  134. package/dist/chunks/{chunk.FKSGPKJ4.js → chunk.GGC3H4U4.js} +1 -1
  135. package/dist/chunks/{chunk.HSXXKVP2.js → chunk.GVOL34BS.js} +1 -1
  136. package/{cdn/chunks/chunk.TWEJH5NG.js → dist/chunks/chunk.HEWVEHI5.js} +1 -1
  137. package/dist/chunks/{chunk.FRYGAWGB.js → chunk.I3WITIFZ.js} +1 -1
  138. package/{cdn/chunks/chunk.WYAUVXJM.js → dist/chunks/chunk.ICVWA4P5.js} +5 -2
  139. package/{cdn/chunks/chunk.TRSTZLH4.js → dist/chunks/chunk.IKXISAQ2.js} +1 -1
  140. package/{cdn/chunks/chunk.EUMBRSX6.js → dist/chunks/chunk.ITTYAXUW.js} +1 -1
  141. package/{cdn/chunks/chunk.AE3PFNQE.js → dist/chunks/chunk.JFDJULBY.js} +1 -1
  142. package/{cdn/chunks/chunk.Y4T6LEGB.js → dist/chunks/chunk.JQIAVJLL.js} +1 -1
  143. package/{cdn/chunks/chunk.XSTI34LB.js → dist/chunks/chunk.JRFWKQYN.js} +1 -1
  144. package/dist/chunks/{chunk.EU6EQVBK.js → chunk.KADMU3E4.js} +3 -3
  145. package/dist/chunks/{chunk.GPMEZSRZ.js → chunk.KBIE3IOP.js} +1 -1
  146. package/{cdn/chunks/chunk.SQBTHONX.js → dist/chunks/chunk.LA3ITE3F.js} +3 -3
  147. package/dist/chunks/{chunk.G3K7U3GY.js → chunk.LHTTKRV2.js} +4 -4
  148. package/{cdn/chunks/chunk.EAPY6ENL.js → dist/chunks/chunk.LIXRQ4TF.js} +1 -1
  149. package/{cdn/chunks/chunk.DGKBWVVI.js → dist/chunks/chunk.MVIGRS3J.js} +1 -1
  150. package/{cdn/chunks/chunk.5LOTY62O.js → dist/chunks/chunk.PHKCL7D5.js} +1 -1
  151. package/dist/chunks/{chunk.7OAL7XX6.js → chunk.RQNB3PHE.js} +1 -1
  152. package/dist/chunks/{chunk.6ZBHXUFH.js → chunk.RSVF27RD.js} +1 -1
  153. package/{cdn/chunks/chunk.KPXFSE3J.js → dist/chunks/chunk.SBTMIM4P.js} +6 -3
  154. package/dist/chunks/{chunk.U4QKPX6T.js → chunk.SLW4ZVXI.js} +25 -16
  155. package/dist/chunks/{chunk.I5ZJKFQJ.js → chunk.TFKLXJVS.js} +12 -12
  156. package/dist/chunks/{chunk.BY7D7WUU.js → chunk.TK54QVRF.js} +4 -4
  157. package/{cdn/chunks/chunk.2GTDPFRM.js → dist/chunks/chunk.TRICHLNH.js} +1 -1
  158. package/dist/chunks/{chunk.ZC2AYSV2.js → chunk.UBBSTKSW.js} +4 -2
  159. package/{cdn/chunks/chunk.UQKHXO3T.js → dist/chunks/chunk.UCFFAP7X.js} +1 -2
  160. package/dist/chunks/{chunk.RPCYLOW6.js → chunk.UKBQUK7O.js} +1 -1
  161. package/{cdn/chunks/chunk.NLHKPFJJ.js → dist/chunks/chunk.WFSOHTHG.js} +1 -1
  162. package/dist/chunks/{chunk.6BHFQXZZ.js → chunk.X232PDAN.js} +1 -1
  163. package/{cdn/chunks/chunk.EPQIDDJG.js → dist/chunks/chunk.XBXVMXH7.js} +2 -6
  164. package/dist/chunks/{chunk.45HI7TFT.js → chunk.XVXKFPWS.js} +1 -1
  165. package/dist/components/browse-variables/browse-variables.component.js +16 -16
  166. package/dist/components/browse-variables/browse-variables.js +17 -17
  167. package/dist/components/button/button.component.js +3 -3
  168. package/dist/components/button/button.js +4 -4
  169. package/dist/components/chip/chip.component.js +2 -2
  170. package/dist/components/chip/chip.js +3 -3
  171. package/dist/components/combobox/combobox.component.js +3 -3
  172. package/dist/components/combobox/combobox.js +4 -4
  173. package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
  174. package/dist/components/date-range-slider/date-range-slider.js +4 -4
  175. package/dist/components/giovanni-search/giovanni-search.component.js +11 -11
  176. package/dist/components/giovanni-search/giovanni-search.js +12 -12
  177. package/dist/components/icon/icon.component.js +4 -4
  178. package/dist/components/icon/icon.js +5 -5
  179. package/dist/components/icon/library.js +2 -2
  180. package/dist/components/loader/loader.component.js +2 -2
  181. package/dist/components/loader/loader.js +3 -3
  182. package/dist/components/login/login.component.js +11 -11
  183. package/dist/components/login/login.js +12 -12
  184. package/dist/components/map/leaflet-utils.d.ts +1 -1
  185. package/dist/components/map/leaflet-utils.js +1 -1
  186. package/dist/components/map/map.component.js +4 -4
  187. package/dist/components/map/map.controller.js +1 -1
  188. package/dist/components/map/map.js +5 -5
  189. package/dist/components/plot/plot.component.js +2 -2
  190. package/dist/components/plot/plot.js +3 -3
  191. package/dist/components/skeleton/skeleton.component.js +2 -2
  192. package/dist/components/skeleton/skeleton.js +3 -3
  193. package/dist/components/spatial-picker/spatial-picker.component.js +5 -5
  194. package/dist/components/spatial-picker/spatial-picker.js +6 -6
  195. package/dist/components/time-series/time-series.component.d.ts +4 -2
  196. package/dist/components/time-series/time-series.component.js +21 -21
  197. package/dist/components/time-series/time-series.controller.d.ts +4 -3
  198. package/dist/components/time-series/time-series.controller.js +1 -1
  199. package/dist/components/time-series/time-series.js +22 -22
  200. package/dist/components/variable-combobox/variable-combobox.component.js +10 -10
  201. package/dist/components/variable-combobox/variable-combobox.controller.js +1 -1
  202. package/dist/components/variable-combobox/variable-combobox.js +11 -11
  203. package/dist/custom-elements.json +458 -450
  204. package/dist/events/events.d.ts +1 -0
  205. package/dist/events/terra-time-series-data-change.d.ts +16 -0
  206. package/dist/react/browse-variables/index.js +17 -17
  207. package/dist/react/button/index.js +4 -4
  208. package/dist/react/chip/index.js +3 -3
  209. package/dist/react/combobox/index.js +4 -4
  210. package/dist/react/date-range-slider/index.js +4 -4
  211. package/dist/react/giovanni-search/index.js +12 -12
  212. package/dist/react/icon/index.js +5 -5
  213. package/dist/react/index.d.ts +2 -2
  214. package/dist/react/index.js +59 -59
  215. package/dist/react/loader/index.js +3 -3
  216. package/dist/react/login/index.js +12 -12
  217. package/dist/react/map/index.js +5 -5
  218. package/dist/react/plot/index.js +3 -3
  219. package/dist/react/skeleton/index.js +3 -3
  220. package/dist/react/spatial-picker/index.js +6 -6
  221. package/dist/react/time-series/index.d.ts +8 -1
  222. package/dist/react/time-series/index.js +22 -22
  223. package/dist/react/variable-combobox/index.js +11 -11
  224. package/dist/terra-ui-components.js +53 -53
  225. package/dist/terra_ui_components-0.0.19-py3-none-any.whl +0 -0
  226. package/dist/{terra_ui_components-0.0.16.tar.gz → terra_ui_components-0.0.19.tar.gz} +0 -0
  227. package/dist/types/vue/index.d.ts +68 -63
  228. package/dist/utilities/icon-library.js +2 -2
  229. package/dist/vscode.html-custom-data.json +49 -49
  230. package/dist/web-types.json +85 -75
  231. package/package.json +3 -4
  232. package/cdn/chunks/chunk.2DQS7YWJ.js +0 -41
  233. package/cdn/chunks/chunk.2KFIIWTA.js +0 -53
  234. package/cdn/chunks/chunk.2TEPJ23V.js +0 -11
  235. package/cdn/chunks/chunk.2V4XFMTB.js +0 -7
  236. package/cdn/chunks/chunk.3IXG5IJD.js +0 -21
  237. package/cdn/chunks/chunk.45HI7TFT.js +0 -11
  238. package/cdn/chunks/chunk.62YHGVQN.js +0 -335
  239. package/cdn/chunks/chunk.6PYVTQGY.js +0 -11
  240. package/cdn/chunks/chunk.7OAL7XX6.js +0 -21
  241. package/cdn/chunks/chunk.7OKJDEHN.js +0 -139
  242. package/cdn/chunks/chunk.7VUSSQRI.js +0 -20
  243. package/cdn/chunks/chunk.7WL3WWGJ.js +0 -293
  244. package/cdn/chunks/chunk.AAWOHDFX.js +0 -259
  245. package/cdn/chunks/chunk.ADOXGJHH.js +0 -11
  246. package/cdn/chunks/chunk.APJOA6RL.js +0 -655
  247. package/cdn/chunks/chunk.BQKL24VU.js +0 -82
  248. package/cdn/chunks/chunk.BY7D7WUU.js +0 -180
  249. package/cdn/chunks/chunk.CBU7JODA.js +0 -11
  250. package/cdn/chunks/chunk.CNUQQWCR.js +0 -215
  251. package/cdn/chunks/chunk.DR7BNSRT.js +0 -21
  252. package/cdn/chunks/chunk.DV6U7J5D.js +0 -264
  253. package/cdn/chunks/chunk.EGZMQ7T7.js +0 -35
  254. package/cdn/chunks/chunk.FBOXM56P.js +0 -19
  255. package/cdn/chunks/chunk.FWXMF6WX.js +0 -327
  256. package/cdn/chunks/chunk.GHDRVO5M.js +0 -125
  257. package/cdn/chunks/chunk.GR7XHOA3.js +0 -52
  258. package/cdn/chunks/chunk.I5ZJKFQJ.js +0 -578
  259. package/cdn/chunks/chunk.JOOAZ4RH.js +0 -50
  260. package/cdn/chunks/chunk.KAV5L6Z5.js +0 -318
  261. package/cdn/chunks/chunk.KZ3ISS6V.js +0 -120
  262. package/cdn/chunks/chunk.LELNKRPW.js +0 -685
  263. package/cdn/chunks/chunk.MDRUDBRH.js +0 -43
  264. package/cdn/chunks/chunk.NX4TE64Y.js +0 -25
  265. package/cdn/chunks/chunk.OIDMX5LU.js +0 -10
  266. package/cdn/chunks/chunk.PICX7LPQ.js +0 -194
  267. package/cdn/chunks/chunk.PL4INVKT.js +0 -24
  268. package/cdn/chunks/chunk.Q44TP6D4.js +0 -477
  269. package/cdn/chunks/chunk.QEMJLGM4.js +0 -58
  270. package/cdn/chunks/chunk.QK5OWFVO.js +0 -238
  271. package/cdn/chunks/chunk.RPCYLOW6.js +0 -354
  272. package/cdn/chunks/chunk.RV2KFFXW.js +0 -116
  273. package/cdn/chunks/chunk.SK7IZCKP.js +0 -37
  274. package/cdn/chunks/chunk.SR6QXNO3.js +0 -24
  275. package/cdn/chunks/chunk.TQJATCGZ.js +0 -11
  276. package/cdn/chunks/chunk.TVFCHGU3.js +0 -76
  277. package/cdn/chunks/chunk.U4QKPX6T.js +0 -192
  278. package/cdn/chunks/chunk.UGKIMEZW.js +0 -21
  279. package/cdn/chunks/chunk.UIYPAVP3.js +0 -104
  280. package/cdn/chunks/chunk.USCKHG5S.js +0 -25
  281. package/cdn/chunks/chunk.V7JJFRAE.js +0 -11
  282. package/cdn/chunks/chunk.W7JRXR2Y.js +0 -293
  283. package/cdn/chunks/chunk.YL2ETAOO.js +0 -153
  284. package/cdn/chunks/chunk.Z2ELMSYN.js +0 -63
  285. package/cdn/chunks/chunk.ZC2AYSV2.js +0 -273
  286. package/dist/chunks/chunk.2O6HB6W6.js +0 -21
  287. package/dist/chunks/chunk.3WHG66G3.js +0 -177
  288. package/dist/chunks/chunk.57LVW27O.js +0 -11
  289. package/dist/chunks/chunk.5LOTY62O.js +0 -120
  290. package/dist/chunks/chunk.5O7TTTJD.js +0 -351
  291. package/dist/chunks/chunk.5UE4SLYC.js +0 -120
  292. package/dist/chunks/chunk.6CLWIMAP.js +0 -21
  293. package/dist/chunks/chunk.6GMULXGW.js +0 -21
  294. package/dist/chunks/chunk.7QKG7IRI.js +0 -379
  295. package/dist/chunks/chunk.A6JU7GRG.js +0 -25
  296. package/dist/chunks/chunk.AC6WDIAW.js +0 -11
  297. package/dist/chunks/chunk.ADOXGJHH.js +0 -11
  298. package/dist/chunks/chunk.CPXWDTHF.js +0 -214
  299. package/dist/chunks/chunk.CUBR5ACQ.js +0 -11
  300. package/dist/chunks/chunk.CZH6I2IA.js +0 -11
  301. package/dist/chunks/chunk.DIBCM2Y3.js +0 -11
  302. package/dist/chunks/chunk.EAPY6ENL.js +0 -11
  303. package/dist/chunks/chunk.EG7EICTO.js +0 -406
  304. package/dist/chunks/chunk.EHY7VY3A.js +0 -21
  305. package/dist/chunks/chunk.EPQIDDJG.js +0 -379
  306. package/dist/chunks/chunk.EZTCV6LQ.js +0 -95
  307. package/dist/chunks/chunk.FIMCDNWK.js +0 -11
  308. package/dist/chunks/chunk.FKIVBKR4.js +0 -11
  309. package/dist/chunks/chunk.FWXMF6WX.js +0 -327
  310. package/dist/chunks/chunk.FY4LGVGC.js +0 -21
  311. package/dist/chunks/chunk.G34ZJR6B.js +0 -11
  312. package/dist/chunks/chunk.GVG7MLLN.js +0 -21
  313. package/dist/chunks/chunk.I5DIH6L6.js +0 -11
  314. package/dist/chunks/chunk.IFWHGZLJ.js +0 -21
  315. package/dist/chunks/chunk.IYEX72BV.js +0 -11
  316. package/dist/chunks/chunk.J7P5CNNR.js +0 -11
  317. package/dist/chunks/chunk.JM34BH4L.js +0 -11
  318. package/dist/chunks/chunk.KQCFGTAH.js +0 -82
  319. package/dist/chunks/chunk.MDRUDBRH.js +0 -43
  320. package/dist/chunks/chunk.MHMITM2Q.js +0 -21
  321. package/dist/chunks/chunk.MTNKN7SC.js +0 -95
  322. package/dist/chunks/chunk.NHY4FPXP.js +0 -351
  323. package/dist/chunks/chunk.NQZGHZYS.js +0 -11
  324. package/dist/chunks/chunk.NXW5W246.js +0 -406
  325. package/dist/chunks/chunk.NZLN7XGH.js +0 -214
  326. package/dist/chunks/chunk.OB7ATVCO.js +0 -24
  327. package/dist/chunks/chunk.ODLY7QWO.js +0 -11
  328. package/dist/chunks/chunk.PARFAN5E.js +0 -25
  329. package/dist/chunks/chunk.PCU3BZMH.js +0 -264
  330. package/dist/chunks/chunk.PETOVVIO.js +0 -21
  331. package/dist/chunks/chunk.PICX7LPQ.js +0 -194
  332. package/dist/chunks/chunk.PYDXDZ7R.js +0 -21
  333. package/dist/chunks/chunk.Q44TP6D4.js +0 -477
  334. package/dist/chunks/chunk.Q67RNINH.js +0 -180
  335. package/dist/chunks/chunk.QLUHMJKU.js +0 -53
  336. package/dist/chunks/chunk.RR45MD47.js +0 -11
  337. package/dist/chunks/chunk.RYDRC65X.js +0 -11
  338. package/dist/chunks/chunk.SDCAKUF2.js +0 -11
  339. package/dist/chunks/chunk.SKHGD7CP.js +0 -578
  340. package/dist/chunks/chunk.SQBTHONX.js +0 -177
  341. package/dist/chunks/chunk.SR6QXNO3.js +0 -24
  342. package/dist/chunks/chunk.SS24NNGJ.js +0 -11
  343. package/dist/chunks/chunk.TFD7EM3D.js +0 -21
  344. package/dist/chunks/chunk.TOG3CR4L.js +0 -21
  345. package/dist/chunks/chunk.U2URIXJW.js +0 -354
  346. package/dist/chunks/chunk.UJ7TXBCU.js +0 -21
  347. package/dist/chunks/chunk.UQKHXO3T.js +0 -66
  348. package/dist/chunks/chunk.V7JJFRAE.js +0 -11
  349. package/dist/chunks/chunk.VR2UR6LQ.js +0 -11
  350. package/dist/chunks/chunk.WALPLM23.js +0 -11
  351. package/dist/chunks/chunk.WVAKAESC.js +0 -21
  352. package/dist/chunks/chunk.WYAUVXJM.js +0 -21
  353. package/dist/chunks/chunk.XSTI34LB.js +0 -21
  354. package/dist/chunks/chunk.XUW42A44.js +0 -21
  355. package/dist/chunks/chunk.XV5OXFZF.js +0 -21
  356. package/dist/terra_ui_components-0.0.16-py3-none-any.whl +0 -0
@@ -1,11 +0,0 @@
1
- import {
2
- TerraLoader
3
- } from "./chunk.5UE4SLYC.js";
4
-
5
- // src/components/loader/loader.ts
6
- var loader_default = TerraLoader;
7
- TerraLoader.define("terra-loader");
8
-
9
- export {
10
- loader_default
11
- };
@@ -1,11 +0,0 @@
1
- import {
2
- TerraLoader
3
- } from "./chunk.5LOTY62O.js";
4
-
5
- // src/components/loader/loader.ts
6
- var loader_default = TerraLoader;
7
- TerraLoader.define("terra-loader");
8
-
9
- export {
10
- loader_default
11
- };
@@ -1,11 +0,0 @@
1
- import {
2
- TerraChip
3
- } from "./chunk.BQKL24VU.js";
4
-
5
- // src/components/chip/chip.ts
6
- var chip_default = TerraChip;
7
- TerraChip.define("terra-chip");
8
-
9
- export {
10
- chip_default
11
- };
@@ -1,578 +0,0 @@
1
- import {
2
- TerraVariableCombobox
3
- } from "./chunk.EG7EICTO.js";
4
- import {
5
- spatial_picker_default
6
- } from "./chunk.GPMEZSRZ.js";
7
- import {
8
- TimeSeriesController
9
- } from "./chunk.U4QKPX6T.js";
10
- import {
11
- time_series_styles_default
12
- } from "./chunk.GHDRVO5M.js";
13
- import {
14
- TerraPlot
15
- } from "./chunk.EZTCV6LQ.js";
16
- import {
17
- TerraDateRangeSlider
18
- } from "./chunk.Q67RNINH.js";
19
- import {
20
- TerraLoader
21
- } from "./chunk.5UE4SLYC.js";
22
- import {
23
- TerraIcon
24
- } from "./chunk.CPXWDTHF.js";
25
- import {
26
- TerraButton
27
- } from "./chunk.U2URIXJW.js";
28
- import {
29
- watch
30
- } from "./chunk.SK7IZCKP.js";
31
- import {
32
- TerraElement,
33
- component_styles_default
34
- } from "./chunk.7QKG7IRI.js";
35
- import {
36
- __decorateClass,
37
- __privateAdd,
38
- __privateGet,
39
- __privateMethod,
40
- __privateSet
41
- } from "./chunk.TVFCHGU3.js";
42
-
43
- // src/components/time-series/time-series.component.ts
44
- import { TaskStatus } from "@lit/task";
45
- import dayjs from "dayjs";
46
- import timezone from "dayjs/plugin/timezone.js";
47
- import utc from "dayjs/plugin/utc.js";
48
- import { html } from "lit";
49
- import { property, query, state } from "lit/decorators.js";
50
- import { cache } from "lit/directives/cache.js";
51
- import { downloadImage } from "plotly.js-dist-min";
52
- dayjs.extend(utc);
53
- dayjs.extend(timezone);
54
- dayjs.tz.setDefault("Etc/GMT");
55
- var _timeSeriesController, _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;
56
- var TerraTimeSeries = class extends TerraElement {
57
- constructor() {
58
- super(...arguments);
59
- __privateAdd(this, _adaptPropertyToController);
60
- /**
61
- * The Collection Beginning DateTime changes when a new collection is selected.
62
- * We want to auto-select a reasonable slice of time and send a request to the data API, the
63
- * same as if the user moved the time slider.
64
- * However, if the component has the startDate or endDate set externally, don't override that;
65
- * this is an init-only action.
66
- */
67
- __privateAdd(this, _maybeSliceTimeForStartEnd);
68
- __privateAdd(this, _handleVariableChange);
69
- __privateAdd(this, _handleMapChange);
70
- /**
71
- * anytime the date range slider changes, update the start and end date
72
- */
73
- __privateAdd(this, _handleDateRangeSliderChangeEvent);
74
- /**
75
- * aborts the underlying data loading task, which cancels the network request
76
- */
77
- __privateAdd(this, _abortDataLoad);
78
- /**
79
- * TODO:
80
- * [x] re-enable downloads here
81
- * [x] get live data from Giovanni
82
- * [x] display required information in information menuitem
83
- * [x] ask about adding help links
84
- * [ ] see what can be simplified from downloadCSV
85
- */
86
- __privateAdd(this, _downloadCSV);
87
- __privateAdd(this, _convertToCSV);
88
- __privateAdd(this, _downloadPNG);
89
- __privateAdd(this, _handleActiveMenuItem);
90
- __privateAdd(this, _timeSeriesController, void 0);
91
- this.activeMenuItem = null;
92
- }
93
- handleCollectionUpdate(_oldValue, newValue) {
94
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "collection", newValue);
95
- }
96
- handlevariableUpdate(_oldValue, newValue) {
97
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "variable", newValue);
98
- }
99
- handleStartDateUpdate(_oldValue, newValue) {
100
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "startDate", newValue);
101
- }
102
- handleEndDateUpdate(_oldValue, newValue) {
103
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "endDate", newValue);
104
- }
105
- handleLocationUpdate(_oldValue, newValue) {
106
- __privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "location", newValue);
107
- }
108
- handleFocus(_oldValue, newValue) {
109
- if (newValue === null) {
110
- return;
111
- }
112
- this.menu.focus();
113
- }
114
- connectedCallback() {
115
- super.connectedCallback();
116
- __privateSet(this, _timeSeriesController, new TimeSeriesController(this, this.bearerToken));
117
- }
118
- render() {
119
- var _a, _b;
120
- return html`
121
- <terra-variable-combobox
122
- exportparts="base:variable-combobox__base, combobox:variable-combobox__combobox, button:variable-combobox__button, listbox:variable-combobox__listbox"
123
- value=${`${this.collection}_${this.variable}`}
124
- .bearerToken=${(_a = this.bearerToken) != null ? _a : null}
125
- @terra-combobox-change="${__privateMethod(this, _handleVariableChange, handleVariableChange_fn)}"
126
- ></terra-variable-combobox>
127
-
128
- <terra-spatial-picker
129
- initial-value=${this.location}
130
- exportparts="map:spatial-picker__map, leaflet-bbox:spatial-picker__leaflet-bbox, leaflet-point:spatial-picker__leaflet-point"
131
- label="Select Point"
132
- @terra-map-change=${__privateMethod(this, _handleMapChange, handleMapChange_fn)}
133
- ></terra-spatial-picker>
134
-
135
- <div class="plot-container">
136
- ${cache(
137
- this.variable ? html`
138
- <header>
139
- <h2 class="title">
140
- ${this.variableLongName}
141
- </h2>
142
-
143
- <div class="toggles">
144
- <terra-button
145
- circle
146
- outline
147
- aria-expanded=${this.activeMenuItem === "information"}
148
- aria-controls="menu"
149
- aria-haspopup="true"
150
- class="toggle"
151
- @click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
152
- data-menu-name="information"
153
- >
154
- <span class="sr-only">Information for ${this.variableLongName}</span>
155
-
156
- <terra-icon
157
- name="outline-information-circle"
158
- library="heroicons"
159
- font-size="1.5em"
160
- ></terra-icon>
161
- </terra-button>
162
-
163
- <terra-button
164
- circle
165
- outline
166
- aria-expanded=${this.activeMenuItem === "download"}
167
- aria-controls="menu"
168
- aria-haspopup="true"
169
- class="toggle"
170
- @click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
171
- data-menu-name="download"
172
- >
173
- <span class="sr-only">Download options for ${this.variableLongName}</span>
174
-
175
- <terra-icon
176
- name="outline-arrow-down-tray"
177
- library="heroicons"
178
- font-size="1.5em"
179
- ></terra-icon>
180
- </terra-button>
181
-
182
- <terra-button
183
- circle
184
- outline
185
- aria-expanded=${this.activeMenuItem === "help"}
186
- aria-controls="menu"
187
- aria-haspopup="true"
188
- class="toggle"
189
- @click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
190
- data-menu-name="help"
191
- >
192
- <span class="sr-only">Help link for ${this.variableLongName}</span>
193
-
194
- <terra-icon
195
- name="outline-question-mark-circle"
196
- library="heroicons"
197
- font-size="1.5em"
198
- ></terra-icon>
199
- </terra-button>
200
- </div>
201
- </header>
202
-
203
- <menu
204
- role="menu"
205
- id="menu"
206
- data-expanded=${this.activeMenuItem !== null}
207
- tabindex="-1"
208
- >
209
- <li
210
- role="menuitem"
211
- ?hidden=${this.activeMenuItem !== "information"}
212
- >
213
- <h3 class="sr-only">Information</h3>
214
-
215
- <dl>
216
- <dt>Variable Longname</dt>
217
- <dd>${this.variableLongName}</dd>
218
-
219
- <dt>Variable Shortname</dt>
220
- <dd>${this.variable}</dd>
221
-
222
- <dt>Units</dt>
223
- <dd>
224
- <code>${this.units}</code>
225
- </dd>
226
-
227
- <dt>Dataset Information</dt>
228
- <dd>
229
- <a
230
- href=${this.datasetLandingPage}
231
- rel="noopener noreffer"
232
- target="_blank"
233
- >Dataset Summary
234
-
235
- <terra-icon
236
- name="outline-arrow-top-right-on-square"
237
- library="heroicons"
238
- ></terra-icon>
239
- </a>
240
- </dd>
241
-
242
- <dt>Variable Information</dt>
243
- <dd>
244
- <a
245
- href=${this.variableLandingPage}
246
- rel="noopener noreffer"
247
- target="_blank"
248
- >Variable Glossary
249
-
250
- <terra-icon
251
- name="outline-arrow-top-right-on-square"
252
- library="heroicons"
253
- ></terra-icon>
254
- </a>
255
- </dd>
256
- </dl>
257
- </li>
258
-
259
- <li
260
- role="menuitem"
261
- ?hidden=${this.activeMenuItem !== "download"}
262
- >
263
- <h3 class="sr-only">Download Options</h3>
264
-
265
- <p>
266
- This plot can be downloaded as either a
267
- <abbr title="Portable Network Graphic"
268
- >PNG</abbr
269
- >
270
- image or
271
- <abbr title="Comma-Separated Value"
272
- >CSV</abbr
273
- >
274
- data.
275
- </p>
276
-
277
- <terra-button
278
- outline
279
- variant="default"
280
- @click=${__privateMethod(this, _downloadPNG, downloadPNG_fn)}
281
- >
282
- <span class="sr-only"
283
- >Download Plot Data as
284
- </span>
285
- PNG
286
- <terra-icon
287
- slot="prefix"
288
- name="outline-photo"
289
- library="heroicons"
290
- font-size="1.5em"
291
- ></terra-icon>
292
- </terra-button>
293
-
294
- <terra-button
295
- outline
296
- variant="default"
297
- @click=${__privateMethod(this, _downloadCSV, downloadCSV_fn)}
298
- >
299
- <span class="sr-only"
300
- >Download Plot Data as
301
- </span>
302
- CSV
303
- <terra-icon
304
- slot="prefix"
305
- name="outline-document-chart-bar"
306
- library="heroicons"
307
- font-size="1.5em"
308
- ></terra-icon>
309
- </terra-button>
310
- </li>
311
-
312
- <li
313
- role="menuitem"
314
- ?hidden=${this.activeMenuItem !== "help"}
315
- >
316
- <h3 class="sr-only">Help Links</h3>
317
- <ul>
318
- <li>
319
- <a href="https://forum.earthdata.nasa.gov/viewforum.php?f=7&DAAC=3" rel"noopener noreffer">Earthdata User Forum
320
- <terra-icon
321
- name="outline-arrow-top-right-on-square"
322
- library="heroicons"
323
- ></terra-icon>
324
- </a>
325
- </li>
326
- </ul>
327
- </li>
328
- </menu>
329
- ` : html`<div class="spacer"></div>`
330
- )}
331
-
332
- <terra-plot
333
- exportparts="base:plot__base, plot-title:plot__title"
334
- .data=${(_b = __privateGet(this, _timeSeriesController).lastTaskValue) != null ? _b : __privateGet(this, _timeSeriesController).emptyPlotData}
335
- .layout="${{
336
- xaxis: {
337
- title: "Time",
338
- showgrid: false,
339
- zeroline: false
340
- },
341
- yaxis: {
342
- title: this.variableLongName && this.units ? `${this.variableLongName}, ${this.units}` : null,
343
- showline: false
344
- },
345
- title: {
346
- text: this.collection && this.location ? `${this.collection} @ ${this.location}` : null
347
- }
348
- }}"
349
- .config=${{
350
- displayModeBar: true,
351
- displaylogo: false,
352
- modeBarButtonsToRemove: ["toImage", "zoom2d", "resetScale2d"],
353
- responsive: true
354
- }}
355
- ></terra-plot>
356
- </div>
357
-
358
- <terra-date-range-slider
359
- exportparts="slider:date-range-slider__slider"
360
- min-date=${this.collectionBeginningDateTime}
361
- max-date=${this.collectionEndingDateTime}
362
- start-date=${this.startDate}
363
- end-date=${this.endDate}
364
- @terra-date-range-change="${__privateMethod(this, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn)}"
365
- ></terra-date-range-slider>
366
-
367
- <dialog
368
- ?open=${__privateGet(this, _timeSeriesController).task.status === TaskStatus.PENDING}
369
- >
370
- <terra-loader indeterminate></terra-loader>
371
- <p>Plotting ${this.collection} ${this.variable}&hellip;</p>
372
- <terra-button @click=${__privateMethod(this, _abortDataLoad, abortDataLoad_fn)}>Cancel</terra-button>
373
- </dialog>
374
- `;
375
- }
376
- };
377
- _timeSeriesController = new WeakMap();
378
- _adaptPropertyToController = new WeakSet();
379
- adaptPropertyToController_fn = function(property2, value) {
380
- switch (property2) {
381
- case "startDate":
382
- case "endDate":
383
- __privateGet(this, _timeSeriesController)[property2] = dayjs.utc(value).toDate();
384
- break;
385
- case "location":
386
- const [lat, lon] = value.split(",");
387
- __privateGet(this, _timeSeriesController)[property2] = `${lon},%20${lat}`;
388
- break;
389
- default:
390
- __privateGet(this, _timeSeriesController)[property2] = value;
391
- break;
392
- }
393
- __privateGet(this, _timeSeriesController).task.run();
394
- };
395
- _maybeSliceTimeForStartEnd = new WeakSet();
396
- maybeSliceTimeForStartEnd_fn = function() {
397
- const hasExternallySetDates = !!this.startDate || !!this.endDate;
398
- const hasBothDatesFromCollection = !!this.collectionBeginningDateTime && !!this.collectionEndingDateTime;
399
- if (hasExternallySetDates || !hasBothDatesFromCollection) {
400
- return;
401
- }
402
- const diff = Math.abs(
403
- new Date(this.collectionEndingDateTime).getTime() - new Date(this.collectionBeginningDateTime).getTime()
404
- );
405
- const threeQuarterRange = Math.floor(diff * 0.75);
406
- const startDate = Math.abs(
407
- new Date(this.collectionBeginningDateTime).getTime() + threeQuarterRange
408
- );
409
- this.startDate = dayjs.utc(startDate).format();
410
- this.endDate = dayjs.utc(this.collectionEndingDateTime).format();
411
- };
412
- _handleVariableChange = new WeakSet();
413
- handleVariableChange_fn = function(event) {
414
- this.collectionBeginningDateTime = dayjs.utc().format(event.detail.collectionBeginningDateTime);
415
- this.collectionEndingDateTime = dayjs.utc().format(event.detail.collectionEndingDateTime);
416
- __privateMethod(this, _maybeSliceTimeForStartEnd, maybeSliceTimeForStartEnd_fn).call(this);
417
- this.collection = `${event.detail.collectionShortName}_${event.detail.collectionVersion}`;
418
- this.datasetLandingPage = event.detail.datasetLandingPage;
419
- this.units = event.detail.units;
420
- this.variable = event.detail.name;
421
- this.variableLandingPage = event.detail.variableLandingPage;
422
- this.variableLongName = event.detail.longName;
423
- };
424
- _handleMapChange = new WeakSet();
425
- handleMapChange_fn = function(event) {
426
- const type = event.detail.geoJson.geometry.type;
427
- if (type === "Point") {
428
- const { latLng } = event.detail;
429
- this.location = `${latLng.lat.toFixed(4)},${latLng.lng.toFixed(4)}`;
430
- }
431
- };
432
- _handleDateRangeSliderChangeEvent = new WeakSet();
433
- handleDateRangeSliderChangeEvent_fn = function(event) {
434
- this.startDate = event.detail.startDate;
435
- this.endDate = event.detail.endDate;
436
- };
437
- _abortDataLoad = new WeakSet();
438
- abortDataLoad_fn = function() {
439
- var _a;
440
- (_a = __privateGet(this, _timeSeriesController).task) == null ? void 0 : _a.abort();
441
- };
442
- _downloadCSV = new WeakSet();
443
- downloadCSV_fn = function(_event) {
444
- var _a;
445
- const controllerData = (_a = __privateGet(this, _timeSeriesController).lastTaskValue) != null ? _a : __privateGet(this, _timeSeriesController).emptyPlotData;
446
- let plotData = [];
447
- controllerData.forEach((plot, index) => {
448
- plotData[index] = plot;
449
- });
450
- const csvData = plotData.map((trace) => {
451
- return trace.x.map((x, i) => {
452
- return {
453
- x,
454
- y: trace.y[i]
455
- };
456
- });
457
- }).flat();
458
- const csv = __privateMethod(this, _convertToCSV, convertToCSV_fn).call(this, csvData);
459
- csv;
460
- };
461
- _convertToCSV = new WeakSet();
462
- convertToCSV_fn = function(data) {
463
- const header = Object.keys(data[0]).join(",") + "\n";
464
- const rows = data.map((obj) => Object.values(obj).join(",")).join("\n");
465
- return header + rows;
466
- };
467
- _downloadPNG = new WeakSet();
468
- downloadPNG_fn = function(_event) {
469
- var _a;
470
- downloadImage((_a = this.plot) == null ? void 0 : _a.base, {
471
- filename: `${this.collection}_${this.variable}`,
472
- format: "png",
473
- width: 1920,
474
- height: 1080
475
- });
476
- };
477
- _handleActiveMenuItem = new WeakSet();
478
- handleActiveMenuItem_fn = function(event) {
479
- const button = event.currentTarget;
480
- const menuName = button.dataset.menuName;
481
- this.activeMenuItem = menuName === this.activeMenuItem ? null : menuName;
482
- };
483
- TerraTimeSeries.styles = [component_styles_default, time_series_styles_default];
484
- TerraTimeSeries.dependencies = {
485
- "terra-plot": TerraPlot,
486
- "terra-date-range-slider": TerraDateRangeSlider,
487
- "terra-spatial-picker": spatial_picker_default,
488
- "terra-variable-combobox": TerraVariableCombobox,
489
- "terra-loader": TerraLoader,
490
- "terra-icon": TerraIcon,
491
- "terra-button": TerraButton
492
- };
493
- __decorateClass([
494
- property({ reflect: true })
495
- ], TerraTimeSeries.prototype, "collection", 2);
496
- __decorateClass([
497
- property({ reflect: true })
498
- ], TerraTimeSeries.prototype, "datasetLandingPage", 2);
499
- __decorateClass([
500
- property({ reflect: true })
501
- ], TerraTimeSeries.prototype, "variable", 2);
502
- __decorateClass([
503
- property({ reflect: true })
504
- ], TerraTimeSeries.prototype, "variableLandingPage", 2);
505
- __decorateClass([
506
- property({ reflect: true })
507
- ], TerraTimeSeries.prototype, "variableLongName", 2);
508
- __decorateClass([
509
- property({
510
- attribute: "start-date",
511
- reflect: true
512
- })
513
- ], TerraTimeSeries.prototype, "startDate", 2);
514
- __decorateClass([
515
- property({
516
- attribute: "end-date",
517
- reflect: true
518
- })
519
- ], TerraTimeSeries.prototype, "endDate", 2);
520
- __decorateClass([
521
- property({
522
- reflect: true
523
- })
524
- ], TerraTimeSeries.prototype, "location", 2);
525
- __decorateClass([
526
- property({
527
- reflect: true
528
- })
529
- ], TerraTimeSeries.prototype, "units", 2);
530
- __decorateClass([
531
- property({ attribute: "bearer-token", reflect: false })
532
- ], TerraTimeSeries.prototype, "bearerToken", 2);
533
- __decorateClass([
534
- query("terra-date-range-slider")
535
- ], TerraTimeSeries.prototype, "dateRangeSlider", 2);
536
- __decorateClass([
537
- query("terra-plot")
538
- ], TerraTimeSeries.prototype, "plot", 2);
539
- __decorateClass([
540
- query("terra-spatial-picker")
541
- ], TerraTimeSeries.prototype, "spatialPicker", 2);
542
- __decorateClass([
543
- query("terra-variable-combobo")
544
- ], TerraTimeSeries.prototype, "variableCombobox", 2);
545
- __decorateClass([
546
- query("#menu")
547
- ], TerraTimeSeries.prototype, "menu", 2);
548
- __decorateClass([
549
- state()
550
- ], TerraTimeSeries.prototype, "collectionBeginningDateTime", 2);
551
- __decorateClass([
552
- state()
553
- ], TerraTimeSeries.prototype, "collectionEndingDateTime", 2);
554
- __decorateClass([
555
- state()
556
- ], TerraTimeSeries.prototype, "activeMenuItem", 2);
557
- __decorateClass([
558
- watch("collection")
559
- ], TerraTimeSeries.prototype, "handleCollectionUpdate", 1);
560
- __decorateClass([
561
- watch("variable")
562
- ], TerraTimeSeries.prototype, "handlevariableUpdate", 1);
563
- __decorateClass([
564
- watch("startDate")
565
- ], TerraTimeSeries.prototype, "handleStartDateUpdate", 1);
566
- __decorateClass([
567
- watch("endDate")
568
- ], TerraTimeSeries.prototype, "handleEndDateUpdate", 1);
569
- __decorateClass([
570
- watch("location")
571
- ], TerraTimeSeries.prototype, "handleLocationUpdate", 1);
572
- __decorateClass([
573
- watch("activeMenuItem")
574
- ], TerraTimeSeries.prototype, "handleFocus", 1);
575
-
576
- export {
577
- TerraTimeSeries
578
- };