@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.
Files changed (238) hide show
  1. package/cdn/chunks/{chunk.QBCKG623.js → chunk.23GAIRRD.js} +1 -1
  2. package/cdn/chunks/{chunk.CX2OWDSZ.js → chunk.23YT7VH3.js} +1 -1
  3. package/cdn/chunks/{chunk.OAXQ6WW5.js → chunk.2ERB2FZJ.js} +1 -1
  4. package/cdn/chunks/{chunk.7CI746RD.js → chunk.3FVCBUU5.js} +1 -1
  5. package/cdn/chunks/{chunk.FYCYWJW7.js → chunk.3SRLYD5E.js} +1 -1
  6. package/cdn/chunks/{chunk.TTKA3KTH.js → chunk.3XSRI7D6.js} +1 -1
  7. package/cdn/chunks/{chunk.4IPMV6FL.js → chunk.4H5D5LNS.js} +1 -1
  8. package/cdn/chunks/{chunk.OOJ6KQXC.js → chunk.4VLRV7TA.js} +4 -4
  9. package/cdn/chunks/{chunk.RLZRFF3I.js → chunk.4ZEPFSRR.js} +1 -1
  10. package/cdn/chunks/{chunk.EJSPSGLJ.js → chunk.5JLTH2LZ.js} +26 -1
  11. package/cdn/chunks/{chunk.R7LPV4MK.js → chunk.5TJGINB5.js} +1 -1
  12. package/cdn/chunks/{chunk.IGWX4N7H.js → chunk.6EEM6UIO.js} +1 -1
  13. package/cdn/chunks/{chunk.II36YEIQ.js → chunk.77W4E4VM.js} +9 -6
  14. package/cdn/chunks/{chunk.DWB4WJKI.js → chunk.7BCZRW6T.js} +1 -1
  15. package/cdn/chunks/{chunk.XSJ76IQS.js → chunk.7KPRKFPH.js} +1 -1
  16. package/cdn/chunks/{chunk.CH7CM4WG.js → chunk.7TF5BL2A.js} +3 -3
  17. package/cdn/chunks/{chunk.2UXI7L3Z.js → chunk.AOREFFRM.js} +1 -1
  18. package/cdn/chunks/{chunk.4IW2ACWY.js → chunk.C7NEKS3B.js} +2 -2
  19. package/cdn/chunks/{chunk.LSITBA74.js → chunk.DS2TUYJH.js} +1 -1
  20. package/cdn/chunks/{chunk.ZPQV5GSR.js → chunk.E357X2E5.js} +1 -1
  21. package/cdn/chunks/{chunk.CZ5CHJEV.js → chunk.E7F2QQDE.js} +1 -1
  22. package/cdn/chunks/{chunk.JFEIADEF.js → chunk.EGIKXAEJ.js} +2 -2
  23. package/cdn/chunks/{chunk.A3W72BHN.js → chunk.ETEUHDG4.js} +1 -1
  24. package/cdn/chunks/{chunk.XQ7X7Y6Z.js → chunk.EY3Y2MKZ.js} +1 -1
  25. package/cdn/chunks/{chunk.JJMS4YQI.js → chunk.FYLYLIDU.js} +7 -7
  26. package/cdn/chunks/{chunk.JLDKV2NB.js → chunk.G24V5TLW.js} +1 -1
  27. package/cdn/chunks/{chunk.QD6G5X25.js → chunk.HMLTTIBQ.js} +1 -1
  28. package/cdn/chunks/{chunk.W7KGG72U.js → chunk.IPSMZA3Y.js} +1 -1
  29. package/cdn/chunks/{chunk.IVH6LMFP.js → chunk.JCQIEOOL.js} +1 -1
  30. package/cdn/chunks/{chunk.WZ6P7TO4.js → chunk.JY5D7TM7.js} +4 -4
  31. package/cdn/chunks/{chunk.ORTTHTRR.js → chunk.LLPDZTE6.js} +1 -1
  32. package/cdn/chunks/{chunk.R5KSJUJS.js → chunk.LXQL7H3Z.js} +1 -1
  33. package/cdn/chunks/{chunk.JQICLV3P.js → chunk.MUDFTA3K.js} +3 -3
  34. package/cdn/chunks/{chunk.755FQY3M.js → chunk.NM4KGKQG.js} +10 -10
  35. package/cdn/chunks/{chunk.6YDRYXMY.js → chunk.NOHN7ZHK.js} +1 -1
  36. package/cdn/chunks/{chunk.U5556MHN.js → chunk.OMLDFSTP.js} +6 -6
  37. package/cdn/chunks/{chunk.XOXD2WOT.js → chunk.P6Z62GLD.js} +1 -1
  38. package/cdn/chunks/{chunk.Y6ERTCCJ.js → chunk.PDR3XIUD.js} +6 -0
  39. package/cdn/chunks/{chunk.LRZRZOOA.js → chunk.QECLAEDS.js} +7 -7
  40. package/cdn/chunks/{chunk.2IQ72HC2.js → chunk.QOZ4FUY6.js} +1 -1
  41. package/cdn/chunks/{chunk.ZQQJXV5V.js → chunk.SDNJ6Y7P.js} +1 -1
  42. package/cdn/chunks/{chunk.77BTAFB3.js → chunk.SHPI4DBO.js} +1 -1
  43. package/cdn/chunks/{chunk.WTOBFIYB.js → chunk.T6ZRPLEM.js} +20 -5
  44. package/cdn/chunks/{chunk.KX4K43F2.js → chunk.TCPWXBQQ.js} +2 -2
  45. package/cdn/chunks/{chunk.V32IK76Z.js → chunk.VJD6555T.js} +14 -9
  46. package/cdn/chunks/{chunk.AEDS2IVC.js → chunk.WABCYOTD.js} +1 -1
  47. package/cdn/chunks/{chunk.JE2LZVOP.js → chunk.WBIDCSOL.js} +1 -1
  48. package/cdn/chunks/{chunk.BOZ7KL3G.js → chunk.X3VZXLR7.js} +1 -1
  49. package/cdn/chunks/{chunk.K5KGOR5O.js → chunk.XULBJSSM.js} +1 -1
  50. package/cdn/chunks/{chunk.NYOIWW7M.js → chunk.YDWFGZNL.js} +7 -7
  51. package/cdn/chunks/{chunk.JSIXNCNG.js → chunk.YMUOWBFO.js} +19 -14
  52. package/cdn/chunks/{chunk.RKI4MNB2.js → chunk.YPQISKX3.js} +11 -11
  53. package/cdn/chunks/{chunk.ZH356JFJ.js → chunk.ZBCDTERI.js} +12 -12
  54. package/cdn/components/accordion/accordion.component.js +3 -3
  55. package/cdn/components/accordion/accordion.js +4 -4
  56. package/cdn/components/alert/alert.component.js +2 -2
  57. package/cdn/components/alert/alert.js +3 -3
  58. package/cdn/components/browse-variables/browse-variables.component.d.ts +1 -0
  59. package/cdn/components/browse-variables/browse-variables.component.js +11 -11
  60. package/cdn/components/browse-variables/browse-variables.controller.js +2 -2
  61. package/cdn/components/browse-variables/browse-variables.js +12 -12
  62. package/cdn/components/button/button.component.js +2 -2
  63. package/cdn/components/button/button.js +3 -3
  64. package/cdn/components/chip/chip.component.js +2 -2
  65. package/cdn/components/chip/chip.js +3 -3
  66. package/cdn/components/combobox/combobox.component.js +4 -4
  67. package/cdn/components/combobox/combobox.js +5 -5
  68. package/cdn/components/data-rods/data-rods.component.js +25 -25
  69. package/cdn/components/data-rods/data-rods.js +26 -26
  70. package/cdn/components/data-subsetter/data-subsetter.component.js +20 -20
  71. package/cdn/components/data-subsetter/data-subsetter.controller.js +2 -2
  72. package/cdn/components/data-subsetter/data-subsetter.js +21 -21
  73. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +24 -24
  74. package/cdn/components/data-subsetter-history/data-subsetter-history.js +25 -25
  75. package/cdn/components/date-picker/date-picker.component.js +3 -3
  76. package/cdn/components/date-picker/date-picker.js +4 -4
  77. package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
  78. package/cdn/components/date-range-slider/date-range-slider.js +4 -4
  79. package/cdn/components/dialog/dialog.component.js +2 -2
  80. package/cdn/components/dialog/dialog.js +3 -3
  81. package/cdn/components/icon/icon.component.js +2 -2
  82. package/cdn/components/icon/icon.js +3 -3
  83. package/cdn/components/loader/loader.component.js +2 -2
  84. package/cdn/components/loader/loader.js +3 -3
  85. package/cdn/components/login/login.component.js +9 -9
  86. package/cdn/components/login/login.js +10 -10
  87. package/cdn/components/map/leaflet-utils.js +1 -1
  88. package/cdn/components/map/map.component.js +5 -4
  89. package/cdn/components/map/map.js +6 -5
  90. package/cdn/components/plot/plot.component.js +3 -3
  91. package/cdn/components/plot/plot.js +4 -4
  92. package/cdn/components/plot-toolbar/plot-toolbar.component.d.ts +1 -0
  93. package/cdn/components/plot-toolbar/plot-toolbar.component.js +5 -5
  94. package/cdn/components/plot-toolbar/plot-toolbar.js +6 -6
  95. package/cdn/components/skeleton/skeleton.component.js +2 -2
  96. package/cdn/components/skeleton/skeleton.js +3 -3
  97. package/cdn/components/spatial-picker/spatial-picker.component.d.ts +1 -0
  98. package/cdn/components/spatial-picker/spatial-picker.component.js +6 -6
  99. package/cdn/components/spatial-picker/spatial-picker.js +7 -7
  100. package/cdn/components/spatial-picker/spatial-picker.styles.js +1 -1
  101. package/cdn/components/time-average-map/time-average-map.component.js +9 -9
  102. package/cdn/components/time-average-map/time-average-map.controller.js +2 -2
  103. package/cdn/components/time-average-map/time-average-map.js +10 -10
  104. package/cdn/components/time-series/time-series.component.d.ts +1 -0
  105. package/cdn/components/time-series/time-series.component.js +13 -13
  106. package/cdn/components/time-series/time-series.controller.js +2 -2
  107. package/cdn/components/time-series/time-series.js +14 -14
  108. package/cdn/components/variable-combobox/variable-combobox.component.js +6 -6
  109. package/cdn/components/variable-combobox/variable-combobox.js +7 -7
  110. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +7 -7
  111. package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +1 -1
  112. package/cdn/components/variable-keyword-search/variable-keyword-search.js +8 -8
  113. package/cdn/custom-elements.json +1503 -1468
  114. package/cdn/react/index.d.ts +7 -7
  115. package/cdn/terra-ui-components.js +89 -89
  116. package/cdn/types/vue/index.d.ts +195 -189
  117. package/cdn/vscode.html-custom-data.json +158 -157
  118. package/cdn/web-types.json +315 -305
  119. package/dist/chunks/{chunk.2LTBYPN4.js → chunk.2YWLPWOH.js} +20 -5
  120. package/dist/chunks/{chunk.PRFLPUK5.js → chunk.3C6XAHHX.js} +3 -3
  121. package/dist/chunks/{chunk.OC4QTK6B.js → chunk.3JF5C2G5.js} +1 -1
  122. package/dist/chunks/{chunk.4FSARFIO.js → chunk.3M5MSIZB.js} +1 -1
  123. package/dist/chunks/{chunk.ME2IKNPM.js → chunk.3SFIQYFQ.js} +1 -1
  124. package/dist/chunks/{chunk.WKPYLGNW.js → chunk.3XTTMUZJ.js} +1 -1
  125. package/dist/chunks/{chunk.RVTURMO5.js → chunk.3ZWIYMDC.js} +3 -3
  126. package/dist/chunks/{chunk.AHRF7VBU.js → chunk.4AZAH4LW.js} +6 -3
  127. package/dist/chunks/{chunk.VKHUWPJF.js → chunk.4NF2KOIM.js} +1 -1
  128. package/dist/chunks/{chunk.2NH3CZZZ.js → chunk.6HUNVCKY.js} +26 -1
  129. package/dist/chunks/{chunk.Q4PPKP6U.js → chunk.6K4POAM7.js} +4 -4
  130. package/dist/chunks/{chunk.AQOGDZ4T.js → chunk.7RT5CEB6.js} +6 -0
  131. package/dist/chunks/{chunk.LX25FOB6.js → chunk.BEZFGWIZ.js} +5 -5
  132. package/dist/chunks/{chunk.XUTN7WYX.js → chunk.CZJTVJPC.js} +1 -1
  133. package/dist/chunks/{chunk.WDQG7CSH.js → chunk.DZWV4IM5.js} +7 -7
  134. package/dist/chunks/{chunk.NQJU5RSP.js → chunk.F5LAVH73.js} +1 -1
  135. package/dist/chunks/{chunk.6RWPBX4B.js → chunk.FMYA7ZPR.js} +1 -1
  136. package/dist/chunks/{chunk.33FZQUN2.js → chunk.G6WOMVTJ.js} +2 -2
  137. package/dist/chunks/{chunk.RMYFG5HS.js → chunk.G7J4TFTU.js} +1 -1
  138. package/dist/chunks/{chunk.4EQ45IC6.js → chunk.HFYTJDZ2.js} +7 -7
  139. package/dist/chunks/{chunk.I2YZYT2B.js → chunk.HM25M7E4.js} +14 -9
  140. package/dist/chunks/{chunk.FBDSOFND.js → chunk.I432IVWZ.js} +1 -1
  141. package/dist/chunks/{chunk.LBKVB3EI.js → chunk.IDHJPLBH.js} +1 -1
  142. package/dist/chunks/{chunk.OGC7AJP3.js → chunk.IED6LPIF.js} +1 -1
  143. package/dist/chunks/{chunk.AG3VYRFO.js → chunk.JEC6LGA6.js} +1 -1
  144. package/dist/chunks/{chunk.7E2HKL6U.js → chunk.JKS7PEVF.js} +1 -1
  145. package/dist/chunks/{chunk.STHFWPXN.js → chunk.JLLXYZ5M.js} +1 -1
  146. package/dist/chunks/{chunk.IZOH52KU.js → chunk.K4ETWAVK.js} +1 -1
  147. package/dist/chunks/{chunk.Q5FXU5CD.js → chunk.ME7XUVJJ.js} +1 -1
  148. package/dist/chunks/{chunk.5IYMVP3K.js → chunk.MYYMNVQO.js} +11 -11
  149. package/dist/chunks/{chunk.57AS3PVY.js → chunk.NAOMBLUK.js} +1 -1
  150. package/dist/chunks/{chunk.S2BPUSXT.js → chunk.NI3XJVYH.js} +1 -1
  151. package/dist/chunks/{chunk.RN6T4OBF.js → chunk.O4AP7N2Q.js} +1 -1
  152. package/dist/chunks/{chunk.U5L2QSBL.js → chunk.OCUMFXRD.js} +1 -1
  153. package/dist/chunks/{chunk.TCQUNRTZ.js → chunk.POAU27Y4.js} +1 -1
  154. package/dist/chunks/{chunk.7SX5EJUZ.js → chunk.POFUNMXD.js} +1 -1
  155. package/dist/chunks/{chunk.3P5AXHYE.js → chunk.PSYZ5FUZ.js} +1 -1
  156. package/dist/chunks/{chunk.UI7LI6ME.js → chunk.PZRTGUNT.js} +1 -1
  157. package/dist/chunks/{chunk.QY2D5MZY.js → chunk.QU2MMH2N.js} +1 -1
  158. package/dist/chunks/{chunk.5ACVPMQS.js → chunk.QXJXYDCV.js} +1 -1
  159. package/dist/chunks/{chunk.ONCAHBEI.js → chunk.RXK4P7V6.js} +7 -7
  160. package/dist/chunks/{chunk.OUNZ45XC.js → chunk.SDRHJGKR.js} +1 -1
  161. package/dist/chunks/{chunk.WFLLPBSK.js → chunk.SSFUEPYG.js} +1 -1
  162. package/dist/chunks/{chunk.KVIEDTRG.js → chunk.STGG57OG.js} +1 -1
  163. package/dist/chunks/{chunk.AHOG6HKX.js → chunk.TKGFOROJ.js} +1 -1
  164. package/dist/chunks/{chunk.OKEYDVUM.js → chunk.TVHRM3IC.js} +1 -1
  165. package/dist/chunks/{chunk.KQEF5XW2.js → chunk.UHK7ATZH.js} +1 -1
  166. package/dist/chunks/{chunk.XUI4GSXF.js → chunk.WFF7SRV6.js} +1 -1
  167. package/dist/chunks/{chunk.NFPUQWGV.js → chunk.WWMUBDIA.js} +11 -11
  168. package/dist/chunks/{chunk.3DPKZNWN.js → chunk.XFYOJIAC.js} +1 -1
  169. package/dist/chunks/{chunk.IAA33R4X.js → chunk.XPEGNLOR.js} +2 -2
  170. package/dist/chunks/{chunk.POXSSDZR.js → chunk.YNFVFK4N.js} +15 -10
  171. package/dist/chunks/{chunk.EO3NQW6Q.js → chunk.ZLHUO2CY.js} +2 -2
  172. package/dist/components/accordion/accordion.component.js +3 -3
  173. package/dist/components/accordion/accordion.js +4 -4
  174. package/dist/components/alert/alert.component.js +2 -2
  175. package/dist/components/alert/alert.js +3 -3
  176. package/dist/components/browse-variables/browse-variables.component.d.ts +1 -0
  177. package/dist/components/browse-variables/browse-variables.component.js +10 -10
  178. package/dist/components/browse-variables/browse-variables.controller.js +1 -1
  179. package/dist/components/browse-variables/browse-variables.js +11 -11
  180. package/dist/components/button/button.component.js +2 -2
  181. package/dist/components/button/button.js +3 -3
  182. package/dist/components/chip/chip.component.js +2 -2
  183. package/dist/components/chip/chip.js +3 -3
  184. package/dist/components/combobox/combobox.component.js +2 -2
  185. package/dist/components/combobox/combobox.js +3 -3
  186. package/dist/components/data-rods/data-rods.component.js +22 -22
  187. package/dist/components/data-rods/data-rods.js +23 -23
  188. package/dist/components/data-subsetter/data-subsetter.component.js +19 -19
  189. package/dist/components/data-subsetter/data-subsetter.js +20 -20
  190. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +23 -23
  191. package/dist/components/data-subsetter-history/data-subsetter-history.js +24 -24
  192. package/dist/components/date-picker/date-picker.component.js +3 -3
  193. package/dist/components/date-picker/date-picker.js +4 -4
  194. package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
  195. package/dist/components/date-range-slider/date-range-slider.js +4 -4
  196. package/dist/components/dialog/dialog.component.js +2 -2
  197. package/dist/components/dialog/dialog.js +3 -3
  198. package/dist/components/icon/icon.component.js +2 -2
  199. package/dist/components/icon/icon.js +3 -3
  200. package/dist/components/loader/loader.component.js +2 -2
  201. package/dist/components/loader/loader.js +3 -3
  202. package/dist/components/login/login.component.js +9 -9
  203. package/dist/components/login/login.js +10 -10
  204. package/dist/components/map/leaflet-utils.js +1 -1
  205. package/dist/components/map/map.component.js +5 -4
  206. package/dist/components/map/map.js +6 -5
  207. package/dist/components/plot/plot.component.js +2 -2
  208. package/dist/components/plot/plot.js +3 -3
  209. package/dist/components/plot-toolbar/plot-toolbar.component.d.ts +1 -0
  210. package/dist/components/plot-toolbar/plot-toolbar.component.js +4 -4
  211. package/dist/components/plot-toolbar/plot-toolbar.js +5 -5
  212. package/dist/components/skeleton/skeleton.component.js +2 -2
  213. package/dist/components/skeleton/skeleton.js +3 -3
  214. package/dist/components/spatial-picker/spatial-picker.component.d.ts +1 -0
  215. package/dist/components/spatial-picker/spatial-picker.component.js +6 -6
  216. package/dist/components/spatial-picker/spatial-picker.js +7 -7
  217. package/dist/components/spatial-picker/spatial-picker.styles.js +1 -1
  218. package/dist/components/time-average-map/time-average-map.component.js +6 -6
  219. package/dist/components/time-average-map/time-average-map.js +7 -7
  220. package/dist/components/time-series/time-series.component.d.ts +1 -0
  221. package/dist/components/time-series/time-series.component.js +10 -10
  222. package/dist/components/time-series/time-series.js +11 -11
  223. package/dist/components/variable-combobox/variable-combobox.component.js +6 -6
  224. package/dist/components/variable-combobox/variable-combobox.js +7 -7
  225. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +6 -6
  226. package/dist/components/variable-keyword-search/variable-keyword-search.js +7 -7
  227. package/dist/custom-elements.json +1503 -1468
  228. package/dist/react/index.d.ts +7 -7
  229. package/dist/terra-ui-components.js +85 -85
  230. package/dist/{terra_ui_components-0.0.64-py3-none-any.whl → terra_ui_components-0.0.65-py3-none-any.whl} +0 -0
  231. package/dist/{terra_ui_components-0.0.64.tar.gz → terra_ui_components-0.0.65.tar.gz} +0 -0
  232. package/dist/types/vue/index.d.ts +195 -189
  233. package/dist/vscode.html-custom-data.json +158 -157
  234. package/dist/web-types.json +315 -305
  235. package/package.json +1 -1
  236. package/cdn/chunks/{chunk.U5XB7PAD.js → chunk.2UIKXGCO.js} +3 -3
  237. package/cdn/chunks/{chunk.665QSS6M.js → chunk.FK35YOPT.js} +4 -4
  238. 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.AQOGDZ4T.js";
