@gen3/frontend 0.10.94 → 0.10.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +5530 -3554
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +64 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.js +38 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +2 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +141 -0
- package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +1 -0
- package/dist/dts/components/DropdownMenu/index.d.ts +3 -0
- package/dist/dts/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/dts/components/DropdownMenu/index.js +3 -0
- package/dist/dts/components/DropdownMenu/index.js.map +1 -0
- package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
- package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts +5 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts.map +1 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.js +9 -0
- package/dist/dts/components/MessageCards/EmptyTableMessage.js.map +1 -0
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts +7 -0
- package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +1 -0
- package/dist/dts/components/MessageCards/ErrorMessage.js +8 -0
- package/dist/dts/components/MessageCards/ErrorMessage.js.map +1 -0
- package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.js +42 -4
- package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.js +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
- package/dist/dts/components/charts/utils.d.ts +1 -1
- package/dist/dts/components/charts/utils.d.ts.map +1 -1
- package/dist/dts/components/charts/utils.js +2 -4
- package/dist/dts/components/charts/utils.js.map +1 -1
- package/dist/dts/components/facets/EnumFacet.d.ts +2 -1
- package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/EnumFacet.js.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.js +7 -30
- package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
- package/dist/dts/components/facets/FacetSelector.d.ts +1 -1
- package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetSelector.js +3 -1
- package/dist/dts/components/facets/FacetSelector.js.map +1 -1
- package/dist/dts/components/facets/types.d.ts +1 -0
- package/dist/dts/components/facets/types.d.ts.map +1 -1
- package/dist/dts/components/facets/types.js.map +1 -1
- package/dist/dts/components/facets/utils.d.ts +4 -2
- package/dist/dts/components/facets/utils.d.ts.map +1 -1
- package/dist/dts/components/facets/utils.js +27 -1
- package/dist/dts/components/facets/utils.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
- package/dist/dts/features/CohortBuilder/AccessLevel.d.ts +8 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.js +20 -0
- package/dist/dts/features/CohortBuilder/AccessLevel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +4 -19
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +20 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +37 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +18 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +149 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +122 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +19 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +52 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +10 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +37 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +33 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +7 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js +80 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.js +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +15 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +8 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +32 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +190 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +145 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +79 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +5 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.js +21 -0
- package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +49 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.js +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js +21 -0
- package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +6 -2
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +15 -19
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +8 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.js +51 -10
- package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +32 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts +2 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts +3 -2
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +56 -60
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js +48 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js +81 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js +22 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts +9 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js +17 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts +12 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js +2 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js.map +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts +52 -12
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts +4 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js +70 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +2 -2
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +5 -4
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +2 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts +4 -1
- package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -1
- package/dist/dts/features/CohortBuilder/index.d.ts +5 -2
- package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/index.js +4 -1
- package/dist/dts/features/CohortBuilder/index.js.map +1 -1
- package/dist/dts/features/CohortBuilder/types.d.ts +13 -5
- package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/types.js +6 -0
- package/dist/dts/features/CohortBuilder/types.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +19 -11
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +23 -8
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +6 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +71 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts +2 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js +36 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts +417 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +45 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +95 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +388 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +64 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +574 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts +7 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.js +2 -0
- package/dist/dts/features/CohortDiscovery/CohortManagment/types.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js +1 -1
- package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts +2 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +22 -6
- package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +41 -33
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts +22 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js +147 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +284 -0
- package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts +8 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js +9 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts +10 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +231 -0
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts +3 -4
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js +6 -11
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts +8 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js +15 -0
- package/dist/dts/features/CohortDiscovery/TabbedIndex.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +2 -2
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +19 -3
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +11 -3
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts +12 -0
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +42 -1
- package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/registerApp.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/registerApp.js +5 -3
- package/dist/dts/features/CohortDiscovery/registerApp.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.d.ts +57 -0
- package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/types.js +35 -1
- package/dist/dts/features/CohortDiscovery/types.js.map +1 -1
- package/dist/dts/features/CohortSimilarity/appApi.d.ts +4 -6
- package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/appApi.js +3 -1
- package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -1
- package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/registerApp.js +1 -3
- package/dist/dts/features/CohortSimilarity/registerApp.js.map +1 -1
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.js +2 -2
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.js.map +1 -1
- package/dist/dts/features/DataLibrary/SearchAndActions.js +1 -1
- package/dist/dts/features/DataLibrary/SearchAndActions.js.map +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js +1 -1
- package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js.map +1 -1
- package/dist/dts/features/DataLibrary/tests/utils.unit.test.js +2 -1
- package/dist/dts/features/DataLibrary/tests/utils.unit.test.js.map +1 -1
- package/dist/dts/features/DataLibrary/utils.d.ts +0 -10
- package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/utils.js +0 -34
- package/dist/dts/features/DataLibrary/utils.js.map +1 -1
- package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/CategoryPanel.js +9 -9
- package/dist/dts/features/Dictionary/CategoryPanel.js.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryWithContext.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/IndexedMetadata/DataLoader.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js +2 -2
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.js +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +8 -6
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryProvider.d.ts +0 -3
- package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryProvider.js +0 -5
- package/dist/dts/features/Discovery/DiscoveryProvider.js.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.js +7 -5
- package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.js +3 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts +2 -3
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js +3 -3
- package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts +1 -2
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +5 -6
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/index.d.ts +2 -4
- package/dist/dts/features/Discovery/index.d.ts.map +1 -1
- package/dist/dts/features/Discovery/index.js +1 -3
- package/dist/dts/features/Discovery/index.js.map +1 -1
- package/dist/dts/features/Discovery/types.d.ts +3 -107
- package/dist/dts/features/Discovery/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.js +0 -16
- package/dist/dts/features/Discovery/types.js.map +1 -1
- package/dist/dts/features/Discovery/utils.d.ts +2 -8
- package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/utils.js +1 -28
- package/dist/dts/features/Discovery/utils.js.map +1 -1
- package/dist/dts/features/Navigation/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/Study/StudyDetails/DetailsAuthorizationIcon.d.ts +9 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js +11 -0
- package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts +19 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js +56 -0
- package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts +15 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js +44 -0
- package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +10 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js +36 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts +10 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +19 -0
- package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts +8 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js +31 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts +9 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js +11 -0
- package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +5 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.js +283 -0
- package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts +10 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js +45 -0
- package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.d.ts +10 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.js +11 -0
- package/dist/dts/features/Study/StudyPage/StudyPage.js.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts +9 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.js +8 -0
- package/dist/dts/features/Study/StudyPage/StudyPageGroup.js.map +1 -0
- package/dist/dts/features/Study/StudyProvider.d.ts +12 -0
- package/dist/dts/features/Study/StudyProvider.d.ts.map +1 -0
- package/dist/dts/features/Study/StudyProvider.js +23 -0
- package/dist/dts/features/Study/StudyProvider.js.map +1 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts +3 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts.map +1 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.js +20 -0
- package/dist/dts/features/Study/TableRenderers/CellRenderers.js.map +1 -0
- package/dist/dts/features/Study/TableRenderers/types.d.ts +14 -0
- package/dist/dts/features/Study/TableRenderers/types.d.ts.map +1 -0
- package/dist/dts/features/Study/TableRenderers/types.js +2 -0
- package/dist/dts/features/Study/TableRenderers/types.js.map +1 -0
- package/dist/dts/features/Study/index.d.ts +5 -0
- package/dist/dts/features/Study/index.d.ts.map +1 -0
- package/dist/dts/features/Study/index.js +4 -0
- package/dist/dts/features/Study/index.js.map +1 -0
- package/dist/dts/features/Study/types.d.ts +91 -0
- package/dist/dts/features/Study/types.d.ts.map +1 -0
- package/dist/dts/features/Study/types.js +8 -0
- package/dist/dts/features/Study/types.js.map +1 -0
- package/dist/dts/features/Study/utils.d.ts +10 -0
- package/dist/dts/features/Study/utils.d.ts.map +1 -0
- package/dist/dts/features/Study/utils.js +28 -0
- package/dist/dts/features/Study/utils.js.map +1 -0
- package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.d.ts.map +1 -1
- package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.js.map +1 -1
- package/dist/dts/index.d.ts +3 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +7 -1
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +16 -32
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/data.js +28 -22
- package/dist/dts/pages/Explorer/data.js.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.d.ts +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
- package/dist/dts/types/icons.d.ts +4 -0
- package/dist/dts/types/icons.d.ts.map +1 -0
- package/dist/dts/types/icons.js +5 -0
- package/dist/dts/types/icons.js.map +1 -0
- package/dist/dts/utils/access.d.ts +10 -0
- package/dist/dts/utils/access.d.ts.map +1 -0
- package/dist/dts/utils/access.js +11 -0
- package/dist/dts/utils/access.js.map +1 -0
- package/dist/dts/utils/authMapping.d.ts +4 -0
- package/dist/dts/utils/authMapping.d.ts.map +1 -1
- package/dist/dts/utils/authMapping.js.map +1 -1
- package/dist/dts/utils/convertResourcePathsToTree.d.ts +8 -0
- package/dist/dts/utils/convertResourcePathsToTree.d.ts.map +1 -0
- package/dist/dts/utils/convertResourcePathsToTree.js +43 -0
- package/dist/dts/utils/convertResourcePathsToTree.js.map +1 -0
- package/dist/dts/utils/dataAuthorization.d.ts +11 -0
- package/dist/dts/utils/dataAuthorization.d.ts.map +1 -0
- package/dist/dts/utils/dataAuthorization.js +2 -0
- package/dist/dts/utils/dataAuthorization.js.map +1 -0
- package/dist/dts/utils/date.d.ts +16 -0
- package/dist/dts/utils/date.d.ts.map +1 -1
- package/dist/dts/utils/date.js +54 -8
- package/dist/dts/utils/date.js.map +1 -1
- package/dist/dts/utils/index.d.ts +2 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +2 -0
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/layout.d.ts +2 -0
- package/dist/dts/utils/layout.d.ts.map +1 -0
- package/dist/dts/utils/layout.js +20 -0
- package/dist/dts/utils/layout.js.map +1 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts +2 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts.map +1 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js +150 -0
- package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js.map +1 -0
- package/dist/esm/index.js +5935 -3965
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +214 -145
- 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,64 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { type FloatingPosition } from '@mantine/core';
|
|
3
|
+
interface DropdownWithIconProps {
|
|
4
|
+
/**
|
|
5
|
+
* if true, doesn't set width to be "target"
|
|
6
|
+
*/
|
|
7
|
+
disableTargetWidth?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Left Section for the target button, can be undefined too
|
|
10
|
+
*/
|
|
11
|
+
LeftSection?: JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Right Section for the target button, can be undefined too (default to dropdown icon)
|
|
14
|
+
*/
|
|
15
|
+
RightSection?: JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* Content for target button
|
|
18
|
+
*/
|
|
19
|
+
TargetButtonChildren: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* disables the target button and menu
|
|
22
|
+
*/
|
|
23
|
+
targetButtonDisabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* array dropdown items. Need to pass title, onClick and icon event handler is optional
|
|
26
|
+
*/
|
|
27
|
+
dropdownElements: Array<{
|
|
28
|
+
title: string;
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
icon?: JSX.Element;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* only provide menuLabelText if we want label for dropdown elements
|
|
35
|
+
*/
|
|
36
|
+
menuLabelText?: string;
|
|
37
|
+
/**
|
|
38
|
+
* custom class / stylings for menuLabelText
|
|
39
|
+
*/
|
|
40
|
+
menuLabelCustomClass?: string;
|
|
41
|
+
/**
|
|
42
|
+
* custom position for Menu
|
|
43
|
+
*/
|
|
44
|
+
customPosition?: FloatingPosition;
|
|
45
|
+
/**
|
|
46
|
+
* whether the dropdown should fill the height of its parent
|
|
47
|
+
*/
|
|
48
|
+
fullHeight?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* custom test id
|
|
51
|
+
*/
|
|
52
|
+
customDataTestId?: string;
|
|
53
|
+
/**
|
|
54
|
+
tooltip
|
|
55
|
+
*/
|
|
56
|
+
tooltip?: string;
|
|
57
|
+
/**
|
|
58
|
+
* aria-label for the button
|
|
59
|
+
*/
|
|
60
|
+
buttonAriaLabel?: string;
|
|
61
|
+
}
|
|
62
|
+
declare const DropdownMenu: React.FC<DropdownWithIconProps>;
|
|
63
|
+
export default DropdownMenu;
|
|
64
|
+
//# sourceMappingURL=DropdownMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAsB,MAAM,OAAO,CAAC;AAC7D,OAAO,EAKL,KAAK,gBAAgB,EAEtB,MAAM,eAAe,CAAC;AAGvB,UAAU,qBAAqB;IAC7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC3B;;OAEG;IACH,oBAAoB,EAAE,SAAS,CAAC;IAChC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC,CAAC;IACH;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkGjD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useRef } from 'react';
|
|
14
|
+
import { Button, MantineProvider, Menu, Tooltip, useMantineTheme, } from '@mantine/core';
|
|
15
|
+
import { DropdownIcon } from '../../types/icons';
|
|
16
|
+
var DropdownMenu = function (_a) {
|
|
17
|
+
var disableTargetWidth = _a.disableTargetWidth, LeftSection = _a.LeftSection, _b = _a.RightSection, RightSection = _b === void 0 ? (_jsx("div", { className: "border-l pl-1 -mr-2", children: _jsx(DropdownIcon, { size: "1.25em", "aria-hidden": "true", "data-testid": "dropdown-icon" }) })) : _b, TargetButtonChildren = _a.TargetButtonChildren, targetButtonDisabled = _a.targetButtonDisabled, dropdownElements = _a.dropdownElements, menuLabelText = _a.menuLabelText, menuLabelCustomClass = _a.menuLabelCustomClass, customPosition = _a.customPosition, fullHeight = _a.fullHeight, _c = _a.customDataTestId, customDataTestId = _c === void 0 ? undefined : _c, _d = _a.tooltip, tooltip = _d === void 0 ? undefined : _d, _e = _a.buttonAriaLabel, buttonAriaLabel = _e === void 0 ? undefined : _e;
|
|
18
|
+
var targetRef = useRef(null);
|
|
19
|
+
var theme = useMantineTheme();
|
|
20
|
+
return (_jsx(MantineProvider, { theme: theme, children: _jsxs(Menu, __assign({ width: !disableTargetWidth ? 'target' : undefined }, (customPosition && { position: customPosition }), { "data-testid": customDataTestId !== null && customDataTestId !== void 0 ? customDataTestId : 'menu-elem', zIndex: 9000, children: [_jsx(Menu.Target, { children: _jsx(Button, __assign({ variant: "action" }, (LeftSection && { leftSection: LeftSection }), { rightSection: RightSection, disabled: targetButtonDisabled, classNames: {
|
|
21
|
+
root: "".concat(fullHeight ? '!h-full' : undefined, " !w-full"),
|
|
22
|
+
}, ref: targetRef, "aria-label": buttonAriaLabel, children: _jsx("div", { children: (tooltip === null || tooltip === void 0 ? void 0 : tooltip.length) && !targetButtonDisabled ? (_jsx("div", { children: _jsx(Tooltip, { label: tooltip, children: _jsx("div", { children: TargetButtonChildren }) }) })) : (_jsx("div", { children: TargetButtonChildren })) }) })) }), _jsxs(Menu.Dropdown, { "data-testid": "dropdown-menu-options", className: "border-1 border-secondary", children: [menuLabelText && (_jsxs(_Fragment, { children: [_jsx(Menu.Label, { className: menuLabelCustomClass !== null && menuLabelCustomClass !== void 0 ? menuLabelCustomClass : 'font-bold', "data-testid": "menu-label", children: menuLabelText }), _jsx(Menu.Divider, {})] })), dropdownElements.map(function (_a, idx) {
|
|
23
|
+
var title = _a.title, onClick = _a.onClick, icon = _a.icon, disabled = _a.disabled;
|
|
24
|
+
return (_jsx(Menu.Item, { onClick: function () {
|
|
25
|
+
var _a;
|
|
26
|
+
if (onClick) {
|
|
27
|
+
onClick();
|
|
28
|
+
}
|
|
29
|
+
// This is done inorder to set the last focused element as the menu target element
|
|
30
|
+
// This is done to return focus to the target element if the modal is closed with ESC
|
|
31
|
+
if (targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) {
|
|
32
|
+
(_a = targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
33
|
+
}
|
|
34
|
+
}, "data-testid": "".concat(title, "-").concat(idx), leftSection: icon && icon, disabled: disabled, children: title }, "".concat(title, "-").concat(idx)));
|
|
35
|
+
})] })] })) }));
|
|
36
|
+
};
|
|
37
|
+
export default DropdownMenu;
|
|
38
|
+
//# sourceMappingURL=DropdownMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAyB,MAAM,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EACL,MAAM,EACN,eAAe,EACf,IAAI,EACJ,OAAO,EAEP,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAgEjD,IAAM,YAAY,GAAoC,UAAC,EAsBtD;QArBC,kBAAkB,wBAAA,EAClB,WAAW,iBAAA,EACX,oBAQC,EARD,YAAY,mBAAG,CACb,cAAK,SAAS,EAAC,qBAAqB,YAClC,KAAC,YAAY,IACX,IAAI,EAAC,QAAQ,iBACD,MAAM,iBACN,eAAe,GAC3B,GACE,CACP,KAAA,EACD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,oBAAoB,GAAO,CAClC,GACG,IACC,GACG,EACd,MAAC,IAAI,CAAC,QAAQ,mBACA,uBAAuB,EACnC,SAAS,EAAC,2BAA2B,aAEpC,aAAa,IAAI,CAChB,8BACE,KAAC,IAAI,CAAC,KAAK,IACT,SAAS,EAAE,oBAAoB,aAApB,oBAAoB,cAApB,oBAAoB,GAAI,WAAW,iBAClC,YAAY,YAEvB,aAAa,GACH,EACb,KAAC,IAAI,CAAC,OAAO,KAAG,IACf,CACJ,EACA,gBAAgB,CAAC,GAAG,CAAC,UAAC,EAAkC,EAAE,GAAG;gCAArC,KAAK,WAAA,EAAE,OAAO,aAAA,EAAE,IAAI,UAAA,EAAE,QAAQ,cAAA;4BAAY,OAAA,CACjE,KAAC,IAAI,CAAC,IAAI,IACR,OAAO,EAAE;;oCACP,IAAI,OAAO,EAAE,CAAC;wCACZ,OAAO,EAAE,CAAC;oCACZ,CAAC;oCACD,kFAAkF;oCAClF,qFAAqF;oCACrF,IAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,OAAO,EAAE,CAAC;wCACvB,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,OAAO,0CAAE,KAAK,EAAE,CAAC;oCAC9B,CAAC;gCACH,CAAC,iBAEY,UAAG,KAAK,cAAI,GAAG,CAAE,EAC9B,WAAW,EAAE,IAAI,IAAI,IAAI,EACzB,QAAQ,EAAE,QAAQ,YAEjB,KAAK,IALD,UAAG,KAAK,cAAI,GAAG,CAAE,CAMZ,CACb;wBAnBkE,CAmBlE,CAAC,IACY,KACX,GACS,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.unit.test.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.unit.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
38
|
+
import { render, waitFor } from "@testing-library/react";
|
|
39
|
+
import DropdownMenu from "./DropdownMenu";
|
|
40
|
+
import userEvent from "@testing-library/user-event";
|
|
41
|
+
describe("<DropdownMenu />", function () {
|
|
42
|
+
it("if right icon is NOT provided, dropdown icon should be a default", function () {
|
|
43
|
+
var getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }] })).getByTestId;
|
|
44
|
+
expect(getByTestId("dropdown-icon")).toBeDefined();
|
|
45
|
+
});
|
|
46
|
+
it("if right icon is provided, provided icon should render", function () {
|
|
47
|
+
var getByLabelText = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }], RightSection: _jsx("div", { "aria-label": "test-icon", className: "border-l pl-1 -mr-2" }) })).getByLabelText;
|
|
48
|
+
expect(getByLabelText("test-icon")).toBeDefined();
|
|
49
|
+
});
|
|
50
|
+
it("target button should be disabled if targetButtonDisabled props is true", function () {
|
|
51
|
+
var getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }], targetButtonDisabled: true })).getByTestId;
|
|
52
|
+
expect(getByTestId("menu-elem")).toBeDisabled();
|
|
53
|
+
});
|
|
54
|
+
it("target button should NOT be disabled if targetButtonDisabled props is not provided/undefined", function () {
|
|
55
|
+
var getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }] })).getByTestId;
|
|
56
|
+
expect(getByTestId("menu-elem")).not.toBeDisabled();
|
|
57
|
+
});
|
|
58
|
+
it("menu label should be present when menuLabelText is provided ", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
59
|
+
var _a, getByText, getByTestId;
|
|
60
|
+
return __generator(this, function (_b) {
|
|
61
|
+
switch (_b.label) {
|
|
62
|
+
case 0:
|
|
63
|
+
_a = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }], menuLabelText: "test menu label text" })), getByText = _a.getByText, getByTestId = _a.getByTestId;
|
|
64
|
+
return [4 /*yield*/, userEvent.click(getByTestId("menu-elem"))];
|
|
65
|
+
case 1:
|
|
66
|
+
_b.sent();
|
|
67
|
+
return [4 /*yield*/, waitFor(function () { return expect(getByTestId("menu-label")).toBeDefined(); }, {
|
|
68
|
+
timeout: 2000,
|
|
69
|
+
})];
|
|
70
|
+
case 2:
|
|
71
|
+
_b.sent();
|
|
72
|
+
expect(getByText("test menu label text")).toBeInTheDocument();
|
|
73
|
+
return [2 /*return*/];
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}); });
|
|
77
|
+
it("menu label should NOT be present when menuLabelText is NOT provided ", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
78
|
+
var _a, queryByTestId, getByTestId;
|
|
79
|
+
return __generator(this, function (_b) {
|
|
80
|
+
switch (_b.label) {
|
|
81
|
+
case 0:
|
|
82
|
+
_a = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }] })), queryByTestId = _a.queryByTestId, getByTestId = _a.getByTestId;
|
|
83
|
+
return [4 /*yield*/, userEvent.click(getByTestId("menu-elem"))];
|
|
84
|
+
case 1:
|
|
85
|
+
_b.sent();
|
|
86
|
+
expect(queryByTestId("menu-label")).toBeNull();
|
|
87
|
+
return [2 /*return*/];
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}); });
|
|
91
|
+
it("onClick should be called menu clicked on menu items only when provided", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
+
var mockOnClickCallBack1, getByTestId, firstMenuItem;
|
|
93
|
+
return __generator(this, function (_a) {
|
|
94
|
+
switch (_a.label) {
|
|
95
|
+
case 0:
|
|
96
|
+
mockOnClickCallBack1 = jest.fn();
|
|
97
|
+
getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [
|
|
98
|
+
{ title: "test", onClick: mockOnClickCallBack1 },
|
|
99
|
+
{ title: "test2" },
|
|
100
|
+
] })).getByTestId;
|
|
101
|
+
return [4 /*yield*/, userEvent.click(getByTestId("menu-elem"))];
|
|
102
|
+
case 1:
|
|
103
|
+
_a.sent();
|
|
104
|
+
return [4 /*yield*/, waitFor(function () { return expect(getByTestId("test-0")).toBeInTheDocument(); }, {
|
|
105
|
+
timeout: 2000,
|
|
106
|
+
})];
|
|
107
|
+
case 2:
|
|
108
|
+
_a.sent();
|
|
109
|
+
firstMenuItem = getByTestId("test-0");
|
|
110
|
+
return [4 /*yield*/, userEvent.click(firstMenuItem)];
|
|
111
|
+
case 3:
|
|
112
|
+
_a.sent();
|
|
113
|
+
expect(mockOnClickCallBack1).toBeCalled();
|
|
114
|
+
return [2 /*return*/];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}); });
|
|
118
|
+
it("test menu item disabled", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
119
|
+
var getByTestId;
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0:
|
|
123
|
+
getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [
|
|
124
|
+
{ title: "itemD", disabled: true },
|
|
125
|
+
{ title: "itemE" },
|
|
126
|
+
] })).getByTestId;
|
|
127
|
+
return [4 /*yield*/, userEvent.click(getByTestId("menu-elem"))];
|
|
128
|
+
case 1:
|
|
129
|
+
_a.sent();
|
|
130
|
+
return [4 /*yield*/, waitFor(function () { return expect(getByTestId("itemD-0")).toBeDisabled(); }, {
|
|
131
|
+
timeout: 2000,
|
|
132
|
+
})];
|
|
133
|
+
case 2:
|
|
134
|
+
_a.sent();
|
|
135
|
+
expect(getByTestId("itemE-1")).not.toBeDisabled();
|
|
136
|
+
return [2 /*return*/];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}); });
|
|
140
|
+
});
|
|
141
|
+
//# sourceMappingURL=DropdownMenu.unit.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.unit.test.js","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.unit.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,QAAQ,CAAC,kBAAkB,EAAE;IAC3B,EAAE,CAAC,kEAAkE,EAAE;QAC7D,IAAA,WAAW,GAAK,MAAM,CAC5B,KAAC,YAAY,IACX,oBAAoB,EAAC,MAAM,EAC3B,gBAAgB,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,GACzD,CACH,YALkB,CAKjB;QAEF,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE;QACnD,IAAA,cAAc,GAAK,MAAM,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"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginProvidersPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Login/LoginProvidersPanel.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"LoginProvidersPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Login/LoginProvidersPanel.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAmE7C,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,kBAAkB,4CA4DvE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -12,7 +12,7 @@ var LoginProviderMultipleItems = function (_a) {
|
|
|
12
12
|
}); }), classNames: {
|
|
13
13
|
root: 'w-full',
|
|
14
14
|
// item: 'font-medium hover:text-accent-light hover:font-bold',
|
|
15
|
-
}, onChange: setValue, value: value }), _jsxs(Button, { fullWidth: true, color: "accent.3", disabled: !value, onClick: function () { return value && handleLoginSelected(value); }, children: [' ', provider.name] }, provider.name)] }, "".concat(provider.name, "-login-item")));
|
|
15
|
+
}, onChange: setValue, value: value, searchable: true, label: provider.name, placeholder: "Select a login provider", size: "sm", clearable: true, "aria-label": "Select a login provider" }), _jsxs(Button, { fullWidth: true, color: "accent.3", disabled: !value, classNames: { root: 'data-disabled:bg-accent-lightest' }, onClick: function () { return value && handleLoginSelected(value); }, children: [' ', provider.name] }, provider.name)] }, "".concat(provider.name, "-login-item")));
|
|
16
16
|
};
|
|
17
17
|
var LoginProviderSingleItem = function (_a) {
|
|
18
18
|
var provider = _a.provider, handleLoginSelected = _a.handleLoginSelected;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginProvidersPanel.js","sourceRoot":"","sources":["../../../../src/components/Login/LoginProvidersPanel.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACL,GAAG,EACH,MAAM,EACN,MAAM,EACN,cAAc,EACd,MAAM,EACN,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,IAAM,0BAA0B,GAAG,UAAC,EAGX;QAFvB,QAAQ,cAAA,EACR,mBAAmB,yBAAA;IAEb,IAAA,KAAoB,QAAQ,CAAgB,IAAI,CAAC,EAAhD,KAAK,QAAA,EAAE,QAAQ,QAAiC,CAAC;IACxD,OAAO,CACL,eACE,SAAS,EAAC,0EAA0E,aAGpF,KAAC,MAAM,IACL,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,IAAa,IAAK,OAAA,CAAC;oBAC1C,KAAK,EAAE,IAAI,CAAC,GAAG;oBACf,KAAK,EAAE,IAAI,CAAC,IAAI;iBACjB,CAAC,EAHyC,CAGzC,CAAC,EACH,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,+DAA+D;iBAChE,EACD,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"LoginProvidersPanel.js","sourceRoot":"","sources":["../../../../src/components/Login/LoginProvidersPanel.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACL,GAAG,EACH,MAAM,EACN,MAAM,EACN,cAAc,EACd,MAAM,EACN,KAAK,GACN,MAA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AAI,IAAI,CACN,KAAC,uBAAuB,IACtB,QAAQ,EAAE,IAAI,CAAC,gBAAgB,EAC/B,mBAAmB,EAAE,mBAAmB,GACxC,CACH,CACF,EACA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,CACb,MAAM,CAAC,UAAC,CAAM,IAAK,OAAA,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAArC,CAAqC,EACxD,GAAG,CAAC,UAAC,CAAoB;oBACxB,OAAA,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAClB,KAAC,0BAA0B,IAEzB,QAAQ,EAAE,CAAC,EACX,mBAAmB,EAAE,mBAAmB,IAFnC,CAAC,CAAC,IAAI,CAGX,CACH,CAAC,CAAC,CAAC,CACF,KAAC,uBAAuB,IAEtB,QAAQ,EAAE,CAAC,EACX,mBAAmB,EAAE,mBAAmB,IAFnC,CAAC,CAAC,IAAI,CAGX,CACH;gBAZD,CAYC,CACF,IACG,GACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyTableMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageCards/EmptyTableMessage.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,iBAAiB,GAAI,aAAa;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,4CAS1D,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Group, Text } from '@mantine/core';
|
|
3
|
+
import { IoMdInformationCircleOutline as InformIcon } from 'react-icons/io';
|
|
4
|
+
var EmptyTableMessage = function (_a) {
|
|
5
|
+
var message = _a.message;
|
|
6
|
+
return (_jsxs(Group, { gap: "xs", justify: "center", classNames: { root: 'w-100 my-4' }, children: [_jsx("span", { className: "text-utility-warning", children: _jsx(InformIcon, { size: "1.5rem" }) }), _jsx(Text, { fw: 600, children: message })] }));
|
|
7
|
+
};
|
|
8
|
+
export default EmptyTableMessage;
|
|
9
|
+
//# sourceMappingURL=EmptyTableMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyTableMessage.js","sourceRoot":"","sources":["../../../../src/components/MessageCards/EmptyTableMessage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,4BAA4B,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5E,IAAM,iBAAiB,GAAG,UAAC,EAAgC;QAA9B,OAAO,aAAA;IAClC,OAAO,CACL,MAAC,KAAK,IAAC,GAAG,EAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAC,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,aACjE,eAAM,SAAS,EAAC,sBAAsB,YACpC,KAAC,UAAU,IAAC,IAAI,EAAC,QAAQ,GAAG,GACvB,EACP,KAAC,IAAI,IAAC,EAAE,EAAE,GAAG,YAAG,OAAO,GAAQ,IACzB,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageCards/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,iBAAiB;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAO7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from '@iconify/react';
|
|
3
|
+
var ErrorMessage = function (_a) {
|
|
4
|
+
var message = _a.message;
|
|
5
|
+
return (_jsxs("span", { className: "flex items-center mt-2 text-utility-error", children: [_jsx(Icon, { icon: "gen3:waring", height: "1rem" }), message] }));
|
|
6
|
+
};
|
|
7
|
+
export default ErrorMessage;
|
|
8
|
+
//# sourceMappingURL=ErrorMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../../src/components/MessageCards/ErrorMessage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAMtC,IAAM,YAAY,GAAgC,UAAC,EAE/B;QADlB,OAAO,aAAA;IACgB,OAAA,CACvB,gBAAM,SAAS,EAAC,2CAA2C,aACzD,KAAC,IAAI,IAAC,IAAI,EAAC,aAAa,EAAC,MAAM,EAAC,MAAM,GAAG,EACxC,OAAO,IACH,CACR;AALwB,CAKxB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../../../src/components/charts/echarts/BarChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../../../src/components/charts/echarts/BarChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAgFtC,QAAA,MAAM,QAAQ,GAAI,UAAU,UAAU,4CA2CrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -13,6 +13,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
14
|
import { processLabel, truncateString } from '../utils';
|
|
15
15
|
import ReactECharts from './ReactECharts';
|
|
16
|
+
import { graphic } from 'echarts';
|
|
17
|
+
import { isArray } from 'lodash';
|
|
16
18
|
var filterMissing = function (facetData) {
|
|
17
19
|
return facetData.filter(function (d) { return d.key !== '_missing'; });
|
|
18
20
|
};
|
|
@@ -22,10 +24,35 @@ var processChartData = function (facetData, maxBins) {
|
|
|
22
24
|
return [];
|
|
23
25
|
}
|
|
24
26
|
var data = filterMissing(facetData);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
if (data.length === 0)
|
|
28
|
+
return [];
|
|
29
|
+
// get max value in data
|
|
30
|
+
var max = Math.max.apply(Math, data.map(function (d) { return d.count; }));
|
|
31
|
+
if (max < 0) {
|
|
32
|
+
max = 1;
|
|
33
|
+
}
|
|
34
|
+
var results = data.slice(0, maxBins).map(function (d) {
|
|
35
|
+
if (d.count >= 0)
|
|
36
|
+
return { value: d.count, name: truncateString(processLabel(d.key), 35) };
|
|
37
|
+
// handle redacted data
|
|
38
|
+
return {
|
|
39
|
+
value: max,
|
|
40
|
+
groupId: 'redacted',
|
|
41
|
+
name: truncateString(processLabel(d.key), 35),
|
|
42
|
+
itemStyle: {
|
|
43
|
+
opacity: 0.5,
|
|
44
|
+
color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
45
|
+
{ offset: 0, color: '#0264ff00' },
|
|
46
|
+
{ offset: 1, color: '#0264ff' },
|
|
47
|
+
]),
|
|
48
|
+
decal: {
|
|
49
|
+
symbolSize: 1.15,
|
|
50
|
+
dashArrayX: [2, 1],
|
|
51
|
+
dashArrayY: [2, 1],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
});
|
|
29
56
|
return results;
|
|
30
57
|
};
|
|
31
58
|
var processAxis = function (facetData, maxBins) {
|
|
@@ -63,6 +90,17 @@ var BarChart = function (_a) {
|
|
|
63
90
|
},
|
|
64
91
|
], tooltip: {
|
|
65
92
|
trigger: 'item',
|
|
93
|
+
formatter: function (param) {
|
|
94
|
+
var p = isArray(param) && param.length > 0
|
|
95
|
+
? param[0]
|
|
96
|
+
: param;
|
|
97
|
+
var colorSquare = "<span style=\"display:inline-block; width:10px; height:10px; background-color:".concat(p.color, "; margin-right:5px;\"></span>");
|
|
98
|
+
if (p.data.groupId === 'redacted')
|
|
99
|
+
return "".concat(p.name, ": <b>hidden</b");
|
|
100
|
+
return "".concat(colorSquare).concat(p.name, ": <b>").concat(p.value, "</b>");
|
|
101
|
+
// if ((p.data as any).groupId === 'redacted') return `${p.name} Hidden`;
|
|
102
|
+
//return `${p.name} ${p.value}`;
|
|
103
|
+
},
|
|
66
104
|
} }, processAxis(data)), { series: [{ type: 'bar', data: processChartData(data) }] });
|
|
67
105
|
}, [data]);
|
|
68
106
|
return (_jsx("div", { className: "w-full h-64", children: _jsx(ReactECharts, { option: chartDefinition }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarChart.js","sourceRoot":"","sources":["../../../../../src/components/charts/echarts/BarChart.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,YAAmC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"BarChart.js","sourceRoot":"","sources":["../../../../../src/components/charts/echarts/BarChart.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,YAAmC,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAU,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAOjC,IAAM,aAAa,GAAG,UAAC,SAAc;IACnC,OAAA,SAAS,CAAC,MAAM,CA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xB,IAAM,CAAC,GACL,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;wBAChC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;wBACV,CAAC,CAAE,KAA4B,CAAC;oBAEpC,IAAM,WAAW,GAAG,wFAAgF,CAAC,CAAC,KAAK,kCAA8B,CAAC;oBAE1I,IAAK,CAAC,CAAC,IAAY,CAAC,OAAO,KAAK,UAAU;wBACxC,OAAO,UAAG,CAAC,CAAC,IAAI,mBAAgB,CAAC;oBAEnC,OAAO,UAAG,WAAW,SAAG,CAAC,CAAC,IAAI,kBAAQ,CAAC,CAAC,KAAK,SAAM,CAAC;oBAEpD,yEAAyE;oBACzE,gCAAgC;gBAClC,CAAC;aACF,IACE,WAAW,CAAC,IAAI,CAAC,KACpB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,IACvD;IACJ,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,OAAO,CACL,cAAK,SAAS,EAAC,aAAa,YAC1B,KAAC,YAAY,IAAC,MAAM,EAAE,eAAe,GAAI,GACrC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -27,7 +27,7 @@ var ReactECharts = function (_a) {
|
|
|
27
27
|
setChartRoot(chart);
|
|
28
28
|
}, [theme]);
|
|
29
29
|
useDeepCompareEffect(function () {
|
|
30
|
-
// Update chart
|
|
30
|
+
// Update chart if theme, options, or settings change
|
|
31
31
|
if (chartRef.current !== null) {
|
|
32
32
|
var chart = getInstanceByDom(chartRef.current);
|
|
33
33
|
chart === null || chart === void 0 ? void 0 : chart.setOption(option, settings);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactECharts.js","sourceRoot":"","sources":["../../../../../src/components/charts/echarts/ReactECharts.tsx"],"names":[],"mappings":";;;;;;;;;;;;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C;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,oBAAoB,CAAC;QACnB,IAAI,SAAS,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAC3C,SAAS,CAAC,MAAM,EAAE,CAAC;QACrB,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,OAAO,CACL,cACE,IAAI,EAAC,QAAQ,gBACF,YAAY,EACvB,GAAG,EAAE,QAAQ,EACb,KAAK,aAAI,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,IAAK,KAAK,IAChD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -11,7 +11,7 @@ export declare const processRangeKeyLabel: (key: [number, number]) => string;
|
|
|
11
11
|
* Computes the row span for each item in the charts object.
|
|
12
12
|
*
|
|
13
13
|
* @param { number } numItems - The charts object containing summary charts.
|
|
14
|
-
* @param {number} [numCols=
|
|
14
|
+
* @param {number} [numCols=2] - The number of columns per row.
|
|
15
15
|
* @returns {number[]} - An array of row spans for each item in the charts object.
|
|
16
16
|
*/
|
|
17
17
|
export declare const computeRowSpan: (numItems: number, numCols?: number) => Array<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/charts/utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,GAAI,UAAU,MAAM,KAAG,MAW7C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,EAAE,GAAG,MAAM,KAAG,MAMvD,CAAC;AAIF,eAAO,MAAM,SAAS,GAAI,KAAK,GAAG,EAAE;;CAAqB;;CAAS,CAAC;AAEnE,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,MAE5C,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,MAE5D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GACzB,UAAU,MAAM,EAChB,UAAS,MAAU,KAClB,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/charts/utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,GAAI,UAAU,MAAM,KAAG,MAW7C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,EAAE,GAAG,MAAM,KAAG,MAMvD,CAAC;AAIF,eAAO,MAAM,SAAS,GAAI,KAAK,GAAG,EAAE;;CAAqB;;CAAS,CAAC;AAEnE,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,MAE5C,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,MAE5D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GACzB,UAAU,MAAM,EAChB,UAAS,MAAU,KAClB,KAAK,CAAC,MAAM,CAOd,CAAC"}
|
|
@@ -46,13 +46,11 @@ export var processRangeKeyLabel = function (key) {
|
|
|
46
46
|
* Computes the row span for each item in the charts object.
|
|
47
47
|
*
|
|
48
48
|
* @param { number } numItems - The charts object containing summary charts.
|
|
49
|
-
* @param {number} [numCols=
|
|
49
|
+
* @param {number} [numCols=2] - The number of columns per row.
|
|
50
50
|
* @returns {number[]} - An array of row spans for each item in the charts object.
|
|
51
51
|
*/
|
|
52
52
|
export var computeRowSpan = function (numItems, numCols) {
|
|
53
|
-
if (numCols === void 0) { numCols =
|
|
54
|
-
// compute the number of rows
|
|
55
|
-
var numRows = Math.ceil(numItems / numCols);
|
|
53
|
+
if (numCols === void 0) { numCols = 2; }
|
|
56
54
|
// compute the row span for the last row
|
|
57
55
|
var numLastRow = numItems % numCols;
|
|
58
56
|
var spans = new Array(numItems - numLastRow).fill(Math.floor(12 / numCols));
|
|
@@ -1 +1 @@
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,EAAqB;QAAnB,KAAC,GAAI,EAAE,CAAC,SAAA,EAAK,IAAI,cAAnB,uCAAqB,CAAF;IAAO,OAAA,IAAI,CAAA;CAAA,CAAC;AAEnE,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,KAAa;IACxC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAAC,GAAqB;IACxD,OAAO,UAAG,GAAG,CAAC,CAAC,CAAC,cAAI,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;AAC/B,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,IAAM,cAAc,GAAG,UAC5B,QAAgB,EAChB,OAAmB;IAAnB,wBAAA,EAAA,WAAmB;IAEnB,wCAAwC;IACxC,IAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;IAEtC,IAAI,KAAK,GAAG,IAAI,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC;IAC5E,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { FacetCardProps, FacetDataHooks, GetEnumFacetDataFunction } from './types';
|
|
1
|
+
import { EnumFacetDataChangedFunction, FacetCardProps, FacetDataHooks, GetEnumFacetDataFunction } from './types';
|
|
2
2
|
export interface EnumFacetHooks extends FacetDataHooks {
|
|
3
3
|
useGetFacetData: GetEnumFacetDataFunction;
|
|
4
|
+
updateVisibleValues?: EnumFacetDataChangedFunction;
|
|
4
5
|
}
|
|
5
6
|
declare const EnumFacet: ({ field, hooks, valueLabel, description, facetName, showPercent, hideIfEmpty, showSearch, showFlip, showSettings, startShowingData, dismissCallback, width, sharedWithIndices, header, }: FacetCardProps<EnumFacetHooks>) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export default EnumFacet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumFacet.d.ts","sourceRoot":"","sources":["../../../../src/components/facets/EnumFacet.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,cAAc,EACd,cAAc,EACd,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,eAAe,EAAE,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"EnumFacet.d.ts","sourceRoot":"","sources":["../../../../src/components/facets/EnumFacet.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,cAAc,EACd,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,eAAe,EAAE,wBAAwB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,4BAA4B,CAAC;CACpD;AAED,QAAA,MAAM,SAAS,GAAI,0LAoBhB,cAAc,CAAC,cAAc,CAAC,4CA6DhC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumFacet.js","sourceRoot":"","sources":["../../../../src/components/facets/EnumFacet.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"EnumFacet.js","sourceRoot":"","sources":["../../../../src/components/facets/EnumFacet.tsx"],"names":[],"mapp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,EACxB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,GACxB,GACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FacetEnumList.d.ts","sourceRoot":"","sources":["../../../../src/components/facets/FacetEnumList.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAY,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"FacetEnumList.d.ts","sourceRoot":"","sources":["../../../../src/components/facets/FacetEnumList.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAY,MAAM,SAAS,CAAC;AAUlD,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsd/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|