@nasa-terra/components 0.0.2 → 0.0.3

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 (181) hide show
  1. package/cdn/chunks/{chunk.5UBB7KZQ.js → chunk.2LF7SMGQ.js} +10 -12
  2. package/cdn/chunks/{chunk.SXUZHG2G.js → chunk.3JODJSTO.js} +1 -1
  3. package/cdn/chunks/{chunk.HMECFSJ3.js → chunk.4D2G6L4V.js} +1 -1
  4. package/cdn/chunks/{chunk.P4LXCHCY.js → chunk.566BRIWX.js} +1 -1
  5. package/{dist/chunks/chunk.356TZEPJ.js → cdn/chunks/chunk.74CNHGFN.js} +1 -1
  6. package/cdn/chunks/{chunk.2WF7EATT.js → chunk.A3BJQZCH.js} +6 -6
  7. package/cdn/chunks/{chunk.II3GR7YQ.js → chunk.B2HOKF44.js} +4 -4
  8. package/cdn/chunks/{chunk.5OVZEQPW.js → chunk.E2SRXXI6.js} +1 -1
  9. package/cdn/chunks/{chunk.2LH52WLN.js → chunk.ELPRRHTE.js} +5 -5
  10. package/cdn/chunks/{chunk.H4SLY4KN.js → chunk.FS5IKMJD.js} +1 -1
  11. package/cdn/chunks/{chunk.S6SLZPVX.js → chunk.GR5QBZMP.js} +1 -1
  12. package/{dist/chunks/chunk.RCELHBSG.js → cdn/chunks/chunk.HCBG34UV.js} +1 -1
  13. package/cdn/chunks/{chunk.U6DUAIIP.js → chunk.IKBILRIY.js} +21 -0
  14. package/cdn/chunks/{chunk.KZIVL4LN.js → chunk.JCBJR2VJ.js} +1 -1
  15. package/cdn/chunks/{chunk.FYB4LVNE.js → chunk.JE7ZZRL6.js} +4 -4
  16. package/cdn/chunks/{chunk.A4PYD2BT.js → chunk.JM6ZF7AP.js} +4 -1
  17. package/{dist/chunks/chunk.34BDCGAS.js → cdn/chunks/chunk.JOSFOMOK.js} +1 -1
  18. package/{dist/chunks/chunk.6HHKJO37.js → cdn/chunks/chunk.JUCL53DU.js} +1 -1
  19. package/cdn/chunks/{chunk.BHVFJEIU.js → chunk.K6YHM5TZ.js} +7 -3
  20. package/cdn/chunks/{chunk.KQ6GR2XZ.js → chunk.LBKLXTIO.js} +77 -52
  21. package/{dist/chunks/chunk.LXV5KI76.js → cdn/chunks/chunk.LHW6ZEEG.js} +1 -1
  22. package/cdn/chunks/{chunk.RS4CISKV.js → chunk.LIQU3FGS.js} +1 -1
  23. package/{dist/chunks/chunk.NA6RDAQK.js → cdn/chunks/chunk.LT6GFPPN.js} +1 -1
  24. package/{dist/chunks/chunk.ZI3RW2HX.js → cdn/chunks/chunk.M4QB4Z2D.js} +1 -1
  25. package/cdn/chunks/{chunk.VHMYUAU5.js → chunk.ON2RU4HZ.js} +4 -4
  26. package/cdn/chunks/{chunk.CSZAFBCJ.js → chunk.ONGS57TV.js} +1 -1
  27. package/cdn/chunks/{chunk.KFYWXDIT.js → chunk.PDXFKRVY.js} +4 -4
  28. package/cdn/chunks/{chunk.ORXIH4AJ.js → chunk.PM3G4HWU.js} +1 -1
  29. package/cdn/chunks/{chunk.4OFE6FHL.js → chunk.PS5CJCUL.js} +1 -1
  30. package/cdn/chunks/{chunk.BLFAG25A.js → chunk.RXDN2NM7.js} +1 -1
  31. package/cdn/chunks/{chunk.2YI7V6QJ.js → chunk.SBDX4GGT.js} +24 -0
  32. package/{dist/chunks/chunk.WCD47X2N.js → cdn/chunks/chunk.SNTGQTAS.js} +1 -1
  33. package/{dist/chunks/chunk.TEY3I3LS.js → cdn/chunks/chunk.U5J3OV4V.js} +1 -1
  34. package/cdn/chunks/{chunk.MOL3RELR.js → chunk.X56PW5HS.js} +1 -1
  35. package/cdn/chunks/{chunk.PUWFHEBP.js → chunk.XQOP7YET.js} +1 -1
  36. package/cdn/chunks/{chunk.SQUNJ4EJ.js → chunk.XZEK52FD.js} +1 -1
  37. package/cdn/chunks/{chunk.PYRUETLC.js → chunk.ZO75EFUN.js} +2 -2
  38. package/{dist/chunks/chunk.6G6MC7ET.js → cdn/chunks/chunk.ZUGL2FNZ.js} +1 -1
  39. package/cdn/components/button/button.component.js +3 -3
  40. package/cdn/components/button/button.js +4 -4
  41. package/cdn/components/chip/chip.component.js +3 -3
  42. package/cdn/components/chip/chip.js +4 -4
  43. package/cdn/components/combobox/combobox.component.js +4 -4
  44. package/cdn/components/combobox/combobox.js +5 -5
  45. package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
  46. package/cdn/components/date-range-slider/date-range-slider.js +4 -4
  47. package/cdn/components/icon/icon.component.js +5 -5
  48. package/cdn/components/icon/icon.js +6 -6
  49. package/cdn/components/icon/library.js +2 -2
  50. package/cdn/components/loader/loader.component.d.ts +2 -0
  51. package/cdn/components/loader/loader.component.js +3 -3
  52. package/cdn/components/loader/loader.js +4 -4
  53. package/cdn/components/loader/loader.styles.js +1 -1
  54. package/cdn/components/map/map.component.js +2 -2
  55. package/cdn/components/map/map.js +3 -3
  56. package/cdn/components/plot/plot.component.js +2 -2
  57. package/cdn/components/plot/plot.js +3 -3
  58. package/cdn/components/spatial-picker/spatial-picker.component.js +3 -3
  59. package/cdn/components/spatial-picker/spatial-picker.js +4 -4
  60. package/cdn/components/time-series/time-series.component.d.ts +4 -0
  61. package/cdn/components/time-series/time-series.component.js +29 -27
  62. package/cdn/components/time-series/time-series.controller.d.ts +1 -0
  63. package/cdn/components/time-series/time-series.controller.js +1 -1
  64. package/cdn/components/time-series/time-series.js +30 -28
  65. package/cdn/components/time-series/time-series.styles.js +1 -1
  66. package/cdn/components/variable-combobox/variable-combobox.component.js +14 -14
  67. package/cdn/components/variable-combobox/variable-combobox.controller.js +1 -1
  68. package/cdn/components/variable-combobox/variable-combobox.js +15 -15
  69. package/cdn/custom-elements.json +494 -468
  70. package/cdn/react/button/index.js +4 -4
  71. package/cdn/react/chip/index.js +4 -4
  72. package/cdn/react/combobox/index.js +5 -5
  73. package/cdn/react/date-range-slider/index.js +4 -4
  74. package/cdn/react/icon/index.js +6 -6
  75. package/cdn/react/index.d.ts +3 -3
  76. package/cdn/react/index.js +53 -53
  77. package/cdn/react/loader/index.js +4 -4
  78. package/cdn/react/map/index.js +3 -3
  79. package/cdn/react/plot/index.js +3 -3
  80. package/cdn/react/spatial-picker/index.js +4 -4
  81. package/cdn/react/time-series/index.d.ts +2 -0
  82. package/cdn/react/time-series/index.js +30 -28
  83. package/cdn/react/variable-combobox/index.js +15 -15
  84. package/cdn/terra-ui-components.js +57 -57
  85. package/cdn/types/vue/index.d.ts +68 -66
  86. package/cdn/utilities/animation.js +3 -3
  87. package/cdn/utilities/icon-library.js +2 -2
  88. package/cdn/vscode.html-custom-data.json +83 -78
  89. package/cdn/web-types.json +169 -159
  90. package/dist/chunks/{chunk.DKCU7YEZ.js → chunk.2RJXTLAA.js} +10 -12
  91. package/dist/chunks/{chunk.WHJHZJ6L.js → chunk.33FFT37R.js} +2 -2
  92. package/dist/chunks/{chunk.6HBNUONX.js → chunk.3SRITTYR.js} +1 -1
  93. package/dist/chunks/{chunk.XPQYTQXW.js → chunk.4GCNO2RC.js} +4 -4
  94. package/dist/chunks/{chunk.XK7GWNRK.js → chunk.6DRNHPKF.js} +1 -1
  95. package/dist/chunks/{chunk.ACNC5AZO.js → chunk.7DFKM3M3.js} +1 -1
  96. package/dist/chunks/{chunk.D44WRZDJ.js → chunk.AJUYULUM.js} +1 -1
  97. package/{cdn/chunks/chunk.RDW2UZ5N.js → dist/chunks/chunk.ALFBRTWT.js} +1 -1
  98. package/dist/chunks/{chunk.TFKJWQKC.js → chunk.B7L6K56Y.js} +7 -3
  99. package/dist/chunks/{chunk.I2NEFB34.js → chunk.CL62YJ3N.js} +21 -0
  100. package/dist/chunks/{chunk.HJ4OGF6V.js → chunk.EDKH7GOS.js} +1 -1
  101. package/{cdn/chunks/chunk.KCXQJJZ4.js → dist/chunks/chunk.EPOITANB.js} +1 -1
  102. package/{cdn/chunks/chunk.3NOH36JE.js → dist/chunks/chunk.FLO6VVGK.js} +1 -1
  103. package/dist/chunks/{chunk.4WNMOJSX.js → chunk.FOD357NT.js} +35 -12
  104. package/dist/chunks/{chunk.ZGJAUXFV.js → chunk.GPUFE4ML.js} +24 -0
  105. package/dist/chunks/{chunk.MWHQHPUM.js → chunk.GWHZAFS3.js} +4 -1
  106. package/dist/chunks/{chunk.RHF5LAQQ.js → chunk.HSPKB2MG.js} +1 -1
  107. package/dist/chunks/{chunk.26XMYCND.js → chunk.IOP7DABN.js} +6 -6
  108. package/dist/chunks/{chunk.K3PPW47B.js → chunk.JL4ZDCDW.js} +4 -4
  109. package/dist/chunks/{chunk.EPMXIUY7.js → chunk.KJIDKCTU.js} +1 -1
  110. package/{cdn/chunks/chunk.EH44OY6V.js → dist/chunks/chunk.LUYLEISL.js} +1 -1
  111. package/dist/chunks/{chunk.LMUMRQLT.js → chunk.LXE4USTN.js} +1 -1
  112. package/dist/chunks/{chunk.R32FZJSC.js → chunk.LZWNT5PB.js} +1 -1
  113. package/dist/chunks/{chunk.5LBNOLAY.js → chunk.MMYKMN6B.js} +4 -4
  114. package/dist/chunks/{chunk.KWCEJCNP.js → chunk.MPA4M3E7.js} +1 -1
  115. package/{cdn/chunks/chunk.EGBZ7Z36.js → dist/chunks/chunk.MVKAIELO.js} +1 -1
  116. package/{cdn/chunks/chunk.CO6OXP3P.js → dist/chunks/chunk.NF7CULQM.js} +1 -1
  117. package/dist/chunks/{chunk.37CMTFD4.js → chunk.OIEDIUMT.js} +1 -1
  118. package/dist/chunks/{chunk.UTUM2YTN.js → chunk.PRBM2XXL.js} +1 -1
  119. package/dist/chunks/{chunk.HBEQ6SPT.js → chunk.PSTXVQB5.js} +1 -1
  120. package/dist/chunks/{chunk.37V2INM4.js → chunk.PU5MKRJ3.js} +5 -5
  121. package/{cdn/chunks/chunk.5NSDKQFA.js → dist/chunks/chunk.Q2BSVCPH.js} +1 -1
  122. package/{cdn/chunks/chunk.76UFIPPH.js → dist/chunks/chunk.S2WDTAIJ.js} +1 -1
  123. package/{cdn/chunks/chunk.C3FZSGJM.js → dist/chunks/chunk.S4JQ7QD5.js} +1 -1
  124. package/{cdn/chunks/chunk.7UVCVDMD.js → dist/chunks/chunk.XLQO6OZU.js} +1 -1
  125. package/dist/chunks/{chunk.ZUWKLZ5N.js → chunk.YRZFOIW4.js} +1 -1
  126. package/dist/chunks/{chunk.LAFN7QOI.js → chunk.YUEY7TCJ.js} +1 -1
  127. package/dist/chunks/{chunk.3OTXIELM.js → chunk.ZB6UWPGQ.js} +4 -4
  128. package/dist/components/button/button.component.js +3 -3
  129. package/dist/components/button/button.js +4 -4
  130. package/dist/components/chip/chip.component.js +2 -2
  131. package/dist/components/chip/chip.js +3 -3
  132. package/dist/components/combobox/combobox.component.js +3 -3
  133. package/dist/components/combobox/combobox.js +4 -4
  134. package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
  135. package/dist/components/date-range-slider/date-range-slider.js +4 -4
  136. package/dist/components/icon/icon.component.js +4 -4
  137. package/dist/components/icon/icon.js +5 -5
  138. package/dist/components/icon/library.js +2 -2
  139. package/dist/components/loader/loader.component.d.ts +2 -0
  140. package/dist/components/loader/loader.component.js +3 -3
  141. package/dist/components/loader/loader.js +4 -4
  142. package/dist/components/loader/loader.styles.js +1 -1
  143. package/dist/components/map/map.component.js +2 -2
  144. package/dist/components/map/map.js +3 -3
  145. package/dist/components/plot/plot.component.js +2 -2
  146. package/dist/components/plot/plot.js +3 -3
  147. package/dist/components/spatial-picker/spatial-picker.component.js +3 -3
  148. package/dist/components/spatial-picker/spatial-picker.js +4 -4
  149. package/dist/components/time-series/time-series.component.d.ts +4 -0
  150. package/dist/components/time-series/time-series.component.js +24 -22
  151. package/dist/components/time-series/time-series.controller.d.ts +1 -0
  152. package/dist/components/time-series/time-series.controller.js +1 -1
  153. package/dist/components/time-series/time-series.js +25 -23
  154. package/dist/components/time-series/time-series.styles.js +1 -1
  155. package/dist/components/variable-combobox/variable-combobox.component.js +11 -11
  156. package/dist/components/variable-combobox/variable-combobox.controller.js +1 -1
  157. package/dist/components/variable-combobox/variable-combobox.js +12 -12
  158. package/dist/custom-elements.json +494 -468
  159. package/dist/react/button/index.js +4 -4
  160. package/dist/react/chip/index.js +3 -3
  161. package/dist/react/combobox/index.js +4 -4
  162. package/dist/react/date-range-slider/index.js +4 -4
  163. package/dist/react/icon/index.js +5 -5
  164. package/dist/react/index.d.ts +3 -3
  165. package/dist/react/index.js +48 -48
  166. package/dist/react/loader/index.js +4 -4
  167. package/dist/react/map/index.js +3 -3
  168. package/dist/react/plot/index.js +3 -3
  169. package/dist/react/spatial-picker/index.js +4 -4
  170. package/dist/react/time-series/index.d.ts +2 -0
  171. package/dist/react/time-series/index.js +25 -23
  172. package/dist/react/variable-combobox/index.js +12 -12
  173. package/dist/terra-ui-components.js +49 -49
  174. package/dist/types/vue/index.d.ts +68 -66
  175. package/dist/utilities/icon-library.js +2 -2
  176. package/dist/vscode.html-custom-data.json +83 -78
  177. package/dist/web-types.json +169 -159
  178. package/package.json +1 -1
  179. package/cdn/chunks/{chunk.XR56EMXH.js → chunk.LQCRC4E2.js} +8 -8
  180. package/{dist/chunks/chunk.7DOMZGX7.js → cdn/chunks/chunk.MDRUDBRH.js} +3 -3
  181. package/{cdn/chunks/chunk.7DOMZGX7.js → dist/chunks/chunk.MDRUDBRH.js} +3 -3
