synapse-react-client 2.0.62 → 2.0.63
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/containers/DirectDownload.js +1 -1
- package/dist/containers/DirectDownload.js.map +1 -1
- package/dist/containers/HelpPopover.d.ts +9 -0
- package/dist/containers/HelpPopover.js +21 -0
- package/dist/containers/HelpPopover.js.map +1 -0
- package/dist/containers/MarkdownPopover.js +3 -1
- package/dist/containers/MarkdownPopover.js.map +1 -1
- package/dist/containers/ProgrammaticInstructionsModal.d.ts +25 -0
- package/dist/containers/ProgrammaticInstructionsModal.js +77 -0
- package/dist/containers/ProgrammaticInstructionsModal.js.map +1 -0
- package/dist/containers/download_list_v2/DirectProgrammaticDownload.d.ts +7 -0
- package/dist/containers/download_list_v2/DirectProgrammaticDownload.js +23 -0
- package/dist/containers/download_list_v2/DirectProgrammaticDownload.js.map +1 -0
- package/dist/containers/download_list_v2/DownloadCartPage.js +37 -38
- package/dist/containers/download_list_v2/DownloadCartPage.js.map +1 -1
- package/dist/containers/download_list_v2/DownloadListTable.js +9 -5
- package/dist/containers/download_list_v2/DownloadListTable.js.map +1 -1
- package/dist/containers/entity_finder/details/view/DetailsView.js +2 -6
- package/dist/containers/entity_finder/details/view/DetailsView.js.map +1 -1
- package/dist/containers/table/table-top/DownloadOptions.js +2 -2
- package/dist/containers/table/table-top/DownloadOptions.js.map +1 -1
- package/dist/containers/table/table-top/{ProgrammaticOptions.d.ts → ProgrammaticTableDownload.d.ts} +0 -5
- package/dist/containers/table/table-top/ProgrammaticTableDownload.js +64 -0
- package/dist/containers/table/table-top/ProgrammaticTableDownload.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/rollup.index.d.ts +6 -2
- package/dist/rollup.index.js +8 -2
- package/dist/rollup.index.js.map +1 -1
- package/dist/style/base/_icons.scss +4 -5
- package/dist/style/components/_download-cart-page.scss +7 -1
- package/dist/style/components/_download-list-v2.scss +5 -5
- package/dist/style/main.css +16 -8
- package/dist/umd/synapse-react-client.production.min.js +10 -10
- package/dist/umd/synapse-react-client.production.styles.css +16 -8
- package/dist/utils/typography/Typography.styles.js +2 -2
- package/package.json +1 -1
- package/dist/containers/table/table-top/ProgrammaticOptions.js +0 -119
- package/dist/containers/table/table-top/ProgrammaticOptions.js.map +0 -1
package/dist/containers/table/table-top/{ProgrammaticOptions.d.ts → ProgrammaticTableDownload.d.ts}
RENAMED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { QueryBundleRequest, QueryResultBundle } from '../../../utils/synapseTypes';
|
|
3
|
-
export declare enum ProgrammaticOptionsTabs {
|
|
4
|
-
COMMAND_LINE = "Command Line",
|
|
5
|
-
R = "R",
|
|
6
|
-
PYTHON = "Python"
|
|
7
|
-
}
|
|
8
3
|
declare type ProgrammaticOptionsProps = {
|
|
9
4
|
queryBundleRequest: QueryBundleRequest;
|
|
10
5
|
queryResultBundle: QueryResultBundle;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var react_1 = (0, tslib_1.__importStar)(require("react"));
|
|
5
|
+
var use_deep_compare_effect_1 = (0, tslib_1.__importDefault)(require("use-deep-compare-effect"));
|
|
6
|
+
var SynapseClient_1 = require("../../../utils/SynapseClient");
|
|
7
|
+
var ProgrammaticInstructionsModal_1 = require("../../ProgrammaticInstructionsModal");
|
|
8
|
+
function ProgrammaticOptions(_a) {
|
|
9
|
+
var _this = this;
|
|
10
|
+
var queryBundleRequest = _a.queryBundleRequest, queryResultBundle = _a.queryResultBundle, onHide = _a.onHide;
|
|
11
|
+
var _b = (0, react_1.useState)(''), generatedSql = _b[0], setGeneratedSql = _b[1];
|
|
12
|
+
(0, use_deep_compare_effect_1.default)(function () {
|
|
13
|
+
var getData = function () { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () {
|
|
14
|
+
var query, sql, _a, selectedFacets, columnModels, transformSqlWithFacetsRequest, res, indexOfFrom, selectStarTransformedSql, e_1;
|
|
15
|
+
return (0, tslib_1.__generator)(this, function (_b) {
|
|
16
|
+
switch (_b.label) {
|
|
17
|
+
case 0:
|
|
18
|
+
query = queryBundleRequest.query;
|
|
19
|
+
sql = query.sql, _a = query.selectedFacets, selectedFacets = _a === void 0 ? [] : _a;
|
|
20
|
+
columnModels = queryResultBundle.columnModels;
|
|
21
|
+
if (!columnModels) {
|
|
22
|
+
console.error('Column Models must be included to complete transform sql request');
|
|
23
|
+
}
|
|
24
|
+
transformSqlWithFacetsRequest = {
|
|
25
|
+
concreteType: 'org.sagebionetworks.repo.model.table.TransformSqlWithFacetsRequest',
|
|
26
|
+
sqlToTransform: sql,
|
|
27
|
+
selectedFacets: selectedFacets,
|
|
28
|
+
schema: columnModels,
|
|
29
|
+
};
|
|
30
|
+
_b.label = 1;
|
|
31
|
+
case 1:
|
|
32
|
+
_b.trys.push([1, 3, , 4]);
|
|
33
|
+
return [4 /*yield*/, (0, SynapseClient_1.getTransformSqlWithFacetsRequest)(transformSqlWithFacetsRequest)
|
|
34
|
+
// SWC-5686: The ID column is required by the client, and this column may not have been selected!
|
|
35
|
+
// Change the SQL to "SELECT * ..."
|
|
36
|
+
];
|
|
37
|
+
case 2:
|
|
38
|
+
res = _b.sent();
|
|
39
|
+
indexOfFrom = res.transformedSql.toUpperCase().indexOf('FROM SYN');
|
|
40
|
+
selectStarTransformedSql = "SELECT * " + res.transformedSql.substring(indexOfFrom);
|
|
41
|
+
setGeneratedSql(selectStarTransformedSql.replace(/"/g, '\\"'));
|
|
42
|
+
return [3 /*break*/, 4];
|
|
43
|
+
case 3:
|
|
44
|
+
e_1 = _b.sent();
|
|
45
|
+
console.error('Error on getTransformSqlWithFacetsRequest ', e_1);
|
|
46
|
+
return [3 /*break*/, 4];
|
|
47
|
+
case 4: return [2 /*return*/];
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}); };
|
|
51
|
+
getData();
|
|
52
|
+
}, [queryBundleRequest, queryResultBundle]);
|
|
53
|
+
return (react_1.default.createElement(ProgrammaticInstructionsModal_1.ProgrammaticInstructionsModal, { show: true, onClose: onHide, title: 'Download Programmatically', cliNotes: react_1.default.createElement(react_1.default.Fragment, null, "This command line code will download Synapse files AND file annotations to your working directory."), cliCode: "synapse get -q \"" + generatedSql + "\"", rNotes: react_1.default.createElement(react_1.default.Fragment, null,
|
|
54
|
+
"This R code will download file annotations only. Use ",
|
|
55
|
+
react_1.default.createElement("a", { target: '_blank', rel: 'noopener noreferrer', href: 'https://help.synapse.org/docs/Get-Started-with-Downloading-Data.2004254837.html#GetStartedwithDownloadingData-DownloadingFiles' },
|
|
56
|
+
"synGet",
|
|
57
|
+
'()'),
|
|
58
|
+
" to loop over the list of Synapse IDs from the file annotations to download files."), rCode: "query " + '<-' + " synTableQuery(\"" + generatedSql + "\")" + '\n' + "read.table(query$filepath, sep = \",\")", pythonNotes: react_1.default.createElement(react_1.default.Fragment, null,
|
|
59
|
+
"This Python code will download file annotations only. Use ",
|
|
60
|
+
react_1.default.createElement("a", { target: '_blank', rel: 'noopener noreferrer', href: 'https://help.synapse.org/docs/Get-Started-with-Downloading-Data.2004254837.html#GetStartedwithDownloadingData-DownloadingFiles' }, "syn.get"),
|
|
61
|
+
" to loop over the list of Synapse IDs from the file annotations to download files."), pythonCode: "query = syn.tableQuery(\"" + generatedSql + "\")" + '\n' + "query.asDataFrame()" }));
|
|
62
|
+
}
|
|
63
|
+
exports.default = ProgrammaticOptions;
|
|
64
|
+
//# sourceMappingURL=ProgrammaticTableDownload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgrammaticTableDownload.js","sourceRoot":"","sources":["../../../../src/lib/containers/table/table-top/ProgrammaticTableDownload.tsx"],"names":[],"mappings":";;;AAAA,0DAAuC;AAMvC,iG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,CAAC,CAAC,CAAA;IAE3C,OAAO,CACL,8BAAC,6DAA6B,IAC5B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,EACf,KAAK,EAAC,2BAA2B,EACjC,QAAQ,EAAE,mKAEL,EACL,OAAO,EAAE,sBAAmB,YAAY,OAAG,EAC3C,MAAM,EAAE;;YACiD,qCAAG,MAAM,EAAC,QAAQ,EACrE,GAAG,EAAC,qBAAqB,EACzB,IAAI,EAAC,gIAAgI;;gBAC9H,IAAI,CACT;iGACH,EACL,KAAK,EAAE,WAAS,IAAI,yBAAmB,YAAY,WAAK,IAAI,4CAAuC,EACnG,WAAW,EAAE;;YAC+C,qCAAG,MAAM,EAAC,QAAQ,EACxE,GAAG,EAAC,qBAAqB,EACzB,IAAI,EAAC,gIAAgI,cAEnI;iGACH,EACL,UAAU,EAAE,8BAA2B,YAAY,WAAK,IAAI,wBAAqB,GACjF,CACH,CAAA;AACH,CAAC;AAED,kBAAe,mBAAmB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import RssFeedCards from './containers/RssFeedCards';
|
|
|
19
19
|
import SynapsePlot from './containers/widgets/SynapsePlot';
|
|
20
20
|
import UserCardListGroups from './containers/home_page/people/UserCardListGroups';
|
|
21
21
|
import RenderIfInView from './containers/RenderIfInView';
|
|
22
|
-
import
|
|
22
|
+
import ProgrammaticTableDownload from './containers/table/table-top/ProgrammaticTableDownload';
|
|
23
23
|
import UserProfileLinks from './containers/user_profile_links/UserProfileLinks';
|
|
24
24
|
import { useSynapseContext } from './utils/SynapseContext';
|
|
25
25
|
import './style/components/_spinner.scss';
|
|
@@ -77,7 +77,6 @@ declare const SynapseComponents: {
|
|
|
77
77
|
DownloadCartPage: import("react").FunctionComponent<import("./containers/download_list_v2/DownloadCartPage").DownloadCartPageProps>;
|
|
78
78
|
ShowDownloadV2: typeof ShowDownloadV2;
|
|
79
79
|
FullWidthAlert: typeof FullWidthAlert;
|
|
80
|
-
ProgrammaticOptions: typeof ProgrammaticOptions;
|
|
81
80
|
SynapseToastContainer: import("react").FunctionComponent<{}>;
|
|
82
81
|
displayToast: (message: string, variant?: "success" | "info" | "warning" | "danger" | undefined, toastMessageOptions?: {
|
|
83
82
|
title?: string | undefined;
|
|
@@ -91,5 +90,6 @@ declare const SynapseComponents: {
|
|
|
91
90
|
MarkdownPopover: import("react").FunctionComponent<import("./containers/MarkdownPopover").MarkdownPopoverProps>;
|
|
92
91
|
FeaturedToolsList: import("react").FunctionComponent<import("./containers/home_page/featured_tools/FeaturedToolsList").FeaturedToolsListProps>;
|
|
93
92
|
SubsectionRowRenderer: import("react").FunctionComponent<import("./containers/SubsectionRowRenderer").SubsectionRowRendererProps>;
|
|
93
|
+
ProgrammaticTableDownload: typeof ProgrammaticTableDownload;
|
|
94
94
|
};
|
|
95
95
|
export { SynapseClient, SynapseConstants, SynapseComponents, SynapseContext, Typography };
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ var ProjectViewCarousel_1 = (0, tslib_1.__importDefault)(require("./containers/h
|
|
|
46
46
|
var EntityFinder_1 = (0, tslib_1.__importDefault)(require("./containers/entity_finder/EntityFinder"));
|
|
47
47
|
var ExperimentalMode_1 = (0, tslib_1.__importDefault)(require("./containers/ExperimentalMode"));
|
|
48
48
|
var EntityBadgeIcons_1 = require("./containers/EntityBadgeIcons");
|
|
49
|
-
var
|
|
49
|
+
var ProgrammaticTableDownload_1 = (0, tslib_1.__importDefault)(require("./containers/table/table-top/ProgrammaticTableDownload"));
|
|
50
50
|
var UserProfileLinks_1 = (0, tslib_1.__importDefault)(require("./containers/user_profile_links/UserProfileLinks"));
|
|
51
51
|
var SynapseContext_1 = require("./utils/SynapseContext");
|
|
52
52
|
var MarkdownPopover_1 = require("./containers/MarkdownPopover");
|
|
@@ -115,13 +115,13 @@ var SynapseComponents = {
|
|
|
115
115
|
DownloadCartPage: DownloadCartPage_1.DownloadCartPage,
|
|
116
116
|
ShowDownloadV2: ShowDownloadV2_1.default,
|
|
117
117
|
FullWidthAlert: FullWidthAlert_1.default,
|
|
118
|
-
ProgrammaticOptions: ProgrammaticOptions_1.default,
|
|
119
118
|
SynapseToastContainer: ToastMessage_1.SynapseToastContainer,
|
|
120
119
|
displayToast: ToastMessage_1.displayToast,
|
|
121
120
|
UserProfileLinks: UserProfileLinks_1.default,
|
|
122
121
|
MarkdownPopover: MarkdownPopover_1.MarkdownPopover,
|
|
123
122
|
FeaturedToolsList: FeaturedToolsList_1.default,
|
|
124
|
-
SubsectionRowRenderer: SubsectionRowRenderer_1.default
|
|
123
|
+
SubsectionRowRenderer: SubsectionRowRenderer_1.default,
|
|
124
|
+
ProgrammaticTableDownload: ProgrammaticTableDownload_1.default,
|
|
125
125
|
};
|
|
126
126
|
exports.SynapseComponents = SynapseComponents;
|
|
127
127
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/lib/index.ts"],"names":[],"mappings":";;;;AAAA,uCAAoC;AACpC,mCAAgC;AAChC,qCAAkC;AAClC,8CAA4C;AAC5C,8FAA0D;AAC1D,wFAAoD;AACpD,6HAAyF;AACzF,8FAA0D;AAC1D,kFAA8C;AAC9C,8FAA0D;AAC1D,kHAA8E;AAC9E,gFAA4C;AAC5C,0EAAsC;AACtC,oFAAgD;AAChD,oFAAgD;AAChD,0FAAsD;AACtD,8EAA4E;AAC5E,yHAAqF;AACrF,yIAAqG;AACrG,oGAAgE;AAChE,0FAAsD;AACtD,sGAAkE;AAClE,gHAA4E;AAC5E,0FAAsD;AACtD,mGAA+D;AAC/D,sGAAkE;AAClE,wFAAoD;AACpD,4FAAwD;AACxD,wGAAoE;AACpE,kFAA8C;AAC9C,8FAA0D;AAC1D,oGAAgE;AAChE,0GAAsE;AACtE,wHAAoF;AACpF,2HAAuF;AACvF,qHAAiF;AACjF,oEAAkE;AAClE,4FAAwD;AACxD,oGAAgE;AAChE,wFAA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wCAAc;AAtD3E,IAAM,iBAAiB,GAAG;IACxB,MAAM,iBAAA;IACN,KAAK,iBAAA;IACL,aAAa,yBAAA;IACb,YAAY,wBAAA;IACZ,eAAe,2BAAA;IACf,sBAAsB,kCAAA;IACtB,YAAY,wBAAA;IACZ,kBAAkB,8BAAA;IAClB,UAAU,sBAAA;IACV,QAAQ,oBAAA;IACR,UAAU,sBAAA;IACV,QAAQ,EAAE,yBAAe;IACzB,aAAa,yBAAA;IACb,kBAAkB,8BAAA;IAClB,0BAA0B,sCAAA;IAC1B,SAAS,qBAAA;IACT,iBAAiB,6BAAA;IACjB,UAAU,sBAAA;IACV,YAAY,wBAAA;IACZ,mBAAmB,+BAAA;IACnB,sBAAsB,iDAAA;IACtB,QAAQ,oBAAA;IACR,KAAK,iBAAA;IACL,SAAS,qBAAA;IACT,SAAS,qBAAA;IACT,WAAW,uBAAA;IACX,YAAY,wBAAA;IACZ,cAAc,0BAAA;IACd,kBAAkB,8BAAA;IAClB,gBAAgB,4BAAA;IAChB,kBAAkB,8BAAA;IAClB,cAAc,iCAAA;IACd,oBAAoB,6CAAA;IACpB,iBAAiB,uCAAA;IACjB,cAAc,0BAAA;IACd,kBAAkB,8BAAA;IAClB,YAAY,wBAAA;IACZ,mBAAmB,+BAAA;IACnB,YAAY,wBAAA;IACZ,gBAAgB,4BAAA;IAChB,gBAAgB,qCAAA;IAChB,gBAAgB,qCAAA;IAChB,cAAc,0BAAA;IACd,cAAc,EAAE,wBAAc;IAC9B,qBAAqB,sCAAA;IACrB,YAAY,6BAAA;IACZ,gBAAgB,4BAAA;IAChB,eAAe,mCAAA;IACf,iBAAiB,6BAAA;IACjB,qBAAqB,iCAAA;IACrB,yBAAyB,qCAAA;CAC1B,CAAA;AAEyC,8CAAiB"}
|
package/dist/rollup.index.d.ts
CHANGED
|
@@ -10,8 +10,9 @@ import { SynapseConstants, SynapseClient } from './utils/';
|
|
|
10
10
|
import FavoritesPage from './containers/FavoritesPage';
|
|
11
11
|
import ShowDownloadV2 from './containers/download_list_v2/ShowDownloadV2';
|
|
12
12
|
import FullWidthAlert from './containers/FullWidthAlert';
|
|
13
|
+
import DirectProgrammaticDownload from './containers/download_list_v2/DirectProgrammaticDownload';
|
|
13
14
|
import UserProfileLinks from './containers/user_profile_links/UserProfileLinks';
|
|
14
|
-
import
|
|
15
|
+
import ProgrammaticTableDownload from './containers/table/table-top/ProgrammaticTableDownload';
|
|
15
16
|
import { useSynapseContext } from './utils/SynapseContext';
|
|
16
17
|
import { DatasetItemsEditor } from './containers/table/datasets/DatasetItemsEditor';
|
|
17
18
|
declare const SynapseContext: {
|
|
@@ -46,7 +47,6 @@ declare const SynapseComponents: {
|
|
|
46
47
|
SynapseNavDrawer: import("react").FunctionComponent<import("./containers/SynapseNavDrawer").SynapseNavDrawerProps>;
|
|
47
48
|
FavoritesPage: typeof FavoritesPage;
|
|
48
49
|
EntityModal: import("react").FC<import("./containers/entity/metadata/EntityModal").EntityModalProps>;
|
|
49
|
-
ProgrammaticOptions: typeof ProgrammaticOptions;
|
|
50
50
|
SynapseToastContainer: import("react").FunctionComponent<{}>;
|
|
51
51
|
displayToast: (message: string, variant?: "success" | "info" | "warning" | "danger" | undefined, toastMessageOptions?: {
|
|
52
52
|
title?: string | undefined;
|
|
@@ -63,5 +63,9 @@ declare const SynapseComponents: {
|
|
|
63
63
|
EntityTypeIcon: import("react").FC<Omit<import("@fortawesome/react-fontawesome").FontAwesomeIconProps, "icon"> & {
|
|
64
64
|
type: import("./utils/synapseTypes").EntityType;
|
|
65
65
|
}>;
|
|
66
|
+
HelpPopover: import("react").FunctionComponent<import("./containers/HelpPopover").HelpPopoverProps>;
|
|
67
|
+
ProgrammaticTableDownload: typeof ProgrammaticTableDownload;
|
|
68
|
+
DirectProgrammaticDownload: typeof DirectProgrammaticDownload;
|
|
69
|
+
ProgrammaticInstructionsModal: ({ show, title, onClose, pythonNotes, pythonCode, rNotes, rCode, cliNotes, cliCode, helpMarkdown, helpUrl, }: import("./containers/ProgrammaticInstructionsModal").ProgrammaticInstructionsModalProps) => JSX.Element;
|
|
66
70
|
};
|
|
67
71
|
export { SynapseComponents, SynapseConstants, SynapseClient, SynapseContext };
|
package/dist/rollup.index.js
CHANGED
|
@@ -30,12 +30,15 @@ var ErrorPage_1 = (0, tslib_1.__importDefault)(require("./containers/ErrorPage")
|
|
|
30
30
|
var EntityBadgeIcons_1 = require("./containers/EntityBadgeIcons");
|
|
31
31
|
var ShowDownloadV2_1 = (0, tslib_1.__importDefault)(require("./containers/download_list_v2/ShowDownloadV2"));
|
|
32
32
|
var FullWidthAlert_1 = (0, tslib_1.__importDefault)(require("./containers/FullWidthAlert"));
|
|
33
|
+
var HelpPopover_1 = require("./containers/HelpPopover");
|
|
34
|
+
var DirectProgrammaticDownload_1 = (0, tslib_1.__importDefault)(require("./containers/download_list_v2/DirectProgrammaticDownload"));
|
|
33
35
|
var DownloadConfirmation_1 = require("./containers/download_list/DownloadConfirmation");
|
|
34
36
|
var UserProfileLinks_1 = (0, tslib_1.__importDefault)(require("./containers/user_profile_links/UserProfileLinks"));
|
|
35
37
|
var SchemaDrivenAnnotationEditor_1 = require("./containers/entity/annotations/SchemaDrivenAnnotationEditor");
|
|
36
38
|
var EntityModal_1 = require("./containers/entity/metadata/EntityModal");
|
|
37
|
-
var
|
|
39
|
+
var ProgrammaticTableDownload_1 = (0, tslib_1.__importDefault)(require("./containers/table/table-top/ProgrammaticTableDownload"));
|
|
38
40
|
var ToastMessage_1 = require("./containers/ToastMessage");
|
|
41
|
+
var ProgrammaticInstructionsModal_1 = require("./containers/ProgrammaticInstructionsModal");
|
|
39
42
|
var PlotlyWrapper_1 = (0, tslib_1.__importDefault)(require("./containers/PlotlyWrapper"));
|
|
40
43
|
var IconSvg_1 = (0, tslib_1.__importDefault)(require("./containers/IconSvg"));
|
|
41
44
|
var SynapseContext_1 = require("./utils/SynapseContext");
|
|
@@ -74,7 +77,6 @@ var SynapseComponents = {
|
|
|
74
77
|
SynapseNavDrawer: SynapseNavDrawer_1.SynapseNavDrawer,
|
|
75
78
|
FavoritesPage: FavoritesPage_1.default,
|
|
76
79
|
EntityModal: EntityModal_1.EntityModal,
|
|
77
|
-
ProgrammaticOptions: ProgrammaticOptions_1.default,
|
|
78
80
|
SynapseToastContainer: ToastMessage_1.SynapseToastContainer,
|
|
79
81
|
displayToast: ToastMessage_1.displayToast,
|
|
80
82
|
IconSvg: IconSvg_1.default,
|
|
@@ -82,6 +84,10 @@ var SynapseComponents = {
|
|
|
82
84
|
PlotlyWrapper: PlotlyWrapper_1.default,
|
|
83
85
|
DatasetItemsEditor: DatasetItemsEditor_1.DatasetItemsEditor,
|
|
84
86
|
EntityTypeIcon: EntityIcon_1.EntityTypeIcon,
|
|
87
|
+
HelpPopover: HelpPopover_1.HelpPopover,
|
|
88
|
+
ProgrammaticTableDownload: ProgrammaticTableDownload_1.default,
|
|
89
|
+
DirectProgrammaticDownload: DirectProgrammaticDownload_1.default,
|
|
90
|
+
ProgrammaticInstructionsModal: ProgrammaticInstructionsModal_1.ProgrammaticInstructionsModal,
|
|
85
91
|
};
|
|
86
92
|
exports.SynapseComponents = SynapseComponents;
|
|
87
93
|
//# sourceMappingURL=rollup.index.js.map
|
package/dist/rollup.index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.index.js","sourceRoot":"","sources":["../src/lib/rollup.index.ts"],"names":[],"mappings":";;;;AAAA,uCAAoC;AACpC,gFAA4C;AAC5C,0EAAsC;AACtC,kFAA8C;AAC9C,4FAAwD;AACxD,oFAAgD;AAChD,kFAA8C;AAC9C,gHAA4E;AAC5E,6BAA0B;AAC1B,kCAA0D;
|
|
1
|
+
{"version":3,"file":"rollup.index.js","sourceRoot":"","sources":["../src/lib/rollup.index.ts"],"names":[],"mappings":";;;;AAAA,uCAAoC;AACpC,gFAA4C;AAC5C,0EAAsC;AACtC,kFAA8C;AAC9C,4FAAwD;AACxD,oFAAgD;AAChD,kFAA8C;AAC9C,gHAA4E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;IACrB,YAAY,6BAAA;IACZ,OAAO,mBAAA;IACP,gBAAgB,4BAAA;IAChB,aAAa,yBAAA;IACb,kBAAkB,yCAAA;IAClB,cAAc,6BAAA;IACd,WAAW,2BAAA;IACX,yBAAyB,qCAAA;IACzB,0BAA0B,sCAAA;IAC1B,6BAA6B,+DAAA;CAC9B,CAAA;AAEQ,8CAAiB"}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
padding-right: 20px;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.subSectionOverviewContainer {
|
|
86
86
|
padding: 30px 0px;
|
|
87
87
|
background-color: SRC.$background-color-gray;
|
|
88
88
|
}
|
|
@@ -92,6 +92,12 @@
|
|
|
92
92
|
display: flex;
|
|
93
93
|
column-gap: 10px;
|
|
94
94
|
>* {
|
|
95
|
+
&:first-child {
|
|
96
|
+
padding-left: 0px;
|
|
97
|
+
}
|
|
98
|
+
&:last-child {
|
|
99
|
+
padding-right: 0px;
|
|
100
|
+
}
|
|
95
101
|
padding: 0px 50px;
|
|
96
102
|
}
|
|
97
103
|
>*:first-child {
|
|
@@ -44,19 +44,19 @@ table.DownloadListTableV2 {
|
|
|
44
44
|
tbody .stickyColumn .actionsContainer {
|
|
45
45
|
color: map.get(SRC.$colors, 'gray-700'); // make all icons gray-700
|
|
46
46
|
display: grid;
|
|
47
|
-
grid-template-columns: repeat(
|
|
47
|
+
grid-template-columns: repeat(3, 40px);
|
|
48
48
|
* {
|
|
49
49
|
justify-self: center;
|
|
50
50
|
}
|
|
51
51
|
.downloadItem {
|
|
52
52
|
grid-column: 1 / span 1;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.programmaticAccessItem {
|
|
55
55
|
grid-column: 2 / span 1;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
.removeItem {
|
|
58
|
+
grid-column: 3 / span 1;
|
|
59
|
+
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
@include SRCMixins.sortable-table();
|
package/dist/style/main.css
CHANGED
|
@@ -15803,11 +15803,10 @@ main * a.ignoreLink:not(.btn):visited.disabled:hover, main * a.ignoreLink:not(.b
|
|
|
15803
15803
|
fill: #407ba0;
|
|
15804
15804
|
}
|
|
15805
15805
|
|
|
15806
|
-
.HelpButton {
|
|
15807
|
-
color: #
|
|
15808
|
-
|
|
15809
|
-
|
|
15810
|
-
width: 18px;
|
|
15806
|
+
svg.HelpButton {
|
|
15807
|
+
color: #aeb5bc;
|
|
15808
|
+
cursor: pointer;
|
|
15809
|
+
font-size: 1.2em;
|
|
15811
15810
|
}
|
|
15812
15811
|
|
|
15813
15812
|
.modal-dialog-scrollable {
|
|
@@ -21343,7 +21342,7 @@ table.DownloadListTableV2 tbody tr:nth-of-type(odd) > .stickyColumn {
|
|
|
21343
21342
|
table.DownloadListTableV2 tbody .stickyColumn .actionsContainer {
|
|
21344
21343
|
color: #878e95;
|
|
21345
21344
|
display: grid;
|
|
21346
|
-
grid-template-columns: repeat(
|
|
21345
|
+
grid-template-columns: repeat(3, 40px);
|
|
21347
21346
|
}
|
|
21348
21347
|
table.DownloadListTableV2 tbody .stickyColumn .actionsContainer * {
|
|
21349
21348
|
justify-self: center;
|
|
@@ -21351,9 +21350,12 @@ table.DownloadListTableV2 tbody .stickyColumn .actionsContainer * {
|
|
|
21351
21350
|
table.DownloadListTableV2 tbody .stickyColumn .actionsContainer .downloadItem {
|
|
21352
21351
|
grid-column: 1/span 1;
|
|
21353
21352
|
}
|
|
21354
|
-
table.DownloadListTableV2 tbody .stickyColumn .actionsContainer .
|
|
21353
|
+
table.DownloadListTableV2 tbody .stickyColumn .actionsContainer .programmaticAccessItem {
|
|
21355
21354
|
grid-column: 2/span 1;
|
|
21356
21355
|
}
|
|
21356
|
+
table.DownloadListTableV2 tbody .stickyColumn .actionsContainer .removeItem {
|
|
21357
|
+
grid-column: 3/span 1;
|
|
21358
|
+
}
|
|
21357
21359
|
table.DownloadListTableV2 thead > tr > th,
|
|
21358
21360
|
table.DownloadListTableV2 thead:first-child > tr:first-child > th {
|
|
21359
21361
|
padding: 10px 6px 5px 7px;
|
|
@@ -21618,7 +21620,7 @@ table.DownloadListTableV2 td {
|
|
|
21618
21620
|
font-weight: bold;
|
|
21619
21621
|
padding-right: 20px;
|
|
21620
21622
|
}
|
|
21621
|
-
.DownloadCartPage .
|
|
21623
|
+
.DownloadCartPage .subSectionOverviewContainer {
|
|
21622
21624
|
padding: 30px 0px;
|
|
21623
21625
|
background-color: #f9f9f9;
|
|
21624
21626
|
}
|
|
@@ -21629,6 +21631,12 @@ table.DownloadListTableV2 td {
|
|
|
21629
21631
|
.DownloadCartPage .DownloadListTabContent .subSectionOverview > * {
|
|
21630
21632
|
padding: 0px 50px;
|
|
21631
21633
|
}
|
|
21634
|
+
.DownloadCartPage .DownloadListTabContent .subSectionOverview > *:first-child {
|
|
21635
|
+
padding-left: 0px;
|
|
21636
|
+
}
|
|
21637
|
+
.DownloadCartPage .DownloadListTabContent .subSectionOverview > *:last-child {
|
|
21638
|
+
padding-right: 0px;
|
|
21639
|
+
}
|
|
21632
21640
|
.DownloadCartPage .DownloadListTabContent .subSectionOverview > *:first-child {
|
|
21633
21641
|
border-right: 1px solid #D0D4D9;
|
|
21634
21642
|
}
|