@gen3/frontend 0.10.94 → 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 +5783 -2696
- 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/DropdownMenu/DropdownMenu.d.ts +64 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.js +38 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +2 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +141 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +1 -0
- package/dist/dts/components/DropdownMenu/index.d.ts +3 -0
- package/dist/dts/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/index.js +3 -0
- package/dist/dts/components/DropdownMenu/index.js.map +1 -0
- 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/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.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/EmptyTableMessage.d.ts +5 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts.map +1 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.js +9 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.js.map +1 -0
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts +7 -0
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +1 -0
- package/dist/dts/components/MessageCards/ErrorMessage.js +8 -0
- package/dist/dts/components/MessageCards/ErrorMessage.js.map +1 -0
- 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/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.js +42 -4
- package/dist/dts/components/charts/echarts/BarChart.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/echarts/ReactECharts.js +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.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/charts/utils.d.ts +1 -1
- package/dist/dts/components/charts/utils.d.ts.map +1 -1
- package/dist/dts/components/charts/utils.js +2 -4
- package/dist/dts/components/charts/utils.js.map +1 -1
- package/dist/dts/components/facets/EnumFacet.d.ts +2 -1
- package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/EnumFacet.js.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/FacetEnumList.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.js +7 -30
- package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
- package/dist/dts/components/facets/FacetSelector.d.ts +1 -1
- package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetSelector.js +9 -7
- package/dist/dts/components/facets/FacetSelector.js.map +1 -1
- package/dist/dts/components/facets/types.d.ts +1 -0
- package/dist/dts/components/facets/types.d.ts.map +1 -1
- package/dist/dts/components/facets/types.js.map +1 -1
- package/dist/dts/components/facets/utils.d.ts +4 -2
- package/dist/dts/components/facets/utils.d.ts.map +1 -1
- package/dist/dts/components/facets/utils.js +27 -1
- package/dist/dts/components/facets/utils.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
- 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/AccessLevel.d.ts +8 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.js +20 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +4 -20
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +20 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +37 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +18 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +149 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +122 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +19 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +52 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +10 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +37 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +33 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +7 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js +80 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.js +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +15 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +8 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +32 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +190 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +145 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +79 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.js +21 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +49 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.js +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js +21 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +6 -2
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +15 -19
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +8 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.js +51 -10
- package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +32 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts +2 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts +3 -2
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +56 -60
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js +48 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js +81 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js +22 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js +17 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts +12 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js +2 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts +52 -12
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts +4 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js +70 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +2 -2
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +5 -4
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +2 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts +4 -1
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +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/index.d.ts +5 -2
- package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/index.js +4 -1
- package/dist/dts/features/CohortBuilder/index.js.map +1 -1
- package/dist/dts/features/CohortBuilder/types.d.ts +15 -7
- package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/types.js +6 -0
- package/dist/dts/features/CohortBuilder/types.js.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.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +20 -12
- 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 +28 -8
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +9 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +147 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts +2 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js +36 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts +461 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +51 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +97 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +435 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +64 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +572 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts +7 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.js +2 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.js.map +1 -0
- 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 +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/FilterExpandSlice.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts +2 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +25 -7
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.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 +42 -34
- 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 +22 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js +147 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -0
- 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/SavedCohortManagerSlice.d.ts +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +284 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts +8 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js +9 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts +10 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +157 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts +3 -4
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js +6 -11
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts +9 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js +15 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +2 -2
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +17 -3
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +13 -3
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts +12 -0
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +40 -1
- 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/registerApp.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/registerApp.js +5 -3
- package/dist/dts/features/CohortDiscovery/registerApp.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.d.ts +88 -3
- package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.js +45 -1
- 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/CohortSimilarity/appApi.d.ts +4 -6
- package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/appApi.js +3 -1
- package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -1
- package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/registerApp.js +1 -3
- package/dist/dts/features/CohortSimilarity/registerApp.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/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.js +2 -2
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.js.map +1 -1
- package/dist/dts/features/DataLibrary/SearchAndActions.js +1 -1
- package/dist/dts/features/DataLibrary/SearchAndActions.js.map +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js.map +1 -1
- package/dist/dts/features/DataLibrary/tests/utils.unit.test.js +2 -1
- package/dist/dts/features/DataLibrary/tests/utils.unit.test.js.map +1 -1
- package/dist/dts/features/DataLibrary/utils.d.ts +0 -10
- package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/utils.js +0 -34
- package/dist/dts/features/DataLibrary/utils.js.map +1 -1
- package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/CategoryPanel.js +9 -9
- package/dist/dts/features/Dictionary/CategoryPanel.js.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryWithContext.js.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/DataLoaders/IndexedMetadata/DataLoader.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js +2 -2
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.js +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +8 -6
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryProvider.d.ts +0 -3
- package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryProvider.js +0 -5
- package/dist/dts/features/Discovery/DiscoveryProvider.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.js +7 -5
- package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.js +3 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts +2 -3
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js +3 -3
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts +1 -2
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +5 -6
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/index.d.ts +2 -4
- package/dist/dts/features/Discovery/index.d.ts.map +1 -1
- package/dist/dts/features/Discovery/index.js +1 -3
- package/dist/dts/features/Discovery/index.js.map +1 -1
- package/dist/dts/features/Discovery/types.d.ts +5 -108
- package/dist/dts/features/Discovery/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.js +0 -16
- package/dist/dts/features/Discovery/types.js.map +1 -1
- package/dist/dts/features/Discovery/utils.d.ts +2 -8
- package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/utils.js +1 -28
- package/dist/dts/features/Discovery/utils.js.map +1 -1
- package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Footer/FooterColumn.js.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
- package/dist/dts/features/Navigation/NavPageLayout.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/Study/StudyDetails/DetailsAuthorizationIcon.d.ts +9 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js +11 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts +19 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js +56 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts +15 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js +44 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +10 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js +36 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts +10 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +19 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts +8 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js +31 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts +9 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js +11 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +5 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.js +283 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts +10 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js +45 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.d.ts +10 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.js +11 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts +9 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.js +8 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.js.map +1 -0
- package/dist/dts/features/Study/StudyProvider.d.ts +12 -0
- package/dist/dts/features/Study/StudyProvider.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyProvider.js +23 -0
- package/dist/dts/features/Study/StudyProvider.js.map +1 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts +3 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts.map +1 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.js +20 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.js.map +1 -0
- package/dist/dts/features/Study/TableRenderers/types.d.ts +14 -0
- package/dist/dts/features/Study/TableRenderers/types.d.ts.map +1 -0
- package/dist/dts/features/Study/TableRenderers/types.js +2 -0
- package/dist/dts/features/Study/TableRenderers/types.js.map +1 -0
- package/dist/dts/features/Study/index.d.ts +5 -0
- package/dist/dts/features/Study/index.d.ts.map +1 -0
- package/dist/dts/features/Study/index.js +4 -0
- package/dist/dts/features/Study/index.js.map +1 -0
- package/dist/dts/features/Study/types.d.ts +91 -0
- package/dist/dts/features/Study/types.d.ts.map +1 -0
- package/dist/dts/features/Study/types.js +8 -0
- package/dist/dts/features/Study/types.js.map +1 -0
- package/dist/dts/features/Study/utils.d.ts +10 -0
- package/dist/dts/features/Study/utils.d.ts.map +1 -0
- package/dist/dts/features/Study/utils.js +28 -0
- package/dist/dts/features/Study/utils.js.map +1 -0
- package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.d.ts.map +1 -1
- package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.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/index.d.ts +3 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +7 -1
- package/dist/dts/index.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 +22 -34
- 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 +28 -22
- 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/pages/admin/analysis/Analysis.d.ts +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
- package/dist/dts/types/icons.d.ts +5 -0
- package/dist/dts/types/icons.d.ts.map +1 -0
- package/dist/dts/types/icons.js +6 -0
- package/dist/dts/types/icons.js.map +1 -0
- package/dist/dts/utils/access.d.ts +10 -0
- package/dist/dts/utils/access.d.ts.map +1 -0
- package/dist/dts/utils/access.js +11 -0
- package/dist/dts/utils/access.js.map +1 -0
- package/dist/dts/utils/authMapping.d.ts +4 -0
- package/dist/dts/utils/authMapping.d.ts.map +1 -1
- package/dist/dts/utils/authMapping.js.map +1 -1
- package/dist/dts/utils/convertResourcePathsToTree.d.ts +8 -0
- package/dist/dts/utils/convertResourcePathsToTree.d.ts.map +1 -0
- package/dist/dts/utils/convertResourcePathsToTree.js +43 -0
- package/dist/dts/utils/convertResourcePathsToTree.js.map +1 -0
- package/dist/dts/utils/dataAuthorization.d.ts +11 -0
- package/dist/dts/utils/dataAuthorization.d.ts.map +1 -0
- package/dist/dts/utils/dataAuthorization.js +2 -0
- package/dist/dts/utils/dataAuthorization.js.map +1 -0
- package/dist/dts/utils/date.d.ts +16 -0
- package/dist/dts/utils/date.d.ts.map +1 -1
- package/dist/dts/utils/date.js +54 -8
- package/dist/dts/utils/date.js.map +1 -1
- package/dist/dts/utils/index.d.ts +4 -3
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +4 -2
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/layout.d.ts +2 -0
- package/dist/dts/utils/layout.d.ts.map +1 -0
- package/dist/dts/utils/layout.js +20 -0
- package/dist/dts/utils/layout.js.map +1 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts +2 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts.map +1 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js +150 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js.map +1 -0
- 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 +5798 -2718
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +412 -329
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +0 -2
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts +0 -3
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js +0 -13
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js.map +0 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { createContext, useReducer } from 'react';
|
|
12
|
+
import { useDeepCompareCallback, useDeepCompareEffect } from 'use-deep-compare';
|
|
13
|
+
import { isEqual } from 'lodash';
|
|
14
|
+
import { showNotification } from '@mantine/notifications';
|
|
15
|
+
import { DeleteCohortNotification, DiscardChangesCohortNotification, ErrorCohortNotification, NewCohortNotification, SavedCohortNotification, SavedCohortNotificationWithSetAsCurrent, SavedCurrentCohortNotification, } from './CohortNotifications';
|
|
16
|
+
var cohortMessageReducer = function (state, action) {
|
|
17
|
+
switch (action.type) {
|
|
18
|
+
case 'update':
|
|
19
|
+
return __spreadArray(__spreadArray([], state, true), action.payload, true);
|
|
20
|
+
case 'clear':
|
|
21
|
+
return state.filter(function (message) { return !isEqual(message, action.payload); });
|
|
22
|
+
default:
|
|
23
|
+
return state;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
export var CohortNotificationContext = createContext(undefined);
|
|
27
|
+
var CohortNotificationProvider = function (_a) {
|
|
28
|
+
var useSetActiveCohort = _a.useSetActiveCohort, children = _a.children;
|
|
29
|
+
var _b = useReducer(cohortMessageReducer, []), cohortMessage = _b[0], dispatch = _b[1];
|
|
30
|
+
useDeepCompareEffect(function () {
|
|
31
|
+
for (var _i = 0, cohortMessage_1 = cohortMessage; _i < cohortMessage_1.length; _i++) {
|
|
32
|
+
var message = cohortMessage_1[_i];
|
|
33
|
+
switch (message.cmd) {
|
|
34
|
+
case 'newCohort':
|
|
35
|
+
showNotification({
|
|
36
|
+
message: (_jsx(NewCohortNotification, { cohortName: message.param1 })),
|
|
37
|
+
classNames: {
|
|
38
|
+
description: 'flex flex-col content-center text-center',
|
|
39
|
+
},
|
|
40
|
+
autoClose: 5000,
|
|
41
|
+
closeButtonProps: { 'aria-label': 'Close notification' },
|
|
42
|
+
id: "new-cohort-".concat(message.param1),
|
|
43
|
+
});
|
|
44
|
+
break;
|
|
45
|
+
case 'deleteCohort':
|
|
46
|
+
showNotification({
|
|
47
|
+
message: (_jsx(DeleteCohortNotification, { cohortName: message.param1 })),
|
|
48
|
+
classNames: {
|
|
49
|
+
description: 'flex flex-col content-center text-center',
|
|
50
|
+
},
|
|
51
|
+
autoClose: 5000,
|
|
52
|
+
closeButtonProps: { 'aria-label': 'Close notification' },
|
|
53
|
+
id: "delete-cohort-".concat(message.param1),
|
|
54
|
+
});
|
|
55
|
+
break;
|
|
56
|
+
case 'savedCohort':
|
|
57
|
+
showNotification({
|
|
58
|
+
message: (_jsx(SavedCohortNotification, { cohortName: message.param1 })),
|
|
59
|
+
classNames: {
|
|
60
|
+
description: 'flex flex-col content-center text-center',
|
|
61
|
+
},
|
|
62
|
+
autoClose: 5000,
|
|
63
|
+
closeButtonProps: { 'aria-label': 'Close notification' },
|
|
64
|
+
id: "saved-cohort-".concat(message.param1),
|
|
65
|
+
});
|
|
66
|
+
break;
|
|
67
|
+
case 'savedCohortSetCurrent':
|
|
68
|
+
showNotification({
|
|
69
|
+
message: (_jsx(SavedCohortNotificationWithSetAsCurrent, { cohortName: message.param1, cohortId: message
|
|
70
|
+
.param2, useSetActiveCohort: useSetActiveCohort })),
|
|
71
|
+
classNames: {
|
|
72
|
+
description: 'flex flex-col content-center text-center',
|
|
73
|
+
},
|
|
74
|
+
autoClose: 5000,
|
|
75
|
+
closeButtonProps: { 'aria-label': 'Close notification' },
|
|
76
|
+
id: "saved-cohort-set-current-".concat(message.param2),
|
|
77
|
+
});
|
|
78
|
+
break;
|
|
79
|
+
case 'savedCurrentCohort':
|
|
80
|
+
showNotification({
|
|
81
|
+
message: _jsx(SavedCurrentCohortNotification, {}),
|
|
82
|
+
classNames: {
|
|
83
|
+
description: 'flex flex-col content-center text-center',
|
|
84
|
+
},
|
|
85
|
+
autoClose: 5000,
|
|
86
|
+
closeButtonProps: { 'aria-label': 'Close notification' },
|
|
87
|
+
id: 'saved-current-cohort',
|
|
88
|
+
});
|
|
89
|
+
break;
|
|
90
|
+
case 'discardChanges':
|
|
91
|
+
showNotification({
|
|
92
|
+
message: _jsx(DiscardChangesCohortNotification, {}),
|
|
93
|
+
classNames: {
|
|
94
|
+
description: 'flex flex-col content-center text-center',
|
|
95
|
+
},
|
|
96
|
+
autoClose: 5000,
|
|
97
|
+
closeButtonProps: { 'aria-label': 'Close notification' },
|
|
98
|
+
id: 'discard-changes',
|
|
99
|
+
});
|
|
100
|
+
break;
|
|
101
|
+
case 'error':
|
|
102
|
+
showNotification({
|
|
103
|
+
message: (_jsx(ErrorCohortNotification, { errorType: message.param1 })),
|
|
104
|
+
classNames: {
|
|
105
|
+
description: 'flex flex-col content-center text-center',
|
|
106
|
+
},
|
|
107
|
+
autoClose: 5000,
|
|
108
|
+
closeButtonProps: { 'aria-label': 'Close notification' },
|
|
109
|
+
id: "cohort-error-".concat(message.param1),
|
|
110
|
+
});
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
dispatch({ type: 'clear', payload: message });
|
|
114
|
+
}
|
|
115
|
+
}, [cohortMessage, useSetActiveCohort]);
|
|
116
|
+
var updateCohortMessage = useDeepCompareCallback(function (newMessages) {
|
|
117
|
+
dispatch({ type: 'update', payload: newMessages });
|
|
118
|
+
}, [dispatch]);
|
|
119
|
+
return (_jsx(CohortNotificationContext.Provider, { value: updateCohortMessage, children: children }));
|
|
120
|
+
};
|
|
121
|
+
export default CohortNotificationProvider;
|
|
122
|
+
//# sourceMappingURL=CohortNotificationProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortNotificationProvider.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortNotificationProvider.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAc,EAAE,aAAa,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EAChC,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,uCAAuC,EACvC,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAO/B,IAAM,oBAAoB,GAAG,UAC3B,KAAkC,EAClC,MAEyD;IAEzD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,QAAQ;YACX,uCAAW,KAAK,SAAK,MAAM,CAAC,OAAO,QAAE;QACvC,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,MAAM,CAAC,UAAC,OAAO,IAAK,OAAA,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAjC,CAAiC,CAAC,CAAC;QACtE;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,yBAAyB,GAAG,aAAa,CAEpD,SAAS,CAAC,CAAC;AAMb,IAAM,0BAA0B,GAA6C,UAAC,EAG7E;QAFC,kBAAkB,wBAAA,EAClB,QAAQ,cAAA;IAEF,IAAA,KAA4B,UAAU,CAAC,oBAAoB,EAAE,EAAE,CAAC,EAA/D,aAAa,QAAA,EAAE,QAAQ,QAAwC,CAAC;IAEvE,oBAAoB,CAAC;QACnB,KAAsB,UAAa,EAAb,+BAAa,EAAb,2BAAa,EAAb,IAAa,EAAE,CAAC;YAAjC,IAAM,OAAO,sBAAA;YAChB,QAAQ,OAAO,CAAC,GAAG,EAAE,CAAC;gBACpB,KAAK,WAAW;oBACd,gBAAgB,CAAC;wBACf,OAAO,EAAE,CACP,KAAC,qBAAqB,IACpB,UAAU,EACP,OAA8C,CAAC,MAAM,GAExD,CACH;wBACD,UAAU,EAAE;4BACV,WAAW,EAAE,0CAA0C;yBACxD;wBACD,SAAS,EAAE,IAAI;wBACf,gBAAgB,EAAE,EAAE,YAAY,EAAE,oBAAoB,EAAE;wBACxD,EAAE,EAAE,qBACD,OAA8C,CAAC,MAAM,CACtD;qBACH,CAAC,CAAC;oBACH,MAAM;gBACR,KAAK,cAAc;oBACjB,gBAAgB,CAAC;wBACf,OAAO,EAAE,CACP,KAAC,wBAAwB,IACvB,UAAU,EACP,OAA8C,CAAC,MAAM,GAExD,CACH;wBACD,UAAU,EAAE;4BACV,WAAW,EAAE,0CAA0C;yBACxD;wBACD,SAAS,EAAE,IAAI;wBACf,gBAAgB,EAAE,EAAE,YAAY,EAAE,oBAAoB,EAAE;wBACxD,EAAE,EAAE,wBACD,OAA8C,CAAC,MAAM,CACtD;qBACH,CAAC,CAAC;oBACH,MAAM;gBACR,KAAK,aAAa;oBAChB,gBAAgB,CAAC;wBACf,OAAO,EAAE,CACP,KAAC,uBAAuB,IACtB,UAAU,EACP,OAA8C,CAAC,MAAM,GAExD,CACH;wBACD,UAAU,EAAE;4BACV,WAAW,EAAE,0CAA0C;yBACxD;wBACD,SAAS,EAAE,IAAI;wBACf,gBAAgB,EAAE,EAAE,YAAY,EAAE,oBAAoB,EAAE;wBACxD,EAAE,EAAE,uBACD,OAA8C,CAAC,MAAM,CACtD;qBACH,CAAC,CAAC;oBACH,MAAM;gBACR,KAAK,uBAAuB;oBAC1B,gBAAgB,CAAC;wBACf,OAAO,EAAE,CACP,KAAC,uCAAuC,IACtC,UAAU,EACP,OAA8C,CAAC,MAAM,EAExD,QAAQ,EACL,OAA8C;iCAC5C,MAAgB,EAErB,kBAAkB,EAAE,kBAAkB,GACtC,CACH;wBACD,UAAU,EAAE;4BACV,WAAW,EAAE,0CAA0C;yBACxD;wBACD,SAAS,EAAE,IAAI;wBACf,gBAAgB,EAAE,EAAE,YAAY,EAAE,oBAAoB,EAAE;wBACxD,EAAE,EAAE,mCACD,OAA8C,CAAC,MAAM,CACtD;qBACH,CAAC,CAAC;oBACH,MAAM;gBACR,KAAK,oBAAoB;oBACvB,gBAAgB,CAAC;wBACf,OAAO,EAAE,KAAC,8BAA8B,KAAG;wBAC3C,UAAU,EAAE;4BACV,WAAW,EAAE,0CAA0C;yBACxD;wBACD,SAAS,EAAE,IAAI;wBACf,gBAAgB,EAAE,EAAE,YAAY,EAAE,oBAAoB,EAAE;wBACxD,EAAE,EAAE,sBAAsB;qBAC3B,CAAC,CAAC;oBACH,MAAM;gBACR,KAAK,gBAAgB;oBACnB,gBAAgB,CAAC;wBACf,OAAO,EAAE,KAAC,gCAAgC,KAAG;wBAC7C,UAAU,EAAE;4BACV,WAAW,EAAE,0CAA0C;yBACxD;wBACD,SAAS,EAAE,IAAI;wBACf,gBAAgB,EAAE,EAAE,YAAY,EAAE,oBAAoB,EAAE;wBACxD,EAAE,EAAE,iBAAiB;qBACtB,CAAC,CAAC;oBACH,MAAM;gBACR,KAAK,OAAO;oBACV,gBAAgB,CAAC;wBACf,OAAO,EAAE,CACP,KAAC,uBAAuB,IACtB,SAAS,EACN,OAA8C,CAAC,MAAM,GAExD,CACH;wBACD,UAAU,EAAE;4BACV,WAAW,EAAE,0CAA0C;yBACxD;wBACD,SAAS,EAAE,IAAI;wBACf,gBAAgB,EAAE,EAAE,YAAY,EAAE,oBAAoB,EAAE;wBACxD,EAAE,EAAE,uBACD,OAA8C,CAAC,MAAM,CACtD;qBACH,CAAC,CAAC;oBACH,MAAM;YACV,CAAC;YACD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAChD,CAAC;IACH,CAAC,EAAE,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAExC,IAAM,mBAAmB,GAAG,sBAAsB,CAChD,UAAC,WAAwC;QACvC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IACrD,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,KAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,mBAAmB,YAC3D,QAAQ,GAC0B,CACtC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CohortNotificationProps {
|
|
3
|
+
readonly cohortName: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const NewCohortNotification: React.FC<CohortNotificationProps>;
|
|
6
|
+
export declare const SavedCohortNotification: React.FC<CohortNotificationProps>;
|
|
7
|
+
export interface CohortWithSetOptionNotificationProps extends CohortNotificationProps {
|
|
8
|
+
readonly cohortId: string;
|
|
9
|
+
readonly useSetActiveCohort: () => (cohortId: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const NewCohortNotificationWithSetAsCurrent: React.FC<CohortWithSetOptionNotificationProps>;
|
|
12
|
+
export declare const SavedCohortNotificationWithSetAsCurrent: React.FC<CohortWithSetOptionNotificationProps>;
|
|
13
|
+
export declare const DeleteCohortNotification: React.FC<CohortNotificationProps>;
|
|
14
|
+
export declare const SavedCurrentCohortNotification: React.FC;
|
|
15
|
+
export declare const DiscardChangesCohortNotification: React.FC;
|
|
16
|
+
export declare const ErrorCohortNotification: ({ errorType, }: {
|
|
17
|
+
errorType: string;
|
|
18
|
+
}) => JSX.Element;
|
|
19
|
+
//# sourceMappingURL=CohortNotifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortNotifications.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAUnE,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAUrE,CAAC;AAEF,MAAM,WAAW,oCACf,SAAQ,uBAAuB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/D;AAED,eAAO,MAAM,qCAAqC,EAAE,KAAK,CAAC,EAAE,CAC1D,oCAAoC,CAwBrC,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,KAAK,CAAC,EAAE,CAC5D,oCAAoC,CAwBrC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAUtE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAMlD,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAMpD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,gBAErC;IACD,SAAS,EAAE,MAAM,CAAC;CACnB,KAAG,GAAG,CAAC,OAcP,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '@mantine/core';
|
|
3
|
+
import { cleanNotifications } from '@mantine/notifications';
|
|
4
|
+
export var NewCohortNotification = function (_a) {
|
|
5
|
+
var cohortName = _a.cohortName;
|
|
6
|
+
return (_jsx(_Fragment, { children: _jsxs("p", { children: [_jsx("b", { children: cohortName }), " has been created. This is now your current cohort."] }) }));
|
|
7
|
+
};
|
|
8
|
+
export var SavedCohortNotification = function (_a) {
|
|
9
|
+
var cohortName = _a.cohortName;
|
|
10
|
+
return (_jsx(_Fragment, { children: _jsxs("p", { children: [_jsx("b", { children: cohortName }), " has been saved. This is now your current cohort."] }) }));
|
|
11
|
+
};
|
|
12
|
+
export var NewCohortNotificationWithSetAsCurrent = function (_a) {
|
|
13
|
+
var cohortName = _a.cohortName, cohortId = _a.cohortId, useSetActiveCohort = _a.useSetActiveCohort;
|
|
14
|
+
var setActiveCohort = useSetActiveCohort();
|
|
15
|
+
return (_jsx(_Fragment, { children: _jsxs("p", { children: [_jsx("b", { children: cohortName }), " has been created.", _jsx(Button, { variant: "white", onClick: function () {
|
|
16
|
+
setActiveCohort(cohortId);
|
|
17
|
+
cleanNotifications();
|
|
18
|
+
}, children: "Set this as your current cohort." })] }) }));
|
|
19
|
+
};
|
|
20
|
+
export var SavedCohortNotificationWithSetAsCurrent = function (_a) {
|
|
21
|
+
var cohortName = _a.cohortName, cohortId = _a.cohortId, useSetActiveCohort = _a.useSetActiveCohort;
|
|
22
|
+
var setActiveCohort = useSetActiveCohort();
|
|
23
|
+
return (_jsx(_Fragment, { children: _jsxs("p", { children: [_jsx("b", { children: cohortName }), " has been saved.", _jsx(Button, { variant: "white", onClick: function () {
|
|
24
|
+
setActiveCohort(cohortId);
|
|
25
|
+
cleanNotifications();
|
|
26
|
+
}, children: "Set this as your current cohort." })] }) }));
|
|
27
|
+
};
|
|
28
|
+
export var DeleteCohortNotification = function (_a) {
|
|
29
|
+
var cohortName = _a.cohortName;
|
|
30
|
+
return (_jsx(_Fragment, { children: _jsxs("p", { children: [_jsx("b", { children: cohortName }), " has been deleted."] }) }));
|
|
31
|
+
};
|
|
32
|
+
export var SavedCurrentCohortNotification = function () {
|
|
33
|
+
return (_jsx(_Fragment, { children: _jsx("p", { children: "Cohort has been saved." }) }));
|
|
34
|
+
};
|
|
35
|
+
export var DiscardChangesCohortNotification = function () {
|
|
36
|
+
return (_jsx(_Fragment, { children: _jsx("p", { children: "Cohort changes have been discarded." }) }));
|
|
37
|
+
};
|
|
38
|
+
export var ErrorCohortNotification = function (_a) {
|
|
39
|
+
var errorType = _a.errorType;
|
|
40
|
+
var errorText = '';
|
|
41
|
+
if (errorType === 'saving') {
|
|
42
|
+
errorText = 'There was a problem saving the cohort.';
|
|
43
|
+
}
|
|
44
|
+
else if (errorType === 'deleting') {
|
|
45
|
+
errorText = 'There was a problem deleting the cohort.';
|
|
46
|
+
}
|
|
47
|
+
else if (errorType === 'discarding') {
|
|
48
|
+
errorText = 'There was a problem discarding the unsaved changes';
|
|
49
|
+
}
|
|
50
|
+
return (_jsx(_Fragment, { children: _jsx("p", { children: errorText }) }));
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=CohortNotifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortNotifications.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortNotifications.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAM5D,MAAM,CAAC,IAAM,qBAAqB,GAAsC,UAAC,EAE/C;QADxB,UAAU,gBAAA;IAEV,OAAO,CACL,4BACE,wBACE,sBAAI,UAAU,GAAK,2DACjB,GACH,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,uBAAuB,GAAsC,UAAC,EAEjD;QADxB,UAAU,gBAAA;IAEV,OAAO,CACL,4BACE,wBACE,sBAAI,UAAU,GAAK,yDACjB,GACH,CACJ,CAAC;AACJ,CAAC,CAAC;AAQF,MAAM,CAAC,IAAM,qCAAqC,GAE9C,UAAC,EAIkC;QAHrC,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,kBAAkB,wBAAA;IAElB,IAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAE7C,OAAO,CACL,4BACE,wBACE,sBAAI,UAAU,GAAK,wBACnB,KAAC,MAAM,IACL,OAAO,EAAC,OAAO,EACf,OAAO,EAAE;wBACP,eAAe,CAAC,QAAQ,CAAC,CAAC;wBAC1B,kBAAkB,EAAE,CAAC;oBACvB,CAAC,iDAGM,IACP,GACH,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,uCAAuC,GAEhD,UAAC,EAIkC;QAHrC,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,kBAAkB,wBAAA;IAElB,IAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAE7C,OAAO,CACL,4BACE,wBACE,sBAAI,UAAU,GAAK,sBACnB,KAAC,MAAM,IACL,OAAO,EAAC,OAAO,EACf,OAAO,EAAE;wBACP,eAAe,CAAC,QAAQ,CAAC,CAAC;wBAC1B,kBAAkB,EAAE,CAAC;oBACvB,CAAC,iDAGM,IACP,GACH,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,wBAAwB,GAAsC,UAAC,EAElD;QADxB,UAAU,gBAAA;IAEV,OAAO,CACL,4BACE,wBACE,sBAAI,UAAU,GAAK,0BACjB,GACH,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,8BAA8B,GAAa;IACtD,OAAO,CACL,4BACE,iDAA6B,GAC5B,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,gCAAgC,GAAa;IACxD,OAAO,CACL,4BACE,8DAA0C,GACzC,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,EAIvC;QAHC,SAAS,eAAA;IAIT,IAAI,SAAS,GAAG,EAAE,CAAC;IACnB,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC3B,SAAS,GAAG,wCAAwC,CAAC;IACvD,CAAC;SAAM,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;QACpC,SAAS,GAAG,0CAA0C,CAAC;IACzD,CAAC;SAAM,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;QACtC,SAAS,GAAG,oDAAoD,CAAC;IACnE,CAAC;IACD,OAAO,CACL,4BACE,sBAAI,SAAS,GAAK,GACjB,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Cohort } from './types';
|
|
3
|
+
interface CohortSelectorProps {
|
|
4
|
+
readonly selectAvailableCohorts: () => Cohort[];
|
|
5
|
+
readonly selectCurrentCohort: () => Cohort;
|
|
6
|
+
readonly setActiveCohort: (newCohort: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const CohortSelector2: React.FC<CohortSelectorProps>;
|
|
9
|
+
export default CohortSelector2;
|
|
10
|
+
//# sourceMappingURL=CohortSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortSelector.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGjC,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,sBAAsB,EAAE,MAAM,MAAM,EAAE,CAAC;IAChD,QAAQ,CAAC,mBAAmB,EAAE,MAAM,MAAM,CAAC;IAC3C,QAAQ,CAAC,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqElD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useDeepCompareMemo } from 'use-deep-compare';
|
|
3
|
+
import { Select } from '@mantine/core';
|
|
4
|
+
import { UnsavedIcon, CustomCohortSelectItem } from './CustomCohortSelectItem';
|
|
5
|
+
import { FaCaretDown as DropdownIcon } from 'react-icons/fa';
|
|
6
|
+
var CohortSelector2 = function (_a) {
|
|
7
|
+
var selectAvailableCohorts = _a.selectAvailableCohorts, selectCurrentCohort = _a.selectCurrentCohort, setActiveCohort = _a.setActiveCohort;
|
|
8
|
+
var cohorts = selectAvailableCohorts();
|
|
9
|
+
var currentCohort = selectCurrentCohort();
|
|
10
|
+
var cohortStatusMessage = currentCohort.saved
|
|
11
|
+
? 'Changes not saved'
|
|
12
|
+
: 'Cohort not saved';
|
|
13
|
+
var isSavedUnchanged = currentCohort.saved && !currentCohort.modified;
|
|
14
|
+
var cohortList = useDeepCompareMemo(function () {
|
|
15
|
+
return cohorts
|
|
16
|
+
.sort(function (a, b) { return (a.modified_datetime <= b.modified_datetime ? 1 : -1); })
|
|
17
|
+
.map(function (x) { return ({
|
|
18
|
+
value: x.id,
|
|
19
|
+
label: x.name,
|
|
20
|
+
isSavedUnchanged: x.saved && !x.modified,
|
|
21
|
+
cohortStatusMessage: x.saved
|
|
22
|
+
? 'Changes not saved'
|
|
23
|
+
: 'Cohort not saved',
|
|
24
|
+
}); });
|
|
25
|
+
}, [cohorts]);
|
|
26
|
+
return (_jsxs("div", { className: "flex flex-col pt-5", "data-testid": "cohort-list-dropdown", children: [_jsx(Select, { data: cohortList, searchable: true, clearable: false, value: currentCohort.id, onChange: function (id) {
|
|
27
|
+
if (id !== null) {
|
|
28
|
+
setActiveCohort(id);
|
|
29
|
+
}
|
|
30
|
+
}, renderOption: CustomCohortSelectItem, classNames: {
|
|
31
|
+
root: 'border-secondary-darkest w-56 md:w-80 z-[290]',
|
|
32
|
+
input: 'text-heading font-medium text-primary-darkest rounded-l-none h-[50px] border-primary border-l-2',
|
|
33
|
+
option: 'text-heading font-normal text-primary-darkest data-selected:bg-primary-lighter hover:bg-accent-lightest hover:text-accent-contrast-lightest my-0.5',
|
|
34
|
+
}, "aria-label": "Select cohort", "data-testid": "switchButton", rightSection: _jsxs("div", { className: "flex gap-1 items-center", children: [!isSavedUnchanged && _jsx(UnsavedIcon, { label: cohortStatusMessage }), _jsx(DropdownIcon, { size: 20, className: "text-primary" })] }), rightSectionWidth: !isSavedUnchanged ? 45 : 30, styles: { section: { pointerEvents: 'none' } } }), _jsx("div", { "data-testid": "text-cohort-bar-message", className: "ml-auto text-heading text-sm font-semibold mt-0.85 text-primary-contrast ".concat(!isSavedUnchanged ? 'visible' : 'invisible'), children: cohortStatusMessage })] }));
|
|
35
|
+
};
|
|
36
|
+
export default CohortSelector2;
|
|
37
|
+
//# sourceMappingURL=CohortSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortSelector.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortSelector.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAE/E,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQ7D,IAAM,eAAe,GAAkC,UAAC,EAIvD;QAHC,sBAAsB,4BAAA,EACtB,mBAAmB,yBAAA,EACnB,eAAe,qBAAA;IAEf,IAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,IAAM,aAAa,GAAG,mBAAmB,EAAE,CAAC;IAE5C,IAAM,mBAAmB,GAAG,aAAa,CAAC,KAAK;QAC7C,CAAC,CAAC,mBAAmB;QACrB,CAAC,CAAC,kBAAkB,CAAC;IACvB,IAAM,gBAAgB,GAAG,aAAa,CAAC,KAAK,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IAExE,IAAM,UAAU,GAAG,kBAAkB,CACnC;QACE,OAAA,OAAO;aACJ,IAAI,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAArD,CAAqD,CAAC;aACrE,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC;YACX,KAAK,EAAE,CAAC,CAAC,EAAE;YACX,KAAK,EAAE,CAAC,CAAC,IAAI;YACb,gBAAgB,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ;YACxC,mBAAmB,EAAE,CAAC,CAAC,KAAK;gBAC1B,CAAC,CAAC,mBAAmB;gBACrB,CAAC,CAAC,kBAAkB;SACvB,CAAC,EAPU,CAOV,CAAC;IATL,CASK,EACP,CAAC,OAAO,CAAC,CACV,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,oBAAoB,iBAAa,sBAAsB,aACpE,KAAC,MAAM,IACL,IAAI,EAAE,UAAU,EAChB,UAAU,QACV,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,aAAa,CAAC,EAAE,EACvB,QAAQ,EAAE,UAAC,EAAE;oBACX,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC;wBAChB,eAAe,CAAC,EAAE,CAAC,CAAC;oBACtB,CAAC;gBACH,CAAC,EACD,YAAY,EAAE,sBAA6B,EAC3C,UAAU,EAAE;oBACV,IAAI,EAAE,+CAA+C;oBACrD,KAAK,EACH,iGAAiG;oBACnG,MAAM,EACJ,oJAAoJ;iBACvJ,gBACU,eAAe,iBACd,cAAc,EAC1B,YAAY,EACV,eAAK,SAAS,EAAC,yBAAyB,aACrC,CAAC,gBAAgB,IAAI,KAAC,WAAW,IAAC,KAAK,EAAE,mBAAmB,GAAI,EACjE,KAAC,YAAY,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,cAAc,GAAG,IAC/C,EAER,iBAAiB,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAC9C,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,GAC9C,EACF,6BACc,yBAAyB,EACrC,SAAS,EAAE,mFACT,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAC3C,YAED,mBAAmB,GAChB,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComboboxItem, ComboboxLikeRenderOptionInput } from '@mantine/core';
|
|
3
|
+
interface UnsavedIconProps {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const UnsavedIcon: React.FC<UnsavedIconProps>;
|
|
7
|
+
export interface ComboboxItemModified extends ComboboxItem {
|
|
8
|
+
readonly isSavedUnchanged: boolean;
|
|
9
|
+
readonly cohortStatusMessage: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const CustomCohortSelectItem: ({ option: { value, label, isSavedUnchanged, cohortStatusMessage, ...others }, }: ComboboxLikeRenderOptionInput<ComboboxItemModified>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=CustomCohortSelectItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomCohortSelectItem.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CustomCohortSelectItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,YAAY,EACZ,6BAA6B,EAC9B,MAAM,eAAe,CAAC;AAEvB,UAAU,gBAAgB;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+ClD,CAAC;AAEF,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;CACtC;AAED,eAAO,MAAM,sBAAsB,GAAI,iFAEpC,6BAA6B,CAAC,oBAAoB,CAAC,4CAWrD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
24
|
+
import { Tooltip, } from '@mantine/core';
|
|
25
|
+
export var UnsavedIcon = function (_a) {
|
|
26
|
+
var label = _a.label;
|
|
27
|
+
return (_jsx(Tooltip, { label: label, withArrow: true, children: _jsx("span", { className: "leading-0 pointer-events-auto", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", role: "img", children: [_jsx("title", { children: label }), _jsxs("g", { id: "Group_811", "data-name": "Group 811", transform: "translate(-1952 -56)", children: [_jsx("circle", { id: "Ellipse_39", "data-name": "Ellipse 39", cx: "8", cy: "8", r: "8", transform: "translate(1952 56)", fill: "#fff" }), _jsx("circle", { id: "Ellipse_38", "data-name": "Ellipse 38", cx: "7", cy: "7", r: "7", transform: "translate(1953 57)", fill: "#825d00" }), _jsx("path", { id: "Icon_awesome-exclamation-circle", "data-name": "Icon awesome-exclamation-circle", d: "M12.563,6.563a6,6,0,1,1-6-6A6,6,0,0,1,12.563,6.563Zm-6,1.21A1.113,1.113,0,1,0,7.675,8.885,1.113,1.113,0,0,0,6.563,7.772Zm-1.057-4,.179,3.29a.29.29,0,0,0,.29.275H7.15a.29.29,0,0,0,.29-.275l.179-3.29a.29.29,0,0,0-.29-.306H5.8A.29.29,0,0,0,5.506,3.772Z", transform: "translate(1953.438 57.524)", fill: "#faaf00" })] })] }) }) }));
|
|
28
|
+
};
|
|
29
|
+
export var CustomCohortSelectItem = function (_a) {
|
|
30
|
+
var _b = _a.option, value = _b.value, label = _b.label, isSavedUnchanged = _b.isSavedUnchanged, cohortStatusMessage = _b.cohortStatusMessage, others = __rest(_b, ["value", "label", "isSavedUnchanged", "cohortStatusMessage"]);
|
|
31
|
+
return (_jsx("div", __assign({}, others, { className: "w-full", children: _jsxs("span", { className: "flex justify-between gap-2 items-center", children: [_jsx("span", { className: "basis-11/12 break-all", children: label }), _jsx("div", { className: "basis-1/12 text-right leading-0", children: !isSavedUnchanged && _jsx(UnsavedIcon, { label: cohortStatusMessage }) })] }) })));
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=CustomCohortSelectItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomCohortSelectItem.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CustomCohortSelectItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EACL,OAAO,GAGR,MAAM,eAAe,CAAC;AAMvB,MAAM,CAAC,IAAM,WAAW,GAA+B,UAAC,EAAS;QAAP,KAAK,WAAA;IAC7D,OAAO,CACL,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,kBAC9B,eAAM,SAAS,EAAC,+BAA+B,YAC7C,eACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,KAAK,aAEV,0BAAQ,KAAK,GAAS,EACtB,aACE,EAAE,EAAC,WAAW,eACJ,WAAW,EACrB,SAAS,EAAC,sBAAsB,aAEhC,iBACE,EAAE,EAAC,YAAY,eACL,YAAY,EACtB,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,GAAG,EACL,SAAS,EAAC,oBAAoB,EAC9B,IAAI,EAAC,MAAM,GACX,EACF,iBACE,EAAE,EAAC,YAAY,eACL,YAAY,EACtB,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,GAAG,EACL,SAAS,EAAC,oBAAoB,EAC9B,IAAI,EAAC,SAAS,GACd,EACF,eACE,EAAE,EAAC,iCAAiC,eAC1B,iCAAiC,EAC3C,CAAC,EAAC,2PAA2P,EAC7P,SAAS,EAAC,4BAA4B,EACtC,IAAI,EAAC,SAAS,GACd,IACA,IACA,GACD,GACC,CACX,CAAC;AACJ,CAAC,CAAC;AAOF,MAAM,CAAC,IAAM,sBAAsB,GAAG,UAAC,EAEe;QADpD,cAA0E,EAAhE,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,gBAAgB,sBAAA,EAAE,mBAAmB,yBAAA,EAAK,MAAM,cAAhE,6DAAkE,CAAF;IAExE,OAAO,CACL,yBAAS,MAAM,IAAE,SAAS,EAAC,QAAQ,YACjC,gBAAM,SAAS,EAAC,yCAAyC,aACvD,eAAM,SAAS,EAAC,uBAAuB,YAAE,KAAK,GAAQ,EACtD,cAAK,SAAS,EAAC,iCAAiC,YAC7C,CAAC,gBAAgB,IAAI,KAAC,WAAW,IAAC,KAAK,EAAE,mBAAmB,GAAI,GAC7D,IACD,IACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const useSelectAvailableCohorts: () => import("@gen3/core").Cohort[];
|
|
2
|
+
export declare const useSelectCurrentCohort: () => import("@gen3/core").Cohort;
|
|
3
|
+
export declare const useAddUnsavedCohort: () => () => void;
|
|
4
|
+
export declare const useSetActiveCohort: () => (id: string) => void;
|
|
5
|
+
export declare const useDeleteCohort: () => () => Promise<void>;
|
|
6
|
+
export declare const useImportCohort: () => () => void;
|
|
7
|
+
//# sourceMappingURL=cohortActionHooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cohortActionHooks.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/cohortActionHooks.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,yBAAyB,qCAErC,CAAC;AAEF,eAAO,MAAM,sBAAsB,mCAElC,CAAC;AAEF,eAAO,MAAM,mBAAmB,kBAM/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,aAItB,MAAM,SAOd,CAAC;AAEF,eAAO,MAAM,eAAe,2BAiB3B,CAAC;AAEF,eAAO,MAAM,eAAe,kBAM3B,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { useDeepCompareCallback } from 'use-deep-compare';
|
|
38
|
+
import { addNewDefaultUnsavedCohort, selectAvailableCohorts, selectCurrentCohort, useCoreDispatch, useCoreSelector, setActiveCohort, removeCohort, } from '@gen3/core';
|
|
39
|
+
export var useSelectAvailableCohorts = function () {
|
|
40
|
+
return useCoreSelector(function (state) { return selectAvailableCohorts(state); });
|
|
41
|
+
};
|
|
42
|
+
export var useSelectCurrentCohort = function () {
|
|
43
|
+
return useCoreSelector(function (state) { return selectCurrentCohort(state); });
|
|
44
|
+
};
|
|
45
|
+
export var useAddUnsavedCohort = function () {
|
|
46
|
+
var coreDispatch = useCoreDispatch();
|
|
47
|
+
return function () {
|
|
48
|
+
coreDispatch(addNewDefaultUnsavedCohort());
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export var useSetActiveCohort = function () {
|
|
52
|
+
var coreDispatch = useCoreDispatch();
|
|
53
|
+
var handleCohortChange = useDeepCompareCallback(function (id) {
|
|
54
|
+
coreDispatch(setActiveCohort(id));
|
|
55
|
+
}, [coreDispatch]);
|
|
56
|
+
return handleCohortChange;
|
|
57
|
+
};
|
|
58
|
+
export var useDeleteCohort = function () {
|
|
59
|
+
var coreDispatch = useCoreDispatch();
|
|
60
|
+
var currentCohort = useCoreSelector(selectCurrentCohort);
|
|
61
|
+
var deleteCohort = useDeepCompareCallback(function () {
|
|
62
|
+
coreDispatch(removeCohort({}));
|
|
63
|
+
}, [coreDispatch]);
|
|
64
|
+
var handleDelete = useDeepCompareCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
65
|
+
return __generator(this, function (_a) {
|
|
66
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
67
|
+
// only delete cohort from BE if it's been saved before
|
|
68
|
+
deleteCohort();
|
|
69
|
+
resolve();
|
|
70
|
+
})];
|
|
71
|
+
});
|
|
72
|
+
}); }, [currentCohort, deleteCohort]);
|
|
73
|
+
return handleDelete;
|
|
74
|
+
};
|
|
75
|
+
export var useImportCohort = function () {
|
|
76
|
+
var coreDispatch = useCoreDispatch();
|
|
77
|
+
var handleImport = useDeepCompareCallback(function () { }, [coreDispatch]);
|
|
78
|
+
return handleImport;
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=cohortActionHooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cohortActionHooks.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/cohortActionHooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,eAAe,EACf,YAAY,GACb,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,IAAM,yBAAyB,GAAG;IACvC,OAAO,eAAe,CAAC,UAAC,KAAK,IAAK,OAAA,sBAAsB,CAAC,KAAK,CAAC,EAA7B,CAA6B,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,sBAAsB,GAAG;IACpC,OAAO,eAAe,CAAC,UAAC,KAAK,IAAK,OAAA,mBAAmB,CAAC,KAAK,CAAC,EAA1B,CAA0B,CAAC,CAAC;AAChE,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAG;IACjC,IAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,OAAO;QACL,YAAY,CAAC,0BAA0B,EAAE,CAAC,CAAC;IAC7C,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG;IAChC,IAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,IAAM,kBAAkB,GAAG,sBAAsB,CAC/C,UAAC,EAAU;QACT,YAAY,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;IACpC,CAAC,EACD,CAAC,YAAY,CAAC,CACf,CAAC;IAEF,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAAG;IAC7B,IAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IACvC,IAAM,aAAa,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;IAE3D,IAAM,YAAY,GAAG,sBAAsB,CAAC;QAC1C,YAAY,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;IACjC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,IAAM,YAAY,GAAG,sBAAsB,CAAC;;YAC1C,sBAAO,IAAI,OAAO,CAAO,UAAC,OAAO,EAAE,MAAM;oBACvC,uDAAuD;oBACvD,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,CAAC;gBACZ,CAAC,CAAC,EAAC;;SACJ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,CAAC;IAElC,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAAG;IAC7B,IAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,IAAM,YAAY,GAAG,sBAAsB,CAAC,cAAO,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEtE,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MdAdd as AddIcon, MdDelete as DeleteIcon, MdSave as SaveIcon, MdFileUpload as UploadIcon, MdDownload as DownloadIcon, MdClose as CloseIcon, MdAddCircle as MoreIcon, MdRemoveCircle as LessIcon, MdExpandLess as ExpandLessIcon, MdExpandMore as ExpandMoreIcon, MdSearch as SearchIcon, MdFlip as FlipIcon, MdLibraryAdd as AddFacetIcon, MdWarning as WarningTriangleIcon } from 'react-icons/md';
|
|
2
|
+
import { FaCaretDown as DropdownIcon, FaUndo as UndoIcon, FaPlus as PlusIcon, FaMinus as MinusIcon, FaCircle as CircleIcon } from 'react-icons/fa';
|
|
3
|
+
import { RiErrorWarningFill as WarningMessageIcon } from 'react-icons/ri';
|
|
4
|
+
export { UndoIcon, DropdownIcon, AddIcon, DeleteIcon, UploadIcon, SaveIcon, DownloadIcon, WarningMessageIcon, CloseIcon, CircleIcon, MoreIcon, LessIcon, ExpandLessIcon, ExpandMoreIcon, SearchIcon, FlipIcon, AddFacetIcon, WarningTriangleIcon, PlusIcon, MinusIcon, };
|
|
5
|
+
//# sourceMappingURL=commonIcons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonIcons.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/commonIcons.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,OAAO,EAChB,QAAQ,IAAI,UAAU,EACtB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,UAAU,EAC1B,UAAU,IAAI,YAAY,EAC1B,OAAO,IAAI,SAAS,EACpB,WAAW,IAAI,QAAQ,EACvB,cAAc,IAAI,QAAQ,EAC1B,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAC9B,QAAQ,IAAI,UAAU,EACtB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,YAAY,EAC5B,SAAS,IAAI,mBAAmB,EACjC,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,WAAW,IAAI,YAAY,EAC3B,MAAM,IAAI,QAAQ,EAClB,MAAM,IAAI,QAAQ,EAClB,OAAO,IAAI,SAAS,EACpB,QAAQ,IAAI,UAAU,EACvB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,SAAS,GACV,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MdAdd as AddIcon, MdDelete as DeleteIcon, MdSave as SaveIcon, MdFileUpload as UploadIcon, MdDownload as DownloadIcon, MdClose as CloseIcon, MdAddCircle as MoreIcon, MdRemoveCircle as LessIcon, MdExpandLess as ExpandLessIcon, MdExpandMore as ExpandMoreIcon, MdSearch as SearchIcon, MdFlip as FlipIcon, MdLibraryAdd as AddFacetIcon, MdWarning as WarningTriangleIcon, } from 'react-icons/md';
|
|
2
|
+
import { FaCaretDown as DropdownIcon, FaUndo as UndoIcon, FaPlus as PlusIcon, FaMinus as MinusIcon, FaCircle as CircleIcon, } from 'react-icons/fa';
|
|
3
|
+
import { RiErrorWarningFill as WarningMessageIcon } from 'react-icons/ri';
|
|
4
|
+
export { UndoIcon, DropdownIcon, AddIcon, DeleteIcon, UploadIcon, SaveIcon, DownloadIcon, WarningMessageIcon, CloseIcon, CircleIcon, MoreIcon, LessIcon, ExpandLessIcon, ExpandMoreIcon, SearchIcon, FlipIcon, AddFacetIcon, WarningTriangleIcon, PlusIcon, MinusIcon, };
|
|
5
|
+
//# sourceMappingURL=commonIcons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonIcons.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/commonIcons.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,OAAO,EAChB,QAAQ,IAAI,UAAU,EACtB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,UAAU,EAC1B,UAAU,IAAI,YAAY,EAC1B,OAAO,IAAI,SAAS,EACpB,WAAW,IAAI,QAAQ,EACvB,cAAc,IAAI,QAAQ,EAC1B,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAC9B,QAAQ,IAAI,UAAU,EACtB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,YAAY,EAC5B,SAAS,IAAI,mBAAmB,GACjC,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,WAAW,IAAI,YAAY,EAC3B,MAAM,IAAI,QAAQ,EAClB,MAAM,IAAI,QAAQ,EAClB,OAAO,IAAI,SAAS,EACpB,QAAQ,IAAI,UAAU,GACvB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,SAAS,GACV,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import CohortManager from './CohortManager';
|
|
2
|
+
import CohortNotificationProvider from './CohortNotificationProvider';
|
|
3
|
+
import { type CohortHooks } from './types';
|
|
4
|
+
export { CohortManager, CohortNotificationProvider, type CohortHooks };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,0BAA0B,EAAE,KAAK,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AAGtE,OAAO,EAAE,aAAa,EAAE,0BAA0B,EAAoB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface GenericCohortModalProps {
|
|
3
|
+
opened: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
actionText: string;
|
|
7
|
+
mainText: JSX.Element;
|
|
8
|
+
subText: JSX.Element;
|
|
9
|
+
onActionClick: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const GenericCohortModal: React.FC<GenericCohortModalProps>;
|
|
12
|
+
export default GenericCohortModal;
|
|
13
|
+
//# sourceMappingURL=GenericCohortModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericCohortModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/GenericCohortModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,uBAAuB;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAiDzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Modal, Button } from "@mantine/core";
|
|
3
|
+
var GenericCohortModal = function (_a) {
|
|
4
|
+
var opened = _a.opened, title = _a.title, onClose = _a.onClose, actionText = _a.actionText, onActionClick = _a.onActionClick, mainText = _a.mainText, subText = _a.subText;
|
|
5
|
+
return (_jsxs(Modal, { title: title, opened: opened, padding: 0, radius: "md", onClose: onClose, children: [_jsxs("div", { className: "font-montserrat py-5 pr-6 pl-2.5", children: [_jsx("p", { className: "font-medium text-[0.95rem] text-base-ink", children: mainText }), _jsx("p", { className: "text-sm pt-3 text-base-ink", children: subText })] }), _jsx("div", { className: "bg-base-lightest p-4", children: _jsxs("div", { className: "flex justify-end gap-3", children: [_jsx(Button, { variant: "outline", styles: {
|
|
6
|
+
root: {
|
|
7
|
+
backgroundColor: "white",
|
|
8
|
+
},
|
|
9
|
+
}, color: "secondary", onClick: onClose, children: "Cancel" }), _jsx(Button, { variant: "filled", color: "secondary", onClick: function () {
|
|
10
|
+
onActionClick();
|
|
11
|
+
onClose();
|
|
12
|
+
}, children: actionText })] }) })] }));
|
|
13
|
+
};
|
|
14
|
+
export default GenericCohortModal;
|
|
15
|
+
//# sourceMappingURL=GenericCohortModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericCohortModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/GenericCohortModal.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAY9C,IAAM,kBAAkB,GAAsC,UAAC,EAQ9D;QAPC,MAAM,YAAA,EACN,KAAK,WAAA,EACL,OAAO,aAAA,EACP,UAAU,gBAAA,EACV,aAAa,mBAAA,EACb,QAAQ,cAAA,EACR,OAAO,aAAA;IAEP,OAAO,CACL,MAAC,KAAK,IACJ,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAE,OAAO,aAEhB,eAAK,SAAS,EAAC,kCAAkC,aAC/C,YAAG,SAAS,EAAC,0CAA0C,YAAE,QAAQ,GAAK,EACtE,YAAG,SAAS,EAAC,4BAA4B,YAAE,OAAO,GAAK,IACnD,EACN,cAAK,SAAS,EAAC,sBAAsB,YACnC,eAAK,SAAS,EAAC,wBAAwB,aACrC,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,MAAM,EAAE;gCACN,IAAI,EAAE;oCACJ,eAAe,EAAE,OAAO;iCACzB;6BACF,EACD,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,OAAO,uBAGT,EACT,KAAC,MAAM,IACL,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE;gCACP,aAAa,EAAE,CAAC;gCAChB,OAAO,EAAE,CAAC;4BACZ,CAAC,YAEA,UAAU,GACJ,IACL,GACF,IACA,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveCohortErrorModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,QAAA,MAAM,oBAAoB,GAAI,iBAAiB,iBAAiB,4CAY/D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '@mantine/core';
|
|
3
|
+
var SaveCohortErrorModal = function (_a) {
|
|
4
|
+
var context = _a.context, id = _a.id;
|
|
5
|
+
return (_jsxs(_Fragment, { children: [_jsx("p", { className: "py-2 px-4", children: "There was a problem saving the cohort." }), _jsx("div", { className: "bg-base-lightest flex p-4 gap-4 justify-end mt-4 rounded-b-lg sticky", "data-testid": "modal-button-container", children: _jsx(Button, { onClick: function () { return context.closeModal(id); }, variant: "darkFunction", children: "OK" }) })] }));
|
|
6
|
+
};
|
|
7
|
+
export default SaveCohortErrorModal;
|
|
8
|
+
//# sourceMappingURL=SaveCohortErrorModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveCohortErrorModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGvC,IAAM,oBAAoB,GAAG,UAAC,EAAkC;QAAhC,OAAO,aAAA,EAAE,EAAE,QAAA;IAA0B,OAAA,CACnE,8BACE,YAAG,SAAS,EAAC,WAAW,uDAA2C,EACnE,cACE,SAAS,EAAC,sEAAsE,iBACpE,wBAAwB,YAEpC,KAAC,MAAM,IAAC,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,EAAtB,CAAsB,EAAE,OAAO,EAAC,cAAc,mBAE5D,GACL,IACL,CACJ;AAZoE,CAYpE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CohortHooks } from '../types';
|
|
3
|
+
interface SaveCohortModalProps {
|
|
4
|
+
readonly opened: boolean;
|
|
5
|
+
readonly hooks: CohortHooks;
|
|
6
|
+
readonly initialName?: string;
|
|
7
|
+
readonly onClose: () => void;
|
|
8
|
+
readonly cohortId: string;
|
|
9
|
+
readonly invalidCohortNames: string[];
|
|
10
|
+
readonly filters: any;
|
|
11
|
+
readonly caseFilters?: any;
|
|
12
|
+
readonly createStaticCohort?: boolean;
|
|
13
|
+
readonly setAsCurrent?: boolean;
|
|
14
|
+
readonly saveAs?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* SaveCohortModal handles saving a user's cohort
|
|
18
|
+
* @param opened - Whether the modal is open or not
|
|
19
|
+
* @param hooks - Collection of hooks for performing saving, deleting, etc operations on cohorts
|
|
20
|
+
* @param initialName - populates inital value of name field
|
|
21
|
+
* @param onClose - callback triggered when modal closes
|
|
22
|
+
* @param cohortId - id of existing cohort we are saving, if undefined we are not saving a cohort that already exists
|
|
23
|
+
* @param invalidCohortNames - list of cohort names that the user is barred from using
|
|
24
|
+
* @param filters - the filters associated with the cohort
|
|
25
|
+
* @param caseFilters - the case filters to use for the cohort
|
|
26
|
+
* @param createStaticCohort - whether to create a case set from the filters so the cases in the cohort remain static
|
|
27
|
+
* @param setAsCurrent - whether to set the new cohort as the user's current cohort, should not also pass in cohortId
|
|
28
|
+
* @param saveAs - whether to save existing cohort as new cohort, requires cohortId
|
|
29
|
+
*/
|
|
30
|
+
declare const SaveCohortModal: React.FC<SaveCohortModalProps>;
|
|
31
|
+
export default SaveCohortModal;
|
|
32
|
+
//# sourceMappingURL=SaveCohortModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveCohortModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAIjE,OAAO,EAAE,WAAW,EAAqB,MAAM,UAAU,CAAC;AAG1D,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC;IAC3B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8MnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|