@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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk.
|
|
2
|
+
GiovanniVariableCatalog
|
|
3
|
+
} from "./chunk.TFI3UXXB.js";
|
|
4
4
|
import {
|
|
5
5
|
__privateAdd,
|
|
6
6
|
__privateGet,
|
|
@@ -53,7 +53,7 @@ _catalog = new WeakMap();
|
|
|
53
53
|
_getCatalogRepository = new WeakSet();
|
|
54
54
|
getCatalogRepository_fn = function() {
|
|
55
55
|
if (__privateGet(this, _host).catalog === "giovanni") {
|
|
56
|
-
return new
|
|
56
|
+
return new GiovanniVariableCatalog();
|
|
57
57
|
}
|
|
58
58
|
throw new Error(`Invalid catalog: ${__privateGet(this, _host).catalog}`);
|
|
59
59
|
};
|
|
@@ -101,7 +101,7 @@ var Leaflet = class {
|
|
|
101
101
|
addCoordTracker() {
|
|
102
102
|
const CoordTracker = L.Control.extend({
|
|
103
103
|
options: {
|
|
104
|
-
position: "
|
|
104
|
+
position: "bottomleft",
|
|
105
105
|
title: "Mouse Position",
|
|
106
106
|
exclude: [],
|
|
107
107
|
include: []
|
|
@@ -134,7 +134,7 @@ var Leaflet = class {
|
|
|
134
134
|
this.editableLayers = new L.FeatureGroup();
|
|
135
135
|
this.editableLayers.addTo(this.map);
|
|
136
136
|
let drawControl = new L.Control.Draw({
|
|
137
|
-
position: "
|
|
137
|
+
position: "topleft",
|
|
138
138
|
draw: {
|
|
139
139
|
polyline: false,
|
|
140
140
|
polygon: false,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// src/utilities/date.ts
|
|
2
|
+
import { isValid } from "date-fns";
|
|
3
|
+
import dayjs from "dayjs";
|
|
4
|
+
import timezone from "dayjs/plugin/timezone.js";
|
|
5
|
+
import utc from "dayjs/plugin/utc.js";
|
|
6
|
+
dayjs.extend(utc);
|
|
7
|
+
dayjs.extend(timezone);
|
|
8
|
+
dayjs.tz.setDefault("Etc/GMT");
|
|
9
|
+
function isValidDate(date) {
|
|
10
|
+
const parsedDate = Date.parse(date);
|
|
11
|
+
return !isNaN(parsedDate) && isValid(parsedDate);
|
|
12
|
+
}
|
|
13
|
+
function getUTCDate(date) {
|
|
14
|
+
return dayjs.utc(date).toDate();
|
|
15
|
+
}
|
|
16
|
+
function formatDate(date, format) {
|
|
17
|
+
if (!dayjs.isDayjs(date)) {
|
|
18
|
+
date = dayjs.utc(date);
|
|
19
|
+
}
|
|
20
|
+
return date.format(format);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
isValidDate,
|
|
25
|
+
getUTCDate,
|
|
26
|
+
formatDate
|
|
27
|
+
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
formatDate,
|
|
3
|
+
getUTCDate
|
|
4
|
+
} from "./chunk.7JBFBZ5C.js";
|
|
1
5
|
import {
|
|
2
6
|
__privateAdd,
|
|
3
7
|
__privateGet,
|
|
@@ -101,6 +105,7 @@ function storeDataByKey(store, key, data) {
|
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
// src/components/time-series/time-series.controller.ts
|
|
108
|
+
var NUM_DATAPOINTS_TO_WARN_USER = 5e4;
|
|
104
109
|
var endpoint = "https://8weebb031a.execute-api.us-east-1.amazonaws.com/SIT/timeseries-no-user";
|
|
105
110
|
var plotlyDefaultData = {
|
|
106
111
|
// holds the default Plotly configuration options.
|
|
@@ -110,7 +115,7 @@ var plotlyDefaultData = {
|
|
|
110
115
|
line: { color: "rgb(28, 103, 227)" }
|
|
111
116
|
// TODO: configureable?
|
|
112
117
|
};
|
|
113
|
-
var _bearerToken, _loadTimeSeries, loadTimeSeries_fn, _calculateDataGaps, calculateDataGaps_fn, _fetchTimeSeriesChunk, fetchTimeSeriesChunk_fn, _parseTimeSeriesCsv, parseTimeSeriesCsv_fn, _getDataInRange, getDataInRange_fn;
|
|
118
|
+
var _bearerToken, _userConfirmedWarning, _loadTimeSeries, loadTimeSeries_fn, _calculateDataGaps, calculateDataGaps_fn, _fetchTimeSeriesChunk, fetchTimeSeriesChunk_fn, _parseTimeSeriesCsv, parseTimeSeriesCsv_fn, _getDataInRange, getDataInRange_fn, _normalizeCoordinates, normalizeCoordinates_fn, _checkDataPointLimits, checkDataPointLimits_fn;
|
|
114
119
|
var TimeSeriesController = class {
|
|
115
120
|
constructor(host, bearerToken) {
|
|
116
121
|
__privateAdd(this, _loadTimeSeries);
|
|
@@ -131,7 +136,17 @@ var TimeSeriesController = class {
|
|
|
131
136
|
* given a set of data and a date range, will return only the data that falls within that range
|
|
132
137
|
*/
|
|
133
138
|
__privateAdd(this, _getDataInRange);
|
|
139
|
+
/**
|
|
140
|
+
* Normalizes coordinates to 2 decimal places
|
|
141
|
+
*/
|
|
142
|
+
__privateAdd(this, _normalizeCoordinates);
|
|
143
|
+
/**
|
|
144
|
+
* Checks if the current date range will exceed data point limits
|
|
145
|
+
* Returns true if it's safe to proceed, false if confirmation is needed
|
|
146
|
+
*/
|
|
147
|
+
__privateAdd(this, _checkDataPointLimits);
|
|
134
148
|
__privateAdd(this, _bearerToken, null);
|
|
149
|
+
__privateAdd(this, _userConfirmedWarning, false);
|
|
135
150
|
this.emptyPlotData = [
|
|
136
151
|
__spreadProps(__spreadValues({}, plotlyDefaultData), {
|
|
137
152
|
x: [],
|
|
@@ -141,10 +156,9 @@ var TimeSeriesController = class {
|
|
|
141
156
|
__privateSet(this, _bearerToken, bearerToken);
|
|
142
157
|
this.host = host;
|
|
143
158
|
this.task = new Task(host, {
|
|
144
|
-
autoRun: false,
|
|
145
159
|
// passing the signal in so the fetch request will be aborted when the task is aborted
|
|
146
160
|
task: async (_args, { signal }) => {
|
|
147
|
-
if (!this.
|
|
161
|
+
if (!this.host.catalogVariable || !this.host.startDate || !this.host.endDate || !this.host.location) {
|
|
148
162
|
return initialState;
|
|
149
163
|
}
|
|
150
164
|
const timeSeries = await __privateMethod(this, _loadTimeSeries, loadTimeSeries_fn).call(this, signal);
|
|
@@ -157,34 +171,49 @@ var TimeSeriesController = class {
|
|
|
157
171
|
this.host.emit("terra-time-series-data-change", {
|
|
158
172
|
detail: {
|
|
159
173
|
data: timeSeries,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
location: this.location
|
|
174
|
+
variable: this.host.catalogVariable,
|
|
175
|
+
startDate: formatDate(this.host.startDate),
|
|
176
|
+
endDate: formatDate(this.host.endDate),
|
|
177
|
+
location: this.host.location
|
|
165
178
|
}
|
|
166
179
|
});
|
|
167
180
|
return this.lastTaskValue;
|
|
168
|
-
}
|
|
181
|
+
},
|
|
182
|
+
args: () => [
|
|
183
|
+
this.host.catalogVariable,
|
|
184
|
+
this.host.startDate,
|
|
185
|
+
this.host.endDate,
|
|
186
|
+
this.host.location
|
|
187
|
+
]
|
|
169
188
|
});
|
|
170
189
|
}
|
|
171
190
|
render(renderFunctions) {
|
|
172
191
|
return this.task.render(renderFunctions);
|
|
173
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* Called when the user confirms the data point warning
|
|
195
|
+
*/
|
|
196
|
+
confirmDataPointWarning() {
|
|
197
|
+
__privateSet(this, _userConfirmedWarning, true);
|
|
198
|
+
this.host.showDataPointWarning = false;
|
|
199
|
+
}
|
|
174
200
|
};
|
|
175
201
|
_bearerToken = new WeakMap();
|
|
202
|
+
_userConfirmedWarning = new WeakMap();
|
|
176
203
|
_loadTimeSeries = new WeakSet();
|
|
177
204
|
loadTimeSeries_fn = async function(signal) {
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
);
|
|
182
|
-
const
|
|
205
|
+
const [lat, lon] = this.host.location.split(",");
|
|
206
|
+
const normalizedLocation = __privateMethod(this, _normalizeCoordinates, normalizeCoordinates_fn).call(this, lat, lon);
|
|
207
|
+
const location = `${normalizedLocation.lat},%20${normalizedLocation.lon}`;
|
|
208
|
+
const startDate = getUTCDate(this.host.startDate);
|
|
209
|
+
const endDate = getUTCDate(this.host.endDate);
|
|
210
|
+
const variableEntryId = this.host.catalogVariable.dataFieldId;
|
|
211
|
+
const cacheKey = `${variableEntryId}_${location}`;
|
|
183
212
|
const existingTerraData = await getDataByKey(
|
|
184
213
|
"time-series" /* TIME_SERIES */,
|
|
185
214
|
cacheKey
|
|
186
215
|
);
|
|
187
|
-
if (existingTerraData &&
|
|
216
|
+
if (existingTerraData && startDate.getTime() >= new Date(existingTerraData.startDate).getTime() && endDate.getTime() <= new Date(existingTerraData.endDate).getTime()) {
|
|
188
217
|
return __privateMethod(this, _getDataInRange, getDataInRange_fn).call(this, existingTerraData);
|
|
189
218
|
}
|
|
190
219
|
const dataGaps = __privateMethod(this, _calculateDataGaps, calculateDataGaps_fn).call(this, existingTerraData);
|
|
@@ -194,7 +223,7 @@ loadTimeSeries_fn = async function(signal) {
|
|
|
194
223
|
const allChunks = [];
|
|
195
224
|
for (const gap of dataGaps) {
|
|
196
225
|
const chunks = calculateDateChunks(
|
|
197
|
-
this.host.
|
|
226
|
+
this.host.catalogVariable.dataProductTimeInterval,
|
|
198
227
|
gap.start,
|
|
199
228
|
gap.end
|
|
200
229
|
);
|
|
@@ -240,28 +269,35 @@ loadTimeSeries_fn = async function(signal) {
|
|
|
240
269
|
};
|
|
241
270
|
_calculateDataGaps = new WeakSet();
|
|
242
271
|
calculateDataGaps_fn = function(existingData) {
|
|
272
|
+
const start = getUTCDate(this.host.startDate);
|
|
273
|
+
const end = getUTCDate(this.host.endDate);
|
|
243
274
|
if (!existingData) {
|
|
244
|
-
return [{ start
|
|
275
|
+
return [{ start, end }];
|
|
245
276
|
}
|
|
246
277
|
const existingStartDate = new Date(existingData.startDate);
|
|
247
278
|
const existingEndDate = new Date(existingData.endDate);
|
|
248
279
|
const gaps = [];
|
|
249
|
-
if (
|
|
250
|
-
gaps.push({ start
|
|
280
|
+
if (start < existingStartDate) {
|
|
281
|
+
gaps.push({ start, end: existingStartDate });
|
|
251
282
|
}
|
|
252
|
-
if (
|
|
253
|
-
gaps.push({ start: existingEndDate, end
|
|
283
|
+
if (end > existingEndDate) {
|
|
284
|
+
gaps.push({ start: existingEndDate, end });
|
|
254
285
|
}
|
|
255
286
|
return gaps;
|
|
256
287
|
};
|
|
257
288
|
_fetchTimeSeriesChunk = new WeakSet();
|
|
258
289
|
fetchTimeSeriesChunk_fn = async function(variableEntryId, startDate, endDate, signal) {
|
|
259
290
|
var _a;
|
|
260
|
-
|
|
291
|
+
if (!__privateGet(this, _userConfirmedWarning) && !__privateMethod(this, _checkDataPointLimits, checkDataPointLimits_fn).call(this, this.host.catalogVariable, startDate, endDate)) {
|
|
292
|
+
throw new Error("User cancelled data point warning");
|
|
293
|
+
}
|
|
294
|
+
__privateSet(this, _userConfirmedWarning, false);
|
|
295
|
+
const [lat, lon] = decodeURIComponent((_a = this.host.location) != null ? _a : ",").split(",");
|
|
296
|
+
const normalizedLocation = __privateMethod(this, _normalizeCoordinates, normalizeCoordinates_fn).call(this, lat, lon);
|
|
261
297
|
const url = `${endpoint}?${new URLSearchParams({
|
|
262
298
|
data: variableEntryId,
|
|
263
|
-
lat,
|
|
264
|
-
lon,
|
|
299
|
+
lat: normalizedLocation.lat,
|
|
300
|
+
lon: normalizedLocation.lon,
|
|
265
301
|
time_start: format(startDate, "yyyy-MM-dd") + "T00%3A00%3A00",
|
|
266
302
|
time_end: format(endDate, "yyyy-MM-dd") + "T23%3A59%3A59"
|
|
267
303
|
}).toString()}`;
|
|
@@ -315,18 +351,39 @@ parseTimeSeriesCsv_fn = function(text) {
|
|
|
315
351
|
};
|
|
316
352
|
_getDataInRange = new WeakSet();
|
|
317
353
|
getDataInRange_fn = function(data) {
|
|
354
|
+
const startDate = getUTCDate(this.host.startDate);
|
|
355
|
+
const endDate = getUTCDate(this.host.endDate);
|
|
318
356
|
return __spreadProps(__spreadValues({}, data), {
|
|
319
357
|
data: data.data.filter((row) => {
|
|
320
358
|
const timestamp = new Date(row.timestamp);
|
|
321
|
-
return timestamp >=
|
|
359
|
+
return timestamp >= startDate && timestamp <= endDate;
|
|
322
360
|
}).sort(
|
|
323
361
|
(a, b) => new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime()
|
|
324
362
|
)
|
|
325
363
|
});
|
|
326
364
|
};
|
|
365
|
+
_normalizeCoordinates = new WeakSet();
|
|
366
|
+
normalizeCoordinates_fn = function(lat, lon) {
|
|
367
|
+
return {
|
|
368
|
+
lat: Number(lat).toFixed(2),
|
|
369
|
+
lon: Number(lon).toFixed(2)
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
_checkDataPointLimits = new WeakSet();
|
|
373
|
+
checkDataPointLimits_fn = function(catalogVariable, startDate, endDate) {
|
|
374
|
+
this.host.estimatedDataPoints = calculateDataPoints(
|
|
375
|
+
catalogVariable.dataProductTimeInterval,
|
|
376
|
+
startDate,
|
|
377
|
+
endDate
|
|
378
|
+
);
|
|
379
|
+
if (this.host.estimatedDataPoints < NUM_DATAPOINTS_TO_WARN_USER) {
|
|
380
|
+
return true;
|
|
381
|
+
}
|
|
382
|
+
this.host.showDataPointWarning = true;
|
|
383
|
+
return false;
|
|
384
|
+
};
|
|
327
385
|
|
|
328
386
|
export {
|
|
329
|
-
calculateDataPoints,
|
|
330
387
|
plotlyDefaultData,
|
|
331
388
|
TimeSeriesController
|
|
332
389
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
map_styles_default
|
|
3
|
+
} from "./chunk.GR7XHOA3.js";
|
|
1
4
|
import {
|
|
2
5
|
leaflet_draw_styles_default
|
|
3
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.P442U2FF.js";
|
|
4
7
|
import {
|
|
5
8
|
Leaflet
|
|
6
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3B622XLR.js";
|
|
7
10
|
import {
|
|
8
11
|
leaflet_styles_default
|
|
9
12
|
} from "./chunk.LELNKRPW.js";
|
|
10
13
|
import {
|
|
11
14
|
MapController
|
|
12
15
|
} from "./chunk.HTQT6WW4.js";
|
|
13
|
-
import {
|
|
14
|
-
map_styles_default
|
|
15
|
-
} from "./chunk.GR7XHOA3.js";
|
|
16
16
|
import {
|
|
17
17
|
watch
|
|
18
18
|
} from "./chunk.SK7IZCKP.js";
|
|
19
19
|
import {
|
|
20
20
|
TerraElement,
|
|
21
21
|
component_styles_default
|
|
22
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.VYB75K7O.js";
|
|
23
23
|
import {
|
|
24
24
|
__decorateClass,
|
|
25
25
|
__privateAdd,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk.
|
|
2
|
+
GiovanniVariableCatalog
|
|
3
|
+
} from "./chunk.TFI3UXXB.js";
|
|
4
4
|
import {
|
|
5
5
|
__privateAdd,
|
|
6
6
|
__privateGet,
|
|
@@ -9,35 +9,6 @@ import {
|
|
|
9
9
|
|
|
10
10
|
// src/components/variable-keyword-search/variable-keyword-search.controller.ts
|
|
11
11
|
import { Task, TaskStatus } from "@lit/task";
|
|
12
|
-
|
|
13
|
-
// src/variable-catalog/queries.ts
|
|
14
|
-
import { gql } from "@apollo/client/core";
|
|
15
|
-
var GET_SEARCH_KEYWORDS = gql`
|
|
16
|
-
query {
|
|
17
|
-
aesirKeywords {
|
|
18
|
-
id
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
// src/variable-catalog/giovanni-variable-catalog.ts
|
|
24
|
-
var GiovanniVariableCatalog = class {
|
|
25
|
-
async getSearchKeywords() {
|
|
26
|
-
const client = await getGraphQLClient();
|
|
27
|
-
const response = await client.query({
|
|
28
|
-
query: GET_SEARCH_KEYWORDS,
|
|
29
|
-
fetchPolicy: "cache-first"
|
|
30
|
-
});
|
|
31
|
-
if (response.errors) {
|
|
32
|
-
throw new Error(
|
|
33
|
-
`Failed to fetch search keywords: ${response.errors[0].message}`
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
return response.data.aesirKeywords;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
// src/components/variable-keyword-search/variable-keyword-search.controller.ts
|
|
41
12
|
var _apiTask;
|
|
42
13
|
var FetchController = class {
|
|
43
14
|
constructor(host) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
loader_default
|
|
3
|
-
} from "./chunk.6YWP3FBT.js";
|
|
4
1
|
import {
|
|
5
2
|
login_styles_default
|
|
6
3
|
} from "./chunk.UIYPAVP3.js";
|
|
4
|
+
import {
|
|
5
|
+
loader_default
|
|
6
|
+
} from "./chunk.C6ZJJG4V.js";
|
|
7
7
|
import {
|
|
8
8
|
icon_default
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.RC5E6NBB.js";
|
|
10
10
|
import {
|
|
11
11
|
button_default
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.EBTGXENT.js";
|
|
13
13
|
import {
|
|
14
14
|
TerraElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.VYB75K7O.js";
|
|
17
17
|
import {
|
|
18
18
|
__privateAdd,
|
|
19
19
|
__privateGet,
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk.N7J6PIAG.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraMap
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.ABNZX7AU.js";
|
|
7
7
|
import {
|
|
8
8
|
StringifyBoundingBox,
|
|
9
9
|
parseBoundingBox
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.3B622XLR.js";
|
|
11
11
|
import {
|
|
12
12
|
TerraElement,
|
|
13
13
|
component_styles_default
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.VYB75K7O.js";
|
|
15
15
|
import {
|
|
16
16
|
__decorateClass
|
|
17
17
|
} from "./chunk.TVFCHGU3.js";
|
|
@@ -31,19 +31,56 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
31
31
|
this.initialValue = "";
|
|
32
32
|
this.hideLabel = false;
|
|
33
33
|
this.label = "Select Region";
|
|
34
|
+
this.spatialConstraints = "-180, -90, 180, 90";
|
|
34
35
|
this.isExpanded = false;
|
|
35
36
|
this.inline = false;
|
|
37
|
+
this.showMapOnFocus = false;
|
|
36
38
|
}
|
|
37
39
|
_blur(e) {
|
|
38
40
|
const inputValue = e.target.value;
|
|
39
|
-
|
|
41
|
+
if (inputValue === "") {
|
|
42
|
+
this.mapValue = [];
|
|
43
|
+
} else {
|
|
44
|
+
const parsedValue = parseBoundingBox(inputValue);
|
|
45
|
+
if (Array.isArray(parsedValue)) {
|
|
46
|
+
this.mapValue = parsedValue.map((coordArray) => {
|
|
47
|
+
return coordArray.map(
|
|
48
|
+
(coord) => parseFloat(coord.toFixed(2))
|
|
49
|
+
);
|
|
50
|
+
});
|
|
51
|
+
} else if (parsedValue && typeof parsedValue === "object" && "lat" in parsedValue && "lng" in parsedValue) {
|
|
52
|
+
const { lat, lng } = parsedValue;
|
|
53
|
+
this.mapValue = {
|
|
54
|
+
lat: parseFloat(lat.toFixed(2)),
|
|
55
|
+
lng: parseFloat(lng.toFixed(2))
|
|
56
|
+
};
|
|
57
|
+
} else {
|
|
58
|
+
this.mapValue = [];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
40
61
|
const relatedTarget = e.relatedTarget;
|
|
41
62
|
if (!(relatedTarget == null ? void 0 : relatedTarget.closest("terra-map"))) {
|
|
42
63
|
this.isExpanded = false;
|
|
43
64
|
}
|
|
65
|
+
this.emit("terra-map-change", {
|
|
66
|
+
detail: {
|
|
67
|
+
cause: "draw",
|
|
68
|
+
latLng: this.mapValue,
|
|
69
|
+
geoJson: {
|
|
70
|
+
type: "Feature",
|
|
71
|
+
geometry: {
|
|
72
|
+
type: "Point",
|
|
73
|
+
coordinates: [this.mapValue.lng, this.mapValue.lat]
|
|
74
|
+
},
|
|
75
|
+
properties: {}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
});
|
|
44
79
|
}
|
|
45
80
|
_focus() {
|
|
46
|
-
this.
|
|
81
|
+
if (this.showMapOnFocus) {
|
|
82
|
+
this.isExpanded = true;
|
|
83
|
+
}
|
|
47
84
|
}
|
|
48
85
|
_click() {
|
|
49
86
|
this.isExpanded = !this.isExpanded;
|
|
@@ -58,6 +95,7 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
58
95
|
switch (event.detail.cause) {
|
|
59
96
|
case "clear":
|
|
60
97
|
this.spatialInput.value = "";
|
|
98
|
+
this.spatialConstraints = "-180, -90, 180, 90";
|
|
61
99
|
break;
|
|
62
100
|
case "draw":
|
|
63
101
|
if (event.detail.bounds) {
|
|
@@ -108,7 +146,7 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
108
146
|
value=${this.initialValue}
|
|
109
147
|
type="text"
|
|
110
148
|
class="spatial-picker__input form-control"
|
|
111
|
-
placeholder="
|
|
149
|
+
placeholder="${this.spatialConstraints}"
|
|
112
150
|
aria-controls="map"
|
|
113
151
|
aria-expanded=${this.isExpanded}
|
|
114
152
|
@blur=${this._blur}
|
|
@@ -172,12 +210,18 @@ __decorateClass([
|
|
|
172
210
|
__decorateClass([
|
|
173
211
|
property()
|
|
174
212
|
], TerraSpatialPicker.prototype, "label", 2);
|
|
213
|
+
__decorateClass([
|
|
214
|
+
property({ attribute: "spatial-constraints" })
|
|
215
|
+
], TerraSpatialPicker.prototype, "spatialConstraints", 2);
|
|
175
216
|
__decorateClass([
|
|
176
217
|
property({ attribute: "is-expanded", type: Boolean, reflect: true })
|
|
177
218
|
], TerraSpatialPicker.prototype, "isExpanded", 2);
|
|
178
219
|
__decorateClass([
|
|
179
220
|
property({ type: Boolean })
|
|
180
221
|
], TerraSpatialPicker.prototype, "inline", 2);
|
|
222
|
+
__decorateClass([
|
|
223
|
+
property({ attribute: "show-map-on-focus", type: Boolean })
|
|
224
|
+
], TerraSpatialPicker.prototype, "showMapOnFocus", 2);
|
|
181
225
|
__decorateClass([
|
|
182
226
|
state()
|
|
183
227
|
], TerraSpatialPicker.prototype, "mapValue", 2);
|