@databiosphere/findable-ui 37.0.0 → 38.0.0
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +18 -0
- package/lib/components/DataDictionary/components/Entities/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Entity/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Filters/components/ColumnFilterTags/columnFilterTags.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Filters/components/ColumnFilters/columnFilters.d.ts +1 -1
- package/lib/components/DataDictionary/components/Filters/components/ColumnFilters/columnFilters.js +3 -0
- package/lib/components/DataDictionary/components/Filters/filters.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Filters/stories/filters.stories.js +1 -0
- package/lib/components/DataDictionary/components/Layout/components/EntitiesLayout/entitiesLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/EntitiesLayout/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/FiltersLayout/filtersLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/FiltersLayout/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/OutlineLayout/outlineLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/OutlineLayout/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.d.ts +1 -1
- package/lib/components/DataDictionary/components/Layout/components/TitleLayout/types.d.ts +1 -1
- package/lib/components/DataDictionary/components/Table/table.js +3 -3
- package/lib/components/DataDictionary/components/Title/title.d.ts +2 -2
- package/lib/components/DataDictionary/components/Title/title.js +1 -1
- package/lib/components/DataDictionary/components/Title/title.styles.d.ts +5 -1
- package/lib/components/DataDictionary/dataDictionary.js +2 -2
- package/lib/components/Detail/components/DetailViewTable/detailViewTable.js +3 -3
- package/lib/components/Detail/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.js +2 -2
- package/lib/components/Detail/components/Table/components/TableRows/tableRows.js +2 -2
- package/lib/components/Detail/components/Table/table.js +1 -1
- package/lib/components/Export/components/ExportForm/exportForm.styles.d.ts +2 -2
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.js +3 -2
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.styles.d.ts +5 -0
- package/lib/components/Filter/components/ClearAllFilters/clearAllFilters.styles.js +5 -0
- package/lib/components/Filter/components/FilterCountChip/filterCountChip.js +1 -1
- package/lib/components/Filter/components/FilterCountChip/filterCountChip.styles.d.ts +2 -2
- package/lib/components/Filter/components/FilterLabel/filterLabel.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterMenu/filterMenu.styles.d.ts +1 -1
- package/lib/components/Filter/components/FilterTag/filterTag.styles.d.ts +2 -2
- package/lib/components/Filter/components/Filters/filters.d.ts +1 -2
- package/lib/components/Filter/components/Filters/filters.js +4 -2
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.d.ts +1 -2
- package/lib/components/Filter/components/SearchAllFilters/searchAllFilters.js +5 -3
- package/lib/components/Index/components/EntityView/components/controls/ActionButton/actionButton.d.ts +1 -0
- package/lib/components/Index/components/EntityView/components/controls/ActionButton/actionButton.js +10 -0
- package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.js +20 -0
- package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.d.ts +5 -0
- package/lib/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.js +8 -0
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.d.ts +3 -0
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.js +18 -0
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.d.ts +5 -0
- package/lib/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.js +8 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/hooks/UseViewToggle/hook.d.ts +2 -0
- package/lib/components/Index/components/{EntitiesView/hooks/UseEntitiesView → EntityView/components/controls/ViewToggle/hooks/UseViewToggle}/hook.js +3 -3
- package/lib/components/Index/components/{EntitiesView/hooks/UseEntitiesView → EntityView/components/controls/ViewToggle/hooks/UseViewToggle}/types.d.ts +1 -1
- package/lib/components/Index/{stories/index.stories.d.ts → components/EntityView/components/controls/ViewToggle/stories/viewToggle.stories.d.ts} +2 -2
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/stories/viewToggle.stories.js +6 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.js +13 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.styles.d.ts +3 -0
- package/lib/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.styles.js +8 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/constants.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/constants.js +5 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.js +15 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.styles.d.ts +10 -0
- package/lib/components/Index/components/EntityView/components/layout/Summary/summary.styles.js +17 -0
- package/lib/components/Index/components/EntityView/components/layout/Title/title.d.ts +2 -0
- package/lib/components/Index/components/EntityView/components/layout/Title/title.js +11 -0
- package/lib/components/Index/components/{Tabs → EntityView/components/navigation/Tabs}/common/utils.d.ts +2 -2
- package/lib/components/Index/components/EntityView/components/navigation/Tabs/common/utils.js +14 -0
- package/lib/components/Index/components/EntityView/components/navigation/Tabs/tabs.js +23 -0
- package/lib/components/Index/components/EntityView/components/navigation/Tabs/tabs.styles.d.ts +3 -0
- package/lib/components/Index/components/EntityView/components/navigation/Tabs/tabs.styles.js +19 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityListSlot/entityListSlot.d.ts +1 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityListSlot/entityListSlot.js +12 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.d.ts +1 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.js +14 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.d.ts +7 -0
- package/lib/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.js +16 -0
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.js +6 -2
- package/lib/components/Index/components/EntityView/components/views/ChartView/chartView.styles.d.ts +13 -0
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.styles.js +2 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/plot.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/plot.js +2 -2
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/utils.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/utils.js +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.styles.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.styles.js +3 -3
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/chart.stories.js +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/types.d.ts +2 -2
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/types.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/useChartView.d.ts +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/useChartView.js +1 -1
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/chartView.stories.js +1 -1
- package/lib/components/Index/components/EntityView/components/views/ChartView/types.d.ts +8 -0
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/utils.d.ts +2 -2
- package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/utils.js +1 -1
- package/lib/components/Index/components/EntityView/components/views/TableView/tableView.d.ts +3 -0
- package/lib/components/Index/components/{EntitiesView/components/EntityList/entityList.js → EntityView/components/views/TableView/tableView.js} +4 -4
- package/lib/components/Index/components/EntityView/context/context.d.ts +2 -0
- package/lib/components/Index/components/EntityView/context/context.js +7 -0
- package/lib/components/Index/components/EntityView/context/hook.d.ts +6 -0
- package/lib/components/Index/components/EntityView/context/hook.js +9 -0
- package/lib/components/Index/components/EntityView/context/types.d.ts +7 -0
- package/lib/components/Index/index.d.ts +1 -1
- package/lib/components/Index/index.js +34 -17
- package/lib/components/Index/index.styles.d.ts +29 -8
- package/lib/components/Index/index.styles.js +55 -7
- package/lib/components/Index/types.d.ts +0 -7
- package/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero.js +1 -1
- package/lib/components/Layout/components/Footer/components/VersionInfo/versionInfo.styles.d.ts +2 -2
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +4 -4
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenu/navigationMenu.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Slogan/slogan.styles.d.ts +1 -1
- package/lib/components/Layout/components/Outline/components/ContentsTab/contentsTab.styles.d.ts +1 -1
- package/lib/components/Layout/components/Outline/outline.styles.d.ts +2 -2
- package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.d.ts +3 -3
- package/lib/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.js +3 -3
- package/lib/components/Layout/components/Sidebar/sidebar.d.ts +2 -7
- package/lib/components/Layout/components/Sidebar/sidebar.js +8 -7
- package/lib/components/Layout/components/Sidebar/sidebar.stories.js +0 -4
- package/lib/components/Login/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Login/components/Section/components/Consent/consent.styles.d.ts +1 -1
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.d.ts +1 -1
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.d.ts +1 -1
- package/lib/components/Support/components/SupportRequest/components/Dialog/dialog.styles.d.ts +1 -1
- package/lib/components/Table/common/gridTable.styles.d.ts +1 -1
- package/lib/components/Table/common/gridTable.styles.js +10 -0
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.js +3 -2
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.d.ts +5 -0
- package/lib/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.js +8 -0
- package/lib/components/Table/components/PaginationSummary/paginationSummary.js +1 -1
- package/lib/components/Table/components/TableBody/tableBody.d.ts +3 -1
- package/lib/components/Table/components/TableBody/tableBody.js +9 -3
- package/lib/components/Table/components/TableCell/components/CodeCell/codeCell.styles.d.ts +2 -2
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.d.ts +1 -3
- package/lib/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.js +2 -2
- package/lib/components/Table/components/TableFeatures/ColumnFilter/columnFilter.styles.d.ts +1 -1
- package/lib/components/Table/components/TableFeatures/ColumnFilter/components/ColumnFilterTag/columnFilterTag.styles.d.ts +2 -2
- package/lib/components/Table/components/TableFeatures/GlobalFilter/globalFilter.d.ts +1 -1
- package/lib/components/Table/components/TableFeatures/GlobalFilter/globalFilter.js +4 -1
- package/lib/components/Table/components/TableHead/tableHead.d.ts +1 -1
- package/lib/components/Table/components/TableHead/tableHead.js +8 -10
- package/lib/components/Table/components/TableHead/types.d.ts +0 -2
- package/lib/components/Table/components/TablePagination/stories/args.d.ts +3 -0
- package/lib/components/Table/components/TablePagination/stories/args.js +9 -0
- package/lib/components/{Index/components/Hero/components/Summaries/stories/summaries.stories.d.ts → Table/components/TablePagination/stories/tablePagination.stories.d.ts} +2 -2
- package/lib/components/Table/components/TablePagination/stories/tablePagination.stories.js +9 -0
- package/lib/components/Table/components/TablePagination/tablePagination.d.ts +2 -0
- package/lib/components/Table/components/TablePagination/tablePagination.js +20 -0
- package/lib/components/Table/components/TablePagination/tablePagination.styles.d.ts +7 -0
- package/lib/components/Table/components/TablePagination/tablePagination.styles.js +10 -0
- package/lib/components/Table/components/TablePagination/types.d.ts +8 -0
- package/lib/components/Table/components/TableRow/tableRow.styles.d.ts +3 -4
- package/lib/components/Table/components/TableRow/tableRow.styles.js +1 -1
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.d.ts +1 -1
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.js +6 -6
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.styles.d.ts +5 -0
- package/lib/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.styles.js +5 -0
- package/lib/components/Table/components/TableRows/components/VirtualizedRow/virtualizedRow.d.ts +1 -1
- package/lib/components/Table/components/TableRows/tableRows.d.ts +1 -1
- package/lib/components/Table/components/TableRows/tableRows.js +2 -2
- package/lib/components/Table/components/TableToolbar/constants.d.ts +2 -0
- package/lib/components/Table/components/TableToolbar/constants.js +6 -0
- package/lib/components/Table/components/TableToolbar/tableToolbar.d.ts +1 -3
- package/lib/components/Table/components/TableToolbar/tableToolbar.js +12 -11
- package/lib/components/Table/components/TableToolbar/tableToolbar.styles.d.ts +3 -3
- package/lib/components/Table/components/TableToolbar/tableToolbar.styles.js +14 -13
- package/lib/components/Table/table.d.ts +1 -2
- package/lib/components/Table/table.js +10 -11
- package/lib/components/Table/table.styles.d.ts +14 -1
- package/lib/components/Table/table.styles.js +34 -1
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.d.ts +2 -5
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.js +4 -3
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.styles.d.ts +6 -3
- package/lib/components/common/Button/components/DropdownButton/dropdownButton.styles.js +8 -8
- package/lib/components/common/Button/components/DropdownButton/types.d.ts +4 -0
- package/lib/components/common/Button/constants.d.ts +2 -2
- package/lib/components/common/Button/constants.js +10 -0
- package/lib/components/common/Card/components/CardSecondaryTitle/cardSecondaryTitle.styles.d.ts +1 -1
- package/lib/components/common/Dot/dot.d.ts +2 -4
- package/lib/components/common/Drawer/provider/context.d.ts +2 -0
- package/lib/components/common/Drawer/provider/context.js +6 -0
- package/lib/components/common/Drawer/provider/hook.d.ts +6 -0
- package/lib/components/common/Drawer/provider/hook.js +9 -0
- package/lib/components/common/Drawer/provider/provider.d.ts +4 -0
- package/lib/components/common/Drawer/provider/provider.js +8 -0
- package/lib/components/common/Drawer/provider/types.d.ts +6 -0
- package/lib/components/common/Drawer/provider/types.js +1 -0
- package/lib/components/common/Form/components/Input/input.styles.d.ts +1 -1
- package/lib/components/common/Form/components/Select/select.styles.d.ts +1 -1
- package/lib/components/common/Form/components/UploadFile/uploadFile.styles.d.ts +1 -1
- package/lib/components/common/IconButton/iconButton.styles.d.ts +1 -1
- package/lib/components/common/Input/input.styles.d.ts +1 -1
- package/lib/components/common/OutlinedInput/components/InputAdornment/components/ClearInputAdornment/clearInputAdornment.styles.d.ts +1 -1
- package/lib/components/common/OutlinedInput/components/InputAdornment/inputAdornment.styles.d.ts +1 -1
- package/lib/components/common/Paper/components/FlatPaper/flatPaper.d.ts +3 -0
- package/lib/components/common/Paper/components/FlatPaper/flatPaper.js +5 -0
- package/lib/components/common/Paper/components/FlatPaper/flatPaper.styles.d.ts +5 -0
- package/lib/components/common/Paper/components/FlatPaper/flatPaper.styles.js +8 -0
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.d.ts +3 -0
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.js +5 -0
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.d.ts +7 -0
- package/lib/components/common/Paper/components/FluidPaper/fluidPaper.styles.js +10 -0
- package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.d.ts +3 -0
- package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.js +5 -0
- package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.styles.d.ts +5 -0
- package/lib/components/common/Paper/components/RoundedPaper/roundedPaper.styles.js +9 -0
- package/lib/components/common/Section/components/CollapsableSection/collapsableSection.styles.d.ts +1 -1
- package/lib/components/common/Tabs/tabs.js +1 -1
- package/lib/components/common/Tabs/tabs.styles.d.ts +1 -1
- package/lib/components/common/Title/title.d.ts +2 -7
- package/lib/components/common/Title/title.js +9 -5
- package/lib/components/common/Title/title.styles.d.ts +1 -1
- package/lib/components/common/Title/title.styles.js +3 -1
- package/lib/config/entities.d.ts +14 -7
- package/lib/config/utils.js +0 -1
- package/lib/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/hook.js +1 -1
- package/lib/hooks/UseLayoutSpacing/types.js +1 -0
- package/lib/hooks/useSummary.d.ts +2 -8
- package/lib/hooks/useSummary.js +19 -20
- package/lib/routes/constants.d.ts +1 -0
- package/lib/routes/constants.js +1 -0
- package/lib/styles/common/constants/colorMixes.d.ts +2 -0
- package/lib/styles/common/constants/colorMixes.js +2 -0
- package/lib/styles/common/mui/paper.js +0 -1
- package/lib/styles/common/mui/toggleButton.d.ts +9 -0
- package/lib/styles/common/mui/toggleButton.js +18 -0
- package/lib/styles/common/mui/typography.js +1 -0
- package/lib/tests/testIds.d.ts +1 -1
- package/lib/tests/testIds.js +1 -1
- package/lib/theme/common/components.js +64 -59
- package/lib/views/ExploreView/exploreView.js +10 -59
- package/package.json +2 -2
- package/src/components/DataDictionary/components/Entities/types.ts +1 -1
- package/src/components/DataDictionary/components/Entity/entity.styles.ts +1 -1
- package/src/components/DataDictionary/components/Entity/types.ts +1 -1
- package/src/components/DataDictionary/components/Filters/components/ColumnFilters/columnFilters.tsx +5 -1
- package/src/components/DataDictionary/components/Filters/stories/filters.stories.tsx +1 -0
- package/src/components/DataDictionary/components/Layout/components/EntitiesLayout/entitiesLayout.styles.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/EntitiesLayout/types.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/FiltersLayout/filtersLayout.styles.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/FiltersLayout/types.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/OutlineLayout/outlineLayout.styles.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/OutlineLayout/types.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/TitleLayout/titleLayout.styles.ts +1 -1
- package/src/components/DataDictionary/components/Layout/components/TitleLayout/types.ts +1 -1
- package/src/components/DataDictionary/components/Table/table.tsx +4 -7
- package/src/components/DataDictionary/components/Title/title.tsx +5 -3
- package/src/components/DataDictionary/dataDictionary.tsx +2 -2
- package/src/components/Detail/components/DetailViewTable/detailViewTable.tsx +3 -3
- package/src/components/Detail/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.tsx +3 -3
- package/src/components/Detail/components/Table/components/TableRows/tableRows.tsx +3 -3
- package/src/components/Detail/components/Table/table.tsx +1 -1
- package/src/components/Filter/components/ClearAllFilters/clearAllFilters.styles.ts +6 -0
- package/src/components/Filter/components/ClearAllFilters/clearAllFilters.tsx +6 -3
- package/src/components/Filter/components/FilterCountChip/filterCountChip.tsx +1 -0
- package/src/components/Filter/components/Filters/filters.tsx +3 -3
- package/src/components/Filter/components/SearchAllFilters/searchAllFilters.tsx +4 -4
- package/src/components/Index/components/EntityView/components/controls/ActionButton/actionButton.tsx +12 -0
- package/src/components/Index/components/EntityView/components/controls/ExportButton/exportButton.styles.ts +9 -0
- package/src/components/Index/components/EntityView/components/controls/ExportButton/exportButton.tsx +39 -0
- package/src/components/Index/components/EntityView/components/controls/FilterButton/filterButton.styles.ts +9 -0
- package/src/components/Index/components/EntityView/components/controls/FilterButton/filterButton.tsx +39 -0
- package/src/components/Index/components/EntityView/components/controls/ViewToggle/hooks/UseViewToggle/hook.ts +15 -0
- package/src/components/Index/components/{EntitiesView/hooks/UseEntitiesView → EntityView/components/controls/ViewToggle/hooks/UseViewToggle}/types.ts +1 -1
- package/src/components/Index/components/EntityView/components/controls/ViewToggle/stories/viewToggle.stories.tsx +12 -0
- package/src/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.styles.ts +9 -0
- package/src/components/Index/components/EntityView/components/controls/ViewToggle/viewToggle.tsx +24 -0
- package/src/components/Index/components/EntityView/components/layout/Summary/constants.ts +7 -0
- package/src/components/Index/components/EntityView/components/layout/Summary/summary.styles.ts +19 -0
- package/src/components/Index/components/EntityView/components/layout/Summary/summary.tsx +34 -0
- package/src/components/Index/components/EntityView/components/layout/Title/title.tsx +16 -0
- package/src/components/Index/components/EntityView/components/navigation/Tabs/common/utils.ts +25 -0
- package/src/components/Index/components/EntityView/components/navigation/Tabs/tabs.styles.ts +20 -0
- package/src/components/Index/components/EntityView/components/navigation/Tabs/tabs.tsx +28 -0
- package/src/components/Index/components/EntityView/components/slots/EntityListSlot/entityListSlot.tsx +14 -0
- package/src/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.styles.ts +17 -0
- package/src/components/Index/components/EntityView/components/slots/EntityViewSlot/entityViewSlot.tsx +19 -0
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.styles.ts +2 -1
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.tsx +10 -2
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/plot.ts +3 -3
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/utils.ts +2 -2
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.styles.ts +3 -3
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/chart.stories.tsx +1 -1
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/types.ts +2 -2
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/types.ts +1 -1
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/hooks/UseChartView/useChartView.ts +2 -2
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/chartView.stories.tsx +1 -1
- package/src/components/Index/components/EntityView/components/views/ChartView/types.ts +9 -0
- package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/utils.ts +3 -3
- package/src/components/Index/components/{EntitiesView/components/EntityList/entityList.tsx → EntityView/components/views/TableView/tableView.tsx} +4 -4
- package/src/components/Index/components/EntityView/context/context.ts +9 -0
- package/src/components/Index/components/EntityView/context/hook.ts +11 -0
- package/src/components/Index/components/EntityView/context/types.ts +11 -0
- package/src/components/Index/index.styles.ts +59 -11
- package/src/components/Index/index.tsx +63 -41
- package/src/components/Index/types.ts +0 -7
- package/src/components/Layout/components/BackPage/components/BackPageHero/backPageHero.tsx +1 -1
- package/src/components/Layout/components/Sidebar/components/SidebarDrawer/sidebarDrawer.tsx +8 -8
- package/src/components/Layout/components/Sidebar/sidebar.stories.tsx +0 -4
- package/src/components/Layout/components/Sidebar/sidebar.tsx +10 -18
- package/src/components/Table/common/gridTable.styles.ts +10 -0
- package/src/components/Table/components/DownloadEntityResults/downloadEntityResults.styles.ts +9 -0
- package/src/components/Table/components/DownloadEntityResults/downloadEntityResults.tsx +6 -4
- package/src/components/Table/components/PaginationSummary/paginationSummary.tsx +1 -1
- package/src/components/Table/components/TableBody/tableBody.tsx +11 -3
- package/src/components/Table/components/TableCell/components/CollapsableCell/collapsableCell.tsx +1 -10
- package/src/components/Table/components/TableFeatures/GlobalFilter/globalFilter.tsx +6 -2
- package/src/components/Table/components/TableHead/tableHead.tsx +37 -44
- package/src/components/Table/components/TableHead/types.ts +0 -2
- package/src/components/Table/components/TablePagination/stories/args.ts +12 -0
- package/src/components/Table/components/TablePagination/stories/tablePagination.stories.tsx +15 -0
- package/src/components/Table/components/TablePagination/tablePagination.styles.ts +11 -0
- package/src/components/Table/components/TablePagination/tablePagination.tsx +47 -0
- package/src/components/Table/components/TablePagination/types.ts +8 -0
- package/src/components/Table/components/TableRow/tableRow.styles.ts +3 -3
- package/src/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.styles.ts +6 -0
- package/src/components/Table/components/TableRows/components/CollapsableRows/collapsableRows.tsx +9 -10
- package/src/components/Table/components/TableRows/components/VirtualizedRow/virtualizedRow.tsx +1 -1
- package/src/components/Table/components/TableRows/tableRows.tsx +4 -4
- package/src/components/Table/components/TableToolbar/constants.ts +8 -0
- package/src/components/Table/components/TableToolbar/tableToolbar.styles.ts +14 -14
- package/src/components/Table/components/TableToolbar/tableToolbar.tsx +21 -27
- package/src/components/Table/table.styles.ts +35 -1
- package/src/components/Table/table.tsx +10 -14
- package/src/components/common/Button/components/DropdownButton/dropdownButton.styles.ts +10 -10
- package/src/components/common/Button/components/DropdownButton/dropdownButton.tsx +8 -12
- package/src/components/common/Button/components/DropdownButton/types.ts +5 -0
- package/src/components/common/Button/constants.ts +12 -2
- package/src/components/common/Dot/dot.tsx +2 -5
- package/src/components/common/Drawer/provider/context.ts +8 -0
- package/src/components/common/Drawer/provider/hook.ts +11 -0
- package/src/components/common/Drawer/provider/provider.tsx +20 -0
- package/src/components/common/Drawer/provider/types.ts +10 -0
- package/src/components/common/Paper/components/FlatPaper/flatPaper.styles.ts +9 -0
- package/src/components/common/Paper/components/FlatPaper/flatPaper.tsx +10 -0
- package/src/components/common/Paper/components/FluidPaper/fluidPaper.styles.ts +11 -0
- package/src/components/common/Paper/components/FluidPaper/fluidPaper.tsx +10 -0
- package/src/components/common/Paper/components/RoundedPaper/roundedPaper.styles.ts +10 -0
- package/src/components/common/Paper/components/RoundedPaper/roundedPaper.tsx +10 -0
- package/src/components/common/Tabs/tabs.tsx +1 -1
- package/src/components/common/Title/title.styles.ts +3 -1
- package/src/components/common/Title/title.tsx +20 -28
- package/src/config/entities.ts +15 -7
- package/src/config/utils.ts +0 -1
- package/src/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/hook.ts +1 -1
- package/src/hooks/useSummary.ts +20 -27
- package/src/routes/constants.ts +1 -0
- package/src/styles/common/constants/colorMixes.ts +2 -0
- package/src/styles/common/mui/paper.ts +0 -1
- package/src/styles/common/mui/toggleButton.ts +27 -0
- package/src/styles/common/mui/typography.ts +1 -0
- package/src/tests/testIds.ts +1 -1
- package/src/theme/common/components.ts +64 -59
- package/src/views/ExploreView/exploreView.tsx +10 -100
- package/tests/chart.test.tsx +3 -3
- package/tests/chartView.test.tsx +2 -2
- package/tests/viewToggle.test.tsx +56 -0
- package/types/data-explorer-ui.d.ts +0 -7
- package/lib/components/DataDictionary/components/Table/table.styles.d.ts +0 -3
- package/lib/components/DataDictionary/components/Table/table.styles.js +0 -5
- package/lib/components/Index/components/EntitiesView/components/ChartView/chartView.styles.d.ts +0 -13
- package/lib/components/Index/components/EntitiesView/components/ChartView/types.d.ts +0 -8
- package/lib/components/Index/components/EntitiesView/components/EntityList/entityList.d.ts +0 -3
- package/lib/components/Index/components/EntitiesView/entitiesView.d.ts +0 -2
- package/lib/components/Index/components/EntitiesView/entitiesView.js +0 -15
- package/lib/components/Index/components/EntitiesView/entitiesView.styles.d.ts +0 -3
- package/lib/components/Index/components/EntitiesView/entitiesView.styles.js +0 -20
- package/lib/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.d.ts +0 -2
- package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.d.ts +0 -8
- package/lib/components/Index/components/EntitiesView/stories/entitiesView.stories.js +0 -50
- package/lib/components/Index/components/EntitiesView/types.d.ts +0 -8
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.d.ts +0 -1
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.js +0 -13
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.d.ts +0 -3
- package/lib/components/Index/components/Hero/components/ExportButton/exportButton.styles.js +0 -13
- package/lib/components/Index/components/Hero/components/Summaries/stories/summaries.stories.js +0 -14
- package/lib/components/Index/components/Hero/components/Summaries/summaries.d.ts +0 -9
- package/lib/components/Index/components/Hero/components/Summaries/summaries.js +0 -12
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.d.ts +0 -7
- package/lib/components/Index/components/Hero/components/Summaries/summaries.styles.js +0 -26
- package/lib/components/Index/components/Hero/hero.d.ts +0 -11
- package/lib/components/Index/components/Hero/hero.js +0 -12
- package/lib/components/Index/components/Hero/hero.styles.d.ts +0 -16
- package/lib/components/Index/components/Hero/hero.styles.js +0 -44
- package/lib/components/Index/components/Hero/stories/hero.stories.d.ts +0 -6
- package/lib/components/Index/components/Hero/stories/hero.stories.js +0 -16
- package/lib/components/Index/components/Tabs/common/utils.js +0 -19
- package/lib/components/Index/components/Tabs/tabs.js +0 -20
- package/lib/components/Index/stories/index.stories.js +0 -17
- package/lib/components/Table/components/Pagination/pagination.d.ts +0 -9
- package/lib/components/Table/components/Pagination/pagination.js +0 -19
- package/lib/components/Table/components/Pagination/pagination.stories.d.ts +0 -28
- package/lib/components/Table/components/Pagination/pagination.stories.js +0 -24
- package/lib/components/Table/components/Pagination/pagination.styles.d.ts +0 -4
- package/lib/components/Table/components/Pagination/pagination.styles.js +0 -15
- package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.d.ts +0 -3
- package/lib/components/Table/components/TableBody/hooks/virtualizer/constants.js +0 -3
- package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.d.ts +0 -8
- package/lib/components/Table/components/TableBody/hooks/virtualizer/hook.js +0 -18
- package/lib/components/Table/components/TableBody/hooks/virtualizer/types.d.ts +0 -4
- package/src/components/DataDictionary/components/Table/table.styles.ts +0 -6
- package/src/components/Index/components/EntitiesView/components/ChartView/types.ts +0 -9
- package/src/components/Index/components/EntitiesView/entitiesView.styles.ts +0 -21
- package/src/components/Index/components/EntitiesView/entitiesView.tsx +0 -30
- package/src/components/Index/components/EntitiesView/hooks/UseEntitiesView/hook.ts +0 -15
- package/src/components/Index/components/EntitiesView/stories/entitiesView.stories.tsx +0 -76
- package/src/components/Index/components/EntitiesView/types.ts +0 -9
- package/src/components/Index/components/Hero/components/ExportButton/exportButton.styles.ts +0 -14
- package/src/components/Index/components/Hero/components/ExportButton/exportButton.tsx +0 -26
- package/src/components/Index/components/Hero/components/Summaries/stories/summaries.stories.tsx +0 -20
- package/src/components/Index/components/Hero/components/Summaries/summaries.styles.ts +0 -31
- package/src/components/Index/components/Hero/components/Summaries/summaries.tsx +0 -35
- package/src/components/Index/components/Hero/hero.styles.ts +0 -55
- package/src/components/Index/components/Hero/hero.tsx +0 -40
- package/src/components/Index/components/Hero/stories/hero.stories.tsx +0 -22
- package/src/components/Index/components/Tabs/common/utils.ts +0 -35
- package/src/components/Index/components/Tabs/tabs.tsx +0 -23
- package/src/components/Index/stories/index.stories.tsx +0 -23
- package/src/components/Table/components/Pagination/pagination.stories.tsx +0 -30
- package/src/components/Table/components/Pagination/pagination.styles.ts +0 -16
- package/src/components/Table/components/Pagination/pagination.tsx +0 -50
- package/src/components/Table/components/TableBody/hooks/virtualizer/constants.ts +0 -3
- package/src/components/Table/components/TableBody/hooks/virtualizer/hook.ts +0 -23
- package/src/components/Table/components/TableBody/hooks/virtualizer/types.ts +0 -5
- package/tests/entitiesView.test.tsx +0 -32
- /package/lib/components/Index/components/{EntitiesView/hooks/UseEntitiesView → EntityView/components/controls/ViewToggle/hooks/UseViewToggle}/types.js +0 -0
- /package/lib/components/Index/components/{Tabs → EntityView/components/navigation/Tabs}/tabs.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/chartView.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/constants.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/constants.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/constants.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/constants.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/args.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/args.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/chart.stories.d.ts +0 -0
- /package/lib/components/{DataDictionary/hooks/UseLayoutSpacing → Index/components/EntityView/components/views/ChartView/components/Chart}/types.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/constants.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/constants.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/ChartView/components/Chart → EntityView/components/views/ChartView/hooks/UseChartView}/types.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/args.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/args.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/chartView.stories.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/ChartView/hooks/UseChartView → EntityView/components/views/ChartView}/types.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/EntityList → EntityView/components/views/TableView}/types.d.ts +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/ChartView → EntityView/components/views/TableView}/types.js +0 -0
- /package/lib/components/Index/components/{EntitiesView/components/EntityList → EntityView/context}/types.js +0 -0
- /package/lib/components/{Index/components/EntitiesView → Table/components/TablePagination}/types.js +0 -0
- /package/lib/components/{Table/components/TableBody/hooks/virtualizer → common/Button/components/DropdownButton}/types.js +0 -0
- /package/lib/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/hook.d.ts +0 -0
- /package/lib/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/types.d.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/barX/constants.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/chart.tsx +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/constants.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/components/Chart/stories/args.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/constants.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components → EntityView/components/views}/ChartView/stories/args.ts +0 -0
- /package/src/components/Index/components/{EntitiesView/components/EntityList → EntityView/components/views/TableView}/types.ts +0 -0
- /package/src/{components/DataDictionary/hooks → hooks}/UseLayoutSpacing/types.ts +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Typography } from "@mui/material";
|
|
2
|
+
import React, { Fragment } from "react";
|
|
3
|
+
import { useSummary } from "../../../../../../../hooks/useSummary";
|
|
4
|
+
import { TYPOGRAPHY_PROPS } from "../../../../../../../styles/common/mui/typography";
|
|
5
|
+
import { BaseComponentProps } from "../../../../../../types";
|
|
6
|
+
import { GRID_PROPS } from "./constants";
|
|
7
|
+
import { StyledDot, StyledGrid } from "./summary.styles";
|
|
8
|
+
|
|
9
|
+
export const Summary = ({
|
|
10
|
+
className,
|
|
11
|
+
}: BaseComponentProps): JSX.Element | null => {
|
|
12
|
+
const { summaries } = useSummary() || {};
|
|
13
|
+
|
|
14
|
+
if (!summaries) return null;
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<StyledGrid {...GRID_PROPS} className={className}>
|
|
18
|
+
{summaries.map(([count, label], i) => (
|
|
19
|
+
<Fragment key={i}>
|
|
20
|
+
{i !== 0 && <StyledDot />}
|
|
21
|
+
<Typography variant={TYPOGRAPHY_PROPS.VARIANT.TEXT_BODY_SMALL_500}>
|
|
22
|
+
{count}
|
|
23
|
+
</Typography>
|
|
24
|
+
<Typography
|
|
25
|
+
color={TYPOGRAPHY_PROPS.COLOR.INK_LIGHT}
|
|
26
|
+
variant={TYPOGRAPHY_PROPS.VARIANT.TEXT_BODY_SMALL_400}
|
|
27
|
+
>
|
|
28
|
+
{label}
|
|
29
|
+
</Typography>
|
|
30
|
+
</Fragment>
|
|
31
|
+
))}
|
|
32
|
+
</StyledGrid>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useConfig } from "../../../../../../../hooks/useConfig";
|
|
3
|
+
import { Title as CommonTitle } from "../../../../../../common/Title/title";
|
|
4
|
+
import { BaseComponentProps } from "../../../../../../types";
|
|
5
|
+
|
|
6
|
+
export const Title = ({
|
|
7
|
+
className,
|
|
8
|
+
}: BaseComponentProps): JSX.Element | null => {
|
|
9
|
+
const { entityConfig } = useConfig();
|
|
10
|
+
const { ui } = entityConfig;
|
|
11
|
+
const { title } = ui || {};
|
|
12
|
+
|
|
13
|
+
if (!title) return null;
|
|
14
|
+
|
|
15
|
+
return <CommonTitle className={className}>{title}</CommonTitle>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EntityConfig } from "../../../../../../../../config/entities";
|
|
2
|
+
import { Tab } from "../../../../../../../common/Tabs/tabs";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Returns entity list tabs list for the tabs component.
|
|
6
|
+
* @param entities - Entities config.
|
|
7
|
+
* @returns tabs list.
|
|
8
|
+
*/
|
|
9
|
+
export function getEntityListTabs(entities: EntityConfig[]): Tab[] {
|
|
10
|
+
return entities.map(
|
|
11
|
+
({
|
|
12
|
+
annotation,
|
|
13
|
+
label,
|
|
14
|
+
route,
|
|
15
|
+
tabIcon: icon,
|
|
16
|
+
tabIconPosition: iconPosition,
|
|
17
|
+
}) => ({
|
|
18
|
+
annotation,
|
|
19
|
+
icon,
|
|
20
|
+
iconPosition,
|
|
21
|
+
label,
|
|
22
|
+
value: route,
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { Tabs } from "../../../../../../common/Tabs/tabs";
|
|
3
|
+
|
|
4
|
+
export const StyledTabs = styled(Tabs)`
|
|
5
|
+
box-shadow: none;
|
|
6
|
+
flex: 1;
|
|
7
|
+
|
|
8
|
+
.MuiTabs-scroller {
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.MuiTabs-indicator {
|
|
13
|
+
z-index: 4; /* required; positions indicator above list view hero box-shadow */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.MuiTab-root {
|
|
17
|
+
line-height: 32px;
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Router from "next/router";
|
|
2
|
+
import React, { useCallback, useMemo } from "react";
|
|
3
|
+
import { useConfig } from "../../../../../../../hooks/useConfig";
|
|
4
|
+
import { useExploreState } from "../../../../../../../hooks/useExploreState";
|
|
5
|
+
import { TabValue } from "../../../../../../common/Tabs/tabs";
|
|
6
|
+
import { getEntityListTabs } from "./common/utils";
|
|
7
|
+
import { StyledTabs } from "./tabs.styles";
|
|
8
|
+
|
|
9
|
+
export const Tabs = (): JSX.Element | null => {
|
|
10
|
+
const { config, entityConfig } = useConfig();
|
|
11
|
+
const { exploreState } = useExploreState();
|
|
12
|
+
const { entities } = config;
|
|
13
|
+
const { tabValue } = exploreState;
|
|
14
|
+
const { ui } = entityConfig;
|
|
15
|
+
const { enableTabs } = ui || {};
|
|
16
|
+
|
|
17
|
+
// Builds the tabs.
|
|
18
|
+
const tabs = useMemo(() => getEntityListTabs(entities), [entities]);
|
|
19
|
+
|
|
20
|
+
const onTabChange = useCallback(async (tabValue: TabValue): Promise<void> => {
|
|
21
|
+
await Router.push(`/${tabValue}`);
|
|
22
|
+
}, []);
|
|
23
|
+
|
|
24
|
+
// Returns null if tabs are disabled.
|
|
25
|
+
if (!enableTabs) return null;
|
|
26
|
+
|
|
27
|
+
return <StyledTabs onTabChange={onTabChange} tabs={tabs} value={tabValue} />;
|
|
28
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useConfig } from "../../../../../../../hooks/useConfig";
|
|
3
|
+
import { ComponentCreator } from "../../../../../../ComponentCreator/ComponentCreator";
|
|
4
|
+
|
|
5
|
+
export const EntityListSlot = (): JSX.Element | null => {
|
|
6
|
+
const { entityConfig } = useConfig();
|
|
7
|
+
const { ui } = entityConfig;
|
|
8
|
+
const { slots } = ui || {};
|
|
9
|
+
const { entityListSlot } = slots || {};
|
|
10
|
+
|
|
11
|
+
if (!entityListSlot) return null;
|
|
12
|
+
|
|
13
|
+
return <ComponentCreator components={entityListSlot} response={undefined} />;
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
|
+
import { mediaTabletDown } from "../../../../../../../styles/common/mixins/breakpoints";
|
|
4
|
+
|
|
5
|
+
export const StyledGrid = styled(Grid)`
|
|
6
|
+
display: grid;
|
|
7
|
+
gap: 16px;
|
|
8
|
+
margin: 16px;
|
|
9
|
+
|
|
10
|
+
&:empty {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
${mediaTabletDown} {
|
|
15
|
+
margin: 16px 0;
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useConfig } from "../../../../../../../hooks/useConfig";
|
|
3
|
+
import { ComponentCreator } from "../../../../../../ComponentCreator/ComponentCreator";
|
|
4
|
+
import { StyledGrid } from "./entityViewSlot.styles";
|
|
5
|
+
|
|
6
|
+
export const EntityViewSlot = (): JSX.Element | null => {
|
|
7
|
+
const { entityConfig } = useConfig();
|
|
8
|
+
const { ui } = entityConfig;
|
|
9
|
+
const { slots } = ui || {};
|
|
10
|
+
const { entityViewSlot } = slots || {};
|
|
11
|
+
|
|
12
|
+
if (!entityViewSlot) return null;
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<StyledGrid>
|
|
16
|
+
<ComponentCreator components={entityViewSlot} response={undefined} />
|
|
17
|
+
</StyledGrid>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import { Grid } from "@mui/material";
|
|
3
|
-
import { GridPaperSection } from "
|
|
3
|
+
import { GridPaperSection } from "../../../../../../common/Section/section.styles";
|
|
4
4
|
|
|
5
5
|
export const StyledGrid = styled(Grid)`
|
|
6
6
|
display: grid;
|
|
7
7
|
gap: inherit;
|
|
8
|
+
overflow-y: auto;
|
|
8
9
|
`;
|
|
9
10
|
|
|
10
11
|
export const StyledGridPaperSection = styled(GridPaperSection)`
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Typography } from "@mui/material";
|
|
2
2
|
import React, { Fragment } from "react";
|
|
3
|
-
import { TYPOGRAPHY_PROPS } from "
|
|
4
|
-
import {
|
|
3
|
+
import { TYPOGRAPHY_PROPS } from "../../../../../../../styles/common/mui/typography";
|
|
4
|
+
import {
|
|
5
|
+
Loading,
|
|
6
|
+
LOADING_PANEL_STYLE,
|
|
7
|
+
} from "../../../../../../Loading/loading";
|
|
8
|
+
import { StyledToolbar } from "../../../../../../Table/components/TableToolbar/tableToolbar.styles";
|
|
9
|
+
import { ViewToggle } from "../../controls/ViewToggle/viewToggle";
|
|
5
10
|
import { StyledGrid, StyledGridPaperSection } from "./chartView.styles";
|
|
6
11
|
import { Chart } from "./components/Chart/chart";
|
|
7
12
|
import { useChartView } from "./hooks/UseChartView/useChartView";
|
|
@@ -18,6 +23,9 @@ export const ChartView = ({
|
|
|
18
23
|
if (selectCategoryViews.length === 0) return null;
|
|
19
24
|
return (
|
|
20
25
|
<Fragment>
|
|
26
|
+
<StyledToolbar>
|
|
27
|
+
<ViewToggle />
|
|
28
|
+
</StyledToolbar>
|
|
21
29
|
<Loading
|
|
22
30
|
appear={false}
|
|
23
31
|
autoPosition={false}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Plot from "@observablehq/plot";
|
|
2
2
|
import { PlotOptions } from "@observablehq/plot";
|
|
3
|
-
import { SelectCategoryValueView } from "
|
|
4
|
-
import { PALETTE } from "
|
|
5
|
-
import { formatCountSize } from "
|
|
3
|
+
import { SelectCategoryValueView } from "../../../../../../../../../../common/entities";
|
|
4
|
+
import { PALETTE } from "../../../../../../../../../../styles/common/constants/palette";
|
|
5
|
+
import { formatCountSize } from "../../../../../../../../../../utils/formatCountSize";
|
|
6
6
|
import { DATA_FIELD, MARGIN_LEFT, TEXT_PADDING } from "./constants";
|
|
7
7
|
import {
|
|
8
8
|
getCategoryTotalCount,
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
RenderFunction,
|
|
6
6
|
ScaleFunctions,
|
|
7
7
|
} from "@observablehq/plot";
|
|
8
|
-
import { SelectCategoryValueView } from "
|
|
9
|
-
import { PALETTE } from "
|
|
8
|
+
import { SelectCategoryValueView } from "../../../../../../../../../../common/entities";
|
|
9
|
+
import { PALETTE } from "../../../../../../../../../../styles/common/constants/palette";
|
|
10
10
|
import {
|
|
11
11
|
BAR_GAP,
|
|
12
12
|
BAR_HEIGHT,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
|
-
import { mediaTabletDown } from "
|
|
3
|
-
import { textBodySmall400 } from "
|
|
4
|
-
import { BarX } from "
|
|
2
|
+
import { mediaTabletDown } from "../../../../../../../../../styles/common/mixins/breakpoints";
|
|
3
|
+
import { textBodySmall400 } from "../../../../../../../../../styles/common/mixins/fonts";
|
|
4
|
+
import { BarX } from "../../../../../../../../Plot/components/BarX/barX";
|
|
5
5
|
|
|
6
6
|
export const StyledBarX = styled(BarX)`
|
|
7
7
|
${textBodySmall400};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box } from "@mui/material";
|
|
2
2
|
import { Meta, StoryObj } from "@storybook/react";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { PALETTE } from "
|
|
4
|
+
import { PALETTE } from "../../../../../../../../../../styles/common/constants/palette";
|
|
5
5
|
import { Chart } from "../chart";
|
|
6
6
|
import { CHART_ARGS, SELECT_CHART_ARGS } from "./args";
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PlotOptions } from "@observablehq/plot";
|
|
2
|
-
import { SelectCategoryValueView } from "
|
|
3
|
-
import { TestIdProps } from "
|
|
2
|
+
import { SelectCategoryValueView } from "../../../../../../../../../common/entities";
|
|
3
|
+
import { TestIdProps } from "../../../../../../../../types";
|
|
4
4
|
|
|
5
5
|
export interface ChartProps
|
|
6
6
|
extends Required<Pick<PlotOptions, "width">>,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
|
-
import { SelectCategoryView } from "
|
|
2
|
+
import { SelectCategoryView } from "../../../../../../../../../common/entities";
|
|
3
3
|
|
|
4
4
|
export interface UseChartView {
|
|
5
5
|
chartViewRef: RefObject<HTMLDivElement> | null;
|
|
@@ -2,8 +2,8 @@ import { useMemo, useRef } from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
getBorderBoxSize,
|
|
4
4
|
useResizeObserver,
|
|
5
|
-
} from "
|
|
6
|
-
import { CategoryFilter } from "
|
|
5
|
+
} from "../../../../../../../../../hooks/useResizeObserver";
|
|
6
|
+
import { CategoryFilter } from "../../../../../../../../Filter/components/Filters/filters";
|
|
7
7
|
import { getSelectCategoryViews, getSVGWidth } from "../../utils";
|
|
8
8
|
import { UseChartView } from "./types";
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { GridPaper } from "
|
|
3
|
+
import { GridPaper } from "../../../../../../../common/Paper/paper.styles";
|
|
4
4
|
import { ChartView } from "../chartView";
|
|
5
5
|
import { CHART_VIEW_ARGS } from "./args";
|
|
6
6
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityConfig } from "../../../../../../../config/entities";
|
|
2
|
+
import { CategoryFilter } from "../../../../../../Filter/components/Filters/filters";
|
|
3
|
+
import { TestIdProps } from "../../../../../../types";
|
|
4
|
+
|
|
5
|
+
export interface ChartViewProps extends TestIdProps {
|
|
6
|
+
categoryFilters: CategoryFilter[];
|
|
7
|
+
entityName: EntityConfig["label"];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isSelectCategoryView } from "
|
|
2
|
-
import { SelectCategoryView } from "
|
|
3
|
-
import { CategoryFilter } from "
|
|
1
|
+
import { isSelectCategoryView } from "../../../../../../../common/categories/views/select/typeGuards";
|
|
2
|
+
import { SelectCategoryView } from "../../../../../../../common/entities";
|
|
3
|
+
import { CategoryFilter } from "../../../../../../Filter/components/Filters/filters";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Returns the set of select category views that have chart view enabled.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RowData } from "@tanstack/react-table";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { useConfig } from "
|
|
4
|
-
import { useExploreState } from "
|
|
5
|
-
import { TableCreator } from "
|
|
3
|
+
import { useConfig } from "../../../../../../../hooks/useConfig";
|
|
4
|
+
import { useExploreState } from "../../../../../../../hooks/useExploreState";
|
|
5
|
+
import { TableCreator } from "../../../../../../TableCreator/tableCreator";
|
|
6
6
|
import { EntityListProps } from "./types";
|
|
7
7
|
|
|
8
|
-
export const
|
|
8
|
+
export const TableView = <T extends RowData>({
|
|
9
9
|
entityListType,
|
|
10
10
|
loading,
|
|
11
11
|
table,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createContext } from "react";
|
|
2
|
+
import { VIEW_MODE } from "../components/controls/ViewToggle/hooks/UseViewToggle/types";
|
|
3
|
+
import { EntityViewContextProps } from "./types";
|
|
4
|
+
|
|
5
|
+
export const EntityViewContext = createContext<EntityViewContextProps>({
|
|
6
|
+
onChange: () => {},
|
|
7
|
+
viewMode: VIEW_MODE.TABLE,
|
|
8
|
+
viewStatus: { disabled: false },
|
|
9
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { EntityViewContext } from "./context";
|
|
3
|
+
import { EntityViewContextProps } from "./types";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Returns entity view context.
|
|
7
|
+
* @returns entity view context.
|
|
8
|
+
*/
|
|
9
|
+
export const useEntityView = (): EntityViewContextProps => {
|
|
10
|
+
return useContext(EntityViewContext);
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ToggleButtonGroupProps } from "@mui/material";
|
|
2
|
+
import {
|
|
3
|
+
VIEW_MODE,
|
|
4
|
+
ViewStatus,
|
|
5
|
+
} from "../components/controls/ViewToggle/hooks/UseViewToggle/types";
|
|
6
|
+
|
|
7
|
+
export interface EntityViewContextProps {
|
|
8
|
+
onChange: ToggleButtonGroupProps["onChange"];
|
|
9
|
+
viewMode: VIEW_MODE;
|
|
10
|
+
viewStatus: ViewStatus;
|
|
11
|
+
}
|
|
@@ -1,19 +1,67 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from "@mui/material";
|
|
3
|
+
import { LayoutSpacing } from "../../hooks/UseLayoutSpacing/types";
|
|
4
|
+
import { PALETTE } from "../../styles/common/constants/palette";
|
|
5
|
+
import { mediaTabletDown } from "../../styles/common/mixins/breakpoints";
|
|
6
|
+
import { FluidPaper } from "../common/Paper/components/FluidPaper/fluidPaper";
|
|
3
7
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const Index = styled("div")<Props>`
|
|
8
|
+
export const StyledGridEntityView = styled(Grid)<LayoutSpacing>`
|
|
9
|
+
align-content: flex-start;
|
|
9
10
|
display: grid;
|
|
10
11
|
flex: 1;
|
|
12
|
+
gap: 0;
|
|
13
|
+
height: 100%;
|
|
14
|
+
max-height: 100vh;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
padding-top: ${({ top }) => top}px;
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
export const StyledGridEntityLayout = styled(Grid)`
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 16px;
|
|
22
|
+
min-height: 56px;
|
|
23
|
+
padding: 0 16px;
|
|
24
|
+
position: relative; /* required; positions box-shadow */
|
|
25
|
+
|
|
26
|
+
&:after {
|
|
27
|
+
content: "";
|
|
28
|
+
bottom: 0;
|
|
29
|
+
box-shadow: inset 0 -1px 0 0 ${PALETTE.SMOKE_MAIN};
|
|
30
|
+
height: 1px;
|
|
31
|
+
left: 0;
|
|
32
|
+
position: absolute;
|
|
33
|
+
width: 100%;
|
|
34
|
+
z-index: 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:empty {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.MuiGrid-root {
|
|
42
|
+
align-items: center;
|
|
43
|
+
|
|
44
|
+
&:empty {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
export const StyledFluidPaper = styled(FluidPaper)`
|
|
51
|
+
background-color: ${PALETTE.SMOKE_MAIN};
|
|
52
|
+
display: grid;
|
|
53
|
+
gap: 1px;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
position: relative; /* required; positions table loading indicator */
|
|
56
|
+
`;
|
|
57
|
+
|
|
58
|
+
export const StyledGridEntityList = styled(Grid)`
|
|
59
|
+
display: grid;
|
|
11
60
|
gap: 16px;
|
|
12
|
-
margin
|
|
13
|
-
|
|
14
|
-
place-content: flex-start stretch;
|
|
61
|
+
margin: 16px;
|
|
62
|
+
overflow: hidden;
|
|
15
63
|
|
|
16
|
-
${
|
|
17
|
-
|
|
64
|
+
${mediaTabletDown} {
|
|
65
|
+
margin: 16px 0;
|
|
18
66
|
}
|
|
19
67
|
`;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
+
import { Grid } from "@mui/material";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { VIEW_MODE } from "./components/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { useLayoutSpacing } from "../../hooks/UseLayoutSpacing/hook";
|
|
4
|
+
import { ActionButton } from "./components/EntityView/components/controls/ActionButton/actionButton";
|
|
5
|
+
import { ExportButton } from "./components/EntityView/components/controls/ExportButton/exportButton";
|
|
6
|
+
import { FilterButton } from "./components/EntityView/components/controls/FilterButton/filterButton";
|
|
7
|
+
import { useViewToggle } from "./components/EntityView/components/controls/ViewToggle/hooks/UseViewToggle/hook";
|
|
8
|
+
import { VIEW_MODE } from "./components/EntityView/components/controls/ViewToggle/hooks/UseViewToggle/types";
|
|
9
|
+
import { Summary } from "./components/EntityView/components/layout/Summary/summary";
|
|
10
|
+
import { Title } from "./components/EntityView/components/layout/Title/title";
|
|
11
|
+
import { Tabs } from "./components/EntityView/components/navigation/Tabs/tabs";
|
|
12
|
+
import { EntityListSlot } from "./components/EntityView/components/slots/EntityListSlot/entityListSlot";
|
|
13
|
+
import { EntityViewSlot } from "./components/EntityView/components/slots/EntityViewSlot/entityViewSlot";
|
|
14
|
+
import { ChartView } from "./components/EntityView/components/views/ChartView/chartView";
|
|
15
|
+
import { TableView } from "./components/EntityView/components/views/TableView/tableView";
|
|
16
|
+
import { EntityViewContext } from "./components/EntityView/context/context";
|
|
17
|
+
import {
|
|
18
|
+
StyledFluidPaper,
|
|
19
|
+
StyledGridEntityLayout,
|
|
20
|
+
StyledGridEntityList,
|
|
21
|
+
StyledGridEntityView,
|
|
22
|
+
} from "./index.styles";
|
|
10
23
|
import { useTable } from "./table/hook";
|
|
11
24
|
import { IndexProps } from "./types";
|
|
12
25
|
|
|
@@ -15,42 +28,51 @@ export const Index = ({
|
|
|
15
28
|
className,
|
|
16
29
|
entityListType,
|
|
17
30
|
entityName,
|
|
18
|
-
ListHero,
|
|
19
31
|
loading,
|
|
20
|
-
SideBarButton,
|
|
21
|
-
SubTitleHero,
|
|
22
|
-
Summaries,
|
|
23
|
-
Tabs,
|
|
24
|
-
title,
|
|
25
32
|
}: IndexProps): JSX.Element => {
|
|
26
|
-
const { onChange, viewMode, viewStatus } =
|
|
27
|
-
const {
|
|
33
|
+
const { onChange, viewMode, viewStatus } = useViewToggle();
|
|
34
|
+
const { spacing } = useLayoutSpacing();
|
|
28
35
|
const { table } = useTable({ entityListType });
|
|
29
36
|
return (
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
<StyledGridEntityView className={className} {...spacing}>
|
|
38
|
+
{/* Entity view alerts or other */}
|
|
39
|
+
<EntityViewSlot />
|
|
40
|
+
{/* Entity layout */}
|
|
41
|
+
<StyledGridEntityLayout container>
|
|
42
|
+
<Title />
|
|
43
|
+
<Tabs />
|
|
44
|
+
<Grid container offset="auto">
|
|
45
|
+
<Summary />
|
|
46
|
+
<Grid container gap={2}>
|
|
47
|
+
<ActionButton />
|
|
48
|
+
<ExportButton />
|
|
49
|
+
<FilterButton />
|
|
50
|
+
</Grid>
|
|
51
|
+
</Grid>
|
|
52
|
+
</StyledGridEntityLayout>
|
|
53
|
+
{/* Entity */}
|
|
54
|
+
<EntityViewContext.Provider value={{ onChange, viewMode, viewStatus }}>
|
|
55
|
+
<StyledGridEntityList container>
|
|
56
|
+
{/* Entity alerts or other */}
|
|
57
|
+
<EntityListSlot />
|
|
58
|
+
{/* Entity table or graph */}
|
|
59
|
+
<StyledFluidPaper elevation={0}>
|
|
60
|
+
{viewMode === VIEW_MODE.TABLE ? (
|
|
61
|
+
<TableView
|
|
62
|
+
entityListType={entityListType}
|
|
63
|
+
loading={loading}
|
|
64
|
+
table={table}
|
|
65
|
+
/>
|
|
66
|
+
) : (
|
|
67
|
+
<ChartView
|
|
68
|
+
categoryFilters={categoryFilters}
|
|
69
|
+
entityName={entityName}
|
|
70
|
+
loading={loading}
|
|
71
|
+
/>
|
|
72
|
+
)}
|
|
73
|
+
</StyledFluidPaper>
|
|
74
|
+
</StyledGridEntityList>
|
|
75
|
+
</EntityViewContext.Provider>
|
|
76
|
+
</StyledGridEntityView>
|
|
55
77
|
);
|
|
56
78
|
};
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { BaseComponentProps } from "components/types";
|
|
2
2
|
import { EntityConfig } from "config/entities";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
3
|
import { CategoryFilter } from "../../components/Filter/components/Filters/filters";
|
|
5
4
|
|
|
6
5
|
export interface IndexProps extends BaseComponentProps {
|
|
7
6
|
categoryFilters: CategoryFilter[];
|
|
8
7
|
entityListType: string;
|
|
9
8
|
entityName: EntityConfig["label"];
|
|
10
|
-
ListHero?: ReactNode | ReactNode[];
|
|
11
9
|
loading: boolean;
|
|
12
|
-
SideBarButton?: ReactNode;
|
|
13
|
-
SubTitleHero?: ReactNode | ReactNode[];
|
|
14
|
-
Summaries?: ReactNode;
|
|
15
|
-
Tabs?: ReactNode;
|
|
16
|
-
title: ReactNode;
|
|
17
10
|
}
|