@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.
- package/cdn/chunks/{chunk.EADDJNLT.js → chunk.2UQP6ECJ.js} +1 -1
- package/cdn/chunks/{chunk.INQGM7LI.js → chunk.3AMSF2QE.js} +1 -1
- package/cdn/chunks/{chunk.XLAILIBA.js → chunk.3L5IO65X.js} +1 -1
- package/cdn/chunks/{chunk.EOOUTVFS.js → chunk.3OQVYPLO.js} +1 -1
- package/cdn/chunks/{chunk.LZSKCTIU.js → chunk.3SQ33WJL.js} +6 -6
- package/cdn/chunks/{chunk.PC5YDCR3.js → chunk.3YZPJN2Z.js} +1 -1
- package/cdn/chunks/{chunk.US637OHP.js → chunk.5K4QCQFC.js} +1 -1
- package/cdn/chunks/{chunk.JMXG4QMJ.js → chunk.6AVYZ3MW.js} +9 -9
- package/cdn/chunks/{chunk.B5O37HJL.js → chunk.6FPLHL6H.js} +1 -1
- package/cdn/chunks/{chunk.C63UDFJD.js → chunk.6MBBGMVZ.js} +1 -1
- package/cdn/chunks/{chunk.IJ65YKH6.js → chunk.6Q6I7PZT.js} +1 -1
- package/cdn/chunks/{chunk.7CXDJEPI.js → chunk.6Y2KZ5PX.js} +1 -1
- package/cdn/chunks/{chunk.6HV5UAUR.js → chunk.6Z7IKV2A.js} +23 -18
- package/cdn/chunks/{chunk.4LRX5MI5.js → chunk.7MOA4J7J.js} +1 -1
- package/cdn/chunks/{chunk.BEZNVEN4.js → chunk.7ZP66IGM.js} +4 -4
- package/cdn/chunks/{chunk.OBRUAY2T.js → chunk.ABTZA4WS.js} +1 -1
- package/cdn/chunks/{chunk.GVSWNMWO.js → chunk.AOT6CMXV.js} +1 -1
- package/cdn/chunks/{chunk.KXG7EVNK.js → chunk.ASDCA4EN.js} +1 -1
- package/cdn/chunks/{chunk.J5RSLQEZ.js → chunk.AVWY2MQ6.js} +1 -1
- package/cdn/chunks/chunk.BD3LZWPF.js +82 -0
- package/cdn/chunks/{chunk.XDSCYEVI.js → chunk.BEFEIFCT.js} +1 -1
- package/cdn/chunks/{chunk.YLLQD54G.js → chunk.BZKY6ZEG.js} +1 -1
- package/cdn/chunks/{chunk.DRLC3NOH.js → chunk.CVXY24L3.js} +1 -1
- package/cdn/chunks/{chunk.TDRUBITF.js → chunk.CYBFDV6E.js} +1 -1
- package/cdn/chunks/{chunk.4QBMLHRO.js → chunk.D72IQ6WL.js} +1 -1
- package/cdn/chunks/{chunk.TW3AZBD6.js → chunk.DJD54REZ.js} +1 -1
- package/cdn/chunks/{chunk.MEDLBSIX.js → chunk.DJSFQYLC.js} +1 -1
- package/cdn/chunks/{chunk.PE7GTWW6.js → chunk.GFKDLMZP.js} +18 -18
- package/cdn/chunks/{chunk.NVCYUOTI.js → chunk.GLJPBBHC.js} +1 -1
- package/cdn/chunks/{chunk.AVPOEXGN.js → chunk.GM6MK2EB.js} +6 -6
- package/cdn/chunks/{chunk.XFUBO26N.js → chunk.GPD7GBEI.js} +1 -1
- package/cdn/chunks/{chunk.F23R7V6D.js → chunk.HALK5OFW.js} +4 -4
- package/cdn/chunks/{chunk.TCV3RFA2.js → chunk.HCOIWQGH.js} +1 -1
- package/cdn/chunks/{chunk.ND35PVXU.js → chunk.HSPF25L7.js} +1 -1
- package/cdn/chunks/{chunk.PAIBV5LM.js → chunk.I7FLYOVQ.js} +1 -1
- package/cdn/chunks/{chunk.M3KUCA27.js → chunk.IOWDSKFM.js} +1 -1
- package/cdn/chunks/{chunk.2FXVKD3K.js → chunk.IQMB5RDN.js} +1 -1
- package/cdn/chunks/{chunk.JOIY5YPQ.js → chunk.ISSEZQBL.js} +1 -1
- package/cdn/chunks/{chunk.WM2M27YN.js → chunk.IZLC5HUW.js} +4 -4
- package/cdn/chunks/{chunk.RVMZOSZ4.js → chunk.JBA5PT5N.js} +1 -1
- package/cdn/chunks/{chunk.76LGYF3V.js → chunk.JDQFLCAP.js} +1 -1
- package/cdn/chunks/{chunk.Y6D4M654.js → chunk.KZD527IM.js} +4 -4
- package/cdn/chunks/{chunk.Y5SRUGO6.js → chunk.L2WPUQ7B.js} +1 -1
- package/cdn/chunks/{chunk.ZTUQTCOY.js → chunk.L5G65SX7.js} +1 -1
- package/cdn/chunks/{chunk.DAGJRUH2.js → chunk.LIP3MH2T.js} +2 -2
- package/cdn/chunks/{chunk.E6N3RL6T.js → chunk.MCV6ZYH3.js} +1 -1
- package/cdn/chunks/{chunk.JMPD2ASO.js → chunk.MIRF7JMU.js} +4 -4
- package/cdn/chunks/{chunk.HLWTZUNM.js → chunk.MLP7HBSH.js} +1 -1
- package/cdn/chunks/{chunk.HMS35ZFE.js → chunk.MUYS3VLW.js} +1 -1
- package/cdn/chunks/{chunk.PBLQN3V3.js → chunk.NBDYVJG7.js} +2 -2
- package/cdn/chunks/{chunk.UZXDYK53.js → chunk.NEX76C32.js} +1 -1
- package/cdn/chunks/{chunk.OMNS4VCH.js → chunk.NFZX5QLA.js} +3 -2
- package/cdn/chunks/{chunk.W3HO6JCE.js → chunk.NJXH3IRZ.js} +879 -872
- package/cdn/chunks/{chunk.L4I27MFM.js → chunk.NRJPNVKJ.js} +5 -5
- package/cdn/chunks/{chunk.NU7TSJBK.js → chunk.O6XKN4XG.js} +1 -1
- package/cdn/chunks/{chunk.DAU3WOOX.js → chunk.OM5DBXAA.js} +1 -1
- package/cdn/chunks/{chunk.DWJKXUBF.js → chunk.OZTDXAX5.js} +1 -1
- package/cdn/chunks/{chunk.GNJ64MX4.js → chunk.PFD6QD3N.js} +1 -1
- package/cdn/chunks/{chunk.UDN5GVCH.js → chunk.PRK4GQ4U.js} +5 -5
- package/cdn/chunks/{chunk.467YJHXX.js → chunk.PVQOGLHB.js} +1 -1
- package/cdn/chunks/{chunk.NAKDRTM3.js → chunk.QI334AW4.js} +1 -1
- package/cdn/chunks/{chunk.WPJRNDCU.js → chunk.RFFLYTYZ.js} +1 -1
- package/cdn/chunks/{chunk.RUCYKME7.js → chunk.SALOHJ2J.js} +1 -1
- package/cdn/chunks/{chunk.KTKJNP4G.js → chunk.SKWBBH6E.js} +8 -8
- package/cdn/chunks/{chunk.CIU3DE3N.js → chunk.SOIYGJ23.js} +13 -13
- package/cdn/chunks/{chunk.P4E3A35I.js → chunk.T24KHJE2.js} +53 -91
- package/cdn/chunks/{chunk.FNPBZ24K.js → chunk.T4PNGMEY.js} +2 -2
- package/cdn/chunks/{chunk.DVFV2XWA.js → chunk.TTUMJEXX.js} +1 -1
- package/cdn/chunks/chunk.TVBK6ADB.js +356 -0
- package/cdn/chunks/{chunk.GJTB6JYC.js → chunk.UD2MPINQ.js} +1 -1
- package/cdn/chunks/{chunk.ZNXJJKMX.js → chunk.UMDWHUPM.js} +1 -1
- package/cdn/chunks/{chunk.Y6ZBEMEZ.js → chunk.W5VBFDDM.js} +7 -7
- package/cdn/chunks/chunk.WEE2ZC7F.js +92 -0
- package/cdn/chunks/{chunk.B5Y572W6.js → chunk.WHEKMGLU.js} +1 -1
- package/cdn/chunks/{chunk.WZ3NAGXV.js → chunk.WJENPIUH.js} +8 -8
- package/cdn/chunks/{chunk.K7B6SBUE.js → chunk.WKTM6GJT.js} +1 -1
- package/cdn/chunks/{chunk.5NZYYIJL.js → chunk.XKT2TWT2.js} +1 -1
- package/cdn/chunks/{chunk.RGHZIL3I.js → chunk.XPNFDAYM.js} +1 -1
- package/cdn/chunks/{chunk.TU7POBNP.js → chunk.XR5EZIHP.js} +1 -1
- package/cdn/chunks/{chunk.6KECUGN2.js → chunk.XZAZP7WS.js} +1 -1
- package/cdn/chunks/{chunk.BUL4XWSB.js → chunk.YLZXWNDJ.js} +1 -1
- package/cdn/chunks/{chunk.KJ7J4PCK.js → chunk.Z726T3DO.js} +1 -1
- package/cdn/components/accordion/accordion.component.js +4 -4
- package/cdn/components/accordion/accordion.js +5 -5
- package/cdn/components/alert/alert.component.js +3 -3
- package/cdn/components/alert/alert.js +4 -4
- package/cdn/components/browse-variables/browse-variables.component.js +15 -15
- package/cdn/components/browse-variables/browse-variables.controller.js +1 -1
- package/cdn/components/browse-variables/browse-variables.js +16 -16
- 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 +6 -6
- package/cdn/components/combobox/combobox.js +7 -7
- package/cdn/components/data-rods/data-rods.component.js +37 -35
- package/cdn/components/data-rods/data-rods.js +38 -36
- package/cdn/components/data-subsetter/data-subsetter.component.js +26 -26
- package/cdn/components/data-subsetter/data-subsetter.controller.js +2 -2
- package/cdn/components/data-subsetter/data-subsetter.js +27 -27
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +30 -30
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +31 -31
- 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 +12 -12
- package/cdn/components/login/login.js +13 -13
- package/cdn/components/map/map.component.js +7 -7
- package/cdn/components/map/map.js +8 -8
- package/cdn/components/plot/plot.component.js +3 -3
- package/cdn/components/plot/plot.js +4 -4
- package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.d.ts +29 -0
- package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +7 -0
- package/cdn/components/plot-toolbar/notebooks/time-series-notebook.d.ts +29 -0
- package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +7 -0
- package/cdn/components/plot-toolbar/plot-toolbar.component.js +12 -10
- package/cdn/components/plot-toolbar/plot-toolbar.js +13 -11
- package/cdn/components/skeleton/skeleton.component.js +6 -6
- package/cdn/components/skeleton/skeleton.js +7 -7
- package/cdn/components/spatial-picker/spatial-picker.component.js +8 -8
- package/cdn/components/spatial-picker/spatial-picker.js +9 -9
- package/cdn/components/time-average-map/time-average-map.component.d.ts +9 -16
- package/cdn/components/time-average-map/time-average-map.component.js +17 -15
- package/cdn/components/time-average-map/time-average-map.controller.js +2 -2
- package/cdn/components/time-average-map/time-average-map.js +18 -16
- package/cdn/components/time-average-map/time-average-map.styles.js +1 -1
- package/cdn/components/time-series/time-series.component.js +21 -19
- package/cdn/components/time-series/time-series.controller.js +2 -2
- package/cdn/components/time-series/time-series.js +22 -20
- package/cdn/components/variable-combobox/lib.js +3 -3
- package/cdn/components/variable-combobox/variable-combobox.component.js +14 -14
- package/cdn/components/variable-combobox/variable-combobox.controller.js +4 -4
- package/cdn/components/variable-combobox/variable-combobox.js +15 -15
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +11 -11
- package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +1 -1
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +12 -12
- package/cdn/custom-elements.json +1315 -1321
- package/cdn/metadata-catalog/tasks.d.ts +1 -1
- package/cdn/react/accordion/index.js +5 -5
- package/cdn/react/alert/index.js +4 -4
- package/cdn/react/browse-variables/index.js +16 -16
- package/cdn/react/button/index.js +3 -3
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +7 -7
- package/cdn/react/data-rods/index.js +38 -36
- package/cdn/react/data-subsetter/index.js +27 -27
- package/cdn/react/data-subsetter-history/index.js +31 -31
- package/cdn/react/date-picker/index.js +4 -4
- package/cdn/react/date-range-slider/index.js +4 -4
- package/cdn/react/dialog/index.js +3 -3
- package/cdn/react/icon/index.js +3 -3
- package/cdn/react/index.d.ts +4 -4
- package/cdn/react/index.js +99 -97
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +13 -13
- package/cdn/react/map/index.js +8 -8
- package/cdn/react/plot/index.js +4 -4
- package/cdn/react/plot-toolbar/index.js +13 -11
- package/cdn/react/skeleton/index.js +7 -7
- package/cdn/react/spatial-picker/index.js +9 -9
- package/cdn/react/time-average-map/index.js +18 -16
- package/cdn/react/time-series/index.js +22 -20
- package/cdn/react/variable-combobox/index.js +15 -15
- package/cdn/react/variable-keyword-search/index.js +12 -12
- package/cdn/terra-ui-components.js +92 -90
- package/cdn/types/vue/index.d.ts +250 -256
- package/cdn/utilities/animation.js +4 -4
- package/cdn/vscode.html-custom-data.json +96 -101
- package/cdn/web-types.json +462 -473
- package/dist/chunks/{chunk.FSK2PMOK.js → chunk.2BDFEQ6D.js} +1 -1
- package/dist/chunks/{chunk.NHWGNLNM.js → chunk.2YVK523F.js} +1 -1
- package/dist/chunks/{chunk.ZSRQRLDK.js → chunk.3WYGODDM.js} +13 -13
- package/dist/chunks/{chunk.3RHIGQG3.js → chunk.4G2NJX5Y.js} +1 -1
- package/dist/chunks/{chunk.LVSSJ2BC.js → chunk.4PIFB6GY.js} +1 -1
- package/dist/chunks/chunk.52JXOR5K.js +83 -0
- package/dist/chunks/{chunk.73OEIR2D.js → chunk.53G6W4QI.js} +1 -1
- package/dist/chunks/{chunk.X6HEGFAP.js → chunk.5LQUNLDJ.js} +1 -1
- package/dist/chunks/{chunk.56HKPF4J.js → chunk.5Q25QZIT.js} +2 -2
- package/dist/chunks/{chunk.3LE5L6NH.js → chunk.5SZFKTXS.js} +1 -1
- package/dist/chunks/{chunk.VDOD6A4H.js → chunk.6KBSHT6A.js} +1 -1
- package/dist/chunks/{chunk.FXDQXGKR.js → chunk.6VPHVZU2.js} +1 -1
- package/dist/chunks/{chunk.TA2S2O22.js → chunk.6YNZKV4X.js} +1 -1
- package/dist/chunks/{chunk.AAVXX4X6.js → chunk.CP34FRRO.js} +4 -4
- package/dist/chunks/{chunk.LQA33A5Y.js → chunk.CQYHYUBI.js} +1 -1
- package/dist/chunks/{chunk.LMCYO76D.js → chunk.DI7GSEOS.js} +6 -6
- package/dist/chunks/{chunk.OX3M4HHA.js → chunk.DT3BPAMV.js} +1 -1
- package/dist/chunks/{chunk.NFYYMCLN.js → chunk.E6KALXCF.js} +1 -1
- package/dist/chunks/{chunk.GH7OOGWI.js → chunk.EQENV3EJ.js} +1 -1
- package/dist/chunks/{chunk.JBZEA4AV.js → chunk.FIDJWRGW.js} +1 -1
- package/dist/chunks/chunk.G6VNN7RY.js +345 -0
- package/dist/chunks/{chunk.5UWB7UZQ.js → chunk.GLE6HCJK.js} +2 -2
- package/dist/chunks/{chunk.VERWTVW6.js → chunk.GONY65CV.js} +1 -1
- package/dist/chunks/{chunk.LFIHDS4P.js → chunk.GULYBUN7.js} +1 -1
- package/dist/chunks/{chunk.LDJSZCZT.js → chunk.I76YOANK.js} +3 -3
- package/dist/chunks/{chunk.UCHR7YLM.js → chunk.IACJNU7S.js} +1 -1
- package/dist/chunks/{chunk.ZY42FWRW.js → chunk.IRRPPVRH.js} +1 -1
- package/dist/chunks/{chunk.72XNNOW4.js → chunk.ISKMTEMJ.js} +1 -1
- package/dist/chunks/{chunk.NQFD7EE5.js → chunk.JRHSF76R.js} +1 -1
- package/dist/chunks/{chunk.BTT6652Q.js → chunk.JV3HTI25.js} +1 -1
- package/dist/chunks/{chunk.KLFYBBE6.js → chunk.KFKUXJPR.js} +1 -1
- package/dist/chunks/{chunk.X3M6WLD3.js → chunk.KGL7PSV6.js} +3 -2
- package/dist/chunks/{chunk.L7HDPJIE.js → chunk.KGYPLIVT.js} +1 -1
- package/dist/chunks/{chunk.YGEXSW3H.js → chunk.KPEPQL2K.js} +1 -1
- package/dist/chunks/{chunk.BMX4USEA.js → chunk.M4ONZLND.js} +1 -1
- package/dist/chunks/{chunk.7DPWAZLO.js → chunk.MBKBNFCJ.js} +3 -3
- package/dist/chunks/{chunk.VZBJR5OT.js → chunk.MRTVNBN3.js} +4 -4
- package/dist/chunks/{chunk.6NKOHI5B.js → chunk.NIOVTAVK.js} +1 -1
- package/dist/chunks/{chunk.KWG5TMYI.js → chunk.NPBUKX3M.js} +1 -1
- package/dist/chunks/{chunk.DLN23BCO.js → chunk.OQSUGE4F.js} +114 -106
- package/dist/chunks/{chunk.C3DAMHM5.js → chunk.OTUXOFRQ.js} +1 -1
- package/dist/chunks/{chunk.XCJFXOUJ.js → chunk.OUBMIFQN.js} +1 -1
- package/dist/chunks/{chunk.PI74TFLX.js → chunk.PATWIPZO.js} +1 -1
- package/dist/chunks/{chunk.TSUHYKNE.js → chunk.PHVEWIAO.js} +1 -1
- package/dist/chunks/{chunk.RXFK4PNJ.js → chunk.PQOOTQ4S.js} +1 -1
- package/dist/chunks/{chunk.4SQRMGRI.js → chunk.PZRR5NRB.js} +49 -87
- package/dist/chunks/{chunk.JUK556H2.js → chunk.Q3NXZZCS.js} +5 -5
- package/dist/chunks/{chunk.EJEZ4OB2.js → chunk.Q4TMLG35.js} +1 -1
- package/dist/chunks/{chunk.I3UITRH4.js → chunk.QHNCVNJD.js} +1 -1
- package/dist/chunks/{chunk.6XXHVKIS.js → chunk.R4WGE52M.js} +1 -1
- package/dist/chunks/{chunk.IT3HG75V.js → chunk.SEPEU6WC.js} +1 -1
- package/dist/chunks/{chunk.7VYFTAMX.js → chunk.SH4T36EU.js} +8 -8
- package/dist/chunks/{chunk.2U2MG75K.js → chunk.SJCI5E5I.js} +1 -1
- package/dist/chunks/{chunk.2UBM4CBQ.js → chunk.SR7SD4NJ.js} +1 -1
- package/dist/chunks/{chunk.ECKPZ7KV.js → chunk.T2TAOJP3.js} +1 -1
- package/dist/chunks/{chunk.USZET3TZ.js → chunk.TGXFUCXF.js} +1 -1
- package/dist/chunks/{chunk.WYVR2UK6.js → chunk.TM5MVEDD.js} +1 -1
- package/dist/chunks/{chunk.A3235DJS.js → chunk.TRPOV5FA.js} +1 -1
- package/dist/chunks/{chunk.4APCHGW6.js → chunk.UBKGVJMB.js} +1 -1
- package/dist/chunks/{chunk.DQXNCGT2.js → chunk.ULUE333C.js} +1 -1
- package/dist/chunks/{chunk.DIT75M24.js → chunk.UY5N3NOL.js} +1 -1
- package/dist/chunks/{chunk.EG5XF4TE.js → chunk.UZE22W7U.js} +7 -7
- package/dist/chunks/{chunk.RXPSFCIB.js → chunk.V7ZLYJIM.js} +1 -1
- package/dist/chunks/{chunk.KKIE5QUV.js → chunk.VXB5JTYI.js} +1 -1
- package/dist/chunks/{chunk.66QL3HHY.js → chunk.WILBSSI5.js} +1 -1
- package/dist/chunks/chunk.WILF7DGN.js +73 -0
- package/dist/chunks/{chunk.RZ3APMFR.js → chunk.WMRLY7X2.js} +20 -15
- package/dist/chunks/{chunk.VCZEXFKK.js → chunk.WN2HCRGH.js} +1 -1
- package/dist/chunks/{chunk.PFGJDQ4T.js → chunk.WR56WPUW.js} +1 -1
- package/dist/chunks/{chunk.UIQ4IFH3.js → chunk.WVCNEUUF.js} +1 -1
- package/dist/chunks/{chunk.TRBBME7I.js → chunk.XOW3F3CH.js} +1 -1
- package/dist/chunks/{chunk.6SLS4YLS.js → chunk.XTHIZTLJ.js} +5 -5
- package/dist/chunks/{chunk.RN5S3QRL.js → chunk.XVYXL5JR.js} +1 -1
- package/dist/chunks/{chunk.SX5K5D7G.js → chunk.Y4VOLHAF.js} +13 -13
- package/dist/chunks/{chunk.MEMLURXI.js → chunk.YFB4JQJE.js} +1 -1
- package/dist/chunks/{chunk.WKPS3JCO.js → chunk.YI6QMKEU.js} +9 -9
- package/dist/chunks/{chunk.U5LYRR3R.js → chunk.Z6M2GKS3.js} +1 -1
- package/dist/chunks/{chunk.6BCYA2PF.js → chunk.ZLULW6G6.js} +1 -1
- package/dist/chunks/{chunk.D4PLHZY3.js → chunk.ZQTURAYY.js} +1 -1
- package/dist/components/accordion/accordion.component.js +4 -4
- package/dist/components/accordion/accordion.js +5 -5
- package/dist/components/alert/alert.component.js +3 -3
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/browse-variables/browse-variables.component.js +10 -10
- 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 +28 -26
- package/dist/components/data-rods/data-rods.js +29 -27
- package/dist/components/data-subsetter/data-subsetter.component.js +22 -22
- package/dist/components/data-subsetter/data-subsetter.js +23 -23
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +26 -26
- package/dist/components/data-subsetter-history/data-subsetter-history.js +27 -27
- 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 +10 -10
- package/dist/components/login/login.js +11 -11
- package/dist/components/map/map.component.js +5 -5
- package/dist/components/map/map.js +6 -6
- package/dist/components/plot/plot.component.js +2 -2
- package/dist/components/plot/plot.js +3 -3
- package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.d.ts +29 -0
- package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +7 -0
- package/dist/components/plot-toolbar/notebooks/time-series-notebook.d.ts +29 -0
- package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +7 -0
- package/dist/components/plot-toolbar/plot-toolbar.component.js +8 -6
- package/dist/components/plot-toolbar/plot-toolbar.js +9 -7
- 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.js +6 -6
- package/dist/components/spatial-picker/spatial-picker.js +7 -7
- package/dist/components/time-average-map/time-average-map.component.d.ts +9 -16
- package/dist/components/time-average-map/time-average-map.component.js +12 -10
- package/dist/components/time-average-map/time-average-map.controller.js +1 -1
- package/dist/components/time-average-map/time-average-map.js +13 -11
- package/dist/components/time-average-map/time-average-map.styles.js +1 -1
- package/dist/components/time-series/time-series.component.js +15 -13
- package/dist/components/time-series/time-series.js +16 -14
- package/dist/components/variable-combobox/variable-combobox.component.js +7 -7
- package/dist/components/variable-combobox/variable-combobox.js +8 -8
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +7 -7
- package/dist/components/variable-keyword-search/variable-keyword-search.js +8 -8
- package/dist/custom-elements.json +1315 -1321
- package/dist/metadata-catalog/tasks.d.ts +1 -1
- package/dist/react/accordion/index.js +5 -5
- package/dist/react/alert/index.js +4 -4
- package/dist/react/browse-variables/index.js +11 -11
- package/dist/react/button/index.js +3 -3
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +3 -3
- package/dist/react/data-rods/index.js +29 -27
- package/dist/react/data-subsetter/index.js +23 -23
- package/dist/react/data-subsetter-history/index.js +27 -27
- package/dist/react/date-picker/index.js +4 -4
- package/dist/react/date-range-slider/index.js +4 -4
- package/dist/react/dialog/index.js +3 -3
- package/dist/react/icon/index.js +3 -3
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +89 -87
- package/dist/react/loader/index.js +3 -3
- package/dist/react/login/index.js +11 -11
- package/dist/react/map/index.js +6 -6
- package/dist/react/plot/index.js +3 -3
- package/dist/react/plot-toolbar/index.js +9 -7
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spatial-picker/index.js +7 -7
- package/dist/react/time-average-map/index.js +13 -11
- package/dist/react/time-series/index.js +16 -14
- package/dist/react/variable-combobox/index.js +8 -8
- package/dist/react/variable-keyword-search/index.js +8 -8
- package/dist/terra-ui-components.js +82 -80
- package/dist/{terra_ui_components-0.0.75-py3-none-any.whl → terra_ui_components-0.0.77-py3-none-any.whl} +0 -0
- package/dist/{terra_ui_components-0.0.75.tar.gz → terra_ui_components-0.0.77.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +250 -256
- package/dist/vscode.html-custom-data.json +96 -101
- package/dist/web-types.json +462 -473
- package/package.json +1 -1
- package/cdn/chunks/chunk.BBQJZ64A.js +0 -52
- package/dist/chunks/chunk.P7EL7GKI.js +0 -41
- package/cdn/chunks/{chunk.EMLDT66I.js → chunk.EDY6YM3Y.js} +4 -4
- package/cdn/chunks/{chunk.UQPT3AQ5.js → chunk.HDPH5PEF.js} +4 -4
- package/cdn/chunks/{chunk.SU2EH44I.js → chunk.NFS2RDEX.js} +5 -5
- package/cdn/chunks/{chunk.2PNASAQ6.js → chunk.OXUFHTFN.js} +3 -3
- 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.
|
|
16
|
+
} from "./chunk.WVCNEUUF.js";
|
|
11
17
|
import {
|
|
12
18
|
TerraButton
|
|
13
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.KFKUXJPR.js";
|
|
14
20
|
import {
|
|
15
21
|
TerraIcon
|
|
16
|
-
} from "./chunk.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
9
|
+
} from "./chunk.WVCNEUUF.js";
|
|
10
10
|
import {
|
|
11
11
|
icon_default
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.OUBMIFQN.js";
|
|
13
13
|
import {
|
|
14
14
|
button_default
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.JV3HTI25.js";
|
|
16
16
|
import {
|
|
17
17
|
TerraElement,
|
|
18
18
|
component_styles_default
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.JRHSF76R.js";
|
|
20
20
|
import {
|
|
21
21
|
__decorateClass,
|
|
22
22
|
__privateAdd,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TerraTimeSeries
|
|
3
|
-
} from "./chunk.ZSRQRLDK.js";
|
|
4
1
|
import {
|
|
5
2
|
TerraVariableCombobox
|
|
6
|
-
} from "./chunk.
|
|
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.
|
|
10
|
+
} from "./chunk.KGL7PSV6.js";
|
|
11
11
|
import {
|
|
12
12
|
TerraDateRangeSlider
|
|
13
|
-
} from "./chunk.
|
|
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.
|
|
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.
|
|
26
|
+
} from "./chunk.JRHSF76R.js";
|
|
27
27
|
import {
|
|
28
28
|
__decorateClass,
|
|
29
29
|
__privateAdd,
|
|
@@ -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.
|
|
22
|
+
} from "./chunk.JRHSF76R.js";
|
|
23
23
|
import {
|
|
24
24
|
__decorateClass,
|
|
25
25
|
__privateAdd,
|
|
@@ -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
|
|
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: `${
|
|
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.
|
|
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,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TerraIcon
|
|
3
|
-
} from "./chunk.
|
|
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";
|