@nasa-terra/components 0.0.64 → 0.0.66
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.RLZRFF3I.js → chunk.2A2HFMGZ.js} +1 -1
- package/cdn/chunks/{chunk.LSITBA74.js → chunk.2QANHSCY.js} +1 -1
- package/cdn/chunks/{chunk.IVH6LMFP.js → chunk.2VDC2CLR.js} +1 -1
- package/cdn/chunks/{chunk.IGWX4N7H.js → chunk.3MIPIE6V.js} +1 -1
- package/cdn/chunks/{chunk.R5KSJUJS.js → chunk.5EPVHMFA.js} +1 -1
- package/cdn/chunks/{chunk.K5KGOR5O.js → chunk.5HS2P4QF.js} +1 -1
- package/cdn/chunks/{chunk.QBCKG623.js → chunk.5JKUUXXD.js} +1 -1
- package/cdn/chunks/{chunk.EJSPSGLJ.js → chunk.5JLTH2LZ.js} +26 -1
- package/cdn/chunks/{chunk.RKI4MNB2.js → chunk.5QLXSATY.js} +13 -13
- package/cdn/chunks/{chunk.2UXI7L3Z.js → chunk.6ZUOFZAK.js} +1 -1
- package/cdn/chunks/{chunk.R7LPV4MK.js → chunk.76RNZX2A.js} +1 -1
- package/cdn/chunks/{chunk.ZQQJXV5V.js → chunk.7IQH7BQC.js} +1 -1
- package/cdn/chunks/{chunk.7CI746RD.js → chunk.AOJTBQKP.js} +1 -1
- package/cdn/chunks/{chunk.BOZ7KL3G.js → chunk.BI76W67M.js} +1 -1
- package/cdn/chunks/{chunk.ORTTHTRR.js → chunk.BOGE65ZY.js} +1 -1
- package/cdn/chunks/{chunk.4IW2ACWY.js → chunk.C7NEKS3B.js} +2 -2
- package/cdn/chunks/{chunk.2IQ72HC2.js → chunk.CQUNIMB6.js} +1 -1
- package/cdn/chunks/{chunk.JFEIADEF.js → chunk.DV54QIG7.js} +2 -2
- package/cdn/chunks/{chunk.WZ6P7TO4.js → chunk.DYOCIII6.js} +4 -4
- package/cdn/chunks/{chunk.QD6G5X25.js → chunk.E7LVY6QB.js} +1 -1
- package/cdn/chunks/{chunk.OAXQ6WW5.js → chunk.EXIJCLV5.js} +1 -1
- package/cdn/chunks/{chunk.JJMS4YQI.js → chunk.FHFFLCE4.js} +7 -7
- package/cdn/chunks/{chunk.LRZRZOOA.js → chunk.FP5FRSMY.js} +5 -5
- package/cdn/chunks/{chunk.XOXD2WOT.js → chunk.FRSCLRYD.js} +1 -1
- package/cdn/chunks/{chunk.II36YEIQ.js → chunk.FUKHJNAX.js} +9 -6
- package/cdn/chunks/{chunk.755FQY3M.js → chunk.H6F3VHB2.js} +12 -12
- package/cdn/chunks/{chunk.JLDKV2NB.js → chunk.HZHS4RMI.js} +1 -1
- package/cdn/chunks/{chunk.JSIXNCNG.js → chunk.JDQ6TQCQ.js} +19 -14
- package/cdn/chunks/{chunk.6YDRYXMY.js → chunk.JIBQZDEG.js} +1 -1
- package/cdn/chunks/{chunk.JQICLV3P.js → chunk.K3JEGUHG.js} +3 -3
- package/cdn/chunks/{chunk.TTKA3KTH.js → chunk.M7WGJM54.js} +1 -1
- package/cdn/chunks/{chunk.U5556MHN.js → chunk.MOVW5G4G.js} +6 -6
- package/cdn/chunks/{chunk.ZH356JFJ.js → chunk.N2TTTIPA.js} +12 -12
- package/cdn/chunks/{chunk.CX2OWDSZ.js → chunk.N5GAZEUH.js} +1 -1
- package/cdn/chunks/{chunk.KX4K43F2.js → chunk.NC5TCHFE.js} +2 -2
- package/cdn/chunks/{chunk.JE2LZVOP.js → chunk.OC666EPD.js} +1 -1
- package/cdn/chunks/{chunk.Y6ERTCCJ.js → chunk.PDR3XIUD.js} +6 -0
- package/cdn/chunks/{chunk.CZ5CHJEV.js → chunk.QB7GRCXW.js} +1 -1
- package/cdn/chunks/{chunk.DWB4WJKI.js → chunk.QJ4KM4TA.js} +1 -1
- package/cdn/chunks/{chunk.FYCYWJW7.js → chunk.QVZIEWRW.js} +1 -1
- package/cdn/chunks/{chunk.CH7CM4WG.js → chunk.R4TNI2PU.js} +3 -3
- package/cdn/chunks/{chunk.W7KGG72U.js → chunk.SIQLNOLM.js} +1 -1
- package/cdn/chunks/{chunk.OOJ6KQXC.js → chunk.SUU6GE6N.js} +1 -1
- package/cdn/chunks/{chunk.AEDS2IVC.js → chunk.T27OOS5L.js} +1 -1
- package/cdn/chunks/{chunk.XQ7X7Y6Z.js → chunk.T2KAO3UD.js} +1 -1
- package/cdn/chunks/{chunk.V32IK76Z.js → chunk.T37LTQ4C.js} +14 -9
- package/cdn/chunks/{chunk.77BTAFB3.js → chunk.TAW4DCZW.js} +1 -1
- package/cdn/chunks/{chunk.NYOIWW7M.js → chunk.TIANXDJM.js} +7 -7
- package/cdn/chunks/{chunk.ZPQV5GSR.js → chunk.VON4E7FJ.js} +1 -1
- package/cdn/chunks/{chunk.4IPMV6FL.js → chunk.WN54FAZ2.js} +1 -1
- package/cdn/chunks/{chunk.A3W72BHN.js → chunk.YQK5E5T2.js} +1 -1
- package/cdn/chunks/{chunk.XSJ76IQS.js → chunk.ZDCD6475.js} +1 -1
- package/cdn/chunks/{chunk.WTOBFIYB.js → chunk.ZVC7SBSS.js} +31 -7
- package/cdn/components/accordion/accordion.component.js +3 -3
- package/cdn/components/accordion/accordion.js +4 -4
- package/cdn/components/alert/alert.component.js +2 -2
- package/cdn/components/alert/alert.js +3 -3
- package/cdn/components/browse-variables/browse-variables.component.d.ts +1 -0
- package/cdn/components/browse-variables/browse-variables.component.js +11 -11
- package/cdn/components/browse-variables/browse-variables.controller.js +2 -2
- package/cdn/components/browse-variables/browse-variables.js +12 -12
- package/cdn/components/button/button.component.js +2 -2
- package/cdn/components/button/button.js +3 -3
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +4 -4
- package/cdn/components/combobox/combobox.js +5 -5
- package/cdn/components/data-rods/data-rods.component.js +26 -26
- package/cdn/components/data-rods/data-rods.js +27 -27
- package/cdn/components/data-subsetter/data-subsetter.component.js +21 -21
- package/cdn/components/data-subsetter/data-subsetter.controller.js +2 -2
- package/cdn/components/data-subsetter/data-subsetter.js +22 -22
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +25 -25
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +26 -26
- package/cdn/components/date-picker/date-picker.component.js +3 -3
- package/cdn/components/date-picker/date-picker.js +4 -4
- 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/dialog/dialog.component.js +2 -2
- package/cdn/components/dialog/dialog.js +3 -3
- package/cdn/components/icon/icon.component.js +2 -2
- package/cdn/components/icon/icon.js +3 -3
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/login/login.component.js +9 -9
- package/cdn/components/login/login.js +10 -10
- package/cdn/components/map/leaflet-utils.js +1 -1
- package/cdn/components/map/map.component.js +6 -5
- package/cdn/components/map/map.js +7 -6
- package/cdn/components/plot/plot.component.js +3 -3
- package/cdn/components/plot/plot.js +4 -4
- package/cdn/components/plot-toolbar/plot-toolbar.component.d.ts +1 -0
- package/cdn/components/plot-toolbar/plot-toolbar.component.js +5 -5
- package/cdn/components/plot-toolbar/plot-toolbar.js +6 -6
- package/cdn/components/skeleton/skeleton.component.js +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.component.d.ts +2 -0
- package/cdn/components/spatial-picker/spatial-picker.component.js +7 -7
- package/cdn/components/spatial-picker/spatial-picker.js +8 -8
- package/cdn/components/spatial-picker/spatial-picker.styles.js +1 -1
- package/cdn/components/time-average-map/time-average-map.component.js +9 -9
- package/cdn/components/time-average-map/time-average-map.controller.js +2 -2
- package/cdn/components/time-average-map/time-average-map.js +10 -10
- package/cdn/components/time-series/time-series.component.d.ts +1 -0
- package/cdn/components/time-series/time-series.component.js +13 -13
- package/cdn/components/time-series/time-series.controller.js +2 -2
- package/cdn/components/time-series/time-series.js +14 -14
- package/cdn/components/variable-combobox/variable-combobox.component.js +6 -6
- package/cdn/components/variable-combobox/variable-combobox.js +7 -7
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +7 -7
- package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +1 -1
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +8 -8
- package/cdn/custom-elements.json +1759 -1712
- package/cdn/react/index.d.ts +6 -6
- package/cdn/terra-ui-components.js +91 -91
- package/cdn/types/vue/index.d.ts +225 -219
- package/cdn/vscode.html-custom-data.json +158 -157
- package/cdn/web-types.json +318 -308
- package/dist/chunks/{chunk.ME2IKNPM.js → chunk.2KHKJBOB.js} +1 -1
- package/dist/chunks/{chunk.KVIEDTRG.js → chunk.2OOE2V74.js} +1 -1
- package/dist/chunks/{chunk.U5L2QSBL.js → chunk.2RUMLCNG.js} +1 -1
- package/dist/chunks/{chunk.S2BPUSXT.js → chunk.34ZROIP4.js} +1 -1
- package/dist/chunks/{chunk.WFLLPBSK.js → chunk.3JVESZWK.js} +1 -1
- package/dist/chunks/{chunk.7E2HKL6U.js → chunk.5PBPZZYM.js} +1 -1
- package/dist/chunks/{chunk.2NH3CZZZ.js → chunk.6HUNVCKY.js} +26 -1
- package/dist/chunks/{chunk.OKEYDVUM.js → chunk.6MTPABT6.js} +1 -1
- package/dist/chunks/{chunk.AQOGDZ4T.js → chunk.7RT5CEB6.js} +6 -0
- package/dist/chunks/{chunk.LX25FOB6.js → chunk.7SZ5FLBG.js} +5 -5
- package/dist/chunks/{chunk.I2YZYT2B.js → chunk.AKP5NSM6.js} +14 -9
- package/dist/chunks/{chunk.4FSARFIO.js → chunk.AP4TJGMK.js} +1 -1
- package/dist/chunks/{chunk.Q5FXU5CD.js → chunk.BT3OM7YW.js} +1 -1
- package/dist/chunks/{chunk.TCQUNRTZ.js → chunk.CTYCOFYG.js} +1 -1
- package/dist/chunks/{chunk.XUTN7WYX.js → chunk.DBWZYUMX.js} +1 -1
- package/dist/chunks/{chunk.OGC7AJP3.js → chunk.EOUI57NU.js} +1 -1
- package/dist/chunks/{chunk.PRFLPUK5.js → chunk.ETL6SVKH.js} +3 -3
- package/dist/chunks/{chunk.NFPUQWGV.js → chunk.FHX7T2OA.js} +13 -13
- package/dist/chunks/{chunk.Q4PPKP6U.js → chunk.GM6TGL7L.js} +1 -1
- package/dist/chunks/{chunk.3P5AXHYE.js → chunk.HRP2UCAE.js} +1 -1
- package/dist/chunks/{chunk.EO3NQW6Q.js → chunk.I52J3GOW.js} +2 -2
- package/dist/chunks/{chunk.WDQG7CSH.js → chunk.JGUDK23O.js} +5 -5
- package/dist/chunks/{chunk.ONCAHBEI.js → chunk.JLB3AJLB.js} +7 -7
- package/dist/chunks/{chunk.OC4QTK6B.js → chunk.JLXWDK6Q.js} +1 -1
- package/dist/chunks/{chunk.OUNZ45XC.js → chunk.KB7DEF3R.js} +1 -1
- package/dist/chunks/{chunk.AHRF7VBU.js → chunk.KRJLTCAP.js} +6 -3
- package/dist/chunks/{chunk.3DPKZNWN.js → chunk.MHGQR4W2.js} +1 -1
- package/dist/chunks/{chunk.FBDSOFND.js → chunk.MQJRL4UB.js} +1 -1
- package/dist/chunks/{chunk.AG3VYRFO.js → chunk.N5RBPPIG.js} +1 -1
- package/dist/chunks/{chunk.IZOH52KU.js → chunk.N7QDVMX3.js} +1 -1
- package/dist/chunks/{chunk.6RWPBX4B.js → chunk.NGMZML6J.js} +1 -1
- package/dist/chunks/{chunk.AHOG6HKX.js → chunk.OO7FUQ6P.js} +1 -1
- package/dist/chunks/{chunk.2LTBYPN4.js → chunk.PE7UEIVX.js} +31 -7
- package/dist/chunks/{chunk.RVTURMO5.js → chunk.PSJFGFBP.js} +3 -3
- package/dist/chunks/{chunk.LBKVB3EI.js → chunk.QCPKB2RQ.js} +1 -1
- package/dist/chunks/{chunk.POXSSDZR.js → chunk.QFYOTBLT.js} +15 -10
- package/dist/chunks/{chunk.NQJU5RSP.js → chunk.QXGOVVWV.js} +1 -1
- package/dist/chunks/{chunk.57AS3PVY.js → chunk.RG376NBJ.js} +1 -1
- package/dist/chunks/{chunk.VKHUWPJF.js → chunk.S4SOS6YI.js} +1 -1
- package/dist/chunks/{chunk.5ACVPMQS.js → chunk.SC2Q3UUF.js} +1 -1
- package/dist/chunks/{chunk.7SX5EJUZ.js → chunk.V5URSACK.js} +1 -1
- package/dist/chunks/{chunk.4EQ45IC6.js → chunk.VNUPHGI3.js} +9 -9
- package/dist/chunks/{chunk.QY2D5MZY.js → chunk.VUC6OYZI.js} +1 -1
- package/dist/chunks/{chunk.KQEF5XW2.js → chunk.WOD3IAR2.js} +1 -1
- package/dist/chunks/{chunk.RMYFG5HS.js → chunk.XNHODSUI.js} +1 -1
- package/dist/chunks/{chunk.IAA33R4X.js → chunk.XPEGNLOR.js} +2 -2
- package/dist/chunks/{chunk.XUI4GSXF.js → chunk.XYWAGUD5.js} +1 -1
- package/dist/chunks/{chunk.UI7LI6ME.js → chunk.Y2LZH62Y.js} +1 -1
- package/dist/chunks/{chunk.WKPYLGNW.js → chunk.Y54UJLRZ.js} +1 -1
- package/dist/chunks/{chunk.33FZQUN2.js → chunk.YLMWEEA2.js} +2 -2
- package/dist/chunks/{chunk.STHFWPXN.js → chunk.YO2CHERX.js} +1 -1
- package/dist/chunks/{chunk.RN6T4OBF.js → chunk.YW6MGSTP.js} +1 -1
- package/dist/chunks/{chunk.5IYMVP3K.js → chunk.Z3HX7EEA.js} +11 -11
- package/dist/components/accordion/accordion.component.js +3 -3
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.component.js +2 -2
- package/dist/components/alert/alert.js +3 -3
- package/dist/components/browse-variables/browse-variables.component.d.ts +1 -0
- package/dist/components/browse-variables/browse-variables.component.js +10 -10
- package/dist/components/browse-variables/browse-variables.controller.js +1 -1
- package/dist/components/browse-variables/browse-variables.js +11 -11
- package/dist/components/button/button.component.js +2 -2
- package/dist/components/button/button.js +3 -3
- package/dist/components/chip/chip.component.js +2 -2
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/combobox/combobox.component.js +2 -2
- package/dist/components/combobox/combobox.js +3 -3
- package/dist/components/data-rods/data-rods.component.js +24 -24
- package/dist/components/data-rods/data-rods.js +25 -25
- package/dist/components/data-subsetter/data-subsetter.component.js +20 -20
- package/dist/components/data-subsetter/data-subsetter.js +21 -21
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +24 -24
- package/dist/components/data-subsetter-history/data-subsetter-history.js +25 -25
- package/dist/components/date-picker/date-picker.component.js +3 -3
- package/dist/components/date-picker/date-picker.js +4 -4
- 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/dialog/dialog.component.js +2 -2
- package/dist/components/dialog/dialog.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.js +2 -2
- package/dist/components/loader/loader.js +3 -3
- package/dist/components/login/login.component.js +9 -9
- package/dist/components/login/login.js +10 -10
- package/dist/components/map/leaflet-utils.js +1 -1
- package/dist/components/map/map.component.js +6 -5
- package/dist/components/map/map.js +7 -6
- package/dist/components/plot/plot.component.js +2 -2
- package/dist/components/plot/plot.js +3 -3
- package/dist/components/plot-toolbar/plot-toolbar.component.d.ts +1 -0
- package/dist/components/plot-toolbar/plot-toolbar.component.js +4 -4
- package/dist/components/plot-toolbar/plot-toolbar.js +5 -5
- package/dist/components/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spatial-picker/spatial-picker.component.d.ts +2 -0
- package/dist/components/spatial-picker/spatial-picker.component.js +7 -7
- package/dist/components/spatial-picker/spatial-picker.js +8 -8
- package/dist/components/spatial-picker/spatial-picker.styles.js +1 -1
- package/dist/components/time-average-map/time-average-map.component.js +6 -6
- package/dist/components/time-average-map/time-average-map.js +7 -7
- package/dist/components/time-series/time-series.component.d.ts +1 -0
- package/dist/components/time-series/time-series.component.js +10 -10
- package/dist/components/time-series/time-series.js +11 -11
- package/dist/components/variable-combobox/variable-combobox.component.js +6 -6
- package/dist/components/variable-combobox/variable-combobox.js +7 -7
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +6 -6
- package/dist/components/variable-keyword-search/variable-keyword-search.js +7 -7
- package/dist/custom-elements.json +1759 -1712
- package/dist/react/index.d.ts +6 -6
- package/dist/terra-ui-components.js +87 -87
- package/dist/{terra_ui_components-0.0.64-py3-none-any.whl → terra_ui_components-0.0.66-py3-none-any.whl} +0 -0
- package/dist/{terra_ui_components-0.0.64.tar.gz → terra_ui_components-0.0.66.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +225 -219
- package/dist/vscode.html-custom-data.json +158 -157
- package/dist/web-types.json +318 -308
- package/package.json +1 -1
- package/cdn/chunks/{chunk.U5XB7PAD.js → chunk.2UIKXGCO.js} +3 -3
- package/cdn/chunks/{chunk.665QSS6M.js → chunk.FK35YOPT.js} +4 -4
- package/cdn/chunks/{chunk.ICVN26UP.js → chunk.PI4LM4FQ.js} +3 -3
|
@@ -10,9 +10,14 @@ import {
|
|
|
10
10
|
|
|
11
11
|
// src/components/browse-variables/browse-variables.controller.ts
|
|
12
12
|
import { Task } from "@lit/task";
|
|
13
|
-
var _host, _catalog, _getCatalogRepository, getCatalogRepository_fn;
|
|
13
|
+
var _host, _catalog, _selectVariables, selectVariables_fn, _getCatalogRepository, getCatalogRepository_fn;
|
|
14
14
|
var BrowseVariablesController = class {
|
|
15
|
+
// TODO: fix this type, it should be VariableCatalogInterface
|
|
15
16
|
constructor(host) {
|
|
17
|
+
/**
|
|
18
|
+
* Selects variables from the search response that are in the selectedVariableEntryIds list
|
|
19
|
+
*/
|
|
20
|
+
__privateAdd(this, _selectVariables);
|
|
16
21
|
__privateAdd(this, _getCatalogRepository);
|
|
17
22
|
__privateAdd(this, _host, void 0);
|
|
18
23
|
__privateAdd(this, _catalog, void 0);
|
|
@@ -27,6 +32,7 @@ var BrowseVariablesController = class {
|
|
|
27
32
|
signal
|
|
28
33
|
}
|
|
29
34
|
);
|
|
35
|
+
__privateMethod(this, _selectVariables, selectVariables_fn).call(this, searchResponse);
|
|
30
36
|
return searchResponse;
|
|
31
37
|
},
|
|
32
38
|
args: () => [__privateGet(this, _host).searchQuery, __privateGet(this, _host).selectedFacets]
|
|
@@ -50,6 +56,25 @@ var BrowseVariablesController = class {
|
|
|
50
56
|
};
|
|
51
57
|
_host = new WeakMap();
|
|
52
58
|
_catalog = new WeakMap();
|
|
59
|
+
_selectVariables = new WeakSet();
|
|
60
|
+
selectVariables_fn = async function(searchResponse) {
|
|
61
|
+
if (!__privateGet(this, _host).selectedVariableEntryIds || __privateGet(this, _host).selectedVariables.length > 0) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const variableEntryIds = __privateGet(this, _host).selectedVariableEntryIds.split(",");
|
|
65
|
+
const variables = searchResponse.variables.filter((variable) => {
|
|
66
|
+
return variableEntryIds.includes(variable.dataFieldId) || variableEntryIds.includes(
|
|
67
|
+
`${variable.dataProductShortName}_${variable.dataProductVersion}_${variable.dataFieldShortName}`
|
|
68
|
+
);
|
|
69
|
+
});
|
|
70
|
+
const missingVariableIds = variableEntryIds.filter(
|
|
71
|
+
(id) => !variables.some((variable) => variable.dataFieldId === id)
|
|
72
|
+
);
|
|
73
|
+
const missingVariables = await Promise.all(
|
|
74
|
+
missingVariableIds.map((id) => __privateGet(this, _catalog).getVariable(id))
|
|
75
|
+
);
|
|
76
|
+
__privateGet(this, _host).selectedVariables = [...variables, ...missingVariables];
|
|
77
|
+
};
|
|
53
78
|
_getCatalogRepository = new WeakSet();
|
|
54
79
|
getCatalogRepository_fn = function() {
|
|
55
80
|
if (__privateGet(this, _host).catalog === "giovanni") {
|
|
@@ -6,26 +6,26 @@ import {
|
|
|
6
6
|
} from "./chunk.VSZLMYWV.js";
|
|
7
7
|
import {
|
|
8
8
|
TerraPlotToolbar
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.KRJLTCAP.js";
|
|
10
10
|
import {
|
|
11
11
|
AuthController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.AP4TJGMK.js";
|
|
13
13
|
import {
|
|
14
14
|
GiovanniVariableCatalog
|
|
15
15
|
} from "./chunk.2OG44KDU.js";
|
|
16
16
|
import {
|
|
17
17
|
TerraButton
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.CTYCOFYG.js";
|
|
19
19
|
import {
|
|
20
20
|
TerraIcon
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.QCPKB2RQ.js";
|
|
22
22
|
import {
|
|
23
23
|
watch
|
|
24
24
|
} from "./chunk.DTUHBE3U.js";
|
|
25
25
|
import {
|
|
26
26
|
TerraElement,
|
|
27
27
|
component_styles_default
|
|
28
|
-
} from "./chunk.
|
|
28
|
+
} from "./chunk.MHGQR4W2.js";
|
|
29
29
|
import {
|
|
30
30
|
__decorateClass,
|
|
31
31
|
__privateAdd,
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TerraVariableKeywordSearch
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PSJFGFBP.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraSkeleton
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.N5RBPPIG.js";
|
|
7
7
|
import {
|
|
8
8
|
getRandomIntInclusive
|
|
9
9
|
} from "./chunk.UZAIWUWC.js";
|
|
10
10
|
import {
|
|
11
11
|
TerraLoader
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.N7QDVMX3.js";
|
|
13
13
|
import {
|
|
14
14
|
BrowseVariablesController
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.6HUNVCKY.js";
|
|
16
16
|
import {
|
|
17
17
|
browse_variables_styles_default
|
|
18
18
|
} from "./chunk.NMWP5DQX.js";
|
|
19
19
|
import {
|
|
20
20
|
TerraButton
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.CTYCOFYG.js";
|
|
22
22
|
import {
|
|
23
23
|
TerraIcon
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.QCPKB2RQ.js";
|
|
25
25
|
import {
|
|
26
26
|
watch
|
|
27
27
|
} from "./chunk.DTUHBE3U.js";
|
|
28
28
|
import {
|
|
29
29
|
TerraElement,
|
|
30
30
|
component_styles_default
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.MHGQR4W2.js";
|
|
32
32
|
import {
|
|
33
33
|
__decorateClass,
|
|
34
34
|
__objRest,
|
|
@@ -274,7 +274,8 @@ renderFacet_fn = function(facetKey, title, fields, open) {
|
|
|
274
274
|
@change=${() => __privateMethod(this, _selectFacetField, selectFacetField_fn).call(this, facetKey, field.name)}
|
|
275
275
|
?checked=${(_a = this.selectedFacets[facetKey]) == null ? void 0 : _a.includes(field.name)}
|
|
276
276
|
/>
|
|
277
|
-
${field.name}
|
|
277
|
+
${field.name}
|
|
278
|
+
<!-- TODO: add count back in once we aren't filtering by Cloud Giovanni Catalog (or Cloud Giovanni supports all variables)(${field.count})--></label
|
|
278
279
|
>
|
|
279
280
|
</div>
|
|
280
281
|
` : nothing;
|
|
@@ -298,8 +299,9 @@ renderVariablesBrowse_fn = function() {
|
|
|
298
299
|
];
|
|
299
300
|
return html`<div class="scrollable variables-container">
|
|
300
301
|
<header>
|
|
302
|
+
<!-- TODO: add back in once we aren't filtering by Cloud Giovanni Catalog (or Cloud Giovanni supports all variables)
|
|
301
303
|
Showing ${__privateGet(this, _controller).total} variables
|
|
302
|
-
${this.searchQuery ? `associated with '${this.searchQuery}'` : ""}
|
|
304
|
+
${this.searchQuery ? `associated with '${this.searchQuery}'` : ""}-->
|
|
303
305
|
<!-- Sorting and Grouping feature still needs a UI / UX feature discussion.
|
|
304
306
|
<menu>
|
|
305
307
|
<li>
|
|
@@ -472,6 +474,9 @@ TerraBrowseVariables.dependencies = {
|
|
|
472
474
|
__decorateClass([
|
|
473
475
|
property()
|
|
474
476
|
], TerraBrowseVariables.prototype, "catalog", 2);
|
|
477
|
+
__decorateClass([
|
|
478
|
+
property({ attribute: "selected-variable-entry-ids", reflect: true })
|
|
479
|
+
], TerraBrowseVariables.prototype, "selectedVariableEntryIds", 2);
|
|
475
480
|
__decorateClass([
|
|
476
481
|
state()
|
|
477
482
|
], TerraBrowseVariables.prototype, "searchQuery", 2);
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
} from "./chunk.FRSW4UHB.js";
|
|
15
15
|
import {
|
|
16
16
|
icon_default
|
|
17
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.2OOE2V74.js";
|
|
18
18
|
import {
|
|
19
19
|
button_default
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.NGMZML6J.js";
|
|
21
21
|
import {
|
|
22
22
|
watch
|
|
23
23
|
} from "./chunk.DTUHBE3U.js";
|
|
24
24
|
import {
|
|
25
25
|
TerraElement,
|
|
26
26
|
component_styles_default
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.MHGQR4W2.js";
|
|
28
28
|
import {
|
|
29
29
|
__decorateClass,
|
|
30
30
|
__privateAdd,
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Leaflet
|
|
3
|
+
} from "./chunk.XPEGNLOR.js";
|
|
4
|
+
import {
|
|
5
|
+
leaflet_styles_default
|
|
6
|
+
} from "./chunk.HNQMK3PU.js";
|
|
1
7
|
import {
|
|
2
8
|
MapController
|
|
3
9
|
} from "./chunk.JY5KBXRE.js";
|
|
@@ -7,19 +13,13 @@ import {
|
|
|
7
13
|
import {
|
|
8
14
|
leaflet_draw_styles_default
|
|
9
15
|
} from "./chunk.445A7YVG.js";
|
|
10
|
-
import {
|
|
11
|
-
Leaflet
|
|
12
|
-
} from "./chunk.IAA33R4X.js";
|
|
13
|
-
import {
|
|
14
|
-
leaflet_styles_default
|
|
15
|
-
} from "./chunk.HNQMK3PU.js";
|
|
16
16
|
import {
|
|
17
17
|
watch
|
|
18
18
|
} from "./chunk.DTUHBE3U.js";
|
|
19
19
|
import {
|
|
20
20
|
TerraElement,
|
|
21
21
|
component_styles_default
|
|
22
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.MHGQR4W2.js";
|
|
23
23
|
import {
|
|
24
24
|
__decorateClass,
|
|
25
25
|
__privateAdd,
|
|
@@ -69,14 +69,14 @@ var TerraMap = class extends TerraElement {
|
|
|
69
69
|
hideBoundingBoxDrawTool: this.hideBoundingBoxSelection,
|
|
70
70
|
hidePointSelectionDrawTool: this.hidePointSelection
|
|
71
71
|
});
|
|
72
|
-
this.map.on(
|
|
73
|
-
"
|
|
74
|
-
(layer) => this.emit("terra-map-change", {
|
|
72
|
+
this.map.on("draw", (layer) => {
|
|
73
|
+
this.emit("terra-map-change", {
|
|
75
74
|
detail: __spreadValues({
|
|
76
|
-
cause: "draw"
|
|
75
|
+
cause: "draw",
|
|
76
|
+
type: "latLng" in layer ? "point" /* POINT */ : "bounds" in layer ? "bbox" /* BBOX */ : void 0
|
|
77
77
|
}, layer)
|
|
78
|
-
})
|
|
79
|
-
);
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
80
|
this.map.on(
|
|
81
81
|
"clear",
|
|
82
82
|
(_e) => this.emit("terra-map-change", {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TerraIcon
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.QCPKB2RQ.js";
|
|
4
4
|
import {
|
|
5
5
|
accordion_styles_default
|
|
6
6
|
} from "./chunk.MQOXBVDK.js";
|
|
7
7
|
import {
|
|
8
8
|
TerraElement,
|
|
9
9
|
component_styles_default
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.MHGQR4W2.js";
|
|
11
11
|
import {
|
|
12
12
|
__decorateClass
|
|
13
13
|
} from "./chunk.TVFCHGU3.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loader_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.Y54UJLRZ.js";
|
|
4
4
|
import {
|
|
5
5
|
login_styles_default
|
|
6
6
|
} from "./chunk.TCEJ3MS6.js";
|
|
7
7
|
import {
|
|
8
8
|
AuthController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.AP4TJGMK.js";
|
|
10
10
|
import {
|
|
11
11
|
icon_default
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.2OOE2V74.js";
|
|
13
13
|
import {
|
|
14
14
|
button_default
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.NGMZML6J.js";
|
|
16
16
|
import {
|
|
17
17
|
TerraElement,
|
|
18
18
|
component_styles_default
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.MHGQR4W2.js";
|
|
20
20
|
import {
|
|
21
21
|
__decorateClass,
|
|
22
22
|
__privateAdd,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TerraDialog
|
|
3
|
-
} from "./chunk.
|
|
4
|
-
import {
|
|
5
|
-
TerraDataSubsetter
|
|
6
|
-
} from "./chunk.5IYMVP3K.js";
|
|
3
|
+
} from "./chunk.XNHODSUI.js";
|
|
7
4
|
import {
|
|
8
5
|
DataSubsetterHistoryController
|
|
9
6
|
} from "./chunk.GXQRUGWI.js";
|
|
10
7
|
import {
|
|
11
8
|
data_subsetter_history_styles_default
|
|
12
9
|
} from "./chunk.7674U7FT.js";
|
|
10
|
+
import {
|
|
11
|
+
TerraDataSubsetter
|
|
12
|
+
} from "./chunk.Z3HX7EEA.js";
|
|
13
13
|
import {
|
|
14
14
|
AuthController
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.AP4TJGMK.js";
|
|
16
16
|
import {
|
|
17
17
|
TerraIcon
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.QCPKB2RQ.js";
|
|
19
19
|
import {
|
|
20
20
|
TerraElement,
|
|
21
21
|
component_styles_default
|
|
22
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.MHGQR4W2.js";
|
|
23
23
|
import {
|
|
24
24
|
__decorateClass,
|
|
25
25
|
__privateAdd,
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
} from "./chunk.EC75KAKW.js";
|
|
8
8
|
import {
|
|
9
9
|
TerraButton
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.CTYCOFYG.js";
|
|
11
11
|
import {
|
|
12
12
|
TerraIcon
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.QCPKB2RQ.js";
|
|
14
14
|
import {
|
|
15
15
|
watch
|
|
16
16
|
} from "./chunk.DTUHBE3U.js";
|
|
17
17
|
import {
|
|
18
18
|
TerraElement,
|
|
19
19
|
component_styles_default
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.MHGQR4W2.js";
|
|
21
21
|
import {
|
|
22
22
|
__decorateClass,
|
|
23
23
|
__privateAdd,
|
|
@@ -52,6 +52,9 @@ var TerraPlotToolbar = class extends TerraElement {
|
|
|
52
52
|
}
|
|
53
53
|
this.menu.focus();
|
|
54
54
|
}
|
|
55
|
+
closeMenu() {
|
|
56
|
+
this.activeMenuItem = null;
|
|
57
|
+
}
|
|
55
58
|
render() {
|
|
56
59
|
return cache(
|
|
57
60
|
!this.catalogVariable ? html`<div class="spacer"></div>` : html` <header>
|
|
@@ -520,7 +520,7 @@ var TerraElement = class extends LitElement {
|
|
|
520
520
|
};
|
|
521
521
|
/* eslint-disable */
|
|
522
522
|
// @ts-expect-error This is auto-injected at build time.
|
|
523
|
-
TerraElement.version = "0.0.
|
|
523
|
+
TerraElement.version = "0.0.66";
|
|
524
524
|
TerraElement.dependencies = {};
|
|
525
525
|
__decorateClass([
|
|
526
526
|
property()
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
spatial_picker_styles_default
|
|
3
|
-
} from "./chunk.AQOGDZ4T.js";
|
|
4
1
|
import {
|
|
5
2
|
TerraMap
|
|
6
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.FHX7T2OA.js";
|
|
7
4
|
import {
|
|
8
5
|
StringifyBoundingBox,
|
|
9
6
|
parseBoundingBox
|
|
10
|
-
} from "./chunk.
|
|
7
|
+
} from "./chunk.XPEGNLOR.js";
|
|
8
|
+
import {
|
|
9
|
+
spatial_picker_styles_default
|
|
10
|
+
} from "./chunk.7RT5CEB6.js";
|
|
11
11
|
import {
|
|
12
12
|
TerraElement,
|
|
13
13
|
component_styles_default
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.MHGQR4W2.js";
|
|
15
15
|
import {
|
|
16
16
|
__decorateClass
|
|
17
17
|
} from "./chunk.TVFCHGU3.js";
|
|
@@ -35,8 +35,24 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
35
35
|
this.isExpanded = false;
|
|
36
36
|
this.inline = false;
|
|
37
37
|
this.showMapOnFocus = false;
|
|
38
|
+
this.error = "";
|
|
39
|
+
}
|
|
40
|
+
setValue(value) {
|
|
41
|
+
try {
|
|
42
|
+
this.mapValue = parseBoundingBox(value);
|
|
43
|
+
this.error = "";
|
|
44
|
+
this._emitMapChange();
|
|
45
|
+
} catch (error) {
|
|
46
|
+
this.error = error instanceof Error ? error.message : "Invalid spatial area (format: LAT, LNG or LAT, LNG, LAT, LNG)";
|
|
47
|
+
}
|
|
38
48
|
}
|
|
39
49
|
_blur(e) {
|
|
50
|
+
try {
|
|
51
|
+
this.mapValue = this.spatialInput.value ? parseBoundingBox(this.spatialInput.value) : [];
|
|
52
|
+
this.error = "";
|
|
53
|
+
} catch (error) {
|
|
54
|
+
this.error = error instanceof Error ? error.message : "Invalid spatial area (format: LAT, LNG or LAT, LNG, LAT, LNG)";
|
|
55
|
+
}
|
|
40
56
|
this._emitMapChange();
|
|
41
57
|
const relatedTarget = e.relatedTarget;
|
|
42
58
|
if (!(relatedTarget == null ? void 0 : relatedTarget.closest("terra-map"))) {
|
|
@@ -52,7 +68,11 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
52
68
|
this.isExpanded = !this.isExpanded;
|
|
53
69
|
}
|
|
54
70
|
_emitMapChange() {
|
|
55
|
-
|
|
71
|
+
var _a;
|
|
72
|
+
const layer = (_a = this.map) == null ? void 0 : _a.getDrawLayer();
|
|
73
|
+
if (!layer) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
56
76
|
if ("getLatLng" in layer) {
|
|
57
77
|
this.mapValue = layer.getLatLng();
|
|
58
78
|
this.emit("terra-map-change", {
|
|
@@ -172,6 +192,7 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
172
192
|
</svg>
|
|
173
193
|
</terra-button>
|
|
174
194
|
</div>
|
|
195
|
+
${this.error ? html`<div class="spatial-picker__error">${this.error}</div>` : nothing}
|
|
175
196
|
${expanded ? html`<div
|
|
176
197
|
style="${this.inline ? "position: static; width: 100%;" : ""}"
|
|
177
198
|
>
|
|
@@ -237,6 +258,9 @@ __decorateClass([
|
|
|
237
258
|
__decorateClass([
|
|
238
259
|
state()
|
|
239
260
|
], TerraSpatialPicker.prototype, "mapValue", 2);
|
|
261
|
+
__decorateClass([
|
|
262
|
+
state()
|
|
263
|
+
], TerraSpatialPicker.prototype, "error", 2);
|
|
240
264
|
__decorateClass([
|
|
241
265
|
query(".spatial-picker__input")
|
|
242
266
|
], TerraSpatialPicker.prototype, "spatialInput", 2);
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
} from "./chunk.YY65ZHR5.js";
|
|
12
12
|
import {
|
|
13
13
|
icon_default
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.2OOE2V74.js";
|
|
15
15
|
import {
|
|
16
16
|
button_default
|
|
17
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.NGMZML6J.js";
|
|
18
18
|
import {
|
|
19
19
|
watch
|
|
20
20
|
} from "./chunk.DTUHBE3U.js";
|
|
21
21
|
import {
|
|
22
22
|
TerraElement,
|
|
23
23
|
component_styles_default
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.MHGQR4W2.js";
|
|
25
25
|
import {
|
|
26
26
|
__decorateClass,
|
|
27
27
|
__privateAdd,
|