3
+ } from "./chunk.7RT5CEB6.js";
4
4
  import {
5
5
  TerraMap
6
- } from "./chunk.NFPUQWGV.js";
6
+ } from "./chunk.WWMUBDIA.js";
7
7
  import {
8
8
  StringifyBoundingBox,
9
9
  parseBoundingBox
10
- } from "./chunk.IAA33R4X.js";
10
+ } from "./chunk.XPEGNLOR.js";
11
11
  import {
12
12
  TerraElement,
13
13
  component_styles_default
14
- } from "./chunk.3DPKZNWN.js";
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
- const layer = this.map.getDrawLayer();
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.KVIEDTRG.js";
17
+ } from "./chunk.STGG57OG.js";
18
18
  import {
19
19
  button_default
20
- } from "./chunk.6RWPBX4B.js";
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.3DPKZNWN.js";
27
+ } from "./chunk.XFYOJIAC.js";
28
28
  import {
29
29
  __decorateClass,
30
30
  __privateAdd,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.3DPKZNWN.js";
10
+ } from "./chunk.XFYOJIAC.js";
11
11
  import {
12
12
  __decorateClass,
13
13
  __privateAdd,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  authService
3
- } from "./chunk.3DPKZNWN.js";
3
+ } from "./chunk.XFYOJIAC.js";
4
4
  import {
5
5
  __privateAdd,
6
6
  __privateGet,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraChip
3
- } from "./chunk.S2BPUSXT.js";
3
+ } from "./chunk.NI3XJVYH.js";
4
4
 
