@mui/x-data-grid 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 (242) hide show
  1. package/CHANGELOG.md +141 -63
  2. package/DataGrid/DataGrid.js +1 -1
  3. package/DataGrid/useDataGridComponent.js +3 -1
  4. package/LICENSE +21 -0
  5. package/README.md +1 -1
  6. package/components/GridRow.d.ts +4 -0
  7. package/components/GridRow.js +49 -23
  8. package/components/base/GridOverlays.js +4 -3
  9. package/components/cell/GridActionsCell.d.ts +5 -1
  10. package/components/cell/GridActionsCell.js +170 -21
  11. package/components/cell/GridActionsCellItem.d.ts +66 -4
  12. package/components/cell/GridActionsCellItem.js +7 -5
  13. package/components/cell/GridCell.d.ts +1 -0
  14. package/components/cell/GridCell.js +28 -7
  15. package/components/cell/GridEditInputCell.js +1 -1
  16. package/components/cell/GridEditSingleSelectCell.js +22 -13
  17. package/components/columnHeaders/GridColumnHeaderItem.js +4 -7
  18. package/components/columnHeaders/GridColumnHeaders.d.ts +0 -1
  19. package/components/columnHeaders/GridColumnHeaders.js +1 -1
  20. package/components/columnSelection/GridCellCheckboxRenderer.d.ts +3 -3
  21. package/components/columnSelection/GridCellCheckboxRenderer.js +20 -3
  22. package/components/panel/GridPanel.js +1 -0
  23. package/components/panel/filterPanel/GridFilterForm.js +14 -10
  24. package/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
  25. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -15
  26. package/components/panel/filterPanel/GridFilterInputValue.js +22 -15
  27. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  28. package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
  29. package/components/virtualization/GridVirtualScroller.js +2 -0
  30. package/components/virtualization/GridVirtualScrollerContent.js +1 -3
  31. package/constants/gridDetailPanelToggleField.d.ts +1 -0
  32. package/constants/gridDetailPanelToggleField.js +2 -0
  33. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +32 -15
  34. package/hooks/core/pipeProcessing/index.d.ts +1 -0
  35. package/hooks/core/pipeProcessing/index.js +2 -1
  36. package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +8 -3
  37. package/hooks/core/pipeProcessing/useGridPipeProcessing.js +53 -19
  38. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +3 -0
  39. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
  40. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +0 -3
  41. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
  42. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +0 -1
  43. package/hooks/features/columnHeaders/useGridColumnHeaders.js +76 -10
  44. package/hooks/features/columns/gridColumnsInterfaces.d.ts +3 -1
  45. package/hooks/features/columns/gridColumnsUtils.d.ts +19 -1
  46. package/hooks/features/columns/gridColumnsUtils.js +61 -8
  47. package/hooks/features/columns/useGridColumnSpanning.d.ts +7 -0
  48. package/hooks/features/columns/useGridColumnSpanning.js +109 -0
  49. package/hooks/features/columns/useGridColumns.js +24 -18
  50. package/hooks/features/dimensions/useGridDimensions.js +3 -3
  51. package/hooks/features/editRows/useGridCellEditing.new.js +18 -10
  52. package/hooks/features/editRows/useGridEditing.new.js +7 -3
  53. package/hooks/features/editRows/useGridRowEditing.new.js +23 -15
  54. package/hooks/features/filter/useGridFilter.js +14 -9
  55. package/hooks/features/focus/useGridFocus.js +19 -9
  56. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -0
  57. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +39 -7
  58. package/hooks/features/rows/gridRowsSelector.d.ts +1 -0
  59. package/hooks/features/rows/gridRowsSelector.js +1 -0
  60. package/hooks/features/rows/gridRowsState.d.ts +4 -0
  61. package/hooks/features/rows/useGridRows.d.ts +2 -2
  62. package/hooks/features/rows/useGridRows.js +5 -4
  63. package/hooks/features/rows/useGridRowsMeta.js +6 -13
  64. package/hooks/features/scroll/useGridScroll.d.ts +2 -0
  65. package/hooks/features/scroll/useGridScroll.js +25 -3
  66. package/hooks/features/selection/useGridSelection.js +3 -2
  67. package/hooks/features/sorting/useGridSorting.js +10 -10
  68. package/hooks/features/virtualization/useGridVirtualScroller.d.ts +7 -0
  69. package/hooks/features/virtualization/useGridVirtualScroller.js +54 -27
  70. package/index.js +1 -1
  71. package/internals/index.d.ts +1 -0
  72. package/internals/index.js +1 -0
  73. package/legacy/DataGrid/DataGrid.js +1 -1
  74. package/legacy/DataGrid/useDataGridComponent.js +3 -1
  75. package/legacy/components/GridRow.js +47 -23
  76. package/legacy/components/base/GridOverlays.js +4 -3
  77. package/legacy/components/cell/GridActionsCell.js +188 -27
  78. package/legacy/components/cell/GridActionsCellItem.js +7 -5
  79. package/legacy/components/cell/GridCell.js +29 -7
  80. package/legacy/components/cell/GridEditInputCell.js +1 -1
  81. package/legacy/components/cell/GridEditSingleSelectCell.js +33 -24
  82. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +4 -7
  83. package/legacy/components/columnHeaders/GridColumnHeaders.js +2 -3
  84. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +21 -3
  85. package/legacy/components/panel/GridPanel.js +1 -0
  86. package/legacy/components/panel/filterPanel/GridFilterForm.js +14 -10
  87. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
  88. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -17
  89. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +22 -17
  90. package/legacy/components/toolbar/GridToolbarDensitySelector.js +1 -1
  91. package/legacy/components/virtualization/GridVirtualScroller.js +2 -0
  92. package/legacy/components/virtualization/GridVirtualScrollerContent.js +1 -3
  93. package/legacy/constants/gridDetailPanelToggleField.js +2 -0
  94. package/legacy/hooks/core/pipeProcessing/index.js +2 -1
  95. package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +60 -24
  96. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
  97. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
  98. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +89 -10
  99. package/legacy/hooks/features/columns/gridColumnsUtils.js +79 -22
  100. package/legacy/hooks/features/columns/useGridColumnSpanning.js +107 -0
  101. package/legacy/hooks/features/columns/useGridColumns.js +24 -18
  102. package/legacy/hooks/features/dimensions/useGridDimensions.js +3 -3
  103. package/legacy/hooks/features/editRows/useGridCellEditing.new.js +14 -8
  104. package/legacy/hooks/features/editRows/useGridEditing.new.js +7 -3
  105. package/legacy/hooks/features/editRows/useGridRowEditing.new.js +32 -24
  106. package/legacy/hooks/features/filter/useGridFilter.js +14 -9
  107. package/legacy/hooks/features/focus/useGridFocus.js +19 -9
  108. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +39 -6
  109. package/legacy/hooks/features/rows/gridRowsSelector.js +3 -0
  110. package/legacy/hooks/features/rows/useGridRows.js +5 -4
  111. package/legacy/hooks/features/rows/useGridRowsMeta.js +6 -13
  112. package/legacy/hooks/features/scroll/useGridScroll.js +25 -3
  113. package/legacy/hooks/features/selection/useGridSelection.js +3 -2
  114. package/legacy/hooks/features/sorting/useGridSorting.js +5 -7
  115. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +65 -37
  116. package/legacy/index.js +1 -1
  117. package/legacy/internals/index.js +1 -0
  118. package/legacy/locales/huHU.js +120 -0
  119. package/legacy/locales/index.js +1 -0
  120. package/legacy/models/api/gridColumnSpanning.js +1 -0
  121. package/legacy/models/events/gridEvents.js +2 -3
  122. package/legacy/models/gridColumnSpanning.js +1 -0
  123. package/locales/huHU.d.ts +2 -0
  124. package/locales/huHU.js +108 -0
  125. package/locales/index.d.ts +1 -0
  126. package/locales/index.js +1 -0
  127. package/models/api/gridApiCommon.d.ts +2 -1
  128. package/models/api/gridColumnSpanning.d.ts +28 -0
  129. package/models/api/gridColumnSpanning.js +1 -0
  130. package/models/api/gridEditingApi.d.ts +49 -3
  131. package/models/colDef/gridColDef.d.ts +5 -0
  132. package/models/events/gridEventLookup.d.ts +3 -8
  133. package/models/events/gridEvents.d.ts +9 -14
  134. package/models/events/gridEvents.js +2 -3
  135. package/models/gridColumnSpanning.d.ts +12 -0
  136. package/models/gridColumnSpanning.js +1 -0
  137. package/models/gridEditRowModel.d.ts +1 -1
  138. package/models/params/gridCellParams.d.ts +12 -2
  139. package/models/params/gridRowParams.d.ts +5 -0
  140. package/models/props/DataGridProps.d.ts +1 -1
  141. package/modern/DataGrid/DataGrid.js +1 -1
  142. package/modern/DataGrid/useDataGridComponent.js +3 -1
  143. package/modern/components/GridRow.js +47 -21
  144. package/modern/components/base/GridOverlays.js +4 -3
  145. package/modern/components/cell/GridActionsCell.js +168 -21
  146. package/modern/components/cell/GridActionsCellItem.js +7 -5
  147. package/modern/components/cell/GridCell.js +28 -7
  148. package/modern/components/cell/GridEditInputCell.js +1 -1
  149. package/modern/components/cell/GridEditSingleSelectCell.js +20 -11
  150. package/modern/components/columnHeaders/GridColumnHeaderItem.js +4 -7
  151. package/modern/components/columnHeaders/GridColumnHeaders.js +1 -1
  152. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +20 -3
  153. package/modern/components/panel/GridPanel.js +1 -0
  154. package/modern/components/panel/filterPanel/GridFilterForm.js +10 -6
  155. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +11 -6
  156. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +20 -13
  157. package/modern/components/panel/filterPanel/GridFilterInputValue.js +20 -13
  158. package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
  159. package/modern/components/virtualization/GridVirtualScroller.js +2 -0
  160. package/modern/components/virtualization/GridVirtualScrollerContent.js +1 -3
  161. package/modern/constants/gridDetailPanelToggleField.js +2 -0
  162. package/modern/hooks/core/pipeProcessing/index.js +2 -1
  163. package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +53 -19
  164. package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
  165. package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
  166. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +76 -10
  167. package/modern/hooks/features/columns/gridColumnsUtils.js +61 -8
  168. package/modern/hooks/features/columns/useGridColumnSpanning.js +107 -0
  169. package/modern/hooks/features/columns/useGridColumns.js +24 -18
  170. package/modern/hooks/features/dimensions/useGridDimensions.js +3 -3
  171. package/modern/hooks/features/editRows/useGridCellEditing.new.js +18 -10
  172. package/modern/hooks/features/editRows/useGridEditing.new.js +7 -3
  173. package/modern/hooks/features/editRows/useGridRowEditing.new.js +23 -15
  174. package/modern/hooks/features/filter/useGridFilter.js +14 -9
  175. package/modern/hooks/features/focus/useGridFocus.js +19 -9
  176. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +37 -7
  177. package/modern/hooks/features/rows/gridRowsSelector.js +1 -0
  178. package/modern/hooks/features/rows/useGridRows.js +5 -4
  179. package/modern/hooks/features/rows/useGridRowsMeta.js +6 -13
  180. package/modern/hooks/features/scroll/useGridScroll.js +23 -3
  181. package/modern/hooks/features/selection/useGridSelection.js +3 -2
  182. package/modern/hooks/features/sorting/useGridSorting.js +10 -10
  183. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +54 -23
  184. package/modern/index.js +1 -1
  185. package/modern/internals/index.js +1 -0
  186. package/modern/locales/huHU.js +108 -0
  187. package/modern/locales/index.js +1 -0
  188. package/modern/models/api/gridColumnSpanning.js +1 -0
  189. package/modern/models/events/gridEvents.js +2 -3
  190. package/modern/models/gridColumnSpanning.js +1 -0
  191. package/node/DataGrid/DataGrid.js +1 -1
  192. package/node/DataGrid/useDataGridComponent.js +4 -1
  193. package/node/components/GridRow.js +50 -23
  194. package/node/components/base/GridOverlays.js +3 -2
  195. package/node/components/cell/GridActionsCell.js +172 -21
  196. package/node/components/cell/GridActionsCellItem.js +7 -4
  197. package/node/components/cell/GridCell.js +28 -7
  198. package/node/components/cell/GridEditInputCell.js +1 -1
  199. package/node/components/cell/GridEditSingleSelectCell.js +23 -13
  200. package/node/components/columnHeaders/GridColumnHeaderItem.js +4 -7
  201. package/node/components/columnHeaders/GridColumnHeaders.js +1 -1
  202. package/node/components/columnSelection/GridCellCheckboxRenderer.js +20 -3
  203. package/node/components/panel/GridPanel.js +1 -0
  204. package/node/components/panel/filterPanel/GridFilterForm.js +15 -10
  205. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +14 -8
  206. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +23 -15
  207. package/node/components/panel/filterPanel/GridFilterInputValue.js +23 -15
  208. package/node/components/toolbar/GridToolbarDensitySelector.js +1 -1
  209. package/node/components/virtualization/GridVirtualScroller.js +2 -0
  210. package/node/components/virtualization/GridVirtualScrollerContent.js +1 -3
  211. package/node/constants/gridDetailPanelToggleField.js +9 -0
  212. package/node/hooks/core/pipeProcessing/index.js +13 -0
  213. package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +51 -20
  214. package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +42 -0
  215. package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -3
  216. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +80 -10
  217. package/node/hooks/features/columns/gridColumnsUtils.js +65 -9
  218. package/node/hooks/features/columns/useGridColumnSpanning.js +130 -0
  219. package/node/hooks/features/columns/useGridColumns.js +23 -17
  220. package/node/hooks/features/dimensions/useGridDimensions.js +3 -3
  221. package/node/hooks/features/editRows/useGridCellEditing.new.js +18 -10
  222. package/node/hooks/features/editRows/useGridEditing.new.js +6 -2
  223. package/node/hooks/features/editRows/useGridRowEditing.new.js +21 -14
  224. package/node/hooks/features/filter/useGridFilter.js +14 -9
  225. package/node/hooks/features/focus/useGridFocus.js +19 -9
  226. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +40 -7
  227. package/node/hooks/features/rows/gridRowsSelector.js +3 -1
  228. package/node/hooks/features/rows/useGridRows.js +5 -4
  229. package/node/hooks/features/rows/useGridRowsMeta.js +6 -14
  230. package/node/hooks/features/scroll/useGridScroll.js +26 -2
  231. package/node/hooks/features/selection/useGridSelection.js +4 -2
  232. package/node/hooks/features/sorting/useGridSorting.js +10 -10
  233. package/node/hooks/features/virtualization/useGridVirtualScroller.js +59 -27
  234. package/node/index.js +1 -1
  235. package/node/internals/index.js +8 -0
  236. package/node/locales/huHU.js +118 -0
  237. package/node/locales/index.js +13 -0
  238. package/node/models/api/gridColumnSpanning.js +5 -0
  239. package/node/models/events/gridEvents.js +2 -3
  240. package/node/models/gridColumnSpanning.js +5 -0
  241. package/package.json +4 -4
  242. package/utils/domUtils.d.ts +2 -2
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
 
