@mui/x-data-grid-pro 5.1.0 → 5.2.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 +87 -2
- package/LICENSE +12 -0
- package/index-cjs.js +2 -2
- package/index-esm.js +2 -2
- package/package.json +6 -6
- package/x-data-grid/src/DataGrid.d.ts +1 -1
- package/x-data-grid/src/DataGridProps.d.ts +1 -1
- package/x-data-grid-pro.d.ts +3904 -3633
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,94 @@
|
|
|
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.2.0
|
|
7
|
+
|
|
8
|
+
_Dec 9, 2021_
|
|
9
|
+
|
|
10
|
+
A big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
### `@mui/x-data-grid@v5.2.0` / `@mui/x-data-grid-pro@v5.2.0`
|
|
13
|
+
|
|
14
|
+
- 🚀 Introduce the [column pinning](https://mui.com/components/data-grid/columns/#column-pinning) feature (#2946) @m4theushw
|
|
15
|
+
|
|
16
|
+
<img src="https://user-images.githubusercontent.com/42154031/145425635-b6314fbe-2f1e-4b73-908f-33ee1fda20c7.gif" width="964" height="657">
|
|
17
|
+
|
|
18
|
+
- 🔥 Add ability to disable export options (#3270) @alexfauquette
|
|
19
|
+
|
|
20
|
+
You can disable either export options by setting `disableToolbarButton` to `true`.
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
<GridToolbarExport csvOptions={{ disableToolbarButton: true }} />
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
<GridToolbarExport printOptions={{ disableToolbarButton: true }} />
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- 🙈 Add a new option to hide the amount of descendant on the grouping cells of the Tree Data (#3368) @flaviendelangle
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
<DataGridPro
|
|
34
|
+
treeData
|
|
35
|
+
rows={rows}
|
|
36
|
+
columns={columns}
|
|
37
|
+
groupingColDef={{ hideDescendantCount }}
|
|
38
|
+
/>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- ⚠️ Deprecate the `getValue` param for the `valueGetter` callback (#3314) @flaviendelangle
|
|
42
|
+
|
|
43
|
+
Instead, you can access directly the row in the params
|
|
44
|
+
|
|
45
|
+
```diff
|
|
46
|
+
-valueGetter: (params) => `${params.getValue(params.id, 'firstName') || ''} ${params.getValue(params.id, 'lastName') || ''}`
|
|
47
|
+
+valueGetter: (params) => `${params.row.firstName || ''} ${params.row.lastName || ''}`
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- 📚 Documentation improvements
|
|
51
|
+
- 🐞 Bugfixes
|
|
52
|
+
|
|
53
|
+
#### Changes
|
|
54
|
+
|
|
55
|
+
- [DataGridPro] Add column pinning (#2946) @m4theushw
|
|
56
|
+
- [DataGridPro] Add `hideDescendantCount` option to Tree Data (#3368) @flaviendelangle
|
|
57
|
+
- [DataGridPro] Do not expand row children with <kbd>Shift</kbd> + Space (#3380) @flaviendelangle
|
|
58
|
+
- [DataGridPro] Pass a list of `fields` to the callback version of `groupingColDef` (#3316) @flaviendelangle
|
|
59
|
+
- [DataGrid] Deprecate the `getValue` param for the `valueGetter` callback (#3314) @flaviendelangle
|
|
60
|
+
- [DataGrid] Add ability to disable export options (#3270) @alexfauquette
|
|
61
|
+
- [DataGrid] Filter value are conserved when possible (#3198) @alexfauquette
|
|
62
|
+
- [DataGrid] Fix `DatePicker` bug by limiting years to 4 digits (#3222) @alexfauquette
|
|
63
|
+
- [DataGrid] Fix column menu position when closing (#3289) @m4theushw
|
|
64
|
+
- [DataGrid] Fix to not crash when a sort item uses a non-existing column (#3224) @flaviendelangle
|
|
65
|
+
|
|
66
|
+
### Core
|
|
67
|
+
|
|
68
|
+
- [core] Add funding field (#3331) @oliviertassinari
|
|
69
|
+
- [core] Fix missing LICENSE file (#3330) @oliviertassinari
|
|
70
|
+
- [core] Fix release month in CHANGELOG (#3367) @m4theushw
|
|
71
|
+
- [core] Fix `yarn prettier` script (#3292) @oliviertassinari
|
|
72
|
+
- [core] Improve tests for Tree Data (#3366) @flaviendelangle
|
|
73
|
+
- [core] Never import directly from the `__modules__` folder in the `x-data-grid-generator` package (#3379) @flaviendelangle
|
|
74
|
+
- [core] Transition to a new StackOverflow tag (#3308) @oliviertassinari
|
|
75
|
+
- [core] Type the `api` param in callback interfaces (#3315) @flaviendelangle
|
|
76
|
+
- [core] Update monorepo (#3370) @flaviendelangle
|
|
77
|
+
- [core] Use pre-processors for sorting and filtering (#3318) @flaviendelangle
|
|
78
|
+
- [test] Replace `useFakeTimers` (#3323) @m4theushw
|
|
79
|
+
|
|
80
|
+
### Docs
|
|
81
|
+
|
|
82
|
+
- [docs] Always use auto-generated `apiRef` documentation (#3266) @flaviendelangle
|
|
83
|
+
- [docs] Avoid 301 links (#3329) @oliviertassinari
|
|
84
|
+
- [docs] Disable the ad when not MIT (#3334) @oliviertassinari
|
|
85
|
+
- [docs] Fix 404 link to Zendesk @oliviertassinari
|
|
86
|
+
- [docs] Fix dead link on the overview page (#3326) @flaviendelangle
|
|
87
|
+
- [docs] Fix double MUI in the title (#3332) @oliviertassinari
|
|
88
|
+
- [docs] Fix duplicate "the" (#3365) @noam-honig
|
|
89
|
+
- [docs] Update branch to deploy docs (#3321) @m4theushw
|
|
90
|
+
|
|
6
91
|
## 5.1.0
|
|
7
92
|
|
|
8
|
-
|
|
93
|
+
_Dec 2, 2021_
|
|
9
94
|
|
|
10
95
|
A big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
11
96
|
|
|
@@ -474,7 +559,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
474
559
|
- [DataGrid] Remove the `state` prop and use the `initialState` prop (#2848) @flaviendelangle
|
|
475
560
|
|
|
476
561
|
Note that `initialState` only allows the `preferencePanel`, `filter.filterModel` and `sort.sortModel` keys.
|
|
477
|
-
To fully control the state, use the
|
|
562
|
+
To fully control the state, use the feature's model prop and change callback (e.g. `filterModel` and `onFilterModelChange`).
|
|
478
563
|
|
|
479
564
|
```diff
|
|
480
565
|
<DataGrid
|
package/LICENSE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Commercial License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Material-UI SAS
|
|
4
|
+
|
|
5
|
+
MUI X Pro (https://mui.com/pricing/) is commercial software. You must purchase
|
|
6
|
+
a license and agree to the End User License Agreement (EULA: https://mui.com/x/license/)
|
|
7
|
+
to be able to use the software.
|
|
8
|
+
|
|
9
|
+
Commercial licenses can be obtained at https://mui.com/store/items/material-ui-pro/.
|
|
10
|
+
You are free to install and try the software without a license key as long as it
|
|
11
|
+
is not used for the development of a feature intended for production use. You can
|
|
12
|
+
find more details under the "Evaluation (trial) licenses" section of the EULA.
|