@mui/x-data-grid-pro 5.10.0 → 5.12.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 (187) hide show
  1. package/CHANGELOG.md +325 -10
  2. package/DataGridPro/DataGridPro.d.ts +1 -1
  3. package/DataGridPro/DataGridPro.js +58 -25
  4. package/DataGridPro/useDataGridProComponent.js +0 -5
  5. package/DataGridPro/useDataGridProProps.js +5 -12
  6. package/LICENSE +4 -4
  7. package/README.md +4 -5
  8. package/components/DataGridProColumnHeaders.js +2 -2
  9. package/components/DataGridProVirtualScroller.d.ts +1 -1
  10. package/components/DataGridProVirtualScroller.js +13 -8
  11. package/components/GridRowReorderCell.js +7 -7
  12. package/components/GridTreeDataGroupingCell.js +2 -2
  13. package/hooks/features/columnPinning/gridColumnPinningInterface.d.ts +6 -0
  14. package/hooks/features/columnPinning/useGridColumnPinning.js +75 -30
  15. package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +67 -4
  16. package/hooks/features/columnReorder/useGridColumnReorder.d.ts +0 -1
  17. package/hooks/features/columnReorder/useGridColumnReorder.js +7 -8
  18. package/hooks/features/columnResize/useGridColumnResize.d.ts +0 -1
  19. package/hooks/features/columnResize/useGridColumnResize.js +13 -14
  20. package/hooks/features/detailPanel/useGridDetailPanel.js +4 -4
  21. package/hooks/features/detailPanel/useGridDetailPanelCache.js +2 -2
  22. package/hooks/features/index.d.ts +0 -1
  23. package/hooks/features/index.js +0 -1
  24. package/hooks/features/infiniteLoader/useGridInfiniteLoader.d.ts +0 -1
  25. package/hooks/features/infiniteLoader/useGridInfiniteLoader.js +4 -5
  26. package/hooks/features/rowReorder/useGridRowReorder.js +12 -8
  27. package/hooks/features/rowReorder/useGridRowReorderPreProcessors.d.ts +1 -1
  28. package/hooks/features/treeData/useGridTreeData.d.ts +0 -3
  29. package/hooks/features/treeData/useGridTreeData.js +2 -6
  30. package/index.d.ts +4 -1
  31. package/index.js +3 -2
  32. package/internals/index.d.ts +19 -0
  33. package/internals/index.js +17 -0
  34. package/internals/package.json +6 -0
  35. package/legacy/DataGridPro/DataGridPro.js +58 -25
  36. package/legacy/DataGridPro/useDataGridProComponent.js +0 -5
  37. package/legacy/DataGridPro/useDataGridProProps.js +0 -5
  38. package/legacy/components/DataGridProColumnHeaders.js +2 -2
  39. package/legacy/components/DataGridProVirtualScroller.js +13 -8
  40. package/legacy/components/GridRowReorderCell.js +9 -7
  41. package/legacy/components/GridTreeDataGroupingCell.js +2 -2
  42. package/legacy/hooks/features/columnPinning/useGridColumnPinning.js +84 -35
  43. package/legacy/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +70 -5
  44. package/legacy/hooks/features/columnReorder/useGridColumnReorder.js +7 -8
  45. package/legacy/hooks/features/columnResize/useGridColumnResize.js +13 -14
  46. package/legacy/hooks/features/detailPanel/useGridDetailPanel.js +4 -4
  47. package/legacy/hooks/features/detailPanel/useGridDetailPanelCache.js +2 -2
  48. package/legacy/hooks/features/index.js +0 -1
  49. package/legacy/hooks/features/infiniteLoader/useGridInfiniteLoader.js +4 -5
  50. package/legacy/hooks/features/rowReorder/useGridRowReorder.js +12 -8
  51. package/legacy/hooks/features/treeData/useGridTreeData.js +2 -6
  52. package/legacy/index.js +3 -2
  53. package/legacy/internals/index.js +17 -0
  54. package/legacy/models/index.js +1 -3
  55. package/legacy/typeOverloads/index.js +1 -0
  56. package/legacy/utils/index.js +1 -0
  57. package/legacy/utils/releaseInfo.js +1 -1
  58. package/legacy/utils/tree/buildRowTree.js +11 -4
  59. package/legacy/utils/tree/index.js +1 -0
  60. package/models/dataGridProProps.d.ts +5 -31
  61. package/models/gridApiPro.d.ts +2 -2
  62. package/models/gridStatePro.d.ts +1 -3
  63. package/models/index.d.ts +0 -2
  64. package/models/index.js +1 -3
  65. package/modern/DataGridPro/DataGridPro.js +58 -25
  66. package/modern/DataGridPro/useDataGridProComponent.js +0 -5
  67. package/modern/DataGridPro/useDataGridProProps.js +0 -3
  68. package/modern/components/DataGridProColumnHeaders.js +2 -2
  69. package/modern/components/DataGridProVirtualScroller.js +13 -8
  70. package/modern/components/GridRowReorderCell.js +7 -7
  71. package/modern/components/GridTreeDataGroupingCell.js +2 -2
  72. package/modern/hooks/features/columnPinning/useGridColumnPinning.js +75 -30
  73. package/modern/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +67 -4
  74. package/modern/hooks/features/columnReorder/useGridColumnReorder.js +7 -8
  75. package/modern/hooks/features/columnResize/useGridColumnResize.js +13 -14
  76. package/modern/hooks/features/detailPanel/useGridDetailPanel.js +4 -4
  77. package/modern/hooks/features/detailPanel/useGridDetailPanelCache.js +2 -2
  78. package/modern/hooks/features/index.js +0 -1
  79. package/modern/hooks/features/infiniteLoader/useGridInfiniteLoader.js +4 -5
  80. package/modern/hooks/features/rowReorder/useGridRowReorder.js +12 -8
  81. package/modern/hooks/features/treeData/useGridTreeData.js +2 -6
  82. package/modern/index.js +3 -2
  83. package/modern/internals/index.js +17 -0
  84. package/modern/models/index.js +1 -3
  85. package/modern/typeOverloads/index.js +1 -0
  86. package/modern/utils/index.js +1 -0
  87. package/modern/utils/releaseInfo.js +1 -1
  88. package/modern/utils/tree/buildRowTree.js +9 -2
  89. package/modern/utils/tree/index.js +1 -0
  90. package/node/DataGridPro/DataGridPro.js +58 -25
  91. package/node/DataGridPro/useDataGridProComponent.js +0 -7
  92. package/node/DataGridPro/useDataGridProProps.js +5 -12
  93. package/node/components/DataGridProColumnHeaders.js +1 -1
  94. package/node/components/DataGridProVirtualScroller.js +12 -7
  95. package/node/components/GridRowReorderCell.js +6 -6
  96. package/node/components/GridTreeDataGroupingCell.js +1 -1
  97. package/node/hooks/features/columnPinning/useGridColumnPinning.js +74 -26
  98. package/node/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +68 -5
  99. package/node/hooks/features/columnReorder/useGridColumnReorder.js +6 -7
  100. package/node/hooks/features/columnResize/useGridColumnResize.js +12 -13
  101. package/node/hooks/features/detailPanel/useGridDetailPanel.js +3 -3
  102. package/node/hooks/features/detailPanel/useGridDetailPanelCache.js +1 -1
  103. package/node/hooks/features/index.js +0 -13
  104. package/node/hooks/features/infiniteLoader/useGridInfiniteLoader.js +3 -4
  105. package/node/hooks/features/rowReorder/useGridRowReorder.js +11 -7
  106. package/node/hooks/features/treeData/useGridTreeData.js +1 -4
  107. package/node/index.js +16 -2
  108. package/node/internals/index.js +193 -0
  109. package/node/models/index.js +0 -13
  110. package/node/typeOverloads/index.js +18 -0
  111. package/node/utils/index.js +18 -0
  112. package/node/utils/releaseInfo.js +1 -1
  113. package/node/utils/tree/buildRowTree.js +12 -2
  114. package/node/utils/tree/index.js +13 -0
  115. package/package.json +8 -7
  116. package/typeOverloads/index.d.ts +1 -0
  117. package/typeOverloads/index.js +1 -0
  118. package/typeOverloads/modules.d.ts +25 -14
  119. package/typeOverloads/package.json +6 -0
  120. package/utils/index.d.ts +1 -0
  121. package/utils/index.js +1 -0
  122. package/utils/package.json +6 -0
  123. package/utils/releaseInfo.js +1 -1
  124. package/utils/tree/buildRowTree.d.ts +1 -0
  125. package/utils/tree/buildRowTree.js +9 -2
  126. package/utils/tree/index.d.ts +1 -0
  127. package/utils/tree/index.js +1 -0
  128. package/components/GridGroupingColumnLeafCell.d.ts +0 -4
  129. package/components/GridGroupingColumnLeafCell.js +0 -22
  130. package/components/GridGroupingCriteriaCell.d.ts +0 -7
  131. package/components/GridGroupingCriteriaCell.js +0 -78
  132. package/components/GridRowGroupableColumnMenuItems.d.ts +0 -11
  133. package/components/GridRowGroupableColumnMenuItems.js +0 -63
  134. package/components/GridRowGroupingColumnMenuItems.d.ts +0 -11
  135. package/components/GridRowGroupingColumnMenuItems.js +0 -58
  136. package/hooks/features/rowGrouping/createGroupingColDef.d.ts +0 -43
  137. package/hooks/features/rowGrouping/createGroupingColDef.js +0 -318
  138. package/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +0 -37
  139. package/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +0 -1
  140. package/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +0 -4
  141. package/hooks/features/rowGrouping/gridRowGroupingSelector.js +0 -5
  142. package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +0 -27
  143. package/hooks/features/rowGrouping/gridRowGroupingUtils.js +0 -139
  144. package/hooks/features/rowGrouping/index.d.ts +0 -3
  145. package/hooks/features/rowGrouping/index.js +0 -3
  146. package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +0 -13
  147. package/hooks/features/rowGrouping/useGridRowGrouping.js +0 -202
  148. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +0 -4
  149. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +0 -203
  150. package/legacy/components/GridGroupingColumnLeafCell.js +0 -20
  151. package/legacy/components/GridGroupingCriteriaCell.js +0 -74
  152. package/legacy/components/GridRowGroupableColumnMenuItems.js +0 -61
  153. package/legacy/components/GridRowGroupingColumnMenuItems.js +0 -56
  154. package/legacy/hooks/features/rowGrouping/createGroupingColDef.js +0 -319
  155. package/legacy/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +0 -1
  156. package/legacy/hooks/features/rowGrouping/gridRowGroupingSelector.js +0 -13
  157. package/legacy/hooks/features/rowGrouping/gridRowGroupingUtils.js +0 -147
  158. package/legacy/hooks/features/rowGrouping/index.js +0 -3
  159. package/legacy/hooks/features/rowGrouping/useGridRowGrouping.js +0 -208
  160. package/legacy/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +0 -217
  161. package/legacy/models/gridGroupingValueGetterParams.js +0 -1
  162. package/models/gridGroupingValueGetterParams.d.ts +0 -31
  163. package/models/gridGroupingValueGetterParams.js +0 -1
  164. package/modern/components/GridGroupingColumnLeafCell.js +0 -20
  165. package/modern/components/GridGroupingCriteriaCell.js +0 -76
  166. package/modern/components/GridRowGroupableColumnMenuItems.js +0 -61
  167. package/modern/components/GridRowGroupingColumnMenuItems.js +0 -56
  168. package/modern/hooks/features/rowGrouping/createGroupingColDef.js +0 -302
  169. package/modern/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +0 -1
  170. package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.js +0 -5
  171. package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +0 -137
  172. package/modern/hooks/features/rowGrouping/index.js +0 -3
  173. package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +0 -194
  174. package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +0 -203
  175. package/modern/models/gridGroupingValueGetterParams.js +0 -1
  176. package/node/components/GridGroupingColumnLeafCell.js +0 -38
  177. package/node/components/GridGroupingCriteriaCell.js +0 -99
  178. package/node/components/GridRowGroupableColumnMenuItems.js +0 -82
  179. package/node/components/GridRowGroupingColumnMenuItems.js +0 -78
  180. package/node/hooks/features/rowGrouping/createGroupingColDef.js +0 -341
  181. package/node/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +0 -5
  182. package/node/hooks/features/rowGrouping/gridRowGroupingSelector.js +0 -18
  183. package/node/hooks/features/rowGrouping/gridRowGroupingUtils.js +0 -172
  184. package/node/hooks/features/rowGrouping/index.js +0 -51
  185. package/node/hooks/features/rowGrouping/useGridRowGrouping.js +0 -230
  186. package/node/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +0 -227
  187. package/node/models/gridGroupingValueGetterParams.js +0 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,321 @@
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.12.0
7
+
8
+ _May 31, 2022_
9
+
10
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Introduce support for [dynamic row height](https://mui.com/x/react-data-grid/rows/#dynamic-row-height) (#4859) @m4theushw
13
+
14
+ <img src="https://user-images.githubusercontent.com/42154031/171183167-718d7bcd-ec0f-459e-97fe-0f650abb4a99.gif" width="800">
15
+
16
+ - ⚠️ Remove deprecated row grouping feature from `@mui/x-data-grid-pro`
17
+
18
+ Row grouping is available through the `@mui/x-data-grid-premium` package - see [Premium plan release blogpost](https://mui.com/blog/premium-plan-release/).
19
+
20
+ - 🐞 Bug fixes and improvements
21
+
22
+ ### `@mui/x-data-grid@v5.12.0` / `@mui/x-data-grid-pro@v5.12.0` / `@mui/x-data-grid-premium@v5.12.0`
23
+
24
+ - [DataGrid] Support dynamic row height (#4859) @m4theushw
25
+ - [DataGrid] Add `onMenuOpen` and `onMenuClose` props (#4825) @DanailH
26
+ - [DataGrid] Add generics to `GridActionsColDef` to match `GridColDef` (#4982) @subvertallchris
27
+ - [DataGrid] Disable drag event handlers when row or column reorder are disabled (#4857) @DanailH
28
+ - [DataGrid] Allow other attempts to stop edit mode if the first failed (#5016) @m4theushw
29
+ - [DataGrid] Better reflect the dependency on Material UI (#4795) @oliviertassinari
30
+ - [DataGrid] Add an id to the filter item created when opening the filter panel (#5014) @flaviendelangle
31
+ - [DataGrid] Use column visibility model on Hide All / Show All when enabled (#5050) @flaviendelangle
32
+ - [DataGridPro] Unpin columns back to original position (#4512) @m4theushw
33
+ - [DataGridPro] Remove experimental row grouping from Pro plan (#4949) @flaviendelangle
34
+ - [DataGridPro] Allow to scroll detail panel content if it overflows the panel (#4979) @cherniavskii
35
+ - [DataGridPro] Do not call `setRowIndex` when dragging a column over a row (#4987) @flaviendelangle
36
+ - [l10n] Add Norwegian (Bokmål) (nb-NO) locale (#5001) @spiftire
37
+ - [l10n] Add Turkish (tr-TR) locale (#5026) @Rassilion
38
+
39
+ ### `@mui/x-date-pickers@5.0.0-alpha.5` / `@mui/x-date-pickers-pro@5.0.0-alpha.5`
40
+
41
+ #### Breaking changes
42
+
43
+ - [pickers] Restructure props in `MonthPicker` / `YearPicker` and `DayPicker` (#4814) @flaviendelangle
44
+
45
+ The props of `MonthPicker` / `YearPicker` and `DayPicker` have been reworked to make them more consistent for a standalone usage (#4814) @flaviendelangle
46
+
47
+ **MonthPicker**: The prop `onMonthChange` has been removed, you can use `onChange` instead since every change is a month change
48
+
49
+ **YearPicker**: The prop `onYearPicker` has been removed, you can use `onChange` instead since every change is a year change
50
+
51
+ **DayPicker**: The prop `isDateDisabled` has been removed, you can now use the same validation props as for the other components (`maxDate`, `minDate`, `shouldDisableDate`, `disableFuture` and `disablePast`)
52
+
53
+ #### Changes
54
+
55
+ - [pickers] Add German (de-DE) translations (#4974) @felixh10r
56
+ - [pickers] Support action bar on static pickers and improve typing (#5015) @flaviendelangle
57
+
58
+ ### Docs
59
+
60
+ - [docs] Add docs sections / pages for upcoming features on pickers (#4603) @flaviendelangle
61
+ - [docs] Add docs for filter panel components (#4919) @m4theushw
62
+ - [docs] Explain how to manage focus with `renderCell` (#4254) @alexfauquette
63
+ - [docs] Fix broken links to GitHub source (#5003) @Edwardveb
64
+ - [docs] Fix navigation links (#4956) @oliviertassinari
65
+ - [docs] Fix typo on rows docs (#4952) @jamesRadicl
66
+ - [docs] New WAI-ARIA guidelines location (#4957) @oliviertassinari
67
+ - [docs] Add "Slots" section to the right nav in the API pages (#4993) @DanailH
68
+ - [docs] Fix docs feedback widget not working (#4905) @cherniavskii
69
+ - [docs] Replace custom notes and warning with callouts (#5008) @flaviendelangle
70
+
71
+ ### Core
72
+
73
+ - [core] Avoid Order ID to refer to GitHub issues/PRs (#5005) @oliviertassinari
74
+ - [core] Improve the workflow for incomplete issues (#5012) @mnajdova
75
+ - [core] Remove dead code on row grouping tree creation (#4945) @flaviendelangle
76
+ - [core] Use new cache api for the row grouping last model tracking (#4980) @flaviendelangle
77
+ - [core] Ensure that PRs have atleast 1 label (#5011) @DanailH
78
+ - [core] Fix trailing-space @oliviertassinari
79
+ - [core] Stop Renovate PR updates when PR is on hold (#5020) @cherniavskii
80
+ - [license] Remove support for UTF-8 (#4893) @oliviertassinari
81
+ - [license] Tweak error messages (#4907) @mbrookes
82
+ - [test] Skip Safari and Firefox on broken tests (#4994) @alexfauquette
83
+ - [test] Make argos screenshots stable (#5061) @m4theushw
84
+
85
+ ## v5.11.1
86
+
87
+ _May 20, 2022_
88
+
89
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
90
+
91
+ - 🌍 Support localization on the date and time picker components (#4517) @alexfauquette
92
+
93
+ Texts can be translated in the pickers components, similar to what can be done in the data grid component. Check the [documentation](https://mui.com/x/react-date-pickers/localization/) for more information.
94
+
95
+ - 📃 Add support for column spanning when exporting to Excel (#4830) @cherniavskii
96
+
97
+ <img src="https://user-images.githubusercontent.com/13808724/167691417-bf6baeb9-d409-4134-acb6-aadaf6434de9.png" width="800">
98
+
99
+ - 🐞 Bugs fixes
100
+
101
+ ### `@mui/x-data-grid@v5.11.1` / `@mui/x-data-grid-pro@v5.11.1` / `@mui/x-data-grid-premium@v5.11.1`
102
+
103
+ #### Changes
104
+
105
+ - [DataGrid] Add a CSS class corresponding to current density (#4858) @m4theushw
106
+ - [DataGrid] Execute the pipe-processors in their initialization order (#4913) @flaviendelangle
107
+ - [DataGrid] Fix rendering of the no rows overlay when the `loading` prop is changed (#4910) @m4theushw
108
+ - [DataGridPremium] Add `exceljs` to the dependencies (#4939) @alexfauquette
109
+ - [DataGridPremium] Support column spanning in the Excel export (#4830) @cherniavskii
110
+ - [l10n] Improve Russian (ru-RU) locale (#4864) @arvkonstantin
111
+
112
+ ### `@mui/x-date-pickers@5.0.0-alpha.4` / `@mui/x-date-pickers-pro@5.0.0-alpha.4`
113
+
114
+ #### Breaking changes
115
+
116
+ - The props related to the action bar buttons have been removed (`clearable`, `showTodayButton`, `cancelText`, `okText`)
117
+
118
+ To decide which button must be displayed and in which order, you can now use the `actions` prop of the `actionBar` component slot props.
119
+
120
+ ```jsx
121
+ <DatePicker
122
+ componentsProps={{
123
+ actionBar: {
124
+ // The actions will be the same between desktop and mobile
125
+ actions: ['clear'],
126
+
127
+ // The actions will be different between desktop and mobile
128
+ actions: (variant) => (variant === 'desktop' ? [] : ['clear']),
129
+ },
130
+ }}
131
+ />
132
+ ```
133
+
134
+ The build-in `ActionBar` component supports 4 different actions: `'clear'`, `'cancel'`, `'accept'`, and `'today'`.
135
+ By default, the pickers will render the cancel and accept button on mobile and no action on desktop.
136
+
137
+ If you need other actions, you can provide your own component to the `ActionBar` component slot
138
+
139
+ ```jsx
140
+ <DatePicker components={{ ActionBar: CustomActionBar }} />
141
+ ```
142
+
143
+ #### Changes
144
+
145
+ - [DatePicker] Fix keyboard accessibility for first and last year (#4807) @alexfauquette
146
+ - [pickers] Add component slot for action bar (#4778) @alexfauquette
147
+ - [pickers] Add l10n support (#4517) @alexfauquette
148
+ - [pickers] Close Popper when pressing <kbd>Esc</kbd> inside a modal (#4499) @alexfauquette
149
+ - [pickers] Support class slots on toolbar components (#4855) @flaviendelangle
150
+ - [TimePicker] Fix time validation when current date is `null` (#4867) @flaviendelangle
151
+
152
+ ### Docs
153
+
154
+ - [docs] Add 301 redirect for columns page (#4940) @alexfauquette
155
+ - [docs] Avoid confusion with license key installation (#4891) @oliviertassinari
156
+ - [docs] Complete the instructions for pickers installation in readme (#4852) @alexfauquette
157
+ - [docs] Disable ads on paid-only pages (#4842) @flaviendelangle
158
+ - [docs] Don't redirect to localized doc on deploy preview (#4818) @m4theushw
159
+ - [docs] Limit `LICENSE` file to 80 char per line (#4873) @oliviertassinari
160
+ - [docs] Typo on OrderId @oliviertassinari
161
+ - [docs] Update feature comparison table (#4918) @cherniavskii
162
+
163
+ ### Core
164
+
165
+ - [core] Add new script to generate tree data rows from file tree (#4902) @flaviendelangle
166
+ - [core] Fix code style (#4874) @oliviertassinari
167
+ - [core] Fix React 18 peer dependency (#4908) @oliviertassinari
168
+ - [core] Fix link to the LICENSE file (#4875) @oliviertassinari
169
+ - [core] Fix transitive babel dependency (#4793) @oliviertassinari
170
+ - [core] New pipe processing `rowHydration` (#4896) @flaviendelangle
171
+ - [core] Remove dead code for the docs (#4791) @oliviertassinari
172
+ - [core] Run `yarn prettier` @oliviertassinari
173
+ - [core] Polishes on `CHANGELOG.md` (#4876) @oliviertassinari
174
+ - [core] Simplify rows cache management (#4933) @flaviendelangle
175
+ - [core] Use internal icons for quick filter (#4912) @alexfauquette
176
+
177
+ ## v5.11.0
178
+
179
+ _May 13, 2022_
180
+
181
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
182
+
183
+ - 🚀 **Premium plan release**. We're happy to announce that the Premium plan is [finally out](https://mui.com/blog/premium-plan-release/)! With it, MUI X officially steps up to the next level, supporting the most advanced use cases for UI components.
184
+
185
+ This plan is available through the new `@mui/x-data-grid-premium` package, which contains the row grouping and the Excel export features.
186
+
187
+ If you were already using the row grouping feature, you can upgrade by [installing](https://mui.com/x/react-data-grid/getting-started/#installation) `@mui/x-data-grid-premium` and replace `DataGridPro` with `DataGridPremium`, as follows. Note that the experimental flag is not required anymore to use the row grouping.
188
+
189
+ ```diff
190
+ -import { DataGridPro } from '@mui/x-data-grid-pro';
191
+ +import { DataGridPremium } from '@mui/x-data-grid-premium';
192
+
193
+ -<DataGridPro experimentalFeatures={{ rowGrouping: true }} />
194
+ +<DataGridPremium />
195
+ ```
196
+
197
+ For more information about the revised pricing model please have a look at the [blog post](https://mui.com/blog/premium-plan-release/#the-new-licensing-model).
198
+
199
+ - 👔 **Excel export**. You can find this new Premium feature at: https://mui.com/x/react-data-grid/export/#excel-export.
200
+
201
+ - 🔎 **Quick filtering**. You can now add a quick filtering search bar to your grid. To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar. More information about how to customize the filtering logic is in the [documentation](https://mui.com/x/react-data-grid/filtering/#quick-filter).
202
+
203
+ <img src="https://user-images.githubusercontent.com/13808724/167700105-5a5acc7c-5463-4871-8514-3d09e2f365ae.png" width="724">
204
+
205
+ - 🐞 Bugs fixes
206
+
207
+ ### `@mui/x-data-grid@v5.11.0` / `@mui/x-data-grid-pro@v5.11.0` / `@mui/x-data-grid-premium@v5.11.0`
208
+
209
+ #### Breaking changes
210
+
211
+ - Move row grouping to the premium package (#4223) @flaviendelangle
212
+
213
+ The use of `rowGrouping` in the `@mui/x-data-grid-pro` package is deprecated. The experimental flag will be removed in an upcoming release.
214
+
215
+ #### Changes
216
+
217
+ - [DataGrid] Add TypeScript support to the `sx` prop in inner components (#4743) @lindapaiste
218
+ - [DataGrid] Add props to control cell mode (#4210) @m4theushw
219
+ - [DataGrid] Add quick filtering engine (#4317) @alexfauquette
220
+ - [DataGrid] Check focus validity whenever the rows in state changes (#4683) @flaviendelangle
221
+ - [DataGrid] Fix infinite scroll when dragging column header cell over row cell (#4735) @DjoSmer
222
+ - [DataGrid] Fix scroll jump when using keyboard navigation (#4515) @cherniavskii
223
+ - [DataGrid] Improve sorting accessibility (#4379) @cherniavskii
224
+ - [DataGrid] New `getRowGroupChildren` API method (#4304) @flaviendelangle
225
+ - [DataGrid] Publish `preferencePanelClose` event only once when clicking on another panel button (#4810) @flaviendelangle
226
+ - [DataGrid] Update focused action if the currently focused one is removed (#4694) @m4theushw
227
+ - [DataGrid] Add `onChange` callback to edit components (#4621) @m4theushw
228
+ - [DataGrid] Add `keepNonExistentRowsSelected` prop (#4786) @willsoto
229
+ - [DataGrid] Prevent crash if row is removed with click (#4831) @m4theushw
230
+ - [DataGridPro] Fix detail panel not taking full width (#4610) @cherniavskii
231
+ - [DataGridPremium] Add Excel export (#3981) @alexfauquette
232
+ - [DataGridPremium] Bootstrap `@mui/x-data-grid-premium` (#4223) @flaviendelangle
233
+ - [DataGridPremium] Fix Excel date serialization when row grouping is enabled (#4774) @cherniavskii
234
+ - [l10n] Improve German (de-DE) locale (#4748) @sebastianfrey
235
+ - [l10n] Improve German (de-DE) locale (#4668) @izu-co
236
+
237
+ ### `@mui/x-date-pickers@5.0.0-alpha.3` / `@mui/x-date-pickers-pro@5.0.0-alpha.3`
238
+
239
+ #### Breaking changes
240
+
241
+ - Rework the auto-closing behavior of the pickers (#4408) @flaviendelangle
242
+
243
+ The `disableCloseOnSelect` prop has been replaced by a new `closeOnSelect` prop which has the opposite behavior.
244
+ The default behavior remains the same (close after the last step on desktop but not on mobile).
245
+
246
+ ```diff
247
+ // If you don't want to close after the last step
248
+ -<DatePicker disableCloseOnSelect={false} />
249
+ +<DatePicker closeOnSelect />
250
+
251
+ // If you want to close after the last step
252
+ -<DatePicker disableCloseOnSelect />
253
+ +<DatePicker closeOnSelect={false} />
254
+ ```
255
+
256
+ #### Changes
257
+
258
+ - [DatePicker] Ignore <kbd>Escape</kbd> when the picker is already closed (#4770) @mikewolfd
259
+ - [DatePicker] Make month year order changeable in header (#4695) @gky360
260
+ - [DateRangePicker] Open view on click, <kbd>Enter</kbd> or <kbd>Space</kbd> instead of focus (#4747) @alexfauquette
261
+ - [DateRangePicker] Refactor tests (#4745) @flaviendelangle
262
+ - [DateRangePicker] Remove `orientation` prop (#4665) @m4theushw
263
+ - [DateTimePicker] `Toolbar` should be visible by default on mobile (#4833) @flaviendelangle
264
+ - [MonthPicker] New prop `shouldDisableMonth` (#4708) @someone635
265
+ - [TimePicker] Disable and invalidate date with minutes not matching `minutesStep` (#4726) @flaviendelangle
266
+ - [TimePicker] Don't merge with previous value when new value is not valid (#4847) @flaviendelangle
267
+ - [TimePicker] Refactor `isTimeDisabled` method (#4688) @flaviendelangle
268
+ - [pickers] Add details in invalid mask error (#4501) @alexfauquette
269
+ - [pickers] Add explicit interfaces for components slots and components slots props (#4589) @flaviendelangle
270
+ - [pickers] Add missing `peerDependencies` for `yarn pnp` users (#4763) @nate-summercook
271
+ - [pickers] Add overrides to `PickersArrowSwitcher` (#4672) @m4theushw
272
+ - [pickers] Clean component interfaces and remove non-implemented props (#4758) @flaviendelangle
273
+ - [pickers] Do not apply the current time when no date provided in `DayPicker` (#4649) @flaviendelangle
274
+ - [pickers] Document and refacto the value manager (#4701) @flaviendelangle
275
+ - [pickers] Drop `allowSameDateSelection` prop (#4808) @flaviendelangle
276
+ - [pickers] Enable mask by default when using `ampm=true` (#4731) @alexfauquette
277
+ - [pickers] Fix `disabled` and `readOnly` behavior on calendar and clock (#4645) @alexfauquette
278
+ - [pickers] Invalid character does not delete last digit (#4839) @alexfauquette
279
+ - [pickers] Rename prop `date` into `parsedValue` when it can contain a range (#4736) @flaviendelangle
280
+ - [pickers] Rework `TDate`, `TInputDate`, `TValue` and `TInputValue` generics (#4617) @flaviendelangle
281
+ - [pickers] Rework the date lifecycle in `usePickerState` (#4408) @flaviendelangle
282
+
283
+ ### Docs
284
+
285
+ - [docs] Add `scopePathNames` property to column page (#4811) @flaviendelangle
286
+ - [docs] Add label to each demo (#4667) @m4theushw
287
+ - [docs] Correctly capitalize <kbd>Ctrl</kbd> (#4707) @oliviertassinari
288
+ - [docs] Fix documentation on `ampm` prop (#4846) @alexfauquette
289
+ - [docs] Generate the event documentation from `GridEventLookup` (#4725) @flaviendelangle
290
+ - [docs] Keep columns section expanded when switching between pages (#4816) @cherniavskii
291
+ - [docs] Move `useKeepGroupingColumnsHidden` on `@mui/x-data-grid-premium` (#4319) @flaviendelangle
292
+ - [docs] Remove legacy pages for old URLs (#4575) @m4theushw
293
+ - [docs] Remove remaining pages in `docs/pages/api-docs` folder (#4709) @m4theushw
294
+ - [docs] SEO fixes (#4711) @oliviertassinari
295
+ - [docs] Set type number to movie column year (#4753) @flaviendelangle
296
+ - [docs] Simplify server examples (#4186) @alexfauquette
297
+ - [docs] Small typo (#4670) @flaviendelangle
298
+ - [docs] Split the 'Columns' page (#4600) @flaviendelangle
299
+ - [docs] Stop using `GridEvents` enum in documentation (#4699) @flaviendelangle
300
+ - [docs] Update mono repo to get copy code block (#4691) @siriwatknp
301
+ - [docs] Update the feature table in the Getting Started page of the data grid (#4619) @flaviendelangle
302
+ - [docs] Add demo for Premium (#4750) @m4theushw
303
+
304
+ ### Core
305
+
306
+ - [core] Check if `process` is available (#4193) @m4theushw
307
+ - [core] Fix naming collision (#4853) @alexfauquette
308
+ - [core] Prevent out-of-memory when type-checking in CI (#4697) @flaviendelangle
309
+ - [core] Remove `rowsCache` from state (#4480) @m4theushw
310
+ - [core] Rework `DayPicker` api (#4783) @flaviendelangle
311
+ - [core] Update `x-license-pro` license to handle premium package (#4315) @DanailH
312
+ - [core] Update monorepo & version (#4789) @oliviertassinari
313
+ - [core] Update monorepo (#4772) @flaviendelangle
314
+ - [core] Stop using `GridEvents` enum (#4698, #4696, #4685) @flaviendelangle
315
+ - [core] Update monorepo (#4854) @cherniavskii
316
+ - [license] Allow to limit some packages to a specific license plan (#4651) @flaviendelangle
317
+ - [test] Fix path to detect `DataGrid` tests (#4752) @m4theushw
318
+ - [test] Reset cleanup tracking on Karma tests (#4679) @m4theushw
319
+ - [test] Restore `sinon` sandbox after each `karma` test (#4689) @m4theushw
320
+
6
321
  ## v5.10.0
7
322
 
8
323
  _Apr 25, 2022_
@@ -49,7 +364,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
49
364
 
50
365
  Now the data grid and pickers components support the concurrent mode.
51
366
 
52
- - 🎁 Add support for [Column spanning](https://mui.com/x/react-data-grid/columns/#column-spanning) (#4020) @cherniavskii
367
+ - 🎁 Add support for [Column spanning](https://mui.com/x/react-data-grid/column-spanning/) (#4020) @cherniavskii
53
368
 
54
369
  <img src="https://user-images.githubusercontent.com/13808724/162926746-93bcb180-3c9d-4eb9-afc7-c3908a5c6406.png" width="788">
55
370
 
@@ -672,7 +987,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
672
987
  />
673
988
  ```
674
989
 
675
- See the [documentation](https://mui.com/x/react-data-grid/columns/#column-visibility) for more details.
990
+ See the [documentation](https://mui.com/x/react-data-grid/column-visibility/) for more details.
676
991
 
677
992
  The `hide` property from `GridColDef` still works but has been deprecated.
678
993
 
@@ -828,7 +1143,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
828
1143
 
829
1144
  ### `@mui/x-data-grid@v5.2.0` / `@mui/x-data-grid-pro@v5.2.0`
830
1145
 
831
- - 🚀 Introduce the [column pinning](https://mui.com/x/react-data-grid/columns/#column-pinning) feature (#2946) @m4theushw
1146
+ - 🚀 Introduce the [column pinning](https://mui.com/x/react-data-grid/column-pinning/) feature (#2946) @m4theushw
832
1147
 
833
1148
  <img src="https://user-images.githubusercontent.com/42154031/145425635-b6314fbe-2f1e-4b73-908f-33ee1fda20c7.gif" width="964" height="657">
834
1149
 
@@ -1782,7 +2097,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
1782
2097
  - 📚 Migrate to the new documentation infrastructure and design (#2441) (@DanailH, @m4theushw)
1783
2098
  - 🎁 Add `actions` column type (#2385) @m4theushw
1784
2099
 
1785
- See the documentation for [more details](https://mui.com/x/react-data-grid/columns/#column-types).
2100
+ See the documentation for [more details](https://mui.com/x/react-data-grid/column-definition/#column-types).
1786
2101
 
1787
2102
  - 👁 Allow to disable virtualization with the `disableVirtualization` prop (#2326) @m4theushw
1788
2103
  - 🚀 Introduce the new `isRowSelected` api method (#2523) @flaviendelangle
@@ -2404,11 +2719,11 @@ _July 1, 2021_
2404
2719
  Big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
2405
2720
 
2406
2721
  - 🐞 As a focus of Q2, we have kept fixing bugs
2407
- - 💅 End users are now allowed to copy the selected rows to the clipboard with <kbd>CTRL</kbd> + <kbd>c</kbd> (#1929) @m4theushw
2722
+ - 💅 End users are now allowed to copy the selected rows to the clipboard with <kbd>Ctrl</kbd> + <kbd>c</kbd> (#1929) @m4theushw
2408
2723
  - 🐛 We have fixed the `Select all` checkbox. When triggered, it should only select the filtered rows (#1879) @ZeeshanTamboli
2409
2724
  - ⚡️ We have added a new `singleSelect` column type (#1956) @DanailH
2410
2725
 
2411
- 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).
2726
+ 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/column-definition/#column-types).
2412
2727
 
2413
2728
  ```jsx
2414
2729
  <DataGrid
@@ -2604,7 +2919,7 @@ _June 9, 2021_
2604
2919
  Big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
2605
2920
 
2606
2921
  - 💅 Allow to customize GridToolbarExport's CSV export (#1695) @michallukowski
2607
- - 🐛 Allow to deselect rows with <kbd>CTRL</kbd> + click (#1813) @ZeeshanTamboli
2922
+ - 🐛 Allow to deselect rows with <kbd>Ctrl</kbd> + click (#1813) @ZeeshanTamboli
2608
2923
  - ⚡️ Refactor scroll size detector (#1703) @dtassone
2609
2924
  - 📖 Add [documentation](https://mui.com/x/api/data-grid/) for interfaces and events (#1529) @m4theushw
2610
2925
  - 🐞 Bugfixes
@@ -2631,7 +2946,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
2631
2946
 
2632
2947
  - [DataGrid] Add `valueParser` to parse values entered by the user (#1785) @m4theushw
2633
2948
  - [DataGrid] Allow to customize GridToolbarExport's CSV export (#1695) @michallukowski
2634
- - [DataGrid] Allow to deselect rows with <kbd>CTRL</kbd> + click (#1813) @ZeeshanTamboli
2949
+ - [DataGrid] Allow to deselect rows with <kbd>Ctrl</kbd> + click (#1813) @ZeeshanTamboli
2635
2950
  - [DataGrid] Improve general architecture to better isolate hooks (#1720) @dtassone
2636
2951
  - [DataGrid] Fix cell height after changing grid density (#1819) @DanailH
2637
2952
  - [DataGrid] Fix fluid columns width when available `viewportWidth` < 0 (#1816) @DanailH
@@ -3153,7 +3468,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
3153
3468
  - [DataGrid] Rename `useGridBaseComponentProps` hook to `useGridSlotComponentProps` (#1252) @DanailH
3154
3469
  - [DataGrid] Rename modules (#1292) @DanailH
3155
3470
  - [DataGrid] Rename all events related to column reordering, e.g. `GRID_COL_REORDER_START` -> `GRID_COLUMN_REORDER_START` (#1299) @m4theushw
3156
- - [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
3471
+ - [DataGrid] Methods `onColItemDragStart`, `onColHeaderDragOver`, `onColItemDragOver`, `onColItemDragEnter` removed from the grid API. Prefer listening to [column reordering events](https://mui.com/x/react-data-grid/column-ordering/) (#1299) @m4theushw
3157
3472
  - [DataGrid] Calling `apiRef.current.getColumnHeaderParams` returns a `GridColumnHeaderParams` instead of `GridColParams` (#1299) @m4theushw
3158
3473
  - [DataGrid] Events that follow the pattern `GRID_COLUMN_HEADER_xxx` will be called with a `GridColumnHeaderParams` instead of `GridColParams` (#1299) @m4theushw
3159
3474
  - [DataGrid] The `renderHeader` will be called with a `GridColumnHeaderParams` instead of `GridColParams` (#1299) @m4theushw
@@ -3521,7 +3836,7 @@ _Jan 14, 2021_
3521
3836
  Big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
3522
3837
 
3523
3838
  - 🎛 Add support for Column selector (#837) @DanailH @dtassone.
3524
- 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).
3839
+ The feature can be triggered from the toolbar or the column menu. Check [the documentation](https://mui.com/x/react-data-grid/column-definition/#column-selector).
3525
3840
 
3526
3841
  ![column selector](https://user-images.githubusercontent.com/3165635/104791267-6ff77300-579a-11eb-9338-11a8fde83258.gif)
3527
3842
 
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { GridValidRowModel } from '@mui/x-data-grid';
3
- import { DataGridProProps } from '../models';
3
+ import { DataGridProProps } from '../models/dataGridProProps';
4
4
  interface DataGridProComponent {
5
5
  <R extends GridValidRowModel = any>(props: DataGridProProps<R> & React.RefAttributes<HTMLDivElement>): JSX.Element;
6
6
  propTypes?: any;
@@ -72,6 +72,11 @@ DataGridProRaw.propTypes = {
72
72
  */
73
73
  autoPageSize: PropTypes.bool,
74
74
 
75
+ /**
76
+ * Controls the modes of the cells.
77
+ */
78
+ cellModesModel: PropTypes.object,
79
+
75
80
  /**
76
81
  * If `true`, the grid get a first column with a checkbox that allows to select rows.
77
82
  * @default false
@@ -225,17 +230,11 @@ DataGridProRaw.propTypes = {
225
230
  disableMultipleColumnsSorting: PropTypes.bool,
226
231
 
227
232
  /**
228
- * If `true`, multiple selection using the CTRL or CMD key is disabled.
233
+ * If `true`, multiple selection using the Ctrl or CMD key is disabled.
229
234
  * @default false
230
235
  */
231
236
  disableMultipleSelection: PropTypes.bool,
232
237
 
233
- /**
234
- * If `true`, the row grouping is disabled.
235
- * @default false
236
- */
237
- disableRowGrouping: PropTypes.bool,
238
-
239
238
  /**
240
239
  * If `true`, the selection on click on a row or cell is disabled.
241
240
  * @default false
@@ -271,7 +270,6 @@ DataGridProRaw.propTypes = {
271
270
  experimentalFeatures: PropTypes.shape({
272
271
  newEditingApi: PropTypes.bool,
273
272
  preventCommitWhileValidating: PropTypes.bool,
274
- rowGrouping: PropTypes.bool,
275
273
  warnIfFocusStateIsNotSynced: PropTypes.bool
276
274
  }),
277
275
 
@@ -298,7 +296,9 @@ DataGridProRaw.propTypes = {
298
296
  operatorValue: PropTypes.string,
299
297
  value: PropTypes.any
300
298
  })).isRequired,
301
- linkOperator: PropTypes.oneOf(['and', 'or'])
299
+ linkOperator: PropTypes.oneOf(['and', 'or']),
300
+ quickFilterLogicOperator: PropTypes.oneOf(['and', 'or']),
301
+ quickFilterValues: PropTypes.array
302
302
  }),
303
303
 
304
304
  /**
@@ -323,6 +323,15 @@ DataGridProRaw.propTypes = {
323
323
  */
324
324
  getDetailPanelHeight: PropTypes.func,
325
325
 
326
+ /**
327
+ * Function that returns the estimated height for a row.
328
+ * Only works if dynamic row height is used.
329
+ * Once the row height is measured this value is discarded.
330
+ * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].
331
+ * @returns {number | null} The estimated row height value. If `null` or `undefined` then the default row height, based on the density, is applied.
332
+ */
333
+ getEstimatedRowHeight: PropTypes.func,
334
+
326
335
  /**
327
336
  * Function that applies CSS classes dynamically on rows.
328
337
  * @param {GridRowClassNameParams} params With all properties from [[GridRowClassNameParams]].
@@ -333,7 +342,7 @@ DataGridProRaw.propTypes = {
333
342
  /**
334
343
  * Function that sets the row height per row.
335
344
  * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].
336
- * @returns {GridRowHeightReturnValue} The row height value. If `null` or `undefined` then the default row height is applied.
345
+ * @returns {GridRowHeightReturnValue} The row height value. If `null` or `undefined` then the default row height is applied. If "auto" then the row height is calculated based on the content.
337
346
  */
338
347
  getRowHeight: PropTypes.func,
339
348
 
@@ -430,6 +439,14 @@ DataGridProRaw.propTypes = {
430
439
  */
431
440
  isRowSelectable: PropTypes.func,
432
441
 
442
+ /**
443
+ * If `true`, the selection model will retain selected rows that do not exist.
444
+ * Useful when using server side pagination and row selections need to be retained
445
+ * when changing pages.
446
+ * @default false
447
+ */
448
+ keepNonExistentRowsSelected: PropTypes.bool,
449
+
433
450
  /**
434
451
  * If `true`, a loading overlay is displayed.
435
452
  */
@@ -517,6 +534,13 @@ DataGridProRaw.propTypes = {
517
534
  */
518
535
  onCellKeyDown: PropTypes.func,
519
536
 
537
+ /**
538
+ * Callback fired when the `cellModesModel` prop changes.
539
+ * @param {GridCellModesModel} cellModesModel Object containig which cells are in "edit" mode.
540
+ * @param {GridCallbackDetails} details Additional details for this callback.
541
+ */
542
+ onCellModesModelChange: PropTypes.func,
543
+
520
544
  /**
521
545
  * Callback fired when a click event comes from a column header element.
522
546
  * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
@@ -644,6 +668,22 @@ DataGridProRaw.propTypes = {
644
668
  */
645
669
  onFilterModelChange: PropTypes.func,
646
670
 
671
+ /**
672
+ * Callback fired when the menu is closed.
673
+ * @param {GridMenuParams} params With all properties from [[GridMenuParams]].
674
+ * @param {MuiEvent<{}>} event The event object.
675
+ * @param {GridCallbackDetails} details Additional details for this callback.
676
+ */
677
+ onMenuClose: PropTypes.func,
678
+
679
+ /**
680
+ * Callback fired when the menu is opened.
681
+ * @param {GridMenuParams} params With all properties from [[GridMenuParams]].
682
+ * @param {MuiEvent<{}>} event The event object.
683
+ * @param {GridCallbackDetails} details Additional details for this callback.
684
+ */
685
+ onMenuOpen: PropTypes.func,
686
+
647
687
  /**
648
688
  * Callback fired when the current page has changed.
649
689
  * @param {number} page Index of the page displayed on the Grid.
@@ -734,11 +774,11 @@ DataGridProRaw.propTypes = {
734
774
  onRowEditStop: PropTypes.func,
735
775
 
736
776
  /**
737
- * Callback fired when the row grouping model changes.
738
- * @param {GridRowGroupingModel} model Columns used as grouping criteria.
777
+ * Callback fired when the `rowModesModel` prop changes.
778
+ * @param {GridRowModesModel} rowModesModel Object containig which rows are in "edit" mode.
739
779
  * @param {GridCallbackDetails} details Additional details for this callback.
740
780
  */
741
- onRowGroupingModelChange: PropTypes.func,
781
+ onRowModesModelChange: PropTypes.func,
742
782
 
743
783
  /**
744
784
  * Callback fired when a row is being reordered.
@@ -836,24 +876,17 @@ DataGridProRaw.propTypes = {
836
876
  */
837
877
  rowCount: PropTypes.number,
838
878
 
839
- /**
840
- * If `single`, all column we are grouping by will be represented in the same grouping the same column.
841
- * If `multiple`, each column we are grouping by will be represented in its own column.
842
- * @default 'single'
843
- */
844
- rowGroupingColumnMode: PropTypes.oneOf(['multiple', 'single']),
845
-
846
- /**
847
- * Set the row grouping model of the grid.
848
- */
849
- rowGroupingModel: PropTypes.arrayOf(PropTypes.string),
850
-
851
879
  /**
852
880
  * Set the height in pixel of a row in the grid.
853
881
  * @default 52
854
882
  */
855
883
  rowHeight: PropTypes.number,
856
884
 
885
+ /**
886
+ * Controls the modes of the rows.
887
+ */
888
+ rowModesModel: PropTypes.object,
889
+
857
890
  /**
858
891
  * If `true`, the reordering of rows is enabled.
859
892
  * @default false
@@ -5,8 +5,6 @@ import { useGridColumnReorder, columnReorderStateInitializer } from '../hooks/fe
5
5
  import { useGridColumnResize, columnResizeStateInitializer } from '../hooks/features/columnResize/useGridColumnResize';
6
6
  import { useGridTreeData } from '../hooks/features/treeData/useGridTreeData';
7
7
  import { useGridTreeDataPreProcessors } from '../hooks/features/treeData/useGridTreeDataPreProcessors';
8
- import { useGridRowGrouping, rowGroupingStateInitializer } from '../hooks/features/rowGrouping/useGridRowGrouping';
9
- import { useGridRowGroupingPreProcessors } from '../hooks/features/rowGrouping/useGridRowGroupingPreProcessors';
10
8
  import { useGridColumnPinning, columnPinningStateInitializer } from '../hooks/features/columnPinning/useGridColumnPinning';
11
9
  import { useGridColumnPinningPreProcessors } from '../hooks/features/columnPinning/useGridColumnPinningPreProcessors';
12
10
  import { useGridDetailPanel, detailPanelStateInitializer } from '../hooks/features/detailPanel/useGridDetailPanel';
@@ -24,7 +22,6 @@ export const useDataGridProComponent = (inputApiRef, props) => {
24
22
 
25
23
  useGridSelectionPreProcessors(apiRef, props);
26
24
  useGridRowReorderPreProcessors(apiRef, props);
27
- useGridRowGroupingPreProcessors(apiRef, props);
28
25
  useGridTreeDataPreProcessors(apiRef, props);
29
26
  useGridDetailPanelPreProcessors(apiRef, props); // The column pinning `hydrateColumns` pre-processor must be after every other `hydrateColumns` pre-processors
30
27
  // Because it changes the order of the columns.
@@ -35,7 +32,6 @@ export const useDataGridProComponent = (inputApiRef, props) => {
35
32
  * Register all state initializers here.
36
33
  */
37
34
 
38
- useGridInitializeState(rowGroupingStateInitializer, apiRef, props);
39
35
  useGridInitializeState(selectionStateInitializer, apiRef, props);
40
36
  useGridInitializeState(detailPanelStateInitializer, apiRef, props);
41
37
  useGridInitializeState(columnPinningStateInitializer, apiRef, props);
@@ -52,7 +48,6 @@ export const useDataGridProComponent = (inputApiRef, props) => {
52
48
  useGridInitializeState(paginationStateInitializer, apiRef, props);
53
49
  useGridInitializeState(rowsMetaStateInitializer, apiRef, props);
54
50
  useGridInitializeState(columnMenuStateInitializer, apiRef, props);
55
- useGridRowGrouping(apiRef, props);
56
51
  useGridTreeData(apiRef);
57
52
  useGridKeyboardNavigation(apiRef, props);
58
53
  useGridSelection(apiRef, props);
@@ -11,10 +11,8 @@ export const DATA_GRID_PRO_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PROPS_D
11
11
  treeData: false,
12
12
  defaultGroupingExpansionDepth: 0,
13
13
  disableColumnPinning: false,
14
- disableRowGrouping: false,
15
14
  disableChildrenFiltering: false,
16
15
  disableChildrenSorting: false,
17
- rowGroupingColumnMode: 'single',
18
16
  rowReordering: false,
19
17
  getDetailPanelHeight: () => 500
20
18
  });
@@ -37,14 +35,9 @@ export const useDataGridProProps = inProps => {
37
35
  });
38
36
  return mergedComponents;
39
37
  }, [themedProps.components]);
40
- return React.useMemo(() => {
41
- var _themedProps$experime;
42
-
43
- return _extends({}, DATA_GRID_PRO_PROPS_DEFAULT_VALUES, themedProps, {
44
- disableRowGrouping: themedProps.disableRowGrouping || !((_themedProps$experime = themedProps.experimentalFeatures) != null && _themedProps$experime.rowGrouping),
45
- localeText,
46
- components,
47
- signature: 'DataGridPro'
48
- });
49
- }, [themedProps, localeText, components]);
38
+ return React.useMemo(() => _extends({}, DATA_GRID_PRO_PROPS_DEFAULT_VALUES, themedProps, {
39
+ localeText,
40
+ components,
41
+ signature: 'DataGridPro'
42
+ }), [themedProps, localeText, components]);
50
43
  };
package/LICENSE CHANGED
@@ -2,11 +2,11 @@ Commercial License
2
2
 
3
3
  Copyright (c) 2020 Material-UI SAS
4
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.
5
+ MUI X Pro (https://mui.com/pricing/) is commercial software.
6
+ You must purchase a license and agree to the End User License Agreement
7
+ (EULA: https://mui.com/r/x-license-eula) to be able to use the software.
8
8
 
9
- Commercial licenses can be obtained at https://mui.com/store/items/material-ui-pro/.
9
+ Commercial licenses can be obtained at https://mui.com/r/x-get-license?scope=pro.
10
10
  You are free to install and try the software without a license key as long as it
11
11
  is not used for the development of a feature intended for production use. You can
12
12
  find more details under the "Evaluation (trial) licenses" section of the EULA.