@nasa-terra/components 0.0.2 → 0.0.4

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 (173) hide show
  1. package/{dist/chunks/chunk.34BDCGAS.js → cdn/chunks/chunk.3BAOHZ2G.js} +1 -1
  2. package/{dist/chunks/chunk.6G6MC7ET.js → cdn/chunks/chunk.46CED5HM.js} +1 -1
  3. package/cdn/chunks/{chunk.KQ6GR2XZ.js → chunk.5IDL367Z.js} +76 -51
  4. package/cdn/chunks/{chunk.H4SLY4KN.js → chunk.A23M3KZO.js} +1 -1
  5. package/{dist/chunks/chunk.TEY3I3LS.js → cdn/chunks/chunk.ABBR7BG2.js} +1 -1
  6. package/cdn/chunks/{chunk.ORXIH4AJ.js → chunk.BUD5WPVO.js} +1 -1
  7. package/cdn/chunks/{chunk.BLFAG25A.js → chunk.CRBG3MD3.js} +1 -1
  8. package/cdn/chunks/{chunk.5OVZEQPW.js → chunk.CRMCAOLZ.js} +1 -1
  9. package/cdn/chunks/{chunk.2LH52WLN.js → chunk.DCFUISO5.js} +1 -1
  10. package/cdn/chunks/{chunk.KZIVL4LN.js → chunk.DSORVH3D.js} +1 -1
  11. package/cdn/chunks/{chunk.PUWFHEBP.js → chunk.DXDTKB2Z.js} +1 -1
  12. package/{dist/chunks/chunk.NA6RDAQK.js → cdn/chunks/chunk.FDLUCURB.js} +1 -1
  13. package/cdn/chunks/{chunk.MOL3RELR.js → chunk.FTCNGW44.js} +1 -1
  14. package/{dist/chunks/chunk.356TZEPJ.js → cdn/chunks/chunk.GL3JK5QO.js} +1 -1
  15. package/cdn/chunks/{chunk.SXUZHG2G.js → chunk.GSKNUBWS.js} +1 -1
  16. package/cdn/chunks/{chunk.U6DUAIIP.js → chunk.IKBILRIY.js} +21 -0
  17. package/{dist/chunks/chunk.ZI3RW2HX.js → cdn/chunks/chunk.IN3OZ72R.js} +1 -1
  18. package/cdn/chunks/{chunk.FYB4LVNE.js → chunk.IS7PROYA.js} +1 -1
  19. package/cdn/chunks/{chunk.A4PYD2BT.js → chunk.JM6ZF7AP.js} +4 -1
  20. package/cdn/chunks/{chunk.4OFE6FHL.js → chunk.LQXJYCKK.js} +1 -1
  21. package/cdn/chunks/{chunk.PYRUETLC.js → chunk.LVM5DSMJ.js} +2 -2
  22. package/cdn/chunks/{chunk.VHMYUAU5.js → chunk.NSCU3Y7E.js} +1 -1
  23. package/cdn/chunks/{chunk.RS4CISKV.js → chunk.NYXXSTNY.js} +1 -1
  24. package/cdn/chunks/{chunk.5UBB7KZQ.js → chunk.O5NKXUCH.js} +11 -13
  25. package/{dist/chunks/chunk.6HHKJO37.js → cdn/chunks/chunk.OQXZR4ZX.js} +1 -1
  26. package/cdn/chunks/{chunk.2WF7EATT.js → chunk.PP7XKOCQ.js} +4 -4
  27. package/cdn/chunks/{chunk.S6SLZPVX.js → chunk.QX5U3SVC.js} +1 -1
  28. package/cdn/chunks/{chunk.P4LXCHCY.js → chunk.RNRFOQI7.js} +1 -1
  29. package/cdn/chunks/{chunk.2YI7V6QJ.js → chunk.SBDX4GGT.js} +24 -0
  30. package/{dist/chunks/chunk.WCD47X2N.js → cdn/chunks/chunk.SRTSFODC.js} +1 -1
  31. package/{dist/chunks/chunk.RCELHBSG.js → cdn/chunks/chunk.SZWAOLYU.js} +1 -1
  32. package/cdn/chunks/{chunk.SQUNJ4EJ.js → chunk.TWJTOEFA.js} +1 -1
  33. package/cdn/chunks/{chunk.BHVFJEIU.js → chunk.U4PQZY6W.js} +7 -3
  34. package/{dist/chunks/chunk.LXV5KI76.js → cdn/chunks/chunk.UNDKG3U4.js} +1 -1
  35. package/cdn/chunks/{chunk.KFYWXDIT.js → chunk.WU6XFJPA.js} +1 -1
  36. package/cdn/chunks/{chunk.II3GR7YQ.js → chunk.YJID4SHW.js} +1 -1
  37. package/cdn/chunks/{chunk.HMECFSJ3.js → chunk.YK3ZPNPX.js} +1 -1
  38. package/cdn/chunks/{chunk.CSZAFBCJ.js → chunk.YPRKEZFP.js} +1 -1
  39. package/cdn/components/button/button.component.js +2 -2
  40. package/cdn/components/button/button.js +3 -3
  41. package/cdn/components/chip/chip.component.js +2 -2
  42. package/cdn/components/chip/chip.js +3 -3
  43. package/cdn/components/combobox/combobox.component.js +2 -2
  44. package/cdn/components/combobox/combobox.js +3 -3
  45. package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
  46. package/cdn/components/date-range-slider/date-range-slider.js +3 -3
  47. package/cdn/components/icon/icon.component.js +2 -2
  48. package/cdn/components/icon/icon.js +3 -3
  49. package/cdn/components/loader/loader.component.d.ts +2 -0
  50. package/cdn/components/loader/loader.component.js +3 -3
  51. package/cdn/components/loader/loader.js +4 -4
  52. package/cdn/components/loader/loader.styles.js +1 -1
  53. package/cdn/components/map/map.component.js +2 -2
  54. package/cdn/components/map/map.js +3 -3
  55. package/cdn/components/plot/plot.component.js +2 -2
  56. package/cdn/components/plot/plot.js +3 -3
  57. package/cdn/components/spatial-picker/spatial-picker.component.js +3 -3
  58. package/cdn/components/spatial-picker/spatial-picker.js +4 -4
  59. package/cdn/components/time-series/time-series.component.d.ts +4 -0
  60. package/cdn/components/time-series/time-series.component.js +17 -15
  61. package/cdn/components/time-series/time-series.controller.d.ts +1 -0
  62. package/cdn/components/time-series/time-series.controller.js +1 -1
  63. package/cdn/components/time-series/time-series.js +18 -16
  64. package/cdn/components/time-series/time-series.styles.js +1 -1
  65. package/cdn/components/variable-combobox/variable-combobox.component.js +7 -7
  66. package/cdn/components/variable-combobox/variable-combobox.controller.js +1 -1
  67. package/cdn/components/variable-combobox/variable-combobox.js +8 -8
  68. package/cdn/custom-elements.json +183 -157
  69. package/cdn/react/button/index.js +3 -3
  70. package/cdn/react/chip/index.js +3 -3
  71. package/cdn/react/combobox/index.js +3 -3
  72. package/cdn/react/date-range-slider/index.js +3 -3
  73. package/cdn/react/icon/index.js +3 -3
  74. package/cdn/react/index.d.ts +1 -1
  75. package/cdn/react/index.js +32 -32
  76. package/cdn/react/loader/index.js +4 -4
  77. package/cdn/react/map/index.js +3 -3
  78. package/cdn/react/plot/index.js +3 -3
  79. package/cdn/react/spatial-picker/index.js +4 -4
  80. package/cdn/react/time-series/index.d.ts +2 -0
  81. package/cdn/react/time-series/index.js +18 -16
  82. package/cdn/react/variable-combobox/index.js +8 -8
  83. package/cdn/terra-ui-components.js +27 -27
  84. package/cdn/types/vue/index.d.ts +57 -55
  85. package/cdn/vscode.html-custom-data.json +21 -16
  86. package/cdn/web-types.json +156 -146
  87. package/{cdn/chunks/chunk.CO6OXP3P.js → dist/chunks/chunk.2YN2NCAJ.js} +1 -1
  88. package/dist/chunks/{chunk.XK7GWNRK.js → chunk.3WSYETU3.js} +1 -1
  89. package/dist/chunks/{chunk.R32FZJSC.js → chunk.5JAZMTXS.js} +1 -1
  90. package/dist/chunks/{chunk.UTUM2YTN.js → chunk.5ZPHPIFF.js} +1 -1
  91. package/dist/chunks/{chunk.4WNMOJSX.js → chunk.6LGKPYEG.js} +33 -10
  92. package/dist/chunks/{chunk.EPMXIUY7.js → chunk.6ODALLBA.js} +1 -1
  93. package/dist/chunks/{chunk.5LBNOLAY.js → chunk.77CJZ2RP.js} +1 -1
  94. package/{cdn/chunks/chunk.7UVCVDMD.js → dist/chunks/chunk.7GEZG32N.js} +1 -1
  95. package/dist/chunks/{chunk.RHF5LAQQ.js → chunk.AIVTWWUU.js} +1 -1
  96. package/dist/chunks/{chunk.26XMYCND.js → chunk.BWPJE62Z.js} +4 -4
  97. package/dist/chunks/{chunk.I2NEFB34.js → chunk.CL62YJ3N.js} +21 -0
  98. package/{cdn/chunks/chunk.KCXQJJZ4.js → dist/chunks/chunk.CXK7TBKA.js} +1 -1
  99. package/dist/chunks/{chunk.KWCEJCNP.js → chunk.DUNBSI2Y.js} +1 -1
  100. package/dist/chunks/{chunk.HJ4OGF6V.js → chunk.EDIW4YUA.js} +1 -1
  101. package/{cdn/chunks/chunk.RDW2UZ5N.js → dist/chunks/chunk.EIVD3TZT.js} +1 -1
  102. package/dist/chunks/{chunk.HBEQ6SPT.js → chunk.FFQ32TPH.js} +1 -1
  103. package/dist/chunks/{chunk.37CMTFD4.js → chunk.G6JGOSCF.js} +1 -1
  104. package/dist/chunks/{chunk.LAFN7QOI.js → chunk.GPDRN464.js} +1 -1
  105. package/dist/chunks/{chunk.ZGJAUXFV.js → chunk.GPUFE4ML.js} +24 -0
  106. package/dist/chunks/{chunk.K3PPW47B.js → chunk.GRKVP6IU.js} +1 -1
  107. package/dist/chunks/{chunk.MWHQHPUM.js → chunk.GWHZAFS3.js} +4 -1
  108. package/dist/chunks/{chunk.LMUMRQLT.js → chunk.JSPLWLW4.js} +1 -1
  109. package/{cdn/chunks/chunk.C3FZSGJM.js → dist/chunks/chunk.JU5YFOQN.js} +1 -1
  110. package/{cdn/chunks/chunk.3NOH36JE.js → dist/chunks/chunk.L6HX2ERA.js} +1 -1
  111. package/dist/chunks/{chunk.WHJHZJ6L.js → chunk.L77E7KJ5.js} +2 -2
  112. package/dist/chunks/{chunk.37V2INM4.js → chunk.P5WAUI32.js} +1 -1
  113. package/dist/chunks/{chunk.TFKJWQKC.js → chunk.QXJ53GFV.js} +7 -3
  114. package/dist/chunks/{chunk.XPQYTQXW.js → chunk.R4X6BEGH.js} +1 -1
  115. package/dist/chunks/{chunk.ZUWKLZ5N.js → chunk.SQLL2RBE.js} +1 -1
  116. package/dist/chunks/{chunk.6HBNUONX.js → chunk.SSIW5ZSF.js} +1 -1
  117. package/dist/chunks/{chunk.3OTXIELM.js → chunk.TPCWPFMX.js} +1 -1
  118. package/dist/chunks/{chunk.ACNC5AZO.js → chunk.TYOFMEXP.js} +1 -1
  119. package/{cdn/chunks/chunk.EGBZ7Z36.js → dist/chunks/chunk.VI6CGSH2.js} +1 -1
  120. package/dist/chunks/{chunk.D44WRZDJ.js → chunk.WDY2TEG5.js} +1 -1
  121. package/{cdn/chunks/chunk.5NSDKQFA.js → dist/chunks/chunk.WND565J5.js} +1 -1
  122. package/{cdn/chunks/chunk.76UFIPPH.js → dist/chunks/chunk.WTWMCOXO.js} +1 -1
  123. package/{cdn/chunks/chunk.EH44OY6V.js → dist/chunks/chunk.WVE2X7DV.js} +1 -1
  124. package/dist/chunks/{chunk.DKCU7YEZ.js → chunk.YCC37YOJ.js} +11 -13
  125. package/dist/components/button/button.component.js +2 -2
  126. package/dist/components/button/button.js +3 -3
  127. package/dist/components/chip/chip.component.js +2 -2
  128. package/dist/components/chip/chip.js +3 -3
  129. package/dist/components/combobox/combobox.component.js +2 -2
  130. package/dist/components/combobox/combobox.js +3 -3
  131. package/dist/components/date-range-slider/date-range-slider.component.js +2 -2
  132. package/dist/components/date-range-slider/date-range-slider.js +3 -3
  133. package/dist/components/icon/icon.component.js +2 -2
  134. package/dist/components/icon/icon.js +3 -3
  135. package/dist/components/loader/loader.component.d.ts +2 -0
  136. package/dist/components/loader/loader.component.js +3 -3
  137. package/dist/components/loader/loader.js +4 -4
  138. package/dist/components/loader/loader.styles.js +1 -1
  139. package/dist/components/map/map.component.js +2 -2
  140. package/dist/components/map/map.js +3 -3
  141. package/dist/components/plot/plot.component.js +2 -2
  142. package/dist/components/plot/plot.js +3 -3
  143. package/dist/components/spatial-picker/spatial-picker.component.js +3 -3
  144. package/dist/components/spatial-picker/spatial-picker.js +4 -4
  145. package/dist/components/time-series/time-series.component.d.ts +4 -0
  146. package/dist/components/time-series/time-series.component.js +17 -15
  147. package/dist/components/time-series/time-series.controller.d.ts +1 -0
  148. package/dist/components/time-series/time-series.controller.js +1 -1
  149. package/dist/components/time-series/time-series.js +18 -16
  150. package/dist/components/time-series/time-series.styles.js +1 -1
  151. package/dist/components/variable-combobox/variable-combobox.component.js +7 -7
  152. package/dist/components/variable-combobox/variable-combobox.controller.js +1 -1
  153. package/dist/components/variable-combobox/variable-combobox.js +8 -8
  154. package/dist/custom-elements.json +183 -157
  155. package/dist/react/button/index.js +3 -3
  156. package/dist/react/chip/index.js +3 -3
  157. package/dist/react/combobox/index.js +3 -3
  158. package/dist/react/date-range-slider/index.js +3 -3
  159. package/dist/react/icon/index.js +3 -3
  160. package/dist/react/index.d.ts +1 -1
  161. package/dist/react/index.js +32 -32
  162. package/dist/react/loader/index.js +4 -4
  163. package/dist/react/map/index.js +3 -3
  164. package/dist/react/plot/index.js +3 -3
  165. package/dist/react/spatial-picker/index.js +4 -4
  166. package/dist/react/time-series/index.d.ts +2 -0
  167. package/dist/react/time-series/index.js +18 -16
  168. package/dist/react/variable-combobox/index.js +8 -8
  169. package/dist/terra-ui-components.js +27 -27
  170. package/dist/types/vue/index.d.ts +57 -55
  171. package/dist/vscode.html-custom-data.json +21 -16
  172. package/dist/web-types.json +156 -146
  173. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraPlot
3
- } from "./chunk.UTUM2YTN.js";
3
+ } from "./chunk.YK3ZPNPX.js";
4
4
 
5
5
  // src/components/plot/plot.ts
6
6
  var plot_default = TerraPlot;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraChip
3
- } from "./chunk.3OTXIELM.js";
3
+ } from "./chunk.NSCU3Y7E.js";
4
4
 
5
5
  // src/react/chip/index.ts
6
6
  import * as React from "react";
@@ -1,28 +1,34 @@
1
1
  import {
2
2
  TimeSeriesController
3
- } from "./chunk.5UBB7KZQ.js";
3
+ } from "./chunk.O5NKXUCH.js";
4
4
  import {
5
5
  time_series_styles_default
6
- } from "./chunk.2YI7V6QJ.js";
6
+ } from "./chunk.SBDX4GGT.js";
7
7
  import {
8
8
  TerraVariableCombobox
9
- } from "./chunk.2WF7EATT.js";
9
+ } from "./chunk.PP7XKOCQ.js";
10
+ import {
11
+ s
12
+ } from "./chunk.UGTZ22DI.js";
10
13
  import {
11
14
  TerraPlot
12
- } from "./chunk.HMECFSJ3.js";
15
+ } from "./chunk.YK3ZPNPX.js";
13
16
  import {
14
17
  spatial_picker_default
15
- } from "./chunk.RS4CISKV.js";
18
+ } from "./chunk.NYXXSTNY.js";
19
+ import {
20
+ TerraLoader
21
+ } from "./chunk.U4PQZY6W.js";
16
22
  import {
17
23
  TerraDateRangeSlider
18
- } from "./chunk.FYB4LVNE.js";
24
+ } from "./chunk.IS7PROYA.js";
19
25
  import {
20
26
  watch
21
27
  } from "./chunk.IUDWCWFV.js";