5
5
  // src/components/chip/chip.ts
6
6
  var chip_default = TerraChip;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraLoader
3
- } from "./chunk.IZOH52KU.js";
3
+ } from "./chunk.K4ETWAVK.js";
4
4
 
5
5
  // src/components/loader/loader.ts
6
6
  var loader_default = TerraLoader;
@@ -11,17 +11,17 @@ import {
11
11
  } from "./chunk.YY65ZHR5.js";
12
12
  import {
13
13
  icon_default
14
- } from "./chunk.KVIEDTRG.js";
14
+ } from "./chunk.STGG57OG.js";
15
15
  import {
16
16
  button_default
17
- } from "./chunk.6RWPBX4B.js";
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.3DPKZNWN.js";
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.TCQUNRTZ.js";
10
+ } from "./chunk.POAU27Y4.js";
11
11
  import {
12
12
  TerraIcon
13
- } from "./chunk.LBKVB3EI.js";
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.3DPKZNWN.js";
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>
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraLogin
3
- } from "./chunk.WDQG7CSH.js";
3
+ } from "./chunk.DZWV4IM5.js";
4
4
 
5
5
  // src/components/login/login.ts
6
6
  var login_default = TerraLogin;
@@ -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.3DPKZNWN.js";
16
+ } from "./chunk.XFYOJIAC.js";
17
17
  import {
18
18
  __decorateClass
19
19
  } from "./chunk.TVFCHGU3.js";