@@ -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.II3GR7YQ.js";
3
+ } from "./chunk.B2HOKF44.js";
4
4
 
5
5
  // src/components/button/button.ts
6
6
  var button_default = TerraButton;
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.H4SLY4KN.js";
10
+ } from "./chunk.FS5IKMJD.js";
11
11
  import {
12
12
  e,
13
13
  n
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDateRangeSlider
3
- } from "./chunk.FYB4LVNE.js";
3
+ } from "./chunk.JE7ZZRL6.js";
4
4
 
5
5
  // src/react/date-range-slider/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.ONGS57TV.js";
4
4
 
5
5
  // src/components/map/map.ts
6
6
  var map_default = TerraMap;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.ZKRXIISK.js";
4
4
  import {
5
5
  FetchController
6
- } from "./chunk.A4PYD2BT.js";
6
+ } from "./chunk.JM6ZF7AP.js";
7
7
  import {
8
8
  clearSelection,
9
9
  groupDocsByCollection,
@@ -11,9 +11,12 @@ import {
11
11
  renderSearchResult,
12
12
  walkToOption
13
13
  } from "./chunk.5DPGWL3Y.js";
14
+ import {
15
+ button_default
16
+ } from "./chunk.3JODJSTO.js";
14
17
  import {
15
18
  icon_default
16
- } from "./chunk.5OVZEQPW.js";
19
+ } from "./chunk.E2SRXXI6.js";
17
20
  import {
18
21
  Fuse
19
22
  } from "./chunk.NTNL4P6D.js";
