@hazelcast/ui 1.3.3-next.8 → 2.0.1-canary.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/README.md +223 -6
- package/lib/{Alert.d.ts → components/Alert.d.ts} +1 -1
- package/lib/{Alert.js → components/Alert.js} +2 -2
- package/lib/components/Alert.js.map +1 -0
- package/lib/{Alert.module.scss → components/Alert.module.scss} +3 -2
- package/lib/components/AppHeader/AppHeader.d.ts +16 -0
- package/lib/components/AppHeader/AppHeader.js +17 -0
- package/lib/components/AppHeader/AppHeader.js.map +1 -0
- package/lib/components/AppHeader/AppHeader.module.scss +29 -0
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.d.ts +12 -0
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js +7 -0
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.js.map +1 -0
- package/lib/components/AppHeader/AppHeaderLogo/AppHeaderLogo.module.scss +29 -0
- package/lib/components/AppHeader/AppHeaderLogo/index.d.ts +1 -0
- package/lib/components/AppHeader/AppHeaderLogo/index.js +2 -0
- package/lib/components/AppHeader/AppHeaderLogo/index.js.map +1 -0
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.d.ts +8 -0
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js +15 -0
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.js.map +1 -0
- package/lib/components/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss +20 -0
- package/lib/components/AppHeader/AppHeaderMenu/index.d.ts +1 -0
- package/lib/components/AppHeader/AppHeaderMenu/index.js +2 -0
- package/lib/components/AppHeader/AppHeaderMenu/index.js.map +1 -0
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.d.ts +5 -0
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js +10 -0
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.js.map +1 -0
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss +13 -0
- package/lib/components/AppHeader/EnvironmentBadge/index.d.ts +1 -0
- package/lib/components/AppHeader/EnvironmentBadge/index.js +2 -0
- package/lib/components/AppHeader/EnvironmentBadge/index.js.map +1 -0
- package/lib/components/AppHeader/SelectCluster/SelectCluster.d.ts +9 -0
- package/lib/components/AppHeader/SelectCluster/SelectCluster.js +37 -0
- package/lib/components/AppHeader/SelectCluster/SelectCluster.js.map +1 -0
- package/lib/components/AppHeader/SelectCluster/SelectCluster.module.scss +101 -0
- package/lib/components/AppHeader/SelectCluster/index.d.ts +1 -0
- package/lib/components/AppHeader/SelectCluster/index.js +2 -0
- package/lib/components/AppHeader/SelectCluster/index.js.map +1 -0
- package/lib/components/AppHeader/index.d.ts +1 -0
- package/lib/components/AppHeader/index.js +2 -0
- package/lib/components/AppHeader/index.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebar.d.ts +11 -0
- package/lib/components/AppSidebar/AppSidebar.js +31 -0
- package/lib/components/AppSidebar/AppSidebar.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebar.module.scss +66 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.d.ts +6 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js +22 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss +16 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.d.ts +1 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.js +2 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/index.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.d.ts +7 -0
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js +11 -0
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss +13 -0
- package/lib/components/AppSidebar/AppSidebarFavorites/index.d.ts +1 -0
- package/lib/components/AppSidebar/AppSidebarFavorites/index.js +2 -0
- package/lib/components/AppSidebar/AppSidebarFavorites/index.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.d.ts +28 -0
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js +23 -0
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarItem/AppSidebarItem.module.scss +92 -0
- package/lib/components/AppSidebar/AppSidebarItem/index.d.ts +1 -0
- package/lib/components/AppSidebar/AppSidebarItem/index.js +2 -0
- package/lib/components/AppSidebar/AppSidebarItem/index.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.d.ts +6 -0
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js +6 -0
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.module.scss +24 -0
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.d.ts +1 -0
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.js +2 -0
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/index.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.d.ts +13 -0
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js +15 -0
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss +58 -0
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.d.ts +12 -0
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js +54 -0
- package/lib/components/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.d.ts +1 -0
- package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.js +3 -0
- package/lib/components/AppSidebar/AppSidebarSection/appSidebarSectionContext.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarSection/index.d.ts +1 -0
- package/lib/components/AppSidebar/AppSidebarSection/index.js +2 -0
- package/lib/components/AppSidebar/AppSidebarSection/index.js.map +1 -0
- package/lib/components/AppSidebar/appSidebarContext.d.ts +9 -0
- package/lib/components/AppSidebar/appSidebarContext.js +11 -0
- package/lib/components/AppSidebar/appSidebarContext.js.map +1 -0
- package/lib/components/AppSidebar/index.d.ts +5 -0
- package/lib/components/AppSidebar/index.js +6 -0
- package/lib/components/AppSidebar/index.js.map +1 -0
- package/lib/{AutocompleteField.js → components/AutocompleteField.js} +4 -7
- package/lib/components/AutocompleteField.js.map +1 -0
- package/lib/{AutocompleteField.module.scss → components/AutocompleteField.module.scss} +2 -2
- package/lib/{AutocompleteFieldFormik.d.ts → components/AutocompleteFieldFormik.d.ts} +1 -1
- package/lib/{AutocompleteFieldFormik.js → components/AutocompleteFieldFormik.js} +1 -1
- package/lib/components/AutocompleteFieldFormik.js.map +1 -0
- package/lib/{Badge.js → components/Badge.js} +4 -4
- package/lib/components/Badge.js.map +1 -0
- package/lib/{Badge.module.scss → components/Badge.module.scss} +1 -1
- package/lib/{Button.d.ts → components/Button.d.ts} +8 -8
- package/lib/{Button.js → components/Button.js} +14 -42
- package/lib/components/Button.js.map +1 -0
- package/lib/{Button.module.scss → components/Button.module.scss} +42 -12
- package/lib/{Calendar → components/Calendar}/Calendar.d.ts +3 -2
- package/lib/{Calendar → components/Calendar}/Calendar.js +6 -9
- package/lib/components/Calendar/Calendar.js.map +1 -0
- package/lib/{Calendar → components/Calendar}/Calendar.module.scss +2 -2
- package/lib/components/Calendar/CalendarRange.js.map +1 -0
- package/lib/{Calendar → components/Calendar}/CalendarRange.module.scss +1 -1
- package/lib/{Calendar → components/Calendar}/components/CalendarHeader.js +1 -1
- package/lib/components/Calendar/components/CalendarHeader.js.map +1 -0
- package/lib/{Calendar → components/Calendar}/components/CalendarInput.d.ts +3 -2
- package/lib/{Calendar → components/Calendar}/components/CalendarInput.js +1 -1
- package/lib/components/Calendar/components/CalendarInput.js.map +1 -0
- package/lib/{Calendar → components/Calendar}/components/CalendarTime.d.ts +3 -2
- package/lib/{Calendar → components/Calendar}/components/CalendarTime.js +6 -6
- package/lib/components/Calendar/components/CalendarTime.js.map +1 -0
- package/lib/{Calendar → components/Calendar}/components/CalendarTime.module.scss +2 -2
- package/lib/{Calendar → components/Calendar}/helpers/consts.js.map +1 -1
- package/lib/{Card.d.ts → components/Card.d.ts} +3 -1
- package/lib/{Card.js → components/Card.js} +3 -2
- package/lib/components/Card.js.map +1 -0
- package/lib/{Card.module.scss → components/Card.module.scss} +52 -19
- package/lib/{Carousel.d.ts → components/Carousel.d.ts} +1 -1
- package/lib/{Carousel.js → components/Carousel.js} +1 -1
- package/lib/components/Carousel.js.map +1 -0
- package/lib/{Carousel.module.scss → components/Carousel.module.scss} +2 -2
- package/lib/components/CenteredLoader.d.ts +5 -0
- package/lib/components/CenteredLoader.js +6 -0
- package/lib/components/CenteredLoader.js.map +1 -0
- package/lib/components/CenteredLoader.module.scss +11 -0
- package/lib/{Checkbox.d.ts → components/Checkbox.d.ts} +1 -1
- package/lib/{Checkbox.js → components/Checkbox.js} +2 -2
- package/lib/components/Checkbox.js.map +1 -0
- package/lib/{Checkbox.module.scss → components/Checkbox.module.scss} +2 -2
- package/lib/{CheckboxFormik.d.ts → components/CheckboxFormik.d.ts} +2 -2
- package/lib/{CheckboxFormik.js → components/CheckboxFormik.js} +1 -1
- package/lib/components/CheckboxFormik.js.map +1 -0
- package/lib/components/CircularProgressBar.js.map +1 -0
- package/lib/{CircularProgressBar.module.scss → components/CircularProgressBar.module.scss} +1 -1
- package/lib/{ContextMenu.js → components/ContextMenu.js} +1 -1
- package/lib/components/ContextMenu.js.map +1 -0
- package/lib/{ContextMenu.module.scss → components/ContextMenu.module.scss} +2 -2
- package/lib/{Dialog.js → components/Dialog.js} +22 -18
- package/lib/components/Dialog.js.map +1 -0
- package/lib/{Dialog.module.scss → components/Dialog.module.scss} +1 -1
- package/lib/{EmptyState.d.ts → components/EmptyState.d.ts} +4 -4
- package/lib/components/EmptyState.js.map +1 -0
- package/lib/{EmptyState.module.scss → components/EmptyState.module.scss} +1 -1
- package/lib/{Error.d.ts → components/Error.d.ts} +2 -1
- package/lib/components/Error.js +8 -0
- package/lib/components/Error.js.map +1 -0
- package/lib/{Error.module.scss → components/Error.module.scss} +1 -1
- package/lib/{FieldHeader.d.ts → components/FieldHeader.d.ts} +3 -3
- package/lib/components/FieldHeader.js.map +1 -0
- package/lib/{FieldHeader.module.scss → components/FieldHeader.module.scss} +1 -1
- package/lib/{Help.d.ts → components/Help.d.ts} +2 -1
- package/lib/{Help.js → components/Help.js} +3 -3
- package/lib/components/Help.js.map +1 -0
- package/lib/{Help.module.scss → components/Help.module.scss} +1 -1
- package/lib/{Icon.d.ts → components/Icon.d.ts} +2 -1
- package/lib/{Icon.js → components/Icon.js} +3 -3
- package/lib/components/Icon.js.map +1 -0
- package/lib/{Icon.module.scss → components/Icon.module.scss} +1 -1
- package/lib/{IconButton.d.ts → components/IconButton.d.ts} +1 -1
- package/lib/{IconButton.js → components/IconButton.js} +3 -3
- package/lib/components/IconButton.js.map +1 -0
- package/lib/{IconButton.module.scss → components/IconButton.module.scss} +2 -2
- package/lib/{InteractiveList.d.ts → components/InteractiveList.d.ts} +8 -8
- package/lib/{InteractiveList.js → components/InteractiveList.js} +11 -13
- package/lib/components/InteractiveList.js.map +1 -0
- package/lib/{InteractiveList.module.scss → components/InteractiveList.module.scss} +1 -1
- package/lib/{InteractiveListFormik.d.ts → components/InteractiveListFormik.d.ts} +1 -1
- package/lib/{InteractiveListFormik.js → components/InteractiveListFormik.js} +1 -1
- package/lib/components/InteractiveListFormik.js.map +1 -0
- package/lib/{Label.d.ts → components/Label.d.ts} +2 -1
- package/lib/components/Label.js +5 -0
- package/lib/components/Label.js.map +1 -0
- package/lib/{Label.module.scss → components/Label.module.scss} +1 -1
- package/lib/{Link.d.ts → components/Link.d.ts} +2 -2
- package/lib/{Link.js → components/Link.js} +2 -0
- package/lib/components/Link.js.map +1 -0
- package/lib/{Link.module.scss → components/Link.module.scss} +7 -2
- package/lib/{Loader.d.ts → components/Loader.d.ts} +2 -1
- package/lib/{Loader.js → components/Loader.js} +2 -2
- package/lib/components/Loader.js.map +1 -0
- package/lib/{Loader.module.scss → components/Loader.module.scss} +1 -1
- package/lib/{Modal.d.ts → components/Modal.d.ts} +1 -1
- package/lib/{Modal.js → components/Modal.js} +4 -4
- package/lib/components/Modal.js.map +1 -0
- package/lib/{Modal.module.scss → components/Modal.module.scss} +4 -3
- package/lib/components/Notification.js.map +1 -0
- package/lib/{Notification.module.scss → components/Notification.module.scss} +1 -1
- package/lib/components/NumberBadge.js.map +1 -0
- package/lib/{NumberBadge.module.scss → components/NumberBadge.module.scss} +1 -1
- package/lib/{NumberField.d.ts → components/NumberField.d.ts} +1 -1
- package/lib/{NumberField.js → components/NumberField.js} +10 -12
- package/lib/components/NumberField.js.map +1 -0
- package/lib/{NumberField.module.scss → components/NumberField.module.scss} +1 -1
- package/lib/{NumberFieldFormik.d.ts → components/NumberFieldFormik.d.ts} +2 -2
- package/lib/{NumberFieldFormik.js → components/NumberFieldFormik.js} +1 -3
- package/lib/components/NumberFieldFormik.js.map +1 -0
- package/lib/{Overlay.d.ts → components/Overlay.d.ts} +1 -1
- package/lib/components/Overlay.js.map +1 -0
- package/lib/{Overlay.module.scss → components/Overlay.module.scss} +4 -3
- package/lib/{Pagination.js → components/Pagination.js} +13 -13
- package/lib/components/Pagination.js.map +1 -0
- package/lib/{Pagination.module.scss → components/Pagination.module.scss} +2 -2
- package/lib/{PasswordField.d.ts → components/PasswordField.d.ts} +1 -1
- package/lib/{PasswordField.js → components/PasswordField.js} +4 -4
- package/lib/components/PasswordField.js.map +1 -0
- package/lib/{PasswordField.module.scss → components/PasswordField.module.scss} +1 -1
- package/lib/{PasswordFieldFormik.d.ts → components/PasswordFieldFormik.d.ts} +2 -2
- package/lib/{PasswordFieldFormik.js → components/PasswordFieldFormik.js} +1 -1
- package/lib/components/PasswordFieldFormik.js.map +1 -0
- package/lib/{Popover.d.ts → components/Popover.d.ts} +4 -4
- package/lib/{Popover.js → components/Popover.js} +34 -7
- package/lib/components/Popover.js.map +1 -0
- package/lib/{Popover.module.scss → components/Popover.module.scss} +1 -1
- package/lib/{Radio.d.ts → components/Radio.d.ts} +1 -1
- package/lib/{Radio.js → components/Radio.js} +3 -3
- package/lib/components/Radio.js.map +1 -0
- package/lib/{Radio.module.scss → components/Radio.module.scss} +2 -2
- package/lib/components/RadioFormik.js.map +1 -0
- package/lib/{RadioGroup.d.ts → components/RadioGroup.d.ts} +1 -1
- package/lib/{RadioGroup.js → components/RadioGroup.js} +3 -3
- package/lib/components/RadioGroup.js.map +1 -0
- package/lib/{RadioGroup.module.scss → components/RadioGroup.module.scss} +2 -2
- package/lib/{RadioGroupContext.d.ts → components/RadioGroupContext.d.ts} +2 -2
- package/lib/components/RadioGroupContext.js.map +1 -0
- package/lib/{RadioGroupFormik.d.ts → components/RadioGroupFormik.d.ts} +2 -2
- package/lib/{RadioGroupFormik.js → components/RadioGroupFormik.js} +1 -1
- package/lib/components/RadioGroupFormik.js.map +1 -0
- package/lib/{SegmentedControl.d.ts → components/SegmentedControl.d.ts} +3 -3
- package/lib/components/SegmentedControl.js.map +1 -0
- package/lib/{SegmentedControl.module.scss → components/SegmentedControl.module.scss} +2 -2
- package/lib/{SegmentedControlFormik.d.ts → components/SegmentedControlFormik.d.ts} +2 -2
- package/lib/{SegmentedControlFormik.js → components/SegmentedControlFormik.js} +1 -1
- package/lib/components/SegmentedControlFormik.js.map +1 -0
- package/lib/{Select → components/Select}/CheckableSelectField.d.ts +2 -2
- package/lib/{Select → components/Select}/CheckableSelectField.js +5 -5
- package/lib/components/Select/CheckableSelectField.js.map +1 -0
- package/lib/{Select → components/Select}/CheckableSelectField.module.scss +2 -2
- package/lib/{Select → components/Select}/CheckableSelectFieldFormik.d.ts +2 -2
- package/lib/{Select → components/Select}/CheckableSelectFieldFormik.js +1 -1
- package/lib/components/Select/CheckableSelectFieldFormik.js.map +1 -0
- package/lib/{Select → components/Select}/Common.js +8 -15
- package/lib/components/Select/Common.js.map +1 -0
- package/lib/{Select → components/Select}/Common.module.scss +3 -3
- package/lib/{Select → components/Select}/MultiSelectField.d.ts +3 -3
- package/lib/{Select → components/Select}/MultiSelectField.js +15 -13
- package/lib/components/Select/MultiSelectField.js.map +1 -0
- package/lib/{Select → components/Select}/MultiSelectField.module.scss +2 -2
- package/lib/{Select → components/Select}/MultiSelectFieldFormik.d.ts +4 -3
- package/lib/{Select → components/Select}/MultiSelectFieldFormik.js +1 -1
- package/lib/components/Select/MultiSelectFieldFormik.js.map +1 -0
- package/lib/{Select → components/Select}/SelectField.d.ts +4 -3
- package/lib/{Select → components/Select}/SelectField.js +12 -8
- package/lib/components/Select/SelectField.js.map +1 -0
- package/lib/{Select → components/Select}/SelectField.module.scss +2 -2
- package/lib/{Select → components/Select}/SelectFieldFormik.d.ts +2 -2
- package/lib/{Select → components/Select}/SelectFieldFormik.js +1 -1
- package/lib/components/Select/SelectFieldFormik.js.map +1 -0
- package/lib/{Select → components/Select}/helpers.d.ts +2 -2
- package/lib/{Select → components/Select}/helpers.js +1 -1
- package/lib/components/Select/helpers.js.map +1 -0
- package/lib/components/Select/index.js.map +1 -0
- package/lib/components/SimpleTable.d.ts +11 -0
- package/lib/components/SimpleTable.js.map +1 -0
- package/lib/{SimpleTable.module.scss → components/SimpleTable.module.scss} +1 -1
- package/lib/{Slider.d.ts → components/Slider.d.ts} +3 -3
- package/lib/{Slider.js → components/Slider.js} +1 -1
- package/lib/components/Slider.js.map +1 -0
- package/lib/{Slider.module.scss → components/Slider.module.scss} +2 -2
- package/lib/{SliderFormik.d.ts → components/SliderFormik.d.ts} +1 -1
- package/lib/{SliderFormik.js → components/SliderFormik.js} +1 -1
- package/lib/components/SliderFormik.js.map +1 -0
- package/lib/{Table → components/Table}/Cell.d.ts +6 -4
- package/lib/{Table → components/Table}/Cell.js +5 -4
- package/lib/components/Table/Cell.js.map +1 -0
- package/lib/{Table → components/Table}/Cell.module.scss +16 -7
- package/lib/components/Table/CellWrapper.d.ts +11 -0
- package/lib/{Table → components/Table}/CellWrapper.js +6 -6
- package/lib/components/Table/CellWrapper.js.map +1 -0
- package/lib/{Table → components/Table}/EnhancedRenderers.d.ts +8 -10
- package/lib/components/Table/EnhancedRenderers.js +13 -0
- package/lib/components/Table/EnhancedRenderers.js.map +1 -0
- package/lib/{Table → components/Table}/Header.d.ts +9 -5
- package/lib/{Table → components/Table}/Header.js +22 -11
- package/lib/components/Table/Header.js.map +1 -0
- package/lib/{Table → components/Table}/Header.module.scss +14 -9
- package/lib/components/Table/Row.d.ts +19 -0
- package/lib/{Table → components/Table}/Row.js +6 -7
- package/lib/components/Table/Row.js.map +1 -0
- package/lib/{Table → components/Table}/Row.module.scss +17 -14
- package/lib/components/Table/Table.d.ts +85 -0
- package/lib/components/Table/Table.js +259 -0
- package/lib/components/Table/Table.js.map +1 -0
- package/lib/{Table → components/Table}/Table.module.scss +8 -2
- package/lib/{Table → components/Table}/TableContent.d.ts +9 -9
- package/lib/components/Table/TableContent.js +58 -0
- package/lib/components/Table/TableContent.js.map +1 -0
- package/lib/components/Table/constants.js.map +1 -0
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.d.ts +8 -0
- package/lib/{Table → components/Table}/features/columnsSelection/CellCopyablePopover.js +1 -1
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js.map +1 -0
- package/lib/{Table → components/Table}/features/columnsSelection/CellCopyablePopover.module.scss +1 -1
- package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/ContextMenu.d.ts +2 -2
- package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.js.map +1 -0
- package/lib/components/Table/features/columnsSelection/ContextMenu/index.js.map +1 -0
- package/lib/{Table → components/Table}/features/columnsSelection/columnsSelection.d.ts +0 -1
- package/lib/{Table → components/Table}/features/columnsSelection/columnsSelection.js +1 -1
- package/lib/components/Table/features/columnsSelection/columnsSelection.js.map +1 -0
- package/lib/components/Table/features/columnsSelection/helpers.js.map +1 -0
- package/lib/components/Table/features/columnsSelection/index.js.map +1 -0
- package/lib/components/Table/helpers.d.ts +2 -0
- package/lib/components/Table/helpers.js +10 -0
- package/lib/components/Table/helpers.js.map +1 -0
- package/lib/components/Table/tableTypes.d.ts +80 -0
- package/lib/components/Table/tableTypes.js +2 -0
- package/lib/components/Table/tableTypes.js.map +1 -0
- package/lib/components/Table/useTrackTableState.d.ts +3 -0
- package/lib/components/Table/useTrackTableState.js +30 -0
- package/lib/components/Table/useTrackTableState.js.map +1 -0
- package/lib/components/Table/utils.d.ts +16 -0
- package/lib/components/Table/utils.js +121 -0
- package/lib/components/Table/utils.js.map +1 -0
- package/lib/{Tabs → components/Tabs}/Tab.d.ts +1 -19
- package/lib/{Tabs → components/Tabs}/Tab.js +3 -17
- package/lib/components/Tabs/Tab.js.map +1 -0
- package/lib/{Tabs → components/Tabs}/Tab.module.scss +2 -6
- package/lib/components/Tabs/TabContext.js.map +1 -0
- package/lib/{Tabs → components/Tabs}/TabList.js +1 -3
- package/lib/components/Tabs/TabList.js.map +1 -0
- package/lib/{Tabs → components/Tabs}/TabPanel.d.ts +2 -1
- package/lib/{Tabs → components/Tabs}/TabPanel.js +2 -2
- package/lib/components/Tabs/TabPanel.js.map +1 -0
- package/lib/components/Tabs/index.js.map +1 -0
- package/lib/{Terminal.d.ts → components/Terminal.d.ts} +1 -1
- package/lib/{Terminal.js → components/Terminal.js} +0 -1
- package/lib/components/Terminal.js.map +1 -0
- package/lib/{Terminal.module.scss → components/Terminal.module.scss} +2 -2
- package/lib/{TextArea.d.ts → components/TextArea.d.ts} +1 -1
- package/lib/{TextArea.js → components/TextArea.js} +10 -14
- package/lib/components/TextArea.js.map +1 -0
- package/lib/{TextArea.module.scss → components/TextArea.module.scss} +2 -2
- package/lib/{TextAreaFormik.d.ts → components/TextAreaFormik.d.ts} +1 -1
- package/lib/components/TextAreaFormik.js.map +1 -0
- package/lib/{TextField.d.ts → components/TextField.d.ts} +5 -4
- package/lib/{TextField.js → components/TextField.js} +7 -7
- package/lib/components/TextField.js.map +1 -0
- package/lib/{TextField.module.scss → components/TextField.module.scss} +2 -2
- package/lib/{TextFieldFormik.d.ts → components/TextFieldFormik.d.ts} +2 -2
- package/lib/{TextFieldFormik.js → components/TextFieldFormik.js} +1 -1
- package/lib/components/TextFieldFormik.js.map +1 -0
- package/lib/{TimeField.d.ts → components/TimeField.d.ts} +1 -1
- package/lib/{TimeField.js → components/TimeField.js} +3 -3
- package/lib/components/TimeField.js.map +1 -0
- package/lib/{TimeFieldFormik.d.ts → components/TimeFieldFormik.d.ts} +2 -2
- package/lib/components/TimeFieldFormik.js.map +1 -0
- package/lib/{Toast.d.ts → components/Toast.d.ts} +2 -1
- package/lib/{Toast.js → components/Toast.js} +6 -6
- package/lib/components/Toast.js.map +1 -0
- package/lib/{Toast.module.scss → components/Toast.module.scss} +1 -1
- package/lib/{Toggle.d.ts → components/Toggle.d.ts} +1 -1
- package/lib/{Toggle.js → components/Toggle.js} +5 -5
- package/lib/components/Toggle.js.map +1 -0
- package/lib/{Toggle.module.scss → components/Toggle.module.scss} +2 -2
- package/lib/{ToggleFormik.d.ts → components/ToggleFormik.d.ts} +2 -2
- package/lib/{ToggleFormik.js → components/ToggleFormik.js} +1 -1
- package/lib/components/ToggleFormik.js.map +1 -0
- package/lib/{Tooltip.d.ts → components/Tooltip.d.ts} +4 -1
- package/lib/{Tooltip.js → components/Tooltip.js} +23 -17
- package/lib/components/Tooltip.js.map +1 -0
- package/lib/{Tooltip.module.scss → components/Tooltip.module.scss} +104 -72
- package/lib/{TruncatedText.d.ts → components/TruncatedText.d.ts} +6 -4
- package/lib/{TruncatedText.js → components/TruncatedText.js} +3 -3
- package/lib/components/TruncatedText.js.map +1 -0
- package/lib/{TruncatedText.module.scss → components/TruncatedText.module.scss} +1 -1
- package/lib/helpers/array.d.ts +5 -0
- package/lib/helpers/array.js +19 -0
- package/lib/helpers/array.js.map +1 -0
- package/lib/helpers/escapeHtml.d.ts +1 -0
- package/lib/helpers/escapeHtml.js +7 -0
- package/lib/helpers/escapeHtml.js.map +1 -0
- package/lib/helpers/forms.d.ts +1 -0
- package/lib/helpers/forms.js +16 -0
- package/lib/helpers/forms.js.map +1 -0
- package/lib/helpers/math.d.ts +1 -0
- package/lib/helpers/math.js +7 -0
- package/lib/helpers/math.js.map +1 -0
- package/lib/helpers/types.d.ts +35 -0
- package/lib/helpers/types.js +2 -0
- package/lib/helpers/types.js.map +1 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useCloseOnResize.js.map +1 -1
- package/lib/hooks/useDeepEqual.js +0 -1
- package/lib/hooks/useDeepEqual.js.map +1 -1
- package/lib/hooks/useDimensions.js.map +1 -1
- package/lib/hooks/useOnClickOutside.d.ts +1 -1
- package/lib/hooks/useOnClickOutside.js +7 -1
- package/lib/hooks/useOnClickOutside.js.map +1 -1
- package/lib/hooks/usePagination.js +1 -1
- package/lib/hooks/usePagination.js.map +1 -1
- package/lib/hooks/usePersistedState.d.ts +2 -0
- package/lib/hooks/usePersistedState.js +35 -0
- package/lib/hooks/usePersistedState.js.map +1 -0
- package/lib/hooks/useResizeAware.d.ts +3 -0
- package/lib/hooks/useResizeAware.js +25 -0
- package/lib/hooks/useResizeAware.js.map +1 -0
- package/lib/icons/Cluster.d.ts +2 -0
- package/lib/icons/Cluster.js +7 -0
- package/lib/icons/Cluster.js.map +1 -0
- package/lib/icons/Compare.d.ts +7 -0
- package/lib/icons/Compare.js +7 -0
- package/lib/icons/Compare.js.map +1 -0
- package/lib/icons/Compute.d.ts +2 -0
- package/lib/icons/Compute.js +7 -0
- package/lib/icons/Compute.js.map +1 -0
- package/lib/icons/Folder.d.ts +2 -0
- package/lib/icons/Folder.js +4 -0
- package/lib/icons/Folder.js.map +1 -0
- package/lib/icons/PlusCircle.d.ts +2 -0
- package/lib/icons/PlusCircle.js +6 -0
- package/lib/icons/PlusCircle.js.map +1 -0
- package/lib/icons/Streaming.d.ts +2 -0
- package/lib/icons/Streaming.js +8 -0
- package/lib/icons/Streaming.js.map +1 -0
- package/lib/index.d.ts +70 -53
- package/lib/index.js +73 -53
- package/lib/index.js.map +1 -1
- package/lib/services/logger.d.ts +13 -0
- package/lib/services/logger.js +84 -0
- package/lib/services/logger.js.map +1 -0
- package/lib/services/time.d.ts +7 -0
- package/lib/services/time.js +17 -0
- package/lib/services/time.js.map +1 -0
- package/lib/test-helpers/render.d.ts +10 -0
- package/lib/test-helpers/render.js +24 -0
- package/lib/test-helpers/render.js.map +1 -0
- package/lib/test-helpers/time.d.ts +1 -0
- package/lib/test-helpers/time.js +2 -0
- package/lib/test-helpers/time.js.map +1 -0
- package/lib/test-helpers/utils.d.ts +5 -0
- package/lib/test-helpers/utils.js +11 -0
- package/lib/test-helpers/utils.js.map +1 -0
- package/lib/types.d.ts +6 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/formik.js.map +1 -1
- package/lib/utils/portal.js.map +1 -1
- package/package.json +130 -88
- package/styles/constants/_colors.scss +36 -12
- package/styles/constants/_typography.scss +0 -7
- package/styles/helpers/_a11y.scss +8 -0
- package/styles/helpers/_gradients.scss +39 -6
- package/styles/typography/fonts/UbuntuMono-Bold.woff2 +0 -0
- package/styles/typography/fonts/UbuntuMono-BoldItalic.woff2 +0 -0
- package/styles/typography/fonts/UbuntuMono-Italic.woff2 +0 -0
- package/styles/typography/fonts/UbuntuMono-Regular.woff2 +0 -0
- package/styles/typography/ubuntu-mono.css +31 -0
- package/lib/Alert.js.map +0 -1
- package/lib/AutocompleteField.js.map +0 -1
- package/lib/AutocompleteFieldFormik.js.map +0 -1
- package/lib/Badge.js.map +0 -1
- package/lib/Button.js.map +0 -1
- package/lib/Calendar/Calendar.js.map +0 -1
- package/lib/Calendar/CalendarRange.js.map +0 -1
- package/lib/Calendar/components/CalendarHeader.js.map +0 -1
- package/lib/Calendar/components/CalendarInput.js.map +0 -1
- package/lib/Calendar/components/CalendarTime.js.map +0 -1
- package/lib/Card.js.map +0 -1
- package/lib/Carousel.js.map +0 -1
- package/lib/Checkbox.js.map +0 -1
- package/lib/CheckboxFormik.js.map +0 -1
- package/lib/CircularProgressBar.js.map +0 -1
- package/lib/ContextMenu.js.map +0 -1
- package/lib/Dialog.js.map +0 -1
- package/lib/EmptyState.js.map +0 -1
- package/lib/Error.js +0 -8
- package/lib/Error.js.map +0 -1
- package/lib/FieldHeader.js.map +0 -1
- package/lib/Help.js.map +0 -1
- package/lib/Icon.js.map +0 -1
- package/lib/IconButton.js.map +0 -1
- package/lib/InteractiveList.js.map +0 -1
- package/lib/InteractiveListFormik.js.map +0 -1
- package/lib/Label.js +0 -5
- package/lib/Label.js.map +0 -1
- package/lib/Link.js.map +0 -1
- package/lib/Loader.js.map +0 -1
- package/lib/Modal.js.map +0 -1
- package/lib/Notification.js.map +0 -1
- package/lib/NumberBadge.js.map +0 -1
- package/lib/NumberField.js.map +0 -1
- package/lib/NumberFieldFormik.js.map +0 -1
- package/lib/Overlay.js.map +0 -1
- package/lib/Pagination.js.map +0 -1
- package/lib/PasswordField.js.map +0 -1
- package/lib/PasswordFieldFormik.js.map +0 -1
- package/lib/Popover.js.map +0 -1
- package/lib/Radio.js.map +0 -1
- package/lib/RadioFormik.js.map +0 -1
- package/lib/RadioGroup.js.map +0 -1
- package/lib/RadioGroupContext.js.map +0 -1
- package/lib/RadioGroupFormik.js.map +0 -1
- package/lib/SegmentedControl.js.map +0 -1
- package/lib/SegmentedControlFormik.js.map +0 -1
- package/lib/Select/CheckableSelectField.js.map +0 -1
- package/lib/Select/CheckableSelectFieldFormik.js.map +0 -1
- package/lib/Select/Common.js.map +0 -1
- package/lib/Select/MultiSelectField.js.map +0 -1
- package/lib/Select/MultiSelectFieldFormik.js.map +0 -1
- package/lib/Select/SelectField.js.map +0 -1
- package/lib/Select/SelectFieldFormik.js.map +0 -1
- package/lib/Select/helpers.js.map +0 -1
- package/lib/Select/index.js.map +0 -1
- package/lib/SimpleTable.d.ts +0 -11
- package/lib/SimpleTable.js.map +0 -1
- package/lib/Slider.js.map +0 -1
- package/lib/SliderFormik.js.map +0 -1
- package/lib/Table/Cell.js.map +0 -1
- package/lib/Table/CellWrapper.d.ts +0 -11
- package/lib/Table/CellWrapper.js.map +0 -1
- package/lib/Table/EnhancedRenderers.js +0 -16
- package/lib/Table/EnhancedRenderers.js.map +0 -1
- package/lib/Table/Header.js.map +0 -1
- package/lib/Table/Row.d.ts +0 -17
- package/lib/Table/Row.js.map +0 -1
- package/lib/Table/Table.d.ts +0 -100
- package/lib/Table/Table.js +0 -261
- package/lib/Table/Table.js.map +0 -1
- package/lib/Table/TableContent.js +0 -53
- package/lib/Table/TableContent.js.map +0 -1
- package/lib/Table/constants.js.map +0 -1
- package/lib/Table/features/columnsSelection/CellCopyablePopover.d.ts +0 -8
- package/lib/Table/features/columnsSelection/CellCopyablePopover.js.map +0 -1
- package/lib/Table/features/columnsSelection/ContextMenu/ContextMenu.js.map +0 -1
- package/lib/Table/features/columnsSelection/ContextMenu/index.js.map +0 -1
- package/lib/Table/features/columnsSelection/columnsSelection.js.map +0 -1
- package/lib/Table/features/columnsSelection/helpers.js.map +0 -1
- package/lib/Table/features/columnsSelection/index.js.map +0 -1
- package/lib/Tabs/Tab.js.map +0 -1
- package/lib/Tabs/TabContext.js.map +0 -1
- package/lib/Tabs/TabList.js.map +0 -1
- package/lib/Tabs/TabPanel.js.map +0 -1
- package/lib/Tabs/index.js.map +0 -1
- package/lib/Terminal.js.map +0 -1
- package/lib/TextArea.js.map +0 -1
- package/lib/TextAreaFormik.js.map +0 -1
- package/lib/TextField.js.map +0 -1
- package/lib/TextFieldFormik.js.map +0 -1
- package/lib/TimeField.js.map +0 -1
- package/lib/TimeFieldFormik.js.map +0 -1
- package/lib/Toast.js.map +0 -1
- package/lib/Toggle.js.map +0 -1
- package/lib/ToggleFormik.js.map +0 -1
- package/lib/Tooltip.js.map +0 -1
- package/lib/TruncatedText.js.map +0 -1
- package/lib/utils/test.d.ts +0 -3
- package/lib/utils/test.js +0 -8
- package/lib/utils/test.js.map +0 -1
- /package/lib/{AutocompleteField.d.ts → components/AutocompleteField.d.ts} +0 -0
- /package/lib/{Badge.d.ts → components/Badge.d.ts} +0 -0
- /package/lib/{Calendar → components/Calendar}/CalendarRange.d.ts +0 -0
- /package/lib/{Calendar → components/Calendar}/CalendarRange.js +0 -0
- /package/lib/{Calendar → components/Calendar}/components/CalendarHeader.d.ts +0 -0
- /package/lib/{Calendar → components/Calendar}/helpers/consts.d.ts +0 -0
- /package/lib/{Calendar → components/Calendar}/helpers/consts.js +0 -0
- /package/lib/{CircularProgressBar.d.ts → components/CircularProgressBar.d.ts} +0 -0
- /package/lib/{CircularProgressBar.js → components/CircularProgressBar.js} +0 -0
- /package/lib/{ContextMenu.d.ts → components/ContextMenu.d.ts} +0 -0
- /package/lib/{Dialog.d.ts → components/Dialog.d.ts} +0 -0
- /package/lib/{EmptyState.js → components/EmptyState.js} +0 -0
- /package/lib/{FieldHeader.js → components/FieldHeader.js} +0 -0
- /package/lib/{Notification.d.ts → components/Notification.d.ts} +0 -0
- /package/lib/{Notification.js → components/Notification.js} +0 -0
- /package/lib/{NumberBadge.d.ts → components/NumberBadge.d.ts} +0 -0
- /package/lib/{NumberBadge.js → components/NumberBadge.js} +0 -0
- /package/lib/{Overlay.js → components/Overlay.js} +0 -0
- /package/lib/{Pagination.d.ts → components/Pagination.d.ts} +0 -0
- /package/lib/{RadioFormik.d.ts → components/RadioFormik.d.ts} +0 -0
- /package/lib/{RadioFormik.js → components/RadioFormik.js} +0 -0
- /package/lib/{RadioGroupContext.js → components/RadioGroupContext.js} +0 -0
- /package/lib/{SegmentedControl.js → components/SegmentedControl.js} +0 -0
- /package/lib/{Select → components/Select}/Common.d.ts +0 -0
- /package/lib/{Select → components/Select}/index.d.ts +0 -0
- /package/lib/{Select → components/Select}/index.js +0 -0
- /package/lib/{SimpleTable.js → components/SimpleTable.js} +0 -0
- /package/lib/{Table → components/Table}/TableContent.module.scss +0 -0
- /package/lib/{Table → components/Table}/constants.d.ts +0 -0
- /package/lib/{Table → components/Table}/constants.js +0 -0
- /package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/ContextMenu.js +0 -0
- /package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/ContextMenu.module.scss +0 -0
- /package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/index.d.ts +0 -0
- /package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/index.js +0 -0
- /package/lib/{Table → components/Table}/features/columnsSelection/helpers.d.ts +0 -0
- /package/lib/{Table → components/Table}/features/columnsSelection/helpers.js +0 -0
- /package/lib/{Table → components/Table}/features/columnsSelection/index.d.ts +0 -0
- /package/lib/{Table → components/Table}/features/columnsSelection/index.js +0 -0
- /package/lib/{Tabs → components/Tabs}/TabContext.d.ts +0 -0
- /package/lib/{Tabs → components/Tabs}/TabContext.js +0 -0
- /package/lib/{Tabs → components/Tabs}/TabList.d.ts +0 -0
- /package/lib/{Tabs → components/Tabs}/TabList.module.scss +0 -0
- /package/lib/{Tabs → components/Tabs}/TabPanel.module.scss +0 -0
- /package/lib/{Tabs → components/Tabs}/index.d.ts +0 -0
- /package/lib/{Tabs → components/Tabs}/index.js +0 -0
- /package/lib/{TextAreaFormik.js → components/TextAreaFormik.js} +0 -0
- /package/lib/{TimeField.module.scss → components/TimeField.module.scss} +0 -0
- /package/lib/{TimeFieldFormik.js → components/TimeFieldFormik.js} +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DataTestProp } from '../../../src';
|
|
2
|
+
import { AnchorHTMLAttributes, FC, ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { PaginationProps } from '../Pagination';
|
|
4
|
+
import { CellProps } from './Cell';
|
|
5
|
+
import { RowProps } from './Row';
|
|
6
|
+
import { CellType, ColumnType, InitialState, RowData, RowType, SortingRule, TableState } from './tableTypes';
|
|
7
|
+
export type PaginationOptions = Partial<Pick<PaginationProps, 'pageSizeOptions'>>;
|
|
8
|
+
export * from './tableTypes';
|
|
9
|
+
/**
|
|
10
|
+
* `defaultPageSize` should be one of the values in `pageSizeOptions`.
|
|
11
|
+
* If it's not it won't break anything but it is a bad UX
|
|
12
|
+
* because once user selects different page size he won't be able to select
|
|
13
|
+
* `defaultPageSize` again.
|
|
14
|
+
*/
|
|
15
|
+
type ExtendedPaginationProps = {
|
|
16
|
+
paginationOptions?: PaginationOptions;
|
|
17
|
+
defaultPageSize?: number;
|
|
18
|
+
hidePagination?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type PaginationChangeProps = {
|
|
21
|
+
pageSize: number;
|
|
22
|
+
pageIndex: number;
|
|
23
|
+
};
|
|
24
|
+
export type ControlledPaginationProps = {
|
|
25
|
+
manualPagination?: boolean;
|
|
26
|
+
onPaginationChange?: (paginationChangeProps: PaginationChangeProps) => void;
|
|
27
|
+
};
|
|
28
|
+
export type ControlledSortingProps = {
|
|
29
|
+
onSortingChange?: (sortBy: SortingRule[]) => void;
|
|
30
|
+
};
|
|
31
|
+
type CustomTableRowClickProps<D extends RowData> = {
|
|
32
|
+
onRowClick?: (rowInfo: RowType<D>) => void;
|
|
33
|
+
getHref?: never;
|
|
34
|
+
AnchorComponent?: never;
|
|
35
|
+
} | {
|
|
36
|
+
getHref?: (rowInfo: RowType<D>) => string | undefined;
|
|
37
|
+
onRowClick?: never;
|
|
38
|
+
AnchorComponent?: FC<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
39
|
+
};
|
|
40
|
+
type CustomTableProps<D extends RowData> = {
|
|
41
|
+
loading?: boolean;
|
|
42
|
+
tableId?: string;
|
|
43
|
+
overlayLoading?: boolean;
|
|
44
|
+
className?: string;
|
|
45
|
+
hideHeader?: boolean;
|
|
46
|
+
searchValue?: string;
|
|
47
|
+
headerClassName?: string;
|
|
48
|
+
paginationClassName?: string;
|
|
49
|
+
footerClassName?: string;
|
|
50
|
+
contentClassName?: string;
|
|
51
|
+
noDataTitle?: ReactNode;
|
|
52
|
+
getCustomRowProps?: (rowInfo: RowType<D>) => RowProps;
|
|
53
|
+
getCustomCellProps?: (cellInfo: CellType<D>) => CellProps;
|
|
54
|
+
onRenderedContentChange?: (newPage: RowType<D>[]) => void;
|
|
55
|
+
pageIndex?: number;
|
|
56
|
+
onPageChange?: (newPage: number) => void;
|
|
57
|
+
onRowSelect?: (ids: string[]) => void;
|
|
58
|
+
columnsOrdering?: boolean;
|
|
59
|
+
children?: (table: ReactElement) => ReactElement;
|
|
60
|
+
renderRowSubComponent?: (props: RowType<D>) => ReactNode;
|
|
61
|
+
canExpand?: (row: RowType<D>) => boolean;
|
|
62
|
+
onCopy?: (data: (string | undefined)[][]) => void;
|
|
63
|
+
initialState?: InitialState;
|
|
64
|
+
onStateChange?: ((newState: TableState) => void) | null;
|
|
65
|
+
} & CustomTableRowClickProps<D> & DataTestProp;
|
|
66
|
+
export type TableProps<D extends RowData> = {
|
|
67
|
+
data: D[];
|
|
68
|
+
columns: ColumnType<D>[];
|
|
69
|
+
pageCount?: number;
|
|
70
|
+
disableSortBy?: boolean;
|
|
71
|
+
pageSize?: number;
|
|
72
|
+
} & ExtendedPaginationProps & ControlledPaginationProps & ControlledSortingProps & CustomTableProps<D>;
|
|
73
|
+
/**
|
|
74
|
+
* ### Purpose
|
|
75
|
+
* Table component allows to arrange data in rows and columns.
|
|
76
|
+
*
|
|
77
|
+
* ### General Info
|
|
78
|
+
* - Has built-in pagination which can be either controlled or uncontrolled
|
|
79
|
+
* - Is able to sort data (you can provide custom sorting function)
|
|
80
|
+
* - Rows can be clickable. If you supply Table with `getHref` function rows will become <a> tags!
|
|
81
|
+
* - Is able to resize columns out of the box
|
|
82
|
+
*/
|
|
83
|
+
export declare const Table: <D extends RowData & {
|
|
84
|
+
subRows?: D[];
|
|
85
|
+
}>({ "data-test": dataTest, columns: propColumns, data, disableSortBy, onPaginationChange, onSortingChange, manualPagination, onRenderedContentChange, hidePagination, pageCount: controlledPageCount, defaultPageSize, paginationOptions, onRowClick, getHref, AnchorComponent, getCustomRowProps, getCustomCellProps, loading, noDataTitle, pageIndex: incomingPageIndex, initialState, className, headerClassName, contentClassName, footerClassName, searchValue, hideHeader, onPageChange, overlayLoading, onRowSelect, columnsOrdering, children, renderRowSubComponent, onCopy, canExpand, onStateChange, }: TableProps<D>) => ReactElement;
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import debounce from 'lodash/debounce';
|
|
2
|
+
import React, { useCallback, useEffect, useRef, useMemo, useState, } from 'react';
|
|
3
|
+
import cn from 'classnames';
|
|
4
|
+
import HotKeys from 'react-hot-keys';
|
|
5
|
+
import { useReactTable, getCoreRowModel, getPaginationRowModel, getSortedRowModel, getExpandedRowModel, getFilteredRowModel, } from '@tanstack/react-table';
|
|
6
|
+
import { AlertTriangle, ChevronDown, ChevronUp } from 'react-feather';
|
|
7
|
+
import { Pagination } from '../Pagination';
|
|
8
|
+
import { Cell } from './Cell';
|
|
9
|
+
import { EnhancedCellRenderer, EnhancedHeaderFooterRenderer } from './EnhancedRenderers';
|
|
10
|
+
import { Header } from './Header';
|
|
11
|
+
import { HeaderRow, Row } from './Row';
|
|
12
|
+
import { Loader } from '../Loader';
|
|
13
|
+
import { EmptyState } from '../EmptyState';
|
|
14
|
+
import { usePrevious } from '../../hooks/usePrevious';
|
|
15
|
+
import { Icon } from '../Icon';
|
|
16
|
+
import { TableContent } from './TableContent';
|
|
17
|
+
import { ROW_EXPANDER_COLUMN_ID } from './constants';
|
|
18
|
+
import { useColumnsSelection, ContextMenu } from './features/columnsSelection';
|
|
19
|
+
import { useRefValue } from '../../hooks';
|
|
20
|
+
import { useTrackTableState } from './useTrackTableState';
|
|
21
|
+
import { getCellStyle, getColumnDef, getRowStyle, getTableInitialState, prepareRow } from './utils';
|
|
22
|
+
import styles from './Table.module.scss';
|
|
23
|
+
import styleConsts from '../../../styles/constants/export.module.scss';
|
|
24
|
+
export * from './tableTypes';
|
|
25
|
+
/**
|
|
26
|
+
* ### Purpose
|
|
27
|
+
* Table component allows to arrange data in rows and columns.
|
|
28
|
+
*
|
|
29
|
+
* ### General Info
|
|
30
|
+
* - Has built-in pagination which can be either controlled or uncontrolled
|
|
31
|
+
* - Is able to sort data (you can provide custom sorting function)
|
|
32
|
+
* - Rows can be clickable. If you supply Table with `getHref` function rows will become <a> tags!
|
|
33
|
+
* - Is able to resize columns out of the box
|
|
34
|
+
*/
|
|
35
|
+
// Inspiration here: https://react-table.tanstack.com/docs/examples/basic
|
|
36
|
+
export const Table = ({ 'data-test': dataTest, columns: propColumns, data, disableSortBy, onPaginationChange, onSortingChange, manualPagination, onRenderedContentChange, hidePagination = false, pageCount: controlledPageCount, defaultPageSize = 10, paginationOptions, onRowClick, getHref, AnchorComponent, getCustomRowProps, getCustomCellProps, loading, noDataTitle = 'The table is empty', pageIndex: incomingPageIndex, initialState = { paginationOptions: { pageIndex: incomingPageIndex || 0, pageSize: defaultPageSize } }, className = '', headerClassName = '', contentClassName = '', footerClassName = '', searchValue, hideHeader, onPageChange, overlayLoading, onRowSelect, columnsOrdering = false, children, renderRowSubComponent, onCopy, canExpand, onStateChange, }) => {
|
|
37
|
+
var _a;
|
|
38
|
+
const getOncopy = useRefValue(onCopy);
|
|
39
|
+
const getCanExpand = useRefValue(canExpand);
|
|
40
|
+
const getRenderRowSubComponent = useRefValue(renderRowSubComponent);
|
|
41
|
+
const [contextMenuAnchorEl, setContextMenuAnchorEl] = useState(null);
|
|
42
|
+
const draggedColumnRef = useRef(null);
|
|
43
|
+
const previousIncomingPageIndex = usePrevious(incomingPageIndex);
|
|
44
|
+
const columns = useMemo(() => {
|
|
45
|
+
if (renderRowSubComponent || data.some((item) => 'subRows' in item)) {
|
|
46
|
+
const expander = {
|
|
47
|
+
width: 60,
|
|
48
|
+
disableResizing: true,
|
|
49
|
+
id: ROW_EXPANDER_COLUMN_ID,
|
|
50
|
+
Header: () => React.createElement("span", { role: "contentinfo", "aria-label": "row-expander-column-header" }),
|
|
51
|
+
Cell: ({ row }) => {
|
|
52
|
+
if (row.getCanExpand()) {
|
|
53
|
+
return (React.createElement("div", { tabIndex: 0, role: "button", "data-test": "row-expander", "aria-expanded": row.getIsExpanded(), className: styles.expander, onClick: (e) => {
|
|
54
|
+
e.preventDefault();
|
|
55
|
+
row.getToggleExpandedHandler()();
|
|
56
|
+
} },
|
|
57
|
+
React.createElement(Icon, { icon: row.getIsExpanded() ? ChevronUp : ChevronDown, ariaLabel: "row-expander" })));
|
|
58
|
+
}
|
|
59
|
+
return React.createElement(React.Fragment, null, null);
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
return [expander, ...propColumns].map(getColumnDef);
|
|
63
|
+
}
|
|
64
|
+
return propColumns.map(getColumnDef);
|
|
65
|
+
}, [propColumns, data, renderRowSubComponent]);
|
|
66
|
+
const defaultColumn = useMemo(() => ({
|
|
67
|
+
cell: (props) => React.createElement(EnhancedCellRenderer, { cell: props.cell, columnResizing: props.column.getIsResizing() }),
|
|
68
|
+
minSize: Number(styleConsts.tableColumnMinWidth), // minWidth is only used as a limit for resizing
|
|
69
|
+
size: Number(styleConsts.tableColumnWidth), // width is used for both the flex-basis and flex-grow
|
|
70
|
+
maxSize: Number(styleConsts.tableColumnMaxWidth), // maxWidth is only used as a limit for resizing
|
|
71
|
+
}), []);
|
|
72
|
+
const tableInitialState = useMemo(() => getTableInitialState(initialState), [initialState]);
|
|
73
|
+
const tableInstance = useReactTable({
|
|
74
|
+
columns,
|
|
75
|
+
data,
|
|
76
|
+
enableSorting: !disableSortBy,
|
|
77
|
+
enableMultiSort: false,
|
|
78
|
+
// Pass our hoisted table state
|
|
79
|
+
initialState: tableInitialState,
|
|
80
|
+
// Tell the usePagination hook that we'll handle our own data fetching
|
|
81
|
+
manualPagination: manualPagination,
|
|
82
|
+
// This means we'll also have to provide our own pageCount
|
|
83
|
+
pageCount: controlledPageCount,
|
|
84
|
+
defaultColumn,
|
|
85
|
+
columnResizeMode: 'onChange',
|
|
86
|
+
paginateExpandedRows: false,
|
|
87
|
+
getSubRows: useCallback((row) => row.subRows, []),
|
|
88
|
+
getRowCanExpand: useCallback((row) => {
|
|
89
|
+
var _a;
|
|
90
|
+
const cb = getCanExpand();
|
|
91
|
+
if (cb) {
|
|
92
|
+
return cb(prepareRow(row));
|
|
93
|
+
}
|
|
94
|
+
if (getRenderRowSubComponent()) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
return ((_a = row.subRows) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
98
|
+
}, [getCanExpand, getRenderRowSubComponent]),
|
|
99
|
+
getCoreRowModel: getCoreRowModel(),
|
|
100
|
+
getPaginationRowModel: getPaginationRowModel(),
|
|
101
|
+
getSortedRowModel: getSortedRowModel(),
|
|
102
|
+
getExpandedRowModel: getExpandedRowModel(),
|
|
103
|
+
getFilteredRowModel: getFilteredRowModel(),
|
|
104
|
+
});
|
|
105
|
+
const { getVisibleFlatColumns, nextPage, setPageIndex: goToPage, getRowCount, getState, previousPage, setPageSize, setGlobalFilter, setColumnOrder, getPageCount, getCanNextPage, getCanPreviousPage, getFooterGroups, } = tableInstance;
|
|
106
|
+
useTrackTableState(tableInstance, onStateChange);
|
|
107
|
+
const footerGroups = getFooterGroups();
|
|
108
|
+
const page = tableInstance.getPaginationRowModel().rows;
|
|
109
|
+
const rowsPerPage = getRowCount();
|
|
110
|
+
const pageCount = getPageCount();
|
|
111
|
+
const { sorting: sortBy, columnOrder, columnSizing: columnResizing, rowSelection: selectedRowIds, pagination: { pageIndex, pageSize }, } = getState();
|
|
112
|
+
const getColumnOrder = useRefValue(columnOrder);
|
|
113
|
+
// drag and drop
|
|
114
|
+
const onDragStart = useCallback((e) => {
|
|
115
|
+
draggedColumnRef.current = Number(e.dataTransfer.getData('text/plain'));
|
|
116
|
+
}, []);
|
|
117
|
+
const onDrop = useCallback((_, columnIndex) => {
|
|
118
|
+
if (draggedColumnRef.current !== null && columnIndex !== draggedColumnRef.current) {
|
|
119
|
+
const visibleColumns = getColumnOrder() || getVisibleFlatColumns().map(({ id }) => id);
|
|
120
|
+
const newColumns = [...visibleColumns];
|
|
121
|
+
newColumns[columnIndex] = visibleColumns[draggedColumnRef.current];
|
|
122
|
+
newColumns[draggedColumnRef.current] = visibleColumns[columnIndex];
|
|
123
|
+
setColumnOrder(newColumns);
|
|
124
|
+
}
|
|
125
|
+
}, [getColumnOrder, getVisibleFlatColumns, setColumnOrder]);
|
|
126
|
+
const columnsSelectionProps = useColumnsSelection({
|
|
127
|
+
rowsPerPage,
|
|
128
|
+
columnsPerRow: columns.length,
|
|
129
|
+
});
|
|
130
|
+
const { onEndSelection, getSelectedColumns, selectedColumnValuesRef } = columnsSelectionProps;
|
|
131
|
+
const onPaginationChangeDebounced = useMemo(() => (onPaginationChange ? debounce(onPaginationChange, 200) : undefined), [onPaginationChange]);
|
|
132
|
+
const onKeyUp = useCallback(() => {
|
|
133
|
+
const callback = getOncopy();
|
|
134
|
+
if (callback) {
|
|
135
|
+
const { columns, range } = getSelectedColumns();
|
|
136
|
+
if (columns.size || (range[0] !== undefined && range[0] !== undefined)) {
|
|
137
|
+
callback(selectedColumnValuesRef === null || selectedColumnValuesRef === void 0 ? void 0 : selectedColumnValuesRef.current);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}, [getOncopy, getSelectedColumns, selectedColumnValuesRef]);
|
|
141
|
+
useEffect(() => {
|
|
142
|
+
return () => {
|
|
143
|
+
document.body.removeEventListener('mouseup', onEndSelection);
|
|
144
|
+
document.body.removeEventListener('contextmenu', onEndSelection);
|
|
145
|
+
document.body.removeEventListener('keyup', onKeyUp);
|
|
146
|
+
};
|
|
147
|
+
}, [onKeyUp, onEndSelection]);
|
|
148
|
+
// Listen for changes in pagination and use the state to fetch new data. This is a recommended way to fetch new data: https://react-table.tanstack.com/docs/faq#how-can-i-use-the-table-state-to-fetch-new-data
|
|
149
|
+
useEffect(() => {
|
|
150
|
+
if (onPaginationChangeDebounced) {
|
|
151
|
+
onPaginationChangeDebounced({ pageIndex, pageSize });
|
|
152
|
+
}
|
|
153
|
+
}, [onPaginationChangeDebounced, pageIndex, pageSize]);
|
|
154
|
+
useEffect(() => {
|
|
155
|
+
if (onSortingChange) {
|
|
156
|
+
onSortingChange(sortBy);
|
|
157
|
+
}
|
|
158
|
+
}, [sortBy, onSortingChange]);
|
|
159
|
+
// Debounce our `fetchData` call for 200ms.
|
|
160
|
+
const onRenderedContentChangeDebounced = useMemo(() => (onRenderedContentChange ? debounce(onRenderedContentChange, 200) : undefined), [onRenderedContentChange]);
|
|
161
|
+
// Listen for changes in pagination and use the state to fetch new data. This is a recommended way to fetch new data: https://react-table.tanstack.com/docs/faq#how-can-i-use-the-table-state-to-fetch-new-data
|
|
162
|
+
useEffect(() => {
|
|
163
|
+
if (onRenderedContentChangeDebounced) {
|
|
164
|
+
onRenderedContentChangeDebounced(page.map(prepareRow));
|
|
165
|
+
}
|
|
166
|
+
}, [onRenderedContentChangeDebounced, page]);
|
|
167
|
+
// Apply global filter when searchValue changes
|
|
168
|
+
useEffect(() => {
|
|
169
|
+
if (searchValue !== undefined) {
|
|
170
|
+
;
|
|
171
|
+
setGlobalFilter(searchValue);
|
|
172
|
+
}
|
|
173
|
+
}, [searchValue, setGlobalFilter]);
|
|
174
|
+
useEffect(() => {
|
|
175
|
+
if (pageCount < pageIndex + 1) {
|
|
176
|
+
goToPage(pageCount - 1);
|
|
177
|
+
}
|
|
178
|
+
}, [pageIndex, pageCount, goToPage]);
|
|
179
|
+
useEffect(() => {
|
|
180
|
+
if (incomingPageIndex !== undefined && incomingPageIndex !== previousIncomingPageIndex) {
|
|
181
|
+
goToPage(incomingPageIndex);
|
|
182
|
+
}
|
|
183
|
+
}, [goToPage, incomingPageIndex, previousIncomingPageIndex]);
|
|
184
|
+
useEffect(() => {
|
|
185
|
+
if (onRowSelect) {
|
|
186
|
+
onRowSelect(Object.keys(selectedRowIds));
|
|
187
|
+
}
|
|
188
|
+
}, [onRowSelect, selectedRowIds]);
|
|
189
|
+
const hasData = data.length > 0;
|
|
190
|
+
// If at least one of the columns has footer then we display the footer row
|
|
191
|
+
const hasFooter = !loading && hasData && columns.some((col) => !!col.footer);
|
|
192
|
+
// Header row has always aria-rowindex = 1.
|
|
193
|
+
const headerIndex = 1;
|
|
194
|
+
// We're using this offset to display correct aria-rowindex when pagination is in action.
|
|
195
|
+
const cellIndexOffset = pageSize * pageIndex + headerIndex;
|
|
196
|
+
// Total row count.
|
|
197
|
+
const rowCount = data.length + headerIndex + (hasFooter ? 1 : 0);
|
|
198
|
+
const content = (React.createElement(React.Fragment, null,
|
|
199
|
+
React.createElement("div", { "data-test": dataTest !== null && dataTest !== void 0 ? dataTest : 'table-wrapper', className: className },
|
|
200
|
+
React.createElement("div", { className: cn(styles.container, {
|
|
201
|
+
[styles.spaceBottom]: !hidePagination,
|
|
202
|
+
}) },
|
|
203
|
+
React.createElement("div", { "data-test": "table", role: "table", "aria-rowcount": rowCount },
|
|
204
|
+
!hideHeader && (React.createElement("div", { "data-test": "table-header-row-group", role: "rowgroup", className: headerClassName }, tableInstance.getHeaderGroups().map((headerGroup) => (React.createElement(HeaderRow, { key: headerGroup.id, role: "row", ariaRowIndex: headerIndex, style: getRowStyle({ totalSize: tableInstance.getTotalSize() }) }, headerGroup.headers.map((header, i) => {
|
|
205
|
+
var _a, _b;
|
|
206
|
+
const canSort = header.column.getCanSort();
|
|
207
|
+
const isDraggable = columnsOrdering && header.id !== 'expander';
|
|
208
|
+
return (React.createElement(Header, { index: i, colSpan: 1, key: header.id, role: "columnheader", onDragStart: onDragStart, style: getCellStyle({ size: header.getSize(), minSize: header.column.columnDef.minSize || header.getSize() }), canSort: canSort, isSorted: !!header.column.getIsSorted(), isSortedDesc: (_a = sortBy[header.column.getSortIndex()]) === null || _a === void 0 ? void 0 : _a.desc, canResize: header.column.getCanResize(), onDrop: isDraggable ? onDrop : undefined, resizeHandler: header.getResizeHandler(), isResizing: header.column.getIsResizing(), align: (_b = header.column.columnDef.meta) === null || _b === void 0 ? void 0 : _b.align, onClick: canSort ? header.column.getToggleSortingHandler() : undefined },
|
|
209
|
+
React.createElement(EnhancedHeaderFooterRenderer, { type: "header", context: header.getContext() })));
|
|
210
|
+
})))))),
|
|
211
|
+
!overlayLoading && loading ? (React.createElement(Row, { role: "row" },
|
|
212
|
+
React.createElement(Cell, { role: "cell", align: "center", colSpan: columns.length, "data-test": "table-loader-cell" },
|
|
213
|
+
React.createElement(Loader, null)))) : hasData ? (React.createElement(HotKeys, { keyName: "ctrl+c, command+c", onKeyUp: onKeyUp },
|
|
214
|
+
React.createElement("div", { "data-test": "table-cell-row-group", className: styles.hotKeys },
|
|
215
|
+
React.createElement(TableContent, { page: page, onCopy: onCopy, getHref: getHref, totalSize: tableInstance.getTotalSize(), rootRef: setContextMenuAnchorEl, ...columnsSelectionProps, onRowClick: onRowClick, className: contentClassName, columnResizing: columnResizing, AnchorComponent: AnchorComponent, cellIndexOffset: cellIndexOffset, getCustomRowProps: getCustomRowProps, getCustomCellProps: getCustomCellProps, renderRowSubComponent: renderRowSubComponent })))) : (React.createElement("div", { role: "row" },
|
|
216
|
+
React.createElement("div", { role: "cell" },
|
|
217
|
+
React.createElement(EmptyState, { "data-test": "table-no-data", className: styles.empty, title: noDataTitle, icon: AlertTriangle, iconLabel: "Alert" })))),
|
|
218
|
+
hasFooter && (React.createElement("div", { "data-test": "table-footer-row-group", role: "rowgroup", className: footerClassName }, footerGroups.map((group) => {
|
|
219
|
+
const { id: footerGroupKey } = group;
|
|
220
|
+
return (
|
|
221
|
+
// Footer props getters do not provide role attributes
|
|
222
|
+
React.createElement(Row, { key: footerGroupKey, ariaRowIndex: rowCount, style: getRowStyle({ totalSize: tableInstance.getTotalSize() }), role: "row" }, group.headers.map((column) => {
|
|
223
|
+
var _a;
|
|
224
|
+
const { id: footerKey, column: { columnDef }, } = column;
|
|
225
|
+
return (
|
|
226
|
+
// Footer props getters do not provide role attributes
|
|
227
|
+
React.createElement(Cell, { key: footerKey, colSpan: 1, align: (_a = columnDef.meta) === null || _a === void 0 ? void 0 : _a.align, style: getCellStyle({ size: column.getSize(), maxSize: columnDef.maxSize, minSize: columnDef.minSize }), role: "cell" },
|
|
228
|
+
React.createElement(EnhancedHeaderFooterRenderer, { context: column.getContext(), type: "footer" })));
|
|
229
|
+
})));
|
|
230
|
+
}))))),
|
|
231
|
+
!hidePagination && hasData && (React.createElement(Pagination, { pageCount: pageCount, currentPage: pageIndex + 1, canPreviousPage: getCanPreviousPage(), canNextPage: getCanNextPage(), goToPage: (p) => {
|
|
232
|
+
if (onPageChange) {
|
|
233
|
+
onPageChange(p - 1);
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
goToPage(p - 1);
|
|
237
|
+
}
|
|
238
|
+
}, nextPage: () => {
|
|
239
|
+
if (onPageChange) {
|
|
240
|
+
onPageChange(pageIndex + 1);
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
nextPage();
|
|
244
|
+
}
|
|
245
|
+
}, previousPage: () => {
|
|
246
|
+
if (onPageChange) {
|
|
247
|
+
onPageChange(pageIndex - 1);
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
previousPage();
|
|
251
|
+
}
|
|
252
|
+
}, pageSize: pageSize, setPageSize: setPageSize, numberOfItems: data.length, pageSizeOptions: (_a = paginationOptions === null || paginationOptions === void 0 ? void 0 : paginationOptions.pageSizeOptions) !== null && _a !== void 0 ? _a : [5, 10, 20] }))),
|
|
253
|
+
onCopy && React.createElement(ContextMenu, { anchorElement: contextMenuAnchorEl, onCopy: onKeyUp })));
|
|
254
|
+
if (children) {
|
|
255
|
+
return children(content);
|
|
256
|
+
}
|
|
257
|
+
return content;
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=Table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,iBAAiB,CAAA;AACtC,OAAO,KAAK,EAAE,EAIZ,WAAW,EACX,SAAS,EACT,MAAM,EAEN,OAAO,EAEP,QAAQ,GACT,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,OAAO,MAAM,gBAAgB,CAAA;AACpC,OAAO,EACL,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,GAGpB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAErE,OAAO,EAAE,UAAU,EAAmB,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,GAAG,EAAY,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,C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
|
-
@use '
|
|
2
|
-
@use '
|
|
1
|
+
@use '../../../styles/constants' as c;
|
|
2
|
+
@use '../../../styles/helpers' as h;
|
|
3
3
|
|
|
4
4
|
.container {
|
|
5
5
|
display: block;
|
|
6
6
|
overflow-x: auto;
|
|
7
|
+
border: c.$borderWidth solid #d4d4d4;
|
|
8
|
+
border-radius: c.$borderRadius;
|
|
7
9
|
|
|
8
10
|
&.spaceBottom {
|
|
9
11
|
margin-bottom: c.$grid * 2;
|
|
@@ -15,6 +17,10 @@
|
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.expander {
|
|
20
|
+
&:hover {
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
&:focus-visible {
|
|
19
25
|
@include h.outlineSimple;
|
|
20
26
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes, FC, LegacyRef, MutableRefObject, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import React, { AnchorHTMLAttributes, FC, LegacyRef, MutableRefObject, ReactNode } from 'react';
|
|
2
|
+
import { Row as TableRow, ColumnSizingState } from '@tanstack/react-table';
|
|
3
3
|
import { CellProps } from './Cell';
|
|
4
|
+
import { CellType, RowData, RowType } from './tableTypes';
|
|
4
5
|
import { RowProps } from './Row';
|
|
5
6
|
import { useColumnsSelection } from './features/columnsSelection';
|
|
6
|
-
export type TableContentProps<D extends
|
|
7
|
+
export type TableContentProps<D extends RowData> = {
|
|
7
8
|
loading?: boolean;
|
|
8
|
-
page:
|
|
9
|
+
page: TableRow<D>[];
|
|
9
10
|
className?: string;
|
|
10
11
|
rootRef?: LegacyRef<HTMLDivElement>;
|
|
11
12
|
cellIndexOffset: number;
|
|
12
13
|
overlayLoading?: boolean;
|
|
13
14
|
onEndSelection: () => void;
|
|
14
|
-
columns: readonly Column<D>[];
|
|
15
15
|
onCopy?: (value: string[][]) => void;
|
|
16
|
-
prepareRow: (row: RowType<D>) => void;
|
|
17
16
|
onRowClick?: (row: RowType<D>) => void;
|
|
17
|
+
totalSize: number;
|
|
18
18
|
selectionStartedRef: MutableRefObject<boolean>;
|
|
19
19
|
getHref?: (row: RowType<D>) => string | undefined;
|
|
20
20
|
getCustomRowProps?: (row: RowType<D>) => RowProps;
|
|
21
|
-
renderRowSubComponent?: (props: RowType<D>) => ReactNode;
|
|
22
21
|
getCustomCellProps?: (cellInfo: CellType<D>) => CellProps;
|
|
23
|
-
|
|
22
|
+
renderRowSubComponent?: (props: RowType<D>) => ReactNode;
|
|
23
|
+
columnResizing: ColumnSizingState;
|
|
24
24
|
AnchorComponent?: FC<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
25
25
|
} & ReturnType<typeof useColumnsSelection>;
|
|
26
|
-
export declare const TableContent: <D extends
|
|
26
|
+
export declare const TableContent: <D extends RowData>(props: TableContentProps<D>) => React.JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import cn from 'classnames';
|
|
2
|
+
import HotKeys from 'react-hot-keys';
|
|
3
|
+
import React, { useCallback } from 'react';
|
|
4
|
+
import { Loader } from '../Loader';
|
|
5
|
+
import { getCellStyle, getRowStyle, prepareCell, prepareRow } from './utils';
|
|
6
|
+
import { CellWrapper } from './CellWrapper';
|
|
7
|
+
import { LinkRow, Row } from './Row';
|
|
8
|
+
import { isCellSelected } from './features/columnsSelection';
|
|
9
|
+
import styles from './TableContent.module.scss';
|
|
10
|
+
export const TableContent = (props) => {
|
|
11
|
+
const { rootRef, page, onCopy, getHref, loading, className, totalSize, onRowClick, overlayLoading, onEndSelection, AnchorComponent, cellIndexOffset, selectedColumns, onClickSelection, getCustomRowProps, getCustomCellProps, selectionStartedRef, renderRowSubComponent, onMouseEnterSelection, selectedColumnValuesRef, } = props;
|
|
12
|
+
const handleOnContextMenu = useCallback((e) => {
|
|
13
|
+
// disable table custom context menu
|
|
14
|
+
e.stopPropagation();
|
|
15
|
+
}, []);
|
|
16
|
+
return (React.createElement("div", { ref: rootRef, "data-test": "table-content", className: cn(styles.content, className), onMouseDown: () => {
|
|
17
|
+
selectionStartedRef.current = true;
|
|
18
|
+
document.body.addEventListener('mouseup', onEndSelection);
|
|
19
|
+
document.body.addEventListener('contextmenu', onEndSelection);
|
|
20
|
+
} },
|
|
21
|
+
page.map((row, rowIndex) => {
|
|
22
|
+
const { id: rowKey, ...restRowProps } = row;
|
|
23
|
+
const cells = row.getVisibleCells().map((cell, i) => {
|
|
24
|
+
var _a;
|
|
25
|
+
const { id: cellKey, ...restCellProps } = cell;
|
|
26
|
+
const cellId = `${rowIndex}:${i}`;
|
|
27
|
+
const selected = isCellSelected(cellId, selectedColumns);
|
|
28
|
+
const { style: cellStyle = {}, ...customProps } = getCustomCellProps ? getCustomCellProps(prepareCell(cell)) : {};
|
|
29
|
+
return (React.createElement(CellWrapper, { cell: cell, style: {
|
|
30
|
+
...cellStyle,
|
|
31
|
+
...getCellStyle({
|
|
32
|
+
size: restCellProps.column.getSize(),
|
|
33
|
+
minSize: restCellProps.column.columnDef.minSize || restCellProps.column.getSize(),
|
|
34
|
+
}),
|
|
35
|
+
}, role: "cell", key: cellKey, cellId: cellId, selected: selected, selectable: !!onCopy, onClickSelection: onClickSelection, align: (_a = cell.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.align, selectionStartedRef: selectionStartedRef, onMouseEnterSelection: onMouseEnterSelection, selectedColumnValuesRef: selectedColumnValuesRef, ...customProps }));
|
|
36
|
+
});
|
|
37
|
+
const expandedRow = row.getIsExpanded() && renderRowSubComponent ? (React.createElement(HotKeys, { disabled: true },
|
|
38
|
+
React.createElement("div", { tabIndex: -1, className: styles.subRowWrapper, onContextMenu: handleOnContextMenu }, renderRowSubComponent(prepareRow(row))))) : null;
|
|
39
|
+
if (getHref) {
|
|
40
|
+
const href = getHref(prepareRow(row));
|
|
41
|
+
if (href) {
|
|
42
|
+
return (React.createElement(React.Fragment, { key: rowKey },
|
|
43
|
+
React.createElement(LinkRow, { role: "row", AnchorComponent: AnchorComponent, ...restRowProps, ariaRowIndex: row.index + 1 + cellIndexOffset, href: href }, cells),
|
|
44
|
+
expandedRow));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return (React.createElement(React.Fragment, { key: rowKey },
|
|
48
|
+
React.createElement(Row, { role: "row", ...restRowProps, style: getRowStyle({ totalSize }), ...(getCustomRowProps ? getCustomRowProps(prepareRow(row)) : {}), ariaRowIndex: row.index + 1 + cellIndexOffset, onClick: onRowClick
|
|
49
|
+
? () => {
|
|
50
|
+
onRowClick(prepareRow(row));
|
|
51
|
+
}
|
|
52
|
+
: undefined }, cells),
|
|
53
|
+
expandedRow));
|
|
54
|
+
}),
|
|
55
|
+
overlayLoading && loading && (React.createElement("div", { className: styles.overlayLoading },
|
|
56
|
+
React.createElement(Loader, null)))));
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=TableContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableContent.js","sourceRoot":"","sources":["../../../src/components/Table/TableContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,OAAO,MAAM,gBAAgB,CAAA;AACpC,OAAO,KAAK,EAAE,EAAoE,WAAW,EAAc,MAAM,OAAO,CAAA;AAGxH,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,EAAE,OAAO,EAAE,GAAG,EAAY,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAuB,MAAM,6BAA6B,CAAA;AAEjF,OAAO,MAAM,MAAM,4BAA4B,CAAA;AAsB/C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAoB,KAA2B,EAAE,EAAE;IAC7E,MAAM,EACJ,OAAO,EACP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AG,CAAC,CAAC,CAAA;gBACrC,IAAI,IAAI,EAAE,CAAC;oBACT,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,MAAM;wBACzB,oBAAC,OAAO,IACN,IAAI,EAAC,KAAK,EACV,eAAe,EAAE,eAAe,KAC5B,YAAY,EAChB,YAAY,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,GAAG,eAAe,EAC7C,IAAI,EAAE,IAAI,IAET,KAAK,CACE;wBACT,WAAW,CACG,CAClB,CAAA;gBACH,CAAC;YACH,CAAC;YAED,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,MAAM;gBACzB,oBAAC,GAAG,IACF,IAAI,EAAC,KAAK,KACN,YAAY,EAChB,KAAK,EAAE,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,KAC7B,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EACjE,YAAY,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,GAAG,eAAe,EAC7C,OAAO,EACL,UAAU;wBACR,CAAC,CAAC,GAAG,EAAE;4BACH,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAA;wBAC7B,CAAC;wBACH,CAAC,CAAC,SAAS,IAGd,KAAK,CACF;gBACL,WAAW,CACG,CAClB,CAAA;QACH,CAAC,CAAC;QACD,cAAc,IAAI,OAAO,IAAI,CAC5B,6BAAK,SAAS,EAAE,MAAM,CAAC,cAAc;YACnC,oBAAC,MAAM,OAAG,CACN,CACP,CACG,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Table/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAA;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
export interface CellCopyablePopover {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
contentClassName?: string;
|
|
6
|
+
anchorElement?: HTMLElement | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const CellCopyablePopover: ({ children, contentClassName, anchorElement, isOpen, onClose, }: PropsWithChildren<CellCopyablePopover>) => React.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import cls from 'classnames';
|
|
3
3
|
import { Popover } from '../../../Popover';
|
|
4
4
|
import styles from './CellCopyablePopover.module.scss';
|
|
5
|
-
export const CellCopyablePopover = ({ children, contentClassName, anchorElement, isOpen, onClose }) => {
|
|
5
|
+
export const CellCopyablePopover = ({ children, contentClassName, anchorElement, isOpen, onClose, }) => {
|
|
6
6
|
var _a;
|
|
7
7
|
useEffect(() => {
|
|
8
8
|
return () => onClose();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellCopyablePopover.js","sourceRoot":"","sources":["../../../../../src/components/Table/features/columnsSelection/CellCopyablePopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,GAAG,MAAM,YAAY,CAAA;AAE5B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,MAAM,MAAM,mCAAmC,CAAA;AAStD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,MAAM,EACN,OAAO,GACgC,EAAE,EAAE;;IAC3C,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,GAAG,EAAE,CAAC,OAAO,EAAE,CAAA;IACxB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,oBAAC,OAAO,IACN,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAC,WAAW,EACrB,SAAS,EAAE,MAAM,CAAC,IAAI,eACZ,uBAAuB,EACjC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,mCAAI,CAAC,CAAC,EAAE;QAElD,6BACE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAChD,aAAa,EAAE,OAAO,EACtB,KAAK,EAAE,EAAE,SAAS,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW,EAAE,IAEtF,QAAQ,CACL,CACE,CACX,CAAA;AACH,CAAC,CAAA"}
|
package/lib/{Table → components/Table}/features/columnsSelection/ContextMenu/ContextMenu.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface ContextMenuProps {
|
|
3
3
|
anchorElement: HTMLElement | null;
|
|
4
4
|
onCopy: () => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const ContextMenu: ({ anchorElement, onCopy }: ContextMenuProps) => JSX.Element;
|
|
6
|
+
export declare const ContextMenu: ({ anchorElement, onCopy }: ContextMenuProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../../../../../src/components/Table/features/columnsSelection/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEpC,OAAO,EAAmB,WAAW,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAE7F,OAAO,MAAM,MAAM,2BAA2B,CAAA;AAO9C,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,aAAa,EAAE,MAAM,EAAoB,EAAE,EAAE;IACzE,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC;QACJ;YACE,OAAO,EAAE,CACP;;gBACO,oBAAC,IAAI,OAAG,CACZ,CACJ;YACD,SAAS,EAAE,MAAM,CAAC,IAAI;YACtB,OAAO,EAAE,MAAM;SAChB;KACF,EACD,CAAC,MAAM,CAAC,CACT,CAAA;IACD,OAAO,oBAAC,mBAAmB,IAAC,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAI,CAAA;AAC5E,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/Table/features/columnsSelection/ContextMenu/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columnsSelection.js","sourceRoot":"","sources":["../../../../../src/components/Table/features/columnsSelection/columnsSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAQ/C,MAAM,2BAA2B,GAAyB;IACxD,OAAO,EAAE,IAAI,GAAG,EAAE;IAClB,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;CAC9B,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAA4B,EAAE,EAAE;IAClE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,KAAK,CAAA;IAE5C,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAuB,2BAA2B,CAAC,CAAA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,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;YAE3D,OAAO,UAAU,CAAC,CAAC,CAAC,IAAI,WAAW,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,WAAW,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,YAAY,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,YAAY,CAAA;QACvI,CAAC;QAED,OAAO,MAAM,KAAK,KAAK,CAAA;IACzB,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAc,EAAE,eAAqC,EAAW,EAAE;IAC/F,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;AACtF,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Table/features/columnsSelection/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/components/Table/helpers.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAoB,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAiB,EAAE,EAAE;IACxF,IAAI,EAAE,EAAE,CAAC;QACP,OAAO,EAAE,CAAA;IACX,CAAC;IAED,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACjC,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,OAAO,MAAgB,CAAA;AACzB,CAAC,CAAA"}
|