@@ -59,6 +59,12 @@ var spatial_picker_styles_default = css`
59
59
  height: 1rem;
60
60
  width: 1rem;
61
61
  }
62
+
63
+ .spatial-picker__error {
64
+ color: #a94442;
65
+ font-size: 0.8rem;
66
+ padding: 10px;
67
+ }
62
68
  `;
63
69
 
64
70
  export {
@@ -6,26 +6,26 @@ import {
6
6
  } from "./chunk.VSZLMYWV.js";
7
7
  import {
8
8
  TerraPlotToolbar
9
- } from "./chunk.AHRF7VBU.js";
9
+ } from "./chunk.4AZAH4LW.js";
10
10
  import {
11
11
  AuthController
12
- } from "./chunk.4FSARFIO.js";
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.TCQUNRTZ.js";
18
+ } from "./chunk.POAU27Y4.js";
19
19
  import {
20
20
  TerraIcon
21
- } from "./chunk.LBKVB3EI.js";
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.3DPKZNWN.js";
28
+ } from "./chunk.XFYOJIAC.js";
29
29
  import {
30
30
  __decorateClass,
31
31
  __privateAdd,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.3DPKZNWN.js";
10
+ } from "./chunk.XFYOJIAC.js";
11
11
  import {
12
12
  alert_styles_default
13
13
  } from "./chunk.YXLIUMJM.js";