@@ -26,16 +29,13 @@ import {
26
29
  import {
27
30
  o
28
31
  } from "./chunk.QEA4QW6G.js";
29
- import {
30
- button_default
31
- } from "./chunk.SXUZHG2G.js";
32
32
  import {
33
33
  watch
34
34
  } from "./chunk.IUDWCWFV.js";
35
35
  import {
36
36
  TerraElement,
37
37
  component_styles_default
38
- } from "./chunk.H4SLY4KN.js";
38
+ } from "./chunk.FS5IKMJD.js";
39
39
  import {
40
40
  n,
41
41
  r
@@ -7,19 +7,19 @@ import {
7
7
  FormControlController,
8
8
  validValidityState
9
9
  } from "./chunk.BT4IJCQK.js";
10
- import {
11
- watch
12
- } from "./chunk.IUDWCWFV.js";
13
10
  import {
14
11
  button_styles_default
15
12
  } from "./chunk.NTB4EIFE.js";
16
13
  import {
17
14
  e
18
15
  } from "./chunk.YVSJQ4KD.js";
16
+ import {
17
+ watch
18
+ } from "./chunk.IUDWCWFV.js";
19
19
  import {
20
20
  TerraElement,
21
21
  component_styles_default
22
- } from "./chunk.H4SLY4KN.js";
22
+ } from "./chunk.FS5IKMJD.js";
23
23
  import {
24
24
  e as e2,
25
25
  n as n2,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraIcon
3
- } from "./chunk.2LH52WLN.js";
3
+ } from "./chunk.ELPRRHTE.js";
4
4
 
