@economic/taco 2.18.0 → 2.20.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Provider/Localization.d.ts +18 -0
- package/dist/components/Report/components/Body/Body.d.ts +8 -0
- package/dist/components/Report/components/Cell/Cell.d.ts +3 -0
- package/dist/components/Report/components/Cell/DisplayCell.d.ts +7 -0
- package/dist/components/Report/components/Cell/GroupedCell.d.ts +7 -0
- package/dist/components/Report/components/Cell/util.d.ts +18 -0
- package/dist/components/Report/components/Footer/Footer.d.ts +6 -0
- package/dist/components/Report/components/Footer/Summary.d.ts +7 -0
- package/dist/components/Report/components/Header/Header.d.ts +37 -0
- package/dist/components/Report/components/Header/components/Goto.d.ts +6 -0
- package/dist/components/Report/components/Header/components/Menu.d.ts +17 -0
- package/dist/components/Report/components/Header/components/Resizer.d.ts +12 -0
- package/dist/components/Report/components/Header/components/SortIndicator.d.ts +15 -0
- package/dist/components/Report/components/Header/util.d.ts +4 -0
- package/dist/components/Report/components/Internal/Actions.d.ts +13 -0
- package/dist/components/Report/components/Internal/Expansion.d.ts +4 -0
- package/dist/components/Report/components/Internal/Selection.d.ts +4 -0
- package/dist/components/Report/components/Row/DisplayRow.d.ts +16 -0
- package/dist/components/Report/components/Row/Row.d.ts +8 -0
- package/dist/components/Report/components/Row/RowContext.d.ts +9 -0
- package/dist/components/Report/components/Row/SkeletonRow.d.ts +10 -0
- package/dist/components/Report/components/Toolbar/Toolbar.d.ts +15 -0
- package/dist/components/Report/components/Toolbar/components/Filters/Filters.d.ts +7 -0
- package/dist/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.d.ts +7 -0
- package/dist/components/Report/components/Toolbar/components/Filters/components/Filter.d.ts +12 -0
- package/dist/components/Report/components/Toolbar/components/Filters/components/FilterColumn.d.ts +9 -0
- package/dist/components/Report/components/Toolbar/components/Filters/components/FilterComparator.d.ts +7 -0
- package/dist/components/Report/components/Toolbar/components/Filters/components/FilterValue.d.ts +10 -0
- package/dist/components/Report/components/Toolbar/components/Filters/components/Placeholder.d.ts +12 -0
- package/dist/components/Report/components/Toolbar/components/Filters/util.d.ts +2 -0
- package/dist/components/Report/components/Toolbar/components/Print/Print.d.ts +9 -0
- package/dist/components/Report/components/Toolbar/components/Print/PrintDialog.d.ts +17 -0
- package/dist/components/Report/components/Toolbar/components/Search/Search.d.ts +8 -0
- package/dist/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +7 -0
- package/dist/components/Report/components/Toolbar/components/Settings/Settings.d.ts +8 -0
- package/dist/components/Report/features/useReportExport.d.ts +3 -0
- package/dist/components/Report/styles/useColumnPinningStylesheet.d.ts +2 -0
- package/dist/components/Report/styles/useCssGridStylesheet.d.ts +3 -0
- package/dist/components/Report/styles/useStylesheet.d.ts +3 -0
- package/dist/components/Report/styles/util.d.ts +3 -0
- package/dist/components/Report/types.d.ts +20 -0
- package/dist/components/Report/useReport.d.ts +14 -0
- package/dist/components/Report/util/rows.d.ts +7 -0
- package/dist/components/Report/util/useTableGlobalShortcuts.d.ts +4 -0
- package/dist/components/Report/util/useTableRenderer.d.ts +9 -0
- package/dist/components/Select2/Select2.d.ts +2 -0
- package/dist/components/Select2/components/Context.d.ts +2 -0
- package/dist/components/Select2/components/Group.d.ts +2 -0
- package/dist/components/Select2/components/Option.d.ts +3 -0
- package/dist/components/Table3/Table3.d.ts +1 -1
- package/dist/components/Table3/components/rows/Row.d.ts +1 -1
- package/dist/components/Table3/components/toolbar/FontSize.d.ts +0 -4
- package/dist/components/Table3/hooks/features/usePrinting.d.ts +7 -0
- package/dist/components/Table3/hooks/useCssGrid.d.ts +2 -2
- package/dist/components/Table3/hooks/useCssVars.d.ts +3 -2
- package/dist/components/Table3/hooks/useTable.d.ts +5 -5
- package/dist/components/Table3/types.d.ts +23 -5
- package/dist/esm/index.css +12 -12
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +1 -1
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Alert/Alert.js +1 -1
- package/dist/esm/packages/taco/src/components/Alert/Alert.js.map +1 -1
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js +2 -2
- package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Badge/Badge.js +1 -1
- package/dist/esm/packages/taco/src/components/Badge/Badge.js.map +1 -1
- package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js +1 -1
- package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Banner/Banner.js +2 -2
- package/dist/esm/packages/taco/src/components/Banner/Banner.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Button/Button.js +1 -1
- package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +1 -1
- package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Card/Card.js +2 -2
- package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +1 -1
- package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +1 -1
- package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +1 -1
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +5 -5
- package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/util.js +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Field/Field.js +1 -1
- package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Form/Form.js +1 -1
- package/dist/esm/packages/taco/src/components/Form/Form.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Group/Group.js +1 -1
- package/dist/esm/packages/taco/src/components/Group/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Hanger/Hanger.js +2 -2
- package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/Header.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js +2 -2
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js +2 -2
- package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Button.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Link.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Link.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Logo.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/Logo.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js.map +1 -1
- package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js +1 -1
- package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Icon/Icon.js +1 -1
- package/dist/esm/packages/taco/src/components/Icon/Icon.js.map +1 -1
- package/dist/esm/packages/taco/src/components/IconButton/IconButton.js +1 -1
- package/dist/esm/packages/taco/src/components/IconButton/IconButton.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/util.js +1 -1
- package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Layout/Layout.js +2 -2
- package/dist/esm/packages/taco/src/components/Layout/Layout.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Layout/components/Content.js +2 -2
- package/dist/esm/packages/taco/src/components/Layout/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Layout/components/Page.js +2 -2
- package/dist/esm/packages/taco/src/components/Layout/components/Page.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js +2 -2
- package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/Listbox.js +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/Listbox.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Header.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js.map +1 -1
- package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js +1 -1
- package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation/Navigation.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation/Navigation.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js +2 -2
- package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/util.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/components/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js +1 -1
- package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Pagination/Pagination.js +1 -1
- package/dist/esm/packages/taco/src/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Popover/Popover.js +1 -1
- package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Progress/Progress.js +1 -1
- package/dist/esm/packages/taco/src/components/Progress/Progress.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +18 -0
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/util.js +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +1 -1
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -1
- package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +3 -3
- package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select/Select.js +1 -1
- package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select/useSelect.js +1 -1
- package/dist/esm/packages/taco/src/components/Select/useSelect.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js +3 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Context.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Group.js +5 -2
- package/dist/esm/packages/taco/src/components/Select2/components/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js +9 -3
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Search.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Search.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Title.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Title.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +2 -2
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/utilities.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js +1 -1
- package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Spinner/Spinner.js +1 -1
- package/dist/esm/packages/taco/src/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Switch/Switch.js +1 -1
- package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js +2 -2
- package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js +5 -11
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +4 -2
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +2 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +2 -2
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Indicator.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +2 -2
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +5 -2
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Resizer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +4 -4
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Selection.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/styles.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +2 -2
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterValue.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js +5 -9
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/FontSize.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js +3 -3
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/RowHeight.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +1 -1
- package/dist/esm/packages/taco/src/{primitives/Table/useTable/features/useTablePrinting.js → components/Table3/hooks/features/usePrinting.js} +3 -3
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePrinting.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssGrid.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js +10 -10
- package/dist/esm/packages/taco/src/components/Table3/hooks/useCssVars.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +4 -3
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +1 -1
- package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tag/Tag.js +2 -2
- package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Textarea/Textarea.js +1 -1
- package/dist/esm/packages/taco/src/components/Textarea/Textarea.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Toast/Toast.js +2 -2
- package/dist/esm/packages/taco/src/components/Toast/Toast.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +2 -2
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Treeview/Treeview.js +1 -1
- package/dist/esm/packages/taco/src/components/Treeview/Treeview.js.map +1 -1
- package/dist/esm/packages/taco/src/index.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/types.js +25 -8
- package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnOrdering.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFontSize.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js +11 -21
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActive.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowClick.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGoto.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowSelection.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js +42 -2
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableServerLoading.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFontSizeListener.js +7 -7
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableFontSizeListener.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js +14 -12
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +7 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -0
- package/dist/esm/packages/taco/src/types.js +7 -1
- package/dist/esm/packages/taco/src/types.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/dom.js +10 -1
- package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
- package/dist/index.css +12 -12
- package/dist/primitives/Table/types.d.ts +186 -7
- package/dist/primitives/Table/useTable/features/useTableColumnFreezing.d.ts +6 -0
- package/dist/primitives/Table/useTable/features/useTableFontSize.d.ts +2 -2
- package/dist/primitives/Table/useTable/features/useTableFooter.d.ts +3 -0
- package/dist/primitives/Table/useTable/features/useTablePrinting.d.ts +1 -0
- package/dist/primitives/Table/useTable/features/useTableRef.d.ts +4 -0
- package/dist/primitives/Table/useTable/features/useTableRowActions.d.ts +6 -0
- package/dist/primitives/Table/useTable/features/useTableRowActive.d.ts +0 -1
- package/dist/primitives/Table/useTable/features/useTableRowClick.d.ts +1 -1
- package/dist/primitives/Table/useTable/features/useTableRowExpansion.d.ts +5 -0
- package/dist/primitives/Table/useTable/features/useTableRowGoto.d.ts +1 -1
- package/dist/primitives/Table/useTable/features/useTableRowGroups.d.ts +5 -0
- package/dist/primitives/Table/useTable/features/useTableRowSelection.d.ts +1 -0
- package/dist/primitives/Table/useTable/features/useTableSearch.d.ts +11 -0
- package/dist/primitives/Table/useTable/features/useTableServerLoading.d.ts +5 -2
- package/dist/primitives/Table/useTable/features/useTableSettings.d.ts +3 -0
- package/dist/primitives/Table/useTable/listeners/useTableRowHeightListener.d.ts +2 -0
- package/dist/primitives/Table/useTable/listeners/useTableSearchListener.d.ts +2 -0
- package/dist/primitives/Table/useTable/listeners/useTableSettingsListener.d.ts +3 -0
- package/dist/primitives/Table/useTable/useTable.d.ts +57 -0
- package/dist/primitives/Table/useTable/util/columns.d.ts +9 -3
- package/dist/primitives/Table/useTable/util/columns.spec.d.ts +1 -0
- package/dist/primitives/Table/useTable/util/filtering.d.ts +7 -0
- package/dist/primitives/Table/useTable/util/presets.d.ts +2 -0
- package/dist/primitives/Table/useTable/util/search.d.ts +2 -0
- package/dist/primitives/Table/useTable/util/settings.d.ts +13 -0
- package/dist/primitives/Table/useTable/util/setup.d.ts +14 -0
- package/dist/primitives/Table/useTable/util/sorting.d.ts +2 -0
- package/dist/primitives/Table/useTableDataLoader.d.ts +23 -0
- package/dist/taco.cjs.development.js +215 -131
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/utils/dom.d.ts +1 -0
- package/package.json +4 -3
- package/types.json +25105 -11841
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTablePrinting.js.map +0 -1
package/dist/index.css
CHANGED
@@ -895,17 +895,17 @@
|
|
895
895
|
@apply !my-0;
|
896
896
|
}
|
897
897
|
|
898
|
-
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself */
|
898
|
+
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself and remove 1px border-width */
|
899
899
|
|
900
900
|
[data-font-size='small'] [role='cell'][data-editable]:not([data-highlighted='true']) {
|
901
|
-
@apply px-[calc(var(--table3-cell-padding-x)_-
|
901
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_6px_-_1px)];
|
902
902
|
}
|
903
903
|
|
904
|
-
/* When cell is editable and highlighted, the padding should apply to highlight wrapper,
|
904
|
+
/* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
|
905
905
|
because it should take all the available space in the cell */
|
906
906
|
|
907
907
|
[data-font-size='small'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
|
908
|
-
@apply px-[calc(var(--table3-cell-padding-x)_-
|
908
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_6px_-_1px)];
|
909
909
|
}
|
910
910
|
|
911
911
|
[data-font-size='small'] [role='cell'][data-editable] [data-taco='checkbox'],
|
@@ -934,17 +934,17 @@
|
|
934
934
|
@apply !-my-[5px];
|
935
935
|
}
|
936
936
|
|
937
|
-
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself */
|
937
|
+
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself and remove 1px border-width */
|
938
938
|
|
939
939
|
[data-font-size='medium'] [role='cell'][data-editable]:not([data-highlighted='true']) {
|
940
|
-
@apply px-[calc(var(--table3-cell-padding-x)_-
|
940
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_8px_-_1px)];
|
941
941
|
}
|
942
942
|
|
943
|
-
/* When cell is editable and highlighted, the padding should apply to highlight wrapper,
|
943
|
+
/* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
|
944
944
|
because it should take all the available space in the cell */
|
945
945
|
|
946
946
|
[data-font-size='medium'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
|
947
|
-
@apply px-[calc(var(--table3-cell-padding-x)_-
|
947
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_8px_-_1px)];
|
948
948
|
}
|
949
949
|
|
950
950
|
[data-font-size='medium'] [role='cell'][data-editable] [data-taco='checkbox'],
|
@@ -1003,17 +1003,17 @@
|
|
1003
1003
|
@apply !h-6 !w-6;
|
1004
1004
|
}
|
1005
1005
|
|
1006
|
-
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself */
|
1006
|
+
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself and remove 1px border-width */
|
1007
1007
|
|
1008
1008
|
[data-font-size='large'] [role='cell'][data-editable]:not([data-highlighted='true']) {
|
1009
|
-
@apply px-[calc(var(--table3-cell-padding-x)_-
|
1009
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_10px_-_1px)];
|
1010
1010
|
}
|
1011
1011
|
|
1012
|
-
/* When cell is editable and highlighted, the padding should apply to highlight wrapper,
|
1012
|
+
/* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
|
1013
1013
|
because it should take all the available space in the cell */
|
1014
1014
|
|
1015
1015
|
[data-font-size='large'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
|
1016
|
-
@apply px-[calc(var(--table3-cell-padding-x)_-
|
1016
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_10px_-_1px)];
|
1017
1017
|
}
|
1018
1018
|
|
1019
1019
|
[data-font-size='large'] [role='cell'][data-editable] [data-taco='checkbox'],
|
@@ -1,5 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ColumnFilter as ReactTableColumnFilter, ColumnFiltersState as ReactTableColumnFilterState, ColumnOrderState as ReactTableColumnOrderState, ColumnPinningState as ReactTableColumnPinningState, ColumnSort as ReactTableColumnSort, ColumnSizingState as ReactTableColumnSizingState, GroupingState as ReactTableGroupingState, VisibilityState as ReactTableColumnVisibilityState, SortingState as ReactTableSortingState, BuiltInAggregationFn as ReactTableBuiltInAggregationFn, BuiltInSortingFn as ReactTableBuiltInSortingFn, HeaderContext as ReactTableHeaderContext, CellContext as ReactTableCellContext, ColumnMeta as ReactTableColumnMeta } from '@tanstack/react-table';
|
3
|
+
import { FontSizes, ValueOf } from '../../types';
|
4
|
+
import { MenuProps } from '../../components/Menu/Menu';
|
5
|
+
declare type TODO = any;
|
6
|
+
export declare type TableRef = HTMLTableElement & {
|
3
7
|
instance: {
|
4
8
|
resetFiltering: () => void;
|
5
9
|
resetRowExpansion: () => void;
|
@@ -7,14 +11,57 @@ export declare type TableRef = HTMLDivElement & {
|
|
7
11
|
resetSorting: () => void;
|
8
12
|
};
|
9
13
|
};
|
10
|
-
export declare enum
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
+
export declare enum TableFilterComparator {
|
15
|
+
Contains = 0,
|
16
|
+
DoesNotContain = 1,
|
17
|
+
IsEqualTo = 2,
|
18
|
+
IsNotEqualTo = 3,
|
19
|
+
IsGreaterThan = 4,
|
20
|
+
IsLessThan = 5,
|
21
|
+
IsBetween = 6,
|
22
|
+
IsEmpty = 7,
|
23
|
+
IsNotEmpty = 8,
|
24
|
+
IsLessThanOrEqualTo = 9,
|
25
|
+
IsGreaterThanOrEqualTo = 10,
|
26
|
+
HasAnyOf = 11,
|
27
|
+
HasAllOf = 12,
|
28
|
+
HasNoneOf = 13
|
14
29
|
}
|
15
|
-
export declare type
|
30
|
+
export declare type TableFilterValue = {
|
31
|
+
comparator: TableFilterComparator;
|
32
|
+
value: any;
|
33
|
+
};
|
34
|
+
export declare type TableFilter = {
|
35
|
+
id: string;
|
36
|
+
value: TableFilterValue;
|
37
|
+
};
|
38
|
+
export declare type TableColumnAlignment = 'left' | 'center' | 'right';
|
39
|
+
export declare type TableColumnClassNameHandler<TType = unknown> = string | ((row: TType) => string | undefined);
|
40
|
+
export declare type TableColumnDataType = 'auto' | 'number' | 'alphanumeric' | 'alphanumericCaseSensitive' | 'datetime' | 'boolean';
|
16
41
|
export declare type TableColumnFilter = ReactTableColumnFilter;
|
42
|
+
export declare type TableColumnMenu = (props: Partial<MenuProps>) => JSX.Element;
|
43
|
+
export declare type TableColumnRenderer<TType, TValue> = (value: TValue, row: TType) => JSX.Element | string | number | null;
|
44
|
+
export declare type TableColumnRendererAggregate<TType, TValue> = (value: TValue, row: TType) => JSX.Element | string | number | null;
|
45
|
+
export declare type TableColumnRendererControl<TType = unknown> = ((props: TableColumnRendererControlProps, row?: TType) => JSX.Element) | 'datepicker' | 'input' | 'switch' | 'textarea';
|
46
|
+
export declare type TableColumnRendererControlProps = {
|
47
|
+
className?: string;
|
48
|
+
disabled?: boolean;
|
49
|
+
invalid?: boolean;
|
50
|
+
onBlur?: (value: unknown) => void;
|
51
|
+
onFocus?: React.FocusEventHandler;
|
52
|
+
readOnly?: boolean;
|
53
|
+
ref: React.RefObject<HTMLElement> | ((instance: HTMLElement | null | undefined) => void);
|
54
|
+
setValue: (value: unknown) => void;
|
55
|
+
value: unknown;
|
56
|
+
};
|
57
|
+
export declare type TableColumnRendererHeader = string;
|
58
|
+
export declare type TableColumnRendererFooter<TValue> = (values: TValue[]) => JSX.Element | string | number | null;
|
17
59
|
export declare type TableColumnSort = ReactTableColumnSort;
|
60
|
+
export declare type TableColumnSortDirection = 'asc' | 'desc';
|
61
|
+
export declare type TableColumnSortFn<TType = unknown> = ((rowA: TType, rowB: TType, columnId: string) => -1 | 0 | 1) | ReactTableBuiltInSortingFn | 'auto';
|
62
|
+
export declare type TableColumnWidth = number | 'grow';
|
63
|
+
export declare type TableRowActionRenderer<TType = unknown> = (row: TType) => JSX.Element | null;
|
64
|
+
export declare type TableRowActionGroupRenderer<TType = unknown> = (rows: TType[]) => JSX.Element | null;
|
18
65
|
export declare type TableRowClickHandler<TType = unknown> = (row: TType) => void;
|
19
66
|
export declare type TableRowGotoHandler = (column: string, query: string, sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<number>;
|
20
67
|
export declare type TableRowHeight = 'short' | 'medium' | 'tall' | 'extra-tall';
|
@@ -26,10 +73,142 @@ export declare type TableShortcutHandlerObject<TType = unknown> = {
|
|
26
73
|
shift?: boolean;
|
27
74
|
};
|
28
75
|
export declare type TableFilterHandler = (filters: TableColumnFilter[]) => void;
|
76
|
+
export declare type TableFontSize = keyof typeof FontSizes;
|
77
|
+
export declare type TablePreset = 'lite' | 'complex';
|
78
|
+
export declare type TableRowExpansionRenderer<TType = unknown> = (row: TType) => (() => JSX.Element) | null;
|
29
79
|
export declare type TableScrollToIndexHandler = (index: number, options?: {
|
30
80
|
align: 'start' | 'center' | 'end' | 'auto';
|
31
81
|
}) => void;
|
32
82
|
export declare type TableServerLoadPageHandler = (pageIndex: number, sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<void>;
|
33
83
|
export declare type TableServerLoadAllHandler = (sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<void>;
|
84
|
+
export declare enum TableServerLoadAllState {
|
85
|
+
Incomplete = 0,
|
86
|
+
Loading = 1,
|
87
|
+
Completed = 2
|
88
|
+
}
|
89
|
+
export declare type TableSettingsHandler = (settings: TableSettings) => void | Promise<void>;
|
34
90
|
export declare type TableShortcuts<TType = unknown> = Record<string, TableShortcutHandlerFn<TType> | TableShortcutHandlerObject<TType>>;
|
35
91
|
export declare type TableSortHandler = (sorting: TableColumnSort[]) => void;
|
92
|
+
export declare type TableSettings = {
|
93
|
+
columnFilters?: ReactTableColumnFilterState;
|
94
|
+
columnOrder?: ReactTableColumnOrderState;
|
95
|
+
columnPinning?: ReactTableColumnPinningState;
|
96
|
+
columnSizing?: ReactTableColumnSizingState;
|
97
|
+
columnVisibility?: ReactTableColumnVisibilityState;
|
98
|
+
excludeUnmatchedRecordsInSearch?: boolean;
|
99
|
+
fontSize?: TableFontSize;
|
100
|
+
grouping?: ReactTableGroupingState;
|
101
|
+
rowHeight?: TableRowHeight;
|
102
|
+
showWarningWhenPrintingLargeDataset?: boolean;
|
103
|
+
searchQuery?: string;
|
104
|
+
sorting?: ReactTableSortingState;
|
105
|
+
};
|
106
|
+
export declare type TableFeatureProps = {
|
107
|
+
enableFiltering?: boolean;
|
108
|
+
enableSearch?: boolean;
|
109
|
+
enableSorting?: boolean;
|
110
|
+
enableColumnFreezing?: boolean;
|
111
|
+
enableColumnHiding?: boolean;
|
112
|
+
enableColumnResizing?: boolean;
|
113
|
+
enableRowExpansion?: boolean;
|
114
|
+
enableRowSelection?: boolean;
|
115
|
+
enableRowSelectionSingle?: boolean;
|
116
|
+
enableColumnOrdering?: boolean;
|
117
|
+
enableFontSize?: boolean;
|
118
|
+
enableFooter?: boolean;
|
119
|
+
enablePrinting?: boolean;
|
120
|
+
enableRowActions?: boolean;
|
121
|
+
enableRowActive?: boolean;
|
122
|
+
enableRowClick?: boolean;
|
123
|
+
enableRowGoto?: boolean;
|
124
|
+
enableRowHeight?: boolean;
|
125
|
+
enableSettings?: boolean;
|
126
|
+
};
|
127
|
+
export declare type useTableInternalColumn<TType = unknown> = {
|
128
|
+
header?: (info: ReactTableHeaderContext<TType, unknown>) => JSX.Element | string | null;
|
129
|
+
renderer: (info: ReactTableCellContext<TType, unknown>) => JSX.Element | string | null;
|
130
|
+
meta?: ReactTableColumnMeta<TType, unknown>;
|
131
|
+
size?: number;
|
132
|
+
};
|
133
|
+
export declare type useTableInternalColumns<TType = unknown> = {
|
134
|
+
rowActions?: useTableInternalColumn<TType>;
|
135
|
+
rowExpansion?: useTableInternalColumn<TType>;
|
136
|
+
rowSelection?: useTableInternalColumn<TType>;
|
137
|
+
};
|
138
|
+
declare type useTableCommonProps<TType = unknown> = TableFeatureProps & {
|
139
|
+
children: (JSX.Element | boolean | null | undefined)[];
|
140
|
+
data: TType[];
|
141
|
+
id: string;
|
142
|
+
defaultColumnFreezingIndex?: number;
|
143
|
+
defaultRowActiveIndex?: number;
|
144
|
+
defaultRowGroupColumnId?: keyof TType;
|
145
|
+
defaultSettings?: TableSettings;
|
146
|
+
preset?: TablePreset;
|
147
|
+
rowActions?: TableRowActionRenderer<TType>[];
|
148
|
+
rowActionsForGroup?: TableRowActionGroupRenderer<TType>[];
|
149
|
+
rowActionsLength?: number;
|
150
|
+
rowExpansionRenderer?: TableRowExpansionRenderer<TType>;
|
151
|
+
shortcuts?: TableShortcuts<TType>;
|
152
|
+
onRowClick?: TableRowClickHandler<TType>;
|
153
|
+
onRowGoto?: TableRowGotoHandler;
|
154
|
+
onRowSelect?: TableRowSelectHandler<TType>;
|
155
|
+
onChangeFilter?: TableFilterHandler;
|
156
|
+
onChangeSearch?: TODO;
|
157
|
+
onChangeSettings?: TableSettingsHandler;
|
158
|
+
onChangeSort?: TableSortHandler;
|
159
|
+
};
|
160
|
+
interface useTableClientProps<TType = unknown> extends useTableCommonProps<TType> {
|
161
|
+
length?: never;
|
162
|
+
loadAll?: never;
|
163
|
+
loadPage?: never;
|
164
|
+
pageSize?: never;
|
165
|
+
}
|
166
|
+
interface useTableServerProps<TType = unknown> extends useTableCommonProps<TType> {
|
167
|
+
length: number | undefined;
|
168
|
+
loadAll: TableServerLoadAllHandler;
|
169
|
+
loadPage: TableServerLoadPageHandler;
|
170
|
+
pageSize?: number;
|
171
|
+
}
|
172
|
+
export declare type useTableProps<TType = unknown> = useTableClientProps<TType> | useTableServerProps<TType>;
|
173
|
+
export declare type TableColumnProps<TType = unknown> = ValueOf<{
|
174
|
+
[Key in keyof TType]: {
|
175
|
+
accessor?: Key;
|
176
|
+
id: string;
|
177
|
+
} & {
|
178
|
+
renderer?: TableColumnRenderer<TType, TType[Key]>;
|
179
|
+
/** Renderer to use if the cell is an aggregate cell and part of a grouped row */
|
180
|
+
aggregate?: TableColumnRendererAggregate<TType, TType[Key]>;
|
181
|
+
control?: TableColumnRendererControl<TType>;
|
182
|
+
footer?: TableColumnRendererFooter<TType[Key]>;
|
183
|
+
header: TableColumnRendererHeader;
|
184
|
+
/** Aggregation function to be used when the column is part of a grouped row */
|
185
|
+
aggregationFn?: 'auto' | ReactTableBuiltInAggregationFn;
|
186
|
+
align?: TableColumnAlignment;
|
187
|
+
className?: TableColumnClassNameHandler<TType>;
|
188
|
+
dataType?: TableColumnDataType;
|
189
|
+
defaultHidden?: boolean;
|
190
|
+
defaultWidth?: TableColumnWidth;
|
191
|
+
enableFiltering?: boolean;
|
192
|
+
enableGrouping?: boolean;
|
193
|
+
enableHiding?: boolean;
|
194
|
+
enableOrdering?: boolean;
|
195
|
+
enablePrinting?: boolean;
|
196
|
+
enableResizing?: boolean;
|
197
|
+
enableSearch?: boolean;
|
198
|
+
enableSorting?: boolean;
|
199
|
+
enableTruncate?: boolean;
|
200
|
+
filters?: TableFilterComparator[];
|
201
|
+
headerClassName?: string;
|
202
|
+
menu?: TableColumnMenu;
|
203
|
+
minWidth?: number;
|
204
|
+
sort?: TableColumnSortDirection;
|
205
|
+
sortFn?: TableColumnSortFn<TType>;
|
206
|
+
tooltip?: string;
|
207
|
+
};
|
208
|
+
}>;
|
209
|
+
export declare type TableGroupProps = {
|
210
|
+
children: (JSX.Element | boolean | null | undefined)[];
|
211
|
+
header: string;
|
212
|
+
id: string;
|
213
|
+
};
|
214
|
+
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
export declare function useTableFontSize(isEnabled?: boolean, defaultFontSize?:
|
2
|
+
import { FontSize } from '../../../../types';
|
3
|
+
export declare function useTableFontSize(isEnabled?: boolean, defaultFontSize?: FontSize): {
|
4
4
|
isEnabled: boolean;
|
5
5
|
size: "small" | "medium" | "large";
|
6
6
|
setSize: React.Dispatch<React.SetStateAction<"small" | "medium" | "large">>;
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
2
2
|
export declare function useTablePrinting(isEnabled: boolean | undefined, defaultIsWarningVisible: boolean | undefined, id: string): {
|
3
3
|
isEnabled: boolean;
|
4
4
|
isPrinting: boolean;
|
5
|
+
setIsPrinting: React.Dispatch<React.SetStateAction<boolean>>;
|
5
6
|
isWarningVisibleForLargeDatasets: boolean;
|
6
7
|
setIsWarningVisibleForLargeDatasets: React.Dispatch<React.SetStateAction<boolean>>;
|
7
8
|
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { TableRowActionRenderer } from '../../types';
|
2
|
+
export declare function useTableRowActions<TType = unknown>(isEnabled?: boolean, rowActions?: TableRowActionRenderer<TType>[], rowActionsLength?: number): {
|
3
|
+
isEnabled: boolean;
|
4
|
+
rowActions: TableRowActionRenderer<TType>[] | undefined;
|
5
|
+
rowActionsLength: number;
|
6
|
+
};
|
@@ -8,5 +8,4 @@ export declare function useTableRowActive(isEnabled?: boolean, initialRowActiveI
|
|
8
8
|
setHoverStatePaused: React.Dispatch<React.SetStateAction<boolean>>;
|
9
9
|
handleFocus: (event: React.FocusEvent, length: number, scrollToIndex: TableScrollToIndexHandler) => void;
|
10
10
|
handleKeyDown: (event: KeyboardEvent, length: number, scrollToIndex: TableScrollToIndexHandler, tableRef?: React.RefObject<TableRef> | undefined) => void;
|
11
|
-
handleMouseCapture: (event: React.MouseEvent, length: number) => void;
|
12
11
|
};
|
@@ -2,6 +2,6 @@ import React from 'react';
|
|
2
2
|
import { TableRowClickHandler } from '../../types';
|
3
3
|
export declare function useTableRowClick<TType = unknown>(isEnabled?: boolean, onRowClick?: TableRowClickHandler<TType>): {
|
4
4
|
isEnabled: boolean;
|
5
|
-
handleClick: (event: React.MouseEvent<
|
5
|
+
handleClick: (event: React.MouseEvent<HTMLTableRowElement>, data: TType) => void;
|
6
6
|
handleKeyDown: <TType_1 = unknown>(event: KeyboardEvent, data: TType_1) => void;
|
7
7
|
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { TableRowExpansionRenderer } from '../../types';
|
2
|
+
export declare function useTableRowExpansion<TType = unknown>(isEnabled?: boolean, rowExpansionRenderer?: TableRowExpansionRenderer<TType>): {
|
3
|
+
isEnabled: boolean;
|
4
|
+
rowExpansionRenderer: TableRowExpansionRenderer<TType> | undefined;
|
5
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TableRowGotoHandler } from '../../types';
|
2
2
|
export declare function useTableRowGoto(isEnabled?: boolean, handler?: TableRowGotoHandler): {
|
3
3
|
isEnabled: boolean;
|
4
|
-
handleGoto: TableRowGotoHandler |
|
4
|
+
handleGoto: TableRowGotoHandler | undefined;
|
5
5
|
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { TableRowActionGroupRenderer } from '../../types';
|
2
|
+
export declare function useTableRowGroups<TType = unknown>(rowActionsForGroup?: TableRowActionGroupRenderer<TType>[]): {
|
3
|
+
isEnabled: boolean;
|
4
|
+
rowActionsForGroup: TableRowActionGroupRenderer<TType>[] | undefined;
|
5
|
+
};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { Table as ReactTable } from '@tanstack/react-table';
|
3
3
|
export declare function useTableRowSelection(isEnabled?: boolean): {
|
4
|
+
isEnabled: boolean;
|
4
5
|
handleKeyDown: <TType = unknown>(event: KeyboardEvent, table: ReactTable<TType>) => void;
|
5
6
|
lastSelectedRowIndex: React.MutableRefObject<number | undefined>;
|
6
7
|
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Table as ReactTable } from '@tanstack/react-table';
|
3
|
+
export declare function useTableSearch(isEnabled?: boolean, defaultEnableGlobalFilter?: boolean): {
|
4
|
+
isEnabled: boolean;
|
5
|
+
enableGlobalFilter: boolean;
|
6
|
+
setEnableGlobalFilter: <TType = unknown>(enabled: boolean, instance: ReactTable<TType>) => void;
|
7
|
+
highlightedColumnIndexes: number[][];
|
8
|
+
setHighlightedColumnIndexes: React.Dispatch<React.SetStateAction<number[][]>>;
|
9
|
+
currentHighlightColumnIndex: number | undefined;
|
10
|
+
setCurrentHighlightColumnIndex: React.Dispatch<React.SetStateAction<number | undefined>>;
|
11
|
+
};
|
@@ -1,6 +1,9 @@
|
|
1
|
-
import { TableServerLoadAllHandler, TableServerLoadPageHandler } from '../../types';
|
2
|
-
export declare function useTableServerLoading(loadPage?: TableServerLoadPageHandler, loadAll?: TableServerLoadAllHandler): {
|
1
|
+
import { TableServerLoadAllHandler, TableServerLoadAllState, TableServerLoadPageHandler } from '../../types';
|
2
|
+
export declare function useTableServerLoading(loadPage?: TableServerLoadPageHandler, loadAll?: TableServerLoadAllHandler, pageSize?: number): {
|
3
3
|
isEnabled: boolean;
|
4
4
|
loadPage: TableServerLoadPageHandler | undefined;
|
5
5
|
loadAll: TableServerLoadAllHandler | undefined;
|
6
|
+
loadAllIfNeeded: TableServerLoadAllHandler | undefined;
|
7
|
+
loadAllStatus: TableServerLoadAllState;
|
8
|
+
pageSize: number;
|
6
9
|
};
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { TableSettings, TableSettingsHandler } from '../../types';
|
2
|
+
export declare function useUniqueTableId(tableId: string): string;
|
3
|
+
export declare function useTableSettings(isEnabled: boolean | undefined, id: string, defaultSettings: TableSettings | undefined, onChangeSettings: TableSettingsHandler | undefined): [TableSettings, TableSettingsHandler];
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { TableMeta as ReactTableMeta, RowData } from '@tanstack/react-table';
|
3
|
+
import { TableColumnAlignment, TableColumnClassNameHandler, TableColumnDataType, TableColumnMenu, TableColumnRendererControl, TableFilterComparator, TableRef, useTableInternalColumns, useTableProps } from '../types';
|
4
|
+
import { useTableColumnFreezing } from './features/useTableColumnFreezing';
|
5
|
+
import { useTableColumnOrdering } from './features/useTableColumnOrdering';
|
6
|
+
import { useTableFooter } from './features/useTableFooter';
|
7
|
+
import { useTableFontSize } from './features/useTableFontSize';
|
8
|
+
import { useTablePrinting } from './features/useTablePrinting';
|
9
|
+
import { useTableRowActions } from './features/useTableRowActions';
|
10
|
+
import { useTableRowActive } from './features/useTableRowActive';
|
11
|
+
import { useTableRowClick } from './features/useTableRowClick';
|
12
|
+
import { useTableRowExpansion } from './features/useTableRowExpansion';
|
13
|
+
import { useTableRowGoto } from './features/useTableRowGoto';
|
14
|
+
import { useTableRowGroups } from './features/useTableRowGroups';
|
15
|
+
import { useTableRowHeight } from './features/useTableRowHeight';
|
16
|
+
import { useTableRowSelection } from './features/useTableRowSelection';
|
17
|
+
import { useTableSearch } from './features/useTableSearch';
|
18
|
+
import { useTableServerLoading } from './features/useTableServerLoading';
|
19
|
+
declare module '@tanstack/table-core' {
|
20
|
+
interface TableMeta<TData extends RowData> {
|
21
|
+
columnFreezing: ReturnType<typeof useTableColumnFreezing>;
|
22
|
+
columnOrdering: ReturnType<typeof useTableColumnOrdering>;
|
23
|
+
fontSize: ReturnType<typeof useTableFontSize>;
|
24
|
+
footer: ReturnType<typeof useTableFooter>;
|
25
|
+
printing: ReturnType<typeof useTablePrinting>;
|
26
|
+
rowActions: ReturnType<typeof useTableRowActions>;
|
27
|
+
rowActive: ReturnType<typeof useTableRowActive>;
|
28
|
+
rowClick: ReturnType<typeof useTableRowClick>;
|
29
|
+
rowExpansion: ReturnType<typeof useTableRowExpansion>;
|
30
|
+
rowGoto: ReturnType<typeof useTableRowGoto>;
|
31
|
+
rowGroups: ReturnType<typeof useTableRowGroups>;
|
32
|
+
rowHeight: ReturnType<typeof useTableRowHeight>;
|
33
|
+
rowSelection: ReturnType<typeof useTableRowSelection>;
|
34
|
+
search: ReturnType<typeof useTableSearch>;
|
35
|
+
server: ReturnType<typeof useTableServerLoading>;
|
36
|
+
}
|
37
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
38
|
+
align?: TableColumnAlignment;
|
39
|
+
className?: TableColumnClassNameHandler<TData>;
|
40
|
+
control?: TableColumnRendererControl<TData>;
|
41
|
+
dataType?: TableColumnDataType;
|
42
|
+
enableOrdering?: boolean;
|
43
|
+
enablePrinting?: boolean;
|
44
|
+
enableTruncate?: boolean;
|
45
|
+
filters?: TableFilterComparator[];
|
46
|
+
header: string;
|
47
|
+
headerClassName?: string;
|
48
|
+
menu?: TableColumnMenu;
|
49
|
+
tooltip?: string;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
export declare function useTable<TType = unknown, TMeta = {}>(props: useTableProps<TType>, ref: React.RefObject<TableRef>, meta?: Partial<ReactTableMeta<TType>> & TMeta, internalColumns?: useTableInternalColumns<TType>): {
|
53
|
+
instance: import("@tanstack/react-table").Table<TType>;
|
54
|
+
length: number;
|
55
|
+
meta: ReactTableMeta<TType> & TMeta;
|
56
|
+
state: import("@tanstack/react-table").TableState;
|
57
|
+
};
|
@@ -1,4 +1,10 @@
|
|
1
1
|
import { ColumnDef as ReactTableColumnDef } from '@tanstack/react-table';
|
2
|
-
import {
|
3
|
-
|
4
|
-
export declare function
|
2
|
+
import { FontSize } from '../../../../types';
|
3
|
+
import { TableColumnDataType } from '../../types';
|
4
|
+
export declare function isInternalColumn(id: string | undefined): boolean | undefined;
|
5
|
+
export declare const getCellMinWidth: (fontSize?: FontSize) => 57 | 83 | 72;
|
6
|
+
export declare function isCellHighlighted(query: string, value: unknown, dataType?: TableColumnDataType): boolean;
|
7
|
+
export declare function getCellValueAsString(value: unknown, dataType?: TableColumnDataType): string;
|
8
|
+
export declare function ensureOrdering<TType = unknown>(columns: ReactTableColumnDef<TType>[], settingsOrder: string[] | undefined, internalColumnsPinnedToTheRight?: string[]): string[];
|
9
|
+
export declare function unfreezeAllExternalColumns(leftPinnedState?: string[]): string[];
|
10
|
+
export declare function freezeUptoExternalColumn(index: number, columns: string[]): string[];
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Row as ReactTableRow } from '@tanstack/react-table';
|
2
|
+
import { TableFilterValue } from '../../types';
|
3
|
+
export declare const toLowerCase: (value: string | number) => string;
|
4
|
+
export declare const isWeakContains: (left: string | number, right: string | number) => boolean;
|
5
|
+
export declare const isWeakEqual: (left: string | number, right: string | number) => boolean;
|
6
|
+
export declare function columnFilterFn(value: any, filter: TableFilterValue): boolean;
|
7
|
+
export declare function globalFilterFn<TType = unknown>(row: ReactTableRow<TType>, columnId: string, searchQuery: string): boolean;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Table as ReactTable } from '@tanstack/react-table';
|
2
|
+
export declare function getSettings<TType = unknown>(table: ReactTable<TType>): {
|
3
|
+
columnOrder: import("@tanstack/react-table").ColumnOrderState | undefined;
|
4
|
+
columnPinning: import("@tanstack/react-table").ColumnPinningState;
|
5
|
+
columnSizing: Record<string, number>;
|
6
|
+
columnVisibility: Record<string, boolean> | undefined;
|
7
|
+
excludeUnmatchedRecordsInSearch: boolean;
|
8
|
+
fontSize: "small" | "medium" | "large" | undefined;
|
9
|
+
grouping: import("@tanstack/react-table").GroupingState | undefined;
|
10
|
+
rowHeight: "medium" | "short" | "tall" | "extra-tall" | undefined;
|
11
|
+
showWarningWhenPrintingLargeDataset: boolean;
|
12
|
+
sorting: import("@tanstack/react-table").SortingState;
|
13
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { TableOptions as ReactTableOptions, ColumnDef as ReactTableColumnDef, ColumnSizingState as ReactTableColumnSizingState, ColumnSort as ReactTableColumnSort, TableState as ReactTableState, VisibilityState as ReactTableVisibilityState } from '@tanstack/react-table';
|
2
|
+
import { TableFeatureProps, useTableProps, TableSettings, useTableInternalColumns } from '../../types';
|
3
|
+
export declare function mapTableChildrenToColumns<TType = unknown>(props: useTableProps<TType>, settings: TableSettings, options: TableFeatureProps, internalColumns?: useTableInternalColumns<TType>): {
|
4
|
+
columns: ReactTableColumnDef<TType, unknown>[];
|
5
|
+
defaultSizing: Record<string, number>;
|
6
|
+
defaultSorting: ReactTableColumnSort[];
|
7
|
+
defaultVisibility: Record<string, boolean>;
|
8
|
+
};
|
9
|
+
export declare function configureReactTableOptions<TType = unknown>(options: TableFeatureProps, props: useTableProps<TType>): Partial<ReactTableOptions<TType>>;
|
10
|
+
export declare function useReactTableInitialState<TType = unknown>(props: useTableProps<TType>, columns: ReactTableColumnDef<TType>[], persistedSettings: TableSettings, defaults: {
|
11
|
+
defaultSizing: ReactTableColumnSizingState;
|
12
|
+
defaultSorting: ReactTableColumnSort[];
|
13
|
+
defaultVisibility: ReactTableVisibilityState;
|
14
|
+
}): Partial<ReactTableState>;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import { TableColumnDataType, TableColumnSortFn } from '../../types';
|
2
|
+
export declare function getSortingFn<TType = unknown>(dataType?: TableColumnDataType, customFnOrBuiltIn?: TableColumnSortFn<TType>): "text" | "auto" | "alphanumeric" | "alphanumericCaseSensitive" | "textCaseSensitive" | "datetime" | "basic" | ((rowA: any, rowB: any, columnId: any) => 0 | 1 | -1);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { TableColumnFilter, TableColumnSort, TableFilterHandler, TableServerLoadPageHandler, TableServerLoadAllHandler, TableSortHandler } from './types';
|
2
|
+
export declare const DEFAULT_PAGE_SIZE = 100;
|
3
|
+
export declare type useTableDataPageFetcher<TType = unknown> = (pageIndex: number, pageSize: number, sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<{
|
4
|
+
data: TType[];
|
5
|
+
length: number;
|
6
|
+
}>;
|
7
|
+
export declare type useTableDataAllFetcher<TType = unknown> = (sorting: TableColumnSort[], filters: TableColumnFilter[], search: string | undefined) => Promise<{
|
8
|
+
data: TType[];
|
9
|
+
length: number;
|
10
|
+
}>;
|
11
|
+
export declare type useTableDataLoaderOptions = {
|
12
|
+
pageSize: number;
|
13
|
+
};
|
14
|
+
export declare type useTableDataLoaderValues<TType = unknown> = {
|
15
|
+
data: TType[];
|
16
|
+
length: number | undefined;
|
17
|
+
loadAll: TableServerLoadAllHandler;
|
18
|
+
loadPage: TableServerLoadPageHandler;
|
19
|
+
onChangeFilter: TableFilterHandler;
|
20
|
+
onChangeSort: TableSortHandler;
|
21
|
+
pageSize: number;
|
22
|
+
};
|
23
|
+
export declare function useTableDataLoader<TType = unknown>(fetch: useTableDataPageFetcher<TType>, fetchAll: useTableDataAllFetcher<TType>, options?: useTableDataLoaderOptions): [useTableDataLoaderValues<TType>, () => void];
|