@@ -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.4FSARFIO.js";
9
+ } from "./chunk.3M5MSIZB.js";
10
10
  import {
11
11
  icon_default
12
- } from "./chunk.KVIEDTRG.js";
12
+ } from "./chunk.STGG57OG.js";
13
13
  import {
14
14
  button_default
15
- } from "./chunk.6RWPBX4B.js";
15
+ } from "./chunk.FMYA7ZPR.js";
16
16
  import {
17
17
  TerraElement,
18
18
  component_styles_default
19
- } from "./chunk.3DPKZNWN.js";
19
+ } from "./chunk.XFYOJIAC.js";
20
20
  import {
21
21
  __decorateClass,
22
22
  __privateAdd,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDataSubsetterHistory
3
- } from "./chunk.ONCAHBEI.js";
3
+ } from "./chunk.RXK4P7V6.js";
4
4
 
5
5
  // src/components/data-subsetter-history/data-subsetter-history.ts
6
6
  var data_subsetter_history_default = TerraDataSubsetterHistory;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraButton
3
- } from "./chunk.TCQUNRTZ.js";
3
+ } from "./chunk.POAU27Y4.js";
4
4
 
5
5
  // src/components/button/button.ts
6
6
  var button_default = TerraButton;
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk.XZB6CNAL.js";
4
4
  import {
5
5
  TerraButton
6
- } from "./chunk.TCQUNRTZ.js";
6
+ } from "./chunk.POAU27Y4.js";
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.3DPKZNWN.js";
10
+ } from "./chunk.XFYOJIAC.js";
11
11
  import {
12
12
  __decorateClass
13
13
  } from "./chunk.TVFCHGU3.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  TerraElement,
