@mui/x-data-grid 5.3.0 → 5.4.0
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 +72 -2
- package/index-cjs.js +2 -2
- package/index-esm.js +2 -2
- package/package.json +2 -2
- package/x-data-grid.d.ts +571 -1627
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,76 @@
|
|
|
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
|
+
## 5.4.0
|
|
7
|
+
|
|
8
|
+
_Jan 28, 2022_
|
|
9
|
+
|
|
10
|
+
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚣 Introduce [variable row height](https://mui.com/components/data-grid/rows/#variable-row-height) (#438) @DanailH
|
|
13
|
+
|
|
14
|
+
Allows for setting a row-specific height.
|
|
15
|
+
By default, all rows have the same height, but now you can set the height on a per-row basis.
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
<DataGrid
|
|
19
|
+
getRowHeight={
|
|
20
|
+
({ id }: GridRowHeightParams) => (id % 2 === 0 ? 100 : null)
|
|
21
|
+
}
|
|
22
|
+
/>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- 🎁 Add new CSV export option: [`getRowsToExport`](https://mui.com/components/data-grid/export/#custom-exported-content) (#3687) @flaviendelangle
|
|
26
|
+
- 📚 Documentation improvements
|
|
27
|
+
- 🐞 Bugfixes
|
|
28
|
+
|
|
29
|
+
### `@mui/x-data-grid@v5.4.0` / `@mui/x-data-grid-pro@v5.4.0`
|
|
30
|
+
|
|
31
|
+
#### Changes
|
|
32
|
+
|
|
33
|
+
- [DataGrid] Add l10n support for `is any of` (#3746) @alexfauquette
|
|
34
|
+
- [DataGrid] Add new CSV `getRowsToExport` option (#3687) @flaviendelangle
|
|
35
|
+
- [DataGrid] Clean params of `onCellEditCommit` (#3693) @valenfv
|
|
36
|
+
- [DataGrid] Create a new lookup with all the filtered rows, collapsed or not (#3736) @flaviendelangle
|
|
37
|
+
- [DataGrid] Fix Alt+c being ignored on some systems (#3660) @cherniavskii
|
|
38
|
+
- [DataGrid] Fix `isRowSelectable` when `paginationMode='server'` (#3647) @flaviendelangle
|
|
39
|
+
- [DataGrid] Fix browser keyboard shortcuts not working when header cell is focused (#3692) @valenfv
|
|
40
|
+
- [DataGrid] Fix focus on checkbox cells (#3501) @alexfauquette
|
|
41
|
+
- [DataGrid] Only update the visibility status of the updated columns when calling `apiRef.current.updateRows` (#3735) @flaviendelangle
|
|
42
|
+
- [DataGrid] Prevent commit if `preProcessEditCellProps` resolves with an error (#3612) @m4theushw
|
|
43
|
+
- [DataGrid] Update selected rows when turning off `checkboxSelection` (#3684) @m4theushw
|
|
44
|
+
- [DataGrid] Variable row height (#3218) @DanailH
|
|
45
|
+
- [DataGridPro] Call `useGridColumnPinning` before `useGridColumns` (#3676) @flaviendelangle
|
|
46
|
+
- [DataGridPro] Fix grid cell losing focus when scrolling with keyboard (#3667) @cherniavskii
|
|
47
|
+
- [DataGridPro] Fix missing `styleOverrides` on pinned columns (#3733) @alexfauquette
|
|
48
|
+
- [DataGridPro] Remove function overloading for `useGridApiRef` (#3666) @flaviendelangle
|
|
49
|
+
- [l10n] Improve French (frFR) locale (#3739) @flaviendelangle
|
|
50
|
+
- [l10n] Improve Italian (itIT) locale (#3744) @destegabry
|
|
51
|
+
|
|
52
|
+
### Docs
|
|
53
|
+
|
|
54
|
+
- [docs] Fix broken code example on the localization page (#3742) @flaviendelangle
|
|
55
|
+
- [docs] Fix typo in column visibility example (#3734) @flaviendelangle
|
|
56
|
+
- [docs] Fix typo on `columnVisibilityModel` (#3723) @alexfauquette
|
|
57
|
+
- [docs] Improve sorting documentation page (#3564) @flaviendelangle
|
|
58
|
+
- [docs] Improve `v5.3.0` release notes (#3722) @cherniavskii
|
|
59
|
+
- [docs] Prepare scripts and E2E tests for migration (#3515) @siriwatknp
|
|
60
|
+
- [docs] Clarify what is the professional support (#3530) @oliviertassinari
|
|
61
|
+
|
|
62
|
+
### Core
|
|
63
|
+
|
|
64
|
+
- [core] Add ESLint rule to force default export equals to filename in documentation (#3674) @alexfauquette
|
|
65
|
+
- [core] Fix `l10n` script not updating `csCZ` locale (#3748) @cherniavskii
|
|
66
|
+
- [core] Generate CHANGELOG from GitHub API (#3313) @alexfauquette
|
|
67
|
+
- [core] Isolate selectors from different grid instances (#3663) @m4theushw
|
|
68
|
+
- [test] Improve test detection (#3728) @m4theushw
|
|
69
|
+
- [test] Include module augmentation for Chai custom matchers (#3754) @m4theushw
|
|
70
|
+
- [test] Remove a useless `async` (#3675) @alexfauquette
|
|
71
|
+
- [test] Remove remaining `@ts-expect-error` (#3762) @m4theushw
|
|
72
|
+
- [test] Skip test on Firefox (#3752) @m4theushw
|
|
73
|
+
- [test] Wait for flags to load before creating snapshots (#3726) @m4theushw
|
|
74
|
+
- [test] Warn when focusing cells without syncing the state (#3486) @m4theushw
|
|
75
|
+
|
|
6
76
|
## 5.3.0
|
|
7
77
|
|
|
8
78
|
_Jan 21, 2022_
|
|
@@ -34,13 +104,13 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
34
104
|
/>
|
|
35
105
|
```
|
|
36
106
|
|
|
37
|
-
|
|
107
|
+
For more details see the [introduction blog post](https://mui.com/blog/introducing-the-row-grouping-feature/) and [documentation](https://mui.com/components/data-grid/group-pivot/#row-grouping).
|
|
38
108
|
|
|
39
109
|
- ⚡ Add `is any of` filter operator (#2874) @alexfauquette
|
|
40
110
|
|
|
41
111
|
The new filter operator `is any of` allows the user to provide multiple values. It opens access to complex filtering pattern mixing `AND` and `OR` logic connectors, such as `status is any of filled or rejected, and currency is any of EUR or USD`.
|
|
42
112
|
|
|
43
|
-
<img src="https://user-images.githubusercontent.com/45398769/150486348-996a938f-db24-426f-bfe3-c06337f71807.gif" width="770"
|
|
113
|
+
<img src="https://user-images.githubusercontent.com/45398769/150486348-996a938f-db24-426f-bfe3-c06337f71807.gif" width="770">
|
|
44
114
|
|
|
45
115
|
- ✨ Introduce a `maxWidth` property in `GridColDef` (#3550) @flaviendelangle
|
|
46
116
|
|