eds-data-grid-react@0.3.0
oddvernes
released this
15 Feb 14:15
·
210 commits
to develop
since this release
[0.3.0] - 2024-02-15
Added
Changed
- 🔧 Update babel compile target to "last 2 Chrome versions, last 2 firefox versions, last 2 safari versions, last 2 edge versions, not dead" by @oddvernes in #3219
- ⚡️ Improve performance by enabling
contain: strict
when width and height is provided by @magnh in #3273 - ✨ Improve data grid by @magnh in #3231
Details of #3231:
- ✨ Reexport
@tanstack/react-table
types to ease typing in apps using the data grid - 📌 Move
eds-core-react
to peer dependencies- This is neccessary because EDS uses React Context and the grid and the project should
have the same React instance running. This makes it possible to set EDS Density of the
table above the component.
- This is neccessary because EDS uses React Context and the grid and the project should
- ♻️ Move text truncating into default cell to enable overwriting cell content
- This enables custom cells like popover, autocomplete or other cells that overflows the cell itself.
- 🐛 Inherit row background color for pinned cells
- This ensures hover color on the whole row when columns are pinned
- 🐛 Support 100% width
- Support string
width
andheight
- Support string
- ✨ Allow setting
minWidth
of table - ✨ Expose
getRowId
callback from react-table - ✨ Expose virtualizer ref
- This is needed to be able to run "scroll to" functionality in apps.
- 🐛 Hide virtualizer rows top and bottom rows when not needed