@mui/x-data-grid 6.0.0-alpha.1 → 6.0.0-alpha.10

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 (1151) hide show
  1. package/CHANGELOG.md +1306 -149
  2. package/DataGrid/DataGrid.js +22 -150
  3. package/DataGrid/useDataGridComponent.d.ts +2 -2
  4. package/DataGrid/useDataGridComponent.js +43 -49
  5. package/DataGrid/useDataGridProps.js +8 -9
  6. package/colDef/gridBooleanColDef.js +0 -2
  7. package/colDef/gridBooleanOperators.js +0 -1
  8. package/colDef/gridCheckboxSelectionColDef.js +1 -1
  9. package/colDef/gridDateColDef.js +0 -2
  10. package/colDef/gridDateOperators.js +2 -7
  11. package/colDef/gridNumericOperators.d.ts +1 -5
  12. package/colDef/gridNumericOperators.js +1 -22
  13. package/colDef/gridSingleSelectOperators.d.ts +1 -1
  14. package/colDef/gridSingleSelectOperators.js +0 -12
  15. package/colDef/gridStringColDef.js +1 -1
  16. package/colDef/gridStringOperators.d.ts +1 -1
  17. package/colDef/gridStringOperators.js +0 -6
  18. package/components/DataGridColumnHeaders.js +3 -4
  19. package/components/DataGridVirtualScroller.js +4 -5
  20. package/components/ErrorBoundary.d.ts +0 -1
  21. package/components/ErrorBoundary.js +3 -8
  22. package/components/GridApiContext.js +0 -1
  23. package/components/GridAutoSizer.d.ts +1 -1
  24. package/components/GridAutoSizer.js +16 -31
  25. package/components/GridErrorOverlay.d.ts +8 -0
  26. package/{modern/components/ErrorOverlay.js → components/GridErrorOverlay.js} +6 -8
  27. package/components/GridFooter.js +1 -4
  28. package/components/GridHeader.js +0 -1
  29. package/components/GridPagination.d.ts +2 -2
  30. package/components/GridPagination.js +0 -6
  31. package/components/GridRow.js +56 -94
  32. package/components/GridRowCount.js +6 -11
  33. package/components/GridScrollArea.js +4 -12
  34. package/components/GridSelectedRowCount.js +5 -8
  35. package/components/base/GridBody.js +10 -15
  36. package/components/base/GridErrorHandler.js +5 -9
  37. package/components/base/GridFooterPlaceholder.js +0 -3
  38. package/components/base/GridHeaderPlaceholder.js +0 -1
  39. package/components/base/GridOverlays.js +2 -20
  40. package/components/cell/GridActionsCell.d.ts +5 -5
  41. package/components/cell/GridActionsCell.js +15 -61
  42. package/components/cell/GridActionsCellItem.d.ts +2 -2
  43. package/components/cell/GridActionsCellItem.js +6 -9
  44. package/components/cell/GridBooleanCell.d.ts +5 -4
  45. package/components/cell/GridBooleanCell.js +8 -36
  46. package/components/cell/GridCell.js +32 -59
  47. package/components/cell/GridEditBooleanCell.js +11 -42
  48. package/components/cell/GridEditDateCell.js +12 -50
  49. package/components/cell/GridEditInputCell.js +15 -52
  50. package/components/cell/GridEditSingleSelectCell.js +23 -97
  51. package/components/cell/GridSkeletonCell.js +6 -11
  52. package/components/columnHeaders/ColumnHeaderMenuIcon.js +1 -5
  53. package/components/columnHeaders/GridColumnGroupHeader.d.ts +2 -0
  54. package/components/columnHeaders/GridColumnGroupHeader.js +35 -16
  55. package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -12
  56. package/components/columnHeaders/GridColumnHeaderItem.js +3 -19
  57. package/components/columnHeaders/GridColumnHeaderSeparator.js +5 -13
  58. package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -12
  59. package/components/columnHeaders/GridColumnHeaderTitle.js +4 -11
  60. package/components/columnHeaders/GridColumnHeaders.js +6 -8
  61. package/components/columnHeaders/GridColumnHeadersInner.js +5 -9
  62. package/components/columnHeaders/GridColumnUnsortedIcon.js +3 -4
  63. package/components/columnHeaders/GridGenericColumnHeaderItem.js +25 -29
  64. package/components/columnHeaders/GridIconButtonContainer.js +4 -7
  65. package/components/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
  66. package/components/columnSelection/GridCellCheckboxRenderer.js +20 -53
  67. package/components/columnSelection/GridHeaderCheckbox.js +12 -26
  68. package/components/containers/GridFooterContainer.js +6 -8
  69. package/components/containers/GridMainContainer.js +1 -3
  70. package/components/containers/GridOverlay.js +6 -9
  71. package/components/containers/GridRoot.js +14 -20
  72. package/components/containers/GridRootStyles.js +23 -23
  73. package/components/containers/GridToolbarContainer.js +7 -11
  74. package/components/menu/GridMenu.d.ts +4 -4
  75. package/components/menu/GridMenu.js +14 -25
  76. package/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -4
  77. package/components/menu/columnMenu/GridColumnMenuContainer.js +8 -10
  78. package/components/menu/columnMenu/GridColumnsMenuItem.d.ts +4 -4
  79. package/components/menu/columnMenu/GridColumnsMenuItem.js +2 -6
  80. package/components/menu/columnMenu/GridFilterMenuItem.d.ts +4 -4
  81. package/components/menu/columnMenu/GridFilterMenuItem.js +2 -6
  82. package/components/menu/columnMenu/HideGridColMenuItem.d.ts +4 -4
  83. package/components/menu/columnMenu/HideGridColMenuItem.js +6 -12
  84. package/components/menu/columnMenu/SortGridMenuItems.d.ts +4 -4
  85. package/components/menu/columnMenu/SortGridMenuItems.js +2 -7
  86. package/components/panel/GridColumnsPanel.d.ts +3 -0
  87. package/components/panel/GridColumnsPanel.js +31 -24
  88. package/components/panel/GridPanel.d.ts +3 -6
  89. package/components/panel/GridPanel.js +9 -12
  90. package/components/panel/GridPanelContent.js +4 -9
  91. package/components/panel/GridPanelFooter.js +4 -9
  92. package/components/panel/GridPanelHeader.js +4 -9
  93. package/components/panel/GridPanelWrapper.js +4 -9
  94. package/components/panel/GridPreferencesPanel.js +0 -1
  95. package/components/panel/filterPanel/GridFilterForm.d.ts +12 -0
  96. package/components/panel/filterPanel/GridFilterForm.js +71 -88
  97. package/components/panel/filterPanel/GridFilterInputBoolean.js +6 -8
  98. package/components/panel/filterPanel/GridFilterInputDate.js +12 -19
  99. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +20 -34
  100. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +16 -23
  101. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +15 -26
  102. package/components/panel/filterPanel/GridFilterInputValue.js +17 -29
  103. package/components/panel/filterPanel/GridFilterPanel.d.ts +12 -0
  104. package/components/panel/filterPanel/GridFilterPanel.js +61 -39
  105. package/components/panel/filterPanel/filterPanelUtils.js +0 -2
  106. package/components/toolbar/GridToolbar.js +9 -13
  107. package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
  108. package/components/toolbar/GridToolbarColumnsButton.js +5 -10
  109. package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
  110. package/components/toolbar/GridToolbarDensitySelector.js +6 -18
  111. package/components/toolbar/GridToolbarExport.d.ts +2 -2
  112. package/components/toolbar/GridToolbarExport.js +19 -26
  113. package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
  114. package/components/toolbar/GridToolbarExportContainer.js +5 -17
  115. package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
  116. package/components/toolbar/GridToolbarFilterButton.js +9 -24
  117. package/components/toolbar/GridToolbarQuickFilter.js +9 -17
  118. package/components/virtualization/GridVirtualScroller.js +4 -7
  119. package/components/virtualization/GridVirtualScrollerContent.js +5 -8
  120. package/components/virtualization/GridVirtualScrollerRenderZone.js +4 -7
  121. package/constants/defaultGridSlotsComponents.js +3 -3
  122. package/constants/envConstants.js +1 -0
  123. package/constants/gridClasses.js +1 -1
  124. package/context/GridContextProvider.d.ts +3 -3
  125. package/context/GridContextProvider.js +12 -7
  126. package/context/GridRootPropsContext.js +0 -2
  127. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +12 -13
  128. package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +4 -4
  129. package/hooks/core/pipeProcessing/useGridPipeProcessing.js +11 -18
  130. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +2 -2
  131. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -2
  132. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +2 -2
  133. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -2
  134. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +5 -8
  135. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +2 -2
  136. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +1 -1
  137. package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +4 -4
  138. package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +10 -23
  139. package/hooks/core/useGridApiInitialization.d.ts +2 -2
  140. package/hooks/core/useGridApiInitialization.js +58 -26
  141. package/hooks/core/useGridErrorHandler.js +7 -1
  142. package/hooks/core/useGridInitialization.d.ts +2 -2
  143. package/hooks/core/useGridInitialization.js +9 -9
  144. package/hooks/core/useGridLocaleText.d.ts +2 -2
  145. package/hooks/core/useGridLocaleText.js +1 -2
  146. package/hooks/core/useGridLoggerFactory.d.ts +2 -2
  147. package/hooks/core/useGridLoggerFactory.js +5 -10
  148. package/hooks/core/useGridStateInitialization.d.ts +2 -2
  149. package/hooks/core/useGridStateInitialization.js +15 -23
  150. package/hooks/features/clipboard/useGridClipboard.d.ts +2 -2
  151. package/hooks/features/clipboard/useGridClipboard.js +6 -13
  152. package/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.ts +10 -1
  153. package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +6 -0
  154. package/hooks/features/columnGrouping/gridColumnGroupsSelector.js +27 -2
  155. package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +15 -0
  156. package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +75 -0
  157. package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +3 -17
  158. package/hooks/features/columnGrouping/useGridColumnGrouping.js +69 -88
  159. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
  160. package/hooks/features/columnHeaders/useGridColumnHeaders.js +72 -146
  161. package/hooks/features/columnMenu/useGridColumnMenu.d.ts +2 -2
  162. package/hooks/features/columnMenu/useGridColumnMenu.js +10 -16
  163. package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -4
  164. package/hooks/features/columns/gridColumnsSelector.d.ts +2 -50
  165. package/hooks/features/columns/gridColumnsSelector.js +12 -74
  166. package/hooks/features/columns/gridColumnsUtils.d.ts +1 -5
  167. package/hooks/features/columns/gridColumnsUtils.js +42 -87
  168. package/hooks/features/columns/index.d.ts +1 -2
  169. package/hooks/features/columns/index.js +1 -2
  170. package/hooks/features/columns/useGridColumnSpanning.d.ts +2 -2
  171. package/hooks/features/columns/useGridColumnSpanning.js +13 -18
  172. package/hooks/features/columns/useGridColumns.d.ts +2 -2
  173. package/hooks/features/columns/useGridColumns.js +22 -51
  174. package/hooks/features/density/densitySelector.d.ts +0 -2
  175. package/hooks/features/density/densitySelector.js +1 -3
  176. package/hooks/features/density/densityState.d.ts +0 -1
  177. package/hooks/features/density/useGridDensity.d.ts +3 -3
  178. package/hooks/features/density/useGridDensity.js +12 -52
  179. package/hooks/features/dimensions/gridDimensionsApi.d.ts +4 -4
  180. package/hooks/features/dimensions/index.d.ts +1 -1
  181. package/hooks/features/dimensions/index.js +1 -1
  182. package/hooks/features/dimensions/useGridDimensions.d.ts +2 -2
  183. package/hooks/features/dimensions/useGridDimensions.js +19 -32
  184. package/hooks/features/{editRows/gridEditRowsSelector.d.ts → editing/gridEditingSelectors.d.ts} +0 -0
  185. package/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
  186. package/hooks/features/editing/index.d.ts +1 -0
  187. package/hooks/features/editing/index.js +1 -0
  188. package/hooks/features/editing/useGridCellEditing.d.ts +4 -0
  189. package/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +61 -98
  190. package/hooks/features/{editRows/useGridEditing.new.d.ts → editing/useGridEditing.d.ts} +2 -2
  191. package/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +14 -21
  192. package/hooks/features/editing/useGridRowEditing.d.ts +4 -0
  193. package/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +60 -127
  194. package/hooks/features/events/useGridEvents.js +0 -1
  195. package/hooks/features/export/serializers/csvSerializer.js +2 -11
  196. package/hooks/features/export/useGridCsvExport.d.ts +2 -2
  197. package/hooks/features/export/useGridCsvExport.js +3 -6
  198. package/hooks/features/export/useGridPrintExport.d.ts +2 -2
  199. package/hooks/features/export/useGridPrintExport.js +31 -58
  200. package/hooks/features/export/utils.js +0 -5
  201. package/hooks/features/filter/gridFilterSelector.d.ts +1 -12
  202. package/hooks/features/filter/gridFilterSelector.js +19 -38
  203. package/hooks/features/filter/gridFilterState.d.ts +1 -1
  204. package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
  205. package/hooks/features/filter/gridFilterUtils.js +35 -77
  206. package/hooks/features/filter/useGridFilter.d.ts +2 -2
  207. package/hooks/features/filter/useGridFilter.js +33 -57
  208. package/hooks/features/focus/gridFocusState.d.ts +6 -0
  209. package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -0
  210. package/hooks/features/focus/gridFocusStateSelector.js +7 -1
  211. package/hooks/features/focus/useGridFocus.d.ts +2 -2
  212. package/hooks/features/focus/useGridFocus.js +81 -42
  213. package/hooks/features/index.d.ts +2 -2
  214. package/hooks/features/index.js +2 -2
  215. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +2 -2
  216. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +204 -150
  217. package/hooks/features/pagination/gridPaginationSelector.js +11 -17
  218. package/hooks/features/pagination/useGridPage.d.ts +2 -2
  219. package/hooks/features/pagination/useGridPage.js +15 -23
  220. package/hooks/features/pagination/useGridPageSize.d.ts +2 -2
  221. package/hooks/features/pagination/useGridPageSize.js +16 -24
  222. package/hooks/features/pagination/useGridPagination.d.ts +2 -2
  223. package/hooks/features/pagination/useGridPagination.js +1 -4
  224. package/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -2
  225. package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +2 -2
  226. package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +17 -21
  227. package/hooks/features/{selection/gridSelectionSelector.d.ts → rowSelection/gridRowSelectionSelector.d.ts} +1 -1
  228. package/hooks/features/rowSelection/gridRowSelectionSelector.js +9 -0
  229. package/hooks/features/rowSelection/index.d.ts +1 -0
  230. package/hooks/features/rowSelection/index.js +1 -0
  231. package/hooks/features/rowSelection/useGridRowSelection.d.ts +12 -0
  232. package/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +95 -119
  233. package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +4 -0
  234. package/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +4 -9
  235. package/hooks/features/rows/gridRowsInterfaces.d.ts +4 -0
  236. package/hooks/features/rows/gridRowsSelector.d.ts +0 -1
  237. package/hooks/features/rows/gridRowsSelector.js +6 -11
  238. package/hooks/features/rows/gridRowsUtils.d.ts +3 -3
  239. package/hooks/features/rows/gridRowsUtils.js +41 -49
  240. package/hooks/features/rows/index.d.ts +1 -1
  241. package/hooks/features/rows/index.js +1 -1
  242. package/hooks/features/rows/useGridParamsApi.d.ts +2 -2
  243. package/hooks/features/rows/useGridParamsApi.js +5 -42
  244. package/hooks/features/rows/useGridRows.d.ts +2 -2
  245. package/hooks/features/rows/useGridRows.js +52 -73
  246. package/hooks/features/rows/useGridRowsMeta.d.ts +2 -2
  247. package/hooks/features/rows/useGridRowsMeta.js +24 -36
  248. package/hooks/features/rows/useGridRowsPreProcessors.d.ts +2 -2
  249. package/hooks/features/rows/useGridRowsPreProcessors.js +2 -13
  250. package/hooks/features/scroll/useGridScroll.d.ts +2 -2
  251. package/hooks/features/scroll/useGridScroll.js +24 -43
  252. package/hooks/features/sorting/gridSortingSelector.d.ts +0 -5
  253. package/hooks/features/sorting/gridSortingSelector.js +6 -7
  254. package/hooks/features/sorting/gridSortingUtils.js +2 -30
  255. package/hooks/features/sorting/useGridSorting.d.ts +2 -2
  256. package/hooks/features/sorting/useGridSorting.js +17 -38
  257. package/hooks/features/statePersistence/useGridStatePersistence.d.ts +2 -2
  258. package/hooks/features/statePersistence/useGridStatePersistence.js +1 -1
  259. package/hooks/features/virtualization/useGridVirtualScroller.d.ts +5 -8
  260. package/hooks/features/virtualization/useGridVirtualScroller.js +29 -68
  261. package/hooks/utils/index.d.ts +0 -2
  262. package/hooks/utils/index.js +0 -2
  263. package/hooks/utils/useFirstRender.js +0 -1
  264. package/hooks/utils/useGridApiContext.js +0 -2
  265. package/hooks/utils/useGridApiEventHandler.d.ts +2 -2
  266. package/hooks/utils/useGridApiEventHandler.js +8 -22
  267. package/hooks/utils/useGridApiMethod.d.ts +6 -2
  268. package/hooks/utils/useGridApiMethod.js +9 -9
  269. package/hooks/utils/useGridApiRef.d.ts +1 -1
  270. package/hooks/utils/useGridApiRef.js +0 -1
  271. package/hooks/utils/useGridInitializeState.d.ts +4 -4
  272. package/hooks/utils/useGridInitializeState.js +2 -3
  273. package/hooks/utils/useGridLogger.d.ts +2 -2
  274. package/hooks/utils/useGridLogger.js +2 -4
  275. package/hooks/utils/useGridNativeEventListener.d.ts +2 -2
  276. package/hooks/utils/useGridNativeEventListener.js +0 -4
  277. package/hooks/utils/useGridPrivateApiContext.d.ts +5 -0
  278. package/hooks/utils/useGridPrivateApiContext.js +12 -0
  279. package/hooks/utils/useGridRootProps.js +0 -2
  280. package/hooks/utils/useGridScrollFn.d.ts +2 -2
  281. package/hooks/utils/useGridScrollFn.js +2 -4
  282. package/hooks/utils/useGridSelector.d.ts +1 -1
  283. package/hooks/utils/useGridSelector.js +0 -4
  284. package/hooks/utils/useGridVisibleRows.d.ts +2 -2
  285. package/hooks/utils/useGridVisibleRows.js +1 -4
  286. package/index.d.ts +0 -5
  287. package/index.js +1 -1
  288. package/internals/index.d.ts +5 -5
  289. package/internals/index.js +5 -6
  290. package/legacy/DataGrid/DataGrid.js +22 -150
  291. package/legacy/DataGrid/useDataGridComponent.js +43 -49
  292. package/legacy/DataGrid/useDataGridProps.js +10 -12
  293. package/legacy/colDef/gridBooleanColDef.js +1 -3
  294. package/legacy/colDef/gridBooleanOperators.js +0 -1
  295. package/legacy/colDef/gridCheckboxSelectionColDef.js +1 -1
  296. package/legacy/colDef/gridDateColDef.js +0 -4
  297. package/legacy/colDef/gridDateOperators.js +8 -15
  298. package/legacy/colDef/gridDefaultColumnTypes.js +0 -1
  299. package/legacy/colDef/gridNumericOperators.js +1 -26
  300. package/legacy/colDef/gridSingleSelectOperators.js +2 -14
  301. package/legacy/colDef/gridStringColDef.js +1 -1
  302. package/legacy/colDef/gridStringOperators.js +0 -6
  303. package/legacy/components/DataGridColumnHeaders.js +9 -11
  304. package/legacy/components/DataGridVirtualScroller.js +9 -11
  305. package/legacy/components/ErrorBoundary.js +3 -12
  306. package/legacy/components/GridApiContext.js +0 -1
  307. package/legacy/components/GridAutoSizer.js +24 -40
  308. package/legacy/components/{ErrorOverlay.js → GridErrorOverlay.js} +7 -9
  309. package/legacy/components/GridFooter.js +1 -4
  310. package/legacy/components/GridHeader.js +0 -1
  311. package/legacy/components/GridPagination.js +0 -7
  312. package/legacy/components/GridRow.js +71 -114
  313. package/legacy/components/GridRowCount.js +4 -9
  314. package/legacy/components/GridScrollArea.js +8 -19
  315. package/legacy/components/GridSelectedRowCount.js +3 -6
  316. package/legacy/components/base/GridBody.js +15 -22
  317. package/legacy/components/base/GridErrorHandler.js +5 -9
  318. package/legacy/components/base/GridFooterPlaceholder.js +0 -3
  319. package/legacy/components/base/GridHeaderPlaceholder.js +0 -1
  320. package/legacy/components/base/GridOverlays.js +8 -28
  321. package/legacy/components/cell/GridActionsCell.js +29 -79
  322. package/legacy/components/cell/GridActionsCellItem.js +4 -7
  323. package/legacy/components/cell/GridBooleanCell.js +17 -46
  324. package/legacy/components/cell/GridCell.js +36 -63
  325. package/legacy/components/cell/GridEditBooleanCell.js +23 -60
  326. package/legacy/components/cell/GridEditDateCell.js +22 -67
  327. package/legacy/components/cell/GridEditInputCell.js +25 -68
  328. package/legacy/components/cell/GridEditSingleSelectCell.js +31 -126
  329. package/legacy/components/cell/GridSkeletonCell.js +6 -11
  330. package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +6 -10
  331. package/legacy/components/columnHeaders/GridColumnGroupHeader.js +72 -49
  332. package/legacy/components/columnHeaders/GridColumnHeaderFilterIconButton.js +5 -17
  333. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +29 -48
  334. package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +9 -17
  335. package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +3 -14
  336. package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +7 -16
  337. package/legacy/components/columnHeaders/GridColumnHeaders.js +4 -6
  338. package/legacy/components/columnHeaders/GridColumnHeadersInner.js +5 -10
  339. package/legacy/components/columnHeaders/GridColumnUnsortedIcon.js +2 -5
  340. package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +30 -36
  341. package/legacy/components/columnHeaders/GridIconButtonContainer.js +2 -5
  342. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +24 -58
  343. package/legacy/components/columnSelection/GridHeaderCheckbox.js +16 -31
  344. package/legacy/components/containers/GridFooterContainer.js +4 -6
  345. package/legacy/components/containers/GridMainContainer.js +1 -3
  346. package/legacy/components/containers/GridOverlay.js +4 -7
  347. package/legacy/components/containers/GridRoot.js +17 -24
  348. package/legacy/components/containers/GridRootStyles.js +21 -23
  349. package/legacy/components/containers/GridToolbarContainer.js +5 -9
  350. package/legacy/components/menu/GridMenu.js +13 -24
  351. package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +7 -11
  352. package/legacy/components/menu/columnMenu/GridColumnMenu.js +1 -1
  353. package/legacy/components/menu/columnMenu/GridColumnMenuContainer.js +7 -9
  354. package/legacy/components/menu/columnMenu/GridColumnsMenuItem.js +2 -6
  355. package/legacy/components/menu/columnMenu/GridFilterMenuItem.js +3 -7
  356. package/legacy/components/menu/columnMenu/HideGridColMenuItem.js +7 -13
  357. package/legacy/components/menu/columnMenu/SortGridMenuItems.js +3 -8
  358. package/legacy/components/panel/GridColumnsPanel.js +35 -28
  359. package/legacy/components/panel/GridPanel.js +11 -16
  360. package/legacy/components/panel/GridPanelContent.js +2 -7
  361. package/legacy/components/panel/GridPanelFooter.js +2 -7
  362. package/legacy/components/panel/GridPanelHeader.js +2 -7
  363. package/legacy/components/panel/GridPanelWrapper.js +2 -7
  364. package/legacy/components/panel/GridPreferencesPanel.js +0 -1
  365. package/legacy/components/panel/filterPanel/GridFilterForm.js +78 -93
  366. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +7 -10
  367. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +16 -26
  368. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +22 -37
  369. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +17 -26
  370. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +18 -30
  371. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +23 -38
  372. package/legacy/components/panel/filterPanel/GridFilterPanel.js +65 -39
  373. package/legacy/components/panel/filterPanel/filterPanelUtils.js +0 -2
  374. package/legacy/components/toolbar/GridToolbar.js +10 -14
  375. package/legacy/components/toolbar/GridToolbarColumnsButton.js +5 -11
  376. package/legacy/components/toolbar/GridToolbarDensitySelector.js +7 -21
  377. package/legacy/components/toolbar/GridToolbarExport.js +15 -22
  378. package/legacy/components/toolbar/GridToolbarExportContainer.js +6 -20
  379. package/legacy/components/toolbar/GridToolbarFilterButton.js +11 -26
  380. package/legacy/components/toolbar/GridToolbarQuickFilter.js +18 -30
  381. package/legacy/components/virtualization/GridVirtualScroller.js +2 -5
  382. package/legacy/components/virtualization/GridVirtualScrollerContent.js +4 -7
  383. package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +2 -5
  384. package/legacy/constants/defaultGridSlotsComponents.js +3 -3
  385. package/legacy/constants/envConstants.js +1 -0
  386. package/legacy/constants/gridClasses.js +1 -1
  387. package/legacy/context/GridContextProvider.js +13 -8
  388. package/legacy/context/GridRootPropsContext.js +0 -2
  389. package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +16 -24
  390. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -2
  391. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -2
  392. package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +1 -1
  393. package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +12 -26
  394. package/legacy/hooks/core/useGridApiInitialization.js +64 -31
  395. package/legacy/hooks/core/useGridErrorHandler.js +7 -1
  396. package/legacy/hooks/core/useGridInitialization.js +9 -9
  397. package/legacy/hooks/core/useGridLocaleText.js +1 -2
  398. package/legacy/hooks/core/useGridLoggerFactory.js +6 -14
  399. package/legacy/hooks/core/useGridStateInitialization.js +17 -27
  400. package/legacy/hooks/features/clipboard/useGridClipboard.js +6 -14
  401. package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +26 -2
  402. package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +81 -0
  403. package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +65 -84
  404. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +122 -201
  405. package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +10 -16
  406. package/legacy/hooks/features/columns/gridColumnsSelector.js +17 -87
  407. package/legacy/hooks/features/columns/gridColumnsUtils.js +68 -117
  408. package/legacy/hooks/features/columns/index.js +1 -2
  409. package/legacy/hooks/features/columns/useGridColumnSpanning.js +20 -26
  410. package/legacy/hooks/features/columns/useGridColumns.js +22 -57
  411. package/legacy/hooks/features/density/densitySelector.js +0 -6
  412. package/legacy/hooks/features/density/useGridDensity.js +9 -51
  413. package/legacy/hooks/features/dimensions/index.js +1 -1
  414. package/legacy/hooks/features/dimensions/useGridDimensions.js +21 -34
  415. package/legacy/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
  416. package/legacy/hooks/features/editing/index.js +1 -0
  417. package/legacy/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +67 -117
  418. package/legacy/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +21 -39
  419. package/legacy/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +80 -151
  420. package/legacy/hooks/features/events/useGridEvents.js +0 -1
  421. package/legacy/hooks/features/export/serializers/csvSerializer.js +6 -15
  422. package/legacy/hooks/features/export/useGridCsvExport.js +3 -6
  423. package/legacy/hooks/features/export/useGridPrintExport.js +31 -63
  424. package/legacy/hooks/features/export/utils.js +1 -6
  425. package/legacy/hooks/features/filter/gridFilterSelector.js +20 -39
  426. package/legacy/hooks/features/filter/gridFilterUtils.js +37 -79
  427. package/legacy/hooks/features/filter/useGridFilter.js +36 -65
  428. package/legacy/hooks/features/focus/gridFocusStateSelector.js +10 -0
  429. package/legacy/hooks/features/focus/useGridFocus.js +84 -44
  430. package/legacy/hooks/features/index.js +2 -2
  431. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +200 -152
  432. package/legacy/hooks/features/pagination/gridPaginationSelector.js +11 -17
  433. package/legacy/hooks/features/pagination/useGridPage.js +15 -23
  434. package/legacy/hooks/features/pagination/useGridPageSize.js +16 -24
  435. package/legacy/hooks/features/pagination/useGridPagination.js +1 -4
  436. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -2
  437. package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +17 -21
  438. package/legacy/hooks/features/rowSelection/gridRowSelectionSelector.js +19 -0
  439. package/legacy/hooks/features/rowSelection/index.js +1 -0
  440. package/legacy/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +108 -135
  441. package/legacy/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +4 -9
  442. package/legacy/hooks/features/rows/gridRowsSelector.js +8 -15
  443. package/legacy/hooks/features/rows/gridRowsUtils.js +61 -75
  444. package/legacy/hooks/features/rows/index.js +1 -1
  445. package/legacy/hooks/features/rows/useGridParamsApi.js +5 -44
  446. package/legacy/hooks/features/rows/useGridRows.js +61 -86
  447. package/legacy/hooks/features/rows/useGridRowsMeta.js +33 -47
  448. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +3 -15
  449. package/legacy/hooks/features/scroll/useGridScroll.js +27 -46
  450. package/legacy/hooks/features/sorting/gridSortingSelector.js +7 -8
  451. package/legacy/hooks/features/sorting/gridSortingUtils.js +2 -30
  452. package/legacy/hooks/features/sorting/useGridSorting.js +17 -42
  453. package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +1 -1
  454. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +117 -171
  455. package/legacy/hooks/utils/index.js +0 -2
  456. package/legacy/hooks/utils/useFirstRender.js +0 -1
  457. package/legacy/hooks/utils/useGridApiContext.js +0 -2
  458. package/legacy/hooks/utils/useGridApiEventHandler.js +7 -24
  459. package/legacy/hooks/utils/useGridApiMethod.js +10 -17
  460. package/legacy/hooks/utils/useGridApiRef.js +0 -1
  461. package/legacy/hooks/utils/useGridInitializeState.js +2 -3
  462. package/legacy/hooks/utils/useGridLogger.js +2 -4
  463. package/legacy/hooks/utils/useGridNativeEventListener.js +3 -9
  464. package/legacy/hooks/utils/useGridPrivateApiContext.js +12 -0
  465. package/legacy/hooks/utils/useGridRootProps.js +0 -2
  466. package/legacy/hooks/utils/useGridScrollFn.js +2 -4
  467. package/legacy/hooks/utils/useGridSelector.js +0 -4
  468. package/legacy/hooks/utils/useGridVisibleRows.js +1 -4
  469. package/legacy/index.js +1 -1
  470. package/legacy/internals/index.js +5 -6
  471. package/legacy/lib/createDetectElementResize/index.js +14 -37
  472. package/legacy/locales/arSD.js +8 -3
  473. package/legacy/locales/bgBG.js +8 -3
  474. package/legacy/locales/csCZ.js +10 -8
  475. package/legacy/locales/daDK.js +7 -2
  476. package/legacy/locales/elGR.js +15 -2
  477. package/legacy/locales/esES.js +15 -2
  478. package/legacy/locales/fiFI.js +2 -2
  479. package/legacy/locales/frFR.js +4 -2
  480. package/legacy/locales/heIL.js +4 -2
  481. package/legacy/locales/huHU.js +7 -2
  482. package/legacy/locales/itIT.js +4 -2
  483. package/legacy/locales/jaJP.js +6 -2
  484. package/legacy/locales/nbNO.js +4 -2
  485. package/legacy/locales/nlNL.js +4 -2
  486. package/legacy/locales/plPL.js +4 -2
  487. package/legacy/locales/ptBR.js +4 -2
  488. package/legacy/locales/roRO.js +4 -2
  489. package/legacy/locales/ruRU.js +6 -8
  490. package/legacy/locales/skSK.js +4 -8
  491. package/legacy/locales/svSE.js +4 -2
  492. package/legacy/locales/trTR.js +17 -17
  493. package/legacy/locales/ukUA.js +25 -24
  494. package/legacy/locales/viVN.js +11 -2
  495. package/legacy/locales/zhTW.js +4 -2
  496. package/legacy/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
  497. package/legacy/models/api/index.js +1 -6
  498. package/legacy/models/colDef/index.js +2 -1
  499. package/legacy/models/gridColumnGrouping.js +1 -0
  500. package/legacy/models/gridDensity.js +0 -3
  501. package/legacy/models/gridEditRowModel.js +0 -6
  502. package/legacy/models/gridFilterItem.js +0 -2
  503. package/legacy/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
  504. package/legacy/models/index.js +4 -2
  505. package/legacy/models/params/{gridSortModelParams.js → gridColumnGroupHeaderParams.js} +0 -0
  506. package/legacy/models/params/gridEditCellParams.js +0 -8
  507. package/legacy/models/params/gridRowParams.js +0 -7
  508. package/legacy/models/params/index.js +1 -1
  509. package/legacy/themeAugmentation/index.js +2 -1
  510. package/legacy/utils/EventManager.js +0 -16
  511. package/legacy/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +2 -4
  512. package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -9
  513. package/legacy/utils/createSelector.js +14 -17
  514. package/legacy/utils/domUtils.js +3 -7
  515. package/legacy/utils/exportAs.js +11 -7
  516. package/legacy/utils/getGridLocalization.js +0 -1
  517. package/legacy/utils/keyboardUtils.js +3 -4
  518. package/legacy/utils/utils.js +7 -34
  519. package/legacy/utils/warning.js +0 -2
  520. package/lib/createDetectElementResize/index.js +14 -37
  521. package/locales/arSD.js +8 -3
  522. package/locales/bgBG.js +8 -3
  523. package/locales/csCZ.js +10 -8
  524. package/locales/daDK.js +7 -2
  525. package/locales/elGR.js +15 -2
  526. package/locales/esES.js +15 -2
  527. package/locales/fiFI.js +2 -2
  528. package/locales/frFR.js +4 -2
  529. package/locales/heIL.js +4 -2
  530. package/locales/huHU.js +7 -2
  531. package/locales/itIT.js +4 -2
  532. package/locales/jaJP.js +6 -2
  533. package/locales/nbNO.js +4 -2
  534. package/locales/nlNL.js +4 -2
  535. package/locales/plPL.js +4 -2
  536. package/locales/ptBR.js +4 -2
  537. package/locales/roRO.js +4 -2
  538. package/locales/ruRU.js +6 -8
  539. package/locales/skSK.js +4 -8
  540. package/locales/svSE.js +4 -2
  541. package/locales/trTR.js +17 -17
  542. package/locales/ukUA.js +21 -24
  543. package/locales/viVN.js +11 -2
  544. package/locales/zhTW.js +4 -2
  545. package/models/api/gridApiCommon.d.ts +15 -14
  546. package/models/api/gridApiCommunity.d.ts +5 -8
  547. package/models/api/gridCallbackDetails.d.ts +0 -5
  548. package/models/api/gridColumnApi.d.ts +1 -13
  549. package/models/api/gridColumnSpanning.d.ts +4 -2
  550. package/models/api/gridCoreApi.d.ts +28 -20
  551. package/models/api/gridEditingApi.d.ts +52 -129
  552. package/models/api/gridFocusApi.d.ts +16 -2
  553. package/models/api/gridLoggerApi.d.ts +0 -1
  554. package/models/api/{gridSelectionApi.d.ts → gridRowSelectionApi.d.ts} +43 -20
  555. package/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
  556. package/models/api/gridRowsMetaApi.d.ts +14 -11
  557. package/models/api/gridSortApi.d.ts +0 -8
  558. package/models/api/gridStateApi.d.ts +4 -4
  559. package/models/api/gridVirtualScrollerApi.d.ts +1 -2
  560. package/models/api/index.d.ts +7 -7
  561. package/models/api/index.js +1 -6
  562. package/models/colDef/gridColDef.d.ts +0 -8
  563. package/models/colDef/index.js +2 -1
  564. package/models/events/gridEventLookup.d.ts +31 -36
  565. package/models/gridCell.d.ts +0 -5
  566. package/models/gridColumnGrouping.d.ts +1 -26
  567. package/models/gridColumnGrouping.js +1 -0
  568. package/models/gridDensity.js +0 -3
  569. package/models/gridEditRowModel.js +0 -6
  570. package/models/gridFilterItem.d.ts +2 -3
  571. package/models/gridFilterItem.js +0 -2
  572. package/models/gridFilterOperator.d.ts +1 -1
  573. package/models/gridRowSelectionModel.d.ts +3 -0
  574. package/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
  575. package/models/gridRows.d.ts +0 -4
  576. package/models/gridSlotsComponent.d.ts +1 -1
  577. package/models/gridSortModel.d.ts +0 -3
  578. package/models/gridStateCommunity.d.ts +2 -2
  579. package/models/index.d.ts +1 -1
  580. package/models/index.js +4 -2
  581. package/models/params/gridCellParams.d.ts +5 -16
  582. package/models/params/gridColumnGroupHeaderParams.d.ts +30 -0
  583. package/models/params/{gridSortModelParams.js → gridColumnGroupHeaderParams.js} +0 -0
  584. package/models/params/gridEditCellParams.d.ts +4 -17
  585. package/models/params/gridEditCellParams.js +0 -8
  586. package/models/params/gridRowParams.d.ts +4 -12
  587. package/models/params/gridRowParams.js +0 -7
  588. package/models/params/index.d.ts +1 -1
  589. package/models/params/index.js +1 -1
  590. package/models/props/DataGridProps.d.ts +20 -38
  591. package/modern/DataGrid/DataGrid.js +22 -150
  592. package/modern/DataGrid/useDataGridComponent.js +44 -48
  593. package/modern/DataGrid/useDataGridProps.js +8 -9
  594. package/modern/colDef/gridBooleanColDef.js +0 -2
  595. package/modern/colDef/gridBooleanOperators.js +0 -1
  596. package/modern/colDef/gridCheckboxSelectionColDef.js +1 -1
  597. package/modern/colDef/gridDateColDef.js +0 -2
  598. package/modern/colDef/gridDateOperators.js +2 -7
  599. package/modern/colDef/gridNumericOperators.js +1 -22
  600. package/modern/colDef/gridSingleSelectOperators.js +0 -12
  601. package/modern/colDef/gridStringColDef.js +1 -1
  602. package/modern/colDef/gridStringOperators.js +0 -6
  603. package/modern/components/DataGridColumnHeaders.js +3 -4
  604. package/modern/components/DataGridVirtualScroller.js +4 -5
  605. package/modern/components/ErrorBoundary.js +3 -7
  606. package/modern/components/GridApiContext.js +0 -1
  607. package/modern/components/GridAutoSizer.js +16 -30
  608. package/{components/ErrorOverlay.js → modern/components/GridErrorOverlay.js} +6 -8
  609. package/modern/components/GridFooter.js +1 -3
  610. package/modern/components/GridPagination.js +0 -3
  611. package/modern/components/GridRow.js +56 -89
  612. package/modern/components/GridRowCount.js +6 -11
  613. package/modern/components/GridScrollArea.js +4 -12
  614. package/modern/components/GridSelectedRowCount.js +5 -8
  615. package/modern/components/base/GridBody.js +10 -15
  616. package/modern/components/base/GridErrorHandler.js +5 -8
  617. package/modern/components/base/GridFooterPlaceholder.js +0 -2
  618. package/modern/components/base/GridOverlays.js +2 -14
  619. package/modern/components/cell/GridActionsCell.js +15 -61
  620. package/modern/components/cell/GridActionsCellItem.js +6 -9
  621. package/modern/components/cell/GridBooleanCell.js +8 -36
  622. package/modern/components/cell/GridCell.js +32 -58
  623. package/modern/components/cell/GridEditBooleanCell.js +11 -41
  624. package/modern/components/cell/GridEditDateCell.js +12 -49
  625. package/modern/components/cell/GridEditInputCell.js +15 -48
  626. package/modern/components/cell/GridEditSingleSelectCell.js +23 -92
  627. package/modern/components/cell/GridSkeletonCell.js +6 -11
  628. package/modern/components/columnHeaders/ColumnHeaderMenuIcon.js +1 -5
  629. package/modern/components/columnHeaders/GridColumnGroupHeader.js +35 -15
  630. package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -11
  631. package/modern/components/columnHeaders/GridColumnHeaderItem.js +3 -18
  632. package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +5 -13
  633. package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -12
  634. package/modern/components/columnHeaders/GridColumnHeaderTitle.js +4 -10
  635. package/modern/components/columnHeaders/GridColumnHeaders.js +6 -8
  636. package/modern/components/columnHeaders/GridColumnHeadersInner.js +5 -8
  637. package/modern/components/columnHeaders/GridColumnUnsortedIcon.js +3 -4
  638. package/modern/components/columnHeaders/GridGenericColumnHeaderItem.js +25 -29
  639. package/modern/components/columnHeaders/GridIconButtonContainer.js +4 -7
  640. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +20 -51
  641. package/modern/components/columnSelection/GridHeaderCheckbox.js +12 -25
  642. package/modern/components/containers/GridFooterContainer.js +6 -8
  643. package/modern/components/containers/GridMainContainer.js +1 -3
  644. package/modern/components/containers/GridOverlay.js +6 -9
  645. package/modern/components/containers/GridRoot.js +14 -20
  646. package/modern/components/containers/GridRootStyles.js +23 -23
  647. package/modern/components/containers/GridToolbarContainer.js +7 -11
  648. package/modern/components/menu/GridMenu.js +14 -24
  649. package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -4
  650. package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +8 -10
  651. package/modern/components/menu/columnMenu/GridColumnsMenuItem.js +2 -6
  652. package/modern/components/menu/columnMenu/GridFilterMenuItem.js +2 -6
  653. package/modern/components/menu/columnMenu/HideGridColMenuItem.js +6 -12
  654. package/modern/components/menu/columnMenu/SortGridMenuItems.js +2 -7
  655. package/modern/components/panel/GridColumnsPanel.js +31 -22
  656. package/modern/components/panel/GridPanel.js +9 -11
  657. package/modern/components/panel/GridPanelContent.js +4 -9
  658. package/modern/components/panel/GridPanelFooter.js +4 -9
  659. package/modern/components/panel/GridPanelHeader.js +4 -9
  660. package/modern/components/panel/GridPanelWrapper.js +4 -9
  661. package/modern/components/panel/filterPanel/GridFilterForm.js +71 -85
  662. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +6 -7
  663. package/modern/components/panel/filterPanel/GridFilterInputDate.js +12 -17
  664. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +20 -33
  665. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +16 -21
  666. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +15 -24
  667. package/modern/components/panel/filterPanel/GridFilterInputValue.js +17 -27
  668. package/modern/components/panel/filterPanel/GridFilterPanel.js +59 -35
  669. package/modern/components/panel/filterPanel/filterPanelUtils.js +0 -2
  670. package/modern/components/toolbar/GridToolbar.js +9 -13
  671. package/modern/components/toolbar/GridToolbarColumnsButton.js +5 -9
  672. package/modern/components/toolbar/GridToolbarDensitySelector.js +8 -17
  673. package/modern/components/toolbar/GridToolbarExport.js +19 -26
  674. package/modern/components/toolbar/GridToolbarExportContainer.js +7 -16
  675. package/modern/components/toolbar/GridToolbarFilterButton.js +9 -21
  676. package/modern/components/toolbar/GridToolbarQuickFilter.js +9 -16
  677. package/modern/components/virtualization/GridVirtualScroller.js +4 -7
  678. package/modern/components/virtualization/GridVirtualScrollerContent.js +5 -8
  679. package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +4 -7
  680. package/modern/constants/defaultGridSlotsComponents.js +3 -3
  681. package/modern/constants/envConstants.js +1 -0
  682. package/modern/constants/gridClasses.js +1 -1
  683. package/modern/context/GridContextProvider.js +12 -7
  684. package/modern/context/GridRootPropsContext.js +0 -2
  685. package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +11 -18
  686. package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -2
  687. package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -2
  688. package/modern/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +1 -1
  689. package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +10 -22
  690. package/modern/hooks/core/useGridApiInitialization.js +58 -26
  691. package/modern/hooks/core/useGridErrorHandler.js +7 -1
  692. package/modern/hooks/core/useGridInitialization.js +9 -9
  693. package/modern/hooks/core/useGridLocaleText.js +1 -2
  694. package/modern/hooks/core/useGridLoggerFactory.js +5 -10
  695. package/modern/hooks/core/useGridStateInitialization.js +15 -23
  696. package/modern/hooks/features/clipboard/useGridClipboard.js +6 -12
  697. package/modern/hooks/features/columnGrouping/gridColumnGroupsSelector.js +12 -2
  698. package/modern/hooks/features/columnGrouping/gridColumnGroupsUtils.js +71 -0
  699. package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +56 -79
  700. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +71 -127
  701. package/modern/hooks/features/columnMenu/useGridColumnMenu.js +10 -16
  702. package/modern/hooks/features/columns/gridColumnsSelector.js +12 -74
  703. package/modern/hooks/features/columns/gridColumnsUtils.js +42 -86
  704. package/modern/hooks/features/columns/index.js +1 -2
  705. package/modern/hooks/features/columns/useGridColumnSpanning.js +13 -17
  706. package/modern/hooks/features/columns/useGridColumns.js +22 -45
  707. package/modern/hooks/features/density/densitySelector.js +1 -3
  708. package/modern/hooks/features/density/useGridDensity.js +12 -44
  709. package/modern/hooks/features/dimensions/index.js +1 -1
  710. package/modern/hooks/features/dimensions/useGridDimensions.js +19 -31
  711. package/modern/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
  712. package/modern/hooks/features/editing/index.js +1 -0
  713. package/modern/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +61 -96
  714. package/modern/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +14 -21
  715. package/modern/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +60 -125
  716. package/modern/hooks/features/events/useGridEvents.js +0 -1
  717. package/modern/hooks/features/export/serializers/csvSerializer.js +2 -11
  718. package/modern/hooks/features/export/useGridCsvExport.js +3 -4
  719. package/modern/hooks/features/export/useGridPrintExport.js +31 -53
  720. package/modern/hooks/features/export/utils.js +0 -4
  721. package/modern/hooks/features/filter/gridFilterSelector.js +19 -35
  722. package/modern/hooks/features/filter/gridFilterUtils.js +34 -73
  723. package/modern/hooks/features/filter/useGridFilter.js +33 -51
  724. package/modern/hooks/features/focus/gridFocusStateSelector.js +7 -1
  725. package/modern/hooks/features/focus/useGridFocus.js +81 -42
  726. package/modern/hooks/features/index.js +2 -2
  727. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +204 -150
  728. package/modern/hooks/features/pagination/gridPaginationSelector.js +11 -17
  729. package/modern/hooks/features/pagination/useGridPage.js +15 -20
  730. package/modern/hooks/features/pagination/useGridPageSize.js +16 -21
  731. package/modern/hooks/features/pagination/useGridPagination.js +1 -3
  732. package/modern/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -2
  733. package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +17 -18
  734. package/modern/hooks/features/rowSelection/gridRowSelectionSelector.js +9 -0
  735. package/modern/hooks/features/rowSelection/index.js +1 -0
  736. package/modern/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +94 -116
  737. package/modern/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +4 -9
  738. package/modern/hooks/features/rows/gridRowsSelector.js +6 -7
  739. package/modern/hooks/features/rows/gridRowsUtils.js +41 -47
  740. package/modern/hooks/features/rows/index.js +1 -1
  741. package/modern/hooks/features/rows/useGridParamsApi.js +5 -42
  742. package/modern/hooks/features/rows/useGridRows.js +52 -71
  743. package/modern/hooks/features/rows/useGridRowsMeta.js +24 -32
  744. package/modern/hooks/features/rows/useGridRowsPreProcessors.js +2 -13
  745. package/modern/hooks/features/scroll/useGridScroll.js +24 -41
  746. package/modern/hooks/features/sorting/gridSortingSelector.js +6 -6
  747. package/modern/hooks/features/sorting/gridSortingUtils.js +2 -30
  748. package/modern/hooks/features/sorting/useGridSorting.js +17 -32
  749. package/modern/hooks/features/statePersistence/useGridStatePersistence.js +1 -1
  750. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +29 -65
  751. package/modern/hooks/utils/index.js +0 -2
  752. package/modern/hooks/utils/useFirstRender.js +0 -1
  753. package/modern/hooks/utils/useGridApiContext.js +0 -2
  754. package/modern/hooks/utils/useGridApiEventHandler.js +8 -17
  755. package/modern/hooks/utils/useGridApiMethod.js +9 -9
  756. package/modern/hooks/utils/useGridApiRef.js +0 -1
  757. package/modern/hooks/utils/useGridInitializeState.js +2 -3
  758. package/modern/hooks/utils/useGridLogger.js +2 -4
  759. package/modern/hooks/utils/useGridNativeEventListener.js +0 -4
  760. package/modern/hooks/utils/useGridPrivateApiContext.js +12 -0
  761. package/modern/hooks/utils/useGridRootProps.js +0 -2
  762. package/modern/hooks/utils/useGridScrollFn.js +2 -3
  763. package/modern/hooks/utils/useGridSelector.js +0 -4
  764. package/modern/hooks/utils/useGridVisibleRows.js +1 -4
  765. package/modern/index.js +1 -1
  766. package/modern/internals/index.js +5 -6
  767. package/modern/lib/createDetectElementResize/index.js +14 -37
  768. package/modern/locales/arSD.js +8 -3
  769. package/modern/locales/bgBG.js +8 -3
  770. package/modern/locales/csCZ.js +10 -8
  771. package/modern/locales/daDK.js +7 -2
  772. package/modern/locales/elGR.js +15 -2
  773. package/modern/locales/esES.js +15 -2
  774. package/modern/locales/fiFI.js +2 -2
  775. package/modern/locales/frFR.js +4 -2
  776. package/modern/locales/heIL.js +4 -2
  777. package/modern/locales/huHU.js +7 -2
  778. package/modern/locales/itIT.js +4 -2
  779. package/modern/locales/jaJP.js +6 -2
  780. package/modern/locales/nbNO.js +4 -2
  781. package/modern/locales/nlNL.js +4 -2
  782. package/modern/locales/plPL.js +4 -2
  783. package/modern/locales/ptBR.js +4 -2
  784. package/modern/locales/roRO.js +4 -2
  785. package/modern/locales/ruRU.js +6 -8
  786. package/modern/locales/skSK.js +4 -8
  787. package/modern/locales/svSE.js +4 -2
  788. package/modern/locales/trTR.js +17 -17
  789. package/modern/locales/ukUA.js +21 -24
  790. package/modern/locales/viVN.js +11 -2
  791. package/modern/locales/zhTW.js +4 -2
  792. package/modern/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
  793. package/modern/models/api/index.js +1 -6
  794. package/modern/models/colDef/index.js +2 -1
  795. package/modern/models/gridColumnGrouping.js +1 -0
  796. package/modern/models/gridDensity.js +0 -3
  797. package/modern/models/gridEditRowModel.js +0 -6
  798. package/modern/models/gridFilterItem.js +0 -2
  799. package/modern/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
  800. package/modern/models/index.js +4 -2
  801. package/modern/models/params/{gridSortModelParams.js → gridColumnGroupHeaderParams.js} +0 -0
  802. package/modern/models/params/gridEditCellParams.js +0 -8
  803. package/modern/models/params/gridRowParams.js +0 -7
  804. package/modern/models/params/index.js +1 -1
  805. package/modern/themeAugmentation/index.js +2 -1
  806. package/modern/utils/EventManager.js +0 -16
  807. package/modern/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +2 -5
  808. package/modern/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -7
  809. package/modern/utils/createSelector.js +13 -14
  810. package/modern/utils/domUtils.js +2 -6
  811. package/modern/utils/exportAs.js +11 -7
  812. package/modern/utils/keyboardUtils.js +3 -4
  813. package/modern/utils/utils.js +7 -34
  814. package/modern/utils/warning.js +0 -2
  815. package/node/DataGrid/DataGrid.js +22 -164
  816. package/node/DataGrid/index.js +0 -3
  817. package/node/DataGrid/useDataGridComponent.js +43 -80
  818. package/node/DataGrid/useDataGridProps.js +8 -20
  819. package/node/colDef/gridActionsColDef.js +0 -5
  820. package/node/colDef/gridBooleanColDef.js +0 -9
  821. package/node/colDef/gridBooleanOperators.js +0 -4
  822. package/node/colDef/gridCheckboxSelectionColDef.js +2 -13
  823. package/node/colDef/gridDateColDef.js +2 -13
  824. package/node/colDef/gridDateOperators.js +2 -10
  825. package/node/colDef/gridDefaultColumnTypes.js +0 -9
  826. package/node/colDef/gridNumericColDef.js +0 -7
  827. package/node/colDef/gridNumericOperators.js +2 -30
  828. package/node/colDef/gridSingleSelectColDef.js +0 -6
  829. package/node/colDef/gridSingleSelectOperators.js +0 -17
  830. package/node/colDef/gridStringColDef.js +0 -4
  831. package/node/colDef/gridStringOperators.js +0 -13
  832. package/node/colDef/index.js +0 -26
  833. package/node/components/DataGridColumnHeaders.js +3 -16
  834. package/node/components/DataGridVirtualScroller.js +4 -18
  835. package/node/components/ErrorBoundary.js +4 -15
  836. package/node/components/GridApiContext.js +0 -5
  837. package/node/components/GridAutoSizer.js +18 -45
  838. package/node/components/{ErrorOverlay.js → GridErrorOverlay.js} +8 -22
  839. package/node/components/GridFooter.js +3 -22
  840. package/node/components/GridHeader.js +1 -11
  841. package/node/components/GridLoadingOverlay.js +0 -10
  842. package/node/components/GridNoResultsOverlay.js +0 -9
  843. package/node/components/GridNoRowsOverlay.js +0 -10
  844. package/node/components/GridPagination.js +3 -25
  845. package/node/components/GridRow.js +67 -131
  846. package/node/components/GridRowCount.js +7 -26
  847. package/node/components/GridScrollArea.js +5 -28
  848. package/node/components/GridSelectedRowCount.js +6 -23
  849. package/node/components/base/GridBody.js +10 -27
  850. package/node/components/base/GridErrorHandler.js +7 -26
  851. package/node/components/base/GridFooterPlaceholder.js +1 -14
  852. package/node/components/base/GridHeaderPlaceholder.js +1 -12
  853. package/node/components/base/GridOverlays.js +10 -54
  854. package/node/components/base/index.js +0 -10
  855. package/node/components/cell/GridActionsCell.js +18 -81
  856. package/node/components/cell/GridActionsCellItem.js +6 -22
  857. package/node/components/cell/GridBooleanCell.js +9 -52
  858. package/node/components/cell/GridCell.js +39 -83
  859. package/node/components/cell/GridEditBooleanCell.js +13 -61
  860. package/node/components/cell/GridEditDateCell.js +15 -72
  861. package/node/components/cell/GridEditInputCell.js +17 -72
  862. package/node/components/cell/GridEditSingleSelectCell.js +26 -117
  863. package/node/components/cell/GridSkeletonCell.js +8 -26
  864. package/node/components/cell/index.js +0 -18
  865. package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -15
  866. package/node/components/columnHeaders/GridColumnGroupHeader.js +39 -32
  867. package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +3 -28
  868. package/node/components/columnHeaders/GridColumnHeaderItem.js +10 -36
  869. package/node/components/columnHeaders/GridColumnHeaderSeparator.js +7 -26
  870. package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +2 -24
  871. package/node/components/columnHeaders/GridColumnHeaderTitle.js +6 -28
  872. package/node/components/columnHeaders/GridColumnHeaders.js +7 -21
  873. package/node/components/columnHeaders/GridColumnHeadersInner.js +7 -25
  874. package/node/components/columnHeaders/GridColumnUnsortedIcon.js +3 -13
  875. package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +27 -45
  876. package/node/components/columnHeaders/GridIconButtonContainer.js +5 -20
  877. package/node/components/columnHeaders/index.js +0 -10
  878. package/node/components/columnSelection/GridCellCheckboxRenderer.js +23 -72
  879. package/node/components/columnSelection/GridHeaderCheckbox.js +14 -47
  880. package/node/components/columnSelection/index.js +0 -4
  881. package/node/components/containers/GridFooterContainer.js +7 -22
  882. package/node/components/containers/GridMainContainer.js +2 -13
  883. package/node/components/containers/GridOverlay.js +7 -23
  884. package/node/components/containers/GridRoot.js +16 -40
  885. package/node/components/containers/GridRootStyles.js +23 -26
  886. package/node/components/containers/GridToolbarContainer.js +8 -25
  887. package/node/components/containers/index.js +0 -8
  888. package/node/components/icons/index.js +0 -6
  889. package/node/components/index.js +0 -40
  890. package/node/components/menu/GridMenu.js +18 -50
  891. package/node/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -14
  892. package/node/components/menu/columnMenu/GridColumnMenu.js +0 -14
  893. package/node/components/menu/columnMenu/GridColumnMenuContainer.js +8 -23
  894. package/node/components/menu/columnMenu/GridColumnsMenuItem.js +3 -18
  895. package/node/components/menu/columnMenu/GridFilterMenuItem.js +6 -20
  896. package/node/components/menu/columnMenu/HideGridColMenuItem.js +9 -26
  897. package/node/components/menu/columnMenu/SortGridMenuItems.js +4 -20
  898. package/node/components/menu/columnMenu/index.js +0 -18
  899. package/node/components/menu/index.js +0 -4
  900. package/node/components/panel/GridColumnsPanel.js +53 -73
  901. package/node/components/panel/GridPanel.js +11 -32
  902. package/node/components/panel/GridPanelContent.js +5 -23
  903. package/node/components/panel/GridPanelFooter.js +5 -23
  904. package/node/components/panel/GridPanelHeader.js +5 -23
  905. package/node/components/panel/GridPanelWrapper.js +5 -23
  906. package/node/components/panel/GridPreferencesPanel.js +2 -17
  907. package/node/components/panel/filterPanel/GridFilterForm.js +85 -125
  908. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +10 -23
  909. package/node/components/panel/filterPanel/GridFilterInputDate.js +16 -37
  910. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +32 -62
  911. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +26 -49
  912. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +21 -46
  913. package/node/components/panel/filterPanel/GridFilterInputValue.js +23 -52
  914. package/node/components/panel/filterPanel/GridFilterPanel.js +59 -60
  915. package/node/components/panel/filterPanel/filterPanelUtils.js +0 -4
  916. package/node/components/panel/filterPanel/index.js +0 -16
  917. package/node/components/panel/index.js +0 -16
  918. package/node/components/toolbar/GridToolbar.js +9 -30
  919. package/node/components/toolbar/GridToolbarColumnsButton.js +7 -26
  920. package/node/components/toolbar/GridToolbarDensitySelector.js +12 -45
  921. package/node/components/toolbar/GridToolbarExport.js +24 -42
  922. package/node/components/toolbar/GridToolbarExportContainer.js +11 -39
  923. package/node/components/toolbar/GridToolbarFilterButton.js +15 -55
  924. package/node/components/toolbar/GridToolbarQuickFilter.js +13 -40
  925. package/node/components/toolbar/index.js +0 -13
  926. package/node/components/virtualization/GridVirtualScroller.js +5 -20
  927. package/node/components/virtualization/GridVirtualScrollerContent.js +7 -22
  928. package/node/components/virtualization/GridVirtualScrollerRenderZone.js +5 -20
  929. package/node/constants/defaultGridSlotsComponents.js +3 -18
  930. package/node/constants/envConstants.js +1 -0
  931. package/node/constants/gridClasses.js +3 -6
  932. package/node/constants/index.js +0 -8
  933. package/node/context/GridContextProvider.js +13 -17
  934. package/node/context/GridRootPropsContext.js +0 -5
  935. package/node/context/index.js +0 -2
  936. package/node/hooks/core/pipeProcessing/index.js +0 -8
  937. package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +11 -25
  938. package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -8
  939. package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -8
  940. package/node/hooks/core/strategyProcessing/index.js +0 -6
  941. package/node/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +1 -7
  942. package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +11 -33
  943. package/node/hooks/core/useGridApiInitialization.js +58 -33
  944. package/node/hooks/core/useGridErrorHandler.js +7 -8
  945. package/node/hooks/core/useGridInitialization.js +8 -17
  946. package/node/hooks/core/useGridLocaleText.js +1 -8
  947. package/node/hooks/core/useGridLoggerFactory.js +5 -16
  948. package/node/hooks/core/useGridStateInitialization.js +15 -34
  949. package/node/hooks/features/clipboard/useGridClipboard.js +7 -20
  950. package/node/hooks/features/columnGrouping/gridColumnGroupsSelector.js +18 -6
  951. package/node/hooks/features/columnGrouping/gridColumnGroupsUtils.js +79 -0
  952. package/node/hooks/features/columnGrouping/index.js +0 -2
  953. package/node/hooks/features/columnGrouping/useGridColumnGrouping.js +57 -108
  954. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +70 -174
  955. package/node/hooks/features/columnMenu/columnMenuSelector.js +0 -2
  956. package/node/hooks/features/columnMenu/index.js +0 -4
  957. package/node/hooks/features/columnMenu/useGridColumnMenu.js +10 -28
  958. package/node/hooks/features/columns/gridColumnsSelector.js +17 -89
  959. package/node/hooks/features/columns/gridColumnsUtils.js +43 -105
  960. package/node/hooks/features/columns/index.js +56 -20
  961. package/node/hooks/features/columns/useGridColumnSpanning.js +14 -26
  962. package/node/hooks/features/columns/useGridColumns.js +28 -78
  963. package/node/hooks/features/density/densitySelector.js +2 -9
  964. package/node/hooks/features/density/index.js +0 -4
  965. package/node/hooks/features/density/useGridDensity.js +12 -70
  966. package/node/hooks/features/dimensions/index.js +0 -13
  967. package/node/hooks/features/dimensions/useGridDimensions.js +22 -50
  968. package/node/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -2
  969. package/node/hooks/features/{editRows → editing}/index.js +4 -6
  970. package/node/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +69 -121
  971. package/node/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +15 -37
  972. package/node/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +69 -143
  973. package/node/hooks/features/events/useGridEvents.js +0 -2
  974. package/node/hooks/features/export/serializers/csvSerializer.js +2 -13
  975. package/node/hooks/features/export/useGridCsvExport.js +7 -25
  976. package/node/hooks/features/export/useGridPrintExport.js +40 -89
  977. package/node/hooks/features/export/utils.js +2 -15
  978. package/node/hooks/features/filter/gridFilterSelector.js +32 -66
  979. package/node/hooks/features/filter/gridFilterState.js +0 -3
  980. package/node/hooks/features/filter/gridFilterUtils.js +38 -100
  981. package/node/hooks/features/filter/index.js +0 -3
  982. package/node/hooks/features/filter/useGridFilter.js +39 -92
  983. package/node/hooks/features/focus/gridFocusStateSelector.js +10 -7
  984. package/node/hooks/features/focus/index.js +0 -4
  985. package/node/hooks/features/focus/useGridFocus.js +85 -64
  986. package/node/hooks/features/index.js +8 -36
  987. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +204 -165
  988. package/node/hooks/features/pagination/gridPaginationSelector.js +10 -21
  989. package/node/hooks/features/pagination/index.js +0 -2
  990. package/node/hooks/features/pagination/useGridPage.js +17 -41
  991. package/node/hooks/features/pagination/useGridPageSize.js +18 -42
  992. package/node/hooks/features/pagination/useGridPagination.js +5 -17
  993. package/node/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +0 -2
  994. package/node/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -1
  995. package/node/hooks/features/preferencesPanel/index.js +0 -6
  996. package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +22 -44
  997. package/node/hooks/features/{selection/gridSelectionSelector.js → rowSelection/gridRowSelectionSelector.js} +6 -10
  998. package/node/hooks/features/rowSelection/index.js +16 -0
  999. package/node/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +102 -151
  1000. package/node/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +7 -21
  1001. package/node/hooks/features/rows/gridRowsMetaSelector.js +0 -2
  1002. package/node/hooks/features/rows/gridRowsSelector.js +17 -34
  1003. package/node/hooks/features/rows/gridRowsUtils.js +48 -79
  1004. package/node/hooks/features/rows/index.js +0 -13
  1005. package/node/hooks/features/rows/useGridParamsApi.js +5 -50
  1006. package/node/hooks/features/rows/useGridRows.js +54 -96
  1007. package/node/hooks/features/rows/useGridRowsMeta.js +33 -70
  1008. package/node/hooks/features/rows/useGridRowsPreProcessors.js +2 -17
  1009. package/node/hooks/features/scroll/useGridScroll.js +22 -58
  1010. package/node/hooks/features/sorting/gridSortingSelector.js +9 -18
  1011. package/node/hooks/features/sorting/gridSortingUtils.js +2 -47
  1012. package/node/hooks/features/sorting/index.js +0 -3
  1013. package/node/hooks/features/sorting/useGridSorting.js +22 -70
  1014. package/node/hooks/features/statePersistence/useGridStatePersistence.js +1 -7
  1015. package/node/hooks/features/virtualization/useGridVirtualScroller.js +36 -105
  1016. package/node/hooks/index.js +0 -6
  1017. package/node/hooks/utils/index.js +0 -40
  1018. package/node/hooks/utils/useFirstRender.js +0 -6
  1019. package/node/hooks/utils/useGridApiContext.js +0 -7
  1020. package/node/hooks/utils/useGridApiEventHandler.js +13 -40
  1021. package/node/hooks/utils/useGridApiMethod.js +9 -13
  1022. package/node/hooks/utils/useGridApiRef.js +0 -5
  1023. package/node/hooks/utils/useGridInitializeState.js +2 -8
  1024. package/node/hooks/utils/useGridLogger.js +2 -8
  1025. package/node/hooks/utils/useGridNativeEventListener.js +0 -11
  1026. package/node/hooks/utils/useGridPrivateApiContext.js +22 -0
  1027. package/node/hooks/utils/useGridRootProps.js +0 -8
  1028. package/node/hooks/utils/useGridScrollFn.js +3 -11
  1029. package/node/hooks/utils/useGridSelector.js +0 -7
  1030. package/node/hooks/utils/useGridVisibleRows.js +1 -13
  1031. package/node/index.js +1 -22
  1032. package/node/internals/index.js +31 -93
  1033. package/node/lib/createDetectElementResize/index.js +14 -38
  1034. package/node/locales/arSD.js +8 -6
  1035. package/node/locales/bgBG.js +8 -6
  1036. package/node/locales/csCZ.js +10 -11
  1037. package/node/locales/daDK.js +7 -5
  1038. package/node/locales/deDE.js +0 -3
  1039. package/node/locales/elGR.js +15 -4
  1040. package/node/locales/enUS.js +0 -4
  1041. package/node/locales/esES.js +15 -5
  1042. package/node/locales/faIR.js +0 -3
  1043. package/node/locales/fiFI.js +2 -5
  1044. package/node/locales/frFR.js +4 -5
  1045. package/node/locales/heIL.js +4 -5
  1046. package/node/locales/huHU.js +7 -5
  1047. package/node/locales/index.js +0 -58
  1048. package/node/locales/itIT.js +4 -5
  1049. package/node/locales/jaJP.js +6 -5
  1050. package/node/locales/koKR.js +0 -3
  1051. package/node/locales/nbNO.js +4 -5
  1052. package/node/locales/nlNL.js +4 -5
  1053. package/node/locales/plPL.js +4 -5
  1054. package/node/locales/ptBR.js +4 -5
  1055. package/node/locales/roRO.js +4 -5
  1056. package/node/locales/ruRU.js +6 -11
  1057. package/node/locales/skSK.js +4 -11
  1058. package/node/locales/svSE.js +4 -5
  1059. package/node/locales/trTR.js +17 -20
  1060. package/node/locales/ukUA.js +21 -26
  1061. package/node/locales/viVN.js +11 -5
  1062. package/node/locales/zhCN.js +0 -3
  1063. package/node/locales/zhTW.js +4 -5
  1064. package/node/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
  1065. package/node/models/api/index.js +4 -103
  1066. package/node/models/colDef/index.js +0 -6
  1067. package/node/models/events/index.js +0 -6
  1068. package/node/models/gridColumnGrouping.js +1 -1
  1069. package/node/models/gridDensity.js +0 -3
  1070. package/node/models/gridEditRowModel.js +0 -5
  1071. package/node/models/gridFilterItem.js +0 -2
  1072. package/node/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
  1073. package/node/models/index.js +4 -56
  1074. package/node/models/params/{gridSortModelParams.js → gridColumnGroupHeaderParams.js} +0 -0
  1075. package/node/models/params/gridEditCellParams.js +0 -9
  1076. package/node/models/params/gridRowParams.js +0 -8
  1077. package/node/models/params/index.js +11 -39
  1078. package/node/themeAugmentation/index.js +0 -4
  1079. package/node/utils/EventManager.js +0 -18
  1080. package/node/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +2 -7
  1081. package/node/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -9
  1082. package/node/utils/createSelector.js +14 -22
  1083. package/node/utils/domUtils.js +2 -14
  1084. package/node/utils/exportAs.js +11 -8
  1085. package/node/utils/getGridLocalization.js +9 -17
  1086. package/node/utils/keyboardUtils.js +2 -36
  1087. package/node/utils/utils.js +7 -45
  1088. package/node/utils/warning.js +0 -6
  1089. package/package.json +5 -5
  1090. package/themeAugmentation/index.js +2 -1
  1091. package/themeAugmentation/props.d.ts +3 -5
  1092. package/utils/EventManager.js +0 -16
  1093. package/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +2 -5
  1094. package/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -7
  1095. package/utils/createSelector.d.ts +2 -1
  1096. package/utils/createSelector.js +13 -14
  1097. package/utils/domUtils.js +2 -6
  1098. package/utils/exportAs.js +11 -7
  1099. package/utils/getGridLocalization.js +0 -1
  1100. package/utils/keyboardUtils.js +3 -4
  1101. package/utils/utils.js +7 -34
  1102. package/utils/warning.js +0 -2
  1103. package/components/ErrorOverlay.d.ts +0 -8
  1104. package/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.d.ts +0 -4
  1105. package/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -35
  1106. package/hooks/features/editRows/index.d.ts +0 -1
  1107. package/hooks/features/editRows/index.js +0 -1
  1108. package/hooks/features/editRows/useGridCellEditing.new.d.ts +0 -4
  1109. package/hooks/features/editRows/useGridCellEditing.old.d.ts +0 -4
  1110. package/hooks/features/editRows/useGridCellEditing.old.js +0 -359
  1111. package/hooks/features/editRows/useGridEditing.old.d.ts +0 -11
  1112. package/hooks/features/editRows/useGridEditing.old.js +0 -167
  1113. package/hooks/features/editRows/useGridRowEditing.new.d.ts +0 -4
  1114. package/hooks/features/editRows/useGridRowEditing.old.d.ts +0 -4
  1115. package/hooks/features/editRows/useGridRowEditing.old.js +0 -334
  1116. package/hooks/features/selection/gridSelectionSelector.js +0 -9
  1117. package/hooks/features/selection/index.d.ts +0 -1
  1118. package/hooks/features/selection/index.js +0 -1
  1119. package/hooks/features/selection/useGridSelection.d.ts +0 -12
  1120. package/hooks/features/selection/useGridSelectionPreProcessors.d.ts +0 -4
  1121. package/hooks/utils/useGridApi.d.ts +0 -6
  1122. package/hooks/utils/useGridApi.js +0 -13
  1123. package/hooks/utils/useGridState.d.ts +0 -7
  1124. package/hooks/utils/useGridState.js +0 -13
  1125. package/legacy/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -35
  1126. package/legacy/hooks/features/editRows/index.js +0 -1
  1127. package/legacy/hooks/features/editRows/useGridCellEditing.old.js +0 -411
  1128. package/legacy/hooks/features/editRows/useGridEditing.old.js +0 -184
  1129. package/legacy/hooks/features/editRows/useGridRowEditing.old.js +0 -505
  1130. package/legacy/hooks/features/selection/gridSelectionSelector.js +0 -19
  1131. package/legacy/hooks/features/selection/index.js +0 -1
  1132. package/legacy/hooks/utils/useGridApi.js +0 -13
  1133. package/legacy/hooks/utils/useGridState.js +0 -13
  1134. package/models/gridSelectionModel.d.ts +0 -3
  1135. package/models/params/gridSortModelParams.d.ts +0 -20
  1136. package/modern/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -29
  1137. package/modern/hooks/features/editRows/index.js +0 -1
  1138. package/modern/hooks/features/editRows/useGridCellEditing.old.js +0 -355
  1139. package/modern/hooks/features/editRows/useGridEditing.old.js +0 -163
  1140. package/modern/hooks/features/editRows/useGridRowEditing.old.js +0 -326
  1141. package/modern/hooks/features/selection/gridSelectionSelector.js +0 -9
  1142. package/modern/hooks/features/selection/index.js +0 -1
  1143. package/modern/hooks/utils/useGridApi.js +0 -13
  1144. package/modern/hooks/utils/useGridState.js +0 -13
  1145. package/node/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -55
  1146. package/node/hooks/features/editRows/useGridCellEditing.old.js +0 -380
  1147. package/node/hooks/features/editRows/useGridEditing.old.js +0 -193
  1148. package/node/hooks/features/editRows/useGridRowEditing.old.js +0 -358
  1149. package/node/hooks/features/selection/index.js +0 -18
  1150. package/node/hooks/utils/useGridApi.js +0 -23
  1151. package/node/hooks/utils/useGridState.js +0 -23
