@gen3/frontend 0.10.94 → 0.10.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +5783 -2696
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Content/LandingPageContent.d.ts +2 -1
- package/dist/dts/components/Content/LandingPageContent.d.ts.map +1 -1
- package/dist/dts/components/Content/LandingPageContent.js.map +1 -1
- package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +64 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.js +38 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +2 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +141 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +1 -0
- package/dist/dts/components/DropdownMenu/index.d.ts +3 -0
- package/dist/dts/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/index.js +3 -0
- package/dist/dts/components/DropdownMenu/index.js.map +1 -0
- package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginPanel.js +1 -0
- package/dist/dts/components/Login/LoginPanel.js.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
- package/dist/dts/components/Login/types.d.ts +2 -1
- package/dist/dts/components/Login/types.d.ts.map +1 -1
- package/dist/dts/components/Login/types.js.map +1 -1
- package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts +5 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts.map +1 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.js +9 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.js.map +1 -0
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts +7 -0
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +1 -0
- package/dist/dts/components/MessageCards/ErrorMessage.js +8 -0
- package/dist/dts/components/MessageCards/ErrorMessage.js.map +1 -0
- package/dist/dts/components/MessageCards/index.d.ts +2 -1
- package/dist/dts/components/MessageCards/index.d.ts.map +1 -1
- package/dist/dts/components/MessageCards/index.js +2 -1
- package/dist/dts/components/MessageCards/index.js.map +1 -1
- package/dist/dts/components/Profile/types.d.ts +2 -1
- package/dist/dts/components/Profile/types.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.js +2 -0
- package/dist/dts/components/charts/Charts.js.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.js +42 -4
- package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.js +3 -2
- package/dist/dts/components/charts/echarts/HorizontalBarChart.js.map +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.js +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
- package/dist/dts/components/charts/types.d.ts +2 -0
- package/dist/dts/components/charts/types.d.ts.map +1 -1
- package/dist/dts/components/charts/utils.d.ts +1 -1
- package/dist/dts/components/charts/utils.d.ts.map +1 -1
- package/dist/dts/components/charts/utils.js +2 -4
- package/dist/dts/components/charts/utils.js.map +1 -1
- package/dist/dts/components/facets/EnumFacet.d.ts +2 -1
- package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/EnumFacet.js.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.js +7 -30
- package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
- package/dist/dts/components/facets/FacetSelector.d.ts +1 -1
- package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetSelector.js +9 -7
- package/dist/dts/components/facets/FacetSelector.js.map +1 -1
- package/dist/dts/components/facets/types.d.ts +1 -0
- package/dist/dts/components/facets/types.d.ts.map +1 -1
- package/dist/dts/components/facets/types.js.map +1 -1
- package/dist/dts/components/facets/utils.d.ts +4 -2
- package/dist/dts/components/facets/utils.d.ts.map +1 -1
- package/dist/dts/components/facets/utils.js +27 -1
- package/dist/dts/components/facets/utils.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
- package/dist/dts/features/Analysis/types.d.ts +2 -1
- package/dist/dts/features/Analysis/types.d.ts.map +1 -1
- package/dist/dts/features/Analysis/types.js.map +1 -1
- package/dist/dts/features/CohortBuilder/AccessLevel.d.ts +8 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.js +20 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +4 -20
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +20 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +37 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +18 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +149 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +122 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +19 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +52 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +10 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +37 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +33 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +7 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js +80 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.js +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +15 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +8 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +32 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +190 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +145 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +79 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.js +21 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +49 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.js +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js +21 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +6 -2
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +15 -19
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +8 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.js +51 -10
- package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +32 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts +2 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts +3 -2
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +56 -60
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js +48 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js +81 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js +22 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js +17 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts +12 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js +2 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts +52 -12
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts +4 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js +70 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +2 -2
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +5 -4
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +2 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts +4 -1
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -1
- package/dist/dts/features/CohortBuilder/index.d.ts +5 -2
- package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/index.js +4 -1
- package/dist/dts/features/CohortBuilder/index.js.map +1 -1
- package/dist/dts/features/CohortBuilder/types.d.ts +15 -7
- package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/types.js +6 -0
- package/dist/dts/features/CohortBuilder/types.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js +18 -2
- package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js +10 -4
- package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +20 -12
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +28 -8
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +9 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +147 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts +2 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js +36 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts +461 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +51 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +97 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +435 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +64 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +572 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts +7 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.js +2 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts +6 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js +55 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -22
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js +40 -34
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -90
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.js +161 -92
- package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts +2 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +25 -7
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +42 -34
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts +14 -28
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js +4 -4
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js +4 -10
- package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js +2 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js +76 -13
- package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts +22 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js +147 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts +9 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js +133 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +284 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts +8 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js +9 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts +10 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +157 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts +3 -4
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js +6 -11
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts +9 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js +15 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +2 -2
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +17 -3
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +13 -3
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts +12 -0
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +40 -1
- package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/queryApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/queryApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/registerApp.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/registerApp.js +5 -3
- package/dist/dts/features/CohortDiscovery/registerApp.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.d.ts +88 -3
- package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.js +45 -1
- package/dist/dts/features/CohortDiscovery/types.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/utils.d.ts +2 -0
- package/dist/dts/features/CohortDiscovery/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/utils.js +9 -0
- package/dist/dts/features/CohortDiscovery/utils.js.map +1 -1
- package/dist/dts/features/CohortSimilarity/appApi.d.ts +4 -6
- package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/appApi.js +3 -1
- package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -1
- package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/registerApp.js +1 -3
- package/dist/dts/features/CohortSimilarity/registerApp.js.map +1 -1
- package/dist/dts/features/Crosswalk/types.d.ts +2 -1
- package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.js +2 -2
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.js.map +1 -1
- package/dist/dts/features/DataLibrary/SearchAndActions.js +1 -1
- package/dist/dts/features/DataLibrary/SearchAndActions.js.map +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js.map +1 -1
- package/dist/dts/features/DataLibrary/tests/utils.unit.test.js +2 -1
- package/dist/dts/features/DataLibrary/tests/utils.unit.test.js.map +1 -1
- package/dist/dts/features/DataLibrary/utils.d.ts +0 -10
- package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/utils.js +0 -34
- package/dist/dts/features/DataLibrary/utils.js.map +1 -1
- package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/CategoryPanel.js +9 -9
- package/dist/dts/features/Dictionary/CategoryPanel.js.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryWithContext.js.map +1 -1
- package/dist/dts/features/Dictionary/types.d.ts +5 -1
- package/dist/dts/features/Dictionary/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/IndexedMetadata/DataLoader.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js +2 -2
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.js +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +8 -6
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryProvider.d.ts +0 -3
- package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryProvider.js +0 -5
- package/dist/dts/features/Discovery/DiscoveryProvider.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.js +7 -5
- package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.js +3 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts +2 -3
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js +3 -3
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts +1 -2
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +5 -6
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/index.d.ts +2 -4
- package/dist/dts/features/Discovery/index.d.ts.map +1 -1
- package/dist/dts/features/Discovery/index.js +1 -3
- package/dist/dts/features/Discovery/index.js.map +1 -1
- package/dist/dts/features/Discovery/types.d.ts +5 -108
- package/dist/dts/features/Discovery/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.js +0 -16
- package/dist/dts/features/Discovery/types.js.map +1 -1
- package/dist/dts/features/Discovery/utils.d.ts +2 -8
- package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/utils.js +1 -28
- package/dist/dts/features/Discovery/utils.js.map +1 -1
- package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Footer/FooterColumn.js.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
- package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar/AccountButton.js +1 -1
- package/dist/dts/features/Navigation/TopBar/AccountButton.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar/LoginButton.js +1 -1
- package/dist/dts/features/Navigation/TopBar/LoginButton.js.map +1 -1
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts +9 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js +11 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts +19 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js +56 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts +15 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js +44 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +10 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js +36 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts +10 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +19 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts +8 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js +31 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts +9 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js +11 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +5 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.js +283 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts +10 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js +45 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.d.ts +10 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.js +11 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts +9 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.js +8 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.js.map +1 -0
- package/dist/dts/features/Study/StudyProvider.d.ts +12 -0
- package/dist/dts/features/Study/StudyProvider.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyProvider.js +23 -0
- package/dist/dts/features/Study/StudyProvider.js.map +1 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts +3 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts.map +1 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.js +20 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.js.map +1 -0
- package/dist/dts/features/Study/TableRenderers/types.d.ts +14 -0
- package/dist/dts/features/Study/TableRenderers/types.d.ts.map +1 -0
- package/dist/dts/features/Study/TableRenderers/types.js +2 -0
- package/dist/dts/features/Study/TableRenderers/types.js.map +1 -0
- package/dist/dts/features/Study/index.d.ts +5 -0
- package/dist/dts/features/Study/index.d.ts.map +1 -0
- package/dist/dts/features/Study/index.js +4 -0
- package/dist/dts/features/Study/index.js.map +1 -0
- package/dist/dts/features/Study/types.d.ts +91 -0
- package/dist/dts/features/Study/types.d.ts.map +1 -0
- package/dist/dts/features/Study/types.js +8 -0
- package/dist/dts/features/Study/types.js.map +1 -0
- package/dist/dts/features/Study/utils.d.ts +10 -0
- package/dist/dts/features/Study/utils.d.ts.map +1 -0
- package/dist/dts/features/Study/utils.js +28 -0
- package/dist/dts/features/Study/utils.js.map +1 -0
- package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.d.ts.map +1 -1
- package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.js.map +1 -1
- package/dist/dts/features/Workspace/types.d.ts +2 -1
- package/dist/dts/features/Workspace/types.d.ts.map +1 -1
- package/dist/dts/features/Workspace/types.js.map +1 -1
- package/dist/dts/index.d.ts +3 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +7 -1
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/content/types.d.ts +2 -0
- package/dist/dts/lib/content/types.d.ts.map +1 -1
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +22 -34
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.d.ts.map +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.js +1 -5
- package/dist/dts/pages/Crosswalk/Crosswalk.js.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.d.ts.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.js +12 -5
- package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
- package/dist/dts/pages/Discovery/Discovery.d.ts.map +1 -1
- package/dist/dts/pages/Discovery/Discovery.js +14 -5
- package/dist/dts/pages/Discovery/Discovery.js.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.d.ts +1 -1
- package/dist/dts/pages/Explorer/Explorer.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.js +13 -6
- package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
- package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/data.js +28 -22
- package/dist/dts/pages/Explorer/data.js.map +1 -1
- package/dist/dts/pages/Landing/Landing.d.ts.map +1 -1
- package/dist/dts/pages/Landing/Landing.js +12 -5
- package/dist/dts/pages/Landing/Landing.js.map +1 -1
- package/dist/dts/pages/Login/Login.d.ts.map +1 -1
- package/dist/dts/pages/Login/Login.js +1 -5
- package/dist/dts/pages/Login/Login.js.map +1 -1
- package/dist/dts/pages/Profile/Profile.d.ts.map +1 -1
- package/dist/dts/pages/Profile/Profile.js +12 -5
- package/dist/dts/pages/Profile/Profile.js.map +1 -1
- package/dist/dts/pages/Query/Query.d.ts.map +1 -1
- package/dist/dts/pages/Query/Query.js +12 -5
- package/dist/dts/pages/Query/Query.js.map +1 -1
- package/dist/dts/pages/Query/types.d.ts +2 -1
- package/dist/dts/pages/Query/types.d.ts.map +1 -1
- package/dist/dts/pages/Workspace/Workspace.d.ts.map +1 -1
- package/dist/dts/pages/Workspace/Workspace.js +14 -5
- package/dist/dts/pages/Workspace/Workspace.js.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.d.ts +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
- package/dist/dts/types/icons.d.ts +5 -0
- package/dist/dts/types/icons.d.ts.map +1 -0
- package/dist/dts/types/icons.js +6 -0
- package/dist/dts/types/icons.js.map +1 -0
- package/dist/dts/utils/access.d.ts +10 -0
- package/dist/dts/utils/access.d.ts.map +1 -0
- package/dist/dts/utils/access.js +11 -0
- package/dist/dts/utils/access.js.map +1 -0
- package/dist/dts/utils/authMapping.d.ts +4 -0
- package/dist/dts/utils/authMapping.d.ts.map +1 -1
- package/dist/dts/utils/authMapping.js.map +1 -1
- package/dist/dts/utils/convertResourcePathsToTree.d.ts +8 -0
- package/dist/dts/utils/convertResourcePathsToTree.d.ts.map +1 -0
- package/dist/dts/utils/convertResourcePathsToTree.js +43 -0
- package/dist/dts/utils/convertResourcePathsToTree.js.map +1 -0
- package/dist/dts/utils/dataAuthorization.d.ts +11 -0
- package/dist/dts/utils/dataAuthorization.d.ts.map +1 -0
- package/dist/dts/utils/dataAuthorization.js +2 -0
- package/dist/dts/utils/dataAuthorization.js.map +1 -0
- package/dist/dts/utils/date.d.ts +16 -0
- package/dist/dts/utils/date.d.ts.map +1 -1
- package/dist/dts/utils/date.js +54 -8
- package/dist/dts/utils/date.js.map +1 -1
- package/dist/dts/utils/index.d.ts +4 -3
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +4 -2
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/layout.d.ts +2 -0
- package/dist/dts/utils/layout.d.ts.map +1 -0
- package/dist/dts/utils/layout.js +20 -0
- package/dist/dts/utils/layout.js.map +1 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts +2 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts.map +1 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js +150 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js.map +1 -0
- package/dist/dts/utils/tests/values.test.js +0 -1
- package/dist/dts/utils/tests/values.test.js.map +1 -1
- package/dist/esm/index.js +5798 -2718
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +412 -329
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +0 -2
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts +0 -3
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js +0 -13
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js.map +0 -1
|
@@ -12,80 +12,47 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
14
14
|
import { useDeepCompareMemo } from 'use-deep-compare';
|
|
15
|
-
import {
|
|
15
|
+
import { isJSONValue, selectIndexFilters, useCoreSelector, useGetRawDataAndTotalCountsQuery, } from '@gen3/core';
|
|
16
16
|
import { MantineReactTable, useMantineReactTable, } from 'mantine-react-table';
|
|
17
|
-
import { jsonPathAccessor } from '../../../components/Tables/utils';
|
|
18
17
|
import { TableIcons } from '../../../components/Tables/TableIcons';
|
|
19
|
-
import { ExplorerTableCellRendererFactory, } from './ExplorerTableCellRenderers';
|
|
20
18
|
import { ExplorerTableDetailsPanelFactory, } from './ExploreTableDetails';
|
|
21
19
|
import { DetailsModal } from '../../../components/Details';
|
|
20
|
+
import { createTableColumns } from './utils';
|
|
21
|
+
import SubtableStack from './SubTables/SubtableStack';
|
|
22
22
|
var DEFAULT_PAGE_LIMIT_LABEL = 'Rows per Page (Limited to 10,0000):';
|
|
23
23
|
var DEFAULT_PAGE_LIMIT = 10000;
|
|
24
|
-
var isRecordAny = function (obj) {
|
|
25
|
-
if (Array.isArray(obj))
|
|
26
|
-
return false;
|
|
27
|
-
return obj !== null && typeof obj === 'object';
|
|
28
|
-
};
|
|
29
24
|
/**
|
|
30
25
|
* Main table component for the explorer page. Fetches data from guppy using
|
|
31
26
|
* useGetRawDataAndTotalCountsQuery() hook that leverages guppy core API slices
|
|
32
27
|
*
|
|
33
28
|
* @param index - Offset to use for fetching/displaying pages of rows
|
|
34
29
|
* @param tableConfig - Inherited from ExplorerPageGetServerSideProps
|
|
30
|
+
* @param accessibility - set the access level for the cohort data
|
|
35
31
|
*/
|
|
36
32
|
var ExplorerTable = function (_a) {
|
|
37
|
-
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
38
|
-
var index = _a.index, tableConfig = _a.tableConfig;
|
|
39
|
-
var
|
|
33
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
34
|
+
var index = _a.index, tableConfig = _a.tableConfig, accessibility = _a.accessibility, classNames = _a.classNames, _m = _a.size, size = _m === void 0 ? 'sm' : _m;
|
|
35
|
+
var _o = useState({
|
|
40
36
|
pageIndex: 0,
|
|
41
37
|
pageSize: 10,
|
|
42
|
-
}), pagination =
|
|
38
|
+
}), pagination = _o[0], setPagination = _o[1];
|
|
43
39
|
var DetailsComponent = (DetailsModal);
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
40
|
+
var _p = useState([]), sorting = _p[0], setSorting = _p[1];
|
|
41
|
+
var _q = useState({}), rowSelection = _q[0], setRowSelection = _q[1];
|
|
42
|
+
var _r = useState(undefined), selectedRow = _r[0], setSelectedRow = _r[1];
|
|
47
43
|
var DetailsPanel = useMemo(function () {
|
|
48
44
|
var _a, _b;
|
|
49
45
|
return ExplorerTableDetailsPanelFactory().getRenderer('tableDetails', (_b = (_a = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.detailsConfig) === null || _a === void 0 ? void 0 : _a.panel) !== null && _b !== void 0 ? _b : 'default');
|
|
50
|
-
}, []);
|
|
51
|
-
var
|
|
52
|
-
|
|
53
|
-
// TODO: refactor to support more complex table configs
|
|
54
|
-
return tableConfig.fields.map(function (field) {
|
|
55
|
-
var _a, _b, _c, _d;
|
|
56
|
-
var columnDef = (_a = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.columns) === null || _a === void 0 ? void 0 : _a[field];
|
|
57
|
-
var cellRendererFunc = (columnDef === null || columnDef === void 0 ? void 0 : columnDef.type)
|
|
58
|
-
? ExplorerTableCellRendererFactory().getRenderer(columnDef === null || columnDef === void 0 ? void 0 : columnDef.type, (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.cellRenderFunction) !== null && _b !== void 0 ? _b : 'default')
|
|
59
|
-
: undefined;
|
|
60
|
-
var cellRendererFuncParams = (columnDef === null || columnDef === void 0 ? void 0 : columnDef.params) && isRecordAny(columnDef === null || columnDef === void 0 ? void 0 : columnDef.params)
|
|
61
|
-
? columnDef === null || columnDef === void 0 ? void 0 : columnDef.params
|
|
62
|
-
: {};
|
|
63
|
-
return {
|
|
64
|
-
id: field,
|
|
65
|
-
field: field,
|
|
66
|
-
accessorKey: field,
|
|
67
|
-
header: (_c = columnDef === null || columnDef === void 0 ? void 0 : columnDef.title) !== null && _c !== void 0 ? _c : fieldNameToTitle(field),
|
|
68
|
-
accessorFn: (columnDef === null || columnDef === void 0 ? void 0 : columnDef.accessorPath)
|
|
69
|
-
? jsonPathAccessor(columnDef.accessorPath)
|
|
70
|
-
: undefined,
|
|
71
|
-
Cell: cellRendererFunc && (columnDef === null || columnDef === void 0 ? void 0 : columnDef.params)
|
|
72
|
-
? function (cell) {
|
|
73
|
-
return cellRendererFunc(cell, cellRendererFuncParams);
|
|
74
|
-
}
|
|
75
|
-
: cellRendererFunc
|
|
76
|
-
? cellRendererFunc
|
|
77
|
-
: undefined,
|
|
78
|
-
size: columnDef === null || columnDef === void 0 ? void 0 : columnDef.width,
|
|
79
|
-
enableSorting: (_d = columnDef === null || columnDef === void 0 ? void 0 : columnDef.sortable) !== null && _d !== void 0 ? _d : undefined,
|
|
80
|
-
};
|
|
81
|
-
}, []);
|
|
46
|
+
}, [(_b = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.detailsConfig) === null || _b === void 0 ? void 0 : _b.panel]);
|
|
47
|
+
var tableColumns = useDeepCompareMemo(function () {
|
|
48
|
+
return createTableColumns(tableConfig);
|
|
82
49
|
}, [tableConfig]);
|
|
83
50
|
// TODO: add support for nested fields
|
|
84
|
-
var fields = useMemo(function () { return
|
|
51
|
+
var fields = useMemo(function () { return tableColumns.map(function (column) { return column.field; }); }, [tableColumns]);
|
|
85
52
|
var getRowId = useCallback(function (tableConfig) {
|
|
86
53
|
var detailsConfig = (tableConfig || {}).detailsConfig;
|
|
87
54
|
var idField = detailsConfig === null || detailsConfig === void 0 ? void 0 : detailsConfig.idField;
|
|
88
|
-
return function (originalRow
|
|
55
|
+
return function (originalRow) {
|
|
89
56
|
return idField && Object.keys(originalRow).includes(idField)
|
|
90
57
|
? originalRow[idField]
|
|
91
58
|
: undefined;
|
|
@@ -94,7 +61,7 @@ var ExplorerTable = function (_a) {
|
|
|
94
61
|
var cohortFilters = useCoreSelector(function (state) {
|
|
95
62
|
return selectIndexFilters(state, index);
|
|
96
63
|
});
|
|
97
|
-
var
|
|
64
|
+
var _s = useGetRawDataAndTotalCountsQuery({
|
|
98
65
|
type: index,
|
|
99
66
|
fields: fields,
|
|
100
67
|
filters: cohortFilters,
|
|
@@ -106,9 +73,9 @@ var ExplorerTable = function (_a) {
|
|
|
106
73
|
return _a = {}, _a[x.id] = x.desc ? 'desc' : 'asc', _a;
|
|
107
74
|
})
|
|
108
75
|
: undefined,
|
|
109
|
-
accessibility:
|
|
110
|
-
}), data =
|
|
111
|
-
var
|
|
76
|
+
accessibility: accessibility,
|
|
77
|
+
}), data = _s.data, isLoading = _s.isLoading, isError = _s.isError, isFetching = _s.isFetching;
|
|
78
|
+
var _t = useDeepCompareMemo(function () {
|
|
112
79
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
113
80
|
var pageLimit = (_b = ((tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.pageLimit) && ((_a = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.pageLimit) === null || _a === void 0 ? void 0 : _a.limit))) !== null && _b !== void 0 ? _b : DEFAULT_PAGE_LIMIT;
|
|
114
81
|
var totalRowCount = (tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.pageLimit)
|
|
@@ -118,7 +85,7 @@ var ExplorerTable = function (_a) {
|
|
|
118
85
|
? ((_k = (_j = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.pageLimit) === null || _j === void 0 ? void 0 : _j.label) !== null && _k !== void 0 ? _k : DEFAULT_PAGE_LIMIT_LABEL)
|
|
119
86
|
: 'Rows per Page:';
|
|
120
87
|
return { totalRowCount: totalRowCount, limitLabel: limitLabel };
|
|
121
|
-
}, [tableConfig, data, pagination.pageSize, index]), totalRowCount =
|
|
88
|
+
}, [tableConfig, data, pagination.pageSize, index]), totalRowCount = _t.totalRowCount, limitLabel = _t.limitLabel;
|
|
122
89
|
/**
|
|
123
90
|
* mantine-react-table setup
|
|
124
91
|
* @see https://www.mantine-react-table.com/docs/api/table-options
|
|
@@ -138,8 +105,8 @@ var ExplorerTable = function (_a) {
|
|
|
138
105
|
* @see https://www.mantine-react-table.com/docs/guides/state-management#manage-individual-states-as-needed
|
|
139
106
|
*/
|
|
140
107
|
var table = useMantineReactTable({
|
|
141
|
-
columns:
|
|
142
|
-
data: (
|
|
108
|
+
columns: tableColumns, //TODO: fix this
|
|
109
|
+
data: (_d = (_c = data === null || data === void 0 ? void 0 : data.data) === null || _c === void 0 ? void 0 : _c[index]) !== null && _d !== void 0 ? _d : [],
|
|
143
110
|
manualSorting: true,
|
|
144
111
|
manualPagination: true,
|
|
145
112
|
enableStickyHeader: true,
|
|
@@ -147,12 +114,21 @@ var ExplorerTable = function (_a) {
|
|
|
147
114
|
onPaginationChange: setPagination,
|
|
148
115
|
onSortingChange: setSorting,
|
|
149
116
|
enableTopToolbar: false,
|
|
117
|
+
enableExpanding: !!(tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.detailsConfig),
|
|
150
118
|
getRowId: getRowId(tableConfig),
|
|
151
119
|
rowCount: totalRowCount,
|
|
152
120
|
icons: TableIcons,
|
|
153
121
|
paginationDisplayMode: 'pages',
|
|
154
|
-
enableRowSelection: (
|
|
122
|
+
enableRowSelection: (_e = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.selectableRows) !== null && _e !== void 0 ? _e : false,
|
|
155
123
|
localization: { rowsPerPage: limitLabel },
|
|
124
|
+
mantineTableProps: {
|
|
125
|
+
style: {
|
|
126
|
+
backgroundColor: 'var(--mantine-color-base-1)',
|
|
127
|
+
'--mrt-striped-row-background-color': 'var(--mantine-color-base-3)',
|
|
128
|
+
fontSize: "var(--mantine-font-size-".concat(size, ")"),
|
|
129
|
+
zIndex: 10,
|
|
130
|
+
},
|
|
131
|
+
},
|
|
156
132
|
mantinePaginationProps: {
|
|
157
133
|
rowsPerPageOptions: ['5', '10', '20', '40', '100'],
|
|
158
134
|
withEdges: false, //note: changed from `showFirstLastButtons` in v1.0
|
|
@@ -182,7 +158,7 @@ var ExplorerTable = function (_a) {
|
|
|
182
158
|
density: 'xs',
|
|
183
159
|
rowSelection: rowSelection,
|
|
184
160
|
},
|
|
185
|
-
mantineTableBodyRowProps: ((
|
|
161
|
+
mantineTableBodyRowProps: ((_f = tableConfig.detailsConfig) === null || _f === void 0 ? void 0 : _f.mode) === 'click'
|
|
186
162
|
? function (_a) {
|
|
187
163
|
var row = _a.row;
|
|
188
164
|
return ({
|
|
@@ -203,10 +179,30 @@ var ExplorerTable = function (_a) {
|
|
|
203
179
|
});
|
|
204
180
|
}
|
|
205
181
|
: {},
|
|
182
|
+
renderDetailPanel: ((_g = tableConfig.detailsConfig) === null || _g === void 0 ? void 0 : _g.mode) === 'expand' || (tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.subTables)
|
|
183
|
+
? function (_a) {
|
|
184
|
+
var _b, _c;
|
|
185
|
+
var row = _a.row;
|
|
186
|
+
var val = (_b = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.subTables) === null || _b === void 0 ? void 0 : _b.some(function (subTable) {
|
|
187
|
+
if (subTable.root in row.original &&
|
|
188
|
+
isJSONValue(row.original[subTable.root])) {
|
|
189
|
+
return (Object.values(row.original[subTable.root])
|
|
190
|
+
.length > 0);
|
|
191
|
+
}
|
|
192
|
+
else
|
|
193
|
+
return false;
|
|
194
|
+
});
|
|
195
|
+
if ((tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.subTables) && val) {
|
|
196
|
+
return (_jsx(SubtableStack, { subTables: tableConfig.subTables, data: (_c = row.original) !== null && _c !== void 0 ? _c : [] }));
|
|
197
|
+
}
|
|
198
|
+
else
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
: undefined,
|
|
206
202
|
});
|
|
207
|
-
return (_jsxs(React.Fragment, { children: [Object.keys(rowSelection).length > 0 ? (_jsx(DetailsComponent, { title: (
|
|
203
|
+
return (_jsxs(React.Fragment, { children: [Object.keys(rowSelection).length > 0 ? (_jsx(DetailsComponent, { title: (_h = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.detailsConfig) === null || _h === void 0 ? void 0 : _h.title, id: Object.keys(rowSelection).length > 0
|
|
208
204
|
? Object.keys(rowSelection).at(0)
|
|
209
|
-
: undefined, row: selectedRow, onClose: function () { return setRowSelection({}); }, panel: DetailsPanel, classNames: (
|
|
205
|
+
: undefined, row: selectedRow, onClose: function () { return setRowSelection({}); }, panel: DetailsPanel, classNames: (_j = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.detailsConfig) === null || _j === void 0 ? void 0 : _j.classNames, panelProps: __assign(__assign({ index: index, tableConfig: tableConfig }, ((_l = (_k = tableConfig === null || tableConfig === void 0 ? void 0 : tableConfig.detailsConfig) === null || _k === void 0 ? void 0 : _k.params) !== null && _l !== void 0 ? _l : {})), { accessibility: accessibility }) })) : null, _jsx("div", { className: "inline-block overflow-x-scroll", children: _jsx(MantineReactTable, { table: table }) })] }));
|
|
210
206
|
};
|
|
211
207
|
export default ExplorerTable;
|
|
212
208
|
//# sourceMappingURL=ExplorerTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerTable.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/ExplorerTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ExplorerTable.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/ExplorerTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAoB,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAEL,WAAW,EAEX,kBAAkB,EAClB,eAAe,EACf,gCAAgC,GACjC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,iBAAiB,EAKjB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEnE,OAAO,EACL,gCAAgC,GAEjC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAEtD,IAAM,wBAAwB,GAAG,qCAAqC,CAAC;AACvE,IAAM,kBAAkB,GAAG,KAAK,CAAC;AAEjC;;;;;;;GAOG;AACH,IAAM,aAAa,GAAG,UAAC,EAMF;;QALnB,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,UAAU,gBAAA,EACV,YAAW,EAAX,IAAI,mBAAG,IAAI,KAAA;IAEL,IAAA,KAA8B,QAAQ,CAAsB;QAChE,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,EAAE;KACb,CAAC,EAHK,UAAU,QAAA,EAAE,aAAa,QAG9B,CAAC;IAEH,IAAM,gBAAgB,GAAG,CAAA,YAAoC,C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AC;IACH,OAAO,CACL,MAAC,KAAK,CAAC,QAAQ,eACZ,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACtC,KAAC,gBAAgB,IACf,KAAK,EAAE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,aAAa,0CAAE,KAAK,EACxC,EAAE,EACA,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC;oBAClC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;oBACjC,CAAC,CAAC,SAAS,EAEf,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,cAAM,OAAA,eAAe,CAAC,EAAE,CAAC,EAAnB,CAAmB,EAClC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,aAAa,0CAAE,UAAU,EAClD,UAAU,sBACR,KAAK,OAAA,EACL,WAAW,aAAA,IACR,CAAC,MAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,aAAa,0CAAE,MAAM,mCAAI,EAAE,CAAC,KAC7C,aAAa,eAAA,MAEf,CACH,CAAC,CAAC,CAAC,IAAI,EAER,cAAK,SAAS,EAAC,gCAAgC,YAC7C,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,GAC/B,IACS,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpandingSubtable.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAmBjD,QAAA,MAAM,iBAAiB,GAAI,kBAAkB,sBAAsB,4CAoFlE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { ActionIcon, useMantineTheme } from '@mantine/core';
|
|
4
|
+
import { Icon } from '@iconify/react';
|
|
5
|
+
import ExplorerTableSubtable from './ExplorerTableSubtable';
|
|
6
|
+
import { useDeepCompareMemo } from 'use-deep-compare';
|
|
7
|
+
import { createArrayTableColumns, createTableColumns } from '../utils';
|
|
8
|
+
var Header = function (_a) {
|
|
9
|
+
var label = _a.label, className = _a.className;
|
|
10
|
+
return (_jsx("div", { className: "flex items-center bg-primary px-4 h-10 w-full text-primary-contrast font-semibold", children: label }));
|
|
11
|
+
};
|
|
12
|
+
var ExpandingSubtable = function (_a) {
|
|
13
|
+
var config = _a.config, data = _a.data;
|
|
14
|
+
var _b = useState(false), expanded = _b[0], setExpanded = _b[1];
|
|
15
|
+
var _c = useState(0), headerHeight = _c[0], setHeaderHeight = _c[1];
|
|
16
|
+
var theme = useMantineTheme();
|
|
17
|
+
var expandedTableColumns = useDeepCompareMemo(function () {
|
|
18
|
+
return createTableColumns(config);
|
|
19
|
+
}, [config]);
|
|
20
|
+
var compressedTableColumns = useDeepCompareMemo(function () {
|
|
21
|
+
return createArrayTableColumns(config.root, config);
|
|
22
|
+
}, [config]);
|
|
23
|
+
var expand = function () {
|
|
24
|
+
setExpanded(function (prevState) { return !prevState; });
|
|
25
|
+
};
|
|
26
|
+
var tableData = data;
|
|
27
|
+
if (!expanded) {
|
|
28
|
+
// convert data from Array<Record<string, JSONValue>> to Record<string, Array<JSONValue>>
|
|
29
|
+
tableData = [
|
|
30
|
+
data
|
|
31
|
+
? data.reduce(function (acc, row) {
|
|
32
|
+
config.fields.forEach(function (field) {
|
|
33
|
+
acc[field].push(row[field]);
|
|
34
|
+
});
|
|
35
|
+
return acc;
|
|
36
|
+
}, config.fields.reduce(function (rec, f) {
|
|
37
|
+
rec[f] = [];
|
|
38
|
+
return rec;
|
|
39
|
+
}, {}))
|
|
40
|
+
: {},
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
return (_jsxs("div", { className: "flex flex-col", children: [_jsx(Header, { label: config.label }), _jsxs("div", { className: "flex flex-nowrap w-full", children: [_jsxs("div", { className: "flex flex-col border border-table-light", children: [_jsx("div", { className: "bg-secondary-lightest border-bottom border-table-light", style: {
|
|
44
|
+
height: "".concat(headerHeight, "px"),
|
|
45
|
+
} }), _jsx(ActionIcon, { variant: "transparent", "aria-label": "Settings", onClick: expand, className: "my-auto", children: _jsx(Icon, { icon: expanded ? 'gen3:changeFrom' : 'gen3:changeTo', color: theme.colors.accent[4] }) })] }), _jsx("div", { className: "w-full overflow-x-auto", children: expanded ? (_jsx(ExplorerTableSubtable, { columns: expandedTableColumns, data: tableData, setHeaderHeight: setHeaderHeight })) : (_jsx(ExplorerTableSubtable, { columns: compressedTableColumns, data: tableData, setHeaderHeight: setHeaderHeight })) }), "/"] })] }));
|
|
46
|
+
};
|
|
47
|
+
export default ExpandingSubtable;
|
|
48
|
+
//# sourceMappingURL=ExpandingSubtable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpandingSubtable.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAOvE,IAAM,MAAM,GAAG,UAAC,E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EACD,MAAM,CAAC,MAAM,CAAC,MAAM,CAClB,UAAC,GAAG,EAAE,CAAC;oBACL,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;oBACZ,OAAO,GAAG,CAAC;gBACb,CAAC,EACD,EAAuC,CACxC,CACF;gBACH,CAAC,CAAC,EAAE;SACP,CAAC;IACJ,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAC,eAAe,aAC5B,KAAC,MAAM,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAI,EAC/B,eAAK,SAAS,EAAC,yBAAyB,aACtC,eAAK,SAAS,EAAC,yCAAyC,aACtD,cACE,SAAS,EAAC,wDAAwD,EAClE,KAAK,EAAE;oCACL,MAAM,EAAE,UAAG,YAAY,OAAI;iCAC5B,GACI,EACP,KAAC,UAAU,IACT,OAAO,EAAC,aAAa,gBACV,UAAU,EACrB,OAAO,EAAE,MAAM,EACf,SAAS,EAAC,SAAS,YAEnB,KAAC,IAAI,IACH,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe,EACpD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAC7B,GACS,IACT,EACN,cAAK,SAAS,EAAC,wBAAwB,YACpC,QAAQ,CAAC,CAAC,CAAC,CACV,KAAC,qBAAqB,IACpB,OAAO,EAAE,oBAAoB,EAC7B,IAAI,EAAE,SAAS,EACf,eAAe,EAAE,eAAe,GAChC,CACH,CAAC,CAAC,CAAC,CACF,KAAC,qBAAqB,IACpB,OAAO,EAAE,sBAAsB,EAC/B,IAAI,EAAE,SAAS,EACf,eAAe,EAAE,eAAe,GAChC,CACH,GACG,SAEF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ExplorerTableSubTableProps } from './types';
|
|
2
|
+
declare const ExplorerTableSubTable: ({ columns, data, setHeaderHeight, }: ExplorerTableSubTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default ExplorerTableSubTable;
|
|
4
|
+
//# sourceMappingURL=ExplorerTableSubtable.d.ts.map
|
package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExplorerTableSubtable.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAG1D,QAAA,MAAM,qBAAqB,GAAI,qCAI5B,0BAA0B,4CAgF5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import { MantineReactTable, useMantineReactTable } from 'mantine-react-table';
|
|
4
|
+
import { TableIcons } from '../../../../components/Tables/TableIcons';
|
|
5
|
+
var ExplorerTableSubTable = function (_a) {
|
|
6
|
+
var columns = _a.columns, data = _a.data, _b = _a.setHeaderHeight, setHeaderHeight = _b === void 0 ? function () { } : _b;
|
|
7
|
+
var table = useMantineReactTable({
|
|
8
|
+
columns: columns,
|
|
9
|
+
data: data !== null && data !== void 0 ? data : [],
|
|
10
|
+
enablePagination: false,
|
|
11
|
+
enableTableFooter: false,
|
|
12
|
+
enableTopToolbar: false,
|
|
13
|
+
enableBottomToolbar: false,
|
|
14
|
+
enableColumnResizing: true,
|
|
15
|
+
icons: TableIcons,
|
|
16
|
+
layoutMode: 'grid-no-grow',
|
|
17
|
+
defaultColumn: {
|
|
18
|
+
minSize: 300,
|
|
19
|
+
maxSize: 1000,
|
|
20
|
+
size: 360,
|
|
21
|
+
},
|
|
22
|
+
mantineTableProps: {
|
|
23
|
+
style: {
|
|
24
|
+
borderRadius: '0rem 0rem 0rem 0rem',
|
|
25
|
+
backgroundColor: 'var(--mantine-color-base-1)',
|
|
26
|
+
'--mrt-striped-row-background-color': 'var(--mantine-color-base-3)',
|
|
27
|
+
fontSize: 'var(--mantine-font-size-sm)',
|
|
28
|
+
zIndex: 10,
|
|
29
|
+
'-mrt-border-color': 'var(--mantine-color-table-1)',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
mantineTableHeadProps: {
|
|
33
|
+
style: {
|
|
34
|
+
'--mrt-base-background-color': 'var(--mantine-color-secondary-1)',
|
|
35
|
+
firstChild: {
|
|
36
|
+
borderRadius: '0rem 0rem 0rem 0rem',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
mantineTableHeadCellProps: {
|
|
41
|
+
style: {
|
|
42
|
+
'--mrt-base-background-color': 'var(--mantine-color-secondary-1)',
|
|
43
|
+
color: "var(--mantine-color-secondary-contrast-1')",
|
|
44
|
+
padding: '0.2rem',
|
|
45
|
+
paddingLeft: '1.5rem',
|
|
46
|
+
borderBottom: 'none',
|
|
47
|
+
borderTop: 'none',
|
|
48
|
+
borderRight: '1px solid var(--mantine-color-table-1)',
|
|
49
|
+
firstChild: {
|
|
50
|
+
borderRadius: '0rem 0rem 0rem 0rem',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
useEffect(function () {
|
|
56
|
+
// Function to measure the header height
|
|
57
|
+
var updateHeaderHeight = function () {
|
|
58
|
+
if (table.refs.tableHeadRef.current) {
|
|
59
|
+
// Get the height of the header cell
|
|
60
|
+
var height = table.refs.tableHeadRef.current.getBoundingClientRect().height;
|
|
61
|
+
setHeaderHeight(height);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
// Initial measurement
|
|
65
|
+
updateHeaderHeight();
|
|
66
|
+
// Set up a resize observer to handle dynamic changes
|
|
67
|
+
var resizeObserver = new ResizeObserver(updateHeaderHeight);
|
|
68
|
+
if (table.refs.tableHeadRef.current) {
|
|
69
|
+
resizeObserver.observe(table.refs.tableHeadRef.current);
|
|
70
|
+
}
|
|
71
|
+
// Clean up
|
|
72
|
+
return function () {
|
|
73
|
+
if (table.refs.tableHeadRef.current) {
|
|
74
|
+
resizeObserver.unobserve(table.refs.tableHeadRef.current);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}, [table.refs.tableHeadRef, setHeaderHeight]);
|
|
78
|
+
return _jsx(MantineReactTable, { table: table });
|
|
79
|
+
};
|
|
80
|
+
export default ExplorerTableSubTable;
|
|
81
|
+
//# sourceMappingURL=ExplorerTableSubtable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExplorerTableSubtable.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAG9E,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAEtE,IAAM,qBAAqB,GAAG,UAAC,EAIF;QAH3B,OAAO,aAAA,EACP,IAAI,UAAA,EACJ,uBAA0B,EAA1B,eAAe,mBAAG,cAAO,CAAC,KAAA;IAE1B,IAAM,KAAK,GAAG,oBAAoB,CAAa;QAC7C,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE;QAChB,gBAAgB,EAAE,KAAK;QACvB,iBAAiB,EAAE,KAAK;QACxB,gBAAgB,EAAE,KAAK;QACvB,mBAAmB,EAAE,KAAK;QAC1B,oBAAoB,EAAE,IAAI;QAC1B,KAAK,EAAE,UAAU;QACjB,UAAU,EAAE,cAAc;QAC1B,aAAa,EAAE;YACb,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,IAA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AAY,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,WAAW;QACX,OAAO;YACL,IAAI,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;gBACpC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAC5D,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;IAE/C,OAAO,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FieldSubtable } from '../types';
|
|
2
|
+
import { JSONObject } from '@gen3/core';
|
|
3
|
+
interface SubtableAccordianProps {
|
|
4
|
+
subTables: ReadonlyArray<FieldSubtable>;
|
|
5
|
+
data: JSONObject;
|
|
6
|
+
}
|
|
7
|
+
declare const SubtableAccordion: ({ subTables, data }: SubtableAccordianProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SubtableAccordion;
|
|
9
|
+
//# sourceMappingURL=SubtableAccordian.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubtableAccordian.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxC,UAAU,sBAAsB;IAC9B,SAAS,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACxC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,QAAA,MAAM,iBAAiB,GAAI,qBAAqB,sBAAsB,4CAoCrE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { Accordion } from '@mantine/core';
|
|
4
|
+
import ExplorerTableSubtable from './ExplorerTableSubtable';
|
|
5
|
+
import { createTableColumns } from '../utils';
|
|
6
|
+
var SubtableAccordion = function (_a) {
|
|
7
|
+
var subTables = _a.subTables, data = _a.data;
|
|
8
|
+
var items = useMemo(function () {
|
|
9
|
+
return subTables.reduce(function (acc, config) {
|
|
10
|
+
if (!(config.root in data))
|
|
11
|
+
return acc;
|
|
12
|
+
var expandedTableColumns = createTableColumns(config);
|
|
13
|
+
acc.push(_jsxs(Accordion.Item, { value: config.root, children: [_jsx(Accordion.Control, { children: config.label }), _jsx(Accordion.Panel, { children: _jsx("div", { className: "w-100 inline-block overflow-x-scroll", children: _jsx(ExplorerTableSubtable, { columns: expandedTableColumns, data: data[config.root] }) }) })] }, config.root));
|
|
14
|
+
return acc;
|
|
15
|
+
}, []);
|
|
16
|
+
}, [data, subTables]);
|
|
17
|
+
return (_jsx(Accordion, { chevronPosition: "left", classNames: {
|
|
18
|
+
panel: 'w-100',
|
|
19
|
+
}, children: items }));
|
|
20
|
+
};
|
|
21
|
+
export default SubtableAccordion;
|
|
22
|
+
//# sourceMappingURL=SubtableAccordian.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubtableAccordian.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAgB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAG5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAO9C,IAAM,iBAAiB,GAAG,UAAC,EAA2C;QAAzC,SAAS,eAAA,EAAE,IAAI,UAAA;IAC1C,IAAM,KAAK,GAAG,OAAO,CACnB;QACE,OAAA,SAAS,CAAC,MAAM,CAAC,UAAC,GAAmB,EAAE,MAAqB;YAC1D,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC;gBAAE,OAAO,GAAG,CAAC;YAEvC,IAAM,oBAAoB,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;YAExD,GAAG,CAAC,IAAI,CACN,MAAC,SAAS,CAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,aAChC,KAAC,SAAS,CAAC,OAAO,cAAE,MAAM,CAAC,KAAK,GAAqB,EACrD,KAAC,SAAS,CAAC,KAAK,cACd,cAAK,SAAS,EAAC,sCAAsC,YACnD,KAAC,qBAAqB,IACpB,OAAO,EAAE,oBAAoB,EAC7B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAiB,GACvC,GACE,GACU,KATqB,MAAM,CAAC,IAAI,CAUnC,CAClB,CAAC;YACF,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC;IAnBN,CAmBM,EACR,CAAC,IAAI,EAAE,SAAS,CAAC,CAClB,CAAC;IAEF,OAAO,CACL,KAAC,SAAS,IACR,eAAe,EAAC,MAAM,EACtB,UAAU,EAAE;YACV,KAAK,EAAE,OAAO;SACf,YAEA,KAAK,GACI,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FieldSubtable } from '../types';
|
|
2
|
+
import { JSONObject } from '@gen3/core';
|
|
3
|
+
interface SubtableStackProps {
|
|
4
|
+
subTables: ReadonlyArray<FieldSubtable>;
|
|
5
|
+
data: JSONObject;
|
|
6
|
+
}
|
|
7
|
+
declare const SubtableStack: ({ subTables, data }: SubtableStackProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SubtableStack;
|
|
9
|
+
//# sourceMappingURL=SubtableStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubtableStack.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,UAAU,kBAAkB;IAC1B,SAAS,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACxC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,QAAA,MAAM,aAAa,GAAI,qBAAqB,kBAAkB,4CAkB7D,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import ExpandingSubtable from './ExpandingSubtable';
|
|
4
|
+
var SubtableStack = function (_a) {
|
|
5
|
+
var subTables = _a.subTables, data = _a.data;
|
|
6
|
+
var items = useMemo(function () {
|
|
7
|
+
return subTables.reduce(function (acc, config) {
|
|
8
|
+
if (!(config.root in data))
|
|
9
|
+
return acc;
|
|
10
|
+
acc.push(_jsx("div", { className: "inline-block overflow-x-scroll" }, config.root), _jsx(ExpandingSubtable, { config: config, data: data[config.root] }));
|
|
11
|
+
return acc;
|
|
12
|
+
}, []);
|
|
13
|
+
}, [data, subTables]);
|
|
14
|
+
return _jsx("div", { className: "flex flex-col", children: items });
|
|
15
|
+
};
|
|
16
|
+
export default SubtableStack;
|
|
17
|
+
//# sourceMappingURL=SubtableStack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubtableStack.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAgB,MAAM,OAAO,CAAC;AAErD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAQpD,IAAM,aAAa,GAAG,UAAC,EAAuC;QAArC,SAAS,eAAA,EAAE,IAAI,UAAA;IACtC,IAAM,KAAK,GAAG,OAAO,CACnB;QACE,OAAA,SAAS,CAAC,MAAM,CAAC,UAAC,GAAmB,EAAE,MAAqB;YAC1D,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC;gBAAE,OAAO,GAAG,CAAC;YACvC,GAAG,CAAC,IAAI,CACN,cAAuB,SAAS,EAAC,gCAAgC,IAAvD,MAAM,CAAC,IAAI,CAA+C,EACpE,KAAC,iBAAiB,IAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAiB,GACvC,CACH,CAAC;YACF,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC;IAVN,CAUM,EACR,CAAC,IAAI,EAAE,SAAS,CAAC,CAClB,CAAC;IAEF,OAAO,cAAK,SAAS,EAAC,eAAe,YAAE,KAAK,GAAO,CAAC;AACtD,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSONObject } from '@gen3/core';
|
|
2
|
+
import { ExplorerTableColumnMRT, FieldSubtable } from '../types';
|
|
3
|
+
export interface ExpandingSubTableProps {
|
|
4
|
+
config: FieldSubtable;
|
|
5
|
+
data?: JSONObject[];
|
|
6
|
+
}
|
|
7
|
+
export interface ExplorerTableSubTableProps {
|
|
8
|
+
columns: ExplorerTableColumnMRT[];
|
|
9
|
+
data?: JSONObject[];
|
|
10
|
+
setHeaderHeight?: (height: number) => void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEjE,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC;IACpB,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/ExplorerTable/SubTables/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ExplorerDetailsConfig } from './ExploreTableDetails/types';
|
|
2
|
-
import { MRT_Cell, MRT_Column, MRT_Row,
|
|
3
|
-
import { JSONObject } from '@gen3/core';
|
|
2
|
+
import { MRT_Cell, MRT_Column, MRT_Row, MRT_RowData, MRT_TableInstance } from 'mantine-react-table';
|
|
3
|
+
import { Accessibility, JSONObject } from '@gen3/core';
|
|
4
4
|
import { ReactNode, RefObject } from 'react';
|
|
5
|
+
import { CellRendererFunction } from './ExplorerTableCellRenderers';
|
|
5
6
|
export interface ColumnDefinition {
|
|
6
7
|
header: string;
|
|
7
8
|
accessorKey: string;
|
|
@@ -20,20 +21,51 @@ export interface SummaryTableColumn {
|
|
|
20
21
|
visible?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface SummaryTablePageLimit {
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
limit?: number;
|
|
25
|
+
label?: string;
|
|
25
26
|
}
|
|
26
|
-
export interface
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
export interface TableColumnsAndFields {
|
|
28
|
+
fields: ReadonlyArray<string>;
|
|
29
|
+
columns: Record<string, SummaryTableColumn>;
|
|
30
|
+
}
|
|
31
|
+
export interface FieldSubtableClassnames extends Record<string, string> {
|
|
32
|
+
header: string;
|
|
33
|
+
columnLabel: string;
|
|
34
|
+
}
|
|
35
|
+
export interface FieldSubtable extends TableColumnsAndFields {
|
|
36
|
+
root: string;
|
|
37
|
+
label: string;
|
|
38
|
+
classNames?: Partial<FieldSubtableClassnames>;
|
|
39
|
+
}
|
|
40
|
+
export interface SummaryTable extends TableColumnsAndFields {
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
subTables?: ReadonlyArray<FieldSubtable>;
|
|
43
|
+
pageLimit?: SummaryTablePageLimit;
|
|
44
|
+
detailsConfig?: ExplorerDetailsConfig;
|
|
45
|
+
selectableRows?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface ExploreTableClassnames extends Record<string, string> {
|
|
48
|
+
root: string;
|
|
49
|
+
label: string;
|
|
50
|
+
header: string;
|
|
51
|
+
columnLabel: string;
|
|
33
52
|
}
|
|
34
53
|
export interface ExplorerTableProps {
|
|
35
54
|
index: string;
|
|
36
|
-
tableConfig: SummaryTable
|
|
55
|
+
tableConfig: Readonly<SummaryTable>;
|
|
56
|
+
accessibility: Accessibility;
|
|
57
|
+
size?: string;
|
|
58
|
+
classNames?: Partial<ExploreTableClassnames>;
|
|
59
|
+
}
|
|
60
|
+
export interface ExplorerTableColumnMRT {
|
|
61
|
+
id: string;
|
|
62
|
+
field: string;
|
|
63
|
+
accessorKey: never;
|
|
64
|
+
header: string;
|
|
65
|
+
accessorFn?: (originalRow: JSONObject) => any;
|
|
66
|
+
Cell?: ((cell: CellRendererFunctionProps) => React.ReactNode) | undefined;
|
|
67
|
+
size?: number;
|
|
68
|
+
enableSorting?: boolean;
|
|
37
69
|
}
|
|
38
70
|
/**
|
|
39
71
|
* Represents the props required for a cell renderer function.
|
|
@@ -47,4 +79,12 @@ export interface CellRendererFunctionProps<T extends MRT_RowData = JSONObject> {
|
|
|
47
79
|
table: MRT_TableInstance<T>;
|
|
48
80
|
params?: Record<string, unknown>;
|
|
49
81
|
}
|
|
82
|
+
export interface ExplorerColumn {
|
|
83
|
+
field: string;
|
|
84
|
+
accessorKey: never;
|
|
85
|
+
header: string;
|
|
86
|
+
accessorFn?: (originalRow: ExplorerColumn) => any;
|
|
87
|
+
Cell?: CellRendererFunction;
|
|
88
|
+
size?: number;
|
|
89
|
+
}
|
|
50
90
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,QAAQ,EACR,UAAU,EACV,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,QAAQ,EACR,UAAU,EACV,OAAO,EACP,WAAW,EACX,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,sBAAsB,GAC9B,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,G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