@gen3/frontend 0.10.94 → 0.10.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +5783 -2696
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Content/LandingPageContent.d.ts +2 -1
- package/dist/dts/components/Content/LandingPageContent.d.ts.map +1 -1
- package/dist/dts/components/Content/LandingPageContent.js.map +1 -1
- package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +64 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.js +38 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +2 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +141 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +1 -0
- package/dist/dts/components/DropdownMenu/index.d.ts +3 -0
- package/dist/dts/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/index.js +3 -0
- package/dist/dts/components/DropdownMenu/index.js.map +1 -0
- package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginPanel.js +1 -0
- package/dist/dts/components/Login/LoginPanel.js.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
- package/dist/dts/components/Login/types.d.ts +2 -1
- package/dist/dts/components/Login/types.d.ts.map +1 -1
- package/dist/dts/components/Login/types.js.map +1 -1
- package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts +5 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts.map +1 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.js +9 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.js.map +1 -0
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts +7 -0
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +1 -0
- package/dist/dts/components/MessageCards/ErrorMessage.js +8 -0
- package/dist/dts/components/MessageCards/ErrorMessage.js.map +1 -0
- package/dist/dts/components/MessageCards/index.d.ts +2 -1
- package/dist/dts/components/MessageCards/index.d.ts.map +1 -1
- package/dist/dts/components/MessageCards/index.js +2 -1
- package/dist/dts/components/MessageCards/index.js.map +1 -1
- package/dist/dts/components/Profile/types.d.ts +2 -1
- package/dist/dts/components/Profile/types.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.js +2 -0
- package/dist/dts/components/charts/Charts.js.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.js +42 -4
- package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.js +3 -2
- package/dist/dts/components/charts/echarts/HorizontalBarChart.js.map +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.js +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
- package/dist/dts/components/charts/types.d.ts +2 -0
- package/dist/dts/components/charts/types.d.ts.map +1 -1
- package/dist/dts/components/charts/utils.d.ts +1 -1
- package/dist/dts/components/charts/utils.d.ts.map +1 -1
- package/dist/dts/components/charts/utils.js +2 -4
- package/dist/dts/components/charts/utils.js.map +1 -1
- package/dist/dts/components/facets/EnumFacet.d.ts +2 -1
- package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/EnumFacet.js.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.js +7 -30
- package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
- package/dist/dts/components/facets/FacetSelector.d.ts +1 -1
- package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetSelector.js +9 -7
- package/dist/dts/components/facets/FacetSelector.js.map +1 -1
- package/dist/dts/components/facets/types.d.ts +1 -0
- package/dist/dts/components/facets/types.d.ts.map +1 -1
- package/dist/dts/components/facets/types.js.map +1 -1
- package/dist/dts/components/facets/utils.d.ts +4 -2
- package/dist/dts/components/facets/utils.d.ts.map +1 -1
- package/dist/dts/components/facets/utils.js +27 -1
- package/dist/dts/components/facets/utils.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
- package/dist/dts/features/Analysis/types.d.ts +2 -1
- package/dist/dts/features/Analysis/types.d.ts.map +1 -1
- package/dist/dts/features/Analysis/types.js.map +1 -1
- package/dist/dts/features/CohortBuilder/AccessLevel.d.ts +8 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.js +20 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +4 -20
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +20 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +37 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +18 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +149 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +122 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +19 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +52 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +10 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +37 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +33 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +7 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js +80 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.js +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +15 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +8 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +32 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +190 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +145 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +79 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.js +21 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +49 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.js +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js +21 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +6 -2
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +15 -19
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +8 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.js +51 -10
- package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +32 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts +2 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts +3 -2
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +56 -60
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js +48 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js +81 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js +22 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js +17 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts +12 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js +2 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts +52 -12
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts +4 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js +70 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +2 -2
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +5 -4
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +2 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts +4 -1
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -1
- package/dist/dts/features/CohortBuilder/index.d.ts +5 -2
- package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/index.js +4 -1
- package/dist/dts/features/CohortBuilder/index.js.map +1 -1
- package/dist/dts/features/CohortBuilder/types.d.ts +15 -7
- package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/types.js +6 -0
- package/dist/dts/features/CohortBuilder/types.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js +18 -2
- package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js +10 -4
- package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +20 -12
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +28 -8
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +9 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +147 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts +2 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js +36 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts +461 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +51 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +97 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +435 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +64 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +572 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts +7 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.js +2 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts +6 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js +55 -0
- package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -22
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js +40 -34
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -90
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.js +161 -92
- package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts +2 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +25 -7
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +42 -34
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts +14 -28
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js +4 -4
- package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js +4 -10
- package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js +2 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js +76 -13
- package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts +22 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js +147 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts +9 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js +133 -0
- package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +284 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts +8 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js +9 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts +10 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +157 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts +3 -4
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js +6 -11
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts +9 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js +15 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +2 -2
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +17 -3
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +13 -3
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts +12 -0
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +40 -1
- package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/queryApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/queryApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/registerApp.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/registerApp.js +5 -3
- package/dist/dts/features/CohortDiscovery/registerApp.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.d.ts +88 -3
- package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.js +45 -1
- package/dist/dts/features/CohortDiscovery/types.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/utils.d.ts +2 -0
- package/dist/dts/features/CohortDiscovery/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/utils.js +9 -0
- package/dist/dts/features/CohortDiscovery/utils.js.map +1 -1
- package/dist/dts/features/CohortSimilarity/appApi.d.ts +4 -6
- package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/appApi.js +3 -1
- package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -1
- package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/registerApp.js +1 -3
- package/dist/dts/features/CohortSimilarity/registerApp.js.map +1 -1
- package/dist/dts/features/Crosswalk/types.d.ts +2 -1
- package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.js +2 -2
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.js.map +1 -1
- package/dist/dts/features/DataLibrary/SearchAndActions.js +1 -1
- package/dist/dts/features/DataLibrary/SearchAndActions.js.map +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js.map +1 -1
- package/dist/dts/features/DataLibrary/tests/utils.unit.test.js +2 -1
- package/dist/dts/features/DataLibrary/tests/utils.unit.test.js.map +1 -1
- package/dist/dts/features/DataLibrary/utils.d.ts +0 -10
- package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/utils.js +0 -34
- package/dist/dts/features/DataLibrary/utils.js.map +1 -1
- package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/CategoryPanel.js +9 -9
- package/dist/dts/features/Dictionary/CategoryPanel.js.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryWithContext.js.map +1 -1
- package/dist/dts/features/Dictionary/types.d.ts +5 -1
- package/dist/dts/features/Dictionary/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/IndexedMetadata/DataLoader.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js +2 -2
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.js +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +8 -6
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryProvider.d.ts +0 -3
- package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryProvider.js +0 -5
- package/dist/dts/features/Discovery/DiscoveryProvider.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.js +7 -5
- package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.js +3 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts +2 -3
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js +3 -3
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts +1 -2
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +5 -6
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/index.d.ts +2 -4
- package/dist/dts/features/Discovery/index.d.ts.map +1 -1
- package/dist/dts/features/Discovery/index.js +1 -3
- package/dist/dts/features/Discovery/index.js.map +1 -1
- package/dist/dts/features/Discovery/types.d.ts +5 -108
- package/dist/dts/features/Discovery/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.js +0 -16
- package/dist/dts/features/Discovery/types.js.map +1 -1
- package/dist/dts/features/Discovery/utils.d.ts +2 -8
- package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/utils.js +1 -28
- package/dist/dts/features/Discovery/utils.js.map +1 -1
- package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Footer/FooterColumn.js.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
- package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar/AccountButton.js +1 -1
- package/dist/dts/features/Navigation/TopBar/AccountButton.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar/LoginButton.js +1 -1
- package/dist/dts/features/Navigation/TopBar/LoginButton.js.map +1 -1
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts +9 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js +11 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts +19 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js +56 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts +15 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js +44 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +10 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js +36 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts +10 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +19 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts +8 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js +31 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts +9 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js +11 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +5 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.js +283 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts +10 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js +45 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.d.ts +10 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.js +11 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts +9 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.js +8 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.js.map +1 -0
- package/dist/dts/features/Study/StudyProvider.d.ts +12 -0
- package/dist/dts/features/Study/StudyProvider.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyProvider.js +23 -0
- package/dist/dts/features/Study/StudyProvider.js.map +1 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts +3 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts.map +1 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.js +20 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.js.map +1 -0
- package/dist/dts/features/Study/TableRenderers/types.d.ts +14 -0
- package/dist/dts/features/Study/TableRenderers/types.d.ts.map +1 -0
- package/dist/dts/features/Study/TableRenderers/types.js +2 -0
- package/dist/dts/features/Study/TableRenderers/types.js.map +1 -0
- package/dist/dts/features/Study/index.d.ts +5 -0
- package/dist/dts/features/Study/index.d.ts.map +1 -0
- package/dist/dts/features/Study/index.js +4 -0
- package/dist/dts/features/Study/index.js.map +1 -0
- package/dist/dts/features/Study/types.d.ts +91 -0
- package/dist/dts/features/Study/types.d.ts.map +1 -0
- package/dist/dts/features/Study/types.js +8 -0
- package/dist/dts/features/Study/types.js.map +1 -0
- package/dist/dts/features/Study/utils.d.ts +10 -0
- package/dist/dts/features/Study/utils.d.ts.map +1 -0
- package/dist/dts/features/Study/utils.js +28 -0
- package/dist/dts/features/Study/utils.js.map +1 -0
- package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.d.ts.map +1 -1
- package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.js.map +1 -1
- package/dist/dts/features/Workspace/types.d.ts +2 -1
- package/dist/dts/features/Workspace/types.d.ts.map +1 -1
- package/dist/dts/features/Workspace/types.js.map +1 -1
- package/dist/dts/index.d.ts +3 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +7 -1
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/content/types.d.ts +2 -0
- package/dist/dts/lib/content/types.d.ts.map +1 -1
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +22 -34
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.d.ts.map +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.js +1 -5
- package/dist/dts/pages/Crosswalk/Crosswalk.js.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.d.ts.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.js +12 -5
- package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
- package/dist/dts/pages/Discovery/Discovery.d.ts.map +1 -1
- package/dist/dts/pages/Discovery/Discovery.js +14 -5
- package/dist/dts/pages/Discovery/Discovery.js.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.d.ts +1 -1
- package/dist/dts/pages/Explorer/Explorer.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.js +13 -6
- package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
- package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/data.js +28 -22
- package/dist/dts/pages/Explorer/data.js.map +1 -1
- package/dist/dts/pages/Landing/Landing.d.ts.map +1 -1
- package/dist/dts/pages/Landing/Landing.js +12 -5
- package/dist/dts/pages/Landing/Landing.js.map +1 -1
- package/dist/dts/pages/Login/Login.d.ts.map +1 -1
- package/dist/dts/pages/Login/Login.js +1 -5
- package/dist/dts/pages/Login/Login.js.map +1 -1
- package/dist/dts/pages/Profile/Profile.d.ts.map +1 -1
- package/dist/dts/pages/Profile/Profile.js +12 -5
- package/dist/dts/pages/Profile/Profile.js.map +1 -1
- package/dist/dts/pages/Query/Query.d.ts.map +1 -1
- package/dist/dts/pages/Query/Query.js +12 -5
- package/dist/dts/pages/Query/Query.js.map +1 -1
- package/dist/dts/pages/Query/types.d.ts +2 -1
- package/dist/dts/pages/Query/types.d.ts.map +1 -1
- package/dist/dts/pages/Workspace/Workspace.d.ts.map +1 -1
- package/dist/dts/pages/Workspace/Workspace.js +14 -5
- package/dist/dts/pages/Workspace/Workspace.js.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.d.ts +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
- package/dist/dts/types/icons.d.ts +5 -0
- package/dist/dts/types/icons.d.ts.map +1 -0
- package/dist/dts/types/icons.js +6 -0
- package/dist/dts/types/icons.js.map +1 -0
- package/dist/dts/utils/access.d.ts +10 -0
- package/dist/dts/utils/access.d.ts.map +1 -0
- package/dist/dts/utils/access.js +11 -0
- package/dist/dts/utils/access.js.map +1 -0
- package/dist/dts/utils/authMapping.d.ts +4 -0
- package/dist/dts/utils/authMapping.d.ts.map +1 -1
- package/dist/dts/utils/authMapping.js.map +1 -1
- package/dist/dts/utils/convertResourcePathsToTree.d.ts +8 -0
- package/dist/dts/utils/convertResourcePathsToTree.d.ts.map +1 -0
- package/dist/dts/utils/convertResourcePathsToTree.js +43 -0
- package/dist/dts/utils/convertResourcePathsToTree.js.map +1 -0
- package/dist/dts/utils/dataAuthorization.d.ts +11 -0
- package/dist/dts/utils/dataAuthorization.d.ts.map +1 -0
- package/dist/dts/utils/dataAuthorization.js +2 -0
- package/dist/dts/utils/dataAuthorization.js.map +1 -0
- package/dist/dts/utils/date.d.ts +16 -0
- package/dist/dts/utils/date.d.ts.map +1 -1
- package/dist/dts/utils/date.js +54 -8
- package/dist/dts/utils/date.js.map +1 -1
- package/dist/dts/utils/index.d.ts +4 -3
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +4 -2
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/layout.d.ts +2 -0
- package/dist/dts/utils/layout.d.ts.map +1 -0
- package/dist/dts/utils/layout.js +20 -0
- package/dist/dts/utils/layout.js.map +1 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts +2 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts.map +1 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js +150 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js.map +1 -0
- package/dist/dts/utils/tests/values.test.js +0 -1
- package/dist/dts/utils/tests/values.test.js.map +1 -1
- package/dist/esm/index.js +5798 -2718
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +412 -329
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +0 -2
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts +0 -3
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js +0 -13
- package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js.map +0 -1
|
@@ -0,0 +1,283 @@
|
|
|
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import Link from 'next/link';
|
|
24
|
+
import { isArray, toString } from 'lodash';
|
|
25
|
+
import { JSONPath } from 'jsonpath-plus';
|
|
26
|
+
import { Alert, Text } from '@mantine/core';
|
|
27
|
+
import { accessibleFieldName, AccessLevel } from '../../../utils';
|
|
28
|
+
import { RenderTagsCell } from '../TableRenderers/CellRenderers';
|
|
29
|
+
import { StudyFieldRendererFactory, StudyDetailsRenderer, } from './RendererFactory';
|
|
30
|
+
/**
|
|
31
|
+
* Converts a JSON value into a React element.
|
|
32
|
+
*
|
|
33
|
+
* @param {JSONValue} value - The JSON value to convert.
|
|
34
|
+
* @returns {ReactElement} The React element representing the JSON value.
|
|
35
|
+
*/
|
|
36
|
+
var jsonValueToElement = function (value) {
|
|
37
|
+
if (typeof value === 'string') {
|
|
38
|
+
// if JSONValue is a string, display it inside a span
|
|
39
|
+
return _jsx("span", { children: value });
|
|
40
|
+
}
|
|
41
|
+
else if (typeof value === 'boolean') {
|
|
42
|
+
// if JSONValue is a boolean, display it inside a span
|
|
43
|
+
return _jsx("span", { children: value.toString() });
|
|
44
|
+
}
|
|
45
|
+
else if (typeof value === 'number') {
|
|
46
|
+
// if JSONValue is a number, display it inside a span
|
|
47
|
+
return _jsx("span", { children: value });
|
|
48
|
+
}
|
|
49
|
+
else if (Array.isArray(value)) {
|
|
50
|
+
// if JSONValue is an array, map each item into a list element and wrap them in a ul
|
|
51
|
+
return (_jsx("ul", { children: value.map(function (v, i) { return (_jsx("li", { children: jsonValueToElement(v) }, i)); }) }));
|
|
52
|
+
}
|
|
53
|
+
else if (typeof value === 'object' && value !== null) {
|
|
54
|
+
// if JSONValue is an object (excluding null), display each property in its own line,
|
|
55
|
+
// using a recursive call to display the value of each property
|
|
56
|
+
return (_jsx("ul", { children: Object.entries(value).map(function (_a, i) {
|
|
57
|
+
var k = _a[0], v = _a[1];
|
|
58
|
+
return (_jsxs("li", { children: [_jsxs("strong", { children: [k, ":"] }), " ", jsonValueToElement(v)] }, i));
|
|
59
|
+
}) }));
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
// if JSONValue is null, or otherwise unhandled, return an empty fragment
|
|
63
|
+
return _jsx(React.Fragment, {});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Default style for discovery field.
|
|
68
|
+
*/
|
|
69
|
+
var discoveryFieldStyle = 'flex w-full justify-between px-1 no-wrap';
|
|
70
|
+
/**
|
|
71
|
+
* Renders a block of text.
|
|
72
|
+
*
|
|
73
|
+
* @param {JSONValue} fieldValue - The value to render.
|
|
74
|
+
* @returns {ReactElement} The rendered block of text.
|
|
75
|
+
*/
|
|
76
|
+
var blockTextField = function (fieldValue) { return (_jsx("div", { className: discoveryFieldStyle, children: jsonValueToElement(fieldValue) })); };
|
|
77
|
+
/**
|
|
78
|
+
* Renders a label for a field. If the label text is undefined, returns an empty fragment.
|
|
79
|
+
* @param labelText - the label text to render.
|
|
80
|
+
*/
|
|
81
|
+
var label = function (labelText) {
|
|
82
|
+
return labelText ? (_jsx(Text, { tt: "uppercase", fw: "500", className: "p-0.75 whitespace-pre-wrap break-words", children: labelText })) : (_jsx(React.Fragment, {}));
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Renders a text field component.
|
|
86
|
+
*
|
|
87
|
+
* @param {string} fieldValue - The value to be displayed in the text field.
|
|
88
|
+
* @returns {React.Element} - The rendered text field component.
|
|
89
|
+
*/
|
|
90
|
+
var textField = function (fieldValue, style) {
|
|
91
|
+
if (style === void 0) { style = ''; }
|
|
92
|
+
return (_jsx("span", { className: "text-left overflow-hidden p-0.75 whitespace-pre-wrap break-words ".concat(style), children: toString(fieldValue) }));
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Represents a link field component that generates a hyperlink with an optional text label.
|
|
96
|
+
*
|
|
97
|
+
* @param linkValue - The target URL for the hyperlink.
|
|
98
|
+
* @param linkText - The optional text label for the hyperlink. If not provided, the linkValue will be used as the label.
|
|
99
|
+
* @returns A JSX element containing the generated hyperlink.
|
|
100
|
+
*/
|
|
101
|
+
var linkFieldWithOptionalLabel = function (linkValue, linkText) { return (_jsx(Link, { href: linkValue, target: "_blank", rel: "noreferrer", children: linkText !== null && linkText !== void 0 ? linkText : linkValue })); };
|
|
102
|
+
var linkFieldOnly = function (linkValue, _) { return (_jsx(Link, { href: linkValue, target: "_blank", rel: "noreferrer", children: linkValue })); };
|
|
103
|
+
/**
|
|
104
|
+
* Represents a link field component that generates a hyperlink with an optional text label.
|
|
105
|
+
*
|
|
106
|
+
* @param linkValue - The target URL for the hyperlink.
|
|
107
|
+
* @returns A JSX element containing the generated hyperlink.
|
|
108
|
+
*/
|
|
109
|
+
var linkField = function (linkValue) { return (_jsx(Link, { href: linkValue, target: "_blank", rel: "noreferrer", children: _jsx(Text, { color: "utility.0", className: "underline", children: linkValue }) })); };
|
|
110
|
+
var subHeading = function (text) { return (_jsx("h3", { className: "discovery-subheading", children: text })); };
|
|
111
|
+
var labeledSingleLinkField = function (linkValue, labelText, parans) {
|
|
112
|
+
return typeof linkValue !== 'string' ? (_jsx(React.Fragment, {})) : (_jsxs("div", { className: discoveryFieldStyle, children: [label(labelText), " ", linkField(linkValue)] }, labelText));
|
|
113
|
+
};
|
|
114
|
+
var labeledNumberField = function (fieldValue, labelText) {
|
|
115
|
+
if (typeof fieldValue !== 'number' && typeof fieldValue !== 'string')
|
|
116
|
+
return _jsx(React.Fragment, {});
|
|
117
|
+
return (_jsxs("div", { className: discoveryFieldStyle, children: [label(labelText), " ", fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.toLocaleString()] }, labelText));
|
|
118
|
+
};
|
|
119
|
+
var labeledMultipleLinkField = function (value, labelText) {
|
|
120
|
+
var linksText = isArray(value) ? value : [toString(value)];
|
|
121
|
+
return linksText.length ? (_jsx("div", { children: __spreadArray([
|
|
122
|
+
// labeled first field
|
|
123
|
+
_jsxs("div", { className: discoveryFieldStyle, children: [label(labelText), " ", linkField(linksText[0])] }, labelText)
|
|
124
|
+
], linksText.slice(1).map(function (linkText, i) { return (_jsxs("div", { className: discoveryFieldStyle, children: [label(labelText), linkField(linkText)] }, "".concat(linkText, "-").concat(i))); }), true) })) : (_jsx(React.Fragment, {}));
|
|
125
|
+
};
|
|
126
|
+
var unlabeledMultipleLinkField = function (fieldData, fieldName) {
|
|
127
|
+
if (!isArray(fieldData) || fieldData.length === 0)
|
|
128
|
+
return _jsx(React.Fragment, {});
|
|
129
|
+
var links = fieldData[0];
|
|
130
|
+
return (_jsx("div", { className: "flex flex-col", children: links.map(function (link) { return labeledSingleLinkField(link.link, link.title); }) }, "".concat(fieldName, "-links")));
|
|
131
|
+
};
|
|
132
|
+
var labeledSingleTextField = function (fieldValue, fieldLabel, params) {
|
|
133
|
+
var _a;
|
|
134
|
+
var stringFieldValue = '';
|
|
135
|
+
if (typeof fieldValue === 'number') {
|
|
136
|
+
stringFieldValue = fieldValue.toLocaleString();
|
|
137
|
+
}
|
|
138
|
+
else if (typeof fieldValue !== 'string')
|
|
139
|
+
return _jsx(React.Fragment, {});
|
|
140
|
+
stringFieldValue = fieldValue;
|
|
141
|
+
return (_jsxs("div", { className: discoveryFieldStyle, children: [label(fieldLabel), " ", textField(stringFieldValue, (_a = params === null || params === void 0 ? void 0 : params.style) !== null && _a !== void 0 ? _a : '')] }, "study-details-".concat(fieldLabel, "-").concat(stringFieldValue)));
|
|
142
|
+
};
|
|
143
|
+
var labeledYearOfBirthRestricted = function (fieldValue, fieldLabel) {
|
|
144
|
+
var stringFieldValue = '';
|
|
145
|
+
if (typeof fieldValue === 'number') {
|
|
146
|
+
stringFieldValue = fieldValue.toLocaleString();
|
|
147
|
+
}
|
|
148
|
+
else if (typeof fieldValue !== 'string')
|
|
149
|
+
return _jsx(React.Fragment, {});
|
|
150
|
+
stringFieldValue = fieldValue;
|
|
151
|
+
var displayContent;
|
|
152
|
+
if (typeof stringFieldValue === 'string' &&
|
|
153
|
+
!isNaN(Number(stringFieldValue)) &&
|
|
154
|
+
Number(stringFieldValue) < 1935) {
|
|
155
|
+
displayContent = '1935';
|
|
156
|
+
}
|
|
157
|
+
else if (isArray(stringFieldValue)) {
|
|
158
|
+
displayContent = stringFieldValue
|
|
159
|
+
.map(function (item) {
|
|
160
|
+
if (typeof item === 'string' &&
|
|
161
|
+
!isNaN(Number(item)) &&
|
|
162
|
+
Number(item) < 1935) {
|
|
163
|
+
return '1935';
|
|
164
|
+
}
|
|
165
|
+
return item;
|
|
166
|
+
})
|
|
167
|
+
.join(', ');
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
displayContent = stringFieldValue;
|
|
171
|
+
}
|
|
172
|
+
return (_jsxs("div", { className: discoveryFieldStyle, children: [label(fieldLabel), " ", textField(displayContent)] }, "study-details-".concat(fieldLabel, "-").concat(displayContent)));
|
|
173
|
+
};
|
|
174
|
+
var labeledParagraph = function (fieldValue, fieldLabel) {
|
|
175
|
+
if (typeof fieldValue !== 'string')
|
|
176
|
+
return _jsx(React.Fragment, {});
|
|
177
|
+
var stringFieldValue = fieldValue;
|
|
178
|
+
return (_jsxs("div", { className: "".concat(discoveryFieldStyle), children: [fieldLabel ? (_jsx(Text, { tt: "uppercase", fw: "500", className: "p-0.75 mr-4 whitespace-pre-wrap break-words", children: fieldLabel })) : (_jsx(React.Fragment, {})), _jsx("div", { children: _jsx(Text, { className: "pl-4 text-left p-0.75 whitespace-pre-wrap break-words", children: toString(fieldValue) }) })] }, "study-details-".concat(fieldLabel, "-").concat(stringFieldValue)));
|
|
179
|
+
};
|
|
180
|
+
var labeledMultipleTextField = function (fieldsText, labelText) {
|
|
181
|
+
return isArray(fieldsText) && (fieldsText === null || fieldsText === void 0 ? void 0 : fieldsText.length) ? (_jsx("div", { children: __spreadArray([
|
|
182
|
+
// labeled first field
|
|
183
|
+
_jsxs("div", { className: discoveryFieldStyle, children: [label(labelText !== null && labelText !== void 0 ? labelText : ''), " ", textField(fieldsText[0])] }, "study-details-".concat(labelText))
|
|
184
|
+
], fieldsText.slice(1).map(function (text, i) { return (_jsxs("div", { className: discoveryFieldStyle, children: [_jsx("div", {}), textField(text)] }, "".concat(text, "-").concat(i))); }), true) })) : (_jsx(React.Fragment, {}));
|
|
185
|
+
};
|
|
186
|
+
var accessDescriptor = function (resource, _) {
|
|
187
|
+
if (resource === null ||
|
|
188
|
+
typeof resource !== 'object' ||
|
|
189
|
+
!(accessibleFieldName in resource)) {
|
|
190
|
+
return _jsx(React.Fragment, {});
|
|
191
|
+
}
|
|
192
|
+
if (resource[accessibleFieldName] === AccessLevel.ACCESSIBLE) {
|
|
193
|
+
return _jsx(Alert, { color: "green", children: "You have access to this study." });
|
|
194
|
+
}
|
|
195
|
+
if (resource[accessibleFieldName] === AccessLevel.UNACCESSIBLE) {
|
|
196
|
+
return _jsx(Alert, { color: "red", children: "You do not have access to this study." });
|
|
197
|
+
}
|
|
198
|
+
return (_jsx(Alert, { color: "yellow", children: "This study does not include data access authorization details." }));
|
|
199
|
+
};
|
|
200
|
+
var formatResourceValuesWhenNestedArray = function (resourceFieldValue) {
|
|
201
|
+
if (Array.isArray(resourceFieldValue) &&
|
|
202
|
+
Array.isArray(resourceFieldValue[0])) {
|
|
203
|
+
return resourceFieldValue[0].join(', ');
|
|
204
|
+
}
|
|
205
|
+
return resourceFieldValue;
|
|
206
|
+
};
|
|
207
|
+
var renderDetailTags = function (fieldValue, _label, fieldConfig) {
|
|
208
|
+
//TODO - fix this type
|
|
209
|
+
var resource = fieldValue;
|
|
210
|
+
if (fieldConfig === undefined) {
|
|
211
|
+
return _jsx(React.Fragment, {});
|
|
212
|
+
}
|
|
213
|
+
if ((fieldConfig === null || fieldConfig === void 0 ? void 0 : fieldConfig.categories) === undefined) {
|
|
214
|
+
return _jsx(React.Fragment, {});
|
|
215
|
+
}
|
|
216
|
+
if (fieldConfig.contentType === 'tags') {
|
|
217
|
+
var tags = fieldConfig.categories
|
|
218
|
+
? (resource.tags || []).filter(function (tag) { var _a; return (_a = fieldConfig.categories) === null || _a === void 0 ? void 0 : _a.includes(tag.category); })
|
|
219
|
+
: resource.tags;
|
|
220
|
+
return (_jsx("div", { children: RenderTagsCell({ value: tags }) }, "detail-tag-".concat(fieldConfig.field)));
|
|
221
|
+
}
|
|
222
|
+
return _jsx(React.Fragment, {});
|
|
223
|
+
};
|
|
224
|
+
export var createFieldRendererElement = function (field, resource) {
|
|
225
|
+
var _a;
|
|
226
|
+
// determine the value of the field
|
|
227
|
+
var resourceFieldValue = field.field && JSONPath({ json: resource, path: field.field });
|
|
228
|
+
if (resourceFieldValue === undefined || resourceFieldValue === null) {
|
|
229
|
+
if (field.includeIfNotAvailable === false)
|
|
230
|
+
return null;
|
|
231
|
+
if (field.valueIfNotAvailable)
|
|
232
|
+
resourceFieldValue = field.valueIfNotAvailable;
|
|
233
|
+
}
|
|
234
|
+
else
|
|
235
|
+
resourceFieldValue =
|
|
236
|
+
resourceFieldValue.length > 0 ? resourceFieldValue[0] : '';
|
|
237
|
+
var label = field.includeLabel === undefined || (field === null || field === void 0 ? void 0 : field.includeLabel)
|
|
238
|
+
? field.name
|
|
239
|
+
: undefined;
|
|
240
|
+
var studyFieldRenderer = StudyDetailsRenderer(field.contentType, (_a = field === null || field === void 0 ? void 0 : field.renderer) !== null && _a !== void 0 ? _a : 'default');
|
|
241
|
+
switch (field.contentType) {
|
|
242
|
+
case 'accessDescriptor': {
|
|
243
|
+
return studyFieldRenderer(resource, label, field.params);
|
|
244
|
+
}
|
|
245
|
+
case 'tags': {
|
|
246
|
+
return studyFieldRenderer(resource, label, __assign(__assign({}, field.params), field));
|
|
247
|
+
}
|
|
248
|
+
default:
|
|
249
|
+
if (resourceFieldValue &&
|
|
250
|
+
isArray(resourceFieldValue) &&
|
|
251
|
+
resourceFieldValue.length > 0 &&
|
|
252
|
+
resourceFieldValue[0].length !== 0 &&
|
|
253
|
+
resourceFieldValue.every(function (val) { return typeof val === 'string'; })) {
|
|
254
|
+
resourceFieldValue =
|
|
255
|
+
formatResourceValuesWhenNestedArray(resourceFieldValue);
|
|
256
|
+
return studyFieldRenderer(resourceFieldValue, label, field.params);
|
|
257
|
+
}
|
|
258
|
+
else if (resourceFieldValue !== undefined ||
|
|
259
|
+
resourceFieldValue !== null)
|
|
260
|
+
return studyFieldRenderer(resourceFieldValue, label, field.params);
|
|
261
|
+
}
|
|
262
|
+
return null;
|
|
263
|
+
};
|
|
264
|
+
var DefaultGen3StudyDetailsFieldsRenderers = {
|
|
265
|
+
text: { default: labeledSingleTextField },
|
|
266
|
+
string: {
|
|
267
|
+
default: labeledSingleTextField,
|
|
268
|
+
yearOfBirthRestricted: labeledYearOfBirthRestricted,
|
|
269
|
+
},
|
|
270
|
+
link: { default: labeledSingleLinkField },
|
|
271
|
+
textList: { default: labeledMultipleTextField },
|
|
272
|
+
linkList: {
|
|
273
|
+
default: labeledMultipleLinkField,
|
|
274
|
+
linkWithTitle: unlabeledMultipleLinkField,
|
|
275
|
+
},
|
|
276
|
+
block: { default: blockTextField },
|
|
277
|
+
accessDescriptor: { default: accessDescriptor },
|
|
278
|
+
tags: { default: renderDetailTags },
|
|
279
|
+
number: { default: labeledNumberField },
|
|
280
|
+
paragraphs: { default: labeledParagraph },
|
|
281
|
+
};
|
|
282
|
+
StudyFieldRendererFactory.registerFieldRendererCatalog(DefaultGen3StudyDetailsFieldsRenderers);
|
|
283
|
+
//# sourceMappingURL=StudyItems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudyItems.js","sourceRoot":"","sources":["../../../../../src/features/Study/StudyDetails/StudyItems.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAM5C,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EACL,yBAAyB,EAGzB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAG3B;;;;;GAKG;AACH,IAAM,kBAAkB,GAAG,UAAC,KAAgB;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,E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BAAM,IACL,kBAAkB,KAAK,SAAS;gBAChC,kBAAkB,KAAK,IAAI;gBAE3B,OAAO,kBAAkB,CAAC,kBAAkB,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,IAAM,sCAAsC,GAGxC;IACF,IAAI,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;IACzC,MAAM,EAAE;QACN,OAAO,EAAE,sBAAsB;QAC/B,qBAAqB,EAAE,4BAA4B;KACpD;IACD,IAAI,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;IACzC,QAAQ,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;IAC/C,QAAQ,EAAE;QACR,OAAO,EAAE,wBAAwB;QACjC,aAAa,EAAE,0BAA0B;KAC1C;IACD,KAAK,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;IAClC,gBAAgB,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;IAC/C,IAAI,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;IACnC,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE;IACvC,UAAU,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;CAC1C,CAAC;AAEF,yBAAyB,CAAC,4BAA4B,CACpD,sCAAsC,CACvC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataDownloadLinks, DownloadLinkFields } from '../types';
|
|
2
|
+
import { JSONObject } from '@gen3/core';
|
|
3
|
+
interface DataDownloadLinksProps {
|
|
4
|
+
readonly studyData: JSONObject;
|
|
5
|
+
readonly downloadLinks?: DataDownloadLinks;
|
|
6
|
+
readonly downloadLinkFields?: DownloadLinkFields;
|
|
7
|
+
}
|
|
8
|
+
declare const DownloadLinksPanel: ({ studyData, downloadLinks, downloadLinkFields, }: DataDownloadLinksProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default DownloadLinksPanel;
|
|
10
|
+
//# sourceMappingURL=DownloadLinksPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadLinksPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/Study/StudyPage/DownloadLinksPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAkB,UAAU,EAAE,MAAM,YAAY,CAAC;AAoBxD,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/B,QAAQ,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CAClD;AAED,QAAA,MAAM,kBAAkB,GAAI,mDAQzB,sBAAsB,4CAmDxB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { GEN3_FENCE_API } from '@gen3/core';
|
|
4
|
+
import { Accordion, Button, Group, Stack, Text } from '@mantine/core';
|
|
5
|
+
import { FiDownload as DownloadIcon } from 'react-icons/fi';
|
|
6
|
+
var extractFieldData = function (data, fieldsMap) {
|
|
7
|
+
var result = {};
|
|
8
|
+
Object.keys(fieldsMap).forEach(function (key) {
|
|
9
|
+
var value = fieldsMap[key];
|
|
10
|
+
if (value in data && typeof data[value] === 'string') {
|
|
11
|
+
result[key] = data[value];
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
result[key] = undefined;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
19
|
+
var DownloadLinksPanel = function (_a) {
|
|
20
|
+
var studyData = _a.studyData, downloadLinks = _a.downloadLinks, _b = _a.downloadLinkFields, downloadLinkFields = _b === void 0 ? {
|
|
21
|
+
titleField: 'title',
|
|
22
|
+
descriptionField: 'description',
|
|
23
|
+
idField: 'guid',
|
|
24
|
+
} : _b;
|
|
25
|
+
var downloadEntries = useMemo(function () {
|
|
26
|
+
if (!downloadLinks || !studyData[downloadLinks.field])
|
|
27
|
+
return undefined;
|
|
28
|
+
var studyDownloadLinks = studyData[downloadLinks.field];
|
|
29
|
+
return studyDownloadLinks.map(function (data) {
|
|
30
|
+
return extractFieldData(data, downloadLinkFields);
|
|
31
|
+
});
|
|
32
|
+
}, [studyData, downloadLinks, downloadLinkFields]);
|
|
33
|
+
return (_jsx(Accordion, { children: _jsxs(Accordion.Item, { value: "downloadLinks", children: [_jsx(Accordion.Control, { children: _jsx(Text, { children: (downloadLinks === null || downloadLinks === void 0 ? void 0 : downloadLinks.name) || 'Data Download Links' }) }), _jsx(Accordion.Panel, { children: _jsx(Stack, { children: downloadEntries &&
|
|
34
|
+
downloadEntries.map(function (entry) {
|
|
35
|
+
// minimum required fields are title and id
|
|
36
|
+
if (entry['titleField'] === undefined ||
|
|
37
|
+
entry['idField'] === undefined) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
var id = entry[downloadLinkFields.idField];
|
|
41
|
+
return (_jsxs(Group, { justify: "space-between", gap: "md", children: [_jsx(Text, { children: entry['titleField'] || '' }), _jsx(Button, { component: "a", href: "".concat(GEN3_FENCE_API, "/data/").concat(id, "?expires_in=900&redirect"), target: "_blank", rel: "noreferrer", type: "text", leftSection: _jsx(DownloadIcon, {}), "data-disabled": !id, children: "Download File" })] }, id));
|
|
42
|
+
}) }) })] }) }));
|
|
43
|
+
};
|
|
44
|
+
export default DownloadLinksPanel;
|
|
45
|
+
//# sourceMappingURL=DownloadLinksPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadLinksPanel.js","sourceRoot":"","sources":["../../../../../src/features/Study/StudyPage/DownloadLinksPanel.tsx"],"names":[],"mappings":";AAA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
+
import { ReactElement } from 'react';
|
|
2
|
+
import { JSONObject } from '@gen3/core';
|
|
3
|
+
import { StudyPageConfig } from '../types';
|
|
4
|
+
interface StudyPagePanelProps {
|
|
5
|
+
readonly studyDetails: JSONObject;
|
|
6
|
+
readonly studyPageConfig: StudyPageConfig;
|
|
7
|
+
}
|
|
8
|
+
declare const StudyPagePanel: ({ studyDetails, studyPageConfig, }: StudyPagePanelProps) => ReactElement;
|
|
9
|
+
export default StudyPagePanel;
|
|
10
|
+
//# sourceMappingURL=StudyPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudyPage.d.ts","sourceRoot":"","sources":["../../../../../src/features/Study/StudyPage/StudyPage.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI3C,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;IAClC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;CAC3C;AAED,QAAA,MAAM,cAAc,GAAI,oCAGrB,mBAAmB,KAAG,YAUxB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Stack, Text } from '@mantine/core';
|
|
3
|
+
import { getStringValueFromJSONObject } from '../utils';
|
|
4
|
+
var StudyPagePanel = function (_a) {
|
|
5
|
+
var _b;
|
|
6
|
+
var studyDetails = _a.studyDetails, studyPageConfig = _a.studyPageConfig;
|
|
7
|
+
var headerText = getStringValueFromJSONObject(studyDetails, (_b = studyPageConfig.header) === null || _b === void 0 ? void 0 : _b.field);
|
|
8
|
+
return (_jsx(Stack, { children: _jsx(Text, { size: "lg", fw: 700, className: "mb-4", children: headerText }) }));
|
|
9
|
+
};
|
|
10
|
+
export default StudyPagePanel;
|
|
11
|
+
//# sourceMappingURL=StudyPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudyPage.js","sourceRoot":"","sources":["../../../../../src/features/Study/StudyPage/StudyPage.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAOxD,IAAM,cAAc,GAAG,UAAC,EAGF;;QAFI,YAAY,kBAAA,EACjB,eAAe,qBAAA;IAGlC,IAAM,UAAU,GAAG,4BAA4B,CAAC,YAAY,EAAE,MAAA,eAAe,CAAC,MAAM,0CAAE,KAAK,CAAC,CAAC;IAC7F,OAAO,CACL,KAAC,KAAK,cACF,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,EAAE,EAAE,GAAG,EAAE,SAAS,EAAC,MAAM,YACtC,UAAU,GACN,GACH,CACX,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSONObject } from '@gen3/core';
|
|
2
|
+
import { StudyPageConfig } from '../types';
|
|
3
|
+
interface StudyPageGroupProps {
|
|
4
|
+
readonly studyDetails: JSONObject;
|
|
5
|
+
readonly studyPageConfig: StudyPageConfig;
|
|
6
|
+
}
|
|
7
|
+
declare const StudyPageGroup: ({ studyDetails, studyPageConfig, }: StudyPageGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default StudyPageGroup;
|
|
9
|
+
//# sourceMappingURL=StudyPageGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudyPageGroup.d.ts","sourceRoot":"","sources":["../../../../../src/features/Study/StudyPage/StudyPageGroup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,UAAU,mBAAmB;IACzB,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;IAClC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;CAC7C;AAGD,QAAA,MAAM,cAAc,GAAI,oCAGpB,mBAAmB,4CAMtB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// TODO: Implement StudyPageGroup
|
|
3
|
+
var StudyPageGroup = function (_a) {
|
|
4
|
+
var studyDetails = _a.studyDetails, studyPageConfig = _a.studyPageConfig;
|
|
5
|
+
return (_jsx("div", {}));
|
|
6
|
+
};
|
|
7
|
+
export default StudyPageGroup;
|
|
8
|
+
//# sourceMappingURL=StudyPageGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudyPageGroup.js","sourceRoot":"","sources":["../../../../../src/features/Study/StudyPage/StudyPageGroup.tsx"],"names":[],"mappings":";AASA,iCAAiC;AACjC,IAAM,cAAc,GAAG,UAAC,EAGD;QAFK,YAAY,kBAAA,EACZ,eAAe,qBAAA;IAEvC,OAAO,CACH,eAEM,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JSONObject } from '@gen3/core';
|
|
3
|
+
interface StudyProviderValue {
|
|
4
|
+
setStudyDetails: React.Dispatch<React.SetStateAction<JSONObject>>;
|
|
5
|
+
studyDetails: JSONObject;
|
|
6
|
+
}
|
|
7
|
+
declare const useStudyContext: () => StudyProviderValue;
|
|
8
|
+
declare const StudyProvider: ({ children, }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { useStudyContext, StudyProvider as default };
|
|
12
|
+
//# sourceMappingURL=StudyProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudyProvider.d.ts","sourceRoot":"","sources":["../../../../src/features/Study/StudyProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,UAAU,kBAAkB;IAC1B,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;IAClE,YAAY,EAAE,UAAU,CAAC;CAC1B;AAOD,QAAA,MAAM,eAAe,0BAQpB,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,eAEpB;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAaA,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,aAAa,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { createContext } from 'react';
|
|
3
|
+
var StudyContext = createContext({
|
|
4
|
+
setStudyDetails: function () { return null; },
|
|
5
|
+
studyDetails: {},
|
|
6
|
+
});
|
|
7
|
+
var useStudyContext = function () {
|
|
8
|
+
var context = React.useContext(StudyContext);
|
|
9
|
+
if (context === undefined) {
|
|
10
|
+
throw Error('Study must be used must be used inside of a StudyContext');
|
|
11
|
+
}
|
|
12
|
+
return context;
|
|
13
|
+
};
|
|
14
|
+
var StudyProvider = function (_a) {
|
|
15
|
+
var children = _a.children;
|
|
16
|
+
var _b = React.useState({}), studyDetails = _b[0], setStudyDetails = _b[1];
|
|
17
|
+
return (_jsx(StudyContext.Provider, { value: {
|
|
18
|
+
setStudyDetails: setStudyDetails,
|
|
19
|
+
studyDetails: studyDetails,
|
|
20
|
+
}, children: children }));
|
|
21
|
+
};
|
|
22
|
+
export { useStudyContext, StudyProvider as default };
|
|
23
|
+
//# sourceMappingURL=StudyProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudyProvider.js","sourceRoot":"","sources":["../../../../src/features/Study/StudyProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAQ7C,IAAM,YAAY,GAAG,aAAa,CAAqB;IACrD,eAAe,EAAE,cAAM,OAAA,IAAI,EAAJ,CAAI;IAC3B,YAAY,EAAE,EAAgB;CAC/B,CAAC,CAAC;AAEH,IAAM,eAAe,GAAG;IACtB,IAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAC/C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,KAAK,CACT,0DAA0D,CAC3D,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,IAAM,aAAa,GAAG,UAAC,EAItB;QAHC,QAAQ,cAAA;IAIF,IAAA,KAAkC,KAAK,CAAC,QAAQ,CAAa,EAAE,CAAC,EAA/D,YAAY,QAAA,EAAE,eAAe,QAAkC,CAAC;IAEvE,OAAO,CACL,KAAC,YAAY,CAAC,QAAQ,IACpB,KAAK,EAAE;YACL,eAAe,iBAAA;YACf,YAAY,cAAA;SACb,YAEA,QAAQ,GACa,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,aAAa,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellRenderers.d.ts","sourceRoot":"","sources":["../../../../../src/features/Study/TableRenderers/CellRenderers.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAA2B,MAAM,SAAS,CAAC;AAKxE,eAAO,MAAM,cAAc,EAAE,oBA8B5B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getTagInfo } from '../utils';
|
|
3
|
+
import { Badge } from '@mantine/core';
|
|
4
|
+
// TODO Fix below
|
|
5
|
+
// eslint-disable-next-line react/prop-types
|
|
6
|
+
export var RenderTagsCell = function (_a) {
|
|
7
|
+
var value = _a.value;
|
|
8
|
+
var content = value;
|
|
9
|
+
return (_jsx("div", { className: "flex space-x-1 space-y-4", children: content.map(function (x) {
|
|
10
|
+
var _a = getTagInfo(x), color = _a.color, display = _a.display, label = _a.label;
|
|
11
|
+
if (!display)
|
|
12
|
+
return null;
|
|
13
|
+
return (_jsx(Badge, { role: "button", size: "lg", radius: "sm", variant: "filled", tabIndex: 0, "aria-label": x.name, style: {
|
|
14
|
+
backgroundColor: color,
|
|
15
|
+
borderColor: color,
|
|
16
|
+
color: 'white',
|
|
17
|
+
}, children: label }, x.name));
|
|
18
|
+
}) }));
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=CellRenderers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellRenderers.js","sourceRoot":"","sources":["../../../../../src/features/Study/TableRenderers/CellRenderers.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,iBAAiB;AACjB,4CAA4C;AAC5C,MAAM,CAAC,IAAM,cAAc,GAAyB,UAAC,EAE3B;QADxB,KAAK,WAAA;IAEL,IAAM,OAAO,GAAG,KAAkB,CAAC;IACnC,OAAO,CACL,cAAK,SAAS,EAAC,0BAA0B,YACtC,OAAO,CAAC,GAAG,CAAC,UAAC,CAAU;YAChB,IAAA,KAA4B,UAAU,CAAC,CAAC,CAAC,EAAvC,KAAK,WAAA,EAAE,OAAO,aAAA,EAAE,KAAK,WAAkB,CAAC;YAChD,IAAI,CAAC,OAAO;gBAAE,OAAO,IAAI,CAAC;YAC1B,OAAO,CACL,KAAC,KAAK,IAEJ,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,IAAI,EACT,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,QAAQ,EAChB,QAAQ,EAAE,CAAC,gBACC,CAAC,CAAC,IAAI,EAClB,KAAK,EAAE;oBACL,eAAe,EAAE,KAAK;oBACtB,WAAW,EAAE,KAAK;oBAClB,KAAK,EAAE,OAAO;iBACf,YAEA,KAAK,IAbD,CAAC,CAAC,IAAI,CAcL,CACT,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JSONObject } from '@gen3/core';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import { MRT_Cell, MRT_Row, MRT_RowData } from 'mantine-react-table';
|
|
4
|
+
export interface CellRenderFunctionProps<T = any, C extends MRT_RowData = JSONObject> {
|
|
5
|
+
value: T;
|
|
6
|
+
cell?: MRT_Cell<C>;
|
|
7
|
+
row?: MRT_Row<C>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A Cell Renderer Function is a function that takes a value and returns a ReactElement
|
|
11
|
+
* @param props: value and optional cell object
|
|
12
|
+
*/
|
|
13
|
+
export type CellRendererFunction<T = JSONObject> = (props: CellRenderFunctionProps, params?: T) => ReactElement;
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/Study/TableRenderers/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGrE,MAAM,WAAW,uBAAuB,CACtC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,WAAW,GAAG,UAAU;IAElC,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,UAAU,IAAI,CACjD,KAAK,EAAE,uBAAuB,EAC9B,MAAM,CAAC,EAAE,CAAC,KACP,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/features/Study/TableRenderers/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import StudyGroup from './StudyDetails/StudyGroup';
|
|
2
|
+
import { type StudyDetailsField, type TagData, type TagsConfig } from './types';
|
|
3
|
+
import { getTagInfo } from './utils';
|
|
4
|
+
export { StudyGroup, type StudyDetailsField, type TagData, type TagsConfig, getTagInfo, };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/Study/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EACL,UAAU,EACV,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,UAAU,GACX,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/Study/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,2BAA2B,CAAC;AAMnD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EACL,UAAU,EAIV,UAAU,GACX,CAAA"}
|