6
6
  component_styles_default
7
- } from "./chunk.3DPKZNWN.js";
7
+ } from "./chunk.XFYOJIAC.js";
8
8
  import {
9
9
  __decorateClass,
10
10
  __privateAdd,
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  TerraVariableCombobox
3
- } from "./chunk.PRFLPUK5.js";
3
+ } from "./chunk.3C6XAHHX.js";
4
4
  import {
5
5
  TerraTimeSeries
6
- } from "./chunk.POXSSDZR.js";
6
+ } from "./chunk.YNFVFK4N.js";
7
7
  import {
8
8
  TerraDateRangeSlider
9
- } from "./chunk.Q4PPKP6U.js";
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.3DPKZNWN.js";
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.RVTURMO5.js";
3
+ } from "./chunk.3ZWIYMDC.js";
4
4
  import {
5
5
  TerraSkeleton
6
- } from "./chunk.AG3VYRFO.js";
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.IZOH52KU.js";
12
+ } from "./chunk.K4ETWAVK.js";
13
13
  import {
14
14
  BrowseVariablesController
15
- } from "./chunk.2NH3CZZZ.js";
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.TCQUNRTZ.js";
21
+ } from "./chunk.POAU27Y4.js";
22
22
  import {
23
23
  TerraIcon
24
- } from "./chunk.LBKVB3EI.js";
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.3DPKZNWN.js";
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} (${field.count})</label
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);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraAlert
3
- } from "./chunk.XUTN7WYX.js";
3
+ } from "./chunk.CZJTVJPC.js";
4
4
 
