@mui/x-data-grid-pro 5.0.1 → 5.1.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 CHANGED
@@ -3,14 +3,105 @@
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.1.0
7
+
8
+ _Nov 2, 2021_
9
+
10
+ A big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ ### `@mui/x-data-grid@v5.1.0` / `@mui/x-data-grid-pro@v5.1.0`
13
+
14
+ - 🚀 Introduce the [tree data](https://mui.com/components/data-grid/group-pivot/#tree-data) feature (#2725) @flaviendelangle
15
+
16
+ <img src="https://user-images.githubusercontent.com/42154031/144259216-fc4f90ac-4d8b-4253-bc95-009204349a4c.gif" width="854" height="453" />
17
+
18
+ - 💅 Add support for `sx` prop in the DataGrid and DataGridPro (#3281) @m4theushw
19
+ - 🔦 Improve focus management in the filter panel (#3004) @alexfauquette
20
+ - 🎁 Add strict typing to the event publisher and listener (#3022) (@flaviendelangle)
21
+
22
+ The `apiRef.current.subscribeEvent`, `apiRef.current.publishEvent` and `useGridApiEventHandler` are now fully typed and gives you the correct arguments based on the event you are listening to or emitting.
23
+
24
+ ```ts
25
+ const handleRowClick: GridEventListener<'rowClick'> = (
26
+ params, // has type `GridRowParams`
27
+ event, // has type `MuiEvent<React.MouseEvent<HTMLElement>>
28
+ details, // has type `GridCallbackDetails
29
+ ) => {
30
+ /* ... */
31
+ };
32
+
33
+ // with string event name
34
+ apiRef.current.subscribeEvent('rowClick', handleRowClick);
35
+ useGridApiEventHandler(apiRef, 'rowClick', handleRowClick);
36
+
37
+ // or with enum event name
38
+ apiRef.current.subscribeEvent(GridEvents.rowClick, handleRowClick);
39
+ useGridApiEventHandler(apiRef, GridEvents.rowClick, handleRowClick);
40
+ ```
41
+
42
+ - 🌎 Translation updates for many locales
43
+
44
+ If you are using DataGrid or DataGridPro in another language, check [this issue](https://github.com/mui-org/material-ui-x/issues/3211) to discover which translations are missing.
45
+
46
+ - 📚 Documentation improvements
47
+ - 🐞 Bugfixes
48
+
49
+ #### Changes
50
+
51
+ - [DataGridPro] Add tree data (#2725) @flaviendelangle
52
+ - [DataGridPro] Remove the callback version of the `groupigColDef` prop (#3317) @flaviendelangle
53
+ - [DataGridPro] Improve license file (#3278) @oliviertassinari
54
+ - [DataGridPro] Add types for event publishers and listeners (#3022) @flaviendelangle
55
+ - [DataGrid] Add support for `sx` prop (#3281) @m4theushw
56
+ - [DataGrid] Do not debounce the initial resizing of the grid (#3213) @flaviendelangle
57
+ - [DataGrid] Fix usage of dynamic columns (#3204) @flaviendelangle
58
+ - [DataGrid] Move focus when selecting option with <kbd>Enter</kbd> in the `singleSelect` (#3220) @m4theushw
59
+ - [DataGrid] Focus on the last value input when a filter is added or removed (#3004) @alexfauquette
60
+ - [DataGrid] Prepare the tree structure for grouping sorting / filtering (#3301) @flaviendelangle
61
+ - [DataGrid] Rework keyboard navigation (#3193) @flaviendelangle
62
+ - [DataGrid] Set minimum dimensions to `GridOverlay` when no row is provided (#3261) @flaviendelangle
63
+ - [DataGrid] Improve German (deDE) locale (#3271, #3230, #3293) @sebastianfrey
64
+ - [DataGrid] Improve Hebrew (heIL) locale (#3294) @ColdAtNight
65
+ - [DataGrid] Improve Russian (ruRU) locale (#3290, #3288) @Alim-El
66
+ - [DataGrid] Improve Korean (koKR) locale (#3232, #3273) @zzossig
67
+ - [DataGrid] Improve Greek (elGR) locale (#3169) @clytras
68
+
69
+ ### Core
70
+
71
+ - [core] Add script to sync translation files (#3201) @m4theushw
72
+ - [core] Create dedicated `InputComponent` for `singleSelect` and `date` columns #3227 @alexfauquette
73
+ - [core] Fix `EventManager` to not run listeners removed after registration #3206 @flaviendelangle
74
+ - [core] Group Renovate updates (#3263) @flaviendelangle
75
+ - [core] Reflect the change of default branch (#3235) @oliviertassinari
76
+ - [core] Replace @mui/core with @mui/base (#3217) @m4theushw
77
+ - [core] Split docs generation script (#3189) @flaviendelangle
78
+ - [core] Update monorepo (#3303) @m4theushw
79
+ - [test] Improve testing of the keyboard navigation (#3187) @flaviendelangle
80
+ - [test] Force effect to run on location change (#3283) @m4theushw
81
+ - [core] Rework columns state management (#3264) @flaviendelangle
82
+
83
+ ### Docs
84
+
85
+ - [docs] Improve demo to allow to experiment with `autoHeight` (#3216) @alexfauquette
86
+ - [docs] Fix broken images (#3300) @oliviertassinari
87
+ - [docs] Fix the wrong release date (#3269) @DanailH
88
+ - [docs] Fix typo in CHANGELOG.md (#3214) @gjoseph
89
+ - [docs] Improve plan icon placement (#3298) @oliviertassinari
90
+ - [docs] Improve rows documentation (#3209) @flaviendelangle
91
+ - [docs] Include row pinning (#3191) @oliviertassinari
92
+ - [docs] Fix presentation of key combinations (#3297) @oliviertassinari
93
+ - [docs] Replace @mui/styles on demos (#3274) @m4theushw
94
+ - [docs] Add demos using cell/row editing with server-side persistence (#3124) @flaviendelangle
95
+ - [docs] Use relative links (#3299) @oliviertassinari
96
+
6
97
  ## 5.0.1
7
98
 
8
- _Nov 17, 2021_
99
+ _Nov 23, 2021_
9
100
 
10
101
  A big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
11
102
 
12
103
  - 🎁 New API to validate the editing values (#3006) @m4theushw
13
-
104
+
14
105
  You can now use the `preProcessEditCellProps` key in `GridColDef` to synchronously or asynchronously validate the values committed.
15
106
 
16
107
  ```ts
@@ -63,9 +154,9 @@ A big thanks to the 3 contributors who made this release possible. Here are some
63
154
 
64
155
  ## 5.0.0
65
156
 
66
- _Nov 16, 2021_
157
+ _Nov 23, 2021_
67
158
 
68
- 🎉 We are execited to introduce [MUI X v5.0.0](https://mui.com/blog/mui-x-v5/) 🎉!
159
+ 🎉 We are excited to introduce [MUI X v5.0.0](https://mui.com/blog/mui-x-v5/) 🎉!
69
160
 
70
161
  If you want to migrate the DataGrid or DataGridPro from v4 to v5, take a look at the [migration guide](https://mui.com/components/data-grid/migration-v4/).
71
162
  This version is fully compatible with `@mui/material@5.X` and can be used with `@material-ui/core@4.x` with some [additional steps](https://mui.com/components/data-grid/migration-v4/#using-mui-x-v5-with-mui-core-v4).