@nasa-terra/components 0.0.64 → 0.0.65
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.QBCKG623.js → chunk.23GAIRRD.js} +1 -1
- package/cdn/chunks/{chunk.CX2OWDSZ.js → chunk.23YT7VH3.js} +1 -1
- package/cdn/chunks/{chunk.OAXQ6WW5.js → chunk.2ERB2FZJ.js} +1 -1
- package/cdn/chunks/{chunk.7CI746RD.js → chunk.3FVCBUU5.js} +1 -1
- package/cdn/chunks/{chunk.FYCYWJW7.js → chunk.3SRLYD5E.js} +1 -1
- package/cdn/chunks/{chunk.TTKA3KTH.js → chunk.3XSRI7D6.js} +1 -1
- package/cdn/chunks/{chunk.4IPMV6FL.js → chunk.4H5D5LNS.js} +1 -1
- package/cdn/chunks/{chunk.OOJ6KQXC.js → chunk.4VLRV7TA.js} +4 -4
- package/cdn/chunks/{chunk.RLZRFF3I.js → chunk.4ZEPFSRR.js} +1 -1
- package/cdn/chunks/{chunk.EJSPSGLJ.js → chunk.5JLTH2LZ.js} +26 -1
- package/cdn/chunks/{chunk.R7LPV4MK.js → chunk.5TJGINB5.js} +1 -1
- package/cdn/chunks/{chunk.IGWX4N7H.js → chunk.6EEM6UIO.js} +1 -1
- package/cdn/chunks/{chunk.II36YEIQ.js → chunk.77W4E4VM.js} +9 -6
- package/cdn/chunks/{chunk.DWB4WJKI.js → chunk.7BCZRW6T.js} +1 -1
- package/cdn/chunks/{chunk.XSJ76IQS.js → chunk.7KPRKFPH.js} +1 -1
- package/cdn/chunks/{chunk.CH7CM4WG.js → chunk.7TF5BL2A.js} +3 -3
- package/cdn/chunks/{chunk.2UXI7L3Z.js → chunk.AOREFFRM.js} +1 -1
- package/cdn/chunks/{chunk.4IW2ACWY.js → chunk.C7NEKS3B.js} +2 -2
- package/cdn/chunks/{chunk.LSITBA74.js → chunk.DS2TUYJH.js} +1 -1
- package/cdn/chunks/{chunk.ZPQV5GSR.js → chunk.E357X2E5.js} +1 -1
- package/cdn/chunks/{chunk.CZ5CHJEV.js → chunk.E7F2QQDE.js} +1 -1
- package/cdn/chunks/{chunk.JFEIADEF.js → chunk.EGIKXAEJ.js} +2 -2
- package/cdn/chunks/{chunk.A3W72BHN.js → chunk.ETEUHDG4.js} +1 -1
- package/cdn/chunks/{chunk.XQ7X7Y6Z.js → chunk.EY3Y2MKZ.js} +1 -1
- package/cdn/chunks/{chunk.JJMS4YQI.js → chunk.FYLYLIDU.js} +7 -7
- package/cdn/chunks/{chunk.JLDKV2NB.js → chunk.G24V5TLW.js} +1 -1
- package/cdn/chunks/{chunk.QD6G5X25.js → chunk.HMLTTIBQ.js} +1 -1
- package/cdn/chunks/{chunk.W7KGG72U.js → chunk.IPSMZA3Y.js} +1 -1
- package/cdn/chunks/{chunk.IVH6LMFP.js → chunk.JCQIEOOL.js} +1 -1
- package/cdn/chunks/{chunk.WZ6P7TO4.js → chunk.JY5D7TM7.js} +4 -4
- package/cdn/chunks/{chunk.ORTTHTRR.js → chunk.LLPDZTE6.js} +1 -1
- package/cdn/chunks/{chunk.R5KSJUJS.js → chunk.LXQL7H3Z.js} +1 -1
- package/cdn/chunks/{chunk.JQICLV3P.js → chunk.MUDFTA3K.js} +3 -3
- package/cdn/chunks/{chunk.755FQY3M.js → chunk.NM4KGKQG.js} +10 -10
- package/cdn/chunks/{chunk.6YDRYXMY.js → chunk.NOHN7ZHK.js} +1 -1
- package/cdn/chunks/{chunk.U5556MHN.js → chunk.OMLDFSTP.js} +6 -6
- package/cdn/chunks/{chunk.XOXD2WOT.js → chunk.P6Z62GLD.js} +1 -1
- package/cdn/chunks/{chunk.Y6ERTCCJ.js → chunk.PDR3XIUD.js} +6 -0
- package/cdn/chunks/{chunk.LRZRZOOA.js → chunk.QECLAEDS.js} +7 -7
- package/cdn/chunks/{chunk.2IQ72HC2.js → chunk.QOZ4FUY6.js} +1 -1
- package/cdn/chunks/{chunk.ZQQJXV5V.js → chunk.SDNJ6Y7P.js} +1 -1
- package/cdn/chunks/{chunk.77BTAFB3.js → chunk.SHPI4DBO.js} +1 -1
- package/cdn/chunks/{chunk.WTOBFIYB.js → chunk.T6ZRPLEM.js} +20 -5
- package/cdn/chunks/{chunk.KX4K43F2.js → chunk.TCPWXBQQ.js} +2 -2
- package/cdn/chunks/{chunk.V32IK76Z.js → chunk.VJD6555T.js} +14 -9
- package/cdn/chunks/{chunk.AEDS2IVC.js → chunk.WABCYOTD.js} +1 -1
- package/cdn/chunks/{chunk.JE2LZVOP.js → chunk.WBIDCSOL.js} +1 -1
- package/cdn/chunks/{chunk.BOZ7KL3G.js → chunk.X3VZXLR7.js} +1 -1
- package/cdn/chunks/{chunk.K5KGOR5O.js → chunk.XULBJSSM.js} +1 -1
- package/cdn/chunks/{chunk.NYOIWW7M.js → chunk.YDWFGZNL.js} +7 -7
- package/cdn/chunks/{chunk.JSIXNCNG.js → chunk.YMUOWBFO.js} +19 -14
- package/cdn/chunks/{chunk.RKI4MNB2.js → chunk.YPQISKX3.js} +11 -11
- package/cdn/chunks/{chunk.ZH356JFJ.js → chunk.ZBCDTERI.js} +12 -12
- 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 +25 -25
- package/cdn/components/data-rods/data-rods.js +26 -26
- package/cdn/components/data-subsetter/data-subsetter.component.js +20 -20
- package/cdn/components/data-subsetter/data-subsetter.controller.js +2 -2
- package/cdn/components/data-subsetter/data-subsetter.js +21 -21
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +24 -24
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +25 -25
- 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 +3 -3
- package/cdn/components/date-range-slider/date-range-slider.js +4 -4
- 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 +5 -4
- package/cdn/components/map/map.js +6 -5
- 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 +1 -0
- package/cdn/components/spatial-picker/spatial-picker.component.js +6 -6
- package/cdn/components/spatial-picker/spatial-picker.js +7 -7
- 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 +1503 -1468
- package/cdn/react/index.d.ts +7 -7
- package/cdn/terra-ui-components.js +89 -89
- package/cdn/types/vue/index.d.ts +195 -189
- package/cdn/vscode.html-custom-data.json +158 -157
- package/cdn/web-types.json +315 -305
- package/dist/chunks/{chunk.2LTBYPN4.js → chunk.2YWLPWOH.js} +20 -5
- package/dist/chunks/{chunk.PRFLPUK5.js → chunk.3C6XAHHX.js} +3 -3
- package/dist/chunks/{chunk.OC4QTK6B.js → chunk.3JF5C2G5.js} +1 -1
- package/dist/chunks/{chunk.4FSARFIO.js → chunk.3M5MSIZB.js} +1 -1
- package/dist/chunks/{chunk.ME2IKNPM.js → chunk.3SFIQYFQ.js} +1 -1
- package/dist/chunks/{chunk.WKPYLGNW.js → chunk.3XTTMUZJ.js} +1 -1
- package/dist/chunks/{chunk.RVTURMO5.js → chunk.3ZWIYMDC.js} +3 -3
- package/dist/chunks/{chunk.AHRF7VBU.js → chunk.4AZAH4LW.js} +6 -3
- package/dist/chunks/{chunk.VKHUWPJF.js → chunk.4NF2KOIM.js} +1 -1
- package/dist/chunks/{chunk.2NH3CZZZ.js → chunk.6HUNVCKY.js} +26 -1
- package/dist/chunks/{chunk.Q4PPKP6U.js → chunk.6K4POAM7.js} +4 -4
- package/dist/chunks/{chunk.AQOGDZ4T.js → chunk.7RT5CEB6.js} +6 -0
- package/dist/chunks/{chunk.LX25FOB6.js → chunk.BEZFGWIZ.js} +5 -5
- package/dist/chunks/{chunk.XUTN7WYX.js → chunk.CZJTVJPC.js} +1 -1
- package/dist/chunks/{chunk.WDQG7CSH.js → chunk.DZWV4IM5.js} +7 -7
- package/dist/chunks/{chunk.NQJU5RSP.js → chunk.F5LAVH73.js} +1 -1
- package/dist/chunks/{chunk.6RWPBX4B.js → chunk.FMYA7ZPR.js} +1 -1
- package/dist/chunks/{chunk.33FZQUN2.js → chunk.G6WOMVTJ.js} +2 -2
- package/dist/chunks/{chunk.RMYFG5HS.js → chunk.G7J4TFTU.js} +1 -1
- package/dist/chunks/{chunk.4EQ45IC6.js → chunk.HFYTJDZ2.js} +7 -7
- package/dist/chunks/{chunk.I2YZYT2B.js → chunk.HM25M7E4.js} +14 -9
- package/dist/chunks/{chunk.FBDSOFND.js → chunk.I432IVWZ.js} +1 -1
- package/dist/chunks/{chunk.LBKVB3EI.js → chunk.IDHJPLBH.js} +1 -1
- package/dist/chunks/{chunk.OGC7AJP3.js → chunk.IED6LPIF.js} +1 -1
- package/dist/chunks/{chunk.AG3VYRFO.js → chunk.JEC6LGA6.js} +1 -1
- package/dist/chunks/{chunk.7E2HKL6U.js → chunk.JKS7PEVF.js} +1 -1
- package/dist/chunks/{chunk.STHFWPXN.js → chunk.JLLXYZ5M.js} +1 -1
- package/dist/chunks/{chunk.IZOH52KU.js → chunk.K4ETWAVK.js} +1 -1
- package/dist/chunks/{chunk.Q5FXU5CD.js → chunk.ME7XUVJJ.js} +1 -1
- package/dist/chunks/{chunk.5IYMVP3K.js → chunk.MYYMNVQO.js} +11 -11
- package/dist/chunks/{chunk.57AS3PVY.js → chunk.NAOMBLUK.js} +1 -1
- package/dist/chunks/{chunk.S2BPUSXT.js → chunk.NI3XJVYH.js} +1 -1
- package/dist/chunks/{chunk.RN6T4OBF.js → chunk.O4AP7N2Q.js} +1 -1
- package/dist/chunks/{chunk.U5L2QSBL.js → chunk.OCUMFXRD.js} +1 -1
- package/dist/chunks/{chunk.TCQUNRTZ.js → chunk.POAU27Y4.js} +1 -1
- package/dist/chunks/{chunk.7SX5EJUZ.js → chunk.POFUNMXD.js} +1 -1
- package/dist/chunks/{chunk.3P5AXHYE.js → chunk.PSYZ5FUZ.js} +1 -1
- package/dist/chunks/{chunk.UI7LI6ME.js → chunk.PZRTGUNT.js} +1 -1
- package/dist/chunks/{chunk.QY2D5MZY.js → chunk.QU2MMH2N.js} +1 -1
- package/dist/chunks/{chunk.5ACVPMQS.js → chunk.QXJXYDCV.js} +1 -1
- package/dist/chunks/{chunk.ONCAHBEI.js → chunk.RXK4P7V6.js} +7 -7
- package/dist/chunks/{chunk.OUNZ45XC.js → chunk.SDRHJGKR.js} +1 -1
- package/dist/chunks/{chunk.WFLLPBSK.js → chunk.SSFUEPYG.js} +1 -1
- package/dist/chunks/{chunk.KVIEDTRG.js → chunk.STGG57OG.js} +1 -1
- package/dist/chunks/{chunk.AHOG6HKX.js → chunk.TKGFOROJ.js} +1 -1
- package/dist/chunks/{chunk.OKEYDVUM.js → chunk.TVHRM3IC.js} +1 -1
- package/dist/chunks/{chunk.KQEF5XW2.js → chunk.UHK7ATZH.js} +1 -1
- package/dist/chunks/{chunk.XUI4GSXF.js → chunk.WFF7SRV6.js} +1 -1
- package/dist/chunks/{chunk.NFPUQWGV.js → chunk.WWMUBDIA.js} +11 -11
- package/dist/chunks/{chunk.3DPKZNWN.js → chunk.XFYOJIAC.js} +1 -1
- package/dist/chunks/{chunk.IAA33R4X.js → chunk.XPEGNLOR.js} +2 -2
- package/dist/chunks/{chunk.POXSSDZR.js → chunk.YNFVFK4N.js} +15 -10
- package/dist/chunks/{chunk.EO3NQW6Q.js → chunk.ZLHUO2CY.js} +2 -2
- 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 +22 -22
- package/dist/components/data-rods/data-rods.js +23 -23
- package/dist/components/data-subsetter/data-subsetter.component.js +19 -19
- package/dist/components/data-subsetter/data-subsetter.js +20 -20
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +23 -23
- package/dist/components/data-subsetter-history/data-subsetter-history.js +24 -24
- 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 +3 -3
- package/dist/components/date-range-slider/date-range-slider.js +4 -4
- 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 +5 -4
- package/dist/components/map/map.js +6 -5
- 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 +1 -0
- package/dist/components/spatial-picker/spatial-picker.component.js +6 -6
- package/dist/components/spatial-picker/spatial-picker.js +7 -7
- 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 +1503 -1468
- package/dist/react/index.d.ts +7 -7
- package/dist/terra-ui-components.js +85 -85
- package/dist/{terra_ui_components-0.0.64-py3-none-any.whl → terra_ui_components-0.0.65-py3-none-any.whl} +0 -0
- package/dist/{terra_ui_components-0.0.64.tar.gz → terra_ui_components-0.0.65.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +195 -189
- package/dist/vscode.html-custom-data.json +158 -157
- package/dist/web-types.json +315 -305
- 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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spatial_picker_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.7RT5CEB6.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraMap
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.WWMUBDIA.js";
|
|
7
7
|
import {
|
|
8
8
|
StringifyBoundingBox,
|
|
9
9
|
parseBoundingBox
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.XPEGNLOR.js";
|
|
11
11
|
import {
|
|
12
12
|
TerraElement,
|
|
13
13
|
component_styles_default
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.XFYOJIAC.js";
|
|
15
15
|
import {
|
|
16
16
|
__decorateClass
|
|
17
17
|
} from "./chunk.TVFCHGU3.js";
|
|
@@ -35,8 +35,15 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
35
35
|
this.isExpanded = false;
|
|
36
36
|
this.inline = false;
|
|
37
37
|
this.showMapOnFocus = false;
|
|
38
|
+
this.error = "";
|
|
38
39
|
}
|
|
39
40
|
_blur(e) {
|
|
41
|
+
try {
|
|
42
|
+
this.mapValue = this.spatialInput.value ? parseBoundingBox(this.spatialInput.value) : [];
|
|
43
|
+
this.error = "";
|
|
44
|
+
} catch (error) {
|
|
45
|
+
this.error = error instanceof Error ? error.message : "Invalid spatial area (format: LAT, LNG or LAT, LNG, LAT, LNG)";
|
|
46
|
+
}
|
|
40
47
|
this._emitMapChange();
|
|
41
48
|
const relatedTarget = e.relatedTarget;
|
|
42
49
|
if (!(relatedTarget == null ? void 0 : relatedTarget.closest("terra-map"))) {
|
|
@@ -52,7 +59,11 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
52
59
|
this.isExpanded = !this.isExpanded;
|
|
53
60
|
}
|
|
54
61
|
_emitMapChange() {
|
|
55
|
-
|
|
62
|
+
var _a;
|
|
63
|
+
const layer = (_a = this.map) == null ? void 0 : _a.getDrawLayer();
|
|
64
|
+
if (!layer) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
56
67
|
if ("getLatLng" in layer) {
|
|
57
68
|
this.mapValue = layer.getLatLng();
|
|
58
69
|
this.emit("terra-map-change", {
|
|
@@ -172,6 +183,7 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
172
183
|
</svg>
|
|
173
184
|
</terra-button>
|
|
174
185
|
</div>
|
|
186
|
+
${this.error ? html`<div class="spatial-picker__error">${this.error}</div>` : nothing}
|
|
175
187
|
${expanded ? html`<div
|
|
176
188
|
style="${this.inline ? "position: static; width: 100%;" : ""}"
|
|
177
189
|
>
|
|
@@ -237,6 +249,9 @@ __decorateClass([
|
|
|
237
249
|
__decorateClass([
|
|
238
250
|
state()
|
|
239
251
|
], TerraSpatialPicker.prototype, "mapValue", 2);
|
|
252
|
+
__decorateClass([
|
|
253
|
+
state()
|
|
254
|
+
], TerraSpatialPicker.prototype, "error", 2);
|
|
240
255
|
__decorateClass([
|
|
241
256
|
query(".spatial-picker__input")
|
|
242
257
|
], TerraSpatialPicker.prototype, "spatialInput", 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.STGG57OG.js";
|
|
18
18
|
import {
|
|
19
19
|
button_default
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.FMYA7ZPR.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.XFYOJIAC.js";
|
|
28
28
|
import {
|
|
29
29
|
__decorateClass,
|
|
30
30
|
__privateAdd,
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
} from "./chunk.YY65ZHR5.js";
|
|
12
12
|
import {
|
|
13
13
|
icon_default
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.STGG57OG.js";
|
|
15
15
|
import {
|
|
16
16
|
button_default
|
|
17
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.FMYA7ZPR.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.XFYOJIAC.js";
|
|
25
25
|
import {
|
|
26
26
|
__decorateClass,
|
|
27
27
|
__privateAdd,
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
} from "./chunk.EC75KAKW.js";
|
|
8
8
|
import {
|
|
9
9
|
TerraButton
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.POAU27Y4.js";
|
|
11
11
|
import {
|
|
12
12
|
TerraIcon
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.IDHJPLBH.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.XFYOJIAC.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>
|
|
@@ -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") {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
date_range_slider_styles_default
|
|
3
|
-
} from "./chunk.7AEQ2LX4.js";
|
|
4
1
|
import {
|
|
5
2
|
mergeTooltips
|
|
6
3
|
} from "./chunk.L63WM7I3.js";
|
|
4
|
+
import {
|
|
5
|
+
date_range_slider_styles_default
|
|
6
|
+
} from "./chunk.7AEQ2LX4.js";
|
|
7
7
|
import {
|
|
8
8
|
isValidDate
|
|
9
9
|
} from "./chunk.IC4T7CZD.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
TerraElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.XFYOJIAC.js";
|
|
17
17
|
import {
|
|
18
18
|
__decorateClass
|
|
19
19
|
} from "./chunk.TVFCHGU3.js";
|
|
@@ -6,26 +6,26 @@ import {
|
|
|
6
6
|
} from "./chunk.VSZLMYWV.js";
|
|
7
7
|
import {
|
|
8
8
|
TerraPlotToolbar
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.4AZAH4LW.js";
|
|
10
10
|
import {
|
|
11
11
|
AuthController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.3M5MSIZB.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.POAU27Y4.js";
|
|
19
19
|
import {
|
|
20
20
|
TerraIcon
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.IDHJPLBH.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.XFYOJIAC.js";
|
|
29
29
|
import {
|
|
30
30
|
__decorateClass,
|
|
31
31
|
__privateAdd,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
loader_default
|
|
3
|
-
} from "./chunk.WKPYLGNW.js";
|
|
4
1
|
import {
|
|
5
2
|
login_styles_default
|
|
6
3
|
} from "./chunk.TCEJ3MS6.js";
|
|
4
|
+
import {
|
|
5
|
+
loader_default
|
|
6
|
+
} from "./chunk.3XTTMUZJ.js";
|
|
7
7
|
import {
|
|
8
8
|
AuthController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3M5MSIZB.js";
|
|
10
10
|
import {
|
|
11
11
|
icon_default
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.STGG57OG.js";
|
|
13
13
|
import {
|
|
14
14
|
button_default
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.FMYA7ZPR.js";
|
|
16
16
|
import {
|
|
17
17
|
TerraElement,
|
|
18
18
|
component_styles_default
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.XFYOJIAC.js";
|
|
20
20
|
import {
|
|
21
21
|
__decorateClass,
|
|
22
22
|
__privateAdd,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk.XZB6CNAL.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraButton
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.POAU27Y4.js";
|
|
7
7
|
import {
|
|
8
8
|
TerraElement,
|
|
9
9
|
component_styles_default
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.XFYOJIAC.js";
|
|
11
11
|
import {
|
|
12
12
|
__decorateClass
|
|
13
13
|
} from "./chunk.TVFCHGU3.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TerraVariableCombobox
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.3C6XAHHX.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraTimeSeries
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.YNFVFK4N.js";
|
|
7
7
|
import {
|
|
8
8
|
TerraDateRangeSlider
|
|
9
|
-
} from "./chunk.
|
|
10
|
-
import {
|
|
11
|
-
TerraSpatialPicker
|
|
12
|
-
} from "./chunk.2LTBYPN4.js";
|
|
9
|
+
} from "./chunk.6K4POAM7.js";
|
|
13
10
|
import {
|
|
14
11
|
data_rods_styles_default
|
|
15
12
|
} from "./chunk.F5AEDYTP.js";
|
|
13
|
+
import {
|
|
14
|
+
TerraSpatialPicker
|
|
15
|
+
} from "./chunk.2YWLPWOH.js";
|
|
16
16
|
import {
|
|
17
17
|
GiovanniVariableCatalog
|
|
18
18
|
} from "./chunk.2OG44KDU.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
TerraElement,
|
|
24
24
|
component_styles_default
|
|
25
|
-
} from "./chunk.
|
|
25
|
+
} from "./chunk.XFYOJIAC.js";
|
|
26
26
|
import {
|
|
27
27
|
__decorateClass,
|
|
28
28
|
__privateAdd,
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TerraVariableKeywordSearch
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.3ZWIYMDC.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraSkeleton
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.JEC6LGA6.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.K4ETWAVK.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.POAU27Y4.js";
|
|
22
22
|
import {
|
|
23
23
|
TerraIcon
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.IDHJPLBH.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.XFYOJIAC.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);
|
|
@@ -4,28 +4,28 @@ import {
|
|
|
4
4
|
} from "./chunk.4MGGBJBD.js";
|
|
5
5
|
import {
|
|
6
6
|
TerraLogin
|
|
7
|
-
} from "./chunk.
|
|
7
|
+
} from "./chunk.DZWV4IM5.js";
|
|
8
8
|
import {
|
|
9
9
|
TerraDatePicker
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.G6WOMVTJ.js";
|
|
11
|
+
import {
|
|
12
|
+
AuthController
|
|
13
|
+
} from "./chunk.3M5MSIZB.js";
|
|
14
|
+
import {
|
|
15
|
+
TerraSpatialPicker
|
|
16
|
+
} from "./chunk.2YWLPWOH.js";
|
|
11
17
|
import {
|
|
12
18
|
DataSubsetterController
|
|
13
19
|
} from "./chunk.6YCZZJMS.js";
|
|
14
20
|
import {
|
|
15
21
|
data_subsetter_styles_default
|
|
16
22
|
} from "./chunk.5ASTHFQ2.js";
|
|
17
|
-
import {
|
|
18
|
-
TerraSpatialPicker
|
|
19
|
-
} from "./chunk.2LTBYPN4.js";
|
|
20
|
-
import {
|
|
21
|
-
AuthController
|
|
22
|
-
} from "./chunk.4FSARFIO.js";
|
|
23
23
|
import {
|
|
24
24
|
TerraAccordion
|
|
25
|
-
} from "./chunk.
|
|
25
|
+
} from "./chunk.ZLHUO2CY.js";
|
|
26
26
|
import {
|
|
27
27
|
TerraIcon
|
|
28
|
-
} from "./chunk.
|
|
28
|
+
} from "./chunk.IDHJPLBH.js";
|
|
29
29
|
import {
|
|
30
30
|
getBasePath
|
|
31
31
|
} from "./chunk.PBC3S6IG.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
TerraElement,
|
|
37
37
|
component_styles_default
|
|
38
|
-
} from "./chunk.
|
|
38
|
+
} from "./chunk.XFYOJIAC.js";
|
|
39
39
|
import {
|
|
40
40
|
__decorateClass,
|
|
41
41
|
__privateAdd,
|