@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.
- package/cdn/chunks/{chunk.5UBB7KZQ.js → chunk.2LF7SMGQ.js} +10 -12
- package/cdn/chunks/{chunk.SXUZHG2G.js → chunk.3JODJSTO.js} +1 -1
- package/cdn/chunks/{chunk.HMECFSJ3.js → chunk.4D2G6L4V.js} +1 -1
- package/cdn/chunks/{chunk.P4LXCHCY.js → chunk.566BRIWX.js} +1 -1
- package/{dist/chunks/chunk.356TZEPJ.js → cdn/chunks/chunk.74CNHGFN.js} +1 -1
- package/cdn/chunks/{chunk.2WF7EATT.js → chunk.A3BJQZCH.js} +6 -6
- package/cdn/chunks/{chunk.II3GR7YQ.js → chunk.B2HOKF44.js} +4 -4
- package/cdn/chunks/{chunk.5OVZEQPW.js → chunk.E2SRXXI6.js} +1 -1
- package/cdn/chunks/{chunk.2LH52WLN.js → chunk.ELPRRHTE.js} +5 -5
- package/cdn/chunks/{chunk.H4SLY4KN.js → chunk.FS5IKMJD.js} +1 -1
- package/cdn/chunks/{chunk.S6SLZPVX.js → chunk.GR5QBZMP.js} +1 -1
- package/{dist/chunks/chunk.RCELHBSG.js → cdn/chunks/chunk.HCBG34UV.js} +1 -1
- package/cdn/chunks/{chunk.U6DUAIIP.js → chunk.IKBILRIY.js} +21 -0
- package/cdn/chunks/{chunk.KZIVL4LN.js → chunk.JCBJR2VJ.js} +1 -1
- package/cdn/chunks/{chunk.FYB4LVNE.js → chunk.JE7ZZRL6.js} +4 -4
- package/cdn/chunks/{chunk.A4PYD2BT.js → chunk.JM6ZF7AP.js} +4 -1
- package/{dist/chunks/chunk.34BDCGAS.js → cdn/chunks/chunk.JOSFOMOK.js} +1 -1
- package/{dist/chunks/chunk.6HHKJO37.js → cdn/chunks/chunk.JUCL53DU.js} +1 -1
- package/cdn/chunks/{chunk.BHVFJEIU.js → chunk.K6YHM5TZ.js} +7 -3
- package/cdn/chunks/{chunk.KQ6GR2XZ.js → chunk.LBKLXTIO.js} +77 -52
- package/{dist/chunks/chunk.LXV5KI76.js → cdn/chunks/chunk.LHW6ZEEG.js} +1 -1
- package/cdn/chunks/{chunk.RS4CISKV.js → chunk.LIQU3FGS.js} +1 -1
- package/{dist/chunks/chunk.NA6RDAQK.js → cdn/chunks/chunk.LT6GFPPN.js} +1 -1
- package/{dist/chunks/chunk.ZI3RW2HX.js → cdn/chunks/chunk.M4QB4Z2D.js} +1 -1
- package/cdn/chunks/{chunk.VHMYUAU5.js → chunk.ON2RU4HZ.js} +4 -4
- package/cdn/chunks/{chunk.CSZAFBCJ.js → chunk.ONGS57TV.js} +1 -1
- package/cdn/chunks/{chunk.KFYWXDIT.js → chunk.PDXFKRVY.js} +4 -4
- package/cdn/chunks/{chunk.ORXIH4AJ.js → chunk.PM3G4HWU.js} +1 -1
- package/cdn/chunks/{chunk.4OFE6FHL.js → chunk.PS5CJCUL.js} +1 -1
- package/cdn/chunks/{chunk.BLFAG25A.js → chunk.RXDN2NM7.js} +1 -1
- package/cdn/chunks/{chunk.2YI7V6QJ.js → chunk.SBDX4GGT.js} +24 -0
- package/{dist/chunks/chunk.WCD47X2N.js → cdn/chunks/chunk.SNTGQTAS.js} +1 -1
- package/{dist/chunks/chunk.TEY3I3LS.js → cdn/chunks/chunk.U5J3OV4V.js} +1 -1
- package/cdn/chunks/{chunk.MOL3RELR.js → chunk.X56PW5HS.js} +1 -1
- package/cdn/chunks/{chunk.PUWFHEBP.js → chunk.XQOP7YET.js} +1 -1
- package/cdn/chunks/{chunk.SQUNJ4EJ.js → chunk.XZEK52FD.js} +1 -1
- package/cdn/chunks/{chunk.PYRUETLC.js → chunk.ZO75EFUN.js} +2 -2
- package/{dist/chunks/chunk.6G6MC7ET.js → cdn/chunks/chunk.ZUGL2FNZ.js} +1 -1
- package/cdn/components/button/button.component.js +3 -3
- package/cdn/components/button/button.js +4 -4
- package/cdn/components/chip/chip.component.js +3 -3
- package/cdn/components/chip/chip.js +4 -4
- package/cdn/components/combobox/combobox.component.js +4 -4
- package/cdn/components/combobox/combobox.js +5 -5
- package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
- package/cdn/components/date-range-slider/date-range-slider.js +4 -4
- package/cdn/components/icon/icon.component.js +5 -5
- package/cdn/components/icon/icon.js +6 -6
- package/cdn/components/icon/library.js +2 -2
- package/cdn/components/loader/loader.component.d.ts +2 -0
- package/cdn/components/loader/loader.component.js +3 -3
- package/cdn/components/loader/loader.js +4 -4
- package/cdn/components/loader/loader.styles.js +1 -1
- package/cdn/components/map/map.component.js +2 -2
- package/cdn/components/map/map.js +3 -3
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.component.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.js +4 -4
- package/cdn/components/time-series/time-series.component.d.ts +4 -0
- package/cdn/components/time-series/time-series.component.js +29 -27
- package/cdn/components/time-series/time-series.controller.d.ts +1 -0
- package/cdn/components/time-series/time-series.controller.js +1 -1
- package/cdn/components/time-series/time-series.js +30 -28
- package/cdn/components/time-series/time-series.styles.js +1 -1
- package/cdn/components/variable-combobox/variable-combobox.component.js +14 -14
- package/cdn/components/variable-combobox/variable-combobox.controller.js +1 -1
- package/cdn/components/variable-combobox/variable-combobox.js +15 -15
- package/cdn/custom-elements.json +494 -468
- package/cdn/react/button/index.js +4 -4
- package/cdn/react/chip/index.js +4 -4
- package/cdn/react/combobox/index.js +5 -5
- package/cdn/react/date-range-slider/index.js +4 -4
- package/cdn/react/icon/index.js +6 -6
- package/cdn/react/index.d.ts +3 -3
- package/cdn/react/index.js +53 -53
- package/cdn/react/loader/index.js +4 -4
- package/cdn/react/map/index.js +3 -3
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +4 -4
- package/cdn/react/time-series/index.d.ts +2 -0
- package/cdn/react/time-series/index.js +30 -28
- package/cdn/react/variable-combobox/index.js +15 -15
- package/cdn/terra-ui-components.js +57 -57
- package/cdn/types/vue/index.d.ts +68 -66
- package/cdn/utilities/animation.js +3 -3
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/vscode.html-custom-data.json +83 -78
- package/cdn/web-types.json +169 -159
- package/dist/chunks/{chunk.DKCU7YEZ.js → chunk.2RJXTLAA.js} +10 -12
- package/dist/chunks/{chunk.WHJHZJ6L.js → chunk.33FFT37R.js} +2 -2
- package/dist/chunks/{chunk.6HBNUONX.js → chunk.3SRITTYR.js} +1 -1
- package/dist/chunks/{chunk.XPQYTQXW.js → chunk.4GCNO2RC.js} +4 -4
- package/dist/chunks/{chunk.XK7GWNRK.js → chunk.6DRNHPKF.js} +1 -1
- package/dist/chunks/{chunk.ACNC5AZO.js → chunk.7DFKM3M3.js} +1 -1
- package/dist/chunks/{chunk.D44WRZDJ.js → chunk.AJUYULUM.js} +1 -1
- package/{cdn/chunks/chunk.RDW2UZ5N.js → dist/chunks/chunk.ALFBRTWT.js} +1 -1
- package/dist/chunks/{chunk.TFKJWQKC.js → chunk.B7L6K56Y.js} +7 -3
- package/dist/chunks/{chunk.I2NEFB34.js → chunk.CL62YJ3N.js} +21 -0
- package/dist/chunks/{chunk.HJ4OGF6V.js → chunk.EDKH7GOS.js} +1 -1
- package/{cdn/chunks/chunk.KCXQJJZ4.js → dist/chunks/chunk.EPOITANB.js} +1 -1
- package/{cdn/chunks/chunk.3NOH36JE.js → dist/chunks/chunk.FLO6VVGK.js} +1 -1
- package/dist/chunks/{chunk.4WNMOJSX.js → chunk.FOD357NT.js} +35 -12
- package/dist/chunks/{chunk.ZGJAUXFV.js → chunk.GPUFE4ML.js} +24 -0
- package/dist/chunks/{chunk.MWHQHPUM.js → chunk.GWHZAFS3.js} +4 -1
- package/dist/chunks/{chunk.RHF5LAQQ.js → chunk.HSPKB2MG.js} +1 -1
- package/dist/chunks/{chunk.26XMYCND.js → chunk.IOP7DABN.js} +6 -6
- package/dist/chunks/{chunk.K3PPW47B.js → chunk.JL4ZDCDW.js} +4 -4
- package/dist/chunks/{chunk.EPMXIUY7.js → chunk.KJIDKCTU.js} +1 -1
- package/{cdn/chunks/chunk.EH44OY6V.js → dist/chunks/chunk.LUYLEISL.js} +1 -1
- package/dist/chunks/{chunk.LMUMRQLT.js → chunk.LXE4USTN.js} +1 -1
- package/dist/chunks/{chunk.R32FZJSC.js → chunk.LZWNT5PB.js} +1 -1
- package/dist/chunks/{chunk.5LBNOLAY.js → chunk.MMYKMN6B.js} +4 -4
- package/dist/chunks/{chunk.KWCEJCNP.js → chunk.MPA4M3E7.js} +1 -1
- package/{cdn/chunks/chunk.EGBZ7Z36.js → dist/chunks/chunk.MVKAIELO.js} +1 -1
- package/{cdn/chunks/chunk.CO6OXP3P.js → dist/chunks/chunk.NF7CULQM.js} +1 -1
- package/dist/chunks/{chunk.37CMTFD4.js → chunk.OIEDIUMT.js} +1 -1
- package/dist/chunks/{chunk.UTUM2YTN.js → chunk.PRBM2XXL.js} +1 -1
- package/dist/chunks/{chunk.HBEQ6SPT.js → chunk.PSTXVQB5.js} +1 -1
- package/dist/chunks/{chunk.37V2INM4.js → chunk.PU5MKRJ3.js} +5 -5
- package/{cdn/chunks/chunk.5NSDKQFA.js → dist/chunks/chunk.Q2BSVCPH.js} +1 -1
- package/{cdn/chunks/chunk.76UFIPPH.js → dist/chunks/chunk.S2WDTAIJ.js} +1 -1
- package/{cdn/chunks/chunk.C3FZSGJM.js → dist/chunks/chunk.S4JQ7QD5.js} +1 -1
- package/{cdn/chunks/chunk.7UVCVDMD.js → dist/chunks/chunk.XLQO6OZU.js} +1 -1
- package/dist/chunks/{chunk.ZUWKLZ5N.js → chunk.YRZFOIW4.js} +1 -1
- package/dist/chunks/{chunk.LAFN7QOI.js → chunk.YUEY7TCJ.js} +1 -1
- package/dist/chunks/{chunk.3OTXIELM.js → chunk.ZB6UWPGQ.js} +4 -4
- package/dist/components/button/button.component.js +3 -3
- package/dist/components/button/button.js +4 -4
- package/dist/components/chip/chip.component.js +2 -2
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/combobox/combobox.component.js +3 -3
- package/dist/components/combobox/combobox.js +4 -4
- package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
- package/dist/components/date-range-slider/date-range-slider.js +4 -4
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/loader/loader.component.d.ts +2 -0
- package/dist/components/loader/loader.component.js +3 -3
- package/dist/components/loader/loader.js +4 -4
- package/dist/components/loader/loader.styles.js +1 -1
- package/dist/components/map/map.component.js +2 -2
- package/dist/components/map/map.js +3 -3
- package/dist/components/plot/plot.component.js +2 -2
- package/dist/components/plot/plot.js +3 -3
- package/dist/components/spatial-picker/spatial-picker.component.js +3 -3
- package/dist/components/spatial-picker/spatial-picker.js +4 -4
- package/dist/components/time-series/time-series.component.d.ts +4 -0
- package/dist/components/time-series/time-series.component.js +24 -22
- package/dist/components/time-series/time-series.controller.d.ts +1 -0
- package/dist/components/time-series/time-series.controller.js +1 -1
- package/dist/components/time-series/time-series.js +25 -23
- package/dist/components/time-series/time-series.styles.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.component.js +11 -11
- package/dist/components/variable-combobox/variable-combobox.controller.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.js +12 -12
- package/dist/custom-elements.json +494 -468
- package/dist/react/button/index.js +4 -4
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +4 -4
- package/dist/react/date-range-slider/index.js +4 -4
- package/dist/react/icon/index.js +5 -5
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +48 -48
- package/dist/react/loader/index.js +4 -4
- package/dist/react/map/index.js +3 -3
- package/dist/react/plot/index.js +3 -3
- package/dist/react/spatial-picker/index.js +4 -4
- package/dist/react/time-series/index.d.ts +2 -0
- package/dist/react/time-series/index.js +25 -23
- package/dist/react/variable-combobox/index.js +12 -12
- package/dist/terra-ui-components.js +49 -49
- package/dist/types/vue/index.d.ts +68 -66
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +83 -78
- package/dist/web-types.json +169 -159
- package/package.json +1 -1
- package/cdn/chunks/{chunk.XR56EMXH.js → chunk.LQCRC4E2.js} +8 -8
- package/{dist/chunks/chunk.7DOMZGX7.js → cdn/chunks/chunk.MDRUDBRH.js} +3 -3
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
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();
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.ZKRXIISK.js";
|
|
4
4
|
import {
|
|
5
5
|
FetchController
|
|
6
|
-
} from "./chunk.
|
|
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.
|
|
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.
|
|
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.
|
|
22
|
+
} from "./chunk.FS5IKMJD.js";
|
|
23
23
|
import {
|
|
24
24
|
e as e2,
|
|
25
25
|
n as n2,
|
|
@@ -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.
|
|
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.
|
|
18
|
+
} from "./chunk.FS5IKMJD.js";
|
|
19
19
|
import {
|
|
20
20
|
n,
|
|
21
21
|
r
|
|
@@ -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>';
|
|
@@ -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.
|
|
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(
|
|
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,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loader_styles_default
|
|
3
|
-
} from "./chunk.
|
|
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.
|
|
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);
|