Releases: KevinVandy/material-react-table
Releases · KevinVandy/material-react-table
v2.10.0
What's Changed
- Added automatic column order state recalculation for dynamic columns and dynamic MRT display columns being enabled/disabled
- Fixed bugs where enabling a feature like row selection conditionally would add columns to the end of the table when columnOrder state was not manually managed
- Fixed bugs where the show/hide columns menu would be empty when loading in dynamic column definitions without providing the columnOrder state manually
- Added new Cell Actions features which will show a MUI context menu when a cell is right-clicked by @KevinVandy in #963
- New
enableCellActionstable option - New
renderCellActionMenuItemstable and column options - New
MRT_ActionMenuItemcomponent to make styling all MRT menu items consistently (icons, text, spacing) easier to be consistent.
- New
- Toggle all columns visible issue fixed by @Menghini in #966
New Contributors
Full Changelog: v2.9.2...v2.10.0
v2.9.2
What's Changed
- Added
disableScrollLock: trueto all MUI Menus and Select Menus to keep menus with their anchor origin while scrolling by default - Switched pagination rows per page select to use native select by default in mobile viewports
- Fixed pagination rows per page input label for accessibility attribute
- Removed unnecessary
::afterpseudo elements on table cells if they were unused - Fixed edge cases with footer cell alignment
- Added
position: 'relative'to table and all rows and cells- Fixed semantic sticky header regression
- Fixed row order/dragging with column virtualization enabled bug
Full Changelog: v2.9.1...v2.9.2
v2.9.1
What's Changed
- Fixed row selection highlighting logic on grouped/aggregated rows
Full Changelog: v2.9.0...v2.9.1
v2.9.0
What's Changed
- Added new
renderCaptiontable option to allow for a<caption>element to be rendered within the table by @lalong13 in #957 - Fixed row hover opacity style issues for pinned columns and selected rows with
::beforeand::afterpseudo elements in pinned cells - Standardized
data-index,data-pinned, anddata-selectedattributes on body rows, head cells, body cells, and footer cells where applicable - Column virtualization performance optimizations
New Contributors
Full Changelog: v2.8.0...v2.9.0
v2.8.0
What's Changed
- Removed internal display column def memoization that caused edge cases with enabling and disabling features conditionally. (like
enableRowActionsandenableEditing, etc.) - Improved Column Resizing and Column/Row DnD Performance by caching column definitions while user is dragging.
- Added new
growcolumn option to allow for columns to grow to fill the remaining space in the table whenlayoutMode: 'grid-no-grow'is enabled, or to force a column to not grow whenlayoutMode: 'grid'is enabled andgrow: falseis set.mrt-row-select,mrt-row-drag,mrt-row-pin, andmrt-row-numbercolumns are now set togrow: falseby default now.mrt-row-expandcolumn is also set togrow: falseif only detail panels are enabled.mrt-row-expandis now set to asize: 100by default (slightly wider)
- Fixed indentation of mrt expand column when layoutMode was grid or grid-no-grow (using margin instead of padding now)
- Modified
editSelectOptionsto allow for dynamic values on a per-cell basis.({ row, cell, etc. }) => [] - Fixed edit textbox controlled component warning
- fix docs claim about default sorting function by @andreimatei in #947
- MRT Display Columns with better column resizing performance and less memoization by @KevinVandy in #949
New Contributors
- @andreimatei made their first contribution in #947
Full Changelog: v2.7.0...v2.8.0
v2.7.0
What's Changed
- New
'positionCreatingRow'table option to customize where the creating row is rendered in the table body. - All MRT MUI menus now use the
baseBackgroundColormrt theme color for the menu background color. - Fixed bug where the page index was not being reset to last page with rows when number of rows in the table changed.
- Made some tooltips text non-interactive to prevent accidental clicks.
- Simplified internal column preparation APIs.
Full Changelog: v2.6.1...v2.7.0
v2.6.1
What's Changed
- Upgraded to TanStack Table
v8.11.6for SSR bugfix (document not defined)
Full Changelog: v2.6.0...v2.6.1
v2.6.0
What's Changed
- Added support for Detail Panels and Row Virtualization at the same time
- Added support for Conditional Detail Panels (expand button is disabled when renderDetailPanel returns falsy value). Empty detail panels
<tr>still render for virtualization and striped rows to work properly. - Fixed Row Selection indeterminate and checked state when sub-row selection is off
- Fixed Expand Row Button padding and rotation in RTL mode
- Fixed Pagination Icon Buttons in RTL mode
- Set a default "right" cell alignment when theme.direction is "rtl"
- Improved Header Group Column Sizing
- Removed some internal
"@mui/material"imports. (Could speed up dev server hot reloads in some cases)
- Fix typo in about.mdx by @imnasnainaec in #933
New Contributors
- @imnasnainaec made their first contribution in #933
Full Changelog: v2.5.2...v2.6.0
v2.5.2
What's Changed
- fix: date and time pickers on mobile screen sizes by @chmelevskij in #930
New Contributors
- @chmelevskij made their first contribution in #930
Full Changelog: v2.5.1...v2.5.2
v2.5.1
What's Changed
- Fixed selected row count in toolbar alert banner when using manualPagination
- Fixed row dragging with column virtualization enabled
- Fixed filter mode switching away from empty/notEmpty having an empty space value
- Fixed any setDragImage errors with internal try/catch when refs are null
- Fixed filter range slider not having a min width in popover columnFilterDisplayMode
- Changed guide for customizing components to include reference to cust… by @65001 in #928
- Fixed space char after change from empty filter to equal, contains fi… by @alexzrp in #919
- storybook: implement multi row selection with hold shift by @dangkhoa99 in #917
New Contributors
Full Changelog: v2.5.0...v2.5.1