@mui/x-data-grid-pro 5.8.0 → 5.9.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +141 -63
  2. package/DataGridPro/DataGridPro.js +1 -1
  3. package/DataGridPro/useDataGridProComponent.js +3 -2
  4. package/LICENSE +12 -0
  5. package/README.md +1 -1
  6. package/components/DataGridProColumnHeaders.js +0 -6
  7. package/components/DataGridProVirtualScroller.js +0 -3
  8. package/components/GridDetailPanelToggleCell.js +13 -2
  9. package/components/GridTreeDataGroupingCell.js +13 -2
  10. package/hooks/features/columnResize/useGridColumnResize.js +18 -6
  11. package/hooks/features/detailPanel/useGridDetailPanel.js +10 -2
  12. package/hooks/features/detailPanel/useGridDetailPanelCache.js +1 -1
  13. package/hooks/features/rowGrouping/useGridRowGrouping.js +2 -4
  14. package/hooks/features/treeData/useGridTreeData.js +0 -2
  15. package/index.js +1 -1
  16. package/legacy/DataGridPro/DataGridPro.js +1 -1
  17. package/legacy/DataGridPro/useDataGridProComponent.js +3 -2
  18. package/legacy/components/DataGridProColumnHeaders.js +0 -6
  19. package/legacy/components/DataGridProVirtualScroller.js +0 -3
  20. package/legacy/components/GridDetailPanelToggleCell.js +13 -2
  21. package/legacy/components/GridTreeDataGroupingCell.js +13 -2
  22. package/legacy/hooks/features/columnResize/useGridColumnResize.js +18 -6
  23. package/legacy/hooks/features/detailPanel/useGridDetailPanel.js +10 -2
  24. package/legacy/hooks/features/detailPanel/useGridDetailPanelCache.js +1 -1
  25. package/legacy/hooks/features/rowGrouping/useGridRowGrouping.js +2 -4
  26. package/legacy/hooks/features/treeData/useGridTreeData.js +0 -2
  27. package/legacy/index.js +1 -1
  28. package/legacy/utils/domUtils.js +30 -3
  29. package/legacy/utils/releaseInfo.js +1 -1
  30. package/modern/DataGridPro/DataGridPro.js +1 -1
  31. package/modern/DataGridPro/useDataGridProComponent.js +3 -2
  32. package/modern/components/DataGridProColumnHeaders.js +0 -6
  33. package/modern/components/DataGridProVirtualScroller.js +0 -3
  34. package/modern/components/GridDetailPanelToggleCell.js +13 -2
  35. package/modern/components/GridTreeDataGroupingCell.js +13 -2
  36. package/modern/hooks/features/columnResize/useGridColumnResize.js +18 -6
  37. package/modern/hooks/features/detailPanel/useGridDetailPanel.js +10 -2
  38. package/modern/hooks/features/detailPanel/useGridDetailPanelCache.js +1 -1
  39. package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +2 -4
  40. package/modern/hooks/features/treeData/useGridTreeData.js +0 -2
  41. package/modern/index.js +1 -1
  42. package/modern/utils/domUtils.js +30 -3
  43. package/modern/utils/releaseInfo.js +1 -1
  44. package/node/DataGridPro/DataGridPro.js +1 -1
  45. package/node/DataGridPro/useDataGridProComponent.js +2 -1
  46. package/node/components/DataGridProColumnHeaders.js +0 -6
  47. package/node/components/DataGridProVirtualScroller.js +0 -3
  48. package/node/components/GridDetailPanelToggleCell.js +13 -2
  49. package/node/components/GridTreeDataGroupingCell.js +13 -2
  50. package/node/hooks/features/columnResize/useGridColumnResize.js +18 -6
  51. package/node/hooks/features/detailPanel/useGridDetailPanel.js +10 -2
  52. package/node/hooks/features/detailPanel/useGridDetailPanelCache.js +1 -1
  53. package/node/hooks/features/rowGrouping/useGridRowGrouping.js +2 -4
  54. package/node/hooks/features/treeData/useGridTreeData.js +0 -2
  55. package/node/index.js +1 -1
  56. package/node/utils/domUtils.js +30 -3
  57. package/node/utils/releaseInfo.js +1 -1
  58. package/package.json +7 -7
  59. package/utils/domUtils.d.ts +2 -1
  60. package/utils/domUtils.js +30 -3
  61. package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md CHANGED
