@hazelcast/ui 1.3.3-next.9 → 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/components/Alert.d.ts +33 -0
- package/lib/components/Alert.js +51 -0
- package/lib/components/Alert.js.map +1 -0
- package/lib/components/Alert.module.scss +141 -0
- 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.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.js.map +1 -0
- package/lib/components/AppHeader/EnvironmentBadge/EnvironmentBadge.d.ts +5 -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.js.map +1 -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.js.map +1 -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.map +1 -0
- package/lib/components/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss +16 -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.map +1 -0
- package/lib/components/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss +13 -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.js.map +1 -0
- package/lib/components/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.d.ts +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.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.map +1 -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.map +1 -0
- package/lib/components/AppSidebar/index.js.map +1 -0
- package/lib/components/AutocompleteField.js +166 -0
- package/lib/components/AutocompleteField.js.map +1 -0
- package/lib/components/AutocompleteField.module.scss +164 -0
- package/lib/components/AutocompleteFieldFormik.d.ts +9 -0
- package/lib/components/AutocompleteFieldFormik.js +19 -0
- package/lib/components/AutocompleteFieldFormik.js.map +1 -0
- package/lib/components/Badge.js +44 -0
- package/lib/components/Badge.js.map +1 -0
- package/lib/components/Badge.module.scss +55 -0
- package/lib/components/Button.d.ts +97 -0
- package/lib/components/Button.js +64 -0
- package/lib/components/Button.js.map +1 -0
- package/lib/components/Button.module.scss +329 -0
- package/lib/components/Calendar/Calendar.d.ts +17 -0
- package/lib/components/Calendar/Calendar.js +38 -0
- package/lib/components/Calendar/Calendar.js.map +1 -0
- package/lib/components/Calendar/Calendar.module.scss +185 -0
- package/lib/components/Calendar/CalendarRange.js.map +1 -0
- package/lib/components/Calendar/CalendarRange.module.scss +21 -0
- package/lib/components/Calendar/components/CalendarHeader.js +13 -0
- package/lib/components/Calendar/components/CalendarHeader.js.map +1 -0
- package/lib/components/Calendar/components/CalendarInput.d.ts +16 -0
- package/lib/components/Calendar/components/CalendarInput.js +12 -0
- package/lib/components/Calendar/components/CalendarInput.js.map +1 -0
- package/lib/components/Calendar/components/CalendarTime.d.ts +10 -0
- package/lib/components/Calendar/components/CalendarTime.js +69 -0
- package/lib/components/Calendar/components/CalendarTime.js.map +1 -0
- package/lib/components/Calendar/components/CalendarTime.module.scss +72 -0
- package/lib/components/Calendar/helpers/consts.js.map +1 -0
- package/lib/components/Card.d.ts +26 -0
- package/lib/components/Card.js +21 -0
- package/lib/components/Card.js.map +1 -0
- package/lib/components/Card.module.scss +92 -0
- package/lib/components/Carousel.d.ts +26 -0
- package/lib/components/Carousel.js +28 -0
- package/lib/components/Carousel.js.map +1 -0
- package/lib/components/Carousel.module.scss +43 -0
- package/lib/components/CenteredLoader.d.ts +5 -0
- package/lib/components/CenteredLoader.js.map +1 -0
- package/lib/components/CenteredLoader.module.scss +11 -0
- package/lib/components/Checkbox.d.ts +35 -0
- package/lib/components/Checkbox.js +38 -0
- package/lib/components/Checkbox.js.map +1 -0
- package/lib/components/Checkbox.module.scss +106 -0
- package/lib/components/CheckboxFormik.d.ts +10 -0
- package/lib/components/CheckboxFormik.js +17 -0
- package/lib/components/CheckboxFormik.js.map +1 -0
- package/lib/components/CircularProgressBar.js.map +1 -0
- package/lib/components/CircularProgressBar.module.scss +37 -0
- package/lib/components/ContextMenu.js +61 -0
- package/lib/components/ContextMenu.js.map +1 -0
- package/lib/components/ContextMenu.module.scss +37 -0
- package/lib/components/Dialog.js +40 -0
- package/lib/components/Dialog.js.map +1 -0
- package/lib/components/Dialog.module.scss +62 -0
- package/lib/components/EmptyState.d.ts +52 -0
- package/lib/components/EmptyState.js.map +1 -0
- package/lib/components/EmptyState.module.scss +87 -0
- package/lib/components/Error.d.ts +13 -0
- package/lib/components/Error.js +8 -0
- package/lib/components/Error.js.map +1 -0
- package/lib/components/Error.module.scss +12 -0
- package/lib/components/FieldHeader.d.ts +24 -0
- package/lib/components/FieldHeader.js.map +1 -0
- package/lib/components/FieldHeader.module.scss +20 -0
- package/lib/components/Help.d.ts +15 -0
- package/lib/components/Help.js +14 -0
- package/lib/components/Help.js.map +1 -0
- package/lib/components/Help.module.scss +9 -0
- package/lib/components/Icon.d.ts +30 -0
- package/lib/components/Icon.js +27 -0
- package/lib/components/Icon.js.map +1 -0
- package/lib/components/Icon.module.scss +33 -0
- package/lib/components/IconButton.d.ts +49 -0
- package/lib/components/IconButton.js +25 -0
- package/lib/components/IconButton.js.map +1 -0
- package/lib/components/IconButton.module.scss +59 -0
- package/lib/components/InteractiveList.d.ts +38 -0
- package/lib/components/InteractiveList.js +47 -0
- package/lib/components/InteractiveList.js.map +1 -0
- package/lib/components/InteractiveList.module.scss +72 -0
- package/lib/components/InteractiveListFormik.d.ts +22 -0
- package/lib/components/InteractiveListFormik.js +96 -0
- package/lib/components/InteractiveListFormik.js.map +1 -0
- package/lib/components/Label.d.ts +9 -0
- package/lib/components/Label.js +5 -0
- package/lib/components/Label.js.map +1 -0
- package/lib/components/Label.module.scss +12 -0
- package/lib/components/Link.d.ts +53 -0
- package/lib/components/Link.js +45 -0
- package/lib/components/Link.js.map +1 -0
- package/lib/components/Link.module.scss +64 -0
- package/lib/components/Loader.d.ts +12 -0
- package/lib/components/Loader.js +26 -0
- package/lib/components/Loader.js.map +1 -0
- package/lib/components/Loader.module.scss +74 -0
- package/lib/components/Modal.d.ts +26 -0
- package/lib/components/Modal.js +41 -0
- package/lib/components/Modal.js.map +1 -0
- package/lib/components/Modal.module.scss +109 -0
- package/lib/components/Notification.js.map +1 -0
- package/lib/components/Notification.module.scss +97 -0
- package/lib/components/NumberBadge.js.map +1 -0
- package/lib/components/NumberBadge.module.scss +13 -0
- package/lib/components/NumberField.d.ts +33 -0
- package/lib/components/NumberField.js +141 -0
- package/lib/components/NumberField.js.map +1 -0
- package/lib/components/NumberField.module.scss +76 -0
- package/lib/components/NumberFieldFormik.d.ts +10 -0
- package/lib/components/NumberFieldFormik.js +52 -0
- package/lib/components/NumberFieldFormik.js.map +1 -0
- package/lib/components/Overlay.d.ts +23 -0
- package/lib/components/Overlay.js.map +1 -0
- package/lib/components/Overlay.module.scss +108 -0
- package/lib/components/Pagination.js +106 -0
- package/lib/components/Pagination.js.map +1 -0
- package/lib/components/Pagination.module.scss +117 -0
- package/lib/components/PasswordField.d.ts +29 -0
- package/lib/components/PasswordField.js +26 -0
- package/lib/components/PasswordField.js.map +1 -0
- package/lib/components/PasswordField.module.scss +26 -0
- package/lib/components/PasswordFieldFormik.d.ts +10 -0
- package/lib/components/PasswordFieldFormik.js +17 -0
- package/lib/components/PasswordFieldFormik.js.map +1 -0
- package/lib/components/Popover.d.ts +23 -0
- package/lib/components/Popover.js +120 -0
- package/lib/components/Popover.js.map +1 -0
- package/lib/components/Popover.module.scss +12 -0
- package/lib/components/Radio.d.ts +26 -0
- package/lib/components/Radio.js +34 -0
- package/lib/components/Radio.js.map +1 -0
- package/lib/components/Radio.module.scss +112 -0
- package/lib/components/RadioFormik.js.map +1 -0
- package/lib/components/RadioGroup.d.ts +21 -0
- package/lib/components/RadioGroup.js +24 -0
- package/lib/components/RadioGroup.js.map +1 -0
- package/lib/components/RadioGroup.module.scss +21 -0
- package/lib/components/RadioGroupContext.d.ts +6 -0
- package/lib/components/RadioGroupContext.js.map +1 -0
- package/lib/components/RadioGroupFormik.d.ts +10 -0
- package/lib/components/RadioGroupFormik.js +17 -0
- package/lib/components/RadioGroupFormik.js.map +1 -0
- package/lib/components/SegmentedControl.d.ts +18 -0
- package/lib/components/SegmentedControl.js.map +1 -0
- package/lib/components/SegmentedControl.module.scss +81 -0
- package/lib/components/SegmentedControlFormik.d.ts +9 -0
- package/lib/components/SegmentedControlFormik.js +13 -0
- package/lib/components/SegmentedControlFormik.js.map +1 -0
- package/lib/components/Select/CheckableSelectField.d.ts +40 -0
- package/lib/components/Select/CheckableSelectField.js +78 -0
- package/lib/components/Select/CheckableSelectField.js.map +1 -0
- package/lib/components/Select/CheckableSelectField.module.scss +100 -0
- package/lib/components/Select/CheckableSelectFieldFormik.d.ts +10 -0
- package/lib/components/Select/CheckableSelectFieldFormik.js +19 -0
- package/lib/components/Select/CheckableSelectFieldFormik.js.map +1 -0
- package/lib/components/Select/Common.js +54 -0
- package/lib/components/Select/Common.js.map +1 -0
- package/lib/components/Select/Common.module.scss +69 -0
- package/lib/components/Select/MultiSelectField.d.ts +28 -0
- package/lib/components/Select/MultiSelectField.js +113 -0
- package/lib/components/Select/MultiSelectField.js.map +1 -0
- package/lib/components/Select/MultiSelectField.module.scss +72 -0
- package/lib/components/Select/MultiSelectFieldFormik.d.ts +11 -0
- package/lib/components/Select/MultiSelectFieldFormik.js +19 -0
- package/lib/components/Select/MultiSelectFieldFormik.js.map +1 -0
- package/lib/components/Select/SelectField.d.ts +43 -0
- package/lib/components/Select/SelectField.js +102 -0
- package/lib/components/Select/SelectField.js.map +1 -0
- package/lib/components/Select/SelectField.module.scss +194 -0
- package/lib/components/Select/SelectFieldFormik.d.ts +10 -0
- package/lib/components/Select/SelectFieldFormik.js +19 -0
- package/lib/components/Select/SelectFieldFormik.js.map +1 -0
- package/lib/components/Select/helpers.d.ts +12 -0
- package/lib/components/Select/helpers.js +29 -0
- 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/components/SimpleTable.module.scss +28 -0
- package/lib/components/Slider.d.ts +59 -0
- package/lib/components/Slider.js +205 -0
- package/lib/components/Slider.js.map +1 -0
- package/lib/components/Slider.module.scss +277 -0
- package/lib/components/SliderFormik.d.ts +9 -0
- package/lib/components/SliderFormik.js +14 -0
- package/lib/components/SliderFormik.js.map +1 -0
- package/lib/components/Table/Cell.d.ts +27 -0
- package/lib/components/Table/Cell.js +60 -0
- package/lib/components/Table/Cell.js.map +1 -0
- package/lib/components/Table/Cell.module.scss +61 -0
- package/lib/components/Table/CellWrapper.d.ts +11 -0
- package/lib/components/Table/CellWrapper.js +29 -0
- package/lib/components/Table/CellWrapper.js.map +1 -0
- package/lib/components/Table/EnhancedRenderers.d.ts +21 -0
- package/lib/components/Table/EnhancedRenderers.js +13 -0
- package/lib/components/Table/EnhancedRenderers.js.map +1 -0
- package/lib/components/Table/Header.d.ts +25 -0
- package/lib/components/Table/Header.js +94 -0
- package/lib/components/Table/Header.js.map +1 -0
- package/lib/components/Table/Header.module.scss +128 -0
- package/lib/components/Table/Row.d.ts +19 -0
- package/lib/components/Table/Row.js +24 -0
- package/lib/components/Table/Row.js.map +1 -0
- package/lib/components/Table/Row.module.scss +59 -0
- 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/components/Table/Table.module.scss +31 -0
- package/lib/components/Table/TableContent.d.ts +26 -0
- 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/components/Table/features/columnsSelection/CellCopyablePopover.js +13 -0
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.js.map +1 -0
- package/lib/components/Table/features/columnsSelection/CellCopyablePopover.module.scss +12 -0
- package/lib/components/Table/features/columnsSelection/ContextMenu/ContextMenu.d.ts +6 -0
- 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/components/Table/features/columnsSelection/columnsSelection.d.ts +18 -0
- package/lib/components/Table/features/columnsSelection/columnsSelection.js +71 -0
- 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/components/Tabs/Tab.d.ts +33 -0
- package/lib/components/Tabs/Tab.js +39 -0
- package/lib/components/Tabs/Tab.js.map +1 -0
- package/lib/components/Tabs/Tab.module.scss +58 -0
- package/lib/components/Tabs/TabContext.js.map +1 -0
- package/lib/components/Tabs/TabList.js +58 -0
- package/lib/components/Tabs/TabList.js.map +1 -0
- package/lib/components/Tabs/TabPanel.d.ts +14 -0
- package/lib/components/Tabs/TabPanel.js +17 -0
- package/lib/components/Tabs/TabPanel.js.map +1 -0
- package/lib/components/Tabs/index.js.map +1 -0
- package/lib/components/Terminal.d.ts +25 -0
- package/lib/components/Terminal.js +113 -0
- package/lib/components/Terminal.js.map +1 -0
- package/lib/components/Terminal.module.scss +109 -0
- package/lib/components/TextArea.d.ts +19 -0
- package/lib/components/TextArea.js +31 -0
- package/lib/components/TextArea.js.map +1 -0
- package/lib/components/TextArea.module.scss +144 -0
- package/lib/components/TextAreaFormik.d.ts +9 -0
- package/lib/components/TextAreaFormik.js.map +1 -0
- package/lib/components/TextField.d.ts +50 -0
- package/lib/components/TextField.js +65 -0
- package/lib/components/TextField.js.map +1 -0
- package/lib/components/TextField.module.scss +209 -0
- package/lib/components/TextFieldFormik.d.ts +11 -0
- package/lib/components/TextFieldFormik.js +23 -0
- package/lib/components/TextFieldFormik.js.map +1 -0
- package/lib/components/TimeField.d.ts +17 -0
- package/lib/components/TimeField.js +15 -0
- package/lib/components/TimeField.js.map +1 -0
- package/lib/components/TimeFieldFormik.d.ts +9 -0
- package/lib/components/TimeFieldFormik.js.map +1 -0
- package/lib/components/Toast.d.ts +29 -0
- package/lib/components/Toast.js +56 -0
- package/lib/components/Toast.js.map +1 -0
- package/lib/components/Toast.module.scss +53 -0
- package/lib/components/Toggle.d.ts +21 -0
- package/lib/components/Toggle.js +22 -0
- package/lib/components/Toggle.js.map +1 -0
- package/lib/components/Toggle.module.scss +175 -0
- package/lib/components/ToggleFormik.d.ts +9 -0
- package/lib/components/ToggleFormik.js +12 -0
- package/lib/components/ToggleFormik.js.map +1 -0
- package/lib/components/Tooltip.d.ts +42 -0
- package/lib/components/Tooltip.js +139 -0
- package/lib/components/Tooltip.js.map +1 -0
- package/lib/components/Tooltip.module.scss +175 -0
- package/lib/components/TruncatedText.d.ts +15 -0
- package/lib/components/TruncatedText.js +23 -0
- package/lib/components/TruncatedText.js.map +1 -0
- package/lib/components/TruncatedText.module.scss +9 -0
- 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 -94
- package/styles/constants/_colors.scss +36 -16
- package/styles/constants/_typography.scss +0 -7
- 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.d.ts +0 -33
- package/lib/Alert.js +0 -51
- package/lib/Alert.js.map +0 -1
- package/lib/Alert.module.scss +0 -140
- package/lib/AppHeader/AppHeader.d.ts +0 -14
- package/lib/AppHeader/AppHeader.js +0 -15
- package/lib/AppHeader/AppHeader.js.map +0 -1
- package/lib/AppHeader/AppHeader.module.scss +0 -25
- package/lib/AppHeader/AppHeaderLogo/AppHeaderLogo.d.ts +0 -12
- package/lib/AppHeader/AppHeaderLogo/AppHeaderLogo.js +0 -7
- package/lib/AppHeader/AppHeaderLogo/AppHeaderLogo.js.map +0 -1
- package/lib/AppHeader/AppHeaderLogo/AppHeaderLogo.module.scss +0 -29
- package/lib/AppHeader/AppHeaderLogo/index.js.map +0 -1
- package/lib/AppHeader/AppHeaderMenu/AppHeaderMenu.d.ts +0 -7
- package/lib/AppHeader/AppHeaderMenu/AppHeaderMenu.js +0 -14
- package/lib/AppHeader/AppHeaderMenu/AppHeaderMenu.js.map +0 -1
- package/lib/AppHeader/AppHeaderMenu/AppHeaderMenu.module.scss +0 -11
- package/lib/AppHeader/AppHeaderMenu/index.js.map +0 -1
- package/lib/AppHeader/EnvironmentBadge/EnvironmentBadge.d.ts +0 -5
- package/lib/AppHeader/EnvironmentBadge/EnvironmentBadge.js.map +0 -1
- package/lib/AppHeader/EnvironmentBadge/EnvironmentBadge.module.scss +0 -13
- package/lib/AppHeader/EnvironmentBadge/index.js.map +0 -1
- package/lib/AppHeader/SelectCluster/SelectCluster.js.map +0 -1
- package/lib/AppHeader/SelectCluster/SelectCluster.module.scss +0 -99
- package/lib/AppHeader/SelectCluster/index.js.map +0 -1
- package/lib/AppHeader/index.js.map +0 -1
- package/lib/AppSidebar/AppSidebar.d.ts +0 -10
- package/lib/AppSidebar/AppSidebar.js +0 -31
- package/lib/AppSidebar/AppSidebar.js.map +0 -1
- package/lib/AppSidebar/AppSidebar.module.scss +0 -64
- package/lib/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.d.ts +0 -6
- package/lib/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js.map +0 -1
- package/lib/AppSidebar/AppSidebarFavoriteButton/AppSidebarFavoriteButton.module.scss +0 -16
- package/lib/AppSidebar/AppSidebarFavoriteButton/index.js.map +0 -1
- package/lib/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.d.ts +0 -7
- package/lib/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.js.map +0 -1
- package/lib/AppSidebar/AppSidebarFavorites/AppSidebarFavorites.module.scss +0 -12
- package/lib/AppSidebar/AppSidebarFavorites/index.js.map +0 -1
- package/lib/AppSidebar/AppSidebarItem/AppSidebarItem.d.ts +0 -30
- package/lib/AppSidebar/AppSidebarItem/AppSidebarItem.js +0 -25
- package/lib/AppSidebar/AppSidebarItem/AppSidebarItem.js.map +0 -1
- package/lib/AppSidebar/AppSidebarItem/AppSidebarItem.module.scss +0 -86
- package/lib/AppSidebar/AppSidebarItem/index.js.map +0 -1
- package/lib/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.d.ts +0 -6
- package/lib/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js.map +0 -1
- package/lib/AppSidebar/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.module.scss +0 -24
- package/lib/AppSidebar/AppSidebarMenuItemCounter/index.js.map +0 -1
- package/lib/AppSidebar/AppSidebarSection/AppSidebarSection.d.ts +0 -12
- package/lib/AppSidebar/AppSidebarSection/AppSidebarSection.js +0 -15
- package/lib/AppSidebar/AppSidebarSection/AppSidebarSection.js.map +0 -1
- package/lib/AppSidebar/AppSidebarSection/AppSidebarSection.module.scss +0 -55
- package/lib/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.d.ts +0 -11
- package/lib/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js +0 -45
- package/lib/AppSidebar/AppSidebarSection/AppSidebarSectionExpandable.js.map +0 -1
- package/lib/AppSidebar/AppSidebarSection/appSidebarSectionContext.d.ts +0 -2
- package/lib/AppSidebar/AppSidebarSection/appSidebarSectionContext.js.map +0 -1
- package/lib/AppSidebar/AppSidebarSection/index.js.map +0 -1
- package/lib/AppSidebar/appSidebarContext.d.ts +0 -10
- package/lib/AppSidebar/appSidebarContext.js.map +0 -1
- package/lib/AppSidebar/index.js.map +0 -1
- package/lib/AutocompleteField.js +0 -169
- package/lib/AutocompleteField.js.map +0 -1
- package/lib/AutocompleteField.module.scss +0 -164
- package/lib/AutocompleteFieldFormik.d.ts +0 -9
- package/lib/AutocompleteFieldFormik.js +0 -19
- package/lib/AutocompleteFieldFormik.js.map +0 -1
- package/lib/Badge.js +0 -44
- package/lib/Badge.js.map +0 -1
- package/lib/Badge.module.scss +0 -55
- package/lib/Button.d.ts +0 -100
- package/lib/Button.js +0 -93
- package/lib/Button.js.map +0 -1
- package/lib/Button.module.scss +0 -328
- package/lib/Calendar/Calendar.d.ts +0 -16
- package/lib/Calendar/Calendar.js +0 -41
- package/lib/Calendar/Calendar.js.map +0 -1
- package/lib/Calendar/Calendar.module.scss +0 -185
- package/lib/Calendar/CalendarRange.js.map +0 -1
- package/lib/Calendar/CalendarRange.module.scss +0 -21
- package/lib/Calendar/components/CalendarHeader.js +0 -13
- package/lib/Calendar/components/CalendarHeader.js.map +0 -1
- package/lib/Calendar/components/CalendarInput.d.ts +0 -15
- package/lib/Calendar/components/CalendarInput.js +0 -12
- package/lib/Calendar/components/CalendarInput.js.map +0 -1
- package/lib/Calendar/components/CalendarTime.d.ts +0 -9
- package/lib/Calendar/components/CalendarTime.js +0 -69
- package/lib/Calendar/components/CalendarTime.js.map +0 -1
- package/lib/Calendar/components/CalendarTime.module.scss +0 -72
- package/lib/Calendar/helpers/consts.js.map +0 -1
- package/lib/Card.d.ts +0 -24
- package/lib/Card.js +0 -20
- package/lib/Card.js.map +0 -1
- package/lib/Card.module.scss +0 -59
- package/lib/Carousel.d.ts +0 -26
- package/lib/Carousel.js +0 -28
- package/lib/Carousel.js.map +0 -1
- package/lib/Carousel.module.scss +0 -43
- package/lib/CenteredLoader.d.ts +0 -5
- package/lib/CenteredLoader.js.map +0 -1
- package/lib/CenteredLoader.module.scss +0 -11
- package/lib/Checkbox.d.ts +0 -35
- package/lib/Checkbox.js +0 -38
- package/lib/Checkbox.js.map +0 -1
- package/lib/Checkbox.module.scss +0 -106
- package/lib/CheckboxFormik.d.ts +0 -10
- package/lib/CheckboxFormik.js +0 -17
- package/lib/CheckboxFormik.js.map +0 -1
- package/lib/CircularProgressBar.js.map +0 -1
- package/lib/CircularProgressBar.module.scss +0 -37
- package/lib/ContextMenu.js +0 -61
- package/lib/ContextMenu.js.map +0 -1
- package/lib/ContextMenu.module.scss +0 -37
- package/lib/Dialog.js +0 -36
- package/lib/Dialog.js.map +0 -1
- package/lib/Dialog.module.scss +0 -62
- package/lib/EmptyState.d.ts +0 -52
- package/lib/EmptyState.js.map +0 -1
- package/lib/EmptyState.module.scss +0 -87
- package/lib/Error.d.ts +0 -12
- package/lib/Error.js +0 -8
- package/lib/Error.js.map +0 -1
- package/lib/Error.module.scss +0 -12
- package/lib/FieldHeader.d.ts +0 -24
- package/lib/FieldHeader.js.map +0 -1
- package/lib/FieldHeader.module.scss +0 -20
- package/lib/Help.d.ts +0 -14
- package/lib/Help.js +0 -14
- package/lib/Help.js.map +0 -1
- package/lib/Help.module.scss +0 -9
- package/lib/Icon.d.ts +0 -29
- package/lib/Icon.js +0 -27
- package/lib/Icon.js.map +0 -1
- package/lib/Icon.module.scss +0 -33
- package/lib/IconButton.d.ts +0 -49
- package/lib/IconButton.js +0 -25
- package/lib/IconButton.js.map +0 -1
- package/lib/IconButton.module.scss +0 -59
- package/lib/InteractiveList.d.ts +0 -38
- package/lib/InteractiveList.js +0 -49
- package/lib/InteractiveList.js.map +0 -1
- package/lib/InteractiveList.module.scss +0 -72
- package/lib/InteractiveListFormik.d.ts +0 -22
- package/lib/InteractiveListFormik.js +0 -96
- package/lib/InteractiveListFormik.js.map +0 -1
- package/lib/Label.d.ts +0 -8
- package/lib/Label.js +0 -5
- package/lib/Label.js.map +0 -1
- package/lib/Label.module.scss +0 -12
- package/lib/Link.d.ts +0 -53
- package/lib/Link.js +0 -44
- package/lib/Link.js.map +0 -1
- package/lib/Link.module.scss +0 -63
- package/lib/Loader.d.ts +0 -11
- package/lib/Loader.js +0 -26
- package/lib/Loader.js.map +0 -1
- package/lib/Loader.module.scss +0 -74
- package/lib/Modal.d.ts +0 -26
- package/lib/Modal.js +0 -41
- package/lib/Modal.js.map +0 -1
- package/lib/Modal.module.scss +0 -108
- package/lib/Notification.js.map +0 -1
- package/lib/Notification.module.scss +0 -97
- package/lib/NumberBadge.js.map +0 -1
- package/lib/NumberBadge.module.scss +0 -13
- package/lib/NumberField.d.ts +0 -33
- package/lib/NumberField.js +0 -143
- package/lib/NumberField.js.map +0 -1
- package/lib/NumberField.module.scss +0 -76
- package/lib/NumberFieldFormik.d.ts +0 -10
- package/lib/NumberFieldFormik.js +0 -54
- package/lib/NumberFieldFormik.js.map +0 -1
- package/lib/Overlay.d.ts +0 -23
- package/lib/Overlay.js.map +0 -1
- package/lib/Overlay.module.scss +0 -107
- package/lib/Pagination.js +0 -106
- package/lib/Pagination.js.map +0 -1
- package/lib/Pagination.module.scss +0 -117
- package/lib/PasswordField.d.ts +0 -29
- package/lib/PasswordField.js +0 -26
- package/lib/PasswordField.js.map +0 -1
- package/lib/PasswordField.module.scss +0 -26
- package/lib/PasswordFieldFormik.d.ts +0 -10
- package/lib/PasswordFieldFormik.js +0 -17
- package/lib/PasswordFieldFormik.js.map +0 -1
- package/lib/Popover.d.ts +0 -23
- package/lib/Popover.js +0 -93
- package/lib/Popover.js.map +0 -1
- package/lib/Popover.module.scss +0 -12
- package/lib/Radio.d.ts +0 -26
- package/lib/Radio.js +0 -34
- package/lib/Radio.js.map +0 -1
- package/lib/Radio.module.scss +0 -112
- package/lib/RadioFormik.js.map +0 -1
- package/lib/RadioGroup.d.ts +0 -21
- package/lib/RadioGroup.js +0 -24
- package/lib/RadioGroup.js.map +0 -1
- package/lib/RadioGroup.module.scss +0 -21
- package/lib/RadioGroupContext.d.ts +0 -6
- package/lib/RadioGroupContext.js.map +0 -1
- package/lib/RadioGroupFormik.d.ts +0 -10
- package/lib/RadioGroupFormik.js +0 -17
- package/lib/RadioGroupFormik.js.map +0 -1
- package/lib/SegmentedControl.d.ts +0 -18
- package/lib/SegmentedControl.js.map +0 -1
- package/lib/SegmentedControl.module.scss +0 -81
- package/lib/SegmentedControlFormik.d.ts +0 -9
- package/lib/SegmentedControlFormik.js +0 -13
- package/lib/SegmentedControlFormik.js.map +0 -1
- package/lib/Select/CheckableSelectField.d.ts +0 -40
- package/lib/Select/CheckableSelectField.js +0 -78
- package/lib/Select/CheckableSelectField.js.map +0 -1
- package/lib/Select/CheckableSelectField.module.scss +0 -100
- package/lib/Select/CheckableSelectFieldFormik.d.ts +0 -10
- package/lib/Select/CheckableSelectFieldFormik.js +0 -19
- package/lib/Select/CheckableSelectFieldFormik.js.map +0 -1
- package/lib/Select/Common.js +0 -57
- package/lib/Select/Common.js.map +0 -1
- package/lib/Select/Common.module.scss +0 -69
- package/lib/Select/MultiSelectField.d.ts +0 -28
- package/lib/Select/MultiSelectField.js +0 -111
- package/lib/Select/MultiSelectField.js.map +0 -1
- package/lib/Select/MultiSelectField.module.scss +0 -72
- package/lib/Select/MultiSelectFieldFormik.d.ts +0 -10
- package/lib/Select/MultiSelectFieldFormik.js +0 -19
- package/lib/Select/MultiSelectFieldFormik.js.map +0 -1
- package/lib/Select/SelectField.d.ts +0 -43
- package/lib/Select/SelectField.js +0 -98
- package/lib/Select/SelectField.js.map +0 -1
- package/lib/Select/SelectField.module.scss +0 -194
- package/lib/Select/SelectFieldFormik.d.ts +0 -10
- package/lib/Select/SelectFieldFormik.js +0 -19
- package/lib/Select/SelectFieldFormik.js.map +0 -1
- package/lib/Select/helpers.d.ts +0 -12
- package/lib/Select/helpers.js +0 -29
- 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/SimpleTable.module.scss +0 -28
- package/lib/Slider.d.ts +0 -59
- package/lib/Slider.js +0 -205
- package/lib/Slider.js.map +0 -1
- package/lib/Slider.module.scss +0 -277
- package/lib/SliderFormik.d.ts +0 -9
- package/lib/SliderFormik.js +0 -14
- package/lib/SliderFormik.js.map +0 -1
- package/lib/Table/Cell.d.ts +0 -25
- package/lib/Table/Cell.js +0 -59
- package/lib/Table/Cell.js.map +0 -1
- package/lib/Table/Cell.module.scss +0 -52
- package/lib/Table/CellWrapper.d.ts +0 -11
- package/lib/Table/CellWrapper.js +0 -29
- package/lib/Table/CellWrapper.js.map +0 -1
- package/lib/Table/EnhancedRenderers.d.ts +0 -23
- package/lib/Table/EnhancedRenderers.js +0 -16
- package/lib/Table/EnhancedRenderers.js.map +0 -1
- package/lib/Table/Header.d.ts +0 -21
- package/lib/Table/Header.js +0 -83
- package/lib/Table/Header.js.map +0 -1
- package/lib/Table/Header.module.scss +0 -123
- package/lib/Table/Row.d.ts +0 -17
- package/lib/Table/Row.js +0 -25
- package/lib/Table/Row.js.map +0 -1
- package/lib/Table/Row.module.scss +0 -56
- 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/Table.module.scss +0 -25
- package/lib/Table/TableContent.d.ts +0 -26
- 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 +0 -13
- package/lib/Table/features/columnsSelection/CellCopyablePopover.js.map +0 -1
- package/lib/Table/features/columnsSelection/CellCopyablePopover.module.scss +0 -12
- package/lib/Table/features/columnsSelection/ContextMenu/ContextMenu.d.ts +0 -6
- 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.d.ts +0 -19
- package/lib/Table/features/columnsSelection/columnsSelection.js +0 -71
- 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.d.ts +0 -51
- package/lib/Tabs/Tab.js +0 -53
- package/lib/Tabs/Tab.js.map +0 -1
- package/lib/Tabs/Tab.module.scss +0 -62
- package/lib/Tabs/TabContext.js.map +0 -1
- package/lib/Tabs/TabList.js +0 -60
- package/lib/Tabs/TabList.js.map +0 -1
- package/lib/Tabs/TabPanel.d.ts +0 -13
- package/lib/Tabs/TabPanel.js +0 -17
- package/lib/Tabs/TabPanel.js.map +0 -1
- package/lib/Tabs/index.js.map +0 -1
- package/lib/Terminal.d.ts +0 -25
- package/lib/Terminal.js +0 -114
- package/lib/Terminal.js.map +0 -1
- package/lib/Terminal.module.scss +0 -109
- package/lib/TextArea.d.ts +0 -19
- package/lib/TextArea.js +0 -35
- package/lib/TextArea.js.map +0 -1
- package/lib/TextArea.module.scss +0 -144
- package/lib/TextAreaFormik.d.ts +0 -9
- package/lib/TextAreaFormik.js.map +0 -1
- package/lib/TextField.d.ts +0 -49
- package/lib/TextField.js +0 -65
- package/lib/TextField.js.map +0 -1
- package/lib/TextField.module.scss +0 -209
- package/lib/TextFieldFormik.d.ts +0 -11
- package/lib/TextFieldFormik.js +0 -23
- package/lib/TextFieldFormik.js.map +0 -1
- package/lib/TimeField.d.ts +0 -17
- package/lib/TimeField.js +0 -15
- package/lib/TimeField.js.map +0 -1
- package/lib/TimeFieldFormik.d.ts +0 -9
- package/lib/TimeFieldFormik.js.map +0 -1
- package/lib/Toast.d.ts +0 -28
- package/lib/Toast.js +0 -56
- package/lib/Toast.js.map +0 -1
- package/lib/Toast.module.scss +0 -53
- package/lib/Toggle.d.ts +0 -21
- package/lib/Toggle.js +0 -22
- package/lib/Toggle.js.map +0 -1
- package/lib/Toggle.module.scss +0 -175
- package/lib/ToggleFormik.d.ts +0 -9
- package/lib/ToggleFormik.js +0 -12
- package/lib/ToggleFormik.js.map +0 -1
- package/lib/Tooltip.d.ts +0 -41
- package/lib/Tooltip.js +0 -140
- package/lib/Tooltip.js.map +0 -1
- package/lib/Tooltip.module.scss +0 -167
- package/lib/TruncatedText.d.ts +0 -13
- package/lib/TruncatedText.js +0 -23
- package/lib/TruncatedText.js.map +0 -1
- package/lib/TruncatedText.module.scss +0 -9
- 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/{AppHeader → components/AppHeader}/AppHeaderLogo/index.d.ts +0 -0
- /package/lib/{AppHeader → components/AppHeader}/AppHeaderLogo/index.js +0 -0
- /package/lib/{AppHeader → components/AppHeader}/AppHeaderMenu/index.d.ts +0 -0
- /package/lib/{AppHeader → components/AppHeader}/AppHeaderMenu/index.js +0 -0
- /package/lib/{AppHeader → components/AppHeader}/EnvironmentBadge/EnvironmentBadge.js +0 -0
- /package/lib/{AppHeader → components/AppHeader}/EnvironmentBadge/index.d.ts +0 -0
- /package/lib/{AppHeader → components/AppHeader}/EnvironmentBadge/index.js +0 -0
- /package/lib/{AppHeader → components/AppHeader}/SelectCluster/SelectCluster.d.ts +0 -0
- /package/lib/{AppHeader → components/AppHeader}/SelectCluster/SelectCluster.js +0 -0
- /package/lib/{AppHeader → components/AppHeader}/SelectCluster/index.d.ts +0 -0
- /package/lib/{AppHeader → components/AppHeader}/SelectCluster/index.js +0 -0
- /package/lib/{AppHeader → components/AppHeader}/index.d.ts +0 -0
- /package/lib/{AppHeader → components/AppHeader}/index.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarFavoriteButton/AppSidebarFavoriteButton.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarFavoriteButton/index.d.ts +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarFavoriteButton/index.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarFavorites/AppSidebarFavorites.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarFavorites/index.d.ts +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarFavorites/index.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarItem/index.d.ts +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarItem/index.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarMenuItemCounter/AppSidebarMenuItemCounter.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarMenuItemCounter/index.d.ts +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarMenuItemCounter/index.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarSection/appSidebarSectionContext.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarSection/index.d.ts +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/AppSidebarSection/index.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/appSidebarContext.js +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/index.d.ts +0 -0
- /package/lib/{AppSidebar → components/AppSidebar}/index.js +0 -0
- /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/{CenteredLoader.js → components/CenteredLoader.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
package/lib/Table/Table.js
DELETED
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useRef, useMemo, useState, } from 'react';
|
|
2
|
-
import cn from 'classnames';
|
|
3
|
-
import { HotKeys } from 'react-hotkeys';
|
|
4
|
-
import { useTable, usePagination, useSortBy, useAsyncDebounce, useResizeColumns, useFlexLayout, useGlobalFilter, useColumnOrder, useExpanded, } from 'react-table';
|
|
5
|
-
import { AlertTriangle, ChevronDown, ChevronUp } from 'react-feather';
|
|
6
|
-
import { Pagination } from '../Pagination';
|
|
7
|
-
import { Cell } from './Cell';
|
|
8
|
-
import { EnhancedHeaderFooterRenderer } from './EnhancedRenderers';
|
|
9
|
-
import { Header } from './Header';
|
|
10
|
-
import { HeaderRow, Row } from './Row';
|
|
11
|
-
import { Loader } from '../Loader';
|
|
12
|
-
import { EmptyState } from '../EmptyState';
|
|
13
|
-
import { usePrevious } from '../hooks/usePrevious';
|
|
14
|
-
import { Icon } from '../Icon';
|
|
15
|
-
import { TableContent } from './TableContent';
|
|
16
|
-
import { ROW_EXPANDER_COLUMN_ID } from './constants';
|
|
17
|
-
import { useColumnsSelection, ContextMenu } from './features/columnsSelection';
|
|
18
|
-
import { useRefValue } from '../hooks';
|
|
19
|
-
import styles from './Table.module.scss';
|
|
20
|
-
import styleConsts from '../../styles/constants/export.module.scss';
|
|
21
|
-
const column = {
|
|
22
|
-
// When using the useFlexLayout:
|
|
23
|
-
minWidth: Number(styleConsts.tableColumnMinWidth),
|
|
24
|
-
width: Number(styleConsts.tableColumnWidth),
|
|
25
|
-
maxWidth: Number(styleConsts.tableColumnMaxWidth), // maxWidth is only used as a limit for resizing
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* ### Purpose
|
|
29
|
-
* Table component allows to arrange data in rows and columns.
|
|
30
|
-
*
|
|
31
|
-
* ### General Info
|
|
32
|
-
* - Has built-in pagination which can be either controlled or uncontrolled
|
|
33
|
-
* - Is able to sort data (you can provide custom sorting function)
|
|
34
|
-
* - Rows can be clickable. If you supply Table with `getHref` function rows will become <a> tags!
|
|
35
|
-
* - Is able to resize columns out of the box
|
|
36
|
-
*/
|
|
37
|
-
// Inspiration here: https://react-table.tanstack.com/docs/examples/basic
|
|
38
|
-
export const Table = ({ 'data-test': dataTest, autoResetSortBy = false, columns: propColumns, data, defaultColumn = column, disableSortBy, onPaginationChange, onSortingChange, manualPagination, manualSortBy, onRenderedContentChange, autoResetPage = false, hidePagination = false, pageCount: controlledPageCount, defaultPageSize = 10, paginationOptions, onRowClick, getHref, AnchorComponent, getCustomRowProps, getCustomCellProps, loading, noDataTitle = 'The table is empty', pageIndex: incomingPageIndex, initialState = { pageIndex: incomingPageIndex || 0, pageSize: defaultPageSize }, className = '', headerClassName = '', contentClassName = '', footerClassName = '', searchValue, hideHeader, autoResetGlobalFilter = false, onPageChange, overlayLoading, onRowSelect, columnsOrdering = false, autoResetResize = false, autoResetSelectedRows = false, children, renderRowSubComponent, autoResetExpanded = false, onCopy, canExpand, }) => {
|
|
39
|
-
var _a;
|
|
40
|
-
const getOncopy = useRefValue(onCopy);
|
|
41
|
-
const [contextMenuAnchorEl, setContextMenuAnchorEl] = useState(null);
|
|
42
|
-
const draggedColumnRef = useRef(null);
|
|
43
|
-
const previousIncomingPageIndex = usePrevious(incomingPageIndex);
|
|
44
|
-
// Debounce our `fetchData` call for 200ms.
|
|
45
|
-
// We can use non-null assertion here since we're checking existence of `fetchData` in the `useEffect` below
|
|
46
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
47
|
-
const commands = useMemo(() => {
|
|
48
|
-
const result = {};
|
|
49
|
-
if (onCopy) {
|
|
50
|
-
result.copy = ['ctrl+c', 'command+c'];
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
53
|
-
}, [onCopy]);
|
|
54
|
-
const columns = useMemo(() => {
|
|
55
|
-
if (renderRowSubComponent || data.some((item) => 'subRows' in item)) {
|
|
56
|
-
return [
|
|
57
|
-
{
|
|
58
|
-
width: 60,
|
|
59
|
-
disableResizing: true,
|
|
60
|
-
id: ROW_EXPANDER_COLUMN_ID,
|
|
61
|
-
Header: () => React.createElement("span", { role: "contentinfo", "aria-label": "row-expander-column-header" }),
|
|
62
|
-
Cell: ({ row }) => {
|
|
63
|
-
if ((row.canExpand || renderRowSubComponent) && (!canExpand || (canExpand && canExpand(row)))) {
|
|
64
|
-
const rowProps = row.getToggleRowExpandedProps();
|
|
65
|
-
return (
|
|
66
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
67
|
-
React.createElement("div", { tabIndex: 0, role: "button", "data-test": "row-expander", className: styles.expander, ...rowProps, onClick: (e) => {
|
|
68
|
-
e.preventDefault();
|
|
69
|
-
rowProps.onClick(e);
|
|
70
|
-
} },
|
|
71
|
-
React.createElement(Icon, { icon: row.isExpanded ? ChevronUp : ChevronDown, ariaLabel: "row-expander" })));
|
|
72
|
-
}
|
|
73
|
-
return null;
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
...propColumns,
|
|
77
|
-
];
|
|
78
|
-
}
|
|
79
|
-
return propColumns;
|
|
80
|
-
}, [propColumns, canExpand, data, renderRowSubComponent]);
|
|
81
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
82
|
-
const onPaginationChangeDebounced = useAsyncDebounce(onPaginationChange, 200);
|
|
83
|
-
const tableInstance = useTable({
|
|
84
|
-
columns,
|
|
85
|
-
data,
|
|
86
|
-
disableSortBy,
|
|
87
|
-
disableMultiSort: true,
|
|
88
|
-
// https://react-table.tanstack.com/docs/faq#how-do-i-stop-my-table-state-from-automatically-resetting-when-my-data-changes
|
|
89
|
-
autoResetSortBy,
|
|
90
|
-
// Pass our hoisted table state
|
|
91
|
-
initialState,
|
|
92
|
-
// Tell the usePagination hook that we'll handle our own data fetching
|
|
93
|
-
manualPagination: manualPagination,
|
|
94
|
-
manualSortBy,
|
|
95
|
-
// This means we'll also have to provide our own pageCount
|
|
96
|
-
pageCount: controlledPageCount,
|
|
97
|
-
autoResetPage,
|
|
98
|
-
defaultColumn,
|
|
99
|
-
autoResetGlobalFilter,
|
|
100
|
-
autoResetResize,
|
|
101
|
-
autoResetSelectedRows,
|
|
102
|
-
autoResetExpanded,
|
|
103
|
-
paginateExpandedRows: false,
|
|
104
|
-
}, useGlobalFilter, useSortBy, useExpanded, usePagination, useFlexLayout, useResizeColumns, useColumnOrder);
|
|
105
|
-
const { getTableProps, headerGroups, footerGroups, prepareRow, page, visibleColumns, canPreviousPage, canNextPage, pageCount, gotoPage, nextPage, previousPage, setPageSize,
|
|
106
|
-
// Get the state from the instance
|
|
107
|
-
state: { pageIndex, pageSize, sortBy, columnResizing, selectedRowIds }, setGlobalFilter, setColumnOrder, } = tableInstance;
|
|
108
|
-
// drag and drop
|
|
109
|
-
const onDragStart = useCallback((e) => {
|
|
110
|
-
draggedColumnRef.current = Number(e.dataTransfer.getData('text/plain'));
|
|
111
|
-
}, []);
|
|
112
|
-
const onDrop = useCallback((e, columnIndex) => {
|
|
113
|
-
if (draggedColumnRef.current !== null && columnIndex !== draggedColumnRef.current) {
|
|
114
|
-
const newColumns = [...visibleColumns];
|
|
115
|
-
newColumns[columnIndex] = visibleColumns[draggedColumnRef.current];
|
|
116
|
-
newColumns[draggedColumnRef.current] = visibleColumns[columnIndex];
|
|
117
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
118
|
-
setColumnOrder(newColumns.map(({ id, accessor }) => (id || accessor)));
|
|
119
|
-
}
|
|
120
|
-
}, [visibleColumns, setColumnOrder]);
|
|
121
|
-
const columnsSelectionProps = useColumnsSelection({
|
|
122
|
-
rowsPerPage: page.length,
|
|
123
|
-
columnsPerRow: columns.length,
|
|
124
|
-
});
|
|
125
|
-
const { onEndSelection, getSelectedColumns, selectedColumnValuesRef } = columnsSelectionProps;
|
|
126
|
-
const onKeyUp = useCallback(() => {
|
|
127
|
-
const callback = getOncopy();
|
|
128
|
-
if (callback) {
|
|
129
|
-
const { columns, range } = getSelectedColumns();
|
|
130
|
-
if (columns.size || (range[0] !== undefined && range[0] !== undefined)) {
|
|
131
|
-
callback(selectedColumnValuesRef === null || selectedColumnValuesRef === void 0 ? void 0 : selectedColumnValuesRef.current);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}, [getOncopy, getSelectedColumns, selectedColumnValuesRef]);
|
|
135
|
-
const hotKeysHandlers = useMemo(() => ({
|
|
136
|
-
copy: (e) => {
|
|
137
|
-
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
138
|
-
onKeyUp();
|
|
139
|
-
},
|
|
140
|
-
}), [onKeyUp]);
|
|
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 (onPaginationChange) {
|
|
151
|
-
onPaginationChangeDebounced({ pageIndex, pageSize });
|
|
152
|
-
}
|
|
153
|
-
}, [onPaginationChange, onPaginationChangeDebounced, pageIndex, pageSize]);
|
|
154
|
-
useEffect(() => {
|
|
155
|
-
if (onSortingChange) {
|
|
156
|
-
onSortingChange(sortBy);
|
|
157
|
-
}
|
|
158
|
-
}, [sortBy, onSortingChange]);
|
|
159
|
-
// Debounce our `fetchData` call for 200ms.
|
|
160
|
-
// We can use non-null assertion here since we're checking existence of `fetchData` in the `useEffect` below
|
|
161
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
162
|
-
const onRenderedContentChangeDebounced = useAsyncDebounce(onRenderedContentChange, 200);
|
|
163
|
-
// 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
|
|
164
|
-
useEffect(() => {
|
|
165
|
-
if (onRenderedContentChange) {
|
|
166
|
-
onRenderedContentChangeDebounced(page);
|
|
167
|
-
}
|
|
168
|
-
}, [onRenderedContentChange, onRenderedContentChangeDebounced, page]);
|
|
169
|
-
// Apply global filter when searchValue changes
|
|
170
|
-
useEffect(() => {
|
|
171
|
-
if (searchValue !== undefined) {
|
|
172
|
-
;
|
|
173
|
-
setGlobalFilter(searchValue);
|
|
174
|
-
}
|
|
175
|
-
}, [searchValue, setGlobalFilter]);
|
|
176
|
-
useEffect(() => {
|
|
177
|
-
if (pageCount < pageIndex + 1) {
|
|
178
|
-
gotoPage(pageCount - 1);
|
|
179
|
-
}
|
|
180
|
-
}, [pageIndex, pageCount, gotoPage]);
|
|
181
|
-
useEffect(() => {
|
|
182
|
-
if (incomingPageIndex !== undefined && incomingPageIndex !== previousIncomingPageIndex) {
|
|
183
|
-
gotoPage(incomingPageIndex);
|
|
184
|
-
}
|
|
185
|
-
}, [gotoPage, incomingPageIndex, previousIncomingPageIndex]);
|
|
186
|
-
useEffect(() => {
|
|
187
|
-
if (onRowSelect) {
|
|
188
|
-
onRowSelect(Object.keys(selectedRowIds));
|
|
189
|
-
}
|
|
190
|
-
}, [onRowSelect, selectedRowIds]);
|
|
191
|
-
const hasData = data.length > 0;
|
|
192
|
-
// If at least one of the columns has footer then we display the footer row
|
|
193
|
-
const hasFooter = !loading && hasData && columns.some((col) => !!col.Footer);
|
|
194
|
-
// Header row has always aria-rowindex = 1.
|
|
195
|
-
const headerIndex = 1;
|
|
196
|
-
// We're using this offset to display correct aria-rowindex when pagination is in action.
|
|
197
|
-
const cellIndexOffset = pageSize * pageIndex + headerIndex;
|
|
198
|
-
// Total row count.
|
|
199
|
-
const rowCount = data.length + headerIndex + (hasFooter ? 1 : 0);
|
|
200
|
-
const content = (React.createElement(React.Fragment, null,
|
|
201
|
-
React.createElement("div", { "data-test": dataTest !== null && dataTest !== void 0 ? dataTest : 'table-wrapper', className: className },
|
|
202
|
-
React.createElement("div", { className: cn(styles.container, {
|
|
203
|
-
[styles.spaceBottom]: !hidePagination,
|
|
204
|
-
}) },
|
|
205
|
-
React.createElement("div", { "data-test": "table", ...getTableProps(), "aria-rowcount": rowCount },
|
|
206
|
-
!hideHeader && (React.createElement("div", { "data-test": "table-header-row-group", role: "rowgroup", className: headerClassName }, headerGroups.map((headerGroup) => {
|
|
207
|
-
const { key: headerGroupKey, ...restHeaderGroupProps } = headerGroup.getHeaderGroupProps();
|
|
208
|
-
return (React.createElement(HeaderRow, { key: headerGroupKey, ...restHeaderGroupProps, ariaRowIndex: headerIndex }, headerGroup.headers.map((column, i) => {
|
|
209
|
-
const { key: columnKey, ...restHeaderProps } = column.getHeaderProps(column.getSortByToggleProps());
|
|
210
|
-
const isDraggable = columnsOrdering && column.id !== 'expander';
|
|
211
|
-
return (React.createElement(Header, { index: i, key: columnKey, align: column.align, canSort: column.canSort, isSorted: column.isSorted, isSortedDesc: column.isSortedDesc, canResize: column.canResize, isResizing: column.isResizing, getResizerProps: column.getResizerProps, onDrop: isDraggable ? onDrop : undefined, onDragStart: onDragStart, ...restHeaderProps },
|
|
212
|
-
React.createElement(EnhancedHeaderFooterRenderer, { column: column, columnResizing: columnResizing, type: "Header" })));
|
|
213
|
-
})));
|
|
214
|
-
}))),
|
|
215
|
-
!overlayLoading && loading ? (React.createElement(Row, { role: "row" },
|
|
216
|
-
React.createElement(Cell, { role: "cell", align: "center", colSpan: columns.length, "data-test": "table-loader-cell" },
|
|
217
|
-
React.createElement(Loader, null)))) : hasData ? (React.createElement(HotKeys, { role: "rowgroup", "data-test": "table-cell-row-group", keyMap: commands, handlers: hotKeysHandlers, className: styles.hotKeys },
|
|
218
|
-
React.createElement(TableContent, { page: page, onCopy: onCopy, getHref: getHref, columns: columns, rootRef: setContextMenuAnchorEl, ...columnsSelectionProps, onRowClick: onRowClick, prepareRow: prepareRow, className: contentClassName, columnResizing: columnResizing, AnchorComponent: AnchorComponent, cellIndexOffset: cellIndexOffset, getCustomRowProps: getCustomRowProps, getCustomCellProps: getCustomCellProps, renderRowSubComponent: renderRowSubComponent }))) : (React.createElement("div", { role: "row" },
|
|
219
|
-
React.createElement("div", { role: "cell" },
|
|
220
|
-
React.createElement(EmptyState, { "data-test": "table-no-data", className: styles.empty, title: noDataTitle, icon: AlertTriangle, iconLabel: "Alert" })))),
|
|
221
|
-
hasFooter && (React.createElement("div", { "data-test": "table-footer-row-group", role: "rowgroup", className: footerClassName }, footerGroups.map((group) => {
|
|
222
|
-
const { key: footerGroupKey, ...restFooterGroupProps } = group.getFooterGroupProps();
|
|
223
|
-
return (
|
|
224
|
-
// Footer props getters do not provide role attributes
|
|
225
|
-
React.createElement(Row, { key: footerGroupKey, ariaRowIndex: rowCount, ...restFooterGroupProps, role: "row" }, group.headers.map((column) => {
|
|
226
|
-
const { key: footerKey, ...restFooterProps } = column.getFooterProps();
|
|
227
|
-
return (
|
|
228
|
-
// Footer props getters do not provide role attributes
|
|
229
|
-
React.createElement(Cell, { key: footerKey, ...restFooterProps, align: column.align, role: "cell" },
|
|
230
|
-
React.createElement(EnhancedHeaderFooterRenderer, { column: column, columnResizing: columnResizing, type: "Footer" })));
|
|
231
|
-
})));
|
|
232
|
-
}))))),
|
|
233
|
-
!hidePagination && hasData && (React.createElement(Pagination, { pageCount: pageCount, currentPage: pageIndex + 1, canPreviousPage: canPreviousPage, canNextPage: canNextPage, goToPage: (p) => {
|
|
234
|
-
if (onPageChange) {
|
|
235
|
-
onPageChange(p - 1);
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
gotoPage(p - 1);
|
|
239
|
-
}
|
|
240
|
-
}, nextPage: () => {
|
|
241
|
-
if (onPageChange) {
|
|
242
|
-
onPageChange(pageIndex + 1);
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
nextPage();
|
|
246
|
-
}
|
|
247
|
-
}, previousPage: () => {
|
|
248
|
-
if (onPageChange) {
|
|
249
|
-
onPageChange(pageIndex - 1);
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
previousPage();
|
|
253
|
-
}
|
|
254
|
-
}, 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] }))),
|
|
255
|
-
onCopy && React.createElement(ContextMenu, { anchorElement: contextMenuAnchorEl, onCopy: onKeyUp })));
|
|
256
|
-
if (children) {
|
|
257
|
-
return children(content, tableInstance);
|
|
258
|
-
}
|
|
259
|
-
return content;
|
|
260
|
-
};
|
|
261
|
-
//# sourceMappingURL=Table.js.map
|
package/lib/Table/Table.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../src/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAKZ,WAAW,EACX,SAAS,EACT,MAAM,EAEN,OAAO,EAEP,QAAQ,GAET,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAU,MAAM,eAAe,CAAA;AAC/C,OAAO,EACL,QAAQ,EACR,aAAa,EAEb,SAAS,EAGT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EAEb,eAAe,EACf,cAAc,EACd,WAAW,GAIZ,MAAM,aAAa,CAAA;AACpB,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,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AAClE,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,sBAAsB,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,WAAW,EAAE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,EACxB,aAAa,EAAE,IAAI,CAAC,MAAM,EAC1B,eAAe,EAAE,MAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,eAAe,mCAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,GAClE,CACH,CACG;QACL,MAAM,IAAI,oBAAC,WAAW,IAAC,aAAa,EAAE,mBAAmB,EAAE,MAAM,EAAE,OAAO,GAAI,CAC9E,CACJ,CAAA;IAED,IAAI,QAAQ,EAAE;QACZ,OAAO,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,CAAA;KACxC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
@use '../../styles/constants' as c;
|
|
2
|
-
@use '../../styles/helpers' as h;
|
|
3
|
-
|
|
4
|
-
.container {
|
|
5
|
-
display: block;
|
|
6
|
-
overflow-x: auto;
|
|
7
|
-
|
|
8
|
-
&.spaceBottom {
|
|
9
|
-
margin-bottom: c.$grid * 2;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.empty {
|
|
13
|
-
margin-top: c.$grid * 8;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.expander {
|
|
18
|
-
&:focus-visible {
|
|
19
|
-
@include h.outlineSimple;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.hotKeys {
|
|
24
|
-
outline: none;
|
|
25
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes, FC, LegacyRef, MutableRefObject, ReactNode } from 'react';
|
|
2
|
-
import { Cell as CellType, Row as RowType, Column, UseResizeColumnsState } from 'react-table';
|
|
3
|
-
import { CellProps } from './Cell';
|
|
4
|
-
import { RowProps } from './Row';
|
|
5
|
-
import { useColumnsSelection } from './features/columnsSelection';
|
|
6
|
-
export type TableContentProps<D extends object> = {
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
page: RowType<D>[];
|
|
9
|
-
className?: string;
|
|
10
|
-
rootRef?: LegacyRef<HTMLDivElement>;
|
|
11
|
-
cellIndexOffset: number;
|
|
12
|
-
overlayLoading?: boolean;
|
|
13
|
-
onEndSelection: () => void;
|
|
14
|
-
columns: readonly Column<D>[];
|
|
15
|
-
onCopy?: (value: string[][]) => void;
|
|
16
|
-
prepareRow: (row: RowType<D>) => void;
|
|
17
|
-
onRowClick?: (row: RowType<D>) => void;
|
|
18
|
-
selectionStartedRef: MutableRefObject<boolean>;
|
|
19
|
-
getHref?: (row: RowType<D>) => string | undefined;
|
|
20
|
-
getCustomRowProps?: (row: RowType<D>) => RowProps;
|
|
21
|
-
renderRowSubComponent?: (props: RowType<D>) => ReactNode;
|
|
22
|
-
getCustomCellProps?: (cellInfo: CellType<D>) => CellProps;
|
|
23
|
-
columnResizing: UseResizeColumnsState<D>['columnResizing'];
|
|
24
|
-
AnchorComponent?: FC<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
25
|
-
} & ReturnType<typeof useColumnsSelection>;
|
|
26
|
-
export declare const TableContent: <D extends object>(props: TableContentProps<D>) => JSX.Element;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import cn from 'classnames';
|
|
2
|
-
import { IgnoreKeys } from 'react-hotkeys';
|
|
3
|
-
import React, { useCallback } from 'react';
|
|
4
|
-
import { Loader } from '../Loader';
|
|
5
|
-
import { CellWrapper } from './CellWrapper';
|
|
6
|
-
import { LinkRow, Row } from './Row';
|
|
7
|
-
import { isCellSelected } from './features/columnsSelection';
|
|
8
|
-
import styles from './TableContent.module.scss';
|
|
9
|
-
export const TableContent = (props) => {
|
|
10
|
-
const { rootRef, page, onCopy, columns, getHref, loading, className, prepareRow, onRowClick, columnResizing, overlayLoading, onEndSelection, AnchorComponent, cellIndexOffset, selectedColumns, onClickSelection, getCustomRowProps, getCustomCellProps, selectionStartedRef, renderRowSubComponent, onMouseEnterSelection, selectedColumnValuesRef, } = props;
|
|
11
|
-
const handleOnContesxtMenu = useCallback((e) => {
|
|
12
|
-
// disable table custom context menu
|
|
13
|
-
e.stopPropagation();
|
|
14
|
-
}, []);
|
|
15
|
-
return (
|
|
16
|
-
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions,jsx-a11y/no-static-element-interactions
|
|
17
|
-
React.createElement("div", { ref: rootRef, "data-test": "table-content", className: cn(styles.content, className), onMouseDown: () => {
|
|
18
|
-
selectionStartedRef.current = true;
|
|
19
|
-
document.body.addEventListener('mouseup', onEndSelection);
|
|
20
|
-
document.body.addEventListener('contextmenu', onEndSelection);
|
|
21
|
-
} },
|
|
22
|
-
page.map((row, rowIndex) => {
|
|
23
|
-
prepareRow(row);
|
|
24
|
-
const { key: rowKey, ...restRowProps } = row.getRowProps(getCustomRowProps === null || getCustomRowProps === void 0 ? void 0 : getCustomRowProps(row));
|
|
25
|
-
const cells = row.cells.map((cell, i) => {
|
|
26
|
-
const { key: cellKey, ...restCellProps } = cell.getCellProps(getCustomCellProps === null || getCustomCellProps === void 0 ? void 0 : getCustomCellProps(cell));
|
|
27
|
-
// We don't want to use cell.column.Cell as that is a ColumnInstance which already has a cell renderer
|
|
28
|
-
const column = columns[i];
|
|
29
|
-
const cellId = `${rowIndex}:${i}`;
|
|
30
|
-
const selected = isCellSelected(cellId, selectedColumns);
|
|
31
|
-
return (React.createElement(CellWrapper, { cell: cell, key: cellKey, cellId: cellId, column: column, selected: selected, selectable: !!onCopy, align: cell.column.align, columnResizing: columnResizing, onClickSelection: onClickSelection, selectionStartedRef: selectionStartedRef, onMouseEnterSelection: onMouseEnterSelection, selectedColumnValuesRef: selectedColumnValuesRef, ...restCellProps }));
|
|
32
|
-
});
|
|
33
|
-
const expandedRow = row.isExpanded && renderRowSubComponent ? (React.createElement(IgnoreKeys, { tabIndex: -1, className: styles.subRowWrapper, onContextMenu: handleOnContesxtMenu }, renderRowSubComponent(row))) : null;
|
|
34
|
-
if (getHref) {
|
|
35
|
-
const href = getHref(row);
|
|
36
|
-
if (href) {
|
|
37
|
-
return (React.createElement(React.Fragment, { key: rowKey },
|
|
38
|
-
React.createElement(LinkRow, { AnchorComponent: AnchorComponent, ...restRowProps, ariaRowIndex: row.index + 1 + cellIndexOffset, href: href }, cells),
|
|
39
|
-
expandedRow));
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return (React.createElement(React.Fragment, { key: rowKey },
|
|
43
|
-
React.createElement(Row, { ...restRowProps, ariaRowIndex: row.index + 1 + cellIndexOffset, onClick: onRowClick
|
|
44
|
-
? () => {
|
|
45
|
-
onRowClick(row);
|
|
46
|
-
}
|
|
47
|
-
: undefined }, cells),
|
|
48
|
-
expandedRow));
|
|
49
|
-
}),
|
|
50
|
-
overlayLoading && loading && (React.createElement("div", { className: styles.overlayLoading },
|
|
51
|
-
React.createElement(Loader, null)))));
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=TableContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableContent.js","sourceRoot":"","sources":["../../src/Table/TableContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAW,UAAU,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,KAAK,EAAE,EAAoE,WAAW,EAAc,MAAM,OAAO,CAAA;AAGxH,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,GAAG,EAAY,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAuB,MAAM,6BAA6B,CAAA;AAEjF,OAAO,MAAM,MAAM,4BAA4B,CAAA;AAuB/C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAmB,KAA2B,EAAE,EAAE;IAC5E,MAAM,EACJ,OAAO,EACP,IAAI,EACJ,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,SAAS,E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,KAAK,CACE;wBACT,WAAW,CACG,CAClB,CAAA;iBACF;aACF;YAED,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,MAAM;gBACzB,oBAAC,GAAG,OACE,YAAY,EAChB,YAAY,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,GAAG,eAAe,EAC7C,OAAO,EACL,UAAU;wBACR,CAAC,CAAC,GAAG,EAAE;4BACH,UAAU,CAAC,GAAG,CAAC,CAAA;wBACjB,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/Table/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAA;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
2
|
-
import cls from 'classnames';
|
|
3
|
-
import { Popover } from '../../../Popover';
|
|
4
|
-
import styles from './CellCopyablePopover.module.scss';
|
|
5
|
-
export const CellCopyablePopover = ({ children, contentClassName, anchorElement, isOpen, onClose }) => {
|
|
6
|
-
var _a;
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
return () => onClose();
|
|
9
|
-
}, [onClose]);
|
|
10
|
-
return (React.createElement(Popover, { open: isOpen, onClose: onClose, anchorElement: anchorElement, placement: "top-start", className: styles.root, "data-test": "cell-copyable-popover", offset: { y: -((_a = anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.offsetHeight) !== null && _a !== void 0 ? _a : 0) } },
|
|
11
|
-
React.createElement("div", { className: cls(styles.content, contentClassName), onDoubleClick: onClose, style: { minHeight: anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.offsetHeight, minWidth: anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.offsetWidth } }, children)));
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=CellCopyablePopover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CellCopyablePopover.js","sourceRoot":"","sources":["../../../../src/Table/features/columnsSelection/CellCopyablePopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,SAAS,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,GAAG,MAAM,YAAY,CAAA;AAE5B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,MAAM,MAAM,mCAAmC,CAAA;AAStD,MAAM,CAAC,MAAM,mBAAmB,GAA4B,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;;IAC7H,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../../../../src/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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Table/features/columnsSelection/ContextMenu/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SelectedColumnsState } from './helpers';
|
|
3
|
-
export type ColumnsSelectionProps = {
|
|
4
|
-
rowsPerPage: number;
|
|
5
|
-
columnsPerRow: number;
|
|
6
|
-
};
|
|
7
|
-
export declare const useColumnsSelection: (props: ColumnsSelectionProps) => {
|
|
8
|
-
onEndSelection: () => void;
|
|
9
|
-
selectedColumns: SelectedColumnsState;
|
|
10
|
-
onClickSelection: (id: string, modifiers: {
|
|
11
|
-
ctrl: boolean;
|
|
12
|
-
shift: boolean;
|
|
13
|
-
}) => void;
|
|
14
|
-
setSelectedColumns: import("react").Dispatch<import("react").SetStateAction<SelectedColumnsState>>;
|
|
15
|
-
getSelectedColumns: () => SelectedColumnsState;
|
|
16
|
-
selectionStartedRef: import("react").MutableRefObject<boolean>;
|
|
17
|
-
onMouseEnterSelection: (id: string) => void;
|
|
18
|
-
selectedColumnValuesRef: import("react").MutableRefObject<(string | undefined)[][]>;
|
|
19
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { useCallback, useRef, useState } from 'react';
|
|
2
|
-
import { useRefValue } from '../../../hooks';
|
|
3
|
-
const initialSelectedColumnsState = {
|
|
4
|
-
columns: new Set(),
|
|
5
|
-
range: [undefined, undefined],
|
|
6
|
-
};
|
|
7
|
-
export const useColumnsSelection = (props) => {
|
|
8
|
-
const { columnsPerRow, rowsPerPage } = props;
|
|
9
|
-
const [selectedColumns, setSelectedColumns] = useState(initialSelectedColumnsState);
|
|
10
|
-
const selectionStartedRef = useRef(false);
|
|
11
|
-
const selectedColumnValuesRef = useRef([]);
|
|
12
|
-
const getColumnsPerRow = useRefValue(columnsPerRow);
|
|
13
|
-
const getRowsPerPage = useRefValue(rowsPerPage);
|
|
14
|
-
const getSelectedColumns = useRefValue(selectedColumns);
|
|
15
|
-
const clearSelectedColumnsValue = useCallback(() => {
|
|
16
|
-
selectedColumnValuesRef.current = Array.from(Array(getRowsPerPage()), () => new Array(getColumnsPerRow()));
|
|
17
|
-
}, [selectedColumnValuesRef, getRowsPerPage, getColumnsPerRow]);
|
|
18
|
-
const onEndSelection = useCallback(() => {
|
|
19
|
-
document.body.removeEventListener('mouseup', onEndSelection);
|
|
20
|
-
document.body.removeEventListener('contextmenu', onEndSelection);
|
|
21
|
-
selectionStartedRef.current = false;
|
|
22
|
-
}, []);
|
|
23
|
-
const onClickSelection = useCallback((id, modifiers) => {
|
|
24
|
-
setSelectedColumns((currentValue) => {
|
|
25
|
-
if (modifiers.ctrl) {
|
|
26
|
-
return {
|
|
27
|
-
...currentValue,
|
|
28
|
-
columns: new Set(currentValue.columns.add(id)),
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
if (modifiers.shift && currentValue.columns.size === 1) {
|
|
32
|
-
const firstItem = currentValue.columns.values().next();
|
|
33
|
-
return {
|
|
34
|
-
columns: new Set(),
|
|
35
|
-
range: [firstItem.value, id],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
clearSelectedColumnsValue();
|
|
39
|
-
return {
|
|
40
|
-
range: [undefined, undefined],
|
|
41
|
-
columns: new Set([id]),
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
|
-
}, [clearSelectedColumnsValue]);
|
|
45
|
-
const onMouseEnterSelection = useCallback((id) => {
|
|
46
|
-
setSelectedColumns((currentValue) => {
|
|
47
|
-
if (currentValue.columns.size === 1 && currentValue.range[0] === undefined) {
|
|
48
|
-
const firstItem = currentValue.columns.values().next();
|
|
49
|
-
return {
|
|
50
|
-
columns: new Set(),
|
|
51
|
-
range: [firstItem.value, id],
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
...currentValue,
|
|
56
|
-
range: [currentValue.range[0], id],
|
|
57
|
-
};
|
|
58
|
-
});
|
|
59
|
-
}, []);
|
|
60
|
-
return {
|
|
61
|
-
onEndSelection,
|
|
62
|
-
selectedColumns,
|
|
63
|
-
onClickSelection,
|
|
64
|
-
setSelectedColumns,
|
|
65
|
-
getSelectedColumns,
|
|
66
|
-
selectionStartedRef,
|
|
67
|
-
onMouseEnterSelection,
|
|
68
|
-
selectedColumnValuesRef,
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=columnsSelection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"columnsSelection.js","sourceRoot":"","sources":["../../../../src/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,gBAAgB,CAAA;AAQ5C,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;IACzG,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IACzC,MAAM,uBAAuB,GAAG,MAAM,CAA2B,EAAE,CAAC,CAAA;IACpE,MAAM,gBAAgB,GAAG,WAAW,CAAC,aAAa,CAAC,CAAA;IACnD,MAAM,cAAc,GAAG,WAAW,CAAC,WAAW,CAAC,CAAA;IAC/C,MAAM,kBAAkB,GAAG,WAAW,CAAC,eAAe,CAAC,CAAA;IAEvD,MAAM,yBAAyB,GAAG,WAAW,CAAC,GAAG,EAAE;QACjD,uBAAuB,CAAC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,CAAS,gBAAgB,EAAE,CAAC,CAAC,CAAA;IACpH,CAAC,EAAE,CAAC,uBAAuB,EAAE,cAAc,EAAE,gBAAgB,CAAC,CAAC,CAAA;IAC/D,MAAM,cAAc,GAAG,WAAW,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AK,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE;gBAC1E,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAA;gBAEtD,OAAO;oBACL,OAAO,EAAE,IAAI,GAAG,EAAE;oBAClB,KAAK,EAAE,CAAC,SAAS,CAAC,KAAe,EAAE,EAAE,CAAC;iBACvC,CAAA;aACF;YAED,OAAO;gBACL,GAAG,YAAY;gBACf,KAAK,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;aACnC,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO;QACL,cAAc;QACd,eAAe;QACf,gBAAgB;QAChB,kBAAkB;QAClB,kBAAkB;QAClB,mBAAmB;QACnB,qBAAqB;QACrB,uBAAuB;KACxB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/Table/features/columnsSelection/helpers.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAc,EAAoB,EAAE;IACvE,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAEhC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAC/C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,KAA+C,EAAW,EAAE;IAClG,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;IACtB,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;IAEpB,IAAI,KAAK,EAAE;QACT,IAAI,GAAG,EAAE;YAC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Ac,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA"}
|
package/lib/Tabs/Tab.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { FC, MouseEvent, KeyboardEvent, ReactNode } from 'react';
|
|
2
|
-
import { IconProps } from '../Icon';
|
|
3
|
-
export type AnchorTabProps = {
|
|
4
|
-
component: 'a';
|
|
5
|
-
href: string;
|
|
6
|
-
};
|
|
7
|
-
export type ButtonTabProps = {
|
|
8
|
-
component?: 'button';
|
|
9
|
-
href?: never;
|
|
10
|
-
};
|
|
11
|
-
type TabTypeProps = AnchorTabProps | ButtonTabProps;
|
|
12
|
-
type TabLabelProps = {
|
|
13
|
-
/** @deprecated The property should not be used */
|
|
14
|
-
label: string;
|
|
15
|
-
icon: IconProps['icon'];
|
|
16
|
-
iconAriaLabel: string;
|
|
17
|
-
children?: never;
|
|
18
|
-
ariaLabel?: never;
|
|
19
|
-
} | {
|
|
20
|
-
/** @deprecated The property should not be used */
|
|
21
|
-
label: string;
|
|
22
|
-
icon?: never;
|
|
23
|
-
iconAriaLabel?: never;
|
|
24
|
-
children?: never;
|
|
25
|
-
ariaLabel?: never;
|
|
26
|
-
} | {
|
|
27
|
-
label?: never;
|
|
28
|
-
icon?: never;
|
|
29
|
-
iconAriaLabel?: never;
|
|
30
|
-
children: ReactNode;
|
|
31
|
-
ariaLabel: string;
|
|
32
|
-
};
|
|
33
|
-
export type TabCommonProps = {
|
|
34
|
-
value: number;
|
|
35
|
-
onClick?: (event: MouseEvent<HTMLButtonElement | HTMLAnchorElement> | KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
36
|
-
className?: string;
|
|
37
|
-
};
|
|
38
|
-
export type TabProps<T = TabTypeProps> = TabCommonProps & T & TabLabelProps;
|
|
39
|
-
/**
|
|
40
|
-
* ### Purpose
|
|
41
|
-
* A single tab implementation that works together with TabContext and TabList components.
|
|
42
|
-
*
|
|
43
|
-
* ### General Info
|
|
44
|
-
* - Use as a direct child of TabList component.
|
|
45
|
-
* - Implemented as `Tabs with Manual Activation` since displaying a new panel in some cases might
|
|
46
|
-
* cause a network request and therefore devastate the experience for keyboard/screen reader users.
|
|
47
|
-
* More info - https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export declare const Tab: FC<TabProps>;
|
|
51
|
-
export {};
|