5
5
  // src/components/icon/icon.ts
6
6
  var icon_default = TerraIcon;
@@ -1,11 +1,11 @@
1
+ import {
2
+ icon_styles_default
3
+ } from "./chunk.4XR5KYKG.js";
1
4
  import {
2
5
  getIconLibrary,
3
6
  unwatchIcon,
4
7
  watchIcon
5
- } from "./chunk.7DOMZGX7.js";
6
- import {
7
- icon_styles_default
8
- } from "./chunk.4XR5KYKG.js";
8
+ } from "./chunk.MDRUDBRH.js";
9
9
  import {
10
10
  e
11
11
  } from "./chunk.6NYH4BZ2.js";
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  TerraElement,
17
17
  component_styles_default
18
- } from "./chunk.H4SLY4KN.js";
18
+ } from "./chunk.FS5IKMJD.js";
19
19
  import {
20
20
  n,
21
21
  r
@@ -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.3";
97
97
  TerraElement.dependencies = {};
98
98
  __decorateClass([
99
99
  n()
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableCombobox
3
- } from "./chunk.2WF7EATT.js";
3
+ } from "./chunk.A3BJQZCH.js";
4
4
 
5
5
  // src/react/variable-combobox/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraChip
3
- } from "./chunk.3OTXIELM.js";
3
+ } from "./chunk.ON2RU4HZ.js";
4
4
 
