@nasa-terra/components 0.0.75 → 0.0.77

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 (352) hide show
  1. package/cdn/chunks/{chunk.EADDJNLT.js → chunk.2UQP6ECJ.js} +1 -1
  2. package/cdn/chunks/{chunk.INQGM7LI.js → chunk.3AMSF2QE.js} +1 -1
  3. package/cdn/chunks/{chunk.XLAILIBA.js → chunk.3L5IO65X.js} +1 -1
  4. package/cdn/chunks/{chunk.EOOUTVFS.js → chunk.3OQVYPLO.js} +1 -1
  5. package/cdn/chunks/{chunk.LZSKCTIU.js → chunk.3SQ33WJL.js} +6 -6
  6. package/cdn/chunks/{chunk.PC5YDCR3.js → chunk.3YZPJN2Z.js} +1 -1
  7. package/cdn/chunks/{chunk.US637OHP.js → chunk.5K4QCQFC.js} +1 -1
  8. package/cdn/chunks/{chunk.JMXG4QMJ.js → chunk.6AVYZ3MW.js} +9 -9
  9. package/cdn/chunks/{chunk.B5O37HJL.js → chunk.6FPLHL6H.js} +1 -1
  10. package/cdn/chunks/{chunk.C63UDFJD.js → chunk.6MBBGMVZ.js} +1 -1
  11. package/cdn/chunks/{chunk.IJ65YKH6.js → chunk.6Q6I7PZT.js} +1 -1
  12. package/cdn/chunks/{chunk.7CXDJEPI.js → chunk.6Y2KZ5PX.js} +1 -1
  13. package/cdn/chunks/{chunk.6HV5UAUR.js → chunk.6Z7IKV2A.js} +23 -18
  14. package/cdn/chunks/{chunk.4LRX5MI5.js → chunk.7MOA4J7J.js} +1 -1
  15. package/cdn/chunks/{chunk.BEZNVEN4.js → chunk.7ZP66IGM.js} +4 -4
  16. package/cdn/chunks/{chunk.OBRUAY2T.js → chunk.ABTZA4WS.js} +1 -1
  17. package/cdn/chunks/{chunk.GVSWNMWO.js → chunk.AOT6CMXV.js} +1 -1
  18. package/cdn/chunks/{chunk.KXG7EVNK.js → chunk.ASDCA4EN.js} +1 -1
  19. package/cdn/chunks/{chunk.J5RSLQEZ.js → chunk.AVWY2MQ6.js} +1 -1
  20. package/cdn/chunks/chunk.BD3LZWPF.js +82 -0
  21. package/cdn/chunks/{chunk.XDSCYEVI.js → chunk.BEFEIFCT.js} +1 -1
  22. package/cdn/chunks/{chunk.YLLQD54G.js → chunk.BZKY6ZEG.js} +1 -1
  23. package/cdn/chunks/{chunk.DRLC3NOH.js → chunk.CVXY24L3.js} +1 -1
  24. package/cdn/chunks/{chunk.TDRUBITF.js → chunk.CYBFDV6E.js} +1 -1
  25. package/cdn/chunks/{chunk.4QBMLHRO.js → chunk.D72IQ6WL.js} +1 -1
  26. package/cdn/chunks/{chunk.TW3AZBD6.js → chunk.DJD54REZ.js} +1 -1
  27. package/cdn/chunks/{chunk.MEDLBSIX.js → chunk.DJSFQYLC.js} +1 -1
  28. package/cdn/chunks/{chunk.PE7GTWW6.js → chunk.GFKDLMZP.js} +18 -18
  29. package/cdn/chunks/{chunk.NVCYUOTI.js → chunk.GLJPBBHC.js} +1 -1
  30. package/cdn/chunks/{chunk.AVPOEXGN.js → chunk.GM6MK2EB.js} +6 -6
  31. package/cdn/chunks/{chunk.XFUBO26N.js → chunk.GPD7GBEI.js} +1 -1
  32. package/cdn/chunks/{chunk.F23R7V6D.js → chunk.HALK5OFW.js} +4 -4
  33. package/cdn/chunks/{chunk.TCV3RFA2.js → chunk.HCOIWQGH.js} +1 -1
  34. package/cdn/chunks/{chunk.ND35PVXU.js → chunk.HSPF25L7.js} +1 -1
  35. package/cdn/chunks/{chunk.PAIBV5LM.js → chunk.I7FLYOVQ.js} +1 -1
  36. package/cdn/chunks/{chunk.M3KUCA27.js → chunk.IOWDSKFM.js} +1 -1
  37. package/cdn/chunks/{chunk.2FXVKD3K.js → chunk.IQMB5RDN.js} +1 -1
  38. package/cdn/chunks/{chunk.JOIY5YPQ.js → chunk.ISSEZQBL.js} +1 -1
  39. package/cdn/chunks/{chunk.WM2M27YN.js → chunk.IZLC5HUW.js} +4 -4
  40. package/cdn/chunks/{chunk.RVMZOSZ4.js → chunk.JBA5PT5N.js} +1 -1
  41. package/cdn/chunks/{chunk.76LGYF3V.js → chunk.JDQFLCAP.js} +1 -1
  42. package/cdn/chunks/{chunk.Y6D4M654.js → chunk.KZD527IM.js} +4 -4
  43. package/cdn/chunks/{chunk.Y5SRUGO6.js → chunk.L2WPUQ7B.js} +1 -1
  44. package/cdn/chunks/{chunk.ZTUQTCOY.js → chunk.L5G65SX7.js} +1 -1
  45. package/cdn/chunks/{chunk.DAGJRUH2.js → chunk.LIP3MH2T.js} +2 -2
  46. package/cdn/chunks/{chunk.E6N3RL6T.js → chunk.MCV6ZYH3.js} +1 -1
  47. package/cdn/chunks/{chunk.JMPD2ASO.js → chunk.MIRF7JMU.js} +4 -4
  48. package/cdn/chunks/{chunk.HLWTZUNM.js → chunk.MLP7HBSH.js} +1 -1
  49. package/cdn/chunks/{chunk.HMS35ZFE.js → chunk.MUYS3VLW.js} +1 -1
  50. package/cdn/chunks/{chunk.PBLQN3V3.js → chunk.NBDYVJG7.js} +2 -2
  51. package/cdn/chunks/{chunk.UZXDYK53.js → chunk.NEX76C32.js} +1 -1
  52. package/cdn/chunks/{chunk.OMNS4VCH.js → chunk.NFZX5QLA.js} +3 -2
  53. package/cdn/chunks/{chunk.W3HO6JCE.js → chunk.NJXH3IRZ.js} +879 -872
  54. package/cdn/chunks/{chunk.L4I27MFM.js → chunk.NRJPNVKJ.js} +5 -5
  55. package/cdn/chunks/{chunk.NU7TSJBK.js → chunk.O6XKN4XG.js} +1 -1
  56. package/cdn/chunks/{chunk.DAU3WOOX.js → chunk.OM5DBXAA.js} +1 -1
  57. package/cdn/chunks/{chunk.DWJKXUBF.js → chunk.OZTDXAX5.js} +1 -1
  58. package/cdn/chunks/{chunk.GNJ64MX4.js → chunk.PFD6QD3N.js} +1 -1
  59. package/cdn/chunks/{chunk.UDN5GVCH.js → chunk.PRK4GQ4U.js} +5 -5
  60. package/cdn/chunks/{chunk.467YJHXX.js → chunk.PVQOGLHB.js} +1 -1
  61. package/cdn/chunks/{chunk.NAKDRTM3.js → chunk.QI334AW4.js} +1 -1
  62. package/cdn/chunks/{chunk.WPJRNDCU.js → chunk.RFFLYTYZ.js} +1 -1
  63. package/cdn/chunks/{chunk.RUCYKME7.js → chunk.SALOHJ2J.js} +1 -1
  64. package/cdn/chunks/{chunk.KTKJNP4G.js → chunk.SKWBBH6E.js} +8 -8
  65. package/cdn/chunks/{chunk.CIU3DE3N.js → chunk.SOIYGJ23.js} +13 -13
  66. package/cdn/chunks/{chunk.P4E3A35I.js → chunk.T24KHJE2.js} +53 -91
  67. package/cdn/chunks/{chunk.FNPBZ24K.js → chunk.T4PNGMEY.js} +2 -2
  68. package/cdn/chunks/{chunk.DVFV2XWA.js → chunk.TTUMJEXX.js} +1 -1
  69. package/cdn/chunks/chunk.TVBK6ADB.js +356 -0
  70. package/cdn/chunks/{chunk.GJTB6JYC.js → chunk.UD2MPINQ.js} +1 -1
  71. package/cdn/chunks/{chunk.ZNXJJKMX.js → chunk.UMDWHUPM.js} +1 -1
  72. package/cdn/chunks/{chunk.Y6ZBEMEZ.js → chunk.W5VBFDDM.js} +7 -7
  73. package/cdn/chunks/chunk.WEE2ZC7F.js +92 -0
  74. package/cdn/chunks/{chunk.B5Y572W6.js → chunk.WHEKMGLU.js} +1 -1
  75. package/cdn/chunks/{chunk.WZ3NAGXV.js → chunk.WJENPIUH.js} +8 -8
  76. package/cdn/chunks/{chunk.K7B6SBUE.js → chunk.WKTM6GJT.js} +1 -1
  77. package/cdn/chunks/{chunk.5NZYYIJL.js → chunk.XKT2TWT2.js} +1 -1
  78. package/cdn/chunks/{chunk.RGHZIL3I.js → chunk.XPNFDAYM.js} +1 -1
  79. package/cdn/chunks/{chunk.TU7POBNP.js → chunk.XR5EZIHP.js} +1 -1
  80. package/cdn/chunks/{chunk.6KECUGN2.js → chunk.XZAZP7WS.js} +1 -1
  81. package/cdn/chunks/{chunk.BUL4XWSB.js → chunk.YLZXWNDJ.js} +1 -1
  82. package/cdn/chunks/{chunk.KJ7J4PCK.js → chunk.Z726T3DO.js} +1 -1
  83. package/cdn/components/accordion/accordion.component.js +4 -4
  84. package/cdn/components/accordion/accordion.js +5 -5
  85. package/cdn/components/alert/alert.component.js +3 -3
  86. package/cdn/components/alert/alert.js +4 -4
  87. package/cdn/components/browse-variables/browse-variables.component.js +15 -15
  88. package/cdn/components/browse-variables/browse-variables.controller.js +1 -1
  89. package/cdn/components/browse-variables/browse-variables.js +16 -16
  90. package/cdn/components/button/button.component.js +2 -2
  91. package/cdn/components/button/button.js +3 -3
  92. package/cdn/components/chip/chip.component.js +2 -2
  93. package/cdn/components/chip/chip.js +3 -3
  94. package/cdn/components/combobox/combobox.component.js +6 -6
  95. package/cdn/components/combobox/combobox.js +7 -7
  96. package/cdn/components/data-rods/data-rods.component.js +37 -35
  97. package/cdn/components/data-rods/data-rods.js +38 -36
  98. package/cdn/components/data-subsetter/data-subsetter.component.js +26 -26
  99. package/cdn/components/data-subsetter/data-subsetter.controller.js +2 -2
  100. package/cdn/components/data-subsetter/data-subsetter.js +27 -27
  101. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +30 -30
  102. package/cdn/components/data-subsetter-history/data-subsetter-history.js +31 -31
  103. package/cdn/components/date-picker/date-picker.component.js +3 -3
  104. package/cdn/components/date-picker/date-picker.js +4 -4
  105. package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
  106. package/cdn/components/date-range-slider/date-range-slider.js +4 -4
  107. package/cdn/components/dialog/dialog.component.js +2 -2
  108. package/cdn/components/dialog/dialog.js +3 -3
  109. package/cdn/components/icon/icon.component.js +2 -2
  110. package/cdn/components/icon/icon.js +3 -3
  111. package/cdn/components/loader/loader.component.js +2 -2
  112. package/cdn/components/loader/loader.js +3 -3
  113. package/cdn/components/login/login.component.js +12 -12
  114. package/cdn/components/login/login.js +13 -13
  115. package/cdn/components/map/map.component.js +7 -7
  116. package/cdn/components/map/map.js +8 -8
  117. package/cdn/components/plot/plot.component.js +3 -3
  118. package/cdn/components/plot/plot.js +4 -4
  119. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.d.ts +29 -0
  120. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +7 -0
  121. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.d.ts +29 -0
  122. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +7 -0
  123. package/cdn/components/plot-toolbar/plot-toolbar.component.js +12 -10
  124. package/cdn/components/plot-toolbar/plot-toolbar.js +13 -11
  125. package/cdn/components/skeleton/skeleton.component.js +6 -6
  126. package/cdn/components/skeleton/skeleton.js +7 -7
  127. package/cdn/components/spatial-picker/spatial-picker.component.js +8 -8
  128. package/cdn/components/spatial-picker/spatial-picker.js +9 -9
  129. package/cdn/components/time-average-map/time-average-map.component.d.ts +9 -16
  130. package/cdn/components/time-average-map/time-average-map.component.js +17 -15
  131. package/cdn/components/time-average-map/time-average-map.controller.js +2 -2
  132. package/cdn/components/time-average-map/time-average-map.js +18 -16
  133. package/cdn/components/time-average-map/time-average-map.styles.js +1 -1
  134. package/cdn/components/time-series/time-series.component.js +21 -19
  135. package/cdn/components/time-series/time-series.controller.js +2 -2
  136. package/cdn/components/time-series/time-series.js +22 -20
  137. package/cdn/components/variable-combobox/lib.js +3 -3
  138. package/cdn/components/variable-combobox/variable-combobox.component.js +14 -14
  139. package/cdn/components/variable-combobox/variable-combobox.controller.js +4 -4
  140. package/cdn/components/variable-combobox/variable-combobox.js +15 -15
  141. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +11 -11
  142. package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +1 -1
  143. package/cdn/components/variable-keyword-search/variable-keyword-search.js +12 -12
  144. package/cdn/custom-elements.json +1315 -1321
  145. package/cdn/metadata-catalog/tasks.d.ts +1 -1
  146. package/cdn/react/accordion/index.js +5 -5
  147. package/cdn/react/alert/index.js +4 -4
  148. package/cdn/react/browse-variables/index.js +16 -16
  149. package/cdn/react/button/index.js +3 -3
  150. package/cdn/react/chip/index.js +3 -3
  151. package/cdn/react/combobox/index.js +7 -7
  152. package/cdn/react/data-rods/index.js +38 -36
  153. package/cdn/react/data-subsetter/index.js +27 -27
  154. package/cdn/react/data-subsetter-history/index.js +31 -31
  155. package/cdn/react/date-picker/index.js +4 -4
  156. package/cdn/react/date-range-slider/index.js +4 -4
  157. package/cdn/react/dialog/index.js +3 -3
  158. package/cdn/react/icon/index.js +3 -3
  159. package/cdn/react/index.d.ts +4 -4
  160. package/cdn/react/index.js +99 -97
  161. package/cdn/react/loader/index.js +3 -3
  162. package/cdn/react/login/index.js +13 -13
  163. package/cdn/react/map/index.js +8 -8
  164. package/cdn/react/plot/index.js +4 -4
  165. package/cdn/react/plot-toolbar/index.js +13 -11
  166. package/cdn/react/skeleton/index.js +7 -7
  167. package/cdn/react/spatial-picker/index.js +9 -9
  168. package/cdn/react/time-average-map/index.js +18 -16
  169. package/cdn/react/time-series/index.js +22 -20
  170. package/cdn/react/variable-combobox/index.js +15 -15
  171. package/cdn/react/variable-keyword-search/index.js +12 -12
  172. package/cdn/terra-ui-components.js +92 -90
  173. package/cdn/types/vue/index.d.ts +250 -256
  174. package/cdn/utilities/animation.js +4 -4
  175. package/cdn/vscode.html-custom-data.json +96 -101
  176. package/cdn/web-types.json +462 -473
  177. package/dist/chunks/{chunk.FSK2PMOK.js → chunk.2BDFEQ6D.js} +1 -1
  178. package/dist/chunks/{chunk.NHWGNLNM.js → chunk.2YVK523F.js} +1 -1
  179. package/dist/chunks/{chunk.ZSRQRLDK.js → chunk.3WYGODDM.js} +13 -13
  180. package/dist/chunks/{chunk.3RHIGQG3.js → chunk.4G2NJX5Y.js} +1 -1
  181. package/dist/chunks/{chunk.LVSSJ2BC.js → chunk.4PIFB6GY.js} +1 -1
  182. package/dist/chunks/chunk.52JXOR5K.js +83 -0
  183. package/dist/chunks/{chunk.73OEIR2D.js → chunk.53G6W4QI.js} +1 -1
  184. package/dist/chunks/{chunk.X6HEGFAP.js → chunk.5LQUNLDJ.js} +1 -1
  185. package/dist/chunks/{chunk.56HKPF4J.js → chunk.5Q25QZIT.js} +2 -2
  186. package/dist/chunks/{chunk.3LE5L6NH.js → chunk.5SZFKTXS.js} +1 -1
  187. package/dist/chunks/{chunk.VDOD6A4H.js → chunk.6KBSHT6A.js} +1 -1
  188. package/dist/chunks/{chunk.FXDQXGKR.js → chunk.6VPHVZU2.js} +1 -1
  189. package/dist/chunks/{chunk.TA2S2O22.js → chunk.6YNZKV4X.js} +1 -1
  190. package/dist/chunks/{chunk.AAVXX4X6.js → chunk.CP34FRRO.js} +4 -4
  191. package/dist/chunks/{chunk.LQA33A5Y.js → chunk.CQYHYUBI.js} +1 -1
  192. package/dist/chunks/{chunk.LMCYO76D.js → chunk.DI7GSEOS.js} +6 -6
  193. package/dist/chunks/{chunk.OX3M4HHA.js → chunk.DT3BPAMV.js} +1 -1
  194. package/dist/chunks/{chunk.NFYYMCLN.js → chunk.E6KALXCF.js} +1 -1
  195. package/dist/chunks/{chunk.GH7OOGWI.js → chunk.EQENV3EJ.js} +1 -1
  196. package/dist/chunks/{chunk.JBZEA4AV.js → chunk.FIDJWRGW.js} +1 -1
  197. package/dist/chunks/chunk.G6VNN7RY.js +345 -0
  198. package/dist/chunks/{chunk.5UWB7UZQ.js → chunk.GLE6HCJK.js} +2 -2
  199. package/dist/chunks/{chunk.VERWTVW6.js → chunk.GONY65CV.js} +1 -1
  200. package/dist/chunks/{chunk.LFIHDS4P.js → chunk.GULYBUN7.js} +1 -1
  201. package/dist/chunks/{chunk.LDJSZCZT.js → chunk.I76YOANK.js} +3 -3
  202. package/dist/chunks/{chunk.UCHR7YLM.js → chunk.IACJNU7S.js} +1 -1
  203. package/dist/chunks/{chunk.ZY42FWRW.js → chunk.IRRPPVRH.js} +1 -1
  204. package/dist/chunks/{chunk.72XNNOW4.js → chunk.ISKMTEMJ.js} +1 -1
  205. package/dist/chunks/{chunk.NQFD7EE5.js → chunk.JRHSF76R.js} +1 -1
  206. package/dist/chunks/{chunk.BTT6652Q.js → chunk.JV3HTI25.js} +1 -1
  207. package/dist/chunks/{chunk.KLFYBBE6.js → chunk.KFKUXJPR.js} +1 -1
  208. package/dist/chunks/{chunk.X3M6WLD3.js → chunk.KGL7PSV6.js} +3 -2
  209. package/dist/chunks/{chunk.L7HDPJIE.js → chunk.KGYPLIVT.js} +1 -1
  210. package/dist/chunks/{chunk.YGEXSW3H.js → chunk.KPEPQL2K.js} +1 -1
  211. package/dist/chunks/{chunk.BMX4USEA.js → chunk.M4ONZLND.js} +1 -1
  212. package/dist/chunks/{chunk.7DPWAZLO.js → chunk.MBKBNFCJ.js} +3 -3
  213. package/dist/chunks/{chunk.VZBJR5OT.js → chunk.MRTVNBN3.js} +4 -4
  214. package/dist/chunks/{chunk.6NKOHI5B.js → chunk.NIOVTAVK.js} +1 -1
  215. package/dist/chunks/{chunk.KWG5TMYI.js → chunk.NPBUKX3M.js} +1 -1
  216. package/dist/chunks/{chunk.DLN23BCO.js → chunk.OQSUGE4F.js} +114 -106
  217. package/dist/chunks/{chunk.C3DAMHM5.js → chunk.OTUXOFRQ.js} +1 -1
  218. package/dist/chunks/{chunk.XCJFXOUJ.js → chunk.OUBMIFQN.js} +1 -1
  219. package/dist/chunks/{chunk.PI74TFLX.js → chunk.PATWIPZO.js} +1 -1
  220. package/dist/chunks/{chunk.TSUHYKNE.js → chunk.PHVEWIAO.js} +1 -1
  221. package/dist/chunks/{chunk.RXFK4PNJ.js → chunk.PQOOTQ4S.js} +1 -1
  222. package/dist/chunks/{chunk.4SQRMGRI.js → chunk.PZRR5NRB.js} +49 -87
  223. package/dist/chunks/{chunk.JUK556H2.js → chunk.Q3NXZZCS.js} +5 -5
  224. package/dist/chunks/{chunk.EJEZ4OB2.js → chunk.Q4TMLG35.js} +1 -1
  225. package/dist/chunks/{chunk.I3UITRH4.js → chunk.QHNCVNJD.js} +1 -1
  226. package/dist/chunks/{chunk.6XXHVKIS.js → chunk.R4WGE52M.js} +1 -1
  227. package/dist/chunks/{chunk.IT3HG75V.js → chunk.SEPEU6WC.js} +1 -1
  228. package/dist/chunks/{chunk.7VYFTAMX.js → chunk.SH4T36EU.js} +8 -8
  229. package/dist/chunks/{chunk.2U2MG75K.js → chunk.SJCI5E5I.js} +1 -1
  230. package/dist/chunks/{chunk.2UBM4CBQ.js → chunk.SR7SD4NJ.js} +1 -1
  231. package/dist/chunks/{chunk.ECKPZ7KV.js → chunk.T2TAOJP3.js} +1 -1
  232. package/dist/chunks/{chunk.USZET3TZ.js → chunk.TGXFUCXF.js} +1 -1
  233. package/dist/chunks/{chunk.WYVR2UK6.js → chunk.TM5MVEDD.js} +1 -1
  234. package/dist/chunks/{chunk.A3235DJS.js → chunk.TRPOV5FA.js} +1 -1
  235. package/dist/chunks/{chunk.4APCHGW6.js → chunk.UBKGVJMB.js} +1 -1
  236. package/dist/chunks/{chunk.DQXNCGT2.js → chunk.ULUE333C.js} +1 -1
  237. package/dist/chunks/{chunk.DIT75M24.js → chunk.UY5N3NOL.js} +1 -1
  238. package/dist/chunks/{chunk.EG5XF4TE.js → chunk.UZE22W7U.js} +7 -7
  239. package/dist/chunks/{chunk.RXPSFCIB.js → chunk.V7ZLYJIM.js} +1 -1
  240. package/dist/chunks/{chunk.KKIE5QUV.js → chunk.VXB5JTYI.js} +1 -1
  241. package/dist/chunks/{chunk.66QL3HHY.js → chunk.WILBSSI5.js} +1 -1
  242. package/dist/chunks/chunk.WILF7DGN.js +73 -0
  243. package/dist/chunks/{chunk.RZ3APMFR.js → chunk.WMRLY7X2.js} +20 -15
  244. package/dist/chunks/{chunk.VCZEXFKK.js → chunk.WN2HCRGH.js} +1 -1
  245. package/dist/chunks/{chunk.PFGJDQ4T.js → chunk.WR56WPUW.js} +1 -1
  246. package/dist/chunks/{chunk.UIQ4IFH3.js → chunk.WVCNEUUF.js} +1 -1
  247. package/dist/chunks/{chunk.TRBBME7I.js → chunk.XOW3F3CH.js} +1 -1
  248. package/dist/chunks/{chunk.6SLS4YLS.js → chunk.XTHIZTLJ.js} +5 -5
  249. package/dist/chunks/{chunk.RN5S3QRL.js → chunk.XVYXL5JR.js} +1 -1
  250. package/dist/chunks/{chunk.SX5K5D7G.js → chunk.Y4VOLHAF.js} +13 -13
  251. package/dist/chunks/{chunk.MEMLURXI.js → chunk.YFB4JQJE.js} +1 -1
  252. package/dist/chunks/{chunk.WKPS3JCO.js → chunk.YI6QMKEU.js} +9 -9
  253. package/dist/chunks/{chunk.U5LYRR3R.js → chunk.Z6M2GKS3.js} +1 -1
  254. package/dist/chunks/{chunk.6BCYA2PF.js → chunk.ZLULW6G6.js} +1 -1
  255. package/dist/chunks/{chunk.D4PLHZY3.js → chunk.ZQTURAYY.js} +1 -1
  256. package/dist/components/accordion/accordion.component.js +4 -4
  257. package/dist/components/accordion/accordion.js +5 -5
  258. package/dist/components/alert/alert.component.js +3 -3
  259. package/dist/components/alert/alert.js +4 -4
  260. package/dist/components/browse-variables/browse-variables.component.js +10 -10
  261. package/dist/components/browse-variables/browse-variables.js +11 -11
  262. package/dist/components/button/button.component.js +2 -2
  263. package/dist/components/button/button.js +3 -3
  264. package/dist/components/chip/chip.component.js +2 -2
  265. package/dist/components/chip/chip.js +3 -3
  266. package/dist/components/combobox/combobox.component.js +2 -2
  267. package/dist/components/combobox/combobox.js +3 -3
  268. package/dist/components/data-rods/data-rods.component.js +28 -26
  269. package/dist/components/data-rods/data-rods.js +29 -27
  270. package/dist/components/data-subsetter/data-subsetter.component.js +22 -22
  271. package/dist/components/data-subsetter/data-subsetter.js +23 -23
  272. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +26 -26
  273. package/dist/components/data-subsetter-history/data-subsetter-history.js +27 -27
  274. package/dist/components/date-picker/date-picker.component.js +3 -3
  275. package/dist/components/date-picker/date-picker.js +4 -4
  276. package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
  277. package/dist/components/date-range-slider/date-range-slider.js +4 -4
  278. package/dist/components/dialog/dialog.component.js +2 -2
  279. package/dist/components/dialog/dialog.js +3 -3
  280. package/dist/components/icon/icon.component.js +2 -2
  281. package/dist/components/icon/icon.js +3 -3
  282. package/dist/components/loader/loader.component.js +2 -2
  283. package/dist/components/loader/loader.js +3 -3
  284. package/dist/components/login/login.component.js +10 -10
  285. package/dist/components/login/login.js +11 -11
  286. package/dist/components/map/map.component.js +5 -5
  287. package/dist/components/map/map.js +6 -6
  288. package/dist/components/plot/plot.component.js +2 -2
  289. package/dist/components/plot/plot.js +3 -3
  290. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.d.ts +29 -0
  291. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +7 -0
  292. package/dist/components/plot-toolbar/notebooks/time-series-notebook.d.ts +29 -0
  293. package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +7 -0
  294. package/dist/components/plot-toolbar/plot-toolbar.component.js +8 -6
  295. package/dist/components/plot-toolbar/plot-toolbar.js +9 -7
  296. package/dist/components/skeleton/skeleton.component.js +2 -2
  297. package/dist/components/skeleton/skeleton.js +3 -3
  298. package/dist/components/spatial-picker/spatial-picker.component.js +6 -6
  299. package/dist/components/spatial-picker/spatial-picker.js +7 -7
  300. package/dist/components/time-average-map/time-average-map.component.d.ts +9 -16
  301. package/dist/components/time-average-map/time-average-map.component.js +12 -10
  302. package/dist/components/time-average-map/time-average-map.controller.js +1 -1
  303. package/dist/components/time-average-map/time-average-map.js +13 -11
  304. package/dist/components/time-average-map/time-average-map.styles.js +1 -1
  305. package/dist/components/time-series/time-series.component.js +15 -13
  306. package/dist/components/time-series/time-series.js +16 -14
  307. package/dist/components/variable-combobox/variable-combobox.component.js +7 -7
  308. package/dist/components/variable-combobox/variable-combobox.js +8 -8
  309. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +7 -7
  310. package/dist/components/variable-keyword-search/variable-keyword-search.js +8 -8
  311. package/dist/custom-elements.json +1315 -1321
  312. package/dist/metadata-catalog/tasks.d.ts +1 -1
  313. package/dist/react/accordion/index.js +5 -5
  314. package/dist/react/alert/index.js +4 -4
  315. package/dist/react/browse-variables/index.js +11 -11
  316. package/dist/react/button/index.js +3 -3
  317. package/dist/react/chip/index.js +3 -3
  318. package/dist/react/combobox/index.js +3 -3
  319. package/dist/react/data-rods/index.js +29 -27
  320. package/dist/react/data-subsetter/index.js +23 -23
  321. package/dist/react/data-subsetter-history/index.js +27 -27
  322. package/dist/react/date-picker/index.js +4 -4
  323. package/dist/react/date-range-slider/index.js +4 -4
  324. package/dist/react/dialog/index.js +3 -3
  325. package/dist/react/icon/index.js +3 -3
  326. package/dist/react/index.d.ts +4 -4
  327. package/dist/react/index.js +89 -87
  328. package/dist/react/loader/index.js +3 -3
  329. package/dist/react/login/index.js +11 -11
  330. package/dist/react/map/index.js +6 -6
  331. package/dist/react/plot/index.js +3 -3
  332. package/dist/react/plot-toolbar/index.js +9 -7
  333. package/dist/react/skeleton/index.js +3 -3
  334. package/dist/react/spatial-picker/index.js +7 -7
  335. package/dist/react/time-average-map/index.js +13 -11
  336. package/dist/react/time-series/index.js +16 -14
  337. package/dist/react/variable-combobox/index.js +8 -8
  338. package/dist/react/variable-keyword-search/index.js +8 -8
  339. package/dist/terra-ui-components.js +82 -80
  340. package/dist/{terra_ui_components-0.0.75-py3-none-any.whl → terra_ui_components-0.0.77-py3-none-any.whl} +0 -0
  341. package/dist/{terra_ui_components-0.0.75.tar.gz → terra_ui_components-0.0.77.tar.gz} +0 -0
  342. package/dist/types/vue/index.d.ts +250 -256
  343. package/dist/vscode.html-custom-data.json +96 -101
  344. package/dist/web-types.json +462 -473
  345. package/package.json +1 -1
  346. package/cdn/chunks/chunk.BBQJZ64A.js +0 -52
  347. package/dist/chunks/chunk.P7EL7GKI.js +0 -41
  348. package/cdn/chunks/{chunk.EMLDT66I.js → chunk.EDY6YM3Y.js} +4 -4
  349. package/cdn/chunks/{chunk.UQPT3AQ5.js → chunk.HDPH5PEF.js} +4 -4
  350. package/cdn/chunks/{chunk.SU2EH44I.js → chunk.NFS2RDEX.js} +5 -5
  351. package/cdn/chunks/{chunk.2PNASAQ6.js → chunk.OXUFHTFN.js} +3 -3
  352. package/cdn/chunks/{chunk.VPW32Q52.js → chunk.QFJLPXXJ.js} +3 -3
