@gen3/frontend 0.10.75 → 0.10.76
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 +16 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +0 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js +3 -3
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js.map +1 -1
- package/dist/dts/components/Buttons/UploadJSONButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/UploadJSONButton.js +12 -1
- package/dist/dts/components/Buttons/UploadJSONButton.js.map +1 -1
- package/dist/dts/components/Content/TextContent.d.ts +2 -1
- package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
- package/dist/dts/components/Content/TextContent.js +8 -5
- package/dist/dts/components/Content/TextContent.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts +12 -8
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js +11 -17
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js +4 -18
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js +8 -5
- package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
- package/dist/dts/components/MessageCards/ErrorCard.js +1 -1
- package/dist/dts/components/MessageCards/ErrorCard.js.map +1 -1
- package/dist/dts/components/MessageCards/WarningCard.js +1 -1
- package/dist/dts/components/MessageCards/WarningCard.js.map +1 -1
- package/dist/dts/components/MessagePanel.d.ts.map +1 -1
- package/dist/dts/components/MessagePanel.js +1 -1
- package/dist/dts/components/MessagePanel.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +2 -3
- package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.js +4 -8
- package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.js +131 -48
- package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.js +4 -28
- package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js +1 -0
- package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +1 -13
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager.js +17 -0
- package/dist/dts/features/CohortBuilder/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +2 -3
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +3 -0
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortSelector.js +18 -0
- package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.d.ts → QueryExpressionSection.d.ts} +4 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.js → QueryExpressionSection.js} +28 -36
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.d.ts → QueryRepresentation.d.ts} +1 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.js → QueryRepresentation.js} +30 -23
- package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/hooks.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/hooks.js +1 -52
- package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
- package/dist/dts/features/CohortBuilder/style.d.ts +0 -6
- package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/style.js +0 -11
- package/dist/dts/features/CohortBuilder/style.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +4 -6
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +3 -5
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +0 -2
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +0 -2
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts +0 -10
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +1 -38
- package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiversity/diversityApi.d.ts +12 -12
- package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts.map +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js +11 -11
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js.map +1 -1
- package/dist/dts/features/Crosswalk/types.d.ts +1 -0
- package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.js +2 -2
- package/dist/dts/features/DataLibrary/QueryDetails.js.map +1 -1
- package/dist/dts/features/Dictionary/Dictionary.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/Dictionary.js +1 -0
- package/dist/dts/features/Dictionary/Dictionary.js.map +1 -1
- package/dist/dts/features/Dictionary/index.d.ts +3 -1
- package/dist/dts/features/Dictionary/index.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/index.js +3 -1
- package/dist/dts/features/Dictionary/index.js.map +1 -1
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts +7 -0
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js +39 -0
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js.map +1 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts +9 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +113 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +1 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts +3 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.js +13 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.js.map +1 -0
- package/dist/dts/features/Dictionary/metadata/types.d.ts +17 -0
- package/dist/dts/features/Dictionary/metadata/types.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/types.js +2 -0
- package/dist/dts/features/Dictionary/metadata/types.js.map +1 -0
- package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/TopBar.js +4 -3
- package/dist/dts/features/Navigation/TopBar.js.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.d.ts.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.js +30 -8
- package/dist/dts/features/Workspace/NotebookCard.js.map +1 -1
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.d.ts.map +1 -1
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js +3 -4
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js.map +1 -1
- package/dist/dts/features/Workspace/StatusAndControls.d.ts.map +1 -1
- package/dist/dts/features/Workspace/StatusAndControls.js +3 -4
- package/dist/dts/features/Workspace/StatusAndControls.js.map +1 -1
- package/dist/dts/features/Workspace/Workspace.d.ts.map +1 -1
- package/dist/dts/features/Workspace/Workspace.js +0 -1
- package/dist/dts/features/Workspace/Workspace.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js +4 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspacePanel.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspacePanel.js +10 -9
- package/dist/dts/features/Workspace/WorkspacePanel.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.js +1 -0
- package/dist/dts/features/Workspace/WorkspaceProvider.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts +2 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js +56 -27
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js.map +1 -1
- package/dist/dts/features/Workspace/types.d.ts +10 -0
- package/dist/dts/features/Workspace/types.d.ts.map +1 -1
- package/dist/dts/features/Workspace/types.js +10 -1
- package/dist/dts/features/Workspace/types.js.map +1 -1
- package/dist/dts/index.d.ts +3 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +3 -2
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +7 -7
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/pages/Crosswalk/data.d.ts +2 -3
- package/dist/dts/pages/Crosswalk/data.d.ts.map +1 -1
- package/dist/dts/pages/Crosswalk/data.js +27 -11
- package/dist/dts/pages/Crosswalk/data.js.map +1 -1
- package/dist/dts/pages/Theme/index.d.ts.map +1 -1
- package/dist/dts/utils/date.d.ts +0 -6
- package/dist/dts/utils/date.d.ts.map +1 -1
- package/dist/dts/utils/date.js +0 -12
- package/dist/dts/utils/date.js.map +1 -1
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +1 -0
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/time.d.ts +15 -0
- package/dist/dts/utils/time.d.ts.map +1 -1
- package/dist/dts/utils/time.js +105 -0
- package/dist/dts/utils/time.js.map +1 -1
- package/dist/esm/index.js +16 -35
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +46 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -4
- package/LICENSE +0 -201
- package/dist/dts/components/CountButton/CountButton.d.ts +0 -19
- package/dist/dts/components/CountButton/CountButton.d.ts.map +0 -1
- package/dist/dts/components/CountButton/CountButton.js +0 -18
- package/dist/dts/components/CountButton/CountButton.js.map +0 -1
- package/dist/dts/components/ErrorMessage.d.ts +0 -6
- package/dist/dts/components/ErrorMessage.d.ts.map +0 -1
- package/dist/dts/components/ErrorMessage.js +0 -8
- package/dist/dts/components/ErrorMessage.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +0 -10
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +0 -53
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +0 -7
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +0 -38
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +0 -13
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +0 -56
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js +0 -22
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +0 -320
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +0 -29
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +0 -85
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +0 -6
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +0 -55
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +0 -13
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +0 -41
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +0 -1
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/cohortUtils.js +0 -23
- package/dist/dts/features/CohortBuilder/cohortUtils.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortManager.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortManager.js +0 -57
- package/dist/dts/features/CohortDiscovery/CohortManager.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -23
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js +0 -35
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -91
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.js +0 -93
- package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +0 -1
- package/dist/dts/utils/icons.d.ts +0 -18
- package/dist/dts/utils/icons.d.ts.map +0 -1
- package/dist/dts/utils/icons.js +0 -18
- package/dist/dts/utils/icons.js.map +0 -1
- /package/dist/dts/features/{CohortDiscovery → CohortBuilder}/CohortManager.d.ts +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.d.ts → QueryExpressionsExpandedContext.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.js → QueryExpressionsExpandedContext.js} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentationLabel.d.ts → QueryRepresentationLabel.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentationLabel.js → QueryRepresentationLabel.js} +0 -0
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { useState, useCallback } from 'react';
|
|
3
|
-
// import { useDeepCompareEffect } from 'use-deep-compare';
|
|
4
|
-
// import { FetchBaseQueryError } from '@reduxjs/toolkit/dist/query';
|
|
5
|
-
// import { Modal, Button } from '@mantine/core';
|
|
6
|
-
// import {
|
|
7
|
-
// removeCohort,
|
|
8
|
-
// copyToSavedCohort,
|
|
9
|
-
// setCohortMessage,
|
|
10
|
-
// buildCohortGqlOperator,
|
|
11
|
-
// setCurrentCohortId,
|
|
12
|
-
// updateCohortName,
|
|
13
|
-
// useCoreDispatch,
|
|
14
|
-
// useAddCohortMutation,
|
|
15
|
-
// FilterSet,
|
|
16
|
-
// addNewSavedCohort,
|
|
17
|
-
// buildGqlOperationToFilterSet,
|
|
18
|
-
// NullCountsData,
|
|
19
|
-
// useCoreSelector,
|
|
20
|
-
// selectAvailableCohorts,
|
|
21
|
-
// useGetCohortsByContextIdQuery,
|
|
22
|
-
// useLazyGetCohortByIdQuery,
|
|
23
|
-
// discardCohortChanges,
|
|
24
|
-
// showModal,
|
|
25
|
-
// Modals,
|
|
26
|
-
// type Cohort,
|
|
27
|
-
// fetchCohortCaseCounts,
|
|
28
|
-
// useCreateCaseSetFromFiltersMutation,
|
|
29
|
-
// } from '@gen3/core';
|
|
30
|
-
// import { SaveOrCreateEntityBody } from './SaveOrCreateEntityModal';
|
|
31
|
-
// import ModalButtonContainer from '@/components/StyledComponents/ModalButtonContainer';
|
|
32
|
-
// import { INVALID_COHORT_NAMES } from '@/features/cohortBuilder/utils';
|
|
33
|
-
// import { omit } from 'lodash';
|
|
34
|
-
//
|
|
35
|
-
// /**
|
|
36
|
-
// * SaveCohortModal handles saving a user's cohort
|
|
37
|
-
// * @param initialName - populates inital value of name field
|
|
38
|
-
// * @param onClose - callback triggered when modal closes
|
|
39
|
-
// * @param cohortId - id of existing cohort we are saving, if undefined we are not saving a cohort that already exists
|
|
40
|
-
// * @param filters - the filters associated with the cohort
|
|
41
|
-
// * @param caseFilters - the case filters to use for the cohort
|
|
42
|
-
// * @param createStaticCohort - whether to create a case set from the filters so the cases in the cohort remain static
|
|
43
|
-
// * @param setAsCurrent - whether to set the new cohort as the user's current cohort, should not also pass in cohortId
|
|
44
|
-
// * @param saveAs - whether to save existing cohort as new cohort, requires cohortId
|
|
45
|
-
// * @category Modals
|
|
46
|
-
// */
|
|
47
|
-
// const SaveCohortModal = ({
|
|
48
|
-
// opened,
|
|
49
|
-
// initialName = '',
|
|
50
|
-
// onClose,
|
|
51
|
-
// cohortId,
|
|
52
|
-
// filters,
|
|
53
|
-
// caseFilters,
|
|
54
|
-
// createStaticCohort = false,
|
|
55
|
-
// setAsCurrent = false,
|
|
56
|
-
// saveAs = false,
|
|
57
|
-
// }: {
|
|
58
|
-
// opened: boolean;
|
|
59
|
-
// initialName?: string;
|
|
60
|
-
// onClose: () => void;
|
|
61
|
-
// cohortId?: string;
|
|
62
|
-
// filters: FilterSet;
|
|
63
|
-
// caseFilters?: FilterSet;
|
|
64
|
-
// createStaticCohort?: boolean;
|
|
65
|
-
// setAsCurrent?: boolean;
|
|
66
|
-
// saveAs?: boolean;
|
|
67
|
-
// }): JSX.Element => {
|
|
68
|
-
// const coreDispatch = useCoreDispatch();
|
|
69
|
-
// const [showReplaceCohort, setShowReplaceCohort] = useState(false);
|
|
70
|
-
// const [cohortReplaced, setCohortReplaced] = useState(false);
|
|
71
|
-
// const [enteredName, setEnteredName] = useState<string>();
|
|
72
|
-
// const [addCohort, { isLoading }] = useAddCohortMutation();
|
|
73
|
-
// const [cohortSavedMessage, setCohortSavedMessage] = useState<string[]>();
|
|
74
|
-
// const cohorts = useCoreSelector((state) => selectAvailableCohorts(state));
|
|
75
|
-
// const [createSet] = useCreateCaseSetFromFiltersMutation();
|
|
76
|
-
//
|
|
77
|
-
// const {
|
|
78
|
-
// data: cohortsListData,
|
|
79
|
-
// isSuccess: cohortListSuccess,
|
|
80
|
-
// isLoading: cohortListLoading,
|
|
81
|
-
// } = useGetCohortsByContextIdQuery(null, { skip: !cohortReplaced });
|
|
82
|
-
//
|
|
83
|
-
// const closeModal = useCallback(() => {
|
|
84
|
-
// onClose();
|
|
85
|
-
// // Reset modal state on close
|
|
86
|
-
// setShowReplaceCohort(false);
|
|
87
|
-
// setCohortReplaced(false);
|
|
88
|
-
// setEnteredName(undefined);
|
|
89
|
-
// setCohortSavedMessage(undefined);
|
|
90
|
-
// }, [onClose]);
|
|
91
|
-
//
|
|
92
|
-
// useDeepCompareEffect(() => {
|
|
93
|
-
// if (opened && cohortListSuccess && cohortReplaced) {
|
|
94
|
-
// // Remove replaced cohort
|
|
95
|
-
// const updatedCohortIds = (cohortsListData || []).map(
|
|
96
|
-
// (cohort: Cohort) => cohort.id,
|
|
97
|
-
// );
|
|
98
|
-
// const outdatedCohortsIds = cohorts
|
|
99
|
-
// .filter((c) => c.saved && !updatedCohortIds.includes(c.id))
|
|
100
|
-
// .map((c) => c.id);
|
|
101
|
-
// for (const id of outdatedCohortsIds) {
|
|
102
|
-
// coreDispatch(removeCohort({ id }));
|
|
103
|
-
// }
|
|
104
|
-
//
|
|
105
|
-
// coreDispatch(setCohortMessage(cohortSavedMessage));
|
|
106
|
-
// closeModal();
|
|
107
|
-
// }
|
|
108
|
-
// }, [
|
|
109
|
-
// cohortListSuccess,
|
|
110
|
-
// cohortReplaced,
|
|
111
|
-
// cohortsListData,
|
|
112
|
-
// cohorts,
|
|
113
|
-
// coreDispatch,
|
|
114
|
-
// opened,
|
|
115
|
-
// closeModal,
|
|
116
|
-
// cohortSavedMessage,
|
|
117
|
-
// ]);
|
|
118
|
-
// const [fetchSavedFilters] = useLazyGetCohortByIdQuery();
|
|
119
|
-
//
|
|
120
|
-
// const saveAction = async (newName: string, replace: boolean) => {
|
|
121
|
-
// const prevCohort = cohortId;
|
|
122
|
-
// let cohortFilters = filters;
|
|
123
|
-
//
|
|
124
|
-
// const addBody = {
|
|
125
|
-
// name: newName,
|
|
126
|
-
// filters: {},
|
|
127
|
-
// };
|
|
128
|
-
//
|
|
129
|
-
// await addCohort({ cohort: addBody, delete_existing: replace })
|
|
130
|
-
// .unwrap()
|
|
131
|
-
// .then(async (payload) => {
|
|
132
|
-
// let tempCohortMsg: string[];
|
|
133
|
-
// if (prevCohort) {
|
|
134
|
-
// if (saveAs) {
|
|
135
|
-
// coreDispatch(
|
|
136
|
-
// addNewSavedCohort({
|
|
137
|
-
// id: payload.id,
|
|
138
|
-
// name: payload.name,
|
|
139
|
-
// filters: buildGqlOperationToFilterSet(payload.filters),
|
|
140
|
-
// caseSet: { status: 'uninitialized' },
|
|
141
|
-
// counts: {
|
|
142
|
-
// ...NullCountsData,
|
|
143
|
-
// },
|
|
144
|
-
// modified_datetime: payload.modified_datetime,
|
|
145
|
-
// saved: true,
|
|
146
|
-
// modified: false,
|
|
147
|
-
// }),
|
|
148
|
-
// );
|
|
149
|
-
// coreDispatch(setCurrentCohortId(payload.id));
|
|
150
|
-
// tempCohortMsg = [`savedCohort|${newName}|${payload.id}`];
|
|
151
|
-
// } else {
|
|
152
|
-
// coreDispatch(
|
|
153
|
-
// copyToSavedCohort({
|
|
154
|
-
// sourceId: prevCohort,
|
|
155
|
-
// destId: payload.id,
|
|
156
|
-
// }),
|
|
157
|
-
// );
|
|
158
|
-
// // NOTE: the current cohort can not be undefined. Setting the id to a cohort
|
|
159
|
-
// // which does not exist will cause this
|
|
160
|
-
// // Therefore, copy the unsaved cohort to the new cohort id received from
|
|
161
|
-
// // the BE.
|
|
162
|
-
//
|
|
163
|
-
// // possible that the caseCount are undefined or pending so
|
|
164
|
-
// // re-request counts.
|
|
165
|
-
// coreDispatch(fetchCohortCaseCounts(payload.id)); // fetch counts for new cohort
|
|
166
|
-
//
|
|
167
|
-
// tempCohortMsg = [`savedCurrentCohort|${newName}|${payload.id}`];
|
|
168
|
-
//
|
|
169
|
-
// coreDispatch(
|
|
170
|
-
// removeCohort({
|
|
171
|
-
// shouldShowMessage: false,
|
|
172
|
-
// id: prevCohort,
|
|
173
|
-
// }),
|
|
174
|
-
// );
|
|
175
|
-
// coreDispatch(setCurrentCohortId(payload.id));
|
|
176
|
-
// coreDispatch(updateCohortName(newName));
|
|
177
|
-
// }
|
|
178
|
-
// } else {
|
|
179
|
-
// coreDispatch(
|
|
180
|
-
// addNewSavedCohort({
|
|
181
|
-
// id: payload.id,
|
|
182
|
-
// name: payload.name,
|
|
183
|
-
// filters: buildGqlOperationToFilterSet(payload.filters),
|
|
184
|
-
// caseSet: { status: 'uninitialized' },
|
|
185
|
-
// counts: {
|
|
186
|
-
// ...NullCountsData,
|
|
187
|
-
// },
|
|
188
|
-
// modified_datetime: payload.modified_datetime,
|
|
189
|
-
// saved: true,
|
|
190
|
-
// modified: false,
|
|
191
|
-
// }),
|
|
192
|
-
// );
|
|
193
|
-
//
|
|
194
|
-
// if (setAsCurrent) {
|
|
195
|
-
// coreDispatch(setCurrentCohortId(payload.id));
|
|
196
|
-
// tempCohortMsg = [`savedCohort|${newName}|${payload.id}`];
|
|
197
|
-
// } else {
|
|
198
|
-
// tempCohortMsg = [
|
|
199
|
-
// `savedCohortSetCurrent|${payload.name}|${payload.id}`,
|
|
200
|
-
// ];
|
|
201
|
-
// }
|
|
202
|
-
// }
|
|
203
|
-
//
|
|
204
|
-
// if (saveAs && initialName !== newName) {
|
|
205
|
-
// // Should discard local changes from current cohort when saving as
|
|
206
|
-
// await fetchSavedFilters(prevCohort)
|
|
207
|
-
// .unwrap()
|
|
208
|
-
// .then((payload) => {
|
|
209
|
-
// coreDispatch(
|
|
210
|
-
// discardCohortChanges({
|
|
211
|
-
// filters: buildGqlOperationToFilterSet(payload.filters),
|
|
212
|
-
// showMessage: false,
|
|
213
|
-
// id: prevCohort,
|
|
214
|
-
// }),
|
|
215
|
-
// );
|
|
216
|
-
// });
|
|
217
|
-
// }
|
|
218
|
-
//
|
|
219
|
-
// // Need to wait for request removing outdated cohorts to finish when replacing cohort
|
|
220
|
-
// if (replace) {
|
|
221
|
-
// setCohortSavedMessage(tempCohortMsg);
|
|
222
|
-
// setCohortReplaced(true);
|
|
223
|
-
// } else {
|
|
224
|
-
// coreDispatch(setCohortMessage(tempCohortMsg));
|
|
225
|
-
// closeModal();
|
|
226
|
-
// }
|
|
227
|
-
// })
|
|
228
|
-
// .catch((e: FetchBaseQueryError) => {
|
|
229
|
-
// if (
|
|
230
|
-
// (e.data as { message: string })?.message ===
|
|
231
|
-
// 'Bad Request: Name must be unique (case-insensitive)'
|
|
232
|
-
// ) {
|
|
233
|
-
// setShowReplaceCohort(true);
|
|
234
|
-
// } else {
|
|
235
|
-
// onClose();
|
|
236
|
-
// coreDispatch(showModal({ modal: Modals.SaveCohortErrorModal }));
|
|
237
|
-
// }
|
|
238
|
-
// });
|
|
239
|
-
// };
|
|
240
|
-
//
|
|
241
|
-
// const UpdateBody = () => (
|
|
242
|
-
// <>
|
|
243
|
-
// <div className="p-4">
|
|
244
|
-
// <p className="font-content text-sm">
|
|
245
|
-
// A saved cohort with same name already exists. Are you sure you want to
|
|
246
|
-
// replace it?
|
|
247
|
-
// </p>
|
|
248
|
-
// <p className="text-xs font-content mt-1">
|
|
249
|
-
// You cannot undo this action.
|
|
250
|
-
// </p>
|
|
251
|
-
// </div>
|
|
252
|
-
// <ModalButtonContainer data-testid="modal-button-container">
|
|
253
|
-
// <Button
|
|
254
|
-
// variant="outline"
|
|
255
|
-
// className={'bg-white'}
|
|
256
|
-
// color="secondary"
|
|
257
|
-
// onClick={() => setShowReplaceCohort(false)}
|
|
258
|
-
// >
|
|
259
|
-
// Cancel
|
|
260
|
-
// </Button>
|
|
261
|
-
// <Button
|
|
262
|
-
// variant={'filled'}
|
|
263
|
-
// color="secondary"
|
|
264
|
-
// onClick={() => {
|
|
265
|
-
// saveAction(enteredName, true);
|
|
266
|
-
// }}
|
|
267
|
-
// data-testid="replace-cohort-button"
|
|
268
|
-
// loading={isLoading || cohortListLoading}
|
|
269
|
-
// >
|
|
270
|
-
// Replace
|
|
271
|
-
// </Button>
|
|
272
|
-
// </ModalButtonContainer>
|
|
273
|
-
// </>
|
|
274
|
-
// );
|
|
275
|
-
//
|
|
276
|
-
// return (
|
|
277
|
-
// <Modal
|
|
278
|
-
// opened={opened}
|
|
279
|
-
// onClose={showReplaceCohort ? () => setShowReplaceCohort(false) : onClose}
|
|
280
|
-
// title={
|
|
281
|
-
// showReplaceCohort
|
|
282
|
-
// ? 'Replace Existing Cohort'
|
|
283
|
-
// : saveAs
|
|
284
|
-
// ? 'Save Cohort As'
|
|
285
|
-
// : 'Save Cohort'
|
|
286
|
-
// }
|
|
287
|
-
// size="md"
|
|
288
|
-
// classNames={{
|
|
289
|
-
// content: 'p-0',
|
|
290
|
-
// title: 'text-xl',
|
|
291
|
-
// }}
|
|
292
|
-
// >
|
|
293
|
-
// {showReplaceCohort ? (
|
|
294
|
-
// <UpdateBody />
|
|
295
|
-
// ) : (
|
|
296
|
-
// <SaveOrCreateEntityBody
|
|
297
|
-
// entity="cohort"
|
|
298
|
-
// action="Save"
|
|
299
|
-
// initialName={initialName}
|
|
300
|
-
// onClose={onClose}
|
|
301
|
-
// onActionClick={(name: string) => {
|
|
302
|
-
// saveAction(name, false);
|
|
303
|
-
// setEnteredName(name);
|
|
304
|
-
// }}
|
|
305
|
-
// descriptionMessage={
|
|
306
|
-
// saveAs
|
|
307
|
-
// ? 'Provide a name to save your current cohort as a new cohort'
|
|
308
|
-
// : 'Provide a name to save the cohort.'
|
|
309
|
-
// }
|
|
310
|
-
// closeOnAction={false}
|
|
311
|
-
// loading={isLoading}
|
|
312
|
-
// disallowedNames={INVALID_COHORT_NAMES}
|
|
313
|
-
// />
|
|
314
|
-
// )}
|
|
315
|
-
// </Modal>
|
|
316
|
-
// );
|
|
317
|
-
// };
|
|
318
|
-
//
|
|
319
|
-
// export default SaveCohortModal;
|
|
320
|
-
//# sourceMappingURL=SaveCohortModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SaveCohortModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.tsx"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,2DAA2D;AAC3D,qEAAqE;AACrE,iDAAiD;AACjD,WAAW;AACX,kBAAkB;AAClB,uBAAuB;AACvB,sBAAsB;AACtB,4BAA4B;AAC5B,wBAAwB;AACxB,sBAAsB;AACtB,qBAAqB;AACrB,0BAA0B;AAC1B,eAAe;AACf,uBAAuB;AACvB,kCAAkC;AAClC,oBAAoB;AACpB,qBAAqB;AACrB,4BAA4B;AAC5B,mCAAmC;AACnC,+BAA+B;AAC/B,0BAA0B;AAC1B,eAAe;AACf,YAAY;AACZ,iBAAiB;AACjB,2BAA2B;AAC3B,yCAAyC;AACzC,uBAAuB;AACvB,sEAAsE;AACtE,yFAAyF;AACzF,yEAAyE;AACzE,iCAAiC;AACjC,EAAE;AACF,MAAM;AACN,oDAAoD;AACpD,+DAA+D;AAC/D,2DAA2D;AAC3D,wHAAwH;AACxH,6DAA6D;AAC7D,iEAAiE;AACjE,wHAAwH;AACxH,wHAAwH;AACxH,sFAAsF;AACtF,sBAAsB;AACtB,MAAM;AACN,6BAA6B;AAC7B,YAAY;AACZ,sBAAsB;AACtB,aAAa;AACb,cAAc;AACd,aAAa;AACb,iBAAiB;AACjB,gCAAgC;AAChC,0BAA0B;AAC1B,oBAAoB;AACpB,OAAO;AACP,qBAAqB;AACrB,0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ityModalProps {
|
|
2
|
-
entity: string;
|
|
3
|
-
action?: string;
|
|
4
|
-
initialName?: string;
|
|
5
|
-
opened: boolean;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
onActionClick: (name: string) => void;
|
|
8
|
-
onNameChange?: (name: string) => boolean;
|
|
9
|
-
descriptionMessage?: string;
|
|
10
|
-
additionalDuplicateMessage?: string;
|
|
11
|
-
disallowedNames?: string[];
|
|
12
|
-
}
|
|
13
|
-
export declare const SaveOrCreateEntityModal: ({ entity, action, initialName, opened, onClose, onActionClick, onNameChange, descriptionMessage, additionalDuplicateMessage, disallowedNames, }: SaveOrCreateEntityModalProps) => JSX.Element;
|
|
14
|
-
interface SaveOrCreateEntityBodyProps {
|
|
15
|
-
entity: string;
|
|
16
|
-
action?: string;
|
|
17
|
-
initialName?: string;
|
|
18
|
-
onClose: () => void;
|
|
19
|
-
onActionClick: (name: string) => void;
|
|
20
|
-
onNameChange?: (name: string) => boolean;
|
|
21
|
-
descriptionMessage?: string;
|
|
22
|
-
additionalDuplicateMessage?: string;
|
|
23
|
-
closeOnAction?: boolean;
|
|
24
|
-
loading?: boolean;
|
|
25
|
-
disallowedNames?: string[];
|
|
26
|
-
}
|
|
27
|
-
export declare const SaveOrCreateEntityBody: ({ action, initialName, onClose, onActionClick, onNameChange, descriptionMessage, additionalDuplicateMessage, closeOnAction, loading, disallowedNames, }: SaveOrCreateEntityBodyProps) => JSX.Element;
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=SaveOrCreateEntityModal.d.ts.map
|
package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SaveOrCreateEntityModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.tsx"],"names":[],"mappings":"AAMA,UAAU,4BAA4B;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AACD,eAAO,MAAM,uBAAuB,oJAWjC,4BAA4B,KAAG,GAAG,CAAC,OAsBrC,CAAC;AAEF,UAAU,2BAA2B;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,sBAAsB,4JAWhC,2BAA2B,KAAG,GAAG,CAAC,OA+GpC,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
|
-
import { upperFirst } from 'lodash';
|
|
25
|
-
import { Box, Button, Group, Modal, TextInput, Loader } from '@mantine/core';
|
|
26
|
-
import { useForm } from '@mantine/form';
|
|
27
|
-
import ErrorMessage from '../../../../components/ErrorMessage';
|
|
28
|
-
import { WarningIconMessage } from '../../../../utils/icons';
|
|
29
|
-
export var SaveOrCreateEntityModal = function (_a) {
|
|
30
|
-
var entity = _a.entity, _b = _a.action, action = _b === void 0 ? 'Save' : _b, _c = _a.initialName, initialName = _c === void 0 ? '' : _c, opened = _a.opened, onClose = _a.onClose, onActionClick = _a.onActionClick, onNameChange = _a.onNameChange, descriptionMessage = _a.descriptionMessage, additionalDuplicateMessage = _a.additionalDuplicateMessage, _d = _a.disallowedNames, disallowedNames = _d === void 0 ? [] : _d;
|
|
31
|
-
return (_jsx(Modal, { title: "".concat(upperFirst(action), " ").concat(upperFirst(entity)), opened: opened, padding: 0, radius: "md", onClose: onClose, children: _jsx(SaveOrCreateEntityBody, { entity: entity, action: action, initialName: initialName, onClose: onClose, onActionClick: onActionClick, onNameChange: onNameChange, descriptionMessage: descriptionMessage, additionalDuplicateMessage: additionalDuplicateMessage, disallowedNames: disallowedNames }) }));
|
|
32
|
-
};
|
|
33
|
-
export var SaveOrCreateEntityBody = function (_a) {
|
|
34
|
-
var _b;
|
|
35
|
-
var _c = _a.action, action = _c === void 0 ? 'Save' : _c, _d = _a.initialName, initialName = _d === void 0 ? '' : _d, onClose = _a.onClose, onActionClick = _a.onActionClick, onNameChange = _a.onNameChange, descriptionMessage = _a.descriptionMessage, additionalDuplicateMessage = _a.additionalDuplicateMessage, _e = _a.closeOnAction, closeOnAction = _e === void 0 ? true : _e, _f = _a.loading, loading = _f === void 0 ? false : _f, _g = _a.disallowedNames, disallowedNames = _g === void 0 ? [] : _g;
|
|
36
|
-
var validationMessages = {
|
|
37
|
-
emptyField: 'Please fill out this field.',
|
|
38
|
-
invalidName: function (value) {
|
|
39
|
-
return "".concat(value, " is not a valid name for a saved cohort. Please try another name.");
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
var form = useForm({
|
|
43
|
-
initialValues: {
|
|
44
|
-
name: initialName,
|
|
45
|
-
},
|
|
46
|
-
validate: {
|
|
47
|
-
name: function (value) {
|
|
48
|
-
if (value.length === 0) {
|
|
49
|
-
return validationMessages.emptyField;
|
|
50
|
-
}
|
|
51
|
-
else if (disallowedNames.includes(value.trim().toLowerCase())) {
|
|
52
|
-
return validationMessages.invalidName(value);
|
|
53
|
-
}
|
|
54
|
-
return null;
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
// ignoring this error object as new one is being defined below
|
|
59
|
-
var _h = form.getInputProps('name'), _ = _h.error, inputProps = __rest(_h, ["error"]);
|
|
60
|
-
var validationError = form.errors.name;
|
|
61
|
-
var error = validationError && (_jsx(ErrorMessage, { message: validationError }));
|
|
62
|
-
var description = Object.keys(form.errors).length === 0 &&
|
|
63
|
-
(onNameChange && !onNameChange((((_b = form === null || form === void 0 ? void 0 : form.values) === null || _b === void 0 ? void 0 : _b.name) || '').trim()) ? (_jsxs("span", { className: "text-warningColorText", children: [_jsx(WarningIconMessage, { className: "text-warningColor inline mr-0.5" }), "A", ' ', "Cohort with the same name already exists.", ' ', additionalDuplicateMessage && additionalDuplicateMessage] })) : (_jsx("span", { children: "Maximum 100 characters" })));
|
|
64
|
-
var handleActionClick = function () {
|
|
65
|
-
var _a;
|
|
66
|
-
if (form.validate().hasErrors || loading)
|
|
67
|
-
return;
|
|
68
|
-
onActionClick((((_a = form === null || form === void 0 ? void 0 : form.values) === null || _a === void 0 ? void 0 : _a.name) || '').trim());
|
|
69
|
-
if (closeOnAction) {
|
|
70
|
-
onClose();
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
return (_jsxs(_Fragment, { children: [_jsxs(Box, { className: "font-content mt-1 mr-6 mb-5 ml-3", children: [_jsx("p", { className: "mb-2 text-sm font-content", children: descriptionMessage && descriptionMessage }), _jsx(TextInput, __assign({ withAsterisk: true, label: "Name", placeholder: "New Cohort Name", description: description, classNames: {
|
|
74
|
-
description: 'mt-1',
|
|
75
|
-
input: 'font-content data-[invalid=true]:text-utility-error data-[invalid=true]:border-utility-error',
|
|
76
|
-
error: 'text-utility-error',
|
|
77
|
-
}, "data-autofocus": true, maxLength: 100, error: error, inputWrapperOrder: ['label', 'input', 'error', 'description'] }, inputProps, { "aria-required": true, "data-testid": "textbox-name-input-field" }))] }), _jsx(Box, { style: {
|
|
78
|
-
backgroundColor: 'var(--mantine-color-base-1)',
|
|
79
|
-
padding: 'var(--mantine-spacing-md)',
|
|
80
|
-
borderRadius: 'var(--mantine-radius-md)',
|
|
81
|
-
borderTopRightRadius: 0,
|
|
82
|
-
borderTopLeftRadius: 0,
|
|
83
|
-
}, children: _jsxs(Group, { justify: "flex-end", children: [_jsx(Button, { "data-testid": "button-cancel-save", variant: "outline", classNames: { root: 'bg-base-max' }, color: "secondary", onClick: onClose, children: "Cancel" }), _jsx(Button, { variant: "filled", color: "secondary", onClick: handleActionClick, "data-testid": "button-save-name", leftSection: loading ? _jsx(Loader, { size: 15, color: "white" }) : undefined, children: upperFirst(action) })] }) })] }));
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=SaveOrCreateEntityModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SaveOrCreateEntityModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAc7D,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,EAWT;QAV7B,MAAM,YAAA,EACN,cAAe,EAAf,MAAM,mBAAG,MAAM,KAAA,EACf,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,MAAM,YAAA,EACN,OAAO,aAAA,EACP,aAAa,mBAAA,EACb,YAAY,kBAAA,EACZ,kBAAkB,wBAAA,EAClB,0BAA0B,gCAAA,EAC1B,uBAAoB,EAApB,eAAe,mBAAG,EAAE,KAAA;IAEpB,OAAO,CACL,KAAC,KAAK,IACJ,KAAK,EAAE,UAAG,UAAU,CAAC,MAAM,CAAC,cAAI,UAAU,CAAC,MAAM,CAAC,CAAE,EACpD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAE,OAAO,YAEhB,KAAC,sBAAsB,IACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,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EACZ,WAAW,EAAE,iBAAiB,EAC9B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE;4BACV,WAAW,EAAE,MAAM;4BACnB,KAAK,EACH,8FAA8F;4BAChG,KAAK,EAAE,oBAAoB;yBAC5B,0BAED,SAAS,EAAE,GAAG,EACd,KAAK,EAAE,KAAK,EACZ,iBAAiB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,IACzD,UAAU,0CAEF,0BAA0B,IACtC,IACE,EACN,KAAC,GAAG,IACF,KAAK,EAAE;oBACL,eAAe,EAAE,6BAA6B;oBAC9C,OAAO,EAAE,2BAA2B;oBACpC,YAAY,EAAE,0BAA0B;oBACxC,oBAAoB,EAAE,CAAC;oBACvB,mBAAmB,EAAE,CAAC;iBACvB,YAED,MAAC,KAAK,IAAC,OAAO,EAAC,UAAU,aACvB,KAAC,MAAM,mBACO,oBAAoB,EAChC,OAAO,EAAC,SAAS,EACjB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EACnC,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,OAAO,uBAGT,EACT,KAAC,MAAM,IACL,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,iBAAiB,iBACd,kBAAkB,EAC9B,WAAW,EACT,OAAO,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,OAAO,GAAG,CAAC,CAAC,CAAC,SAAS,YAGzD,UAAU,CAAC,MAAM,CAAC,GACZ,IACH,GACJ,IACL,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryExpression.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/QueryExpression/QueryExpression.tsx"],"names":[],"mappings":"AAiBA,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,eAAe,cAAe,oBAAoB,4CAyDvD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { clearCohortFilters, removeCohortFilter, selectCurrentCohortId, selectCurrentCohortName, setCohortFilter, updateCohortFilter, useCoreDispatch, useCoreSelector, } from '@gen3/core';
|
|
3
|
-
import QueryExpressionSection from './QueryExpressionSection';
|
|
4
|
-
import { QueryExpressionContext } from './QueryExpressionContext';
|
|
5
|
-
import { useCohortFacetFilters } from '../hooks';
|
|
6
|
-
var QueryExpression = function (_a) {
|
|
7
|
-
var index = _a.index;
|
|
8
|
-
var currentCohortId = useCoreSelector(function (state) {
|
|
9
|
-
return selectCurrentCohortId(state);
|
|
10
|
-
});
|
|
11
|
-
var currentCohortName = useCoreSelector(function (state) {
|
|
12
|
-
return selectCurrentCohortName(state);
|
|
13
|
-
});
|
|
14
|
-
var filters = useCohortFacetFilters(index);
|
|
15
|
-
return (_jsx(QueryExpressionContext.Provider, { value: {
|
|
16
|
-
cohortName: currentCohortName,
|
|
17
|
-
cohortId: currentCohortId,
|
|
18
|
-
filters: filters,
|
|
19
|
-
displayOnly: false,
|
|
20
|
-
useClearCohortFilters: function () {
|
|
21
|
-
var dispatch = useCoreDispatch();
|
|
22
|
-
return function (index) { return dispatch(clearCohortFilters({ index: index })); };
|
|
23
|
-
},
|
|
24
|
-
useRemoveFilter: function () {
|
|
25
|
-
var dispatch = useCoreDispatch();
|
|
26
|
-
return function (index, field) {
|
|
27
|
-
return dispatch(removeCohortFilter({
|
|
28
|
-
index: index,
|
|
29
|
-
field: field,
|
|
30
|
-
}));
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
useUpdateFilters: function () {
|
|
34
|
-
var dispatch = useCoreDispatch();
|
|
35
|
-
return function (index, field, filter) {
|
|
36
|
-
return dispatch(updateCohortFilter({
|
|
37
|
-
index: index,
|
|
38
|
-
field: field,
|
|
39
|
-
filter: filter,
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
useSetCohortFilters: function () {
|
|
44
|
-
var dispatch = useCoreDispatch();
|
|
45
|
-
return function (index, filters) {
|
|
46
|
-
return dispatch(setCohortFilter({
|
|
47
|
-
index: index,
|
|
48
|
-
filters: filters,
|
|
49
|
-
}));
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
}, children: _jsx(QueryExpressionSection, { index: index }) }));
|
|
53
|
-
};
|
|
54
|
-
export default QueryExpression;
|
|
55
|
-
//# sourceMappingURL=QueryExpression.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryExpression.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/QueryExpression/QueryExpression.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,kBAAkB,EAIlB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAMjD,IAAM,eAAe,GAAG,UAAC,EAA+B;QAA7B,KAAK,WAAA;IAC9B,IAAM,eAAe,GAAG,eAAe,CAAC,UAAC,KAAgB;QACvD,OAAA,qBAAqB,CAAC,KAAK,CAAC;IAA5B,CAA4B,CAC7B,CAAC;IACF,IAAM,iBAAiB,GAAG,eAAe,CAAC,UAAC,KAAgB;QACzD,OAAA,uBAAuB,CAAC,KAAK,CAAC;IAA9B,CAA8B,CAC/B,CAAC;IAEF,IAAM,OAAO,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAE7C,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,IAC9B,KAAK,EAAE;YACL,UAAU,EAAE,iBAA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ressionContext: React.Context<{
|
|
4
|
-
displayOnly: boolean;
|
|
5
|
-
filters: FilterSet;
|
|
6
|
-
cohortName: string;
|
|
7
|
-
cohortId: string;
|
|
8
|
-
useClearCohortFilters: () => (index: string) => void;
|
|
9
|
-
useUpdateFilters: () => (index: string, field: string, filter: Operation) => void;
|
|
10
|
-
useRemoveFilter: () => (index: string, field: string) => void;
|
|
11
|
-
useSetCohortFilters: () => (index: string, filters: FilterSet) => void;
|
|
12
|
-
}>;
|
|
13
|
-
//# sourceMappingURL=QueryExpressionContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryExpressionContext.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/QueryExpression/QueryExpressionContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,SAAS,EACT,SAAS,EAKV,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,sBAAsB;iBACpB,OAAO;aACX,SAAS;gBACN,MAAM;cACR,MAAM;2BACO,MAAM,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;sBAClC,MAAM,CACtB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,SAAS,KACd,IAAI;qBACQ,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI;yBACxC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,KAAK,IAAI;EAyCtE,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { clearCohortFilters, removeCohortFilter, setCohortFilter, updateCohortFilter, useCoreDispatch, } from '@gen3/core';
|
|
3
|
-
export var QueryExpressionContext = React.createContext({
|
|
4
|
-
displayOnly: false,
|
|
5
|
-
cohortId: 'default',
|
|
6
|
-
cohortName: 'default',
|
|
7
|
-
filters: { mode: 'and', root: {} },
|
|
8
|
-
useClearCohortFilters: function () {
|
|
9
|
-
var dispatch = useCoreDispatch();
|
|
10
|
-
return function (index) { return dispatch(clearCohortFilters({ index: index })); };
|
|
11
|
-
},
|
|
12
|
-
useRemoveFilter: function () {
|
|
13
|
-
var dispatch = useCoreDispatch();
|
|
14
|
-
return function (index, field) {
|
|
15
|
-
return dispatch(removeCohortFilter({
|
|
16
|
-
index: index,
|
|
17
|
-
field: field,
|
|
18
|
-
}));
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
useUpdateFilters: function () {
|
|
22
|
-
var dispatch = useCoreDispatch();
|
|
23
|
-
return function (index, field, filter) {
|
|
24
|
-
return dispatch(updateCohortFilter({
|
|
25
|
-
index: index,
|
|
26
|
-
field: field,
|
|
27
|
-
filter: filter,
|
|
28
|
-
}));
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
useSetCohortFilters: function () {
|
|
32
|
-
var dispatch = useCoreDispatch();
|
|
33
|
-
return function (index, filters) {
|
|
34
|
-
return dispatch(setCohortFilter({
|
|
35
|
-
index: index,
|
|
36
|
-
filters: filters,
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=QueryExpressionContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryExpressionContext.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/QueryExpression/QueryExpressionContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAGlB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,IAAM,sBAAsB,GAAG,KAAK,CAAC,aAAa,CAatD;IACD,WAAW,EAAE,KAAK;IAClB,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAe;IAC/C,qBAAqB,EAAE;QACrB,IAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;QACnC,OAAO,UAAC,KAAa,IAAK,OAAA,QAAQ,CAAC,kBAAkB,CAAC,EAAE,KAAK,OAAA,EAAE,CAAC,CAAC,EAAvC,CAAuC,CAAC;IACpE,CAAC;IACD,eAAe,EAAE;QACf,IAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;QACnC,OAAO,UAAC,KAAa,EAAE,KAAa;YAClC,OAAA,QAAQ,CACN,kBAAkB,CAAC;gBACjB,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,KAAK;aACb,CAAC,CACH;QALD,CAKC,CAAC;IACN,CAAC;IACD,gBAAgB,EAAE;QAChB,IAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;QACnC,OAAO,UAAC,KAAa,EAAE,KAAa,EAAE,MAAiB;YACrD,OAAA,QAAQ,CACN,kBAAkB,CAAC;gBACjB,KAAK,OAAA;gBACL,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,MAAM;aACf,CAAC,CACH;QAND,CAMC,CAAC;IACN,CAAC;IACD,mBAAmB,EAAE;QACnB,IAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;QACnC,OAAO,UAAC,KAAa,EAAE,OAAkB;YACvC,OAAA,QAAQ,CACN,eAAe,CAAC;gBACd,KAAK,OAAA;gBACL,OAAO,EAAE,OAAO;aACjB,CAAC,CACH;QALD,CAKC,CAAC;IACN,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryExpressionSection.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/QueryExpression/QueryExpressionSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAyGxE,UAAU,2BAA2B;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAiPjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryExpressionSection.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/QueryExpression/QueryExpressionSection.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,mBAAmB,IAAI,aAAa,EACpC,iBAAiB,IAAI,WAAW,GACjC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,uBAAuB,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EACL,+BAA+B,GAEhC,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EACL,qCAAqC,EACrC,gCAAgC,GACjC,MAAM,UAAU,CAAC;AAClB,OAAO,wBAAwB,MAAM,sEAAsE,CAAC;AAC5G,OAAO,gBAAgB,MAAM,8CAA8C,CAAC;AAE5E,IAAM,wBAAwB,GAAG,EAAE,CAAC,GAAG,8NAAA,2JAUtC,IAAA,CAAC;AAEF,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B,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,0CAAE,YAAY;gEAC/B,qBAAqB,CAAC,EAE5B,SAAS,EAAE,gCAAgC,CACzC,uBAAuB,CACxB,YAEA,uBAAuB,CAAC,CAAC,CAAC,CACzB,KAAC,KAAK,CAAC,QAAQ,cACb,KAAC,aAAa,IAAC,IAAI,EAAE,EAAE,iBAAc,MAAM,GAAG,GAC/B,CAClB,CAAC,CAAC,CAAC,CACF,KAAC,KAAK,CAAC,QAAQ,cACb,KAAC,WAAW,IAAC,IAAI,EAAE,EAAE,iBAAc,MAAM,GAAG,GAC7B,CAClB,GACM,GACD,IACN,IACS,IACb,EACN,6BACc,qBAAqB,EACjC,SAAS,EAAC,yDAAyD,EACnE,KAAK,EACH,uBAAuB;4BACrB,CAAC,CAAC,EAAE,SAAS,EAAE,UAAG,eAAe,OAAI,EAAE,SAAS,EAAE,QAAQ,EAAE;4BAC5D,CAAC,CAAC,SAAS,EAEf,GAAG,EAAE,UAAU,YAEd,SAAS,CAAC,CAAC,CAAC,CACX,2BACc,8BAA8B,EAC1C,SAAS,EAAC,cAAc,8CAGtB,CACL,CAAC,CAAC,CAAC,CACF,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAC,CAAC;4BAC9B,OAAO,wBAAwB,CAC7B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EACf,KAAK,EACL,GAAG,EACH,WAAW,CACZ,CAAC;wBACJ,CAAC,CAAC,CACH,GACG,IACF,GACmC,GAClB,CAC5B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryExpressionsExpandedContext.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,CAAC;IAC7E,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,+BAA+B,mDACP,2BAA2B,KAAK,IAAI,EACtD,CAAC"}
|
package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryExpressionsExpandedContext.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,CAAC,IAAM,+BAA+B,GAAG,KAAK,CAAC,aAAa,CAEhE,CAAC,EAAE,EAAE,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRepresentation.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/QueryExpression/QueryRepresentation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAE3E,OAAO,EACL,MAAM,EACN,WAAW,EACX,mBAAmB,EAEnB,QAAQ,EAER,QAAQ,EACR,gBAAgB,EAChB,SAAS,EACT,SAAS,EAMT,YAAY,EACZ,QAAQ,EACR,YAAY,EACb,MAAM,YAAY,CAAC;AAkEpB,KAAK,cAAc,GACf,QAAQ,GACR,gBAAgB,GAChB,mBAAmB,GACnB,WAAW,CAAC;AAEhB,KAAK,cAAc,GAAG,cAAc,GAAG,MAAM,GAAG,SAAS,CAAC;AAC1D,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