5
5
  // src/components/alert/alert.ts
6
6
  var alert_default = TerraAlert;
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  TerraElement,
14
14
  component_styles_default
15
- } from "./chunk.3DPKZNWN.js";
15
+ } from "./chunk.XFYOJIAC.js";
16
16
  import {
17
17
  __decorateClass,
18
18
  __privateAdd,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraPlot
3
- } from "./chunk.OC4QTK6B.js";
3
+ } from "./chunk.3JF5C2G5.js";
4
4
 
5
5
  // src/components/plot/plot.ts
6
6
  var plot_default = TerraPlot;
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.3DPKZNWN.js";
10
+ } from "./chunk.XFYOJIAC.js";
11
11
  import {
12
12
  __decorateClass
13
13
  } from "./chunk.TVFCHGU3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraTimeSeries
3
- } from "./chunk.POXSSDZR.js";
3
+ } from "./chunk.YNFVFK4N.js";
4
4
 
5
5
  // src/components/time-series/time-series.ts
6
6
  var time_series_default = TerraTimeSeries;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraSpatialPicker
3
- } from "./chunk.2LTBYPN4.js";
3
+ } from "./chunk.2YWLPWOH.js";
4
4
 
5
5
  // src/components/spatial-picker/spatial-picker.ts
6
6
  var spatial_picker_default = TerraSpatialPicker;
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  TerraElement,
6
6
  component_styles_default
