@mui/x-data-grid-pro 5.4.0 → 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 +60 -17
- package/index-cjs.js +2 -2
- package/index-esm.js +2 -2
- package/package.json +2 -2
- package/x-data-grid-pro.d.ts +305 -118
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,58 @@
|
|
|
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
|
+
|
|
6
58
|
## 5.4.0
|
|
7
59
|
|
|
8
60
|
_Jan 28, 2022_
|
|
@@ -15,11 +67,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
15
67
|
By default, all rows have the same height, but now you can set the height on a per-row basis.
|
|
16
68
|
|
|
17
69
|
```tsx
|
|
18
|
-
<DataGrid
|
|
19
|
-
getRowHeight={
|
|
20
|
-
({ id }: GridRowHeightParams) => (id % 2 === 0 ? 100 : null)
|
|
21
|
-
}
|
|
22
|
-
/>
|
|
70
|
+
<DataGrid getRowHeight={({ id }: GridRowHeightParams) => (id % 2 === 0 ? 100 : null)} />
|
|
23
71
|
```
|
|
24
72
|
|
|
25
73
|
- 🎁 Add new CSV export option: [`getRowsToExport`](https://mui.com/components/data-grid/export/#custom-exported-content) (#3687) @flaviendelangle
|
|
@@ -120,7 +168,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
120
168
|
const columns: GridColDef[] = [
|
|
121
169
|
{ field: 'director', flex: 1, maxWidth: 200 }, // will take the free space up to 200px and will not be resizable above 200px
|
|
122
170
|
{ field: 'year', maxWidth: 150 }, // will not be resizable above 150px
|
|
123
|
-
]
|
|
171
|
+
];
|
|
124
172
|
```
|
|
125
173
|
|
|
126
174
|
- 🚀 Add component slots for a subset of used `@mui/material` components (#3490) @DanailH
|
|
@@ -135,8 +183,8 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
135
183
|
const CustomDataGrid = (props: DataGridProps) => {
|
|
136
184
|
return (
|
|
137
185
|
<DataGrid {...props} componentsProps={{ toolbar: { csvOptions: { delimiter: ';' } } }} />
|
|
138
|
-
)
|
|
139
|
-
}
|
|
186
|
+
);
|
|
187
|
+
};
|
|
140
188
|
```
|
|
141
189
|
|
|
142
190
|
- 🙈 Add controlled behavior for the visible columns (#3554) @flaviendelangle
|
|
@@ -333,12 +381,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
333
381
|
- 🙈 Add a new option to hide the amount of descendant on the grouping cells of the Tree Data (#3368) @flaviendelangle
|
|
334
382
|
|
|
335
383
|
```tsx
|
|
336
|
-
<DataGridPro
|
|
337
|
-
treeData
|
|
338
|
-
rows={rows}
|
|
339
|
-
columns={columns}
|
|
340
|
-
groupingColDef={{ hideDescendantCount }}
|
|
341
|
-
/>
|
|
384
|
+
<DataGridPro treeData rows={rows} columns={columns} groupingColDef={{ hideDescendantCount }} />
|
|
342
385
|
```
|
|
343
386
|
|
|
344
387
|
- ⚠️ Deprecate the `getValue` param for the `valueGetter` callback (#3314) @flaviendelangle
|
|
@@ -507,8 +550,8 @@ A big thanks to the 3 contributors who made this release possible. Here are some
|
|
|
507
550
|
const userWithEmail = await fetchUserByEmail(params.value);
|
|
508
551
|
const hasError = !!userWithEmail;
|
|
509
552
|
return { ...params.props, error: hasError };
|
|
510
|
-
}
|
|
511
|
-
}
|
|
553
|
+
},
|
|
554
|
+
},
|
|
512
555
|
];
|
|
513
556
|
```
|
|
514
557
|
|
|
@@ -931,7 +974,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
931
974
|
- [core] Remove outdated hooks requirements (#2939) @flaviendelangle
|
|
932
975
|
- [core] Remove test event (#2912) @m4theushw
|
|
933
976
|
- [core] Remove unused `GridSlotComponentProps` interface (#2911) @flaviendelangle
|
|
934
|
-
- [core] Rename '
|
|
977
|
+
- [core] Rename 'UNSTABLE*' prefix to 'unstable*' (#2931) @flaviendelangle
|
|
935
978
|
- [core] Replace usage of `GridRowData` with `GridRowModel` (#2936) @flaviendelangle
|
|
936
979
|
- [core] Revert hardcoded typings (#2907) @DanailH
|
|
937
980
|
- [core] Simplify the CSV export (#2941) @flaviendelangle
|