@@ -458,7 +458,7 @@ DataGridRaw.propTypes = {
458
458
  * @param {GridEditCellPropsParams} params With all properties from [[GridEditCellPropsParams]].
459
459
  * @param {MuiEvent<React.SyntheticEvent>} event The event that caused this prop to be called.
460
460
  * @param {GridCallbackDetails} details Additional details for this callback.
461
- * @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/api/data-grid/grid-col-def/)
461
+ * @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/x/api/data-grid/grid-col-def/)
462
462
  */
463
463
  onEditCellPropsChange: PropTypes.func,
464
464
 
@@ -24,6 +24,7 @@ import { useGridEvents } from '../hooks/features/events/useGridEvents';
24
24
  import { useGridDimensions } from '../hooks/features/dimensions/useGridDimensions';
25
25
  import { rowsMetaStateInitializer, useGridRowsMeta } from '../hooks/features/rows/useGridRowsMeta';
26
26
  import { useGridStatePersistence } from '../hooks/features/statePersistence/useGridStatePersistence';
27
+ import { useGridColumnSpanning } from '../hooks/features/columns/useGridColumnSpanning';
27
28
  export const useDataGridComponent = props => {
28
29
  var _props$experimentalFe, _props$experimentalFe2;
29
30
 
@@ -55,12 +56,13 @@ export const useDataGridComponent = props => {
55
56
  useGridColumns(apiRef, props);
56
57
  useGridRows(apiRef, props);
57
58
  useGridParamsApi(apiRef);
59
+ useGridColumnSpanning(apiRef);
58
60
  const useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? useGridEditing_new : useGridEditing_old;
59
61
  useGridEditing(apiRef, props);
60
62
  useGridFocus(apiRef, props);
61
- useGridSorting(apiRef, props);
62
63
  useGridPreferencesPanel(apiRef);
63
64
  useGridFilter(apiRef, props);
65
+ useGridSorting(apiRef, props);
64
66
  useGridDensity(apiRef, props);
65
67
  useGridPagination(apiRef, props);
66
68
  useGridRowsMeta(apiRef, props);
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Material-UI SAS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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/)
@@ -6,6 +6,10 @@ import { GridCellIdentifier } from '../hooks/features/focus/gridFocusState';
6
6
  export interface GridRowProps {
7
7
  rowId: GridRowId;
8
8
  selected: boolean;
9
+ /**
10
+ * Index of the row in the whole sorted and filtered dataset.
11
+ * If some rows above have expanded children, this index also take those children into account.
12
+ */
9
13
  index: number;
10
14
  rowHeight: number;
11
15
  containerWidth: number;