7
- } from "./chunk.3DPKZNWN.js";
7
+ } from "./chunk.XFYOJIAC.js";
8
8
  import {
9
9
  __decorateClass
10
10
  } from "./chunk.TVFCHGU3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableKeywordSearch
3
- } from "./chunk.RVTURMO5.js";
3
+ } from "./chunk.3ZWIYMDC.js";
4
4
 
5
5
  // src/components/variable-keyword-search/variable-keyword-search.ts
6
6
  var variable_keyword_search_default = TerraVariableKeywordSearch;
@@ -4,28 +4,28 @@ import {
4
4
  } from "./chunk.4MGGBJBD.js";
5
5
  import {
6
6
  TerraLogin
7
- } from "./chunk.WDQG7CSH.js";
7
+ } from "./chunk.DZWV4IM5.js";
8
8
  import {
9
9
  TerraDatePicker
10
- } from "./chunk.33FZQUN2.js";
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.EO3NQW6Q.js";
25
+ } from "./chunk.ZLHUO2CY.js";
26
26
  import {
27
27
  TerraIcon
28
- } from "./chunk.LBKVB3EI.js";
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.3DPKZNWN.js";
38
+ } from "./chunk.XFYOJIAC.js";
39
39
  import {
40
40
  __decorateClass,
41
41
  __privateAdd,
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  TerraElement,
13
13
  component_styles_default
14
- } from "./chunk.3DPKZNWN.js";
14
+ } from "./chunk.XFYOJIAC.js";
15
15
  import {
16
16
  __decorateClass,
17
17
  __privateAdd,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  TerraElement,
6
6
  component_styles_default
7
- } from "./chunk.3DPKZNWN.js";
7
+ } from "./chunk.XFYOJIAC.js";
8
8
  import {
9
9
  __decorateClass,
10
10
  __privateAdd,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDataSubsetter
3
- } from "./chunk.5IYMVP3K.js";
3
+ } from "./chunk.MYYMNVQO.js";
4
4
 
5
5
  // src/components/data-subsetter/data-subsetter.ts
6
6
  var data_subsetter_default = TerraDataSubsetter;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraTimeAverageMap
3
- } from "./chunk.LX25FOB6.js";
3
+ } from "./chunk.BEZFGWIZ.js";
4
4
 
5
5
  // src/components/time-average-map/time-average-map.ts
6
6
  var time_average_map_default = TerraTimeAverageMap;