5
5
  // src/components/chip/chip.ts
6
6
  var chip_default = TerraChip;
@@ -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
  TerraDateRangeSlider
3
- } from "./chunk.FYB4LVNE.js";
3
+ } from "./chunk.JE7ZZRL6.js";
4
4
 
5
5
  // src/components/date-range-slider/date-range-slider.ts
6
6
  var date_range_slider_default = TerraDateRangeSlider;
@@ -4,19 +4,19 @@ import {
4
4
  import {
5
5
  format
6
6
  } from "./chunk.BPNFS4ED.js";
7
- import {
8
- mergeTooltips
9
- } from "./chunk.KW4TJM4C.js";
10
7
  import {
11
8
  date_range_slider_styles_default
12
9
  } from "./chunk.4GVU47B6.js";
10
+ import {
11
+ mergeTooltips
12
+ } from "./chunk.KW4TJM4C.js";
13
13
  import {
14
14
  watch
15
15
  } from "./chunk.IUDWCWFV.js";
16
16
  import {
17
17
  TerraElement,
18
18
  component_styles_default
19
- } from "./chunk.H4SLY4KN.js";
19
+ } from "./chunk.FS5IKMJD.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
  TerraPlot
3
- } from "./chunk.UTUM2YTN.js";
3
+ } from "./chunk.4D2G6L4V.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
  TerraButton
