synapse-react-client 2.1.21 → 3.0.0
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/ChangePassword.d.ts +3 -0
- package/dist/containers/ChangePassword.js +88 -0
- package/dist/containers/ChangePassword.js.map +1 -0
- package/dist/containers/FileUpload.d.ts +1 -1
- package/dist/containers/FileUpload.js.map +1 -1
- package/dist/containers/FluidModal.d.ts +2 -0
- package/dist/containers/FluidModal.js +6 -1
- package/dist/containers/FluidModal.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/LoadingScreen.d.ts +7 -1
- package/dist/containers/LoadingScreen.js +15 -4
- package/dist/containers/LoadingScreen.js.map +1 -1
- 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 +206 -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/access_requirement_list/managedACTAccess/RequestDataAccessStep2.d.ts +1 -7
- package/dist/containers/access_requirement_list/managedACTAccess/RequestDataAccessStep2.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/EntityFinderModal.d.ts +2 -0
- package/dist/containers/entity_finder/EntityFinderModal.js +1 -1
- package/dist/containers/entity_finder/EntityFinderModal.js.map +1 -1
- package/dist/containers/entity_finder/details/configurations/EntityChildrenDetails.js +6 -4
- package/dist/containers/entity_finder/details/configurations/EntityChildrenDetails.js.map +1 -1
- package/dist/containers/entity_finder/details/view/DetailsView.d.ts +5 -1
- package/dist/containers/entity_finder/details/view/DetailsView.js +9 -2
- package/dist/containers/entity_finder/details/view/DetailsView.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 +27 -43
- package/dist/containers/table/TopLevelControls.js.map +1 -1
- package/dist/containers/table/datasets/DatasetItemsEditor.js +5 -2
- 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/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 +6 -9
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/style/abstracts/_variables.scss +14 -0
- package/dist/style/components/_bar-loader.scss +11 -2
- package/dist/style/components/_spinner.scss +2 -2
- package/dist/style/components/entity_finder/_tree-node-browse.scss +5 -10
- package/dist/style/components/entity_finder/_tree-node-select.scss +17 -23
- package/dist/style/components/entity_finder/_tree-view.scss +17 -20
- package/dist/style/main.css +42 -27
- package/dist/umd/synapse-react-client.development.css +67 -27
- package/dist/umd/synapse-react-client.development.css.map +3 -3
- package/dist/umd/synapse-react-client.development.js +9865 -3080
- 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 +2 -1
- package/dist/umd.index.js +2 -0
- package/dist/umd.index.js.map +1 -1
- package/dist/utils/APIConstants.d.ts +1 -0
- package/dist/utils/APIConstants.js +3 -2
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/SynapseClient.d.ts +62 -20
- package/dist/utils/SynapseClient.js +308 -211
- 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.js +1 -1
- 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/useGetEntityChildren.js +3 -3
- package/dist/utils/hooks/SynapseAPI/useGetEntityChildren.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/ChangePasswordRequests.d.ts +25 -0
- package/dist/utils/synapseTypes/{DownloadListV2/DownloadListQueryResponse.js → ChangePasswordRequests.js} +1 -1
- package/dist/utils/synapseTypes/ChangePasswordRequests.js.map +1 -0
- package/dist/utils/synapseTypes/FileUploadComplete.d.ts +6 -0
- 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/synapseTypes/VerificationSubmission.d.ts +22 -5
- package/dist/utils/synapseTypes/VerificationSubmission.js +8 -0
- package/dist/utils/synapseTypes/VerificationSubmission.js.map +1 -1
- package/dist/utils/types/Writable.d.ts +8 -0
- package/dist/utils/{synapseTypes/DownloadListV2/DownloadListManifestResponse.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 +47 -37
- 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.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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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare type ChangePasswordInterface = {
|
|
2
|
+
newPassword: string;
|
|
3
|
+
concreteType: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type ChangePasswordWithCurrentPassword = {
|
|
6
|
+
newPassword: string;
|
|
7
|
+
concreteType: string;
|
|
8
|
+
username: string;
|
|
9
|
+
currentPassword: string;
|
|
10
|
+
authenticationReceipt?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type ChangePasswordWithToken = {
|
|
13
|
+
newPassword: string;
|
|
14
|
+
concreteType: string;
|
|
15
|
+
passwordChangeToken: PasswordResetSignedToken;
|
|
16
|
+
};
|
|
17
|
+
export declare type PasswordResetSignedToken = {
|
|
18
|
+
concreteType: string;
|
|
19
|
+
hmac: string;
|
|
20
|
+
version: number;
|
|
21
|
+
expiresOn: string;
|
|
22
|
+
createdOn: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
validity: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangePasswordRequests.js","sourceRoot":"","sources":["../../../src/lib/utils/synapseTypes/ChangePasswordRequests.ts"],"names":[],"mappings":""}
|
|
@@ -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;
|
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
export declare type VerificationSubmission = {
|
|
2
|
-
id
|
|
3
|
-
createdOn
|
|
4
|
-
createdBy
|
|
2
|
+
id?: string;
|
|
3
|
+
createdOn?: string;
|
|
4
|
+
createdBy?: string;
|
|
5
5
|
firstName: string;
|
|
6
6
|
lastName: string;
|
|
7
7
|
emails: string[];
|
|
8
8
|
location: string;
|
|
9
9
|
company: string;
|
|
10
10
|
orcid: string;
|
|
11
|
-
stateHistory
|
|
12
|
-
attachments:
|
|
11
|
+
stateHistory?: VerificationState[];
|
|
12
|
+
attachments: AttachmentMetadata[];
|
|
13
|
+
};
|
|
14
|
+
export declare type VerificationState = {
|
|
15
|
+
createdOn: string;
|
|
16
|
+
createdBy: string;
|
|
17
|
+
state: VerificationStateEnum;
|
|
18
|
+
reason?: string;
|
|
19
|
+
notes?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare enum VerificationStateEnum {
|
|
22
|
+
SUBMITTED = "SUBMITTED",
|
|
23
|
+
APPROVED = "APPROVED",
|
|
24
|
+
REJECTED = "REJECTED",
|
|
25
|
+
SUSPENDED = "SUSPENDED"
|
|
26
|
+
}
|
|
27
|
+
export declare type AttachmentMetadata = {
|
|
28
|
+
fileName: string;
|
|
29
|
+
id: string;
|
|
13
30
|
};
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerificationStateEnum = void 0;
|
|
4
|
+
var VerificationStateEnum;
|
|
5
|
+
(function (VerificationStateEnum) {
|
|
6
|
+
VerificationStateEnum["SUBMITTED"] = "SUBMITTED";
|
|
7
|
+
VerificationStateEnum["APPROVED"] = "APPROVED";
|
|
8
|
+
VerificationStateEnum["REJECTED"] = "REJECTED";
|
|
9
|
+
VerificationStateEnum["SUSPENDED"] = "SUSPENDED";
|
|
10
|
+
})(VerificationStateEnum = exports.VerificationStateEnum || (exports.VerificationStateEnum = {}));
|
|
3
11
|
//# sourceMappingURL=VerificationSubmission.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerificationSubmission.js","sourceRoot":"","sources":["../../../src/lib/utils/synapseTypes/VerificationSubmission.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"VerificationSubmission.js","sourceRoot":"","sources":["../../../src/lib/utils/synapseTypes/VerificationSubmission.ts"],"names":[],"mappings":";;;AAsBA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,gDAAuB,CAAA;AACzB,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
|
|
@@ -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.0",
|
|
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",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"plotly.js-basic-dist": "^1.54.7",
|
|
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",
|
|
@@ -75,18 +75,20 @@
|
|
|
75
75
|
"react-query": "3.33.1",
|
|
76
76
|
"react-reflex": "^4.0.0",
|
|
77
77
|
"react-router-dom": "5.3.0",
|
|
78
|
-
"react-scripts": "^4.0.3",
|
|
79
78
|
"react-select": "^4.3.1",
|
|
80
79
|
"react-sizeme": "^2.6.12",
|
|
81
80
|
"react-switch": "^5.0.1",
|
|
82
|
-
"react-test-renderer": "16.
|
|
81
|
+
"react-test-renderer": "16.14.0",
|
|
83
82
|
"react-tooltip": "^4.2.21",
|
|
84
|
-
"react-transition-group": "
|
|
83
|
+
"react-transition-group": "4.4.2",
|
|
84
|
+
"react-virtualized-auto-sizer": "^1.0.6",
|
|
85
|
+
"react-vtree": "3.0.0-beta.3",
|
|
86
|
+
"react-window": "^1.8.6",
|
|
85
87
|
"regenerator-runtime": "^0.13.2",
|
|
86
88
|
"rss-parser": "^3.7.2",
|
|
87
|
-
"sanitize-html": "^2.
|
|
89
|
+
"sanitize-html": "^2.7.0",
|
|
88
90
|
"sass": "^1.30.0",
|
|
89
|
-
"shortid": "^2.2.
|
|
91
|
+
"shortid": "^2.2.16",
|
|
90
92
|
"spark-md5": "^3.0.0",
|
|
91
93
|
"sql-parser": "^0.5.0",
|
|
92
94
|
"tslib": "^2.3.1",
|
|
@@ -106,6 +108,7 @@
|
|
|
106
108
|
"@babel/preset-typescript": "^7.14.5",
|
|
107
109
|
"@babel/runtime": "^7.14.6",
|
|
108
110
|
"@babel/types": "^7.14.5",
|
|
111
|
+
"@craco/craco": "^6.4.3",
|
|
109
112
|
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
|
|
110
113
|
"@sage-bionetworks/esbuild-plugin-svgr": "^0.0.4",
|
|
111
114
|
"@testing-library/dom": "^8.1.0",
|
|
@@ -116,8 +119,8 @@
|
|
|
116
119
|
"@types/brainhubeu__react-carousel": "1.15.0",
|
|
117
120
|
"@types/enzyme": "^3.10.8",
|
|
118
121
|
"@types/enzyme-adapter-react-16": "^1.0.5",
|
|
119
|
-
"@types/jest": "^
|
|
120
|
-
"@types/jest-when": "^
|
|
122
|
+
"@types/jest": "^27.4.1",
|
|
123
|
+
"@types/jest-when": "^3.5.0",
|
|
121
124
|
"@types/jquery": "^3.5.14",
|
|
122
125
|
"@types/katex": "^0.10.2",
|
|
123
126
|
"@types/lodash-es": "4.17.3",
|
|
@@ -126,22 +129,25 @@
|
|
|
126
129
|
"@types/plotly.js": "^1.54.16",
|
|
127
130
|
"@types/plotly.js-basic-dist": "^1.54.0",
|
|
128
131
|
"@types/pluralize": "^0.0.29",
|
|
129
|
-
"@types/react": "16.
|
|
132
|
+
"@types/react": "^16.14.23",
|
|
130
133
|
"@types/react-addons-css-transition-group": "^15.0.5",
|
|
131
|
-
"@types/react-dom": "^16.9.
|
|
134
|
+
"@types/react-dom": "^16.9.14",
|
|
132
135
|
"@types/react-mailchimp-subscribe": "^2.0.2",
|
|
133
136
|
"@types/react-measure": "^2.0.4",
|
|
134
137
|
"@types/react-plotly.js": "^2.2.4",
|
|
135
138
|
"@types/react-router-dom": "4.3.5",
|
|
136
139
|
"@types/react-select": "^4.0.17",
|
|
137
140
|
"@types/react-transition-group": "^2.0.16",
|
|
141
|
+
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
|
142
|
+
"@types/react-window": "^1.8.5",
|
|
138
143
|
"@types/sanitize-html": "^2.3.2",
|
|
139
144
|
"@types/shortid": "^0.0.29",
|
|
140
145
|
"@types/sinon": "^7.0.2",
|
|
141
146
|
"@types/spark-md5": "^3.0.1",
|
|
142
147
|
"@types/xml2js": "^0.4.4",
|
|
143
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
144
|
-
"@typescript-eslint/parser": "^
|
|
148
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
149
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
150
|
+
"browserify-fs": "^1.0.0",
|
|
145
151
|
"core-js": "^3.1.4",
|
|
146
152
|
"enzyme": "^3.11.0",
|
|
147
153
|
"enzyme-adapter-react-16": "^1.15.2",
|
|
@@ -149,21 +155,28 @@
|
|
|
149
155
|
"esbuild-plugin-globals": "^0.1.1",
|
|
150
156
|
"esbuild-plugin-node-polyfills": "^1.0.2",
|
|
151
157
|
"esbuild-sass-plugin": "^1.8.0",
|
|
152
|
-
"eslint-plugin-jest": "^
|
|
153
|
-
"eslint-plugin-jest-dom": "^
|
|
158
|
+
"eslint-plugin-jest": "^26.1.1",
|
|
159
|
+
"eslint-plugin-jest-dom": "^4.0.1",
|
|
154
160
|
"eslint-plugin-react": "latest",
|
|
155
|
-
"eslint-plugin-react-hooks": "^
|
|
156
|
-
"eslint-plugin-testing-library": "^
|
|
161
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
162
|
+
"eslint-plugin-testing-library": "^5.0.6",
|
|
163
|
+
"https-browserify": "^1.0.0",
|
|
157
164
|
"identity-obj-proxy": "^3.0.0",
|
|
158
165
|
"jest-mock-promise": "^1.1.10",
|
|
159
|
-
"jest-when": "^3.
|
|
160
|
-
"msw": "^0.
|
|
166
|
+
"jest-when": "^3.5.1",
|
|
167
|
+
"msw": "^0.38.2",
|
|
161
168
|
"npm": "^6.9.0",
|
|
162
169
|
"npm-run-all": "^4.1.3",
|
|
170
|
+
"path-browserify": "^1.0.1",
|
|
171
|
+
"postcss-normalize": "^10.0.1",
|
|
163
172
|
"prettier": "^2.1.2",
|
|
173
|
+
"process": "^0.11.10",
|
|
174
|
+
"react-scripts": "^5.0.0",
|
|
164
175
|
"react-select-event": "^5.3.0",
|
|
165
|
-
"react-styleguidist": "^11.
|
|
176
|
+
"react-styleguidist": "^11.2.0",
|
|
166
177
|
"sinon": "^7.2.2",
|
|
178
|
+
"stream-browserify": "^3.0.0",
|
|
179
|
+
"stream-http": "^3.2.0",
|
|
167
180
|
"timers-browserify": "^2.0.12",
|
|
168
181
|
"typescript": "4.4.3",
|
|
169
182
|
"yarn": "^1.22.17"
|
|
@@ -183,13 +196,13 @@
|
|
|
183
196
|
"deploy": "gh-pages -d styleguide && gh-pages -d styleguide -o upstream",
|
|
184
197
|
"deploy:origin": "yarn install && yarn run predeploy && gh-pages -d styleguide && gh-pages -d styleguide -o origin",
|
|
185
198
|
"watch:css": "yarn run build:css && sass src --watch --load-path=node_modules",
|
|
186
|
-
"start-js": "
|
|
199
|
+
"start-js": "craco start",
|
|
187
200
|
"start": "npm-run-all -p watch:css serve:docs",
|
|
188
201
|
"start-deprecated-demo": "npm-run-all -p watch:css start-js",
|
|
189
|
-
"test": "
|
|
202
|
+
"test": "craco test --transformIgnorePatterns \"node_modules/(?!(lodash-es|jest*)/)\" , --env=jsdom --setupFilesAfterEnv ./src/setupTests.js --resetMocks false",
|
|
190
203
|
"test:coverage": "yarn test --coverage",
|
|
191
204
|
"test:noPrompt": "CI=true yarn test",
|
|
192
|
-
"eject": "
|
|
205
|
+
"eject": "craco eject",
|
|
193
206
|
"type-check": "tsc --noEmit",
|
|
194
207
|
"type-check:watch": "yarn run type-check --watch",
|
|
195
208
|
"build": "yarn run build:css && yarn run build:js && yarn run build:copy-assets && yarn build:esbuild",
|
|
@@ -197,21 +210,18 @@
|
|
|
197
210
|
"build:js": "tsc --p tsconfig.build.json",
|
|
198
211
|
"build:copy-assets": "cd src/lib && find . -name '*.scss' -o -name '*.css' -o -name '*.svg' | cpio -pdm ../../dist/",
|
|
199
212
|
"build:esbuild": "node esbuild.config.mjs && cp -r src/umd dist/",
|
|
200
|
-
"serve:docs": "
|
|
201
|
-
"build:docs": "yarn run build:css &&
|
|
213
|
+
"serve:docs": "npx styleguidist server --open",
|
|
214
|
+
"build:docs": "yarn run build:css && npx styleguidist build",
|
|
202
215
|
"link-src": "yarn link && cd ./node_modules/react && yarn link && cd ../react-router && yarn link && cd ../react-router-dom && yarn link && cd ../../",
|
|
203
216
|
"unlink-src": "yarn unlink && cd ./node_modules/react && yarn unlink && cd ../react-router && yarn unlink && cd ../react-router-dom && yarn unlink && cd ../../"
|
|
204
217
|
},
|
|
205
218
|
"resolutions": {
|
|
206
|
-
"fstream": "1.0.12",
|
|
207
219
|
"js-yaml": "3.13.1",
|
|
208
220
|
"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"
|
|
221
|
+
"react": "16.14.0",
|
|
222
|
+
"react-dom": "16.14.0",
|
|
223
|
+
"@types/react": "^16.14.23",
|
|
224
|
+
"@types/webpack": "^5.28.0"
|
|
215
225
|
},
|
|
216
226
|
"browser": {
|
|
217
227
|
"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 };
|