@itwin/itwinui-react 3.0.0-dev.9 → 3.0.1
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/CHANGELOG.md +80 -768
- package/README.md +5 -7
- package/cjs/core/Alert/Alert.d.ts +1 -1
- package/cjs/core/Alert/Alert.js +4 -3
- package/cjs/core/Avatar/Avatar.js +2 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +23 -6
- package/cjs/core/ButtonGroup/ButtonGroup.js +6 -8
- package/cjs/core/Buttons/{Button/Button.d.ts → Button.d.ts} +2 -2
- package/cjs/core/Buttons/{Button/Button.js → Button.js} +1 -1
- package/{esm/core/Buttons/DropdownButton → cjs/core/Buttons}/DropdownButton.d.ts +3 -3
- package/cjs/core/Buttons/{DropdownButton/DropdownButton.js → DropdownButton.js} +7 -7
- package/{esm/core/Buttons/IconButton → cjs/core/Buttons}/IconButton.d.ts +2 -2
- package/cjs/core/Buttons/{IconButton/IconButton.js → IconButton.js} +6 -3
- package/{esm/core/Buttons/IdeasButton → cjs/core/Buttons}/IdeasButton.d.ts +1 -1
- package/cjs/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +3 -3
- package/cjs/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +3 -3
- package/cjs/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +14 -13
- package/cjs/core/Carousel/Carousel.d.ts +14 -7
- package/cjs/core/Carousel/Carousel.js +9 -39
- package/cjs/core/Carousel/CarouselContext.d.ts +0 -4
- package/cjs/core/Carousel/CarouselDot.js +1 -1
- package/cjs/core/Carousel/CarouselDotsList.js +26 -2
- package/cjs/core/Carousel/CarouselNavigation.d.ts +3 -3
- package/cjs/core/Carousel/CarouselNavigation.js +13 -26
- package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlide.js +12 -2
- package/cjs/core/Carousel/CarouselSlider.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlider.js +2 -2
- package/cjs/core/Checkbox/Checkbox.js +7 -7
- package/cjs/core/ColorPicker/ColorBuilder.js +5 -3
- package/cjs/core/ColorPicker/ColorInputPanel.js +50 -30
- package/cjs/core/ColorPicker/ColorPalette.js +2 -80
- package/cjs/core/ColorPicker/ColorPicker.d.ts +9 -0
- package/cjs/core/ColorPicker/ColorPicker.js +6 -1
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorSwatch.js +25 -15
- package/cjs/core/ComboBox/ComboBox.d.ts +6 -1
- package/cjs/core/ComboBox/ComboBox.js +19 -18
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.js +10 -10
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +6 -6
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMenu.js +12 -14
- package/cjs/core/ComboBox/helpers.d.ts +1 -1
- package/cjs/core/DatePicker/DatePicker.d.ts +9 -0
- package/cjs/core/DatePicker/DatePicker.js +13 -8
- package/cjs/core/Dialog/DialogBackdrop.js +4 -4
- package/cjs/core/Dialog/DialogTitleBar.js +2 -2
- package/cjs/core/{utils/components → Divider}/Divider.d.ts +1 -1
- package/cjs/core/{utils/components → Divider}/Divider.js +1 -1
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/cjs/core/DropdownMenu/DropdownMenu.js +4 -3
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +3 -2
- package/cjs/core/FileUpload/FileUploadCard.js +3 -2
- package/cjs/core/FileUpload/FileUploadTemplate.js +1 -1
- package/cjs/core/{utils/components → Flex}/Flex.d.ts +2 -2
- package/cjs/core/{utils/components → Flex}/Flex.js +1 -1
- package/cjs/core/Header/Header.js +11 -11
- package/cjs/core/Header/HeaderBasicButton.d.ts +1 -1
- package/cjs/core/Header/HeaderButton.d.ts +2 -2
- package/cjs/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/cjs/core/Header/HeaderDropdownButton.js +6 -6
- package/cjs/core/Header/HeaderSplitButton.d.ts +1 -1
- package/cjs/core/Header/HeaderSplitButton.js +7 -7
- package/{esm/core/utils/components → cjs/core/Icon}/Icon.d.ts +2 -2
- package/cjs/core/{utils/components → Icon}/Icon.js +1 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.js +7 -7
- package/cjs/core/Input/Input.d.ts +0 -1
- package/cjs/core/Input/Input.js +0 -1
- package/cjs/core/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/core/InputGroup/InputGroup.js +6 -6
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/cjs/core/InputWithDecorations/InputWithDecorations.js +2 -2
- package/cjs/core/LabeledInput/LabeledInput.d.ts +4 -4
- package/cjs/core/LabeledInput/LabeledInput.js +11 -13
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +2 -2
- package/cjs/core/LabeledSelect/LabeledSelect.js +10 -9
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +2 -2
- package/{esm/core/utils/components → cjs/core/LinkAction}/LinkAction.d.ts +2 -2
- package/cjs/core/{utils/components → LinkAction}/LinkAction.js +1 -1
- package/cjs/core/Menu/MenuItem.js +2 -1
- package/cjs/core/Menu/MenuItemSkeleton.js +2 -1
- package/cjs/core/Modal/Modal.js +5 -5
- package/cjs/core/NonIdealState/ErrorPage.js +17 -15
- package/cjs/core/{utils/components → Popover}/Popover.d.ts +29 -13
- package/cjs/core/{utils/components → Popover}/Popover.js +43 -25
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +4 -4
- package/cjs/core/SearchBox/SearchBox.d.ts +3 -2
- package/cjs/core/SearchBox/SearchBox.js +4 -3
- package/cjs/core/Select/Select.d.ts +2 -2
- package/cjs/core/Select/Select.js +39 -30
- package/cjs/core/Select/SelectTagContainer.js +2 -2
- package/cjs/core/SideNavigation/SideNavigation.js +5 -5
- package/cjs/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavButton.js +2 -2
- package/cjs/core/Slider/Slider.d.ts +3 -7
- package/cjs/core/Slider/Slider.js +8 -22
- package/cjs/core/Slider/Thumb.d.ts +2 -3
- package/cjs/core/Slider/Thumb.js +5 -9
- package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/cjs/core/StatusMessage/StatusMessage.js +2 -1
- package/cjs/core/Stepper/StepperStep.js +7 -7
- package/cjs/core/Stepper/WorkflowDiagramStep.js +5 -5
- package/cjs/core/Surface/Surface.d.ts +8 -0
- package/cjs/core/Surface/Surface.js +19 -1
- package/cjs/core/Table/SubRowExpander.d.ts +1 -1
- package/cjs/core/Table/SubRowExpander.js +2 -2
- package/cjs/core/Table/Table.d.ts +1 -1
- package/cjs/core/Table/Table.js +53 -60
- package/cjs/core/Table/TableCell.d.ts +1 -1
- package/cjs/core/Table/TablePaginator.js +27 -25
- package/cjs/core/Table/TableRowMemoized.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/cjs/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/cjs/core/Table/cells/DefaultCell.d.ts +1 -1
- package/cjs/core/Table/cells/EditableCell.d.ts +1 -1
- package/cjs/core/Table/columns/actionColumn.d.ts +2 -2
- package/cjs/core/Table/columns/actionColumn.js +10 -15
- package/cjs/core/Table/columns/expanderColumn.d.ts +1 -1
- package/cjs/core/Table/columns/expanderColumn.js +5 -4
- package/cjs/core/Table/columns/selectionColumn.d.ts +1 -1
- package/cjs/core/Table/columns/selectionColumn.js +5 -5
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +25 -19
- package/cjs/core/Table/filters/FilterButtonBar.js +3 -3
- package/cjs/core/Table/filters/FilterToggle.d.ts +1 -1
- package/cjs/core/Table/filters/FilterToggle.js +5 -3
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +3 -3
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +2 -2
- package/cjs/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/types.d.ts +2 -19
- package/cjs/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/cjs/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.d.ts +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.js +1 -1
- package/cjs/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/cjs/core/Table/index.d.ts +1 -1
- package/cjs/core/Table/utils.d.ts +1 -1
- package/cjs/core/Tabs/Tabs.d.ts +222 -52
- package/cjs/core/Tabs/Tabs.js +429 -375
- package/cjs/core/Tag/Tag.js +2 -2
- package/cjs/core/Textarea/Textarea.js +2 -2
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +3 -2
- package/cjs/core/ThemeProvider/ThemeProvider.js +17 -8
- package/cjs/core/Tile/Tile.d.ts +2 -2
- package/cjs/core/Tile/Tile.js +20 -18
- package/cjs/core/Toast/Toast.js +2 -2
- package/cjs/core/TransferList/TransferList.d.ts +1 -1
- package/cjs/core/TransferList/TransferList.js +6 -5
- package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/cjs/core/Tree/TreeNodeExpander.js +2 -2
- package/{esm/core/Typography/Anchor → cjs/core/Typography}/Anchor.d.ts +1 -1
- package/cjs/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
- package/{esm/core/Typography/Blockquote → cjs/core/Typography}/Blockquote.d.ts +1 -1
- package/cjs/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +1 -1
- package/cjs/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/cjs/core/Typography/{Code/Code.js → Code.js} +1 -1
- package/{esm/core/Typography/Kbd → cjs/core/Typography}/Kbd.d.ts +1 -1
- package/cjs/core/Typography/{Kbd/Kbd.js → Kbd.js} +1 -1
- package/{esm/core/Typography/Text → cjs/core/Typography}/Text.d.ts +1 -1
- package/cjs/core/Typography/{Text/Text.js → Text.js} +1 -1
- package/{esm/core/utils/components → cjs/core/VisuallyHidden}/VisuallyHidden.d.ts +1 -1
- package/cjs/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +1 -1
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/cjs/core/utils/components/InputContainer.js +4 -4
- package/cjs/core/utils/components/WithCSSTransition.js +7 -1
- package/cjs/core/utils/components/index.d.ts +0 -6
- package/cjs/core/utils/components/index.js +0 -6
- package/cjs/core/utils/functions/dev.d.ts +11 -0
- package/cjs/core/utils/functions/dev.js +34 -0
- package/cjs/core/utils/functions/index.d.ts +1 -0
- package/cjs/core/utils/functions/index.js +1 -0
- package/cjs/core/utils/hooks/useGlobals.d.ts +1 -1
- package/cjs/core/utils/hooks/useGlobals.js +3 -7
- package/cjs/core/utils/hooks/useOverflow.js +3 -1
- package/cjs/index.d.ts +112 -2
- package/cjs/index.js +950 -5
- package/cjs/react-table/react-table.d.ts +745 -0
- package/cjs/{core/Badge/index.js → react-table/react-table.js} +5 -10
- package/cjs/styles.js +15 -15
- package/esm/core/Alert/Alert.d.ts +1 -1
- package/esm/core/Alert/Alert.js +2 -2
- package/esm/core/Avatar/Avatar.js +2 -6
- package/esm/core/Breadcrumbs/Breadcrumbs.js +24 -6
- package/esm/core/ButtonGroup/ButtonGroup.js +6 -8
- package/esm/core/Buttons/{Button/Button.d.ts → Button.d.ts} +2 -2
- package/esm/core/Buttons/{Button/Button.js → Button.js} +1 -1
- package/{cjs/core/Buttons/DropdownButton → esm/core/Buttons}/DropdownButton.d.ts +3 -3
- package/esm/core/Buttons/{DropdownButton/DropdownButton.js → DropdownButton.js} +3 -3
- package/{cjs/core/Buttons/IconButton → esm/core/Buttons}/IconButton.d.ts +2 -2
- package/esm/core/Buttons/{IconButton/IconButton.js → IconButton.js} +3 -2
- package/{cjs/core/Buttons/IdeasButton → esm/core/Buttons}/IdeasButton.d.ts +1 -1
- package/esm/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +2 -2
- package/esm/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +3 -3
- package/esm/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +5 -5
- package/esm/core/Carousel/Carousel.d.ts +14 -7
- package/esm/core/Carousel/Carousel.js +9 -39
- package/esm/core/Carousel/CarouselContext.d.ts +0 -4
- package/esm/core/Carousel/CarouselDot.js +1 -1
- package/esm/core/Carousel/CarouselDotsList.js +26 -2
- package/esm/core/Carousel/CarouselNavigation.d.ts +3 -3
- package/esm/core/Carousel/CarouselNavigation.js +6 -23
- package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlide.js +15 -3
- package/esm/core/Carousel/CarouselSlider.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlider.js +2 -2
- package/esm/core/Checkbox/Checkbox.js +1 -1
- package/esm/core/ColorPicker/ColorBuilder.js +3 -1
- package/esm/core/ColorPicker/ColorInputPanel.js +27 -7
- package/esm/core/ColorPicker/ColorPalette.js +3 -83
- package/esm/core/ColorPicker/ColorPicker.d.ts +9 -0
- package/esm/core/ColorPicker/ColorPicker.js +6 -1
- package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/esm/core/ColorPicker/ColorSwatch.js +18 -12
- package/esm/core/ComboBox/ComboBox.d.ts +6 -1
- package/esm/core/ComboBox/ComboBox.js +6 -4
- package/esm/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/esm/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInput.js +1 -1
- package/esm/core/ComboBox/ComboBoxInputContainer.js +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.js +2 -4
- package/esm/core/ComboBox/helpers.d.ts +1 -1
- package/esm/core/DatePicker/DatePicker.d.ts +9 -0
- package/esm/core/DatePicker/DatePicker.js +12 -3
- package/esm/core/Dialog/DialogBackdrop.js +1 -1
- package/esm/core/Dialog/DialogTitleBar.js +1 -1
- package/esm/core/{utils/components → Divider}/Divider.d.ts +1 -1
- package/esm/core/{utils/components → Divider}/Divider.js +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/esm/core/DropdownMenu/DropdownMenu.js +2 -3
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -1
- package/esm/core/FileUpload/FileUploadCard.js +2 -2
- package/esm/core/FileUpload/FileUploadTemplate.js +1 -1
- package/esm/core/{utils/components → Flex}/Flex.d.ts +2 -2
- package/esm/core/{utils/components → Flex}/Flex.js +1 -1
- package/esm/core/Header/Header.js +2 -2
- package/esm/core/Header/HeaderBasicButton.d.ts +1 -1
- package/esm/core/Header/HeaderButton.d.ts +2 -2
- package/esm/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/esm/core/Header/HeaderDropdownButton.js +1 -1
- package/esm/core/Header/HeaderSplitButton.d.ts +1 -1
- package/esm/core/Header/HeaderSplitButton.js +1 -1
- package/{cjs/core/utils/components → esm/core/Icon}/Icon.d.ts +2 -2
- package/esm/core/{utils/components → Icon}/Icon.js +1 -1
- package/esm/core/InformationPanel/InformationPanelHeader.js +1 -1
- package/esm/core/Input/Input.d.ts +0 -1
- package/esm/core/Input/Input.js +0 -1
- package/esm/core/InputGroup/InputGroup.d.ts +1 -1
- package/esm/core/InputGroup/InputGroup.js +3 -3
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/esm/core/InputWithDecorations/InputWithDecorations.js +1 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +4 -4
- package/esm/core/LabeledInput/LabeledInput.js +5 -4
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +2 -2
- package/esm/core/LabeledSelect/LabeledSelect.js +6 -4
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.js +2 -2
- package/{cjs/core/utils/components → esm/core/LinkAction}/LinkAction.d.ts +2 -2
- package/esm/core/{utils/components → LinkAction}/LinkAction.js +1 -1
- package/esm/core/Menu/MenuItem.js +1 -1
- package/esm/core/Menu/MenuItemSkeleton.js +2 -1
- package/esm/core/Modal/Modal.js +1 -1
- package/esm/core/NonIdealState/ErrorPage.js +2 -2
- package/esm/core/{utils/components → Popover}/Popover.d.ts +29 -13
- package/esm/core/{utils/components → Popover}/Popover.js +45 -25
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +1 -1
- package/esm/core/SearchBox/SearchBox.d.ts +3 -2
- package/esm/core/SearchBox/SearchBox.js +2 -2
- package/esm/core/Select/Select.d.ts +2 -2
- package/esm/core/Select/Select.js +17 -10
- package/esm/core/Select/SelectTagContainer.js +1 -1
- package/esm/core/SideNavigation/SideNavigation.js +2 -2
- package/esm/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavButton.js +1 -1
- package/esm/core/Slider/Slider.d.ts +3 -7
- package/esm/core/Slider/Slider.js +8 -19
- package/esm/core/Slider/Thumb.d.ts +2 -3
- package/esm/core/Slider/Thumb.js +2 -6
- package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/esm/core/StatusMessage/StatusMessage.js +2 -1
- package/esm/core/Stepper/StepperStep.js +1 -1
- package/esm/core/Stepper/WorkflowDiagramStep.js +1 -1
- package/esm/core/Surface/Surface.d.ts +8 -0
- package/esm/core/Surface/Surface.js +19 -1
- package/esm/core/Table/SubRowExpander.d.ts +1 -1
- package/esm/core/Table/SubRowExpander.js +1 -1
- package/esm/core/Table/Table.d.ts +1 -1
- package/esm/core/Table/Table.js +7 -13
- package/esm/core/Table/TableCell.d.ts +1 -1
- package/esm/core/Table/TablePaginator.js +5 -3
- package/esm/core/Table/TableRowMemoized.d.ts +1 -1
- package/esm/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/esm/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/esm/core/Table/cells/DefaultCell.d.ts +1 -1
- package/esm/core/Table/cells/EditableCell.d.ts +1 -1
- package/esm/core/Table/columns/actionColumn.d.ts +2 -2
- package/esm/core/Table/columns/actionColumn.js +4 -6
- package/esm/core/Table/columns/expanderColumn.d.ts +1 -1
- package/esm/core/Table/columns/expanderColumn.js +2 -1
- package/esm/core/Table/columns/selectionColumn.d.ts +1 -1
- package/esm/core/Table/columns/selectionColumn.js +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +8 -5
- package/esm/core/Table/filters/FilterButtonBar.js +1 -1
- package/esm/core/Table/filters/FilterToggle.d.ts +1 -1
- package/esm/core/Table/filters/FilterToggle.js +4 -7
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -1
- package/esm/core/Table/filters/TextFilter/TextFilter.js +1 -1
- package/esm/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/types.d.ts +2 -19
- package/esm/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/esm/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/esm/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useScrollToRow.d.ts +1 -1
- package/esm/core/Table/hooks/useScrollToRow.js +1 -1
- package/esm/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/esm/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/esm/core/Table/index.d.ts +1 -1
- package/esm/core/Table/utils.d.ts +1 -1
- package/esm/core/Tabs/Tabs.d.ts +222 -52
- package/esm/core/Tabs/Tabs.js +424 -368
- package/esm/core/Tag/Tag.js +1 -1
- package/esm/core/Textarea/Textarea.js +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +3 -2
- package/esm/core/ThemeProvider/ThemeProvider.js +17 -8
- package/esm/core/Tile/Tile.d.ts +2 -2
- package/esm/core/Tile/Tile.js +15 -14
- package/esm/core/Toast/Toast.js +1 -1
- package/esm/core/TransferList/TransferList.d.ts +1 -1
- package/esm/core/TransferList/TransferList.js +3 -2
- package/esm/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/esm/core/Tree/TreeNodeExpander.js +1 -1
- package/{cjs/core/Typography/Anchor → esm/core/Typography}/Anchor.d.ts +1 -1
- package/esm/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
- package/{cjs/core/Typography/Blockquote → esm/core/Typography}/Blockquote.d.ts +1 -1
- package/esm/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +1 -1
- package/esm/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/esm/core/Typography/{Code/Code.js → Code.js} +1 -1
- package/{cjs/core/Typography/Kbd → esm/core/Typography}/Kbd.d.ts +1 -1
- package/esm/core/Typography/{Kbd/Kbd.js → Kbd.js} +1 -1
- package/{cjs/core/Typography/Text → esm/core/Typography}/Text.d.ts +1 -1
- package/esm/core/Typography/{Text/Text.js → Text.js} +1 -1
- package/{cjs/core/utils/components → esm/core/VisuallyHidden}/VisuallyHidden.d.ts +1 -1
- package/esm/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +1 -1
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/esm/core/utils/components/InputContainer.js +2 -2
- package/esm/core/utils/components/WithCSSTransition.js +7 -1
- package/esm/core/utils/components/index.d.ts +0 -6
- package/esm/core/utils/components/index.js +0 -6
- package/esm/core/utils/functions/dev.d.ts +11 -0
- package/esm/core/utils/functions/dev.js +29 -0
- package/esm/core/utils/functions/index.d.ts +1 -0
- package/esm/core/utils/functions/index.js +1 -0
- package/esm/core/utils/hooks/useGlobals.d.ts +1 -1
- package/esm/core/utils/hooks/useGlobals.js +1 -5
- package/esm/core/utils/hooks/useOverflow.js +3 -1
- package/esm/index.d.ts +112 -2
- package/esm/index.js +123 -2
- package/esm/react-table/react-table.d.ts +745 -0
- package/esm/{core/Backdrop/index.js → react-table/react-table.js} +5 -1
- package/esm/styles.js +15 -15
- package/package.json +22 -21
- package/react-table.d.ts +745 -0
- package/styles.css +57 -66
- package/cjs/core/Alert/index.d.ts +0 -3
- package/cjs/core/Alert/index.js +0 -15
- package/cjs/core/Avatar/index.d.ts +0 -3
- package/cjs/core/Avatar/index.js +0 -15
- package/cjs/core/AvatarGroup/index.d.ts +0 -3
- package/cjs/core/AvatarGroup/index.js +0 -15
- package/cjs/core/Backdrop/index.d.ts +0 -1
- package/cjs/core/Backdrop/index.js +0 -14
- package/cjs/core/Badge/index.d.ts +0 -3
- package/cjs/core/Breadcrumbs/index.d.ts +0 -3
- package/cjs/core/Breadcrumbs/index.js +0 -15
- package/cjs/core/ButtonGroup/index.d.ts +0 -3
- package/cjs/core/ButtonGroup/index.js +0 -15
- package/cjs/core/Buttons/Button/index.d.ts +0 -3
- package/cjs/core/Buttons/Button/index.js +0 -15
- package/cjs/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/cjs/core/Buttons/DropdownButton/index.js +0 -15
- package/cjs/core/Buttons/IconButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IconButton/index.js +0 -15
- package/cjs/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IdeasButton/index.js +0 -15
- package/cjs/core/Buttons/SplitButton/index.d.ts +0 -3
- package/cjs/core/Buttons/SplitButton/index.js +0 -15
- package/cjs/core/Buttons/index.d.ts +0 -5
- package/cjs/core/Buttons/index.js +0 -47
- package/cjs/core/Carousel/index.d.ts +0 -3
- package/cjs/core/Carousel/index.js +0 -15
- package/cjs/core/Checkbox/index.d.ts +0 -3
- package/cjs/core/Checkbox/index.js +0 -15
- package/cjs/core/ColorPicker/index.d.ts +0 -7
- package/cjs/core/ColorPicker/index.js +0 -48
- package/cjs/core/ComboBox/index.d.ts +0 -3
- package/cjs/core/ComboBox/index.js +0 -15
- package/cjs/core/DatePicker/index.d.ts +0 -3
- package/cjs/core/DatePicker/index.js +0 -21
- package/cjs/core/Dialog/index.d.ts +0 -3
- package/cjs/core/Dialog/index.js +0 -15
- package/cjs/core/DropdownMenu/index.d.ts +0 -4
- package/cjs/core/DropdownMenu/index.js +0 -15
- package/cjs/core/ExpandableBlock/index.d.ts +0 -3
- package/cjs/core/ExpandableBlock/index.js +0 -15
- package/cjs/core/Fieldset/index.d.ts +0 -3
- package/cjs/core/Fieldset/index.js +0 -15
- package/cjs/core/FileUpload/index.d.ts +0 -6
- package/cjs/core/FileUpload/index.js +0 -40
- package/cjs/core/Footer/index.d.ts +0 -4
- package/cjs/core/Footer/index.js +0 -21
- package/cjs/core/Header/index.d.ts +0 -6
- package/cjs/core/Header/index.js +0 -40
- package/cjs/core/InformationPanel/index.d.ts +0 -7
- package/cjs/core/InformationPanel/index.js +0 -48
- package/cjs/core/Input/index.d.ts +0 -3
- package/cjs/core/Input/index.js +0 -15
- package/cjs/core/InputGrid/index.d.ts +0 -3
- package/cjs/core/InputGrid/index.js +0 -15
- package/cjs/core/InputGroup/index.d.ts +0 -3
- package/cjs/core/InputGroup/index.js +0 -15
- package/cjs/core/InputWithDecorations/index.d.ts +0 -3
- package/cjs/core/InputWithDecorations/index.js +0 -15
- package/cjs/core/Label/index.d.ts +0 -3
- package/cjs/core/Label/index.js +0 -15
- package/cjs/core/LabeledInput/index.d.ts +0 -3
- package/cjs/core/LabeledInput/index.js +0 -15
- package/cjs/core/LabeledSelect/index.d.ts +0 -3
- package/cjs/core/LabeledSelect/index.js +0 -15
- package/cjs/core/LabeledTextarea/index.d.ts +0 -3
- package/cjs/core/LabeledTextarea/index.js +0 -15
- package/cjs/core/List/index.d.ts +0 -2
- package/cjs/core/List/index.js +0 -21
- package/cjs/core/Menu/index.d.ts +0 -5
- package/cjs/core/Menu/index.js +0 -47
- package/cjs/core/Modal/index.d.ts +0 -5
- package/cjs/core/Modal/index.js +0 -29
- package/cjs/core/NonIdealState/index.d.ts +0 -5
- package/cjs/core/NonIdealState/index.js +0 -22
- package/cjs/core/NotificationMarker/index.d.ts +0 -3
- package/cjs/core/NotificationMarker/index.js +0 -15
- package/cjs/core/Overlay/index.d.ts +0 -1
- package/cjs/core/Overlay/index.js +0 -14
- package/cjs/core/ProgressIndicators/index.d.ts +0 -2
- package/cjs/core/ProgressIndicators/index.js +0 -21
- package/cjs/core/Radio/index.d.ts +0 -3
- package/cjs/core/Radio/index.js +0 -15
- package/cjs/core/RadioTiles/index.d.ts +0 -4
- package/cjs/core/RadioTiles/index.js +0 -22
- package/cjs/core/SearchBox/index.d.ts +0 -3
- package/cjs/core/SearchBox/index.js +0 -15
- package/cjs/core/Select/index.d.ts +0 -4
- package/cjs/core/Select/index.js +0 -15
- package/cjs/core/SideNavigation/index.d.ts +0 -6
- package/cjs/core/SideNavigation/index.js +0 -40
- package/cjs/core/SkipToContentLink/index.d.ts +0 -3
- package/cjs/core/SkipToContentLink/index.js +0 -15
- package/cjs/core/Slider/index.d.ts +0 -3
- package/cjs/core/Slider/index.js +0 -15
- package/cjs/core/StatusMessage/index.d.ts +0 -3
- package/cjs/core/StatusMessage/index.js +0 -15
- package/cjs/core/Stepper/index.d.ts +0 -3
- package/cjs/core/Stepper/index.js +0 -21
- package/cjs/core/Surface/index.d.ts +0 -3
- package/cjs/core/Surface/index.js +0 -15
- package/cjs/core/Tabs/Tab.d.ts +0 -40
- package/cjs/core/Tabs/Tab.js +0 -65
- package/cjs/core/Tabs/index.d.ts +0 -2
- package/cjs/core/Tabs/index.js +0 -21
- package/cjs/core/Tag/index.d.ts +0 -4
- package/cjs/core/Tag/index.js +0 -22
- package/cjs/core/Textarea/index.d.ts +0 -3
- package/cjs/core/Textarea/index.js +0 -15
- package/cjs/core/ThemeProvider/index.d.ts +0 -4
- package/cjs/core/ThemeProvider/index.js +0 -15
- package/cjs/core/Tile/index.d.ts +0 -3
- package/cjs/core/Tile/index.js +0 -15
- package/cjs/core/TimePicker/index.d.ts +0 -4
- package/cjs/core/TimePicker/index.js +0 -15
- package/cjs/core/Toast/index.d.ts +0 -1
- package/cjs/core/Toast/index.js +0 -14
- package/cjs/core/ToggleSwitch/index.d.ts +0 -3
- package/cjs/core/ToggleSwitch/index.js +0 -15
- package/cjs/core/Tooltip/index.d.ts +0 -3
- package/cjs/core/Tooltip/index.js +0 -15
- package/cjs/core/TransferList/index.d.ts +0 -3
- package/cjs/core/TransferList/index.js +0 -15
- package/cjs/core/Tree/index.d.ts +0 -4
- package/cjs/core/Tree/index.js +0 -28
- package/cjs/core/Typography/Anchor/index.d.ts +0 -3
- package/cjs/core/Typography/Anchor/index.js +0 -15
- package/cjs/core/Typography/Blockquote/index.d.ts +0 -3
- package/cjs/core/Typography/Blockquote/index.js +0 -15
- package/cjs/core/Typography/Code/index.d.ts +0 -3
- package/cjs/core/Typography/Code/index.js +0 -15
- package/cjs/core/Typography/Kbd/index.d.ts +0 -3
- package/cjs/core/Typography/Kbd/index.js +0 -21
- package/cjs/core/Typography/Text/index.d.ts +0 -3
- package/cjs/core/Typography/Text/index.js +0 -15
- package/cjs/core/Typography/index.d.ts +0 -5
- package/cjs/core/Typography/index.js +0 -54
- package/cjs/core/index.d.ts +0 -68
- package/cjs/core/index.js +0 -916
- package/cjs/types/react-table-config.d.ts +0 -135
- package/cjs/types/react-table-config.js +0 -2
- package/esm/core/Alert/index.d.ts +0 -3
- package/esm/core/Alert/index.js +0 -6
- package/esm/core/Avatar/index.d.ts +0 -3
- package/esm/core/Avatar/index.js +0 -6
- package/esm/core/AvatarGroup/index.d.ts +0 -3
- package/esm/core/AvatarGroup/index.js +0 -6
- package/esm/core/Backdrop/index.d.ts +0 -1
- package/esm/core/Badge/index.d.ts +0 -3
- package/esm/core/Badge/index.js +0 -6
- package/esm/core/Breadcrumbs/index.d.ts +0 -3
- package/esm/core/Breadcrumbs/index.js +0 -6
- package/esm/core/ButtonGroup/index.d.ts +0 -3
- package/esm/core/ButtonGroup/index.js +0 -6
- package/esm/core/Buttons/Button/index.d.ts +0 -3
- package/esm/core/Buttons/Button/index.js +0 -6
- package/esm/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/esm/core/Buttons/DropdownButton/index.js +0 -6
- package/esm/core/Buttons/IconButton/index.d.ts +0 -3
- package/esm/core/Buttons/IconButton/index.js +0 -6
- package/esm/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/esm/core/Buttons/IdeasButton/index.js +0 -6
- package/esm/core/Buttons/SplitButton/index.d.ts +0 -3
- package/esm/core/Buttons/SplitButton/index.js +0 -6
- package/esm/core/Buttons/index.d.ts +0 -5
- package/esm/core/Buttons/index.js +0 -9
- package/esm/core/Carousel/index.d.ts +0 -3
- package/esm/core/Carousel/index.js +0 -6
- package/esm/core/Checkbox/index.d.ts +0 -3
- package/esm/core/Checkbox/index.js +0 -6
- package/esm/core/ColorPicker/index.d.ts +0 -7
- package/esm/core/ColorPicker/index.js +0 -10
- package/esm/core/ComboBox/index.d.ts +0 -3
- package/esm/core/ComboBox/index.js +0 -6
- package/esm/core/DatePicker/index.d.ts +0 -3
- package/esm/core/DatePicker/index.js +0 -6
- package/esm/core/Dialog/index.d.ts +0 -3
- package/esm/core/Dialog/index.js +0 -6
- package/esm/core/DropdownMenu/index.d.ts +0 -4
- package/esm/core/DropdownMenu/index.js +0 -6
- package/esm/core/ExpandableBlock/index.d.ts +0 -3
- package/esm/core/ExpandableBlock/index.js +0 -6
- package/esm/core/Fieldset/index.d.ts +0 -3
- package/esm/core/Fieldset/index.js +0 -6
- package/esm/core/FileUpload/index.d.ts +0 -6
- package/esm/core/FileUpload/index.js +0 -9
- package/esm/core/Footer/index.d.ts +0 -4
- package/esm/core/Footer/index.js +0 -6
- package/esm/core/Header/index.d.ts +0 -6
- package/esm/core/Header/index.js +0 -9
- package/esm/core/InformationPanel/index.d.ts +0 -7
- package/esm/core/InformationPanel/index.js +0 -10
- package/esm/core/Input/index.d.ts +0 -3
- package/esm/core/Input/index.js +0 -6
- package/esm/core/InputGrid/index.d.ts +0 -3
- package/esm/core/InputGrid/index.js +0 -6
- package/esm/core/InputGroup/index.d.ts +0 -3
- package/esm/core/InputGroup/index.js +0 -6
- package/esm/core/InputWithDecorations/index.d.ts +0 -3
- package/esm/core/InputWithDecorations/index.js +0 -6
- package/esm/core/Label/index.d.ts +0 -3
- package/esm/core/Label/index.js +0 -6
- package/esm/core/LabeledInput/index.d.ts +0 -3
- package/esm/core/LabeledInput/index.js +0 -6
- package/esm/core/LabeledSelect/index.d.ts +0 -3
- package/esm/core/LabeledSelect/index.js +0 -6
- package/esm/core/LabeledTextarea/index.d.ts +0 -3
- package/esm/core/LabeledTextarea/index.js +0 -6
- package/esm/core/List/index.d.ts +0 -2
- package/esm/core/List/index.js +0 -6
- package/esm/core/Menu/index.d.ts +0 -5
- package/esm/core/Menu/index.js +0 -9
- package/esm/core/Modal/index.d.ts +0 -5
- package/esm/core/Modal/index.js +0 -8
- package/esm/core/NonIdealState/index.d.ts +0 -5
- package/esm/core/NonIdealState/index.js +0 -7
- package/esm/core/NotificationMarker/index.d.ts +0 -3
- package/esm/core/NotificationMarker/index.js +0 -6
- package/esm/core/Overlay/index.d.ts +0 -1
- package/esm/core/Overlay/index.js +0 -5
- package/esm/core/ProgressIndicators/index.d.ts +0 -2
- package/esm/core/ProgressIndicators/index.js +0 -6
- package/esm/core/Radio/index.d.ts +0 -3
- package/esm/core/Radio/index.js +0 -6
- package/esm/core/RadioTiles/index.d.ts +0 -4
- package/esm/core/RadioTiles/index.js +0 -7
- package/esm/core/SearchBox/index.d.ts +0 -3
- package/esm/core/SearchBox/index.js +0 -6
- package/esm/core/Select/index.d.ts +0 -4
- package/esm/core/Select/index.js +0 -6
- package/esm/core/SideNavigation/index.d.ts +0 -6
- package/esm/core/SideNavigation/index.js +0 -9
- package/esm/core/SkipToContentLink/index.d.ts +0 -3
- package/esm/core/SkipToContentLink/index.js +0 -6
- package/esm/core/Slider/index.d.ts +0 -3
- package/esm/core/Slider/index.js +0 -6
- package/esm/core/StatusMessage/index.d.ts +0 -3
- package/esm/core/StatusMessage/index.js +0 -6
- package/esm/core/Stepper/index.d.ts +0 -3
- package/esm/core/Stepper/index.js +0 -6
- package/esm/core/Surface/index.d.ts +0 -3
- package/esm/core/Surface/index.js +0 -6
- package/esm/core/Tabs/Tab.d.ts +0 -40
- package/esm/core/Tabs/Tab.js +0 -57
- package/esm/core/Tabs/index.d.ts +0 -2
- package/esm/core/Tabs/index.js +0 -6
- package/esm/core/Tag/index.d.ts +0 -4
- package/esm/core/Tag/index.js +0 -7
- package/esm/core/Textarea/index.d.ts +0 -3
- package/esm/core/Textarea/index.js +0 -6
- package/esm/core/ThemeProvider/index.d.ts +0 -4
- package/esm/core/ThemeProvider/index.js +0 -6
- package/esm/core/Tile/index.d.ts +0 -3
- package/esm/core/Tile/index.js +0 -6
- package/esm/core/TimePicker/index.d.ts +0 -4
- package/esm/core/TimePicker/index.js +0 -6
- package/esm/core/Toast/index.d.ts +0 -1
- package/esm/core/Toast/index.js +0 -5
- package/esm/core/ToggleSwitch/index.d.ts +0 -3
- package/esm/core/ToggleSwitch/index.js +0 -6
- package/esm/core/Tooltip/index.d.ts +0 -3
- package/esm/core/Tooltip/index.js +0 -6
- package/esm/core/TransferList/index.d.ts +0 -3
- package/esm/core/TransferList/index.js +0 -6
- package/esm/core/Tree/index.d.ts +0 -4
- package/esm/core/Tree/index.js +0 -7
- package/esm/core/Typography/Anchor/index.d.ts +0 -3
- package/esm/core/Typography/Anchor/index.js +0 -6
- package/esm/core/Typography/Blockquote/index.d.ts +0 -3
- package/esm/core/Typography/Blockquote/index.js +0 -6
- package/esm/core/Typography/Code/index.d.ts +0 -3
- package/esm/core/Typography/Code/index.js +0 -6
- package/esm/core/Typography/Kbd/index.d.ts +0 -3
- package/esm/core/Typography/Kbd/index.js +0 -6
- package/esm/core/Typography/Text/index.d.ts +0 -3
- package/esm/core/Typography/Text/index.js +0 -6
- package/esm/core/Typography/index.d.ts +0 -5
- package/esm/core/Typography/index.js +0 -9
- package/esm/core/index.d.ts +0 -68
- package/esm/core/index.js +0 -132
- package/esm/types/react-table-config.d.ts +0 -135
- package/esm/types/react-table-config.js +0 -1
package/cjs/core/Table/Table.js
CHANGED
|
@@ -9,33 +9,29 @@ const tslib_1 = require('tslib');
|
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
11
|
const react_table_1 = require('react-table');
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const ProgressRadial_js_1 = require('../ProgressIndicators/ProgressRadial.js');
|
|
13
|
+
const index_js_1 = require('../utils/index.js');
|
|
14
14
|
const utils_js_1 = require('./utils.js');
|
|
15
15
|
const TableRowMemoized_js_1 = require('./TableRowMemoized.js');
|
|
16
|
-
const
|
|
16
|
+
const index_js_2 = require('./filters/index.js');
|
|
17
17
|
const customFilterFunctions_js_1 = require('./filters/customFilterFunctions.js');
|
|
18
|
-
const
|
|
19
|
-
const
|
|
18
|
+
const index_js_3 = require('./hooks/index.js');
|
|
19
|
+
const index_js_4 = require('./actionHandlers/index.js');
|
|
20
20
|
const VirtualScroll_js_1 = tslib_1.__importDefault(
|
|
21
21
|
require('../utils/components/VirtualScroll.js'),
|
|
22
22
|
);
|
|
23
|
-
const
|
|
23
|
+
const index_js_5 = require('./columns/index.js');
|
|
24
24
|
const singleRowSelectedAction = 'singleRowSelected';
|
|
25
25
|
const shiftRowSelectedAction = 'shiftRowSelected';
|
|
26
26
|
exports.tableResizeStartAction = 'tableResizeStart';
|
|
27
27
|
const tableResizeEndAction = 'tableResizeEnd';
|
|
28
|
-
|
|
29
|
-
let isDev = false;
|
|
30
|
-
// wrapping in try-catch because process might be undefined
|
|
31
|
-
try {
|
|
32
|
-
isDev = process.env.NODE_ENV !== 'production';
|
|
33
|
-
} catch {}
|
|
28
|
+
const logWarningInDev = (0, index_js_1.createWarningLogger)();
|
|
34
29
|
const flattenColumns = (columns) => {
|
|
35
30
|
const flatColumns = [];
|
|
36
31
|
columns.forEach((column) => {
|
|
37
32
|
flatColumns.push(column);
|
|
38
33
|
if ('columns' in column) {
|
|
34
|
+
// @ts-expect-error - Since nested columns are not supported from a types perspective
|
|
39
35
|
flatColumns.push(...flattenColumns(column.columns));
|
|
40
36
|
}
|
|
41
37
|
});
|
|
@@ -123,7 +119,7 @@ const Table = (props) => {
|
|
|
123
119
|
emptyTableContentProps,
|
|
124
120
|
...rest
|
|
125
121
|
} = props;
|
|
126
|
-
(0,
|
|
122
|
+
(0, index_js_1.useGlobals)();
|
|
127
123
|
const ownerDocument = React.useRef();
|
|
128
124
|
const defaultColumn = React.useMemo(
|
|
129
125
|
() => ({
|
|
@@ -143,7 +139,7 @@ const Table = (props) => {
|
|
|
143
139
|
const hasManualSelectionColumn = React.useMemo(() => {
|
|
144
140
|
const flatColumns = flattenColumns(columns);
|
|
145
141
|
return flatColumns.some(
|
|
146
|
-
(column) => column.id ===
|
|
142
|
+
(column) => column.id === index_js_5.SELECTION_CELL_ID,
|
|
147
143
|
);
|
|
148
144
|
}, [columns]);
|
|
149
145
|
const disableUserSelect = React.useCallback((e) => {
|
|
@@ -185,7 +181,7 @@ const Table = (props) => {
|
|
|
185
181
|
onSort?.(newState);
|
|
186
182
|
break;
|
|
187
183
|
case react_table_1.actions.setFilter:
|
|
188
|
-
currentFilter.current = (0,
|
|
184
|
+
currentFilter.current = (0, index_js_4.onFilterHandler)(
|
|
189
185
|
newState,
|
|
190
186
|
action,
|
|
191
187
|
previousState,
|
|
@@ -195,10 +191,10 @@ const Table = (props) => {
|
|
|
195
191
|
break;
|
|
196
192
|
case react_table_1.actions.toggleRowExpanded:
|
|
197
193
|
case react_table_1.actions.toggleAllRowsExpanded:
|
|
198
|
-
(0,
|
|
194
|
+
(0, index_js_4.onExpandHandler)(newState, instance, onExpand);
|
|
199
195
|
break;
|
|
200
196
|
case singleRowSelectedAction: {
|
|
201
|
-
newState = (0,
|
|
197
|
+
newState = (0, index_js_4.onSingleSelectHandler)(
|
|
202
198
|
newState,
|
|
203
199
|
action,
|
|
204
200
|
instance,
|
|
@@ -209,7 +205,7 @@ const Table = (props) => {
|
|
|
209
205
|
break;
|
|
210
206
|
}
|
|
211
207
|
case shiftRowSelectedAction: {
|
|
212
|
-
newState = (0,
|
|
208
|
+
newState = (0, index_js_4.onShiftSelectHandler)(
|
|
213
209
|
newState,
|
|
214
210
|
action,
|
|
215
211
|
instance,
|
|
@@ -222,7 +218,7 @@ const Table = (props) => {
|
|
|
222
218
|
case react_table_1.actions.toggleRowSelected:
|
|
223
219
|
case react_table_1.actions.toggleAllRowsSelected:
|
|
224
220
|
case react_table_1.actions.toggleAllPageRowsSelected: {
|
|
225
|
-
(0,
|
|
221
|
+
(0, index_js_4.onToggleHandler)(
|
|
226
222
|
newState,
|
|
227
223
|
action,
|
|
228
224
|
instance,
|
|
@@ -233,11 +229,11 @@ const Table = (props) => {
|
|
|
233
229
|
break;
|
|
234
230
|
}
|
|
235
231
|
case exports.tableResizeStartAction: {
|
|
236
|
-
newState = (0,
|
|
232
|
+
newState = (0, index_js_4.onTableResizeStart)(newState);
|
|
237
233
|
break;
|
|
238
234
|
}
|
|
239
235
|
case tableResizeEndAction: {
|
|
240
|
-
newState = (0,
|
|
236
|
+
newState = (0, index_js_4.onTableResizeEnd)(newState, action);
|
|
241
237
|
break;
|
|
242
238
|
}
|
|
243
239
|
default:
|
|
@@ -285,25 +281,25 @@ const Table = (props) => {
|
|
|
285
281
|
columnResizeMode,
|
|
286
282
|
},
|
|
287
283
|
react_table_1.useFlexLayout,
|
|
288
|
-
(0,
|
|
284
|
+
(0, index_js_3.useResizeColumns)(ownerDocument),
|
|
289
285
|
react_table_1.useFilters,
|
|
290
|
-
(0,
|
|
286
|
+
(0, index_js_3.useSubRowFiltering)(hasAnySubRows),
|
|
291
287
|
react_table_1.useGlobalFilter,
|
|
292
288
|
react_table_1.useSortBy,
|
|
293
289
|
react_table_1.useExpanded,
|
|
294
290
|
react_table_1.usePagination,
|
|
295
291
|
react_table_1.useRowSelect,
|
|
296
|
-
|
|
297
|
-
(0,
|
|
298
|
-
(0,
|
|
292
|
+
index_js_3.useSubRowSelection,
|
|
293
|
+
(0, index_js_3.useExpanderCell)(subComponent, expanderCell, isRowDisabled),
|
|
294
|
+
(0, index_js_3.useSelectionCell)(
|
|
299
295
|
isSelectable,
|
|
300
296
|
selectionMode,
|
|
301
297
|
isRowDisabled,
|
|
302
298
|
density,
|
|
303
299
|
),
|
|
304
300
|
react_table_1.useColumnOrder,
|
|
305
|
-
(0,
|
|
306
|
-
|
|
301
|
+
(0, index_js_3.useColumnDragAndDrop)(enableColumnReordering),
|
|
302
|
+
index_js_3.useStickyColumns,
|
|
307
303
|
);
|
|
308
304
|
const {
|
|
309
305
|
getTableProps,
|
|
@@ -324,12 +320,9 @@ const Table = (props) => {
|
|
|
324
320
|
let headerGroups = _headerGroups;
|
|
325
321
|
if (columns.length === 1 && 'columns' in columns[0]) {
|
|
326
322
|
headerGroups = _headerGroups.slice(1);
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
);
|
|
331
|
-
didLogWarning = true;
|
|
332
|
-
}
|
|
323
|
+
logWarningInDev(
|
|
324
|
+
`Table's \`columns\` prop should not have a top-level \`Header\` or sub-columns. They are only allowed to be passed for backwards compatibility.\n See https://github.com/iTwin/iTwinUI/wiki/iTwinUI-react-v2-migration-guide#breaking-changes`,
|
|
325
|
+
);
|
|
333
326
|
}
|
|
334
327
|
const ariaDataAttributes = Object.entries(rest).reduce(
|
|
335
328
|
(result, [key, value]) => {
|
|
@@ -434,7 +427,7 @@ const Table = (props) => {
|
|
|
434
427
|
selectionMode,
|
|
435
428
|
],
|
|
436
429
|
);
|
|
437
|
-
const { scrollToIndex, tableRowRef } = (0,
|
|
430
|
+
const { scrollToIndex, tableRowRef } = (0, index_js_3.useScrollToRow)({
|
|
438
431
|
...props,
|
|
439
432
|
page,
|
|
440
433
|
});
|
|
@@ -462,9 +455,9 @@ const Table = (props) => {
|
|
|
462
455
|
},
|
|
463
456
|
[dispatch, state.columnResizing.columnWidths, flatHeaders, instance],
|
|
464
457
|
);
|
|
465
|
-
const [resizeRef] = (0,
|
|
458
|
+
const [resizeRef] = (0, index_js_1.useResizeObserver)(onTableResize);
|
|
466
459
|
// Flexbox handles columns resize so we take new column widths before browser repaints.
|
|
467
|
-
(0,
|
|
460
|
+
(0, index_js_1.useIsomorphicLayoutEffect)(() => {
|
|
468
461
|
if (state.isTableResizing) {
|
|
469
462
|
const newColumnWidths = {};
|
|
470
463
|
flatHeaders.forEach((column) => {
|
|
@@ -552,7 +545,7 @@ const Table = (props) => {
|
|
|
552
545
|
React.Fragment,
|
|
553
546
|
null,
|
|
554
547
|
React.createElement(
|
|
555
|
-
|
|
548
|
+
index_js_1.Box,
|
|
556
549
|
{
|
|
557
550
|
ref: (element) => {
|
|
558
551
|
ownerDocument.current = element?.ownerDocument;
|
|
@@ -582,7 +575,7 @@ const Table = (props) => {
|
|
|
582
575
|
className: 'iui-table-row',
|
|
583
576
|
});
|
|
584
577
|
return React.createElement(
|
|
585
|
-
|
|
578
|
+
index_js_1.Box,
|
|
586
579
|
{
|
|
587
580
|
as: 'div',
|
|
588
581
|
ref: headerRef,
|
|
@@ -600,7 +593,7 @@ const Table = (props) => {
|
|
|
600
593
|
),
|
|
601
594
|
},
|
|
602
595
|
React.createElement(
|
|
603
|
-
|
|
596
|
+
index_js_1.Box,
|
|
604
597
|
{
|
|
605
598
|
as: 'div',
|
|
606
599
|
...headerProps,
|
|
@@ -610,7 +603,7 @@ const Table = (props) => {
|
|
|
610
603
|
),
|
|
611
604
|
},
|
|
612
605
|
React.createElement(
|
|
613
|
-
|
|
606
|
+
index_js_1.Box,
|
|
614
607
|
{ ...headerGroupProps },
|
|
615
608
|
headerGroup.headers.map((column, index) => {
|
|
616
609
|
const { onClick, ...restSortProps } =
|
|
@@ -636,7 +629,7 @@ const Table = (props) => {
|
|
|
636
629
|
},
|
|
637
630
|
});
|
|
638
631
|
return React.createElement(
|
|
639
|
-
|
|
632
|
+
index_js_1.Box,
|
|
640
633
|
{
|
|
641
634
|
...columnProps,
|
|
642
635
|
...column.getDragAndDropProps(),
|
|
@@ -668,23 +661,23 @@ const Table = (props) => {
|
|
|
668
661
|
column.render('Header'),
|
|
669
662
|
(showFilterButton(column) || showSortButton(column)) &&
|
|
670
663
|
React.createElement(
|
|
671
|
-
|
|
664
|
+
index_js_1.Box,
|
|
672
665
|
{ className: 'iui-table-header-actions-container' },
|
|
673
666
|
showFilterButton(column) &&
|
|
674
|
-
React.createElement(
|
|
667
|
+
React.createElement(index_js_2.FilterToggle, {
|
|
675
668
|
column: column,
|
|
676
669
|
}),
|
|
677
670
|
showSortButton(column) &&
|
|
678
671
|
React.createElement(
|
|
679
|
-
|
|
672
|
+
index_js_1.Box,
|
|
680
673
|
{ className: 'iui-table-cell-end-icon' },
|
|
681
674
|
column.isSortedDesc ||
|
|
682
675
|
(!column.isSorted && column.sortDescFirst)
|
|
683
|
-
? React.createElement(
|
|
676
|
+
? React.createElement(index_js_1.SvgSortDown, {
|
|
684
677
|
className: 'iui-table-sort',
|
|
685
678
|
'aria-hidden': true,
|
|
686
679
|
})
|
|
687
|
-
: React.createElement(
|
|
680
|
+
: React.createElement(index_js_1.SvgSortUp, {
|
|
688
681
|
className: 'iui-table-sort',
|
|
689
682
|
'aria-hidden': true,
|
|
690
683
|
}),
|
|
@@ -695,28 +688,28 @@ const Table = (props) => {
|
|
|
695
688
|
(index !== headerGroup.headers.length - 1 ||
|
|
696
689
|
columnResizeMode === 'expand') &&
|
|
697
690
|
React.createElement(
|
|
698
|
-
|
|
691
|
+
index_js_1.Box,
|
|
699
692
|
{
|
|
700
693
|
...column.getResizerProps(),
|
|
701
694
|
className: 'iui-table-resizer',
|
|
702
695
|
},
|
|
703
|
-
React.createElement(
|
|
696
|
+
React.createElement(index_js_1.Box, {
|
|
704
697
|
className: 'iui-table-resizer-bar',
|
|
705
698
|
}),
|
|
706
699
|
),
|
|
707
700
|
enableColumnReordering &&
|
|
708
701
|
!column.disableReordering &&
|
|
709
|
-
React.createElement(
|
|
702
|
+
React.createElement(index_js_1.Box, {
|
|
710
703
|
className: 'iui-table-reorder-bar',
|
|
711
704
|
}),
|
|
712
705
|
column.sticky === 'left' &&
|
|
713
706
|
state.sticky.isScrolledToRight &&
|
|
714
|
-
React.createElement(
|
|
707
|
+
React.createElement(index_js_1.Box, {
|
|
715
708
|
className: 'iui-table-cell-shadow-right',
|
|
716
709
|
}),
|
|
717
710
|
column.sticky === 'right' &&
|
|
718
711
|
state.sticky.isScrolledToLeft &&
|
|
719
|
-
React.createElement(
|
|
712
|
+
React.createElement(index_js_1.Box, {
|
|
720
713
|
className: 'iui-table-cell-shadow-left',
|
|
721
714
|
}),
|
|
722
715
|
);
|
|
@@ -726,7 +719,7 @@ const Table = (props) => {
|
|
|
726
719
|
);
|
|
727
720
|
}),
|
|
728
721
|
React.createElement(
|
|
729
|
-
|
|
722
|
+
index_js_1.Box,
|
|
730
723
|
{
|
|
731
724
|
...bodyProps,
|
|
732
725
|
...getTableBodyProps({
|
|
@@ -765,7 +758,7 @@ const Table = (props) => {
|
|
|
765
758
|
isLoading &&
|
|
766
759
|
data.length === 0 &&
|
|
767
760
|
React.createElement(
|
|
768
|
-
|
|
761
|
+
index_js_1.Box,
|
|
769
762
|
{
|
|
770
763
|
as: 'div',
|
|
771
764
|
...emptyTableContentProps,
|
|
@@ -774,22 +767,22 @@ const Table = (props) => {
|
|
|
774
767
|
emptyTableContentProps?.className,
|
|
775
768
|
),
|
|
776
769
|
},
|
|
777
|
-
React.createElement(
|
|
770
|
+
React.createElement(ProgressRadial_js_1.ProgressRadial, {
|
|
778
771
|
indeterminate: true,
|
|
779
772
|
}),
|
|
780
773
|
),
|
|
781
774
|
isLoading &&
|
|
782
775
|
data.length !== 0 &&
|
|
783
776
|
React.createElement(
|
|
784
|
-
|
|
777
|
+
index_js_1.Box,
|
|
785
778
|
{ className: 'iui-table-row' },
|
|
786
779
|
React.createElement(
|
|
787
|
-
|
|
780
|
+
index_js_1.Box,
|
|
788
781
|
{
|
|
789
782
|
className: 'iui-table-cell',
|
|
790
783
|
style: { justifyContent: 'center' },
|
|
791
784
|
},
|
|
792
|
-
React.createElement(
|
|
785
|
+
React.createElement(ProgressRadial_js_1.ProgressRadial, {
|
|
793
786
|
indeterminate: true,
|
|
794
787
|
size: 'small',
|
|
795
788
|
}),
|
|
@@ -799,7 +792,7 @@ const Table = (props) => {
|
|
|
799
792
|
data.length === 0 &&
|
|
800
793
|
!areFiltersSet &&
|
|
801
794
|
React.createElement(
|
|
802
|
-
|
|
795
|
+
index_js_1.Box,
|
|
803
796
|
{
|
|
804
797
|
as: 'div',
|
|
805
798
|
...emptyTableContentProps,
|
|
@@ -814,7 +807,7 @@ const Table = (props) => {
|
|
|
814
807
|
(data.length === 0 || rows.length === 0) &&
|
|
815
808
|
areFiltersSet &&
|
|
816
809
|
React.createElement(
|
|
817
|
-
|
|
810
|
+
index_js_1.Box,
|
|
818
811
|
{
|
|
819
812
|
as: 'div',
|
|
820
813
|
...emptyTableContentProps,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { Cell, CellProps, TableInstance } from 'react-table';
|
|
2
|
+
import type { Cell, CellProps, TableInstance } from '../../react-table/react-table.js';
|
|
3
3
|
export type TableCellProps<T extends Record<string, unknown>> = {
|
|
4
4
|
cell: Cell<T>;
|
|
5
5
|
cellIndex: number;
|
|
@@ -8,10 +8,12 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
11
|
+
const IconButton_js_1 = require('../Buttons/IconButton.js');
|
|
12
|
+
const Button_js_1 = require('../Buttons/Button.js');
|
|
13
|
+
const DropdownButton_js_1 = require('../Buttons/DropdownButton.js');
|
|
14
|
+
const ProgressRadial_js_1 = require('../ProgressIndicators/ProgressRadial.js');
|
|
15
|
+
const MenuItem_js_1 = require('../Menu/MenuItem.js');
|
|
16
|
+
const index_js_1 = require('../utils/index.js');
|
|
15
17
|
const defaultLocalization = {
|
|
16
18
|
pageSizeLabel: (size) => `${size} per page`,
|
|
17
19
|
rangeLabel: (startIndex, endIndex, totalRows, isLoading) =>
|
|
@@ -52,7 +54,7 @@ const TablePaginator = (props) => {
|
|
|
52
54
|
className,
|
|
53
55
|
...rest
|
|
54
56
|
} = props;
|
|
55
|
-
(0,
|
|
57
|
+
(0, index_js_1.useGlobals)();
|
|
56
58
|
const localization = React.useMemo(
|
|
57
59
|
() => ({ ...defaultLocalization, ...userLocalization }),
|
|
58
60
|
[userLocalization],
|
|
@@ -82,7 +84,7 @@ const TablePaginator = (props) => {
|
|
|
82
84
|
const pageButton = React.useCallback(
|
|
83
85
|
(index, tabIndex = index === focusedIndex ? 0 : -1) =>
|
|
84
86
|
React.createElement(
|
|
85
|
-
|
|
87
|
+
index_js_1.ButtonBase,
|
|
86
88
|
{
|
|
87
89
|
key: index,
|
|
88
90
|
className: (0, classnames_1.default)(
|
|
@@ -109,16 +111,16 @@ const TablePaginator = (props) => {
|
|
|
109
111
|
.map((_, index) => pageButton(index)),
|
|
110
112
|
[pageButton, totalPagesCount],
|
|
111
113
|
);
|
|
112
|
-
const [overflowRef, visibleCount] = (0,
|
|
114
|
+
const [overflowRef, visibleCount] = (0, index_js_1.useOverflow)(pageList);
|
|
113
115
|
const [paginatorResizeRef, paginatorWidth] = (0,
|
|
114
|
-
|
|
116
|
+
index_js_1.useContainerWidth)();
|
|
115
117
|
const onKeyDown = (event) => {
|
|
116
118
|
// alt + arrow keys are used by browser/assistive technologies
|
|
117
119
|
if (event.altKey) {
|
|
118
120
|
return;
|
|
119
121
|
}
|
|
120
122
|
const focusPage = (delta) => {
|
|
121
|
-
const newFocusedIndex = (0,
|
|
123
|
+
const newFocusedIndex = (0, index_js_1.getBoundedValue)(
|
|
122
124
|
focusedIndex + delta,
|
|
123
125
|
0,
|
|
124
126
|
totalPagesCount - 1,
|
|
@@ -169,7 +171,7 @@ const TablePaginator = (props) => {
|
|
|
169
171
|
const showPageSizeList =
|
|
170
172
|
pageSizeList && !!onPageSizeChange && !!totalRowsCount;
|
|
171
173
|
const ellipsis = React.createElement(
|
|
172
|
-
|
|
174
|
+
index_js_1.Box,
|
|
173
175
|
{
|
|
174
176
|
as: 'span',
|
|
175
177
|
className: (0, classnames_1.default)('iui-table-paginator-ellipsis', {
|
|
@@ -182,12 +184,12 @@ const TablePaginator = (props) => {
|
|
|
182
184
|
React.Fragment,
|
|
183
185
|
null,
|
|
184
186
|
isLoading
|
|
185
|
-
? React.createElement(
|
|
187
|
+
? React.createElement(ProgressRadial_js_1.ProgressRadial, {
|
|
186
188
|
indeterminate: true,
|
|
187
189
|
size: 'small',
|
|
188
190
|
})
|
|
189
191
|
: React.createElement(
|
|
190
|
-
|
|
192
|
+
Button_js_1.Button,
|
|
191
193
|
{ styleType: 'borderless', disabled: true, size: buttonSize },
|
|
192
194
|
'1',
|
|
193
195
|
),
|
|
@@ -196,14 +198,14 @@ const TablePaginator = (props) => {
|
|
|
196
198
|
return null;
|
|
197
199
|
}
|
|
198
200
|
return React.createElement(
|
|
199
|
-
|
|
201
|
+
index_js_1.Box,
|
|
200
202
|
{
|
|
201
203
|
className: (0, classnames_1.default)('iui-table-paginator', className),
|
|
202
204
|
ref: paginatorResizeRef,
|
|
203
205
|
...rest,
|
|
204
206
|
},
|
|
205
207
|
React.createElement(
|
|
206
|
-
|
|
208
|
+
index_js_1.Box,
|
|
207
209
|
{ className: 'iui-left' },
|
|
208
210
|
totalSelectedRowsCount > 0 &&
|
|
209
211
|
React.createElement(
|
|
@@ -214,10 +216,10 @@ const TablePaginator = (props) => {
|
|
|
214
216
|
),
|
|
215
217
|
showPagesList &&
|
|
216
218
|
React.createElement(
|
|
217
|
-
|
|
219
|
+
index_js_1.Box,
|
|
218
220
|
{ className: 'iui-center', ref: overflowRef },
|
|
219
221
|
React.createElement(
|
|
220
|
-
|
|
222
|
+
IconButton_js_1.IconButton,
|
|
221
223
|
{
|
|
222
224
|
styleType: 'borderless',
|
|
223
225
|
disabled: currentPage === 0,
|
|
@@ -225,10 +227,10 @@ const TablePaginator = (props) => {
|
|
|
225
227
|
size: buttonSize,
|
|
226
228
|
'aria-label': localization.previousPage,
|
|
227
229
|
},
|
|
228
|
-
React.createElement(
|
|
230
|
+
React.createElement(index_js_1.SvgChevronLeft, null),
|
|
229
231
|
),
|
|
230
232
|
React.createElement(
|
|
231
|
-
|
|
233
|
+
index_js_1.Box,
|
|
232
234
|
{
|
|
233
235
|
as: 'span',
|
|
234
236
|
className: 'iui-table-paginator-pages-group',
|
|
@@ -266,7 +268,7 @@ const TablePaginator = (props) => {
|
|
|
266
268
|
React.Fragment,
|
|
267
269
|
null,
|
|
268
270
|
ellipsis,
|
|
269
|
-
React.createElement(
|
|
271
|
+
React.createElement(ProgressRadial_js_1.ProgressRadial, {
|
|
270
272
|
indeterminate: true,
|
|
271
273
|
size: 'small',
|
|
272
274
|
}),
|
|
@@ -275,7 +277,7 @@ const TablePaginator = (props) => {
|
|
|
275
277
|
})(),
|
|
276
278
|
),
|
|
277
279
|
React.createElement(
|
|
278
|
-
|
|
280
|
+
IconButton_js_1.IconButton,
|
|
279
281
|
{
|
|
280
282
|
styleType: 'borderless',
|
|
281
283
|
disabled: currentPage === totalPagesCount - 1 || hasNoRows,
|
|
@@ -283,11 +285,11 @@ const TablePaginator = (props) => {
|
|
|
283
285
|
size: buttonSize,
|
|
284
286
|
'aria-label': localization.nextPage,
|
|
285
287
|
},
|
|
286
|
-
React.createElement(
|
|
288
|
+
React.createElement(index_js_1.SvgChevronRight, null),
|
|
287
289
|
),
|
|
288
290
|
),
|
|
289
291
|
React.createElement(
|
|
290
|
-
|
|
292
|
+
index_js_1.Box,
|
|
291
293
|
{ className: 'iui-right' },
|
|
292
294
|
showPageSizeList &&
|
|
293
295
|
React.createElement(
|
|
@@ -296,19 +298,19 @@ const TablePaginator = (props) => {
|
|
|
296
298
|
localization.rowsPerPageLabel !== null &&
|
|
297
299
|
paginatorWidth >= 1024 &&
|
|
298
300
|
React.createElement(
|
|
299
|
-
|
|
301
|
+
index_js_1.Box,
|
|
300
302
|
{ as: 'span', className: 'iui-table-paginator-page-size-label' },
|
|
301
303
|
localization.rowsPerPageLabel,
|
|
302
304
|
),
|
|
303
305
|
React.createElement(
|
|
304
|
-
|
|
306
|
+
DropdownButton_js_1.DropdownButton,
|
|
305
307
|
{
|
|
306
308
|
styleType: 'borderless',
|
|
307
309
|
size: buttonSize,
|
|
308
310
|
menuItems: (close) =>
|
|
309
311
|
pageSizeList.map((size) =>
|
|
310
312
|
React.createElement(
|
|
311
|
-
|
|
313
|
+
MenuItem_js_1.MenuItem,
|
|
312
314
|
{
|
|
313
315
|
key: size,
|
|
314
316
|
isSelected: size === pageSize,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellProps, Row, TableInstance, TableState } from 'react-table';
|
|
2
|
+
import type { CellProps, Row, TableInstance, TableState } from '../../react-table/react-table.js';
|
|
3
3
|
/**
|
|
4
4
|
* Memoization is needed to avoid unnecessary re-renders of all rows when additional data is added when lazy-loading.
|
|
5
5
|
* Using `isLast` here instead of passing data length to avoid re-renders of all rows when more data is added. Now only the last row re-renders.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TableInstance, TableState } from 'react-table';
|
|
1
|
+
import type { TableInstance, TableState } from '../../../react-table/react-table.js';
|
|
2
2
|
export declare const onExpandHandler: <T extends Record<string, unknown>>(newState: TableState<T>, instance?: TableInstance<T> | undefined, onExpand?: ((expandedData: T[] | undefined, tableState?: TableState<T> | undefined) => void) | undefined) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ActionType, TableInstance, TableState } from 'react-table';
|
|
1
|
+
import type { ActionType, TableInstance, TableState } from '../../../react-table/react-table.js';
|
|
2
2
|
import type { TableFilterValue } from '../filters/index.js';
|
|
3
3
|
export declare const onFilterHandler: <T extends Record<string, unknown>>(newState: TableState<T>, action: ActionType, previousState: TableState<T>, currentFilter: TableFilterValue<T>[], instance?: TableInstance<T> | undefined) => TableFilterValue<T>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ActionType, TableState } from 'react-table';
|
|
1
|
+
import type { ActionType, TableState } from '../../../react-table/react-table.js';
|
|
2
2
|
export declare const onTableResizeStart: <T extends Record<string, unknown>>(state: TableState<T>) => {
|
|
3
3
|
isTableResizing: boolean;
|
|
4
|
-
hiddenColumns?: import("react-table").IdType<T>[] | undefined;
|
|
4
|
+
hiddenColumns?: import("../../../react-table/react-table.js").IdType<T>[] | undefined;
|
|
5
5
|
columnResizing: {
|
|
6
6
|
startX?: number | undefined;
|
|
7
7
|
columnWidth?: number | undefined;
|
|
@@ -17,18 +17,18 @@ export declare const onTableResizeStart: <T extends Record<string, unknown>>(sta
|
|
|
17
17
|
isScrolledToLeft?: boolean | undefined;
|
|
18
18
|
};
|
|
19
19
|
lastSelectedRowId?: string | undefined;
|
|
20
|
-
columnOrder: import("react-table").IdType<T>[];
|
|
21
|
-
expanded: Record<import("react-table").IdType<T>, boolean>;
|
|
22
|
-
filters: import("react-table").Filters<T>;
|
|
20
|
+
columnOrder: import("../../../react-table/react-table.js").IdType<T>[];
|
|
21
|
+
expanded: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
22
|
+
filters: import("../../../react-table/react-table.js").Filters<T>;
|
|
23
23
|
globalFilter: any;
|
|
24
|
-
groupBy: import("react-table").IdType<T>[];
|
|
24
|
+
groupBy: import("../../../react-table/react-table.js").IdType<T>[];
|
|
25
25
|
pageSize: number;
|
|
26
26
|
pageIndex: number;
|
|
27
|
-
selectedRowIds: Record<import("react-table").IdType<T>, boolean>;
|
|
27
|
+
selectedRowIds: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
28
28
|
rowState: Record<string, {
|
|
29
|
-
cellState: import("react-table").UseRowStateLocalState<T, unknown>;
|
|
29
|
+
cellState: import("../../../react-table/react-table.js").UseRowStateLocalState<T, unknown>;
|
|
30
30
|
}>;
|
|
31
|
-
sortBy: import("react-table").SortingRule<T>[];
|
|
31
|
+
sortBy: import("../../../react-table/react-table.js").SortingRule<T>[];
|
|
32
32
|
};
|
|
33
33
|
export declare const onTableResizeEnd: <T extends Record<string, unknown>>(state: TableState<T>, action: ActionType) => {
|
|
34
34
|
isTableResizing: boolean;
|
|
@@ -41,23 +41,23 @@ export declare const onTableResizeEnd: <T extends Record<string, unknown>>(state
|
|
|
41
41
|
nextHeaderIdWidths?: [string, number][] | undefined;
|
|
42
42
|
isResizingColumn?: string | undefined;
|
|
43
43
|
};
|
|
44
|
-
hiddenColumns?: import("react-table").IdType<T>[] | undefined;
|
|
44
|
+
hiddenColumns?: import("../../../react-table/react-table.js").IdType<T>[] | undefined;
|
|
45
45
|
columnReorderStartIndex: number;
|
|
46
46
|
sticky: {
|
|
47
47
|
isScrolledToRight?: boolean | undefined;
|
|
48
48
|
isScrolledToLeft?: boolean | undefined;
|
|
49
49
|
};
|
|
50
50
|
lastSelectedRowId?: string | undefined;
|
|
51
|
-
columnOrder: import("react-table").IdType<T>[];
|
|
52
|
-
expanded: Record<import("react-table").IdType<T>, boolean>;
|
|
53
|
-
filters: import("react-table").Filters<T>;
|
|
51
|
+
columnOrder: import("../../../react-table/react-table.js").IdType<T>[];
|
|
52
|
+
expanded: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
53
|
+
filters: import("../../../react-table/react-table.js").Filters<T>;
|
|
54
54
|
globalFilter: any;
|
|
55
|
-
groupBy: import("react-table").IdType<T>[];
|
|
55
|
+
groupBy: import("../../../react-table/react-table.js").IdType<T>[];
|
|
56
56
|
pageSize: number;
|
|
57
57
|
pageIndex: number;
|
|
58
|
-
selectedRowIds: Record<import("react-table").IdType<T>, boolean>;
|
|
58
|
+
selectedRowIds: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
59
59
|
rowState: Record<string, {
|
|
60
|
-
cellState: import("react-table").UseRowStateLocalState<T, unknown>;
|
|
60
|
+
cellState: import("../../../react-table/react-table.js").UseRowStateLocalState<T, unknown>;
|
|
61
61
|
}>;
|
|
62
|
-
sortBy: import("react-table").SortingRule<T>[];
|
|
62
|
+
sortBy: import("../../../react-table/react-table.js").SortingRule<T>[];
|
|
63
63
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionType, TableInstance, TableState } from 'react-table';
|
|
1
|
+
import type { ActionType, TableInstance, TableState } from '../../../react-table/react-table.js';
|
|
2
2
|
/**
|
|
3
3
|
* Handles selection when toggling a row (Ctrl click or checkbox click)
|
|
4
4
|
*/
|
|
@@ -9,7 +9,7 @@ export declare const onToggleHandler: <T extends Record<string, unknown>>(newSta
|
|
|
9
9
|
export declare const onSingleSelectHandler: <T extends Record<string, unknown>>(state: TableState<T>, action: ActionType, instance?: TableInstance<T> | undefined, onSelect?: ((selectedData: T[] | undefined, tableState?: TableState<T> | undefined) => void) | undefined, isRowDisabled?: ((rowData: T) => boolean) | undefined) => {
|
|
10
10
|
lastSelectedRowId: any;
|
|
11
11
|
selectedRowIds: Record<string, boolean>;
|
|
12
|
-
hiddenColumns?: import("react-table").IdType<T>[] | undefined;
|
|
12
|
+
hiddenColumns?: import("../../../react-table/react-table.js").IdType<T>[] | undefined;
|
|
13
13
|
columnResizing: {
|
|
14
14
|
startX?: number | undefined;
|
|
15
15
|
columnWidth?: number | undefined;
|
|
@@ -25,17 +25,17 @@ export declare const onSingleSelectHandler: <T extends Record<string, unknown>>(
|
|
|
25
25
|
isScrolledToRight?: boolean | undefined;
|
|
26
26
|
isScrolledToLeft?: boolean | undefined;
|
|
27
27
|
};
|
|
28
|
-
columnOrder: import("react-table").IdType<T>[];
|
|
29
|
-
expanded: Record<import("react-table").IdType<T>, boolean>;
|
|
30
|
-
filters: import("react-table").Filters<T>;
|
|
28
|
+
columnOrder: import("../../../react-table/react-table.js").IdType<T>[];
|
|
29
|
+
expanded: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
30
|
+
filters: import("../../../react-table/react-table.js").Filters<T>;
|
|
31
31
|
globalFilter: any;
|
|
32
|
-
groupBy: import("react-table").IdType<T>[];
|
|
32
|
+
groupBy: import("../../../react-table/react-table.js").IdType<T>[];
|
|
33
33
|
pageSize: number;
|
|
34
34
|
pageIndex: number;
|
|
35
35
|
rowState: Record<string, {
|
|
36
|
-
cellState: import("react-table").UseRowStateLocalState<T, unknown>;
|
|
36
|
+
cellState: import("../../../react-table/react-table.js").UseRowStateLocalState<T, unknown>;
|
|
37
37
|
}>;
|
|
38
|
-
sortBy: import("react-table").SortingRule<T>[];
|
|
38
|
+
sortBy: import("../../../react-table/react-table.js").SortingRule<T>[];
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Handles selection when clicked on a row while shift key is pressed.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellRendererProps } from 'react-table';
|
|
2
|
+
import type { CellRendererProps } from '../../../react-table/react-table.js';
|
|
3
3
|
export type DefaultCellProps<T extends Record<string, unknown>> = {
|
|
4
4
|
/**
|
|
5
5
|
* Custom icon to be displayed at the beginning of the cell.
|