@gen3/frontend 0.10.93 → 0.10.95
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 +5530 -3555
- package/dist/cjs/index.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/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/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/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/ReactECharts.js +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.js.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/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 +3 -1
- 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/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 -19
- 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.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 +13 -5
- 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/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +19 -11
- 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 +23 -8
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +6 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +71 -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 +417 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +45 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +95 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +388 -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 +574 -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/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 +22 -6
- 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 +41 -33
- package/dist/dts/features/CohortDiscovery/IndexPanel.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/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 +231 -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 +8 -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 +19 -3
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +11 -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 +42 -1
- package/dist/dts/features/CohortDiscovery/hooks.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 +57 -0
- package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.js +35 -1
- package/dist/dts/features/CohortDiscovery/types.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/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/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 +3 -107
- 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/Banner.d.ts +2 -1
- package/dist/dts/features/Navigation/Banner.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Banner.js +0 -1
- package/dist/dts/features/Navigation/Banner.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/index.d.ts +2 -2
- package/dist/dts/features/Navigation/index.d.ts.map +1 -1
- package/dist/dts/features/Navigation/index.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/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/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +16 -32
- package/dist/dts/lib/session/session.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/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 +4 -0
- package/dist/dts/types/icons.d.ts.map +1 -0
- package/dist/dts/types/icons.js +5 -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 +2 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +2 -0
- 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/esm/index.js +5935 -3966
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +216 -146
- 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,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"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
38
|
+
import { useState, useCallback, useContext } from 'react';
|
|
39
|
+
import { Modal, Button, Loader } from '@mantine/core';
|
|
40
|
+
import { modals } from '@mantine/modals';
|
|
41
|
+
import { CohortNotificationContext } from '../CohortNotificationProvider';
|
|
42
|
+
import { SaveOrCreateEntityBody } from './SaveOrCreateEntityModal';
|
|
43
|
+
/**
|
|
44
|
+
* SaveCohortModal handles saving a user's cohort
|
|
45
|
+
* @param opened - Whether the modal is open or not
|
|
46
|
+
* @param hooks - Collection of hooks for performing saving, deleting, etc operations on cohorts
|
|
47
|
+
* @param initialName - populates inital value of name field
|
|
48
|
+
* @param onClose - callback triggered when modal closes
|
|
49
|
+
* @param cohortId - id of existing cohort we are saving, if undefined we are not saving a cohort that already exists
|
|
50
|
+
* @param invalidCohortNames - list of cohort names that the user is barred from using
|
|
51
|
+
* @param filters - the filters associated with the cohort
|
|
52
|
+
* @param caseFilters - the case filters to use for the cohort
|
|
53
|
+
* @param createStaticCohort - whether to create a case set from the filters so the cases in the cohort remain static
|
|
54
|
+
* @param setAsCurrent - whether to set the new cohort as the user's current cohort, should not also pass in cohortId
|
|
55
|
+
* @param saveAs - whether to save existing cohort as new cohort, requires cohortId
|
|
56
|
+
*/
|
|
57
|
+
var SaveCohortModal = function (_a) {
|
|
58
|
+
var opened = _a.opened, hooks = _a.hooks, _b = _a.initialName, initialName = _b === void 0 ? '' : _b, onClose = _a.onClose, cohortId = _a.cohortId, invalidCohortNames = _a.invalidCohortNames, filters = _a.filters, caseFilters = _a.caseFilters, _c = _a.createStaticCohort, createStaticCohort = _c === void 0 ? false : _c, _d = _a.setAsCurrent, setAsCurrent = _d === void 0 ? false : _d, _e = _a.saveAs, saveAs = _e === void 0 ? false : _e;
|
|
59
|
+
var _f = useState(false), showReplaceCohort = _f[0], setShowReplaceCohort = _f[1];
|
|
60
|
+
var _g = useState(''), enteredName = _g[0], setEnteredName = _g[1];
|
|
61
|
+
var _h = useState(false), isSaving = _h[0], setIsSaving = _h[1];
|
|
62
|
+
var saveCohort = hooks.useSaveCohort();
|
|
63
|
+
var replaceCohort = hooks.useReplaceCohort();
|
|
64
|
+
var setActiveCohort = hooks.useSetActiveCohort();
|
|
65
|
+
var setCohortMessage = useContext(CohortNotificationContext);
|
|
66
|
+
var closeModal = useCallback(function () {
|
|
67
|
+
onClose();
|
|
68
|
+
// Reset modal state on close
|
|
69
|
+
setShowReplaceCohort(false);
|
|
70
|
+
setEnteredName('');
|
|
71
|
+
setIsSaving(false);
|
|
72
|
+
}, [onClose]);
|
|
73
|
+
var saveAction = function (newName, replace) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
if (isSaving)
|
|
76
|
+
return [2 /*return*/];
|
|
77
|
+
setIsSaving(true);
|
|
78
|
+
if (replace) {
|
|
79
|
+
replaceCohort({
|
|
80
|
+
newName: newName,
|
|
81
|
+
filters: filters,
|
|
82
|
+
caseFilters: caseFilters,
|
|
83
|
+
createStaticCohort: createStaticCohort,
|
|
84
|
+
cohortId: cohortId,
|
|
85
|
+
saveAs: saveAs,
|
|
86
|
+
})
|
|
87
|
+
.then(function (_a) {
|
|
88
|
+
var newCohortId = _a.newCohortId;
|
|
89
|
+
if (newCohortId) {
|
|
90
|
+
if (setAsCurrent || saveAs) {
|
|
91
|
+
setCohortMessage &&
|
|
92
|
+
setCohortMessage([
|
|
93
|
+
{
|
|
94
|
+
cmd: setAsCurrent ? 'savedCohort' : 'savedCurrentCohort',
|
|
95
|
+
param1: newName,
|
|
96
|
+
param2: newCohortId,
|
|
97
|
+
},
|
|
98
|
+
]);
|
|
99
|
+
setActiveCohort(newCohortId);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
setCohortMessage &&
|
|
103
|
+
setCohortMessage([
|
|
104
|
+
{
|
|
105
|
+
cmd: 'savedCohortSetCurrent',
|
|
106
|
+
param1: newName,
|
|
107
|
+
param2: newCohortId,
|
|
108
|
+
},
|
|
109
|
+
]);
|
|
110
|
+
}
|
|
111
|
+
closeModal();
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
.catch(function () {
|
|
115
|
+
modals.openContextModal({
|
|
116
|
+
modal: 'saveCohortError',
|
|
117
|
+
title: 'Save Cohort Error',
|
|
118
|
+
innerProps: {},
|
|
119
|
+
});
|
|
120
|
+
setIsSaving(false);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
saveCohort({
|
|
125
|
+
newName: newName,
|
|
126
|
+
cohortId: cohortId,
|
|
127
|
+
filters: filters,
|
|
128
|
+
caseFilters: caseFilters,
|
|
129
|
+
createStaticCohort: createStaticCohort,
|
|
130
|
+
saveAs: saveAs,
|
|
131
|
+
})
|
|
132
|
+
.then(function (_a) {
|
|
133
|
+
var cohortAlreadyExists = _a.cohortAlreadyExists, newCohortId = _a.newCohortId;
|
|
134
|
+
if (cohortAlreadyExists) {
|
|
135
|
+
setShowReplaceCohort(true);
|
|
136
|
+
setIsSaving(false);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
if (newCohortId && (setAsCurrent || saveAs)) {
|
|
140
|
+
setActiveCohort(newCohortId);
|
|
141
|
+
}
|
|
142
|
+
var cmd = void 0;
|
|
143
|
+
if (cohortId) {
|
|
144
|
+
cmd = saveAs ? 'savedCohort' : 'savedCurrentCohort';
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
cmd = setAsCurrent ? 'savedCohort' : 'savedCohortSetCurrent';
|
|
148
|
+
}
|
|
149
|
+
setCohortMessage &&
|
|
150
|
+
setCohortMessage([
|
|
151
|
+
{
|
|
152
|
+
cmd: cmd,
|
|
153
|
+
param1: newName,
|
|
154
|
+
param2: newCohortId,
|
|
155
|
+
},
|
|
156
|
+
]);
|
|
157
|
+
closeModal();
|
|
158
|
+
}
|
|
159
|
+
})
|
|
160
|
+
.catch(function () {
|
|
161
|
+
modals.openContextModal({
|
|
162
|
+
modal: 'saveCohortError',
|
|
163
|
+
title: 'Save Cohort Error',
|
|
164
|
+
innerProps: {},
|
|
165
|
+
});
|
|
166
|
+
setIsSaving(false);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
return [2 /*return*/];
|
|
170
|
+
});
|
|
171
|
+
}); };
|
|
172
|
+
var UpdateBody = function () { return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "p-4", children: [_jsx("p", { className: "font-content text-sm", children: "A saved cohort with same name already exists. Are you sure you want to replace it?" }), _jsx("p", { className: "text-xs font-content mt-1", children: "You cannot undo this action." })] }), _jsxs("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, { variant: "outline", className: 'bg-white', color: "secondary", onClick: function () { return setShowReplaceCohort(false); }, children: "Cancel" }), _jsx(Button, { variant: "filled", color: "secondary", onClick: function () {
|
|
173
|
+
saveAction(enteredName, true);
|
|
174
|
+
}, "data-testid": "replace-cohort-button", leftSection: isSaving ? _jsx(Loader, { size: 15, color: "white" }) : undefined, children: "Replace" })] })] })); };
|
|
175
|
+
return (_jsx(Modal, { opened: opened, onClose: showReplaceCohort ? function () { return setShowReplaceCohort(false); } : onClose, title: showReplaceCohort
|
|
176
|
+
? 'Replace Existing Cohort'
|
|
177
|
+
: saveAs
|
|
178
|
+
? 'Save Cohort As'
|
|
179
|
+
: 'Save Cohort', size: "md", classNames: {
|
|
180
|
+
content: 'p-0',
|
|
181
|
+
title: 'text-xl',
|
|
182
|
+
}, children: showReplaceCohort ? (_jsx(UpdateBody, {})) : (_jsx(SaveOrCreateEntityBody, { entity: "cohort", action: "Save", initialName: initialName, onClose: onClose, onActionClick: function (name) {
|
|
183
|
+
saveAction(name, false);
|
|
184
|
+
setEnteredName(name);
|
|
185
|
+
}, descriptionMessage: saveAs
|
|
186
|
+
? 'Provide a name to save your current cohort as a new cohort'
|
|
187
|
+
: 'Provide a name to save the cohort.', closeOnAction: false, loading: isSaving, disallowedNames: invalidCohortNames })) }));
|
|
188
|
+
};
|
|
189
|
+
export default SaveCohortModal;
|
|
190
|
+
//# sourceMappingURL=SaveCohortModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveCohortModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAgBnE;;;;;;;;;;;;;GAaG;AACH,IAAM,eAAe,GAAmC,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EAAE,kBAAkB,GACnC,CACH,GACK,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveCohortModal.unit.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
38
|
+
import { render } from "@testing-library/react";
|
|
39
|
+
import userEvent from "@testing-library/user-event";
|
|
40
|
+
import SaveCohortModal from "./SaveCohortModal";
|
|
41
|
+
var hooks = {
|
|
42
|
+
useSelectCurrentCohort: jest.fn(),
|
|
43
|
+
useSelectAvailableCohorts: jest.fn(),
|
|
44
|
+
useDeleteCohort: jest.fn(),
|
|
45
|
+
useDiscardChanges: jest.fn(),
|
|
46
|
+
useUpdateFilters: jest.fn(),
|
|
47
|
+
useSetActiveCohort: jest.fn().mockReturnValue(jest.fn()),
|
|
48
|
+
useAddUnsavedCohort: jest.fn(),
|
|
49
|
+
useExportCohort: jest.fn(),
|
|
50
|
+
useImportCohort: jest.fn(),
|
|
51
|
+
useSaveCohort: jest
|
|
52
|
+
.fn()
|
|
53
|
+
.mockReturnValue(jest.fn().mockResolvedValue({ cohortAlreadyExists: true })),
|
|
54
|
+
useReplaceCohort: jest
|
|
55
|
+
.fn()
|
|
56
|
+
.mockReturnValue(jest.fn().mockResolvedValue({ newCohortId: "1" })),
|
|
57
|
+
};
|
|
58
|
+
describe("SaveCohortModal", function () {
|
|
59
|
+
beforeEach(function () {
|
|
60
|
+
jest.clearAllMocks();
|
|
61
|
+
});
|
|
62
|
+
test("populates name field from initialName", function () {
|
|
63
|
+
var getByRole = render(_jsx(SaveCohortModal, { onClose: jest.fn(), opened: true, filters: {
|
|
64
|
+
root: {
|
|
65
|
+
"projects.program.name": {
|
|
66
|
+
field: "projects.program.name",
|
|
67
|
+
operands: ["TCGA"],
|
|
68
|
+
operator: "includes",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
mode: "and",
|
|
72
|
+
}, cohortId: "1", initialName: "cohort name", hooks: hooks, invalidCohortNames: [] })).getByRole;
|
|
73
|
+
var nameInput = getByRole("textbox", {
|
|
74
|
+
name: "Name",
|
|
75
|
+
});
|
|
76
|
+
expect(nameInput.value).toBe("cohort name");
|
|
77
|
+
});
|
|
78
|
+
test("replaces cohort with same name", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
79
|
+
var getByText;
|
|
80
|
+
return __generator(this, function (_a) {
|
|
81
|
+
switch (_a.label) {
|
|
82
|
+
case 0:
|
|
83
|
+
getByText = render(_jsx(SaveCohortModal, { opened: true, onClose: jest.fn(), filters: {
|
|
84
|
+
root: {
|
|
85
|
+
"projects.program.name": {
|
|
86
|
+
field: "projects.program.name",
|
|
87
|
+
operands: ["TCGA"],
|
|
88
|
+
operator: "includes",
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
mode: "and",
|
|
92
|
+
}, cohortId: "1", hooks: hooks, invalidCohortNames: [] })).getByText;
|
|
93
|
+
return [4 /*yield*/, userEvent.type(getByText("Name"), "my new cohort")];
|
|
94
|
+
case 1:
|
|
95
|
+
_a.sent();
|
|
96
|
+
return [4 /*yield*/, userEvent.click(getByText("Save"))];
|
|
97
|
+
case 2:
|
|
98
|
+
_a.sent();
|
|
99
|
+
expect(getByText("A saved cohort with same name already exists. Are you sure you want to replace it?")).toBeInTheDocument();
|
|
100
|
+
return [2 /*return*/];
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}); });
|
|
104
|
+
test("clears state when modal is closed", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
105
|
+
var _a, getByText, queryByText, rerender;
|
|
106
|
+
return __generator(this, function (_b) {
|
|
107
|
+
switch (_b.label) {
|
|
108
|
+
case 0:
|
|
109
|
+
_a = render(_jsx(SaveCohortModal, { opened: true, onClose: jest.fn(), filters: {
|
|
110
|
+
root: {
|
|
111
|
+
"projects.program.name": {
|
|
112
|
+
field: "projects.program.name",
|
|
113
|
+
operands: ["TCGA"],
|
|
114
|
+
operator: "includes",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
mode: "and",
|
|
118
|
+
}, cohortId: "1", hooks: hooks, invalidCohortNames: [] })), getByText = _a.getByText, queryByText = _a.queryByText, rerender = _a.rerender;
|
|
119
|
+
return [4 /*yield*/, userEvent.type(getByText("Name"), "my new cohort")];
|
|
120
|
+
case 1:
|
|
121
|
+
_b.sent();
|
|
122
|
+
return [4 /*yield*/, userEvent.click(getByText("Save"))];
|
|
123
|
+
case 2:
|
|
124
|
+
_b.sent();
|
|
125
|
+
return [4 /*yield*/, userEvent.click(getByText("Replace"))];
|
|
126
|
+
case 3:
|
|
127
|
+
_b.sent();
|
|
128
|
+
// Modal is closed
|
|
129
|
+
rerender(_jsx(SaveCohortModal, { opened: true, onClose: jest.fn(), filters: {
|
|
130
|
+
root: {
|
|
131
|
+
"projects.program.name": {
|
|
132
|
+
field: "projects.program.name",
|
|
133
|
+
operands: ["TCGA"],
|
|
134
|
+
operator: "includes",
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
mode: "and",
|
|
138
|
+
}, cohortId: "1", hooks: hooks, invalidCohortNames: [] }));
|
|
139
|
+
expect(queryByText("Replace Existing Cohort")).not.toBeInTheDocument();
|
|
140
|
+
return [2 /*return*/];
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}); });
|
|
144
|
+
});
|
|
145
|
+
//# sourceMappingURL=SaveCohortModal.unit.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveCohortModal.unit.test.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,IAAM,KAAK,GAAG;IACZ,sBAAsB,EAAE,IAAI,CAAC,EAAE,EAAE;IACjC,yBAAyB,EAAE,IAAI,CAAC,EAAE,EAAE;IACpC,eAAe,EAAE,IAAI,CAAC,EAAE,EAAE;IAC1B,iBAAiB,EAAE,IAAI,CAAC,EAAE,EAAE;IAC5B,gBAAgB,EAAE,IAAI,CAAC,EAAE,EAAE;IAC3B,kBAAkB,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;IACxD,mBAAmB,EAAE,IAAI,CAAC,EAAE,EAAE;IAC9B,eAAe,EAAE,IAAI,CAAC,EAAE,EAAE;IAC1B,eAAe,EAAE,IAAI,CAAC,EAAE,EAAE;IAC1B,aAAa,EAAE,IAAI;SAChB,EAAE,EAAE;SACJ,eAAe,CACd,IAAI,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,mBAAmB,EAAE,IAAI,EAA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kB;oBAElB,QAAQ,CACN,KAAC,eAAe,IACd,MAAM,QACN,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,EAClB,OAAO,EAAE;4BACP,IAAI,EAAE;gCACJ,uBAAuB,EAAE;oCACvB,KAAK,EAAE,uBAAuB;oCAC9B,QAAQ,EAAE,CAAC,MAAM,CAAC;oCAClB,QAAQ,EAAE,UAAU;iCACrB;6BACF;4BACD,IAAI,EAAE,KAAK;yBACZ,EACD,QAAQ,EAAC,GAAG,EACZ,KAAK,EAAE,KAAK,EACZ,kBAAkB,EAAE,EAAE,GACtB,CACH,CAAC;oBAEF,MAAM,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;;;;SACxE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface SaveOrCreateEntityModalProps {
|
|
2
|
+
entity: string;
|
|
3
|
+
action?: string;
|
|
4
|
+
initialName?: string;
|
|
5
|
+
opened: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onActionClick: (name: string) => void;
|
|
8
|
+
onNameChange?: (name: string) => boolean;
|
|
9
|
+
descriptionMessage?: string;
|
|
10
|
+
additionalDuplicateMessage?: string;
|
|
11
|
+
disallowedNames?: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare const SaveOrCreateEntityModal: ({ entity, action, initialName, opened, onClose, onActionClick, onNameChange, descriptionMessage, additionalDuplicateMessage, disallowedNames, }: SaveOrCreateEntityModalProps) => JSX.Element;
|
|
14
|
+
interface SaveOrCreateEntityBodyProps {
|
|
15
|
+
entity: string;
|
|
16
|
+
action?: string;
|
|
17
|
+
initialName?: string;
|
|
18
|
+
onClose: () => void;
|
|
19
|
+
onActionClick: (name: string) => void;
|
|
20
|
+
onNameChange?: (name: string) => boolean;
|
|
21
|
+
descriptionMessage?: string;
|
|
22
|
+
additionalDuplicateMessage?: string;
|
|
23
|
+
closeOnAction?: boolean;
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
disallowedNames?: string[];
|
|
26
|
+
}
|
|
27
|
+
export declare const SaveOrCreateEntityBody: ({ entity, action, initialName, onClose, onActionClick, onNameChange, descriptionMessage, additionalDuplicateMessage, closeOnAction, loading, disallowedNames, }: SaveOrCreateEntityBodyProps) => JSX.Element;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=SaveOrCreateEntityModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveOrCreateEntityModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.tsx"],"names":[],"mappings":"AAOA,UAAU,4BAA4B;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AACD,eAAO,MAAM,uBAAuB,GAAI,iJAWrC,4BAA4B,KAAG,GAAG,CAAC,OAsBrC,CAAC;AAEF,UAAU,2BAA2B;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,sBAAsB,GAAI,iKAYpC,2BAA2B,KAAG,GAAG,CAAC,OAuGpC,CAAC"}
|