@nasa-terra/components 0.0.43 → 0.0.45
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.KJ4BZBTX.js → chunk.27EMK3NO.js} +16 -4
- package/cdn/chunks/{chunk.OGI7F4SN.js → chunk.2BBYUVXZ.js} +1 -1
- package/cdn/chunks/{chunk.JZBUILMZ.js → chunk.2JVFCPZQ.js} +50 -6
- package/cdn/chunks/{chunk.5TCPFCD2.js → chunk.2XTKUKIB.js} +7 -7
- package/{dist/chunks/chunk.V7QPBR74.js → cdn/chunks/chunk.3S6YU4GV.js} +1 -1
- package/cdn/chunks/{chunk.ESMJ3XDS.js → chunk.4IAWGN7F.js} +1 -1
- package/cdn/chunks/{chunk.SNULTXLY.js → chunk.4UYNOT7W.js} +1 -1
- package/cdn/chunks/{chunk.ZJAN35CA.js → chunk.4Z4SJPRM.js} +1 -1
- package/{dist/chunks/chunk.4CGQC6VG.js → cdn/chunks/chunk.6EHV6K3S.js} +1 -1
- package/cdn/chunks/{chunk.MUAWDIKB.js → chunk.6NEMJOXS.js} +2 -2
- package/cdn/chunks/chunk.754XAIN7.js +39 -0
- package/cdn/chunks/{chunk.4T3FDB6X.js → chunk.AIVF2LYW.js} +1 -1
- package/cdn/chunks/{chunk.BKOLMPIY.js → chunk.ALXMBVVZ.js} +3 -3
- package/{dist/chunks/chunk.WSTFOCG3.js → cdn/chunks/chunk.BIBODSR4.js} +1 -1
- package/{dist/chunks/chunk.5SCGJTRA.js → cdn/chunks/chunk.BSPUHX7G.js} +1 -1
- package/cdn/chunks/{chunk.FROJF7FV.js → chunk.CZILWG23.js} +2 -2
- package/cdn/chunks/{chunk.GGDBLPBD.js → chunk.DDY3FGPF.js} +1 -1
- package/cdn/chunks/{chunk.WQQBVCL5.js → chunk.DF3GGEJ5.js} +1 -1
- package/cdn/chunks/{chunk.NL52F475.js → chunk.DWZFUOHR.js} +1 -1
- package/cdn/chunks/{chunk.RGXPGRGO.js → chunk.EBWKHD35.js} +1 -1
- package/cdn/chunks/{chunk.HY2OIJPI.js → chunk.EDZIBUTU.js} +1 -1
- package/cdn/chunks/{chunk.XJVNZTEE.js → chunk.FE7PKR4T.js} +1 -1
- package/cdn/chunks/{chunk.TY7DVGTP.js → chunk.FKZEIUI7.js} +5 -5
- package/cdn/chunks/{chunk.UJXGVWQA.js → chunk.FM3UWDOB.js} +1 -1
- package/cdn/chunks/{chunk.2GGZHPMT.js → chunk.HEVFNGHQ.js} +8 -8
- package/{dist/chunks/chunk.FLB4JM62.js → cdn/chunks/chunk.HFCQI2MX.js} +1 -1
- package/cdn/chunks/chunk.HSD63J4K.js +11 -0
- package/cdn/chunks/{chunk.ANZFZPPU.js → chunk.IL7RNVV6.js} +84 -27
- package/cdn/chunks/{chunk.FBCYHMRV.js → chunk.J53H64HP.js} +6 -6
- package/cdn/chunks/{chunk.BPNFS4ED.js → chunk.K6GAF43H.js} +1 -1
- package/cdn/chunks/{chunk.XGH62P7U.js → chunk.KDZX6267.js} +1 -1
- package/cdn/chunks/{chunk.KAY2II66.js → chunk.KP4VCTRF.js} +1 -1
- package/cdn/chunks/{chunk.WI5HA4EV.js → chunk.LSHZ2GJS.js} +1 -1
- package/cdn/chunks/{chunk.XAQF3BDY.js → chunk.LW4FDJZV.js} +1 -1
- package/cdn/chunks/{chunk.RBDPBQSI.js → chunk.NZQLJJWI.js} +1 -1
- package/{dist/chunks/chunk.T6R6HWM7.js → cdn/chunks/chunk.O73IBY6C.js} +1 -1
- package/{dist/chunks/chunk.N2FQ2MRM.js → cdn/chunks/chunk.QI4CW6SZ.js} +1 -1
- package/cdn/chunks/{chunk.HPB6CXCO.js → chunk.QWNJZLAC.js} +1 -1
- package/cdn/chunks/{chunk.7HEVEWEJ.js → chunk.RCPEY33L.js} +15 -15
- package/cdn/chunks/{chunk.Q6QGJGPK.js → chunk.REGE7WJB.js} +1 -1
- package/cdn/chunks/{chunk.IAPB27AW.js → chunk.RN6XJ3EC.js} +6 -6
- package/{dist/chunks/chunk.QIA6DTTP.js → cdn/chunks/chunk.SLY7YUFC.js} +1 -1
- package/cdn/chunks/chunk.SVB6CWAO.js +187 -0
- package/{dist/chunks/chunk.H7YVB7XB.js → cdn/chunks/chunk.T6GXXTCR.js} +1 -1
- package/cdn/chunks/chunk.TEWFW2B2.js +21 -0
- package/{dist/chunks/chunk.YS5RGF3Z.js → cdn/chunks/chunk.TWMOVOPK.js} +1 -1
- package/cdn/chunks/{chunk.XTDVJMOY.js → chunk.U5KI6JRO.js} +1 -1
- package/cdn/chunks/{chunk.HNZE7Q25.js → chunk.UOAXJTR4.js} +1 -1
- package/cdn/chunks/chunk.UQYGB6XL.js +660 -0
- package/cdn/chunks/{chunk.3JPFQJXJ.js → chunk.VD37HWZF.js} +10 -10
- package/cdn/chunks/{chunk.D7BYLJCK.js → chunk.VV7CXX5L.js} +12 -12
- package/cdn/chunks/{chunk.D2R6EOTB.js → chunk.VWQZIINL.js} +1 -1
- package/{dist/chunks/chunk.CPI32ZAZ.js → cdn/chunks/chunk.XGF2P4YV.js} +1 -1
- package/cdn/chunks/{chunk.ELAWVWEZ.js → chunk.XO3SOVHY.js} +2 -29
- package/cdn/chunks/{chunk.E6NS2XK6.js → chunk.XSXK5XPO.js} +1 -1
- package/cdn/chunks/chunk.XU3NXPIM.js +193 -0
- package/{dist/chunks/chunk.LNGXE27U.js → cdn/chunks/chunk.Y6FGE5IT.js} +1 -1
- package/cdn/chunks/{chunk.T6H2MZZI.js → chunk.Y7I2RXN6.js} +1 -10
- package/cdn/chunks/{chunk.S4INEVCC.js → chunk.Y7P4LXE6.js} +11 -11
- package/cdn/chunks/{chunk.ZU6ADSVN.js → chunk.YCRGAL67.js} +1 -1
- package/{dist/chunks/chunk.AFI6EDPJ.js → cdn/chunks/chunk.YDTFMWV3.js} +1 -1
- package/cdn/chunks/{chunk.L5Q6MO7Q.js → chunk.YHH2QGV3.js} +1 -1
- package/cdn/chunks/chunk.YIABHSHN.js +505 -0
- package/cdn/chunks/{chunk.4XFHUWXK.js → chunk.YZXMJRFT.js} +1 -1
- package/{dist/chunks/chunk.37HULH6M.js → cdn/chunks/chunk.ZPUZYX2F.js} +1 -1
- package/cdn/chunks/{chunk.QUT2NHTH.js → chunk.ZROILKPX.js} +1 -1
- package/cdn/chunks/{chunk.CH45CXZY.js → chunk.ZX2ZNCYX.js} +1 -1
- package/cdn/components/browse-variables/browse-variables.component.js +23 -22
- package/cdn/components/browse-variables/browse-variables.controller.js +4 -2
- package/cdn/components/browse-variables/browse-variables.js +24 -23
- package/cdn/components/browse-variables/browse-variables.types.d.ts +8 -0
- package/cdn/components/button/button.component.js +4 -4
- package/cdn/components/button/button.js +5 -5
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +5 -5
- package/cdn/components/combobox/combobox.js +6 -6
- package/cdn/components/data-rods/data-rods.component.d.ts +57 -0
- package/cdn/components/data-rods/data-rods.component.js +62 -0
- package/cdn/components/data-rods/data-rods.d.ts +8 -0
- package/cdn/components/data-rods/data-rods.js +63 -0
- package/cdn/components/data-rods/data-rods.styles.d.ts +2 -0
- package/cdn/components/data-rods/data-rods.styles.js +9 -0
- package/cdn/components/date-picker/date-picker.component.js +2 -2
- package/cdn/components/date-picker/date-picker.js +3 -3
- package/cdn/components/date-range-slider/date-range-slider.component.js +5 -6
- package/cdn/components/date-range-slider/date-range-slider.js +6 -7
- package/cdn/components/dialog/dialog.component.js +2 -2
- package/cdn/components/dialog/dialog.js +3 -3
- package/cdn/components/icon/icon.component.js +4 -4
- package/cdn/components/icon/icon.js +5 -5
- package/cdn/components/icon/library.js +2 -2
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/login/login.component.js +13 -13
- package/cdn/components/login/login.js +14 -14
- package/cdn/components/map/leaflet-draw.styles.js +1 -1
- package/cdn/components/map/leaflet-utils.js +1 -1
- package/cdn/components/map/map.component.js +6 -6
- package/cdn/components/map/map.js +7 -7
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/skeleton/skeleton.component.js +4 -4
- package/cdn/components/skeleton/skeleton.js +5 -5
- package/cdn/components/spatial-picker/spatial-picker.component.d.ts +8 -0
- package/cdn/components/spatial-picker/spatial-picker.component.js +7 -7
- package/cdn/components/spatial-picker/spatial-picker.js +8 -8
- package/cdn/components/time-series/time-series.component.d.ts +8 -49
- package/cdn/components/time-series/time-series.component.js +17 -40
- package/cdn/components/time-series/time-series.controller.d.ts +6 -9
- package/cdn/components/time-series/time-series.controller.js +3 -3
- package/cdn/components/time-series/time-series.js +18 -41
- package/cdn/components/time-series/time-series.styles.js +1 -1
- package/cdn/components/time-series/time-series.types.d.ts +1 -1
- package/cdn/components/variable-combobox/lib.js +1 -1
- package/cdn/components/variable-combobox/variable-combobox.component.js +14 -14
- package/cdn/components/variable-combobox/variable-combobox.controller.js +3 -3
- package/cdn/components/variable-combobox/variable-combobox.js +15 -15
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +17 -15
- package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +4 -2
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +18 -16
- package/cdn/custom-elements.json +1524 -1479
- package/cdn/events/terra-time-series-data-change.d.ts +2 -2
- package/cdn/react/browse-variables/index.js +24 -23
- package/cdn/react/button/index.js +5 -5
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +6 -6
- package/cdn/react/data-rods/index.d.ts +9 -0
- package/cdn/react/data-rods/index.js +63 -0
- package/cdn/react/date-picker/index.js +3 -3
- package/cdn/react/date-range-slider/index.js +6 -7
- package/cdn/react/dialog/index.js +3 -3
- package/cdn/react/icon/index.js +5 -5
- package/cdn/react/index.d.ts +5 -4
- package/cdn/react/index.js +87 -83
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +14 -14
- package/cdn/react/map/index.js +7 -7
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/skeleton/index.js +5 -5
- package/cdn/react/spatial-picker/index.js +8 -8
- package/cdn/react/time-series/index.d.ts +0 -2
- package/cdn/react/time-series/index.js +18 -41
- package/cdn/react/variable-combobox/index.js +15 -15
- package/cdn/react/variable-keyword-search/index.js +18 -16
- package/cdn/terra-ui-components.d.ts +1 -0
- package/cdn/terra-ui-components.js +91 -86
- package/cdn/types/vue/index.d.ts +97 -78
- package/cdn/utilities/animation.js +2 -2
- package/cdn/utilities/date.d.ts +8 -0
- package/cdn/utilities/date.js +5 -2
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/variable-catalog/giovanni-variable-catalog.d.ts +4 -0
- package/cdn/variable-catalog/queries.d.ts +1 -0
- package/cdn/variable-catalog/types.d.ts +15 -0
- package/cdn/vscode.html-custom-data.json +146 -105
- package/cdn/web-types.json +306 -259
- package/dist/chunks/{chunk.FAYNPOTP.js → chunk.2R2CMZU5.js} +1 -1
- package/dist/chunks/{chunk.M6QZS4UJ.js → chunk.33MT36PS.js} +3 -3
- package/dist/chunks/{chunk.4AOEB4BK.js → chunk.3B622XLR.js} +2 -2
- package/dist/chunks/{chunk.E4PWWMRO.js → chunk.3C5R6F2R.js} +1 -1
- package/{cdn/chunks/chunk.HWT242NM.js → dist/chunks/chunk.3CTBJXJY.js} +1 -1
- package/dist/chunks/{chunk.GHEMW42S.js → chunk.44QP2ERH.js} +1 -1
- package/dist/chunks/{chunk.KOMSLHFU.js → chunk.47RYAEL6.js} +1 -1
- package/dist/chunks/chunk.4AMT22AE.js +11 -0
- package/dist/chunks/{chunk.TWPOB6FJ.js → chunk.6DOKSRWY.js} +1 -1
- package/{cdn/chunks/chunk.7BF65WWU.js → dist/chunks/chunk.6XHLGITH.js} +1 -1
- package/dist/chunks/{chunk.JTXEL73L.js → chunk.75SJTCIV.js} +1 -1
- package/dist/chunks/chunk.7JBFBZ5C.js +27 -0
- package/dist/chunks/{chunk.WAIWLZ6Z.js → chunk.7OWQQEAP.js} +83 -26
- package/dist/chunks/{chunk.TCMWMNOB.js → chunk.7ZF43BLB.js} +5 -5
- package/dist/chunks/{chunk.W2CS6IVI.js → chunk.7ZPJWNP3.js} +1 -1
- package/dist/chunks/{chunk.YQPJQSUN.js → chunk.A7QBYP2G.js} +1 -1
- package/dist/chunks/{chunk.NL2R2NSO.js → chunk.AY7TGBWI.js} +2 -31
- package/{cdn/chunks/chunk.TVULBZN7.js → dist/chunks/chunk.BA5UHVQA.js} +1 -1
- package/dist/chunks/{chunk.HJTPJ2RC.js → chunk.BMR2MSLS.js} +1 -1
- package/dist/chunks/{chunk.ENYPV32S.js → chunk.CBBRYITQ.js} +6 -6
- package/{cdn/chunks/chunk.7SSKWW2H.js → dist/chunks/chunk.CBPNOBYV.js} +1 -1
- package/dist/chunks/{chunk.7P5EOY66.js → chunk.DKAE3S5I.js} +4 -4
- package/dist/chunks/{chunk.H22DYLKA.js → chunk.DUGMF3IG.js} +5 -5
- package/{cdn/chunks/chunk.YUAVRIVY.js → dist/chunks/chunk.EDRHDXR5.js} +1 -1
- package/dist/chunks/{chunk.JGX3UBBP.js → chunk.EQN4RFGU.js} +1 -1
- package/dist/chunks/{chunk.67I5KKLX.js → chunk.GIJRARNO.js} +1 -1
- package/dist/chunks/{chunk.MILUFBKY.js → chunk.H4HQMP7O.js} +1 -1
- package/{cdn/chunks/chunk.CANVOVRP.js → dist/chunks/chunk.HHQCCB7G.js} +1 -1
- package/dist/chunks/{chunk.4XAV4ODI.js → chunk.HO7IFKH7.js} +1 -1
- package/dist/chunks/{chunk.XR6W57RO.js → chunk.I2NF2HZM.js} +1 -1
- package/dist/chunks/{chunk.5EHGVGXV.js → chunk.K2IRF2QI.js} +1 -10
- package/dist/chunks/{chunk.MZHCB5V5.js → chunk.K4PW2RMT.js} +1 -1
- package/{cdn/chunks/chunk.YYL6BIZT.js → dist/chunks/chunk.KB7LV3EL.js} +1 -1
- package/dist/chunks/{chunk.ZLAVT4EU.js → chunk.LE33GS2U.js} +7 -7
- package/dist/chunks/{chunk.5AOSWMDT.js → chunk.LFZXSVJS.js} +1 -1
- package/{cdn/chunks/chunk.GZEUJ2JS.js → dist/chunks/chunk.LO5DQW6B.js} +1 -1
- package/dist/chunks/{chunk.QDWCCDUY.js → chunk.LYNMSIPM.js} +1 -1
- package/dist/chunks/{chunk.MS3DCXPP.js → chunk.MEPZIAGL.js} +1 -1
- package/{cdn/chunks/chunk.5HHHG4SV.js → dist/chunks/chunk.MLOEWNPV.js} +1 -1
- package/dist/chunks/{chunk.JFAR45NP.js → chunk.MS6UNHXS.js} +1 -1
- package/dist/chunks/{chunk.RXZPXAB4.js → chunk.MUOIGLIS.js} +50 -6
- package/dist/chunks/{chunk.KD3R2URP.js → chunk.NHJ3EBNG.js} +1 -1
- package/dist/chunks/{chunk.QHNJQDE5.js → chunk.NHW27P5N.js} +1 -1
- package/{cdn/chunks/chunk.MNRRHWDX.js → dist/chunks/chunk.NWOLKB4W.js} +1 -1
- package/{cdn/chunks/chunk.LFJJNF7C.js → dist/chunks/chunk.NY5ELIGL.js} +1 -1
- package/{cdn/chunks/chunk.BRFSUY5D.js → dist/chunks/chunk.NZCOLBOI.js} +1 -1
- package/dist/chunks/{chunk.O5QN7EQO.js → chunk.O4UZCLJJ.js} +1 -1
- package/dist/chunks/{chunk.AAWOHDFX.js → chunk.P442U2FF.js} +16 -4
- package/{cdn/chunks/chunk.RJCMYVMK.js → dist/chunks/chunk.Q6DRT4JH.js} +1 -1
- package/dist/chunks/chunk.QW3YB4FP.js +647 -0
- package/{cdn/chunks/chunk.3GLWKAG4.js → dist/chunks/chunk.RMHKCYA6.js} +1 -1
- package/dist/chunks/{chunk.UPG6O57L.js → chunk.RT2CYLEI.js} +1 -1
- package/dist/chunks/{chunk.OOLLCVNR.js → chunk.S2YNNRAG.js} +1 -1
- package/dist/chunks/chunk.TFI3UXXB.js +193 -0
- package/dist/chunks/{chunk.E4LMDFCL.js → chunk.TY6D5XAZ.js} +1 -1
- package/dist/chunks/chunk.V3AQ3G4R.js +21 -0
- package/dist/chunks/{chunk.5LMWCV76.js → chunk.V3YFBP3T.js} +1 -1
- package/dist/chunks/chunk.VFU2O56V.js +180 -0
- package/dist/chunks/{chunk.OMJNBUCH.js → chunk.VQIZ36B7.js} +12 -12
- package/dist/chunks/{chunk.SZGKWCF3.js → chunk.WAHH4JE5.js} +1 -1
- package/dist/chunks/{chunk.OFKYTBNH.js → chunk.WW7KBC2J.js} +4 -4
- package/dist/chunks/{chunk.QM5FOCP6.js → chunk.XMJAGELF.js} +1 -1
- package/dist/chunks/{chunk.6YWP3FBT.js → chunk.YNJTPABM.js} +1 -1
- package/dist/chunks/{chunk.NDYEIMNI.js → chunk.Z7YYSHP5.js} +8 -8
- package/dist/chunks/chunk.ZIB2YERI.js +36 -0
- package/dist/chunks/{chunk.X4377OEL.js → chunk.ZMMA3LHG.js} +6 -6
- package/dist/components/browse-variables/browse-variables.component.js +19 -18
- package/dist/components/browse-variables/browse-variables.controller.js +4 -2
- package/dist/components/browse-variables/browse-variables.js +20 -19
- package/dist/components/browse-variables/browse-variables.types.d.ts +8 -0
- package/dist/components/button/button.component.js +3 -3
- package/dist/components/button/button.js +4 -4
- package/dist/components/chip/chip.component.js +2 -2
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/combobox/combobox.component.js +3 -3
- package/dist/components/combobox/combobox.js +4 -4
- package/dist/components/data-rods/data-rods.component.d.ts +57 -0
- package/dist/components/data-rods/data-rods.component.js +47 -0
- package/dist/components/data-rods/data-rods.d.ts +8 -0
- package/dist/components/data-rods/data-rods.js +48 -0
- package/dist/components/data-rods/data-rods.styles.d.ts +2 -0
- package/dist/components/data-rods/data-rods.styles.js +7 -0
- package/dist/components/date-picker/date-picker.component.js +2 -2
- package/dist/components/date-picker/date-picker.js +3 -3
- package/dist/components/date-range-slider/date-range-slider.component.js +4 -4
- package/dist/components/date-range-slider/date-range-slider.js +5 -5
- package/dist/components/dialog/dialog.component.js +2 -2
- package/dist/components/dialog/dialog.js +3 -3
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/loader/loader.component.js +2 -2
- package/dist/components/loader/loader.js +3 -3
- package/dist/components/login/login.component.js +11 -11
- package/dist/components/login/login.js +12 -12
- package/dist/components/map/leaflet-draw.styles.js +1 -1
- package/dist/components/map/leaflet-utils.js +1 -1
- 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/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spatial-picker/spatial-picker.component.d.ts +8 -0
- package/dist/components/spatial-picker/spatial-picker.component.js +6 -6
- package/dist/components/spatial-picker/spatial-picker.js +7 -7
- package/dist/components/time-series/time-series.component.d.ts +8 -49
- package/dist/components/time-series/time-series.component.js +14 -32
- package/dist/components/time-series/time-series.controller.d.ts +6 -9
- package/dist/components/time-series/time-series.controller.js +2 -1
- package/dist/components/time-series/time-series.js +15 -33
- package/dist/components/time-series/time-series.styles.js +1 -1
- package/dist/components/time-series/time-series.types.d.ts +1 -1
- package/dist/components/variable-combobox/lib.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.component.js +11 -11
- package/dist/components/variable-combobox/variable-combobox.controller.js +2 -2
- package/dist/components/variable-combobox/variable-combobox.js +12 -12
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +14 -12
- package/dist/components/variable-keyword-search/variable-keyword-search.controller.js +3 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.js +15 -13
- package/dist/custom-elements.json +1524 -1479
- package/dist/events/terra-time-series-data-change.d.ts +2 -2
- package/dist/react/browse-variables/index.js +20 -19
- package/dist/react/button/index.js +4 -4
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +4 -4
- package/dist/react/data-rods/index.d.ts +9 -0
- package/dist/react/data-rods/index.js +48 -0
- package/dist/react/date-picker/index.js +3 -3
- package/dist/react/date-range-slider/index.js +5 -5
- package/dist/react/dialog/index.js +3 -3
- package/dist/react/icon/index.js +5 -5
- package/dist/react/index.d.ts +5 -4
- package/dist/react/index.js +81 -76
- package/dist/react/loader/index.js +3 -3
- package/dist/react/login/index.js +12 -12
- package/dist/react/map/index.js +6 -6
- package/dist/react/plot/index.js +3 -3
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spatial-picker/index.js +7 -7
- package/dist/react/time-series/index.d.ts +0 -2
- package/dist/react/time-series/index.js +15 -33
- package/dist/react/variable-combobox/index.js +12 -12
- package/dist/react/variable-keyword-search/index.js +15 -13
- package/dist/terra-ui-components.d.ts +1 -0
- package/dist/terra-ui-components.js +84 -78
- package/dist/terra_ui_components-0.0.45-py3-none-any.whl +0 -0
- package/dist/{terra_ui_components-0.0.43.tar.gz → terra_ui_components-0.0.45.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +97 -78
- package/dist/utilities/date.d.ts +8 -0
- package/dist/utilities/date.js +5 -1
- package/dist/utilities/icon-library.js +2 -2
- package/dist/variable-catalog/giovanni-variable-catalog.d.ts +4 -0
- package/dist/variable-catalog/queries.d.ts +1 -0
- package/dist/variable-catalog/types.d.ts +15 -0
- package/dist/vscode.html-custom-data.json +146 -105
- package/dist/web-types.json +306 -259
- package/package.json +1 -1
- package/cdn/chunks/chunk.46IWBVYP.js +0 -13
- package/cdn/chunks/chunk.FRHQ2JZY.js +0 -30
- package/cdn/chunks/chunk.GD2FHNDE.js +0 -1131
- package/cdn/chunks/chunk.TNVTVMRS.js +0 -36
- package/cdn/components/browse-variables/repositories/giovanni.repository.d.ts +0 -8
- package/cdn/components/browse-variables/repositories/giovanni.repository.js +0 -7
- package/dist/chunks/chunk.4TEZ5QPN.js +0 -671
- package/dist/chunks/chunk.OIDMX5LU.js +0 -10
- package/dist/chunks/chunk.TNVTVMRS.js +0 -36
- package/dist/components/browse-variables/repositories/giovanni.repository.d.ts +0 -8
- package/dist/components/browse-variables/repositories/giovanni.repository.js +0 -7
- package/dist/terra_ui_components-0.0.43-py3-none-any.whl +0 -0
- package/cdn/chunks/{chunk.7DOMZGX7.js → chunk.MDRUDBRH.js} +3 -3
- package/cdn/chunks/{chunk.LOCO37M5.js → chunk.X2C7E56W.js} +3 -3
- package/dist/chunks/{chunk.7DOMZGX7.js → chunk.MDRUDBRH.js} +3 -3
|
@@ -1,671 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TerraVariableCombobox
|
|
3
|
-
} from "./chunk.NDYEIMNI.js";
|
|
4
|
-
import {
|
|
5
|
-
spatial_picker_default
|
|
6
|
-
} from "./chunk.UPG6O57L.js";
|
|
7
|
-
import {
|
|
8
|
-
TimeSeriesController,
|
|
9
|
-
calculateDataPoints
|
|
10
|
-
} from "./chunk.WAIWLZ6Z.js";
|
|
11
|
-
import {
|
|
12
|
-
time_series_styles_default
|
|
13
|
-
} from "./chunk.5EHGVGXV.js";
|
|
14
|
-
import {
|
|
15
|
-
TerraPlot
|
|
16
|
-
} from "./chunk.QM5FOCP6.js";
|
|
17
|
-
import {
|
|
18
|
-
TerraDateRangeSlider
|
|
19
|
-
} from "./chunk.H22DYLKA.js";
|
|
20
|
-
import {
|
|
21
|
-
TerraLoader
|
|
22
|
-
} from "./chunk.MS3DCXPP.js";
|
|
23
|
-
import {
|
|
24
|
-
TerraIcon
|
|
25
|
-
} from "./chunk.TCMWMNOB.js";
|
|
26
|
-
import {
|
|
27
|
-
TerraButton
|
|
28
|
-
} from "./chunk.7P5EOY66.js";
|
|
29
|
-
import {
|
|
30
|
-
watch
|
|
31
|
-
} from "./chunk.SK7IZCKP.js";
|
|
32
|
-
import {
|
|
33
|
-
TerraElement,
|
|
34
|
-
component_styles_default
|
|
35
|
-
} from "./chunk.QHNJQDE5.js";
|
|
36
|
-
import {
|
|
37
|
-
__decorateClass,
|
|
38
|
-
__privateAdd,
|
|
39
|
-
__privateGet,
|
|
40
|
-
__privateMethod,
|
|
41
|
-
__privateSet
|
|
42
|
-
} from "./chunk.TVFCHGU3.js";
|
|
43
|
-
|
|
44
|
-
// src/components/time-series/time-series.component.ts
|
|
45
|
-
import dayjs from "dayjs";
|
|
46
|
-
import timezone from "dayjs/plugin/timezone.js";
|
|
47
|
-
import utc from "dayjs/plugin/utc.js";
|
|
48
|
-
import { cache } from "lit/directives/cache.js";
|
|
49
|
-
import { downloadImage } from "plotly.js-dist-min";
|
|
50
|
-
import { html, nothing } from "lit";
|
|
51
|
-
import { property, query, state } from "lit/decorators.js";
|
|
52
|
-
import { TaskStatus } from "@lit/task";
|
|
53
|
-
var NUM_DATAPOINTS_TO_WARN_USER = 5e4;
|
|
54
|
-
dayjs.extend(utc);
|
|
55
|
-
dayjs.extend(timezone);
|
|
56
|
-
dayjs.tz.setDefault("Etc/GMT");
|
|
57
|
-
var _timeSeriesController, _checkDataPointLimits, checkDataPointLimits_fn, _confirmDataPointWarning, confirmDataPointWarning_fn, _cancelDataPointWarning, cancelDataPointWarning_fn, _adaptPropertyToController, adaptPropertyToController_fn, _maybeSliceTimeForStartEnd, maybeSliceTimeForStartEnd_fn, _handleVariableChange, handleVariableChange_fn, _handleMapChange, handleMapChange_fn, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn, _abortDataLoad, abortDataLoad_fn, _downloadCSV, downloadCSV_fn, _convertToCSV, convertToCSV_fn, _downloadPNG, downloadPNG_fn, _handleActiveMenuItem, handleActiveMenuItem_fn;
|
|
58
|
-
var TerraTimeSeries = class extends TerraElement {
|
|
59
|
-
constructor() {
|
|
60
|
-
super(...arguments);
|
|
61
|
-
/**
|
|
62
|
-
* Checks if the current date range will exceed data point limits
|
|
63
|
-
* eturns true if it's safe to proceed, false if confirmation is needed
|
|
64
|
-
*/
|
|
65
|
-
__privateAdd(this, _checkDataPointLimits);
|
|
66
|
-
__privateAdd(this, _confirmDataPointWarning);
|
|
67
|
-
__privateAdd(this, _cancelDataPointWarning);
|
|
68
|
-
__privateAdd(this, _adaptPropertyToController);
|
|
69
|
-
/**
|
|
70
|
-
* The Collection Beginning DateTime changes when a new collection is selected.
|
|
71
|
-
* We want to auto-select a reasonable slice of time and send a request to the data API, the
|
|
72
|
-
* same as if the user moved the time slider.
|
|
73
|
-
* However, if the component has the startDate or endDate set externally, don't override that;
|
|
74
|
-
* this is an init-only action.
|
|
75
|
-
*/
|
|
76
|
-
__privateAdd(this, _maybeSliceTimeForStartEnd);
|
|
77
|
-
__privateAdd(this, _handleVariableChange);
|
|
78
|
-
__privateAdd(this, _handleMapChange);
|
|
79
|
-
/**
|
|
80
|
-
* anytime the date range slider changes, update the start and end date
|
|
81
|
-
*/
|
|
82
|
-
__privateAdd(this, _handleDateRangeSliderChangeEvent);
|
|
83
|
-
/**
|
|
84
|
-
* aborts the underlying data loading task, which cancels the network request
|
|
85
|
-
*/
|
|
86
|
-
__privateAdd(this, _abortDataLoad);
|
|
87
|
-
/**
|
|
88
|
-
* TODO:
|
|
89
|
-
* [x] re-enable downloads here
|
|
90
|
-
* [x] get live data from Giovanni
|
|
91
|
-
* [x] display required information in information menuitem
|
|
92
|
-
* [x] ask about adding help links
|
|
93
|
-
* [ ] see what can be simplified from downloadCSV
|
|
94
|
-
*/
|
|
95
|
-
__privateAdd(this, _downloadCSV);
|
|
96
|
-
__privateAdd(this, _convertToCSV);
|
|
97
|
-
__privateAdd(this, _downloadPNG);
|
|
98
|
-
__privateAdd(this, _handleActiveMenuItem);
|
|
99
|
-
__privateAdd(this, _timeSeriesController, void 0);
|
|
100
|
-
this.showDataPointWarning = false;
|
|
101
|
-
this.estimatedDataPoints = 0;
|
|
102
|
-
this.activeMenuItem = null;
|
|
103
|
-
}
|
|
104
|
-
handleCollectionUpdate(_oldValue, newValue) {
|
|
105
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "collection", newValue);
|
|
106
|
-
}
|
|
107
|
-
handlevariableUpdate(_oldValue, newValue) {
|
|
108
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "variable", newValue);
|
|
109
|
-
}
|
|
110
|
-
handleStartDateUpdate(_oldValue, newValue) {
|
|
111
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "startDate", newValue);
|
|
112
|
-
}
|
|
113
|
-
handleEndDateUpdate(_oldValue, newValue) {
|
|
114
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "endDate", newValue);
|
|
115
|
-
}
|
|
116
|
-
handleLocationUpdate(_oldValue, newValue) {
|
|
117
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "location", newValue);
|
|
118
|
-
}
|
|
119
|
-
handleFocus(_oldValue, newValue) {
|
|
120
|
-
if (newValue === null) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
this.menu.focus();
|
|
124
|
-
}
|
|
125
|
-
connectedCallback() {
|
|
126
|
-
super.connectedCallback();
|
|
127
|
-
__privateSet(this, _timeSeriesController, new TimeSeriesController(this, this.bearerToken));
|
|
128
|
-
}
|
|
129
|
-
render() {
|
|
130
|
-
var _a, _b;
|
|
131
|
-
return html`
|
|
132
|
-
<terra-variable-combobox
|
|
133
|
-
exportparts="base:variable-combobox__base, combobox:variable-combobox__combobox, button:variable-combobox__button, listbox:variable-combobox__listbox"
|
|
134
|
-
.value=${this.collection && this.variable ? `${this.collection}_${this.variable}` : nothing}
|
|
135
|
-
.bearerToken=${(_a = this.bearerToken) != null ? _a : null}
|
|
136
|
-
.useTags=${true}
|
|
137
|
-
@terra-combobox-change="${__privateMethod(this, _handleVariableChange, handleVariableChange_fn)}"
|
|
138
|
-
></terra-variable-combobox>
|
|
139
|
-
|
|
140
|
-
<terra-spatial-picker
|
|
141
|
-
initial-value=${this.location}
|
|
142
|
-
exportparts="map:spatial-picker__map, leaflet-bbox:spatial-picker__leaflet-bbox, leaflet-point:spatial-picker__leaflet-point"
|
|
143
|
-
label="Select Point"
|
|
144
|
-
@terra-map-change=${__privateMethod(this, _handleMapChange, handleMapChange_fn)}
|
|
145
|
-
></terra-spatial-picker>
|
|
146
|
-
|
|
147
|
-
<div class="plot-container">
|
|
148
|
-
${cache(
|
|
149
|
-
this.variable ? html`
|
|
150
|
-
<header>
|
|
151
|
-
<h2 class="title">
|
|
152
|
-
${this.variableLongName}
|
|
153
|
-
</h2>
|
|
154
|
-
|
|
155
|
-
<div class="toggles">
|
|
156
|
-
<terra-button
|
|
157
|
-
circle
|
|
158
|
-
outline
|
|
159
|
-
aria-expanded=${this.activeMenuItem === "information"}
|
|
160
|
-
aria-controls="menu"
|
|
161
|
-
aria-haspopup="true"
|
|
162
|
-
class="toggle"
|
|
163
|
-
@click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
|
|
164
|
-
data-menu-name="information"
|
|
165
|
-
>
|
|
166
|
-
<span class="sr-only">Information for ${this.variableLongName}</span>
|
|
167
|
-
|
|
168
|
-
<terra-icon
|
|
169
|
-
name="outline-information-circle"
|
|
170
|
-
library="heroicons"
|
|
171
|
-
font-size="1.5em"
|
|
172
|
-
></terra-icon>
|
|
173
|
-
</terra-button>
|
|
174
|
-
|
|
175
|
-
<terra-button
|
|
176
|
-
circle
|
|
177
|
-
outline
|
|
178
|
-
aria-expanded=${this.activeMenuItem === "download"}
|
|
179
|
-
aria-controls="menu"
|
|
180
|
-
aria-haspopup="true"
|
|
181
|
-
class="toggle"
|
|
182
|
-
@click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
|
|
183
|
-
data-menu-name="download"
|
|
184
|
-
>
|
|
185
|
-
<span class="sr-only">Download options for ${this.variableLongName}</span>
|
|
186
|
-
|
|
187
|
-
<terra-icon
|
|
188
|
-
name="outline-arrow-down-tray"
|
|
189
|
-
library="heroicons"
|
|
190
|
-
font-size="1.5em"
|
|
191
|
-
></terra-icon>
|
|
192
|
-
</terra-button>
|
|
193
|
-
|
|
194
|
-
<terra-button
|
|
195
|
-
circle
|
|
196
|
-
outline
|
|
197
|
-
aria-expanded=${this.activeMenuItem === "help"}
|
|
198
|
-
aria-controls="menu"
|
|
199
|
-
aria-haspopup="true"
|
|
200
|
-
class="toggle"
|
|
201
|
-
@click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
|
|
202
|
-
data-menu-name="help"
|
|
203
|
-
>
|
|
204
|
-
<span class="sr-only">Help link for ${this.variableLongName}</span>
|
|
205
|
-
|
|
206
|
-
<terra-icon
|
|
207
|
-
name="outline-question-mark-circle"
|
|
208
|
-
library="heroicons"
|
|
209
|
-
font-size="1.5em"
|
|
210
|
-
></terra-icon>
|
|
211
|
-
</terra-button>
|
|
212
|
-
</div>
|
|
213
|
-
|
|
214
|
-
<menu
|
|
215
|
-
role="menu"
|
|
216
|
-
id="menu"
|
|
217
|
-
data-expanded=${this.activeMenuItem !== null}
|
|
218
|
-
tabindex="-1"
|
|
219
|
-
>
|
|
220
|
-
<li
|
|
221
|
-
role="menuitem"
|
|
222
|
-
?hidden=${this.activeMenuItem !== "information"}
|
|
223
|
-
>
|
|
224
|
-
<h3 class="sr-only">Information</h3>
|
|
225
|
-
|
|
226
|
-
<dl>
|
|
227
|
-
<dt>Variable Longname</dt>
|
|
228
|
-
<dd>${this.variableLongName}</dd>
|
|
229
|
-
|
|
230
|
-
<dt>Variable Shortname</dt>
|
|
231
|
-
<dd>${this.variable}</dd>
|
|
232
|
-
|
|
233
|
-
<dt>Units</dt>
|
|
234
|
-
<dd>
|
|
235
|
-
<code>${this.units}</code>
|
|
236
|
-
</dd>
|
|
237
|
-
|
|
238
|
-
<dt>Dataset Information</dt>
|
|
239
|
-
<dd>
|
|
240
|
-
<a
|
|
241
|
-
href=${this.datasetLandingPage}
|
|
242
|
-
rel="noopener noreffer"
|
|
243
|
-
target="_blank"
|
|
244
|
-
>${this.collectionLongName}
|
|
245
|
-
|
|
246
|
-
<terra-icon
|
|
247
|
-
name="outline-arrow-top-right-on-square"
|
|
248
|
-
library="heroicons"
|
|
249
|
-
></terra-icon>
|
|
250
|
-
</a>
|
|
251
|
-
</dd>
|
|
252
|
-
|
|
253
|
-
<dt>Variable Information</dt>
|
|
254
|
-
<dd>
|
|
255
|
-
<a
|
|
256
|
-
href=${this.variableLandingPage}
|
|
257
|
-
rel="noopener noreffer"
|
|
258
|
-
target="_blank"
|
|
259
|
-
>Variable Glossary
|
|
260
|
-
|
|
261
|
-
<terra-icon
|
|
262
|
-
name="outline-arrow-top-right-on-square"
|
|
263
|
-
library="heroicons"
|
|
264
|
-
></terra-icon>
|
|
265
|
-
</a>
|
|
266
|
-
</dd>
|
|
267
|
-
</dl>
|
|
268
|
-
</li>
|
|
269
|
-
|
|
270
|
-
<li
|
|
271
|
-
role="menuitem"
|
|
272
|
-
?hidden=${this.activeMenuItem !== "download"}
|
|
273
|
-
>
|
|
274
|
-
<h3 class="sr-only">Download Options</h3>
|
|
275
|
-
|
|
276
|
-
<p>
|
|
277
|
-
This plot can be downloaded as either a
|
|
278
|
-
<abbr title="Portable Network Graphic"
|
|
279
|
-
>PNG</abbr
|
|
280
|
-
>
|
|
281
|
-
image or
|
|
282
|
-
<abbr title="Comma-Separated Value"
|
|
283
|
-
>CSV</abbr
|
|
284
|
-
>
|
|
285
|
-
data.
|
|
286
|
-
</p>
|
|
287
|
-
|
|
288
|
-
<terra-button
|
|
289
|
-
outline
|
|
290
|
-
variant="default"
|
|
291
|
-
@click=${__privateMethod(this, _downloadPNG, downloadPNG_fn)}
|
|
292
|
-
>
|
|
293
|
-
<span class="sr-only"
|
|
294
|
-
>Download Plot Data as
|
|
295
|
-
</span>
|
|
296
|
-
PNG
|
|
297
|
-
<terra-icon
|
|
298
|
-
slot="prefix"
|
|
299
|
-
name="outline-photo"
|
|
300
|
-
library="heroicons"
|
|
301
|
-
font-size="1.5em"
|
|
302
|
-
></terra-icon>
|
|
303
|
-
</terra-button>
|
|
304
|
-
|
|
305
|
-
<terra-button
|
|
306
|
-
outline
|
|
307
|
-
variant="default"
|
|
308
|
-
@click=${__privateMethod(this, _downloadCSV, downloadCSV_fn)}
|
|
309
|
-
>
|
|
310
|
-
<span class="sr-only"
|
|
311
|
-
>Download Plot Data as
|
|
312
|
-
</span>
|
|
313
|
-
CSV
|
|
314
|
-
<terra-icon
|
|
315
|
-
slot="prefix"
|
|
316
|
-
name="outline-document-chart-bar"
|
|
317
|
-
library="heroicons"
|
|
318
|
-
font-size="1.5em"
|
|
319
|
-
></terra-icon>
|
|
320
|
-
</terra-button>
|
|
321
|
-
</li>
|
|
322
|
-
|
|
323
|
-
<li
|
|
324
|
-
role="menuitem"
|
|
325
|
-
?hidden=${this.activeMenuItem !== "help"}
|
|
326
|
-
>
|
|
327
|
-
<h3 class="sr-only">Help Links</h3>
|
|
328
|
-
<ul>
|
|
329
|
-
<li>
|
|
330
|
-
<a href="https://forum.earthdata.nasa.gov/viewforum.php?f=7&DAAC=3" rel"noopener noreffer">Earthdata User Forum
|
|
331
|
-
<terra-icon
|
|
332
|
-
name="outline-arrow-top-right-on-square"
|
|
333
|
-
library="heroicons"
|
|
334
|
-
></terra-icon>
|
|
335
|
-
</a>
|
|
336
|
-
</li>
|
|
337
|
-
</ul>
|
|
338
|
-
</li>
|
|
339
|
-
</menu>
|
|
340
|
-
</header>
|
|
341
|
-
` : html`<div class="spacer"></div>`
|
|
342
|
-
)}
|
|
343
|
-
|
|
344
|
-
<terra-plot
|
|
345
|
-
exportparts="base:plot__base, plot-title:plot__title"
|
|
346
|
-
.data=${(_b = __privateGet(this, _timeSeriesController).lastTaskValue) != null ? _b : __privateGet(this, _timeSeriesController).emptyPlotData}
|
|
347
|
-
.layout="${{
|
|
348
|
-
xaxis: {
|
|
349
|
-
title: "Time",
|
|
350
|
-
showgrid: false,
|
|
351
|
-
zeroline: false
|
|
352
|
-
},
|
|
353
|
-
yaxis: {
|
|
354
|
-
title: this.variableLongName && this.units ? `${this.variableLongName}, ${this.units}` : null,
|
|
355
|
-
showline: false
|
|
356
|
-
},
|
|
357
|
-
title: {
|
|
358
|
-
text: this.collection && this.location ? `${this.collection} @ ${this.location}` : null
|
|
359
|
-
}
|
|
360
|
-
}}"
|
|
361
|
-
.config=${{
|
|
362
|
-
displayModeBar: true,
|
|
363
|
-
displaylogo: false,
|
|
364
|
-
modeBarButtonsToRemove: ["toImage", "zoom2d", "resetScale2d"],
|
|
365
|
-
responsive: true
|
|
366
|
-
}}
|
|
367
|
-
></terra-plot>
|
|
368
|
-
</div>
|
|
369
|
-
|
|
370
|
-
<terra-date-range-slider
|
|
371
|
-
exportparts="slider:date-range-slider__slider"
|
|
372
|
-
min-date=${this.collectionBeginningDateTime}
|
|
373
|
-
max-date=${this.collectionEndingDateTime}
|
|
374
|
-
start-date=${this.startDate}
|
|
375
|
-
end-date=${this.endDate}
|
|
376
|
-
@terra-date-range-change="${__privateMethod(this, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn)}"
|
|
377
|
-
></terra-date-range-slider>
|
|
378
|
-
|
|
379
|
-
<dialog
|
|
380
|
-
?open=${__privateGet(this, _timeSeriesController).task.status === TaskStatus.PENDING}
|
|
381
|
-
>
|
|
382
|
-
<terra-loader indeterminate></terra-loader>
|
|
383
|
-
<p>Plotting ${this.collection} ${this.variable}…</p>
|
|
384
|
-
<terra-button @click=${__privateMethod(this, _abortDataLoad, abortDataLoad_fn)}>Cancel</terra-button>
|
|
385
|
-
</dialog>
|
|
386
|
-
|
|
387
|
-
<dialog ?open=${this.showDataPointWarning} class="quota-dialog">
|
|
388
|
-
<h2>This is a large request</h2>
|
|
389
|
-
|
|
390
|
-
<p>
|
|
391
|
-
You are requesting approximately
|
|
392
|
-
${this.estimatedDataPoints.toLocaleString()} data points.
|
|
393
|
-
</p>
|
|
394
|
-
|
|
395
|
-
<p>
|
|
396
|
-
Requesting large amounts of data may cause you to reach your
|
|
397
|
-
monthly quota limit.
|
|
398
|
-
</p>
|
|
399
|
-
|
|
400
|
-
<p>Would you still like to proceed with this request?</p>
|
|
401
|
-
|
|
402
|
-
<div class="dialog-buttons">
|
|
403
|
-
<terra-button
|
|
404
|
-
@click=${__privateMethod(this, _cancelDataPointWarning, cancelDataPointWarning_fn)}
|
|
405
|
-
variant="default"
|
|
406
|
-
>
|
|
407
|
-
Cancel
|
|
408
|
-
</terra-button>
|
|
409
|
-
|
|
410
|
-
<terra-button
|
|
411
|
-
@click=${__privateMethod(this, _confirmDataPointWarning, confirmDataPointWarning_fn)}
|
|
412
|
-
variant="primary"
|
|
413
|
-
>
|
|
414
|
-
Proceed
|
|
415
|
-
</terra-button>
|
|
416
|
-
</div>
|
|
417
|
-
</dialog>
|
|
418
|
-
`;
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
_timeSeriesController = new WeakMap();
|
|
422
|
-
_checkDataPointLimits = new WeakSet();
|
|
423
|
-
checkDataPointLimits_fn = function() {
|
|
424
|
-
if (!this.timeInterval || !this.startDate || !this.endDate) {
|
|
425
|
-
return true;
|
|
426
|
-
}
|
|
427
|
-
const startDate = dayjs.utc(this.startDate).toDate();
|
|
428
|
-
const endDate = dayjs.utc(this.endDate).toDate();
|
|
429
|
-
this.estimatedDataPoints = calculateDataPoints(
|
|
430
|
-
this.timeInterval,
|
|
431
|
-
startDate,
|
|
432
|
-
endDate
|
|
433
|
-
);
|
|
434
|
-
if (this.estimatedDataPoints < NUM_DATAPOINTS_TO_WARN_USER) {
|
|
435
|
-
return true;
|
|
436
|
-
}
|
|
437
|
-
this.showDataPointWarning = true;
|
|
438
|
-
return false;
|
|
439
|
-
};
|
|
440
|
-
_confirmDataPointWarning = new WeakSet();
|
|
441
|
-
confirmDataPointWarning_fn = function() {
|
|
442
|
-
this.showDataPointWarning = false;
|
|
443
|
-
__privateGet(this, _timeSeriesController).task.run();
|
|
444
|
-
};
|
|
445
|
-
_cancelDataPointWarning = new WeakSet();
|
|
446
|
-
cancelDataPointWarning_fn = function() {
|
|
447
|
-
this.showDataPointWarning = false;
|
|
448
|
-
};
|
|
449
|
-
_adaptPropertyToController = new WeakSet();
|
|
450
|
-
adaptPropertyToController_fn = function(property2, value) {
|
|
451
|
-
switch (property2) {
|
|
452
|
-
case "startDate":
|
|
453
|
-
case "endDate":
|
|
454
|
-
__privateGet(this, _timeSeriesController)[property2] = dayjs.utc(value).toDate();
|
|
455
|
-
break;
|
|
456
|
-
case "location":
|
|
457
|
-
const [lat, lon] = value.split(",");
|
|
458
|
-
__privateGet(this, _timeSeriesController)[property2] = `${lon},%20${lat}`;
|
|
459
|
-
break;
|
|
460
|
-
default:
|
|
461
|
-
__privateGet(this, _timeSeriesController)[property2] = value;
|
|
462
|
-
break;
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
_maybeSliceTimeForStartEnd = new WeakSet();
|
|
466
|
-
maybeSliceTimeForStartEnd_fn = function() {
|
|
467
|
-
const hasExternallySetDates = !!this.startDate || !!this.endDate;
|
|
468
|
-
const hasBothDatesFromCollection = !!this.collectionBeginningDateTime && !!this.collectionEndingDateTime;
|
|
469
|
-
if (hasExternallySetDates || !hasBothDatesFromCollection) {
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
const diff = Math.abs(
|
|
473
|
-
new Date(this.collectionEndingDateTime).getTime() - new Date(this.collectionBeginningDateTime).getTime()
|
|
474
|
-
);
|
|
475
|
-
const threeQuarterRange = Math.floor(diff * 0.75);
|
|
476
|
-
const startDate = Math.abs(
|
|
477
|
-
new Date(this.collectionBeginningDateTime).getTime() + threeQuarterRange
|
|
478
|
-
);
|
|
479
|
-
this.startDate = dayjs.utc(startDate).format();
|
|
480
|
-
this.endDate = dayjs.utc(this.collectionEndingDateTime).format();
|
|
481
|
-
};
|
|
482
|
-
_handleVariableChange = new WeakSet();
|
|
483
|
-
handleVariableChange_fn = function(event) {
|
|
484
|
-
this.collectionBeginningDateTime = dayjs.utc().format(event.detail.collectionBeginningDateTime);
|
|
485
|
-
this.collectionEndingDateTime = dayjs.utc().format(event.detail.collectionEndingDateTime);
|
|
486
|
-
__privateMethod(this, _maybeSliceTimeForStartEnd, maybeSliceTimeForStartEnd_fn).call(this);
|
|
487
|
-
this.collection = `${event.detail.collectionShortName}_${event.detail.collectionVersion}`;
|
|
488
|
-
this.collectionLongName = event.detail.collectionLongName;
|
|
489
|
-
this.datasetLandingPage = event.detail.datasetLandingPage;
|
|
490
|
-
this.units = event.detail.units;
|
|
491
|
-
this.variable = event.detail.name;
|
|
492
|
-
this.variableLandingPage = event.detail.variableLandingPage;
|
|
493
|
-
this.variableLongName = event.detail.longName;
|
|
494
|
-
this.timeInterval = event.detail.timeInterval;
|
|
495
|
-
if (__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this)) {
|
|
496
|
-
__privateGet(this, _timeSeriesController).task.run();
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
|
-
_handleMapChange = new WeakSet();
|
|
500
|
-
handleMapChange_fn = function(event) {
|
|
501
|
-
const type = event.detail.geoJson.geometry.type;
|
|
502
|
-
if (type === "Point") {
|
|
503
|
-
const { latLng } = event.detail;
|
|
504
|
-
this.location = `${latLng.lat.toFixed(4)},${latLng.lng.toFixed(4)}`;
|
|
505
|
-
if (__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this)) {
|
|
506
|
-
__privateGet(this, _timeSeriesController).task.run();
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
_handleDateRangeSliderChangeEvent = new WeakSet();
|
|
511
|
-
handleDateRangeSliderChangeEvent_fn = function(event) {
|
|
512
|
-
this.startDate = event.detail.startDate;
|
|
513
|
-
this.endDate = event.detail.endDate;
|
|
514
|
-
if (__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this)) {
|
|
515
|
-
__privateGet(this, _timeSeriesController).task.run();
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
_abortDataLoad = new WeakSet();
|
|
519
|
-
abortDataLoad_fn = function() {
|
|
520
|
-
var _a;
|
|
521
|
-
(_a = __privateGet(this, _timeSeriesController).task) == null ? void 0 : _a.abort();
|
|
522
|
-
};
|
|
523
|
-
_downloadCSV = new WeakSet();
|
|
524
|
-
downloadCSV_fn = function(_event) {
|
|
525
|
-
var _a;
|
|
526
|
-
const controllerData = (_a = __privateGet(this, _timeSeriesController).lastTaskValue) != null ? _a : __privateGet(this, _timeSeriesController).emptyPlotData;
|
|
527
|
-
let plotData = [];
|
|
528
|
-
controllerData.forEach((plot, index) => {
|
|
529
|
-
plotData[index] = plot;
|
|
530
|
-
});
|
|
531
|
-
const csvData = plotData.map((trace) => {
|
|
532
|
-
return trace.x.map((x, i) => {
|
|
533
|
-
return {
|
|
534
|
-
x,
|
|
535
|
-
y: trace.y[i]
|
|
536
|
-
};
|
|
537
|
-
});
|
|
538
|
-
}).flat();
|
|
539
|
-
const csv = __privateMethod(this, _convertToCSV, convertToCSV_fn).call(this, csvData);
|
|
540
|
-
csv;
|
|
541
|
-
};
|
|
542
|
-
_convertToCSV = new WeakSet();
|
|
543
|
-
convertToCSV_fn = function(data) {
|
|
544
|
-
const header = Object.keys(data[0]).join(",") + "\n";
|
|
545
|
-
const rows = data.map((obj) => Object.values(obj).join(",")).join("\n");
|
|
546
|
-
return header + rows;
|
|
547
|
-
};
|
|
548
|
-
_downloadPNG = new WeakSet();
|
|
549
|
-
downloadPNG_fn = function(_event) {
|
|
550
|
-
var _a;
|
|
551
|
-
downloadImage((_a = this.plot) == null ? void 0 : _a.base, {
|
|
552
|
-
filename: `${this.collection}_${this.variable}`,
|
|
553
|
-
format: "png",
|
|
554
|
-
width: 1920,
|
|
555
|
-
height: 1080
|
|
556
|
-
});
|
|
557
|
-
};
|
|
558
|
-
_handleActiveMenuItem = new WeakSet();
|
|
559
|
-
handleActiveMenuItem_fn = function(event) {
|
|
560
|
-
const button = event.currentTarget;
|
|
561
|
-
const menuName = button.dataset.menuName;
|
|
562
|
-
this.activeMenuItem = menuName === this.activeMenuItem ? null : menuName;
|
|
563
|
-
};
|
|
564
|
-
TerraTimeSeries.styles = [component_styles_default, time_series_styles_default];
|
|
565
|
-
TerraTimeSeries.dependencies = {
|
|
566
|
-
"terra-plot": TerraPlot,
|
|
567
|
-
"terra-date-range-slider": TerraDateRangeSlider,
|
|
568
|
-
"terra-spatial-picker": spatial_picker_default,
|
|
569
|
-
"terra-variable-combobox": TerraVariableCombobox,
|
|
570
|
-
"terra-loader": TerraLoader,
|
|
571
|
-
"terra-icon": TerraIcon,
|
|
572
|
-
"terra-button": TerraButton
|
|
573
|
-
};
|
|
574
|
-
__decorateClass([
|
|
575
|
-
property({ reflect: true })
|
|
576
|
-
], TerraTimeSeries.prototype, "collection", 2);
|
|
577
|
-
__decorateClass([
|
|
578
|
-
property({ reflect: true })
|
|
579
|
-
], TerraTimeSeries.prototype, "collectionLongName", 2);
|
|
580
|
-
__decorateClass([
|
|
581
|
-
property({ reflect: true })
|
|
582
|
-
], TerraTimeSeries.prototype, "datasetLandingPage", 2);
|
|
583
|
-
__decorateClass([
|
|
584
|
-
property({ reflect: true })
|
|
585
|
-
], TerraTimeSeries.prototype, "variable", 2);
|
|
586
|
-
__decorateClass([
|
|
587
|
-
property({ reflect: true })
|
|
588
|
-
], TerraTimeSeries.prototype, "variableLandingPage", 2);
|
|
589
|
-
__decorateClass([
|
|
590
|
-
property({ reflect: true })
|
|
591
|
-
], TerraTimeSeries.prototype, "variableLongName", 2);
|
|
592
|
-
__decorateClass([
|
|
593
|
-
property({
|
|
594
|
-
attribute: "start-date",
|
|
595
|
-
reflect: true
|
|
596
|
-
})
|
|
597
|
-
], TerraTimeSeries.prototype, "startDate", 2);
|
|
598
|
-
__decorateClass([
|
|
599
|
-
property({
|
|
600
|
-
attribute: "end-date",
|
|
601
|
-
reflect: true
|
|
602
|
-
})
|
|
603
|
-
], TerraTimeSeries.prototype, "endDate", 2);
|
|
604
|
-
__decorateClass([
|
|
605
|
-
property({
|
|
606
|
-
reflect: true
|
|
607
|
-
})
|
|
608
|
-
], TerraTimeSeries.prototype, "location", 2);
|
|
609
|
-
__decorateClass([
|
|
610
|
-
property({
|
|
611
|
-
reflect: true
|
|
612
|
-
})
|
|
613
|
-
], TerraTimeSeries.prototype, "units", 2);
|
|
614
|
-
__decorateClass([
|
|
615
|
-
property({ attribute: "bearer-token", reflect: false })
|
|
616
|
-
], TerraTimeSeries.prototype, "bearerToken", 2);
|
|
617
|
-
__decorateClass([
|
|
618
|
-
query("terra-date-range-slider")
|
|
619
|
-
], TerraTimeSeries.prototype, "dateRangeSlider", 2);
|
|
620
|
-
__decorateClass([
|
|
621
|
-
query("terra-plot")
|
|
622
|
-
], TerraTimeSeries.prototype, "plot", 2);
|
|
623
|
-
__decorateClass([
|
|
624
|
-
query("terra-spatial-picker")
|
|
625
|
-
], TerraTimeSeries.prototype, "spatialPicker", 2);
|
|
626
|
-
__decorateClass([
|
|
627
|
-
query("terra-variable-combobo")
|
|
628
|
-
], TerraTimeSeries.prototype, "variableCombobox", 2);
|
|
629
|
-
__decorateClass([
|
|
630
|
-
query("#menu")
|
|
631
|
-
], TerraTimeSeries.prototype, "menu", 2);
|
|
632
|
-
__decorateClass([
|
|
633
|
-
state()
|
|
634
|
-
], TerraTimeSeries.prototype, "collectionBeginningDateTime", 2);
|
|
635
|
-
__decorateClass([
|
|
636
|
-
state()
|
|
637
|
-
], TerraTimeSeries.prototype, "collectionEndingDateTime", 2);
|
|
638
|
-
__decorateClass([
|
|
639
|
-
state()
|
|
640
|
-
], TerraTimeSeries.prototype, "timeInterval", 2);
|
|
641
|
-
__decorateClass([
|
|
642
|
-
state()
|
|
643
|
-
], TerraTimeSeries.prototype, "showDataPointWarning", 2);
|
|
644
|
-
__decorateClass([
|
|
645
|
-
state()
|
|
646
|
-
], TerraTimeSeries.prototype, "estimatedDataPoints", 2);
|
|
647
|
-
__decorateClass([
|
|
648
|
-
state()
|
|
649
|
-
], TerraTimeSeries.prototype, "activeMenuItem", 2);
|
|
650
|
-
__decorateClass([
|
|
651
|
-
watch("collection")
|
|
652
|
-
], TerraTimeSeries.prototype, "handleCollectionUpdate", 1);
|
|
653
|
-
__decorateClass([
|
|
654
|
-
watch("variable")
|
|
655
|
-
], TerraTimeSeries.prototype, "handlevariableUpdate", 1);
|
|
656
|
-
__decorateClass([
|
|
657
|
-
watch("startDate")
|
|
658
|
-
], TerraTimeSeries.prototype, "handleStartDateUpdate", 1);
|
|
659
|
-
__decorateClass([
|
|
660
|
-
watch("endDate")
|
|
661
|
-
], TerraTimeSeries.prototype, "handleEndDateUpdate", 1);
|
|
662
|
-
__decorateClass([
|
|
663
|
-
watch("location")
|
|
664
|
-
], TerraTimeSeries.prototype, "handleLocationUpdate", 1);
|
|
665
|
-
__decorateClass([
|
|
666
|
-
watch("activeMenuItem")
|
|
667
|
-
], TerraTimeSeries.prototype, "handleFocus", 1);
|
|
668
|
-
|
|
669
|
-
export {
|
|
670
|
-
TerraTimeSeries
|
|
671
|
-
};
|