@itwin/itwinui-react 3.0.0-dev.10 → 3.0.0-dev.12
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 +40 -0
- 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 +2 -2
- 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 +2 -2
- package/cjs/core/Carousel/CarouselNavigation.d.ts +2 -2
- package/cjs/core/Carousel/CarouselNavigation.js +9 -9
- package/cjs/core/Checkbox/Checkbox.js +7 -7
- package/cjs/core/ColorPicker/ColorBuilder.js +3 -3
- package/cjs/core/ColorPicker/ColorInputPanel.js +26 -26
- package/cjs/core/ColorPicker/ColorPicker.js +5 -3
- package/cjs/core/ComboBox/ComboBox.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBox.js +17 -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 +11 -11
- package/cjs/core/ComboBox/helpers.d.ts +1 -1
- package/cjs/core/DatePicker/DatePicker.js +12 -10
- 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 +1 -1
- package/cjs/core/LabeledSelect/LabeledSelect.js +7 -6
- 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 +1 -1
- package/cjs/core/Select/Select.js +25 -24
- 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 +1 -1
- package/cjs/core/Slider/Thumb.d.ts +1 -1
- package/cjs/core/Slider/Thumb.js +4 -4
- 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 +49 -49
- 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 -10
- 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 +23 -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 +4 -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 +1 -1
- 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/utils.d.ts +1 -1
- package/cjs/core/Tag/Tag.js +2 -2
- package/cjs/core/Textarea/Textarea.js +2 -2
- package/cjs/core/Tile/Tile.d.ts +2 -2
- package/cjs/core/Tile/Tile.js +9 -8
- 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/index.d.ts +0 -6
- package/cjs/core/utils/components/index.js +0 -6
- package/cjs/core/utils/hooks/useGlobals.d.ts +1 -1
- package/cjs/index.d.ts +113 -1
- package/cjs/index.js +951 -4
- package/cjs/styles.js +5 -4
- 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 +1 -1
- 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 +2 -2
- package/esm/core/Carousel/CarouselNavigation.d.ts +2 -2
- package/esm/core/Carousel/CarouselNavigation.js +1 -1
- package/esm/core/Checkbox/Checkbox.js +1 -1
- package/esm/core/ColorPicker/ColorBuilder.js +1 -1
- package/esm/core/ColorPicker/ColorInputPanel.js +2 -2
- package/esm/core/ColorPicker/ColorPicker.js +5 -3
- package/esm/core/ComboBox/ComboBox.d.ts +1 -1
- package/esm/core/ComboBox/ComboBox.js +4 -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 +1 -1
- package/esm/core/ComboBox/helpers.d.ts +1 -1
- package/esm/core/DatePicker/DatePicker.js +7 -5
- 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 +1 -1
- package/esm/core/LabeledSelect/LabeledSelect.js +3 -2
- 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 +1 -1
- package/esm/core/Select/Select.js +6 -5
- 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 +1 -1
- package/esm/core/Slider/Thumb.d.ts +1 -1
- package/esm/core/Slider/Thumb.js +1 -1
- 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 +1 -1
- 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 -4
- 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 +6 -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 +3 -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 +1 -1
- 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/utils.d.ts +1 -1
- package/esm/core/Tag/Tag.js +1 -1
- package/esm/core/Textarea/Textarea.js +1 -1
- package/esm/core/Tile/Tile.d.ts +2 -2
- package/esm/core/Tile/Tile.js +4 -4
- 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/index.d.ts +0 -6
- package/esm/core/utils/components/index.js +0 -6
- package/esm/core/utils/hooks/useGlobals.d.ts +1 -1
- package/esm/index.d.ts +113 -1
- package/esm/index.js +124 -1
- package/esm/styles.js +5 -4
- package/package.json +8 -9
- package/styles.css +15 -15
- 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/Badge/index.js +0 -15
- 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/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/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/Backdrop/index.js +0 -5
- 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/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
|
@@ -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.
|
|
@@ -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 EditableCellProps<T extends Record<string, unknown>> = CellRendererProps<T> & {
|
|
4
4
|
/**
|
|
5
5
|
* Callback function when cell is edited. It is called only when `onBlur` event is fired.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { HeaderProps } from 'react-table';
|
|
3
|
-
import type { DropdownMenuProps } from '../../DropdownMenu/
|
|
2
|
+
import type { HeaderProps } from '../../../react-table/react-table.js';
|
|
3
|
+
import type { DropdownMenuProps } from '../../DropdownMenu/DropdownMenu.js';
|
|
4
4
|
type ActionColumnProps = {
|
|
5
5
|
columnManager?: boolean | {
|
|
6
6
|
dropdownMenuProps: Omit<DropdownMenuProps, 'menuItems' | 'children'>;
|
|
@@ -7,11 +7,11 @@ const tslib_1 = require('tslib');
|
|
|
7
7
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
10
|
+
const Checkbox_js_1 = require('../../Checkbox/Checkbox.js');
|
|
11
|
+
const index_js_1 = require('../../utils/index.js');
|
|
12
|
+
const DropdownMenu_js_1 = require('../../DropdownMenu/DropdownMenu.js');
|
|
13
|
+
const IconButton_js_1 = require('../../Buttons/IconButton.js');
|
|
14
|
+
const MenuItem_js_1 = require('../../Menu/MenuItem.js');
|
|
15
15
|
const Table_js_1 = require('../Table.js');
|
|
16
16
|
const selectionColumn_js_1 = require('./selectionColumn.js');
|
|
17
17
|
const expanderColumn_js_1 = require('./expanderColumn.js');
|
|
@@ -79,10 +79,10 @@ const ActionColumn = ({ columnManager = false } = {}) => {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
return React.createElement(
|
|
82
|
-
|
|
82
|
+
MenuItem_js_1.MenuItem,
|
|
83
83
|
{
|
|
84
84
|
key: column.id,
|
|
85
|
-
startIcon: React.createElement(
|
|
85
|
+
startIcon: React.createElement(Checkbox_js_1.Checkbox, {
|
|
86
86
|
checked: checked,
|
|
87
87
|
disabled: column.disableToggleVisibility,
|
|
88
88
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -104,7 +104,7 @@ const ActionColumn = ({ columnManager = false } = {}) => {
|
|
|
104
104
|
? columnManager.dropdownMenuProps
|
|
105
105
|
: {};
|
|
106
106
|
return React.createElement(
|
|
107
|
-
|
|
107
|
+
DropdownMenu_js_1.DropdownMenu,
|
|
108
108
|
{
|
|
109
109
|
...dropdownMenuProps,
|
|
110
110
|
menuItems: headerCheckBoxes,
|
|
@@ -114,9 +114,9 @@ const ActionColumn = ({ columnManager = false } = {}) => {
|
|
|
114
114
|
},
|
|
115
115
|
},
|
|
116
116
|
React.createElement(
|
|
117
|
-
|
|
117
|
+
IconButton_js_1.IconButton,
|
|
118
118
|
{ styleType: 'borderless', isActive: isOpen, ref: buttonRef },
|
|
119
|
-
React.createElement(
|
|
119
|
+
React.createElement(index_js_1.SvgColumnManager, null),
|
|
120
120
|
),
|
|
121
121
|
);
|
|
122
122
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellProps, CellRendererProps, Row } from 'react-table';
|
|
2
|
+
import type { CellProps, CellRendererProps, Row } from '../../../react-table/react-table.js';
|
|
3
3
|
export declare const EXPANDER_CELL_ID = "iui-table-expander";
|
|
4
4
|
/**
|
|
5
5
|
* Expander column that adds sub-content expander column to the Table.
|
|
@@ -8,8 +8,8 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const index_js_1 = require('../../utils/index.js');
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const IconButton_js_1 = require('../../Buttons/IconButton.js');
|
|
12
|
+
const index_js_2 = require('../cells/index.js');
|
|
13
13
|
exports.EXPANDER_CELL_ID = 'iui-table-expander';
|
|
14
14
|
/**
|
|
15
15
|
* Expander column that adds sub-content expander column to the Table.
|
|
@@ -52,7 +52,7 @@ const ExpanderColumn = (props = {}) => {
|
|
|
52
52
|
return null;
|
|
53
53
|
} else {
|
|
54
54
|
return React.createElement(
|
|
55
|
-
|
|
55
|
+
IconButton_js_1.IconButton,
|
|
56
56
|
{
|
|
57
57
|
className: 'iui-table-row-expander',
|
|
58
58
|
styleType: 'borderless',
|
|
@@ -62,13 +62,14 @@ const ExpanderColumn = (props = {}) => {
|
|
|
62
62
|
row.toggleRowExpanded();
|
|
63
63
|
},
|
|
64
64
|
disabled: isDisabled?.(props.row.original),
|
|
65
|
+
'aria-expanded': row.isExpanded,
|
|
65
66
|
},
|
|
66
67
|
React.createElement(index_js_1.SvgChevronRight, null),
|
|
67
68
|
);
|
|
68
69
|
}
|
|
69
70
|
},
|
|
70
71
|
cellRenderer: (props) =>
|
|
71
|
-
React.createElement(
|
|
72
|
+
React.createElement(index_js_2.DefaultCell, {
|
|
72
73
|
...props,
|
|
73
74
|
isDisabled: (rowData) => !!isDisabled?.(rowData),
|
|
74
75
|
}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellProps, CellRendererProps, HeaderProps } from 'react-table';
|
|
2
|
+
import type { CellProps, CellRendererProps, HeaderProps } from '../../../react-table/react-table.js';
|
|
3
3
|
export declare const SELECTION_CELL_ID = "iui-table-checkbox-selector";
|
|
4
4
|
/**
|
|
5
5
|
* Selection column that adds selection checkbox column to the Table.
|
|
@@ -7,8 +7,8 @@ const tslib_1 = require('tslib');
|
|
|
7
7
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
|
-
const
|
|
11
|
-
const
|
|
10
|
+
const Checkbox_js_1 = require('../../Checkbox/Checkbox.js');
|
|
11
|
+
const index_js_1 = require('../cells/index.js');
|
|
12
12
|
exports.SELECTION_CELL_ID = 'iui-table-checkbox-selector';
|
|
13
13
|
/**
|
|
14
14
|
* Selection column that adds selection checkbox column to the Table.
|
|
@@ -49,7 +49,7 @@ const SelectionColumn = (props = {}) => {
|
|
|
49
49
|
);
|
|
50
50
|
const indeterminate =
|
|
51
51
|
!checked && Object.keys(state.selectedRowIds).length > 0;
|
|
52
|
-
return React.createElement(
|
|
52
|
+
return React.createElement(Checkbox_js_1.Checkbox, {
|
|
53
53
|
...getToggleAllRowsSelectedProps(),
|
|
54
54
|
style: {},
|
|
55
55
|
title: '', // Removes default title that comes from react-table
|
|
@@ -61,7 +61,7 @@ const SelectionColumn = (props = {}) => {
|
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
63
|
Cell: ({ row }) =>
|
|
64
|
-
React.createElement(
|
|
64
|
+
React.createElement(Checkbox_js_1.Checkbox, {
|
|
65
65
|
...row.getToggleRowSelectedProps(),
|
|
66
66
|
style: {},
|
|
67
67
|
title: '', // Removes default title that comes from react-table
|
|
@@ -69,7 +69,7 @@ const SelectionColumn = (props = {}) => {
|
|
|
69
69
|
onClick: (e) => e.stopPropagation(),
|
|
70
70
|
}),
|
|
71
71
|
cellRenderer: (props) =>
|
|
72
|
-
React.createElement(
|
|
72
|
+
React.createElement(index_js_1.DefaultCell, {
|
|
73
73
|
...props,
|
|
74
74
|
isDisabled: (rowData) => !!isDisabled?.(rowData),
|
|
75
75
|
}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { LabeledInput } from '../../../LabeledInput/
|
|
2
|
+
import type { LabeledInput } from '../../../LabeledInput/LabeledInput.js';
|
|
3
3
|
import type { PolymorphicForwardRefComponent } from '../../../utils/index.js';
|
|
4
4
|
import type { DatePickerLocalizedNames } from '../../../DatePicker/DatePicker.js';
|
|
5
5
|
export type DatePickerInputProps = {
|
|
@@ -7,10 +7,11 @@ const tslib_1 = require('tslib');
|
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
const React = tslib_1.__importStar(require('react'));
|
|
9
9
|
const index_js_1 = require('../../../utils/index.js');
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
10
|
+
const DatePicker_js_1 = require('../../../DatePicker/DatePicker.js');
|
|
11
|
+
const InputGrid_js_1 = require('../../../InputGrid/InputGrid.js');
|
|
12
|
+
const Label_js_1 = require('../../../Label/Label.js');
|
|
13
|
+
const InputWithDecorations_js_1 = require('../../../InputWithDecorations/InputWithDecorations.js');
|
|
14
|
+
const Popover_js_1 = require('../../../Popover/Popover.js');
|
|
14
15
|
const DatePickerInput = React.forwardRef((props, forwardedRef) => {
|
|
15
16
|
const uid = (0, index_js_1.useId)();
|
|
16
17
|
const {
|
|
@@ -69,10 +70,10 @@ const DatePickerInput = React.forwardRef((props, forwardedRef) => {
|
|
|
69
70
|
[onChange, parseInput],
|
|
70
71
|
);
|
|
71
72
|
return React.createElement(
|
|
72
|
-
|
|
73
|
+
InputGrid_js_1.InputGrid,
|
|
73
74
|
{ labelPlacement: 'inline', ...wrapperProps },
|
|
74
75
|
React.createElement(
|
|
75
|
-
|
|
76
|
+
Label_js_1.Label,
|
|
76
77
|
{
|
|
77
78
|
as: 'label',
|
|
78
79
|
required: required,
|
|
@@ -83,21 +84,24 @@ const DatePickerInput = React.forwardRef((props, forwardedRef) => {
|
|
|
83
84
|
label,
|
|
84
85
|
),
|
|
85
86
|
React.createElement(
|
|
86
|
-
|
|
87
|
+
InputWithDecorations_js_1.InputWithDecorations,
|
|
87
88
|
{ ...inputWrapperProps },
|
|
88
|
-
React.createElement(index_js_5.InputWithDecorations.Input, {
|
|
89
|
-
id: id,
|
|
90
|
-
value: inputValue,
|
|
91
|
-
onChange: onInputChange,
|
|
92
|
-
required: required,
|
|
93
|
-
disabled: disabled,
|
|
94
|
-
ref: forwardedRef,
|
|
95
|
-
...rest,
|
|
96
|
-
}),
|
|
97
89
|
React.createElement(
|
|
98
|
-
|
|
90
|
+
InputWithDecorations_js_1.InputWithDecorations.Input,
|
|
91
|
+
{
|
|
92
|
+
id: id,
|
|
93
|
+
value: inputValue,
|
|
94
|
+
onChange: onInputChange,
|
|
95
|
+
required: required,
|
|
96
|
+
disabled: disabled,
|
|
97
|
+
ref: forwardedRef,
|
|
98
|
+
...rest,
|
|
99
|
+
},
|
|
100
|
+
),
|
|
101
|
+
React.createElement(
|
|
102
|
+
Popover_js_1.Popover,
|
|
99
103
|
{
|
|
100
|
-
content: React.createElement(
|
|
104
|
+
content: React.createElement(DatePicker_js_1.DatePicker, {
|
|
101
105
|
date: date,
|
|
102
106
|
onChange: onDateSelected,
|
|
103
107
|
setFocus: true,
|
|
@@ -112,7 +116,7 @@ const DatePickerInput = React.forwardRef((props, forwardedRef) => {
|
|
|
112
116
|
applyBackground: true,
|
|
113
117
|
},
|
|
114
118
|
React.createElement(
|
|
115
|
-
|
|
119
|
+
InputWithDecorations_js_1.InputWithDecorations.Button,
|
|
116
120
|
{ 'aria-label': 'Date picker', ref: buttonRef },
|
|
117
121
|
React.createElement(index_js_1.SvgCalendar, null),
|
|
118
122
|
),
|
|
@@ -9,7 +9,7 @@ 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 index_js_1 = require('../../utils/index.js');
|
|
12
|
-
const
|
|
12
|
+
const Button_js_1 = require('../../Buttons/Button.js');
|
|
13
13
|
const defaultStrings = {
|
|
14
14
|
filter: 'Filter',
|
|
15
15
|
clear: 'Clear',
|
|
@@ -40,12 +40,12 @@ const FilterButtonBar = (props) => {
|
|
|
40
40
|
},
|
|
41
41
|
children,
|
|
42
42
|
React.createElement(
|
|
43
|
-
|
|
43
|
+
Button_js_1.Button,
|
|
44
44
|
{ styleType: 'high-visibility', onClick: setFilter },
|
|
45
45
|
translatedStrings.filter,
|
|
46
46
|
),
|
|
47
47
|
React.createElement(
|
|
48
|
-
|
|
48
|
+
Button_js_1.Button,
|
|
49
49
|
{ onClick: clearFilter },
|
|
50
50
|
translatedStrings.clear,
|
|
51
51
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { HeaderGroup } from 'react-table';
|
|
2
|
+
import type { HeaderGroup } from '../../../react-table/react-table.js';
|
|
3
3
|
import type { CommonProps } from '../../utils/index.js';
|
|
4
4
|
export type FilterToggleProps<T extends Record<string, unknown>> = {
|
|
5
5
|
column: HeaderGroup<T>;
|
|
@@ -9,7 +9,8 @@ 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 index_js_1 = require('../../utils/index.js');
|
|
12
|
-
const
|
|
12
|
+
const IconButton_js_1 = require('../../Buttons/IconButton.js');
|
|
13
|
+
const Popover_js_1 = require('../../Popover/Popover.js');
|
|
13
14
|
/**
|
|
14
15
|
* Handles showing filter icon and opening filter component.
|
|
15
16
|
*/
|
|
@@ -37,7 +38,7 @@ const FilterToggle = (props) => {
|
|
|
37
38
|
column.canFilter &&
|
|
38
39
|
column.Filter &&
|
|
39
40
|
React.createElement(
|
|
40
|
-
|
|
41
|
+
Popover_js_1.Popover,
|
|
41
42
|
{
|
|
42
43
|
content: column.render('Filter', { close, setFilter, clearFilter }),
|
|
43
44
|
placement: 'bottom-start',
|
|
@@ -47,7 +48,7 @@ const FilterToggle = (props) => {
|
|
|
47
48
|
applyBackground: true,
|
|
48
49
|
},
|
|
49
50
|
React.createElement(
|
|
50
|
-
|
|
51
|
+
IconButton_js_1.IconButton,
|
|
51
52
|
{
|
|
52
53
|
styleType: 'borderless',
|
|
53
54
|
isActive: isVisible || isColumnFiltered,
|
|
@@ -10,7 +10,7 @@ const React = tslib_1.__importStar(require('react'));
|
|
|
10
10
|
const index_js_1 = require('../../../utils/index.js');
|
|
11
11
|
const FilterButtonBar_js_1 = require('../FilterButtonBar.js');
|
|
12
12
|
const BaseFilter_js_1 = require('../BaseFilter.js');
|
|
13
|
-
const
|
|
13
|
+
const LabeledInput_js_1 = require('../../../LabeledInput/LabeledInput.js');
|
|
14
14
|
const defaultStrings = {
|
|
15
15
|
from: 'From',
|
|
16
16
|
to: 'To',
|
|
@@ -41,7 +41,7 @@ const NumberRangeFilter = (props) => {
|
|
|
41
41
|
return React.createElement(
|
|
42
42
|
BaseFilter_js_1.BaseFilter,
|
|
43
43
|
null,
|
|
44
|
-
React.createElement(
|
|
44
|
+
React.createElement(LabeledInput_js_1.LabeledInput, {
|
|
45
45
|
ref: inputRef,
|
|
46
46
|
label: translatedStrings.from,
|
|
47
47
|
value: from,
|
|
@@ -50,7 +50,7 @@ const NumberRangeFilter = (props) => {
|
|
|
50
50
|
type: 'number',
|
|
51
51
|
displayStyle: 'inline',
|
|
52
52
|
}),
|
|
53
|
-
React.createElement(
|
|
53
|
+
React.createElement(LabeledInput_js_1.LabeledInput, {
|
|
54
54
|
label: translatedStrings.to,
|
|
55
55
|
value: to,
|
|
56
56
|
onChange: (e) => setTo(e.target.value),
|