@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,79 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
|
+
import { upperFirst } from 'lodash';
|
|
25
|
+
import { Button, Modal, TextInput, Loader } from '@mantine/core';
|
|
26
|
+
import { useForm } from '@mantine/form';
|
|
27
|
+
import ErrorMessage from '../../../../components/MessageCards/ErrorMessage';
|
|
28
|
+
import { Icon } from '@iconify/react';
|
|
29
|
+
export var SaveOrCreateEntityModal = function (_a) {
|
|
30
|
+
var entity = _a.entity, _b = _a.action, action = _b === void 0 ? 'Save' : _b, _c = _a.initialName, initialName = _c === void 0 ? '' : _c, opened = _a.opened, onClose = _a.onClose, onActionClick = _a.onActionClick, onNameChange = _a.onNameChange, descriptionMessage = _a.descriptionMessage, additionalDuplicateMessage = _a.additionalDuplicateMessage, _d = _a.disallowedNames, disallowedNames = _d === void 0 ? [] : _d;
|
|
31
|
+
return (_jsx(Modal, { title: "".concat(upperFirst(action), " ").concat(upperFirst(entity)), opened: opened, padding: 0, radius: "md", onClose: onClose, children: _jsx(SaveOrCreateEntityBody, { entity: entity, action: action, initialName: initialName, onClose: onClose, onActionClick: onActionClick, onNameChange: onNameChange, descriptionMessage: descriptionMessage, additionalDuplicateMessage: additionalDuplicateMessage, disallowedNames: disallowedNames }) }));
|
|
32
|
+
};
|
|
33
|
+
export var SaveOrCreateEntityBody = function (_a) {
|
|
34
|
+
var _b;
|
|
35
|
+
var entity = _a.entity, _c = _a.action, action = _c === void 0 ? 'Save' : _c, _d = _a.initialName, initialName = _d === void 0 ? '' : _d, onClose = _a.onClose, onActionClick = _a.onActionClick, onNameChange = _a.onNameChange, descriptionMessage = _a.descriptionMessage, additionalDuplicateMessage = _a.additionalDuplicateMessage, _e = _a.closeOnAction, closeOnAction = _e === void 0 ? true : _e, _f = _a.loading, loading = _f === void 0 ? false : _f, _g = _a.disallowedNames, disallowedNames = _g === void 0 ? [] : _g;
|
|
36
|
+
var validationMessages = {
|
|
37
|
+
emptyField: 'Please fill out this field.',
|
|
38
|
+
invalidName: function (value) {
|
|
39
|
+
return "".concat(value, " is not a valid name for a saved ").concat(entity, ". Please try another name.");
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
var form = useForm({
|
|
43
|
+
initialValues: {
|
|
44
|
+
name: initialName,
|
|
45
|
+
},
|
|
46
|
+
validate: {
|
|
47
|
+
name: function (value) {
|
|
48
|
+
if (value.length === 0) {
|
|
49
|
+
return validationMessages.emptyField;
|
|
50
|
+
}
|
|
51
|
+
else if (disallowedNames.includes(value.trim().toLowerCase())) {
|
|
52
|
+
return validationMessages.invalidName(value);
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
// ignoring this error object as new one is being defined below
|
|
59
|
+
var _h = form.getInputProps('name'), _ = _h.error, inputProps = __rest(_h, ["error"]);
|
|
60
|
+
var validationError = form.errors.name;
|
|
61
|
+
var error = validationError && (_jsx(ErrorMessage, { message: validationError }));
|
|
62
|
+
var description = Object.keys(form.errors).length === 0 &&
|
|
63
|
+
(onNameChange && !onNameChange((((_b = form === null || form === void 0 ? void 0 : form.values) === null || _b === void 0 ? void 0 : _b.name) || '').trim()) ? (_jsxs("span", { className: "text-warningColorText", children: [_jsx(Icon, { icon: "gen3:wanring", className: "text-warningColor inline mr-0.5" }), "A ", entity, " with the same name already exists.", ' ', additionalDuplicateMessage && additionalDuplicateMessage] })) : (_jsx("span", { children: "Maximum 100 characters" })));
|
|
64
|
+
var handleActionClick = function () {
|
|
65
|
+
var _a;
|
|
66
|
+
if (form.validate().hasErrors || loading)
|
|
67
|
+
return;
|
|
68
|
+
onActionClick((((_a = form === null || form === void 0 ? void 0 : form.values) === null || _a === void 0 ? void 0 : _a.name) || '').trim());
|
|
69
|
+
if (closeOnAction) {
|
|
70
|
+
onClose();
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "font-content mt-1 mr-6 mb-5 ml-3", children: [_jsx("p", { className: "mb-2 text-sm font-content", children: descriptionMessage && descriptionMessage }), _jsx(TextInput, __assign({ withAsterisk: true, label: "Name", placeholder: "New ".concat(upperFirst(entity), " Name"), description: description, classNames: {
|
|
74
|
+
description: 'mt-1',
|
|
75
|
+
input: 'font-content data-[invalid=true]:text-utility-error data-[invalid=true]:border-utility-error',
|
|
76
|
+
error: 'text-utility-error',
|
|
77
|
+
}, "data-autofocus": true, maxLength: 100, error: error, inputWrapperOrder: ['label', 'input', 'error', 'description'] }, inputProps, { "aria-required": true, "data-testid": "textbox-name-input-field" }))] }), _jsx("div", { className: "bg-base-lightest p-4", children: _jsxs("div", { className: "flex justify-end gap-3", children: [_jsx(Button, { "data-testid": "button-cancel-save", variant: "outline", classNames: { root: 'bg-base-max' }, color: "secondary", onClick: onClose, children: "Cancel" }), _jsx(Button, { variant: "filled", color: "secondary", onClick: handleActionClick, "data-testid": "button-save-name", leftSection: loading ? _jsx(Loader, { size: 15, color: "white" }) : undefined, children: upperFirst(action) })] }) })] }));
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=SaveOrCreateEntityModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveOrCreateEntityModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,YAAY,MAAM,k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KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,OAAO,uBAGT,EACT,KAAC,MAAM,IACL,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,iBAAiB,iBACd,kBAAkB,EAC9B,WAAW,EACT,OAAO,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,OAAO,GAAG,CAAC,CAAC,CAAC,SAAS,YAGzD,UAAU,CAAC,MAAM,CAAC,GACZ,IACL,GACF,IACL,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const getCombinedClassesExpandCollapseQuery: (allQueryExpressionsCollapsed: boolean) => string;
|
|
2
|
+
export declare const getCombinedClassesForRowCollapse: (filtersSectionCollapsed: boolean) => string;
|
|
3
|
+
export declare const actionButtonVariant = "data-[variant=\"action\"]:h-12 data-[variant=\"action\"]:w-12 data-[variant=\"action\"]:flex data-[variant=\"action\"]:justify-center data-[variant=\"action\"]:items-center\n data-[variant=\"action\"]:transition-colors data-[variant=\"action\"]:focus-visible:outline-none data-[variant=\"action\"]:focus-visible:ring-offset-2 data-[variant=\"action\"]:focus-visible:ring-inset\n data-[variant=\"action\"]:focus-visible:ring-2 data-[variant=\"action\"]:focus-visible:ring-focusColor data-[variant=\"action\"]:disabled:opacity-50 data-[variant=\"action\"]:disabled:bg-base-max data-[variant=\"action\"]:disabled:text-primary\n data-[variant=\"action\"]:text-primary data-[variant=\"action\"]:hover:bg-primary-darkest data-[variant=\"action\"]:hover:text-primary-content-lightest data-[variant=\"action\"]:bg-base-max";
|
|
4
|
+
export declare const darkFunctionVariant = "\ndata-[variant=\"darkFunction\"]:flex\ndata-[variant=\"darkFunction\"]:flex-row\ndata-[variant=\"darkFunction\"]:items-center\ndata-[variant=\"darkFunction\"]:bg-secondary\ndata-[variant=\"darkFunction\"]:text-secondary-contrast\ndata-[variant=\"darkFunction\"]:border\ndata-[variant=\"darkFunction\"]:border-solid\ndata-[variant=\"darkFunction\"]:font-heading\ndata-[variant=\"darkFunction\"]:disabled:opacity-60\ndata-[variant=\"darkFunction\"]:disabled:border-opacity-60\ndata-[variant=\"darkFunction\"]:disabled:text-opacity-60";
|
|
5
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/style.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qCAAqC,GAChD,8BAA8B,OAAO,WAWtC,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,yBAAyB,OAAO,WAYjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,szBAGwJ,CAAC;AAEzL,eAAO,MAAM,mBAAmB,yhBAWuB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export var getCombinedClassesExpandCollapseQuery = function (allQueryExpressionsCollapsed) {
|
|
2
|
+
var baseClasses = "flex gap-0 items-center border-1 border-base-max rounded-md w-7 h-7";
|
|
3
|
+
var dynamicClasses = allQueryExpressionsCollapsed
|
|
4
|
+
? "text-primary bg-base-max"
|
|
5
|
+
: "text-base-max bg-transparent";
|
|
6
|
+
var disabledClasses = "disabled:opacity-50";
|
|
7
|
+
var enabledHoverClasses = "enabled:hover:bg-primary-darkest enabled:hover:text-primary-content-lightest enabled:hover:border-primary-darkest";
|
|
8
|
+
return "".concat(dynamicClasses, " ").concat(disabledClasses, " ").concat(enabledHoverClasses, " ").concat(baseClasses);
|
|
9
|
+
};
|
|
10
|
+
export var getCombinedClassesForRowCollapse = function (filtersSectionCollapsed) {
|
|
11
|
+
var baseClasses = "border-1 border-white rounded-md w-7 h-7 flex items-center";
|
|
12
|
+
var dynamicClasses = !filtersSectionCollapsed
|
|
13
|
+
? "text-primary bg-base-max"
|
|
14
|
+
: "text-base-max bg-transparent";
|
|
15
|
+
var disabledClasses = "disabled:opacity-50 disabled:bg-base-max disabled:text-primary";
|
|
16
|
+
var enabledHoverClasses = "enabled:hover:bg-primary-darkest enabled:hover:text-primary-content-lightest enabled:hover:border-primary-darkest";
|
|
17
|
+
return "".concat(disabledClasses, " ").concat(enabledHoverClasses, " ").concat(baseClasses, " ").concat(dynamicClasses);
|
|
18
|
+
};
|
|
19
|
+
export var actionButtonVariant = "data-[variant=\"action\"]:h-12 data-[variant=\"action\"]:w-12 data-[variant=\"action\"]:flex data-[variant=\"action\"]:justify-center data-[variant=\"action\"]:items-center\n data-[variant=\"action\"]:transition-colors data-[variant=\"action\"]:focus-visible:outline-none data-[variant=\"action\"]:focus-visible:ring-offset-2 data-[variant=\"action\"]:focus-visible:ring-inset\n data-[variant=\"action\"]:focus-visible:ring-2 data-[variant=\"action\"]:focus-visible:ring-focusColor data-[variant=\"action\"]:disabled:opacity-50 data-[variant=\"action\"]:disabled:bg-base-max data-[variant=\"action\"]:disabled:text-primary\n data-[variant=\"action\"]:text-primary data-[variant=\"action\"]:hover:bg-primary-darkest data-[variant=\"action\"]:hover:text-primary-content-lightest data-[variant=\"action\"]:bg-base-max";
|
|
20
|
+
export var darkFunctionVariant = "\ndata-[variant=\"darkFunction\"]:flex\ndata-[variant=\"darkFunction\"]:flex-row\ndata-[variant=\"darkFunction\"]:items-center\ndata-[variant=\"darkFunction\"]:bg-secondary\ndata-[variant=\"darkFunction\"]:text-secondary-contrast\ndata-[variant=\"darkFunction\"]:border\ndata-[variant=\"darkFunction\"]:border-solid\ndata-[variant=\"darkFunction\"]:font-heading\ndata-[variant=\"darkFunction\"]:disabled:opacity-60\ndata-[variant=\"darkFunction\"]:disabled:border-opacity-60\ndata-[variant=\"darkFunction\"]:disabled:text-opacity-60";
|
|
21
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/style.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,qCAAqC,GAAG,UACnD,4BAAqC;IAErC,IAAM,WAAW,GACf,qEAAqE,CAAC;IACxE,IAAM,cAAc,GAAG,4BAA4B;QACjD,CAAC,CAAC,0BAA0B;QAC5B,CAAC,CAAC,8BAA8B,CAAC;IACnC,IAAM,eAAe,GAAG,qBAAqB,CAAC;IAC9C,IAAM,mBAAmB,GACvB,mHAAmH,CAAC;IACtH,OAAO,UAAG,cAAc,cAAI,eAAe,cAAI,mBAAmB,cAAI,WAAW,CAAE,CAAC;AACtF,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,gCAAgC,GAAG,UAC9C,uBAAgC;IAEhC,IAAM,WAAW,GACf,4DAA4D,CAAC;IAC/D,IAAM,cAAc,GAAG,CAAC,uBAAuB;QAC7C,CAAC,CAAC,0BAA0B;QAC5B,CAAC,CAAC,8BAA8B,CAAC;IACnC,IAAM,eAAe,GACnB,gEAAgE,CAAC;IACnE,IAAM,mBAAmB,GACvB,mHAAmH,CAAC;IACtH,OAAO,UAAG,eAAe,cAAI,mBAAmB,cAAI,WAAW,cAAI,cAAc,CAAE,CAAC;AACtF,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAG,mzBAGqJ,CAAC;AAEzL,MAAM,CAAC,IAAM,mBAAmB,GAAG,shBAWoB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type CohortPersistenceSaveReplaceParameters, type ReplacePersistedCohortResults, type SavePersistedCohortResult } from '@gen3/core';
|
|
2
|
+
export interface DataFetchingResult<T> extends DataFetchingStatus {
|
|
3
|
+
readonly data: T;
|
|
4
|
+
}
|
|
5
|
+
export interface DataFetchingStatus {
|
|
6
|
+
readonly isSuccess?: boolean;
|
|
7
|
+
readonly isFetching?: boolean;
|
|
8
|
+
readonly isError?: boolean;
|
|
9
|
+
readonly isUninitialized?: boolean;
|
|
10
|
+
readonly error?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface Cohort {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly filters: Record<string, any>;
|
|
16
|
+
readonly modified?: boolean;
|
|
17
|
+
readonly modified_datetime: string;
|
|
18
|
+
readonly saved?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export type NotificationTypes = 'newCohort' | 'deleteCohort' | 'savedCohort' | 'savedCohortSetCurrent' | 'savedCurrentCohort' | 'discardChanges' | 'error';
|
|
21
|
+
export interface CohortNotificationCommandWithParam {
|
|
22
|
+
cmd: Omit<NotificationTypes, 'savedCurrentCohort' | 'discardChanges'>;
|
|
23
|
+
param1: string;
|
|
24
|
+
param2?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface CohortNotificationCommandNoParam {
|
|
27
|
+
cmd: 'savedCurrentCohort' | 'discardChanges';
|
|
28
|
+
}
|
|
29
|
+
export type CohortNotificationCommand = CohortNotificationCommandWithParam | CohortNotificationCommandNoParam;
|
|
30
|
+
type SetCohortMessageFunc = (cmd: CohortNotificationCommand[]) => void;
|
|
31
|
+
export interface CohortHooks {
|
|
32
|
+
useSelectCurrentCohort: () => Cohort;
|
|
33
|
+
useSelectAvailableCohorts: () => Cohort[];
|
|
34
|
+
useDeleteCohort: () => () => Promise<void>;
|
|
35
|
+
useDiscardChanges: () => () => Promise<void>;
|
|
36
|
+
useUpdateFilters?: () => () => void;
|
|
37
|
+
useSetActiveCohort: () => (cohortId: string) => void;
|
|
38
|
+
useAddUnsavedCohort: () => () => void;
|
|
39
|
+
useSaveCohort: () => ({ newName, cohortId, filters, caseFilters, createStaticCohort, saveAs, }: CohortPersistenceSaveReplaceParameters) => Promise<SavePersistedCohortResult>;
|
|
40
|
+
useReplaceCohort: () => ({ newName, filters, caseFilters, createStaticCohort, cohortId, saveAs, }: CohortPersistenceSaveReplaceParameters) => Promise<ReplacePersistedCohortResults>;
|
|
41
|
+
useExportCohort?: () => {
|
|
42
|
+
handleExport: () => void;
|
|
43
|
+
status: DataFetchingStatus;
|
|
44
|
+
};
|
|
45
|
+
useImportCohort?: () => () => void;
|
|
46
|
+
useCreateCohortExternally?: (setCohortMessage?: SetCohortMessageFunc) => void;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sCAAsC,EAC3C,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC/B,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,kBAAkB,CAAC,CAAC,CAAE,SAAQ,kBAAkB;IAC/D,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,cAAc,GACd,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,gBAAgB,GAChB,OAAO,CAAC;AAEZ,MAAM,WAA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E,MAAM,MAAM,IAAI,CAAC;IACnC,yBAAyB,CAAC,EAAE,CAAC,gBAAgB,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC/E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface CohortManagerProps {
|
|
2
|
+
index: string;
|
|
3
|
+
}
|
|
4
|
+
declare const CohortManagerAndExpression: ({ index }: CohortManagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default CohortManagerAndExpression;
|
|
6
|
+
//# sourceMappingURL=CohortManagerAndExpression.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortManagerAndExpression.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortManagerAndExpression.tsx"],"names":[],"mappings":"AAkBA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,0BAA0B,GAAI,WAAW,kBAAkB,4CAqBhE,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import QueryExpression from './QueryExpression';
|
|
3
|
+
import { useSavePersistedCohort, useReplaceExistingPersistedCohort, useAddUnsavedCohort, useSetActiveCohort, useDiscardChanges, useDeletePersistedCohort, } from '@gen3/core';
|
|
4
|
+
import { useSelectCurrentCohort, useSelectAvailableCohorts, } from './CohortManager/cohortActionHooks';
|
|
5
|
+
import { CohortManager } from './CohortManager';
|
|
6
|
+
var CohortManagerAndExpression = function (_a) {
|
|
7
|
+
var index = _a.index;
|
|
8
|
+
var cohortActionsHooks = {
|
|
9
|
+
useSelectCurrentCohort: useSelectCurrentCohort,
|
|
10
|
+
useSelectAvailableCohorts: useSelectAvailableCohorts,
|
|
11
|
+
useDeleteCohort: useDeletePersistedCohort,
|
|
12
|
+
useDiscardChanges: useDiscardChanges,
|
|
13
|
+
useSetActiveCohort: useSetActiveCohort,
|
|
14
|
+
useAddUnsavedCohort: useAddUnsavedCohort,
|
|
15
|
+
useSaveCohort: useSavePersistedCohort,
|
|
16
|
+
useReplaceCohort: useReplaceExistingPersistedCohort,
|
|
17
|
+
};
|
|
18
|
+
return (_jsxs("div", { className: "flex flex-col mb-2", children: [_jsx(CohortManager, { hooks: cohortActionsHooks, defaultCohortName: 'New Unsaved Cohort' }), _jsx(QueryExpression, { index: index })] }));
|
|
19
|
+
};
|
|
20
|
+
export default CohortManagerAndExpression;
|
|
21
|
+
//# sourceMappingURL=CohortManagerAndExpression.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CohortManagerAndExpression.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortManagerAndExpression.tsx"],"names":[],"mappings":";AACA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,sBAAsB,EACtB,iCAAiC,EACjC,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAoB,MAAM,iBAAiB,CAAC;AAMlE,IAAM,0BAA0B,GAAG,UAAC,EAA6B;QAA3B,KAAK,WAAA;IACzC,IAAM,kBAAkB,GAAgB;QACtC,sBAAsB,wBAAA;QACtB,yBAAyB,2BAAA;QACzB,eAAe,EAAE,wBAAwB;QACzC,iBAAiB,mBAAA;QACjB,kBAAkB,oBAAA;QAClB,mBAAmB,qBAAA;QACnB,aAAa,EAAE,sBAAsB;QACrC,gBAAgB,EAAE,iCAAiC;KACpD,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,oBAAoB,aACjC,KAAC,aAAa,IACZ,KAAK,EAAE,kBAAkB,EACzB,iBAAiB,EAAE,oBAAoB,GACvC,EACF,KAAC,eAAe,IAAC,KAAK,EAAE,KAAK,GAAI,IAC7B,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CohortPanelConfiguration } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* The main component that houses the charts, tabs, modals
|
|
4
4
|
* filters, tables, buttons of the exploration page.
|
|
@@ -7,5 +7,9 @@ import { type CohortPanelConfig } from './types';
|
|
|
7
7
|
* explorer config in legacy gitops.json file.
|
|
8
8
|
* @example see packages/sampleCommons/config/gen3/explorer.json
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
interface CohortPanelConfigurationWithAccessLevel extends CohortPanelConfiguration {
|
|
11
|
+
showAccessLevel?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const CohortPanel: ({ guppyConfig, filters, charts, table, tabTitle, dropdowns, buttons, loginForDownload, showAccessLevel, }: CohortPanelConfigurationWithAccessLevel) => JSX.Element;
|
|
14
|
+
export {};
|
|
11
15
|
//# sourceMappingURL=CohortPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortPanel.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"CohortPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortPanel.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAyCxD;;;;;;;GAOG;AAEH,UAAU,uCACR,SAAQ,wBAAwB;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,WAAW,GAAI,2GAUzB,uCAAuC,KAAG,GAAG,CAAC,OAwRhD,CAAC"}
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useMemo, useState } from 'react';
|
|
14
14
|
import { partial } from 'lodash';
|
|
15
|
-
import { extractEnumFilterValue, isIntersection, selectIndexFilters, useCoreSelector, useGetAggsQuery, useGetCountsQuery, selectSharedFilters, useGetAggsNoFilterSelfQuery, } from '@gen3/core';
|
|
15
|
+
import { extractEnumFilterValue, isIntersection, selectIndexFilters, useCoreSelector, useGetAggsQuery, useGetCountsQuery, selectSharedFilters, useGetAggsNoFilterSelfQuery, Accessibility, } from '@gen3/core';
|
|
16
16
|
import { ErrorCard } from '../../components/MessageCards';
|
|
17
17
|
import { useMediaQuery } from '@mantine/hooks';
|
|
18
18
|
import { classifyFacets, extractRangeValues, getAllFieldsFromFilterConfigs, processBucketData, processRangeData, removeIntersectionFromEnum, useGetFacetFilters, useUpdateFilters, } from '../../components/facets/utils';
|
|
@@ -27,20 +27,13 @@ import { toDisplayName } from '../../utils';
|
|
|
27
27
|
import { useCohortFilterCombineState, useFilterExpandedState, useSetCohortFilterCombineState, useToggleExpandFilter, } from './hooks';
|
|
28
28
|
import DropdownPanel from './Panels/DropdownPanel';
|
|
29
29
|
var EmptyData = {};
|
|
30
|
-
/**
|
|
31
|
-
* The main component that houses the charts, tabs, modals
|
|
32
|
-
* filters, tables, buttons of the exploration page.
|
|
33
|
-
*
|
|
34
|
-
* All of these params come directly from the top level exploration page configuration file or
|
|
35
|
-
* explorer config in legacy gitops.json file.
|
|
36
|
-
* @example see packages/sampleCommons/config/gen3/explorer.json
|
|
37
|
-
*/
|
|
38
30
|
export var CohortPanel = function (_a) {
|
|
39
31
|
var _b;
|
|
40
|
-
var guppyConfig = _a.guppyConfig, filters = _a.filters, _c = _a.charts, charts = _c === void 0 ? {} : _c, table = _a.table, tabTitle = _a.tabTitle, dropdowns = _a.dropdowns, buttons = _a.buttons, loginForDownload = _a.loginForDownload;
|
|
32
|
+
var guppyConfig = _a.guppyConfig, filters = _a.filters, _c = _a.charts, charts = _c === void 0 ? {} : _c, table = _a.table, tabTitle = _a.tabTitle, dropdowns = _a.dropdowns, buttons = _a.buttons, loginForDownload = _a.loginForDownload, _d = _a.showAccessLevel, showAccessLevel = _d === void 0 ? false : _d;
|
|
41
33
|
var isSm = useMediaQuery('(min-width: 639px)');
|
|
42
34
|
var isMd = useMediaQuery('(min-width: 1373px)');
|
|
43
35
|
var isXl = useMediaQuery('(min-width: 1600px)');
|
|
36
|
+
var _e = useState(Accessibility.ALL), accessLevel = _e[0], setAccessLevel = _e[1];
|
|
44
37
|
var sharedFiltersMap = useCoreSelector(function (state) {
|
|
45
38
|
return selectSharedFilters(state);
|
|
46
39
|
});
|
|
@@ -53,21 +46,23 @@ export var CohortPanel = function (_a) {
|
|
|
53
46
|
numCols = 4;
|
|
54
47
|
var index = guppyConfig.dataType;
|
|
55
48
|
var fields = useMemo(function () { var _a; return getAllFieldsFromFilterConfigs((_a = filters === null || filters === void 0 ? void 0 : filters.tabs) !== null && _a !== void 0 ? _a : []); }, [filters === null || filters === void 0 ? void 0 : filters.tabs]);
|
|
56
|
-
var
|
|
57
|
-
var
|
|
49
|
+
var _f = useState({}), facetDefinitions = _f[0], setFacetDefinitions = _f[1];
|
|
50
|
+
var _g = useState({}), summaryCharts = _g[0], setSummaryCharts = _g[1];
|
|
58
51
|
var cohortFilters = useCoreSelector(function (state) {
|
|
59
52
|
return selectIndexFilters(state, index);
|
|
60
53
|
});
|
|
61
|
-
var
|
|
54
|
+
var _h = useGetAggsQuery({
|
|
62
55
|
type: index,
|
|
63
56
|
fields: fields,
|
|
64
57
|
filters: cohortFilters,
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
accessibility: accessLevel,
|
|
59
|
+
}), data = _h.data, isSuccess = _h.isSuccess, isAggsQueryFetching = _h.isFetching, isAggsQueryError = _h.isError;
|
|
60
|
+
var _j = useGetAggsNoFilterSelfQuery({
|
|
67
61
|
type: index,
|
|
68
62
|
fields: Object.keys(charts),
|
|
69
63
|
filters: cohortFilters,
|
|
70
|
-
|
|
64
|
+
accessibility: accessLevel,
|
|
65
|
+
}), chartData = _j.data, isChartSuccess = _j.isSuccess, isChartFetching = _j.isFetching, isChartError = _j.isError;
|
|
71
66
|
var getEnumFacetData = useDeepCompareCallback(function (field) {
|
|
72
67
|
var filters = undefined;
|
|
73
68
|
var combineMode = 'or';
|
|
@@ -176,13 +171,14 @@ export var CohortPanel = function (_a) {
|
|
|
176
171
|
guppyConfig.fieldMapping,
|
|
177
172
|
charts,
|
|
178
173
|
]);
|
|
179
|
-
var
|
|
174
|
+
var _k = useGetCountsQuery({
|
|
180
175
|
type: index,
|
|
181
176
|
filters: cohortFilters,
|
|
182
|
-
|
|
177
|
+
accessibility: accessLevel,
|
|
178
|
+
}), counts = _k.data, isCountSuccess = _k.isSuccess, isError = _k.isError;
|
|
183
179
|
if (isError || isAggsQueryError) {
|
|
184
180
|
return _jsx(ErrorCard, { message: "Unable to fetch data from server" }); // TODO: replace with configurable message
|
|
185
181
|
}
|
|
186
|
-
return (_jsxs("div", { className: "flex flex-col mt-3 relative px-4 bg-base-light w-full", children: [_jsx(CohortManager, { index: index }), _jsxs("div", { className: "flex w-full", children: [_jsx("div", { id: "cohort-builder-filters", className: "flex-shrink-0 md:w-1/4 lg:w-1/5", children: (filters === null || filters === void 0 ? void 0 : filters.tabs) && (_jsx(DropdownPanel, { index: index, filters: filters, tabTitle: tabTitle, facetDefinitions: facetDefinitions, facetDataHooks: facetDataHooks })) }), _jsxs("div", { id: "cohort-builder-content", className: "flex flex-col md:w-3/4 lg:w-4/5 pl-4", children: [_jsxs("div", { className: "flex justify-between mb-2 ml-2", children: [_jsx(DownloadsPanel, { dropdowns: dropdowns !== null && dropdowns !== void 0 ? dropdowns : {}, buttons: buttons !== null && buttons !== void 0 ? buttons : [], loginForDownload: loginForDownload, index: index, totalCount: counts !== null && counts !== void 0 ? counts : 0, fields: (_b = table === null || table === void 0 ? void 0 : table.fields) !== null && _b !== void 0 ? _b : [], filter: cohortFilters }), _jsx(CountsValue, { label: (guppyConfig === null || guppyConfig === void 0 ? void 0 : guppyConfig.nodeCountTitle) || toDisplayName(index), counts: counts, isSuccess: isCountSuccess })] }), _jsx(Charts, { charts: summaryCharts, data: chartData !== null && chartData !== void 0 ? chartData : EmptyData, counts: counts, isSuccess: isChartSuccess, numCols: numCols }), (table === null || table === void 0 ? void 0 : table.enabled) && (_jsx("div", { className: "mt-2 flex flex-col", children: _jsx("div", { className: "grid", children: _jsx(ExplorerTable, { index: index, tableConfig: table }) }) }))] })] })] }));
|
|
182
|
+
return (_jsxs("div", { className: "flex flex-col mt-3 relative px-4 bg-base-light w-full", children: [_jsx(CohortManager, { index: index }), _jsxs("div", { className: "flex w-full", children: [_jsx("div", { id: "cohort-builder-filters", className: "flex-shrink-0 md:w-1/4 lg:w-1/5", children: (filters === null || filters === void 0 ? void 0 : filters.tabs) && (_jsx(DropdownPanel, { index: index, filters: filters, tabTitle: tabTitle, facetDefinitions: facetDefinitions, facetDataHooks: facetDataHooks, onAccessChange: setAccessLevel, accessLevel: accessLevel, showAccessLevel: showAccessLevel })) }), _jsxs("div", { id: "cohort-builder-content", className: "flex flex-col md:w-3/4 lg:w-4/5 pl-4", children: [_jsxs("div", { className: "flex justify-between mb-2 ml-2", children: [_jsx(DownloadsPanel, { dropdowns: dropdowns !== null && dropdowns !== void 0 ? dropdowns : {}, buttons: buttons !== null && buttons !== void 0 ? buttons : [], loginForDownload: loginForDownload, index: index, totalCount: counts !== null && counts !== void 0 ? counts : 0, fields: (_b = table === null || table === void 0 ? void 0 : table.fields) !== null && _b !== void 0 ? _b : [], filter: cohortFilters }), _jsx(CountsValue, { label: (guppyConfig === null || guppyConfig === void 0 ? void 0 : guppyConfig.nodeCountTitle) || toDisplayName(index), counts: counts, isSuccess: isCountSuccess })] }), _jsx(Charts, { charts: summaryCharts, data: chartData !== null && chartData !== void 0 ? chartData : EmptyData, counts: counts, isSuccess: isChartSuccess, numCols: numCols }), (table === null || table === void 0 ? void 0 : table.enabled) && (_jsx("div", { className: "mt-2 flex flex-col", children: _jsx("div", { className: "grid", children: _jsx(ExplorerTable, { index: index, tableConfig: table, accessibility: accessLevel }) }) }))] })] })] }));
|
|
187
183
|
};
|
|
188
184
|
//# sourceMappingURL=CohortPanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortPanel.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortPanel.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CohortPanel.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortPanel.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAEL,sBAAsB,EAGtB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,iBAAiB,EAEjB,mBAAmB,EACnB,2BAA2B,EAC3B,aAAa,GACd,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,6BAA6B,EAC7B,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAKhE,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,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J,CAAC,CAAC"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UnsavedIcon: ({ label }: {
|
|
3
|
+
label: string;
|
|
4
|
+
}) => JSX.Element;
|
|
5
|
+
interface CohortSelectorProps {
|
|
6
|
+
showSelectedCohorts?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const CohortSelector: React.FC<CohortSelectorProps>;
|
|
2
9
|
export default CohortSelector;
|
|
3
10
|
//# sourceMappingURL=CohortSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortSelector.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CohortSelector.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,eAAO,MAAM,WAAW,GAAI,WAAW;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,KAAG,GAAG,CAAC,OAM9D,CAAC;AAEF,UAAU,mBAAmB;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8FjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,18 +1,59 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Group } from '@mantine/core';
|
|
2
|
+
import { Group, Select, Tooltip } from '@mantine/core';
|
|
3
|
+
import { Icon } from '@iconify/react';
|
|
3
4
|
import JSONObjectDownloadButton from '../../components/Buttons/DownloadButtons/JSONObjectDownloadButton';
|
|
4
|
-
import { useCoreDispatch, setCohortIndexFilters,
|
|
5
|
-
import { useDeepCompareCallback } from 'use-deep-compare';
|
|
5
|
+
import { useCoreDispatch, useCoreSelector, selectAvailableCohorts, selectCurrentCohortModified, selectCurrentCohortSaved, setActiveCohort, setCohortIndexFilters, selectCurrentCohortId, selectCohortFilters, } from '@gen3/core';
|
|
6
|
+
import { useDeepCompareCallback, useDeepCompareMemo } from 'use-deep-compare';
|
|
6
7
|
import UploadJSONButton from '../../components/Buttons/UploadJSONButton';
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export var UnsavedIcon = function (_a) {
|
|
9
|
+
var label = _a.label;
|
|
10
|
+
return (_jsx(Tooltip, { label: label, withArrow: true, children: _jsx("span", { className: "leading-0 pointer-events-auto", children: _jsx(Icon, { icon: "gen3:cohort-unsaved", "aria-hidden": "true", height: "1.5rem" }) }) }));
|
|
11
|
+
};
|
|
12
|
+
var CohortSelector = function (_a) {
|
|
13
|
+
var _b = _a.showSelectedCohorts, showSelectedCohorts = _b === void 0 ? true : _b;
|
|
14
|
+
var coreDispatch = useCoreDispatch();
|
|
15
|
+
var cohorts = useCoreSelector(selectAvailableCohorts);
|
|
16
|
+
var currentCohortId = useCoreSelector(selectCurrentCohortId);
|
|
17
|
+
var filters = useCoreSelector(selectCohortFilters);
|
|
18
|
+
var currentCohortModified = useCoreSelector(selectCurrentCohortModified);
|
|
19
|
+
var currentCohortSaved = useCoreSelector(selectCurrentCohortSaved);
|
|
20
|
+
var cohortStatusMessage = currentCohortSaved
|
|
21
|
+
? 'Changes not saved'
|
|
22
|
+
: 'Cohort not saved';
|
|
23
|
+
var isSavedUnchanged = currentCohortSaved && !currentCohortModified;
|
|
24
|
+
var getData = useDeepCompareCallback(function () {
|
|
25
|
+
return filters;
|
|
26
|
+
}, [filters]);
|
|
11
27
|
var setCohort = useDeepCompareCallback(function (data) {
|
|
12
28
|
var jsonForm = JSON.parse(data);
|
|
13
|
-
|
|
14
|
-
}, [
|
|
15
|
-
|
|
29
|
+
coreDispatch(setCohortIndexFilters({ filters: jsonForm }));
|
|
30
|
+
}, [coreDispatch]);
|
|
31
|
+
var handleCohortChange = useDeepCompareCallback(function (id) {
|
|
32
|
+
coreDispatch(setActiveCohort(id));
|
|
33
|
+
}, [coreDispatch]);
|
|
34
|
+
var cohortList = useDeepCompareMemo(function () {
|
|
35
|
+
return cohorts
|
|
36
|
+
.sort(function (a, b) {
|
|
37
|
+
return a.modified_datetime <= b.modified_datetime ? 1 : -1;
|
|
38
|
+
})
|
|
39
|
+
.map(function (x) { return ({
|
|
40
|
+
value: x.id,
|
|
41
|
+
label: x.name,
|
|
42
|
+
isSavedUnchanged: x.saved && !x.modified,
|
|
43
|
+
cohortStatusMessage: x.saved
|
|
44
|
+
? 'Changes not saved'
|
|
45
|
+
: 'Cohort not saved',
|
|
46
|
+
}); });
|
|
47
|
+
}, [cohorts]);
|
|
48
|
+
return (_jsxs(Group, { children: [_jsx(Select, { data: cohortList, searchable: true, clearable: false, value: currentCohortId, onChange: function (id) {
|
|
49
|
+
if (id !== null) {
|
|
50
|
+
handleCohortChange(id);
|
|
51
|
+
}
|
|
52
|
+
}, classNames: {
|
|
53
|
+
root: 'border-secondary-darkest w-56 md:w-80 z-[290]',
|
|
54
|
+
input: 'text-heading font-medium text-primary-darkest rounded-l-none h-[50px] border-primary border-l-2',
|
|
55
|
+
option: 'text-heading font-normal text-primary-darkest data-selected:bg-primary-lighter hover:bg-accent-lightest hover:text-accent-contrast-lightest my-0.5',
|
|
56
|
+
}, "aria-label": "Select cohort", "data-testid": "switchButton", rightSection: _jsxs("div", { className: "flex gap-1 items-center", children: [!isSavedUnchanged && _jsx(UnsavedIcon, { label: cohortStatusMessage }), _jsx(Icon, { icon: "gen3:caret-down", height: "1.5rem", className: "text-primary" })] }), rightSectionWidth: !isSavedUnchanged ? 45 : 30, styles: { section: { pointerEvents: 'none' } } }), _jsx(JSONObjectDownloadButton, { getData: getData, filename: "cohort.json", tooltip: "Export Cohort" }), _jsx(UploadJSONButton, { handleFileChange: setCohort, tooltip: "Import Cohort" })] }));
|
|
16
57
|
};
|
|
17
58
|
export default CohortSelector;
|
|
18
59
|
//# sourceMappingURL=CohortSelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortSelector.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortSelector.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,wBAAwB,MAAM,mEAAmE,CAAC;AACzG,OAAO,
|
|
1
|
+
{"version":3,"file":"CohortSelector.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortSelector.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,wBAAwB,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAIL,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,gBAAgB,MAAM,2CAA2C,CAAC;AAEzE,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,EAA4B;QAA1B,KAAK,WAAA;IAAuC,OAAA,CACxE,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,kBAC9B,eAAM,SAAS,EAAC,+BAA+B,YAC7C,KAAC,IAAI,IAAC,IAAI,EAAC,qBAAqB,iBAAa,MAAM,EAAC,MAAM,EAAC,QAAQ,GAAG,GACjE,GACC,CACX;AANyE,CAMzE,CAAC;AAMF,IAAM,cAAc,GAAkC,UAAC,EAEtD;QADC,2BAA0B,EAA1B,mBAAmB,mBAAG,IAAI,KAAA;IAE1B,IAAM,YAAY,GAAG,eAAe,EAAE,CAA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AS,EAAE,OAAO,EAAC,eAAe,GAAG,IACnE,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CellRendererFunction } from './ExplorerTableCellRenderers';
|
|
3
|
+
import { JSONObject } from '@gen3/core';
|
|
4
|
+
import { CellRendererFunctionProps } from './types';
|
|
5
|
+
export declare const ArrayCellRenderer: (cellRenderFunction: CellRendererFunction, props: CellRendererFunctionProps<JSONObject>, ...args: any[]) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
6
|
+
//# sourceMappingURL=ArrayCellRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayCellRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,iBAAiB,GAC5B,oBAAoB,oBAAoB,EACxC,OAAO,yBAAyB,CAAC,UAAU,CAAC,EAC5C,GAAG,MAAM,GAAG,EAAE,kKAiBf,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { isArray } from 'lodash';
|
|
14
|
+
export var ArrayCellRenderer = function (cellRenderFunction, props) {
|
|
15
|
+
var args = [];
|
|
16
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
17
|
+
args[_i - 2] = arguments[_i];
|
|
18
|
+
}
|
|
19
|
+
console.log('ArrayCellRenderer');
|
|
20
|
+
console.log(cellRenderFunction);
|
|
21
|
+
console.log(props);
|
|
22
|
+
console.log(args);
|
|
23
|
+
var cell = props.cell;
|
|
24
|
+
var value = cell.getValue();
|
|
25
|
+
if (isArray(value)) {
|
|
26
|
+
return (_jsx("div", { className: "w-64 flex flex-wrap gap-0.5", children: value.map(function (x) { return cellRenderFunction(__assign(__assign({}, props), { cell: x }), args); }) }));
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return cellRenderFunction(props, args);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=ArrayCellRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayCellRenderer.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAKjC,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAC/B,kBAAwC,EACxC,KAA4C;IAC5C,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,6BAAc;;IAEd,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACjC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAChC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACnB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACV,IAAA,IAAI,GAAK,KAAK,KAAV,CAAW;IACvB,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC9B,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACnB,OAAO,CACL,cAAK,SAAS,EAAC,6BAA6B,YACzC,KAAK,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,kBAAkB,uBAAM,KAAK,KAAE,IAAI,EAAE,CAAC,KAAI,IAAI,CAAC,EAA/C,CAA+C,CAAC,GAC9D,CACP,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;AACH,CAAC,CAAC"}
|
package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TableDetailsPanelProps } from './types';
|
|
2
|
-
export declare const QueryRowDetailsPanel: ({ id, index, tableConfig, }: TableDetailsPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const QueryRowDetailsPanel: ({ id, index, tableConfig, accessibility, }: TableDetailsPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default QueryRowDetailsPanel;
|
|
4
4
|
//# sourceMappingURL=QueryRowDetailsPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRowDetailsPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AA0BjD,eAAO,MAAM,oBAAoB,GAAI,
|
|
1
|
+
{"version":3,"file":"QueryRowDetailsPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AA0BjD,eAAO,MAAM,oBAAoB,GAAI,4CAKlC,sBAAsB,4CA2DxB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js
CHANGED
|
@@ -19,7 +19,7 @@ var ExtractData = function (data, index) {
|
|
|
19
19
|
export var QueryRowDetailsPanel = function (_a) {
|
|
20
20
|
var _b;
|
|
21
21
|
var _c;
|
|
22
|
-
var id = _a.id, index = _a.index, tableConfig = _a.tableConfig;
|
|
22
|
+
var id = _a.id, index = _a.index, tableConfig = _a.tableConfig, accessibility = _a.accessibility;
|
|
23
23
|
//const [queryGuppy, { data, isLoading, isError }] = useLazyGeneralGQLQuery();
|
|
24
24
|
var idField = (_c = tableConfig.detailsConfig) === null || _c === void 0 ? void 0 : _c.idField;
|
|
25
25
|
var _d = useGeneralGQLQuery({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRowDetailsPanel.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,SAAS,MAAM,+CAA+C,CAAC;AAOtE,SAAS,eAAe,CAAC,GAAQ;IAC/B,qDAAqD;IACrD,OAAO,CACL,OAAO,GAAG,KAAK,QAAQ;QACvB,CAAC,GAAG,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,CACzD,CAAC;AACJ,CAAC;AAED,IAAM,WAAW,GAAG,UAClB,IAAmB,EACnB,KAAa;IAEb,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IACnD,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IAE7D,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC;QACnE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC,CAAC,EAAE,CAAC;AACT,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAAC,
|
|
1
|
+
{"version":3,"file":"QueryRowDetailsPanel.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,SAAS,MAAM,+CAA+C,CAAC;AAOtE,SAAS,eAAe,CAAC,GAAQ;IAC/B,qDAAqD;IACrD,OAAO,CACL,OAAO,GAAG,KAAK,QAAQ;QACvB,CAAC,GAAG,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,CACzD,CAAC;AACJ,CAAC;AAED,IAAM,WAAW,GAAG,UAClB,IAAmB,EACnB,KAAa;IAEb,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IACnD,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IAE7D,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAA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K,QAAA,EAAE,KAAK,QAAA;QAAM,OAAA,CAC7D,yBACE,uBACE,KAAC,IAAI,IAAC,EAAE,EAAC,MAAM,YAAE,KAAK,GAAQ,GAC3B,EACL,uBACE,KAAC,IAAI,cAAE,KAAK,CAAC,CAAC,CAAE,KAAgB,CAAC,CAAC,CAAC,EAAE,GAAQ,GAC1C,KANE,KAAK,CAOT,CACN;IAT8D,CAS9D,CAAC,CAAC;IACH,OAAO,CACL,MAAC,KAAK,eACJ,KAAC,cAAc,IAAC,OAAO,EAAE,SAAS,GAAI,EACtC,MAAC,IAAI,IAAC,CAAC,EAAC,WAAW,6BAAc,EAAE,IAAQ,EAC3C,MAAC,KAAK,IAAC,eAAe,QAAC,iBAAiB,mBACtC,0BACE,yBACE,iCAAc,EACd,iCAAc,IACX,GACC,EACR,0BAAQ,IAAI,GAAS,IACf,IACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DetailsPanelComponentProps } from '../../../../components/Details/types';
|
|
2
2
|
import { SummaryTable } from '../types';
|
|
3
|
+
import { Accessibility } from '@gen3/core';
|
|
3
4
|
export interface TableDetailsPanelProps extends DetailsPanelComponentProps {
|
|
4
5
|
index: string;
|
|
5
6
|
tableConfig: SummaryTable;
|
|
7
|
+
accessibility: Accessibility;
|
|
6
8
|
}
|
|
7
9
|
/**
|
|
8
10
|
* Represents the configuration for the Explorer details.
|