@nasa-terra/components 0.0.52 → 0.0.53
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/assets/data-subsetter/download_subset_files.py.txt +66 -0
- package/cdn/chunks/{chunk.AZDOQAD2.js → chunk.223WZP6H.js} +23 -6
- package/cdn/chunks/{chunk.XU3NXPIM.js → chunk.23M4SIVO.js} +1 -1
- package/cdn/chunks/{chunk.WA7VSQ63.js → chunk.25HVLP5F.js} +3 -3
- package/cdn/chunks/{chunk.CUGOTRF4.js → chunk.2TPQ7A7J.js} +18 -5
- package/cdn/chunks/chunk.2UDWV64G.js +269 -0
- package/cdn/chunks/{chunk.3C36QKV5.js → chunk.32W6J6AF.js} +1 -1
- package/cdn/chunks/{chunk.43R5EAVL.js → chunk.3EMZ7G5B.js} +1 -1
- package/cdn/chunks/chunk.3R6XYEOH.js +11 -0
- package/{dist/chunks/chunk.GUGDC67O.js → cdn/chunks/chunk.4YQZGKJ7.js} +1 -1
- package/cdn/chunks/{chunk.6NEMJOXS.js → chunk.5BO2XAMO.js} +4 -4
- package/{dist/chunks/chunk.E7WQN374.js → cdn/chunks/chunk.5DKQRBZN.js} +1 -1
- package/cdn/chunks/{chunk.6QZW2ION.js → chunk.5IE6WY2F.js} +1 -1
- package/cdn/chunks/{chunk.UR52WPUB.js → chunk.66O6GDYQ.js} +9 -9
- package/cdn/chunks/{chunk.YNUC7HOB.js → chunk.6HMN7UIZ.js} +1 -1
- package/cdn/chunks/chunk.6OAPBJRP.js +49 -0
- package/cdn/chunks/{chunk.QIVBQSS7.js → chunk.6RS64LSV.js} +11 -11
- package/cdn/chunks/chunk.7LR3A5ZW.js +77 -0
- package/{dist/chunks/chunk.H6VZTFOA.js → cdn/chunks/chunk.7S5AAIY4.js} +1 -1
- package/{dist/chunks/chunk.CVHBTAL2.js → cdn/chunks/chunk.AOKWX7Z7.js} +1 -1
- package/{dist/chunks/chunk.E2A2V2YS.js → cdn/chunks/chunk.AVVGDACI.js} +1 -1
- package/cdn/chunks/{chunk.KQ335BKK.js → chunk.AZZ2NMUW.js} +1 -1
- package/{dist/chunks/chunk.3REGQAFA.js → cdn/chunks/chunk.B44THGJN.js} +1 -1
- package/cdn/chunks/{chunk.M7Y4QNCN.js → chunk.B6YTTGSP.js} +1 -1
- package/{dist/chunks/chunk.BGIZ44PS.js → cdn/chunks/chunk.C3ZO2T4M.js} +1 -1
- package/cdn/chunks/chunk.CMFROAGD.js +11 -0
- package/cdn/chunks/chunk.CPHER7LT.js +61 -0
- package/cdn/chunks/{chunk.ALXMBVVZ.js → chunk.DPC5A37S.js} +1 -1
- package/cdn/chunks/{chunk.6H77QHJW.js → chunk.DRO43W2Q.js} +1 -1
- package/cdn/chunks/{chunk.VAWFQPRW.js → chunk.DXUHDNR2.js} +1 -1
- package/cdn/chunks/{chunk.UVCDVWWN.js → chunk.ECXWQIDQ.js} +1 -1
- package/cdn/chunks/{chunk.YIABHSHN.js → chunk.EZMKGB3F.js} +5 -2
- package/cdn/chunks/{chunk.K6GAF43H.js → chunk.FCGFGTMF.js} +1 -1
- package/cdn/chunks/{chunk.6IMVZQLW.js → chunk.FOR62X7R.js} +2 -2
- package/cdn/chunks/{chunk.6LGRNEZ7.js → chunk.FS3ZYOYJ.js} +1 -1
- package/cdn/chunks/{chunk.LOCO37M5.js → chunk.FVNQDVSU.js} +438 -438
- package/cdn/chunks/chunk.FYWRHDMM.js +1314 -0
- package/cdn/chunks/{chunk.XO3SOVHY.js → chunk.G3K475WP.js} +1 -1
- package/cdn/chunks/{chunk.TJW5I73A.js → chunk.G6DIOURT.js} +1 -1
- package/{dist/chunks/chunk.MWJRQKMV.js → cdn/chunks/chunk.GQZQZ2HS.js} +1 -1
- package/{dist/chunks/chunk.ETRG47HH.js → cdn/chunks/chunk.HDUTNK76.js} +1 -1
- package/cdn/chunks/chunk.HWY63TSF.js +27 -0
- package/{dist/chunks/chunk.WMLL6DYO.js → cdn/chunks/chunk.I5WLJ5L3.js} +1 -1
- package/cdn/chunks/{chunk.VRGU3JD2.js → chunk.IR66XQLB.js} +11 -11
- package/cdn/chunks/chunk.IW5LSMO4.js +928 -0
- package/cdn/chunks/chunk.IX3FU7LW.js +21 -0
- package/cdn/chunks/chunk.K5CSW352.js +418 -0
- package/{dist/chunks/chunk.RW6R4LFF.js → cdn/chunks/chunk.KMFGKZ5A.js} +1 -1
- package/cdn/chunks/{chunk.YWXZHRQQ.js → chunk.KX3Z3J5J.js} +1 -1
- package/cdn/chunks/{chunk.TKZC2SRM.js → chunk.L7N566HD.js} +1 -1
- package/{dist/chunks/chunk.KMNSIF7V.js → cdn/chunks/chunk.LCPWWHRW.js} +1 -1
- package/cdn/chunks/chunk.LIGYFBVJ.js +21 -0
- package/{dist/chunks/chunk.ESISTPRD.js → cdn/chunks/chunk.MJOS7DJT.js} +1 -1
- package/cdn/chunks/{chunk.56BIFKWQ.js → chunk.ODSJ642O.js} +9 -9
- package/cdn/chunks/{chunk.4UYNOT7W.js → chunk.P5PLRHF4.js} +1 -1
- package/{dist/chunks/chunk.EM2KEB67.js → cdn/chunks/chunk.P7YVDGTI.js} +1 -1
- package/cdn/chunks/{chunk.5NU43HNV.js → chunk.PNYTGKX5.js} +1 -1
- package/cdn/chunks/{chunk.XHHFBPQM.js → chunk.PSAJO4PE.js} +8 -7
- package/cdn/chunks/{chunk.NCUMG4CT.js → chunk.PYENVYVD.js} +1 -1
- package/cdn/chunks/{chunk.4L2C3E3Z.js → chunk.QCGNAB7F.js} +1 -1
- package/cdn/chunks/chunk.QIVU3UVU.js +150 -0
- package/cdn/chunks/{chunk.KHIKTIEM.js → chunk.QLE3NTPL.js} +11 -11
- package/cdn/chunks/{chunk.7ZVIGV6V.js → chunk.R24K6QI4.js} +17 -9
- package/cdn/chunks/chunk.SF6MBAEP.js +20 -0
- package/cdn/chunks/{chunk.TEUZXQBU.js → chunk.SFG6BGI6.js} +4 -4
- package/cdn/chunks/{chunk.2UNF3BIO.js → chunk.SRTZLLQ5.js} +10 -10
- package/cdn/chunks/{chunk.H5LB4MBT.js → chunk.SSTISPFD.js} +1 -1
- package/cdn/chunks/{chunk.IQ7B6HFH.js → chunk.SXNVHR5M.js} +1 -1
- package/cdn/chunks/{chunk.SZAZG4YK.js → chunk.U3NYXUF6.js} +1 -1
- package/{dist/chunks/chunk.7KC6YXWL.js → cdn/chunks/chunk.UA5HHAYZ.js} +1 -1
- package/cdn/chunks/chunk.UBW72CYZ.js +11 -0
- package/cdn/chunks/{chunk.JE2FCOKF.js → chunk.UKQCOWLU.js} +1 -1
- package/{dist/chunks/chunk.775IHQR2.js → cdn/chunks/chunk.UOCDT7HQ.js} +13 -13
- package/cdn/chunks/{chunk.2NCB6JXM.js → chunk.VE5TVT6L.js} +1 -1
- package/cdn/chunks/{chunk.PNDWOMP6.js → chunk.VH6TLJG7.js} +2 -2
- package/cdn/chunks/{chunk.YCRGAL67.js → chunk.VZ3MBFKG.js} +1 -1
- package/cdn/chunks/{chunk.WRON76NZ.js → chunk.XAJZNITQ.js} +1 -1
- package/{dist/chunks/chunk.QUYMT5VP.js → cdn/chunks/chunk.XQK25A5Y.js} +1 -1
- package/cdn/chunks/{chunk.X2ZY3YLL.js → chunk.XUPAIJOR.js} +1 -1
- package/cdn/chunks/{chunk.H7IOI7PF.js → chunk.XYM7DLPS.js} +9 -9
- package/cdn/chunks/{chunk.ZLY7XE2R.js → chunk.YIPEL4RB.js} +1 -1
- package/{dist/chunks/chunk.S3TUAB7V.js → cdn/chunks/chunk.YKNGZO6V.js} +1 -1
- package/cdn/chunks/{chunk.BUKXWTWP.js → chunk.YTH6FKWR.js} +1 -1
- package/cdn/chunks/{chunk.4OS3WNGB.js → chunk.ZQDMMP6X.js} +34 -77
- package/cdn/components/accordion/accordion.component.d.ts +35 -0
- package/cdn/components/accordion/accordion.component.js +21 -0
- package/cdn/components/accordion/accordion.d.ts +8 -0
- package/cdn/components/accordion/accordion.js +22 -0
- package/cdn/components/accordion/accordion.styles.d.ts +2 -0
- package/cdn/components/accordion/accordion.styles.js +9 -0
- package/cdn/components/alert/alert.component.d.ts +74 -0
- package/cdn/components/alert/alert.component.js +16 -0
- package/cdn/components/alert/alert.d.ts +8 -0
- package/cdn/components/alert/alert.js +17 -0
- package/cdn/components/alert/alert.styles.d.ts +2 -0
- package/cdn/components/alert/alert.styles.js +9 -0
- package/cdn/components/browse-variables/browse-variables.component.js +27 -26
- package/cdn/components/browse-variables/browse-variables.controller.js +4 -4
- package/cdn/components/browse-variables/browse-variables.js +28 -27
- package/cdn/components/button/button.component.js +5 -4
- package/cdn/components/button/button.js +6 -5
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +7 -7
- package/cdn/components/combobox/combobox.js +8 -8
- package/cdn/components/data-rods/data-rods.component.js +42 -41
- package/cdn/components/data-rods/data-rods.js +43 -42
- package/cdn/components/data-subsetter/data-subsetter.component.d.ts +46 -0
- package/cdn/components/data-subsetter/data-subsetter.component.js +48 -0
- package/cdn/components/data-subsetter/data-subsetter.controller.d.ts +15 -0
- package/cdn/components/data-subsetter/data-subsetter.controller.js +11 -0
- package/cdn/components/data-subsetter/data-subsetter.d.ts +8 -0
- package/cdn/components/data-subsetter/data-subsetter.js +49 -0
- package/cdn/components/data-subsetter/data-subsetter.styles.d.ts +2 -0
- package/cdn/components/data-subsetter/data-subsetter.styles.js +9 -0
- package/cdn/components/date-picker/date-picker.component.d.ts +6 -0
- package/cdn/components/date-picker/date-picker.component.js +11 -3
- package/cdn/components/date-picker/date-picker.js +12 -4
- package/cdn/components/date-picker/date-picker.styles.js +1 -1
- package/cdn/components/date-range-slider/date-range-slider.component.js +4 -4
- package/cdn/components/date-range-slider/date-range-slider.js +5 -5
- package/cdn/components/dialog/dialog.component.js +2 -2
- package/cdn/components/dialog/dialog.js +3 -3
- package/cdn/components/icon/icon.component.js +5 -5
- package/cdn/components/icon/icon.js +6 -6
- package/cdn/components/icon/library.default.js +1 -1
- 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 +18 -17
- package/cdn/components/login/login.js +19 -18
- package/cdn/components/map/leaflet-utils.d.ts +4 -6
- package/cdn/components/map/leaflet-utils.js +1 -1
- package/cdn/components/map/map.component.d.ts +2 -0
- package/cdn/components/map/map.component.js +7 -7
- package/cdn/components/map/map.js +8 -8
- package/cdn/components/map/type.d.ts +1 -1
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/skeleton/skeleton.component.js +7 -7
- package/cdn/components/skeleton/skeleton.js +8 -8
- package/cdn/components/spatial-picker/spatial-picker.component.d.ts +2 -0
- package/cdn/components/spatial-picker/spatial-picker.component.js +8 -8
- package/cdn/components/spatial-picker/spatial-picker.js +9 -9
- package/cdn/components/time-series/time-series.component.js +21 -20
- package/cdn/components/time-series/time-series.controller.js +3 -3
- package/cdn/components/time-series/time-series.js +22 -21
- package/cdn/components/variable-combobox/lib.js +3 -3
- package/cdn/components/variable-combobox/variable-combobox.component.js +22 -21
- package/cdn/components/variable-combobox/variable-combobox.controller.js +4 -4
- package/cdn/components/variable-combobox/variable-combobox.js +23 -22
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +22 -21
- package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +4 -4
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +23 -22
- package/cdn/custom-elements.json +2032 -971
- package/cdn/data-services/harmony-data-service.d.ts +12 -0
- package/cdn/data-services/queries.d.ts +4 -0
- package/cdn/data-services/types.d.ts +125 -0
- package/cdn/events/events.d.ts +2 -0
- package/cdn/events/terra-after-hide.d.ts +6 -0
- package/cdn/events/terra-after-show.d.ts +6 -0
- package/cdn/react/accordion/index.d.ts +19 -0
- package/cdn/react/accordion/index.js +22 -0
- package/cdn/react/alert/index.d.ts +37 -0
- package/cdn/react/alert/index.js +17 -0
- package/cdn/react/browse-variables/index.js +28 -27
- package/cdn/react/button/index.js +6 -5
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +8 -8
- package/cdn/react/data-rods/index.js +43 -42
- package/cdn/react/data-subsetter/index.d.ts +18 -0
- package/cdn/react/data-subsetter/index.js +49 -0
- package/cdn/react/date-picker/index.js +12 -4
- package/cdn/react/date-range-slider/index.js +5 -5
- package/cdn/react/dialog/index.js +3 -3
- package/cdn/react/icon/index.js +6 -6
- package/cdn/react/index.d.ts +3 -0
- package/cdn/react/index.js +105 -84
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +19 -18
- package/cdn/react/map/index.js +8 -8
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/skeleton/index.js +8 -8
- package/cdn/react/spatial-picker/index.js +9 -9
- package/cdn/react/time-series/index.js +22 -21
- package/cdn/react/variable-combobox/index.js +23 -22
- package/cdn/react/variable-keyword-search/index.js +23 -22
- package/cdn/terra-ui-components.d.ts +3 -0
- package/cdn/terra-ui-components.js +107 -86
- package/cdn/types/vue/index.d.ts +211 -71
- package/cdn/utilities/animation.js +5 -5
- package/cdn/utilities/date.d.ts +1 -1
- package/cdn/utilities/date.js +1 -1
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/utilities/mimetypes.d.ts +2 -0
- package/cdn/utilities/mimetypes.js +9 -0
- package/cdn/vscode.html-custom-data.json +88 -0
- package/cdn/web-types.json +352 -114
- package/dist/assets/data-subsetter/download_subset_files.py.txt +66 -0
- package/dist/chunks/{chunk.FOHGUYVS.js → chunk.2RKHDDU2.js} +1 -1
- package/dist/chunks/{chunk.XLJ7TVUS.js → chunk.2XANNG2B.js} +1 -1
- package/dist/chunks/{chunk.AY7TGBWI.js → chunk.3IQ5IBBM.js} +1 -1
- package/dist/chunks/{chunk.R3YZ7KJF.js → chunk.3L2XDJOH.js} +1 -1
- package/dist/chunks/{chunk.MZK7WRKF.js → chunk.43S45WWI.js} +1 -1
- package/{cdn/chunks/chunk.OJGOBLIU.js → dist/chunks/chunk.5KLM57QY.js} +1 -1
- package/dist/chunks/{chunk.HR67OJ25.js → chunk.5NA7WX55.js} +1 -1
- package/dist/chunks/{chunk.4BU4Y56M.js → chunk.5SHIUY5G.js} +6 -6
- package/dist/chunks/{chunk.UYRZ6XBT.js → chunk.5VVBRICA.js} +1 -1
- package/dist/chunks/chunk.6OAPBJRP.js +49 -0
- package/dist/chunks/{chunk.KZZM5DIH.js → chunk.6QIHYJP5.js} +1 -1
- package/dist/chunks/{chunk.AONG4JL6.js → chunk.7F2DLFLG.js} +2 -2
- package/dist/chunks/{chunk.GB2BB7RB.js → chunk.7NFT5ART.js} +1 -1
- package/dist/chunks/chunk.7NTMVXIC.js +925 -0
- package/dist/chunks/{chunk.O5JIPX5F.js → chunk.A2QLZY2M.js} +9 -9
- package/dist/chunks/{chunk.U5ORWUDI.js → chunk.A7OKAATM.js} +1 -1
- package/dist/chunks/chunk.BAKHMLBF.js +11 -0
- package/dist/chunks/{chunk.LPSLYYX7.js → chunk.BH6T35XA.js} +1 -1
- package/dist/chunks/chunk.BLS652FJ.js +21 -0
- package/dist/chunks/chunk.BMXRPN3G.js +27 -0
- package/dist/chunks/chunk.BQ62RLR7.js +11 -0
- package/{cdn/chunks/chunk.2TA36AD4.js → dist/chunks/chunk.BWS7VIBN.js} +1 -1
- package/{cdn/chunks/chunk.L5N5757Y.js → dist/chunks/chunk.CQZQUK25.js} +1 -1
- package/{cdn/chunks/chunk.XR376PMT.js → dist/chunks/chunk.CRZR5BJI.js} +1 -1
- package/{cdn/chunks/chunk.RLI6ON2C.js → dist/chunks/chunk.DGDGO4B7.js} +1 -1
- package/dist/chunks/chunk.DLY7WEID.js +263 -0
- package/dist/chunks/{chunk.H55GDBVS.js → chunk.DNVFMGDI.js} +2 -2
- package/dist/chunks/{chunk.RHT75OOW.js → chunk.E27YXBMX.js} +3 -3
- package/{cdn/chunks/chunk.KCZLV65J.js → dist/chunks/chunk.ECA2Y7HR.js} +1 -1
- package/dist/chunks/{chunk.WVAXV6VX.js → chunk.EZDSFP5I.js} +1 -1
- package/dist/chunks/{chunk.OJHJP7K2.js → chunk.FV3CJUU7.js} +1 -1
- package/dist/chunks/{chunk.EXZP753L.js → chunk.FWZVCL6J.js} +1 -1
- package/dist/chunks/chunk.GGUB2JVZ.js +73 -0
- package/dist/chunks/{chunk.K2RM2IR7.js → chunk.GSJX5TID.js} +16 -8
- package/{cdn/chunks/chunk.F7E3OXW3.js → dist/chunks/chunk.GVEKK7CF.js} +1 -1
- package/dist/chunks/chunk.HDDKRXZX.js +1308 -0
- package/dist/chunks/{chunk.TFI3UXXB.js → chunk.HFD6TPE6.js} +1 -1
- package/{cdn/chunks/chunk.TPNEBQDW.js → dist/chunks/chunk.HM3ZTCTP.js} +1 -1
- package/dist/chunks/{chunk.2LQ62YDQ.js → chunk.I533JNF6.js} +1 -1
- package/dist/chunks/{chunk.34UGHNQ2.js → chunk.IKDCFYUH.js} +23 -6
- package/dist/chunks/{chunk.33MT36PS.js → chunk.IU5SV56O.js} +1 -1
- package/dist/chunks/chunk.JDQC6NXM.js +418 -0
- package/{cdn/chunks/chunk.KTVGWBMV.js → dist/chunks/chunk.K6JJQ4SX.js} +1 -1
- package/dist/chunks/{chunk.7JBFBZ5C.js → chunk.KMN7L6QZ.js} +5 -2
- package/dist/chunks/chunk.KRQ4AG3O.js +11 -0
- package/dist/chunks/chunk.MNJWY2UW.js +21 -0
- package/{cdn/chunks/chunk.WLC45QMC.js → dist/chunks/chunk.N25BS4ZB.js} +1 -1
- package/{cdn/chunks/chunk.RGI5ZEXR.js → dist/chunks/chunk.NJIZMOG7.js} +1 -1
- package/dist/chunks/{chunk.TBBYOYJ7.js → chunk.O27IYL4H.js} +1 -1
- package/dist/chunks/{chunk.XZXT5MBD.js → chunk.OF2CXRSX.js} +1 -1
- package/dist/chunks/{chunk.UBJGRBUX.js → chunk.OYPYQ42W.js} +1 -1
- package/dist/chunks/{chunk.NFHX7J4A.js → chunk.QQRC2LRM.js} +11 -11
- package/dist/chunks/chunk.QVAN2K7E.js +147 -0
- package/dist/chunks/{chunk.WSGVJC5A.js → chunk.QVZCOSQG.js} +4 -4
- package/dist/chunks/{chunk.5LNGPR44.js → chunk.R44HGSGT.js} +1 -1
- package/dist/chunks/{chunk.3B622XLR.js → chunk.RLNWDA4W.js} +4 -4
- package/dist/chunks/{chunk.3W53HERF.js → chunk.RQ5ZXHVZ.js} +1 -1
- package/dist/chunks/chunk.SF6MBAEP.js +20 -0
- package/dist/chunks/{chunk.LNC5EYCJ.js → chunk.SLXHKQQV.js} +7 -52
- package/dist/chunks/{chunk.WJV65UWS.js → chunk.SXWW6H7G.js} +1 -1
- package/dist/chunks/{chunk.RROJPL2A.js → chunk.TF5MPUEH.js} +1 -1
- package/dist/chunks/{chunk.T2K2FVDX.js → chunk.TO2LNCEQ.js} +1 -1
- package/dist/chunks/{chunk.5W3SNZBC.js → chunk.TQWLVZHQ.js} +8 -7
- package/dist/chunks/{chunk.CPEM43Y5.js → chunk.U6Y5XC7Y.js} +1 -1
- package/{cdn/chunks/chunk.7KC6YXWL.js → dist/chunks/chunk.UA5HHAYZ.js} +1 -1
- package/dist/chunks/{chunk.Z5E25XLP.js → chunk.UATKNBZS.js} +9 -9
- package/{cdn/chunks/chunk.775IHQR2.js → dist/chunks/chunk.UOCDT7HQ.js} +13 -13
- package/{cdn/chunks/chunk.4TXEYAPR.js → dist/chunks/chunk.UOGBFLVH.js} +1 -1
- package/{cdn/chunks/chunk.2NMZMEIL.js → dist/chunks/chunk.VE3COXRN.js} +1 -1
- package/dist/chunks/{chunk.ZRI4D77S.js → chunk.VKOQTQOM.js} +4 -4
- package/dist/chunks/{chunk.QAXYS5OA.js → chunk.WLHYNUHM.js} +1 -1
- package/dist/chunks/{chunk.RPLQHZS6.js → chunk.WYF3PXVO.js} +18 -5
- package/dist/chunks/{chunk.UTDJAXDL.js → chunk.YEIAGN3D.js} +1 -1
- package/dist/chunks/chunk.Z3GLEDYM.js +58 -0
- package/dist/chunks/{chunk.2TZUQC72.js → chunk.Z6VGIT4W.js} +1 -1
- package/{cdn/chunks/chunk.BOEWKIKL.js → dist/chunks/chunk.ZAE4U4Y7.js} +1 -1
- package/{cdn/chunks/chunk.MSGOYUSX.js → dist/chunks/chunk.ZAFEQXY3.js} +1 -1
- package/dist/chunks/{chunk.2IUOMVRJ.js → chunk.ZI3DJGWN.js} +1 -1
- package/{cdn/chunks/chunk.I5ZDFQF3.js → dist/chunks/chunk.ZRD3ZNCG.js} +1 -1
- package/dist/components/accordion/accordion.component.d.ts +35 -0
- package/dist/components/accordion/accordion.component.js +16 -0
- package/dist/components/accordion/accordion.d.ts +8 -0
- package/dist/components/accordion/accordion.js +17 -0
- package/dist/components/accordion/accordion.styles.d.ts +2 -0
- package/dist/components/accordion/accordion.styles.js +7 -0
- package/dist/components/alert/alert.component.d.ts +74 -0
- package/dist/components/alert/alert.component.js +11 -0
- package/dist/components/alert/alert.d.ts +8 -0
- package/dist/components/alert/alert.js +12 -0
- package/dist/components/alert/alert.styles.d.ts +2 -0
- package/dist/components/alert/alert.styles.js +7 -0
- package/dist/components/browse-variables/browse-variables.component.js +19 -18
- package/dist/components/browse-variables/browse-variables.controller.js +3 -3
- package/dist/components/browse-variables/browse-variables.js +20 -19
- package/dist/components/button/button.component.js +4 -3
- package/dist/components/button/button.js +5 -4
- package/dist/components/chip/chip.component.js +2 -2
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/combobox/combobox.component.js +3 -3
- package/dist/components/combobox/combobox.js +4 -4
- package/dist/components/data-rods/data-rods.component.js +30 -29
- package/dist/components/data-rods/data-rods.js +31 -30
- package/dist/components/data-subsetter/data-subsetter.component.d.ts +46 -0
- package/dist/components/data-subsetter/data-subsetter.component.js +37 -0
- package/dist/components/data-subsetter/data-subsetter.controller.d.ts +15 -0
- package/dist/components/data-subsetter/data-subsetter.controller.js +9 -0
- package/dist/components/data-subsetter/data-subsetter.d.ts +8 -0
- package/dist/components/data-subsetter/data-subsetter.js +38 -0
- package/dist/components/data-subsetter/data-subsetter.styles.d.ts +2 -0
- package/dist/components/data-subsetter/data-subsetter.styles.js +7 -0
- package/dist/components/date-picker/date-picker.component.d.ts +6 -0
- package/dist/components/date-picker/date-picker.component.js +8 -3
- package/dist/components/date-picker/date-picker.js +9 -4
- package/dist/components/date-picker/date-picker.styles.js +1 -1
- package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
- package/dist/components/date-range-slider/date-range-slider.js +4 -4
- package/dist/components/dialog/dialog.component.js +2 -2
- package/dist/components/dialog/dialog.js +3 -3
- package/dist/components/icon/icon.component.js +5 -5
- package/dist/components/icon/icon.js +6 -6
- package/dist/components/icon/library.default.js +1 -1
- 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 +14 -13
- package/dist/components/login/login.js +15 -14
- package/dist/components/map/leaflet-utils.d.ts +4 -6
- package/dist/components/map/leaflet-utils.js +1 -1
- package/dist/components/map/map.component.d.ts +2 -0
- package/dist/components/map/map.component.js +5 -5
- package/dist/components/map/map.js +6 -6
- package/dist/components/map/type.d.ts +1 -1
- 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 +2 -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.js +15 -14
- package/dist/components/time-series/time-series.controller.js +2 -2
- package/dist/components/time-series/time-series.js +16 -15
- package/dist/components/variable-combobox/variable-combobox.component.js +12 -11
- package/dist/components/variable-combobox/variable-combobox.js +13 -12
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +15 -14
- package/dist/components/variable-keyword-search/variable-keyword-search.controller.js +3 -3
- package/dist/components/variable-keyword-search/variable-keyword-search.js +16 -15
- package/dist/custom-elements.json +2032 -971
- package/dist/data-services/harmony-data-service.d.ts +12 -0
- package/dist/data-services/queries.d.ts +4 -0
- package/dist/data-services/types.d.ts +125 -0
- package/dist/events/events.d.ts +2 -0
- package/dist/events/terra-after-hide.d.ts +6 -0
- package/dist/events/terra-after-show.d.ts +6 -0
- package/dist/react/accordion/index.d.ts +19 -0
- package/dist/react/accordion/index.js +17 -0
- package/dist/react/alert/index.d.ts +37 -0
- package/dist/react/alert/index.js +12 -0
- package/dist/react/browse-variables/index.js +20 -19
- package/dist/react/button/index.js +5 -4
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +4 -4
- package/dist/react/data-rods/index.js +31 -30
- package/dist/react/data-subsetter/index.d.ts +18 -0
- package/dist/react/data-subsetter/index.js +38 -0
- package/dist/react/date-picker/index.js +9 -4
- package/dist/react/date-range-slider/index.js +4 -4
- package/dist/react/dialog/index.js +3 -3
- package/dist/react/icon/index.js +6 -6
- package/dist/react/index.d.ts +3 -0
- package/dist/react/index.js +92 -71
- package/dist/react/loader/index.js +3 -3
- package/dist/react/login/index.js +15 -14
- 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.js +16 -15
- package/dist/react/variable-combobox/index.js +13 -12
- package/dist/react/variable-keyword-search/index.js +16 -15
- package/dist/terra-ui-components.d.ts +3 -0
- package/dist/terra-ui-components.js +95 -74
- package/dist/{terra_ui_components-0.0.52-py3-none-any.whl → terra_ui_components-0.0.53-py3-none-any.whl} +0 -0
- package/dist/{terra_ui_components-0.0.52.tar.gz → terra_ui_components-0.0.53.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +211 -71
- package/dist/utilities/date.d.ts +1 -1
- package/dist/utilities/date.js +1 -1
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/mimetypes.d.ts +2 -0
- package/dist/utilities/mimetypes.js +9 -0
- package/dist/vscode.html-custom-data.json +88 -0
- package/dist/web-types.json +352 -114
- package/package.json +1 -1
- package/cdn/chunks/{chunk.2XCNCXGV.js → chunk.262RZKG2.js} +3 -3
- package/cdn/chunks/{chunk.PZRCJWJ4.js → chunk.6WMXHA2J.js} +5 -5
- package/cdn/chunks/{chunk.QB5SASDL.js → chunk.FKLQEDIX.js} +4 -4
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python script for downloading data from a NASA Harmony job
|
|
3
|
+
|
|
4
|
+
Requirements:
|
|
5
|
+
> pip install harmony
|
|
6
|
+
|
|
7
|
+
To run the script: `python download_subset_files_{{jobId}}.py`
|
|
8
|
+
|
|
9
|
+
You will be prompted for your Earthdata Login (https://urs.earthdata.nasa.gov) username and password.
|
|
10
|
+
|
|
11
|
+
If you would rather, you can store your EDL credentials in a .netrc file:
|
|
12
|
+
> cd ~
|
|
13
|
+
> touch .netrc
|
|
14
|
+
> echo "machine urs.earthdata.nasa.gov login uid_goes_here password password_goes_here" > .netrc
|
|
15
|
+
> chmod 0600 .netrc
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from harmony import Client
|
|
19
|
+
from harmony.config import Environment
|
|
20
|
+
import netrc
|
|
21
|
+
from getpass import getpass
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def main(job_id="{{jobId}}"):
|
|
25
|
+
login, password = get_login_credentials()
|
|
26
|
+
harmony_client = Client(auth=(login, password), env=Environment.PROD)
|
|
27
|
+
|
|
28
|
+
print("Getting the subset job status from Harmony for job: ", job_id)
|
|
29
|
+
job = harmony_client.status(job_id)
|
|
30
|
+
|
|
31
|
+
if job["status"] != "successful" and job["status"] != "complete_with_errors":
|
|
32
|
+
# we need to wait for the job to complete
|
|
33
|
+
print("Waiting for the job to finish")
|
|
34
|
+
harmony_client.wait_for_processing(job_id, show_progress=True)
|
|
35
|
+
|
|
36
|
+
# get a list of the jobs data urls
|
|
37
|
+
urls = harmony_client.result_urls(job_id)
|
|
38
|
+
|
|
39
|
+
print("Downloading ", sum(1 for _ in urls), " files\n")
|
|
40
|
+
|
|
41
|
+
futures = harmony_client.download_all(job_id)
|
|
42
|
+
[f.result() for f in futures]
|
|
43
|
+
|
|
44
|
+
print("\nFinished downloading files!")
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def get_login_credentials():
|
|
48
|
+
login = None
|
|
49
|
+
password = None
|
|
50
|
+
|
|
51
|
+
try:
|
|
52
|
+
nrc = netrc.netrc()
|
|
53
|
+
login, _account, password = nrc.authenticators("urs.earthdata.nasa.gov")
|
|
54
|
+
except Exception:
|
|
55
|
+
login = None
|
|
56
|
+
password = None
|
|
57
|
+
|
|
58
|
+
if not login:
|
|
59
|
+
login = input("Earthdata Login username: ")
|
|
60
|
+
password = getpass("Password: ")
|
|
61
|
+
|
|
62
|
+
return login, password
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
if __name__ == "__main__":
|
|
66
|
+
main()
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
date_picker_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PSAJO4PE.js";
|
|
4
|
+
import {
|
|
5
|
+
TerraButton
|
|
6
|
+
} from "./chunk.ZQDMMP6X.js";
|
|
4
7
|
import {
|
|
5
8
|
TerraElement,
|
|
6
9
|
component_styles_default
|
|
7
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.FS3ZYOYJ.js";
|
|
8
11
|
import {
|
|
9
12
|
e,
|
|
10
13
|
n
|
|
@@ -3592,6 +3595,9 @@ var TerraDatePicker = class extends TerraElement {
|
|
|
3592
3595
|
}
|
|
3593
3596
|
firstUpdated() {
|
|
3594
3597
|
this.flatpickrElement.addEventListener("change", this.handleChange.bind(this));
|
|
3598
|
+
setTimeout(() => {
|
|
3599
|
+
this.flatpickrElement.shadowRoot.querySelector("input").addEventListener("blur", this.handleBlur.bind(this));
|
|
3600
|
+
}, 250);
|
|
3595
3601
|
}
|
|
3596
3602
|
handleChange(selectedDates) {
|
|
3597
3603
|
var _a, _b;
|
|
@@ -3601,6 +3607,9 @@ var TerraDatePicker = class extends TerraElement {
|
|
|
3601
3607
|
};
|
|
3602
3608
|
this.emit("terra-change");
|
|
3603
3609
|
}
|
|
3610
|
+
handleBlur() {
|
|
3611
|
+
this.handleChange(this.flatpickrElement._instance.selectedDates);
|
|
3612
|
+
}
|
|
3604
3613
|
render() {
|
|
3605
3614
|
return x`
|
|
3606
3615
|
<div class="date-picker">
|
|
@@ -3618,7 +3627,7 @@ var TerraDatePicker = class extends TerraElement {
|
|
|
3618
3627
|
.maxDate=${this.maxDate}
|
|
3619
3628
|
.defaultDate=${this.range ? [this.startDate, this.endDate].filter(
|
|
3620
3629
|
Boolean
|
|
3621
|
-
) : this.
|
|
3630
|
+
) : this.defaultDate}
|
|
3622
3631
|
.allowInput=${this.allowInput}
|
|
3623
3632
|
.altFormat=${this.altFormat}
|
|
3624
3633
|
.altInput=${this.altInput}
|
|
@@ -3633,10 +3642,12 @@ var TerraDatePicker = class extends TerraElement {
|
|
|
3633
3642
|
theme="material_blue"
|
|
3634
3643
|
.onChange="${this.handleChange.bind(this)}"
|
|
3635
3644
|
></lit-flatpickr>
|
|
3636
|
-
<button
|
|
3645
|
+
<terra-button
|
|
3646
|
+
shape="square-left"
|
|
3647
|
+
size="medium"
|
|
3637
3648
|
class="date-picker__input_icon_button"
|
|
3638
|
-
type="button"
|
|
3639
3649
|
@click=${() => this.flatpickrElement.open()}
|
|
3650
|
+
type="button"
|
|
3640
3651
|
>
|
|
3641
3652
|
<svg
|
|
3642
3653
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -3652,13 +3663,16 @@ var TerraDatePicker = class extends TerraElement {
|
|
|
3652
3663
|
d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5"
|
|
3653
3664
|
/>
|
|
3654
3665
|
</svg>
|
|
3655
|
-
</button>
|
|
3666
|
+
</terra-button>
|
|
3656
3667
|
</div>
|
|
3657
3668
|
</div>
|
|
3658
3669
|
`;
|
|
3659
3670
|
}
|
|
3660
3671
|
};
|
|
3661
3672
|
TerraDatePicker.styles = [component_styles_default, date_picker_styles_default];
|
|
3673
|
+
TerraDatePicker.dependencies = {
|
|
3674
|
+
"terra-button": TerraButton
|
|
3675
|
+
};
|
|
3662
3676
|
__decorateClass([
|
|
3663
3677
|
n()
|
|
3664
3678
|
], TerraDatePicker.prototype, "id", 2);
|
|
@@ -3677,6 +3691,9 @@ __decorateClass([
|
|
|
3677
3691
|
__decorateClass([
|
|
3678
3692
|
n({ attribute: "end-date" })
|
|
3679
3693
|
], TerraDatePicker.prototype, "endDate", 2);
|
|
3694
|
+
__decorateClass([
|
|
3695
|
+
n({ attribute: "default-date" })
|
|
3696
|
+
], TerraDatePicker.prototype, "defaultDate", 2);
|
|
3680
3697
|
__decorateClass([
|
|
3681
3698
|
n({ type: Boolean, attribute: "allow-input" })
|
|
3682
3699
|
], TerraDatePicker.prototype, "allowInput", 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
format
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.FCGFGTMF.js";
|
|
4
4
|
import {
|
|
5
5
|
date_range_slider_styles_default
|
|
6
6
|
} from "./chunk.WTMN7OUL.js";
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
TerraElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.FS3ZYOYJ.js";
|
|
17
17
|
import {
|
|
18
18
|
e,
|
|
19
19
|
n
|
|
20
20
|
} from "./chunk.2FFSUM6T.js";
|
|
21
21
|
import {
|
|
22
22
|
isValidDate
|
|
23
|
-
} from "./chunk.
|
|
23
|
+
} from "./chunk.EZMKGB3F.js";
|
|
24
24
|
import {
|
|
25
25
|
x
|
|
26
26
|
} from "./chunk.PQFHJHNO.js";
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk.POKHGMEN.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraMap
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.R24K6QI4.js";
|
|
7
7
|
import {
|
|
8
8
|
StringifyBoundingBox,
|
|
9
9
|
parseBoundingBox
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.5BO2XAMO.js";
|
|
11
11
|
import {
|
|
12
12
|
TerraElement,
|
|
13
13
|
component_styles_default
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.FS3ZYOYJ.js";
|
|
15
15
|
import {
|
|
16
16
|
e,
|
|
17
17
|
n,
|
|
@@ -135,11 +135,14 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
135
135
|
.value=${this.mapValue}
|
|
136
136
|
?has-navigation=${this.hasNavigation}
|
|
137
137
|
?has-shape-selector=${this.hasShapeSelector}
|
|
138
|
+
?hide-bounding-box-selection=${this.hideBoundingBoxSelection}
|
|
139
|
+
?hide-point-selection=${this.hidePointSelection}
|
|
138
140
|
@terra-map-change=${this._handleMapChange}
|
|
139
141
|
>
|
|
140
142
|
</terra-map>`;
|
|
141
143
|
}
|
|
142
144
|
render() {
|
|
145
|
+
const expanded = this.inline ? true : this.isExpanded;
|
|
143
146
|
return x`
|
|
144
147
|
<div class="spatial-picker">
|
|
145
148
|
<label
|
|
@@ -155,7 +158,7 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
155
158
|
class="spatial-picker__input form-control"
|
|
156
159
|
placeholder="${this.spatialConstraints}"
|
|
157
160
|
aria-controls="map"
|
|
158
|
-
aria-expanded=${
|
|
161
|
+
aria-expanded=${expanded}
|
|
159
162
|
@blur=${this._blur}
|
|
160
163
|
@focus=${this._focus}
|
|
161
164
|
/>
|
|
@@ -181,7 +184,11 @@ var TerraSpatialPicker = class extends TerraElement {
|
|
|
181
184
|
</svg>
|
|
182
185
|
</terra-button>
|
|
183
186
|
</div>
|
|
184
|
-
${
|
|
187
|
+
${expanded ? x`<div
|
|
188
|
+
style="${this.inline ? "position: static; width: 100%;" : ""}"
|
|
189
|
+
>
|
|
190
|
+
${this.renderMap()}
|
|
191
|
+
</div>` : T}
|
|
185
192
|
</div>
|
|
186
193
|
`;
|
|
187
194
|
}
|
|
@@ -208,6 +215,12 @@ __decorateClass([
|
|
|
208
215
|
__decorateClass([
|
|
209
216
|
n({ attribute: "has-shape-selector", type: Boolean })
|
|
210
217
|
], TerraSpatialPicker.prototype, "hasShapeSelector", 2);
|
|
218
|
+
__decorateClass([
|
|
219
|
+
n({ attribute: "hide-bounding-box-selection", type: Boolean })
|
|
220
|
+
], TerraSpatialPicker.prototype, "hideBoundingBoxSelection", 2);
|
|
221
|
+
__decorateClass([
|
|
222
|
+
n({ attribute: "hide-point-selection", type: Boolean })
|
|
223
|
+
], TerraSpatialPicker.prototype, "hidePointSelection", 2);
|
|
211
224
|
__decorateClass([
|
|
212
225
|
n({ attribute: "initial-value" })
|
|
213
226
|
], TerraSpatialPicker.prototype, "initialValue", 2);
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import {
|
|
2
|
+
alert_styles_default
|
|
3
|
+
} from "./chunk.QIVU3UVU.js";
|
|
4
|
+
import {
|
|
5
|
+
HasSlotController
|
|
6
|
+
} from "./chunk.6OAPBJRP.js";
|
|
7
|
+
import {
|
|
8
|
+
e
|
|
9
|
+
} from "./chunk.YVSJQ4KD.js";
|
|
10
|
+
import {
|
|
11
|
+
watch
|
|
12
|
+
} from "./chunk.6MMTW476.js";
|
|
13
|
+
import {
|
|
14
|
+
TerraElement,
|
|
15
|
+
component_styles_default
|
|
16
|
+
} from "./chunk.FS3ZYOYJ.js";
|
|
17
|
+
import {
|
|
18
|
+
e as e2,
|
|
19
|
+
n,
|
|
20
|
+
r
|
|
21
|
+
} from "./chunk.2FFSUM6T.js";
|
|
22
|
+
import {
|
|
23
|
+
x
|
|
24
|
+
} from "./chunk.PQFHJHNO.js";
|
|
25
|
+
import {
|
|
26
|
+
__decorateClass
|
|
27
|
+
} from "./chunk.6JHIJHTB.js";
|
|
28
|
+
|
|
29
|
+
// src/internal/event.ts
|
|
30
|
+
function waitForEvent(el, eventName) {
|
|
31
|
+
return new Promise((resolve) => {
|
|
32
|
+
function done(event) {
|
|
33
|
+
if (event.target === el) {
|
|
34
|
+
el.removeEventListener(eventName, done);
|
|
35
|
+
resolve();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
el.addEventListener(eventName, done);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// src/components/alert/alert.component.ts
|
|
43
|
+
var _TerraAlert = class _TerraAlert extends TerraElement {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments);
|
|
46
|
+
this.hasSlotController = new HasSlotController(this, "icon", "suffix");
|
|
47
|
+
this.open = false;
|
|
48
|
+
this.closable = false;
|
|
49
|
+
this.variant = "primary";
|
|
50
|
+
this.duration = Infinity;
|
|
51
|
+
this.remainingTime = this.duration;
|
|
52
|
+
}
|
|
53
|
+
static define(tag = "terra-alert") {
|
|
54
|
+
if (!customElements.get(tag)) {
|
|
55
|
+
customElements.define(tag, this);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
static get toastStack() {
|
|
59
|
+
if (!this.currentToastStack) {
|
|
60
|
+
this.currentToastStack = Object.assign(document.createElement("div"), {
|
|
61
|
+
className: "terra-toast-stack"
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return this.currentToastStack;
|
|
65
|
+
}
|
|
66
|
+
firstUpdated() {
|
|
67
|
+
this.base.hidden = !this.open;
|
|
68
|
+
}
|
|
69
|
+
restartAutoHide() {
|
|
70
|
+
this.handleCountdownChange();
|
|
71
|
+
clearTimeout(this.autoHideTimeout);
|
|
72
|
+
clearInterval(this.remainingTimeInterval);
|
|
73
|
+
if (this.open && this.duration < Infinity) {
|
|
74
|
+
this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);
|
|
75
|
+
this.remainingTime = this.duration;
|
|
76
|
+
this.remainingTimeInterval = window.setInterval(() => {
|
|
77
|
+
this.remainingTime -= 100;
|
|
78
|
+
}, 100);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
pauseAutoHide() {
|
|
82
|
+
var _a;
|
|
83
|
+
(_a = this.countdownAnimation) == null ? void 0 : _a.pause();
|
|
84
|
+
clearTimeout(this.autoHideTimeout);
|
|
85
|
+
clearInterval(this.remainingTimeInterval);
|
|
86
|
+
}
|
|
87
|
+
resumeAutoHide() {
|
|
88
|
+
var _a;
|
|
89
|
+
if (this.duration < Infinity) {
|
|
90
|
+
this.autoHideTimeout = window.setTimeout(
|
|
91
|
+
() => this.hide(),
|
|
92
|
+
this.remainingTime
|
|
93
|
+
);
|
|
94
|
+
this.remainingTimeInterval = window.setInterval(() => {
|
|
95
|
+
this.remainingTime -= 100;
|
|
96
|
+
}, 100);
|
|
97
|
+
(_a = this.countdownAnimation) == null ? void 0 : _a.play();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
handleCountdownChange() {
|
|
101
|
+
if (this.open && this.duration < Infinity && this.countdown) {
|
|
102
|
+
const { countdownElement } = this;
|
|
103
|
+
const start = "100%";
|
|
104
|
+
const end = "0";
|
|
105
|
+
this.countdownAnimation = countdownElement.animate(
|
|
106
|
+
[{ width: start }, { width: end }],
|
|
107
|
+
{
|
|
108
|
+
duration: this.duration,
|
|
109
|
+
easing: "linear"
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
handleCloseClick() {
|
|
115
|
+
this.hide();
|
|
116
|
+
}
|
|
117
|
+
async handleOpenChange() {
|
|
118
|
+
if (this.open) {
|
|
119
|
+
this.emit("terra-show");
|
|
120
|
+
if (this.duration < Infinity) {
|
|
121
|
+
this.restartAutoHide();
|
|
122
|
+
}
|
|
123
|
+
this.emit("terra-after-show");
|
|
124
|
+
} else {
|
|
125
|
+
this.emit("terra-hide");
|
|
126
|
+
clearTimeout(this.autoHideTimeout);
|
|
127
|
+
clearInterval(this.remainingTimeInterval);
|
|
128
|
+
this.emit("terra-after-hide");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
handleDurationChange() {
|
|
132
|
+
this.restartAutoHide();
|
|
133
|
+
}
|
|
134
|
+
/** Shows the alert. */
|
|
135
|
+
async show() {
|
|
136
|
+
if (this.open) {
|
|
137
|
+
return void 0;
|
|
138
|
+
}
|
|
139
|
+
this.open = true;
|
|
140
|
+
return waitForEvent(this, "terra-after-show");
|
|
141
|
+
}
|
|
142
|
+
/** Hides the alert */
|
|
143
|
+
async hide() {
|
|
144
|
+
if (!this.open) {
|
|
145
|
+
return void 0;
|
|
146
|
+
}
|
|
147
|
+
this.open = false;
|
|
148
|
+
return waitForEvent(this, "terra-after-hide");
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when
|
|
152
|
+
* dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by
|
|
153
|
+
* calling this method again. The returned promise will resolve after the alert is hidden.
|
|
154
|
+
*/
|
|
155
|
+
async toast() {
|
|
156
|
+
return new Promise((resolve) => {
|
|
157
|
+
this.handleCountdownChange();
|
|
158
|
+
if (_TerraAlert.toastStack.parentElement === null) {
|
|
159
|
+
document.body.append(_TerraAlert.toastStack);
|
|
160
|
+
}
|
|
161
|
+
_TerraAlert.toastStack.appendChild(this);
|
|
162
|
+
requestAnimationFrame(() => {
|
|
163
|
+
this.clientWidth;
|
|
164
|
+
this.show();
|
|
165
|
+
});
|
|
166
|
+
this.addEventListener(
|
|
167
|
+
"terra-after-hide",
|
|
168
|
+
() => {
|
|
169
|
+
_TerraAlert.toastStack.removeChild(this);
|
|
170
|
+
resolve();
|
|
171
|
+
if (_TerraAlert.toastStack.querySelector("terra-alert") === null) {
|
|
172
|
+
_TerraAlert.toastStack.remove();
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{ once: true }
|
|
176
|
+
);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
render() {
|
|
180
|
+
return x`
|
|
181
|
+
<div
|
|
182
|
+
part="base"
|
|
183
|
+
class=${e({
|
|
184
|
+
alert: true,
|
|
185
|
+
"alert--open": this.open,
|
|
186
|
+
"alert--closable": this.closable,
|
|
187
|
+
"alert--has-countdown": !!this.countdown,
|
|
188
|
+
"alert--has-icon": this.hasSlotController.test("icon"),
|
|
189
|
+
"alert--primary": this.variant === "primary",
|
|
190
|
+
"alert--success": this.variant === "success",
|
|
191
|
+
"alert--neutral": this.variant === "neutral",
|
|
192
|
+
"alert--warning": this.variant === "warning",
|
|
193
|
+
"alert--danger": this.variant === "danger"
|
|
194
|
+
})}
|
|
195
|
+
role="alert"
|
|
196
|
+
aria-hidden=${this.open ? "false" : "true"}
|
|
197
|
+
@mouseenter=${this.pauseAutoHide}
|
|
198
|
+
@mouseleave=${this.resumeAutoHide}
|
|
199
|
+
>
|
|
200
|
+
<div part="icon" class="alert__icon">
|
|
201
|
+
<slot name="icon"></slot>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
<div part="message" class="alert__message" aria-live="polite">
|
|
205
|
+
<slot></slot>
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
${this.closable ? x`
|
|
209
|
+
<button
|
|
210
|
+
class="terra-alert__close-button"
|
|
211
|
+
@click=${this.handleCloseClick}
|
|
212
|
+
aria-label="Close"
|
|
213
|
+
>
|
|
214
|
+
x
|
|
215
|
+
</button>
|
|
216
|
+
` : ""}
|
|
217
|
+
|
|
218
|
+
<div role="timer" class="alert__timer">${this.remainingTime}</div>
|
|
219
|
+
|
|
220
|
+
${this.countdown ? x`
|
|
221
|
+
<div
|
|
222
|
+
class=${e({
|
|
223
|
+
alert__countdown: true,
|
|
224
|
+
"alert__countdown--ltr": this.countdown === "ltr"
|
|
225
|
+
})}
|
|
226
|
+
>
|
|
227
|
+
<div class="alert__countdown-elapsed"></div>
|
|
228
|
+
</div>
|
|
229
|
+
` : ""}
|
|
230
|
+
</div>
|
|
231
|
+
`;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
_TerraAlert.styles = [component_styles_default, alert_styles_default];
|
|
235
|
+
__decorateClass([
|
|
236
|
+
e2('[part~="base"]')
|
|
237
|
+
], _TerraAlert.prototype, "base", 2);
|
|
238
|
+
__decorateClass([
|
|
239
|
+
e2(".alert__countdown-elapsed")
|
|
240
|
+
], _TerraAlert.prototype, "countdownElement", 2);
|
|
241
|
+
__decorateClass([
|
|
242
|
+
n({ type: Boolean, reflect: true })
|
|
243
|
+
], _TerraAlert.prototype, "open", 2);
|
|
244
|
+
__decorateClass([
|
|
245
|
+
n({ type: Boolean, reflect: true })
|
|
246
|
+
], _TerraAlert.prototype, "closable", 2);
|
|
247
|
+
__decorateClass([
|
|
248
|
+
n({ reflect: true })
|
|
249
|
+
], _TerraAlert.prototype, "variant", 2);
|
|
250
|
+
__decorateClass([
|
|
251
|
+
n({ type: Number })
|
|
252
|
+
], _TerraAlert.prototype, "duration", 2);
|
|
253
|
+
__decorateClass([
|
|
254
|
+
n({ type: String, reflect: true })
|
|
255
|
+
], _TerraAlert.prototype, "countdown", 2);
|
|
256
|
+
__decorateClass([
|
|
257
|
+
r()
|
|
258
|
+
], _TerraAlert.prototype, "remainingTime", 2);
|
|
259
|
+
__decorateClass([
|
|
260
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
261
|
+
], _TerraAlert.prototype, "handleOpenChange", 1);
|
|
262
|
+
__decorateClass([
|
|
263
|
+
watch("duration")
|
|
264
|
+
], _TerraAlert.prototype, "handleDurationChange", 1);
|
|
265
|
+
var TerraAlert = _TerraAlert;
|
|
266
|
+
|
|
267
|
+
export {
|
|
268
|
+
TerraAlert
|
|
269
|
+
};
|
|
@@ -10479,7 +10479,7 @@ var Leaflet = class {
|
|
|
10479
10479
|
this.addCoordTracker();
|
|
10480
10480
|
}
|
|
10481
10481
|
if (options.hasNavigation) {
|
|
10482
|
-
this.addDrawControl();
|
|
10482
|
+
this.addDrawControl(options);
|
|
10483
10483
|
}
|
|
10484
10484
|
this.map.whenReady((_e) => {
|
|
10485
10485
|
var _a;
|
|
@@ -10540,7 +10540,7 @@ var Leaflet = class {
|
|
|
10540
10540
|
const coordTracker = new CoordTracker();
|
|
10541
10541
|
coordTracker.addTo(this.map);
|
|
10542
10542
|
}
|
|
10543
|
-
addDrawControl() {
|
|
10543
|
+
addDrawControl(options) {
|
|
10544
10544
|
this.editableLayers = new L2.FeatureGroup();
|
|
10545
10545
|
this.editableLayers.addTo(this.map);
|
|
10546
10546
|
let drawControl = new L2.Control.Draw({
|
|
@@ -10551,8 +10551,8 @@ var Leaflet = class {
|
|
|
10551
10551
|
circle: false,
|
|
10552
10552
|
// Turns off this drawing tool
|
|
10553
10553
|
circlemarker: false,
|
|
10554
|
-
rectangle: {},
|
|
10555
|
-
marker: {
|
|
10554
|
+
rectangle: (options == null ? void 0 : options.hideBoundingBoxDrawTool) ? false : {},
|
|
10555
|
+
marker: (options == null ? void 0 : options.hidePointSelectionDrawTool) ? false : {
|
|
10556
10556
|
icon: L2.icon({
|
|
10557
10557
|
iconUrl: "https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",
|
|
10558
10558
|
iconAnchor: [15, 40],
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
loader_default
|
|
3
|
+
} from "./chunk.UKQCOWLU.js";
|
|
1
4
|
import {
|
|
2
5
|
login_styles_default
|
|
3
6
|
} from "./chunk.5P7TDN4M.js";
|
|
4
|
-
import {
|
|
5
|
-
loader_default
|
|
6
|
-
} from "./chunk.JE2FCOKF.js";
|
|
7
7
|
import {
|
|
8
8
|
icon_default
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.HDUTNK76.js";
|
|
10
|
+
import {
|
|
11
|
+
button_default
|
|
12
|
+
} from "./chunk.PYENVYVD.js";
|
|
10
13
|
import {
|
|
11
14
|
e,
|
|
12
15
|
n
|
|
13
|
-
} from "./chunk.
|
|
14
|
-
import {
|
|
15
|
-
button_default
|
|
16
|
-
} from "./chunk.NCUMG4CT.js";
|
|
16
|
+
} from "./chunk.262RZKG2.js";
|
|
17
17
|
import {
|
|
18
18
|
TerraElement,
|
|
19
19
|
component_styles_default
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.FS3ZYOYJ.js";
|
|
21
21
|
import {
|
|
22
22
|
h
|
|
23
23
|
} from "./chunk.UGTZ22DI.js";
|