@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
|
@@ -1,26 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
loader_default
|
|
3
|
+
} from "./chunk.TBDMUEOL.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.C4JLG2E7.js";
|
|
10
|
+
import {
|
|
11
|
+
button_default
|
|
12
|
+
} from "./chunk.BWXDVL76.js";
|
|
10
13
|
import {
|
|
11
14
|
e,
|
|
12
15
|
n
|
|
13
16
|
} from "./chunk.2XCNCXGV.js";
|
|
14
17
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk.
|
|
18
|
+
h
|
|
19
|
+
} from "./chunk.UGTZ22DI.js";
|
|
17
20
|
import {
|
|
18
21
|
TerraElement,
|
|
19
22
|
component_styles_default
|
|
20
|
-
} from "./chunk.
|
|
21
|
-
import {
|
|
22
|
-
h
|
|
23
|
-
} from "./chunk.UGTZ22DI.js";
|
|
23
|
+
} from "./chunk.C5LFHOAP.js";
|
|
24
24
|
import {
|
|
25
25
|
T,
|
|
26
26
|
x
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TerraDataSubsetter
|
|
3
|
+
} from "./chunk.H6N7RGVX.js";
|
|
4
|
+
|
|
5
|
+
// src/react/data-subsetter/index.ts
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { createComponent } from "@lit/react";
|
|
8
|
+
var tagName = "terra-data-subsetter";
|
|
9
|
+
TerraDataSubsetter.define("terra-data-subsetter");
|
|
10
|
+
var reactWrapper = createComponent({
|
|
11
|
+
tagName,
|
|
12
|
+
elementClass: TerraDataSubsetter,
|
|
13
|
+
react: React,
|
|
14
|
+
events: {},
|
|
15
|
+
displayName: "TerraDataSubsetter"
|
|
16
|
+
});
|
|
17
|
+
var data_subsetter_default = reactWrapper;
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
data_subsetter_default
|
|
21
|
+
};
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TerraDataRods
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4TLR4QQG.js";
|
|
4
4
|
|
|
5
5
|
// src/react/data-rods/index.ts
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { createComponent } from "@lit/react";
|
|
8
|
+
import "@lit/react";
|
|
8
9
|
var tagName = "terra-data-rods";
|
|
9
10
|
TerraDataRods.define("terra-data-rods");
|
|
10
11
|
var reactWrapper = createComponent({
|
|
11
12
|
tagName,
|
|
12
13
|
elementClass: TerraDataRods,
|
|
13
14
|
react: React,
|
|
14
|
-
events: {
|
|
15
|
+
events: {
|
|
16
|
+
onTerraDateRangeChange: "terra-date-range-change"
|
|
17
|
+
},
|
|
15
18
|
displayName: "TerraDataRods"
|
|
16
19
|
});
|
|
17
20
|
var data_rods_default = reactWrapper;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getIconLibrary,
|
|
6
6
|
unwatchIcon,
|
|
7
7
|
watchIcon
|
|
8
|
-
} from "./chunk.
|
|
8
|
+
} from "./chunk.UA5HHAYZ.js";
|
|
9
9
|
import {
|
|
10
10
|
e
|
|
11
11
|
} from "./chunk.6NYH4BZ2.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
TerraElement,
|
|
17
17
|
component_styles_default
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.C5LFHOAP.js";
|
|
19
19
|
import {
|
|
20
20
|
n,
|
|
21
21
|
r
|
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
import {
|
|
2
|
+
h
|
|
3
|
+
} from "./chunk.UGTZ22DI.js";
|
|
4
|
+
import {
|
|
5
|
+
getGraphQLClient,
|
|
6
|
+
gql
|
|
7
|
+
} from "./chunk.MERDVJWH.js";
|
|
8
|
+
import {
|
|
9
|
+
getUTCDate
|
|
10
|
+
} from "./chunk.EZMKGB3F.js";
|
|
11
|
+
import {
|
|
12
|
+
__privateAdd,
|
|
13
|
+
__privateGet,
|
|
14
|
+
__privateMethod,
|
|
15
|
+
__privateSet,
|
|
16
|
+
__spreadProps,
|
|
17
|
+
__spreadValues
|
|
18
|
+
} from "./chunk.6JHIJHTB.js";
|
|
19
|
+
|
|
20
|
+
// src/data-services/queries.ts
|
|
21
|
+
var GET_SERVICE_CAPABILITIES = gql`
|
|
22
|
+
query GetServiceCapabilities($collectionEntryId: String) {
|
|
23
|
+
getServiceCapabilities(input: { collectionEntryId: $collectionEntryId }) {
|
|
24
|
+
conceptId
|
|
25
|
+
shortName
|
|
26
|
+
variableSubset
|
|
27
|
+
bboxSubset
|
|
28
|
+
shapeSubset
|
|
29
|
+
temporalSubset
|
|
30
|
+
concatenate
|
|
31
|
+
reproject
|
|
32
|
+
capabilitiesVersion
|
|
33
|
+
outputFormats
|
|
34
|
+
services {
|
|
35
|
+
name
|
|
36
|
+
href
|
|
37
|
+
capabilities {
|
|
38
|
+
output_formats
|
|
39
|
+
subsetting {
|
|
40
|
+
temporal
|
|
41
|
+
bbox
|
|
42
|
+
variable
|
|
43
|
+
shape
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
variables {
|
|
48
|
+
name
|
|
49
|
+
href
|
|
50
|
+
conceptId
|
|
51
|
+
}
|
|
52
|
+
collection {
|
|
53
|
+
granuleCount
|
|
54
|
+
EntryTitle
|
|
55
|
+
SpatialExtent {
|
|
56
|
+
GranuleSpatialRepresentation
|
|
57
|
+
HorizontalSpatialDomain {
|
|
58
|
+
Geometry {
|
|
59
|
+
CoordinateSystem
|
|
60
|
+
BoundingRectangles {
|
|
61
|
+
WestBoundingCoordinate
|
|
62
|
+
NorthBoundingCoordinate
|
|
63
|
+
EastBoundingCoordinate
|
|
64
|
+
SouthBoundingCoordinate
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
TemporalExtents {
|
|
70
|
+
EndsAtPresentFlag
|
|
71
|
+
RangeDateTimes {
|
|
72
|
+
BeginningDateTime
|
|
73
|
+
EndingDateTime
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
`;
|
|
80
|
+
var CREATE_SUBSET_JOB = gql`
|
|
81
|
+
mutation CreateSubsetJob(
|
|
82
|
+
$collectionConceptId: String!
|
|
83
|
+
$variableConceptIds: [String]
|
|
84
|
+
$boundingBox: BoundingBoxInput
|
|
85
|
+
$startDate: String
|
|
86
|
+
$endDate: String
|
|
87
|
+
$format: String
|
|
88
|
+
) {
|
|
89
|
+
createSubsetJob(
|
|
90
|
+
input: {
|
|
91
|
+
collectionConceptId: $collectionConceptId
|
|
92
|
+
variableConceptIds: $variableConceptIds
|
|
93
|
+
boundingBox: $boundingBox
|
|
94
|
+
startDate: $startDate
|
|
95
|
+
endDate: $endDate
|
|
96
|
+
format: $format
|
|
97
|
+
}
|
|
98
|
+
) {
|
|
99
|
+
jobID
|
|
100
|
+
status
|
|
101
|
+
message
|
|
102
|
+
progress
|
|
103
|
+
createdAt
|
|
104
|
+
updatedAt
|
|
105
|
+
dataExpiration
|
|
106
|
+
request
|
|
107
|
+
numInputGranules
|
|
108
|
+
originalDataSize
|
|
109
|
+
outputDataSize
|
|
110
|
+
dataSizePercentChange
|
|
111
|
+
labels
|
|
112
|
+
links {
|
|
113
|
+
title
|
|
114
|
+
href
|
|
115
|
+
rel
|
|
116
|
+
type
|
|
117
|
+
bbox
|
|
118
|
+
temporal {
|
|
119
|
+
start
|
|
120
|
+
end
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
`;
|
|
126
|
+
var GET_SUBSET_JOB_STATUS = gql`
|
|
127
|
+
query GetSubsetJobStatus($jobId: String) {
|
|
128
|
+
getSubsetJobStatus(jobId: $jobId) {
|
|
129
|
+
jobID
|
|
130
|
+
status
|
|
131
|
+
message
|
|
132
|
+
progress
|
|
133
|
+
createdAt
|
|
134
|
+
updatedAt
|
|
135
|
+
dataExpiration
|
|
136
|
+
request
|
|
137
|
+
numInputGranules
|
|
138
|
+
originalDataSize
|
|
139
|
+
outputDataSize
|
|
140
|
+
dataSizePercentChange
|
|
141
|
+
labels
|
|
142
|
+
links {
|
|
143
|
+
title
|
|
144
|
+
href
|
|
145
|
+
rel
|
|
146
|
+
type
|
|
147
|
+
bbox
|
|
148
|
+
temporal {
|
|
149
|
+
start
|
|
150
|
+
end
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
errors {
|
|
154
|
+
url
|
|
155
|
+
message
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
`;
|
|
160
|
+
var CANCEL_SUBSET_JOB = gql`
|
|
161
|
+
query CancelSubsetJob($jobId: String) {
|
|
162
|
+
cancelSubsetJob(jobId: $jobId) {
|
|
163
|
+
jobID
|
|
164
|
+
status
|
|
165
|
+
message
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
`;
|
|
169
|
+
|
|
170
|
+
// src/data-services/harmony-data-service.ts
|
|
171
|
+
var FINAL_STATUSES = /* @__PURE__ */ new Set([
|
|
172
|
+
"successful" /* SUCCESSFUL */,
|
|
173
|
+
"failed" /* FAILED */,
|
|
174
|
+
"canceled" /* CANCELED */,
|
|
175
|
+
"complete_with_errors" /* COMPLETE_WITH_ERRORS */
|
|
176
|
+
]);
|
|
177
|
+
var HarmonyDataService = class {
|
|
178
|
+
async getCollectionWithAvailableServices(collectionEntryId, options) {
|
|
179
|
+
const client = await getGraphQLClient();
|
|
180
|
+
console.log(
|
|
181
|
+
"Getting collection with available services for ",
|
|
182
|
+
collectionEntryId
|
|
183
|
+
);
|
|
184
|
+
const response = await client.query({
|
|
185
|
+
query: GET_SERVICE_CAPABILITIES,
|
|
186
|
+
variables: {
|
|
187
|
+
collectionEntryId
|
|
188
|
+
},
|
|
189
|
+
context: {
|
|
190
|
+
headers: __spreadValues({}, (options == null ? void 0 : options.bearerToken) && {
|
|
191
|
+
authorization: options.bearerToken
|
|
192
|
+
}),
|
|
193
|
+
fetchOptions: {
|
|
194
|
+
signal: options == null ? void 0 : options.signal
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
if (response.errors) {
|
|
199
|
+
throw new Error(
|
|
200
|
+
`Failed to create subset job: ${response.errors[0].message}`
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
return response.data.getServiceCapabilities;
|
|
204
|
+
}
|
|
205
|
+
async createSubsetJob(collectionConceptId, subsetOptions) {
|
|
206
|
+
var _a;
|
|
207
|
+
const client = await getGraphQLClient();
|
|
208
|
+
console.log(
|
|
209
|
+
"creating subset job ",
|
|
210
|
+
CREATE_SUBSET_JOB,
|
|
211
|
+
collectionConceptId,
|
|
212
|
+
subsetOptions
|
|
213
|
+
);
|
|
214
|
+
const response = await client.mutate({
|
|
215
|
+
mutation: CREATE_SUBSET_JOB,
|
|
216
|
+
variables: {
|
|
217
|
+
collectionConceptId,
|
|
218
|
+
variableConceptIds: subsetOptions == null ? void 0 : subsetOptions.variableConceptIds,
|
|
219
|
+
boundingBox: subsetOptions == null ? void 0 : subsetOptions.boundingBox,
|
|
220
|
+
startDate: subsetOptions == null ? void 0 : subsetOptions.startDate,
|
|
221
|
+
endDate: subsetOptions == null ? void 0 : subsetOptions.endDate,
|
|
222
|
+
format: subsetOptions == null ? void 0 : subsetOptions.format
|
|
223
|
+
},
|
|
224
|
+
context: {
|
|
225
|
+
headers: __spreadValues({}, (subsetOptions == null ? void 0 : subsetOptions.bearerToken) && {
|
|
226
|
+
authorization: subsetOptions.bearerToken
|
|
227
|
+
}),
|
|
228
|
+
fetchOptions: {
|
|
229
|
+
signal: subsetOptions == null ? void 0 : subsetOptions.signal
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
if (response.errors) {
|
|
234
|
+
throw new Error(
|
|
235
|
+
`Failed to create subset job: ${response.errors[0].message}`
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
return (_a = response.data) == null ? void 0 : _a.createSubsetJob;
|
|
239
|
+
}
|
|
240
|
+
async getSubsetJobStatus(jobId, searchOptions) {
|
|
241
|
+
const client = await getGraphQLClient();
|
|
242
|
+
const response = await client.query({
|
|
243
|
+
query: GET_SUBSET_JOB_STATUS,
|
|
244
|
+
variables: {
|
|
245
|
+
jobId
|
|
246
|
+
},
|
|
247
|
+
context: {
|
|
248
|
+
headers: __spreadValues({}, (searchOptions == null ? void 0 : searchOptions.bearerToken) && {
|
|
249
|
+
authorization: searchOptions.bearerToken
|
|
250
|
+
}),
|
|
251
|
+
fetchOptions: {
|
|
252
|
+
signal: searchOptions == null ? void 0 : searchOptions.signal
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
fetchPolicy: "no-cache"
|
|
256
|
+
//! important, we don't want to get cached results here!
|
|
257
|
+
});
|
|
258
|
+
if (response.errors) {
|
|
259
|
+
throw new Error(
|
|
260
|
+
`Failed to create subset job: ${response.errors[0].message}`
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
return response.data.getSubsetJobStatus;
|
|
264
|
+
}
|
|
265
|
+
async cancelSubsetJob(jobId, options) {
|
|
266
|
+
const client = await getGraphQLClient();
|
|
267
|
+
const response = await client.query({
|
|
268
|
+
query: CANCEL_SUBSET_JOB,
|
|
269
|
+
variables: {
|
|
270
|
+
jobId
|
|
271
|
+
},
|
|
272
|
+
context: {
|
|
273
|
+
headers: __spreadValues({}, (options == null ? void 0 : options.bearerToken) && {
|
|
274
|
+
authorization: options.bearerToken
|
|
275
|
+
})
|
|
276
|
+
},
|
|
277
|
+
fetchPolicy: "no-cache"
|
|
278
|
+
//! important, we don't want to get cached results here!
|
|
279
|
+
});
|
|
280
|
+
if (response.errors) {
|
|
281
|
+
throw new Error(
|
|
282
|
+
`Failed to cancel subset job: ${response.errors[0].message}`
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
return response.data.cancelSubsetJob;
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
// src/components/data-subsetter/data-subsetter.controller.ts
|
|
290
|
+
var JOB_STATUS_POLL_MILLIS = 1e3;
|
|
291
|
+
var _host, _dataService, _getDataService, getDataService_fn, _getEmptyJob, getEmptyJob_fn;
|
|
292
|
+
var DataSubsetterController = class {
|
|
293
|
+
constructor(host) {
|
|
294
|
+
__privateAdd(this, _getDataService);
|
|
295
|
+
__privateAdd(this, _getEmptyJob);
|
|
296
|
+
__privateAdd(this, _host, void 0);
|
|
297
|
+
__privateAdd(this, _dataService, void 0);
|
|
298
|
+
__privateSet(this, _host, host);
|
|
299
|
+
__privateSet(this, _dataService, __privateMethod(this, _getDataService, getDataService_fn).call(this));
|
|
300
|
+
this.fetchCollectionTask = new h(host, {
|
|
301
|
+
task: async ([collectionEntryId], { signal }) => {
|
|
302
|
+
__privateGet(this, _host).collectionWithServices = collectionEntryId ? await __privateGet(this, _dataService).getCollectionWithAvailableServices(
|
|
303
|
+
collectionEntryId,
|
|
304
|
+
{ signal, bearerToken: __privateGet(this, _host).bearerToken }
|
|
305
|
+
) : void 0;
|
|
306
|
+
return __privateGet(this, _host).collectionWithServices;
|
|
307
|
+
},
|
|
308
|
+
args: () => [__privateGet(this, _host).collectionEntryId]
|
|
309
|
+
});
|
|
310
|
+
this.jobStatusTask = new h(host, {
|
|
311
|
+
task: async ([], { signal }) => {
|
|
312
|
+
var _a, _b, _c, _d, _e;
|
|
313
|
+
let job;
|
|
314
|
+
if ((_a = this.currentJob) == null ? void 0 : _a.jobID) {
|
|
315
|
+
job = await __privateGet(this, _dataService).getSubsetJobStatus(
|
|
316
|
+
this.currentJob.jobID,
|
|
317
|
+
{ signal, bearerToken: __privateGet(this, _host).bearerToken }
|
|
318
|
+
);
|
|
319
|
+
} else {
|
|
320
|
+
let subsetOptions = __spreadValues(__spreadValues(__spreadValues({
|
|
321
|
+
variableConceptIds: __privateGet(this, _host).selectedVariables.map(
|
|
322
|
+
(v) => v.conceptId
|
|
323
|
+
)
|
|
324
|
+
}, "w" in ((_b = __privateGet(this, _host).spatialSelection) != null ? _b : {}) && {
|
|
325
|
+
boundingBox: __privateGet(this, _host).spatialSelection
|
|
326
|
+
}), __privateGet(this, _host).selectedDateRange.startDate && __privateGet(this, _host).selectedDateRange.endDate && {
|
|
327
|
+
startDate: getUTCDate(
|
|
328
|
+
__privateGet(this, _host).selectedDateRange.startDate
|
|
329
|
+
).toISOString(),
|
|
330
|
+
endDate: getUTCDate(
|
|
331
|
+
__privateGet(this, _host).selectedDateRange.endDate,
|
|
332
|
+
true
|
|
333
|
+
).toISOString()
|
|
334
|
+
}), __privateGet(this, _host).selectedFormat && {
|
|
335
|
+
format: __privateGet(this, _host).selectedFormat
|
|
336
|
+
});
|
|
337
|
+
console.log(
|
|
338
|
+
`Creating a job for collection, ${(_c = __privateGet(this, _host).collectionWithServices) == null ? void 0 : _c.conceptId}, with subset options`,
|
|
339
|
+
subsetOptions
|
|
340
|
+
);
|
|
341
|
+
this.currentJob = __privateMethod(this, _getEmptyJob, getEmptyJob_fn).call(this);
|
|
342
|
+
job = await __privateGet(this, _dataService).createSubsetJob(
|
|
343
|
+
(_e = (_d = __privateGet(this, _host).collectionWithServices) == null ? void 0 : _d.conceptId) != null ? _e : "",
|
|
344
|
+
__spreadProps(__spreadValues({}, subsetOptions), {
|
|
345
|
+
signal,
|
|
346
|
+
bearerToken: __privateGet(this, _host).bearerToken
|
|
347
|
+
})
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
console.log("Job status: ", job);
|
|
351
|
+
if (job) {
|
|
352
|
+
this.currentJob = job;
|
|
353
|
+
}
|
|
354
|
+
if (!FINAL_STATUSES.has(this.currentJob.status)) {
|
|
355
|
+
setTimeout(() => {
|
|
356
|
+
this.jobStatusTask.run();
|
|
357
|
+
}, JOB_STATUS_POLL_MILLIS);
|
|
358
|
+
}
|
|
359
|
+
return job;
|
|
360
|
+
},
|
|
361
|
+
args: () => [],
|
|
362
|
+
autoRun: false
|
|
363
|
+
// this task won't automatically be triggered, the component has to trigger it manually
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
render(renderFunctions) {
|
|
367
|
+
return this.jobStatusTask.render(renderFunctions);
|
|
368
|
+
}
|
|
369
|
+
fetchJobByID(jobID) {
|
|
370
|
+
this.currentJob = {
|
|
371
|
+
jobID,
|
|
372
|
+
status: "fetching" /* FETCHING */,
|
|
373
|
+
message: "Your job is being retrieved.",
|
|
374
|
+
progress: 0,
|
|
375
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
376
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
377
|
+
dataExpiration: "",
|
|
378
|
+
request: "",
|
|
379
|
+
numInputGranules: 0,
|
|
380
|
+
links: []
|
|
381
|
+
};
|
|
382
|
+
this.jobStatusTask.run();
|
|
383
|
+
}
|
|
384
|
+
cancelCurrentJob() {
|
|
385
|
+
var _a;
|
|
386
|
+
if (!((_a = this.currentJob) == null ? void 0 : _a.jobID)) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
__privateGet(this, _dataService).cancelSubsetJob(this.currentJob.jobID, {
|
|
390
|
+
bearerToken: __privateGet(this, _host).bearerToken
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
_host = new WeakMap();
|
|
395
|
+
_dataService = new WeakMap();
|
|
396
|
+
_getDataService = new WeakSet();
|
|
397
|
+
getDataService_fn = function() {
|
|
398
|
+
return new HarmonyDataService();
|
|
399
|
+
};
|
|
400
|
+
_getEmptyJob = new WeakSet();
|
|
401
|
+
getEmptyJob_fn = function() {
|
|
402
|
+
return {
|
|
403
|
+
jobID: "",
|
|
404
|
+
status: "running" /* RUNNING */,
|
|
405
|
+
message: "Your job is being created and will start soon.",
|
|
406
|
+
progress: 0,
|
|
407
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
408
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
409
|
+
dataExpiration: "",
|
|
410
|
+
request: "",
|
|
411
|
+
numInputGranules: 0,
|
|
412
|
+
links: []
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
export {
|
|
417
|
+
DataSubsetterController
|
|
418
|
+
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TerraVariableKeywordSearch
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.UA2PIKHW.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraSkeleton
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.7V2LW54F.js";
|
|
7
7
|
import {
|
|
8
8
|
getRandomIntInclusive
|
|
9
9
|
} from "./chunk.7PAVW6KC.js";
|
|
10
10
|
import {
|
|
11
11
|
TerraLoader
|
|
12
|
-
} from "./chunk.
|
|
13
|
-
import {
|
|
14
|
-
TerraIcon
|
|
15
|
-
} from "./chunk.6IMVZQLW.js";
|
|
12
|
+
} from "./chunk.HRTKXUXQ.js";
|
|
16
13
|
import {
|
|
17
14
|
TerraButton
|
|
18
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.RMZFGHSG.js";
|
|
16
|
+
import {
|
|
17
|
+
BrowseVariablesController
|
|
18
|
+
} from "./chunk.DPC5A37S.js";
|
|
19
|
+
import {
|
|
20
|
+
s
|
|
21
|
+
} from "./chunk.UGTZ22DI.js";
|
|
22
|
+
import {
|
|
23
|
+
browse_variables_styles_default
|
|
24
|
+
} from "./chunk.4EVDB43F.js";
|
|
25
|
+
import {
|
|
26
|
+
TerraIcon
|
|
27
|
+
} from "./chunk.JU7676XZ.js";
|
|
19
28
|
import {
|
|
20
29
|
watch
|
|
21
30
|
} from "./chunk.6MMTW476.js";
|
|
22
31
|
import {
|
|
23
32
|
TerraElement,
|
|
24
33
|
component_styles_default
|
|
25
|
-
} from "./chunk.
|
|
34
|
+
} from "./chunk.C5LFHOAP.js";
|
|
26
35
|
import {
|
|
27
36
|
n,
|
|
28
37
|
r
|
|
29
38
|
} from "./chunk.2FFSUM6T.js";
|
|
30
|
-
import {
|
|
31
|
-
BrowseVariablesController
|
|
32
|
-
} from "./chunk.ALXMBVVZ.js";
|
|
33
|
-
import {
|
|
34
|
-
s
|
|
35
|
-
} from "./chunk.UGTZ22DI.js";
|
|
36
|
-
import {
|
|
37
|
-
browse_variables_styles_default
|
|
38
|
-
} from "./chunk.4EVDB43F.js";
|
|
39
39
|
import {
|
|
40
40
|
T,
|
|
41
41
|
x
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clearSelection,
|
|
3
|
-
walkToOption
|
|
4
|
-
} from "./chunk.LMGJJIIS.js";
|
|
5
1
|
import {
|
|
6
2
|
c
|
|
7
3
|
} from "./chunk.PZRCJWJ4.js";
|
|
@@ -11,22 +7,26 @@ import {
|
|
|
11
7
|
import {
|
|
12
8
|
combobox_styles_default
|
|
13
9
|
} from "./chunk.USC76EZL.js";
|
|
10
|
+
import {
|
|
11
|
+
clearSelection,
|
|
12
|
+
walkToOption
|
|
13
|
+
} from "./chunk.LMGJJIIS.js";
|
|
14
14
|
import {
|
|
15
15
|
Fuse
|
|
16
16
|
} from "./chunk.QZV6EAIM.js";
|
|
17
|
-
import {
|
|
18
|
-
o
|
|
19
|
-
} from "./chunk.QEA4QW6G.js";
|
|
20
17
|
import {
|
|
21
18
|
n as n2
|
|
22
19
|
} from "./chunk.2XCNCXGV.js";
|
|
20
|
+
import {
|
|
21
|
+
o
|
|
22
|
+
} from "./chunk.QEA4QW6G.js";
|
|
23
23
|
import {
|
|
24
24
|
watch
|
|
25
25
|
} from "./chunk.6MMTW476.js";
|
|
26
26
|
import {
|
|
27
27
|
TerraElement,
|
|
28
28
|
component_styles_default
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.C5LFHOAP.js";
|
|
30
30
|
import {
|
|
31
31
|
n,
|
|
32
32
|
r
|