synapse-react-client 4.0.11 → 4.0.12
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.d.ts +1 -1
- package/dist/SWC.index.js +1 -1
- package/dist/components/AdaptiveTwoColumnLayout/AdaptiveTwoColumnLayout.d.ts +44 -0
- package/dist/components/AdaptiveTwoColumnLayout/AdaptiveTwoColumnLayout.d.ts.map +1 -0
- package/dist/components/AdaptiveTwoColumnLayout/AdaptiveTwoColumnLayout.js +46 -0
- package/dist/components/AdaptiveTwoColumnLayout/AdaptiveTwoColumnLayout.js.map +1 -0
- package/dist/components/DownloadCart/DownloadCartPage.d.ts.map +1 -1
- package/dist/components/DownloadCart/DownloadCartPage.js +183 -185
- package/dist/components/DownloadCart/DownloadCartPage.js.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.d.ts.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js.map +1 -1
- package/dist/components/EntityAclEditor/EntityAclEditor.js +8 -8
- package/dist/components/EntityAclEditor/EntityAclEditor.js.map +1 -1
- package/dist/components/EntityAclEditor/InheritanceMessage.d.ts.map +1 -1
- package/dist/components/EntityAclEditor/InheritanceMessage.js +1 -2
- package/dist/components/EntityAclEditor/InheritanceMessage.js.map +1 -1
- package/dist/components/FullTextSearch/FullTextSearch.d.ts.map +1 -1
- package/dist/components/FullTextSearch/FullTextSearch.js +86 -47
- package/dist/components/FullTextSearch/FullTextSearch.js.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.js +157 -157
- package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
- package/dist/components/HeaderCard.d.ts.map +1 -1
- package/dist/components/HeaderCard.js +131 -130
- package/dist/components/HeaderCard.js.map +1 -1
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.d.ts +4 -1
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.d.ts.map +1 -1
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.js +3 -2
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.js.map +1 -1
- package/dist/components/QueryContext/QueryContext.d.ts +6 -0
- package/dist/components/QueryContext/QueryContext.d.ts.map +1 -1
- package/dist/components/QueryContext/QueryContext.js.map +1 -1
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.d.ts.map +1 -1
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js +12 -11
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +5 -0
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +32 -29
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/UseRowSet.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/UseRowSet.js +4 -1
- package/dist/components/QueryWrapperPlotNav/UseRowSet.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts +59 -0
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -0
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +174 -0
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -0
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts +40 -0
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts.map +1 -0
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js +100 -0
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js.map +1 -0
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts +56 -0
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts.map +1 -0
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js +73 -0
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js.map +1 -0
- package/dist/components/ShareThisPage/ShareThisPage.js +1 -1
- package/dist/components/ShareThisPage/ShareThisPage.js.map +1 -1
- package/dist/components/SynapseChat/GridAgentChat.d.ts.map +1 -1
- package/dist/components/SynapseChat/GridAgentChat.js +20 -14
- package/dist/components/SynapseChat/GridAgentChat.js.map +1 -1
- package/dist/components/SynapseChat/SynapseChat.d.ts +3 -1
- package/dist/components/SynapseChat/SynapseChat.d.ts.map +1 -1
- package/dist/components/SynapseChat/SynapseChat.js +51 -36
- package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.css +1 -1
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.js +8 -7
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.js.map +1 -1
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.scss +16 -0
- package/dist/components/SynapseHomepageV2/WordPressNews.d.ts +3 -1
- package/dist/components/SynapseHomepageV2/WordPressNews.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/WordPressNews.js +9 -8
- package/dist/components/SynapseHomepageV2/WordPressNews.js.map +1 -1
- package/dist/components/SynapseHomepageV2/WordPressNewsItem.d.ts +2 -1
- package/dist/components/SynapseHomepageV2/WordPressNewsItem.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/WordPressNewsItem.js +2 -2
- package/dist/components/SynapseHomepageV2/WordPressNewsItem.js.map +1 -1
- package/dist/components/SynapseTable/SearchV2.d.ts +7 -0
- package/dist/components/SynapseTable/SearchV2.d.ts.map +1 -1
- package/dist/components/SynapseTable/SearchV2.js.map +1 -1
- package/dist/components/SynapseTable/SynapseTableRenderers.d.ts.map +1 -1
- package/dist/components/SynapseTable/SynapseTableRenderers.js +1 -1
- package/dist/components/SynapseTable/SynapseTableRenderers.js.map +1 -1
- package/dist/components/SynapseTable/usePrefetchTableData.d.ts.map +1 -1
- package/dist/components/SynapseTable/usePrefetchTableData.js +6 -5
- package/dist/components/SynapseTable/usePrefetchTableData.js.map +1 -1
- package/dist/components/ToastMessage/ToastMessage.d.ts +1 -1
- package/dist/components/ToastMessage/ToastMessage.d.ts.map +1 -1
- package/dist/components/ToastMessage/ToastMessage.js +2 -2
- package/dist/components/ToastMessage/ToastMessage.js.map +1 -1
- package/dist/components/error/ErrorPage.d.ts +0 -4
- package/dist/components/error/ErrorPage.d.ts.map +1 -1
- package/dist/components/error/ErrorPage.js +25 -30
- package/dist/components/error/ErrorPage.js.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +41 -39
- package/dist/components/widgets/query-filter/FacetFilterControls.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/FacetFilterControls.js +2 -2
- package/dist/components/widgets/query-filter/FacetFilterControls.js.map +1 -1
- package/dist/index.js +52 -50
- package/dist/index.js.map +1 -1
- package/dist/mocks/entity/index.d.ts.map +1 -1
- package/dist/mocks/entity/index.js +18 -16
- package/dist/mocks/entity/index.js.map +1 -1
- package/dist/mocks/mockSearchQueryData.d.ts +14 -0
- package/dist/mocks/mockSearchQueryData.d.ts.map +1 -0
- package/dist/mocks/mockSearchQueryData.js +564 -0
- package/dist/mocks/mockSearchQueryData.js.map +1 -0
- package/dist/mocks/msw/handlers/searchQueryHandlers.d.ts +22 -0
- package/dist/mocks/msw/handlers/searchQueryHandlers.d.ts.map +1 -0
- package/dist/mocks/msw/handlers/searchQueryHandlers.js +63 -0
- package/dist/mocks/msw/handlers/searchQueryHandlers.js.map +1 -0
- package/dist/mocks/msw/handlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers.js +9 -7
- package/dist/mocks/msw/handlers.js.map +1 -1
- package/dist/style/components/_cards.scss +15 -0
- package/dist/style/main.css +1 -1
- package/dist/synapse-client/SynapseClient.d.ts +7 -1
- package/dist/synapse-client/SynapseClient.d.ts.map +1 -1
- package/dist/synapse-client/SynapseClient.js +422 -417
- package/dist/synapse-client/SynapseClient.js.map +1 -1
- package/dist/synapse-client/index.js +3 -3
- package/dist/synapse-queries/KeyFactory.d.ts +2 -0
- package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
- package/dist/synapse-queries/KeyFactory.js +3 -0
- package/dist/synapse-queries/KeyFactory.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/APIConstants.d.ts +2 -0
- package/dist/utils/APIConstants.d.ts.map +1 -1
- package/dist/utils/APIConstants.js +2 -2
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/functions/calculateFriendlyFileSize.d.ts.map +1 -1
- package/dist/utils/functions/calculateFriendlyFileSize.js +3 -3
- package/dist/utils/functions/calculateFriendlyFileSize.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,24 +4,22 @@ import n from "../../synapse-client/index.js";
|
|
|
4
4
|
import { ErrorBanner as r } from "../error/ErrorBanner.js";
|
|
5
5
|
import { useSynapseContext as i } from "../../utils/context/SynapseContext.js";
|
|
6
6
|
import { useGetDownloadListStatistics as a } from "../../synapse-queries/download/useDownloadList.js";
|
|
7
|
-
import
|
|
8
|
-
import s from "
|
|
9
|
-
import c from "
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import d from "./
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import h from "
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { FeatureFlagEnum as T } from "@sage-bionetworks/synapse-types";
|
|
21
|
-
import { DeleteTwoTone as E } from "@mui/icons-material";
|
|
7
|
+
import o from "../IconSvg/IconSvg.js";
|
|
8
|
+
import s from "./DownloadCartPage.module.js";
|
|
9
|
+
import { ProgrammaticInstructionsModal as c } from "../ProgrammaticInstructionsModal/ProgrammaticInstructionsModal.js";
|
|
10
|
+
import { PYTHON_CLIENT_IMPORT_AND_LOGIN as l } from "./DirectProgrammaticDownload.js";
|
|
11
|
+
import u from "./AvailableForDownloadTable.js";
|
|
12
|
+
import { CreatePackageV2 as d } from "./CreatePackageV2.js";
|
|
13
|
+
import { DownloadIneligibleForPackagingFilesFromListButton as f } from "./DownloadIneligibleForPackagingFilesFromListButton.js";
|
|
14
|
+
import { DownloadListActionsRequired as p } from "./DownloadListActionsRequired.js";
|
|
15
|
+
import m from "../ComponentCollapse.js";
|
|
16
|
+
import { useEffect as h, useRef as g, useState as _ } from "react";
|
|
17
|
+
import { Button as v, Tooltip as y, Typography as b } from "@mui/material";
|
|
18
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
19
|
+
import { DeleteTwoTone as w } from "@mui/icons-material";
|
|
22
20
|
//#region src/components/DownloadCart/DownloadCartPage.tsx
|
|
23
|
-
var
|
|
24
|
-
dl_list_file_entities = syn.get_download_list()`,
|
|
21
|
+
var T = `${l}
|
|
22
|
+
dl_list_file_entities = syn.get_download_list()`, E = "synapse get-download-list", D = [
|
|
25
23
|
{
|
|
26
24
|
label: "All Files",
|
|
27
25
|
filter: void 0
|
|
@@ -35,150 +33,150 @@ dl_list_file_entities = syn.get_download_list()`, O = "synapse get-download-list
|
|
|
35
33
|
filter: "ineligibleForPackaging"
|
|
36
34
|
}
|
|
37
35
|
];
|
|
38
|
-
function
|
|
39
|
-
let { accessToken:
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
function O(l) {
|
|
37
|
+
let { accessToken: O } = i(), [k, A] = _(0), [j, M] = _(0), N = D[j].filter, [P, F] = _(!1), I = g(null);
|
|
38
|
+
h(() => {
|
|
39
|
+
P && I.current?.scrollIntoView({
|
|
42
40
|
behavior: "smooth",
|
|
43
41
|
block: "center"
|
|
44
42
|
});
|
|
45
|
-
}, [
|
|
46
|
-
let [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, [
|
|
50
|
-
let
|
|
51
|
-
if (
|
|
52
|
-
|
|
53
|
-
}, [
|
|
54
|
-
let
|
|
55
|
-
await n.clearDownloadListV2(
|
|
43
|
+
}, [P]);
|
|
44
|
+
let [L, R] = _(!1), [z, B] = _(!1), [V, H] = _(), { data: U, isLoading: W, isError: G, error: K, refetch: q } = a();
|
|
45
|
+
h(() => {
|
|
46
|
+
G && K && H(K);
|
|
47
|
+
}, [G, K]);
|
|
48
|
+
let J = (e, t) => t === void 0 ? e.numberOfFilesAvailableForDownload : t === "eligibleForPackaging" ? e.numberOfFilesAvailableForDownloadAndEligibleForPackaging : e.numberOfFilesAvailableForDownload - e.numberOfFilesAvailableForDownloadAndEligibleForPackaging;
|
|
49
|
+
if (h(() => {
|
|
50
|
+
U && U.numberOfFilesRequiringAction == 0 && A(1), U && U.numberOfFilesAvailableForDownloadAndEligibleForPackaging === 0 && F(!1);
|
|
51
|
+
}, [U]), V) return /* @__PURE__ */ S(r, { error: V });
|
|
52
|
+
let Y = async () => {
|
|
53
|
+
await n.clearDownloadListV2(O), q();
|
|
56
54
|
};
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
className:
|
|
55
|
+
return /* @__PURE__ */ C("div", {
|
|
56
|
+
className: s.DownloadCartPage,
|
|
59
57
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
className: `${
|
|
62
|
-
children: /* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ S("div", { children: /* @__PURE__ */ S("div", {
|
|
59
|
+
className: `${s.pageHeader}`,
|
|
60
|
+
children: /* @__PURE__ */ S("div", {
|
|
63
61
|
className: "container",
|
|
64
|
-
children: /* @__PURE__ */
|
|
65
|
-
className:
|
|
66
|
-
children: [/* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ C("div", {
|
|
63
|
+
className: s.grid,
|
|
64
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
67
65
|
className: "pageHeaderTitle",
|
|
68
66
|
children: "Your Download List"
|
|
69
|
-
}), /* @__PURE__ */
|
|
67
|
+
}), /* @__PURE__ */ S(y, {
|
|
70
68
|
title: "Immediately removes all items from your download list",
|
|
71
69
|
enterNextDelay: 300,
|
|
72
70
|
placement: "right",
|
|
73
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ S(v, {
|
|
74
72
|
onClick: () => {
|
|
75
|
-
|
|
73
|
+
Y();
|
|
76
74
|
},
|
|
77
75
|
variant: "text",
|
|
78
76
|
color: "primary",
|
|
79
|
-
startIcon: /* @__PURE__ */
|
|
77
|
+
startIcon: /* @__PURE__ */ S(w, {}),
|
|
80
78
|
children: "Clear Your Download List"
|
|
81
79
|
})
|
|
82
80
|
})]
|
|
83
81
|
})
|
|
84
82
|
})
|
|
85
83
|
}) }),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
className:
|
|
88
|
-
children: /* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ S("div", {
|
|
85
|
+
className: s.tabsContainer,
|
|
86
|
+
children: /* @__PURE__ */ S("div", {
|
|
89
87
|
className: "container",
|
|
90
|
-
children: /* @__PURE__ */
|
|
91
|
-
className:
|
|
92
|
-
children: [/* @__PURE__ */
|
|
93
|
-
className: `${
|
|
94
|
-
"aria-selected":
|
|
95
|
-
children: /* @__PURE__ */
|
|
96
|
-
onClick: () =>
|
|
97
|
-
children: ["Access Actions Required", !
|
|
98
|
-
className:
|
|
99
|
-
children:
|
|
88
|
+
children: /* @__PURE__ */ C("ul", {
|
|
89
|
+
className: s.navTabs,
|
|
90
|
+
children: [/* @__PURE__ */ S("li", {
|
|
91
|
+
className: `${s.navItem}${k == 0 ? ` ${s.active}` : ""}`,
|
|
92
|
+
"aria-selected": k == 0,
|
|
93
|
+
children: /* @__PURE__ */ C("button", {
|
|
94
|
+
onClick: () => A(0),
|
|
95
|
+
children: ["Access Actions Required", !G && !W && U && /* @__PURE__ */ S("span", {
|
|
96
|
+
className: s.fileCount,
|
|
97
|
+
children: U.totalNumberOfFiles - U.numberOfFilesAvailableForDownload
|
|
100
98
|
})]
|
|
101
99
|
})
|
|
102
|
-
}), /* @__PURE__ */
|
|
103
|
-
className: `${
|
|
104
|
-
"aria-selected":
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
onClick: () =>
|
|
107
|
-
children: ["Download List", !
|
|
108
|
-
className:
|
|
109
|
-
children:
|
|
100
|
+
}), /* @__PURE__ */ S("li", {
|
|
101
|
+
className: `${s.navItem}${k == 1 ? ` ${s.active}` : ""}`,
|
|
102
|
+
"aria-selected": k == 1,
|
|
103
|
+
children: /* @__PURE__ */ C("button", {
|
|
104
|
+
onClick: () => A(1),
|
|
105
|
+
children: ["Download List", !G && !W && U && /* @__PURE__ */ S("span", {
|
|
106
|
+
className: s.fileCount,
|
|
107
|
+
children: U.numberOfFilesAvailableForDownload
|
|
110
108
|
})]
|
|
111
109
|
})
|
|
112
110
|
})]
|
|
113
111
|
})
|
|
114
112
|
})
|
|
115
113
|
}),
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
className:
|
|
118
|
-
children: [
|
|
114
|
+
/* @__PURE__ */ C("div", {
|
|
115
|
+
className: k == 0 && !G && !W && U ? void 0 : s.hidden,
|
|
116
|
+
children: [U?.numberOfFilesRequiringAction && U.numberOfFilesRequiringAction > 0 && /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S("div", {
|
|
119
117
|
className: "container",
|
|
120
|
-
children: /* @__PURE__ */
|
|
121
|
-
}) }),
|
|
122
|
-
className:
|
|
123
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ S(p, { ...l })
|
|
119
|
+
}) }), U?.numberOfFilesRequiringAction === 0 && /* @__PURE__ */ S("div", {
|
|
120
|
+
className: s.placeholder,
|
|
121
|
+
children: /* @__PURE__ */ S("div", { children: "No actions are currently required." })
|
|
124
122
|
})]
|
|
125
123
|
}),
|
|
126
|
-
|
|
127
|
-
className: `container ${
|
|
124
|
+
k == 1 && !G && !W && U && /* @__PURE__ */ C("div", { children: [U.numberOfFilesAvailableForDownload > 0 && /* @__PURE__ */ C("div", {
|
|
125
|
+
className: `container ${s.DownloadListTabContent}`,
|
|
128
126
|
children: [
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
className: `${
|
|
131
|
-
children: ["Bulk Download Options",
|
|
127
|
+
/* @__PURE__ */ C("h3", {
|
|
128
|
+
className: `${s.sectionTitle} pageHeaderTitle`,
|
|
129
|
+
children: ["Bulk Download Options", U.sumOfFileSizesAvailableForDownload != null && /* @__PURE__ */ S(y, {
|
|
132
130
|
placement: "right",
|
|
133
|
-
title: /* @__PURE__ */
|
|
131
|
+
title: /* @__PURE__ */ C(x, { children: [
|
|
134
132
|
"Total file size",
|
|
135
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ S("br", {}),
|
|
136
134
|
"Does not include files hosted outside Synapse"
|
|
137
135
|
] }),
|
|
138
136
|
slotProps: { tooltip: { sx: { maxWidth: 400 } } },
|
|
139
|
-
children: /* @__PURE__ */
|
|
140
|
-
className:
|
|
137
|
+
children: /* @__PURE__ */ C("span", {
|
|
138
|
+
className: s.totalFileSize,
|
|
141
139
|
children: [
|
|
142
|
-
t(
|
|
140
|
+
t(U.sumOfFileSizesAvailableForDownload),
|
|
143
141
|
" ",
|
|
144
142
|
"total*"
|
|
145
143
|
]
|
|
146
144
|
})
|
|
147
145
|
})]
|
|
148
146
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
className:
|
|
147
|
+
/* @__PURE__ */ S("div", { children: /* @__PURE__ */ C("div", {
|
|
148
|
+
className: s.subSectionOverview,
|
|
151
149
|
children: [
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
className:
|
|
154
|
-
children: [/* @__PURE__ */
|
|
155
|
-
className:
|
|
156
|
-
children: [/* @__PURE__ */
|
|
157
|
-
className:
|
|
158
|
-
children: /* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ C("div", {
|
|
151
|
+
className: s.subSection,
|
|
152
|
+
children: [/* @__PURE__ */ C("div", {
|
|
153
|
+
className: s.subSectionHeader,
|
|
154
|
+
children: [/* @__PURE__ */ S("div", {
|
|
155
|
+
className: s.headline,
|
|
156
|
+
children: /* @__PURE__ */ C(b, {
|
|
159
157
|
variant: "headline3",
|
|
160
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ S(o, { icon: "packagableFile" }), " Web Download (.ZIP)"]
|
|
161
159
|
})
|
|
162
|
-
}), /* @__PURE__ */
|
|
163
|
-
className:
|
|
164
|
-
children: [
|
|
160
|
+
}), /* @__PURE__ */ C("div", {
|
|
161
|
+
className: s.subSectionActions,
|
|
162
|
+
children: [U.numberOfFilesAvailableForDownloadAndEligibleForPackaging > 0 && /* @__PURE__ */ S(v, {
|
|
165
163
|
variant: "contained",
|
|
166
164
|
onClick: () => {
|
|
167
|
-
|
|
165
|
+
F(!0);
|
|
168
166
|
},
|
|
169
|
-
startIcon: /* @__PURE__ */
|
|
167
|
+
startIcon: /* @__PURE__ */ S(o, {
|
|
170
168
|
icon: "download",
|
|
171
169
|
wrap: !1
|
|
172
170
|
}),
|
|
173
171
|
children: "Download Packages"
|
|
174
|
-
}),
|
|
172
|
+
}), U.numberOfFilesAvailableForDownloadAndEligibleForPackaging == 0 && /* @__PURE__ */ S(y, {
|
|
175
173
|
title: "You cannot create a .zip package because there are no eligible files.",
|
|
176
174
|
enterNextDelay: 300,
|
|
177
175
|
placement: "top",
|
|
178
|
-
children: /* @__PURE__ */
|
|
176
|
+
children: /* @__PURE__ */ S("span", { children: /* @__PURE__ */ S(v, {
|
|
179
177
|
variant: "contained",
|
|
180
178
|
disabled: !0,
|
|
181
|
-
startIcon: /* @__PURE__ */
|
|
179
|
+
startIcon: /* @__PURE__ */ S(o, {
|
|
182
180
|
icon: "download",
|
|
183
181
|
wrap: !1
|
|
184
182
|
}),
|
|
@@ -186,11 +184,11 @@ function A(u) {
|
|
|
186
184
|
}) })
|
|
187
185
|
})]
|
|
188
186
|
})]
|
|
189
|
-
}), /* @__PURE__ */
|
|
190
|
-
component: /* @__PURE__ */
|
|
187
|
+
}), /* @__PURE__ */ S(m, {
|
|
188
|
+
component: /* @__PURE__ */ C(b, {
|
|
191
189
|
variant: "body1",
|
|
192
190
|
component: "div",
|
|
193
|
-
children: ["Only some files may be eligible for packaging as ZIP. Use the Individual Downloads tab, below, to download non-packageable files.\xA0", /* @__PURE__ */
|
|
191
|
+
children: ["Only some files may be eligible for packaging as ZIP. Use the Individual Downloads tab, below, to download non-packageable files.\xA0", /* @__PURE__ */ S("a", {
|
|
194
192
|
href: "https://help.synapse.org/docs/Downloading-Data-From-the-Synapse-UI.2004254837.html",
|
|
195
193
|
target: "_blank",
|
|
196
194
|
rel: "noopener noreferrer",
|
|
@@ -210,48 +208,48 @@ function A(u) {
|
|
|
210
208
|
width: "25px",
|
|
211
209
|
height: "25px"
|
|
212
210
|
},
|
|
213
|
-
children: /* @__PURE__ */
|
|
211
|
+
children: /* @__PURE__ */ S(b, {
|
|
214
212
|
variant: "body1",
|
|
215
213
|
component: "div",
|
|
216
214
|
sx: { marginBottom: "15px" },
|
|
217
|
-
children: /* @__PURE__ */
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
215
|
+
children: /* @__PURE__ */ C("ul", { children: [
|
|
216
|
+
/* @__PURE__ */ S("li", { children: "Files are bundled into .ZIPs up to 1 GB each." }),
|
|
217
|
+
/* @__PURE__ */ S("li", { children: "Larger selections are split into multiple packages." }),
|
|
218
|
+
/* @__PURE__ */ S("li", { children: "Includes only files stored in Synapse native storage." }),
|
|
219
|
+
/* @__PURE__ */ S("li", { children: "Each package contains a CSV manifest with file annotations and metadata." })
|
|
222
220
|
] })
|
|
223
221
|
})
|
|
224
222
|
})]
|
|
225
223
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
className:
|
|
228
|
-
children: [/* @__PURE__ */
|
|
229
|
-
className:
|
|
230
|
-
children: [/* @__PURE__ */
|
|
231
|
-
className:
|
|
232
|
-
children: /* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ C("div", {
|
|
225
|
+
className: s.subSection,
|
|
226
|
+
children: [/* @__PURE__ */ C("div", {
|
|
227
|
+
className: s.subSectionHeader,
|
|
228
|
+
children: [/* @__PURE__ */ S("div", {
|
|
229
|
+
className: s.headline,
|
|
230
|
+
children: /* @__PURE__ */ C(b, {
|
|
233
231
|
variant: "headline3",
|
|
234
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ S(o, { icon: "code" }), " Programmatic Download"]
|
|
235
233
|
})
|
|
236
|
-
}), /* @__PURE__ */
|
|
237
|
-
className:
|
|
238
|
-
children: /* @__PURE__ */
|
|
234
|
+
}), /* @__PURE__ */ S("div", {
|
|
235
|
+
className: s.subSectionActions,
|
|
236
|
+
children: /* @__PURE__ */ S(v, {
|
|
239
237
|
variant: "contained",
|
|
240
238
|
onClick: () => {
|
|
241
|
-
|
|
239
|
+
R(!0);
|
|
242
240
|
},
|
|
243
|
-
startIcon: /* @__PURE__ */
|
|
241
|
+
startIcon: /* @__PURE__ */ S(o, {
|
|
244
242
|
icon: "download",
|
|
245
243
|
wrap: !1
|
|
246
244
|
}),
|
|
247
245
|
children: "Get R / Python / CLI Code"
|
|
248
246
|
})
|
|
249
247
|
})]
|
|
250
|
-
}), /* @__PURE__ */
|
|
251
|
-
component: /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ S(m, {
|
|
249
|
+
component: /* @__PURE__ */ C(b, {
|
|
252
250
|
variant: "body1",
|
|
253
251
|
component: "div",
|
|
254
|
-
children: ["Use our Python, R, or command line clients to download files quickly.\xA0", /* @__PURE__ */
|
|
252
|
+
children: ["Use our Python, R, or command line clients to download files quickly.\xA0", /* @__PURE__ */ S("a", {
|
|
255
253
|
href: "https://help.synapse.org/docs/Downloading-Data-Programmatically.2003796248.html",
|
|
256
254
|
target: "_blank",
|
|
257
255
|
rel: "noopener noreferrer",
|
|
@@ -271,43 +269,43 @@ function A(u) {
|
|
|
271
269
|
width: "25px",
|
|
272
270
|
height: "25px"
|
|
273
271
|
},
|
|
274
|
-
children: /* @__PURE__ */
|
|
272
|
+
children: /* @__PURE__ */ S(b, {
|
|
275
273
|
variant: "body1",
|
|
276
274
|
component: "div",
|
|
277
275
|
sx: { marginBottom: "15px" },
|
|
278
|
-
children: /* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
/* @__PURE__ */
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
/* @__PURE__ */
|
|
276
|
+
children: /* @__PURE__ */ C("ul", { children: [
|
|
277
|
+
/* @__PURE__ */ S("li", { children: "Requires a client (R, Python, or CLI)." }),
|
|
278
|
+
/* @__PURE__ */ S("li", { children: "No limits on individual file size or total download size." }),
|
|
279
|
+
/* @__PURE__ */ S("li", { children: "Includes files stored both on and off Synapse native storage." }),
|
|
280
|
+
/* @__PURE__ */ S("li", { children: "Downloads include a CSV manifest with file annotations and metadata." })
|
|
283
281
|
] })
|
|
284
282
|
})
|
|
285
283
|
})]
|
|
286
284
|
}),
|
|
287
|
-
|
|
288
|
-
className:
|
|
289
|
-
children: [/* @__PURE__ */
|
|
290
|
-
className:
|
|
291
|
-
children: [/* @__PURE__ */
|
|
292
|
-
className:
|
|
293
|
-
children: /* @__PURE__ */
|
|
285
|
+
U.numberOfFilesAvailableForDownloadAndEligibleForPackaging < U.numberOfFilesAvailableForDownload && /* @__PURE__ */ C("div", {
|
|
286
|
+
className: s.subSection,
|
|
287
|
+
children: [/* @__PURE__ */ C("div", {
|
|
288
|
+
className: s.subSectionHeader,
|
|
289
|
+
children: [/* @__PURE__ */ S("div", {
|
|
290
|
+
className: s.headline,
|
|
291
|
+
children: /* @__PURE__ */ C(b, {
|
|
294
292
|
variant: "headline3",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
293
|
+
children: [/* @__PURE__ */ S(o, { icon: "multiFile" }), " Multi-file Download"]
|
|
296
294
|
})
|
|
297
|
-
}), /* @__PURE__ */
|
|
298
|
-
className:
|
|
299
|
-
children: /* @__PURE__ */
|
|
300
|
-
className:
|
|
301
|
-
children: /* @__PURE__ */
|
|
295
|
+
}), /* @__PURE__ */ S("div", {
|
|
296
|
+
className: s.subSectionActions,
|
|
297
|
+
children: /* @__PURE__ */ S("div", {
|
|
298
|
+
className: s.ineligibleDownloadContainer,
|
|
299
|
+
children: /* @__PURE__ */ S(f, {})
|
|
302
300
|
})
|
|
303
301
|
})]
|
|
304
|
-
}), /* @__PURE__ */
|
|
305
|
-
component: /* @__PURE__ */
|
|
302
|
+
}), /* @__PURE__ */ S(m, {
|
|
303
|
+
component: /* @__PURE__ */ C(b, {
|
|
306
304
|
variant: "body1",
|
|
307
305
|
component: "div",
|
|
308
306
|
children: [
|
|
309
307
|
"Files which ",
|
|
310
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ S("strong", { children: "aren't" }),
|
|
311
309
|
" included in a ZIP package may be downloaded as a multi-file download.\xA0"
|
|
312
310
|
]
|
|
313
311
|
}),
|
|
@@ -324,14 +322,14 @@ function A(u) {
|
|
|
324
322
|
width: "25px",
|
|
325
323
|
height: "25px"
|
|
326
324
|
},
|
|
327
|
-
children: /* @__PURE__ */
|
|
325
|
+
children: /* @__PURE__ */ C(b, {
|
|
328
326
|
variant: "body1",
|
|
329
327
|
component: "div",
|
|
330
328
|
sx: { marginBottom: "15px" },
|
|
331
329
|
children: [
|
|
332
330
|
"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.",
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ S("br", {}),
|
|
332
|
+
/* @__PURE__ */ S("br", {}),
|
|
335
333
|
"Note: in some browsers, files download individually to your default Downloads folder instead of a selected location."
|
|
336
334
|
]
|
|
337
335
|
})
|
|
@@ -339,71 +337,71 @@ function A(u) {
|
|
|
339
337
|
})
|
|
340
338
|
]
|
|
341
339
|
}) }),
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
-
|
|
344
|
-
ref:
|
|
345
|
-
children: /* @__PURE__ */
|
|
346
|
-
|
|
340
|
+
/* @__PURE__ */ C("div", { children: [
|
|
341
|
+
P && /* @__PURE__ */ S("div", {
|
|
342
|
+
ref: I,
|
|
343
|
+
children: /* @__PURE__ */ S(d, { onPackageCreation: () => {
|
|
344
|
+
B(!0);
|
|
347
345
|
} })
|
|
348
346
|
}),
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
className: `${
|
|
347
|
+
/* @__PURE__ */ S("h3", {
|
|
348
|
+
className: `${s.sectionTitle} pageHeaderTitle`,
|
|
351
349
|
children: "Download Individual Files"
|
|
352
350
|
}),
|
|
353
|
-
/* @__PURE__ */
|
|
354
|
-
className:
|
|
355
|
-
children: /* @__PURE__ */
|
|
356
|
-
className:
|
|
357
|
-
children: [/* @__PURE__ */
|
|
358
|
-
className:
|
|
351
|
+
/* @__PURE__ */ S("div", {
|
|
352
|
+
className: s.tabsContainer,
|
|
353
|
+
children: /* @__PURE__ */ C("ul", {
|
|
354
|
+
className: s.navTabs,
|
|
355
|
+
children: [/* @__PURE__ */ S("li", {
|
|
356
|
+
className: s.navLabel,
|
|
359
357
|
children: "View:"
|
|
360
|
-
}),
|
|
361
|
-
className: `${
|
|
362
|
-
"aria-selected":
|
|
363
|
-
children: /* @__PURE__ */
|
|
364
|
-
onClick: () =>
|
|
365
|
-
children: [e.label, !
|
|
366
|
-
className:
|
|
367
|
-
children:
|
|
358
|
+
}), D.map((e, t) => /* @__PURE__ */ S("li", {
|
|
359
|
+
className: `${s.navItem}${j === t ? ` ${s.active}` : ""}`,
|
|
360
|
+
"aria-selected": j === t,
|
|
361
|
+
children: /* @__PURE__ */ C("button", {
|
|
362
|
+
onClick: () => M(t),
|
|
363
|
+
children: [e.label, !G && !W && U && /* @__PURE__ */ S("span", {
|
|
364
|
+
className: s.fileCount,
|
|
365
|
+
children: J(U, e.filter)
|
|
368
366
|
})]
|
|
369
367
|
})
|
|
370
368
|
}, e.label))]
|
|
371
369
|
})
|
|
372
370
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
className:
|
|
375
|
-
children: /* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ S("div", {
|
|
372
|
+
className: s.availableForDownloadTableContainer,
|
|
373
|
+
children: /* @__PURE__ */ S(u, { filter: N }, N ?? "all")
|
|
376
374
|
})
|
|
377
375
|
] })
|
|
378
376
|
]
|
|
379
|
-
}),
|
|
380
|
-
className:
|
|
381
|
-
children: /* @__PURE__ */
|
|
377
|
+
}), U.numberOfFilesAvailableForDownload === 0 && /* @__PURE__ */ S("div", {
|
|
378
|
+
className: s.placeholder,
|
|
379
|
+
children: /* @__PURE__ */ S(b, {
|
|
382
380
|
variant: "body1Italic",
|
|
383
381
|
children: "Your Download List is currently empty."
|
|
384
382
|
})
|
|
385
383
|
})] }),
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
show:
|
|
384
|
+
/* @__PURE__ */ S(e, {
|
|
385
|
+
show: z,
|
|
388
386
|
variant: "success",
|
|
389
387
|
title: "Package Created",
|
|
390
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.",
|
|
391
389
|
autoCloseAfterDelayInSeconds: 10,
|
|
392
390
|
onClose: () => {
|
|
393
|
-
|
|
391
|
+
B(!1);
|
|
394
392
|
}
|
|
395
393
|
}),
|
|
396
|
-
|
|
394
|
+
L && /* @__PURE__ */ S(c, {
|
|
397
395
|
show: !0,
|
|
398
|
-
onClose: () =>
|
|
396
|
+
onClose: () => R(!1),
|
|
399
397
|
title: "Download Programmatically",
|
|
400
|
-
pythonCode:
|
|
401
|
-
cliCode:
|
|
398
|
+
pythonCode: T,
|
|
399
|
+
cliCode: E
|
|
402
400
|
})
|
|
403
401
|
]
|
|
404
402
|
});
|
|
405
403
|
}
|
|
406
404
|
//#endregion
|
|
407
|
-
export {
|
|
405
|
+
export { O as DownloadCartPage, O as default };
|
|
408
406
|
|
|
409
407
|
//# sourceMappingURL=DownloadCartPage.js.map
|