3
- } from "./chunk.XPQYTQXW.js";
3
+ } from "./chunk.B2HOKF44.js";
4
4
 
5
5
  // src/react/button/index.ts
6
6
  import * as React from "react";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  loader_styles_default
3
- } from "./chunk.U6DUAIIP.js";
3
+ } from "./chunk.IKBILRIY.js";
4
4
  import {
5
5
  e
6
6
  } from "./chunk.YVSJQ4KD.js";
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.H4SLY4KN.js";
10
+ } from "./chunk.FS5IKMJD.js";
11
11
  import {
12
12
  n
13
13
  } from "./chunk.K4EJQG4O.js";
@@ -25,6 +25,7 @@ var TerraLoader = class extends TerraElement {
25
25
  super(...arguments);
26
26
  this.size = "large";
27
27
  this.percent = 0;
28
+ this.indeterminate = false;
28
29
  this.label = "Loading request";
29
30
  this.message = "";
30
31
  }
@@ -61,7 +62,7 @@ var TerraLoader = class extends TerraElement {
61
62
  viewBox=${this.size == "small" ? "0 0 30 30" : "0 0 52 52"}
62
63
  aria-hidden="true"
63
64
  style="--progress: ${this.percent}"
64
- class="circular-progress"
65
+ class="circular-progress ${this.indeterminate ? "indeterminate" : ""}"
65
66
  >
66
67
  <circle class="bg"></circle>
67
68
  <circle class="fg"></circle>
@@ -80,6 +81,9 @@ __decorateClass([
80
81
  __decorateClass([
81
82
  n({ type: Number })
82
83
  ], TerraLoader.prototype, "percent", 2);
84
+ __decorateClass([
85
+ n({ type: Boolean })
86
+ ], TerraLoader.prototype, "indeterminate", 2);
83
87
  __decorateClass([
84
88
  n({ type: String })
85
89
  ], TerraLoader.prototype, "label", 2);