@nasa-terra/components 0.0.1 → 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.JV6B7CXO.js → chunk.2LF7SMGQ.js} +11 -13
- package/cdn/chunks/{chunk.MXAZ646L.js → chunk.3JODJSTO.js} +1 -1
- package/cdn/chunks/{chunk.KVY2Y3KE.js → chunk.4D2G6L4V.js} +1 -1
- package/cdn/chunks/{chunk.GCKJPPGU.js → chunk.566BRIWX.js} +1 -1
- package/cdn/chunks/{chunk.JCZW2OWI.js → chunk.74CNHGFN.js} +1 -1
- package/cdn/chunks/{chunk.RBKBAQOH.js → chunk.A3BJQZCH.js} +6 -6
- package/cdn/chunks/{chunk.TV2NZLRC.js → chunk.B2HOKF44.js} +4 -4
- package/cdn/chunks/{chunk.IQITDFID.js → chunk.E2SRXXI6.js} +1 -1
- package/cdn/chunks/{chunk.4YOL6PQR.js → chunk.ELPRRHTE.js} +1 -1
- package/cdn/chunks/{chunk.VEUDIPUW.js → chunk.FS5IKMJD.js} +1 -1
- package/cdn/chunks/{chunk.MOJMTJF6.js → chunk.GR5QBZMP.js} +1 -1
- package/cdn/chunks/{chunk.ITX3RB2M.js → chunk.HCBG34UV.js} +1 -1
- package/cdn/chunks/{chunk.U6DUAIIP.js → chunk.IKBILRIY.js} +21 -0
- package/{dist/chunks/chunk.NZIGCRLS.js → cdn/chunks/chunk.JCBJR2VJ.js} +1 -1
- package/cdn/chunks/{chunk.2B4YBQ5O.js → chunk.JE7ZZRL6.js} +1 -1
- package/cdn/chunks/{chunk.A4PYD2BT.js → chunk.JM6ZF7AP.js} +4 -1
- package/{dist/chunks/chunk.7DEY3B3N.js → cdn/chunks/chunk.JOSFOMOK.js} +1 -1
- package/cdn/chunks/{chunk.NU4LRV7F.js → chunk.JUCL53DU.js} +1 -1
- package/cdn/chunks/{chunk.BINGLTII.js → chunk.K6YHM5TZ.js} +7 -3
- package/cdn/chunks/{chunk.M25XJ2VR.js → chunk.LBKLXTIO.js} +77 -52
- package/cdn/chunks/{chunk.QQ33BJLG.js → chunk.LHW6ZEEG.js} +1 -1
- package/{dist/chunks/chunk.IP3XWLQI.js → cdn/chunks/chunk.LIQU3FGS.js} +1 -1
- package/cdn/chunks/{chunk.MIAPAPCI.js → chunk.LT6GFPPN.js} +1 -1
- package/cdn/chunks/{chunk.FZT3BVW7.js → chunk.M4QB4Z2D.js} +1 -1
- package/cdn/chunks/{chunk.R3AE5AQ5.js → chunk.ON2RU4HZ.js} +4 -4
- package/cdn/chunks/{chunk.UQVPFKN3.js → chunk.ONGS57TV.js} +7 -7
- package/cdn/chunks/{chunk.DQGFAA4K.js → chunk.PDXFKRVY.js} +4 -4
- package/cdn/chunks/{chunk.MQ5JNQCQ.js → chunk.PM3G4HWU.js} +1 -1
- package/{dist/chunks/chunk.IEU4MULT.js → cdn/chunks/chunk.PS5CJCUL.js} +1 -1
- package/cdn/chunks/{chunk.FXIUS5TR.js → chunk.RXDN2NM7.js} +1 -1
- package/cdn/chunks/{chunk.2YI7V6QJ.js → chunk.SBDX4GGT.js} +24 -0
- package/cdn/chunks/{chunk.ZQ5WJYY5.js → chunk.SNTGQTAS.js} +1 -1
- package/cdn/chunks/{chunk.RVJP24KU.js → chunk.U5J3OV4V.js} +1 -1
- package/cdn/chunks/{chunk.2O76GCUZ.js → chunk.X56PW5HS.js} +1 -1
- package/cdn/chunks/{chunk.J576Q62R.js → chunk.XQOP7YET.js} +1 -1
- package/cdn/chunks/{chunk.IO4MLLEG.js → chunk.XZEK52FD.js} +1 -1
- package/cdn/chunks/{chunk.KXLY6BVH.js → chunk.ZO75EFUN.js} +4 -4
- package/cdn/chunks/{chunk.WNRL2JWN.js → 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 +2 -2
- package/cdn/components/date-range-slider/date-range-slider.js +3 -3
- package/cdn/components/icon/icon.component.js +3 -3
- package/cdn/components/icon/icon.js +4 -4
- 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 +4 -4
- package/cdn/components/map/map.js +5 -5
- 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 +5 -5
- package/cdn/components/spatial-picker/spatial-picker.js +6 -6
- package/cdn/components/time-series/time-series.component.d.ts +4 -0
- package/cdn/components/time-series/time-series.component.js +30 -28
- 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 +31 -29
- package/cdn/components/time-series/time-series.styles.js +1 -1
- package/cdn/components/variable-combobox/variable-combobox.component.js +12 -12
- package/cdn/components/variable-combobox/variable-combobox.controller.js +1 -1
- package/cdn/components/variable-combobox/variable-combobox.js +13 -13
- package/cdn/custom-elements.json +352 -326
- 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 +3 -3
- package/cdn/react/icon/index.js +4 -4
- package/cdn/react/index.d.ts +4 -4
- package/cdn/react/index.js +52 -52
- package/cdn/react/loader/index.js +4 -4
- package/cdn/react/map/index.js +5 -5
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +6 -6
- package/cdn/react/time-series/index.d.ts +2 -0
- package/cdn/react/time-series/index.js +31 -29
- package/cdn/react/variable-combobox/index.js +13 -13
- package/cdn/terra-ui-components.js +55 -55
- package/cdn/types/vue/index.d.ts +68 -66
- package/cdn/utilities/animation.js +3 -3
- package/cdn/vscode.html-custom-data.json +74 -69
- package/cdn/web-types.json +152 -142
- package/{cdn/chunks/chunk.OOUCODFZ.js → dist/chunks/chunk.2RJXTLAA.js} +11 -13
- package/{cdn/chunks/chunk.Y3WAKQQ3.js → dist/chunks/chunk.33FFT37R.js} +2 -2
- package/{cdn/chunks/chunk.77L4US7V.js → dist/chunks/chunk.3SRITTYR.js} +1 -1
- package/dist/chunks/{chunk.QSCELHEQ.js → chunk.4GCNO2RC.js} +4 -4
- package/dist/chunks/{chunk.UE4FYVUH.js → chunk.6DRNHPKF.js} +1 -1
- package/{cdn/chunks/chunk.MKXJDRVT.js → dist/chunks/chunk.7DFKM3M3.js} +1 -1
- package/{cdn/chunks/chunk.OLCGKQR3.js → dist/chunks/chunk.AJUYULUM.js} +1 -1
- package/dist/chunks/{chunk.EFAXKQZX.js → chunk.ALFBRTWT.js} +1 -1
- package/dist/chunks/{chunk.Z2WXDYZC.js → chunk.B7L6K56Y.js} +7 -3
- package/dist/chunks/{chunk.I2NEFB34.js → chunk.CL62YJ3N.js} +21 -0
- package/{cdn/chunks/chunk.BB7N2ZYB.js → dist/chunks/chunk.EDKH7GOS.js} +1 -1
- package/{cdn/chunks/chunk.7DEY3B3N.js → dist/chunks/chunk.EPOITANB.js} +1 -1
- package/dist/chunks/{chunk.65A3A43G.js → chunk.FLO6VVGK.js} +1 -1
- package/{cdn/chunks/chunk.27YQ2AOA.js → dist/chunks/chunk.FOD357NT.js} +35 -12
- package/{cdn/chunks/chunk.ZGJAUXFV.js → dist/chunks/chunk.GPUFE4ML.js} +24 -0
- package/dist/chunks/{chunk.MWHQHPUM.js → chunk.GWHZAFS3.js} +4 -1
- package/{cdn/chunks/chunk.ZAHTEXVC.js → dist/chunks/chunk.HSPKB2MG.js} +1 -1
- package/{cdn/chunks/chunk.36AVAQOO.js → dist/chunks/chunk.IOP7DABN.js} +6 -6
- package/dist/chunks/{chunk.P25SJ6YA.js → chunk.JL4ZDCDW.js} +4 -4
- package/{cdn/chunks/chunk.SMRM4VEQ.js → dist/chunks/chunk.KJIDKCTU.js} +1 -1
- package/{cdn/chunks/chunk.P7W2ODWK.js → dist/chunks/chunk.LUYLEISL.js} +1 -1
- package/dist/chunks/{chunk.MOJMTJF6.js → chunk.LXE4USTN.js} +1 -1
- package/{cdn/chunks/chunk.D33ZL7ZQ.js → dist/chunks/chunk.LZWNT5PB.js} +1 -1
- package/{cdn/chunks/chunk.GHCQCYO6.js → dist/chunks/chunk.MMYKMN6B.js} +4 -4
- package/dist/chunks/{chunk.RDOXOIYG.js → chunk.MPA4M3E7.js} +1 -1
- package/{cdn/chunks/chunk.UJBBUYTN.js → dist/chunks/chunk.MVKAIELO.js} +1 -1
- package/dist/chunks/{chunk.PGNCNTOA.js → chunk.NF7CULQM.js} +1 -1
- package/{cdn/chunks/chunk.KH54YRZ3.js → dist/chunks/chunk.OIEDIUMT.js} +1 -1
- package/dist/chunks/{chunk.3LUNFNDR.js → chunk.PRBM2XXL.js} +1 -1
- package/{cdn/chunks/chunk.PJXIJK2G.js → dist/chunks/chunk.PSTXVQB5.js} +1 -1
- package/dist/chunks/{chunk.EMISRECR.js → chunk.PU5MKRJ3.js} +1 -1
- package/dist/chunks/{chunk.FZT3BVW7.js → chunk.Q2BSVCPH.js} +1 -1
- package/{cdn/chunks/chunk.JOVDYQHE.js → dist/chunks/chunk.S2WDTAIJ.js} +1 -1
- package/{cdn/chunks/chunk.YOR2OZZR.js → dist/chunks/chunk.S4JQ7QD5.js} +1 -1
- package/{cdn/chunks/chunk.ZPPR6CPT.js → dist/chunks/chunk.XLQO6OZU.js} +1 -1
- package/{cdn/chunks/chunk.SJADWOCY.js → dist/chunks/chunk.YRZFOIW4.js} +1 -1
- package/dist/chunks/{chunk.NOEGCTIS.js → chunk.YUEY7TCJ.js} +7 -7
- package/dist/chunks/{chunk.5B33QFBB.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 +4 -4
- package/dist/components/combobox/combobox.js +5 -5
- package/dist/components/date-range-slider/date-range-slider.component.js +2 -2
- package/dist/components/date-range-slider/date-range-slider.js +3 -3
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- 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 +4 -4
- package/dist/components/map/map.js +5 -5
- 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 +5 -5
- package/dist/components/spatial-picker/spatial-picker.js +6 -6
- package/dist/components/time-series/time-series.component.d.ts +4 -0
- package/dist/components/time-series/time-series.component.js +25 -23
- 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 +26 -24
- package/dist/components/time-series/time-series.styles.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.component.js +9 -9
- package/dist/components/variable-combobox/variable-combobox.controller.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.js +10 -10
- package/dist/custom-elements.json +352 -326
- package/dist/react/button/index.js +4 -4
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +5 -5
- package/dist/react/date-range-slider/index.js +3 -3
- package/dist/react/icon/index.js +3 -3
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +48 -48
- package/dist/react/loader/index.js +4 -4
- package/dist/react/map/index.js +5 -5
- package/dist/react/plot/index.js +3 -3
- package/dist/react/spatial-picker/index.js +6 -6
- package/dist/react/time-series/index.d.ts +2 -0
- package/dist/react/time-series/index.js +26 -24
- package/dist/react/variable-combobox/index.js +10 -10
- package/dist/terra-ui-components.js +48 -48
- package/dist/types/vue/index.d.ts +68 -66
- package/dist/vscode.html-custom-data.json +74 -69
- package/dist/web-types.json +152 -142
- package/package.json +1 -1
- package/cdn/chunks/chunk.2I657ASB.js +0 -85
- package/cdn/chunks/chunk.2J6CFV4K.js +0 -11
- package/cdn/chunks/chunk.2V4XFMTB.js +0 -7
- package/cdn/chunks/chunk.3ZGFXEAJ.js +0 -273
- package/cdn/chunks/chunk.7VUSSQRI.js +0 -20
- package/cdn/chunks/chunk.AAWOHDFX.js +0 -259
- package/cdn/chunks/chunk.AEIZVWLR.js +0 -24
- package/cdn/chunks/chunk.BLNUBLUS.js +0 -289
- package/cdn/chunks/chunk.DL3FIOYA.js +0 -21
- package/cdn/chunks/chunk.EFAXKQZX.js +0 -11
- package/cdn/chunks/chunk.EMISRECR.js +0 -214
- package/cdn/chunks/chunk.FGILL5W6.js +0 -118
- package/cdn/chunks/chunk.I2NEFB34.js +0 -99
- package/cdn/chunks/chunk.I32QCWMN.js +0 -21
- package/cdn/chunks/chunk.IBEKZVOY.js +0 -80
- package/cdn/chunks/chunk.IP3XWLQI.js +0 -11
- package/cdn/chunks/chunk.JFU3ZCDL.js +0 -359
- package/cdn/chunks/chunk.LELNKRPW.js +0 -685
- package/cdn/chunks/chunk.MDM7S6E6.js +0 -21
- package/cdn/chunks/chunk.MWHQHPUM.js +0 -54
- package/cdn/chunks/chunk.N2DS7NLI.js +0 -102
- package/cdn/chunks/chunk.NYBJ252W.js +0 -318
- package/cdn/chunks/chunk.OIDMX5LU.js +0 -10
- package/cdn/chunks/chunk.OQE2USZJ.js +0 -41
- package/cdn/chunks/chunk.OU4UPMYR.js +0 -330
- package/cdn/chunks/chunk.P25SJ6YA.js +0 -478
- package/cdn/chunks/chunk.RDOXOIYG.js +0 -11
- package/cdn/chunks/chunk.RYPAZDXE.js +0 -61
- package/cdn/chunks/chunk.SCU5LFS3.js +0 -325
- package/cdn/chunks/chunk.SHS42OAD.js +0 -620
- package/cdn/chunks/chunk.SQMSSGQI.js +0 -11
- package/cdn/chunks/chunk.T322FDKI.js +0 -300
- package/cdn/chunks/chunk.UE4FYVUH.js +0 -25
- package/cdn/chunks/chunk.UU46CLE7.js +0 -120
- package/cdn/chunks/chunk.WGFD2LHA.js +0 -83
- package/cdn/chunks/chunk.WL747XGE.js +0 -194
- package/cdn/chunks/chunk.ZCNMYQP2.js +0 -113
- package/cdn/chunks/chunk.ZK7QVWBI.js +0 -37
- package/cdn/chunks/chunk.ZVKNJQPF.js +0 -25
- package/dist/chunks/chunk.27YQ2AOA.js +0 -251
- package/dist/chunks/chunk.2I657ASB.js +0 -85
- package/dist/chunks/chunk.2O76GCUZ.js +0 -21
- package/dist/chunks/chunk.2WZAYHEX.js +0 -214
- package/dist/chunks/chunk.356SSUTI.js +0 -11
- package/dist/chunks/chunk.36AVAQOO.js +0 -404
- package/dist/chunks/chunk.3D66L46K.js +0 -11
- package/dist/chunks/chunk.4MN2BLJS.js +0 -21
- package/dist/chunks/chunk.BB7N2ZYB.js +0 -21
- package/dist/chunks/chunk.D6FJH7WA.js +0 -21
- package/dist/chunks/chunk.DDPOISEU.js +0 -179
- package/dist/chunks/chunk.EBBV6NVD.js +0 -11
- package/dist/chunks/chunk.FGILL5W6.js +0 -118
- package/dist/chunks/chunk.FXIUS5TR.js +0 -21
- package/dist/chunks/chunk.GHCQCYO6.js +0 -179
- package/dist/chunks/chunk.HO5CZIK5.js +0 -11
- package/dist/chunks/chunk.I32QCWMN.js +0 -21
- package/dist/chunks/chunk.IO4MLLEG.js +0 -21
- package/dist/chunks/chunk.J4B6HPXD.js +0 -11
- package/dist/chunks/chunk.J576Q62R.js +0 -11
- package/dist/chunks/chunk.JCZW2OWI.js +0 -11
- package/dist/chunks/chunk.K2HRGRYE.js +0 -11
- package/dist/chunks/chunk.KXNDHJXA.js +0 -404
- package/dist/chunks/chunk.MIAPAPCI.js +0 -21
- package/dist/chunks/chunk.MXAZ646L.js +0 -11
- package/dist/chunks/chunk.NNLAIN52.js +0 -11
- package/dist/chunks/chunk.NO35M7LF.js +0 -21
- package/dist/chunks/chunk.NU4LRV7F.js +0 -21
- package/dist/chunks/chunk.OIGE7CMM.js +0 -11
- package/dist/chunks/chunk.OOUCODFZ.js +0 -179
- package/dist/chunks/chunk.ORZO3BCW.js +0 -102
- package/dist/chunks/chunk.P4QMMCAR.js +0 -24
- package/dist/chunks/chunk.PJXIJK2G.js +0 -102
- package/dist/chunks/chunk.Q7F3GGVA.js +0 -251
- package/dist/chunks/chunk.QQ33BJLG.js +0 -11
- package/dist/chunks/chunk.SBTZE5QZ.js +0 -21
- package/dist/chunks/chunk.SCU5LFS3.js +0 -325
- package/dist/chunks/chunk.SJADWOCY.js +0 -11
- package/dist/chunks/chunk.SMRM4VEQ.js +0 -11
- package/dist/chunks/chunk.T7MOUOBT.js +0 -11
- package/dist/chunks/chunk.UJBBUYTN.js +0 -11
- package/dist/chunks/chunk.WGFD2LHA.js +0 -83
- package/dist/chunks/chunk.WL747XGE.js +0 -194
- package/dist/chunks/chunk.WNRL2JWN.js +0 -21
- package/dist/chunks/chunk.XKDGF53W.js +0 -21
- package/dist/chunks/chunk.XLYZ6HY4.js +0 -179
- package/dist/chunks/chunk.XXV47QL2.js +0 -21
- package/dist/chunks/chunk.Y3WAKQQ3.js +0 -179
- package/dist/chunks/chunk.Y5CHSR6B.js +0 -21
- package/dist/chunks/chunk.YDJ7Z7YW.js +0 -478
- package/dist/chunks/chunk.YDMA4OA3.js +0 -11
- package/dist/chunks/chunk.ZGJAUXFV.js +0 -39
- package/cdn/chunks/{chunk.XR56EMXH.js → chunk.LQCRC4E2.js} +8 -8
|
@@ -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.
|
|
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`
|
|
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
|
-
|
|
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.OLCGKQR3.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,
|
|
@@ -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>';
|
|
@@ -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);
|