|
3 | 3 | All notable changes to this project will be documented in this file.
|
4 | 4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5 | 5 |
|
| 6 | +## [4.0.0-alpha.33](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.32...v4.0.0-alpha.33) |
| 7 | + |
| 8 | +_July 1, 2021_ |
| 9 | + |
| 10 | +Big thanks to the 6 contributors who made this release possible. Here are some highlights ✨: |
| 11 | + |
| 12 | +- 🐞 As a focus of Q2, we have kept fixing bugs |
| 13 | +- 💅 End users are now allowed to copy the selected rows to the clipboard with <kbd>CTRL</kbd> + <kbd>c</kbd> (#1929) @m4theushw |
| 14 | +- 🐛 We have fixed the `Select all` checkbox. When triggered, it should only select the filtered rows (#1879) @ZeeshanTamboli |
| 15 | +- ⚡️ We have added a new `singleSelect` column type (#1956) @DanailH |
| 16 | + |
| 17 | + Using the column `type: 'singleSelect'` defaults to `Select` component when the cell is in `edit` mode. You can find the documentation [following this link](https://material-ui.com/components/data-grid/columns/#column-types). |
| 18 | + |
| 19 | + ```jsx |
| 20 | + <DataGrid |
| 21 | + columns={[ |
| 22 | + { |
| 23 | + field: 'country', |
| 24 | + type: 'singleSelect', |
| 25 | + valueOptions: ['France', 'Netherlands', 'Brazil'], |
| 26 | + editable: true, |
| 27 | + } |
| 28 | + ]} |
| 29 | + rows={[ |
| 30 | + { id: 0, country: 'France' }, |
| 31 | + { id: 1, country: 'Netherlands' }, |
| 32 | + { id: 2, country: 'Brazil' }, |
| 33 | + ]} |
| 34 | + /> |
| 35 | + ``` |
| 36 | + |
| 37 | +### @material-ui/x-grid@v4.0.0-alpha.33 / @material-ui/data-grid@v4.0.0-alpha.33 |
| 38 | + |
| 39 | +#### Breaking changes |
| 40 | + |
| 41 | +- [DataGrid] Rename `onColumnResizeCommitted` to `onColumnWidthChange` (#1967) @m4theushw |
| 42 | + |
| 43 | + ```diff |
| 44 | + -<DataGrid onColumnResizeCommitted={...} /> |
| 45 | + +<DataGrid onColumnWidthChange={...} /> |
| 46 | + ``` |
| 47 | + |
| 48 | +- [DataGrid] Make GRID_ROWS_CLEAR private (#1925) @oliviertassinari |
| 49 | + |
| 50 | + The `rowsCleared` event was always triggered alongside `rowsSet`. You can listen to the latter event only. |
| 51 | + |
| 52 | +- [DataGrid] Fix events naming (#1862) @m4theushw |
| 53 | + |
| 54 | + The following `XGrid` events were renamed: |
| 55 | + |
| 56 | + - `columnHeaderNavigationKeydown` to `columnHeaderNavigationKeyDown` |
| 57 | + - `columnResizeCommitted` to `columnWidthChange` |
| 58 | + - `rowsUpdated` to `rowsUpdate` |
| 59 | + - `columnsUpdated` to `columnsChange` |
| 60 | + |
| 61 | + The following `XGrid` DOM events were removed: |
| 62 | + |
| 63 | + - `focusout` |
| 64 | + - `keydown` |
| 65 | + - `keyup` |
| 66 | + |
| 67 | +#### Changes |
| 68 | + |
| 69 | +- [DataGrid] Add fallback for pagination translations (#2006) @m4theushw |
| 70 | +- [DataGrid] Add single select column type (#1956) @DanailH |
| 71 | +- [DataGrid] Allow to copy the selected rows to the clipboard (#1929) @m4theushw |
| 72 | +- [DataGrid] Improve the logic of `scrollToIndexes` (#1969) @oliviertassinari |
| 73 | +- [DataGrid] Fix deferred rendering race condition (#1807) @dtassone |
| 74 | +- [DataGrid] Fix double-click issue (#1919) @oliviertassinari |
| 75 | +- [DataGrid] Fix number edit cell output (#1959) @oliviertassinari |
| 76 | +- [DataGrid] Fix offscreen row when calling `scrollToIndexes` (#1949) @oliviertassinari |
| 77 | +- [DataGrid] Ignore drag events when disableColumnReorder is true (#1952) @m4theushw |
| 78 | +- [DataGrid] `Select all` checkbox click should select only filtered rows (#1879) @ZeeshanTamboli |
| 79 | +- [XGrid] Add option to select only visible rows on the current page (#1998) @DanailH |
| 80 | + |
| 81 | +### Docs |
| 82 | + |
| 83 | +- [docs] Align docs with EULA (source of truth) (#1963) @oliviertassinari |
| 84 | +- [docs] Fix changing Dataset not working (#1965) @m4theushw |
| 85 | +- [docs] Fix description of union types (#2003) @m4theushw |
| 86 | + |
| 87 | +### Core |
| 88 | + |
| 89 | +- [core] Polish filtering internals (#1760) @ZeeshanTamboli |
| 90 | +- [core] Upgrade actions-cool/issues-helper (#1962) @oliviertassinari |
| 91 | +- [core] Name variables according to enUS instead of enGB (#1988) @flaviendelangle |
| 92 | +- [test] Test vertical scrollbar (#1932) @oliviertassinari |
| 93 | + |
6 | 94 | ## [4.0.0-alpha.32](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.31...v4.0.0-alpha.32)
|
7 | 95 |
|
8 | 96 | _June 18, 2021_
|
|
0 commit comments