@@ -1,3 +1,9 @@
1
+ import {
2
+ getTimeAveragedMapNotebook
3
+ } from "./chunk.WILF7DGN.js";
4
+ import {
5
+ getTimeSeriesNotebook
6
+ } from "./chunk.52JXOR5K.js";
1
7
  import {
2
8
  DB_NAME,
3
9
  getDataByKey
@@ -7,20 +13,20 @@ import {
7
13
  } from "./chunk.QSZWARPH.js";
8
14
  import {
9
15
  AuthController
10
- } from "./chunk.UIQ4IFH3.js";
16
+ } from "./chunk.WVCNEUUF.js";
11
17
  import {
12
18
  TerraButton
13
- } from "./chunk.KLFYBBE6.js";
19
+ } from "./chunk.KFKUXJPR.js";
14
20
  import {
15
21
  TerraIcon
16
- } from "./chunk.WYVR2UK6.js";
22
+ } from "./chunk.TM5MVEDD.js";
17
23
  import {
18
24
  watch
19
25
  } from "./chunk.DTUHBE3U.js";
20
26
  import {
21
27
  TerraElement,
22
28
  component_styles_default
23
- } from "./chunk.NQFD7EE5.js";
29
+ } from "./chunk.JRHSF76R.js";
24
30
  import {
25
31
  __decorateClass,
26
32
  __privateAdd,
@@ -32,7 +38,7 @@ import { property, query, state } from "lit/decorators.js";
32
38
  import { html } from "lit";
33
39
  import { downloadImage } from "plotly.js-dist-min";
34
40
  import { cache } from "lit/directives/cache.js";
35
- var _handleActiveMenuItem, handleActiveMenuItem_fn, _handleMenuLeave, handleMenuLeave_fn, _renderInfoPanel, renderInfoPanel_fn, _renderDownloadPanel, renderDownloadPanel_fn, _renderHelpPanel, renderHelpPanel_fn, _renderJupyterNotebookPanel, renderJupyterNotebookPanel_fn, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn, _sendDataToJupyterNotebook, sendDataToJupyterNotebook_fn, _downloadPNG, downloadPNG_fn, _downloadCSV, downloadCSV_fn, _convertToCSV, convertToCSV_fn, _downloadGeotiff, downloadGeotiff_fn;
41
+ var _handleActiveMenuItem, handleActiveMenuItem_fn, _handleMenuLeave, handleMenuLeave_fn, _renderInfoPanel, renderInfoPanel_fn, _renderDownloadPanel, renderDownloadPanel_fn, _renderHelpPanel, renderHelpPanel_fn, _renderJupyterNotebookPanel, renderJupyterNotebookPanel_fn, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn, _sendDataToJupyterNotebook, sendDataToJupyterNotebook_fn, _sendTimeSeriesDataToJupyterNotebook, sendTimeSeriesDataToJupyterNotebook_fn, _sendMapDataToJupyterNotebook, sendMapDataToJupyterNotebook_fn, _downloadPNG, downloadPNG_fn, _downloadCSV, downloadCSV_fn, _convertToCSV, convertToCSV_fn, _downloadGeotiff, downloadGeotiff_fn;
36
42
  var TerraPlotToolbar = class extends TerraElement {
37
43
  constructor() {
38
44
  super(...arguments);
@@ -44,6 +50,8 @@ var TerraPlotToolbar = class extends TerraElement {
44
50
  __privateAdd(this, _renderJupyterNotebookPanel);
45
51
  __privateAdd(this, _handleJupyterNotebookClick);
46
52
  __privateAdd(this, _sendDataToJupyterNotebook);
53
+ __privateAdd(this, _sendTimeSeriesDataToJupyterNotebook);
54
+ __privateAdd(this, _sendMapDataToJupyterNotebook);
47
55
  __privateAdd(this, _downloadPNG);
48
56
  __privateAdd(this, _downloadCSV);
49
57
  __privateAdd(this, _convertToCSV);
@@ -393,101 +401,31 @@ handleJupyterNotebookClick_fn = function() {
393
401
  }
394
402
  console.log("JupyterLite is ready!");
395
403
  __privateMethod(this, _sendDataToJupyterNotebook, sendDataToJupyterNotebook_fn).call(this, jupyterWindow);
396
- window.removeEventListener("message", handleMessage.bind(this));
397
404
  };
398
- window.addEventListener("message", handleMessage.bind(this));
399
- setTimeout(() => {
400
- console.log("JupyterLite is not ready!");
401
- window.removeEventListener("message", handleMessage.bind(this));
402
- }, 5e3);
405
+ window.addEventListener("message", handleMessage.bind(this), { once: true });
403
406
  };
404
407
  _sendDataToJupyterNotebook = new WeakSet();
405
408
  sendDataToJupyterNotebook_fn = function(jupyterWindow) {
406
- console.log("Sending data to JupyterLite...");
409
+ if (this.dataType === "geotiff") {
410
+ __privateMethod(this, _sendMapDataToJupyterNotebook, sendMapDataToJupyterNotebook_fn).call(this, jupyterWindow);
411
+ } else {
412
+ __privateMethod(this, _sendTimeSeriesDataToJupyterNotebook, sendTimeSeriesDataToJupyterNotebook_fn).call(this, jupyterWindow);
413
+ }
414
+ };
415
+ _sendTimeSeriesDataToJupyterNotebook = new WeakSet();
416
+ sendTimeSeriesDataToJupyterNotebook_fn = function(jupyterWindow) {
417
+ console.log("Sending time series data to JupyterLite...");
407
418
  getDataByKey(
408
419
  "time-series" /* TIME_SERIES */,
409
420
  this.cacheKey
410
421
  ).then((timeSeriesData) => {
411
422
  setTimeout(() => {
412
423
  var _a;
413
- const notebook = [
414
- {
415
- cell_type: "markdown",
416
- id: "367f56b9-7ca8-4435-9dcc-89bf586f33ab",
417
- metadata: {},
418
- source: [
419
- "### Prerequisites:\n",
420
- "\n",
421
- "This notebook uses the `terra_ui_components` and `anywidget` packages.\n",
422
- "\n",
423
- "After running the `pip install` cell for the first time, please reload the page to ensure the dependencies are active."
424
- ]
425
- },
426
- {
427
- id: "2733501b-0de4-4067-8aff-864e1b4c76cb",
428
- cell_type: "code",
429
- source: '%pip install -q "terra_ui_components==0.0.70" "anywidget==0.9.15" "pandas"',
430
- metadata: {
431
- trusted: true
432
- },
433
- outputs: [],
434
- execution_count: null
435
- },
436
- {
437
- cell_type: "markdown",
438
- id: "35aa4a00-8e2c-4478-9df7-de633fd8f6ce",
439
- metadata: {},
440
- source: ["### Render a point-based time series plot"]
441
- },
442
- {
443
- id: "870c1384-e706-48ee-ba07-fd552a949869",
444
- cell_type: "code",
445
- source: `from terra_ui_components import TerraTimeSeries
446
- timeseries = TerraTimeSeries()
447
-
448
- timeseries.variableEntryId = '${this.variableEntryId}'
449
- timeseries.startDate = '${this.startDate}'
450
- timeseries.endDate = '${this.endDate}'
451
- timeseries.location = '${this.location}'
452
-
453
- timeseries`,
454
- metadata: {
455
- trusted: true
456
- },
457
- outputs: [],
458
- execution_count: null
459
- },
460
- {
461
- cell_type: "markdown",
462
- id: "25b87ed4-2ad9-4c7d-b851-bc8fea3ded5a",
463
- metadata: {},
464
- source: [
465
- "### Access the time series data\n",
466
- "\n",
467
- "Once the time series runs and you see a plot, you can access the data:"
468
- ]
469
- },
470
- {
471
- cell_type: "code",
472
- execution_count: null,
473
- id: "6b81a089-884d-4fd7-9d4e-c45a53307c20",
474
- metadata: {},
475
- outputs: [],
476
- source: [
477
- "import pandas as pd\n",
478
- 'if getattr(timeseries, "data", None):\n',
479
- " df = pd.DataFrame(timeseries.data)\n",
480
- " df['timestamp'] = pd.to_datetime(df['timestamp'])\n",
481
- " df['value'] = pd.to_numeric(df['value'])\n",
482
- " print(df.dtypes)\n",
483
- " print(df.head())"
484
- ]
485
- }
486
- ];
424
+ const notebook = getTimeSeriesNotebook(this);
487
425
  jupyterWindow.postMessage(
488
426
  {
489
427
  type: "load-notebook",
490
- filename: `${encodeURIComponent((_a = this.variableEntryId) != null ? _a : "plot")}.ipynb`,
428
+ filename: `${encodeURIComponent((_a = this.variableEntryId) != null ? _a : "plot")}-timeseries.ipynb`,
491
429
  notebook,
492
430
  timeSeriesData,
493
431
  databaseName: DB_NAME,
@@ -499,6 +437,30 @@ timeseries`,
499
437
  }, 500);
500
438
  });
501
439
  };
440
+ _sendMapDataToJupyterNotebook = new WeakSet();
441
+ sendMapDataToJupyterNotebook_fn = function(jupyterWindow) {
442
+ console.log("Sending map data to JupyterLite...");
443
+ getDataByKey("time-average-map" /* TIME_AVERAGE_MAP */, this.cacheKey).then(
444
+ (blob) => {
445
+ setTimeout(() => {
446
+ var _a;
447
+ const notebook = getTimeAveragedMapNotebook(this);
448
+ jupyterWindow.postMessage(
449
+ {
450
+ type: "load-notebook",
451
+ filename: `${encodeURIComponent((_a = this.variableEntryId) != null ? _a : "plot")}-map.ipynb`,
452
+ notebook,
453
+ blob,
454
+ databaseName: DB_NAME,
455
+ storeName: "time-average-map" /* TIME_AVERAGE_MAP */,
456
+ token: this.bearerToken
457
+ },
458
+ "*"
459
+ );
460
+ }, 500);
461
+ }
462
+ );
463
+ };
502
464
  _downloadPNG = new WeakSet();
503
465
  downloadPNG_fn = function(_event) {
504
466
  downloadImage(this.plot.base, {
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  loader_default
3
- } from "./chunk.X6HEGFAP.js";
3
+ } from "./chunk.5LQUNLDJ.js";
4
4
  import {
5
5
  login_styles_default
6
6
  } from "./chunk.TCEJ3MS6.js";
7
7
  import {
8
8
  AuthController
9
- } from "./chunk.UIQ4IFH3.js";
9
+ } from "./chunk.WVCNEUUF.js";
10
10
  import {
11
11
  icon_default
12
- } from "./chunk.XCJFXOUJ.js";
12
+ } from "./chunk.OUBMIFQN.js";
13
13
  import {
14
14
  button_default
15
- } from "./chunk.BTT6652Q.js";
15
+ } from "./chunk.JV3HTI25.js";
16
16
  import {
17
17
  TerraElement,
18
18
  component_styles_default
19
- } from "./chunk.NQFD7EE5.js";
19
+ } from "./chunk.JRHSF76R.js";
20
20
  import {
21
21
  __decorateClass,
22
22
  __privateAdd,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraTimeSeries
3
- } from "./chunk.ZSRQRLDK.js";
3
+ } from "./chunk.3WYGODDM.js";
4
4
 
5
5
  // src/react/time-series/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDataSubsetter
3
- } from "./chunk.SX5K5D7G.js";
3
+ } from "./chunk.Y4VOLHAF.js";
4
4
 
5
5
  // src/react/data-subsetter/index.ts
6
6
  import * as React from "react";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  TerraElement,
6
6
  component_styles_default
7
- } from "./chunk.NQFD7EE5.js";
7
+ } from "./chunk.JRHSF76R.js";
8
8
  import {
9
9
  __decorateClass
10
10
  } from "./chunk.TVFCHGU3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraTimeSeries
3
- } from "./chunk.ZSRQRLDK.js";
3
+ } from "./chunk.3WYGODDM.js";
4
4
 
5
5
  // src/components/time-series/time-series.ts
6
6
  var time_series_default = TerraTimeSeries;
@@ -1,29 +1,29 @@
1
- import {
2
- TerraTimeSeries
3
- } from "./chunk.ZSRQRLDK.js";
4
1
  import {
5
2
  TerraVariableCombobox
6
- } from "./chunk.LDJSZCZT.js";
3
+ } from "./chunk.I76YOANK.js";
4
+ import {
5
+ TerraTimeSeries
6
+ } from "./chunk.3WYGODDM.js";
7
7
  import {
8
8
  getFetchVariableTask,
9
9
  getVariableEntryId
10
- } from "./chunk.X3M6WLD3.js";
10
+ } from "./chunk.KGL7PSV6.js";
11
11
  import {
12
12
  TerraDateRangeSlider
13
- } from "./chunk.AAVXX4X6.js";
13
+ } from "./chunk.CP34FRRO.js";
14
14
  import {
15
15
  data_rods_styles_default
16
16
  } from "./chunk.F5AEDYTP.js";
17
17
  import {
18
18
  TerraSpatialPicker
19
- } from "./chunk.5UWB7UZQ.js";
19
+ } from "./chunk.GLE6HCJK.js";
20
20
  import {
21
21
  getUTCDate
22
22
  } from "./chunk.IC4T7CZD.js";
23
23
  import {
24
24
  TerraElement,
25
25
  component_styles_default
26
- } from "./chunk.NQFD7EE5.js";
26
+ } from "./chunk.JRHSF76R.js";
27
27
  import {
28
28
  __decorateClass,
29
29
  __privateAdd,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraSpatialPicker
3
- } from "./chunk.5UWB7UZQ.js";
3
+ } from "./chunk.GLE6HCJK.js";
4
4
 
5
5
  // src/components/spatial-picker/spatial-picker.ts
6
6
  var spatial_picker_default = TerraSpatialPicker;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDataSubsetterHistory
3
- } from "./chunk.WKPS3JCO.js";
3
+ } from "./chunk.YI6QMKEU.js";
4
4
 
5
5
  // src/react/data-subsetter-history/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableCombobox
3
- } from "./chunk.LDJSZCZT.js";
3
+ } from "./chunk.I76YOANK.js";
4
4
 
5
5
  // src/react/variable-combobox/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDataRods
3
- } from "./chunk.7VYFTAMX.js";
3
+ } from "./chunk.SH4T36EU.js";
4
4
 
5
5
  // src/react/data-rods/index.ts
6
6
  import * as React from "react";
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  TerraElement,
14
14
  component_styles_default
15
- } from "./chunk.NQFD7EE5.js";
15
+ } from "./chunk.JRHSF76R.js";
16
16
  import {
17
17
  __decorateClass,
18
18
  __privateAdd,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  TerraElement,
9
9
  component_styles_default
10
- } from "./chunk.NQFD7EE5.js";
10
+ } from "./chunk.JRHSF76R.js";
11
11
  import {
12
12
  __decorateClass,
13
13
  __privateAdd,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDatePicker
3
- } from "./chunk.56HKPF4J.js";
3
+ } from "./chunk.5Q25QZIT.js";
4
4
 
5
5
  // src/components/date-picker/date-picker.ts
6
6
  var date_picker_default = TerraDatePicker;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDateRangeSlider
3
- } from "./chunk.AAVXX4X6.js";
3
+ } from "./chunk.CP34FRRO.js";
4
4
 
5
5
  // src/react/date-range-slider/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraChip
3
- } from "./chunk.LVSSJ2BC.js";
3
+ } from "./chunk.4PIFB6GY.js";
4
4
 
5
5
  // src/react/chip/index.ts
6
6
  import * as React from "react";
@@ -1,9 +1,3 @@
1
- import {
2
- MapController
3
- } from "./chunk.J25AAZTC.js";
4
- import {
5
- map_styles_default
6
- } from "./chunk.BEDYDFXT.js";
7
1
  import {
8
2
  leaflet_draw_styles_default
9
3
  } from "./chunk.445A7YVG.js";
@@ -13,13 +7,19 @@ import {
13
7
  import {
14
8
  leaflet_styles_default
15
9
  } from "./chunk.HNQMK3PU.js";
10
+ import {
11
+ MapController
12
+ } from "./chunk.J25AAZTC.js";
13
+ import {
14
+ map_styles_default
15
+ } from "./chunk.BEDYDFXT.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.NQFD7EE5.js";
22
+ } from "./chunk.JRHSF76R.js";
23
23
  import {
24
24
  __decorateClass,
25
25
  __privateAdd,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableKeywordSearch
3
- } from "./chunk.7DPWAZLO.js";
3
+ } from "./chunk.MBKBNFCJ.js";
4
4
 
5
5
  // src/react/variable-keyword-search/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraAccordion
3
- } from "./chunk.6SLS4YLS.js";
3
+ } from "./chunk.XTHIZTLJ.js";
4
4
 
5
5
  // src/components/accordion/accordion.ts
6
6
  var accordion_default = TerraAccordion;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraCombobox
3
- } from "./chunk.3LE5L6NH.js";
3
+ } from "./chunk.5SZFKTXS.js";
4
4
 
5
5
  // src/react/combobox/index.ts
6
6
  import * as React from "react";
@@ -0,0 +1,73 @@
1
+ // src/components/plot-toolbar/notebooks/time-averaged-map-notebook.ts
2
+ function getTimeAveragedMapNotebook(host) {
3
+ return [
4
+ {
5
+ cell_type: "markdown",
6
+ id: "367f56b9-7ca8-4435-9dcc-89bf586f33ab",
7
+ metadata: {},
8
+ source: [
9
+ "### Prerequisites:\n",
10
+ "\n",
11
+ "This notebook uses the `terra_ui_components`, `anywidget`, and `pandas` packages.\n",
12
+ "\n",
13
+ "After running the `pip install` cell for the first time, please reload the page to ensure the dependencies are active."
14
+ ]
15
+ },
16
+ {
17
+ id: "2733501b-0de4-4067-8aff-864e1b4c76cb",
18
+ cell_type: "code",
19
+ source: '%pip install -q "terra_ui_components==0.0.70" "anywidget==0.9.15" "pandas"',
20
+ metadata: {
21
+ trusted: true
22
+ },
23
+ outputs: [],
24
+ execution_count: null
25
+ },
26
+ {
27
+ cell_type: "markdown",
28
+ id: "35aa4a00-8e2c-4478-9df7-de633fd8f6ce",
29
+ metadata: {},
30
+ source: ["### Render an area-averaged map"]
31
+ },
32
+ {
33
+ id: "870c1384-e706-48ee-ba07-fd552a949869",
34
+ cell_type: "code",
35
+ source: `from terra_ui_components import TerraTimeAverageMap
36
+ map = TerraTimeAverageMap()
37
+ map.collection='${host.catalogVariable.dataProductShortName}_${host.catalogVariable.dataProductVersion}'
38
+ map.variable = '${host.catalogVariable.dataFieldShortName}'
39
+ map.startDate = '${host.startDate}'
40
+ map.endDate = '${host.endDate}'
41
+ map.location = '${host.location}'
42
+
43
+ map`,
44
+ metadata: {
45
+ trusted: true
46
+ },
47
+ outputs: [],
48
+ execution_count: null
49
+ },
50
+ {
51
+ cell_type: "markdown",
52
+ id: "25b87ed4-2ad9-4c7d-b851-bc8fea3ded5a",
53
+ metadata: {},
54
+ source: [
55
+ "### Access the map GeoTIFF data\n",
56
+ "\n",
57
+ "Once the map renders, you can access the data:"
58
+ ]
59
+ },
60
+ {
61
+ cell_type: "code",
62
+ execution_count: null,
63
+ id: "6b81a089-884d-4fd7-9d4e-c45a53307c20",
64
+ metadata: {},
65
+ outputs: [],
66
+ source: ["map.data"]
67
+ }
68
+ ];
69
+ }
70
+
71
+ export {
72
+ getTimeAveragedMapNotebook
73
+ };
@@ -20,9 +20,10 @@ import {
20
20
  import { Task } from "@lit/task";
21
21
  import { format } from "date-fns";
22
22
  var REFRESH_HARMONY_DATA_INTERVAL = 2e3;
23
- var _host, _dataService, _waitForHarmonyJob, waitForHarmonyJob_fn, _getDataService, getDataService_fn, _getEmptyJob, getEmptyJob_fn;
23
+ var _host, _dataService, _updateGeoTIFFLayer, updateGeoTIFFLayer_fn, _waitForHarmonyJob, waitForHarmonyJob_fn, _getDataService, getDataService_fn, _getEmptyJob, getEmptyJob_fn;
24
24
  var TimeAvgMapController = class {
25
25
  constructor(host) {
26
+ __privateAdd(this, _updateGeoTIFFLayer);
26
27
  __privateAdd(this, _waitForHarmonyJob);
27
28
  __privateAdd(this, _getDataService);
28
29
  __privateAdd(this, _getEmptyJob);
@@ -37,10 +38,9 @@ var TimeAvgMapController = class {
37
38
  const start_date = new Date((_b = (_a = __privateGet(this, _host)) == null ? void 0 : _a.startDate) != null ? _b : Date.now());
38
39
  const end_date = new Date((_d = (_c = __privateGet(this, _host)) == null ? void 0 : _c.endDate) != null ? _d : Date.now());
39
40
  const [w, s, e, n] = (_f = (_e = __privateGet(this, _host).location) == null ? void 0 : _e.split(",")) != null ? _f : [];
40
- const parts = __privateGet(this, _host).collection.split("_");
41
- const collectionEntryId = parts[0] + "_" + parts.slice(1).join(".");
41
+ const collection = `${__privateGet(this, _host).catalogVariable.dataProductShortName}_${__privateGet(this, _host).catalogVariable.dataProductVersion}`;
42
42
  let subsetOptions = {
43
- collectionEntryId: `${collectionEntryId}`,
43
+ collectionEntryId: `${collection}`,
44
44
  variableConceptIds: ["parameter_vars"],
45
45
  variableEntryIds: [
46
46
  `${__privateGet(this, _host).collection}_${__privateGet(this, _host).variable}`
@@ -66,7 +66,7 @@ var TimeAvgMapController = class {
66
66
  "Returning existing map blob from cache",
67
67
  cacheKey
68
68
  );
69
- this.blobUrl = existing.blob;
69
+ __privateMethod(this, _updateGeoTIFFLayer, updateGeoTIFFLayer_fn).call(this, existing.blob);
70
70
  return existing.blob;
71
71
  }
72
72
  console.log("Calling create subset job..");
@@ -88,22 +88,13 @@ var TimeAvgMapController = class {
88
88
  environment: __privateGet(this, _host).environment
89
89
  }
90
90
  );
91
- this.blobUrl = blob;
92
- __privateGet(this, _host).emit("terra-time-average-map-data-change", {
93
- detail: {
94
- data: blob,
95
- variable: __privateGet(this, _host).catalogVariable,
96
- startDate: formatDate(__privateGet(this, _host).startDate),
97
- endDate: formatDate(__privateGet(this, _host).endDate),
98
- location: __privateGet(this, _host).location
99
- }
100
- });
101
91
  await storeDataByKey("time-average-map" /* TIME_AVERAGE_MAP */, cacheKey, {
102
92
  key: cacheKey,
103
93
  cachedAt: (/* @__PURE__ */ new Date()).getTime(),
104
94
  environment: __privateGet(this, _host).environment,
105
95
  blob
106
96
  });
97
+ __privateMethod(this, _updateGeoTIFFLayer, updateGeoTIFFLayer_fn).call(this, blob);
107
98
  return blob;
108
99
  } catch (err) {
109
100
  const error_msg = `Failed to create subset job: ${err}`;
@@ -146,6 +137,20 @@ var TimeAvgMapController = class {
146
137
  };
147
138
  _host = new WeakMap();
148
139
  _dataService = new WeakMap();
140
+ _updateGeoTIFFLayer = new WeakSet();
141
+ updateGeoTIFFLayer_fn = function(blob) {
142
+ this.blobUrl = blob;
143
+ __privateGet(this, _host).emit("terra-time-average-map-data-change", {
144
+ detail: {
145
+ data: blob,
146
+ variable: __privateGet(this, _host).catalogVariable,
147
+ startDate: formatDate(__privateGet(this, _host).startDate),
148
+ endDate: formatDate(__privateGet(this, _host).endDate),
149
+ location: __privateGet(this, _host).location
150
+ }
151
+ });
152
+ __privateGet(this, _host).updateGeoTIFFLayer(blob);
153
+ };
149
154
  _waitForHarmonyJob = new WeakSet();
150
155
  waitForHarmonyJob_fn = function(job, signal) {
151
156
  return new Promise(async (resolve) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraPlotToolbar
3
- } from "./chunk.4SQRMGRI.js";
3
+ } from "./chunk.PZRR5NRB.js";
4
4
 
5
5
  // src/react/plot-toolbar/index.ts
6
6
  import * as React from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraDataSubsetterHistory
3
- } from "./chunk.WKPS3JCO.js";
3
+ } from "./chunk.YI6QMKEU.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
  authService
3
- } from "./chunk.NQFD7EE5.js";
3
+ } from "./chunk.JRHSF76R.js";
4
4
  import {
5
5
  __privateAdd,
6
6
  __privateGet,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraLogin
3
- } from "./chunk.JUK556H2.js";
3
+ } from "./chunk.Q3NXZZCS.js";
4
4
 
5
5
  // src/components/login/login.ts
6
6
  var login_default = TerraLogin;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  TerraIcon
3
- } from "./chunk.WYVR2UK6.js";
4
- import {
5
- TerraElement,
6
- component_styles_default
7
- } from "./chunk.NQFD7EE5.js";
3
+ } from "./chunk.TM5MVEDD.js";
8
4
  import {
9
5
  accordion_styles_default
10
6
  } from "./chunk.MQOXBVDK.js";
7
+ import {
8
+ TerraElement,
9
+ component_styles_default
10
+ } from "./chunk.JRHSF76R.js";
11
11
  import {
12
12
  __decorateClass
13
13
  } from "./chunk.TVFCHGU3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TerraVariableCombobox
3
- } from "./chunk.LDJSZCZT.js";
3
+ } from "./chunk.I76YOANK.js";
4
4
 
5
5
  // src/components/variable-combobox/variable-combobox.ts
6
6
  var variable_combobox_default = TerraVariableCombobox;