synapse-react-client 4.0.1 → 4.0.3-b
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/dist/SWC.index.js +1 -1
- package/dist/assets/icons/AwardScroll.d.ts +5 -0
- package/dist/assets/icons/AwardScroll.d.ts.map +1 -0
- package/dist/assets/icons/AwardScroll.js +78 -0
- package/dist/assets/icons/AwardScroll.js.map +1 -0
- package/dist/assets/icons/Baseline.d.ts +5 -0
- package/dist/assets/icons/Baseline.d.ts.map +1 -0
- package/dist/assets/icons/Baseline.js +43 -0
- package/dist/assets/icons/Baseline.js.map +1 -0
- package/dist/assets/icons/Challenge.svg +13 -0
- package/dist/assets/icons/Challenge.svg.js +7 -0
- package/dist/assets/icons/Challenge.svg.js.map +1 -0
- package/dist/assets/icons/ClappingHands.d.ts +5 -0
- package/dist/assets/icons/ClappingHands.d.ts.map +1 -0
- package/dist/assets/icons/ClappingHands.js +106 -0
- package/dist/assets/icons/ClappingHands.js.map +1 -0
- package/dist/assets/icons/DNA_Two.svg +0 -0
- package/dist/assets/icons/Data2.svg +0 -0
- package/dist/assets/icons/HandWithMoney.d.ts +5 -0
- package/dist/assets/icons/HandWithMoney.d.ts.map +1 -0
- package/dist/assets/icons/HandWithMoney.js +15 -0
- package/dist/assets/icons/HandWithMoney.js.map +1 -0
- package/dist/assets/icons/MultiFile.d.ts +5 -0
- package/dist/assets/icons/MultiFile.d.ts.map +1 -0
- package/dist/assets/icons/MultiFile.js +8 -0
- package/dist/assets/icons/MultiFile.js.map +1 -0
- package/dist/assets/icons/MultiFile.svg +4 -0
- package/dist/assets/icons/MultiFile.svg.js +7 -0
- package/dist/assets/icons/MultiFile.svg.js.map +1 -0
- package/dist/assets/icons/OpenBook.d.ts +5 -0
- package/dist/assets/icons/OpenBook.d.ts.map +1 -0
- package/dist/assets/icons/OpenBook.js +99 -0
- package/dist/assets/icons/OpenBook.js.map +1 -0
- package/dist/assets/icons/Podium.d.ts +5 -0
- package/dist/assets/icons/Podium.d.ts.map +1 -0
- package/dist/assets/icons/Podium.js +36 -0
- package/dist/assets/icons/Podium.js.map +1 -0
- package/dist/assets/icons/RosetteRibbon.d.ts +5 -0
- package/dist/assets/icons/RosetteRibbon.d.ts.map +1 -0
- package/dist/assets/icons/RosetteRibbon.js +36 -0
- package/dist/assets/icons/RosetteRibbon.js.map +1 -0
- package/dist/assets/icons/StarTrophy.d.ts +5 -0
- package/dist/assets/icons/StarTrophy.d.ts.map +1 -0
- package/dist/assets/icons/StarTrophy.js +99 -0
- package/dist/assets/icons/StarTrophy.js.map +1 -0
- package/dist/assets/icons/ThreeStars.d.ts +5 -0
- package/dist/assets/icons/ThreeStars.d.ts.map +1 -0
- package/dist/assets/icons/ThreeStars.js +71 -0
- package/dist/assets/icons/ThreeStars.js.map +1 -0
- package/dist/assets/icons/UnpackagableFile.d.ts +5 -0
- package/dist/assets/icons/UnpackagableFile.d.ts.map +1 -0
- package/dist/assets/icons/UnpackagableFile.js +8 -0
- package/dist/assets/icons/UnpackagableFile.js.map +1 -0
- package/dist/assets/icons/UnpackagableFile.svg +4 -0
- package/dist/assets/icons/UnpackagableFile.svg.js +7 -0
- package/dist/assets/icons/UnpackagableFile.svg.js.map +1 -0
- package/dist/assets/mui_components/PackagableFile.d.ts.map +1 -1
- package/dist/assets/mui_components/PackagableFile.js +5 -4
- package/dist/assets/mui_components/PackagableFile.js.map +1 -1
- package/dist/assets/mui_components/PackagableFile.svg +3 -0
- package/dist/assets/mui_components/PackagableFile.svg.js +7 -0
- package/dist/assets/mui_components/PackagableFile.svg.js.map +1 -0
- package/dist/assets/themed_icons/index.d.ts +1 -2
- package/dist/assets/themed_icons/index.d.ts.map +1 -1
- package/dist/assets/themed_icons/index.js +8 -10
- package/dist/assets/themed_icons/index.js.map +1 -1
- package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js +4 -4
- package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js.map +1 -1
- package/dist/components/AddToDownloadListV2.js +10 -10
- package/dist/components/AddToDownloadListV2.js.map +1 -1
- package/dist/components/BasePortalCard/BasePortalCard.css +1 -1
- package/dist/components/BasePortalCard/BasePortalCard.d.ts +1 -2
- package/dist/components/BasePortalCard/BasePortalCard.d.ts.map +1 -1
- package/dist/components/BasePortalCard/BasePortalCard.js +21 -28
- package/dist/components/BasePortalCard/BasePortalCard.js.map +1 -1
- package/dist/components/BasePortalCard/BasePortalCard.module.scss +7 -1
- package/dist/components/BasePortalCard/BasePortalCard.module.scss.js +11 -11
- package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.d.ts.map +1 -1
- package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.js +24 -24
- package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.js.map +1 -1
- package/dist/components/CardContainerLogic/CardContainerLogic.d.ts +5 -1
- package/dist/components/CardContainerLogic/CardContainerLogic.d.ts.map +1 -1
- package/dist/components/CardContainerLogic/CardContainerLogic.js.map +1 -1
- package/dist/components/CardContainerLogic/index.d.ts +1 -1
- package/dist/components/CardContainerLogic/index.d.ts.map +1 -1
- package/dist/components/CardDeck/TableQueryCardDeck.js +12 -9
- package/dist/components/CardDeck/TableQueryCardDeck.js.map +1 -1
- package/dist/components/ChallengeDataDownload/ChallengeDataDownload.js +33 -33
- package/dist/components/ChallengeDataDownload/ChallengeDataDownload.js.map +1 -1
- package/dist/components/ChangePassword/useChangePasswordFormState.js +5 -2
- package/dist/components/ChangePassword/useChangePasswordFormState.js.map +1 -1
- package/dist/components/ComponentCollapse.d.ts +6 -10
- package/dist/components/ComponentCollapse.d.ts.map +1 -1
- package/dist/components/ComponentCollapse.js +31 -35
- package/dist/components/ComponentCollapse.js.map +1 -1
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js +12 -9
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js.map +1 -1
- package/dist/components/DataGrid/MergeGridWithSourceTableButton.js +8 -3
- package/dist/components/DataGrid/MergeGridWithSourceTableButton.js.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.js +8 -3
- package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
- package/dist/components/DataGrid/components/UploadCsvToGridDialog.js +8 -3
- package/dist/components/DataGrid/components/UploadCsvToGridDialog.js.map +1 -1
- package/dist/components/DirectDownload/DirectDownload.d.ts.map +1 -1
- package/dist/components/DirectDownload/DirectDownload.js +23 -23
- package/dist/components/DirectDownload/DirectDownload.js.map +1 -1
- package/dist/components/DownloadCart/AvailableForDownloadTable.d.ts +6 -2
- package/dist/components/DownloadCart/AvailableForDownloadTable.d.ts.map +1 -1
- package/dist/components/DownloadCart/AvailableForDownloadTable.js +10 -8
- package/dist/components/DownloadCart/AvailableForDownloadTable.js.map +1 -1
- package/dist/components/DownloadCart/CreatePackageV2.css +1 -0
- package/dist/components/DownloadCart/CreatePackageV2.d.ts.map +1 -1
- package/dist/components/DownloadCart/CreatePackageV2.js +50 -46
- package/dist/components/DownloadCart/CreatePackageV2.js.map +1 -1
- package/dist/components/DownloadCart/CreatePackageV2.module.scss +38 -0
- package/dist/components/DownloadCart/CreatePackageV2.module.scss.js +14 -0
- package/dist/components/DownloadCart/CreatePackageV2.module.scss.js.map +1 -0
- package/dist/components/DownloadCart/DownloadCartPage.css +1 -0
- package/dist/components/DownloadCart/DownloadCartPage.d.ts.map +1 -1
- package/dist/components/DownloadCart/DownloadCartPage.js +316 -186
- package/dist/components/DownloadCart/DownloadCartPage.js.map +1 -1
- package/dist/components/DownloadCart/DownloadCartPage.module.scss +217 -0
- package/dist/components/DownloadCart/DownloadCartPage.module.scss.js +48 -0
- package/dist/components/DownloadCart/DownloadCartPage.module.scss.js.map +1 -0
- package/dist/components/DownloadCart/DownloadDetails.js +1 -1
- package/dist/components/DownloadCart/DownloadDetails.js.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js +33 -33
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js.map +1 -1
- package/dist/components/DownloadCart/DownloadListTable.d.ts +4 -1
- package/dist/components/DownloadCart/DownloadListTable.d.ts.map +1 -1
- package/dist/components/DownloadCart/DownloadListTable.js +156 -236
- package/dist/components/DownloadCart/DownloadListTable.js.map +1 -1
- package/dist/components/DownloadCart/ShowDownloadV2.js +5 -5
- package/dist/components/DownloadCart/ShowDownloadV2.js.map +1 -1
- package/dist/components/Ecosystem/EcosystemSkeleton.js +8 -3
- package/dist/components/Ecosystem/EcosystemSkeleton.js.map +1 -1
- package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts +3 -0
- package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts.map +1 -1
- package/dist/components/EntityDownloadButton/EntityDownloadButton.js +113 -119
- package/dist/components/EntityDownloadButton/EntityDownloadButton.js.map +1 -1
- package/dist/components/EntityFinder/details/view/table/AddToDownloadListCell.js +3 -3
- package/dist/components/EntityFinder/details/view/table/AddToDownloadListCell.js.map +1 -1
- package/dist/components/FeaturedDataTabs/FacetPlotsCard.js +6 -2
- package/dist/components/FeaturedDataTabs/FacetPlotsCard.js.map +1 -1
- package/dist/components/FeaturedDataTabs/FeaturedDataTabs.js +11 -8
- package/dist/components/FeaturedDataTabs/FeaturedDataTabs.js.map +1 -1
- package/dist/components/FullWidthAlert/FullWidthAlert.d.ts +2 -2
- package/dist/components/FullWidthAlert/FullWidthAlert.js.map +1 -1
- package/dist/components/GenericCard/GenericCard.d.ts +5 -5
- package/dist/components/GenericCard/GenericCard.d.ts.map +1 -1
- package/dist/components/GenericCard/GenericCard.js +117 -103
- package/dist/components/GenericCard/GenericCard.js.map +1 -1
- package/dist/components/GenericCard/LabelMaybeWithIcon.d.ts +10 -0
- package/dist/components/GenericCard/LabelMaybeWithIcon.d.ts.map +1 -0
- package/dist/components/GenericCard/LabelMaybeWithIcon.js +33 -0
- package/dist/components/GenericCard/LabelMaybeWithIcon.js.map +1 -0
- package/dist/components/GenericCard/SynapseCardLabel.d.ts +2 -1
- package/dist/components/GenericCard/SynapseCardLabel.d.ts.map +1 -1
- package/dist/components/GenericCard/SynapseCardLabel.js +86 -81
- package/dist/components/GenericCard/SynapseCardLabel.js.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.d.ts +7 -1
- package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.js +239 -202
- package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
- package/dist/components/HeaderCard.js +17 -13
- package/dist/components/HeaderCard.js.map +1 -1
- package/dist/components/Icon/Icon.js +52 -52
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/IconSvg/IconSvg.d.ts +1 -1
- package/dist/components/IconSvg/IconSvg.d.ts.map +1 -1
- package/dist/components/IconSvg/IconSvg.js +215 -171
- package/dist/components/IconSvg/IconSvg.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +1 -0
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +103 -102
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/components/StorybookComponentWrapper.js +6 -3
- package/dist/components/StorybookComponentWrapper.js.map +1 -1
- package/dist/components/SynapseChat/SynapseChat.d.ts +7 -1
- package/dist/components/SynapseChat/SynapseChat.d.ts.map +1 -1
- package/dist/components/SynapseChat/SynapseChat.js +76 -67
- package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
- package/dist/components/SynapseChat/SynapseChatInteraction.d.ts +2 -1
- package/dist/components/SynapseChat/SynapseChatInteraction.d.ts.map +1 -1
- package/dist/components/SynapseChat/SynapseChatInteraction.js +83 -58
- package/dist/components/SynapseChat/SynapseChatInteraction.js.map +1 -1
- package/dist/components/SynapseChat/SynapseChatMessage.d.ts +1 -0
- package/dist/components/SynapseChat/SynapseChatMessage.d.ts.map +1 -1
- package/dist/components/SynapseChat/SynapseChatMessage.js +16 -15
- package/dist/components/SynapseChat/SynapseChatMessage.js.map +1 -1
- package/dist/components/SynapseChat/SynapsePortalChatDialog.d.ts +12 -0
- package/dist/components/SynapseChat/SynapsePortalChatDialog.d.ts.map +1 -0
- package/dist/components/SynapseChat/SynapsePortalChatDialog.js +30 -0
- package/dist/components/SynapseChat/SynapsePortalChatDialog.js.map +1 -0
- package/dist/components/SynapseChat/extractMessageFromTraceEvent.d.ts.map +1 -1
- package/dist/components/SynapseChat/extractMessageFromTraceEvent.js +22 -16
- package/dist/components/SynapseChat/extractMessageFromTraceEvent.js.map +1 -1
- package/dist/components/SynapseChat/index.d.ts +2 -0
- package/dist/components/SynapseChat/index.d.ts.map +1 -1
- package/dist/components/SynapseChat/index.js +5 -3
- package/dist/components/SynapseChat/index.js.map +1 -1
- package/dist/components/SynapseChat/useChatState.d.ts +1 -1
- package/dist/components/SynapseChat/useChatState.d.ts.map +1 -1
- package/dist/components/SynapseChat/useChatState.js +10 -7
- package/dist/components/SynapseChat/useChatState.js.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseHomepageChatSearch.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseHomepageChatSearch.js +30 -32
- package/dist/components/SynapseHomepageV2/SynapseHomepageChatSearch.js.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseHomepageSearch.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseHomepageSearch.js +27 -30
- package/dist/components/SynapseHomepageV2/SynapseHomepageSearch.js.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseSearchChips.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseSearchChips.js +14 -17
- package/dist/components/SynapseHomepageV2/SynapseSearchChips.js.map +1 -1
- package/dist/components/SynapseNavDrawer/SynapseNavDrawer.d.ts.map +1 -1
- package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js +114 -115
- package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js.map +1 -1
- package/dist/components/SynapsePortalBanners/SynapsePortalBanners.d.ts.map +1 -1
- package/dist/components/SynapsePortalBanners/SynapsePortalBanners.js +39 -39
- package/dist/components/SynapsePortalBanners/SynapsePortalBanners.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js +18 -18
- package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.d.ts.map +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js +66 -64
- package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js.map +1 -1
- package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js +13 -13
- package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js.map +1 -1
- package/dist/components/SynapseTable/TopLevelControls/TopLevelControlsUtils.js +9 -9
- package/dist/components/SynapseTable/TopLevelControls/TopLevelControlsUtils.js.map +1 -1
- package/dist/components/TextToComponentCollapse.d.ts +16 -0
- package/dist/components/TextToComponentCollapse.d.ts.map +1 -0
- package/dist/components/TextToComponentCollapse.js +29 -0
- package/dist/components/TextToComponentCollapse.js.map +1 -0
- package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js +8 -3
- package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js.map +1 -1
- package/dist/components/download_list/DownloadConfirmationUI.d.ts +1 -1
- package/dist/components/download_list/DownloadConfirmationUI.js +22 -22
- package/dist/components/download_list/DownloadConfirmationUI.js.map +1 -1
- package/dist/components/download_list/DownloadConfirmationUtils.js +4 -4
- package/dist/components/download_list/DownloadConfirmationUtils.js.map +1 -1
- package/dist/components/index.js +85 -83
- package/dist/components/index.js.map +1 -1
- package/dist/components/row_renderers/ObservationCard.js +12 -11
- package/dist/components/row_renderers/ObservationCard.js.map +1 -1
- package/dist/components/row_renderers/utils/CardFooter.d.ts +1 -3
- package/dist/components/row_renderers/utils/CardFooter.d.ts.map +1 -1
- package/dist/components/row_renderers/utils/CardFooter.js +31 -45
- package/dist/components/row_renderers/utils/CardFooter.js.map +1 -1
- package/dist/components/table/CsvPreview/CsvPreview.js +8 -3
- package/dist/components/table/CsvPreview/CsvPreview.js.map +1 -1
- package/dist/components/table/CsvPreview/CsvPreviewDialog.js +8 -3
- package/dist/components/table/CsvPreview/CsvPreviewDialog.js.map +1 -1
- package/dist/features/curator/GridPage/GridPage.js +8 -3
- package/dist/features/curator/GridPage/GridPage.js.map +1 -1
- package/dist/features/curator/GridPage/components/GridPageTitle.js +8 -3
- package/dist/features/curator/GridPage/components/GridPageTitle.js.map +1 -1
- package/dist/index.js +137 -135
- package/dist/index.js.map +1 -1
- package/dist/style/abstracts/_functions.scss +0 -0
- package/dist/style/abstracts/_mixins.scss +0 -0
- package/dist/style/abstracts/_variables.scss +0 -0
- package/dist/style/base/_base.scss +0 -0
- package/dist/style/base/_fonts.scss +0 -0
- package/dist/style/base/_helpers.scss +0 -0
- package/dist/style/components/_all.scss +0 -1
- package/dist/style/components/_cards.scss +22 -0
- package/dist/style/components/_download-list-v2.scss +1 -1
- package/dist/style/components/_query-wrapper-plot-nav.scss +13 -0
- package/dist/style/main.css +1 -1
- package/dist/style/main.scss +0 -0
- package/dist/style/vendors/_normalize.scss +0 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/AppUtils/session/ApplicationSessionManager.d.ts.map +1 -1
- package/dist/utils/AppUtils/session/ApplicationSessionManager.js.map +1 -1
- package/dist/utils/context/FullContextProvider.js +9 -9
- package/dist/utils/context/FullContextProvider.js.map +1 -1
- package/dist/utils/context/SynapseContext.d.ts.map +1 -1
- package/dist/utils/context/SynapseContext.js +1 -0
- package/dist/utils/context/SynapseContext.js.map +1 -1
- package/dist/utils/functions/SqlFunctions.d.ts +4 -0
- package/dist/utils/functions/SqlFunctions.d.ts.map +1 -1
- package/dist/utils/functions/SqlFunctions.js +25 -23
- package/dist/utils/functions/SqlFunctions.js.map +1 -1
- package/package.json +25 -24
- package/dist/assets/themed_icons/Challenge.d.ts +0 -3
- package/dist/assets/themed_icons/Challenge.d.ts.map +0 -1
- package/dist/assets/themed_icons/Challenge.js +0 -25
- package/dist/assets/themed_icons/Challenge.js.map +0 -1
- package/dist/style/components/_download-cart-page.scss +0 -204
|
@@ -1,107 +1,109 @@
|
|
|
1
|
-
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import i from "./DownloadCartPage.module.scss.js";
|
|
3
|
+
import * as B from "../../synapse-client/SynapseClient.js";
|
|
3
4
|
import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
|
|
4
5
|
import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
|
|
5
6
|
import "@sage-bionetworks/synapse-client/util/SynapseClientError";
|
|
6
|
-
import { FeatureFlagEnum as
|
|
7
|
+
import { FeatureFlagEnum as q } from "@sage-bionetworks/synapse-types";
|
|
7
8
|
import "../../utils/functions/EntityTypeUtils.js";
|
|
8
9
|
import "../../utils/SynapseConstants.js";
|
|
9
10
|
import "lodash-es";
|
|
10
11
|
import "@sage-bionetworks/synapse-client/util/synapseClientFetch";
|
|
11
|
-
import { useGetDownloadListStatistics as
|
|
12
|
-
import { useGetFeatureFlag as
|
|
13
|
-
import { useSynapseContext as
|
|
14
|
-
import { DeleteTwoTone as
|
|
15
|
-
import { Tooltip as g, Button as
|
|
16
|
-
import { useState as
|
|
17
|
-
import { ErrorBanner as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { DownloadIneligibleForPackagingFilesFromListButton as
|
|
26
|
-
import { DownloadListActionsRequired as
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
import { useGetDownloadListStatistics as z } from "../../synapse-queries/download/useDownloadList.js";
|
|
13
|
+
import { useGetFeatureFlag as H } from "../../synapse-queries/featureflags/useGetFeatureFlag.js";
|
|
14
|
+
import { useSynapseContext as M } from "../../utils/context/SynapseContext.js";
|
|
15
|
+
import { DeleteTwoTone as G } from "@mui/icons-material";
|
|
16
|
+
import { Tooltip as g, Button as h, Typography as n } from "@mui/material";
|
|
17
|
+
import { useState as c, useRef as Z, useEffect as v } from "react";
|
|
18
|
+
import { ErrorBanner as V } from "../error/ErrorBanner.js";
|
|
19
|
+
import Y from "../FullWidthAlert/FullWidthAlert.js";
|
|
20
|
+
import d from "../IconSvg/IconSvg.js";
|
|
21
|
+
import { ProgrammaticInstructionsModal as U } from "../ProgrammaticInstructionsModal/ProgrammaticInstructionsModal.js";
|
|
22
|
+
import W from "./AvailableForDownloadTable.js";
|
|
23
|
+
import { CreatePackageV2 as j } from "./CreatePackageV2.js";
|
|
24
|
+
import { PYTHON_CLIENT_IMPORT_AND_LOGIN as J } from "./DirectProgrammaticDownload.js";
|
|
25
|
+
import { calculateFriendlyFileSize as K } from "../../utils/functions/calculateFriendlyFileSize.js";
|
|
26
|
+
import { DownloadIneligibleForPackagingFilesFromListButton as Q } from "./DownloadIneligibleForPackagingFilesFromListButton.js";
|
|
27
|
+
import { DownloadListActionsRequired as X } from "./DownloadListActionsRequired.js";
|
|
28
|
+
import w from "../ComponentCollapse.js";
|
|
29
|
+
const ee = `${J}
|
|
30
|
+
dl_list_file_entities = syn.get_download_list()`, ie = "synapse get-download-list", I = [
|
|
31
|
+
{ label: "All Files", filter: void 0 },
|
|
32
|
+
{ label: "Files included in ZIP", filter: "eligibleForPackaging" },
|
|
33
|
+
{ label: "Files not included in ZIP", filter: "ineligibleForPackaging" }
|
|
34
|
+
];
|
|
35
|
+
function xe(S) {
|
|
36
|
+
const { accessToken: A } = M(), [t, p] = c(0), [u, x] = c(0), F = I[u].filter, [b, D] = c(!1), N = Z(null);
|
|
37
|
+
v(() => {
|
|
38
|
+
b && N.current?.scrollIntoView({
|
|
39
|
+
behavior: "smooth",
|
|
40
|
+
block: "center"
|
|
41
|
+
});
|
|
42
|
+
}, [b]);
|
|
43
|
+
const [P, y] = c(!1), [O, C] = c(!1), [k, T] = c(), L = H(
|
|
44
|
+
q.DOWNLOAD_CART_INELIGIBLE_FILE_DOWNLOADS
|
|
32
45
|
), {
|
|
33
|
-
data:
|
|
34
|
-
isLoading:
|
|
35
|
-
isError:
|
|
36
|
-
error:
|
|
37
|
-
refetch:
|
|
38
|
-
} =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
data: l,
|
|
47
|
+
isLoading: m,
|
|
48
|
+
isError: r,
|
|
49
|
+
error: f,
|
|
50
|
+
refetch: E
|
|
51
|
+
} = z();
|
|
52
|
+
v(() => {
|
|
53
|
+
r && f && T(f);
|
|
54
|
+
}, [r, f]);
|
|
55
|
+
const _ = (o, s) => s === void 0 ? o.numberOfFilesAvailableForDownload : s === "eligibleForPackaging" ? o.numberOfFilesAvailableForDownloadAndEligibleForPackaging : o.numberOfFilesAvailableForDownload - o.numberOfFilesAvailableForDownloadAndEligibleForPackaging;
|
|
56
|
+
if (v(() => {
|
|
57
|
+
l && l.numberOfFilesRequiringAction == 0 && p(1), l && l.numberOfFilesAvailableForDownloadAndEligibleForPackaging === 0 && D(!1);
|
|
58
|
+
}, [l]), k)
|
|
59
|
+
return /* @__PURE__ */ e(V, { error: k });
|
|
60
|
+
const R = async () => {
|
|
61
|
+
await B.clearDownloadListV2(A), E();
|
|
47
62
|
};
|
|
48
|
-
return /* @__PURE__ */ a("div", { className:
|
|
49
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */ e("h3", { className: "pageHeaderTitle", children: "Your Download Cart" }),
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
g,
|
|
54
|
-
{
|
|
55
|
-
title: "Immediately removes all items from your download cart",
|
|
56
|
-
enterNextDelay: 300,
|
|
57
|
-
placement: "right",
|
|
58
|
-
children: /* @__PURE__ */ e(
|
|
59
|
-
c,
|
|
60
|
-
{
|
|
61
|
-
onClick: () => {
|
|
62
|
-
I();
|
|
63
|
-
},
|
|
64
|
-
variant: "text",
|
|
65
|
-
color: "primary",
|
|
66
|
-
startIcon: /* @__PURE__ */ e(E, {}),
|
|
67
|
-
children: "Clear Your Download Cart"
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
] }),
|
|
63
|
+
return /* @__PURE__ */ a("div", { className: i.DownloadCartPage, children: [
|
|
64
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: `${i.pageHeader}`, children: /* @__PURE__ */ e("div", { className: "container", children: /* @__PURE__ */ a("div", { className: i.grid, children: [
|
|
65
|
+
/* @__PURE__ */ e("h3", { className: "pageHeaderTitle", children: "Your Download List" }),
|
|
73
66
|
/* @__PURE__ */ e(
|
|
74
|
-
|
|
67
|
+
g,
|
|
75
68
|
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
title: "Immediately removes all items from your download list",
|
|
70
|
+
enterNextDelay: 300,
|
|
71
|
+
placement: "right",
|
|
72
|
+
children: /* @__PURE__ */ e(
|
|
73
|
+
h,
|
|
74
|
+
{
|
|
75
|
+
onClick: () => {
|
|
76
|
+
R();
|
|
77
|
+
},
|
|
78
|
+
variant: "text",
|
|
79
|
+
color: "primary",
|
|
80
|
+
startIcon: /* @__PURE__ */ e(G, {}),
|
|
81
|
+
children: "Clear Your Download List"
|
|
82
|
+
}
|
|
83
|
+
)
|
|
82
84
|
}
|
|
83
85
|
)
|
|
84
|
-
] }) }),
|
|
85
|
-
/* @__PURE__ */ e("div", { className:
|
|
86
|
+
] }) }) }) }),
|
|
87
|
+
/* @__PURE__ */ e("div", { className: i.tabsContainer, children: /* @__PURE__ */ e("div", { className: "container", children: /* @__PURE__ */ a("ul", { className: i.navTabs, children: [
|
|
86
88
|
/* @__PURE__ */ e(
|
|
87
89
|
"li",
|
|
88
90
|
{
|
|
89
|
-
className:
|
|
90
|
-
"aria-selected":
|
|
91
|
-
children: /* @__PURE__ */ a("button", { onClick: () =>
|
|
91
|
+
className: `${i.navItem}${t == 0 ? ` ${i.active}` : ""}`,
|
|
92
|
+
"aria-selected": t == 0,
|
|
93
|
+
children: /* @__PURE__ */ a("button", { onClick: () => p(0), children: [
|
|
92
94
|
"Access Actions Required",
|
|
93
|
-
!
|
|
95
|
+
!r && !m && l && /* @__PURE__ */ e("span", { className: i.fileCount, children: l.totalNumberOfFiles - l.numberOfFilesAvailableForDownload })
|
|
94
96
|
] })
|
|
95
97
|
}
|
|
96
98
|
),
|
|
97
99
|
/* @__PURE__ */ e(
|
|
98
100
|
"li",
|
|
99
101
|
{
|
|
100
|
-
className:
|
|
101
|
-
"aria-selected":
|
|
102
|
-
children: /* @__PURE__ */ a("button", { onClick: () =>
|
|
102
|
+
className: `${i.navItem}${t == 1 ? ` ${i.active}` : ""}`,
|
|
103
|
+
"aria-selected": t == 1,
|
|
104
|
+
children: /* @__PURE__ */ a("button", { onClick: () => p(1), children: [
|
|
103
105
|
"Download List",
|
|
104
|
-
!
|
|
106
|
+
!r && !m && l && /* @__PURE__ */ e("span", { className: i.fileCount, children: l.numberOfFilesAvailableForDownload })
|
|
105
107
|
] })
|
|
106
108
|
}
|
|
107
109
|
)
|
|
@@ -109,173 +111,301 @@ function ue(v) {
|
|
|
109
111
|
/* @__PURE__ */ a(
|
|
110
112
|
"div",
|
|
111
113
|
{
|
|
112
|
-
|
|
114
|
+
className: (
|
|
113
115
|
/*
|
|
114
116
|
The DownloadListActionsRequired component stores actions in local state to track which actions are completed.
|
|
115
117
|
|
|
116
118
|
Mount the actions required component and hide it with style to ensure actions stored in component state are persisted as the user switches tabs
|
|
117
119
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
t == 0 && !r && !m && l ? void 0 : i.hidden
|
|
121
|
+
),
|
|
120
122
|
children: [
|
|
121
|
-
|
|
123
|
+
l?.numberOfFilesRequiringAction && l.numberOfFilesRequiringAction > 0 && // Unmount instead of hiding the DownloadListActionsRequired component when there are 0 actions required
|
|
122
124
|
// The DownloadListActionsRequired cannot discern between a fulfilled action and an action that is no longer required because the
|
|
123
125
|
// file was removed from the download cart.
|
|
124
126
|
// In the typical case where the download cart is cleared, unmounting the component ensures that the actions are cleared out.
|
|
125
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "
|
|
126
|
-
|
|
127
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "container", children: /* @__PURE__ */ e(X, { ...S }) }) }),
|
|
128
|
+
l?.numberOfFilesRequiringAction === 0 && /* @__PURE__ */ e("div", { className: i.placeholder, children: /* @__PURE__ */ e("div", { children: "No actions are currently required." }) })
|
|
127
129
|
]
|
|
128
130
|
}
|
|
129
131
|
),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
t == 1 && !r && !m && l && /* @__PURE__ */ a("div", { children: [
|
|
133
|
+
l.numberOfFilesAvailableForDownload > 0 && /* @__PURE__ */ a("div", { className: `container ${i.DownloadListTabContent}`, children: [
|
|
134
|
+
/* @__PURE__ */ a("h3", { className: `${i.sectionTitle} pageHeaderTitle`, children: [
|
|
135
|
+
"Bulk Download Options",
|
|
136
|
+
l.sumOfFileSizesAvailableForDownload != null && /* @__PURE__ */ e(
|
|
137
|
+
g,
|
|
138
|
+
{
|
|
139
|
+
placement: "right",
|
|
140
|
+
title: /* @__PURE__ */ a($, { children: [
|
|
141
|
+
"Total file size",
|
|
142
|
+
/* @__PURE__ */ e("br", {}),
|
|
143
|
+
"Does not include files hosted outside Synapse"
|
|
138
144
|
] }),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
slotProps: { tooltip: { sx: { maxWidth: 400 } } },
|
|
146
|
+
children: /* @__PURE__ */ a("span", { className: i.totalFileSize, children: [
|
|
147
|
+
K(
|
|
148
|
+
l.sumOfFileSizesAvailableForDownload
|
|
149
|
+
),
|
|
150
|
+
" ",
|
|
151
|
+
"total*"
|
|
152
|
+
] })
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
] }),
|
|
156
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ a("div", { className: i.subSectionOverview, children: [
|
|
157
|
+
/* @__PURE__ */ a("div", { className: i.subSection, children: [
|
|
158
|
+
/* @__PURE__ */ a("div", { className: i.subSectionHeader, children: [
|
|
159
|
+
/* @__PURE__ */ e("div", { className: i.headline, children: /* @__PURE__ */ a(n, { variant: "headline3", children: [
|
|
160
|
+
/* @__PURE__ */ e(d, { icon: "packagableFile" }),
|
|
161
|
+
" Web Download (.ZIP)"
|
|
162
|
+
] }) }),
|
|
163
|
+
/* @__PURE__ */ a("div", { className: i.subSectionActions, children: [
|
|
164
|
+
l.numberOfFilesAvailableForDownloadAndEligibleForPackaging > 0 && /* @__PURE__ */ e(
|
|
165
|
+
h,
|
|
166
|
+
{
|
|
167
|
+
variant: "contained",
|
|
168
|
+
onClick: () => {
|
|
169
|
+
D(!0);
|
|
170
|
+
},
|
|
171
|
+
startIcon: /* @__PURE__ */ e(d, { icon: "download", wrap: !1 }),
|
|
172
|
+
children: "Download Packages"
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
l.numberOfFilesAvailableForDownloadAndEligibleForPackaging == 0 && /* @__PURE__ */ e(
|
|
176
|
+
g,
|
|
177
|
+
{
|
|
178
|
+
title: "You cannot create a .zip package because there are no eligible files.",
|
|
179
|
+
enterNextDelay: 300,
|
|
180
|
+
placement: "top",
|
|
181
|
+
children: /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
182
|
+
h,
|
|
183
|
+
{
|
|
184
|
+
variant: "contained",
|
|
185
|
+
disabled: !0,
|
|
186
|
+
startIcon: /* @__PURE__ */ e(d, { icon: "download", wrap: !1 }),
|
|
187
|
+
children: "Download Packages"
|
|
188
|
+
}
|
|
189
|
+
) })
|
|
190
|
+
}
|
|
191
|
+
)
|
|
192
|
+
] })
|
|
146
193
|
] }),
|
|
147
194
|
/* @__PURE__ */ e(
|
|
148
|
-
|
|
195
|
+
w,
|
|
149
196
|
{
|
|
150
|
-
variant: "body1",
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
197
|
+
component: /* @__PURE__ */ a(n, { variant: "body1", component: "div", children: [
|
|
198
|
+
"Only some files may be eligible for packaging as ZIP. Use the Individual Downloads tab, below, to download non-packageable files. ",
|
|
199
|
+
/* @__PURE__ */ e(
|
|
200
|
+
"a",
|
|
201
|
+
{
|
|
202
|
+
href: "https://help.synapse.org/docs/Downloading-Data-From-the-Synapse-UI.2004254837.html",
|
|
203
|
+
target: "_blank",
|
|
204
|
+
rel: "noopener noreferrer",
|
|
205
|
+
children: "More Information."
|
|
206
|
+
}
|
|
207
|
+
)
|
|
208
|
+
] }),
|
|
209
|
+
collapseBoxSx: {
|
|
210
|
+
backgroundColor: "transparent",
|
|
211
|
+
p: 0,
|
|
212
|
+
mt: "15px"
|
|
155
213
|
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
/* @__PURE__ */ e("li", { children: "Packages will only include files which are hosted on Synapse native storage" }),
|
|
160
|
-
/* @__PURE__ */ e("li", { children: "Packages include a CSV manifest that contains file annotations and other information for each file" })
|
|
161
|
-
] })
|
|
162
|
-
}
|
|
163
|
-
),
|
|
164
|
-
i.numberOfFilesAvailableForDownloadAndEligibleForPackaging > 0 && /* @__PURE__ */ e(
|
|
165
|
-
c,
|
|
166
|
-
{
|
|
167
|
-
variant: "contained",
|
|
168
|
-
onClick: () => {
|
|
169
|
-
k(!0);
|
|
214
|
+
componentContainerSx: {
|
|
215
|
+
backgroundColor: "transparent",
|
|
216
|
+
p: 0
|
|
170
217
|
},
|
|
171
|
-
|
|
172
|
-
children:
|
|
173
|
-
|
|
174
|
-
),
|
|
175
|
-
i.numberOfFilesAvailableForDownloadAndEligibleForPackaging == 0 && /* @__PURE__ */ e(
|
|
176
|
-
g,
|
|
177
|
-
{
|
|
178
|
-
title: "You cannot create a .zip package because there are no eligible files.",
|
|
179
|
-
enterNextDelay: 300,
|
|
180
|
-
placement: "top",
|
|
181
|
-
children: /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
182
|
-
c,
|
|
218
|
+
iconSx: { width: "25px", height: "25px" },
|
|
219
|
+
children: /* @__PURE__ */ e(
|
|
220
|
+
n,
|
|
183
221
|
{
|
|
184
|
-
variant: "
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
children: "
|
|
222
|
+
variant: "body1",
|
|
223
|
+
component: "div",
|
|
224
|
+
sx: { marginBottom: "15px" },
|
|
225
|
+
children: /* @__PURE__ */ a("ul", { children: [
|
|
226
|
+
/* @__PURE__ */ e("li", { children: "Files are bundled into .ZIPs up to 1 GB each." }),
|
|
227
|
+
/* @__PURE__ */ e("li", { children: "Larger selections are split into multiple packages." }),
|
|
228
|
+
/* @__PURE__ */ e("li", { children: "Includes only files stored in Synapse native storage." }),
|
|
229
|
+
/* @__PURE__ */ e("li", { children: "Each package contains a CSV manifest with file annotations and metadata." })
|
|
230
|
+
] })
|
|
188
231
|
}
|
|
189
|
-
)
|
|
232
|
+
)
|
|
190
233
|
}
|
|
191
|
-
)
|
|
192
|
-
N && i.numberOfFilesAvailableForDownloadAndEligibleForPackaging < i.numberOfFilesAvailableForDownload && /* @__PURE__ */ e("div", { style: { marginTop: "1rem" }, children: /* @__PURE__ */ e(W, {}) })
|
|
234
|
+
)
|
|
193
235
|
] }),
|
|
194
|
-
/* @__PURE__ */ a("div", { children: [
|
|
195
|
-
/* @__PURE__ */ a("div", { className:
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */ e(
|
|
236
|
+
/* @__PURE__ */ a("div", { className: i.subSection, children: [
|
|
237
|
+
/* @__PURE__ */ a("div", { className: i.subSectionHeader, children: [
|
|
238
|
+
/* @__PURE__ */ e("div", { className: i.headline, children: /* @__PURE__ */ a(n, { variant: "headline3", children: [
|
|
239
|
+
/* @__PURE__ */ e(d, { icon: "code" }),
|
|
198
240
|
" Programmatic Download"
|
|
199
|
-
] }),
|
|
200
|
-
/* @__PURE__ */ e(
|
|
201
|
-
|
|
241
|
+
] }) }),
|
|
242
|
+
/* @__PURE__ */ e("div", { className: i.subSectionActions, children: /* @__PURE__ */ e(
|
|
243
|
+
h,
|
|
202
244
|
{
|
|
203
|
-
|
|
204
|
-
|
|
245
|
+
variant: "contained",
|
|
246
|
+
onClick: () => {
|
|
247
|
+
y(!0);
|
|
248
|
+
},
|
|
249
|
+
startIcon: /* @__PURE__ */ e(d, { icon: "download", wrap: !1 }),
|
|
250
|
+
children: "Get R / Python / CLI Code"
|
|
205
251
|
}
|
|
206
|
-
)
|
|
252
|
+
) })
|
|
207
253
|
] }),
|
|
208
254
|
/* @__PURE__ */ e(
|
|
209
|
-
|
|
255
|
+
w,
|
|
210
256
|
{
|
|
211
|
-
variant: "body1",
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
257
|
+
component: /* @__PURE__ */ a(n, { variant: "body1", component: "div", children: [
|
|
258
|
+
"Use our Python, R, or command line clients to download files quickly. ",
|
|
259
|
+
/* @__PURE__ */ e(
|
|
260
|
+
"a",
|
|
261
|
+
{
|
|
262
|
+
href: "https://help.synapse.org/docs/Downloading-Data-Programmatically.2003796248.html",
|
|
263
|
+
target: "_blank",
|
|
264
|
+
rel: "noopener noreferrer",
|
|
265
|
+
children: "More Information."
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
] }),
|
|
269
|
+
collapseBoxSx: {
|
|
270
|
+
backgroundColor: "transparent",
|
|
271
|
+
p: 0,
|
|
272
|
+
mt: "15px"
|
|
216
273
|
},
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
274
|
+
componentContainerSx: {
|
|
275
|
+
backgroundColor: "transparent",
|
|
276
|
+
p: 0
|
|
277
|
+
},
|
|
278
|
+
iconSx: { width: "25px", height: "25px" },
|
|
279
|
+
children: /* @__PURE__ */ e(
|
|
280
|
+
n,
|
|
281
|
+
{
|
|
282
|
+
variant: "body1",
|
|
283
|
+
component: "div",
|
|
284
|
+
sx: { marginBottom: "15px" },
|
|
285
|
+
children: /* @__PURE__ */ a("ul", { children: [
|
|
286
|
+
/* @__PURE__ */ e("li", { children: "Requires a client (R, Python, or CLI)." }),
|
|
287
|
+
/* @__PURE__ */ e("li", { children: "No limits on individual file size or total download size." }),
|
|
288
|
+
/* @__PURE__ */ e("li", { children: "Includes files stored both on and off Synapse native storage." }),
|
|
289
|
+
/* @__PURE__ */ e("li", { children: "Downloads include a CSV manifest with file annotations and metadata." })
|
|
290
|
+
] })
|
|
291
|
+
}
|
|
292
|
+
)
|
|
223
293
|
}
|
|
224
|
-
)
|
|
294
|
+
)
|
|
295
|
+
] }),
|
|
296
|
+
L && l.numberOfFilesAvailableForDownloadAndEligibleForPackaging < l.numberOfFilesAvailableForDownload && /* @__PURE__ */ a("div", { className: i.subSection, children: [
|
|
297
|
+
/* @__PURE__ */ a("div", { className: i.subSectionHeader, children: [
|
|
298
|
+
/* @__PURE__ */ e("div", { className: i.headline, children: /* @__PURE__ */ a(n, { variant: "headline3", children: [
|
|
299
|
+
/* @__PURE__ */ e(d, { icon: "multiFile" }),
|
|
300
|
+
" Multi-file Download"
|
|
301
|
+
] }) }),
|
|
302
|
+
/* @__PURE__ */ e("div", { className: i.subSectionActions, children: /* @__PURE__ */ e("div", { className: i.ineligibleDownloadContainer, children: /* @__PURE__ */ e(Q, {}) }) })
|
|
303
|
+
] }),
|
|
225
304
|
/* @__PURE__ */ e(
|
|
226
|
-
|
|
305
|
+
w,
|
|
227
306
|
{
|
|
228
|
-
variant: "
|
|
229
|
-
|
|
230
|
-
|
|
307
|
+
component: /* @__PURE__ */ a(n, { variant: "body1", component: "div", children: [
|
|
308
|
+
"Files which ",
|
|
309
|
+
/* @__PURE__ */ e("strong", { children: "aren't" }),
|
|
310
|
+
" included in a ZIP package may be downloaded as a multi-file download. "
|
|
311
|
+
] }),
|
|
312
|
+
collapseBoxSx: {
|
|
313
|
+
backgroundColor: "transparent",
|
|
314
|
+
p: 0,
|
|
315
|
+
mt: "15px"
|
|
316
|
+
},
|
|
317
|
+
componentContainerSx: {
|
|
318
|
+
backgroundColor: "transparent",
|
|
319
|
+
p: 0
|
|
231
320
|
},
|
|
232
|
-
|
|
233
|
-
children:
|
|
321
|
+
iconSx: { width: "25px", height: "25px" },
|
|
322
|
+
children: /* @__PURE__ */ a(
|
|
323
|
+
n,
|
|
324
|
+
{
|
|
325
|
+
variant: "body1",
|
|
326
|
+
component: "div",
|
|
327
|
+
sx: { marginBottom: "15px" },
|
|
328
|
+
children: [
|
|
329
|
+
"Clicking “Start Multi-file Download” initiates a download of all files in your Download List that can’t be bundled into a ZIP—such as large files or external links—in one step. Files are saved one by one with clear progress updates, automatic handling of duplicate names, and retry support if something fails. You can cancel anytime.",
|
|
330
|
+
/* @__PURE__ */ e("br", {}),
|
|
331
|
+
/* @__PURE__ */ e("br", {}),
|
|
332
|
+
"Note: in some browsers, files download individually to your default Downloads folder instead of a selected location."
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
)
|
|
234
336
|
}
|
|
235
337
|
)
|
|
236
338
|
] })
|
|
237
339
|
] }) }),
|
|
238
|
-
/* @__PURE__ */ a("div", {
|
|
239
|
-
|
|
240
|
-
|
|
340
|
+
/* @__PURE__ */ a("div", { children: [
|
|
341
|
+
b && /* @__PURE__ */ e("div", { ref: N, children: /* @__PURE__ */ e(
|
|
342
|
+
j,
|
|
241
343
|
{
|
|
242
344
|
onPackageCreation: () => {
|
|
243
|
-
|
|
345
|
+
C(!0);
|
|
244
346
|
}
|
|
245
347
|
}
|
|
246
|
-
),
|
|
247
|
-
/* @__PURE__ */ e(
|
|
348
|
+
) }),
|
|
349
|
+
/* @__PURE__ */ e("h3", { className: `${i.sectionTitle} pageHeaderTitle`, children: "Download Individual Files" }),
|
|
350
|
+
/* @__PURE__ */ e("div", { className: i.tabsContainer, children: /* @__PURE__ */ a("ul", { className: i.navTabs, children: [
|
|
351
|
+
/* @__PURE__ */ e("li", { className: i.navLabel, children: "View:" }),
|
|
352
|
+
I.map((o, s) => /* @__PURE__ */ e(
|
|
353
|
+
"li",
|
|
354
|
+
{
|
|
355
|
+
className: `${i.navItem}${u === s ? ` ${i.active}` : ""}`,
|
|
356
|
+
"aria-selected": u === s,
|
|
357
|
+
children: /* @__PURE__ */ a(
|
|
358
|
+
"button",
|
|
359
|
+
{
|
|
360
|
+
onClick: () => x(s),
|
|
361
|
+
children: [
|
|
362
|
+
o.label,
|
|
363
|
+
!r && !m && l && /* @__PURE__ */ e("span", { className: i.fileCount, children: _(l, o.filter) })
|
|
364
|
+
]
|
|
365
|
+
}
|
|
366
|
+
)
|
|
367
|
+
},
|
|
368
|
+
o.label
|
|
369
|
+
))
|
|
370
|
+
] }) }),
|
|
371
|
+
/* @__PURE__ */ e("div", { className: i.availableForDownloadTableContainer, children: /* @__PURE__ */ e(
|
|
372
|
+
W,
|
|
373
|
+
{
|
|
374
|
+
filter: F
|
|
375
|
+
},
|
|
376
|
+
F ?? "all"
|
|
377
|
+
) })
|
|
248
378
|
] })
|
|
249
379
|
] }),
|
|
250
|
-
|
|
380
|
+
l.numberOfFilesAvailableForDownload === 0 && /* @__PURE__ */ e("div", { className: i.placeholder, children: /* @__PURE__ */ e(n, { variant: "body1Italic", children: "Your Download List is currently empty." }) })
|
|
251
381
|
] }),
|
|
252
382
|
/* @__PURE__ */ e(
|
|
253
|
-
|
|
383
|
+
Y,
|
|
254
384
|
{
|
|
255
|
-
show:
|
|
385
|
+
show: O,
|
|
256
386
|
variant: "success",
|
|
257
387
|
title: "Package Created",
|
|
258
388
|
description: "A package has been created with eligible files. The items contained in this .zip file have been removed from your list. If your package is over 1GB, you will need to create multiple packages.",
|
|
259
389
|
autoCloseAfterDelayInSeconds: 10,
|
|
260
390
|
onClose: () => {
|
|
261
|
-
|
|
391
|
+
C(!1);
|
|
262
392
|
}
|
|
263
393
|
}
|
|
264
394
|
),
|
|
265
|
-
|
|
266
|
-
|
|
395
|
+
P && /* @__PURE__ */ e(
|
|
396
|
+
U,
|
|
267
397
|
{
|
|
268
398
|
show: !0,
|
|
269
|
-
onClose: () =>
|
|
399
|
+
onClose: () => y(!1),
|
|
270
400
|
title: "Download Programmatically",
|
|
271
|
-
pythonCode:
|
|
272
|
-
cliCode:
|
|
401
|
+
pythonCode: ee,
|
|
402
|
+
cliCode: ie
|
|
273
403
|
}
|
|
274
404
|
)
|
|
275
405
|
] });
|
|
276
406
|
}
|
|
277
407
|
export {
|
|
278
|
-
|
|
279
|
-
|
|
408
|
+
xe as DownloadCartPage,
|
|
409
|
+
xe as default
|
|
280
410
|
};
|
|
281
411
|
//# sourceMappingURL=DownloadCartPage.js.map
|