@@ -3,38 +3,116 @@
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
+ ## v5.9.0
7
+
8
+ _Apr 14, 2022_
9
+
10
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - ⚡ Update peer dependencies to support React 18 (#4332) @m4theushw
13
+
14
+ Now the data grid and pickers components support the concurrent mode.
15
+
16
+ - 🎁 Add support for [Column spanning](https://mui.com/x/react-data-grid/columns/#column-spanning) (#4020) @cherniavskii
17
+
18
+ <img src="https://user-images.githubusercontent.com/13808724/162926746-93bcb180-3c9d-4eb9-afc7-c3908a5c6406.png" width="788">
19
+
20
+ - 📚 New standalone documentation for MUI X (#4313) @siriwatknp
21
+
22
+ Each MUI product now has its own documentation.
23
+ More information on our [blog post](https://mui.com/blog/docs-restructure-2022/).
24
+
25
+ - 🌍 Add Hungarian (hu-HU) locale (#4458) @x22tri
26
+
27
+ - 🐞 Bug fixes
28
+
29
+ ### `@mui/x-data-grid@v5.9.0` / `@mui/x-data-grid-pro@v5.9.0`
30
+
31
+ - [DataGrid] Add indexes relative to the filtered rows and the current page to the `getRowClassName` and `getRowSpacing` props (#3882) @flaviendelangle
32
+ - [DataGrid] Add React 18 to peer dependencies (#4332) @m4theushw
33
+ - [DataGrid] Add support for column spanning (#4020) @cherniavskii
34
+ - [DataGrid] Apply filtering before sorting (#4359) @flaviendelangle
35
+ - [DataGrid] Enable using non-native Select in filter panel (#4361) @kyeongsoosoo
36
+ - [DataGrid] Fix `api` prop leaking to DOM (#4384) @m4theushw
37
+ - [DataGrid] Fix column dimensions import/export with flex and resizing (#4311) @flaviendelangle
38
+ - [DataGrid] Fix focus after stopping row edit mode with pagination enabled (#4326) @m4theushw
39
+ - [DataGrid] Fix inconsistent overlay when changing the `loading` prop (#4334) @m4theushw
40
+ - [DataGrid] Fix scrollbar grabbing issue in Safari (#4405) @cherniavskii
41
+ - [DataGrid] `GridCellParams.formattedValue` should be nullable (#4376) @flaviendelangle
42
+ - [DataGrid] Improve accessibility of the `actions` column (#4325) @m4theushw
43
+ - [DataGrid] Pass updated row to edit components (#4392) @m4theushw
44
+ - [DataGrid] Prevent column header scroll (#4280) @m4theushw
45
+ - [DataGridPro] Fix toggling detail panel using keyboard (#4409) @cherniavskii
46
+ - [l10n] Add Hungarian (hu-HU) locale (#4458) @x22tri
47
+
48
+ ### `@mui/x-date-pickers@5.0.0-alpha.1` / `@mui/x-date-pickers-pro@5.0.0-alpha.1`
49
+
50
+ - [ClockPicker] Should call `shouldDisableTime` with the hours with meridiem (#4404) @flaviendelangle
51
+ - [MonthPicker] Clicking on a `PickersMonth` button should not trigger the form submit (#4402) @flaviendelangle
52
+ - [TimePicker] Do not update date when updating input in `TimePicker` (#4398) @flaviendelangle
53
+ - [pickers] Add react-dom to pickers peer deps to satisfy react-transition-group (#4411) @CarsonF
54
+ - [pickers] Add `TDate` generic to `CalendarOrClockPicker` component (#4465) @flaviendelangle
55
+ - [pickers] Fix default props behavior on all pickers (#4451) @flaviendelangle
56
+ - [pickers] Export `MuiPickersAdapterContext` (#4367) @flaviendelangle
57
+
58
+ ### Docs
59
+
60
+ - [docs] Avoid redirections (#4365) @oliviertassinari
61
+ - [docs] Fix docs about date adapter (#4386) @alexfauquette
62
+ - [docs] Fix small external links issue (#4436) @oliviertassinari
63
+ - [docs] Fix some links to date picker docs (#4362) @oliviertassinari
64
+ - [docs] Fix wrong URL (#4415) @siriwatknp
65
+ - [docs] Go live with the new URLs (#4313) @siriwatknp
66
+ - [docs] Update the product names to be in sync @oliviertassinari
67
+
68
+ ### Core
69
+
70
+ - [core] Add technical doc for pipe processing and family processing (#4322) @flaviendelangle
71
+ - [core] Don't upgrade CircleCI node (#4457) @m4theushw
72
+ - [core] Fix flaky e2e-website tests in CI (#4136) @cherniavskii
73
+ - [core] Fix license file copying during build (#4462) @flaviendelangle
74
+ - [core] Fix links on v5.8.0 (#4464) @oliviertassinari
75
+ - [core] Fix npm page description mistake (#4364) @oliviertassinari
76
+ - [core] Fix typos and JSDoc (#4406) @flaviendelangle
77
+ - [core] Move away for the event system to trigger pipe processings (#4378) @flaviendelangle
78
+ - [core] Small fixes TS on pickers (#4461) @flaviendelangle
79
+ - [core] Unify tests (#4368) @flaviendelangle
80
+ - [core] Enforce `noImplicitAny` in `docs` folder (#4412) @cherniavskii
81
+
6
82
  ## 5.8.0
7
- <!-- generated comparing v5.7.0..master -->
83
+
8
84
  _Apr 4, 2022_
9
85
 
10
86
  We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
87
 
12
88
  - 🚀 Expose new methods to save and restore the grid state (#4028) @flaviendelangle
13
89
 
14
- The different methods to save and restore the data-grid state are now [documented](mui.com/components/data-grid/state/#save-and-restore-the-state)
90
+ The different methods to save and restore the data-grid state are now [documented](https://mui.com/x/react-data-grid/state/#save-and-restore-the-state).
15
91
 
16
92
  - ⌚️ Move date and time picker components from the lab (#3451) @flaviendelangle
17
93
 
18
- Date and time picker components have been moved to the MUI-X repo.
94
+ Date and time picker components have been moved to the MUI X repository.
19
95
  They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`.
20
- For more information, you can read the [blog article](https://mui.com/blog/lab-pickers-to-mui-x) and the [migration guide](https://mui.com/x/react-date-pickers/migration-lab)
96
+ For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/react-date-pickers/migration-lab/).
21
97
 
22
98
  - 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw
23
99
  - ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
24
100
 
25
101
  You can now strongly type all the objects related to the row and the cell values.
26
102
  Here is an example, you can find out more in the description of #4064.
27
-
103
+
28
104
  ```tsx
29
105
  const rows: Movie[] = [];
30
106
 
31
107
  return (
32
- <DataGrid
108
+ <DataGrid
33
109
  rows={rows}
34
- columns={[{
35
- // typeof params.row => Movie (R)
36
- valueGetter: params => params.row.year,
37
- }]}
110
+ columns={[
111
+ {
112
+ // typeof params.row => Movie (R)
113
+ valueGetter: (params) => params.row.year,
114
+ },
115
+ ]}
38
116
  />
39
117
  );
40
118
  ```
@@ -94,7 +172,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
94
172
  ⚠ Users relying on the old API (legacy) don't need to worry as it will continue to work until v6.
95
173
 
96
174
  The new API also features brand new documentation with more useful demos and guides explaining how to create custom edit components.
97
- Visit the new [documentation](https://mui.com/components/data-grid/editing/) for more information.
175
+ Visit the new [documentation](https://mui.com/x/react-data-grid/editing/) for more information.
98
176
 
99
177
  - 📚 Documentation improvements
100
178
  - 🐞 Bug and typo fixes
@@ -159,7 +237,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
159
237
  <DataGrid getRowSpacing={() => ({ top: 10, bottom: 10 })} />
160
238
  ```
161
239
 
162
- Check the [documentation](https://mui.com/components/data-grid/rows/#row-spacing) for more information.
240
+ Check the [documentation](https://mui.com/x/react-data-grid/rows/#row-spacing) for more information.
163
241
 
164
242
  ### `@mui/x-data-grid@v5.6.1` / `@mui/x-data-grid-pro@v5.6.1`
165
243
 
@@ -226,7 +304,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
226
304
  -const filterableFields = filterableGridColumnsIdsSelector(apiRef);
227
305
  +const lookup = gridFilterableColumnLookupSelector(apiRef);
228
306
  +const filterableFields = gridColumnFieldsSelector(apiRef).filter(field => lookup[field]);
229
-
307
+
230
308
  -const visibleColumnsNumber = visibleGridColumnsLengthSelector(apiRef);
231
309
  +const visibleColumnsNumber = gridVisibleColumnDefinitionsSelector(apiRef).length;
232
310
 
@@ -322,7 +400,7 @@ A big thanks to the 6 contributors who made this release possible. Here are some
322
400
  />
323
401
  ```
324
402
 
325
- Check the [documentation](https://mui.com/components/data-grid/filtering/#customize-the-filter-panel-content) to see all available props.
403
+ Check the [documentation](https://mui.com/x/react-data-grid/filtering/#customize-the-filter-panel-content) to see all available props.
326
404
 
327
405
  - 📚 Documentation improvements
328
406
  - 🐞 Bugfixes
@@ -361,7 +439,7 @@ _Feb 3, 2022_
361
439
 
362
440
  A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
363
441
 
364
- - 🎁 Add support for [master/detail](https://mui.com/components/data-grid/group-pivot/#master-detail) (#3387) @m4theushw
442
+ - 🎁 Add support for [master/detail](https://mui.com/x/react-data-grid/group-pivot/#master-detail) (#3387) @m4theushw
365
443
 
366
444
  <img src="https://user-images.githubusercontent.com/42154031/152379354-47120aac-2b37-4a90-b311-64b4522283b9.gif" width="814">
367
445
 
@@ -413,7 +491,7 @@ _Jan 28, 2022_
413
491
 
414
492
  A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
415
493
 
416
- - 🚣 Introduce [variable row height](https://mui.com/components/data-grid/rows/#variable-row-height) (#438) @DanailH
494
+ - 🚣 Introduce [variable row height](https://mui.com/x/react-data-grid/rows/#variable-row-height) (#438) @DanailH
417
495
 
418
496
  Allows for setting a row-specific height.
419
497
  By default, all rows have the same height, but now you can set the height on a per-row basis.
@@ -422,7 +500,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
422
500
  <DataGrid getRowHeight={({ id }: GridRowHeightParams) => (id % 2 === 0 ? 100 : null)} />
423
501
  ```
424
502
 
425
- - 🎁 Add new CSV export option: [`getRowsToExport`](https://mui.com/components/data-grid/export/#custom-exported-content) (#3687) @flaviendelangle
503
+ - 🎁 Add new CSV export option: [`getRowsToExport`](https://mui.com/x/react-data-grid/export/#custom-exported-content) (#3687) @flaviendelangle
426
504
  - 📚 Documentation improvements
427
505
  - 🐞 Bugfixes
428
506
 
@@ -504,7 +582,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
504
582
  />
505
583
  ```
506
584
 
507
- 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).
585
+ For more details see the [introduction blog post](https://mui.com/blog/introducing-the-row-grouping-feature/) and [documentation](https://mui.com/x/react-data-grid/group-pivot/#row-grouping).
508
586
 
509
587
  - ⚡ Add `is any of` filter operator (#2874) @alexfauquette
510
588
 
@@ -527,7 +605,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
527
605
 
528
606
  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
529
607
 
530
- For more information check the documentation [documentation](https://mui.com/api/data-grid/data-grid/#slots).
608
+ For more information check the documentation [documentation](https://mui.com/x/api/data-grid/data-grid/#slots).
531
609
 
532
610
  - 🔥 Allow to pass `csvOptions` and `printOptions` to `toolbar` component prop (#3623) @flaviendelangle
533
611
 
@@ -558,7 +636,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
558
636
  />
559
637
  ```
560
638
 
561
- See the [documentation](https://mui.com/components/data-grid/columns/#column-visibility) for more details.
639
+ See the [documentation](https://mui.com/x/react-data-grid/columns/#column-visibility) for more details.
562
640
 
563
641
  The `hide` property from `GridColDef` still works but has been deprecated.
564
642
 
@@ -606,7 +684,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
606
684
  - [core] Add language to markdown code block (#3651) @m4theushw
607
685
  - [core] Add typing to the pre-processors methods (#3595) @flaviendelangle
608
686
  - [core] Don't bump peer dependency ranges on dependency updates (#3646) @oliviertassinari
609
- - [core] Rename more instances of Material-UI to MUI (#3525) @oliviertassinari
687
+ - [core] Rename more instances of Material UI to MUI (#3525) @oliviertassinari
610
688
  - [core] Renovate should not try to update node (#3645) @oliviertassinari
611
689
  - [core] Report performance test results on each PR (#3551) @m4theushw
612
690
  - [core] Update monorepo (#3653) @m4theushw
@@ -714,7 +792,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
714
792
 
715
793
  ### `@mui/x-data-grid@v5.2.0` / `@mui/x-data-grid-pro@v5.2.0`
716
794
 
717
- - 🚀 Introduce the [column pinning](https://mui.com/components/data-grid/columns/#column-pinning) feature (#2946) @m4theushw
795
+ - 🚀 Introduce the [column pinning](https://mui.com/x/react-data-grid/columns/#column-pinning) feature (#2946) @m4theushw
718
796
 
719
797
  <img src="https://user-images.githubusercontent.com/42154031/145425635-b6314fbe-2f1e-4b73-908f-33ee1fda20c7.gif" width="964" height="657">
720
798
 
@@ -794,7 +872,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
794
872
 
795
873
  ### `@mui/x-data-grid@v5.1.0` / `@mui/x-data-grid-pro@v5.1.0`
796
874
 
797
- - 🚀 Introduce the [tree data](https://mui.com/components/data-grid/group-pivot/#tree-data) feature (#2725) @flaviendelangle
875
+ - 🚀 Introduce the [tree data](https://mui.com/x/react-data-grid/group-pivot/#tree-data) feature (#2725) @flaviendelangle
798
876
 
799
877
  <img src="https://user-images.githubusercontent.com/42154031/144259216-fc4f90ac-4d8b-4253-bc95-009204349a4c.gif" width="854" height="453" />
800
878
 
@@ -939,8 +1017,8 @@ _Nov 23, 2021_
939
1017
 
940
1018
  🎉 We are excited to introduce [MUI X v5.0.0](https://mui.com/blog/mui-x-v5/) 🎉!
941
1019
 
942
- 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/).
943
- 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).
1020
+ If you want to migrate the DataGrid or DataGridPro from v4 to v5, take a look at the [migration guide](https://mui.com/x/react-data-grid/migration-v4/).
1021
+ 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/x/react-data-grid/migration-v4/#using-mui-x-v5-with-mui-core-v4).
944
1022
 
945
1023
  A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
946
1024
 
@@ -1341,7 +1419,7 @@ A big thanks to the 7 contributors who made this release possible. Here are some
1341
1419
 
1342
1420
  - 🎁 Add the ability to print the grid (#2519) @DanailH
1343
1421
 
1344
- This new feature adds a button to the toolbar to generate a printer-friendly layout. Check the [documentation](https://mui.com/components/data-grid/export/#print) about it.
1422
+ This new feature adds a button to the toolbar to generate a printer-friendly layout. Check the [documentation](https://mui.com/x/react-data-grid/export/#print) about it.
1345
1423
 
1346
1424
  - 💡 Enhance internal code structure
1347
1425
  - ✨ New slots for `row` and `cell` (#2753) @m4theushw
@@ -1366,7 +1444,7 @@ A big thanks to the 7 contributors who made this release possible. Here are some
1366
1444
  - `onRowEnter`
1367
1445
  - `onRowLeave`
1368
1446
 
1369
- For more information, check [this page](https://mui.com/components/data-grid/components/#row). Example:
1447
+ For more information, check [this page](https://mui.com/x/react-data-grid/components/#row). Example:
1370
1448
 
1371
1449
  ```diff
1372
1450
  -<DataGrid onRowOver={handleRowOver} />;
@@ -1668,7 +1746,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
1668
1746
  - 📚 Migrate to the new documentation infrastructure and design (#2441) (@DanailH, @m4theushw)
1669
1747
  - 🎁 Add `actions` column type (#2385) @m4theushw
1670
1748
 
1671
- See the documentation for [more details](https://mui.com/components/data-grid/columns/#column-types).
1749
+ See the documentation for [more details](https://mui.com/x/react-data-grid/columns/#column-types).
1672
1750
 
1673
1751
  - 👁 Allow to disable virtualization with the `disableVirtualization` prop (#2326) @m4theushw
1674
1752
  - 🚀 Introduce the new `isRowSelected` api method (#2523) @flaviendelangle
@@ -1786,14 +1864,14 @@ _Aug 27, 2021_
1786
1864
 
1787
1865
  🎉 This is the first stable release of the data grid component 🎉!
1788
1866
 
1789
- We have been iterating on the component for [18 months](https://github.com/mui/mui-x/commit/705cb0f387b5f3aa056bf40c4183a2342b317447). With the introduction of the [row edit](https://mui.com/components/data-grid/editing/#row-editing) feature, many bug fixes, and polishing of the documentation, we believe the component is ready for a stable release.
1867
+ We have been iterating on the component for [18 months](https://github.com/mui/mui-x/commit/705cb0f387b5f3aa056bf40c4183a2342b317447). With the introduction of the [row edit](https://mui.com/x/react-data-grid/editing/#row-editing) feature, many bug fixes, and polishing of the documentation, we believe the component is ready for a stable release.
1790
1868
 
1791
1869
  The MUI X v4.0.0 release supports [MUI Core](https://github.com/mui/material-ui) v4 and has partial support for v5-beta. With the soon-to-be-released v5 version of the core components, we are moving ongoing work to the v5 release line (Core and X).
1792
1870
  The support for existing projects on MUI v4 won't be a priority going forward. We encourage you to migrate to MUI Core v5-beta and soon MUI X v5-beta. We don't patch, fix, or alter older versions. Using MUI Core v4 with MUI X v5 might lead to extra bundle size and configuration.
1793
1871
 
1794
1872
  A big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
1795
1873
 
1796
- - 🚀 Introduce the [row editing](https://mui.com/components/data-grid/editing/#row-editing) feature (#2098) @m4theushw
1874
+ - 🚀 Introduce the [row editing](https://mui.com/x/react-data-grid/editing/#row-editing) feature (#2098) @m4theushw
1797
1875
 
1798
1876
  <img src="https://user-images.githubusercontent.com/3165635/130665023-3c0730ab-502e-4da1-8bc1-d572427ad2d6.gif" width="851" height="382" />
1799
1877
 
@@ -1804,7 +1882,7 @@ A big thanks to the 6 contributors who made this release possible. Here are some
1804
1882
 
1805
1883
  - ✨ Rename the `@material-ui` npm scope to `@mui` (#2341) @oliviertassinari
1806
1884
 
1807
- This is part of the ongoing rebranding of the project and company. Material-UI is our current official name, however, we are going to change it. It's too long to write, read, and pronounce; and it is too closely associated with Material Design. In the near future, the whole project/company is moving to MUI and https://mui.com/.
1885
+ This is part of the ongoing rebranding of the project and company. Material UI is our current official name, however, we are going to change it. It's too long to write, read, and pronounce; and it is too closely associated with Material Design. In the near future, the whole project/company is moving to MUI and https://mui.com/.
1808
1886
 
1809
1887
  - 💡 The `api` property was removed from the callback params. To access the API, use the `DataGridPro` (#2312) @DanailH
1810
1888
 
@@ -1962,7 +2040,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
1962
2040
  ```
1963
2041
 
1964
2042
  - [XGrid] The `setEditCellProps` API call is not available anymore.
1965
- Use the [controlled editing](https://mui.com/components/data-grid/editing/#controlled-editing) or `setEditRowsModel`.
2043
+ Use the [controlled editing](https://mui.com/x/react-data-grid/editing/#controlled-editing) or `setEditRowsModel`.
1966
2044
 
1967
2045
  ```diff
1968
2046
  -apiRef.current.setEditCellProps({ id, field, props: { ...props, error: true } });
@@ -2048,7 +2126,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
2048
2126
 
2049
2127
  - [DataGrid] Improve controllable pagination (#2099) @flaviendelangle
2050
2128
 
2051
- - The `pageSize` is now a controlled prop. If you set a value, you also need to handle updates with onPageSizeChange. See [the documentation](https://mui.com/components/data-grid/pagination/#page-size).
2129
+ - The `pageSize` is now a controlled prop. If you set a value, you also need to handle updates with onPageSizeChange. See [the documentation](https://mui.com/x/react-data-grid/pagination/#page-size).
2052
2130
  - Change the controllable API signature:
2053
2131
 
2054
2132
  ```diff
@@ -2294,7 +2372,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
2294
2372
  - 🐛 We have fixed the `Select all` checkbox. When triggered, it should only select the filtered rows (#1879) @ZeeshanTamboli
2295
2373
  - ⚡️ We have added a new `singleSelect` column type (#1956) @DanailH
2296
2374
 
2297
- Using the column `type: 'singleSelect'` defaults to `Select` component when the cell is in `edit` mode. You can find the documentation [following this link](https://mui.com/components/data-grid/columns/#column-types).
2375
+ Using the column `type: 'singleSelect'` defaults to `Select` component when the cell is in `edit` mode. You can find the documentation [following this link](https://mui.com/x/react-data-grid/columns/#column-types).
2298
2376
 
2299
2377
  ```jsx
2300
2378
  <DataGrid
@@ -2380,7 +2458,7 @@ Big thanks to the 10 contributors who made this release possible. Here are some
2380
2458
  - ⚡️ Components that use portals, like `Select` and `Autocomplete`, can now be used in the cell editing (#1772) @m4theushw
2381
2459
  - 📃 Apply the `valueFormatter` to the CSV exporting (#1922) @DanailH
2382
2460
  - 💅 Rename CSS classes to match the convention of the core components (#1872) @DanailH
2383
- - 🌎 Isolate translations from Material-UI Core and Material-UI X (#1913) @DanailH
2461
+ - 🌎 Isolate translations from MUI Core and MUI X (#1913) @DanailH
2384
2462
  - 🚀 Improve performance when finding column indexes and updating rows (#1903, #1923) @Janpot @N2D4
2385
2463
  - 🐞 Bugfixes
2386
2464
 
@@ -2389,7 +2467,7 @@ Big thanks to the 10 contributors who made this release possible. Here are some
2389
2467
  #### Breaking changes
2390
2468
 
2391
2469
  - [DataGrid] The `onEditCellChangeCommitted` prop won't be called with an event when committing changes by clicking outside the cell (#1910) @m4theushw
2392
- - [DataGrid] Translation for Material-UI Core components are no longer included in the Material-UI X translation (#1913) @DanailH
2470
+ - [DataGrid] Translation for MUI Core components are no longer included in the MUI X translation (#1913) @DanailH
2393
2471
 
2394
2472
  ```diff
2395
2473
  import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
@@ -2464,7 +2542,7 @@ Big thanks to the 10 contributors who made this release possible. Here are some
2464
2542
  - [DataGrid] Improve Brazilian Portuguese (pt-BR) locale (#1861) @aline-matos
2465
2543
  - [DataGrid] Improve type of the blur event (#1918) @oliviertassinari
2466
2544
  - [DataGrid] Improve updateRows performance (#1923) @N2D4
2467
- - [DataGrid] Include Material-UI core component localizations in `localeText` (#1913) @DanailH
2545
+ - [DataGrid] Include MUI Core component localizations in `localeText` (#1913) @DanailH
2468
2546
  - [DataGrid] Make the CSV export respect the `valueFormatter` (#1922) @DanailH
2469
2547
  - [DataGrid] Remove `disableClickEventBubbling` (#1910) @m4theushw
2470
2548
  - [DataGrid] Rename CSS classes according to new convention (#1872) @DanailH
@@ -2492,7 +2570,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
2492
2570
  - 💅 Allow to customize GridToolbarExport's CSV export (#1695) @michallukowski
2493
2571
  - 🐛 Allow to deselect rows with <kbd>CTRL</kbd> + click (#1813) @ZeeshanTamboli
2494
2572
  - ⚡️ Refactor scroll size detector (#1703) @dtassone
2495
- - 📖 Add [documentation](https://mui.com/api/data-grid/) for interfaces and events (#1529) @m4theushw
2573
+ - 📖 Add [documentation](https://mui.com/x/api/data-grid/) for interfaces and events (#1529) @m4theushw
2496
2574
  - 🐞 Bugfixes
2497
2575
 
2498
2576
  ### @material-ui/x-grid@v4.0.0-alpha.31 / @material-ui/data-grid@v4.0.0-alpha.31
@@ -2650,7 +2728,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
2650
2728
 
2651
2729
  - [core] Batch updates of storybook (#1751) @oliviertassinari
2652
2730
  - [core] Help support different documents (#1754) @oliviertassinari
2653
- - [core] Upgrade Material-UI core v5 to latest version (#1763) @ZeeshanTamboli
2731
+ - [core] Upgrade MUI Core v5 to latest version (#1763) @ZeeshanTamboli
2654
2732
  - [test] Reduce flakiness (#1753) @oliviertassinari
2655
2733
  - [test] Remove skip on Edge (#1708) @m4theushw
2656
2734
 
@@ -2664,7 +2742,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
2664
2742
  - 💅 Add `columnHeader`, `row` and `cell` to the `classes` prop (#1660) @DanailH
2665
2743
  - ✅ Add the `isRowSelectable` prop to disable selection on certain rows (#1659) @m4theushw
2666
2744
 
2667
- See the documentation for [more details](https://mui.com/components/data-grid/selection/#disable-selection-on-certain-rows).
2745
+ See the documentation for [more details](https://mui.com/x/react-data-grid/selection/#disable-selection-on-certain-rows).
2668
2746
 
2669
2747
  - ⚡️ Add new icon slot to be displayed when the column is unsorted (#1415) @m4theushw
2670
2748
  - ⚙ Improve consistency of the API to prepare for the first beta release
@@ -2736,7 +2814,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
2736
2814
  - [DataGrid] Add `isRowSelectable` prop (#1659) @m4theushw
2737
2815
  - [DataGrid] Add sort icon for when column is unsorted (#1415) @m4theushw
2738
2816
  - [DataGrid] Fix `id` and `aria-labelledby` attributes on the column menu (#1460) @m4theushw
2739
- - [DataGrid] Fix broken checkbox in Material-UI v5 (#1587) @ZeeshanTamboli
2817
+ - [DataGrid] Fix broken checkbox in Material UI v5 (#1587) @ZeeshanTamboli
2740
2818
  - [DataGrid] Fix CSS classes prefix (#1693) @m4theushw
2741
2819
  - [DataGrid] Fix German (de-DE) locale (#1624) @klinge27
2742
2820
  - [DataGrid] Fix filter with object as value and value getter (#1665) @dtassone
@@ -2912,7 +2990,7 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
2912
2990
 
2913
2991
  - 💄 Release the cell editing feature (#1287) @dtassone
2914
2992
 
2915
- This is the first release of the Cell editing feature. You can find the documentation [following this link](https://mui.com/components/data-grid/editing/#cell-editing). We have spent the last three months working on it.
2993
+ This is the first release of the Cell editing feature. You can find the documentation [following this link](https://mui.com/x/react-data-grid/editing/#cell-editing). We have spent the last three months working on it.
2916
2994
 
2917
2995
  ![cell edit](https://user-images.githubusercontent.com/3165635/115632215-87994700-a307-11eb-91d9-9f5537df0911.gif)
2918
2996
 
@@ -3039,7 +3117,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
3039
3117
  - [DataGrid] Rename `useGridBaseComponentProps` hook to `useGridSlotComponentProps` (#1252) @DanailH
3040
3118
  - [DataGrid] Rename modules (#1292) @DanailH
3041
3119
  - [DataGrid] Rename all events related to column reordering, e.g. `GRID_COL_REORDER_START` -> `GRID_COLUMN_REORDER_START` (#1299) @m4theushw
3042
- - [DataGrid] Methods `onColItemDragStart`, `onColHeaderDragOver`, `onColItemDragOver`, `onColItemDragEnter` removed from the grid API. Prefer listening to [column reordering events](https://mui.com/components/data-grid/columns/#column-reorder) (#1299) @m4theushw
3120
+ - [DataGrid] Methods `onColItemDragStart`, `onColHeaderDragOver`, `onColItemDragOver`, `onColItemDragEnter` removed from the grid API. Prefer listening to [column reordering events](https://mui.com/x/react-data-grid/columns/#column-reorder) (#1299) @m4theushw
3043
3121
  - [DataGrid] Calling `apiRef.current.getColumnHeaderParams` returns a `GridColumnHeaderParams` instead of `GridColParams` (#1299) @m4theushw
3044
3122
  - [DataGrid] Events that follow the pattern `GRID_COLUMN_HEADER_xxx` will be called with a `GridColumnHeaderParams` instead of `GridColParams` (#1299) @m4theushw
3045
3123
  - [DataGrid] The `renderHeader` will be called with a `GridColumnHeaderParams` instead of `GridColParams` (#1299) @m4theushw
@@ -3065,7 +3143,7 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
3065
3143
  - 🎁 Add `onRowsScrollEnd` to support infinite loading (#1199) @DanailH
3066
3144
  This is an XGrid feature. Provides the ability to tap into the `onRowsScrollEnd` which is called when the scroll reaches the bottom of the grid viewport allowing developers to load additional data. It can be used with a combination of `scrollBottomThreshold` to control the area in which the `onRowsScrollEnd` is called.
3067
3145
 
3068
- See the documentation for [more details](https://mui.com/components/data-grid/rows/#infinite-loading).
3146
+ See the documentation for [more details](https://mui.com/x/react-data-grid/rows/#infinite-loading).
3069
3147
 
3070
3148
  - 🕹 Provide the ability to sort by multiple columns using Shift+click (#1203) @dtassone
3071
3149
  - 🇵🇱 Added pl-PL locale (#1117) @LarsKumbier
@@ -3137,7 +3215,7 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
3137
3215
  - 🎁 Add support for CSV export (#1030) @DanailH.
3138
3216
  This is the first iteration of the feature. You can either render the `GridToolbarExport` component in the toolbar or use the apiRef `exportDataAsCsv`/`getDataAsCsv` methods.
3139
3217
 
3140
- See the documentation for [more details](https://mui.com/components/data-grid/export/#csv-export).
3218
+ See the documentation for [more details](https://mui.com/x/react-data-grid/export/#csv-export).
3141
3219
 
3142
3220
  - 🌏 Improve the support for custom locales (#1096, #1079, #1109, #1077)
3143
3221
  - ♿️ Fix a couple of accessibility issues with the popups (#1105, #1102)
@@ -3146,8 +3224,8 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
3146
3224
 
3147
3225
  #### Breaking changes
3148
3226
 
3149
- - [DataGrid] Prefix all public API to fit into the global Material-UI namespace (#1069) @DanailH
3150
- This change gets the data grid one step closer to a stable release. It allows the data grid to fit into the global namespace of Material-UI. All the exported modules should have a unique name. It allows the search features, in Google, in the docs, and in the codebase to work effectively and efficiently.
3227
+ - [DataGrid] Prefix all public API to fit into the global Material UI namespace (#1069) @DanailH
3228
+ This change gets the data grid one step closer to a stable release. It allows the data grid to fit into the global namespace of Material UI. All the exported modules should have a unique name. It allows the search features, in Google, in the docs, and in the codebase to work effectively and efficiently.
3151
3229
 
3152
3230
  For the mirgration, prefixing a broken import with "grid" is often enough. In the case it's not working, head to the pull request's description. It [details all the changes](https://github.com/mui/mui-x/pull/1069).
3153
3231
 
@@ -3188,9 +3266,9 @@ _Feb 17, 2021_
3188
3266
  Big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
3189
3267
 
3190
3268
  - 📍 Add support for default locales (#983) @DanailH
3191
- We have built the infrastructure to support around 100 [default locales](https://mui.com/components/data-grid/localization/#supported-locales). If you have localized the data grid in your application. Please do consider contributing new translations back to Material-UI by opening a pull request.
3269
+ We have built the infrastructure to support around 100 [default locales](https://mui.com/x/react-data-grid/localization/#supported-locales). If you have localized the data grid in your application. Please do consider contributing new translations back to Material UI by opening a pull request.
3192
3270
  - 🎁 Add new `selectionModel` prop (#986) @dtassone
3193
- The prop can be used to control the selected rows in the data grid. [See the docs](https://mui.com/components/data-grid/selection/#controlled-selection).
3271
+ The prop can be used to control the selected rows in the data grid. [See the docs](https://mui.com/x/react-data-grid/selection/#controlled-selection).
3194
3272
  - 💅 Add support for default props from theme (#1019) @DanailH
3195
3273
  - 🙌 Fix scrollbar size on windows (#1061) @dtassone
3196
3274
  - 🐛 Polish existing features, fix 9 issues.
@@ -3229,7 +3307,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
3229
3307
  ```
3230
3308
 
3231
3309
  - [DataGrid] Change page index base, from 1 to 0. (#1021) @dtassone
3232
- This change is done for consistency with `TablePagination` and JavaScript arrays that are 0-based. Material-UI still uses a 1-base page for the `Pagination` component that matches the URL's query.
3310
+ This change is done for consistency with `TablePagination` and JavaScript arrays that are 0-based. Material UI still uses a 1-base page for the `Pagination` component that matches the URL's query.
3233
3311
 
3234
3312
  ```diff
3235
3313
  -const [page, setPage] = React.useState(1);
@@ -3319,9 +3397,9 @@ _Jan 26, 2021_
3319
3397
 
3320
3398
  Big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
3321
3399
 
3322
- - 🎁 Add support for Material-UI v5-alpha (#855) @DanailH.
3323
- The data grid supports Material-UI v4 and v5. We aim to retain the support for v4 as long as v5 hasn't reached the beta phase.
3324
- - 💅 Update the customization API to be closer to Material-UI v5.
3400
+ - 🎁 Add support for Material UI v5-alpha (#855) @DanailH.
3401
+ The data grid supports Material UI v4 and v5. We aim to retain the support for v4 as long as v5 hasn't reached the beta phase.
3402
+ - 💅 Update the customization API to be closer to Material UI v5.
3325
3403
  The data grid accepts two props: `components` and `componentsProps`.
3326
3404
  The first prop allows to swapping specific components used in slots the grid, like the checkboxes.
3327
3405
  The second one allows providing extra props to each slot. It avoids the need for using the React context to access information from outside the data grid.
@@ -3334,9 +3412,9 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
3334
3412
 
3335
3413
  #### Breaking changes
3336
3414
 
3337
- - [DataGrid] Implement customization pattern of Material-UI v5 (#851, #879) @dtassone
3415
+ - [DataGrid] Implement customization pattern of Material UI v5 (#851, #879) @dtassone
3338
3416
 
3339
- - Capitalize the keys of the `components` prop. This change aims to bring consistency with the customization pattern of Material-UI v5:
3417
+ - Capitalize the keys of the `components` prop. This change aims to bring consistency with the customization pattern of Material UI v5:
3340
3418
 
3341
3419
  ```diff
3342
3420
  <DataGrid
@@ -3347,7 +3425,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
3347
3425
  />
3348
3426
  ```
3349
3427
 
3350
- - Move all the icon components overrides in the `components` prop. And added the suffix 'Icon' on each icon component. This change aims to bring consistency with the customization pattern of Material-UI v5:
3428
+ - Move all the icon components overrides in the `components` prop. And added the suffix 'Icon' on each icon component. This change aims to bring consistency with the customization pattern of Material UI v5:
3351
3429
 
3352
3430
  ```diff
3353
3431
  <DataGrid
@@ -3383,7 +3461,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
3383
3461
  #### Changes
3384
3462
 
3385
3463
  - [DataGrid] Add customisation on panels (#890) @dtassone
3386
- - [DataGrid] Add support for Material-UI v5-alpha (#855) @DanailH
3464
+ - [DataGrid] Add support for Material UI v5-alpha (#855) @DanailH
3387
3465
  - [DataGrid] Fix footer count not shown on small screen (#899) @mnajdova
3388
3466
  - [DataGrid] Fix column selector crash when hiding columns (#875) @DanailH
3389
3467
  - [DataGrid] Fix <kbd>Shift</kbd> + <kbd>Space</kbd> keyboard regression to select row (#897) @dtassone
@@ -3407,7 +3485,7 @@ _Jan 14, 2021_
3407
3485
  Big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
3408
3486
 
3409
3487
  - 🎛 Add support for Column selector (#837) @DanailH @dtassone.
3410
- The feature can be triggered from the toolbar or the column menu. Check [the documentation](https://mui.com/components/data-grid/columns/#column-selector).
3488
+ The feature can be triggered from the toolbar or the column menu. Check [the documentation](https://mui.com/x/react-data-grid/columns/#column-selector).
3411
3489
 
3412
3490
  ![column selector](https://user-images.githubusercontent.com/3165635/104791267-6ff77300-579a-11eb-9338-11a8fde83258.gif)
3413
3491
 
@@ -3462,11 +3540,11 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
3462
3540
  - 🌎 Add support for internationalization (#718) @DanailH
3463
3541
 
3464
3542
  You can use the `localeText` prop to provide custom wordings in the data grid.
3465
- Check the documentation for [a demo](https://mui.com/components/data-grid/localization/#translation-keys).
3543
+ Check the documentation for [a demo](https://mui.com/x/react-data-grid/localization/#translation-keys).
3466
3544
 
3467
3545
  - 📚 Start documenting the filtering feature 🧪 (#754) @dtassone
3468
3546
 
3469
- The work in progress filtering feature and documentation can be found following [this link](https://mui.com/components/data-grid/filtering/). Early feedback are welcome.
3547
+ The work in progress filtering feature and documentation can be found following [this link](https://mui.com/x/react-data-grid/filtering/). Early feedback are welcome.
3470
3548
 
3471
3549
  ### @material-ui/x-grid@v4.0.0-alpha.14 / @material-ui/data-grid@v4.0.0-alpha.14
3472
3550
 
@@ -3522,7 +3600,7 @@ _Dec 9, 2020_
3522
3600
 
3523
3601
  Big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
3524
3602
 
3525
- - 🔍 Add a new data grid [density selector](https://mui.com/components/data-grid/rendering/#density) feature (#606) @DanailH.
3603
+ - 🔍 Add a new data grid [density selector](https://mui.com/x/react-data-grid/rendering/#density) feature (#606) @DanailH.
3526
3604
  - 💄 A first iteration on the data grid's toolbar.
3527
3605
  - 🧪 Continue the iteration on the data grid filtering feature, soon to be released @dtassone.
3528
3606
 
@@ -3609,7 +3687,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
3609
3687
  - [core] Remove gitHead (#669) @oliviertassinari
3610
3688
  - [core] Remove react-select (#658) @dependabot-preview
3611
3689
  - [core] Replace Storybook knobs for args (#601) @tooppaaa
3612
- - [core] Update to Material-UI v4.11.1 (#636) @oliviertassinari
3690
+ - [core] Update to Material UI v4.11.1 (#636) @oliviertassinari
3613
3691
 
3614
3692
  ## [4.0.0-alpha.10](https://github.com/mui/mui-x/compare/v4.0.0-alpha.9...v4.0.0-alpha.10)
3615
3693
 
@@ -3746,7 +3824,7 @@ _Sep 17, 2020_
3746
3824
 
3747
3825
  This is the first public alpha release of the component after 6 months of development since the initial commit (March 15th 2020).
3748
3826
  `@material-ui/data-grid` is licensed under MIT while `@material-ui/x-grid` is licensed under a commercial license.
3749
- You can find the documentation at this address: https://mui.com/components/data-grid/.
3827
+ You can find the documentation at this address: https://mui.com/x/react-data-grid/.
3750
3828
 
3751
3829
  ### @material-ui/x-grid@v4.0.0-alpha.1 / @material-ui/data-grid@v4.0.0-alpha.1
3752
3830
 
@@ -618,7 +618,7 @@ DataGridProRaw.propTypes = {
618
618
  * @param {GridEditCellPropsParams} params With all properties from [[GridEditCellPropsParams]].
619
619
  * @param {MuiEvent<React.SyntheticEvent>} event The event that caused this prop to be called.
620
620
  * @param {GridCallbackDetails} details Additional details for this callback.
621
- * @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/api/data-grid/grid-col-def/)
621
+ * @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/x/api/data-grid/grid-col-def/)
622
622
  */
623
623
  onEditCellPropsChange: PropTypes.func,
624
624
 
@@ -1,4 +1,4 @@
1
- import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing_new, useGridEditing_old, editingStateInitializer_old, editingStateInitializer_new, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, useGridDimensions, useGridStatePersistence, useGridSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, selectionStateInitializer } from '@mui/x-data-grid/internals';
1
+ import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing_new, useGridEditing_old, editingStateInitializer_old, editingStateInitializer_new, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, useGridDimensions, useGridStatePersistence, useGridSelectionPreProcessors, useGridColumnSpanning, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, selectionStateInitializer } from '@mui/x-data-grid/internals';
2
2
  // Pro-only features
3
3
  import { useGridInfiniteLoader } from '../hooks/features/infiniteLoader/useGridInfiniteLoader';
4
4
  import { useGridColumnReorder, columnReorderStateInitializer } from '../hooks/features/columnReorder/useGridColumnReorder';
@@ -58,13 +58,14 @@ export const useDataGridProComponent = (inputApiRef, props) => {
58
58
  useGridColumns(apiRef, props);
59
59
  useGridRows(apiRef, props);
60
60
  useGridParamsApi(apiRef);
61
+ useGridColumnSpanning(apiRef);
61
62
  useGridDetailPanelCache(apiRef, props);
62
63
  const useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? useGridEditing_new : useGridEditing_old;
63
64
  useGridEditing(apiRef, props);
64
65
  useGridFocus(apiRef, props);
65
- useGridSorting(apiRef, props);
66
66
  useGridPreferencesPanel(apiRef);
67
67
  useGridFilter(apiRef, props);
68
+ useGridSorting(apiRef, props);
68
69
  useGridDensity(apiRef, props);
69
70
  useGridColumnReorder(apiRef, props);
70
71
  useGridColumnResize(apiRef, props);
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.
package/README.md CHANGED
@@ -26,4 +26,4 @@ This component has three peer dependencies that you will need to install as well
26
26
 
27
27
  ## Documentation
28
28
 
29
- [The documentation](https://mui.com/components/data-grid/)
29
+ [The documentation](https://mui.com/x/react-data-grid/)
@@ -93,7 +93,6 @@ export const DataGridProColumnHeaders = /*#__PURE__*/React.forwardRef(function D
93
93
  const {
94
94
  isDragging,
95
95
  renderContext,
96
- updateInnerPosition,
97
96
  getRootProps,
98
97
  getInnerProps,
99
98
  getColumns
@@ -107,11 +106,6 @@ export const DataGridProColumnHeaders = /*#__PURE__*/React.forwardRef(function D
107
106
  classes: rootProps.classes
108
107
  };
109
108
  const classes = useUtilityClasses(ownerState);
110
- React.useEffect(() => {
111
- if (renderContext) {
112
- updateInnerPosition(renderContext);
113
- }
114
- }, [renderContext, updateInnerPosition]);
115
109
  const leftRenderContext = renderContext && leftPinnedColumns.length ? _extends({}, renderContext, {
116
110
  firstColumnIndex: 0,
117
111
  lastColumnIndex: leftPinnedColumns.length
@@ -175,9 +175,6 @@ const DataGridProVirtualScroller = /*#__PURE__*/React.forwardRef(function DataGr
175
175
  }, [renderContext, updateRenderZonePosition]);
176
176
  useGridApiEventHandler(apiRef, GridEvents.columnWidthChange, refreshRenderZonePosition);
177
177
  useGridApiEventHandler(apiRef, GridEvents.columnOrderChange, refreshRenderZonePosition);
178
- React.useEffect(() => {
179
- refreshRenderZonePosition();
180
- }, [refreshRenderZonePosition]);
181
178
  const leftRenderContext = renderContext && leftPinnedColumns.length > 0 ? _extends({}, renderContext, {
182
179
  firstColumnIndex: 0,
183
180
  lastColumnIndex: leftPinnedColumns.length