@nasa-terra/components 0.0.52 → 0.0.54
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.XU3NXPIM.js → chunk.23M4SIVO.js} +1 -1
- package/cdn/chunks/chunk.3WD5HVRH.js +150 -0
- package/cdn/chunks/{chunk.YNUC7HOB.js → chunk.4CGJGOCY.js} +1 -1
- package/cdn/chunks/{chunk.QIVBQSS7.js → chunk.4TLR4QQG.js} +24 -17
- package/cdn/chunks/chunk.57MIDRIG.js +264 -0
- package/cdn/chunks/{chunk.6NEMJOXS.js → chunk.5BO2XAMO.js} +4 -4
- package/cdn/chunks/chunk.5EPQ2F3Z.js +27 -0
- package/{dist/chunks/chunk.E7WQN374.js → cdn/chunks/chunk.5R5S72WP.js} +1 -1
- package/cdn/chunks/{chunk.7ZVIGV6V.js → chunk.63NRAEUK.js} +16 -8
- package/cdn/chunks/{chunk.6H77QHJW.js → chunk.65NEAPRC.js} +1 -1
- package/cdn/chunks/chunk.6OAPBJRP.js +49 -0
- package/cdn/chunks/{chunk.43R5EAVL.js → chunk.6V3KMAUQ.js} +1 -1
- package/cdn/chunks/{chunk.TEUZXQBU.js → chunk.7V2LW54F.js} +4 -4
- package/cdn/chunks/{chunk.TKZC2SRM.js → chunk.A47BXY2K.js} +1 -1
- package/cdn/chunks/{chunk.6QZW2ION.js → chunk.A4OQOF46.js} +1 -1
- package/{dist/chunks/chunk.ESISTPRD.js → cdn/chunks/chunk.AHEQYW27.js} +1 -1
- package/{dist/chunks/chunk.H6VZTFOA.js → cdn/chunks/chunk.APQ42B2U.js} +1 -1
- package/cdn/chunks/{chunk.JLUCY2KC.js → chunk.ARWRM2JC.js} +6 -1
- package/cdn/chunks/{chunk.IQ7B6HFH.js → chunk.BMTQUUZA.js} +1 -1
- package/cdn/chunks/{chunk.NCUMG4CT.js → chunk.BWXDVL76.js} +1 -1
- package/{dist/chunks/chunk.ETRG47HH.js → cdn/chunks/chunk.C4JLG2E7.js} +1 -1
- package/cdn/chunks/{chunk.6LGRNEZ7.js → chunk.C5LFHOAP.js} +1 -1
- package/cdn/chunks/chunk.CPHER7LT.js +61 -0
- package/cdn/chunks/{chunk.X2ZY3YLL.js → chunk.D5JLZTKH.js} +1 -1
- package/{dist/chunks/chunk.MWJRQKMV.js → cdn/chunks/chunk.DLW6XK4F.js} +1 -1
- package/cdn/chunks/{chunk.ALXMBVVZ.js → chunk.DPC5A37S.js} +1 -1
- package/cdn/chunks/chunk.EEMK3EBJ.js +77 -0
- 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.AZDOQAD2.js → chunk.FHUEFTED.js} +23 -6
- package/cdn/chunks/{chunk.KQ335BKK.js → chunk.FZ4GONRL.js} +1 -1
- package/{dist/chunks/chunk.3REGQAFA.js → cdn/chunks/chunk.FZOEXPP3.js} +1 -1
- package/cdn/chunks/{chunk.XO3SOVHY.js → chunk.G3K475WP.js} +1 -1
- package/cdn/chunks/{chunk.UVCDVWWN.js → chunk.GGXXOHFY.js} +1 -1
- package/cdn/chunks/{chunk.PNDWOMP6.js → chunk.GJIEQWA2.js} +12 -2
- package/{dist/chunks/chunk.QUYMT5VP.js → cdn/chunks/chunk.H4H7OUFN.js} +1 -1
- package/cdn/chunks/chunk.H6N7RGVX.js +1314 -0
- package/cdn/chunks/{chunk.BUKXWTWP.js → chunk.HKX3J5XS.js} +1 -1
- package/cdn/chunks/{chunk.3C36QKV5.js → chunk.HRTKXUXQ.js} +1 -1
- package/cdn/chunks/{chunk.UR52WPUB.js → chunk.IDWSR352.js} +10 -10
- package/{dist/chunks/chunk.KMNSIF7V.js → cdn/chunks/chunk.IJMWPNJQ.js} +1 -1
- package/cdn/chunks/chunk.J2N3IO5I.js +21 -0
- package/cdn/chunks/{chunk.SZAZG4YK.js → chunk.JG376LYS.js} +5 -2
- package/{dist/chunks/chunk.GUGDC67O.js → cdn/chunks/chunk.JQNOS35D.js} +1 -1
- package/cdn/chunks/{chunk.6IMVZQLW.js → chunk.JU7676XZ.js} +2 -2
- package/cdn/chunks/{chunk.YWXZHRQQ.js → chunk.K46LNZ4Y.js} +1 -1
- package/cdn/chunks/chunk.K5CSW352.js +418 -0
- package/{dist/chunks/chunk.RW6R4LFF.js → cdn/chunks/chunk.KOWNZ7CT.js} +1 -1
- package/cdn/chunks/{chunk.M7Y4QNCN.js → chunk.KQDNPTPO.js} +1 -1
- package/cdn/chunks/{chunk.56BIFKWQ.js → chunk.L3AEI44F.js} +17 -17
- package/cdn/chunks/{chunk.VRGU3JD2.js → chunk.LGIRLCP2.js} +8 -8
- package/{dist/chunks/chunk.BGIZ44PS.js → cdn/chunks/chunk.M4BZUFWE.js} +1 -1
- package/{dist/chunks/chunk.EM2KEB67.js → cdn/chunks/chunk.N3NR342F.js} +1 -1
- package/cdn/chunks/chunk.OAPHKYCV.js +11 -0
- package/cdn/chunks/{chunk.WA7VSQ63.js → chunk.OSJUFK2E.js} +7 -7
- package/cdn/chunks/{chunk.XHHFBPQM.js → chunk.PSAJO4PE.js} +8 -7
- package/cdn/chunks/{chunk.4L2C3E3Z.js → chunk.Q47YWESJ.js} +1 -1
- package/cdn/chunks/chunk.QPYAOML5.js +11 -0
- package/cdn/chunks/{chunk.LOCO37M5.js → chunk.RLRLPCXE.js} +435 -435
- package/cdn/chunks/{chunk.4OS3WNGB.js → chunk.RMZFGHSG.js} +35 -77
- package/cdn/chunks/{chunk.2UNF3BIO.js → chunk.RYDOV244.js} +97 -17
- package/cdn/chunks/chunk.RYGCQOBP.js +11 -0
- package/cdn/chunks/{chunk.WRON76NZ.js → chunk.S7IYZ4I2.js} +1 -1
- package/cdn/chunks/chunk.SF6MBAEP.js +20 -0
- package/{dist/chunks/chunk.E2A2V2YS.js → cdn/chunks/chunk.SIKKQP6I.js} +1 -1
- package/cdn/chunks/{chunk.JE2FCOKF.js → chunk.TBDMUEOL.js} +1 -1
- package/cdn/chunks/{chunk.VAWFQPRW.js → chunk.TKK6BNTA.js} +1 -1
- package/cdn/chunks/{chunk.H7IOI7PF.js → chunk.UA2PIKHW.js} +8 -8
- package/cdn/chunks/{chunk.7KC6YXWL.js → chunk.UA5HHAYZ.js} +1 -1
- package/{dist/chunks/chunk.775IHQR2.js → cdn/chunks/chunk.UOCDT7HQ.js} +13 -13
- package/{dist/chunks/chunk.CVHBTAL2.js → cdn/chunks/chunk.UZWEJOT3.js} +1 -1
- package/cdn/chunks/{chunk.2NCB6JXM.js → chunk.VU7EHZH7.js} +1 -1
- package/cdn/chunks/chunk.VZMSGFJM.js +21 -0
- package/cdn/chunks/{chunk.RLI6ON2C.js → chunk.W53DJFZQ.js} +2 -1
- package/cdn/chunks/chunk.WOVNGDEJ.js +930 -0
- package/cdn/chunks/{chunk.5NU43HNV.js → chunk.WSTDOGZY.js} +15 -2
- package/cdn/chunks/{chunk.H5LB4MBT.js → chunk.XQWGD4D7.js} +5 -3
- package/cdn/chunks/{chunk.CUGOTRF4.js → chunk.XXZJFEAX.js} +18 -5
- package/cdn/chunks/{chunk.TJW5I73A.js → chunk.Y52NTWQR.js} +1 -1
- package/cdn/chunks/{chunk.KHIKTIEM.js → chunk.Y6LDYM2S.js} +7 -7
- package/{dist/chunks/chunk.S3TUAB7V.js → cdn/chunks/chunk.ZEORI4V7.js} +1 -1
- package/cdn/chunks/{chunk.ZLY7XE2R.js → chunk.ZIB2YM2K.js} +1 -1
- 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 +73 -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 +6 -6
- package/cdn/components/combobox/combobox.js +7 -7
- package/cdn/components/data-rods/data-rods.component.d.ts +2 -0
- package/cdn/components/data-rods/data-rods.component.js +38 -35
- package/cdn/components/data-rods/data-rods.js +39 -36
- 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 +5 -5
- package/cdn/components/date-range-slider/date-range-slider.js +6 -6
- package/cdn/components/dialog/dialog.component.js +3 -3
- package/cdn/components/dialog/dialog.js +4 -4
- package/cdn/components/dialog/dialog.styles.js +1 -1
- package/cdn/components/icon/icon.component.js +4 -4
- package/cdn/components/icon/icon.js +5 -5
- 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 +17 -16
- package/cdn/components/login/login.js +18 -17
- 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.d.ts +2 -2
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/skeleton/skeleton.component.js +6 -6
- package/cdn/components/skeleton/skeleton.js +7 -7
- package/cdn/components/spatial-picker/spatial-picker.component.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.d.ts +8 -0
- package/cdn/components/time-series/time-series.component.js +21 -18
- package/cdn/components/time-series/time-series.controller.js +3 -3
- package/cdn/components/time-series/time-series.js +22 -19
- package/cdn/components/variable-combobox/variable-combobox.component.js +17 -16
- package/cdn/components/variable-combobox/variable-combobox.controller.js +1 -1
- package/cdn/components/variable-combobox/variable-combobox.js +18 -17
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +21 -20
- package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +4 -4
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +22 -21
- package/cdn/custom-elements.json +1509 -399
- 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 +3 -0
- package/cdn/events/terra-after-hide.d.ts +6 -0
- package/cdn/events/terra-after-show.d.ts +6 -0
- package/cdn/events/terra-plot-relayout.d.ts +11 -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 +7 -7
- package/cdn/react/data-rods/index.d.ts +8 -1
- package/cdn/react/data-rods/index.js +39 -36
- 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 +6 -6
- package/cdn/react/dialog/index.js +4 -4
- package/cdn/react/icon/index.js +5 -5
- package/cdn/react/index.d.ts +4 -1
- package/cdn/react/index.js +104 -83
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +18 -17
- package/cdn/react/map/index.js +8 -8
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/skeleton/index.js +7 -7
- package/cdn/react/spatial-picker/index.js +9 -9
- package/cdn/react/time-series/index.d.ts +4 -0
- package/cdn/react/time-series/index.js +22 -19
- package/cdn/react/variable-combobox/index.js +18 -17
- package/cdn/react/variable-keyword-search/index.js +22 -21
- package/cdn/terra-ui-components.d.ts +3 -0
- package/cdn/terra-ui-components.js +101 -80
- package/cdn/types/vue/index.d.ts +214 -66
- package/cdn/utilities/animation.js +4 -4
- 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 +97 -9
- package/cdn/web-types.json +360 -102
- package/dist/assets/data-subsetter/download_subset_files.py.txt +66 -0
- package/{cdn/chunks/chunk.BOEWKIKL.js → dist/chunks/chunk.2KG2PDUC.js} +1 -1
- package/dist/chunks/{chunk.AY7TGBWI.js → chunk.3IQ5IBBM.js} +1 -1
- package/dist/chunks/chunk.3WKUS32S.js +147 -0
- package/dist/chunks/{chunk.AONG4JL6.js → chunk.4ZVV7AJM.js} +6 -6
- package/dist/chunks/{chunk.WVAXV6VX.js → chunk.5GBBEOFF.js} +1 -1
- package/dist/chunks/chunk.5HS4HQKS.js +21 -0
- package/dist/chunks/{chunk.EXZP753L.js → chunk.5XYM225J.js} +1 -1
- package/{cdn/chunks/chunk.2TA36AD4.js → dist/chunks/chunk.6JZUAYPO.js} +1 -1
- package/dist/chunks/chunk.6OAPBJRP.js +49 -0
- package/dist/chunks/{chunk.TBBYOYJ7.js → chunk.6ZS4OZCO.js} +1 -1
- package/dist/chunks/{chunk.XLJ7TVUS.js → chunk.77XTTINJ.js} +1 -1
- package/{cdn/chunks/chunk.KTVGWBMV.js → dist/chunks/chunk.7A5C2JU6.js} +1 -1
- package/dist/chunks/{chunk.FOHGUYVS.js → chunk.7GKPOEVM.js} +1 -1
- package/dist/chunks/{chunk.RPLQHZS6.js → chunk.7XDBDSRE.js} +18 -5
- package/{cdn/chunks/chunk.OJGOBLIU.js → dist/chunks/chunk.AURTGXYT.js} +1 -1
- package/dist/chunks/{chunk.ZRI4D77S.js → chunk.BE5TDNTD.js} +4 -4
- package/dist/chunks/chunk.CRZ7TUUO.js +1308 -0
- package/dist/chunks/{chunk.CPEM43Y5.js → chunk.CWH2LJ7C.js} +1 -1
- package/dist/chunks/{chunk.R3YZ7KJF.js → chunk.CYJHO3OP.js} +1 -1
- package/dist/chunks/chunk.DJSBT37Q.js +11 -0
- package/dist/chunks/chunk.DUCS7DR4.js +11 -0
- package/dist/chunks/chunk.DUGD5OIQ.js +11 -0
- package/dist/chunks/{chunk.T2K2FVDX.js → chunk.E2VGHW6G.js} +1 -1
- package/{cdn/chunks/chunk.RGI5ZEXR.js → dist/chunks/chunk.E4LA3PS3.js} +1 -1
- package/dist/chunks/{chunk.UYRZ6XBT.js → chunk.EI2M6QPT.js} +1 -1
- package/dist/chunks/{chunk.67EX34DL.js → chunk.EXZMC2ZJ.js} +6 -1
- package/dist/chunks/{chunk.H55GDBVS.js → chunk.FQNMT3RC.js} +2 -2
- package/{cdn/chunks/chunk.F7E3OXW3.js → dist/chunks/chunk.G2WOPKSU.js} +1 -1
- package/{cdn/chunks/chunk.KCZLV65J.js → dist/chunks/chunk.HERNSNAA.js} +1 -1
- package/dist/chunks/{chunk.TFI3UXXB.js → chunk.HFD6TPE6.js} +1 -1
- package/dist/chunks/{chunk.33MT36PS.js → chunk.IU5SV56O.js} +1 -1
- package/dist/chunks/chunk.JDQC6NXM.js +418 -0
- package/dist/chunks/{chunk.RROJPL2A.js → chunk.JE23NVKW.js} +1 -1
- package/dist/chunks/{chunk.LNC5EYCJ.js → chunk.JGD6YWMX.js} +8 -52
- package/dist/chunks/{chunk.RHT75OOW.js → chunk.JPOLIW2G.js} +3 -3
- package/{cdn/chunks/chunk.XR376PMT.js → dist/chunks/chunk.JUE4NRCW.js} +1 -1
- package/dist/chunks/{chunk.GB2BB7RB.js → chunk.JYMLRSW2.js} +1 -1
- package/dist/chunks/{chunk.WJV65UWS.js → chunk.KBEMT2DH.js} +1 -1
- package/dist/chunks/{chunk.7JBFBZ5C.js → chunk.KMN7L6QZ.js} +5 -2
- package/dist/chunks/chunk.KPC2TZNU.js +21 -0
- package/dist/chunks/{chunk.2TZUQC72.js → chunk.L4CRWZ4F.js} +1 -1
- package/{cdn/chunks/chunk.TPNEBQDW.js → dist/chunks/chunk.LAP2RX7Z.js} +1 -1
- package/dist/chunks/{chunk.2IUOMVRJ.js → chunk.LCXFLOKM.js} +1 -1
- package/dist/chunks/{chunk.KZZM5DIH.js → chunk.LRMILCIN.js} +1 -1
- package/dist/chunks/{chunk.XZXT5MBD.js → chunk.NETZ6TSP.js} +1 -1
- package/dist/chunks/{chunk.WSGVJC5A.js → chunk.NZCJKLX4.js} +4 -4
- package/{cdn/chunks/chunk.2NMZMEIL.js → dist/chunks/chunk.PK7DJRFD.js} +1 -1
- package/dist/chunks/{chunk.4BU4Y56M.js → chunk.PVTB7EON.js} +6 -6
- package/dist/chunks/{chunk.QAXYS5OA.js → chunk.Q24S6SO4.js} +15 -2
- package/{cdn/chunks/chunk.I5ZDFQF3.js → dist/chunks/chunk.R275GZJP.js} +1 -1
- package/dist/chunks/{chunk.3W53HERF.js → chunk.R5NJ3F7B.js} +1 -1
- package/dist/chunks/{chunk.2LQ62YDQ.js → chunk.RBLEZ6LY.js} +1 -1
- package/dist/chunks/{chunk.3B622XLR.js → chunk.RLNWDA4W.js} +4 -4
- package/dist/chunks/chunk.RQ2YIT2S.js +927 -0
- package/dist/chunks/{chunk.OJHJP7K2.js → chunk.RTDW6K4K.js} +1 -1
- package/dist/chunks/chunk.SF6MBAEP.js +20 -0
- package/dist/chunks/{chunk.HR67OJ25.js → chunk.SPMJZKMX.js} +1 -1
- package/{cdn/chunks/chunk.MSGOYUSX.js → dist/chunks/chunk.TNIQC64I.js} +1 -1
- package/dist/chunks/{chunk.5W3SNZBC.js → chunk.TQWLVZHQ.js} +8 -7
- package/dist/chunks/{chunk.Z5E25XLP.js → chunk.TV4JDPQZ.js} +14 -14
- package/dist/chunks/{chunk.LPSLYYX7.js → chunk.U6R27WNU.js} +11 -1
- package/dist/chunks/{chunk.7KC6YXWL.js → chunk.UA5HHAYZ.js} +1 -1
- package/dist/chunks/{chunk.MZK7WRKF.js → chunk.UDYW3JVU.js} +5 -3
- package/dist/chunks/{chunk.K2RM2IR7.js → chunk.UFLWSRJS.js} +16 -8
- package/{cdn/chunks/chunk.775IHQR2.js → dist/chunks/chunk.UOCDT7HQ.js} +13 -13
- package/{cdn/chunks/chunk.4TXEYAPR.js → dist/chunks/chunk.UWPAP7DD.js} +1 -1
- package/{cdn/chunks/chunk.WLC45QMC.js → dist/chunks/chunk.V4A4MJMQ.js} +1 -1
- package/dist/chunks/chunk.VGZJOJYI.js +73 -0
- package/dist/chunks/chunk.VQG6E5PN.js +258 -0
- package/dist/chunks/{chunk.UBJGRBUX.js → chunk.VVAVKMYY.js} +5 -2
- package/dist/chunks/{chunk.O5JIPX5F.js → chunk.XDOWEUX7.js} +93 -13
- package/dist/chunks/{chunk.U5ORWUDI.js → chunk.XHQSQS6B.js} +1 -1
- package/dist/chunks/{chunk.NFHX7J4A.js → chunk.XL5DK5OZ.js} +20 -13
- package/dist/chunks/{chunk.5LNGPR44.js → chunk.Y4EIAFP6.js} +1 -1
- package/dist/chunks/{chunk.WMLL6DYO.js → chunk.YFJDAQ3G.js} +2 -1
- package/dist/chunks/{chunk.34UGHNQ2.js → chunk.YHIGQ7X6.js} +23 -6
- package/dist/chunks/chunk.YSWVZ2QE.js +27 -0
- package/dist/chunks/{chunk.UTDJAXDL.js → chunk.YT7LBV5I.js} +1 -1
- package/dist/chunks/chunk.Z3GLEDYM.js +58 -0
- package/{cdn/chunks/chunk.L5N5757Y.js → dist/chunks/chunk.ZSRW7SY2.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 +73 -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 +20 -19
- package/dist/components/browse-variables/browse-variables.controller.js +3 -3
- package/dist/components/browse-variables/browse-variables.js +21 -20
- 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.d.ts +2 -0
- package/dist/components/data-rods/data-rods.component.js +31 -28
- package/dist/components/data-rods/data-rods.js +32 -29
- 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 +4 -4
- package/dist/components/date-range-slider/date-range-slider.js +5 -5
- package/dist/components/dialog/dialog.component.js +3 -3
- package/dist/components/dialog/dialog.js +4 -4
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- 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 +13 -12
- package/dist/components/login/login.js +14 -13
- 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 +6 -6
- package/dist/components/map/map.js +7 -7
- package/dist/components/map/type.d.ts +1 -1
- package/dist/components/plot/plot.component.d.ts +2 -2
- 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 +7 -7
- package/dist/components/spatial-picker/spatial-picker.js +8 -8
- package/dist/components/time-series/time-series.component.d.ts +8 -0
- package/dist/components/time-series/time-series.component.js +17 -14
- package/dist/components/time-series/time-series.controller.js +2 -2
- package/dist/components/time-series/time-series.js +18 -15
- package/dist/components/variable-combobox/variable-combobox.component.js +11 -10
- package/dist/components/variable-combobox/variable-combobox.js +12 -11
- 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 +1509 -399
- 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 +3 -0
- package/dist/events/terra-after-hide.d.ts +6 -0
- package/dist/events/terra-after-show.d.ts +6 -0
- package/dist/events/terra-plot-relayout.d.ts +11 -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 +21 -20
- 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.d.ts +8 -1
- package/dist/react/data-rods/index.js +32 -29
- 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 +5 -5
- package/dist/react/dialog/index.js +4 -4
- package/dist/react/icon/index.js +5 -5
- package/dist/react/index.d.ts +4 -1
- package/dist/react/index.js +95 -74
- package/dist/react/loader/index.js +3 -3
- package/dist/react/login/index.js +14 -13
- package/dist/react/map/index.js +7 -7
- package/dist/react/plot/index.js +3 -3
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spatial-picker/index.js +8 -8
- package/dist/react/time-series/index.d.ts +4 -0
- package/dist/react/time-series/index.js +18 -15
- package/dist/react/variable-combobox/index.js +12 -11
- 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 +94 -73
- package/dist/{terra_ui_components-0.0.52-py3-none-any.whl → terra_ui_components-0.0.54-py3-none-any.whl} +0 -0
- package/dist/{terra_ui_components-0.0.52.tar.gz → terra_ui_components-0.0.54.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +214 -66
- 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 +97 -9
- package/dist/web-types.json +360 -102
- package/package.json +1 -1
|
@@ -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()
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import {
|
|
2
|
+
i
|
|
3
|
+
} from "./chunk.PH7RLQK2.js";
|
|
4
|
+
|
|
5
|
+
// src/components/alert/alert.styles.ts
|
|
6
|
+
var alert_styles_default = i`
|
|
7
|
+
:host {
|
|
8
|
+
display: contents;
|
|
9
|
+
|
|
10
|
+
/* For better DX, we'll reset the margin here so the base part can inherit it */
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.alert {
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: stretch;
|
|
18
|
+
background-color: var(--terra-panel-background-color);
|
|
19
|
+
border: solid var(--terra-panel-border-width) var(--terra-panel-border-color);
|
|
20
|
+
border-top-width: calc(var(--terra-panel-border-width) * 3);
|
|
21
|
+
border-radius: var(--terra-border-radius-medium);
|
|
22
|
+
font-family: var(--terra-font-sans);
|
|
23
|
+
font-size: var(--terra-font-size-small);
|
|
24
|
+
font-weight: var(--terra-font-weight-normal);
|
|
25
|
+
line-height: 1.6;
|
|
26
|
+
color: var(--terra-color-neutral-700);
|
|
27
|
+
margin: inherit;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.alert:not(.alert--has-icon) .alert__icon,
|
|
32
|
+
.alert:not(.alert--closable) .alert__close-button {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.alert__icon {
|
|
37
|
+
flex: 0 0 auto;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
font-size: var(--terra-font-size-large);
|
|
41
|
+
padding-inline-start: var(--terra-spacing-large);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.alert--has-countdown {
|
|
45
|
+
border-bottom: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.alert--primary {
|
|
49
|
+
border-top-color: var(--terra-color-nasa-blue-shade);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.alert--primary .alert__icon {
|
|
53
|
+
color: var(--terra-color-nasa-blue-shade);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.alert--success {
|
|
57
|
+
border-top-color: var(--terra-color-success-green);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.alert--success .alert__icon {
|
|
61
|
+
color: var(--terra-color-success-green);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.alert--neutral {
|
|
65
|
+
border-top-color: var(--terra-color-neutral-600);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.alert--neutral .alert__icon {
|
|
69
|
+
color: var(--terra-color-neutral-600);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.alert--warning {
|
|
73
|
+
border-top-color: var(--terra-color-international-orange);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.alert--warning .alert__icon {
|
|
77
|
+
color: var(--terra-color-international-orange);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.alert--danger {
|
|
81
|
+
border-top-color: var(--terra-color-nasa-red);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.alert--danger .alert__icon {
|
|
85
|
+
color: var(--terra-color-nasa-red);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.alert__message {
|
|
89
|
+
flex: 1 1 auto;
|
|
90
|
+
display: block;
|
|
91
|
+
padding: var(--terra-spacing-large);
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.alert__close-button {
|
|
96
|
+
flex: 0 0 auto;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
font-size: var(--terra-font-size-medium);
|
|
100
|
+
margin-inline-end: var(--terra-spacing-medium);
|
|
101
|
+
align-self: center;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.alert__countdown {
|
|
105
|
+
position: absolute;
|
|
106
|
+
bottom: 0;
|
|
107
|
+
left: 0;
|
|
108
|
+
width: 100%;
|
|
109
|
+
height: calc(var(--terra-panel-border-width) * 3);
|
|
110
|
+
background-color: var(--terra-panel-border-color);
|
|
111
|
+
display: flex;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.alert__countdown--ltr {
|
|
115
|
+
justify-content: flex-end;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.alert__countdown .alert__countdown-elapsed {
|
|
119
|
+
height: 100%;
|
|
120
|
+
width: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.alert--primary .alert__countdown-elapsed {
|
|
124
|
+
background-color: var(--terra-color-nasa-blue-shade);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.alert--success .alert__countdown-elapsed {
|
|
128
|
+
background-color: var(--terra-color-success-green);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.alert--neutral .alert__countdown-elapsed {
|
|
132
|
+
background-color: var(--terra-color-neutral-600);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.alert--warning .alert__countdown-elapsed {
|
|
136
|
+
background-color: var(--terra-color-international-orange);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.alert--danger .alert__countdown-elapsed {
|
|
140
|
+
background-color: var(--terra-color-nasa-red);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.alert__timer {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
`;
|
|
147
|
+
|
|
148
|
+
export {
|
|
149
|
+
alert_styles_default
|
|
150
|
+
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TerraVariableCombobox
|
|
3
|
-
} from "./chunk.
|
|
4
|
-
import {
|
|
5
|
-
TerraSpatialPicker
|
|
6
|
-
} from "./chunk.CUGOTRF4.js";
|
|
3
|
+
} from "./chunk.Y6LDYM2S.js";
|
|
7
4
|
import {
|
|
8
5
|
TerraTimeSeries
|
|
9
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.RYDOV244.js";
|
|
10
7
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./chunk.
|
|
8
|
+
TerraSpatialPicker
|
|
9
|
+
} from "./chunk.XXZJFEAX.js";
|
|
13
10
|
import {
|
|
14
11
|
data_rods_styles_default
|
|
15
12
|
} from "./chunk.2RXDDBWK.js";
|
|
16
13
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./chunk.6LGRNEZ7.js";
|
|
20
|
-
import {
|
|
21
|
-
n,
|
|
22
|
-
r
|
|
23
|
-
} from "./chunk.2FFSUM6T.js";
|
|
14
|
+
TerraDateRangeSlider
|
|
15
|
+
} from "./chunk.OSJUFK2E.js";
|
|
24
16
|
import {
|
|
25
17
|
GiovanniVariableCatalog
|
|
26
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.23M4SIVO.js";
|
|
27
19
|
import {
|
|
28
20
|
h
|
|
29
21
|
} from "./chunk.UGTZ22DI.js";
|
|
30
22
|
import {
|
|
31
23
|
getUTCDate
|
|
32
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.EZMKGB3F.js";
|
|
25
|
+
import {
|
|
26
|
+
TerraElement,
|
|
27
|
+
component_styles_default
|
|
28
|
+
} from "./chunk.C5LFHOAP.js";
|
|
29
|
+
import {
|
|
30
|
+
n,
|
|
31
|
+
r
|
|
32
|
+
} from "./chunk.2FFSUM6T.js";
|
|
33
33
|
import {
|
|
34
34
|
x
|
|
35
35
|
} from "./chunk.PQFHJHNO.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk.6JHIJHTB.js";
|
|
42
42
|
|
|
43
43
|
// src/components/data-rods/data-rods.component.ts
|
|
44
|
-
var _catalog, _fetchVariableTask, _getVariableEntryId, getVariableEntryId_fn, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn, _handleVariableChange, handleVariableChange_fn, _handleMapChange, handleMapChange_fn;
|
|
44
|
+
var _catalog, _fetchVariableTask, _getVariableEntryId, getVariableEntryId_fn, _handleDateRangeSliderChangeEvent, handleDateRangeSliderChangeEvent_fn, _handleVariableChange, handleVariableChange_fn, _handleMapChange, handleMapChange_fn, _handleTimeSeriesDateRangeChange, handleTimeSeriesDateRangeChange_fn;
|
|
45
45
|
var TerraDataRods = class extends TerraElement {
|
|
46
46
|
constructor() {
|
|
47
47
|
super(...arguments);
|
|
@@ -52,6 +52,7 @@ var TerraDataRods = class extends TerraElement {
|
|
|
52
52
|
__privateAdd(this, _handleDateRangeSliderChangeEvent);
|
|
53
53
|
__privateAdd(this, _handleVariableChange);
|
|
54
54
|
__privateAdd(this, _handleMapChange);
|
|
55
|
+
__privateAdd(this, _handleTimeSeriesDateRangeChange);
|
|
55
56
|
__privateAdd(this, _catalog, new GiovanniVariableCatalog());
|
|
56
57
|
// @ts-expect-error
|
|
57
58
|
__privateAdd(this, _fetchVariableTask, new h(this, {
|
|
@@ -102,6 +103,7 @@ var TerraDataRods = class extends TerraElement {
|
|
|
102
103
|
end-date=${this.endDate}
|
|
103
104
|
location=${this.location}
|
|
104
105
|
bearer-token=${this.bearerToken}
|
|
106
|
+
@terra-date-range-change=${__privateMethod(this, _handleTimeSeriesDateRangeChange, handleTimeSeriesDateRangeChange_fn)}
|
|
105
107
|
></terra-time-series>
|
|
106
108
|
|
|
107
109
|
<terra-date-range-slider
|
|
@@ -142,6 +144,11 @@ handleMapChange_fn = function(event) {
|
|
|
142
144
|
this.location = `${latLng.lat.toFixed(4)},${latLng.lng.toFixed(4)}`;
|
|
143
145
|
}
|
|
144
146
|
};
|
|
147
|
+
_handleTimeSeriesDateRangeChange = new WeakSet();
|
|
148
|
+
handleTimeSeriesDateRangeChange_fn = function(event) {
|
|
149
|
+
this.startDate = event.detail.startDate;
|
|
150
|
+
this.endDate = event.detail.endDate;
|
|
151
|
+
};
|
|
145
152
|
TerraDataRods.styles = [component_styles_default, data_rods_styles_default];
|
|
146
153
|
TerraDataRods.dependencies = {
|
|
147
154
|
"terra-time-series": TerraTimeSeries,
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HasSlotController
|
|
3
|
+
} from "./chunk.6OAPBJRP.js";
|
|
4
|
+
import {
|
|
5
|
+
e
|
|
6
|
+
} from "./chunk.YVSJQ4KD.js";
|
|
7
|
+
import {
|
|
8
|
+
watch
|
|
9
|
+
} from "./chunk.6MMTW476.js";
|
|
10
|
+
import {
|
|
11
|
+
TerraElement,
|
|
12
|
+
component_styles_default
|
|
13
|
+
} from "./chunk.C5LFHOAP.js";
|
|
14
|
+
import {
|
|
15
|
+
e as e2,
|
|
16
|
+
n,
|
|
17
|
+
r
|
|
18
|
+
} from "./chunk.2FFSUM6T.js";
|
|
19
|
+
import {
|
|
20
|
+
alert_styles_default
|
|
21
|
+
} from "./chunk.3WD5HVRH.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 get toastStack() {
|
|
54
|
+
if (!this.currentToastStack) {
|
|
55
|
+
this.currentToastStack = Object.assign(document.createElement("div"), {
|
|
56
|
+
className: "terra-toast-stack"
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return this.currentToastStack;
|
|
60
|
+
}
|
|
61
|
+
firstUpdated() {
|
|
62
|
+
this.base.hidden = !this.open;
|
|
63
|
+
}
|
|
64
|
+
restartAutoHide() {
|
|
65
|
+
this.handleCountdownChange();
|
|
66
|
+
clearTimeout(this.autoHideTimeout);
|
|
67
|
+
clearInterval(this.remainingTimeInterval);
|
|
68
|
+
if (this.open && this.duration < Infinity) {
|
|
69
|
+
this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);
|
|
70
|
+
this.remainingTime = this.duration;
|
|
71
|
+
this.remainingTimeInterval = window.setInterval(() => {
|
|
72
|
+
this.remainingTime -= 100;
|
|
73
|
+
}, 100);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
pauseAutoHide() {
|
|
77
|
+
var _a;
|
|
78
|
+
(_a = this.countdownAnimation) == null ? void 0 : _a.pause();
|
|
79
|
+
clearTimeout(this.autoHideTimeout);
|
|
80
|
+
clearInterval(this.remainingTimeInterval);
|
|
81
|
+
}
|
|
82
|
+
resumeAutoHide() {
|
|
83
|
+
var _a;
|
|
84
|
+
if (this.duration < Infinity) {
|
|
85
|
+
this.autoHideTimeout = window.setTimeout(
|
|
86
|
+
() => this.hide(),
|
|
87
|
+
this.remainingTime
|
|
88
|
+
);
|
|
89
|
+
this.remainingTimeInterval = window.setInterval(() => {
|
|
90
|
+
this.remainingTime -= 100;
|
|
91
|
+
}, 100);
|
|
92
|
+
(_a = this.countdownAnimation) == null ? void 0 : _a.play();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
handleCountdownChange() {
|
|
96
|
+
if (this.open && this.duration < Infinity && this.countdown) {
|
|
97
|
+
const { countdownElement } = this;
|
|
98
|
+
const start = "100%";
|
|
99
|
+
const end = "0";
|
|
100
|
+
this.countdownAnimation = countdownElement.animate(
|
|
101
|
+
[{ width: start }, { width: end }],
|
|
102
|
+
{
|
|
103
|
+
duration: this.duration,
|
|
104
|
+
easing: "linear"
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
handleCloseClick() {
|
|
110
|
+
this.hide();
|
|
111
|
+
}
|
|
112
|
+
async handleOpenChange() {
|
|
113
|
+
this.base.hidden = !this.open;
|
|
114
|
+
if (this.open) {
|
|
115
|
+
this.emit("terra-show");
|
|
116
|
+
if (this.duration < Infinity) {
|
|
117
|
+
this.restartAutoHide();
|
|
118
|
+
}
|
|
119
|
+
this.emit("terra-after-show");
|
|
120
|
+
} else {
|
|
121
|
+
this.emit("terra-hide");
|
|
122
|
+
clearTimeout(this.autoHideTimeout);
|
|
123
|
+
clearInterval(this.remainingTimeInterval);
|
|
124
|
+
this.emit("terra-after-hide");
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
handleDurationChange() {
|
|
128
|
+
this.restartAutoHide();
|
|
129
|
+
}
|
|
130
|
+
/** Shows the alert. */
|
|
131
|
+
async show() {
|
|
132
|
+
if (this.open) {
|
|
133
|
+
return void 0;
|
|
134
|
+
}
|
|
135
|
+
this.open = true;
|
|
136
|
+
return waitForEvent(this, "terra-after-show");
|
|
137
|
+
}
|
|
138
|
+
/** Hides the alert */
|
|
139
|
+
async hide() {
|
|
140
|
+
if (!this.open) {
|
|
141
|
+
return void 0;
|
|
142
|
+
}
|
|
143
|
+
this.open = false;
|
|
144
|
+
return waitForEvent(this, "terra-after-hide");
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when
|
|
148
|
+
* dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by
|
|
149
|
+
* calling this method again. The returned promise will resolve after the alert is hidden.
|
|
150
|
+
*/
|
|
151
|
+
async toast() {
|
|
152
|
+
return new Promise((resolve) => {
|
|
153
|
+
this.handleCountdownChange();
|
|
154
|
+
if (_TerraAlert.toastStack.parentElement === null) {
|
|
155
|
+
document.body.append(_TerraAlert.toastStack);
|
|
156
|
+
}
|
|
157
|
+
_TerraAlert.toastStack.appendChild(this);
|
|
158
|
+
requestAnimationFrame(() => {
|
|
159
|
+
this.clientWidth;
|
|
160
|
+
this.show();
|
|
161
|
+
});
|
|
162
|
+
this.addEventListener(
|
|
163
|
+
"terra-after-hide",
|
|
164
|
+
() => {
|
|
165
|
+
_TerraAlert.toastStack.removeChild(this);
|
|
166
|
+
resolve();
|
|
167
|
+
if (_TerraAlert.toastStack.querySelector("terra-alert") === null) {
|
|
168
|
+
_TerraAlert.toastStack.remove();
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{ once: true }
|
|
172
|
+
);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
render() {
|
|
176
|
+
return x`
|
|
177
|
+
<div
|
|
178
|
+
part="base"
|
|
179
|
+
class=${e({
|
|
180
|
+
alert: true,
|
|
181
|
+
"alert--open": this.open,
|
|
182
|
+
"alert--closable": this.closable,
|
|
183
|
+
"alert--has-countdown": !!this.countdown,
|
|
184
|
+
"alert--has-icon": this.hasSlotController.test("icon"),
|
|
185
|
+
"alert--primary": this.variant === "primary",
|
|
186
|
+
"alert--success": this.variant === "success",
|
|
187
|
+
"alert--neutral": this.variant === "neutral",
|
|
188
|
+
"alert--warning": this.variant === "warning",
|
|
189
|
+
"alert--danger": this.variant === "danger"
|
|
190
|
+
})}
|
|
191
|
+
role="alert"
|
|
192
|
+
aria-hidden=${this.open ? "false" : "true"}
|
|
193
|
+
@mouseenter=${this.pauseAutoHide}
|
|
194
|
+
@mouseleave=${this.resumeAutoHide}
|
|
195
|
+
>
|
|
196
|
+
<div part="icon" class="alert__icon">
|
|
197
|
+
<slot name="icon"></slot>
|
|
198
|
+
</div>
|
|
199
|
+
|
|
200
|
+
<div part="message" class="alert__message" aria-live="polite">
|
|
201
|
+
<slot></slot>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
${this.closable ? x`
|
|
205
|
+
<terra-icon
|
|
206
|
+
class="alert__close-button"
|
|
207
|
+
name="solid-x-mark"
|
|
208
|
+
library="heroicons"
|
|
209
|
+
@click=${this.handleCloseClick}
|
|
210
|
+
></terra-icon>
|
|
211
|
+
` : ""}
|
|
212
|
+
|
|
213
|
+
<div role="timer" class="alert__timer">${this.remainingTime}</div>
|
|
214
|
+
|
|
215
|
+
${this.countdown ? x`
|
|
216
|
+
<div
|
|
217
|
+
class=${e({
|
|
218
|
+
alert__countdown: true,
|
|
219
|
+
"alert__countdown--ltr": this.countdown === "ltr"
|
|
220
|
+
})}
|
|
221
|
+
>
|
|
222
|
+
<div class="alert__countdown-elapsed"></div>
|
|
223
|
+
</div>
|
|
224
|
+
` : ""}
|
|
225
|
+
</div>
|
|
226
|
+
`;
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
_TerraAlert.styles = [component_styles_default, alert_styles_default];
|
|
230
|
+
__decorateClass([
|
|
231
|
+
e2('[part~="base"]')
|
|
232
|
+
], _TerraAlert.prototype, "base", 2);
|
|
233
|
+
__decorateClass([
|
|
234
|
+
e2(".alert__countdown-elapsed")
|
|
235
|
+
], _TerraAlert.prototype, "countdownElement", 2);
|
|
236
|
+
__decorateClass([
|
|
237
|
+
n({ type: Boolean, reflect: true })
|
|
238
|
+
], _TerraAlert.prototype, "open", 2);
|
|
239
|
+
__decorateClass([
|
|
240
|
+
n({ type: Boolean, reflect: true })
|
|
241
|
+
], _TerraAlert.prototype, "closable", 2);
|
|
242
|
+
__decorateClass([
|
|
243
|
+
n({ reflect: true })
|
|
244
|
+
], _TerraAlert.prototype, "variant", 2);
|
|
245
|
+
__decorateClass([
|
|
246
|
+
n({ type: Number })
|
|
247
|
+
], _TerraAlert.prototype, "duration", 2);
|
|
248
|
+
__decorateClass([
|
|
249
|
+
n({ type: String, reflect: true })
|
|
250
|
+
], _TerraAlert.prototype, "countdown", 2);
|
|
251
|
+
__decorateClass([
|
|
252
|
+
r()
|
|
253
|
+
], _TerraAlert.prototype, "remainingTime", 2);
|
|
254
|
+
__decorateClass([
|
|
255
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
256
|
+
], _TerraAlert.prototype, "handleOpenChange", 1);
|
|
257
|
+
__decorateClass([
|
|
258
|
+
watch("duration")
|
|
259
|
+
], _TerraAlert.prototype, "handleDurationChange", 1);
|
|
260
|
+
var TerraAlert = _TerraAlert;
|
|
261
|
+
|
|
262
|
+
export {
|
|
263
|
+
TerraAlert
|
|
264
|
+
};
|
|
@@ -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],
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TerraAlert
|
|
3
|
+
} from "./chunk.57MIDRIG.js";
|
|
4
|
+
|
|
5
|
+
// src/react/alert/index.ts
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { createComponent } from "@lit/react";
|
|
8
|
+
import "@lit/react";
|
|
9
|
+
var tagName = "terra-alert";
|
|
10
|
+
TerraAlert.define("terra-alert");
|
|
11
|
+
var reactWrapper = createComponent({
|
|
12
|
+
tagName,
|
|
13
|
+
elementClass: TerraAlert,
|
|
14
|
+
react: React,
|
|
15
|
+
events: {
|
|
16
|
+
onTerraShow: "terra-show",
|
|
17
|
+
onTerraAfterShow: "terra-after-show",
|
|
18
|
+
onTerraHide: "terra-hide",
|
|
19
|
+
onTerraAfterHide: "terra-after-hide"
|
|
20
|
+
},
|
|
21
|
+
displayName: "TerraAlert"
|
|
22
|
+
});
|
|
23
|
+
var alert_default = reactWrapper;
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
alert_default
|
|
27
|
+
};
|