@nasa-terra/components 0.0.43 → 0.0.44
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.2BFX62WX.js +21 -0
- package/cdn/chunks/{chunk.CH45CXZY.js → chunk.2ZL3QN2E.js} +1 -1
- package/cdn/chunks/{chunk.L5Q6MO7Q.js → chunk.3I2TF7C4.js} +1 -1
- package/cdn/chunks/{chunk.XAQF3BDY.js → chunk.4DO5RUBU.js} +1 -1
- package/cdn/chunks/{chunk.SNULTXLY.js → chunk.4UYNOT7W.js} +1 -1
- package/{dist/chunks/chunk.CPI32ZAZ.js → cdn/chunks/chunk.4VENQJPO.js} +1 -1
- package/cdn/chunks/{chunk.XTDVJMOY.js → chunk.4YMYCX75.js} +1 -1
- package/cdn/chunks/{chunk.S4INEVCC.js → chunk.5BHGM65J.js} +10 -10
- package/cdn/chunks/{chunk.ZJAN35CA.js → chunk.5BZ4EDIL.js} +1 -1
- package/cdn/chunks/{chunk.2GGZHPMT.js → chunk.6EHGJWBN.js} +10 -10
- package/cdn/chunks/{chunk.MUAWDIKB.js → chunk.6NEMJOXS.js} +2 -2
- package/cdn/chunks/{chunk.FBCYHMRV.js → chunk.6UN7FSXA.js} +4 -4
- package/cdn/chunks/chunk.754XAIN7.js +39 -0
- package/{dist/chunks/chunk.LNGXE27U.js → cdn/chunks/chunk.7MU72IVZ.js} +1 -1
- package/cdn/chunks/{chunk.BKOLMPIY.js → chunk.ALXMBVVZ.js} +3 -3
- package/cdn/chunks/{chunk.4XFHUWXK.js → chunk.BW6HVRN4.js} +1 -1
- package/{dist/chunks/chunk.FLB4JM62.js → cdn/chunks/chunk.BXSJFGGP.js} +1 -1
- package/cdn/chunks/{chunk.OGI7F4SN.js → chunk.CN4PWRCO.js} +1 -1
- package/cdn/chunks/chunk.CXMIJOGY.js +11 -0
- package/cdn/chunks/chunk.E32UNFUD.js +187 -0
- package/{dist/chunks/chunk.V7QPBR74.js → cdn/chunks/chunk.EABPJM4K.js} +1 -1
- package/cdn/chunks/{chunk.3JPFQJXJ.js → chunk.EDHE5LYN.js} +9 -9
- package/cdn/chunks/{chunk.RGXPGRGO.js → chunk.EMBXVUIE.js} +1 -1
- package/cdn/chunks/{chunk.UJXGVWQA.js → chunk.EWAYMWRC.js} +1 -1
- package/cdn/chunks/{chunk.7HEVEWEJ.js → chunk.G3KUAHGF.js} +15 -15
- package/{dist/chunks/chunk.5SCGJTRA.js → cdn/chunks/chunk.GCAMRTXJ.js} +1 -1
- package/cdn/chunks/{chunk.RBDPBQSI.js → chunk.GL6JG3XV.js} +1 -1
- package/cdn/chunks/{chunk.WI5HA4EV.js → chunk.GYLB33OZ.js} +1 -1
- package/{dist/chunks/chunk.4CGQC6VG.js → cdn/chunks/chunk.GZHR4GPY.js} +1 -1
- package/cdn/chunks/{chunk.IAPB27AW.js → chunk.H23L4QKO.js} +6 -6
- package/cdn/chunks/{chunk.5TCPFCD2.js → chunk.HD45UIMB.js} +7 -7
- package/{dist/chunks/chunk.N2FQ2MRM.js → cdn/chunks/chunk.HWTTKAUR.js} +1 -1
- package/cdn/chunks/{chunk.ANZFZPPU.js → chunk.IL7RNVV6.js} +84 -27
- package/{dist/chunks/chunk.H7YVB7XB.js → cdn/chunks/chunk.JACHBLN5.js} +1 -1
- package/{dist/chunks/chunk.T6R6HWM7.js → cdn/chunks/chunk.JQETEJPO.js} +1 -1
- package/cdn/chunks/{chunk.TY7DVGTP.js → chunk.K23IQJ74.js} +5 -5
- package/cdn/chunks/{chunk.BPNFS4ED.js → chunk.K6GAF43H.js} +1 -1
- package/cdn/chunks/{chunk.JZBUILMZ.js → chunk.KIR56MAA.js} +50 -6
- package/cdn/chunks/{chunk.NL52F475.js → chunk.KK22KVB3.js} +1 -1
- package/cdn/chunks/{chunk.QUT2NHTH.js → chunk.KTWUFC2X.js} +1 -1
- package/cdn/chunks/{chunk.FROJF7FV.js → chunk.KXV2VFRZ.js} +2 -2
- package/cdn/chunks/{chunk.XGH62P7U.js → chunk.LIQO4PBF.js} +1 -1
- package/{dist/chunks/chunk.AFI6EDPJ.js → cdn/chunks/chunk.LJJH36WV.js} +1 -1
- package/cdn/chunks/{chunk.4T3FDB6X.js → chunk.MV5I3VKS.js} +1 -1
- package/cdn/chunks/{chunk.E6NS2XK6.js → chunk.OEZDKHKJ.js} +1 -1
- package/cdn/chunks/{chunk.XJVNZTEE.js → chunk.OW6RZGKY.js} +1 -1
- package/cdn/chunks/{chunk.GGDBLPBD.js → chunk.PKYRPEMV.js} +1 -1
- package/{dist/chunks/chunk.WSTFOCG3.js → cdn/chunks/chunk.QRIUCU7O.js} +1 -1
- package/{dist/chunks/chunk.YS5RGF3Z.js → cdn/chunks/chunk.QY4XLR3T.js} +1 -1
- package/cdn/chunks/{chunk.HNZE7Q25.js → chunk.RMO3MGXB.js} +1 -1
- package/cdn/chunks/{chunk.D2R6EOTB.js → chunk.SRPUN5BY.js} +1 -1
- package/{dist/chunks/chunk.QIA6DTTP.js → cdn/chunks/chunk.SUGFD7E6.js} +1 -1
- package/cdn/chunks/chunk.TIU73DG7.js +601 -0
- package/cdn/chunks/{chunk.Q6QGJGPK.js → chunk.UKALN6V5.js} +1 -1
- package/cdn/chunks/{chunk.ESMJ3XDS.js → chunk.USSYORDO.js} +1 -1
- package/cdn/chunks/{chunk.HY2OIJPI.js → chunk.UZCXIGUR.js} +1 -1
- package/cdn/chunks/{chunk.HPB6CXCO.js → chunk.VSQYJO47.js} +1 -1
- package/cdn/chunks/{chunk.D7BYLJCK.js → chunk.WMCV5DKE.js} +10 -10
- package/cdn/chunks/{chunk.ELAWVWEZ.js → chunk.XO3SOVHY.js} +2 -29
- package/cdn/chunks/chunk.XU3NXPIM.js +193 -0
- package/cdn/chunks/{chunk.T6H2MZZI.js → chunk.Y7I2RXN6.js} +1 -10
- package/cdn/chunks/{chunk.ZU6ADSVN.js → chunk.YCRGAL67.js} +1 -1
- package/cdn/chunks/chunk.YIABHSHN.js +505 -0
- package/cdn/chunks/{chunk.WQQBVCL5.js → chunk.ZHZZPGPK.js} +1 -1
- package/{dist/chunks/chunk.37HULH6M.js → cdn/chunks/chunk.ZXAVHSML.js} +1 -1
- package/cdn/chunks/{chunk.KAY2II66.js → chunk.ZY5TXYJA.js} +1 -1
- package/cdn/components/browse-variables/browse-variables.component.js +22 -21
- package/cdn/components/browse-variables/browse-variables.controller.js +4 -2
- package/cdn/components/browse-variables/browse-variables.js +23 -22
- package/cdn/components/browse-variables/browse-variables.types.d.ts +8 -0
- package/cdn/components/button/button.component.js +3 -3
- package/cdn/components/button/button.js +4 -4
- 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 +12 -12
- package/cdn/components/login/login.js +13 -13
- 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 +16 -39
- 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 +17 -40
- 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 +13 -13
- package/cdn/components/variable-combobox/variable-combobox.controller.js +3 -3
- package/cdn/components/variable-combobox/variable-combobox.js +14 -14
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +16 -14
- package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +4 -2
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +17 -15
- package/cdn/custom-elements.json +1644 -1603
- package/cdn/events/terra-time-series-data-change.d.ts +2 -2
- package/cdn/react/browse-variables/index.js +23 -22
- package/cdn/react/button/index.js +4 -4
- 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 +4 -3
- package/cdn/react/index.js +89 -85
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +13 -13
- 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 +17 -40
- package/cdn/react/variable-combobox/index.js +14 -14
- package/cdn/react/variable-keyword-search/index.js +17 -15
- package/cdn/terra-ui-components.d.ts +1 -0
- package/cdn/terra-ui-components.js +86 -81
- package/cdn/types/vue/index.d.ts +140 -121
- 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 +130 -89
- package/cdn/web-types.json +266 -219
- package/{cdn/chunks/chunk.GZEUJ2JS.js → dist/chunks/chunk.32RDASOD.js} +1 -1
- package/dist/chunks/{chunk.M6QZS4UJ.js → chunk.33MT36PS.js} +3 -3
- package/{cdn/chunks/chunk.RJCMYVMK.js → dist/chunks/chunk.352OXOVF.js} +1 -1
- package/dist/chunks/{chunk.4AOEB4BK.js → chunk.3B622XLR.js} +2 -2
- package/{cdn/chunks/chunk.YYL6BIZT.js → dist/chunks/chunk.52RLSCIQ.js} +1 -1
- package/dist/chunks/{chunk.E4LMDFCL.js → chunk.56MFLZCU.js} +1 -1
- package/dist/chunks/{chunk.O5QN7EQO.js → chunk.5BT6LJZ6.js} +1 -1
- package/{cdn/chunks/chunk.CANVOVRP.js → dist/chunks/chunk.5DABND4A.js} +1 -1
- package/{cdn/chunks/chunk.5HHHG4SV.js → dist/chunks/chunk.6MJHY2LT.js} +1 -1
- package/dist/chunks/chunk.7JBFBZ5C.js +27 -0
- package/dist/chunks/{chunk.MILUFBKY.js → chunk.7MYJSSR2.js} +1 -1
- package/dist/chunks/{chunk.WAIWLZ6Z.js → chunk.7OWQQEAP.js} +83 -26
- package/{cdn/chunks/chunk.YUAVRIVY.js → dist/chunks/chunk.A47KLFGG.js} +1 -1
- package/{cdn/chunks/chunk.LFJJNF7C.js → dist/chunks/chunk.A7Q6OO46.js} +1 -1
- package/dist/chunks/{chunk.X4377OEL.js → chunk.ABNZX7AU.js} +6 -6
- package/dist/chunks/{chunk.NL2R2NSO.js → chunk.AY7TGBWI.js} +2 -31
- package/dist/chunks/{chunk.6YWP3FBT.js → chunk.C6ZJJG4V.js} +1 -1
- package/{cdn/chunks/chunk.7BF65WWU.js → dist/chunks/chunk.CHZXTZZ6.js} +1 -1
- package/dist/chunks/{chunk.GHEMW42S.js → chunk.CKS4QWQE.js} +1 -1
- package/dist/chunks/{chunk.TWPOB6FJ.js → chunk.CTKWZYCZ.js} +1 -1
- package/dist/chunks/{chunk.ENYPV32S.js → chunk.DCR4GMG7.js} +6 -6
- package/dist/chunks/{chunk.RXZPXAB4.js → chunk.DIKJ5W4E.js} +50 -6
- package/dist/chunks/{chunk.OFKYTBNH.js → chunk.E2DOVBIM.js} +1 -1
- package/dist/chunks/{chunk.SZGKWCF3.js → chunk.EBTGXENT.js} +1 -1
- package/dist/chunks/{chunk.KD3R2URP.js → chunk.EDJCUWA4.js} +1 -1
- package/dist/chunks/{chunk.MZHCB5V5.js → chunk.ESECO74J.js} +1 -1
- package/dist/chunks/{chunk.YQPJQSUN.js → chunk.FJY7NGMR.js} +1 -1
- package/dist/chunks/{chunk.KOMSLHFU.js → chunk.HKMS63V6.js} +1 -1
- package/{cdn/chunks/chunk.BRFSUY5D.js → dist/chunks/chunk.IEQVLL66.js} +1 -1
- package/dist/chunks/{chunk.7P5EOY66.js → chunk.IQ2JFSLH.js} +4 -4
- package/dist/chunks/{chunk.5EHGVGXV.js → chunk.K2IRF2QI.js} +1 -10
- package/dist/chunks/{chunk.FAYNPOTP.js → chunk.KGKLK3DV.js} +1 -1
- package/dist/chunks/{chunk.QM5FOCP6.js → chunk.KKSEBQNV.js} +1 -1
- package/dist/chunks/chunk.LCOAWJU6.js +588 -0
- package/dist/chunks/{chunk.JFAR45NP.js → chunk.LF3ESETA.js} +1 -1
- package/dist/chunks/{chunk.JGX3UBBP.js → chunk.LFVSYBJ6.js} +1 -1
- package/dist/chunks/{chunk.5AOSWMDT.js → chunk.LFZXSVJS.js} +1 -1
- package/dist/chunks/{chunk.NDYEIMNI.js → chunk.LJOF4Z47.js} +7 -7
- package/dist/chunks/{chunk.OMJNBUCH.js → chunk.M4PEGCWF.js} +12 -12
- package/dist/chunks/{chunk.JTXEL73L.js → chunk.M7XZCYLE.js} +1 -1
- package/dist/chunks/{chunk.67I5KKLX.js → chunk.MHW3M233.js} +1 -1
- package/dist/chunks/{chunk.QDWCCDUY.js → chunk.MXH5Q7I5.js} +1 -1
- package/dist/chunks/{chunk.HJTPJ2RC.js → chunk.NJ5NIZJK.js} +1 -1
- package/dist/chunks/{chunk.4XAV4ODI.js → chunk.NR52OX3V.js} +1 -1
- package/dist/chunks/{chunk.UPG6O57L.js → chunk.OYJLDWJF.js} +1 -1
- package/dist/chunks/{chunk.AAWOHDFX.js → chunk.P442U2FF.js} +16 -4
- package/{cdn/chunks/chunk.3GLWKAG4.js → dist/chunks/chunk.PGUBFDZW.js} +1 -1
- package/{cdn/chunks/chunk.HWT242NM.js → dist/chunks/chunk.QK4DTBQI.js} +1 -1
- package/dist/chunks/{chunk.TCMWMNOB.js → chunk.QKGUST2I.js} +5 -5
- package/{cdn/chunks/chunk.TVULBZN7.js → dist/chunks/chunk.RC5E6NBB.js} +1 -1
- package/dist/chunks/chunk.ROVNWARW.js +21 -0
- package/{cdn/chunks/chunk.7SSKWW2H.js → dist/chunks/chunk.SL3QWNRH.js} +1 -1
- package/dist/chunks/chunk.TFI3UXXB.js +193 -0
- package/dist/chunks/chunk.UDS7BHM7.js +180 -0
- package/dist/chunks/{chunk.W2CS6IVI.js → chunk.UHD5HEEK.js} +1 -1
- package/{cdn/chunks/chunk.MNRRHWDX.js → dist/chunks/chunk.ULVN2SXP.js} +1 -1
- package/dist/chunks/chunk.UOP2MA5G.js +11 -0
- package/dist/chunks/{chunk.5LMWCV76.js → chunk.V3YFBP3T.js} +1 -1
- package/dist/chunks/{chunk.MS3DCXPP.js → chunk.V626KHDN.js} +1 -1
- package/dist/chunks/{chunk.H22DYLKA.js → chunk.VHF2RWLV.js} +5 -5
- package/dist/chunks/{chunk.QHNJQDE5.js → chunk.VYB75K7O.js} +1 -1
- package/dist/chunks/{chunk.E4PWWMRO.js → chunk.WRORP5RY.js} +1 -1
- package/dist/chunks/{chunk.XR6W57RO.js → chunk.XU3O2MRF.js} +1 -1
- package/dist/chunks/{chunk.ZLAVT4EU.js → chunk.YELLRFJE.js} +7 -7
- package/dist/chunks/chunk.ZIB2YERI.js +36 -0
- package/dist/chunks/{chunk.OOLLCVNR.js → chunk.ZWQU3GYF.js} +1 -1
- package/dist/components/browse-variables/browse-variables.component.js +18 -17
- package/dist/components/browse-variables/browse-variables.controller.js +4 -2
- package/dist/components/browse-variables/browse-variables.js +19 -18
- package/dist/components/browse-variables/browse-variables.types.d.ts +8 -0
- 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.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 +10 -10
- package/dist/components/login/login.js +11 -11
- 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 +13 -31
- 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 +14 -32
- 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 +10 -10
- package/dist/components/variable-combobox/variable-combobox.controller.js +2 -2
- package/dist/components/variable-combobox/variable-combobox.js +11 -11
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +13 -11
- package/dist/components/variable-keyword-search/variable-keyword-search.controller.js +3 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.js +14 -12
- package/dist/custom-elements.json +1644 -1603
- package/dist/events/terra-time-series-data-change.d.ts +2 -2
- package/dist/react/browse-variables/index.js +19 -18
- 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.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 +4 -3
- package/dist/react/index.js +83 -78
- 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/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 +14 -32
- package/dist/react/variable-combobox/index.js +11 -11
- package/dist/react/variable-keyword-search/index.js +14 -12
- package/dist/terra-ui-components.d.ts +1 -0
- package/dist/terra-ui-components.js +79 -73
- package/dist/{terra_ui_components-0.0.43-py3-none-any.whl → terra_ui_components-0.0.44-py3-none-any.whl} +0 -0
- package/dist/{terra_ui_components-0.0.43.tar.gz → terra_ui_components-0.0.44.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +140 -121
- 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 +130 -89
- package/dist/web-types.json +266 -219
- 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/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,1131 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TerraVariableCombobox
|
|
3
|
-
} from "./chunk.D7BYLJCK.js";
|
|
4
|
-
import {
|
|
5
|
-
spatial_picker_default
|
|
6
|
-
} from "./chunk.4XFHUWXK.js";
|
|
7
|
-
import {
|
|
8
|
-
TimeSeriesController,
|
|
9
|
-
calculateDataPoints
|
|
10
|
-
} from "./chunk.ANZFZPPU.js";
|
|
11
|
-
import {
|
|
12
|
-
time_series_styles_default
|
|
13
|
-
} from "./chunk.T6H2MZZI.js";
|
|
14
|
-
import {
|
|
15
|
-
TerraPlot,
|
|
16
|
-
require_plotly_min
|
|
17
|
-
} from "./chunk.UJXGVWQA.js";
|
|
18
|
-
import {
|
|
19
|
-
h
|
|
20
|
-
} from "./chunk.QB5SASDL.js";
|
|
21
|
-
import {
|
|
22
|
-
TerraDateRangeSlider
|
|
23
|
-
} from "./chunk.5TCPFCD2.js";
|
|
24
|
-
import {
|
|
25
|
-
TerraLoader
|
|
26
|
-
} from "./chunk.WI5HA4EV.js";
|
|
27
|
-
import {
|
|
28
|
-
TerraIcon
|
|
29
|
-
} from "./chunk.TY7DVGTP.js";
|
|
30
|
-
import {
|
|
31
|
-
TerraButton
|
|
32
|
-
} from "./chunk.FBCYHMRV.js";
|
|
33
|
-
import {
|
|
34
|
-
watch
|
|
35
|
-
} from "./chunk.6MMTW476.js";
|
|
36
|
-
import {
|
|
37
|
-
TerraElement,
|
|
38
|
-
component_styles_default
|
|
39
|
-
} from "./chunk.OGI7F4SN.js";
|
|
40
|
-
import {
|
|
41
|
-
e,
|
|
42
|
-
n,
|
|
43
|
-
r
|
|
44
|
-
} from "./chunk.2FFSUM6T.js";
|
|
45
|
-
import {
|
|
46
|
-
s
|
|
47
|
-
} from "./chunk.UGTZ22DI.js";
|
|
48
|
-
import {
|
|
49
|
-
T,
|
|
50
|
-
x
|
|
51
|
-
} from "./chunk.PQFHJHNO.js";
|
|
52
|
-
import {
|
|
53
|
-
__commonJS,
|
|
54
|
-
__decorateClass,
|
|
55
|
-
__privateAdd,
|
|
56
|
-
__privateGet,
|
|
57
|
-
__privateMethod,
|
|
58
|
-
__privateSet,
|
|
59
|
-
__toESM
|
|
60
|
-
} from "./chunk.6JHIJHTB.js";
|
|
61
|
-
|
|
62
|
-
// node_modules/dayjs/dayjs.min.js
|
|
63
|
-
var require_dayjs_min = __commonJS({
|
|
64
|
-
"node_modules/dayjs/dayjs.min.js"(exports, module) {
|
|
65
|
-
!function(t, e2) {
|
|
66
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = e2() : "function" == typeof define && define.amd ? define(e2) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e2();
|
|
67
|
-
}(exports, function() {
|
|
68
|
-
"use strict";
|
|
69
|
-
var t = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i = "second", s2 = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h2 = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
70
|
-
var e3 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
|
|
71
|
-
return "[" + t2 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
|
72
|
-
} }, m = function(t2, e3, n3) {
|
|
73
|
-
var r3 = String(t2);
|
|
74
|
-
return !r3 || r3.length >= e3 ? t2 : "" + Array(e3 + 1 - r3.length).join(n3) + t2;
|
|
75
|
-
}, v = { s: m, z: function(t2) {
|
|
76
|
-
var e3 = -t2.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i2 = n3 % 60;
|
|
77
|
-
return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
|
|
78
|
-
}, m: function t2(e3, n3) {
|
|
79
|
-
if (e3.date() < n3.date())
|
|
80
|
-
return -t2(n3, e3);
|
|
81
|
-
var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i2 = e3.clone().add(r3, c), s3 = n3 - i2 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c);
|
|
82
|
-
return +(-(r3 + (n3 - i2) / (s3 ? i2 - u2 : u2 - i2)) || 0);
|
|
83
|
-
}, a: function(t2) {
|
|
84
|
-
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
85
|
-
}, p: function(t2) {
|
|
86
|
-
return { M: c, y: h2, w: o, d: a, D: d, h: u, m: s2, s: i, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
87
|
-
}, u: function(t2) {
|
|
88
|
-
return void 0 === t2;
|
|
89
|
-
} }, g = "en", D = {};
|
|
90
|
-
D[g] = M;
|
|
91
|
-
var p = "$isDayjsObject", S = function(t2) {
|
|
92
|
-
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
93
|
-
}, w = function t2(e3, n3, r3) {
|
|
94
|
-
var i2;
|
|
95
|
-
if (!e3)
|
|
96
|
-
return g;
|
|
97
|
-
if ("string" == typeof e3) {
|
|
98
|
-
var s3 = e3.toLowerCase();
|
|
99
|
-
D[s3] && (i2 = s3), n3 && (D[s3] = n3, i2 = s3);
|
|
100
|
-
var u2 = e3.split("-");
|
|
101
|
-
if (!i2 && u2.length > 1)
|
|
102
|
-
return t2(u2[0]);
|
|
103
|
-
} else {
|
|
104
|
-
var a2 = e3.name;
|
|
105
|
-
D[a2] = e3, i2 = a2;
|
|
106
|
-
}
|
|
107
|
-
return !r3 && i2 && (g = i2), i2 || !r3 && g;
|
|
108
|
-
}, O = function(t2, e3) {
|
|
109
|
-
if (S(t2))
|
|
110
|
-
return t2.clone();
|
|
111
|
-
var n3 = "object" == typeof e3 ? e3 : {};
|
|
112
|
-
return n3.date = t2, n3.args = arguments, new _(n3);
|
|
113
|
-
}, b = v;
|
|
114
|
-
b.l = w, b.i = S, b.w = function(t2, e3) {
|
|
115
|
-
return O(t2, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
|
116
|
-
};
|
|
117
|
-
var _ = function() {
|
|
118
|
-
function M2(t2) {
|
|
119
|
-
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
120
|
-
}
|
|
121
|
-
var m2 = M2.prototype;
|
|
122
|
-
return m2.parse = function(t2) {
|
|
123
|
-
this.$d = function(t3) {
|
|
124
|
-
var e3 = t3.date, n3 = t3.utc;
|
|
125
|
-
if (null === e3)
|
|
126
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
127
|
-
if (b.u(e3))
|
|
128
|
-
return /* @__PURE__ */ new Date();
|
|
129
|
-
if (e3 instanceof Date)
|
|
130
|
-
return new Date(e3);
|
|
131
|
-
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
|
132
|
-
var r3 = e3.match($);
|
|
133
|
-
if (r3) {
|
|
134
|
-
var i2 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
135
|
-
return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return new Date(e3);
|
|
139
|
-
}(t2), this.init();
|
|
140
|
-
}, m2.init = function() {
|
|
141
|
-
var t2 = this.$d;
|
|
142
|
-
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
143
|
-
}, m2.$utils = function() {
|
|
144
|
-
return b;
|
|
145
|
-
}, m2.isValid = function() {
|
|
146
|
-
return !(this.$d.toString() === l);
|
|
147
|
-
}, m2.isSame = function(t2, e3) {
|
|
148
|
-
var n3 = O(t2);
|
|
149
|
-
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
|
150
|
-
}, m2.isAfter = function(t2, e3) {
|
|
151
|
-
return O(t2) < this.startOf(e3);
|
|
152
|
-
}, m2.isBefore = function(t2, e3) {
|
|
153
|
-
return this.endOf(e3) < O(t2);
|
|
154
|
-
}, m2.$g = function(t2, e3, n3) {
|
|
155
|
-
return b.u(t2) ? this[e3] : this.set(n3, t2);
|
|
156
|
-
}, m2.unix = function() {
|
|
157
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
158
|
-
}, m2.valueOf = function() {
|
|
159
|
-
return this.$d.getTime();
|
|
160
|
-
}, m2.startOf = function(t2, e3) {
|
|
161
|
-
var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t2), l2 = function(t3, e4) {
|
|
162
|
-
var i2 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t3) : new Date(n3.$y, e4, t3), n3);
|
|
163
|
-
return r3 ? i2 : i2.endOf(a);
|
|
164
|
-
}, $2 = function(t3, e4) {
|
|
165
|
-
return b.w(n3.toDate()[t3].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
|
166
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
167
|
-
switch (f2) {
|
|
168
|
-
case h2:
|
|
169
|
-
return r3 ? l2(1, 0) : l2(31, 11);
|
|
170
|
-
case c:
|
|
171
|
-
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
172
|
-
case o:
|
|
173
|
-
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
174
|
-
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
175
|
-
case a:
|
|
176
|
-
case d:
|
|
177
|
-
return $2(v2 + "Hours", 0);
|
|
178
|
-
case u:
|
|
179
|
-
return $2(v2 + "Minutes", 1);
|
|
180
|
-
case s2:
|
|
181
|
-
return $2(v2 + "Seconds", 2);
|
|
182
|
-
case i:
|
|
183
|
-
return $2(v2 + "Milliseconds", 3);
|
|
184
|
-
default:
|
|
185
|
-
return this.clone();
|
|
186
|
-
}
|
|
187
|
-
}, m2.endOf = function(t2) {
|
|
188
|
-
return this.startOf(t2, false);
|
|
189
|
-
}, m2.$set = function(t2, e3) {
|
|
190
|
-
var n3, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f2 + "Date", n3[d] = f2 + "Date", n3[c] = f2 + "Month", n3[h2] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s2] = f2 + "Minutes", n3[i] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
|
|
191
|
-
if (o2 === c || o2 === h2) {
|
|
192
|
-
var y2 = this.clone().set(d, 1);
|
|
193
|
-
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
194
|
-
} else
|
|
195
|
-
l2 && this.$d[l2]($2);
|
|
196
|
-
return this.init(), this;
|
|
197
|
-
}, m2.set = function(t2, e3) {
|
|
198
|
-
return this.clone().$set(t2, e3);
|
|
199
|
-
}, m2.get = function(t2) {
|
|
200
|
-
return this[b.p(t2)]();
|
|
201
|
-
}, m2.add = function(r3, f2) {
|
|
202
|
-
var d2, l2 = this;
|
|
203
|
-
r3 = Number(r3);
|
|
204
|
-
var $2 = b.p(f2), y2 = function(t2) {
|
|
205
|
-
var e3 = O(l2);
|
|
206
|
-
return b.w(e3.date(e3.date() + Math.round(t2 * r3)), l2);
|
|
207
|
-
};
|
|
208
|
-
if ($2 === c)
|
|
209
|
-
return this.set(c, this.$M + r3);
|
|
210
|
-
if ($2 === h2)
|
|
211
|
-
return this.set(h2, this.$y + r3);
|
|
212
|
-
if ($2 === a)
|
|
213
|
-
return y2(1);
|
|
214
|
-
if ($2 === o)
|
|
215
|
-
return y2(7);
|
|
216
|
-
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
217
|
-
return b.w(m3, this);
|
|
218
|
-
}, m2.subtract = function(t2, e3) {
|
|
219
|
-
return this.add(-1 * t2, e3);
|
|
220
|
-
}, m2.format = function(t2) {
|
|
221
|
-
var e3 = this, n3 = this.$locale();
|
|
222
|
-
if (!this.isValid())
|
|
223
|
-
return n3.invalidDate || l;
|
|
224
|
-
var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s3 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n3.weekdays, c2 = n3.months, f2 = n3.meridiem, h3 = function(t3, n4, i3, s4) {
|
|
225
|
-
return t3 && (t3[n4] || t3(e3, r3)) || i3[n4].slice(0, s4);
|
|
226
|
-
}, d2 = function(t3) {
|
|
227
|
-
return b.s(s3 % 12 || 12, t3, "0");
|
|
228
|
-
}, $2 = f2 || function(t3, e4, n4) {
|
|
229
|
-
var r4 = t3 < 12 ? "AM" : "PM";
|
|
230
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
231
|
-
};
|
|
232
|
-
return r3.replace(y, function(t3, r4) {
|
|
233
|
-
return r4 || function(t4) {
|
|
234
|
-
switch (t4) {
|
|
235
|
-
case "YY":
|
|
236
|
-
return String(e3.$y).slice(-2);
|
|
237
|
-
case "YYYY":
|
|
238
|
-
return b.s(e3.$y, 4, "0");
|
|
239
|
-
case "M":
|
|
240
|
-
return a2 + 1;
|
|
241
|
-
case "MM":
|
|
242
|
-
return b.s(a2 + 1, 2, "0");
|
|
243
|
-
case "MMM":
|
|
244
|
-
return h3(n3.monthsShort, a2, c2, 3);
|
|
245
|
-
case "MMMM":
|
|
246
|
-
return h3(c2, a2);
|
|
247
|
-
case "D":
|
|
248
|
-
return e3.$D;
|
|
249
|
-
case "DD":
|
|
250
|
-
return b.s(e3.$D, 2, "0");
|
|
251
|
-
case "d":
|
|
252
|
-
return String(e3.$W);
|
|
253
|
-
case "dd":
|
|
254
|
-
return h3(n3.weekdaysMin, e3.$W, o2, 2);
|
|
255
|
-
case "ddd":
|
|
256
|
-
return h3(n3.weekdaysShort, e3.$W, o2, 3);
|
|
257
|
-
case "dddd":
|
|
258
|
-
return o2[e3.$W];
|
|
259
|
-
case "H":
|
|
260
|
-
return String(s3);
|
|
261
|
-
case "HH":
|
|
262
|
-
return b.s(s3, 2, "0");
|
|
263
|
-
case "h":
|
|
264
|
-
return d2(1);
|
|
265
|
-
case "hh":
|
|
266
|
-
return d2(2);
|
|
267
|
-
case "a":
|
|
268
|
-
return $2(s3, u2, true);
|
|
269
|
-
case "A":
|
|
270
|
-
return $2(s3, u2, false);
|
|
271
|
-
case "m":
|
|
272
|
-
return String(u2);
|
|
273
|
-
case "mm":
|
|
274
|
-
return b.s(u2, 2, "0");
|
|
275
|
-
case "s":
|
|
276
|
-
return String(e3.$s);
|
|
277
|
-
case "ss":
|
|
278
|
-
return b.s(e3.$s, 2, "0");
|
|
279
|
-
case "SSS":
|
|
280
|
-
return b.s(e3.$ms, 3, "0");
|
|
281
|
-
case "Z":
|
|
282
|
-
return i2;
|
|
283
|
-
}
|
|
284
|
-
return null;
|
|
285
|
-
}(t3) || i2.replace(":", "");
|
|
286
|
-
});
|
|
287
|
-
}, m2.utcOffset = function() {
|
|
288
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
289
|
-
}, m2.diff = function(r3, d2, l2) {
|
|
290
|
-
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
|
|
291
|
-
return b.m(y2, m3);
|
|
292
|
-
};
|
|
293
|
-
switch (M3) {
|
|
294
|
-
case h2:
|
|
295
|
-
$2 = D2() / 12;
|
|
296
|
-
break;
|
|
297
|
-
case c:
|
|
298
|
-
$2 = D2();
|
|
299
|
-
break;
|
|
300
|
-
case f:
|
|
301
|
-
$2 = D2() / 3;
|
|
302
|
-
break;
|
|
303
|
-
case o:
|
|
304
|
-
$2 = (g2 - v2) / 6048e5;
|
|
305
|
-
break;
|
|
306
|
-
case a:
|
|
307
|
-
$2 = (g2 - v2) / 864e5;
|
|
308
|
-
break;
|
|
309
|
-
case u:
|
|
310
|
-
$2 = g2 / n2;
|
|
311
|
-
break;
|
|
312
|
-
case s2:
|
|
313
|
-
$2 = g2 / e2;
|
|
314
|
-
break;
|
|
315
|
-
case i:
|
|
316
|
-
$2 = g2 / t;
|
|
317
|
-
break;
|
|
318
|
-
default:
|
|
319
|
-
$2 = g2;
|
|
320
|
-
}
|
|
321
|
-
return l2 ? $2 : b.a($2);
|
|
322
|
-
}, m2.daysInMonth = function() {
|
|
323
|
-
return this.endOf(c).$D;
|
|
324
|
-
}, m2.$locale = function() {
|
|
325
|
-
return D[this.$L];
|
|
326
|
-
}, m2.locale = function(t2, e3) {
|
|
327
|
-
if (!t2)
|
|
328
|
-
return this.$L;
|
|
329
|
-
var n3 = this.clone(), r3 = w(t2, e3, true);
|
|
330
|
-
return r3 && (n3.$L = r3), n3;
|
|
331
|
-
}, m2.clone = function() {
|
|
332
|
-
return b.w(this.$d, this);
|
|
333
|
-
}, m2.toDate = function() {
|
|
334
|
-
return new Date(this.valueOf());
|
|
335
|
-
}, m2.toJSON = function() {
|
|
336
|
-
return this.isValid() ? this.toISOString() : null;
|
|
337
|
-
}, m2.toISOString = function() {
|
|
338
|
-
return this.$d.toISOString();
|
|
339
|
-
}, m2.toString = function() {
|
|
340
|
-
return this.$d.toUTCString();
|
|
341
|
-
}, M2;
|
|
342
|
-
}(), k = _.prototype;
|
|
343
|
-
return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s2], ["$H", u], ["$W", a], ["$M", c], ["$y", h2], ["$D", d]].forEach(function(t2) {
|
|
344
|
-
k[t2[1]] = function(e3) {
|
|
345
|
-
return this.$g(e3, t2[0], t2[1]);
|
|
346
|
-
};
|
|
347
|
-
}), O.extend = function(t2, e3) {
|
|
348
|
-
return t2.$i || (t2(e3, _, O), t2.$i = true), O;
|
|
349
|
-
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
350
|
-
return O(1e3 * t2);
|
|
351
|
-
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
});
|
|
355
|
-
|
|
356
|
-
// node_modules/dayjs/plugin/timezone.js
|
|
357
|
-
var require_timezone = __commonJS({
|
|
358
|
-
"node_modules/dayjs/plugin/timezone.js"(exports, module) {
|
|
359
|
-
!function(t, e2) {
|
|
360
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = e2() : "function" == typeof define && define.amd ? define(e2) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_timezone = e2();
|
|
361
|
-
}(exports, function() {
|
|
362
|
-
"use strict";
|
|
363
|
-
var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e2 = {};
|
|
364
|
-
return function(n2, i, o) {
|
|
365
|
-
var r2, a = function(t2, n3, i2) {
|
|
366
|
-
void 0 === i2 && (i2 = {});
|
|
367
|
-
var o2 = new Date(t2), r3 = function(t3, n4) {
|
|
368
|
-
void 0 === n4 && (n4 = {});
|
|
369
|
-
var i3 = n4.timeZoneName || "short", o3 = t3 + "|" + i3, r4 = e2[o3];
|
|
370
|
-
return r4 || (r4 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e2[o3] = r4), r4;
|
|
371
|
-
}(n3, i2);
|
|
372
|
-
return r3.formatToParts(o2);
|
|
373
|
-
}, u = function(e3, n3) {
|
|
374
|
-
for (var i2 = a(e3, n3), r3 = [], u2 = 0; u2 < i2.length; u2 += 1) {
|
|
375
|
-
var f2 = i2[u2], s3 = f2.type, m = f2.value, c = t[s3];
|
|
376
|
-
c >= 0 && (r3[c] = parseInt(m, 10));
|
|
377
|
-
}
|
|
378
|
-
var d = r3[3], l = 24 === d ? 0 : d, h2 = r3[0] + "-" + r3[1] + "-" + r3[2] + " " + l + ":" + r3[4] + ":" + r3[5] + ":000", v = +e3;
|
|
379
|
-
return (o.utc(h2).valueOf() - (v -= v % 1e3)) / 6e4;
|
|
380
|
-
}, f = i.prototype;
|
|
381
|
-
f.tz = function(t2, e3) {
|
|
382
|
-
void 0 === t2 && (t2 = r2);
|
|
383
|
-
var n3 = this.utcOffset(), i2 = this.toDate(), a2 = i2.toLocaleString("en-US", { timeZone: t2 }), u2 = Math.round((i2 - new Date(a2)) / 1e3 / 60), f2 = o(a2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(i2.getTimezoneOffset() / 15) - u2, true);
|
|
384
|
-
if (e3) {
|
|
385
|
-
var s3 = f2.utcOffset();
|
|
386
|
-
f2 = f2.add(n3 - s3, "minute");
|
|
387
|
-
}
|
|
388
|
-
return f2.$x.$timezone = t2, f2;
|
|
389
|
-
}, f.offsetName = function(t2) {
|
|
390
|
-
var e3 = this.$x.$timezone || o.tz.guess(), n3 = a(this.valueOf(), e3, { timeZoneName: t2 }).find(function(t3) {
|
|
391
|
-
return "timezonename" === t3.type.toLowerCase();
|
|
392
|
-
});
|
|
393
|
-
return n3 && n3.value;
|
|
394
|
-
};
|
|
395
|
-
var s2 = f.startOf;
|
|
396
|
-
f.startOf = function(t2, e3) {
|
|
397
|
-
if (!this.$x || !this.$x.$timezone)
|
|
398
|
-
return s2.call(this, t2, e3);
|
|
399
|
-
var n3 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
400
|
-
return s2.call(n3, t2, e3).tz(this.$x.$timezone, true);
|
|
401
|
-
}, o.tz = function(t2, e3, n3) {
|
|
402
|
-
var i2 = n3 && e3, a2 = n3 || e3 || r2, f2 = u(+o(), a2);
|
|
403
|
-
if ("string" != typeof t2)
|
|
404
|
-
return o(t2).tz(a2);
|
|
405
|
-
var s3 = function(t3, e4, n4) {
|
|
406
|
-
var i3 = t3 - 60 * e4 * 1e3, o2 = u(i3, n4);
|
|
407
|
-
if (e4 === o2)
|
|
408
|
-
return [i3, e4];
|
|
409
|
-
var r3 = u(i3 -= 60 * (o2 - e4) * 1e3, n4);
|
|
410
|
-
return o2 === r3 ? [i3, o2] : [t3 - 60 * Math.min(o2, r3) * 1e3, Math.max(o2, r3)];
|
|
411
|
-
}(o.utc(t2, i2).valueOf(), f2, a2), m = s3[0], c = s3[1], d = o(m).utcOffset(c);
|
|
412
|
-
return d.$x.$timezone = a2, d;
|
|
413
|
-
}, o.tz.guess = function() {
|
|
414
|
-
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
415
|
-
}, o.tz.setDefault = function(t2) {
|
|
416
|
-
r2 = t2;
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
});
|
|
422
|
-
|
|
423
|
-
// node_modules/dayjs/plugin/utc.js
|
|
424
|
-
var require_utc = __commonJS({
|
|
425
|
-
"node_modules/dayjs/plugin/utc.js"(exports, module) {
|
|
426
|
-
!function(t, i) {
|
|
427
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_utc = i();
|
|
428
|
-
}(exports, function() {
|
|
429
|
-
"use strict";
|
|
430
|
-
var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e2 = /([+-]|\d\d)/g;
|
|
431
|
-
return function(s2, f, n2) {
|
|
432
|
-
var u = f.prototype;
|
|
433
|
-
n2.utc = function(t2) {
|
|
434
|
-
var i2 = { date: t2, utc: true, args: arguments };
|
|
435
|
-
return new f(i2);
|
|
436
|
-
}, u.utc = function(i2) {
|
|
437
|
-
var e3 = n2(this.toDate(), { locale: this.$L, utc: true });
|
|
438
|
-
return i2 ? e3.add(this.utcOffset(), t) : e3;
|
|
439
|
-
}, u.local = function() {
|
|
440
|
-
return n2(this.toDate(), { locale: this.$L, utc: false });
|
|
441
|
-
};
|
|
442
|
-
var o = u.parse;
|
|
443
|
-
u.parse = function(t2) {
|
|
444
|
-
t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
|
|
445
|
-
};
|
|
446
|
-
var r2 = u.init;
|
|
447
|
-
u.init = function() {
|
|
448
|
-
if (this.$u) {
|
|
449
|
-
var t2 = this.$d;
|
|
450
|
-
this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
|
|
451
|
-
} else
|
|
452
|
-
r2.call(this);
|
|
453
|
-
};
|
|
454
|
-
var a = u.utcOffset;
|
|
455
|
-
u.utcOffset = function(s3, f2) {
|
|
456
|
-
var n3 = this.$utils().u;
|
|
457
|
-
if (n3(s3))
|
|
458
|
-
return this.$u ? 0 : n3(this.$offset) ? a.call(this) : this.$offset;
|
|
459
|
-
if ("string" == typeof s3 && (s3 = function(t2) {
|
|
460
|
-
void 0 === t2 && (t2 = "");
|
|
461
|
-
var s4 = t2.match(i);
|
|
462
|
-
if (!s4)
|
|
463
|
-
return null;
|
|
464
|
-
var f3 = ("" + s4[0]).match(e2) || ["-", 0, 0], n4 = f3[0], u3 = 60 * +f3[1] + +f3[2];
|
|
465
|
-
return 0 === u3 ? 0 : "+" === n4 ? u3 : -u3;
|
|
466
|
-
}(s3), null === s3))
|
|
467
|
-
return this;
|
|
468
|
-
var u2 = Math.abs(s3) <= 16 ? 60 * s3 : s3, o2 = this;
|
|
469
|
-
if (f2)
|
|
470
|
-
return o2.$offset = u2, o2.$u = 0 === s3, o2;
|
|
471
|
-
if (0 !== s3) {
|
|
472
|
-
var r3 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
473
|
-
(o2 = this.local().add(u2 + r3, t)).$offset = u2, o2.$x.$localOffset = r3;
|
|
474
|
-
} else
|
|
475
|
-
o2 = this.utc();
|
|
476
|
-
return o2;
|
|
477
|
-
};
|
|
478
|
-
var h2 = u.format;
|
|
479
|
-
u.format = function(t2) {
|
|
480
|
-
var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
481
|
-
return h2.call(this, i2);
|
|
482
|
-
}, u.valueOf = function() {
|
|
483
|
-
var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
484
|
-
return this.$d.valueOf() - 6e4 * t2;
|
|
485
|
-
}, u.isUTC = function() {
|
|
486
|
-
return !!this.$u;
|
|
487
|
-
}, u.toISOString = function() {
|
|
488
|
-
return this.toDate().toISOString();
|
|
489
|
-
}, u.toString = function() {
|
|
490
|
-
return this.toDate().toUTCString();
|
|
491
|
-
};
|
|
492
|
-
var l = u.toDate;
|
|
493
|
-
u.toDate = function(t2) {
|
|
494
|
-
return "s" === t2 && this.$offset ? n2(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
|
|
495
|
-
};
|
|
496
|
-
var c = u.diff;
|
|
497
|
-
u.diff = function(t2, i2, e3) {
|
|
498
|
-
if (t2 && this.$u === t2.$u)
|
|
499
|
-
return c.call(this, t2, i2, e3);
|
|
500
|
-
var s3 = this.local(), f2 = n2(t2).local();
|
|
501
|
-
return c.call(s3, f2, i2, e3);
|
|
502
|
-
};
|
|
503
|
-
};
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
});
|
|
507
|
-
|
|
508
|
-
// src/components/time-series/time-series.component.ts
|
|
509
|
-
var import_dayjs = __toESM(require_dayjs_min(), 1);
|
|
510
|
-
var import_timezone = __toESM(require_timezone(), 1);
|
|
511
|
-
var import_utc = __toESM(require_utc(), 1);
|
|
512
|
-
var import_plotly = __toESM(require_plotly_min(), 1);
|
|
513
|
-
var NUM_DATAPOINTS_TO_WARN_USER = 5e4;
|
|
514
|
-
import_dayjs.default.extend(import_utc.default);
|
|
515
|
-
import_dayjs.default.extend(import_timezone.default);
|
|
516
|
-
import_dayjs.default.tz.setDefault("Etc/GMT");
|
|
517
|
-
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;
|
|
518
|
-
var TerraTimeSeries = class extends TerraElement {
|
|
519
|
-
constructor() {
|
|
520
|
-
super(...arguments);
|
|
521
|
-
/**
|
|
522
|
-
* Checks if the current date range will exceed data point limits
|
|
523
|
-
* eturns true if it's safe to proceed, false if confirmation is needed
|
|
524
|
-
*/
|
|
525
|
-
__privateAdd(this, _checkDataPointLimits);
|
|
526
|
-
__privateAdd(this, _confirmDataPointWarning);
|
|
527
|
-
__privateAdd(this, _cancelDataPointWarning);
|
|
528
|
-
__privateAdd(this, _adaptPropertyToController);
|
|
529
|
-
/**
|
|
530
|
-
* The Collection Beginning DateTime changes when a new collection is selected.
|
|
531
|
-
* We want to auto-select a reasonable slice of time and send a request to the data API, the
|
|
532
|
-
* same as if the user moved the time slider.
|
|
533
|
-
* However, if the component has the startDate or endDate set externally, don't override that;
|
|
534
|
-
* this is an init-only action.
|
|
535
|
-
*/
|
|
536
|
-
__privateAdd(this, _maybeSliceTimeForStartEnd);
|
|
537
|
-
__privateAdd(this, _handleVariableChange);
|
|
538
|
-
__privateAdd(this, _handleMapChange);
|
|
539
|
-
/**
|
|
540
|
-
* anytime the date range slider changes, update the start and end date
|
|
541
|
-
*/
|
|
542
|
-
__privateAdd(this, _handleDateRangeSliderChangeEvent);
|
|
543
|
-
/**
|
|
544
|
-
* aborts the underlying data loading task, which cancels the network request
|
|
545
|
-
*/
|
|
546
|
-
__privateAdd(this, _abortDataLoad);
|
|
547
|
-
/**
|
|
548
|
-
* TODO:
|
|
549
|
-
* [x] re-enable downloads here
|
|
550
|
-
* [x] get live data from Giovanni
|
|
551
|
-
* [x] display required information in information menuitem
|
|
552
|
-
* [x] ask about adding help links
|
|
553
|
-
* [ ] see what can be simplified from downloadCSV
|
|
554
|
-
*/
|
|
555
|
-
__privateAdd(this, _downloadCSV);
|
|
556
|
-
__privateAdd(this, _convertToCSV);
|
|
557
|
-
__privateAdd(this, _downloadPNG);
|
|
558
|
-
__privateAdd(this, _handleActiveMenuItem);
|
|
559
|
-
__privateAdd(this, _timeSeriesController, void 0);
|
|
560
|
-
this.showDataPointWarning = false;
|
|
561
|
-
this.estimatedDataPoints = 0;
|
|
562
|
-
this.activeMenuItem = null;
|
|
563
|
-
}
|
|
564
|
-
handleCollectionUpdate(_oldValue, newValue) {
|
|
565
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "collection", newValue);
|
|
566
|
-
}
|
|
567
|
-
handlevariableUpdate(_oldValue, newValue) {
|
|
568
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "variable", newValue);
|
|
569
|
-
}
|
|
570
|
-
handleStartDateUpdate(_oldValue, newValue) {
|
|
571
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "startDate", newValue);
|
|
572
|
-
}
|
|
573
|
-
handleEndDateUpdate(_oldValue, newValue) {
|
|
574
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "endDate", newValue);
|
|
575
|
-
}
|
|
576
|
-
handleLocationUpdate(_oldValue, newValue) {
|
|
577
|
-
__privateMethod(this, _adaptPropertyToController, adaptPropertyToController_fn).call(this, "location", newValue);
|
|
578
|
-
}
|
|
579
|
-
handleFocus(_oldValue, newValue) {
|
|
580
|
-
if (newValue === null) {
|
|
581
|
-
return;
|
|
582
|
-
}
|
|
583
|
-
this.menu.focus();
|
|
584
|
-
}
|
|
585
|
-
connectedCallback() {
|
|
586
|
-
super.connectedCallback();
|
|
587
|
-
__privateSet(this, _timeSeriesController, new TimeSeriesController(this, this.bearerToken));
|
|
588
|
-
}
|
|
589
|
-
render() {
|
|
590
|
-
var _a, _b;
|
|
591
|
-
return x`
|
|
592
|
-
<terra-variable-combobox
|
|
593
|
-
exportparts="base:variable-combobox__base, combobox:variable-combobox__combobox, button:variable-combobox__button, listbox:variable-combobox__listbox"
|
|
594
|
-
.value=${this.collection && this.variable ? `${this.collection}_${this.variable}` : T}
|
|
595
|
-
.bearerToken=${(_a = this.bearerToken) != null ? _a : null}
|
|
596
|
-
.useTags=${true}
|
|
597
|
-
@terra-combobox-change="${__privateMethod(this, _handleVariableChange, handleVariableChange_fn)}"
|
|
598
|
-
></terra-variable-combobox>
|
|
599
|
-
|
|
600
|
-
<terra-spatial-picker
|
|
601
|
-
initial-value=${this.location}
|
|
602
|
-
exportparts="map:spatial-picker__map, leaflet-bbox:spatial-picker__leaflet-bbox, leaflet-point:spatial-picker__leaflet-point"
|
|
603
|
-
label="Select Point"
|
|
604
|
-
@terra-map-change=${__privateMethod(this, _handleMapChange, handleMapChange_fn)}
|
|
605
|
-
></terra-spatial-picker>
|
|
606
|
-
|
|
607
|
-
<div class="plot-container">
|
|
608
|
-
${h(
|
|
609
|
-
this.variable ? x`
|
|
610
|
-
<header>
|
|
611
|
-
<h2 class="title">
|
|
612
|
-
${this.variableLongName}
|
|
613
|
-
</h2>
|
|
614
|
-
|
|
615
|
-
<div class="toggles">
|
|
616
|
-
<terra-button
|
|
617
|
-
circle
|
|
618
|
-
outline
|
|
619
|
-
aria-expanded=${this.activeMenuItem === "information"}
|
|
620
|
-
aria-controls="menu"
|
|
621
|
-
aria-haspopup="true"
|
|
622
|
-
class="toggle"
|
|
623
|
-
@click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
|
|
624
|
-
data-menu-name="information"
|
|
625
|
-
>
|
|
626
|
-
<span class="sr-only">Information for ${this.variableLongName}</span>
|
|
627
|
-
|
|
628
|
-
<terra-icon
|
|
629
|
-
name="outline-information-circle"
|
|
630
|
-
library="heroicons"
|
|
631
|
-
font-size="1.5em"
|
|
632
|
-
></terra-icon>
|
|
633
|
-
</terra-button>
|
|
634
|
-
|
|
635
|
-
<terra-button
|
|
636
|
-
circle
|
|
637
|
-
outline
|
|
638
|
-
aria-expanded=${this.activeMenuItem === "download"}
|
|
639
|
-
aria-controls="menu"
|
|
640
|
-
aria-haspopup="true"
|
|
641
|
-
class="toggle"
|
|
642
|
-
@click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
|
|
643
|
-
data-menu-name="download"
|
|
644
|
-
>
|
|
645
|
-
<span class="sr-only">Download options for ${this.variableLongName}</span>
|
|
646
|
-
|
|
647
|
-
<terra-icon
|
|
648
|
-
name="outline-arrow-down-tray"
|
|
649
|
-
library="heroicons"
|
|
650
|
-
font-size="1.5em"
|
|
651
|
-
></terra-icon>
|
|
652
|
-
</terra-button>
|
|
653
|
-
|
|
654
|
-
<terra-button
|
|
655
|
-
circle
|
|
656
|
-
outline
|
|
657
|
-
aria-expanded=${this.activeMenuItem === "help"}
|
|
658
|
-
aria-controls="menu"
|
|
659
|
-
aria-haspopup="true"
|
|
660
|
-
class="toggle"
|
|
661
|
-
@click=${__privateMethod(this, _handleActiveMenuItem, handleActiveMenuItem_fn)}
|
|
662
|
-
data-menu-name="help"
|
|
663
|
-
>
|
|
664
|
-
<span class="sr-only">Help link for ${this.variableLongName}</span>
|
|
665
|
-
|
|
666
|
-
<terra-icon
|
|
667
|
-
name="outline-question-mark-circle"
|
|
668
|
-
library="heroicons"
|
|
669
|
-
font-size="1.5em"
|
|
670
|
-
></terra-icon>
|
|
671
|
-
</terra-button>
|
|
672
|
-
</div>
|
|
673
|
-
|
|
674
|
-
<menu
|
|
675
|
-
role="menu"
|
|
676
|
-
id="menu"
|
|
677
|
-
data-expanded=${this.activeMenuItem !== null}
|
|
678
|
-
tabindex="-1"
|
|
679
|
-
>
|
|
680
|
-
<li
|
|
681
|
-
role="menuitem"
|
|
682
|
-
?hidden=${this.activeMenuItem !== "information"}
|
|
683
|
-
>
|
|
684
|
-
<h3 class="sr-only">Information</h3>
|
|
685
|
-
|
|
686
|
-
<dl>
|
|
687
|
-
<dt>Variable Longname</dt>
|
|
688
|
-
<dd>${this.variableLongName}</dd>
|
|
689
|
-
|
|
690
|
-
<dt>Variable Shortname</dt>
|
|
691
|
-
<dd>${this.variable}</dd>
|
|
692
|
-
|
|
693
|
-
<dt>Units</dt>
|
|
694
|
-
<dd>
|
|
695
|
-
<code>${this.units}</code>
|
|
696
|
-
</dd>
|
|
697
|
-
|
|
698
|
-
<dt>Dataset Information</dt>
|
|
699
|
-
<dd>
|
|
700
|
-
<a
|
|
701
|
-
href=${this.datasetLandingPage}
|
|
702
|
-
rel="noopener noreffer"
|
|
703
|
-
target="_blank"
|
|
704
|
-
>${this.collectionLongName}
|
|
705
|
-
|
|
706
|
-
<terra-icon
|
|
707
|
-
name="outline-arrow-top-right-on-square"
|
|
708
|
-
library="heroicons"
|
|
709
|
-
></terra-icon>
|
|
710
|
-
</a>
|
|
711
|
-
</dd>
|
|
712
|
-
|
|
713
|
-
<dt>Variable Information</dt>
|
|
714
|
-
<dd>
|
|
715
|
-
<a
|
|
716
|
-
href=${this.variableLandingPage}
|
|
717
|
-
rel="noopener noreffer"
|
|
718
|
-
target="_blank"
|
|
719
|
-
>Variable Glossary
|
|
720
|
-
|
|
721
|
-
<terra-icon
|
|
722
|
-
name="outline-arrow-top-right-on-square"
|
|
723
|
-
library="heroicons"
|
|
724
|
-
></terra-icon>
|
|
725
|
-
</a>
|
|
726
|
-
</dd>
|
|
727
|
-
</dl>
|
|
728
|
-
</li>
|
|
729
|
-
|
|
730
|
-
<li
|
|
731
|
-
role="menuitem"
|
|
732
|
-
?hidden=${this.activeMenuItem !== "download"}
|
|
733
|
-
>
|
|
734
|
-
<h3 class="sr-only">Download Options</h3>
|
|
735
|
-
|
|
736
|
-
<p>
|
|
737
|
-
This plot can be downloaded as either a
|
|
738
|
-
<abbr title="Portable Network Graphic"
|
|
739
|
-
>PNG</abbr
|
|
740
|
-
>
|
|
741
|
-
image or
|
|
742
|
-
<abbr title="Comma-Separated Value"
|
|
743
|
-
>CSV</abbr
|
|
744
|
-
>
|
|
745
|
-
data.
|
|
746
|
-
</p>
|
|
747
|
-
|
|
748
|
-
<terra-button
|
|
749
|
-
outline
|
|
750
|
-
variant="default"
|
|
751
|
-
@click=${__privateMethod(this, _downloadPNG, downloadPNG_fn)}
|
|
752
|
-
>
|
|
753
|
-
<span class="sr-only"
|
|
754
|
-
>Download Plot Data as
|
|
755
|
-
</span>
|
|
756
|
-
PNG
|
|
757
|
-
<terra-icon
|
|
758
|
-
slot="prefix"
|
|
759
|
-
name="outline-photo"
|
|
760
|
-
library="heroicons"
|
|
761
|
-
font-size="1.5em"
|
|
762
|
-
></terra-icon>
|
|
763
|
-
</terra-button>
|
|
764
|
-
|
|
765
|
-
<terra-button
|
|
766
|
-
outline
|
|
767
|
-
variant="default"
|
|
768
|
-
@click=${__privateMethod(this, _downloadCSV, downloadCSV_fn)}
|
|
769
|
-
>
|
|
770
|
-
<span class="sr-only"
|
|
771
|
-
>Download Plot Data as
|
|
772
|
-
</span>
|
|
773
|
-
CSV
|
|
774
|
-
<terra-icon
|
|
775
|
-
slot="prefix"
|
|
776
|
-
name="outline-document-chart-bar"
|
|
777
|
-
library="heroicons"
|
|
778
|
-
font-size="1.5em"
|
|
779
|
-
></terra-icon>
|
|
780
|
-
</terra-button>
|
|
781
|
-
</li>
|
|
782
|
-
|
|
783
|
-
<li
|
|
784
|
-
role="menuitem"
|
|
785
|
-
?hidden=${this.activeMenuItem !== "help"}
|
|
786
|
-
>
|
|
787
|
-
<h3 class="sr-only">Help Links</h3>
|
|
788
|
-
<ul>
|
|
789
|
-
<li>
|
|
790
|
-
<a href="https://forum.earthdata.nasa.gov/viewforum.php?f=7&DAAC=3" rel"noopener noreffer">Earthdata User Forum
|
|
791
|
-
<terra-icon
|
|
792
|
-
name="outline-arrow-top-right-on-square"
|
|
793
|
-
library="heroicons"
|
|
794
|
-
></terra-icon>
|
|
795
|
-
</a>
|
|
796
|
-
</li>
|
|
797
|
-
</ul>
|
|
798
|
-
</li>
|
|
799
|
-
</menu>
|
|
800
|
-
</header>
|
|
801
|
-
` : x`<div class="spacer"></div>`
|
|
802
|
-
)}
|
|
803
|
-
|
|
804
|
-
<terra-plot
|
|
805
|
-
exportparts="base:plot__base, plot-title:plot__title"
|
|
806
|
-
.data=${(_b = __privateGet(this, _timeSeriesController).lastTaskValue) != null ? _b : __privateGet(this, _timeSeriesController).emptyPlotData}
|
|
807
|
-
.layout="${{
|
|
808
|
-
xaxis: {
|
|
809
|
-
title: "Time",
|
|
810
|
-
showgrid: false,
|
|
811
|
-
zeroline: false
|
|
812
|
-
},
|
|
813
|
-
yaxis: {
|
|
814
|
-
title: this.variableLongName && this.units ? `${this.variableLongName}, ${this.units}` : null,
|
|
815
|
-
showline: false
|
|
816
|
-
},
|
|
817
|
-
title: {
|
|
818
|
-
text: this.collection && this.location ? `${this.collection} @ ${this.location}` : null
|
|
819
|
-
}
|
|
820
|
-
}}"
|
|
821
|
-
.config=${{
|
|
822
|
-
displayModeBar: true,
|
|
823
|
-
displaylogo: false,
|
|
824
|
-
modeBarButtonsToRemove: ["toImage", "zoom2d", "resetScale2d"],
|
|
825
|
-
responsive: true
|
|
826
|
-
}}
|
|
827
|
-
></terra-plot>
|
|
828
|
-
</div>
|
|
829
|
-
|
|
830
|
-
<terra-date-range-slider
|
|
831
|
-
exportparts="slider:date-range-slider__slider"
|
|
832
|
-
min-date=${this.collectionBeginningDateTime}
|
|
833
|
-
max-date=${this.collectionEndingDateTime}
|
|
834
|
-
start-date=${this.startDate}
|
|
835
|
-
end-date=${this.endDate}
|
|
836
|
-
@terra-date-range-change="${__privateMethod(this, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn)}"
|
|
837
|
-
></terra-date-range-slider>
|
|
838
|
-
|
|
839
|
-
<dialog
|
|
840
|
-
?open=${__privateGet(this, _timeSeriesController).task.status === s.PENDING}
|
|
841
|
-
>
|
|
842
|
-
<terra-loader indeterminate></terra-loader>
|
|
843
|
-
<p>Plotting ${this.collection} ${this.variable}…</p>
|
|
844
|
-
<terra-button @click=${__privateMethod(this, _abortDataLoad, abortDataLoad_fn)}>Cancel</terra-button>
|
|
845
|
-
</dialog>
|
|
846
|
-
|
|
847
|
-
<dialog ?open=${this.showDataPointWarning} class="quota-dialog">
|
|
848
|
-
<h2>This is a large request</h2>
|
|
849
|
-
|
|
850
|
-
<p>
|
|
851
|
-
You are requesting approximately
|
|
852
|
-
${this.estimatedDataPoints.toLocaleString()} data points.
|
|
853
|
-
</p>
|
|
854
|
-
|
|
855
|
-
<p>
|
|
856
|
-
Requesting large amounts of data may cause you to reach your
|
|
857
|
-
monthly quota limit.
|
|
858
|
-
</p>
|
|
859
|
-
|
|
860
|
-
<p>Would you still like to proceed with this request?</p>
|
|
861
|
-
|
|
862
|
-
<div class="dialog-buttons">
|
|
863
|
-
<terra-button
|
|
864
|
-
@click=${__privateMethod(this, _cancelDataPointWarning, cancelDataPointWarning_fn)}
|
|
865
|
-
variant="default"
|
|
866
|
-
>
|
|
867
|
-
Cancel
|
|
868
|
-
</terra-button>
|
|
869
|
-
|
|
870
|
-
<terra-button
|
|
871
|
-
@click=${__privateMethod(this, _confirmDataPointWarning, confirmDataPointWarning_fn)}
|
|
872
|
-
variant="primary"
|
|
873
|
-
>
|
|
874
|
-
Proceed
|
|
875
|
-
</terra-button>
|
|
876
|
-
</div>
|
|
877
|
-
</dialog>
|
|
878
|
-
`;
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
_timeSeriesController = new WeakMap();
|
|
882
|
-
_checkDataPointLimits = new WeakSet();
|
|
883
|
-
checkDataPointLimits_fn = function() {
|
|
884
|
-
if (!this.timeInterval || !this.startDate || !this.endDate) {
|
|
885
|
-
return true;
|
|
886
|
-
}
|
|
887
|
-
const startDate = import_dayjs.default.utc(this.startDate).toDate();
|
|
888
|
-
const endDate = import_dayjs.default.utc(this.endDate).toDate();
|
|
889
|
-
this.estimatedDataPoints = calculateDataPoints(
|
|
890
|
-
this.timeInterval,
|
|
891
|
-
startDate,
|
|
892
|
-
endDate
|
|
893
|
-
);
|
|
894
|
-
if (this.estimatedDataPoints < NUM_DATAPOINTS_TO_WARN_USER) {
|
|
895
|
-
return true;
|
|
896
|
-
}
|
|
897
|
-
this.showDataPointWarning = true;
|
|
898
|
-
return false;
|
|
899
|
-
};
|
|
900
|
-
_confirmDataPointWarning = new WeakSet();
|
|
901
|
-
confirmDataPointWarning_fn = function() {
|
|
902
|
-
this.showDataPointWarning = false;
|
|
903
|
-
__privateGet(this, _timeSeriesController).task.run();
|
|
904
|
-
};
|
|
905
|
-
_cancelDataPointWarning = new WeakSet();
|
|
906
|
-
cancelDataPointWarning_fn = function() {
|
|
907
|
-
this.showDataPointWarning = false;
|
|
908
|
-
};
|
|
909
|
-
_adaptPropertyToController = new WeakSet();
|
|
910
|
-
adaptPropertyToController_fn = function(property, value) {
|
|
911
|
-
switch (property) {
|
|
912
|
-
case "startDate":
|
|
913
|
-
case "endDate":
|
|
914
|
-
__privateGet(this, _timeSeriesController)[property] = import_dayjs.default.utc(value).toDate();
|
|
915
|
-
break;
|
|
916
|
-
case "location":
|
|
917
|
-
const [lat, lon] = value.split(",");
|
|
918
|
-
__privateGet(this, _timeSeriesController)[property] = `${lon},%20${lat}`;
|
|
919
|
-
break;
|
|
920
|
-
default:
|
|
921
|
-
__privateGet(this, _timeSeriesController)[property] = value;
|
|
922
|
-
break;
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
_maybeSliceTimeForStartEnd = new WeakSet();
|
|
926
|
-
maybeSliceTimeForStartEnd_fn = function() {
|
|
927
|
-
const hasExternallySetDates = !!this.startDate || !!this.endDate;
|
|
928
|
-
const hasBothDatesFromCollection = !!this.collectionBeginningDateTime && !!this.collectionEndingDateTime;
|
|
929
|
-
if (hasExternallySetDates || !hasBothDatesFromCollection) {
|
|
930
|
-
return;
|
|
931
|
-
}
|
|
932
|
-
const diff = Math.abs(
|
|
933
|
-
new Date(this.collectionEndingDateTime).getTime() - new Date(this.collectionBeginningDateTime).getTime()
|
|
934
|
-
);
|
|
935
|
-
const threeQuarterRange = Math.floor(diff * 0.75);
|
|
936
|
-
const startDate = Math.abs(
|
|
937
|
-
new Date(this.collectionBeginningDateTime).getTime() + threeQuarterRange
|
|
938
|
-
);
|
|
939
|
-
this.startDate = import_dayjs.default.utc(startDate).format();
|
|
940
|
-
this.endDate = import_dayjs.default.utc(this.collectionEndingDateTime).format();
|
|
941
|
-
};
|
|
942
|
-
_handleVariableChange = new WeakSet();
|
|
943
|
-
handleVariableChange_fn = function(event) {
|
|
944
|
-
this.collectionBeginningDateTime = import_dayjs.default.utc().format(event.detail.collectionBeginningDateTime);
|
|
945
|
-
this.collectionEndingDateTime = import_dayjs.default.utc().format(event.detail.collectionEndingDateTime);
|
|
946
|
-
__privateMethod(this, _maybeSliceTimeForStartEnd, maybeSliceTimeForStartEnd_fn).call(this);
|
|
947
|
-
this.collection = `${event.detail.collectionShortName}_${event.detail.collectionVersion}`;
|
|
948
|
-
this.collectionLongName = event.detail.collectionLongName;
|
|
949
|
-
this.datasetLandingPage = event.detail.datasetLandingPage;
|
|
950
|
-
this.units = event.detail.units;
|
|
951
|
-
this.variable = event.detail.name;
|
|
952
|
-
this.variableLandingPage = event.detail.variableLandingPage;
|
|
953
|
-
this.variableLongName = event.detail.longName;
|
|
954
|
-
this.timeInterval = event.detail.timeInterval;
|
|
955
|
-
if (__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this)) {
|
|
956
|
-
__privateGet(this, _timeSeriesController).task.run();
|
|
957
|
-
}
|
|
958
|
-
};
|
|
959
|
-
_handleMapChange = new WeakSet();
|
|
960
|
-
handleMapChange_fn = function(event) {
|
|
961
|
-
const type = event.detail.geoJson.geometry.type;
|
|
962
|
-
if (type === "Point") {
|
|
963
|
-
const { latLng } = event.detail;
|
|
964
|
-
this.location = `${latLng.lat.toFixed(4)},${latLng.lng.toFixed(4)}`;
|
|
965
|
-
if (__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this)) {
|
|
966
|
-
__privateGet(this, _timeSeriesController).task.run();
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
_handleDateRangeSliderChangeEvent = new WeakSet();
|
|
971
|
-
handleDateRangeSliderChangeEvent_fn = function(event) {
|
|
972
|
-
this.startDate = event.detail.startDate;
|
|
973
|
-
this.endDate = event.detail.endDate;
|
|
974
|
-
if (__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this)) {
|
|
975
|
-
__privateGet(this, _timeSeriesController).task.run();
|
|
976
|
-
}
|
|
977
|
-
};
|
|
978
|
-
_abortDataLoad = new WeakSet();
|
|
979
|
-
abortDataLoad_fn = function() {
|
|
980
|
-
var _a;
|
|
981
|
-
(_a = __privateGet(this, _timeSeriesController).task) == null ? void 0 : _a.abort();
|
|
982
|
-
};
|
|
983
|
-
_downloadCSV = new WeakSet();
|
|
984
|
-
downloadCSV_fn = function(_event) {
|
|
985
|
-
var _a;
|
|
986
|
-
const controllerData = (_a = __privateGet(this, _timeSeriesController).lastTaskValue) != null ? _a : __privateGet(this, _timeSeriesController).emptyPlotData;
|
|
987
|
-
let plotData = [];
|
|
988
|
-
controllerData.forEach((plot, index) => {
|
|
989
|
-
plotData[index] = plot;
|
|
990
|
-
});
|
|
991
|
-
const csvData = plotData.map((trace) => {
|
|
992
|
-
return trace.x.map((x2, i) => {
|
|
993
|
-
return {
|
|
994
|
-
x: x2,
|
|
995
|
-
y: trace.y[i]
|
|
996
|
-
};
|
|
997
|
-
});
|
|
998
|
-
}).flat();
|
|
999
|
-
const csv = __privateMethod(this, _convertToCSV, convertToCSV_fn).call(this, csvData);
|
|
1000
|
-
csv;
|
|
1001
|
-
};
|
|
1002
|
-
_convertToCSV = new WeakSet();
|
|
1003
|
-
convertToCSV_fn = function(data) {
|
|
1004
|
-
const header = Object.keys(data[0]).join(",") + "\n";
|
|
1005
|
-
const rows = data.map((obj) => Object.values(obj).join(",")).join("\n");
|
|
1006
|
-
return header + rows;
|
|
1007
|
-
};
|
|
1008
|
-
_downloadPNG = new WeakSet();
|
|
1009
|
-
downloadPNG_fn = function(_event) {
|
|
1010
|
-
var _a;
|
|
1011
|
-
(0, import_plotly.downloadImage)((_a = this.plot) == null ? void 0 : _a.base, {
|
|
1012
|
-
filename: `${this.collection}_${this.variable}`,
|
|
1013
|
-
format: "png",
|
|
1014
|
-
width: 1920,
|
|
1015
|
-
height: 1080
|
|
1016
|
-
});
|
|
1017
|
-
};
|
|
1018
|
-
_handleActiveMenuItem = new WeakSet();
|
|
1019
|
-
handleActiveMenuItem_fn = function(event) {
|
|
1020
|
-
const button = event.currentTarget;
|
|
1021
|
-
const menuName = button.dataset.menuName;
|
|
1022
|
-
this.activeMenuItem = menuName === this.activeMenuItem ? null : menuName;
|
|
1023
|
-
};
|
|
1024
|
-
TerraTimeSeries.styles = [component_styles_default, time_series_styles_default];
|
|
1025
|
-
TerraTimeSeries.dependencies = {
|
|
1026
|
-
"terra-plot": TerraPlot,
|
|
1027
|
-
"terra-date-range-slider": TerraDateRangeSlider,
|
|
1028
|
-
"terra-spatial-picker": spatial_picker_default,
|
|
1029
|
-
"terra-variable-combobox": TerraVariableCombobox,
|
|
1030
|
-
"terra-loader": TerraLoader,
|
|
1031
|
-
"terra-icon": TerraIcon,
|
|
1032
|
-
"terra-button": TerraButton
|
|
1033
|
-
};
|
|
1034
|
-
__decorateClass([
|
|
1035
|
-
n({ reflect: true })
|
|
1036
|
-
], TerraTimeSeries.prototype, "collection", 2);
|
|
1037
|
-
__decorateClass([
|
|
1038
|
-
n({ reflect: true })
|
|
1039
|
-
], TerraTimeSeries.prototype, "collectionLongName", 2);
|
|
1040
|
-
__decorateClass([
|
|
1041
|
-
n({ reflect: true })
|
|
1042
|
-
], TerraTimeSeries.prototype, "datasetLandingPage", 2);
|
|
1043
|
-
__decorateClass([
|
|
1044
|
-
n({ reflect: true })
|
|
1045
|
-
], TerraTimeSeries.prototype, "variable", 2);
|
|
1046
|
-
__decorateClass([
|
|
1047
|
-
n({ reflect: true })
|
|
1048
|
-
], TerraTimeSeries.prototype, "variableLandingPage", 2);
|
|
1049
|
-
__decorateClass([
|
|
1050
|
-
n({ reflect: true })
|
|
1051
|
-
], TerraTimeSeries.prototype, "variableLongName", 2);
|
|
1052
|
-
__decorateClass([
|
|
1053
|
-
n({
|
|
1054
|
-
attribute: "start-date",
|
|
1055
|
-
reflect: true
|
|
1056
|
-
})
|
|
1057
|
-
], TerraTimeSeries.prototype, "startDate", 2);
|
|
1058
|
-
__decorateClass([
|
|
1059
|
-
n({
|
|
1060
|
-
attribute: "end-date",
|
|
1061
|
-
reflect: true
|
|
1062
|
-
})
|
|
1063
|
-
], TerraTimeSeries.prototype, "endDate", 2);
|
|
1064
|
-
__decorateClass([
|
|
1065
|
-
n({
|
|
1066
|
-
reflect: true
|
|
1067
|
-
})
|
|
1068
|
-
], TerraTimeSeries.prototype, "location", 2);
|
|
1069
|
-
__decorateClass([
|
|
1070
|
-
n({
|
|
1071
|
-
reflect: true
|
|
1072
|
-
})
|
|
1073
|
-
], TerraTimeSeries.prototype, "units", 2);
|
|
1074
|
-
__decorateClass([
|
|
1075
|
-
n({ attribute: "bearer-token", reflect: false })
|
|
1076
|
-
], TerraTimeSeries.prototype, "bearerToken", 2);
|
|
1077
|
-
__decorateClass([
|
|
1078
|
-
e("terra-date-range-slider")
|
|
1079
|
-
], TerraTimeSeries.prototype, "dateRangeSlider", 2);
|
|
1080
|
-
__decorateClass([
|
|
1081
|
-
e("terra-plot")
|
|
1082
|
-
], TerraTimeSeries.prototype, "plot", 2);
|
|
1083
|
-
__decorateClass([
|
|
1084
|
-
e("terra-spatial-picker")
|
|
1085
|
-
], TerraTimeSeries.prototype, "spatialPicker", 2);
|
|
1086
|
-
__decorateClass([
|
|
1087
|
-
e("terra-variable-combobo")
|
|
1088
|
-
], TerraTimeSeries.prototype, "variableCombobox", 2);
|
|
1089
|
-
__decorateClass([
|
|
1090
|
-
e("#menu")
|
|
1091
|
-
], TerraTimeSeries.prototype, "menu", 2);
|
|
1092
|
-
__decorateClass([
|
|
1093
|
-
r()
|
|
1094
|
-
], TerraTimeSeries.prototype, "collectionBeginningDateTime", 2);
|
|
1095
|
-
__decorateClass([
|
|
1096
|
-
r()
|
|
1097
|
-
], TerraTimeSeries.prototype, "collectionEndingDateTime", 2);
|
|
1098
|
-
__decorateClass([
|
|
1099
|
-
r()
|
|
1100
|
-
], TerraTimeSeries.prototype, "timeInterval", 2);
|
|
1101
|
-
__decorateClass([
|
|
1102
|
-
r()
|
|
1103
|
-
], TerraTimeSeries.prototype, "showDataPointWarning", 2);
|
|
1104
|
-
__decorateClass([
|
|
1105
|
-
r()
|
|
1106
|
-
], TerraTimeSeries.prototype, "estimatedDataPoints", 2);
|
|
1107
|
-
__decorateClass([
|
|
1108
|
-
r()
|
|
1109
|
-
], TerraTimeSeries.prototype, "activeMenuItem", 2);
|
|
1110
|
-
__decorateClass([
|
|
1111
|
-
watch("collection")
|
|
1112
|
-
], TerraTimeSeries.prototype, "handleCollectionUpdate", 1);
|
|
1113
|
-
__decorateClass([
|
|
1114
|
-
watch("variable")
|
|
1115
|
-
], TerraTimeSeries.prototype, "handlevariableUpdate", 1);
|
|
1116
|
-
__decorateClass([
|
|
1117
|
-
watch("startDate")
|
|
1118
|
-
], TerraTimeSeries.prototype, "handleStartDateUpdate", 1);
|
|
1119
|
-
__decorateClass([
|
|
1120
|
-
watch("endDate")
|
|
1121
|
-
], TerraTimeSeries.prototype, "handleEndDateUpdate", 1);
|
|
1122
|
-
__decorateClass([
|
|
1123
|
-
watch("location")
|
|
1124
|
-
], TerraTimeSeries.prototype, "handleLocationUpdate", 1);
|
|
1125
|
-
__decorateClass([
|
|
1126
|
-
watch("activeMenuItem")
|
|
1127
|
-
], TerraTimeSeries.prototype, "handleFocus", 1);
|
|
1128
|
-
|
|
1129
|
-
export {
|
|
1130
|
-
TerraTimeSeries
|
|
1131
|
-
};
|