@gen3/frontend 0.10.95 → 0.10.97
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/cjs/index.js +1698 -587
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Content/LandingPageContent.d.ts +2 -1
- package/dist/dts/components/Content/LandingPageContent.d.ts.map +1 -1
- package/dist/dts/components/Content/LandingPageContent.js.map +1 -1
- package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginPanel.js +1 -0
- package/dist/dts/components/Login/LoginPanel.js.map +1 -1
- package/dist/dts/components/Login/types.d.ts +2 -1
- package/dist/dts/components/Login/types.d.ts.map +1 -1
- package/dist/dts/components/Login/types.js.map +1 -1
- package/dist/dts/components/MessageCards/index.d.ts +2 -1
- package/dist/dts/components/MessageCards/index.d.ts.map +1 -1
- package/dist/dts/components/MessageCards/index.js +2 -1
- package/dist/dts/components/MessageCards/index.js.map +1 -1
- package/dist/dts/components/Profile/types.d.ts +2 -1
- package/dist/dts/components/Profile/types.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.js +2 -0
- package/dist/dts/components/charts/Charts.js.map +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.js +3 -2
- package/dist/dts/components/charts/echarts/HorizontalBarChart.js.map +1 -1
- package/dist/dts/components/charts/types.d.ts +2 -0
- package/dist/dts/components/charts/types.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
- package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetSelector.js +6 -6
- package/dist/dts/components/facets/FacetSelector.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +6 -6
- package/dist/dts/features/Analysis/types.d.ts +2 -1
- package/dist/dts/features/Analysis/types.d.ts.map +1 -1
- package/dist/dts/features/Analysis/types.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +1 -2
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -1
- package/dist/dts/features/CohortBuilder/types.d.ts +2 -2
- package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js +18 -2
- package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js +10 -4
- package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +2 -2
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +8 -3
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +5 -2
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +120 -44
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts +44 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +7 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +3 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +71 -24
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +0 -2
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts +6 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js +55 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -22
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js +40 -34
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -90
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.js +161 -92
- package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +5 -3
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +8 -8
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts +14 -28
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js +4 -4
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js +4 -10
- package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js +2 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js +76 -13
- package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts +3 -3
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts +9 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js +133 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +25 -99
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts +3 -2
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js +2 -2
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +2 -4
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +6 -4
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +7 -9
- package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/queryApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/queryApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.d.ts +47 -19
- package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.js +16 -6
- package/dist/dts/features/CohortDiscovery/types.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/utils.d.ts +2 -0
- package/dist/dts/features/CohortDiscovery/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/utils.js +9 -0
- package/dist/dts/features/CohortDiscovery/utils.js.map +1 -1
- package/dist/dts/features/Crosswalk/types.d.ts +2 -1
- package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/types.d.ts +5 -1
- package/dist/dts/features/Dictionary/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.d.ts +2 -1
- package/dist/dts/features/Discovery/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar/AccountButton.js +1 -1
- package/dist/dts/features/Navigation/TopBar/AccountButton.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar/LoginButton.js +1 -1
- package/dist/dts/features/Navigation/TopBar/LoginButton.js.map +1 -1
- package/dist/dts/features/Workspace/types.d.ts +2 -1
- package/dist/dts/features/Workspace/types.d.ts.map +1 -1
- package/dist/dts/features/Workspace/types.js.map +1 -1
- package/dist/dts/lib/content/types.d.ts +2 -0
- package/dist/dts/lib/content/types.d.ts.map +1 -1
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +6 -2
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.d.ts.map +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.js +1 -5
- package/dist/dts/pages/Crosswalk/Crosswalk.js.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.d.ts.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.js +12 -5
- package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
- package/dist/dts/pages/Discovery/Discovery.d.ts.map +1 -1
- package/dist/dts/pages/Discovery/Discovery.js +14 -5
- package/dist/dts/pages/Discovery/Discovery.js.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.d.ts +1 -1
- package/dist/dts/pages/Explorer/Explorer.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.js +13 -6
- package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
- package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/data.js +4 -4
- package/dist/dts/pages/Explorer/data.js.map +1 -1
- package/dist/dts/pages/Landing/Landing.d.ts.map +1 -1
- package/dist/dts/pages/Landing/Landing.js +12 -5
- package/dist/dts/pages/Landing/Landing.js.map +1 -1
- package/dist/dts/pages/Login/Login.d.ts.map +1 -1
- package/dist/dts/pages/Login/Login.js +1 -5
- package/dist/dts/pages/Login/Login.js.map +1 -1
- package/dist/dts/pages/Profile/Profile.d.ts.map +1 -1
- package/dist/dts/pages/Profile/Profile.js +12 -5
- package/dist/dts/pages/Profile/Profile.js.map +1 -1
- package/dist/dts/pages/Query/Query.d.ts.map +1 -1
- package/dist/dts/pages/Query/Query.js +12 -5
- package/dist/dts/pages/Query/Query.js.map +1 -1
- package/dist/dts/pages/Query/types.d.ts +2 -1
- package/dist/dts/pages/Query/types.d.ts.map +1 -1
- package/dist/dts/pages/Workspace/Workspace.d.ts.map +1 -1
- package/dist/dts/pages/Workspace/Workspace.js +14 -5
- package/dist/dts/pages/Workspace/Workspace.js.map +1 -1
- package/dist/dts/types/icons.d.ts +3 -2
- package/dist/dts/types/icons.d.ts.map +1 -1
- package/dist/dts/types/icons.js +3 -2
- package/dist/dts/types/icons.js.map +1 -1
- package/dist/dts/utils/index.d.ts +2 -3
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +2 -2
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/tests/values.test.js +0 -1
- package/dist/dts/utils/tests/values.test.js.map +1 -1
- package/dist/esm/index.js +1710 -600
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +186 -172
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/types.ts"],"names":[],"mappings":"AAE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OAAO,CAAC;CAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButtonGroup.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/ActionButtons/ActionButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ActionButtonGroup.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/ActionButtons/ActionButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAU,MAAM,UAAU,CAAC;AASrD,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgDlD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useCallback, useMemo } from 'react';
|
|
3
|
+
import { Button, Group, Select } from '@mantine/core';
|
|
3
4
|
import SaveActionButton from './SaveActionButton';
|
|
5
|
+
import { useAppSelector, useAppDispatch } from '../appApi';
|
|
6
|
+
import { selectCurrentCohort, selectAllCohorts, } from '../CohortManagment/CohortManagerSelectors';
|
|
7
|
+
import { setCurrentCohortId } from '../CohortManagment/CohortManagerSlice';
|
|
4
8
|
var ActionButtonGroup = function (_a) {
|
|
9
|
+
var _b;
|
|
5
10
|
var index = _a.index;
|
|
6
|
-
|
|
11
|
+
var data = useAppSelector(selectAllCohorts); // all saved cohorts
|
|
12
|
+
var currentCohort = useAppSelector(selectCurrentCohort);
|
|
13
|
+
var dispatch = useAppDispatch();
|
|
14
|
+
var selectData = useMemo(function () {
|
|
15
|
+
return data.map(function (cohort) { return ({ label: cohort.name, value: cohort.id }); });
|
|
16
|
+
}, [data]);
|
|
17
|
+
var onSelectCohort = useCallback(function (_value, option) {
|
|
18
|
+
if (option) {
|
|
19
|
+
dispatch(setCurrentCohortId(option.value));
|
|
20
|
+
}
|
|
21
|
+
}, [dispatch]);
|
|
22
|
+
return (_jsxs(Group, { gap: "xs", className: "flex pt-4 pl-2", children: [_jsx(Select, { data: selectData, value: (_b = currentCohort === null || currentCohort === void 0 ? void 0 : currentCohort.id) !== null && _b !== void 0 ? _b : null, onChange: onSelectCohort }), _jsx(SaveActionButton, { index: index }), _jsx(Button, { size: "sm", variant: "outline", color: "secondary.4", classNames: {
|
|
7
23
|
root: 'bg-base-max',
|
|
8
24
|
}, children: "Export Cohort" }), _jsx(Button, { size: "sm", variant: "outline", color: "secondary.4", classNames: {
|
|
9
25
|
root: 'bg-base-max',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButtonGroup.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/ActionButtons/ActionButtonGroup.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ActionButtonGroup.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/ActionButtons/ActionButtonGroup.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,EAAgB,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEpE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EACL,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,IAAM,iBAAiB,GAAgC,UAAC,EAAS;;QAAP,KAAK,WAAA;IAC7D,IAAM,IAAI,GAAa,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,oBAAoB;IAC7E,IAAM,aAAa,GAAG,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAC1D,IAAM,QA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ohortDiscovery/ActionButtons/SaveActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SaveActionButton.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/ActionButtons/SaveActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyEjD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -3,13 +3,16 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Button, Group, Modal, Stack, TextInput } from '@mantine/core';
|
|
4
4
|
import { useDisclosure } from '@mantine/hooks';
|
|
5
5
|
import { useAppSelector, useAppDispatch } from '../appApi';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { selectCurrentCohortFilters, selectCurrentCohort, } from '../CohortManagment/CohortManagerSelectors';
|
|
7
|
+
import { saveCohortToStorage } from '../CohortManagment/CohortManagerSlice';
|
|
8
8
|
var SaveActionButton = function (_a) {
|
|
9
9
|
var index = _a.index;
|
|
10
10
|
var _b = useDisclosure(false), opened = _b[0], _c = _b[1], close = _c.close, open = _c.open;
|
|
11
11
|
var filters = useAppSelector(function (state) {
|
|
12
|
-
return
|
|
12
|
+
return selectCurrentCohortFilters(state);
|
|
13
|
+
});
|
|
14
|
+
var currentCohort = useAppSelector(function (state) {
|
|
15
|
+
return selectCurrentCohort(state);
|
|
13
16
|
});
|
|
14
17
|
var _d = useState('New Cohort'), cohortName = _d[0], setCohortName = _d[1];
|
|
15
18
|
var appDispatch = useAppDispatch();
|
|
@@ -18,7 +21,10 @@ var SaveActionButton = function (_a) {
|
|
|
18
21
|
}, children: _jsxs(Stack, { className: "mt-2", children: [_jsx(TextInput, { description: "Enter name to save cohort", label: "Cohort Name", placeholder: "New Cohort", "data-autofocus": true, onChange: function (event) {
|
|
19
22
|
setCohortName(event.currentTarget.value);
|
|
20
23
|
}, value: cohortName, required: true }), _jsxs(Group, { justify: "flex-end", className: "bg-base-lighter -m-4 p-3 mt-3", children: [_jsx(Button, { variant: "outline", onClick: close, children: "Cancel" }), _jsx(Button, { onClick: function () {
|
|
21
|
-
appDispatch(
|
|
24
|
+
appDispatch(saveCohortToStorage({
|
|
25
|
+
cohortId: currentCohort.id,
|
|
26
|
+
cohortName: cohortName,
|
|
27
|
+
}));
|
|
22
28
|
close();
|
|
23
29
|
}, children: "Save" })] })] }) }), _jsx(Button, { size: "sm", variant: "outline", color: "secondary.4", disabled: !(index in filters) || Object.keys(filters[index].root).length == 0, classNames: {
|
|
24
30
|
root: 'bg-base-max',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveActionButton.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/ActionButtons/SaveActionButton.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAY,MAAM,WAAW,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"SaveActionButton.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/ActionButtons/SaveActionButton.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,cA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IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,KAAK,uBAE/B,EACT,KAAC,MAAM,IACL,OAAO,EAAE;wCACP,WAAW,CACT,mBAAmB,CAAC;4CAClB,QAAQ,EAAE,aAAa,CAAC,EAAE;4CAC1B,UAAU,YAAA;yCACX,CAAC,CACH,CAAC;wCACF,KAAK,EAAE,CAAC;oCACV,CAAC,qBAGM,IACH,IACF,GACF,EAER,KAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,OAAO,EAAC,SAAS,EACjB,KAAK,EAAC,aAAa,EACnB,QAAQ,EACN,CAAC,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,EAErE,UAAU,EAAE;oBACV,IAAI,EAAE,aAAa;iBACpB,EACD,OAAO,EAAE,IAAI,4BAGN,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { useDeepCompareCallback, useDeepCompareMemo } from 'use-deep-compare';
|
|
|
6
6
|
import { extractRangeValues, processBucketData, processRangeData, } from '../../components/facets';
|
|
7
7
|
import { partial } from 'lodash';
|
|
8
8
|
import { createFacetPanel } from './FilterPanels/createFacetPanel';
|
|
9
|
-
import {
|
|
9
|
+
import { selectCurrentCohortIndexFilters } from './CohortManagment/CohortManagerSelectors';
|
|
10
10
|
import { useClearFilters, useGetFacetFilters, useUpdateFilters } from './hooks';
|
|
11
11
|
import { useRoundedAggsQuery } from './queryApi';
|
|
12
12
|
var NUM_COLS = 2; // TODO: add to config
|
|
@@ -20,7 +20,7 @@ var NUM_COLS = 2; // TODO: add to config
|
|
|
20
20
|
var ChartsAndFacetsPanel = function (_a) {
|
|
21
21
|
var index = _a.index, facets = _a.facets;
|
|
22
22
|
var cohortFilters = useAppSelector(function (state) {
|
|
23
|
-
return
|
|
23
|
+
return selectCurrentCohortIndexFilters(state, index);
|
|
24
24
|
});
|
|
25
25
|
var _b = useRoundedAggsQuery({
|
|
26
26
|
type: index,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartsAndFacetsPanel.js","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/ChartsAndFacetsPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EACL,sBAAsB,EAEtB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAY,cAAc,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ChartsAndFacetsPanel.js","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/ChartsAndFacetsPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EACL,sBAAsB,EAEtB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAY,cAAc,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0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AC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC;QACpC,iBAAiB,CAAC,IAAI,CACpB,cAA8B,SAAS,EAAC,WAAW,IAAzC,sBAAe,CAAC,CAAE,CAA0B,CACvD,CAAC;IACJ,CAAC;IAED,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAC,0EAA0E,aACvF,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,CAC5B,KAAC,IAAI,CAAC,GAAG,IACP,IAAI,EAAE,OAAO,YAGZ,KAAK,IAFD,UAAG,KAAK,qBAAW,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,SAAM,CAGxC,CACZ,EAP6B,CAO7B,CAAC,EACD,iBAAiB,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,CACvC,KAAC,IAAI,CAAC,GAAG,IAAC,IAAI,EAAE,OAAO,YACpB,KAAK,IADsB,UAAG,KAAK,4BAAyB,CAEpD,CACZ,EAJwC,CAIxC,CAAC,IACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortDiscovery.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/CohortDiscovery.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,qBAAqB,EAEtB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"CohortDiscovery.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/CohortDiscovery.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,qBAAqB,EAEtB,MAAM,SAAS,CAAC;AAsCjB,QAAA,MAAM,eAAe,GAAI,QAAQ,qBAAqB,4CAuErD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -6,10 +6,13 @@ import { Title, Loader, Tabs } from '@mantine/core';
|
|
|
6
6
|
import IndexPanel from './IndexPanel';
|
|
7
7
|
import { AppStore } from './appApi';
|
|
8
8
|
import Image from 'next/image';
|
|
9
|
-
import SavedCohortsPanel from './
|
|
9
|
+
import SavedCohortsPanel from './SavedCohorts/SavedCohortsPanel';
|
|
10
10
|
import RequestsPanel from './Requests/RequestsPanel';
|
|
11
11
|
import DataAccessRequestForm from './Requests/DataAccessRequestForm';
|
|
12
12
|
import TabbedIndex from './TabbedIndex';
|
|
13
|
+
import { extractIndexResourceFromConfiguration } from './utils';
|
|
14
|
+
import { useAppDispatch } from './appApi';
|
|
15
|
+
import { loadCohortsFromStorage } from './CohortManagment/CohortManagerSlice';
|
|
13
16
|
var persistor = persistStore(AppStore);
|
|
14
17
|
var useGetDefinitions = function (config) { };
|
|
15
18
|
var DataRequestModal = function (_a) {
|
|
@@ -18,7 +21,9 @@ var DataRequestModal = function (_a) {
|
|
|
18
21
|
};
|
|
19
22
|
var CohortDiscovery = function (config) {
|
|
20
23
|
var _a;
|
|
21
|
-
|
|
24
|
+
var indexResources = extractIndexResourceFromConfiguration(config);
|
|
25
|
+
useAppDispatch(loadCohortsFromStorage());
|
|
26
|
+
return (_jsx(React.Fragment, { children: _jsxs(PersistGate, { persistor: persistor, loading: _jsx(Loader, { variant: "dots" }), children: [_jsx(Title, { order: 3, className: "absolute top-6 left-[154px]", children: "Cohort Discovery" }), _jsxs(Tabs, { keepMounted: false, defaultValue: "build", orientation: "vertical", classNames: {
|
|
22
27
|
root: 'w-full h-full',
|
|
23
28
|
list: 'bg-base-light before:content-none pt-20',
|
|
24
29
|
tab: 'border-0 border-l-4 rounded-none data-[active=true]:border-accent-warm data-[active=true]:bg-base-max text-center',
|
|
@@ -26,7 +31,7 @@ var CohortDiscovery = function (config) {
|
|
|
26
31
|
panel: 'pt-16',
|
|
27
32
|
}, children: [_jsx(Tabs.List, { children: Object.keys(config.leftNav).map(function (key) {
|
|
28
33
|
return (_jsxs(Tabs.Tab, { value: key, children: [_jsx(Image, { src: config.leftNav[key].image, alt: config.leftNav[key].imageAlt, width: 40, height: 40, className: "inline-block mb-1" }), _jsx("strong", { className: "block", children: config.leftNav[key].title })] }, key));
|
|
29
|
-
}) }), _jsx(Tabs.Panel, { value: "build", children: config.dataIndexes.length === 1 ? (_jsx(IndexPanel, { dataConfig: config.dataIndexes[0].dataConfig, tabTitle: config.dataIndexes[0].tabTitle, tabs: config.dataIndexes[0].tabs, emptySelection: config.emptySelection, numColumns: (_a = config.dataIndexes[0].numColumns) !== null && _a !== void 0 ? _a : 2 })) : (_jsx(TabbedIndex, { config: config })) }), _jsx(Tabs.Panel, { value: "saved", children: _jsx(SavedCohortsPanel, {}) }), _jsx(Tabs.Panel, { value: "request", children: _jsx(RequestsPanel, {}) })] })] }) }));
|
|
34
|
+
}) }), _jsx(Tabs.Panel, { value: "build", children: config.dataIndexes.length === 1 ? (_jsx(IndexPanel, { dataConfig: config.dataIndexes[0].dataConfig, tabTitle: config.dataIndexes[0].tabTitle, tabs: config.dataIndexes[0].tabs, emptySelection: config.emptySelection, resourceField: config.dataIndexes[0].resourceField, numColumns: (_a = config.dataIndexes[0].numColumns) !== null && _a !== void 0 ? _a : 2, indexResources: indexResources, remoteSupportService: config.remoteSupportService })) : (_jsx(TabbedIndex, { config: config, indexResources: indexResources })) }), _jsx(Tabs.Panel, { value: "saved", children: _jsx(SavedCohortsPanel, { indexResources: indexResources, remoteSupportService: config.remoteSupportService }) }), _jsx(Tabs.Panel, { value: "request", children: _jsx(RequestsPanel, {}) })] })] }) }));
|
|
30
35
|
};
|
|
31
36
|
export default CohortDiscovery;
|
|
32
37
|
//# sourceMappingURL=CohortDiscovery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortDiscovery.js","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/CohortDiscovery.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM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|
2
|
-
|
|
3
|
+
indexResources: IndexResourceField;
|
|
4
|
+
remoteSupportService: SupportServiceConfiguration;
|
|
5
|
+
size?: string;
|
|
3
6
|
}
|
|
4
|
-
export declare const CohortManager: ({
|
|
7
|
+
export declare const CohortManager: ({ indexResources, remoteSupportService, size, }: CohortManagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
8
|
export default CohortManager;
|
|
6
9
|
//# sourceMappingURL=CohortManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortManager.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/CohortManagment/CohortManager.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CohortManager.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/CohortManagment/CohortManager.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAGL,kBAAkB,EAElB,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAqBlB,UAAU,kBAAkB;IAC1B,cAAc,EAAE,kBAAkB,CAAC;IACnC,oBAAoB,EAAE,2BAA2B,CAAC;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAID,eAAO,MAAM,aAAa,GAAI,iDAI3B,kBAAkB,4CAuPpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,71 +1,147 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
38
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
39
|
+
import { Button, Group, Select, TextInput, Tooltip, useMantineTheme, Text, } from '@mantine/core';
|
|
40
|
+
import { setCurrentCohortId, createNewCohort, removeCohort, updateCohortName, } from './CohortManagerSlice';
|
|
41
|
+
import { selectAllCohorts, selectCurrentCohort, selectCohortManagerLoading, } from './CohortManagerSelectors';
|
|
6
42
|
import { useAppDispatch, useAppSelector } from '../appApi';
|
|
43
|
+
import { isIndexedFilterSetEmpty, } from '../types';
|
|
44
|
+
import { UploadIcon, AddIcon, DownloadIcon, CloseIcon, } from '../../../types/icons';
|
|
45
|
+
import { Icon } from '@iconify/react';
|
|
46
|
+
import { IconSize } from '../../../utils/sizes';
|
|
47
|
+
import { modals } from '@mantine/modals';
|
|
48
|
+
import DataAccessRequestForm from '../Requests/DataAccessRequestForm';
|
|
49
|
+
import { submitCohortRequestAction } from '../Requests/submitCohortRequestAction';
|
|
50
|
+
import { selectUserDetails, useCoreSelector, useCreateRequestMutation, useLazyGetAggsNoFilterSelfQuery, } from '@gen3/core';
|
|
51
|
+
var hasExportImport = false;
|
|
7
52
|
export var CohortManager = function (_a) {
|
|
8
53
|
var _b;
|
|
9
|
-
var
|
|
54
|
+
var indexResources = _a.indexResources, remoteSupportService = _a.remoteSupportService, _c = _a.size, size = _c === void 0 ? 'md' : _c;
|
|
10
55
|
var dispatch = useAppDispatch();
|
|
56
|
+
var _d = useState(false), isEditing = _d[0], setIsEditing = _d[1];
|
|
57
|
+
var _e = useState(''), editingLabel = _e[0], setEditingLabel = _e[1];
|
|
11
58
|
var allCohorts = useAppSelector(selectAllCohorts);
|
|
12
59
|
var currentCohort = useAppSelector(selectCurrentCohort);
|
|
13
|
-
var savedCohorts = useAppSelector(selectSavedCohorts);
|
|
14
|
-
var unsavedCohorts = useAppSelector(selectUnsavedCohorts);
|
|
15
|
-
var modifiedUnsavedCohorts = useAppSelector(selectModifiedUnsavedCohorts);
|
|
16
60
|
var loading = useAppSelector(selectCohortManagerLoading);
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
61
|
+
var appDispatch = useAppDispatch();
|
|
62
|
+
var getGetAggs = useLazyGetAggsNoFilterSelfQuery()[0];
|
|
63
|
+
var requestQuery = useCreateRequestMutation()[0];
|
|
64
|
+
var user = useCoreSelector(selectUserDetails);
|
|
65
|
+
var theme = useMantineTheme();
|
|
66
|
+
var iconSize = IconSize[size] || IconSize['sm'];
|
|
67
|
+
var startEditing = function () {
|
|
68
|
+
setIsEditing(true);
|
|
69
|
+
setEditingLabel(currentCohort.name);
|
|
70
|
+
};
|
|
71
|
+
var hasNoFilters = currentCohort
|
|
72
|
+
? isIndexedFilterSetEmpty(currentCohort === null || currentCohort === void 0 ? void 0 : currentCohort.filters)
|
|
73
|
+
: true;
|
|
74
|
+
var cancelEditing = function () {
|
|
75
|
+
setIsEditing(false);
|
|
76
|
+
setEditingLabel('');
|
|
77
|
+
};
|
|
78
|
+
var saveEdit = function () {
|
|
79
|
+
if (editingLabel.trim() === '' || !currentCohort.name)
|
|
80
|
+
return;
|
|
81
|
+
dispatch(updateCohortName({ id: currentCohort.id, name: editingLabel }));
|
|
82
|
+
setIsEditing(false);
|
|
83
|
+
setEditingLabel('');
|
|
84
|
+
};
|
|
22
85
|
var handleCreateNew = function () {
|
|
23
86
|
dispatch(createNewCohort({ name: 'New Cohort' }));
|
|
24
87
|
};
|
|
25
|
-
var handleSaveCohort = function (cohortId) {
|
|
26
|
-
dispatch(saveCohortToStorage({ cohortId: cohortId }));
|
|
27
|
-
};
|
|
28
88
|
var selectData = useMemo(function () {
|
|
29
89
|
return allCohorts.map(function (cohort) { return ({
|
|
30
90
|
label: cohort.name,
|
|
31
91
|
value: cohort.id,
|
|
32
92
|
}); });
|
|
33
93
|
}, [allCohorts]);
|
|
34
|
-
var handleDeleteCohort = function (cohortId) {
|
|
35
|
-
var cohort = allCohorts.find(function (c) { return c.id === cohortId; });
|
|
36
|
-
if (cohort === null || cohort === void 0 ? void 0 : cohort.saved) {
|
|
37
|
-
dispatch(deleteCohortFromStorage(cohortId));
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
dispatch(removeCohort(cohortId));
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
var handleRenameCohort = function (id, name) {
|
|
44
|
-
dispatch(updateCohortName({ id: id, name: name }));
|
|
45
|
-
};
|
|
46
|
-
var handleSelectCohort = function (cohortId) {
|
|
47
|
-
dispatch(setCurrentCohortId(cohortId));
|
|
48
|
-
};
|
|
49
|
-
var handleUpdateFilter = function (index, field, filter) {
|
|
50
|
-
dispatch(updateCohortFilter({
|
|
51
|
-
index: index,
|
|
52
|
-
field: field,
|
|
53
|
-
filter: filter,
|
|
54
|
-
}));
|
|
55
|
-
};
|
|
56
94
|
var onSelectCohort = useCallback(function (_value, option) {
|
|
57
|
-
console.log('onSelectCohort', option);
|
|
58
95
|
if (option) {
|
|
59
96
|
dispatch(setCurrentCohortId(option.value));
|
|
60
97
|
}
|
|
61
98
|
}, [dispatch]);
|
|
99
|
+
var handleCohortAccessRequest = function (cohortId, values) { return __awaiter(void 0, void 0, void 0, function () {
|
|
100
|
+
var cohort;
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0:
|
|
104
|
+
cohort = allCohorts.find(function (obj) { return obj.id === cohortId; });
|
|
105
|
+
if (!cohort) return [3 /*break*/, 2];
|
|
106
|
+
return [4 /*yield*/, submitCohortRequestAction(cohort, values, user, indexResources, remoteSupportService, appDispatch, getGetAggs, requestQuery)];
|
|
107
|
+
case 1:
|
|
108
|
+
_a.sent();
|
|
109
|
+
_a.label = 2;
|
|
110
|
+
case 2: return [2 /*return*/];
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}); };
|
|
62
114
|
if (loading) {
|
|
63
115
|
return _jsx("div", { children: "Loading cohorts..." });
|
|
64
116
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
117
|
+
return (_jsxs(Group, { gap: "xs", className: "flex pt-4 pl-2", children: [!isEditing ? (_jsxs(Group, { children: [_jsx(Select, { data: selectData, value: (_b = currentCohort === null || currentCohort === void 0 ? void 0 : currentCohort.id) !== null && _b !== void 0 ? _b : null, onChange: onSelectCohort }), _jsx(Tooltip, { label: "Rename selected cohort", position: "bottom", withArrow: true, children: _jsx(Button, { variant: "action", color: "secondary.4", onClick: startEditing, title: "Rename ".concat(currentCohort === null || currentCohort === void 0 ? void 0 : currentCohort.name), "data-testid": "renameCohort", "aria-label": "Rename cohort", size: "compact-".concat(size), children: _jsx(Icon, { icon: "gen3:edit", height: iconSize, width: iconSize }) }) })] })) : (_jsxs(Group, { gap: "xs", children: [_jsx(TextInput, { value: editingLabel, onChange: function (e) { return setEditingLabel(e.target.value); }, placeholder: "Enter new name", onKeyDown: function (e) {
|
|
118
|
+
if (e.key === 'Enter' && editingLabel.trim())
|
|
119
|
+
saveEdit();
|
|
120
|
+
if (e.key === 'Escape')
|
|
121
|
+
cancelEditing();
|
|
122
|
+
}, autoFocus: true, style: { flex: 1 } }), _jsx(Tooltip, { label: "Apply rename", position: "bottom", withArrow: true, children: _jsx(Button, { variant: "action", color: "secondary.4", onClick: saveEdit, "data-testid": "completeCohortRenameButton", "aria-label": "Complete rename cohort", disabled: editingLabel.trim() === '' ||
|
|
123
|
+
editingLabel.trim() === currentCohort.name, size: "compact-".concat(size), children: _jsx(Icon, { icon: "gen3:check", height: iconSize, width: iconSize }) }) }), _jsx(Tooltip, { label: "Cancel rename", position: "bottom", withArrow: true, children: _jsx(Button, { variant: "action", "data-testid": "cancelRenameButton", "aria-label": "Cancel rename cohort", color: theme.colors.accent[4], onClick: cancelEditing, size: "compact-".concat(size), children: _jsx(CloseIcon, { size: "1.5em", "aria-hidden": "true" }) }) })] })), _jsx(Tooltip, { label: "Create a new cohort", position: "bottom", withArrow: true, children: _jsx(Button, { size: "compact-".concat(size), "data-testid": "addButton", "aria-label": "Add cohort", variant: "action", color: "secondary.4", onClick: handleCreateNew, children: _jsx(AddIcon, { size: "1.5em", "aria-hidden": "true" }) }) }), _jsx(Tooltip, { label: "Delete selected cohort", position: "bottom", withArrow: true, children: _jsx(Button, { size: "compact-".concat(size), "data-testid": "uploadButton", "aria-label": "Upload cohort", variant: "action", onClick: function () {
|
|
124
|
+
var _a, _b;
|
|
125
|
+
modals.openConfirmModal({
|
|
126
|
+
title: "Delete Cohort: ".concat(currentCohort === null || currentCohort === void 0 ? void 0 : currentCohort.name),
|
|
127
|
+
centered: true,
|
|
128
|
+
children: (_jsxs(Text, { size: "sm", children: ["Are you sure you want to delete your cohort? Deleted cohorts cannot be restored.", ' ', ((_a = currentCohort === null || currentCohort === void 0 ? void 0 : currentCohort.requests) === null || _a === void 0 ? void 0 : _a.length) > 0
|
|
129
|
+
? "This cohort has ".concat((_b = currentCohort === null || currentCohort === void 0 ? void 0 : currentCohort.requests) === null || _b === void 0 ? void 0 : _b.length, " requests. Deleting this cohort will results in not being able to correlate nay pending requests.\n Are you sure you want to delete this cohort?.")
|
|
130
|
+
: ''] })),
|
|
131
|
+
labels: { confirm: 'Delete Cohort', cancel: 'Cancel' },
|
|
132
|
+
confirmProps: { color: theme.colors.accent[4] },
|
|
133
|
+
onConfirm: function () {
|
|
134
|
+
dispatch(removeCohort(currentCohort.id));
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
}, children: _jsx(Icon, { icon: "gen3:delete", height: iconSize, width: iconSize }) }) }), _jsx(Tooltip, { label: hasNoFilters
|
|
138
|
+
? 'No Filters defined. Cannot submit request.'
|
|
139
|
+
: 'Submit Data Access Request', position: "bottom", withArrow: true, children: _jsx(Button, { size: "compact-".concat(size), "data-testid": "cohortManager-requestCohortAccessButton", "aria-label": "Request cohort access", variant: "action", disabled: hasNoFilters, onClick: function () {
|
|
140
|
+
var modelId = modals.open({
|
|
141
|
+
title: 'DATA ACCESS REQUEST',
|
|
142
|
+
children: (_jsx(DataAccessRequestForm, { cohortId: currentCohort.id, submitFunction: handleCohortAccessRequest, close: function () { return modals.close(modelId); } })),
|
|
143
|
+
});
|
|
144
|
+
}, children: _jsx(Icon, { icon: "gen3:request", height: iconSize, width: iconSize }) }) }), hasExportImport ? (_jsxs(_Fragment, { children: [_jsx(Tooltip, { label: "Import Cohort", position: "bottom", withArrow: true, children: _jsx(Button, { size: "compact-".concat(size), "data-testid": "uploadButton", "aria-label": "Upload cohort", variant: "action", children: _jsx(UploadIcon, { size: "1.5em", "aria-hidden": "true" }) }) }), _jsx(Tooltip, { label: "Export Cohort", position: "bottom", withArrow: true, children: _jsx("span", { children: _jsx(Button, { size: "compact-".concat(size), "data-testid": "downloadButton", "aria-label": "Download cohort", variant: "action", children: _jsx(DownloadIcon, { size: "1.5em", "aria-hidden": "true" }) }) }) })] })) : null] }));
|
|
69
145
|
};
|
|
70
146
|
export default CohortManager;
|
|
71
147
|
//# sourceMappingURL=CohortManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortManager.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/CohortManagment/CohortManager.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CohortManager.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/CohortManagment/CohortManager.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EACL,MAAM,EAEN,KAAK,EACL,MAAM,EACN,SAAS,EACT,OAAO,EACP,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AAC,YAED,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,GAAI,GACxD,GACD,EACT,eAAe,CAAC,CAAC,CAAC,CACjB,8BACE,KAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,QAAQ,EAAC,QAAQ,EAAC,SAAS,kBACxD,KAAC,MAAM,IACL,IAAI,EAAE,kBAAW,IAAI,CAAE,iBACX,cAAc,gBACf,eAAe,EAC1B,OAAO,EAAC,QAAQ,YAEhB,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,iBAAa,MAAM,GAAG,GACvC,GACD,EACV,KAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,QAAQ,EAAC,QAAQ,EAAC,SAAS,kBACxD,yBACE,KAAC,MAAM,IACL,IAAI,EAAE,kBAAW,IAAI,CAAE,iBACX,gBAAgB,gBACjB,iBAAiB,EAC5B,OAAO,EAAC,QAAQ,YAEhB,KAAC,YAAY,IAAC,IAAI,EAAC,OAAO,iBAAa,MAAM,GAAG,GACzC,GACJ,GACC,IACT,CACJ,CAAC,CAAC,CAAC,IAAI,IACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -363,6 +363,50 @@ export declare const selectCurrentCohortIndexFilters: ((state: any, index: any)
|
|
|
363
363
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
364
364
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
365
365
|
};
|
|
366
|
+
export declare const selectCohortNameExists: ((state: any, name: any, excludeId: any) => boolean) & {
|
|
367
|
+
clearCache: () => void;
|
|
368
|
+
resultsCount: () => number;
|
|
369
|
+
resetResultsCount: () => void;
|
|
370
|
+
} & {
|
|
371
|
+
resultFunc: (resultFuncArgs_0: Cohort[], resultFuncArgs_1: {
|
|
372
|
+
name: any;
|
|
373
|
+
excludeId: any;
|
|
374
|
+
}) => boolean;
|
|
375
|
+
memoizedResultFunc: ((resultFuncArgs_0: Cohort[], resultFuncArgs_1: {
|
|
376
|
+
name: any;
|
|
377
|
+
excludeId: any;
|
|
378
|
+
}) => boolean) & {
|
|
379
|
+
clearCache: () => void;
|
|
380
|
+
resultsCount: () => number;
|
|
381
|
+
resetResultsCount: () => void;
|
|
382
|
+
};
|
|
383
|
+
lastResult: () => boolean;
|
|
384
|
+
dependencies: [(state: {
|
|
385
|
+
selectedIndexFacets: {
|
|
386
|
+
[x: string]: string[];
|
|
387
|
+
};
|
|
388
|
+
filtersExpandedState: {
|
|
389
|
+
[x: string]: boolean;
|
|
390
|
+
};
|
|
391
|
+
facetDefinitionState: {
|
|
392
|
+
[x: string]: Record<string, import("@gen3/core").FacetDefinition>;
|
|
393
|
+
};
|
|
394
|
+
cohorts: import("@reduxjs/toolkit").EntityState<Cohort, string> & import("./CohortManagerSlice").CohortManagerState;
|
|
395
|
+
dataAccessRequests: import("@reduxjs/toolkit").EntityState<import("../types").DataAccessRequest, string>;
|
|
396
|
+
} & {
|
|
397
|
+
_persist: import("redux-persist/es/types").PersistState;
|
|
398
|
+
}) => Cohort[], (state: any, name: any, excludeId: any) => {
|
|
399
|
+
name: any;
|
|
400
|
+
excludeId: any;
|
|
401
|
+
}];
|
|
402
|
+
recomputations: () => number;
|
|
403
|
+
resetRecomputations: () => void;
|
|
404
|
+
dependencyRecomputations: () => number;
|
|
405
|
+
resetDependencyRecomputations: () => void;
|
|
406
|
+
} & {
|
|
407
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
408
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
409
|
+
};
|
|
366
410
|
export declare const selectCohortManagerLoading: (state: AppState) => boolean;
|
|
367
411
|
export declare const selectCohortManagerError: (state: AppState) => string | null;
|
|
368
412
|
export declare const selectCohortIdToNameMap: ((state: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortManagerSelectors.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/Coh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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASlC,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,OAAO,QAAQ,KAAG,OACtC,CAAC;AAExB,eAAO,MAAM,wBAAwB,GAAI,OAAO,QAAQ,KAAG,MAAM,GAAG,IAC/C,CAAC;AAEtB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAC"}
|
|
@@ -27,9 +27,15 @@ export var selectCurrentCohortName = createSelector([selectCurrentCohort], funct
|
|
|
27
27
|
export var selectCurrentCohortFilters = createSelector([selectCurrentCohort], function (cohort) { return cohort.filters; });
|
|
28
28
|
export var selectCurrentCohortIndexFilters = createSelector([selectCurrentCohort, function (state, index) { return index; }], function (cohort, index) {
|
|
29
29
|
var _a, _b;
|
|
30
|
-
console.log('selectCurrentCohortIndexFilters', cohort, index);
|
|
31
30
|
return (_b = (_a = cohort.filters) === null || _a === void 0 ? void 0 : _a[index]) !== null && _b !== void 0 ? _b : EmptyFilterSet;
|
|
32
31
|
});
|
|
32
|
+
export var selectCohortNameExists = createSelector([selectAllCohorts, function (state, name, excludeId) { return ({ name: name, excludeId: excludeId }); }], function (cohorts, params) {
|
|
33
|
+
var trimmedName = params.name.trim().toLowerCase();
|
|
34
|
+
return cohorts.some(function (cohort) {
|
|
35
|
+
return cohort.id !== params.excludeId &&
|
|
36
|
+
cohort.name.trim().toLowerCase() === trimmedName;
|
|
37
|
+
});
|
|
38
|
+
});
|
|
33
39
|
export var selectCohortManagerLoading = function (state) {
|
|
34
40
|
return state.cohorts.loading;
|
|
35
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortManagerSelectors.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,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,CACF,CAAC"}
|
|
@@ -89,7 +89,9 @@ export declare const cohortManagerSlice: import("@reduxjs/toolkit").Slice<Entity
|
|
|
89
89
|
clearCohortFilters: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CohortManagerState>, action: PayloadAction<ClearAllFilterParams>) => void;
|
|
90
90
|
clearError: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CohortManagerState>) => void;
|
|
91
91
|
}, "CohortDiscovery/CohortManager", "CohortDiscovery/CohortManager", import("@reduxjs/toolkit").SliceSelectors<EntityState<Cohort, string> & CohortManagerState>>;
|
|
92
|
-
export declare const setCurrentCohortId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "CohortDiscovery/CohortManager/setCurrentCohortId">, createNewCohort: import("@reduxjs/toolkit").ActionCreatorWithPayload<CreateCohortParams, "CohortDiscovery/CohortManager/createNewCohort">, removeCohort: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "CohortDiscovery/CohortManager/removeCohort">, updateCohortName: import("@reduxjs/toolkit").ActionCreatorWithPayload<UpdateCohortNameParams, "CohortDiscovery/CohortManager/updateCohortName">, updateCohortFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<UpdateFilterParams, "CohortDiscovery/CohortManager/updateCohortFilter">, setCohortFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetFilterParams, "CohortDiscovery/CohortManager/setCohortFilter">, setAllIndexFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<IndexedFilterSet, "CohortDiscovery/CohortManager/setAllIndexFilters">, removeCohortFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<RemoveFilterParams, "CohortDiscovery/CohortManager/removeCohortFilter">, clearCohortFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<ClearAllFilterParams, "CohortDiscovery/CohortManager/clearCohortFilters"
|
|
92
|
+
export declare const setCurrentCohortId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "CohortDiscovery/CohortManager/setCurrentCohortId">, createNewCohort: import("@reduxjs/toolkit").ActionCreatorWithPayload<CreateCohortParams, "CohortDiscovery/CohortManager/createNewCohort">, removeCohort: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "CohortDiscovery/CohortManager/removeCohort">, updateCohortName: import("@reduxjs/toolkit").ActionCreatorWithPayload<UpdateCohortNameParams, "CohortDiscovery/CohortManager/updateCohortName">, updateCohortFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<UpdateFilterParams, "CohortDiscovery/CohortManager/updateCohortFilter">, setCohortFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetFilterParams, "CohortDiscovery/CohortManager/setCohortFilter">, setAllIndexFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<IndexedFilterSet, "CohortDiscovery/CohortManager/setAllIndexFilters">, removeCohortFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<RemoveFilterParams, "CohortDiscovery/CohortManager/removeCohortFilter">, clearCohortFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<ClearAllFilterParams, "CohortDiscovery/CohortManager/clearCohortFilters">;
|
|
93
93
|
export declare const cohortManagerReducer: import("redux").Reducer<EntityState<Cohort, string> & CohortManagerState>;
|
|
94
|
+
export declare const validateCohortName: (name: string, excludeId?: string) => (dispatch: any, getState: any) => boolean;
|
|
95
|
+
export declare const generateUniqueNameForCohort: (baseName: string) => (dispatch: any, getState: any) => string;
|
|
94
96
|
export {};
|
|
95
97
|
//# sourceMappingURL=CohortManagerSlice.d.ts.map
|