@mui/x-data-grid 5.2.1 → 5.5.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 +354 -50
- package/index-cjs.js +2 -2
- package/index-esm.js +2 -2
- package/package.json +5 -5
- package/themeAugmentation/props.d.ts +1 -1
- package/x-data-grid.d.ts +3617 -3856
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,316 @@
|
|
|
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.5.0
|
|
7
|
+
|
|
8
|
+
_Feb 3, 2022_
|
|
9
|
+
|
|
10
|
+
A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Add support for [master/detail](https://mui.com/components/data-grid/group-pivot/#master-detail) (#3387) @m4theushw
|
|
13
|
+
|
|
14
|
+
<img src="https://user-images.githubusercontent.com/42154031/152379354-47120aac-2b37-4a90-b311-64b4522283b9.gif" width="814">
|
|
15
|
+
|
|
16
|
+
- 🌍 Add Danish (daDK) locale (#3800) @kasperfilstrup
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
|
|
20
|
+
### `@mui/x-data-grid@v5.5.0` / `@mui/x-data-grid-pro@v5.5.0`
|
|
21
|
+
|
|
22
|
+
#### Changes
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Add methods to import and export the state (#3593) @flaviendelangle
|
|
25
|
+
- [DataGrid] Fix <kbd>PageUp</kbd> jumping directly to the column header skipping the first row (#3761) @cherniavskii
|
|
26
|
+
- [DataGrid] Throw an error if incorrect column type is used (#3757) @DanailH
|
|
27
|
+
- [DataGridPro] Add support for master/detail (#3387) @m4theushw
|
|
28
|
+
- [l10n] Add Danish (daDK) locale (#3800) @kasperfilstrup
|
|
29
|
+
- [l10n] Improve Dutch (nlNL) locale (#3724) @MatthijsKok
|
|
30
|
+
- [l10n] Improve Hebrew (heIL) locale (#3775) @ColdAtNight
|
|
31
|
+
- [l10n] Improve Russian (ruRU) locale (#3818) @Leniorko
|
|
32
|
+
|
|
33
|
+
### Docs
|
|
34
|
+
|
|
35
|
+
- [docs] Add default value for `Row` slot (#3807) @cherniavskii
|
|
36
|
+
- [docs] Extend full width (#3815) @m4theushw
|
|
37
|
+
- [docs] Fix country column sorting not working (#3740) @cherniavskii
|
|
38
|
+
- [docs] Fix custom render cell when row is auto generated (#3810) @alexfauquette
|
|
39
|
+
- [docs] Fix flag layout shift (#3773) @oliviertassinari
|
|
40
|
+
- [docs] Mention row `id` requirement and document `getRowId` prop (#3765) @cherniavskii
|
|
41
|
+
- [docs] Refresh the license key documentation (#3529) @oliviertassinari
|
|
42
|
+
|
|
43
|
+
### Core
|
|
44
|
+
|
|
45
|
+
- [core] Clean `filtering.DataGrid.test.tsx` (#3768) @flaviendelangle
|
|
46
|
+
- [core] Improve GitHub label workflows (#3680) @DanailH
|
|
47
|
+
- [core] Isolate selectors called without `useGridSelector` (#3774) @m4theushw
|
|
48
|
+
- [core] Prepare infra for pickers migration (#3714) @flaviendelangle
|
|
49
|
+
- [core] Remove none code related instructions from git (#3794) @oliviertassinari
|
|
50
|
+
- [core] Remove remaining usages of `@mui/styles` (#3769) @m4theushw
|
|
51
|
+
- [core] Remove Stylelint (#3811) @m4theushw
|
|
52
|
+
- [core] Split cell / row editing into different hooks (#3219) @m4theushw
|
|
53
|
+
- [core] Stop using an enum for `GridPreProcessingGroup` (#3798) @flaviendelangle
|
|
54
|
+
- [core] Fix failing tests (#3817) @cherniavskii
|
|
55
|
+
- [code] Fix `docs:api` silent crash (#3808) @cherniavskii
|
|
56
|
+
- [test] Increase timeout for Firefox (#3813) @m4theushw
|
|
57
|
+
|
|
58
|
+
## 5.4.0
|
|
59
|
+
|
|
60
|
+
_Jan 28, 2022_
|
|
61
|
+
|
|
62
|
+
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
63
|
+
|
|
64
|
+
- 🚣 Introduce [variable row height](https://mui.com/components/data-grid/rows/#variable-row-height) (#438) @DanailH
|
|
65
|
+
|
|
66
|
+
Allows for setting a row-specific height.
|
|
67
|
+
By default, all rows have the same height, but now you can set the height on a per-row basis.
|
|
68
|
+
|
|
69
|
+
```tsx
|
|
70
|
+
<DataGrid getRowHeight={({ id }: GridRowHeightParams) => (id % 2 === 0 ? 100 : null)} />
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
- 🎁 Add new CSV export option: [`getRowsToExport`](https://mui.com/components/data-grid/export/#custom-exported-content) (#3687) @flaviendelangle
|
|
74
|
+
- 📚 Documentation improvements
|
|
75
|
+
- 🐞 Bugfixes
|
|
76
|
+
|
|
77
|
+
### `@mui/x-data-grid@v5.4.0` / `@mui/x-data-grid-pro@v5.4.0`
|
|
78
|
+
|
|
79
|
+
#### Changes
|
|
80
|
+
|
|
81
|
+
- [DataGrid] Add l10n support for `is any of` (#3746) @alexfauquette
|
|
82
|
+
- [DataGrid] Add new CSV `getRowsToExport` option (#3687) @flaviendelangle
|
|
83
|
+
- [DataGrid] Clean params of `onCellEditCommit` (#3693) @valenfv
|
|
84
|
+
- [DataGrid] Create a new lookup with all the filtered rows, collapsed or not (#3736) @flaviendelangle
|
|
85
|
+
- [DataGrid] Fix Alt+c being ignored on some systems (#3660) @cherniavskii
|
|
86
|
+
- [DataGrid] Fix `isRowSelectable` when `paginationMode='server'` (#3647) @flaviendelangle
|
|
87
|
+
- [DataGrid] Fix browser keyboard shortcuts not working when header cell is focused (#3692) @valenfv
|
|
88
|
+
- [DataGrid] Fix focus on checkbox cells (#3501) @alexfauquette
|
|
89
|
+
- [DataGrid] Only update the visibility status of the updated columns when calling `apiRef.current.updateRows` (#3735) @flaviendelangle
|
|
90
|
+
- [DataGrid] Prevent commit if `preProcessEditCellProps` resolves with an error (#3612) @m4theushw
|
|
91
|
+
- [DataGrid] Update selected rows when turning off `checkboxSelection` (#3684) @m4theushw
|
|
92
|
+
- [DataGrid] Variable row height (#3218) @DanailH
|
|
93
|
+
- [DataGridPro] Call `useGridColumnPinning` before `useGridColumns` (#3676) @flaviendelangle
|
|
94
|
+
- [DataGridPro] Fix grid cell losing focus when scrolling with keyboard (#3667) @cherniavskii
|
|
95
|
+
- [DataGridPro] Fix missing `styleOverrides` on pinned columns (#3733) @alexfauquette
|
|
96
|
+
- [DataGridPro] Remove function overloading for `useGridApiRef` (#3666) @flaviendelangle
|
|
97
|
+
- [l10n] Improve French (frFR) locale (#3739) @flaviendelangle
|
|
98
|
+
- [l10n] Improve Italian (itIT) locale (#3744) @destegabry
|
|
99
|
+
|
|
100
|
+
### Docs
|
|
101
|
+
|
|
102
|
+
- [docs] Fix broken code example on the localization page (#3742) @flaviendelangle
|
|
103
|
+
- [docs] Fix typo in column visibility example (#3734) @flaviendelangle
|
|
104
|
+
- [docs] Fix typo on `columnVisibilityModel` (#3723) @alexfauquette
|
|
105
|
+
- [docs] Improve sorting documentation page (#3564) @flaviendelangle
|
|
106
|
+
- [docs] Improve `v5.3.0` release notes (#3722) @cherniavskii
|
|
107
|
+
- [docs] Prepare scripts and E2E tests for migration (#3515) @siriwatknp
|
|
108
|
+
- [docs] Clarify what is the professional support (#3530) @oliviertassinari
|
|
109
|
+
|
|
110
|
+
### Core
|
|
111
|
+
|
|
112
|
+
- [core] Add ESLint rule to force default export equals to filename in documentation (#3674) @alexfauquette
|
|
113
|
+
- [core] Fix `l10n` script not updating `csCZ` locale (#3748) @cherniavskii
|
|
114
|
+
- [core] Generate CHANGELOG from GitHub API (#3313) @alexfauquette
|
|
115
|
+
- [core] Isolate selectors from different grid instances (#3663) @m4theushw
|
|
116
|
+
- [test] Improve test detection (#3728) @m4theushw
|
|
117
|
+
- [test] Include module augmentation for Chai custom matchers (#3754) @m4theushw
|
|
118
|
+
- [test] Remove a useless `async` (#3675) @alexfauquette
|
|
119
|
+
- [test] Remove remaining `@ts-expect-error` (#3762) @m4theushw
|
|
120
|
+
- [test] Skip test on Firefox (#3752) @m4theushw
|
|
121
|
+
- [test] Wait for flags to load before creating snapshots (#3726) @m4theushw
|
|
122
|
+
- [test] Warn when focusing cells without syncing the state (#3486) @m4theushw
|
|
123
|
+
|
|
124
|
+
## 5.3.0
|
|
125
|
+
|
|
126
|
+
_Jan 21, 2022_
|
|
127
|
+
|
|
128
|
+
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
129
|
+
|
|
130
|
+
- 🎁 Allow to group rows based on column value (#3277) @flaviendelangle
|
|
131
|
+
|
|
132
|
+
⚠️ This feature is temporarily available on the Pro plan until the release of the Premium plan.
|
|
133
|
+
|
|
134
|
+
To avoid future regression for users of the Pro plan, the feature needs to be explicitly activated using the rowGrouping experimental feature flag.
|
|
135
|
+
|
|
136
|
+
```tsx
|
|
137
|
+
// To fully control
|
|
138
|
+
<DataGridPro
|
|
139
|
+
rowGroupingModel={rowGroupingModel}
|
|
140
|
+
onRowGroupingModel={newModel => setRowGroupingModel(newModel)}
|
|
141
|
+
experimentalFeatures={{ rowGrouping: true }}
|
|
142
|
+
/>
|
|
143
|
+
|
|
144
|
+
// To initialize without controlling
|
|
145
|
+
<DataGridPro
|
|
146
|
+
initialState={{
|
|
147
|
+
rowGrouping: {
|
|
148
|
+
model: rowGroupingModel,
|
|
149
|
+
},
|
|
150
|
+
}}
|
|
151
|
+
experimentalFeatures={{ rowGrouping: true }}
|
|
152
|
+
/>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
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).
|
|
156
|
+
|
|
157
|
+
- ⚡ Add `is any of` filter operator (#2874) @alexfauquette
|
|
158
|
+
|
|
159
|
+
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`.
|
|
160
|
+
|
|
161
|
+
<img src="https://user-images.githubusercontent.com/45398769/150486348-996a938f-db24-426f-bfe3-c06337f71807.gif" width="770">
|
|
162
|
+
|
|
163
|
+
- ✨ Introduce a `maxWidth` property in `GridColDef` (#3550) @flaviendelangle
|
|
164
|
+
|
|
165
|
+
You can now limit the width of the flex columns and the resizable columns with the new `maxWidth` property on `GridColDef`.
|
|
166
|
+
|
|
167
|
+
```tsx
|
|
168
|
+
const columns: GridColDef[] = [
|
|
169
|
+
{ field: 'director', flex: 1, maxWidth: 200 }, // will take the free space up to 200px and will not be resizable above 200px
|
|
170
|
+
{ field: 'year', maxWidth: 150 }, // will not be resizable above 150px
|
|
171
|
+
];
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
- 🚀 Add component slots for a subset of used `@mui/material` components (#3490) @DanailH
|
|
175
|
+
|
|
176
|
+
To make the grid more flexible we added component slots for base `@mui/material` components that we use. Those component slots are prefixed with `Base` to differentiate them from the other grid specific components
|
|
177
|
+
|
|
178
|
+
For more information check the documentation [documentation](https://mui.com/api/data-grid/data-grid/#slots).
|
|
179
|
+
|
|
180
|
+
- 🔥 Allow to pass `csvOptions` and `printOptions` to `toolbar` component prop (#3623) @flaviendelangle
|
|
181
|
+
|
|
182
|
+
```tsx
|
|
183
|
+
const CustomDataGrid = (props: DataGridProps) => {
|
|
184
|
+
return (
|
|
185
|
+
<DataGrid {...props} componentsProps={{ toolbar: { csvOptions: { delimiter: ';' } } }} />
|
|
186
|
+
);
|
|
187
|
+
};
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
- 🙈 Add controlled behavior for the visible columns (#3554) @flaviendelangle
|
|
191
|
+
|
|
192
|
+
```tsx
|
|
193
|
+
// To fully control
|
|
194
|
+
<DataGrid
|
|
195
|
+
columnVisibilityModel={columnVisibilityModel}
|
|
196
|
+
onColumnVisilibilityModelChange={newModel => setColumnVisibilityModel(newModel)}
|
|
197
|
+
/>
|
|
198
|
+
|
|
199
|
+
// To initialize without controlling
|
|
200
|
+
<DataGrid
|
|
201
|
+
initialState={{
|
|
202
|
+
columns: {
|
|
203
|
+
columnVisibilityModel
|
|
204
|
+
}
|
|
205
|
+
}}
|
|
206
|
+
/>
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
See the [documentation](https://mui.com/components/data-grid/columns/#column-visibility) for more details.
|
|
210
|
+
|
|
211
|
+
The `hide` property from `GridColDef` still works but has been deprecated.
|
|
212
|
+
|
|
213
|
+
- 📚 Documentation improvements
|
|
214
|
+
- 🐞 Bugfixes
|
|
215
|
+
|
|
216
|
+
### `@mui/x-data-grid@v5.3.0` / `@mui/x-data-grid-pro@v5.3.0`
|
|
217
|
+
|
|
218
|
+
#### Changes
|
|
219
|
+
|
|
220
|
+
- [DataGrid] Add component slots for a subset of used `@mui/material` components (#3490) @DanailH
|
|
221
|
+
- [DataGrid] Add controlled behavior for the visible columns (#3554) @flaviendelangle
|
|
222
|
+
- [DataGrid] Add debounce to text input (#3617) @m4theushw
|
|
223
|
+
- [DataGrid] Add `is any of` filter operator (#2874) @alexfauquette
|
|
224
|
+
- [DataGrid] Allow to pass `csvOptions` and `printOptions` to `GridToolbar` (#3623) @flaviendelangle
|
|
225
|
+
- [DataGrid] Disable `Hide` button if there's only one visible column (#3607) @cherniavskii
|
|
226
|
+
- [DataGrid] Fix line break characters breaking CSV rows (#3590) @cherniavskii
|
|
227
|
+
- [DataGrid] Fix potential memory leak warning (#3558) @m4theushw
|
|
228
|
+
- [DataGrid] Introduce a `maxWidth` property in `GridColDef` (#3550) @flaviendelangle
|
|
229
|
+
- [DataGrid] Make row editing work with `preProcessEditCellProps` (#3562) @flaviendelangle
|
|
230
|
+
- [DataGridPro] Export the column pinning selector (#3594) @flaviendelangle
|
|
231
|
+
- [DataGridPro] Keep row children expansion when updating the rows (#3604) @flaviendelangle
|
|
232
|
+
- [DataGridPro] Keep tree data grouping column width when regenerating the columns (#3603) @flaviendelangle
|
|
233
|
+
- [DataGridPremium] Allow to group rows based on column value (#3277) @flaviendelangle
|
|
234
|
+
- [l10n] Improve Finnish (fiFI) locale (#3621) @MijMa
|
|
235
|
+
- [l10n] Improve Ukrainian (ukUA) locale (#3586) @Neonin
|
|
236
|
+
- [l10n] Improve Czech (csCZ) and Slovak (skSK) locale (#3678) @Haaxor1689
|
|
237
|
+
|
|
238
|
+
### Docs
|
|
239
|
+
|
|
240
|
+
- [docs] Add doc example for tree data children lazy loading (#3657) @flaviendelangle
|
|
241
|
+
- [docs] Fix typo exchanging `false` and `true` on columns hiding section (#3561) @alexfauquette
|
|
242
|
+
- [docs] Improve filtering documentation page (#3437) @flaviendelangle
|
|
243
|
+
- [docs] Include header badges as in the other components (#3606) @oliviertassinari
|
|
244
|
+
- [docs] Lint markdown in the CI (#3504) @oliviertassinari
|
|
245
|
+
- [docs] Make inputs to extend full height of the cell (#3567) @m4theushw
|
|
246
|
+
- [docs] Add documentation page about the grid state (#3431) @flaviendelangle
|
|
247
|
+
- [docs] Replace `@mui/styles` in `x-data-grid-generator` (#3560) @m4theushw
|
|
248
|
+
- [docs] Update usage of prop/property naming (#3649) @cherniavskii
|
|
249
|
+
|
|
250
|
+
### Core
|
|
251
|
+
|
|
252
|
+
- [core] Log the output of the script (#3527) @oliviertassinari
|
|
253
|
+
- [core] Add ESLint rule to prevent direct state access (#3521) @m4theushw
|
|
254
|
+
- [core] Add language to markdown code block (#3651) @m4theushw
|
|
255
|
+
- [core] Add typing to the pre-processors methods (#3595) @flaviendelangle
|
|
256
|
+
- [core] Don't bump peer dependency ranges on dependency updates (#3646) @oliviertassinari
|
|
257
|
+
- [core] Rename more instances of Material-UI to MUI (#3525) @oliviertassinari
|
|
258
|
+
- [core] Renovate should not try to update node (#3645) @oliviertassinari
|
|
259
|
+
- [core] Report performance test results on each PR (#3551) @m4theushw
|
|
260
|
+
- [core] Update monorepo (#3653) @m4theushw
|
|
261
|
+
- [core] Update `l10n` issue with a single command line (#3588) @alexfauquette
|
|
262
|
+
- [test] Wait for promise to resolve before expect (#3597) @m4theushw
|
|
263
|
+
- [test] Split cell/row editing tests (#3618) @m4theushw
|
|
264
|
+
- [test] Skip tests on Safari (#3679) @m4theushw
|
|
265
|
+
|
|
266
|
+
## 5.2.2
|
|
267
|
+
|
|
268
|
+
_Jan 6, 2022_
|
|
269
|
+
|
|
270
|
+
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
271
|
+
|
|
272
|
+
- 🎁 Add `hideable` option to `GridColDef` (#3433) @m4theushw
|
|
273
|
+
- ⚡ Add support for column-based `sortingOrder` with the new `sortingOrder` option in `GridColDef` (#3449) @Quppa
|
|
274
|
+
- ✨ Allow to initialize the `page` and `pageSize` without controlling them with the `initialState` prop (#3495) @flaviendelangle
|
|
275
|
+
- 🙈 Allow to precisely control which children rows to expand with the new `isGroupExpandedByDefault` prop (#3444) @flaviendelangle
|
|
276
|
+
- 🌍 Add Finnish (fiFI) locale (#3485) @kurkle
|
|
277
|
+
- 📚 Documentation improvements
|
|
278
|
+
- 🐞 Bugfixes
|
|
279
|
+
|
|
280
|
+
### `@mui/x-data-grid@v5.2.2` / `@mui/x-data-grid-pro@v5.2.2`
|
|
281
|
+
|
|
282
|
+
#### Changes
|
|
283
|
+
|
|
284
|
+
- [DataGrid] Add `hideable` option to GridColDef (#3433) @alexfauquette
|
|
285
|
+
- [DataGrid] Add `sortingOrder` to GridColDef (#3449) @Quppa
|
|
286
|
+
- [DataGrid] Add the page and pageSize to the initialState prop (#3495) @flaviendelangle
|
|
287
|
+
- [DataGrid] Avoid re-render when pressing key inside already focused cell (#3484) @m4theushw
|
|
288
|
+
- [DataGrid] Close other actions menus when opening a new one (#3492) @m4theushw
|
|
289
|
+
- [DataGrid] Deprecate `getValue` param from the cell and row params (#3369) @flaviendelangle
|
|
290
|
+
- [DataGrid] Fix value parsing in date input (#3307) @alexfauquette
|
|
291
|
+
- [DataGrid] Fix can't enter 0 on numeric column (#3491) @m4theushw
|
|
292
|
+
- [DataGrid] Fix scrolling bug when an action is focused (#3483) @alexfauquette
|
|
293
|
+
- [DataGrid] Remove `line-height` from `GridCell` (#3446) @DanailH
|
|
294
|
+
- [DataGridPro] Block edition for auto-generated rows (#3547) @flaviendelangle
|
|
295
|
+
- [DataGridPro] Expose the field of the tree data grouping column as a constant (#3549) @flaviendelangle
|
|
296
|
+
- [DataGridPro] Fix resizing of right pinned columns (#3502) @m4theushw
|
|
297
|
+
- [DataGridPro] Add new prop `isGroupExpandedByDefault` (#3444) @flaviendelangle
|
|
298
|
+
- [l10n] Add Finnish (fiFI) locale (#3485) @kurkle
|
|
299
|
+
- [l10n] Improve French (frFR) locale (#3494) @Zenoo
|
|
300
|
+
- [l10n] Improve Italian (itIT) locale (#3452) @destegabry
|
|
301
|
+
- [l10n] Improve Vietnamese (viVN) locale (#3493) @hckhanh
|
|
302
|
+
|
|
303
|
+
### Docs
|
|
304
|
+
|
|
305
|
+
- [docs] Generate imports dynamically from the packages export list (#3488) @flaviendelangle
|
|
306
|
+
- [docs] Make demos compatible with `preProcessEditCellProps` (#3453) @m4theushw
|
|
307
|
+
|
|
308
|
+
### Core
|
|
309
|
+
|
|
310
|
+
- [test] Add test for row checkbox toggling using the Space key (#3262) @alexfauquette
|
|
311
|
+
- [core] Increase CI efficiency (#3441) @oliviertassinari
|
|
312
|
+
- [core] Refactor sorting comparator (#3390) @flaviendelangle
|
|
313
|
+
- [core] Update dependency on the core (#3526) @oliviertassinari
|
|
314
|
+
- [core] Update tweet example in release readme (#3481) @DanailH
|
|
315
|
+
|
|
6
316
|
## 5.2.1
|
|
7
317
|
|
|
8
318
|
_Dec 17, 2021_
|
|
@@ -25,18 +335,11 @@ A big thanks to the 8 contributors who made this release possible. Here are some
|
|
|
25
335
|
- [DataGrid] Refactor keyboard/click event management (#3275) @alexfauquette
|
|
26
336
|
- [DataGrid] Fire change event when the state changes, instead of when the prop changes (#3388) @flaviendelangle
|
|
27
337
|
- [DataGrid] Unsubscribe event listeners registered in uncommitted renders (#3310) @m4theushw
|
|
338
|
+
- [DataGrid] Rework state update methods and deprecate `useGridApi` and `useGridState` (#3325) @flaviendelangle
|
|
28
339
|
- [l10n] Improve German (deDE) locale (#3430) @sebastianfrey
|
|
29
340
|
- [l10n] Improve Hebrew (heIL) locale (#3445) @ColdAtNight
|
|
30
341
|
- [l10n] Improve Dutch (nlNL) locale (#3429) @jaapjr
|
|
31
342
|
|
|
32
|
-
### Core
|
|
33
|
-
|
|
34
|
-
- [core] Rework state update methods and deprecate `useGridApi` and `useGridState` (#3325) @flaviendelangle
|
|
35
|
-
- [core] Add sections to some of the feature hooks (#3391) @flaviendelangle
|
|
36
|
-
- [core] Generate exports snapshot for both `x-data-grid` and `x-data-grid-pro` packages (#3427) @flaviendelangle
|
|
37
|
-
- [core] Remove 'x-data-grid' folder from DataGridPro bundle (#3394) @m4theushw
|
|
38
|
-
- [core] Add link to OpenCollective (#3392) @oliviertassinari
|
|
39
|
-
|
|
40
343
|
### Docs
|
|
41
344
|
|
|
42
345
|
- [docs] Improve pagination documentation page (#3424) @flaviendelangle
|
|
@@ -44,6 +347,13 @@ A big thanks to the 8 contributors who made this release possible. Here are some
|
|
|
44
347
|
- [docs] Stop using TypeDoc to generate the API documentation (#3320) @flaviendelangle
|
|
45
348
|
- [docs] Remove column pinning from "Upcoming features" (#3443) @alexfauquette
|
|
46
349
|
|
|
350
|
+
### Core
|
|
351
|
+
|
|
352
|
+
- [core] Add sections to some of the feature hooks (#3391) @flaviendelangle
|
|
353
|
+
- [core] Generate exports snapshot for both `x-data-grid` and `x-data-grid-pro` packages (#3427) @flaviendelangle
|
|
354
|
+
- [core] Remove 'x-data-grid' folder from DataGridPro bundle (#3394) @m4theushw
|
|
355
|
+
- [core] Add link to OpenCollective (#3392) @oliviertassinari
|
|
356
|
+
|
|
47
357
|
## 5.2.0
|
|
48
358
|
|
|
49
359
|
_Dec 9, 2021_
|
|
@@ -71,12 +381,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
71
381
|
- 🙈 Add a new option to hide the amount of descendant on the grouping cells of the Tree Data (#3368) @flaviendelangle
|
|
72
382
|
|
|
73
383
|
```tsx
|
|
74
|
-
<DataGridPro
|
|
75
|
-
treeData
|
|
76
|
-
rows={rows}
|
|
77
|
-
columns={columns}
|
|
78
|
-
groupingColDef={{ hideDescendantCount }}
|
|
79
|
-
/>
|
|
384
|
+
<DataGridPro treeData rows={rows} columns={columns} groupingColDef={{ hideDescendantCount }} />
|
|
80
385
|
```
|
|
81
386
|
|
|
82
387
|
- ⚠️ Deprecate the `getValue` param for the `valueGetter` callback (#3314) @flaviendelangle
|
|
@@ -103,6 +408,18 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
103
408
|
- [DataGrid] Fix `DatePicker` bug by limiting years to 4 digits (#3222) @alexfauquette
|
|
104
409
|
- [DataGrid] Fix column menu position when closing (#3289) @m4theushw
|
|
105
410
|
- [DataGrid] Fix to not crash when a sort item uses a non-existing column (#3224) @flaviendelangle
|
|
411
|
+
- [DataGrid] Type the `api` param in callback interfaces (#3315) @flaviendelangle
|
|
412
|
+
|
|
413
|
+
### Docs
|
|
414
|
+
|
|
415
|
+
- [docs] Always use auto-generated `apiRef` documentation (#3266) @flaviendelangle
|
|
416
|
+
- [docs] Avoid 301 links (#3329) @oliviertassinari
|
|
417
|
+
- [docs] Disable the ad when not MIT (#3334) @oliviertassinari
|
|
418
|
+
- [docs] Fix 404 link to Zendesk @oliviertassinari
|
|
419
|
+
- [docs] Fix dead link on the overview page (#3326) @flaviendelangle
|
|
420
|
+
- [docs] Fix double MUI in the title (#3332) @oliviertassinari
|
|
421
|
+
- [docs] Fix duplicate "the" (#3365) @noam-honig
|
|
422
|
+
- [docs] Update branch to deploy docs (#3321) @m4theushw
|
|
106
423
|
|
|
107
424
|
### Core
|
|
108
425
|
|
|
@@ -113,22 +430,10 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
113
430
|
- [core] Improve tests for Tree Data (#3366) @flaviendelangle
|
|
114
431
|
- [core] Never import directly from the `__modules__` folder in the `x-data-grid-generator` package (#3379) @flaviendelangle
|
|
115
432
|
- [core] Transition to a new StackOverflow tag (#3308) @oliviertassinari
|
|
116
|
-
- [core] Type the `api` param in callback interfaces (#3315) @flaviendelangle
|
|
117
433
|
- [core] Update monorepo (#3370) @flaviendelangle
|
|
118
434
|
- [core] Use pre-processors for sorting and filtering (#3318) @flaviendelangle
|
|
119
435
|
- [test] Replace `useFakeTimers` (#3323) @m4theushw
|
|
120
436
|
|
|
121
|
-
### Docs
|
|
122
|
-
|
|
123
|
-
- [docs] Always use auto-generated `apiRef` documentation (#3266) @flaviendelangle
|
|
124
|
-
- [docs] Avoid 301 links (#3329) @oliviertassinari
|
|
125
|
-
- [docs] Disable the ad when not MIT (#3334) @oliviertassinari
|
|
126
|
-
- [docs] Fix 404 link to Zendesk @oliviertassinari
|
|
127
|
-
- [docs] Fix dead link on the overview page (#3326) @flaviendelangle
|
|
128
|
-
- [docs] Fix double MUI in the title (#3332) @oliviertassinari
|
|
129
|
-
- [docs] Fix duplicate "the" (#3365) @noam-honig
|
|
130
|
-
- [docs] Update branch to deploy docs (#3321) @m4theushw
|
|
131
|
-
|
|
132
437
|
## 5.1.0
|
|
133
438
|
|
|
134
439
|
_Dec 2, 2021_
|
|
@@ -245,8 +550,8 @@ A big thanks to the 3 contributors who made this release possible. Here are some
|
|
|
245
550
|
const userWithEmail = await fetchUserByEmail(params.value);
|
|
246
551
|
const hasError = !!userWithEmail;
|
|
247
552
|
return { ...params.props, error: hasError };
|
|
248
|
-
}
|
|
249
|
-
}
|
|
553
|
+
},
|
|
554
|
+
},
|
|
250
555
|
];
|
|
251
556
|
```
|
|
252
557
|
|
|
@@ -260,12 +565,14 @@ A big thanks to the 3 contributors who made this release possible. Here are some
|
|
|
260
565
|
|
|
261
566
|
### `@mui/x-data-grid@v5.0.1` / `@mui/x-data-grid-pro@v5.0.1`
|
|
262
567
|
|
|
263
|
-
#### Changes
|
|
264
|
-
|
|
265
568
|
- [DataGrid] New API to validate the editing values (#3006) @m4theushw
|
|
266
569
|
- [DataGrid] Use color-scheme to set dark mode on native components (#3146) @alexfauquette
|
|
267
570
|
- [DataGrid] Fix the `@mui/x-data-grid` type entrypoint (#3196) @flaviendelangle
|
|
268
571
|
|
|
572
|
+
### Docs
|
|
573
|
+
|
|
574
|
+
- [docs] Move sentence about disabling multi rows selection (#3167) @alexfauquette
|
|
575
|
+
|
|
269
576
|
### Core
|
|
270
577
|
|
|
271
578
|
- [core] Drop `useGridContainerProps` (#3007) @flaviendelangle
|
|
@@ -274,10 +581,6 @@ A big thanks to the 3 contributors who made this release possible. Here are some
|
|
|
274
581
|
- [core] Remove the `index.ts` of the export hooks (#3165) @flaviendelangle
|
|
275
582
|
- [core] Set the correct release date for v5.0.0 in the CHANGELOG.md (#3192) @flaviendelangle
|
|
276
583
|
|
|
277
|
-
### Docs
|
|
278
|
-
|
|
279
|
-
- [docs] Move sentence about disabling multi rows selection (#3167) @alexfauquette
|
|
280
|
-
|
|
281
584
|
## 5.0.0
|
|
282
585
|
|
|
283
586
|
_Nov 23, 2021_
|
|
@@ -671,7 +974,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
671
974
|
- [core] Remove outdated hooks requirements (#2939) @flaviendelangle
|
|
672
975
|
- [core] Remove test event (#2912) @m4theushw
|
|
673
976
|
- [core] Remove unused `GridSlotComponentProps` interface (#2911) @flaviendelangle
|
|
674
|
-
- [core] Rename '
|
|
977
|
+
- [core] Rename 'UNSTABLE*' prefix to 'unstable*' (#2931) @flaviendelangle
|
|
675
978
|
- [core] Replace usage of `GridRowData` with `GridRowModel` (#2936) @flaviendelangle
|
|
676
979
|
- [core] Revert hardcoded typings (#2907) @DanailH
|
|
677
980
|
- [core] Simplify the CSV export (#2941) @flaviendelangle
|
|
@@ -1378,6 +1681,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
1378
1681
|
- The `onEditCellChange` prop was renamed to `onEditCellPropsChange`.
|
|
1379
1682
|
- The `onEditCellChangeCommitted` prop was renamed to `onCellEditCommit`.
|
|
1380
1683
|
- The `onEditRowModelChange` prop was removed. Use the new `onEditRowsModelChange` prop.
|
|
1684
|
+
|
|
1381
1685
|
```diff
|
|
1382
1686
|
-onEditRowModelChange?: (params: GridEditRowModelParams)
|
|
1383
1687
|
+onEditRowsModelChange?: (editRowsModel: GridEditRowsModel)
|
|
@@ -2616,7 +2920,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
2616
2920
|
|
|
2617
2921
|
## [4.0.0-alpha.19](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.18...v4.0.0-alpha.19)
|
|
2618
2922
|
|
|
2619
|
-
|
|
2923
|
+
_Feb 5, 2021_
|
|
2620
2924
|
|
|
2621
2925
|
Big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
2622
2926
|
|
|
@@ -2659,7 +2963,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
2659
2963
|
|
|
2660
2964
|
## [4.0.0-alpha.18](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.17...v4.0.0-alpha.18)
|
|
2661
2965
|
|
|
2662
|
-
|
|
2966
|
+
_Jan 26, 2021_
|
|
2663
2967
|
|
|
2664
2968
|
Big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
2665
2969
|
|
|
@@ -2746,7 +3050,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
2746
3050
|
|
|
2747
3051
|
## [4.0.0-alpha.17](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.15...v4.0.0-alpha.17)
|
|
2748
3052
|
|
|
2749
|
-
|
|
3053
|
+
_Jan 14, 2021_
|
|
2750
3054
|
|
|
2751
3055
|
Big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
2752
3056
|
|
|
@@ -2776,7 +3080,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
2776
3080
|
|
|
2777
3081
|
## [4.0.0-alpha.15](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.14...v4.0.0-alpha.15)
|
|
2778
3082
|
|
|
2779
|
-
|
|
3083
|
+
_Jan 7, 2021_
|
|
2780
3084
|
|
|
2781
3085
|
Big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
2782
3086
|
|
|
@@ -2799,7 +3103,7 @@ Big thanks to the 2 contributors who made this release possible. Here are some h
|
|
|
2799
3103
|
|
|
2800
3104
|
## [4.0.0-alpha.14](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.13...v4.0.0-alpha.14)
|
|
2801
3105
|
|
|
2802
|
-
|
|
3106
|
+
_Dec 31, 2020_
|
|
2803
3107
|
|
|
2804
3108
|
Big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
2805
3109
|
|
|
@@ -2833,7 +3137,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
2833
3137
|
|
|
2834
3138
|
## [4.0.0-alpha.13](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.12...v4.0.0-alpha.13)
|
|
2835
3139
|
|
|
2836
|
-
|
|
3140
|
+
_Dec 16, 2020_
|
|
2837
3141
|
|
|
2838
3142
|
Big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
2839
3143
|
|
|
@@ -2862,7 +3166,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
2862
3166
|
|
|
2863
3167
|
## [4.0.0-alpha.12](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.11...v4.0.0-alpha.12)
|
|
2864
3168
|
|
|
2865
|
-
|
|
3169
|
+
_Dec 9, 2020_
|
|
2866
3170
|
|
|
2867
3171
|
Big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
2868
3172
|
|
|
@@ -2899,7 +3203,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
|
|
|
2899
3203
|
|
|
2900
3204
|
## [4.0.0-alpha.11](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.10...v4.0.0-alpha.11)
|
|
2901
3205
|
|
|
2902
|
-
|
|
3206
|
+
_Dec 2, 2020_
|
|
2903
3207
|
|
|
2904
3208
|
Big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
2905
3209
|
|
|
@@ -2957,7 +3261,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
2957
3261
|
|
|
2958
3262
|
## [4.0.0-alpha.10](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.9...v4.0.0-alpha.10)
|
|
2959
3263
|
|
|
2960
|
-
|
|
3264
|
+
_Nov 20, 2020_
|
|
2961
3265
|
|
|
2962
3266
|
### @material-ui/x-grid@v4.0.0-alpha.10 / @material-ui/data-grid@v4.0.0-alpha.10
|
|
2963
3267
|
|
|
@@ -2979,7 +3283,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
2979
3283
|
|
|
2980
3284
|
## [4.0.0-alpha.9](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.8...v4.0.0-alpha.9)
|
|
2981
3285
|
|
|
2982
|
-
|
|
3286
|
+
_Nov 9, 2020_
|
|
2983
3287
|
|
|
2984
3288
|
### @material-ui/x-grid@v4.0.0-alpha.9 / @material-ui/data-grid@v4.0.0-alpha.9
|
|
2985
3289
|
|
|
@@ -3017,7 +3321,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
3017
3321
|
|
|
3018
3322
|
## [4.0.0-alpha.8](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.7...v4.0.0-alpha.8)
|
|
3019
3323
|
|
|
3020
|
-
|
|
3324
|
+
_Oct 23, 2020_
|
|
3021
3325
|
|
|
3022
3326
|
### @material-ui/x-grid@v4.0.0-alpha.8 / @material-ui/data-grid@v4.0.0-alpha.8
|
|
3023
3327
|
|
|
@@ -3034,7 +3338,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
3034
3338
|
|
|
3035
3339
|
## [4.0.0-alpha.7](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.6...v4.0.0-alpha.7)
|
|
3036
3340
|
|
|
3037
|
-
|
|
3341
|
+
_Oct 19, 2020_
|
|
3038
3342
|
|
|
3039
3343
|
### @material-ui/x-grid@v4.0.0-alpha.7 / @material-ui/data-grid@v4.0.0-alpha.7
|
|
3040
3344
|
|
|
@@ -3063,7 +3367,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
3063
3367
|
|
|
3064
3368
|
## [4.0.0-alpha.6](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.2...v4.0.0-alpha.6)
|
|
3065
3369
|
|
|
3066
|
-
|
|
3370
|
+
_Sep 25, 2020_
|
|
3067
3371
|
|
|
3068
3372
|
### @material-ui/x-grid@v4.0.0-alpha.6 / @material-ui/data-grid@v4.0.0-alpha.6
|
|
3069
3373
|
|
|
@@ -3080,13 +3384,13 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
3080
3384
|
|
|
3081
3385
|
## [4.0.0-alpha.2](https://github.com/mui-org/material-ui-x/compare/v4.0.0-alpha.1...v4.0.0-alpha.2)
|
|
3082
3386
|
|
|
3083
|
-
|
|
3387
|
+
_Sep 18, 2020_
|
|
3084
3388
|
|
|
3085
3389
|
- [DataGrid] Fix wrongly exported types (#298) @dtassone
|
|
3086
3390
|
|
|
3087
3391
|
## [4.0.0-alpha.1](https://github.com/mui-org/material-ui-x/compare/v0.1.67...v4.0.0-alpha.1)
|
|
3088
3392
|
|
|
3089
|
-
|
|
3393
|
+
_Sep 17, 2020_
|
|
3090
3394
|
|
|
3091
3395
|
This is the first public alpha release of the component after 6 months of development since the initial commit (March 15th 2020).
|
|
3092
3396
|
`@material-ui/data-grid` is licensed under MIT while `@material-ui/x-grid` is licensed under a commercial license.
|