22
28
  import {
23
29
  TerraElement,
24
30
  component_styles_default
25
- } from "./chunk.H4SLY4KN.js";
31
+ } from "./chunk.A23M3KZO.js";
26
32
  import {
27
33
  e,
28
34
  n,
@@ -47,7 +53,7 @@ var require_dayjs_min = __commonJS({
47
53
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e2() : "function" == typeof define && define.amd ? define(e2) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e2();
48
54
  }(exports, function() {
49
55
  "use strict";
50
- var t = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
56
+ var t = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i = "second", s2 = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
51
57
  var e3 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
52
58
  return "[" + t2 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
53
59
  } }, m = function(t2, e3, n3) {
@@ -59,12 +65,12 @@ var require_dayjs_min = __commonJS({
59
65
  }, m: function t2(e3, n3) {
60
66
  if (e3.date() < n3.date())
61
67
  return -t2(n3, e3);
62
- var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i2 = e3.clone().add(r3, c), s2 = n3 - i2 < 0, u2 = e3.clone().add(r3 + (s2 ? -1 : 1), c);
63
- return +(-(r3 + (n3 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
68
+ var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i2 = e3.clone().add(r3, c), s3 = n3 - i2 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c);
69
+ return +(-(r3 + (n3 - i2) / (s3 ? i2 - u2 : u2 - i2)) || 0);
64
70
  }, a: function(t2) {
65
71
  return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
66
72
  }, p: function(t2) {
67
- return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
73
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s2, s: i, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
68
74
  }, u: function(t2) {
69
75
  return void 0 === t2;
70
76
  } }, g = "en", D = {};
@@ -76,8 +82,8 @@ var require_dayjs_min = __commonJS({
76
82
  if (!e3)
77
83
  return g;
78
84
  if ("string" == typeof e3) {
79
- var s2 = e3.toLowerCase();
80
- D[s2] && (i2 = s2), n3 && (D[s2] = n3, i2 = s2);
85
+ var s3 = e3.toLowerCase();
86
+ D[s3] && (i2 = s3), n3 && (D[s3] = n3, i2 = s3);
81
87
  var u2 = e3.split("-");
82
88
  if (!i2 && u2.length > 1)
83
89
  return t2(u2[0]);
@@ -112,8 +118,8 @@ var require_dayjs_min = __commonJS({
112
118
  if ("string" == typeof e3 && !/Z$/i.test(e3)) {
113
119
  var r3 = e3.match($);
114
120
  if (r3) {
115
- var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
116
- return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
121
+ var i2 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
122
+ return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
117
123
  }
118
124
  }
119
125
  return new Date(e3);
@@ -158,7 +164,7 @@ var require_dayjs_min = __commonJS({
158
164
  return $2(v2 + "Hours", 0);
159
165
  case u:
160
166
  return $2(v2 + "Minutes", 1);
161
- case s:
167
+ case s2:
162
168
  return $2(v2 + "Seconds", 2);
163
169
  case i:
164
170
  return $2(v2 + "Milliseconds", 3);
@@ -168,7 +174,7 @@ var require_dayjs_min = __commonJS({
168
174
  }, m2.endOf = function(t2) {
169
175
  return this.startOf(t2, false);
170
176
  }, m2.$set = function(t2, e3) {
171
- var n3, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f2 + "Date", n3[d] = f2 + "Date", n3[c] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s] = f2 + "Minutes", n3[i] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
177
+ var n3, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f2 + "Date", n3[d] = f2 + "Date", n3[c] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s2] = f2 + "Minutes", n3[i] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
172
178
  if (o2 === c || o2 === h) {
173
179
  var y2 = this.clone().set(d, 1);
174
180
  y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
@@ -194,7 +200,7 @@ var require_dayjs_min = __commonJS({
194
200
  return y2(1);
195
201
  if ($2 === o)
196
202
  return y2(7);
197
- var M3 = (d2 = {}, d2[s] = e2, d2[u] = n2, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
203
+ var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
198
204
  return b.w(m3, this);
199
205
  }, m2.subtract = function(t2, e3) {
200
206
  return this.add(-1 * t2, e3);
@@ -202,10 +208,10 @@ var require_dayjs_min = __commonJS({
202
208
  var e3 = this, n3 = this.$locale();
203
209
  if (!this.isValid())
204
210
  return n3.invalidDate || l;
205
- var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n3.weekdays, c2 = n3.months, f2 = n3.meridiem, h2 = function(t3, n4, i3, s3) {
206
- return t3 && (t3[n4] || t3(e3, r3)) || i3[n4].slice(0, s3);
211
+ var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s3 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n3.weekdays, c2 = n3.months, f2 = n3.meridiem, h2 = function(t3, n4, i3, s4) {
212
+ return t3 && (t3[n4] || t3(e3, r3)) || i3[n4].slice(0, s4);
207
213
  }, d2 = function(t3) {
208
- return b.s(s2 % 12 || 12, t3, "0");
214
+ return b.s(s3 % 12 || 12, t3, "0");
209
215
  }, $2 = f2 || function(t3, e4, n4) {
210
216
  var r4 = t3 < 12 ? "AM" : "PM";
211
217
  return n4 ? r4.toLowerCase() : r4;
@@ -238,17 +244,17 @@ var require_dayjs_min = __commonJS({
238
244
  case "dddd":
239
245
  return o2[e3.$W];
240
246
  case "H":
241
- return String(s2);
247
+ return String(s3);
242
248
  case "HH":
243
- return b.s(s2, 2, "0");
249
+ return b.s(s3, 2, "0");
244
250
  case "h":
245
251
  return d2(1);
246
252
  case "hh":
247
253
  return d2(2);
248
254
  case "a":
249
- return $2(s2, u2, true);
255
+ return $2(s3, u2, true);
250
256
  case "A":
251
- return $2(s2, u2, false);
257
+ return $2(s3, u2, false);
252
258
  case "m":
253
259
  return String(u2);
254
260
  case "mm":
@@ -290,7 +296,7 @@ var require_dayjs_min = __commonJS({
290
296
  case u:
291
297
  $2 = g2 / n2;
292
298
  break;
293
- case s:
299
+ case s2:
294
300
  $2 = g2 / e2;
295
301
  break;
296
302
  case i:
@@ -321,7 +327,7 @@ var require_dayjs_min = __commonJS({
321
327
  return this.$d.toUTCString();
322
328
  }, M2;
323
329
  }(), k = _.prototype;
324
- return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
330
+ return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s2], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
325
331
  k[t2[1]] = function(e3) {
326
332
  return this.$g(e3, t2[0], t2[1]);
327
333
  };
@@ -342,7 +348,7 @@ var require_utc = __commonJS({
342
348
  }(exports, function() {
343
349
  "use strict";
344
350
  var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e2 = /([+-]|\d\d)/g;
345
- return function(s, f, n2) {
351
+ return function(s2, f, n2) {
346
352
  var u = f.prototype;
347
353
  n2.utc = function(t2) {
348
354
  var i2 = { date: t2, utc: true, args: arguments };
@@ -366,23 +372,23 @@ var require_utc = __commonJS({
366
372
  r2.call(this);
367
373
  };
368
374
  var a = u.utcOffset;
369
- u.utcOffset = function(s2, f2) {
375
+ u.utcOffset = function(s3, f2) {
370
376
  var n3 = this.$utils().u;
371
- if (n3(s2))
377
+ if (n3(s3))
372
378
  return this.$u ? 0 : n3(this.$offset) ? a.call(this) : this.$offset;
373
- if ("string" == typeof s2 && (s2 = function(t2) {
379
+ if ("string" == typeof s3 && (s3 = function(t2) {
374
380
  void 0 === t2 && (t2 = "");
375
- var s3 = t2.match(i);
376
- if (!s3)
381
+ var s4 = t2.match(i);
382
+ if (!s4)
377
383
  return null;
378
- var f3 = ("" + s3[0]).match(e2) || ["-", 0, 0], n4 = f3[0], u3 = 60 * +f3[1] + +f3[2];
384
+ var f3 = ("" + s4[0]).match(e2) || ["-", 0, 0], n4 = f3[0], u3 = 60 * +f3[1] + +f3[2];
379
385
  return 0 === u3 ? 0 : "+" === n4 ? u3 : -u3;
380
- }(s2), null === s2))
386
+ }(s3), null === s3))
381
387
  return this;
382
- var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
388
+ var u2 = Math.abs(s3) <= 16 ? 60 * s3 : s3, o2 = this;
383
389
  if (f2)
384
- return o2.$offset = u2, o2.$u = 0 === s2, o2;
385
- if (0 !== s2) {
390
+ return o2.$offset = u2, o2.$u = 0 === s3, o2;
391
+ if (0 !== s3) {
386
392
  var r3 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
387
393
  (o2 = this.local().add(u2 + r3, t)).$offset = u2, o2.$x.$localOffset = r3;
388
394
  } else
@@ -411,8 +417,8 @@ var require_utc = __commonJS({
411
417
  u.diff = function(t2, i2, e3) {
412
418
  if (t2 && this.$u === t2.$u)
413
419
  return c.call(this, t2, i2, e3);
414
- var s2 = this.local(), f2 = n2(t2).local();
415
- return c.call(s2, f2, i2, e3);
420
+ var s3 = this.local(), f2 = n2(t2).local();
421
+ return c.call(s3, f2, i2, e3);
416
422
  };
417
423
  };
418
424
  });
@@ -438,7 +444,7 @@ var require_timezone = __commonJS({
438
444
  return r3.formatToParts(o2);
439
445
  }, u = function(e3, n3) {
440
446
  for (var i2 = a(e3, n3), r3 = [], u2 = 0; u2 < i2.length; u2 += 1) {
441
- var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
447
+ var f2 = i2[u2], s3 = f2.type, m = f2.value, c = t[s3];
442
448
  c >= 0 && (r3[c] = parseInt(m, 10));
443
449
  }
444
450
  var d = r3[3], l = 24 === d ? 0 : d, h = r3[0] + "-" + r3[1] + "-" + r3[2] + " " + l + ":" + r3[4] + ":" + r3[5] + ":000", v = +e3;
@@ -448,8 +454,8 @@ var require_timezone = __commonJS({
448
454
  void 0 === t2 && (t2 = r2);
449
455
  var n3 = this.utcOffset(), i2 = this.toDate(), a2 = i2.toLocaleString("en-US", { timeZone: t2 }), u2 = Math.round((i2 - new Date(a2)) / 1e3 / 60), f2 = o(a2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(i2.getTimezoneOffset() / 15) - u2, true);
450
456
  if (e3) {
451
- var s2 = f2.utcOffset();
452
- f2 = f2.add(n3 - s2, "minute");
457
+ var s3 = f2.utcOffset();
458
+ f2 = f2.add(n3 - s3, "minute");
453
459
  }
454
460
  return f2.$x.$timezone = t2, f2;
455
461
  }, f.offsetName = function(t2) {
@@ -458,23 +464,23 @@ var require_timezone = __commonJS({
458
464
  });
459
465
  return n3 && n3.value;
460
466
  };
461
- var s = f.startOf;
467
+ var s2 = f.startOf;
462
468
  f.startOf = function(t2, e3) {
463
469
  if (!this.$x || !this.$x.$timezone)
464
- return s.call(this, t2, e3);
470
+ return s2.call(this, t2, e3);
465
471
  var n3 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
466
- return s.call(n3, t2, e3).tz(this.$x.$timezone, true);
472
+ return s2.call(n3, t2, e3).tz(this.$x.$timezone, true);
467
473
  }, o.tz = function(t2, e3, n3) {
468
474
  var i2 = n3 && e3, a2 = n3 || e3 || r2, f2 = u(+o(), a2);
469
475
  if ("string" != typeof t2)
470
476
  return o(t2).tz(a2);
471
- var s2 = function(t3, e4, n4) {
477
+ var s3 = function(t3, e4, n4) {
472
478
  var i3 = t3 - 60 * e4 * 1e3, o2 = u(i3, n4);
473
479
  if (e4 === o2)
474
480
  return [i3, e4];
475
481
  var r3 = u(i3 -= 60 * (o2 - e4) * 1e3, n4);
476
482
  return o2 === r3 ? [i3, o2] : [t3 - 60 * Math.min(o2, r3) * 1e3, Math.max(o2, r3)];
477
- }(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
483
+ }(o.utc(t2, i2).valueOf(), f2, a2), m = s3[0], c = s3[1], d = o(m).utcOffset(c);
478
484
  return d.$x.$timezone = a2, d;
479
485
  }, o.tz.guess = function() {
480
486
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -493,7 +499,7 @@ var import_timezone = __toESM(require_timezone(), 1);
493
499
  import_dayjs.default.extend(import_utc.default);
494
500
  import_dayjs.default.extend(import_timezone.default);
495
501
  import_dayjs.default.tz.setDefault("Etc/GMT");
496
- var _timeSeriesController, _adaptPropertyToController, adaptPropertyToController_fn, _maybeSliceTimeForStartEnd, maybeSliceTimeForStartEnd_fn, _handleVariableChange, handleVariableChange_fn, _handleMapChange, handleMapChange_fn, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn;
502
+ var _timeSeriesController, _adaptPropertyToController, adaptPropertyToController_fn, _maybeSliceTimeForStartEnd, maybeSliceTimeForStartEnd_fn, _handleVariableChange, handleVariableChange_fn, _handleMapChange, handleMapChange_fn, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn, _abortDataLoad, abortDataLoad_fn;
497
503
  var TerraTimeSeries = class extends TerraElement {
498
504
  constructor() {
499
505
  super(...arguments);
@@ -512,6 +518,10 @@ var TerraTimeSeries = class extends TerraElement {
512
518
  * anytime the date range slider changes, update the start and end date
513
519
  */
514
520
  __privateAdd(this, _handleDateRangeSliderChangeEvent);
521
+ /**
522
+ * aborts the underlying data loading task, which cancels the network request
523
+ */
524
+ __privateAdd(this, _abortDataLoad);
515
525
  __privateAdd(this, _timeSeriesController, new TimeSeriesController(this));
516
526
  }
517
527
  handleCollectionUpdate(_oldValue, newValue) {
@@ -548,7 +558,7 @@ var TerraTimeSeries = class extends TerraElement {
548
558
  <terra-plot
549
559
  exportparts="base:plot__base"
550
560
  data="${JSON.stringify(
551
- (_a = __privateGet(this, _timeSeriesController).task.value) != null ? _a : __privateGet(this, _timeSeriesController).emptyPlotData
561
+ (_a = __privateGet(this, _timeSeriesController).lastTaskValue) != null ? _a : __privateGet(this, _timeSeriesController).emptyPlotData
552
562
  )}"
553
563
  .layout="${{
554
564
  title: this.variable,
@@ -571,6 +581,15 @@ var TerraTimeSeries = class extends TerraElement {
571
581
  end-date=${this.endDate}
572
582
  @terra-date-range-change="${__privateMethod(this, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn)}"
573
583
  ></terra-date-range-slider>
584
+
585
+ <dialog
586
+ open
587
+ class="${__privateGet(this, _timeSeriesController).task.status === s.PENDING ? "open" : ""}"
588
+ >
589
+ <terra-loader indeterminate></terra-loader>
590
+ <p>Plotting ${this.collection} ${this.variable}...</p>
591
+ <terra-button @click=${__privateMethod(this, _abortDataLoad, abortDataLoad_fn)}>Cancel</terra-button>
592
+ </dialog>
574
593
  `;
575
594
  }
576
595
  };
@@ -631,12 +650,18 @@ handleDateRangeSliderChangeEvent_fn = function(event) {
631
650
  this.startDate = event.detail.startDate;
632
651
  this.endDate = event.detail.endDate;
633
652
  };
653
+ _abortDataLoad = new WeakSet();
654
+ abortDataLoad_fn = function() {
655
+ var _a;
656
+ (_a = __privateGet(this, _timeSeriesController).task) == null ? void 0 : _a.abort();
657
+ };
634
658
  TerraTimeSeries.styles = [component_styles_default, time_series_styles_default];
635
659
  TerraTimeSeries.dependencies = {
636
660
  "terra-plot": TerraPlot,
637
661
  "terra-date-range-slider": TerraDateRangeSlider,
638
662
  "terra-spatial-picker": spatial_picker_default,
639
- "terra-variable-combobox": TerraVariableCombobox
663
+ "terra-variable-combobox": TerraVariableCombobox,
664
+ "terra-loader": TerraLoader
640
665
  };
641
666
  __decorateClass([
642
667
  n({ reflect: true })
@@ -93,7 +93,7 @@ var TerraElement = class extends s {
93
93
  };
94
94
  /* eslint-disable */
95
95
  // @ts-expect-error This is auto-injected at build time.
96
- TerraElement.version = "0.0.2";
96
+ TerraElement.version = "0.0.4";
97
97
  TerraElement.dependencies = {};
98
98
  __decorateClass([
99
99
  n()
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraCombobox
3
- } from "./chunk.K3PPW47B.js";
3
+ } from "./chunk.WU6XFJPA.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
  TerraTimeSeries
3
- } from "./chunk.KQ6GR2XZ.js";
3
+ } from "./chunk.5IDL367Z.js";
4
4
 
5
5
  // src/components/time-series/time-series.ts
6
6
  var time_series_default = TerraTimeSeries;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraLoader
3
- } from "./chunk.BHVFJEIU.js";
3
+ } from "./chunk.U4PQZY6W.js";
4
4
 
5
5
  // src/react/loader/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraIcon
3
- } from "./chunk.2LH52WLN.js";
3
+ } from "./chunk.DCFUISO5.js";
4
4
 
5
5
  // src/components/icon/icon.ts
6
6
  var icon_default = TerraIcon;
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  TerraElement,
17
17
  component_styles_default
18
- } from "./chunk.H4SLY4KN.js";
18
+ } from "./chunk.A23M3KZO.js";
19
19
  import {
20
20
  n,
21
21
  r
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDateRangeSlider
3
- } from "./chunk.FYB4LVNE.js";
3
+ } from "./chunk.IS7PROYA.js";
4
4
 
5
5
  // src/components/date-range-slider/date-range-slider.ts
6
6
  var date_range_slider_default = TerraDateRangeSlider;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableCombobox
3
- } from "./chunk.2WF7EATT.js";
3
+ } from "./chunk.PP7XKOCQ.js";
4
4
 
5
5
  // src/components/variable-combobox/variable-combobox.ts
6
6
  var variable_combobox_default = TerraVariableCombobox;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraSpatialPicker
3
- } from "./chunk.WHJHZJ6L.js";
3
+ } from "./chunk.LVM5DSMJ.js";
4
4
 
5
5
  // src/react/spatial-picker/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraTimeSeries
3
- } from "./chunk.KQ6GR2XZ.js";
3
+ } from "./chunk.5IDL367Z.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
  TerraMap
3
- } from "./chunk.LAFN7QOI.js";
3
+ } from "./chunk.YPRKEZFP.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
  TerraButton
3
- } from "./chunk.II3GR7YQ.js";
3
+ } from "./chunk.YJID4SHW.js";
4
4
 
5
5
  // src/components/button/button.ts
6
6
  var button_default = TerraButton;
@@ -66,6 +66,9 @@ var loader_styles_default = i`
66
66
  --dash: calc(
67
67
  (var(--progress) * var(--circumference)) / 100
68
68
  ); /* Calculate the length of the dash based on the progress percentage */
69
+ --indeterminate-dash: calc(
70
+ (25 * var(--circumference)) / 100
71
+ ); /* force progress to 25% for an indeterminate loader */
69
72
  }
70
73
 
71
74
  .circular-progress circle {
@@ -89,6 +92,24 @@ var loader_styles_default = i`
89
92
  stroke: #1c68e3;
90
93
  }
91
94
 
95
+ .circular-progress.indeterminate circle.fg {
96
+ stroke-dasharray: var(--indeterminate-dash)
97
+ calc(var(--circumference) - var(--indeterminate-dash));
98
+ animation: 0.8s spin infinite;
99
+ animation-timing-function: linear;
100
+ transform-origin: 50% 50%;
101
+ }
102
+
103
+ @keyframes spin {
104
+ from {
105
+ transform: rotate(-90deg);
106
+ }
107
+
108
+ to {
109
+ transform: rotate(270deg);
110
+ }
111
+ }
112
+
92
113
  @property --progress {
93
114
  /* Registers and describes the custom property and variable with the browser. */
94
115
  syntax: '<number>';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraCombobox
3
- } from "./chunk.K3PPW47B.js";
3
+ } from "./chunk.WU6XFJPA.js";
4
4
 
5
5
  // src/react/combobox/index.ts
6
6
  import * as React from "react";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  TerraElement,
18
18
  component_styles_default
19
- } from "./chunk.H4SLY4KN.js";
19
+ } from "./chunk.A23M3KZO.js";
20
20
  import {
21
21
  e,
22
22
  n
@@ -19,9 +19,12 @@ var _apiTask;
19
19
  var FetchController = class {
20
20
  constructor(host) {
21
21
  __privateAdd(this, _apiTask, void 0);
22
+ const isLocalHost = globalThis.location.hostname === "localhost";
22
23
  __privateSet(this, _apiTask, new h(host, {
23
24
  task: async () => {
24
- const response = await fetch("http://localhost:9000/variables");
25
+ const response = await fetch(
26
+ isLocalHost ? "http://localhost:9000/variables" : "https://dev.gesdisc.eosdis.nasa.gov/~jdcarlso/collection+variable.json"
27
+ );
25
28
  if (!response.ok) {
26
29
  throw apiError;
27
30
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraIcon
3
- } from "./chunk.2LH52WLN.js";
3
+ } from "./chunk.DCFUISO5.js";
4
4
 
5
5
  // src/react/icon/index.ts
6
6
  import * as React from "react";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.UOFDZJYP.js";
4
4
  import {
5
5
  TerraMap
6
- } from "./chunk.CSZAFBCJ.js";
6
+ } from "./chunk.YPRKEZFP.js";
7
7
  import {
8
8
  StringifyBoundingBox,
9
9
  parseBoundingBox
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  TerraElement,
13
13
  component_styles_default
14
- } from "./chunk.H4SLY4KN.js";
14
+ } from "./chunk.A23M3KZO.js";
15
15
  import {
16
16
  e,
17
17
  n,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  TerraElement,
6
6
  component_styles_default
7
- } from "./chunk.H4SLY4KN.js";
7
+ } from "./chunk.A23M3KZO.js";
8
8
  import {
9
9
  n
10
10
  } from "./chunk.K4EJQG4O.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraSpatialPicker
3
- } from "./chunk.PYRUETLC.js";
3
+ } from "./chunk.LVM5DSMJ.js";
4
4
 
5
5
  // src/components/spatial-picker/spatial-picker.ts
6
6
  var spatial_picker_default = TerraSpatialPicker;
@@ -5979,7 +5979,7 @@ function storeDataByKey(store, key, data) {
5979
5979
  // src/components/time-series/time-series.controller.ts
5980
5980
  var isLocalHost = globalThis.location.hostname === "localhost";
5981
5981
  var timeSeriesUrlTemplate = (0, import_handlebars.compile)(
5982
- `${isLocalHost ? "http://localhost:9000/hydro1" : "https://hydro1.gesdisc.eosdis.nasa.gov"}/daac-bin/access/timeseries.cgi?variable={{variable}}&startDate={{startDate}}&endDate={{endDate}}&location={{location}}&type=asc2`
5982
+ `${isLocalHost ? "http://localhost:9000/hydro1" : "https://uui-test.gesdisc.eosdis.nasa.gov/api/proxy/hydro1"}/daac-bin/access/timeseries.cgi?variable={{variable}}&startDate={{startDate}}&endDate={{endDate}}&location={{location}}&type=asc2`
5983
5983
  );
5984
5984
  var plotlyDefaultData = {
5985
5985
  // holds the default Plotly configuration options.
@@ -6017,12 +6017,13 @@ var TimeSeriesController = class {
6017
6017
  return i;
6018
6018
  }
6019
6019
  const timeSeries = await __privateMethod(this, _loadTimeSeries, loadTimeSeries_fn).call(this, signal);
6020
- return [
6020
+ this.lastTaskValue = [
6021
6021
  __spreadProps(__spreadValues({}, plotlyDefaultData), {
6022
6022
  x: timeSeries.data.map((row) => row.timestamp),
6023
6023
  y: timeSeries.data.map((row) => row.value)
6024
6024
  })
6025
6025
  ];
6026
+ return this.lastTaskValue;
6026
6027
  }
6027
6028
  });
6028
6029
  }
@@ -6033,9 +6034,10 @@ var TimeSeriesController = class {
6033
6034
  _loadTimeSeries = new WeakSet();
6034
6035
  loadTimeSeries_fn = async function(signal) {
6035
6036
  const variableEntryId = `${this.collection}_${this.variable}`;
6037
+ const cacheKey = `${variableEntryId}_${this.location}`;
6036
6038
  const existingTerraData = await getDataByKey(
6037
6039
  "time-series" /* TIME_SERIES */,
6038
- `${variableEntryId}_${this.location}`
6040
+ cacheKey
6039
6041
  );
6040
6042
  if (existingTerraData && this.startDate.getTime() >= new Date(existingTerraData.startDate).getTime() && this.endDate.getTime() <= new Date(existingTerraData.endDate).getTime()) {
6041
6043
  return __privateMethod(this, _getDataInRange, getDataInRange_fn).call(this, existingTerraData);
@@ -6066,16 +6068,12 @@ loadTimeSeries_fn = async function(signal) {
6066
6068
  }
6067
6069
  const parsedData = __privateMethod(this, _parseTimeSeriesCsv, parseTimeSeriesCsv_fn).call(this, await response.text());
6068
6070
  parsedData.data = [...parsedData.data, ...(existingTerraData == null ? void 0 : existingTerraData.data) || []];
6069
- await storeDataByKey(
6070
- "time-series" /* TIME_SERIES */,
6071
- `${variableEntryId}_${this.location}`,
6072
- __spreadValues({
6073
- variableEntryId,
6074
- key: `${variableEntryId}_${this.location}`,
6075
- startDate: parsedData.data[0].timestamp,
6076
- endDate: parsedData.data[parsedData.data.length - 1].timestamp
6077
- }, parsedData)
6078
- );
6071
+ await storeDataByKey("time-series" /* TIME_SERIES */, cacheKey, __spreadValues({
6072
+ variableEntryId,
6073
+ key: cacheKey,
6074
+ startDate: parsedData.data[0].timestamp,
6075
+ endDate: parsedData.data[parsedData.data.length - 1].timestamp
6076
+ }, parsedData));
6079
6077
  return __privateMethod(this, _getDataInRange, getDataInRange_fn).call(this, parsedData);
6080
6078
  };
6081
6079
  _parseTimeSeriesCsv = new WeakSet();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraButton
3
- } from "./chunk.XPQYTQXW.js";
3
+ } from "./chunk.YJID4SHW.js";
4
4
 
5
5
  // src/react/button/index.ts
6
6
  import * as React from "react";