package/CHANGELOG.md CHANGED
@@ -3,6 +3,873 @@
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
+ ## 6.0.0-alpha.10
7
+
8
+ _Dec 1, 2022_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve Ukrainian (uk-UA) and add Urdu (ur-PK) locales
13
+ - 📚 Documentation improvements
14
+ - 🐞 Bugfixes
15
+
16
+ ### `@mui/x-data-grid@v6.0.0-alpha.10` / `@mui/x-data-grid-pro@v6.0.0-alpha.10` / `@mui/x-data-grid-premium@v6.0.0-alpha.10`
17
+
18
+ ### Breaking changes
19
+
20
+ - [DataGrid] Removes `GridCell` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
21
+
22
+ Returning `null` in `column.renderCell` or `column.renderEditCell` now renders an empty cell instead of the default formatted value.
23
+
24
+ - [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
25
+
26
+ Properties `columnField` and `operatorValue` of `GridFilterItem` are renamed `field` and `operator`. And `operator` property is now required.
27
+
28
+ ```diff
29
+ filterModel: {
30
+ items: [{
31
+ - columnField: 'rating',
32
+ + field: 'rating',
33
+ - operatorValue: '>',
34
+ + operator: '>', // required
35
+ value: '2.5'
36
+ }],
37
+ },
38
+ ```
39
+
40
+ #### Changes
41
+
42
+ - [DataGrid] Fix row selection when clicking blank cell (#6974) @yami03
43
+ - [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
44
+ - [DataGrid] Removes `<GridCell />` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
45
+ - [DataGridPremium] Fix empty column group in Excel export (#7029) @alexfauquette
46
+ - [DataGridPremium] Update cache before hydrating columns (#7040) @m4theushw
47
+ - [DataGridPremium] Use custom cell component for grouping cell by default (#6692) @cherniavskii
48
+ - [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
49
+
50
+ ### `@mui/x-date-pickers@v6.0.0-alpha.10` / `@mui/x-date-pickers-pro@v6.0.0-alpha.10`
51
+
52
+ #### Breaking changes
53
+
54
+ - Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
55
+
56
+ The `dateRangeIcon` prop has been renamed to `dateIcon`:
57
+
58
+ ```diff
59
+ // Same on all other Date Time Picker variations
60
+ <DateTimePicker
61
+ componentsProps={{
62
+ tabs: {
63
+ - dateRangeIcon: <LightModeIcon />,
64
+ + dateIcon: <LightModeIcon />,
65
+ }
66
+ }}
67
+ />
68
+ ```
69
+
70
+ #### Changes
71
+
72
+ - [DateTimePicker] Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
73
+ - [pickers] Allow non-controlled usage of `TimeClock` (#6962) @flaviendelangle
74
+ - [pickers] Throw error when using adapter from `@date-io` (#6972) @flaviendelangle
75
+ - [l10n] Add Urdu (ur-PK) locale (#7007) @MBilalShafi
76
+ - [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
77
+
78
+ ### Docs
79
+
80
+ - [docs] Add Demos section on the pickers API pages (#6909) @flaviendelangle
81
+ - [docs] Add missing pickers migration docs (#7000) @LukasTy
82
+ - [docs] Fix broken link (#7048) @flaviendelangle
83
+ - [docs] Improve demo about customizing pagination (#6724) @m4theushw
84
+ - [docs] Keep track of localization completion (#7002) @alexfauquette
85
+ - [docs] Remove `LocalizationProvider` from previews (#6869) @flaviendelangle
86
+ - [docs] Remove the statement of support to RTL (#6521) @joserodolfofreitas
87
+ - [docs] Rework localization doc pages (#6625) @flaviendelangle
88
+ - [docs] Setup GitHub issue template for feedbacks about docs (#7026) @alexfauquette
89
+ - [docs] Test links with API page ignoring url hash (#7004) @alexfauquette
90
+ - [docs] Update API links from clock-picker to time-clock (#6993) @alexfauquette
91
+ - [docs] Use new pickers on the validation page (#7047) @flaviendelangle
92
+
93
+ ### Core
94
+
95
+ - [core] Remove useless type casting in field hooks (#7045) @flaviendelangle
96
+ - [test] Sync `test:unit` with monorepo (#6907) @oliviertassinari
97
+
98
+ ## 6.0.0-alpha.9
99
+
100
+ _Nov 24, 2022_
101
+
102
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
103
+
104
+ - 🎁 Introduce the v6 pickers, built on top of the field components [DatePicker](https://next.mui.com/x/react-date-pickers/date-picker/), [TimePicker](https://next.mui.com/x/react-date-pickers/time-picker/), [DateTimePicker](https://next.mui.com/x/react-date-pickers/date-time-picker/), [DateRangePicker](https://next.mui.com/x/react-date-pickers/date-range-picker/).
105
+
106
+ The old (legacy) components will be removed at the end of the v6 beta.
107
+
108
+ - 💅 Add support for `theme.vars` in the pickers and the DataGrid (#6784, #6778) @alexfauquette
109
+ - ✨ Improve DataGrid theme augmentation (#5818) @iigrik
110
+ - 📚 Documentation improvements
111
+ - 🐞 Bugfixes
112
+
113
+ ### `@mui/x-data-grid@v6.0.0-alpha.9` / `@mui/x-data-grid-pro@v6.0.0-alpha.9` / `@mui/x-data-grid-premium@v6.0.0-alpha.9`
114
+
115
+ ### Breaking changes
116
+
117
+ - <kbd>Ctrl</kbd> + <kbd>Enter</kbd> will no longer toggle the master detail panel (#6945) @MBilalShafi
118
+ You can restore the old behavior by listening to `cellKeyDown` and calling `apiRef.current.toggleDetailPanel()`.
119
+
120
+ - Remove unnecessary keyboard navigation events (#6863) @m4theushw
121
+ The `cellNavigationKeyDown` event was removed. Use `cellKeyDown` and check the key provided in the event argument.
122
+ The `columnHeaderNavigationKeyDown` event was removed. Use `columnHeaderKeyDown` and check the key provided in the event argument.
123
+
124
+ - Rename `rowsScroll` event to `scrollPositionChange` (#6957) @DanailH
125
+
126
+ #### Changes
127
+
128
+ - [DataGrid] Add spacing in `GridToolbar` for better visibility (#6904) @MBilalShafi
129
+ - [DataGrid] Improve typing for the theme in `styleOverrides` (#5818) @iigrik
130
+ - [DataGrid] Prevents master detail panel toggle with <kbd>Ctrl</kbd> + <kbd>Enter</kbd> (#6945) @MBilalShafi
131
+ - [DataGrid] Remove unnecessary keyboard navigation events (#6863) @m4theushw
132
+ - [DataGrid] Rename `ErrorOverlay` to `GridErrorOverlay` (#6946) @MBilalShafi
133
+ - [DataGrid] Stop exporting root base state selectors (#6912) @DanailH
134
+ - [DataGrid] Support `theme.vars` (#6784) @alexfauquette
135
+ - [DataGrid] Rename `rowsScroll` event to `scrollPositionChange` (#6957) @DanailH
136
+ - [DataGridPro] Fix lazy-loaded rows not working with `updateRows` API method (#6976) @cherniavskii
137
+ - [DataGridPremium] Improve typing for theme in `styleOverrides` (#6920) @m4theushw
138
+ - [l10n] Fix translation of `filterOperatorBefore` in Arabic (ar-SD) locale (#6884) @HassanGhazy
139
+
140
+ ### `@mui/x-date-pickers@v6.0.0-alpha.9` / `@mui/x-date-pickers-pro@v6.0.0-alpha.9`
141
+
142
+ #### Changes
143
+
144
+ - [DatePicker] Display week number (#6144) @alexfauquette
145
+ - [pickers] Clean `PickersCalendarHeader` slots (#6943) @flaviendelangle
146
+ - [pickers] Do not loose the translations when using nested `LocalizationProvider` with each a `localeText` prop (#6895) @flaviendelangle
147
+ - [pickers] Fix calendar header switch view button hover circle (#6938) @rajendraarora16
148
+ - [pickers] Fix focus management (#6914) @alexfauquette
149
+ - [pickers] Fix usage with Shadow DOM (#6952) @flaviendelangle
150
+ - [pickers] New `MobileDateRangePicker`, `DesktopDateRangePicker`, `DateRangePicker` and `StaticDateRangePicker` based on `MultiInputDateRangeField` (#6888) @flaviendelangle
151
+ - [pickers] Support `theme.vars` (#6778) @alexfauquette
152
+
153
+ ### Docs
154
+
155
+ - [docs] Add new "Expired package version" error type (#6937) @oliviertassinari
156
+ - [docs] Add support for API pages of unstable components (#6981) @flaviendelangle
157
+ - [docs] Create docs for the new date pickers (#6902) @flaviendelangle
158
+ - [docs] Create docs for the new time, date time and date range pickers (#6958) @flaviendelangle
159
+ - [docs] Fix demos live edit (#6975) @oliviertassinari
160
+ - [docs] Fix toggle button bug in demos in Custom Components page (#6913) @01zulfi
161
+ - [docs] Remove partial Portuguese and Chinese translations of the pickers pages (#6893) @flaviendelangle
162
+
163
+ ### Core
164
+
165
+ - [core] Cleanup `describeValidation` (#6942) @flaviendelangle
166
+ - [core] Group renovate GitHub Action dependency updates @oliviertassinari
167
+ - [core] Introduce `x-codemod` package (#6876) @LukasTy
168
+ - [core] Update minimum supported version of Node.js to 14.0.0 (#6966) @cherniavskii
169
+ - [core] Upgrade monorepo (#6905) @cherniavskii
170
+ - [core] Upgrade node to v14.21 (#6916) @piwysocki
171
+ - [core] Upgrade ESLint (#6738) @Janpot
172
+ - [test] Test validation on date range view (#6941) @alexfauquette
173
+
174
+ ## 6.0.0-alpha.8
175
+
176
+ _Nov 17, 2022_
177
+
178
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
179
+
180
+ - 🎁 Support aggregating data from multiple row fields (#6656) @cherniavskii
181
+ - 📚 Documentation improvements
182
+ - 🐞 Bugfixes
183
+
184
+ ### `@mui/x-data-grid@v6.0.0-alpha.8` / `@mui/x-data-grid-pro@v6.0.0-alpha.8` / `@mui/x-data-grid-premium@v6.0.0-alpha.8`
185
+
186
+ #### Changes
187
+
188
+ - [DataGrid] Fix `ErrorOverlay` not receiving defined input props (#6819) @banoth-ravinder
189
+ - [DataGrid] Fix conflict with the latest version of `@types/react` (#6797) @vizv
190
+ - [DataGrid] Make more `apiRef` methods private (#6700) @cherniavskii
191
+ - [DataGrid] Provide a clear error message when upgrading (#6685) @oliviertassinari
192
+ - [DataGridPremium] Allow to customize the indent of group expansion toggle (#6837) @MBilalShafi
193
+ - [DataGridPremium] Support aggregating data from multiple row fields (#6656) @cherniavskii
194
+ - [DataGridPro] Fix detail panel not working with `getRowSpacing` prop (#6707) @cherniavskii
195
+ - [DataGridPro] Opt-out for column jump back on re-order (#6733) @gavbrennan
196
+ - [l10n] Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
197
+
198
+ ### `@mui/x-date-pickers@v6.0.0-alpha.8` / `@mui/x-date-pickers-pro@v6.0.0-alpha.8`
199
+
200
+ #### Breaking changes
201
+
202
+ - The `ClockPicker` view component has been renamed to `TimeClock` to better fit its usage:
203
+
204
+ ```diff
205
+ -<ClockPicker {...props} />
206
+ +<TimeClock {...props} />
207
+ ```
208
+
209
+ Component name in the theme has changed as well:
210
+
211
+ ```diff
212
+ -MuiClockPicker: {
213
+ +MuiTimeClock: {
214
+ ```
215
+
216
+ #### Changes
217
+
218
+ - [pickers] Fix typing and prop drilling on `DateRangeCalendar` and multi input range fields (#6852) @flaviendelangle
219
+ - [pickers] Pass the `ampm` prop from the new pickers to their field (#6868) @flaviendelangle
220
+ - [pickers] Rename `CalendarPickerView`, `ClockPickerView` and `CalendarOrClockPickerView` (#6855) @flaviendelangle
221
+ - [pickers] Rename `ClockPicker` into `TimeClock` (#6851) @flaviendelangle
222
+
223
+ ### Docs
224
+
225
+ - [docs] Add `dayjs` to the dependencies (#6862) @m4theushw
226
+ - [docs] Clarify how the Row Pinning works with other features of the DataGrid (#6853) @cherniavskii
227
+ - [docs] Fix typo in Export page (#6848) @m4theushw
228
+ - [docs] Group picker pages (#6369) @flaviendelangle
229
+ - [docs] Remove default prop and improve format (#6781) @oliviertassinari
230
+ - [docs] Sync prism-okaidia.css with source (#6820) @oliviertassinari
231
+
232
+ ### Core
233
+
234
+ - [core] Convert scripts to ESM (#6789) @LukasTy
235
+ - [core] Feedback on branch protection @oliviertassinari
236
+ - [core] Fix `test-types` out of memory error (#6850) @LukasTy
237
+ - [core] Import from `@mui/utils` instead of `@mui/material/utils` (#6816) @cherniavskii
238
+ - [core] Show the whole version to make blame easier @oliviertassinari
239
+ - [core] Small changes on new pickers internals (#6840) @flaviendelangle
240
+ - [core] Remove prettier scripts (#6815) @Janpot
241
+ - [license] Polish error messages (#6881) @oliviertassinari
242
+ - [test] Verify `onError` call on the pickers (#6771) @alexfauquette
243
+
244
+ ## 6.0.0-alpha.7
245
+
246
+ _Nov 10, 2022_
247
+
248
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
249
+
250
+ - ⚙️ Removed everything marked as `@deprecated`
251
+ - 📚 Documentation improvements
252
+ - 🐞 Bugfixes
253
+
254
+ ### `@mui/x-data-grid@v6.0.0-alpha.7` / `@mui/x-data-grid-pro@v6.0.0-alpha.7` / `@mui/x-data-grid-premium@v6.0.0-alpha.7`
255
+
256
+ #### Changes
257
+
258
+ - [DataGrid] Fix cell focus causing scroll jump when virtualization enabled (#6785) @yaredtsy
259
+ - [DataGrid] Remove items marked as `@deprecated` (#6505) @DanailH
260
+
261
+ ### `@mui/x-date-pickers@v6.0.0-alpha.7` / `@mui/x-date-pickers-pro@v6.0.0-alpha.7`
262
+
263
+ #### Changes
264
+
265
+ - [fields] Rename section names to match the picker view nomenclature (#6779) @flaviendelangle
266
+ - [pickers] Fix pickers toolbar styling (#6793) @LukasTy
267
+ - [pickers] Improve validation JSDoc descriptions (#6777) @flaviendelangle
268
+ - [pickers] New `MobileDateTimePicker`, `DesktopDateTimePicker`, `DateTimePicker` and `StaticDateTimePicker` based on `DateTimeField` (#6767) @flaviendelangle
269
+ - [pickers] New `MobileTimePicker`, `DesktopTimePicker`, `TimePicker` and `StaticTimePicker` based on `TimeField` (#6728) @flaviendelangle
270
+ - [pickers] Support the `onError` prop and add context on the `onChange` prop (#6731) @flaviendelangle
271
+
272
+ ### Docs
273
+
274
+ - [docs] Add missing Pro header suffix (#6775) @oliviertassinari
275
+ - [docs] Upgrade to Next.js 13 (#6790) @cherniavskii
276
+
277
+ ### Core
278
+
279
+ - [core] Add OSSF Scorecard action (#6760) @oliviertassinari
280
+ - [core] Fix Pinned-Dependencies @oliviertassinari
281
+ - [core] Fix Scorecard fail Action @oliviertassinari
282
+ - [core] Pin GitHub Action dependencies (#6739) @renovate[bot]
283
+ - [core] Remove default access to GitHub action scopes @oliviertassinari
284
+ - [test] Fix test case name: Pro-> Premium @oliviertassinari
285
+
286
+ ## 6.0.0-alpha.6
287
+
288
+ _Nov 4, 2022_
289
+
290
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
291
+
292
+ - 🎁 Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
293
+
294
+ ```tsx
295
+ <DateCalendar defaultValue={dayjs()} />
296
+ <MonthCalendar defaultValue={dayjs()} />
297
+ <YearCalendar defaultValue={dayjs()} />
298
+ ```
299
+
300
+ - 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
301
+ - 📚 Documentation improvements
302
+ - 🐞 Bugfixes
303
+
304
+ ### `@mui/x-data-grid@v6.0.0-alpha.6` / `@mui/x-data-grid-pro@v6.0.0-alpha.6` / `@mui/x-data-grid-premium@v6.0.0-alpha.6`
305
+
306
+ #### Breaking changes
307
+
308
+ - The `disableIgnoreModificationsIfProcessingProps` prop has been removed and its behavior when `true` was incorporated as the default behavior.
309
+ The old behavior can be restored by using `apiRef.current.stopRowEditMode({ ignoreModifications: true })` or `apiRef.current.stopCellEditMode({ ignoreModifications: true })`.
310
+
311
+ #### Changes
312
+
313
+ - [DataGrid] Add `rowSelection` prop (#6499) @m4theushw
314
+ - [DataGrid] Avoid future regression with React 19 (#6638) @oliviertassinari
315
+ - [DataGrid] Refactor `@mui/material` imports to `@mui/utils` (#6569) @LukasTy
316
+ - [DataGrid] Remove `disableIgnoreModificationsIfProcessingProps` prop (#6640) @m4theushw
317
+ - [DataGrid] Separate private and public `apiRef` properties (#6388) @cherniavskii
318
+
319
+ ### `@mui/x-date-pickers@v6.0.0-alpha.6` / `@mui/x-date-pickers-pro@v6.0.0-alpha.6`
320
+
321
+ #### Changes
322
+
323
+ - [DateRangePicker] Fix input focused style and mobile behaviour (#6645) @LukasTy
324
+ - [fields] Update sections when the locale changes (#6649) @flaviendelangle
325
+ - [pickers] Add Ukrainian (uk-UA) locale (#6661) @Dufran
326
+ - [pickers] Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
327
+ - [pickers] Export other adapters derived from moment or date-fns (#6571) @alexfauquette
328
+ - [pickers] New `MobileDatePicker` and `DatePicker` based on `DateField` (#6690) @flaviendelangle
329
+ - [pickers] New `StaticDatePicker` component (#6708) @flaviendelangle
330
+ - [pickers] Rename `inputFormat` prop to `format` on the new pickers (#6722) @flaviendelangle
331
+
332
+ ### Core
333
+
334
+ - [core] Fix `typescript:ci` failures (#6705) @LukasTy
335
+ - [core] Fixes for upcoming eslint upgrade (#6667) @Janpot
336
+ - [core] Pin GitHub Action to digests (#6683) @oliviertassinari
337
+
338
+ ## 6.0.0-alpha.5
339
+
340
+ _Oct 31, 2022_
341
+
342
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
343
+
344
+ - ⚡ Fix memory leak during unmount of the DataGrid (#6620) @cherniavskii
345
+ - 📝 New guide for migrating pickers from v5 to v6 (#6472) @flaviendelangle
346
+ - 🎁 Allow to disable the autofocus of the search field when opening the column visibility panel (#6444) @e-cloud
347
+ - 🐞 Bugfixes
348
+
349
+ ### `@mui/x-data-grid@v6.0.0-alpha.5` / `@mui/x-data-grid-pro@v6.0.0-alpha.5` / `@mui/x-data-grid-premium@v6.0.0-alpha.5`
350
+
351
+ #### Breaking changes
352
+
353
+ - Stop exporting `gridColumnsSelector` (#6693) @m4theushw
354
+
355
+ The `gridColumnsSelector` was deprecated during v5 and is now removed from the export list.
356
+
357
+ Please consider using one of the following selectors as a replacement:
358
+
359
+ - `gridColumnFieldsSelector`, to obtain the column fields in the order they appear on the screen;
360
+ - `gridColumnLookupSelector`, to access column definitions by field;
361
+ - `gridColumnVisibilityModelSelector`, for the visibility state of each column.
362
+
363
+ #### Changes
364
+
365
+ - [DataGrid] Allow to disable autofocusing the search field in the columns panel (#6444) @e-cloud
366
+ - [DataGrid] Fix `setRows` method not persisting new rows data after `loading` prop change (#6493) @cherniavskii
367
+ - [DataGrid] Fix memory leak on grid unmount (#6620) @cherniavskii
368
+ - [DataGrid] Rename `GridColumnsState['all']` to `GridColumnsState['orderedFields']` (#6562) @DanailH
369
+ - [DataGrid] Remove `React.memo` from `GridCellCheckboxRenderer` (#6655) @mattcorner
370
+ - [DataGrid] Stop exporting `gridColumnsSelector` (#6693)
371
+ - [l10n] Improve Bulgarian (bg-BG) locale (#6578) @AtanasVA
372
+
373
+ ### `@mui/x-date-pickers@v6.0.0-alpha.5` / `@mui/x-date-pickers-pro@v6.0.0-alpha.5`
374
+
375
+ #### Breaking changes
376
+
377
+ - [pickers] Rename remaining `private` components (#6550) @LukasTy
378
+ Previously we had 4 component names with `Private` prefix in order to avoid breaking changes in v5.
379
+ These components were renamed:
380
+
381
+ - `PrivatePickersMonth` -> `MuiPickersMonth`
382
+ - `PrivatePickersSlideTransition` -> `MuiPickersSlideTransition`
383
+ - `PrivatePickersToolbarText` -> `MuiPickersToolbarText`
384
+ - `PrivatePickersYear` -> `MuiPickersYear`
385
+
386
+ Manual style overriding will need to use updated classes:
387
+
388
+ ```diff
389
+ -.PrivatePickersMonth-root {
390
+ +.MuiPickersMonth-root {
391
+
392
+ -.PrivatePickersSlideTransition-root {
393
+ +.MuiPickersSlideTransition-root {
394
+
395
+ -.PrivatePickersToolbarText-root {
396
+ +.MuiPickersToolbarText-root {
397
+
398
+ -.PrivatePickersYear-root {
399
+ +.MuiPickersYear-root {
400
+ ```
401
+
402
+ Component name changes are also reflected in `themeAugmentation`:
403
+
404
+ ```diff
405
+ const theme = createTheme({
406
+ components: {
407
+ - PrivatePickersMonth: {
408
+ + MuiPickersMonth: {
409
+ // overrides
410
+ },
411
+ - PrivatePickersSlideTransition: {
412
+ + MuiPickersSlideTransition: {
413
+ // overrides
414
+ },
415
+ - PrivatePickersToolbarText: {
416
+ + MuiPickersToolbarText: {
417
+ // overrides
418
+ },
419
+ - PrivatePickersYear: {
420
+ + MuiPickersYear: {
421
+ // overrides
422
+ },
423
+ },
424
+ });
425
+ ```
426
+
427
+ #### Changes
428
+
429
+ - [DateTimePicker] Fix toolbar time order when `theme.rtl=true` (#6636) @alexfauquette
430
+ - [pickers] Import fixes for mask editing (#6623) @alexfauquette
431
+ - [pickers] Rename remaining `private` components (#6550) @LukasTy
432
+ - [pickers] New `DesktopDatePicker` based on `DateField` (#6548) @flaviendelangle
433
+
434
+ ### Docs
435
+
436
+ - [docs] Add feedback in next doc (#6591) @alexfauquette
437
+ - [docs] Check link validity in PR (#6497) @alexfauquette
438
+ - [docs] Disable translations (#6560) @cherniavskii
439
+ - [docs] Fix typo in DataGrid demo page (#6632) @banoth-ravinder
440
+ - [docs] New page to migrate pickers from v5 to v6 (#6472) @flaviendelangle
441
+ - [docs] Remove broken welcome page (#6585) @alexfauquette
442
+ - [docs] Mark data grid column group as available (#6660) @alexfauquette
443
+ - [docs] Fix double space @oliviertassinari
444
+
445
+ ### Core
446
+
447
+ - [core] Fix duplicate CodeQL build @oliviertassinari
448
+ - [core] Fix spreading on validation page (#6624) @flaviendelangle
449
+ - [core] Small TypeScript improvements (#6575) @flaviendelangle
450
+ - [core] Upgrade monorepo (#6594) @oliviertassinari
451
+ - [core] Change reproduction position (#6621) @oliviertassinari
452
+ - [core] Fix permissions in `no-response` workflow (#6658) @cherniavskii
453
+ - [core] Remove legacy migration function (#6669) @oliviertassinari
454
+ - [license] Improve the license content (#6459) @oliviertassinari
455
+ - [test] Test Arrow up/down on every token (#6563) @alexfauquette
456
+
457
+ ## 6.0.0-alpha.4
458
+
459
+ _Oct 20, 2022_
460
+
461
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
462
+
463
+ - 📝 Manage pickers' toolbar customization with slots
464
+ - 🐞 Bugfixes
465
+ - 🌍 Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) @ramazansancar
466
+
467
+ ### `@mui/x-data-grid@v6.0.0-alpha.4` / `@mui/x-data-grid-pro@v6.0.0-alpha.4` / `@mui/x-data-grid-premium@v6.0.0-alpha.4`
468
+
469
+ #### Breaking changes
470
+
471
+ - To avoid confusion with the props that will be added for the cell selection feature, some props related to row selection were renamed to have "row" in their name.
472
+ The renamed props are the following:
473
+
474
+ | Old name | New name |
475
+ | -------------------------- | ----------------------------- |
476
+ | `selectionModel` | `rowSelectionModel` |
477
+ | `onSelectionModelChange` | `onRowSelectionModelChange` |
478
+ | `disableSelectionOnClick` | `disableRowSelectionOnClick` |
479
+ | `disableMultipleSelection` | `disableMultipleRowSelection` |
480
+
481
+ - The `gridSelectionStateSelector` selector was renamed to `gridRowSelectionStateSelector`.
482
+
483
+ - The `selectionChange` event was renamed to `rowSelectionChange`.
484
+
485
+ #### Changes
486
+
487
+ - [DataGrid] Add `searchPredicate` prop to `GridColumnsPanel` component (#6557) @cherniavskii
488
+ - [DataGrid] Support keyboard navigation in column group header (#5947) @alexfauquette
489
+ - [DataGrid] Fix grid not updating state on `rowCount` prop change (#5982) @cherniavskii
490
+ - [DataGrid] Rename selection props (#6556) @m4theushw
491
+ - [l10n] Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) @ramazansancar
492
+
493
+ ### `@mui/x-date-pickers@v6.0.0-alpha.4` / `@mui/x-date-pickers-pro@v6.0.0-alpha.4`
494
+
495
+ #### Breaking changes
496
+
497
+ - The `ToolbarComponent` has been replaced by a `Toolbar` component slot.
498
+ You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props):
499
+
500
+ ```diff
501
+ // Same on all other pickers
502
+ <DatePicker
503
+ - ToolbarComponent: MyToolbar,
504
+ + components={{ Toolbar: MyToolbar }}
505
+ />
506
+ ```
507
+
508
+ - The `toolbarPlaceholder` and `toolbarFormat` props have been moved to the `toolbar` components props slot:
509
+
510
+ ```diff
511
+ // Same on all other pickers
512
+ <DatePicker
513
+ - toolbarPlaceholder="__"
514
+ - toolbarFormat="DD / MM / YYYY"
515
+ + componentsProps={{
516
+ + toolbar: {
517
+ + toolbarPlaceholder: '__',
518
+ + toolbarFormat: 'DD / MM / YYYY',
519
+ + }
520
+ + }}
521
+ />
522
+ ```
523
+
524
+ - The `toolbarTitle` prop has been moved to the localization object:
525
+
526
+ ```diff
527
+ // Same on all other pickers
528
+ <DatePicker
529
+ - toolbarTitle="Title"
530
+ + localeText={{ toolbarTitle: 'Title' }}
531
+ />
532
+ ```
533
+
534
+ - The toolbar related translation keys have been renamed to better fit their usage:
535
+
536
+ ```diff
537
+ // Same on all other pickers
538
+ <DatePicker
539
+ localeText={{
540
+ - datePickerDefaultToolbarTitle: 'Date Picker',
541
+ + datePickerToolbarTitle: 'Date Picker',
542
+
543
+ - timePickerDefaultToolbarTitle: 'Time Picker',
544
+ + timePickerToolbarTitle: 'Time Picker',
545
+
546
+ - dateTimePickerDefaultToolbarTitle: 'Date Time Picker',
547
+ + dateTimePickerToolbarTitle: 'Date Time Picker',
548
+
549
+ - dateRangePickerDefaultToolbarTitle: 'Date Range Picker',
550
+ + dateRangePickerToolbarTitle: 'Date Range Picker',
551
+ }}
552
+ />
553
+ ```
554
+
555
+ - The `onChange` / `openView` props on the toolbar have been renamed `onViewChange` / `view`
556
+
557
+ #### Changes
558
+
559
+ - [fields] Add a `validationError` property to the `onChange` callback (#6539) @flaviendelangle
560
+ - [fields] Distinguish start and end input error on multi input fields (#6503) @flaviendelangle
561
+ - [pickers] Clean the `Tabs` component slot (#6543) @flaviendelangle
562
+ - [pickers] Fix localization of the placeholder (#6547) @alexfauquette
563
+ - [pickers] Fix TypeScript issues (#6322) @flaviendelangle
564
+ - [pickers] Improve error consistency between single and multiple range pickers (#6561) @alexfauquette
565
+ - [pickers] Refactor `@mui/material` imports to `@mui/utils` (#6443) @LukasTy
566
+ - [pickers] Replace toolbar's props by a component slot (#6445) @flaviendelangle
567
+
568
+ ### Docs
569
+
570
+ - [docs] Enable inlined preview for disabled date picker (#6477) @oliviertassinari
571
+ - [docs] Fix 404 errors (#6541) @alexfauquette
572
+ - [docs] Fix broken links on field pages (#6501) @flaviendelangle
573
+ - [docs] Improve markdownlint (#6518) @oliviertassinari
574
+
575
+ ### Core
576
+
577
+ - [core] Run CodeQL only on schedule @oliviertassinari
578
+ - [core] Fix trailing spaces and git diff format (#6523) @oliviertassinari
579
+ - [core] Harden GitHub Actions permissions (#6396) @step-security-bot
580
+ - [core] Improve the playground DX (#6514) @oliviertassinari
581
+ - [core] Link Netlify in the danger comment (#6513) @oliviertassinari
582
+ - [core] Organize tests for pickers slots (#6546) @flaviendelangle
583
+ - [core] Remove outdated `docsearch.js` dependency (#6242) @oliviertassinari
584
+ - [core] Upgrade monorepo (#6549) @cherniavskii
585
+ - [test] Add validation test on range pickers (#6504) @alexfauquette
586
+ - [test] Remove BrowserStack (#6263) @DanailH
587
+
588
+ ## 6.0.0-alpha.3
589
+
590
+ _Oct 13, 2022_
591
+
592
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
593
+
594
+ - ⌚️ New components to edit date and time with <kbd>keyboard</kbd>—without using any modal or dropdown UI.
595
+ Please check out our [documentation](https://next.mui.com/x/react-date-pickers/fields/) to discover those new components.
596
+
597
+ - [`DateField`](https://next.mui.com/x/react-date-pickers/date-field/) to edit date
598
+ - [`TimeField`](https://next.mui.com/x/react-date-pickers/time-field/) to edit time
599
+ - [`DateTimeField`](https://next.mui.com/x/react-date-pickers/date-time-field/) to edit date and time
600
+ - [`MultiInputDateRangeField` / `SingleInputDateRangeField`](https://next.mui.com/x/react-date-pickers/date-range-field/) to edit date range
601
+ - [`MultiInputTimeRangeField`](https://next.mui.com/x/react-date-pickers/time-range-field/) to edit time range with two inputs
602
+ - [`MultiInputDateTimeRangeField`](https://next.mui.com/x/react-date-pickers/date-time-range-field/) to edit date and time range with two inputs
603
+
604
+ ⚠️ These components are unstable.
605
+ They might receive breaking changes on their props to have the best components possible by the time of the stable release.
606
+
607
+ - 📝 Allow to limit to one filter per column for `DataGridPro` and `DataGridPremium` (#6333) @MBilalShafi
608
+ - 📚 New [page describing the validation props on each picker](https://next.mui.com/x/react-date-pickers/validation/) (#6064) @flaviendelangle
609
+ - 📚 Documentation improvements
610
+ - 🐞 Bugfixes
611
+
612
+ ### `@mui/x-data-grid@v6.0.0-alpha.3` / `@mui/x-data-grid-pro@v6.0.0-alpha.3` / `@mui/x-data-grid-premium@v6.0.0-alpha.3`
613
+
614
+ #### Breaking changes
615
+
616
+ - [DataGrid] Remove legacy editing API
617
+
618
+ The editing API that is enabled by default was replaced with a new API that contains better support for server-side persistence, validation and customization. This new editing feature was already available in v5 under the `newEditingApi` experimental flag. In v6, this flag can be removed.
619
+
620
+ ```diff
621
+ <DataGrid
622
+ - experimentalFeatures={{ newEditingApi: true }}
623
+ />
624
+ ```
625
+
626
+ For users that didn't migrate to the new editing API in v5, additional work may be needed because the new API is not equivalent to the legacy API. Although, some migration steps are available to help in this task.
627
+
628
+ - The `editCellPropsChange` event was removed. If you still need it please file a new issue so we can propose an alternative.
629
+ - The `cellEditCommit` event was removed and the `processRowUpdate` prop can be used in place. More information, check the [docs](https://next.mui.com/x/react-data-grid/editing/#persistence) section about the topic.
630
+ - The `editRowsModel` and `onEditRowsModelChange` props were removed. The [`cellModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) props can be used to achieve the same goal.
631
+ - The following API methods were removed:
632
+ - Use `apiRef.current.stopCellEditMode` to replace `apiRef.current.commitCellChange`
633
+ - Use `apiRef.current.startCellEditMode` to replace `apiRef.current.setCellMode(id, field, 'edit')`
634
+ - Use `apiRef.current.stopRowEditMode` to replace `apiRef.current.commitRowChange`
635
+ - Use `apiRef.current.startRowMode` to replace `apiRef.current.setRowMode(id, 'edit')`
636
+ - Use the [`cellModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) props to replace `apiRef.current.setEditRowsModel`
637
+
638
+ #### Changes
639
+
640
+ - [DataGrid] Fix start edit mode with printable character in React 18 (#6257) @m4theushw
641
+ - [DataGrid] Remove legacy editing API (#6016) @m4theushw
642
+ - [DataGrid] Simplify `useGridApiContext` and `useGridApiRef` type overrides (#6423) @cherniavskii
643
+ - [DataGrid] Use generics instead of verbose state overrides (#6409) @cherniavskii
644
+ - [DataGridPro] Allow to limit to one filter per column (#6333) @MBilalShafi
645
+
646
+ ### `@mui/x-date-pickers@v6.0.0-alpha.3` / `@mui/x-date-pickers-pro@v6.0.0-alpha.3`
647
+
648
+ #### Breaking changes
649
+
650
+ - All the props used by the mobile and desktop wrappers to override components or components' props have been replaced by component slots. You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props).
651
+
652
+ Some of the names have also been prefixed by `desktop` when it was unclear that the behavior was only applied on the desktop version of the pickers (or the responsive version when used on a desktop).
653
+
654
+ The `DialogProps` prop has been replaced by a `dialog` component props slot on responsive and mobile pickers:
655
+
656
+ ```diff
657
+ // Same on MobileDatePicker, DateTimePicker, MobileDateTimePicker,
658
+ // TimePicker, MobileTimePicker, DateRangePicker and MobileDateRangePicker.
659
+ <DatePicker
660
+ - DialogProps={{ backgroundColor: 'red' }}
661
+ + componentsProps={{ dialog: { backgroundColor: 'red }}}
662
+ />
663
+ ```
664
+
665
+ The `PaperProps` prop has been replaced by a `desktopPaper` component props slot on all responsive and desktop pickers:
666
+
667
+ ```diff
668
+ // Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
669
+ // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
670
+ <DatePicker
671
+ - PaperProps={{ backgroundColor: 'red' }}
672
+ + componentsProps={{ desktopPaper: { backgroundColor: 'red }}}
673
+ />
674
+ ```
675
+
676
+ The `PopperProps` prop has been replaced by a `popper` component props slot on all responsive and desktop pickers:
677
+
678
+ ```diff
679
+ // Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
680
+ // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
681
+ <DatePicker
682
+ - PopperProps={{ onClick: handleClick }}
683
+ + componentsProps={{ popper: { onClick: handleClick }}}
684
+ />
685
+ ```
686
+
687
+ The `TransitionComponent` prop has been replaced by a `DesktopTransition` component slot on all responsive and desktop pickers:
688
+
689
+ ```diff
690
+ // Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
691
+ // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
692
+ <DatePicker
693
+ - TransitionComponent={Fade}
694
+ + components={{ DesktopTransition: Fade }}
695
+ />
696
+ ```
697
+
698
+ The `TrapFocusProps` prop has been replaced by a `desktopTrapFocus` component props slot on all responsive and desktop pickers:
699
+
700
+ ```diff
701
+ // Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
702
+ // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
703
+ <DatePicker
704
+ - TrapFocusProps={{ isEnabled: () => false }}
705
+ + componentsProps={{ desktopTrapFocus: { isEnabled: () => false }}}
706
+ />
707
+ ```
708
+
709
+ - The view components allowing to pick a date or parts of a date without an input have been renamed to better fit their usage:
710
+
711
+ ```diff
712
+ -<CalendarPicker {...props} />
713
+ +<DateCalendar {...props} />
714
+ ```
715
+
716
+ ```diff
717
+ -<DayPicker {...props} />
718
+ +<DayCalendar {...props} />
719
+ ```
720
+
721
+ ```diff
722
+ -<CalendarPickerSkeleton {...props} />
723
+ +<DayCalendarSkeleton {...props} />
724
+ ```
725
+
726
+ ```diff
727
+ -<MonthPicker {...props} />
728
+ +<MonthCalendar {...props} />
729
+ ```
730
+
731
+ ```diff
732
+ -<YearPicker {...props} />
733
+ +<YearCalendar {...props} />
734
+ ```
735
+
736
+ - Component names in the theme have changed as well:
737
+
738
+ ```diff
739
+ -MuiCalendarPicker: {
740
+ +MuiDateCalendar: {
741
+ ```
742
+
743
+ ```diff
744
+ -MuiDayPicker: {
745
+ +MuiDayCalendar: {
746
+ ```
747
+
748
+ ```diff
749
+ -MuiCalendarPickerSkeleton: {
750
+ +MuiDayCalendarSkeleton: {
751
+ ```
752
+
753
+ ```diff
754
+ -MuiMonthPicker: {
755
+ +MuiMonthCalendar: {
756
+ ```
757
+
758
+ ```diff
759
+ -MuiYearPicker: {
760
+ +MuiYearCalendar: {
761
+ ```
762
+
763
+ #### Changes
764
+
765
+ - [DatePicker] Allows to fix the number of week displayed (#6299) @alexfauquette
766
+ - [DateRangePicker] Fix calendar day outside of month layout shifting on hover (#6448) @alexfauquette
767
+ - [fields] New components: `MultiInputDateTimeRangePicker` and `MultiInputTimeRangePicker` (#6392) @alexfauquette
768
+ - [fields] Prepare the field exports for the public release (#6467) @flaviendelangle
769
+ - [fields] Support paste in single section (#6422) @alexfauquette
770
+ - [pickers] Add field placeholders to the locale (#6337) @flaviendelangle
771
+ - [pickers] Do not use `Partial` for `components` and `componentsProps` props (#6463) @flaviendelangle
772
+ - [pickers] New component: `DateRangeCalendar` (#6416) @flaviendelangle
773
+ - [pickers] Replace the `Picker` prefix in the view component by `Calendar` (eg: `MonthPicker` => `MonthCalendar`) (#6389) @flaviendelangle
774
+ - [pickers] Support pasting on fields (#6364) @flaviendelangle
775
+ - [pickers] Use slots in the mobile and desktop wrappers instead of `XXXComponent` and `XXXProps` (#6381) @flaviendelangle
776
+
777
+ ### Docs
778
+
779
+ - [docs] Add migration to DataGrid v6 page (#6235) @m4theushw
780
+ - [docs] Create first publishable version of the field doc (#6323) @flaviendelangle
781
+ - [docs] Fix trailing spaces in the readme @oliviertassinari
782
+ - [docs] New page for the pickers: Validation (#6064) @flaviendelangle
783
+ - [docs] Organize migration pages (#6480) @flaviendelangle
784
+
785
+ ### Core
786
+
787
+ - [core] Add CodeQL workflow (#6387) @DanailH
788
+ - [core] Add missing breaking change to the changelog (#6471) @flaviendelangle
789
+ - [core] Fix playground structure (#6466) @LukasTy
790
+ - [core] Fix tests for pasting on fields (#6465) @flaviendelangle
791
+ - [core] Remove absolute link (#6420) @flaviendelangle
792
+ - [core] Remove unused `react-text-mask` package (#6408) @LukasTy
793
+ - [core] Send explicit warning when dayjs locale is not found (#6424) @alexfauquette
794
+ - [core] Test validation on textfield and date views (#6265) @alexfauquette
795
+ - [test] Sync comment with monorepo @oliviertassinari
796
+
797
+ ## 6.0.0-alpha.2
798
+
799
+ _Oct 7, 2022_
800
+
801
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
802
+
803
+ - 🚀 Further progress on stabilizing new date field components
804
+ - 🎁 Improve support for theme augmentation in the DataGrid (#6269) @cherniavskii
805
+ - 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
806
+ - 📚 Documentation improvements
807
+ - 🐞 Bugfixes
808
+
809
+ ### `@mui/x-data-grid@v6.0.0-alpha.2` / `@mui/x-data-grid-pro@v6.0.0-alpha.2` / `@mui/x-data-grid-premium@v6.0.0-alpha.2`
810
+
811
+ #### Breaking changes
812
+
813
+ - 🎁 The aggregation is no longer experimental.
814
+
815
+ You can now use the aggregation without the `experimentalFeatures.aggregation` flag enabled.
816
+
817
+ ```diff
818
+ <DataGridPremium
819
+ - experimentalFeatures={{ aggregation: true }}
820
+ />
821
+ ```
822
+
823
+ The aggregation of the columns through the column menu is now enabled by default on `DataGridPremium`. You can set `disableAggregation={true}` to disable it.
824
+
825
+ #### Changes
826
+
827
+ - [DataGrid] Add filter item ID to `.MuiDataGrid-filterForm` (#6313) @m4theushw
828
+ - [DataGrid] Add missing `valueOptions` (#6401) @DanailH
829
+ - [DataGrid] Don't start edit mode when pressing Shift + Space (#6228) @m4theushw
830
+ - [DataGrid] Fix error when using column grouping with all columns hidden (#6405) @alexfauquette
831
+ - [DataGrid] Pass generics to the components in the theme augmentation (#6269) @cherniavskii
832
+ - [DataGridPremium] Remove the aggregation from the experimental features (#6372) @flaviendelangle
833
+
834
+ ### `@mui/x-date-pickers@v6.0.0-alpha.2` / `@mui/x-date-pickers-pro@v6.0.0-alpha.2`
835
+
836
+ #### Breaking changes
837
+
838
+ - The `renderDay` prop has been replaced by a `Day` component slot.
839
+ You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props).
840
+
841
+ ```diff
842
+ // Same for any other date, date time or date range picker.
843
+ <DatePicker
844
+ - renderDay={(_, dayProps) => <CustomDay {...dayProps} />}
845
+ + components={{ Day: CustomDay }}
846
+ />
847
+ ```
848
+
849
+ #### Changes
850
+
851
+ - [DateRangePicker] Fix the shape of the first selected day when the start date has an hour set (#6403) @flaviendelangle
852
+ - [l10n] Add Japanese (ja-JP) locale to pickers (#6365) @sho918
853
+ - [DateRangePicker] Force focus to stay on inputs (#6324) @alexfauquette
854
+ - [pickers] Improve edition on field components (#6339) @flaviendelangle
855
+ - [pickers] Improve field selection behaviors (#6317) @flaviendelangle
856
+ - [pickers] Replace the `renderDay` prop with a `Day` component slot (#6293) @flaviendelangle
857
+
858
+ ### Docs
859
+
860
+ - [docs] Apply style guide to Data Grid Aggregation page (#5781) @samuelsycamore
861
+ - [docs] Fix code examples of editing cells (#6004) @TiagoPortfolio
862
+ - [docs] Fix customized day rendering demo style (#6342) (#6399) @Ambrish-git
863
+ - [docs] Implement Style Guide on "Advanced" Data Grid doc pages (#6331) @samuelsycamore
864
+ - [docs] Use components instead of demos for `SelectorsDocs` (#6103) @flaviendelangle
865
+ - [license] Add new license status 'Out of scope' (#5260) @flaviendelangle
866
+
867
+ ### Core
868
+
869
+ - [core] Speedup of yarn install in the CI (#6395) @oliviertassinari
870
+ - [test] Remove redundant test clean-ups (#6377) @oliviertassinari
871
+ - [test] Replace `React.render` with `React.createRoot` in e2e tests (#6393) @m4theushw
872
+
6
873
  ## 6.0.0-alpha.1
7
874
 
8
875
  _Sep 29, 2022_
@@ -38,7 +905,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
38
905
  Here is an example of the old and new approach showing how to apply a custom value formatter in groups for the grouping column:
39
906
 
40
907
  ```diff
41
- <DataGridPremium
908
+ <DataGridPremium
42
909
  groupingColDef={() => ({
43
910
  valueFormatter: (params) => {
44
911
  if (params.id == null) {
@@ -79,9 +946,8 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
79
946
 
80
947
  #### Breaking changes
81
948
 
82
- - [pickers] Do not support unparsed date formats anymore (#6170) @flaviendelangle
949
+ - The `value` prop of the pickers now expects a parsed value.
83
950
 
84
- The `value` prop of the pickers now expects a parsed value.
85
951
  Until now, it was possible to provide any format that your date management library was able to parse.
86
952
  For instance, you could pass `value={new Date()}` when using `AdapterDayjs`.
87
953
 
@@ -91,19 +957,19 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
91
957
 
92
958
  ```tsx
93
959
  // Date-fns
94
- <DatePicker value={new Date()} />
960
+ <DatePicker value={new Date()} />;
95
961
 
96
962
  // Dayjs
97
- import dayjs from 'dayjs'
98
- <DatePicker value={dayjs()} />
963
+ import dayjs from 'dayjs';
964
+ <DatePicker value={dayjs()} />;
99
965
 
100
966
  // Moment
101
- import moment from 'moment'
102
- <DatePicker value={moment()} />
967
+ import moment from 'moment';
968
+ <DatePicker value={moment()} />;
103
969
 
104
970
  // Luxon
105
- import { DateTime } from 'luxon'
106
- <DatePicker value={DateTime.now()} />
971
+ import { DateTime } from 'luxon';
972
+ <DatePicker value={DateTime.now()} />;
107
973
  ```
108
974
 
109
975
  #### Changes
@@ -116,7 +982,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
116
982
  - [pickers] Allow to control the selected sections (#6209, #6307) @flaviendelangle
117
983
  - [pickers] Do not loose the value of date sections not present in the format in the new field components (#6141) @flaviendelangle
118
984
  - [pickers] Do not support unparsed date formats anymore (#6170) @flaviendelangle
119
- - [pickers] Support slots on the `DateField` component (#6048) @flaviendelangle
985
+ - [pickers] Support slots on the `DateField` component (#6048) @flaviendelangle
120
986
  - [pickers] Support Luxon v3 in `AdapterLuxon` (#6069) @alexfauquette
121
987
  - [pickers] New components `TimeField` and `DateTimeField` (#6312) @flaviendelangle
122
988
  - [pickers] Support basic mobile edition on new field components (#5958) @flaviendelangle
@@ -155,17 +1021,17 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
155
1021
  - The deprecated `hide` column property has been removed in favor of the `columnVisibilityModel` prop and initial state.
156
1022
 
157
1023
  ```diff
158
- <DataGrid
159
- columns={[
160
- field: 'id,
161
- - hide: true,
162
- ]}
1024
+ <DataGrid
1025
+ columns={[
1026
+ field: 'id,
1027
+ - hide: true,
1028
+ ]}
163
1029
  + initialState={{
164
1030
  + columns: {
165
1031
  + columnVisibilityModel: { id: false },
166
- + }
1032
+ + },
167
1033
  + }}
168
- />
1034
+ />
169
1035
  ```
170
1036
 
171
1037
  You can find more information about this new API on our [documentation](https://next.mui.com/x/react-data-grid/column-visibility/).
@@ -173,8 +1039,8 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
173
1039
  - The `GridEvents` enum is now a TypeScript type.
174
1040
 
175
1041
  ```diff
176
- - apiRef.current.subscribeEvent(GridEvents.rowClick', handleRowClick)
177
- + apiRef.current.subscribeEvent('rowClick', handleRowClick)
1042
+ -apiRef.current.subscribeEvent(GridEvents.rowClick', handleRowClick);
1043
+ +apiRef.current.subscribeEvent('rowClick', handleRowClick);
178
1044
  ```
179
1045
 
180
1046
  #### Changes
@@ -194,7 +1060,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
194
1060
  You can now use the `localText` prop available on all picker components:
195
1061
 
196
1062
  | Removed prop | Property in the new `localText` prop |
197
- |------------------------------|-----------------------------------------------------------------------------------|
1063
+ | ---------------------------- | --------------------------------------------------------------------------------- |
198
1064
  | `endText` | `end` |
199
1065
  | `getClockLabelText` | `clockLabelText` |
200
1066
  | `getHoursClockNumberText` | `hoursClockNumberText` |
@@ -208,54 +1074,65 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
208
1074
  For instance if you want to replace the `startText` / `endText`
209
1075
 
210
1076
  ```diff
211
- <DateRangePicker
1077
+ <DateRangePicker
212
1078
  - startText="From"
213
1079
  - endText="To"
214
1080
  + localeText={{
215
1081
  + start: 'From',
216
1082
  + end: 'To',
217
1083
  + }}
218
- />
1084
+ />
219
1085
  ```
220
1086
 
221
1087
  You can find more information about the new api, including how to set those translations on all your components at once in the [documentation](https://next.mui.com/x/react-date-pickers/localization/)
222
1088
 
223
- - The component slots `LeftArrowButton` and `RightArrowButton` have been renamed `PreviousIconButton` and `NextIconButton` to better describe there usage:
1089
+ - The deprecated `locale` prop of the `LocalizationProvider` component have been renamed `adapterLocale`:
224
1090
 
225
1091
  ```diff
226
- <DatePicker
227
- components={{
228
- - LeftArrowButton: CustomButton,
229
- + PreviousIconButton: CustomButton,
1092
+ <LocalizationProvider
1093
+ dateAdapter={AdapterDayjs}
1094
+ - locale="fr"
1095
+ + adapterLocale="fr"
1096
+ >
1097
+ {children}
1098
+ </LocalizationProvider>
1099
+ ```
230
1100
 
231
- - RightArrowButton: CustomButton,
232
- + NextIconButton: CustomButton,
233
- }}
1101
+ - The component slots `LeftArrowButton` and `RightArrowButton` have been renamed `PreviousIconButton` and `NextIconButton` to better describe there usage:
234
1102
 
235
- componentsProps={{
236
- - leftArrowButton: {},
237
- + previousIconButton: {},
1103
+ ```diff
1104
+ <DatePicker
1105
+ components={{
1106
+ - LeftArrowButton: CustomButton,
1107
+ + PreviousIconButton: CustomButton,
238
1108
 
239
- - rightArrowButton: {},
240
- + nextIconButton: {},
241
- }}
242
- />
1109
+ - RightArrowButton: CustomButton,
1110
+ + NextIconButton: CustomButton,
1111
+ }}
1112
+ componentsProps={{
1113
+ - leftArrowButton: {},
1114
+ + previousIconButton: {},
1115
+
1116
+ - rightArrowButton: {},
1117
+ + nextIconButton: {},
1118
+ }}
1119
+ />
243
1120
  ```
244
1121
 
245
- - The `date` prop has been renamed `value` on `MonthPicker` / `YearPicker`, `ClockPicker` and `CalendarPicker`.
1122
+ - The `date` prop has been renamed `value` on `MonthPicker` / `YearPicker`, `ClockPicker` and `CalendarPicker`.
246
1123
 
247
1124
  ```diff
248
- - <MonthPicker date={dayjs()} onChange={handleMonthChange} />
249
- + <MonthPicker value={dayjs()} onChange={handleMonthChange} />
1125
+ -<MonthPicker date={dayjs()} onChange={handleMonthChange} />
1126
+ +<MonthPicker value={dayjs()} onChange={handleMonthChange} />
250
1127
 
251
- - <YearPicker date={dayjs()} onChange={handleYearChange} />
252
- + <YearPicker value={dayjs()} onChange={handleYearChange} />
1128
+ -<YearPicker date={dayjs()} onChange={handleYearChange} />
1129
+ +<YearPicker value={dayjs()} onChange={handleYearChange} />
253
1130
 
254
- - <ClockPicker date={dayjs()} onChange={handleTimeChange} />
255
- + <ClockPicker value={dayjs()} onChange={handleTimeChange} />
1131
+ -<ClockPicker date={dayjs()} onChange={handleTimeChange} />
1132
+ +<ClockPicker value={dayjs()} onChange={handleTimeChange} />
256
1133
 
257
- - <CalendarPicker date={dayjs()} onChange={handleDateChange} />
258
- + <CalendarPicker value={dayjs()} onChange={handleDateChange} />
1134
+ -<CalendarPicker date={dayjs()} onChange={handleDateChange} />
1135
+ +<CalendarPicker value={dayjs()} onChange={handleDateChange} />
259
1136
  ```
260
1137
 
261
1138
  #### Changes
@@ -274,7 +1151,7 @@ You can find more information about the new api, including how to set those tran
274
1151
  - [pickers] Remove `valueStr` from the field state (#6142) @flaviendelangle
275
1152
  - [pickers] Remove remaining deprecated locale props (#6233) @flaviendelangle
276
1153
  - [pickers] Rename the `date` prop `value` on `MonthPicker` / `YearPicker`, `ClockPicker` and `CalendarPicker` (#6128) @flaviendelangle
277
- - [pickers] Rename the `onClose` prop of `PickersPopper` `onDismiss` to simplify typing (#6155) @flaviendelangle
1154
+ - [pickers] Rename the `onClose` prop of `PickersPopper` `onDismiss` to simplify typing (#6155) @flaviendelangle
278
1155
  - [pickers] Support the `sx` prop on all public component with a root HTML elements (#5944) @flaviendelangle
279
1156
  - [pickers] Unify `PickersMonth` and `PickersYear` behaviors (#6034) @flaviendelangle
280
1157
  - [pickers] Use `shouldDisableMonth` and `shouldDisableYear` for date validation (#6066) @flaviendelangle
@@ -311,7 +1188,284 @@ You can find more information about the new api, including how to set those tran
311
1188
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
312
1189
  - [website] Improve security header @oliviertassinari
313
1190
 
314
- ## v5.17.4
1191
+ ## 5.17.14
1192
+
1193
+ _Dec 1, 2022_
1194
+
1195
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
1196
+
1197
+ - 🌍 Improve Ukrainian (uk-UA) locale (#7035) @rettoua
1198
+ - 🐞 Bugfixes
1199
+
1200
+ ### `@mui/x-data-grid@v5.17.14` / `@mui/x-data-grid-pro@v5.17.14` / `@mui/x-data-grid-premium@v5.17.14`
1201
+
1202
+ #### Changes
1203
+
1204
+ - [DataGrid] Fix row selection when clicking blank cell (#7056) @yami03
1205
+ - [DataGridPremium] Update cache before hydrating columns (#7043) @m4theushw
1206
+ - [l10n] Improve Ukrainian (uk-UA) locale (#7035) @rettoua
1207
+
1208
+ ## 5.17.13
1209
+
1210
+ _Nov 24, 2022_
1211
+
1212
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
1213
+
1214
+ - 🚀 Fix support of the pickers to Shadow DOM (#6971) @flaviendelangle
1215
+ - 💅 Improve DataGrid theme augmentation (#6980) @iigrik
1216
+ - 🐞 Bugfixes
1217
+
1218
+ ### `@mui/x-data-grid@v5.17.13` / `@mui/x-data-grid-pro@v5.17.13` / `@mui/x-data-grid-premium@v5.17.13`
1219
+
1220
+ #### Changes
1221
+
1222
+ - [DataGrid] Fix `ErrorOverlay` not receiving defined input props (#6885) @banoth-ravinder
1223
+ - [DataGrid] Improve typing for `styleOverrides` (#6980) @iigrik
1224
+ - [DataGridPro] Fix lazy-loaded rows not working with `updateRows` API method (#6875) @cherniavskii
1225
+ - [l10n] Fix translation of `filterOperatorBefore` in Arabic (ar-SD) locale (#6917) @HassanGhazy
1226
+
1227
+ ### `@mui/x-date-pickers@v5.0.9` / `@mui/x-date-pickers-pro@v5.0.9`
1228
+
1229
+ #### Changes
1230
+
1231
+ - [pickers] Fix usage with Shadow DOM (#6971) @flaviendelangle
1232
+
1233
+ ### Docs
1234
+
1235
+ - [docs] Add new "Expired package version" error type (#6937) @oliviertassinari
1236
+ - [docs] Enforce values for installation options in Date / Time pickers Getting Started page (#6896) @01zulfi
1237
+ - [docs] Fix live edit @oliviertassinari
1238
+ - [docs] Upgrade to Next 13 (#6911) @cherniavskii
1239
+
1240
+ ### Core
1241
+
1242
+ - [core] Upgrade monorepo (#6906) @cherniavskii
1243
+ - [core] Upgrade node to v14.21 (#6939) @piwysocki
1244
+
1245
+ ## 5.17.12
1246
+
1247
+ _Nov 17, 2022_
1248
+
1249
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
1250
+
1251
+ - 🌍 Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
1252
+ - 🐞 Bugfixes
1253
+
1254
+ ### `@mui/x-data-grid@v5.17.12` / `@mui/x-data-grid-pro@v5.17.12` / `@mui/x-data-grid-premium@v5.17.12`
1255
+
1256
+ #### Changes
1257
+
1258
+ - [DataGrid] Fix conflict with the latest version of `@types/react` (#6883) @vizv
1259
+ - [DataGridPremium] Support aggregating data from multiple row fields (#6844) @cherniavskii
1260
+ - [DataGridPro] Fix detail panel not working with `getRowSpacing` prop (#6858) @cherniavskii
1261
+ - [l10n] Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
1262
+
1263
+ ### Docs
1264
+
1265
+ - [docs] Clarify DataGrid Row Pinning docs (#6891) @cherniavskii
1266
+
1267
+ ### Core
1268
+
1269
+ - [core] Upgrade monorepo (#6864) @m4theushw
1270
+ - [license] Polish error messages (#6881) @oliviertassinari
1271
+
1272
+ ## 5.17.11
1273
+
1274
+ _Nov 10, 2022_
1275
+
1276
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
1277
+
1278
+ - 🐞 Bugfixes
1279
+
1280
+ ### `@mui/x-data-grid@v5.17.11` / `@mui/x-data-grid-pro@v5.17.11` / `@mui/x-data-grid-premium@v5.17.11`
1281
+
1282
+ #### Changes
1283
+
1284
+ - [DataGrid] Fix for cell focus preventing scroll when virtualization enabled (#6622) @yaredtsy
1285
+ - [DataGridPro] Opt-out for column jump back on re-order (#6697) @gavbrennan
1286
+
1287
+ ### `@mui/x-date-pickers@v5.0.8` / `@mui/x-date-pickers-pro@v5.0.8`
1288
+
1289
+ #### Changes
1290
+
1291
+ - [pickers] Fix pickers toolbar styling (#6793) @LukasTy
1292
+
1293
+ ### Docs
1294
+
1295
+ - [docs] Fix link to localization page (#6766) @alexfauquette
1296
+
1297
+ ### Core
1298
+
1299
+ - [license] Add new license status 'Out of scope' (#6774) @oliviertassinari
1300
+
1301
+ ## 5.17.10
1302
+
1303
+ _Nov 4, 2022_
1304
+
1305
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
1306
+
1307
+ - 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
1308
+
1309
+ ### `@mui/x-data-grid@v5.17.10` / `@mui/x-data-grid-pro@v5.17.10` / `@mui/x-data-grid-premium@v5.17.10`
1310
+
1311
+ #### Changes
1312
+
1313
+ - [DataGrid] Remove `React.memo` from `GridCellCheckboxRenderer` (#6688) @mattcorner
1314
+
1315
+ ### `@mui/x-date-pickers@v5.0.7` / `@mui/x-date-pickers-pro@v5.0.7`
1316
+
1317
+ #### Changes
1318
+
1319
+ - [DateRangePicker] Fix input focused style and mobile behaviour (#6645) (#6714) @LukasTy
1320
+ - [pickers] Add Ukrainian (uk-UA) locale on the date picker (#6661) @Dufran
1321
+
1322
+ ### Docs
1323
+
1324
+ - [docs] Mark data grid column group available (#6659) @alexfauquette
1325
+
1326
+ ## 5.17.9
1327
+
1328
+ _Oct 28, 2022_
1329
+
1330
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
1331
+
1332
+ - ⚡ Fix memory leak during unmount of the DataGrid (#6579) @cherniavskii
1333
+ - 🎁 Allow to disable the autofocus of the search field when opening the column visibility panel (#6630) @e-cloud
1334
+ - 🐞 Bugfixes
1335
+
1336
+ ### `@mui/x-data-grid@v5.17.9` / `@mui/x-data-grid-pro@v5.17.9` / `@mui/x-data-grid-premium@v5.17.9`
1337
+
1338
+ #### Changes
1339
+
1340
+ - [DataGrid] Allow to disable autofocusing the search field in the columns panel (#6630) @e-cloud
1341
+ - [DataGrid] Fix `setRows` method not persisting new rows data after `loading` prop change (#6637) @cherniavskii
1342
+ - [DataGrid] Fix memory leak on grid unmount (#6579) @cherniavskii
1343
+ - [l10n] Improve Bulgarian (bg-BG) locale (#6635) @AtanasVA
1344
+
1345
+ ### `@mui/x-date-pickers@v5.0.6` / `@mui/x-date-pickers-pro@v5.0.6`
1346
+
1347
+ #### Changes
1348
+
1349
+ - [pickers] Ignore milliseconds in mask logic (#6618) @alexfauquette
1350
+ - [pickers] Update input when `inputFormat` is modified (#6617) @alexfauquette
1351
+
1352
+ ### Docs
1353
+
1354
+ - [docs] Add token to redirect feedbacks on slack (#6592) @alexfauquette
1355
+ - [docs] Disable translations (#6639) @cherniavskii
1356
+ - [docs] Fix code edit for when v6 will be stable (#6600) @oliviertassinari
1357
+ - [docs] Fix typo in DataGrid demo page (#6632) (#6634) @LukasTy
1358
+
1359
+ ### Core
1360
+
1361
+ - [core] Upgrade monorepo (#6570) @cherniavskii
1362
+
1363
+ ## 5.17.8
1364
+
1365
+ _Oct 20, 2022_
1366
+
1367
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
1368
+
1369
+ - 🐞 Bugfixes
1370
+ - 🌍 Improve Turkish (tr-TR) locale on the data grid and pickers (#6573) @ramazansancar
1371
+
1372
+ ### `@mui/x-data-grid@v5.17.8` / `@mui/x-data-grid-pro@v5.17.8` / `@mui/x-data-grid-premium@v5.17.8`
1373
+
1374
+ #### Changes
1375
+
1376
+ - [DataGrid] Add `searchPredicate` prop to `GridColumnsPanel` component (#6572) @cherniavskii
1377
+ - [DataGrid] Fix grid not updating state on `rowCount` prop change (#6474) @cherniavskii
1378
+ - [DataGridPro] Fix row order being reset after updating the row (#6544) @cherniavskii
1379
+ - [l10n] Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) (#6573) @ramazansancar
1380
+
1381
+ ### `@mui/x-date-pickers@v5.0.5` / `@mui/x-date-pickers-pro@v5.0.5`
1382
+
1383
+ #### Changes
1384
+
1385
+ - [CalendarPicker] Don't move to closest enabled date when `props.date` contains a disabled date (#6537) @flaviendelangle
1386
+ - [DateRangePicker] Fix calendar day outside of month layout shifting on hover (pick #6448) (#6538) @alexfauquette
1387
+ - [pickers] Fix typescript issues (#6510) @flaviendelangle
1388
+
1389
+ ### Docs
1390
+
1391
+ - [docs] Fix 301 link to the sx prop page @oliviertassinari
1392
+
1393
+ ## 5.17.7
1394
+
1395
+ _Oct 13, 2022_
1396
+
1397
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
1398
+
1399
+ - 🐞 Bugfixes
1400
+
1401
+ ### `@mui/x-data-grid@v5.17.7` / `@mui/x-data-grid-pro@v5.17.7` / `@mui/x-data-grid-premium@v5.17.7`
1402
+
1403
+ #### Changes
1404
+
1405
+ - [DataGrid] Fix error when using column grouping with all columns hidden (#6425) @alexfauquette
1406
+ - [DataGrid] Fix start edit mode with printable character in React 18 (#6478) @m4theushw
1407
+
1408
+ ## 5.17.6
1409
+
1410
+ _Oct 6, 2022_
1411
+
1412
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
1413
+
1414
+ - 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
1415
+ - 🎁 Improve support for theme augmentation in the DataGrid (#6406) @cherniavskii
1416
+ - 🐞 Bugfixes
1417
+
1418
+ ### `@mui/x-data-grid@v5.17.6` / `@mui/x-data-grid-pro@v5.17.6` / `@mui/x-data-grid-premium@v5.17.6`
1419
+
1420
+ #### Changes
1421
+
1422
+ - [DataGrid] Add missing `valueOptions` (#6400) @DanailH
1423
+ - [DataGrid] Don't start edit mode when pressing <kbd>Shift</kbd> + <kbd>Space</kbd> (#6380) @m4theushw
1424
+ - [DataGrid] Pass generics to the components in the theme augmentation (#6406) @cherniavskii
1425
+
1426
+ ### `@mui/x-date-pickers@v5.0.4` / `@mui/x-date-pickers-pro@v5.0.4`
1427
+
1428
+ #### Changes
1429
+
1430
+ - [l10n] Add Japanese (ja-JP) locale to pickers (#6365) (#6382) @sho918
1431
+ - [pickers] Prevent `CalendarPicker` getting focus when `autoFocus=false` (#6304) (#6362) @alexfauquette
1432
+ - [pickers] Fix git repository location @oliviertassinari
1433
+
1434
+ ### Docs
1435
+
1436
+ - [docs] Fix customized day rendering demo style (#6342) @Ambrish-git
1437
+
1438
+ ## 5.17.5
1439
+
1440
+ _Sep 29, 2022_
1441
+
1442
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
1443
+
1444
+ - 🎁 Add theme augmentation module to DataGridPremium (#6316) @cherniavskii
1445
+ - 👀 Fix blank space when changing page with dynamic row height (#6320) @m4theushw
1446
+ - 📚 Improve controlled editing demo to make easier to reuse it (#6306) @cherniavskii
1447
+ - 🐞 Bugfixes
1448
+
1449
+ ### `@mui/x-data-grid@v5.17.5` / `@mui/x-data-grid-pro@v5.17.5` / `@mui/x-data-grid-premium@v5.17.5`
1450
+
1451
+ #### Changes
1452
+
1453
+ - [DataGrid] Fix `GridPagination` props typing (#6295) @cherniavskii
1454
+ - [DataGrid] Fix `GridRow` not forwarding `ref` to the root element (#6303) @cherniavskii
1455
+ - [DataGrid] Fix `undefined` value being showed in filter button tooltip text (#6271) @cherniavskii
1456
+ - [DataGrid] Fix blank space when changing page with dynamic row height (#6320) @m4theushw
1457
+ - [DataGrid] Revert cell/row mode if `processRowUpdate` fails (#6319) @m4theushw
1458
+ - [DataGridPremium] Add missing `themeAugmentation` module (#6316) @cherniavskii
1459
+
1460
+ ### Docs
1461
+
1462
+ - [docs] Pass model change callbacks in controlled grid editing demos (#6306) @cherniavskii
1463
+
1464
+ ### Core
1465
+
1466
+ - [core] Reduce the amount of updated screenshots reported by Argos (#6310) @cherniavskii
1467
+
1468
+ ## 5.17.4
315
1469
 
316
1470
  _Sep 22, 2022_
317
1471
 
@@ -443,7 +1597,7 @@ We'd like to offer a big thanks to the 3 contributors who made this release poss
443
1597
 
444
1598
  _Sep 2, 2022_
445
1599
 
446
- 🎉 We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages!
1600
+ 🎉 We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages!
447
1601
 
448
1602
  If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/react-date-pickers/migration-lab/).
449
1603
 
@@ -1699,10 +2853,10 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
1699
2853
  | `filterableGridColumnsSelector` | `gridFilterableColumnDefinitionsSelector` |
1700
2854
 
1701
2855
  ```diff
1702
- -const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef)
1703
- +const all = gridColumnFieldsSelector(apiRef)
1704
- +const lookup = gridColumnLookupSelector(apiRef)
1705
- +const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef)
2856
+ -const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef);
2857
+ +const all = gridColumnFieldsSelector(apiRef);
2858
+ +const lookup = gridColumnLookupSelector(apiRef);
2859
+ +const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
1706
2860
 
1707
2861
  -const filterableFields = filterableGridColumnsIdsSelector(apiRef);
1708
2862
  +const lookup = gridFilterableColumnLookupSelector(apiRef);
@@ -2420,8 +3574,8 @@ _Nov 23, 2021_
2420
3574
 
2421
3575
  🎉 We are excited to introduce [MUI X v5.0.0](https://mui.com/blog/mui-x-v5/) 🎉!
2422
3576
 
2423
- 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/).
2424
- 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).
3577
+ If you want to migrate the DataGrid or DataGridPro from v4 to v5, take a look at the [migration guide](https://mui.com/x/migration/migration-data-grid-v4/).
3578
+ 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/migration/migration-data-grid-v4/#using-mui-x-v5-with-mui-core-v4).
2425
3579
 
2426
3580
  A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
2427
3581
 
@@ -2639,7 +3793,7 @@ A big thanks to the 7 contributors who made this release possible. Here are some
2639
3793
 
2640
3794
  ```diff
2641
3795
  -visibleSortedGridRowsAsArraySelector: (state: GridState) => [GridRowId, GridRowData][];
2642
- +gridVisibleSortedRowEntriesSelector: (state: GridState) => GridRowEntry[]
3796
+ +gridVisibleSortedRowEntriesSelector: (state: GridState) => GridRowEntry[];
2643
3797
  ```
2644
3798
 
2645
3799
  - [DataGridPro] The `filterGridItemsCounterSelector` selector was removed. (#2942) @flaviendelangle
@@ -2739,15 +3893,15 @@ A big thanks to the 5 contributors who made this release possible. Here are some
2739
3893
  To fully control the state, use the feature's model prop and change callback (e.g. `filterModel` and `onFilterModelChange`).
2740
3894
 
2741
3895
  ```diff
2742
- <DataGrid
3896
+ <DataGrid
2743
3897
  - state={{
2744
3898
  + initialState={{
2745
- preferencePanel: {
2746
- open: true,
2747
- openedPanelValue: GridPreferencePanelsValue.filters,
2748
- },
2749
- }}
2750
- />
3899
+ preferencePanel: {
3900
+ open: true,
3901
+ openedPanelValue: GridPreferencePanelsValue.filters,
3902
+ },
3903
+ }}
3904
+ />
2751
3905
  ```
2752
3906
 
2753
3907
  - [DataGridPro] Remove the `onViewportRowsChange` prop and the `viewportRowsChange` event (#2673) @m4theushw
@@ -2850,12 +4004,12 @@ A big thanks to the 7 contributors who made this release possible. Here are some
2850
4004
  For more information, check [this page](https://mui.com/x/react-data-grid/components/#row). Example:
2851
4005
 
2852
4006
  ```diff
2853
- -<DataGrid onRowOver={handleRowOver} />;
2854
- +<DataGrid
4007
+ <DataGrid
4008
+ - onRowOver={handleRowOver}
2855
4009
  + componentsProps={{
2856
4010
  + row: { onMouseOver: handleRowOver },
2857
4011
  + }}
2858
- +/>;
4012
+ />;
2859
4013
  ```
2860
4014
 
2861
4015
  The `data-rowindex` and `data-rowselected` attributes were removed from the cell element. Equivalent attributes can be found in the row element.
@@ -2887,33 +4041,33 @@ A big thanks to the 7 contributors who made this release possible. Here are some
2887
4041
  - [DataGrid] The CSS classes constants are not exported anymore. Use `gridClasses` instead. (#2788) @flaviendelangle
2888
4042
 
2889
4043
  ```diff
2890
- -const columnHeaderClass = GRID_COLUMN_HEADER_CSS_CLASS
2891
- +const columnHeaderClass = gridClasses.columnHeader
4044
+ -const columnHeaderClass = GRID_COLUMN_HEADER_CSS_CLASS;
4045
+ +const columnHeaderClass = gridClasses.columnHeader;
2892
4046
 
2893
- -const rowClass = GRID_ROW_CSS_CLASS
2894
- +const rowClass = gridClasses.row
4047
+ -const rowClass = GRID_ROW_CSS_CLASS;
4048
+ +const rowClass = gridClasses.row;
2895
4049
 
2896
- -const cellClass = GRID_CELL_CSS_CLASS
2897
- +const cellClass = gridClasses.cell
4050
+ -const cellClass = GRID_CELL_CSS_CLASS;
4051
+ +const cellClass = gridClasses.cell;
2898
4052
 
2899
- -const columnSeparatorClass = GRID_COLUMN_HEADER_SEPARATOR_RESIZABLE_CSS_CLASS
2900
- +const columnSeparatorClass = gridClasses['columnSeparator--resizable']
4053
+ -const columnSeparatorClass = GRID_COLUMN_HEADER_SEPARATOR_RESIZABLE_CSS_CLASS;
4054
+ +const columnSeparatorClass = gridClasses['columnSeparator--resizable'];
2901
4055
 
2902
- -const columnHeaderTitleClass = GRID_COLUMN_HEADER_TITLE_CSS_CLASS
2903
- +const columnHeaderTitleClass = gridClasses.columnHeaderTitle
4056
+ -const columnHeaderTitleClass = GRID_COLUMN_HEADER_TITLE_CSS_CLASS;
4057
+ +const columnHeaderTitleClass = gridClasses.columnHeaderTitle;
2904
4058
 
2905
- -const columnHeaderDropZoneClass = GRID_COLUMN_HEADER_DROP_ZONE_CSS_CLASS
2906
- +const columnHeaderDropZoneClass = gridClasses.columnHeaderDropZone
4059
+ -const columnHeaderDropZoneClass = GRID_COLUMN_HEADER_DROP_ZONE_CSS_CLASS;
4060
+ +const columnHeaderDropZoneClass = gridClasses.columnHeaderDropZone;
2907
4061
 
2908
- -const columnHeaderDraggingClass = GRID_COLUMN_HEADER_DRAGGING_CSS_CLASS
2909
- +const columnHeaderDraggingClass = gridClasses["columnHeader--dragging"]
4062
+ -const columnHeaderDraggingClass = GRID_COLUMN_HEADER_DRAGGING_CSS_CLASS;
4063
+ +const columnHeaderDraggingClass = gridClasses['columnHeader--dragging'];
2910
4064
  ```
2911
4065
 
2912
4066
  - [DataGrid] Rename `gridCheckboxSelectionColDef` to `GRID_CHECKBOX_SELECTION_COL_DEF` (#2793) @flaviendelangle
2913
4067
 
2914
4068
  ```diff
2915
- - gridCheckboxSelectionColDef
2916
- + GRID_CHECKBOX_SELECTION_COL_DEF
4069
+ -gridCheckboxSelectionColDef
4070
+ +GRID_CHECKBOX_SELECTION_COL_DEF
2917
4071
  ```
2918
4072
 
2919
4073
  - [DataGrid] The constants referring to the column types were removed (#2791) @flaviendelangle
@@ -3081,7 +4235,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
3081
4235
  -export type GridValueFormatterParams = Omit<GridRenderCellParams, 'formattedValue' | 'isEditable'>;
3082
4236
  +export interface GridValueFormatterParams {
3083
4237
  + /**
3084
- + * The column field of the cell that triggered the event
4238
+ + * The column field of the cell that triggered the event.
3085
4239
  + */
3086
4240
  + field: string;
3087
4241
  + /**
@@ -3167,7 +4321,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
3167
4321
 
3168
4322
  ```diff
3169
4323
  -const state = apiRef.current.getState();
3170
- +const state = apiRef.current.state
4324
+ +const state = apiRef.current.state;
3171
4325
  ```
3172
4326
 
3173
4327
  - [DataGridPro] The third argument in `apiRef.current.selectRow` is now inverted to keep consistency with other selection APIs. (#2523) @flaviendelangle
@@ -3461,16 +4615,15 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
3461
4615
  - The `width` property of the columns is no longer updated with the actual width of of the column. Use the new `computedWidth` property in the callbacks instead.
3462
4616
 
3463
4617
  ```diff
3464
- const columns: GridColDef = [
3465
- {
3466
- field: "name",
3467
- width: 100,
3468
- renderCell: ({ value, colDef }) => {
3469
- - console.log(colDef.width!)
3470
- + console.log(colDef.computedWidth)
3471
- return value
3472
- }
3473
- ]
4618
+ const columns: GridColDef = [{
4619
+ field: 'name',
4620
+ width: 100,
4621
+ renderCell: ({ value, colDef }) => {
4622
+ - console.log(colDef.width!);
4623
+ + console.log(colDef.computedWidth);
4624
+ return value;
4625
+ },
4626
+ }];
3474
4627
  ```
3475
4628
 
3476
4629
  #### Changes
@@ -3533,21 +4686,21 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
3533
4686
  - Change the controllable API signature:
3534
4687
 
3535
4688
  ```diff
3536
- // Signature
4689
+ // Signature
3537
4690
  -onPageChange?: (params: GridPageChangeParams) => void;
3538
4691
  +onPageChange?: (page: number) => void;
3539
4692
 
3540
- // Usage
4693
+ // Usage
3541
4694
  -<DataGrid onPageChange={(params: GridPageChangeParams) => setPage(params.page)} />
3542
4695
  +<DataGrid onPageChange={(page: number) => setPage(page)} />
3543
4696
  ```
3544
4697
 
3545
4698
  ```diff
3546
- // Signature
4699
+ // Signature
3547
4700
  -onPageSizeChange?: (params: GridPageChangeParams) => void;
3548
4701
  +onPageSizeChange?: (pageSize: number) => void;
3549
4702
 
3550
- // Usage
4703
+ // Usage
3551
4704
  -<DataGrid onPageSizeChange={(params: GridPageChangeParams) => setPageSize(params.pageSize)} />
3552
4705
  +<DataGrid onPageSizeChange={(pageSize: number) => setPageSize(pageSize)} />
3553
4706
  ```
@@ -3605,7 +4758,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
3605
4758
  Remove public `apiRef.current.isColumnVisibleInWindow()` as it servers private use cases.
3606
4759
 
3607
4760
  ```diff
3608
- -apiRef.current.isColumnVisibleInWindow()
4761
+ -apiRef.current.isColumnVisibleInWindow();
3609
4762
  ```
3610
4763
 
3611
4764
  - [DataGrid] Remove stateId argument from GridApi getState method (#2141) @flaviendelangle
@@ -3652,7 +4805,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
3652
4805
 
3653
4806
  ```diff
3654
4807
  +apiRef.current.setCellMode(1, 'name', 'edit');
3655
- apiRef.current.commitCellChange({ id: 1, field: 'name' });
4808
+ apiRef.current.commitCellChange({ id: 1, field: 'name' });
3656
4809
  ```
3657
4810
 
3658
4811
  - The `setCellValue` was removed from the API. Use `commitCellChange` or `updateRows` in place.
@@ -4443,31 +5596,33 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
4443
5596
 
4444
5597
  - Changes on `apiRef.current`.
4445
5598
 
4446
- ```diff
4447
- - getRowModels: () => GridRowModel[];
4448
- + getRowModels: () => Map<GridRowId, GridRowModel>;
4449
- - getVisibleRowModels: () => GridRowModel[];
4450
- + getVisibleRowModels: () => Map<GridRowId, GridRowModel>;
4451
- - getSelectedRows: () => GridRowModel[];
4452
- + getSelectedRows: () => Map<GridRowId, GridRowModel>;
4453
- ```
4454
-
4455
- - Changes on `GridFilterModelParams`.
4456
-
4457
- ```diff
4458
- export interface GridFilterModelParams {
4459
- /**
4460
- * The full set of rows.
4461
- */
4462
- - rows: GridRowModel[];
4463
- + rows: Map<GridRowId, GridRowModel>;
4464
- /**
4465
- * The set of currently visible rows.
4466
- */
4467
- - visibleRows: GridRowModel[];
4468
- + visibleRows: Map<GridRowId, GridRowModel>;
4469
- }
4470
- ```
5599
+ ```diff
5600
+ -getRowModels: () => GridRowModel[];
5601
+ +getRowModels: () => Map<GridRowId, GridRowModel>;
5602
+
5603
+ -getVisibleRowModels: () => GridRowModel[];
5604
+ +getVisibleRowModels: () => Map<GridRowId, GridRowModel>;
5605
+
5606
+ -getSelectedRows: () => GridRowModel[];
5607
+ +getSelectedRows: () => Map<GridRowId, GridRowModel>;
5608
+ ```
5609
+
5610
+ - Changes on `GridFilterModelParams`.
5611
+
5612
+ ```diff
5613
+ export interface GridFilterModelParams {
5614
+ /**
5615
+ * The full set of rows.
5616
+ */
5617
+ - rows: GridRowModel[];
5618
+ + rows: Map<GridRowId, GridRowModel>;
5619
+ /**
5620
+ * The set of currently visible rows.
5621
+ */
5622
+ - visibleRows: GridRowModel[];
5623
+ + visibleRows: Map<GridRowId, GridRowModel>;
5624
+ }
5625
+ ```
4471
5626
 
4472
5627
  - [DataGrid] Upgrade mininum supported version of React to 17.0.0 (#1410) @m4theushw
4473
5628
 
@@ -4685,11 +5840,12 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
4685
5840
  ```diff
4686
5841
  -columns[1] = { ...columns[1], sortDirection: 'asc' };
4687
5842
 
4688
- return (
4689
- <div>
5843
+ return (
5844
+ <div>
4690
5845
  - <DataGrid rows={rows} columns={columns} />
4691
5846
  + <DataGrid rows={rows} columns={columns} sortModel={[{ field: columns[1].field, sort: 'asc' }]} />
4692
- </div>
5847
+ </div>
5848
+ );
4693
5849
  ```
4694
5850
 
4695
5851
  - [DataGrid] Rename the `onSelectionChange` prop to `onSelectionModelChange` for consistency. (#986) @dtassone
@@ -4716,10 +5872,11 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
4716
5872
  -const [page, setPage] = React.useState(1);
4717
5873
  +const [page, setPage] = React.useState(0);
4718
5874
 
4719
- return (
4720
- <div className="grid-container">
4721
- <DataGrid rows={rows} columns={columns} page={page} />
4722
- </div>
5875
+ return (
5876
+ <div className="grid-container">
5877
+ <DataGrid rows={rows} columns={columns} page={page} />
5878
+ </div>
5879
+ );
4723
5880
  ```
4724
5881
 
4725
5882
  #### Changes
@@ -4820,25 +5977,25 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
4820
5977
  - Capitalize the keys of the `components` prop. This change aims to bring consistency with the customization pattern of Material UI v5:
4821
5978
 
4822
5979
  ```diff
4823
- <DataGrid
4824
- components={{
4825
- - noRowsOverlay: CustomNoRowsOverlay,
4826
- + NoRowOverlay: CustomNoRowsOverlay,
4827
- }}
4828
- />
5980
+ <DataGrid
5981
+ components={{
5982
+ - noRowsOverlay: CustomNoRowsOverlay,
5983
+ + NoRowOverlay: CustomNoRowsOverlay,
5984
+ }}
5985
+ />
4829
5986
  ```
4830
5987
 
4831
5988
  - 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:
4832
5989
 
4833
5990
  ```diff
4834
- <DataGrid
4835
- - icons: {{
4836
- - ColumnSortedAscending: SortedAscending,
4837
- - }},
4838
- + components={{
4839
- + ColumnSortedAscendingIcon: SortedAscending,
4840
- + }}
4841
- />
5991
+ <DataGrid
5992
+ - icons: {{
5993
+ - ColumnSortedAscending: SortedAscending,
5994
+ - }},
5995
+ + components={{
5996
+ + ColumnSortedAscendingIcon: SortedAscending,
5997
+ + }}
5998
+ />
4842
5999
  ```
4843
6000
 
4844
6001
  - Change the props provided to the component of the `components` prop. Expose the whole state instead of an arbitrary set of props:
@@ -4856,9 +6013,9 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
4856
6013
  + page={state.pagination.page}
4857
6014
  + count={state.pagination.pageCount}
4858
6015
 
4859
- // ...
6016
+ // ...
4860
6017
 
4861
- <DataGrid components={{ Pagination: CustomPagination }} />
6018
+ <DataGrid components={{ Pagination: CustomPagination }} />
4862
6019
  ```
4863
6020
 
4864
6021
  #### Changes