@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/facets/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/facets/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EAEX,eAAe,EAEf,eAAe,EAGf,kBAAkB,EAClB,QAAQ,EAER,YAAY,EAIZ,SAAS,EACT,mCAAmC,EAInC,kBAAkB,EAInB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,WAAW,EACX,QAAQ,EACR,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAE/D,eAAO,MAAM,6BAA6B,GACxC,kBAAkB,aAAa,CAAC,SAAS,CAAC,aAEmC,CAAC;AAMhF,eAAO,MAAM,iBAAiB,GAC5B,OAAO,kBAAkB,KACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAWvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,kBAAkB,KACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAYvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,MAAM,EACjB,QAAQ,eAAe,EACvB,oBAAoB,yBAAyB,EAC7C,cAAc,kBAAkB,EAChC,cAAa,WAAkB,KAC9B,IAuBF,CAAC;AAGF,eAAO,MAAM,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AAM,EAClB,GAAG,MAAM,GAAG,MAAM,KACjB,MAUF,CAAC;AACF,eAAO,MAAM,qBAAqB,GAChC,GAAG,MAAM,GAAG,MAAM,EAClB,GAAG,MAAM,GAAG,MAAM,KACjB,MAUF,CAAC"}
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
12
|
+
import { extractEnumFilterValue, fieldNameToTitle, isOperationWithField, isOperatorWithFieldAndArrayOfOperands, isUnion, selectIndexedFilterByName, selectSharedFilters, selectShouldShareFilters, updateCohortFilter, useCoreDispatch, useCoreSelector, } from '@gen3/core';
|
|
13
13
|
import { isArray } from 'lodash';
|
|
14
14
|
export var getAllFieldsFromFilterConfigs = function (filterTabConfigs) {
|
|
15
15
|
return filterTabConfigs.reduce(function (acc, cur) { return acc.concat(cur.fields); }, []);
|
|
@@ -290,4 +290,30 @@ export var mapFacetSortToSortType = function (facetSort) {
|
|
|
290
290
|
direction: direction,
|
|
291
291
|
};
|
|
292
292
|
};
|
|
293
|
+
export var compareKeysAscending = function (a, b) {
|
|
294
|
+
if (typeof a === 'number' && typeof b === 'number') {
|
|
295
|
+
return a - b;
|
|
296
|
+
}
|
|
297
|
+
// If only one value is a number, move numbers to one end
|
|
298
|
+
// (in this case, numbers will come before strings)
|
|
299
|
+
if (typeof a === 'number')
|
|
300
|
+
return -1;
|
|
301
|
+
if (typeof b === 'number')
|
|
302
|
+
return 1;
|
|
303
|
+
// If both are strings, sort alphabetically
|
|
304
|
+
return a.localeCompare(b);
|
|
305
|
+
};
|
|
306
|
+
export var compareKeysDescending = function (a, b) {
|
|
307
|
+
if (typeof a === 'number' && typeof b === 'number') {
|
|
308
|
+
return b - a;
|
|
309
|
+
}
|
|
310
|
+
// If only one value is a number, move numbers to one end
|
|
311
|
+
// (in this case, numbers will come before strings)
|
|
312
|
+
if (typeof a === 'number')
|
|
313
|
+
return 1;
|
|
314
|
+
if (typeof b === 'number')
|
|
315
|
+
return -1;
|
|
316
|
+
// If both are strings, sort alphabetically
|
|
317
|
+
return b.localeCompare(a);
|
|
318
|
+
};
|
|
293
319
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/facets/utils.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/facets/utils.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAKL,sBAAsB,EAEtB,gBAAgB,EAMhB,oBAAoB,EACpB,qCAAqC,EACrC,OAAO,EAGP,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EAExB,kBAAkB,EAClB,eAAe,EACf,eAAe,GAChB,MAAM,YAAY,CAAC;AASpB,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGjC,MAAM,CAAC,IAAM,6BAA6B,GAAG,UAC3C,gBAA0C;IAE1C,OAAA,gBAAgB,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,GAAG,IAAK,OAAA,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAtB,CAAsB,EAAE,EAAc,CAAC;AAA7E,CAA6E,CAAC;AAMhF,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAC/B,IAAyB;IAEzB,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAErB,OAAO,IAAI,CAAC,MAAM,CAChB,UAAC,GAA2B,EAAE,IAAmB;QAC/C,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,GAAG,CAAC,CAAC,qDAAqD;QACxF,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAC3B,OAAO,GAAG,CAAC;IACb,CAAC,EACD,EAA4B,CAC7B,CAA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AAG,UACnC,CAAkB,EAClB,CAAkB;IAElB,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;QACnD,OAAO,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;IACD,yDAAyD;IACzD,mDAAmD;IACnD,IAAI,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,CAAC,CAAC;IACpC,IAAI,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,CAAC,CAAC,CAAC;IACrC,2CAA2C;IAC3C,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -3,11 +3,11 @@ import type { StoryObj } from '@storybook/react';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
component: React.FC<{
|
|
5
5
|
title: string;
|
|
6
|
-
type: string;
|
|
7
6
|
description: string;
|
|
7
|
+
count?: number | undefined;
|
|
8
|
+
type: string;
|
|
8
9
|
icon: string | React.ReactElement;
|
|
9
10
|
href: string;
|
|
10
|
-
count?: number | undefined;
|
|
11
11
|
loginRequired: boolean;
|
|
12
12
|
hasDemo?: boolean | undefined;
|
|
13
13
|
btnText?: string | undefined;
|
|
@@ -16,11 +16,11 @@ declare const meta: {
|
|
|
16
16
|
}>;
|
|
17
17
|
decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
18
18
|
title: string;
|
|
19
|
-
type: string;
|
|
20
19
|
description: string;
|
|
20
|
+
count?: number | undefined;
|
|
21
|
+
type: string;
|
|
21
22
|
icon: string | React.ReactElement;
|
|
22
23
|
href: string;
|
|
23
|
-
count?: number | undefined;
|
|
24
24
|
loginRequired: boolean;
|
|
25
25
|
hasDemo?: boolean | undefined;
|
|
26
26
|
btnText?: string | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { Gen3AppConfigData } from '../../lib/content/types';
|
|
2
3
|
export interface AnalysisToolConfiguration {
|
|
3
4
|
title: string;
|
|
4
5
|
image?: string;
|
|
@@ -13,7 +14,7 @@ export interface AnalysisToolConfiguration {
|
|
|
13
14
|
cardType?: 'regular' | 'compact';
|
|
14
15
|
btnText?: string;
|
|
15
16
|
}
|
|
16
|
-
export interface AnalysisCenterConfiguration {
|
|
17
|
+
export interface AnalysisCenterConfiguration extends Gen3AppConfigData {
|
|
17
18
|
tools: Array<AnalysisToolConfiguration>;
|
|
18
19
|
showFilterAndSort?: boolean;
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,2BAA4B,SAAQ,iBAAiB;IACpE,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACxC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,yCAAyC,GACpD,OAAO,OAAO,KACb,KAAK,IAAI,uCAuBX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/features/Analysis/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/features/Analysis/types.ts"],"names":[],"mappings":"AAkCA,MAAM,CAAC,IAAM,yCAAyC,GAAG,UACvD,KAAc;IAEd,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAM,SAAS,GAAG,KAAgC,CAAC;IAEnD,6CAA6C;IAC7C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAsB,UAAkB,EAAlB,KAAA,SAAS,CAAC,QAAQ,EAAlB,cAAkB,EAAlB,IAAkB,EAAE,CAAC;QAAtC,IAAM,OAAO,SAAA;QAChB,IACE,CAAC,OAAO;YACR,OAAO,OAAO,KAAK,QAAQ;YAC3B,OAAQ,OAAiC,CAAC,KAAK,KAAK,QAAQ;YAC5D,CAAC,KAAK,CAAC,OAAO,CAAE,OAAiC,CAAC,KAAK,CAAC,EACxD,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Accessibility } from '@gen3/core';
|
|
2
|
+
export interface AccessLevelControlProps {
|
|
3
|
+
onChange: (value: Accessibility) => void;
|
|
4
|
+
accessLevel: Accessibility;
|
|
5
|
+
}
|
|
6
|
+
declare const AccessLevelControl: ({ onChange, accessLevel, }: AccessLevelControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default AccessLevelControl;
|
|
8
|
+
//# sourceMappingURL=AccessLevel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessLevel.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/AccessLevel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAQ3C,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,WAAW,EAAE,aAAa,CAAC;CAC5B;AAED,QAAA,MAAM,kBAAkB,GAAI,4BAGzB,uBAAuB,4CAezB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SegmentedControl, useMantineTheme } from '@mantine/core';
|
|
3
|
+
import { Accessibility } from '@gen3/core';
|
|
4
|
+
var AccessData = [
|
|
5
|
+
{ value: Accessibility.ALL, label: 'All' },
|
|
6
|
+
{ value: Accessibility.ACCESSIBLE, label: 'Accessible' },
|
|
7
|
+
{ value: Accessibility.UNACCESSIBLE, label: 'Not Accessible' },
|
|
8
|
+
];
|
|
9
|
+
var AccessLevelControl = function (_a) {
|
|
10
|
+
var onChange = _a.onChange, accessLevel = _a.accessLevel;
|
|
11
|
+
var theme = useMantineTheme();
|
|
12
|
+
return (_jsx(SegmentedControl, { color: theme.colors.accent[5], data: AccessData, value: accessLevel, onChange: function (val) {
|
|
13
|
+
var _a;
|
|
14
|
+
var accessibilityValue = ((_a = AccessData.find(function (item) { return item.value === val; })) === null || _a === void 0 ? void 0 : _a.value) ||
|
|
15
|
+
Accessibility.ALL;
|
|
16
|
+
onChange(accessibilityValue);
|
|
17
|
+
} }));
|
|
18
|
+
};
|
|
19
|
+
export default AccessLevelControl;
|
|
20
|
+
//# sourceMappingURL=AccessLevel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessLevel.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/AccessLevel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,IAAM,UAAU,GAAG;IACjB,EAAE,KAAK,EAAE,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE;IAC1C,EAAE,KAAK,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE;IACxD,EAAE,KAAK,EAAE,aAAa,CAAC,YAAY,EAAE,KAAK,EAAE,gBAAgB,EAAE;CAC/D,CAAC;AAOF,IAAM,kBAAkB,GAAG,UAAC,EAGF;QAFxB,QAAQ,cAAA,EACR,WAAW,iBAAA;IAEX,IAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAChC,OAAO,CACL,KAAC,gBAAgB,IACf,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAC7B,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,UAAC,GAAG;;YACZ,IAAM,kBAAkB,GACtB,CAAA,MAAA,UAAU,CAAC,IAAI,CAAC,UAAC,IAAI,IAAK,OAAA,IAAI,CAAC,KAAK,KAAK,GAAG,EAAlB,CAAkB,CAAC,0CAAE,KAAK;gBACpD,aAAa,CAAC,GAAG,CAAC;YACpB,QAAQ,CAAC,kBAAkB,CAAC,CAAC;QAC/B,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { CohortBuilderProps } from './types';
|
|
2
|
+
export declare const useGetCurrentCohort: () => string;
|
|
2
3
|
export declare const CohortBuilder: ({ explorerConfig, sharedFiltersMap, tabsLayout, }: CohortBuilderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
//# sourceMappingURL=CohortBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortBuilder.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortBuilder.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"CohortBuilder.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortBuilder.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAA4B,MAAM,SAAS,CAAC;AAYvE,eAAO,MAAM,mBAAmB,cAE/B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,mDAI3B,kBAAkB,4CAuCpB,CAAC"}
|
|
@@ -13,29 +13,13 @@ import { createElement as _createElement } from "react";
|
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { Tabs } from '@mantine/core';
|
|
15
15
|
import { CohortPanel } from './CohortPanel';
|
|
16
|
-
import { useCoreDispatch,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
switch (tabsLayout) {
|
|
22
|
-
case 'left': {
|
|
23
|
-
return 'flex-start';
|
|
24
|
-
}
|
|
25
|
-
case 'right': {
|
|
26
|
-
return 'flex-end';
|
|
27
|
-
}
|
|
28
|
-
case 'center': {
|
|
29
|
-
return 'center';
|
|
30
|
-
}
|
|
31
|
-
default: {
|
|
32
|
-
return 'flex-start';
|
|
33
|
-
}
|
|
34
|
-
}
|
|
16
|
+
import { selectCurrentCohortId, setSharedFilters, useCoreDispatch, useCoreSelector, } from '@gen3/core';
|
|
17
|
+
import { TabsLayoutToComponentProp } from '../../utils/layout';
|
|
18
|
+
export var useGetCurrentCohort = function () {
|
|
19
|
+
return useCoreSelector(function (state) { return selectCurrentCohortId(state); });
|
|
35
20
|
};
|
|
36
21
|
export var CohortBuilder = function (_a) {
|
|
37
22
|
var explorerConfig = _a.explorerConfig, _b = _a.sharedFiltersMap, sharedFiltersMap = _b === void 0 ? null : _b, _c = _a.tabsLayout, tabsLayout = _c === void 0 ? 'left' : _c;
|
|
38
|
-
useGetCSRFQuery();
|
|
39
23
|
var dispatch = useCoreDispatch();
|
|
40
24
|
dispatch(setSharedFilters(sharedFiltersMap !== null && sharedFiltersMap !== void 0 ? sharedFiltersMap : {}));
|
|
41
25
|
return (_jsx("div", { className: "w-full", children: _jsxs(Tabs, { color: "primary.4", keepMounted: true, defaultValue: explorerConfig[0].tabTitle, children: [_jsx(Tabs.List, { className: "w-full", justify: TabsLayoutToComponentProp(tabsLayout), children: explorerConfig.map(function (panelConfig) { return (_jsx(Tabs.Tab, { value: panelConfig.tabTitle, children: panelConfig.tabTitle }, "".concat(panelConfig.tabTitle, "-tabList"))); }) }), explorerConfig.map(function (panelConfig) { return (_jsx(Tabs.Panel, { value: panelConfig.tabTitle, children: _createElement(CohortPanel, __assign({}, panelConfig, { key: "".concat(panelConfig.tabTitle, "-CohortPanel") })) }, "".concat(panelConfig.tabTitle, "-tabPanel"))); })] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortBuilder.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortBuilder.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"CohortBuilder.js","sourceRoot":"","sources":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ACZ,EAP8D,CAO9D,CAAC,GACQ,EAEX,cAAc,CAAC,GAAG,CAAC,UAAC,WAAqC,IAAK,OAAA,CAC7D,KAAC,IAAI,CAAC,KAAK,IACT,KAAK,EAAE,WAAW,CAAC,QAAQ,YAG3B,eAAC,WAAW,eACN,WAAW,IACf,GAAG,EAAE,UAAG,WAAW,CAAC,QAAQ,iBAAc,IAC1C,IALG,UAAG,WAAW,CAAC,QAAQ,cAAW,CAM5B,CACd,EAV8D,CAU9D,CAAC,IACG,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Cohort } from './types';
|
|
3
|
+
import { DataFetchingStatus } from './types';
|
|
4
|
+
interface CohortActionsProps {
|
|
5
|
+
readonly onSave: () => void;
|
|
6
|
+
readonly onSaveAs: () => void;
|
|
7
|
+
readonly onDelete: () => void;
|
|
8
|
+
readonly selectCurrentCohort: () => Cohort;
|
|
9
|
+
readonly selectAvailableCohorts: () => Cohort[];
|
|
10
|
+
readonly addNewDefaultUnsavedCohort: () => void;
|
|
11
|
+
readonly useExportCohort: () => {
|
|
12
|
+
readonly handleExport: (() => void) | undefined;
|
|
13
|
+
readonly status: DataFetchingStatus;
|
|
14
|
+
};
|
|
15
|
+
readonly useImportCohort: () => (() => void) | undefined;
|
|
16
|
+
readonly defaultCohortName: string;
|
|
17
|
+
}
|
|
18
|
+
declare const CohortActions: React.FC<CohortActionsProps>;
|
|
19
|
+
export default CohortActions;
|
|
20
|
+
//# sourceMappingURL=CohortActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortActions.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,MAAM,CAAC;IAC3C,QAAQ,CAAC,sBAAsB,EAAE,MAAM,MAAM,EAAE,CAAC;IAChD,QAAQ,CAAC,0BAA0B,EAAE,MAAM,IAAI,CAAC;IAChD,QAAQ,CAAC,eAAe,EAAE,MAAM;QAC9B,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;QAChD,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;KACrC,CAAC;IACF,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACpC;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsH/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
import { Loader, Tooltip, Button } from '@mantine/core';
|
|
4
|
+
import DropdownMenu from '../../../components/DropdownMenu';
|
|
5
|
+
import { AddIcon, DeleteIcon, DownloadIcon, SaveIcon, UploadIcon, } from './commonIcons';
|
|
6
|
+
import { CohortNotificationContext } from './CohortNotificationProvider';
|
|
7
|
+
var CohortActions = function (_a) {
|
|
8
|
+
var onSave = _a.onSave, onSaveAs = _a.onSaveAs, onDelete = _a.onDelete, selectCurrentCohort = _a.selectCurrentCohort, selectAvailableCohorts = _a.selectAvailableCohorts, addNewDefaultUnsavedCohort = _a.addNewDefaultUnsavedCohort, useExportCohort = _a.useExportCohort, useImportCohort = _a.useImportCohort, defaultCohortName = _a.defaultCohortName;
|
|
9
|
+
var currentCohort = selectCurrentCohort();
|
|
10
|
+
var availableCohorts = selectAvailableCohorts();
|
|
11
|
+
// const hasUnsavedCohorts =
|
|
12
|
+
// availableCohorts.filter((c) => !c.saved).length >= 1;
|
|
13
|
+
var _b = useExportCohort(), handleExport = _b.handleExport, status = _b.status;
|
|
14
|
+
var _c = status.isFetching, exportCohortPending = _c === void 0 ? false : _c;
|
|
15
|
+
var handleImport = useImportCohort();
|
|
16
|
+
var setCohortMessage = useContext(CohortNotificationContext);
|
|
17
|
+
return (_jsxs("div", { className: "flex justify-center items-center gap-2 md:gap-4", children: [_jsx(Tooltip, { label: "Save Cohort", position: "top", withArrow: true, children: _jsx("span", { className: "h-12", children: _jsx(DropdownMenu, { customDataTestId: "saveButton", dropdownElements: [
|
|
18
|
+
{
|
|
19
|
+
onClick: onSave,
|
|
20
|
+
title: 'Save',
|
|
21
|
+
disabled: currentCohort.saved && !currentCohort.modified,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
onClick: onSaveAs,
|
|
25
|
+
title: 'Save As',
|
|
26
|
+
disabled: !currentCohort.saved,
|
|
27
|
+
},
|
|
28
|
+
], LeftSection: _jsx(SaveIcon, { size: "1.5em", className: "-mr-2.5", "aria-hidden": "true" }), TargetButtonChildren: "", fullHeight: true, disableTargetWidth: true, buttonAriaLabel: "Save cohort" }) }) }), _jsx(Tooltip, { label: 'Create New Unsaved Cohort', position: "bottom", withArrow: true, children: _jsx(Button, { onClick: function () {
|
|
29
|
+
addNewDefaultUnsavedCohort();
|
|
30
|
+
setCohortMessage &&
|
|
31
|
+
setCohortMessage([
|
|
32
|
+
{ cmd: 'newCohort', param1: defaultCohortName },
|
|
33
|
+
]);
|
|
34
|
+
}, "data-testid": "addButton", "aria-label": "Add cohort", variant: "action", children: _jsx(AddIcon, { size: "1.5em", "aria-hidden": "true" }) }) }), _jsx(Tooltip, { label: "Delete Cohort", position: "bottom", withArrow: true, children: _jsx(Button, { "data-testid": "deleteButton", onClick: onDelete, "aria-label": "Delete cohort", variant: "action", children: _jsx(DeleteIcon, { size: "1.5em", "aria-hidden": "true" }) }) }), handleImport && (_jsx(Tooltip, { label: "Import New Cohort", position: "bottom", withArrow: true, children: _jsx(Button, { "data-testid": "uploadButton", onClick: handleImport, "aria-label": "Upload cohort", variant: "action", children: _jsx(UploadIcon, { size: "1.5em", "aria-hidden": "true" }) }) })), handleExport && (_jsx(Tooltip, { label: "Export Cohort", position: "bottom", withArrow: true, children: _jsx("span", { children: _jsx(Button, { "data-testid": "downloadButton", onClick: handleExport, "aria-label": "Download cohort", variant: "action", children: exportCohortPending ? (_jsx(Loader, {})) : (_jsx(DownloadIcon, { size: "1.5em", "aria-hidden": "true" })) }) }) }))] }));
|
|
35
|
+
};
|
|
36
|
+
export default CohortActions;
|
|
37
|
+
//# sourceMappingURL=CohortActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortActions.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortActions.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EACL,OAAO,EACP,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,UAAU,GACX,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAkBzE,IAAM,aAAa,GAAiC,UAAC,EAUhC;QATnB,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,mBAAmB,yBAAA,EACnB,sBAAsB,4BAAA,EACtB,0BAA0B,gCAAA,EAC1B,eAAe,qBAAA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React from 'react';
|
|
2
|
+
import { CohortHooks } from './types';
|
|
3
|
+
interface CohortManagerProps {
|
|
4
|
+
readonly hooks: CohortHooks;
|
|
5
|
+
readonly defaultCohortName: string;
|
|
6
|
+
readonly invalidCohortNames?: string[];
|
|
7
|
+
readonly isFetchingCohorts?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Component for the user to manage (save, delete, etc.) cohorts
|
|
11
|
+
* @param hooks - Collection of hooks for performing saving, deleting, etc. operations on cohorts
|
|
12
|
+
* @param invalidCohortNames - list of cohort names that the user is barred from using
|
|
13
|
+
* @param isFetchingCohorts - whether we are currently fetching cohorts from the server
|
|
14
|
+
* @param defaultCohortName - name of the default cohort that is created when the user first opens the app
|
|
15
|
+
*/
|
|
16
|
+
declare const CohortManager: React.FC<CohortManagerProps>;
|
|
17
|
+
export default CohortManager;
|
|
18
|
+
//# sourceMappingURL=CohortManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortManager.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAepD,OAAO,EAAE,WAAW,EAAoC,MAAM,SAAS,CAAC;AAGxE,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CACtC;AAED;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0N/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
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);
|
|
23
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
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;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
49
|
+
import { useContext, useState } from 'react';
|
|
50
|
+
import { useDeepCompareEffect } from 'use-deep-compare';
|
|
51
|
+
import { Tooltip, MantineProvider, Button, useMantineTheme, } from '@mantine/core';
|
|
52
|
+
import { UndoIcon } from './commonIcons';
|
|
53
|
+
import GenericCohortModal from './modals/GenericCohortModal';
|
|
54
|
+
import SaveCohortModal from './modals/SaveCohortModal';
|
|
55
|
+
import CohortActions from './CohortActions';
|
|
56
|
+
import CohortSelector from './CohortSelector';
|
|
57
|
+
import { actionButtonVariant, darkFunctionVariant } from './style';
|
|
58
|
+
import { CohortNotificationContext } from './CohortNotificationProvider';
|
|
59
|
+
/**
|
|
60
|
+
* Component for the user to manage (save, delete, etc.) cohorts
|
|
61
|
+
* @param hooks - Collection of hooks for performing saving, deleting, etc. operations on cohorts
|
|
62
|
+
* @param invalidCohortNames - list of cohort names that the user is barred from using
|
|
63
|
+
* @param isFetchingCohorts - whether we are currently fetching cohorts from the server
|
|
64
|
+
* @param defaultCohortName - name of the default cohort that is created when the user first opens the app
|
|
65
|
+
*/
|
|
66
|
+
var CohortManager = function (_a) {
|
|
67
|
+
var _b;
|
|
68
|
+
var hooks = _a.hooks, defaultCohortName = _a.defaultCohortName, _c = _a.invalidCohortNames, invalidCohortNames = _c === void 0 ? [] : _c, _d = _a.isFetchingCohorts, isFetchingCohorts = _d === void 0 ? false : _d;
|
|
69
|
+
var currentCohort = hooks.useSelectCurrentCohort();
|
|
70
|
+
var cohorts = hooks.useSelectAvailableCohorts();
|
|
71
|
+
var handleDelete = hooks.useDeleteCohort();
|
|
72
|
+
var handleDiscard = hooks.useDiscardChanges();
|
|
73
|
+
var handleUpdate = (hooks === null || hooks === void 0 ? void 0 : hooks.useUpdateFilters)
|
|
74
|
+
? hooks.useUpdateFilters
|
|
75
|
+
: function () { return null; };
|
|
76
|
+
var setActiveCohort = hooks.useSetActiveCohort();
|
|
77
|
+
var addNewDefaultUnsavedCohort = hooks.useAddUnsavedCohort();
|
|
78
|
+
var _e = hooks.useImportCohort, useImportCohort = _e === void 0 ? function () { return undefined; } : _e, _f = hooks.useExportCohort, useExportCohort = _f === void 0 ? function () { return ({ handleExport: undefined, status: {} }); } : _f, _g = hooks.useCreateCohortExternally, useCreateCohortExternally = _g === void 0 ? function () { } : _g;
|
|
79
|
+
var _h = useState(false), showDelete = _h[0], setShowDelete = _h[1];
|
|
80
|
+
var _j = useState(false), showDiscard = _j[0], setShowDiscard = _j[1];
|
|
81
|
+
var _k = useState(false), showSaveCohort = _k[0], setShowSaveCohort = _k[1];
|
|
82
|
+
var _l = useState(false), showSaveAsCohort = _l[0], setShowSaveAsCohort = _l[1];
|
|
83
|
+
var _m = useState(false), showUpdateCohort = _m[0], setShowUpdateCohort = _m[1];
|
|
84
|
+
var theme = useMantineTheme();
|
|
85
|
+
var setCohortMessage = useContext(CohortNotificationContext);
|
|
86
|
+
useCreateCohortExternally(setCohortMessage);
|
|
87
|
+
useDeepCompareEffect(function () {
|
|
88
|
+
if (cohorts.length === 0 && !isFetchingCohorts) {
|
|
89
|
+
addNewDefaultUnsavedCohort();
|
|
90
|
+
setCohortMessage &&
|
|
91
|
+
setCohortMessage([{ cmd: 'newCohort', param1: defaultCohortName }]);
|
|
92
|
+
}
|
|
93
|
+
}, [
|
|
94
|
+
cohorts,
|
|
95
|
+
addNewDefaultUnsavedCohort,
|
|
96
|
+
defaultCohortName,
|
|
97
|
+
setCohortMessage,
|
|
98
|
+
isFetchingCohorts,
|
|
99
|
+
]);
|
|
100
|
+
return (_jsx(MantineProvider, { theme: __assign(__assign({}, theme), { components: __assign(__assign({}, theme === null || theme === void 0 ? void 0 : theme.components), { Button: Button.extend({
|
|
101
|
+
classNames: {
|
|
102
|
+
root: "".concat(actionButtonVariant, " ").concat(darkFunctionVariant),
|
|
103
|
+
},
|
|
104
|
+
}) }) }), children: _jsx("div", { "data-tour": "cohort_management_bar", className: "flex flex-row items-center justify-start gap-6 px-4 h-18 shadow-lg bg-primary", children: currentCohort !== undefined && (_jsxs(_Fragment, { children: [_jsx("div", { className: "border-opacity-0", children: _jsxs("div", { className: "flex flex-wrap gap-2 lg:gap-4", children: [_jsxs("div", { className: "flex justify-center items-center", children: [_jsx(Tooltip, { label: "Discard Changes", position: "bottom", withArrow: true, children: _jsx("span", { children: _jsx(Button, { "data-testid": "discardButton", onClick: function () { return setShowDiscard(true); }, disabled: !currentCohort.modified, "aria-label": "Discard cohort changes", variant: "action", children: _jsx(UndoIcon, { "aria-hidden": "true" }) }) }) }), _jsx(CohortSelector, { selectAvailableCohorts: hooks.useSelectAvailableCohorts, selectCurrentCohort: hooks.useSelectCurrentCohort, setActiveCohort: setActiveCohort })] }), _jsx(CohortActions, { onSave: function () {
|
|
105
|
+
return currentCohort.saved
|
|
106
|
+
? setShowUpdateCohort(true)
|
|
107
|
+
: setShowSaveCohort(true);
|
|
108
|
+
}, onSaveAs: function () { return setShowSaveAsCohort(true); }, onDelete: function () { return setShowDelete(true); }, selectCurrentCohort: hooks.useSelectCurrentCohort, selectAvailableCohorts: hooks.useSelectAvailableCohorts, addNewDefaultUnsavedCohort: addNewDefaultUnsavedCohort, useExportCohort: useExportCohort, useImportCohort: useImportCohort, defaultCohortName: defaultCohortName })] }) }), _jsx(GenericCohortModal, { title: "Delete Cohort", opened: showDelete, onClose: function () { return setShowDelete(false); }, actionText: "Delete", mainText: _jsxs(_Fragment, { children: ["Are you sure you want to permanently delete", ' ', _jsx("b", { children: currentCohort.name }), "?"] }), subText: _jsx(_Fragment, { children: "You cannot undo this action." }), onActionClick: function () {
|
|
109
|
+
handleDelete()
|
|
110
|
+
.then(function () {
|
|
111
|
+
setCohortMessage &&
|
|
112
|
+
setCohortMessage([
|
|
113
|
+
{ cmd: 'deleteCohort', param1: currentCohort.name },
|
|
114
|
+
]);
|
|
115
|
+
})
|
|
116
|
+
.catch(function () {
|
|
117
|
+
return setCohortMessage &&
|
|
118
|
+
setCohortMessage([{ cmd: 'error', param1: 'deleting' }]);
|
|
119
|
+
});
|
|
120
|
+
} }), _jsx(GenericCohortModal, { title: "Discard Changes", opened: showDiscard, onClose: function () { return setShowDiscard(false); }, actionText: "Discard", mainText: _jsx(_Fragment, { children: "Are you sure you want to permanently discard the unsaved changes?" }), subText: _jsx(_Fragment, { children: "You cannot undo this action." }), onActionClick: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
121
|
+
return __generator(this, function (_a) {
|
|
122
|
+
handleDiscard()
|
|
123
|
+
.then(function () {
|
|
124
|
+
return setCohortMessage &&
|
|
125
|
+
setCohortMessage([{ cmd: 'discardChanges' }]);
|
|
126
|
+
})
|
|
127
|
+
.catch(function () {
|
|
128
|
+
return setCohortMessage &&
|
|
129
|
+
setCohortMessage([
|
|
130
|
+
{ cmd: 'error', param1: 'discarding' },
|
|
131
|
+
]);
|
|
132
|
+
});
|
|
133
|
+
return [2 /*return*/];
|
|
134
|
+
});
|
|
135
|
+
}); } }), _jsx(GenericCohortModal, { title: "Save Cohort", opened: showUpdateCohort, onClose: function () { return setShowUpdateCohort(false); }, actionText: "Save", mainText: _jsxs(_Fragment, { children: ["Are you sure you want to save ", _jsx("b", { children: currentCohort.name }), "? This will overwrite your previously saved changes."] }), subText: _jsx(_Fragment, { children: "You cannot undo this action." }), onActionClick: function () {
|
|
136
|
+
setShowUpdateCohort(false);
|
|
137
|
+
handleUpdate();
|
|
138
|
+
setCohortMessage &&
|
|
139
|
+
setCohortMessage([
|
|
140
|
+
{
|
|
141
|
+
cmd: 'savedCurrentCohort',
|
|
142
|
+
},
|
|
143
|
+
]);
|
|
144
|
+
} }), _jsx(SaveCohortModal, { initialName: !invalidCohortNames.includes((_b = currentCohort.name) === null || _b === void 0 ? void 0 : _b.toLowerCase())
|
|
145
|
+
? currentCohort.name
|
|
146
|
+
: undefined, opened: showSaveCohort, onClose: function () { return setShowSaveCohort(false); }, cohortId: currentCohort.id, filters: currentCohort.filters, invalidCohortNames: invalidCohortNames, hooks: hooks }), _jsx(SaveCohortModal, { opened: showSaveAsCohort, initialName: currentCohort.name, onClose: function () { return setShowSaveAsCohort(false); }, cohortId: currentCohort.id, filters: currentCohort.filters, saveAs: true, invalidCohortNames: invalidCohortNames, hooks: hooks })] })) }) }));
|
|
147
|
+
};
|
|
148
|
+
export default CohortManager;
|
|
149
|
+
//# sourceMappingURL=CohortManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortManager.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortManager.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM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AAK,GACZ,IACD,CACJ,GACG,GACU,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { CohortNotificationCommand } from './types';
|
|
3
|
+
export declare const CohortNotificationContext: React.Context<((cohortMessage: CohortNotificationCommand[]) => void) | undefined>;
|
|
4
|
+
interface CohortNotificationWrapperProps extends PropsWithChildren {
|
|
5
|
+
readonly useSetActiveCohort: () => (cohortId: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const CohortNotificationProvider: React.FC<CohortNotificationWrapperProps>;
|
|
8
|
+
export default CohortNotificationProvider;
|
|
9
|
+
//# sourceMappingURL=CohortNotificationProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortNotificationProvider.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortNotificationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAc5E,OAAO,EACL,yBAAyB,EAE1B,MAAM,SAAS,CAAC;AAkBjB,eAAO,MAAM,yBAAyB,iCACnB,yBAAyB,EAAE,KAAK,IAAI,cAC3C,CAAC;AAEb,UAAU,8BAA+B,SAAQ,iBAAiB;IAChE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/D;AAED,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAoJxE,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|