synapse-react-client 2.1.22 → 3.0.1
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/CardContainer.d.ts +0 -8
- package/dist/containers/CardContainer.js +13 -23
- package/dist/containers/CardContainer.js.map +1 -1
- package/dist/containers/CardContainerLogic.d.ts +3 -76
- package/dist/containers/CardContainerLogic.js +29 -150
- package/dist/containers/CardContainerLogic.js.map +1 -1
- package/dist/containers/EntityLink.js +2 -2
- package/dist/containers/EntityLink.js.map +1 -1
- package/dist/containers/FullTextSearch.d.ts +1 -5
- package/dist/containers/FullTextSearch.js +9 -9
- package/dist/containers/FullTextSearch.js.map +1 -1
- package/dist/containers/HasAccess.js +3 -2
- package/dist/containers/HasAccess.js.map +1 -1
- package/dist/containers/MarkdownPopover.js +1 -1
- package/dist/containers/MarkdownPopover.js.map +1 -1
- package/dist/containers/MissingQueryResultsWarning.d.ts +12 -0
- package/dist/containers/MissingQueryResultsWarning.js +64 -0
- package/dist/containers/MissingQueryResultsWarning.js.map +1 -0
- package/dist/containers/QueryCount.js +16 -44
- package/dist/containers/QueryCount.js.map +1 -1
- package/dist/containers/QueryVisualizationWrapper.d.ts +48 -0
- package/dist/containers/QueryVisualizationWrapper.js +81 -0
- package/dist/containers/QueryVisualizationWrapper.js.map +1 -0
- package/dist/containers/QueryWrapper.d.ts +55 -145
- package/dist/containers/QueryWrapper.js +188 -263
- package/dist/containers/QueryWrapper.js.map +1 -1
- package/dist/containers/QueryWrapperErrorBanner.d.ts +5 -0
- package/dist/containers/QueryWrapperErrorBanner.js +16 -0
- package/dist/containers/QueryWrapperErrorBanner.js.map +1 -0
- package/dist/containers/SearchV2.d.ts +6 -2
- package/dist/containers/SearchV2.js +11 -11
- package/dist/containers/SearchV2.js.map +1 -1
- package/dist/containers/SqlEditor.d.ts +1 -5
- package/dist/containers/SqlEditor.js +8 -7
- package/dist/containers/SqlEditor.js.map +1 -1
- package/dist/containers/ToastMessage.d.ts +1 -1
- package/dist/containers/TotalQueryResults.d.ts +3 -6
- package/dist/containers/TotalQueryResults.js +42 -58
- package/dist/containers/TotalQueryResults.js.map +1 -1
- package/dist/containers/download_list/DownloadConfirmation.d.ts +0 -5
- package/dist/containers/download_list/DownloadConfirmation.js +16 -18
- package/dist/containers/download_list/DownloadConfirmation.js.map +1 -1
- package/dist/containers/entity/annotations/AdditionalPropertiesSchemaField.d.ts +1 -1
- package/dist/containers/entity_finder/EntityFinder.d.ts +1 -1
- package/dist/containers/entity_finder/EntityFinder.js +4 -4
- package/dist/containers/entity_finder/EntityFinder.js.map +1 -1
- package/dist/containers/entity_finder/tree/{TreeView.d.ts → EntityTree.d.ts} +4 -4
- package/dist/containers/entity_finder/tree/{TreeView.js → EntityTree.js} +43 -30
- package/dist/containers/entity_finder/tree/EntityTree.js.map +1 -0
- package/dist/containers/entity_finder/tree/VirtualizedTree.d.ts +89 -0
- package/dist/containers/entity_finder/tree/VirtualizedTree.js +379 -0
- package/dist/containers/entity_finder/tree/VirtualizedTree.js.map +1 -0
- package/dist/containers/home_page/featured-data/FacetPlotsCard.d.ts +1 -4
- package/dist/containers/home_page/featured-data/FacetPlotsCard.js +11 -8
- package/dist/containers/home_page/featured-data/FacetPlotsCard.js.map +1 -1
- package/dist/containers/home_page/featured-data/QueryPerFacetPlotsCard.d.ts +1 -1
- package/dist/containers/home_page/featured-data/QueryPerFacetPlotsCard.js +8 -9
- package/dist/containers/home_page/featured-data/QueryPerFacetPlotsCard.js.map +1 -1
- package/dist/containers/home_page/featured-data/SingleQueryFacetPlotsCards.d.ts +1 -1
- package/dist/containers/home_page/featured-data/SingleQueryFacetPlotsCards.js +10 -11
- package/dist/containers/home_page/featured-data/SingleQueryFacetPlotsCards.js.map +1 -1
- package/dist/containers/query_wrapper_plot_nav/FilterAndView.d.ts +2 -4
- package/dist/containers/query_wrapper_plot_nav/FilterAndView.js +12 -5
- package/dist/containers/query_wrapper_plot_nav/FilterAndView.js.map +1 -1
- package/dist/containers/query_wrapper_plot_nav/QueryFilterToggleButton.d.ts +1 -2
- package/dist/containers/query_wrapper_plot_nav/QueryFilterToggleButton.js +9 -10
- package/dist/containers/query_wrapper_plot_nav/QueryFilterToggleButton.js.map +1 -1
- package/dist/containers/query_wrapper_plot_nav/QueryWrapperPlotNav.d.ts +4 -4
- package/dist/containers/query_wrapper_plot_nav/QueryWrapperPlotNav.js +53 -35
- package/dist/containers/query_wrapper_plot_nav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/containers/synapse_form_wrapper/SynapseFormWrapper.js +1 -1
- package/dist/containers/synapse_form_wrapper/SynapseFormWrapper.js.map +1 -1
- package/dist/containers/table/StandaloneQueryWrapper.d.ts +4 -6
- package/dist/containers/table/StandaloneQueryWrapper.js +29 -19
- package/dist/containers/table/StandaloneQueryWrapper.js.map +1 -1
- package/dist/containers/table/SynapseTable.d.ts +12 -13
- package/dist/containers/table/SynapseTable.js +100 -136
- package/dist/containers/table/SynapseTable.js.map +1 -1
- package/dist/containers/table/TopLevelControls.d.ts +1 -4
- package/dist/containers/table/TopLevelControls.js +31 -44
- package/dist/containers/table/TopLevelControls.js.map +1 -1
- package/dist/containers/table/datasets/DatasetItemsEditor.js +3 -4
- package/dist/containers/table/datasets/DatasetItemsEditor.js.map +1 -1
- package/dist/containers/table/table-top/ColumnSelection.d.ts +1 -1
- package/dist/containers/table/table-top/ColumnSelection.js +3 -5
- package/dist/containers/table/table-top/ColumnSelection.js.map +1 -1
- package/dist/containers/table/table-top/DownloadOptions.d.ts +0 -2
- package/dist/containers/table/table-top/DownloadOptions.js +7 -6
- package/dist/containers/table/table-top/DownloadOptions.js.map +1 -1
- package/dist/containers/table/table-top/ProgrammaticTableDownload.js +15 -8
- package/dist/containers/table/table-top/ProgrammaticTableDownload.js.map +1 -1
- package/dist/containers/widgets/facet-nav/FacetNav.d.ts +1 -3
- package/dist/containers/widgets/facet-nav/FacetNav.js +14 -10
- package/dist/containers/widgets/facet-nav/FacetNav.js.map +1 -1
- package/dist/containers/widgets/facet-nav/FacetNavPanel.d.ts +5 -8
- package/dist/containers/widgets/facet-nav/FacetNavPanel.js +15 -12
- package/dist/containers/widgets/facet-nav/FacetNavPanel.js.map +1 -1
- package/dist/containers/widgets/query-filter/EnumFacetFilter.d.ts +3 -3
- package/dist/containers/widgets/query-filter/EnumFacetFilter.js +2 -2
- package/dist/containers/widgets/query-filter/EnumFacetFilter.js.map +1 -1
- package/dist/containers/widgets/query-filter/QueryFilter.d.ts +7 -12
- package/dist/containers/widgets/query-filter/QueryFilter.js +12 -9
- package/dist/containers/widgets/query-filter/QueryFilter.js.map +1 -1
- package/dist/containers/widgets/query-filter/RangeFacetFilter.d.ts +4 -4
- package/dist/containers/widgets/query-filter/RangeFacetFilter.js +4 -4
- package/dist/containers/widgets/query-filter/RangeFacetFilter.js.map +1 -1
- package/dist/index.d.ts +4 -9
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/dist/style/base/_icons.scss +4 -0
- package/dist/style/components/_dataset-editor.scss +6 -0
- package/dist/style/components/_markdown.scss +1 -1
- package/dist/style/components/entity_finder/_details-view.scss +6 -6
- package/dist/style/components/entity_finder/_entity-finder.scss +3 -7
- package/dist/style/components/entity_finder/_tree-node-browse.scss +6 -13
- package/dist/style/components/entity_finder/_tree-node-select.scss +14 -24
- package/dist/style/components/entity_finder/_tree-view.scss +17 -20
- package/dist/style/components/query_filter/_enum-facet-filter.scss +4 -1
- package/dist/style/main.css +908 -42
- package/dist/template_style/_form.scss +150 -105
- package/dist/umd/synapse-react-client.development.css +826 -42
- package/dist/umd/synapse-react-client.development.css.map +2 -2
- package/dist/umd/synapse-react-client.development.js +10814 -4134
- package/dist/umd/synapse-react-client.development.js.map +3 -3
- package/dist/umd/synapse-react-client.production.min.css +1 -1
- package/dist/umd/synapse-react-client.production.min.js +106 -79
- package/dist/umd.index.d.ts +1 -1
- package/dist/utils/APIConstants.d.ts +3 -0
- package/dist/utils/APIConstants.js +12 -2
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/SynapseClient.d.ts +47 -20
- package/dist/utils/SynapseClient.js +275 -209
- package/dist/utils/SynapseClient.js.map +1 -1
- package/dist/utils/SynapseConstants.d.ts +1 -0
- package/dist/utils/SynapseConstants.js +3 -2
- package/dist/utils/SynapseConstants.js.map +1 -1
- package/dist/utils/functions/EntityTypeUtils.d.ts +13 -1
- package/dist/utils/functions/EntityTypeUtils.js +25 -1
- package/dist/utils/functions/EntityTypeUtils.js.map +1 -1
- package/dist/utils/functions/queryUtils.d.ts +2 -2
- package/dist/utils/functions/queryUtils.js +22 -5
- package/dist/utils/functions/queryUtils.js.map +1 -1
- package/dist/utils/functions/sqlFunctions.d.ts +4 -0
- package/dist/utils/functions/sqlFunctions.js +14 -2
- package/dist/utils/functions/sqlFunctions.js.map +1 -1
- package/dist/utils/functions/unCamelCase.d.ts +1 -1
- package/dist/utils/functions/unCamelCase.js.map +1 -1
- package/dist/utils/hooks/SynapseAPI/useGetQueryResultBundle.d.ts +4 -3
- package/dist/utils/hooks/SynapseAPI/useGetQueryResultBundle.js +67 -1
- package/dist/utils/hooks/SynapseAPI/useGetQueryResultBundle.js.map +1 -1
- package/dist/utils/synapseTypes/Entity/Entity.js.map +1 -1
- package/dist/utils/synapseTypes/Table/AsynchronousJobStatus.d.ts +5 -4
- package/dist/utils/synapseTypes/Table/EntityView.d.ts +8 -0
- package/dist/utils/synapseTypes/Table/EntityView.js +9 -0
- package/dist/utils/synapseTypes/Table/EntityView.js.map +1 -1
- package/dist/utils/synapseTypes/Table/FacetColumnRequest.d.ts +1 -1
- package/dist/utils/synapseTypes/Table/FacetColumnResult.d.ts +10 -10
- package/dist/utils/synapseTypes/Table/QueryResultBundle.d.ts +1 -0
- package/dist/utils/types/Writable.d.ts +8 -0
- package/dist/utils/{synapseTypes/DownloadListV2/DownloadListQueryResponse.js → types/Writable.js} +1 -1
- package/dist/utils/types/Writable.js.map +1 -0
- package/dist/utils/typography/Typography.styles.d.ts +1 -1
- package/package.json +51 -39
- package/dist/containers/Facets.d.ts +0 -43
- package/dist/containers/Facets.js +0 -199
- package/dist/containers/Facets.js.map +0 -1
- package/dist/containers/StackedBarChart.d.ts +0 -63
- package/dist/containers/StackedBarChart.js +0 -229
- package/dist/containers/StackedBarChart.js.map +0 -1
- package/dist/containers/entity_finder/tree/TreeNode.d.ts +0 -25
- package/dist/containers/entity_finder/tree/TreeNode.js +0 -89
- package/dist/containers/entity_finder/tree/TreeNode.js.map +0 -1
- package/dist/containers/entity_finder/tree/TreeView.js.map +0 -1
- package/dist/utils/functions/facetUtils.d.ts +0 -44
- package/dist/utils/functions/facetUtils.js +0 -84
- package/dist/utils/functions/facetUtils.js.map +0 -1
- package/dist/utils/synapseTypes/DownloadListV2/DownloadListManifestResponse.d.ts +0 -4
- package/dist/utils/synapseTypes/DownloadListV2/DownloadListManifestResponse.js +0 -3
- package/dist/utils/synapseTypes/DownloadListV2/DownloadListManifestResponse.js.map +0 -1
- package/dist/utils/synapseTypes/DownloadListV2/DownloadListQueryResponse.d.ts +0 -5
- package/dist/utils/synapseTypes/DownloadListV2/DownloadListQueryResponse.js.map +0 -1
|
@@ -1,11 +1,77 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useInfiniteQueryResultBundle = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
3
5
|
var react_query_1 = require("react-query");
|
|
4
6
|
var __1 = require("../..");
|
|
7
|
+
var SynapseConstants_1 = require("../../SynapseConstants");
|
|
5
8
|
var SynapseContext_1 = require("../../SynapseContext");
|
|
6
9
|
function useGetQueryResultBundle(queryBundleRequest, options) {
|
|
7
10
|
var accessToken = (0, SynapseContext_1.useSynapseContext)().accessToken;
|
|
8
|
-
return (0, react_query_1.useQuery)(['queryResultBundle',
|
|
11
|
+
return (0, react_query_1.useQuery)(['queryResultBundle', queryBundleRequest], function () { return __1.SynapseClient.getQueryTableResults(queryBundleRequest, accessToken); }, options);
|
|
9
12
|
}
|
|
10
13
|
exports.default = useGetQueryResultBundle;
|
|
14
|
+
function useInfiniteQueryResultBundle(queryBundleRequest, options) {
|
|
15
|
+
var accessToken = (0, SynapseContext_1.useSynapseContext)().accessToken;
|
|
16
|
+
return (0, react_query_1.useInfiniteQuery)(['queryResultBundle', queryBundleRequest, 'infinite'], function (context) {
|
|
17
|
+
var offset = context.pageParam ? parseInt(context.pageParam) : 0;
|
|
18
|
+
return __1.SynapseClient.getQueryTableAsyncJobResults((0, tslib_1.__assign)((0, tslib_1.__assign)({}, queryBundleRequest), { query: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, queryBundleRequest.query), { offset: offset }),
|
|
19
|
+
/**
|
|
20
|
+
* If we're on the first page, send the original partMask.
|
|
21
|
+
* Otherwise, just ask for the queryResults (if they're in the original partMask), as it's the only part that changes between pages.
|
|
22
|
+
*
|
|
23
|
+
* We'll merge the "aggregation" parts and the pages of queryResults in the `select` function.
|
|
24
|
+
*/
|
|
25
|
+
partMask: offset !== 0
|
|
26
|
+
? queryBundleRequest.partMask & SynapseConstants_1.BUNDLE_MASK_QUERY_RESULTS
|
|
27
|
+
: queryBundleRequest.partMask }), accessToken);
|
|
28
|
+
}, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, options), { select: function (data) {
|
|
29
|
+
/**
|
|
30
|
+
* Since we we only fetch queryResults on 2nd and subsequent pages, we add to all pages the aggregate parts
|
|
31
|
+
* that we only fetched on the first page.
|
|
32
|
+
*/
|
|
33
|
+
var firstPage = data === null || data === void 0 ? void 0 : data.pages[0];
|
|
34
|
+
if (firstPage.responseBody) {
|
|
35
|
+
for (var i = 0; i < data.pages.length; i++) {
|
|
36
|
+
var page = data.pages[i];
|
|
37
|
+
if (page.responseBody != null) {
|
|
38
|
+
data.pages[i].responseBody = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, firstPage.responseBody), {
|
|
39
|
+
// queryResult changes on each page.
|
|
40
|
+
queryResult: page.responseBody.queryResult });
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return data;
|
|
45
|
+
}, getPreviousPageParam: function (firstPage) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (firstPage.jobState !== 'COMPLETE') {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
var request = firstPage.requestBody;
|
|
51
|
+
if (request.query.offset == null || request.query.offset === 0) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
var pageSize = (_a = request.query.limit) !== null && _a !== void 0 ? _a : SynapseConstants_1.DEFAULT_PAGE_SIZE;
|
|
55
|
+
return Math.max(request.query.offset - pageSize, 0);
|
|
56
|
+
}, getNextPageParam: function (page, allPages) {
|
|
57
|
+
var _a, _b, _c, _d;
|
|
58
|
+
if (page.jobState !== 'COMPLETE') {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
var request = page.requestBody;
|
|
62
|
+
var pageSize = (_a = request.query.limit) !== null && _a !== void 0 ? _a : SynapseConstants_1.DEFAULT_PAGE_SIZE;
|
|
63
|
+
var totalQueryResultCount = (_b = allPages[0].responseBody) === null || _b === void 0 ? void 0 : _b.queryCount;
|
|
64
|
+
if (totalQueryResultCount != null) {
|
|
65
|
+
// We know the total number of results. See if our offset + pageSize is >= the total
|
|
66
|
+
if (((_c = request.query.offset) !== null && _c !== void 0 ? _c : 0) + pageSize >= totalQueryResultCount) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return page.responseBody.queryResult.queryResults.rows.length ===
|
|
71
|
+
pageSize
|
|
72
|
+
? ((_d = request.query.offset) !== null && _d !== void 0 ? _d : 0) + pageSize
|
|
73
|
+
: undefined;
|
|
74
|
+
} }));
|
|
75
|
+
}
|
|
76
|
+
exports.useInfiniteQueryResultBundle = useInfiniteQueryResultBundle;
|
|
11
77
|
//# sourceMappingURL=useGetQueryResultBundle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetQueryResultBundle.js","sourceRoot":"","sources":["../../../../src/lib/utils/hooks/SynapseAPI/useGetQueryResultBundle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useGetQueryResultBundle.js","sourceRoot":"","sources":["../../../../src/lib/utils/hooks/SynapseAPI/useGetQueryResultBundle.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Entity.js","sourceRoot":"","sources":["../../../../src/lib/utils/synapseTypes/Entity/Entity.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Entity.js","sourceRoot":"","sources":["../../../../src/lib/utils/synapseTypes/Entity/Entity.ts"],"names":[],"mappings":";;;AAoGA;;;;;;GAMG;AACU,QAAA,cAAc,GAAG;IAC5B,MAAM;IACN,aAAa;IACb,IAAI;IACJ,MAAM;IACN,WAAW;IACX,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,UAAU;IACV,cAAc;IACd,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,kBAAkB;IAClB,WAAW;IACX,UAAU;IACV,SAAS;IACT,kBAAkB;IAClB,gBAAgB;IAChB,WAAW;IACX,cAAc;IACd,MAAM;IACN,OAAO;IACP,OAAO;IACP,aAAa;CACd,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export declare type
|
|
2
|
-
|
|
1
|
+
export declare type AsynchJobState = 'PROCESSING' | 'FAILED' | 'COMPLETE';
|
|
2
|
+
export declare type AsynchronousJobStatus<TRequest, TResponse> = {
|
|
3
|
+
jobState: AsynchJobState;
|
|
3
4
|
jobCanceling: boolean;
|
|
4
|
-
requestBody:
|
|
5
|
-
responseBody
|
|
5
|
+
requestBody: TRequest;
|
|
6
|
+
responseBody?: TResponse;
|
|
6
7
|
etag: string;
|
|
7
8
|
jobId: string;
|
|
8
9
|
startedByUserId: number;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { View } from './View';
|
|
2
|
+
export declare const ENTITY_VIEW_TYPE_MASK_FILE = 1;
|
|
3
|
+
export declare const ENTITY_VIEW_TYPE_MASK_PROJECT = 2;
|
|
4
|
+
export declare const ENTITY_VIEW_TYPE_MASK_TABLE = 4;
|
|
5
|
+
export declare const ENTITY_VIEW_TYPE_MASK_FOLDER = 8;
|
|
6
|
+
export declare const ENTITY_VIEW_TYPE_MASK_VIEW = 16;
|
|
7
|
+
export declare const ENTITY_VIEW_TYPE_MASK_DOCKER = 32;
|
|
8
|
+
export declare const ENTITY_VIEW_TYPE_MASK_SUBMISSIONVIEW = 64;
|
|
9
|
+
export declare const ENTITY_VIEW_TYPE_MASK_DATASET = 128;
|
|
2
10
|
export declare type ENTITY_VIEW_CONCRETE_TYPE = 'org.sagebionetworks.repo.model.table.EntityView';
|
|
3
11
|
export interface EntityView extends View {
|
|
4
12
|
concreteType: ENTITY_VIEW_CONCRETE_TYPE;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ENTITY_VIEW_TYPE_MASK_DATASET = exports.ENTITY_VIEW_TYPE_MASK_SUBMISSIONVIEW = exports.ENTITY_VIEW_TYPE_MASK_DOCKER = exports.ENTITY_VIEW_TYPE_MASK_VIEW = exports.ENTITY_VIEW_TYPE_MASK_FOLDER = exports.ENTITY_VIEW_TYPE_MASK_TABLE = exports.ENTITY_VIEW_TYPE_MASK_PROJECT = exports.ENTITY_VIEW_TYPE_MASK_FILE = void 0;
|
|
4
|
+
exports.ENTITY_VIEW_TYPE_MASK_FILE = 0x01;
|
|
5
|
+
exports.ENTITY_VIEW_TYPE_MASK_PROJECT = 0x02;
|
|
6
|
+
exports.ENTITY_VIEW_TYPE_MASK_TABLE = 0x04;
|
|
7
|
+
exports.ENTITY_VIEW_TYPE_MASK_FOLDER = 0x08;
|
|
8
|
+
exports.ENTITY_VIEW_TYPE_MASK_VIEW = 0x10;
|
|
9
|
+
exports.ENTITY_VIEW_TYPE_MASK_DOCKER = 0x20;
|
|
10
|
+
exports.ENTITY_VIEW_TYPE_MASK_SUBMISSIONVIEW = 0x40;
|
|
11
|
+
exports.ENTITY_VIEW_TYPE_MASK_DATASET = 0x80;
|
|
3
12
|
//# sourceMappingURL=EntityView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityView.js","sourceRoot":"","sources":["../../../../src/lib/utils/synapseTypes/Table/EntityView.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"EntityView.js","sourceRoot":"","sources":["../../../../src/lib/utils/synapseTypes/Table/EntityView.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAAG,IAAI,CAAA;AACjC,QAAA,6BAA6B,GAAG,IAAI,CAAA;AACpC,QAAA,2BAA2B,GAAG,IAAI,CAAA;AAClC,QAAA,4BAA4B,GAAG,IAAI,CAAA;AACnC,QAAA,0BAA0B,GAAG,IAAI,CAAA;AACjC,QAAA,4BAA4B,GAAG,IAAI,CAAA;AACnC,QAAA,oCAAoC,GAAG,IAAI,CAAA;AAC3C,QAAA,6BAA6B,GAAG,IAAI,CAAA"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare type FacetColumnResultValues = {
|
|
2
|
+
concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnResultValues';
|
|
3
|
+
columnName: string;
|
|
4
|
+
facetType: 'enumeration';
|
|
2
5
|
facetValues: FacetColumnResultValueCount[];
|
|
3
|
-
}
|
|
6
|
+
};
|
|
4
7
|
export declare type FacetColumnResultValueCount = {
|
|
5
8
|
value: string;
|
|
6
9
|
count: number;
|
|
7
10
|
isSelected: boolean;
|
|
8
11
|
};
|
|
9
|
-
export
|
|
10
|
-
concreteType:
|
|
12
|
+
export declare type FacetColumnResultRange = {
|
|
13
|
+
concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnResultRange';
|
|
14
|
+
facetType: 'range';
|
|
11
15
|
columnName: string;
|
|
12
16
|
columnMin: string;
|
|
13
17
|
columnMax: string;
|
|
14
18
|
selectedMin?: string;
|
|
15
19
|
selectedMax?: string;
|
|
16
|
-
}
|
|
17
|
-
export
|
|
18
|
-
concreteType: string;
|
|
19
|
-
columnName: string;
|
|
20
|
-
facetType: 'enumeration' | 'range';
|
|
21
|
-
}
|
|
20
|
+
};
|
|
21
|
+
export declare type FacetColumnResult = FacetColumnResultValues | FacetColumnResultRange;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Writable.js","sourceRoot":"","sources":["../../../src/lib/utils/types/Writable.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useTypographyStyle: (props?: any) => import("@material-ui/styles").ClassNameMap<"label" | "
|
|
1
|
+
declare const useTypographyStyle: (props?: any) => import("@material-ui/styles").ClassNameMap<"label" | "headline1" | "headline2" | "headline3" | "body1" | "body2" | "breadcrumb1" | "breadcrumb2" | "smallText1" | "smallText2" | "smallLink" | "buttonLink" | "hintText" | "sectionTitle" | "subsectionHeader">;
|
|
2
2
|
export default useTypographyStyle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synapse-react-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"url": "https://github.com/Sage-Bionetworks/Synapse-React-Client"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@apidevtools/json-schema-ref-parser": "^9.0.9",
|
|
18
19
|
"@brainhubeu/react-carousel": "1.19.26",
|
|
19
20
|
"@fortawesome/fontawesome-free": "^5.13.0",
|
|
20
21
|
"@fortawesome/fontawesome-svg-core": "^1.2.4",
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
"@material-ui/icons": "^4.11.2",
|
|
26
27
|
"@material-ui/lab": "^4.0.0-alpha.57",
|
|
27
28
|
"@popperjs/core": "^2.10.2",
|
|
28
|
-
"@rjsf/core": "^
|
|
29
|
+
"@rjsf/core": "^4.0.1",
|
|
29
30
|
"@sage-bionetworks/react-base-table": "^1.12.3",
|
|
30
31
|
"@sage-bionetworks/rjsf-core": "^3.1.4",
|
|
31
32
|
"@types/ua-parser-js": "^0.7.36",
|
|
@@ -37,10 +38,9 @@
|
|
|
37
38
|
"gh-pages": "^2.0.0",
|
|
38
39
|
"immutable": "4.0.0-rc.15",
|
|
39
40
|
"json-rules-engine": "^4.0.0",
|
|
40
|
-
"json-schema-ref-parser": "^7.1.1",
|
|
41
41
|
"katex": "0.11.1",
|
|
42
42
|
"lodash-es": ">=4.17.14",
|
|
43
|
-
"markdown-it": "^
|
|
43
|
+
"markdown-it": "^12.3.2",
|
|
44
44
|
"markdown-it-br": "^1.0.0",
|
|
45
45
|
"markdown-it-center-text": "^1.0.4",
|
|
46
46
|
"markdown-it-container": "^2.0.0",
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"markdown-it-synapse-table": "^1.0.6",
|
|
56
56
|
"moment": "^2.24.0",
|
|
57
57
|
"moment-timezone": "^0.5.32",
|
|
58
|
-
"plotly.js-basic-dist": "^
|
|
58
|
+
"plotly.js-basic-dist": "^2.11.1",
|
|
59
59
|
"pluralize": "^8.0.0",
|
|
60
60
|
"raf": "^3.4.1",
|
|
61
|
-
"react": "16.
|
|
62
|
-
"react-app-polyfill": "^
|
|
61
|
+
"react": "16.14.0",
|
|
62
|
+
"react-app-polyfill": "^3.0.0",
|
|
63
63
|
"react-bootstrap": "^1.5.2",
|
|
64
64
|
"react-compound-slider": "^2.5.0",
|
|
65
65
|
"react-datetime": "^3.0.4",
|
|
66
|
-
"react-dom": "16.
|
|
66
|
+
"react-dom": "16.14.0",
|
|
67
67
|
"react-error-boundary": "^3.1.1",
|
|
68
68
|
"react-hot-toast": "^2.1.0",
|
|
69
69
|
"react-intersection-observer": "^8.31.0",
|
|
@@ -74,19 +74,22 @@
|
|
|
74
74
|
"react-popper": "^2.2.5",
|
|
75
75
|
"react-query": "3.33.1",
|
|
76
76
|
"react-reflex": "^4.0.0",
|
|
77
|
+
"react-router": "5.2.1",
|
|
77
78
|
"react-router-dom": "5.3.0",
|
|
78
|
-
"react-scripts": "^4.0.3",
|
|
79
79
|
"react-select": "^4.3.1",
|
|
80
80
|
"react-sizeme": "^2.6.12",
|
|
81
81
|
"react-switch": "^5.0.1",
|
|
82
|
-
"react-test-renderer": "16.
|
|
82
|
+
"react-test-renderer": "16.14.0",
|
|
83
83
|
"react-tooltip": "^4.2.21",
|
|
84
|
-
"react-transition-group": "
|
|
84
|
+
"react-transition-group": "4.4.2",
|
|
85
|
+
"react-virtualized-auto-sizer": "^1.0.6",
|
|
86
|
+
"react-vtree": "3.0.0-beta.3",
|
|
87
|
+
"react-window": "^1.8.6",
|
|
85
88
|
"regenerator-runtime": "^0.13.2",
|
|
86
89
|
"rss-parser": "^3.7.2",
|
|
87
|
-
"sanitize-html": "^2.
|
|
90
|
+
"sanitize-html": "^2.7.0",
|
|
88
91
|
"sass": "^1.30.0",
|
|
89
|
-
"shortid": "^2.2.
|
|
92
|
+
"shortid": "^2.2.16",
|
|
90
93
|
"spark-md5": "^3.0.0",
|
|
91
94
|
"sql-parser": "^0.5.0",
|
|
92
95
|
"tslib": "^2.3.1",
|
|
@@ -106,6 +109,7 @@
|
|
|
106
109
|
"@babel/preset-typescript": "^7.14.5",
|
|
107
110
|
"@babel/runtime": "^7.14.6",
|
|
108
111
|
"@babel/types": "^7.14.5",
|
|
112
|
+
"@craco/craco": "^6.4.3",
|
|
109
113
|
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
|
|
110
114
|
"@sage-bionetworks/esbuild-plugin-svgr": "^0.0.4",
|
|
111
115
|
"@testing-library/dom": "^8.1.0",
|
|
@@ -116,32 +120,36 @@
|
|
|
116
120
|
"@types/brainhubeu__react-carousel": "1.15.0",
|
|
117
121
|
"@types/enzyme": "^3.10.8",
|
|
118
122
|
"@types/enzyme-adapter-react-16": "^1.0.5",
|
|
119
|
-
"@types/jest": "^
|
|
120
|
-
"@types/jest-when": "^
|
|
123
|
+
"@types/jest": "^27.4.1",
|
|
124
|
+
"@types/jest-when": "^3.5.0",
|
|
121
125
|
"@types/jquery": "^3.5.14",
|
|
122
126
|
"@types/katex": "^0.10.2",
|
|
123
127
|
"@types/lodash-es": "4.17.3",
|
|
124
128
|
"@types/markdown-it": "^12.0.1",
|
|
125
129
|
"@types/node": "^14.14.31",
|
|
126
|
-
"@types/plotly.js": "^1.54.
|
|
130
|
+
"@types/plotly.js": "^1.54.20",
|
|
127
131
|
"@types/plotly.js-basic-dist": "^1.54.0",
|
|
128
132
|
"@types/pluralize": "^0.0.29",
|
|
129
|
-
"@types/react": "16.
|
|
133
|
+
"@types/react": "^16.14.23",
|
|
130
134
|
"@types/react-addons-css-transition-group": "^15.0.5",
|
|
131
|
-
"@types/react-dom": "^16.9.
|
|
135
|
+
"@types/react-dom": "^16.9.14",
|
|
132
136
|
"@types/react-mailchimp-subscribe": "^2.0.2",
|
|
133
137
|
"@types/react-measure": "^2.0.4",
|
|
134
138
|
"@types/react-plotly.js": "^2.2.4",
|
|
135
139
|
"@types/react-router-dom": "4.3.5",
|
|
136
140
|
"@types/react-select": "^4.0.17",
|
|
137
141
|
"@types/react-transition-group": "^2.0.16",
|
|
142
|
+
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
|
143
|
+
"@types/react-window": "^1.8.5",
|
|
138
144
|
"@types/sanitize-html": "^2.3.2",
|
|
139
145
|
"@types/shortid": "^0.0.29",
|
|
140
146
|
"@types/sinon": "^7.0.2",
|
|
141
147
|
"@types/spark-md5": "^3.0.1",
|
|
142
148
|
"@types/xml2js": "^0.4.4",
|
|
143
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
144
|
-
"@typescript-eslint/parser": "^
|
|
149
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
150
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
151
|
+
"browserify-fs": "^1.0.0",
|
|
152
|
+
"buffer": "^6.0.3",
|
|
145
153
|
"core-js": "^3.1.4",
|
|
146
154
|
"enzyme": "^3.11.0",
|
|
147
155
|
"enzyme-adapter-react-16": "^1.15.2",
|
|
@@ -149,21 +157,28 @@
|
|
|
149
157
|
"esbuild-plugin-globals": "^0.1.1",
|
|
150
158
|
"esbuild-plugin-node-polyfills": "^1.0.2",
|
|
151
159
|
"esbuild-sass-plugin": "^1.8.0",
|
|
152
|
-
"eslint-plugin-jest": "^
|
|
153
|
-
"eslint-plugin-jest-dom": "^
|
|
160
|
+
"eslint-plugin-jest": "^26.1.1",
|
|
161
|
+
"eslint-plugin-jest-dom": "^4.0.1",
|
|
154
162
|
"eslint-plugin-react": "latest",
|
|
155
|
-
"eslint-plugin-react-hooks": "^
|
|
156
|
-
"eslint-plugin-testing-library": "^
|
|
163
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
164
|
+
"eslint-plugin-testing-library": "^5.0.6",
|
|
165
|
+
"https-browserify": "^1.0.0",
|
|
157
166
|
"identity-obj-proxy": "^3.0.0",
|
|
158
167
|
"jest-mock-promise": "^1.1.10",
|
|
159
|
-
"jest-when": "^3.
|
|
160
|
-
"msw": "^0.
|
|
168
|
+
"jest-when": "^3.5.1",
|
|
169
|
+
"msw": "^0.38.2",
|
|
161
170
|
"npm": "^6.9.0",
|
|
162
171
|
"npm-run-all": "^4.1.3",
|
|
172
|
+
"path-browserify": "^1.0.1",
|
|
173
|
+
"postcss-normalize": "^10.0.1",
|
|
163
174
|
"prettier": "^2.1.2",
|
|
175
|
+
"process": "^0.11.10",
|
|
176
|
+
"react-scripts": "^5.0.0",
|
|
164
177
|
"react-select-event": "^5.3.0",
|
|
165
|
-
"react-styleguidist": "^11.
|
|
178
|
+
"react-styleguidist": "^11.2.0",
|
|
166
179
|
"sinon": "^7.2.2",
|
|
180
|
+
"stream-browserify": "^3.0.0",
|
|
181
|
+
"stream-http": "^3.2.0",
|
|
167
182
|
"timers-browserify": "^2.0.12",
|
|
168
183
|
"typescript": "4.4.3",
|
|
169
184
|
"yarn": "^1.22.17"
|
|
@@ -183,13 +198,13 @@
|
|
|
183
198
|
"deploy": "gh-pages -d styleguide && gh-pages -d styleguide -o upstream",
|
|
184
199
|
"deploy:origin": "yarn install && yarn run predeploy && gh-pages -d styleguide && gh-pages -d styleguide -o origin",
|
|
185
200
|
"watch:css": "yarn run build:css && sass src --watch --load-path=node_modules",
|
|
186
|
-
"start-js": "
|
|
201
|
+
"start-js": "craco start",
|
|
187
202
|
"start": "npm-run-all -p watch:css serve:docs",
|
|
188
203
|
"start-deprecated-demo": "npm-run-all -p watch:css start-js",
|
|
189
|
-
"test": "
|
|
204
|
+
"test": "craco test --transformIgnorePatterns \"node_modules/(?!(lodash-es|jest*)/)\" , --env=jsdom --setupFilesAfterEnv ./src/setupTests.js --resetMocks false",
|
|
190
205
|
"test:coverage": "yarn test --coverage",
|
|
191
206
|
"test:noPrompt": "CI=true yarn test",
|
|
192
|
-
"eject": "
|
|
207
|
+
"eject": "craco eject",
|
|
193
208
|
"type-check": "tsc --noEmit",
|
|
194
209
|
"type-check:watch": "yarn run type-check --watch",
|
|
195
210
|
"build": "yarn run build:css && yarn run build:js && yarn run build:copy-assets && yarn build:esbuild",
|
|
@@ -197,21 +212,18 @@
|
|
|
197
212
|
"build:js": "tsc --p tsconfig.build.json",
|
|
198
213
|
"build:copy-assets": "cd src/lib && find . -name '*.scss' -o -name '*.css' -o -name '*.svg' | cpio -pdm ../../dist/",
|
|
199
214
|
"build:esbuild": "node esbuild.config.mjs && cp -r src/umd dist/",
|
|
200
|
-
"serve:docs": "
|
|
201
|
-
"build:docs": "yarn run build:css &&
|
|
215
|
+
"serve:docs": "npx styleguidist server --open",
|
|
216
|
+
"build:docs": "yarn run build:css && npx styleguidist build",
|
|
202
217
|
"link-src": "yarn link && cd ./node_modules/react && yarn link && cd ../react-router && yarn link && cd ../react-router-dom && yarn link && cd ../../",
|
|
203
218
|
"unlink-src": "yarn unlink && cd ./node_modules/react && yarn unlink && cd ../react-router && yarn unlink && cd ../react-router-dom && yarn unlink && cd ../../"
|
|
204
219
|
},
|
|
205
220
|
"resolutions": {
|
|
206
|
-
"fstream": "1.0.12",
|
|
207
221
|
"js-yaml": "3.13.1",
|
|
208
222
|
"minimatch": "3.0.4",
|
|
209
|
-
"
|
|
210
|
-
"react": "16.
|
|
211
|
-
"react
|
|
212
|
-
"@types/
|
|
213
|
-
"**/@typescript-eslint/eslint-plugin": "^4.28.3",
|
|
214
|
-
"**/@typescript-eslint/parser": "^4.28.3"
|
|
223
|
+
"react": "16.14.0",
|
|
224
|
+
"react-dom": "16.14.0",
|
|
225
|
+
"@types/react": "^16.14.23",
|
|
226
|
+
"@types/webpack": "^5.28.0"
|
|
215
227
|
},
|
|
216
228
|
"browser": {
|
|
217
229
|
"timers": "timers-browserify"
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FacetColumnResultValues } from '../utils/synapseTypes/';
|
|
3
|
-
import { FacetSelection, QueryWrapperChildProps } from './QueryWrapper';
|
|
4
|
-
export declare const SELECT_SINGLE_FACET = "SELECT_SINGLE_FACET";
|
|
5
|
-
declare type CheckboxGroupProps = {
|
|
6
|
-
isAllFilterSelected: boolean;
|
|
7
|
-
rgbIndex: number;
|
|
8
|
-
facetColumnResult: FacetColumnResultValues;
|
|
9
|
-
applyChanges: (ref: React.RefObject<HTMLSpanElement>, facetValue: string, selector: string, index: number) => (_event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
10
|
-
showAllFacets: boolean;
|
|
11
|
-
lastFacetSelection: FacetSelection;
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const FACET_SELECTED_CLASS = "FACET_SELECTED_CLASS";
|
|
15
|
-
export declare const FACET_NOT_SELECTED_CLASS = "FACET_NOT_SELECTED_CLASS";
|
|
16
|
-
/**
|
|
17
|
-
* Checkbox group represents one column's set of checkbox filters
|
|
18
|
-
*
|
|
19
|
-
* @class CheckboxGroup
|
|
20
|
-
* @extends {React.Component}
|
|
21
|
-
*/
|
|
22
|
-
declare const CheckboxGroup: React.FunctionComponent<CheckboxGroupProps>;
|
|
23
|
-
declare type FacetsState = {
|
|
24
|
-
showAllFacets: boolean;
|
|
25
|
-
};
|
|
26
|
-
declare class Facets extends React.Component<QueryWrapperChildProps, FacetsState> {
|
|
27
|
-
constructor(props: QueryWrapperChildProps);
|
|
28
|
-
/**
|
|
29
|
-
* Display the view of the facets
|
|
30
|
-
*
|
|
31
|
-
* @returns
|
|
32
|
-
* @memberof Facets
|
|
33
|
-
*/
|
|
34
|
-
showFacetFilter(): JSX.Element;
|
|
35
|
-
/**
|
|
36
|
-
* Handle checkbox click event
|
|
37
|
-
*/
|
|
38
|
-
applyChanges: (ref: React.RefObject<HTMLSpanElement>, facetValue: string, selector: string, index: number) => (event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
39
|
-
showAllFacets(event: React.MouseEvent<HTMLAnchorElement, MouseEvent>): void;
|
|
40
|
-
showButtons(curFacetsLength: number, ref: React.RefObject<HTMLDivElement>): JSX.Element;
|
|
41
|
-
render(): JSX.Element;
|
|
42
|
-
}
|
|
43
|
-
export { Facets, CheckboxGroup };
|