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

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 (783) hide show
  1. package/CHANGELOG.md +1140 -2
  2. package/DataGrid/DataGrid.js +41 -94
  3. package/DataGrid/index.d.ts +1 -1
  4. package/DataGrid/index.js +1 -1
  5. package/DataGrid/useDataGridComponent.d.ts +2 -2
  6. package/DataGrid/useDataGridComponent.js +2 -2
  7. package/DataGrid/useDataGridProps.d.ts +0 -1
  8. package/DataGrid/useDataGridProps.js +8 -13
  9. package/colDef/gridDateColDef.d.ts +4 -4
  10. package/colDef/gridDateColDef.js +34 -8
  11. package/colDef/gridDateOperators.d.ts +1 -1
  12. package/colDef/gridDateOperators.js +3 -4
  13. package/colDef/gridSingleSelectColDef.js +36 -3
  14. package/colDef/gridSingleSelectOperators.d.ts +0 -3
  15. package/colDef/gridSingleSelectOperators.js +2 -47
  16. package/colDef/gridStringOperators.d.ts +1 -1
  17. package/colDef/gridStringOperators.js +1 -1
  18. package/components/GridAutoSizer.d.ts +1 -1
  19. package/components/GridAutoSizer.js +6 -19
  20. package/components/GridFooter.js +2 -2
  21. package/components/GridPagination.js +21 -17
  22. package/components/GridRow.d.ts +5 -5
  23. package/components/GridRow.js +14 -17
  24. package/components/GridScrollArea.js +4 -3
  25. package/components/base/GridBody.js +9 -20
  26. package/components/base/GridFooterPlaceholder.js +1 -8
  27. package/components/base/GridOverlays.js +3 -3
  28. package/components/base/index.d.ts +0 -2
  29. package/components/base/index.js +0 -2
  30. package/components/cell/GridActionsCellItem.d.ts +1 -1
  31. package/components/cell/GridCell.d.ts +1 -0
  32. package/components/cell/GridCell.js +16 -11
  33. package/components/cell/GridEditSingleSelectCell.d.ts +7 -0
  34. package/components/cell/GridEditSingleSelectCell.js +24 -37
  35. package/components/cell/GridSkeletonCell.js +1 -1
  36. package/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
  37. package/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
  38. package/components/columnHeaders/GridColumnGroupHeader.d.ts +0 -1
  39. package/components/columnHeaders/GridColumnGroupHeader.js +6 -19
  40. package/components/columnHeaders/GridColumnHeaderItem.d.ts +1 -3
  41. package/components/columnHeaders/GridColumnHeaderItem.js +30 -43
  42. package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  43. package/components/columnHeaders/GridColumnHeaders.js +5 -9
  44. package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +0 -1
  45. package/components/columnHeaders/GridGenericColumnHeaderItem.js +5 -6
  46. package/components/columnHeaders/GridIconButtonContainer.d.ts +1 -1
  47. package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
  48. package/components/columnSelection/GridHeaderCheckbox.js +2 -2
  49. package/components/containers/GridFooterContainer.d.ts +1 -1
  50. package/components/containers/GridFooterContainer.js +4 -8
  51. package/components/containers/GridOverlay.d.ts +1 -1
  52. package/components/containers/GridRoot.js +4 -2
  53. package/components/containers/GridRootStyles.d.ts +2 -1
  54. package/components/containers/GridRootStyles.js +58 -10
  55. package/components/containers/GridToolbarContainer.d.ts +1 -1
  56. package/components/icons/index.d.ts +9 -0
  57. package/components/icons/index.js +12 -1
  58. package/components/menu/GridMenu.d.ts +1 -1
  59. package/components/menu/GridMenu.js +1 -9
  60. package/components/menu/columnMenu/GridColumnHeaderMenu.js +3 -3
  61. package/components/menu/columnMenu/GridColumnMenu.d.ts +22 -2
  62. package/components/menu/columnMenu/GridColumnMenu.js +57 -35
  63. package/components/menu/columnMenu/GridColumnMenuContainer.d.ts +2 -2
  64. package/components/menu/columnMenu/GridColumnMenuContainer.js +9 -5
  65. package/components/menu/columnMenu/{GridFilterItemProps.d.ts → GridColumnMenuItemProps.d.ts} +3 -2
  66. package/components/menu/columnMenu/{GridFilterItemProps.js → GridColumnMenuItemProps.js} +0 -0
  67. package/components/menu/columnMenu/GridColumnMenuProps.d.ts +7 -2
  68. package/components/menu/columnMenu/index.d.ts +4 -7
  69. package/components/menu/columnMenu/index.js +7 -7
  70. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.d.ts +7 -0
  71. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +21 -0
  72. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.d.ts +7 -0
  73. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +43 -0
  74. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.d.ts +7 -0
  75. package/{modern/components/menu/columnMenu/HideGridColMenuItem.js → components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js} +22 -20
  76. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.d.ts +7 -0
  77. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +43 -0
  78. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.d.ts +7 -0
  79. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +74 -0
  80. package/components/menu/columnMenu/menuItems/index.d.ts +5 -0
  81. package/components/menu/columnMenu/menuItems/index.js +5 -0
  82. package/components/panel/GridColumnsPanel.d.ts +4 -2
  83. package/components/panel/GridColumnsPanel.js +25 -10
  84. package/components/panel/GridPanel.d.ts +2 -2
  85. package/components/panel/GridPanel.js +9 -2
  86. package/components/panel/filterPanel/GridFilterForm.d.ts +7 -7
  87. package/components/panel/filterPanel/GridFilterForm.js +52 -52
  88. package/components/panel/filterPanel/GridFilterInputDate.d.ts +1 -1
  89. package/components/panel/filterPanel/GridFilterInputDate.js +2 -2
  90. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +7 -1
  91. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +15 -22
  92. package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +1 -1
  93. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -3
  94. package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +8 -1
  95. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +18 -18
  96. package/components/panel/filterPanel/GridFilterInputValue.d.ts +1 -1
  97. package/components/panel/filterPanel/GridFilterInputValue.js +8 -58
  98. package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +1 -1
  99. package/components/panel/filterPanel/GridFilterPanel.d.ts +2 -2
  100. package/components/panel/filterPanel/GridFilterPanel.js +18 -18
  101. package/components/panel/filterPanel/filterPanelUtils.d.ts +2 -0
  102. package/components/panel/filterPanel/filterPanelUtils.js +5 -1
  103. package/components/reexportable.d.ts +1 -0
  104. package/components/reexportable.js +1 -0
  105. package/components/toolbar/GridToolbarDensitySelector.js +5 -6
  106. package/components/toolbar/GridToolbarExport.d.ts +2 -2
  107. package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
  108. package/components/toolbar/GridToolbarFilterButton.js +3 -3
  109. package/components/toolbar/GridToolbarQuickFilter.d.ts +1 -1
  110. package/components/virtualization/GridVirtualScroller.js +1 -0
  111. package/constants/defaultGridSlotsComponents.d.ts +0 -3
  112. package/constants/defaultGridSlotsComponents.js +9 -9
  113. package/constants/gridClasses.d.ts +34 -5
  114. package/constants/gridClasses.js +1 -1
  115. package/constants/index.d.ts +0 -1
  116. package/constants/index.js +0 -1
  117. package/constants/localeTextConstants.js +4 -5
  118. package/context/GridContextProvider.d.ts +1 -1
  119. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +21 -6
  120. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +3 -3
  121. package/hooks/core/useGridApiInitialization.js +4 -12
  122. package/hooks/core/useGridInitialization.d.ts +1 -1
  123. package/hooks/core/useGridInitialization.js +0 -2
  124. package/hooks/features/clipboard/useGridClipboard.js +20 -7
  125. package/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.ts +2 -2
  126. package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +0 -1
  127. package/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -11
  128. package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +1 -1
  129. package/hooks/features/columnGrouping/useGridColumnGrouping.js +2 -2
  130. package/hooks/features/columnHeaders/useGridColumnHeaders.js +18 -20
  131. package/hooks/features/columnMenu/columnMenuInterfaces.d.ts +47 -0
  132. package/hooks/features/columnMenu/{columnMenuState.js → columnMenuInterfaces.js} +0 -0
  133. package/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
  134. package/hooks/features/columnMenu/index.d.ts +1 -1
  135. package/hooks/features/columnMenu/index.js +1 -1
  136. package/hooks/features/columnMenu/useGridColumnMenu.js +27 -25
  137. package/hooks/features/columnMenu/useGridColumnMenuComponents.d.ts +16 -0
  138. package/hooks/features/columnMenu/useGridColumnMenuComponents.js +63 -0
  139. package/hooks/features/columns/gridColumnsInterfaces.d.ts +6 -6
  140. package/hooks/features/columns/gridColumnsSelector.d.ts +5 -5
  141. package/hooks/features/columns/gridColumnsSelector.js +2 -2
  142. package/hooks/features/columns/gridColumnsUtils.d.ts +2 -2
  143. package/hooks/features/columns/gridColumnsUtils.js +8 -13
  144. package/hooks/features/columns/useGridColumns.d.ts +2 -2
  145. package/hooks/features/columns/useGridColumns.js +28 -14
  146. package/hooks/features/density/densitySelector.d.ts +0 -2
  147. package/hooks/features/density/densitySelector.js +0 -2
  148. package/hooks/features/density/densityState.d.ts +0 -2
  149. package/hooks/features/density/useGridDensity.d.ts +2 -2
  150. package/hooks/features/density/useGridDensity.js +16 -33
  151. package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
  152. package/hooks/features/dimensions/useGridDimensions.js +9 -8
  153. package/hooks/features/editing/gridEditingSelectors.d.ts +1 -1
  154. package/hooks/features/editing/useGridRowEditing.js +8 -3
  155. package/hooks/features/events/useGridEvents.d.ts +1 -1
  156. package/hooks/features/events/useGridEvents.js +0 -3
  157. package/hooks/features/export/useGridPrintExport.d.ts +1 -1
  158. package/hooks/features/export/useGridPrintExport.js +19 -17
  159. package/hooks/features/filter/gridFilterSelector.d.ts +7 -7
  160. package/hooks/features/filter/gridFilterSelector.js +11 -11
  161. package/hooks/features/filter/gridFilterState.d.ts +4 -4
  162. package/hooks/features/filter/gridFilterState.js +3 -3
  163. package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
  164. package/hooks/features/filter/gridFilterUtils.js +30 -30
  165. package/hooks/features/filter/useGridFilter.d.ts +1 -1
  166. package/hooks/features/filter/useGridFilter.js +22 -17
  167. package/hooks/features/focus/gridFocusState.d.ts +5 -9
  168. package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -2
  169. package/hooks/features/focus/useGridFocus.js +8 -1
  170. package/hooks/features/index.d.ts +0 -1
  171. package/hooks/features/index.js +0 -1
  172. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +9 -2
  173. package/hooks/features/pagination/gridPaginationInterfaces.d.ts +13 -21
  174. package/hooks/features/pagination/gridPaginationSelector.d.ts +5 -0
  175. package/hooks/features/pagination/gridPaginationSelector.js +16 -9
  176. package/hooks/features/pagination/gridPaginationUtils.d.ts +10 -0
  177. package/hooks/features/pagination/gridPaginationUtils.js +26 -0
  178. package/hooks/features/pagination/useGridPagination.d.ts +2 -2
  179. package/hooks/features/pagination/useGridPagination.js +161 -17
  180. package/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +1 -1
  181. package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +1 -1
  182. package/hooks/features/rowSelection/useGridRowSelection.js +19 -12
  183. package/hooks/features/rows/gridRowsInterfaces.d.ts +9 -9
  184. package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
  185. package/hooks/features/rows/gridRowsUtils.js +4 -4
  186. package/hooks/features/rows/useGridRows.js +6 -4
  187. package/hooks/features/rows/useGridRowsMeta.d.ts +1 -1
  188. package/hooks/features/rows/useGridRowsMeta.js +12 -12
  189. package/hooks/features/scroll/useGridScroll.js +2 -2
  190. package/hooks/features/sorting/gridSortingSelector.d.ts +1 -1
  191. package/hooks/features/sorting/gridSortingState.d.ts +2 -2
  192. package/hooks/features/sorting/useGridSorting.js +12 -1
  193. package/hooks/features/virtualization/useGridVirtualScroller.js +29 -22
  194. package/hooks/utils/index.d.ts +0 -1
  195. package/hooks/utils/index.js +0 -1
  196. package/hooks/utils/useGridApiMethod.d.ts +1 -1
  197. package/hooks/utils/useGridApiMethod.js +8 -6
  198. package/hooks/utils/useGridInitializeState.d.ts +2 -2
  199. package/hooks/utils/useGridVisibleRows.js +2 -2
  200. package/index.d.ts +7 -3
  201. package/index.js +12 -2
  202. package/internals/index.d.ts +4 -1
  203. package/internals/index.js +3 -1
  204. package/legacy/DataGrid/DataGrid.js +41 -94
  205. package/legacy/DataGrid/index.js +1 -1
  206. package/legacy/DataGrid/useDataGridComponent.js +2 -2
  207. package/legacy/DataGrid/useDataGridProps.js +8 -13
  208. package/legacy/colDef/gridDateColDef.js +35 -10
  209. package/legacy/colDef/gridDateOperators.js +3 -4
  210. package/legacy/colDef/gridSingleSelectColDef.js +37 -3
  211. package/legacy/colDef/gridSingleSelectOperators.js +8 -51
  212. package/legacy/colDef/gridStringOperators.js +1 -1
  213. package/legacy/components/GridAutoSizer.js +6 -19
  214. package/legacy/components/GridFooter.js +2 -2
  215. package/legacy/components/GridPagination.js +22 -18
  216. package/legacy/components/GridRow.js +18 -19
  217. package/legacy/components/GridScrollArea.js +4 -3
  218. package/legacy/components/base/GridBody.js +9 -20
  219. package/legacy/components/base/GridFooterPlaceholder.js +1 -8
  220. package/legacy/components/base/GridOverlays.js +3 -3
  221. package/legacy/components/base/index.js +0 -2
  222. package/legacy/components/cell/GridCell.js +16 -11
  223. package/legacy/components/cell/GridEditSingleSelectCell.js +24 -37
  224. package/legacy/components/cell/GridSkeletonCell.js +1 -1
  225. package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
  226. package/legacy/components/columnHeaders/GridColumnGroupHeader.js +6 -18
  227. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +31 -43
  228. package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  229. package/legacy/components/columnHeaders/GridColumnHeaders.js +5 -9
  230. package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +4 -5
  231. package/legacy/components/columnSelection/GridHeaderCheckbox.js +2 -2
  232. package/legacy/components/containers/GridFooterContainer.js +4 -7
  233. package/legacy/components/containers/GridRoot.js +4 -2
  234. package/legacy/components/containers/GridRootStyles.js +47 -13
  235. package/legacy/components/icons/index.js +12 -1
  236. package/legacy/components/menu/GridMenu.js +1 -9
  237. package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +3 -3
  238. package/legacy/components/menu/columnMenu/GridColumnMenu.js +61 -35
  239. package/legacy/components/menu/columnMenu/GridColumnMenuContainer.js +11 -5
  240. package/legacy/components/menu/columnMenu/{GridFilterItemProps.js → GridColumnMenuItemProps.js} +0 -0
  241. package/legacy/components/menu/columnMenu/index.js +7 -7
  242. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +21 -0
  243. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +41 -0
  244. package/legacy/components/menu/columnMenu/{HideGridColMenuItem.js → menuItems/GridColumnMenuHideItem.js} +22 -22
  245. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +41 -0
  246. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +76 -0
  247. package/legacy/components/menu/columnMenu/menuItems/index.js +5 -0
  248. package/legacy/components/panel/GridColumnsPanel.js +26 -13
  249. package/legacy/components/panel/GridPanel.js +12 -2
  250. package/legacy/components/panel/filterPanel/GridFilterForm.js +55 -55
  251. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +2 -2
  252. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +15 -21
  253. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -3
  254. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +18 -17
  255. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +5 -58
  256. package/legacy/components/panel/filterPanel/GridFilterPanel.js +19 -19
  257. package/legacy/components/panel/filterPanel/filterPanelUtils.js +5 -1
  258. package/legacy/components/reexportable.js +1 -0
  259. package/legacy/components/toolbar/GridToolbarDensitySelector.js +5 -6
  260. package/legacy/components/toolbar/GridToolbarFilterButton.js +5 -5
  261. package/legacy/components/virtualization/GridVirtualScroller.js +1 -0
  262. package/legacy/constants/defaultGridSlotsComponents.js +9 -9
  263. package/legacy/constants/gridClasses.js +1 -1
  264. package/legacy/constants/index.js +0 -1
  265. package/legacy/constants/localeTextConstants.js +4 -5
  266. package/legacy/hooks/core/useGridApiInitialization.js +4 -12
  267. package/legacy/hooks/core/useGridInitialization.js +0 -2
  268. package/legacy/hooks/features/clipboard/useGridClipboard.js +19 -7
  269. package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -12
  270. package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +2 -2
  271. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +18 -20
  272. package/legacy/hooks/features/columnMenu/{columnMenuState.js → columnMenuInterfaces.js} +0 -0
  273. package/legacy/hooks/features/columnMenu/index.js +1 -1
  274. package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +27 -25
  275. package/legacy/hooks/features/columnMenu/useGridColumnMenuComponents.js +76 -0
  276. package/legacy/hooks/features/columns/gridColumnsSelector.js +2 -2
  277. package/legacy/hooks/features/columns/gridColumnsUtils.js +42 -51
  278. package/legacy/hooks/features/columns/useGridColumns.js +29 -17
  279. package/legacy/hooks/features/density/densitySelector.js +0 -6
  280. package/legacy/hooks/features/density/useGridDensity.js +15 -34
  281. package/legacy/hooks/features/dimensions/useGridDimensions.js +9 -8
  282. package/legacy/hooks/features/editing/useGridRowEditing.js +10 -3
  283. package/legacy/hooks/features/events/useGridEvents.js +0 -3
  284. package/legacy/hooks/features/export/useGridPrintExport.js +19 -17
  285. package/legacy/hooks/features/filter/gridFilterSelector.js +11 -11
  286. package/legacy/hooks/features/filter/gridFilterState.js +3 -3
  287. package/legacy/hooks/features/filter/gridFilterUtils.js +31 -31
  288. package/legacy/hooks/features/filter/useGridFilter.js +22 -19
  289. package/legacy/hooks/features/focus/useGridFocus.js +8 -1
  290. package/legacy/hooks/features/index.js +0 -1
  291. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +9 -2
  292. package/legacy/hooks/features/pagination/gridPaginationSelector.js +21 -12
  293. package/legacy/hooks/features/pagination/gridPaginationUtils.js +31 -0
  294. package/legacy/hooks/features/pagination/useGridPagination.js +163 -17
  295. package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +1 -1
  296. package/legacy/hooks/features/rowSelection/useGridRowSelection.js +19 -12
  297. package/legacy/hooks/features/rows/gridRowsUtils.js +4 -4
  298. package/legacy/hooks/features/rows/useGridRows.js +6 -4
  299. package/legacy/hooks/features/rows/useGridRowsMeta.js +12 -12
  300. package/legacy/hooks/features/scroll/useGridScroll.js +2 -2
  301. package/legacy/hooks/features/sorting/useGridSorting.js +14 -1
  302. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +31 -24
  303. package/legacy/hooks/utils/index.js +0 -1
  304. package/legacy/hooks/utils/useGridApiMethod.js +6 -4
  305. package/legacy/hooks/utils/useGridVisibleRows.js +2 -2
  306. package/legacy/index.js +12 -2
  307. package/legacy/internals/index.js +3 -1
  308. package/legacy/lib/createDetectElementResize/index.js +5 -5
  309. package/legacy/locales/arSD.js +3 -4
  310. package/legacy/locales/beBY.js +156 -0
  311. package/legacy/locales/bgBG.js +3 -4
  312. package/legacy/locales/coreLocales.js +62 -0
  313. package/legacy/locales/csCZ.js +3 -4
  314. package/legacy/locales/daDK.js +3 -4
  315. package/legacy/locales/deDE.js +3 -4
  316. package/legacy/locales/elGR.js +3 -4
  317. package/legacy/locales/esES.js +44 -54
  318. package/legacy/locales/faIR.js +3 -4
  319. package/legacy/locales/fiFI.js +3 -4
  320. package/legacy/locales/frFR.js +3 -4
  321. package/legacy/locales/heIL.js +5 -5
  322. package/legacy/locales/huHU.js +3 -4
  323. package/legacy/locales/index.js +1 -0
  324. package/legacy/locales/itIT.js +3 -4
  325. package/legacy/locales/jaJP.js +16 -21
  326. package/legacy/locales/koKR.js +3 -4
  327. package/legacy/locales/nbNO.js +3 -4
  328. package/legacy/locales/nlNL.js +3 -4
  329. package/legacy/locales/plPL.js +3 -4
  330. package/legacy/locales/ptBR.js +3 -4
  331. package/legacy/locales/roRO.js +3 -4
  332. package/legacy/locales/ruRU.js +16 -21
  333. package/legacy/locales/skSK.js +10 -13
  334. package/legacy/locales/svSE.js +12 -15
  335. package/legacy/locales/trTR.js +3 -4
  336. package/legacy/locales/ukUA.js +25 -30
  337. package/legacy/locales/viVN.js +23 -26
  338. package/legacy/locales/zhCN.js +3 -4
  339. package/legacy/locales/zhTW.js +3 -4
  340. package/legacy/models/colDef/index.js +2 -2
  341. package/legacy/models/gridDensity.js +1 -13
  342. package/legacy/models/gridEditRowModel.js +0 -1
  343. package/legacy/models/gridFilterItem.js +6 -6
  344. package/legacy/models/index.js +1 -0
  345. package/legacy/utils/utils.js +1 -1
  346. package/lib/createDetectElementResize/index.js +5 -5
  347. package/locales/arSD.js +3 -4
  348. package/locales/beBY.d.ts +2 -0
  349. package/locales/beBY.js +144 -0
  350. package/locales/bgBG.js +3 -4
  351. package/locales/coreLocales.d.ts +3 -0
  352. package/locales/coreLocales.js +60 -0
  353. package/locales/csCZ.js +3 -4
  354. package/locales/daDK.js +3 -4
  355. package/locales/deDE.js +3 -4
  356. package/locales/elGR.js +3 -4
  357. package/locales/esES.js +40 -54
  358. package/locales/faIR.js +3 -4
  359. package/locales/fiFI.js +3 -4
  360. package/locales/frFR.js +3 -4
  361. package/locales/heIL.js +5 -5
  362. package/locales/huHU.js +3 -4
  363. package/locales/index.d.ts +1 -0
  364. package/locales/index.js +1 -0
  365. package/locales/itIT.js +3 -4
  366. package/locales/jaJP.js +16 -21
  367. package/locales/koKR.js +3 -4
  368. package/locales/nbNO.js +3 -4
  369. package/locales/nlNL.js +3 -4
  370. package/locales/plPL.js +3 -4
  371. package/locales/ptBR.js +3 -4
  372. package/locales/roRO.js +3 -4
  373. package/locales/ruRU.js +16 -21
  374. package/locales/skSK.js +10 -13
  375. package/locales/svSE.js +12 -15
  376. package/locales/trTR.js +3 -4
  377. package/locales/ukUA.js +21 -30
  378. package/locales/viVN.js +19 -26
  379. package/locales/zhCN.js +3 -4
  380. package/locales/zhTW.js +3 -4
  381. package/models/api/gridApiCommunity.d.ts +3 -1
  382. package/models/api/gridClipboardApi.d.ts +1 -2
  383. package/models/api/gridColumnApi.d.ts +14 -6
  384. package/models/api/gridColumnSpanning.d.ts +1 -1
  385. package/models/api/gridCoreApi.d.ts +8 -25
  386. package/models/api/gridDensityApi.d.ts +3 -6
  387. package/models/api/gridEditingApi.d.ts +4 -4
  388. package/models/api/gridFilterApi.d.ts +4 -10
  389. package/models/api/gridLocaleTextApi.d.ts +4 -4
  390. package/models/api/gridParamsApi.d.ts +1 -1
  391. package/models/api/gridRowApi.d.ts +18 -16
  392. package/models/api/index.d.ts +1 -1
  393. package/models/colDef/gridColDef.d.ts +26 -24
  394. package/models/colDef/gridColType.d.ts +2 -2
  395. package/models/colDef/gridColumnTypesRecord.d.ts +1 -1
  396. package/models/colDef/index.d.ts +1 -1
  397. package/models/colDef/index.js +2 -2
  398. package/models/events/gridEventListener.d.ts +1 -1
  399. package/models/events/gridEventLookup.d.ts +39 -33
  400. package/models/events/gridEventPublisher.d.ts +8 -8
  401. package/models/gridCell.d.ts +11 -2
  402. package/models/gridCellClass.d.ts +3 -2
  403. package/models/gridColumnGrouping.d.ts +4 -4
  404. package/models/gridColumnHeaderClass.d.ts +2 -2
  405. package/models/gridColumnSpanning.d.ts +2 -2
  406. package/models/gridDensity.d.ts +1 -10
  407. package/models/gridDensity.js +1 -13
  408. package/models/gridEditRowModel.d.ts +3 -4
  409. package/models/gridEditRowModel.js +0 -1
  410. package/models/gridExport.d.ts +2 -2
  411. package/models/gridFeatureMode.d.ts +1 -1
  412. package/models/gridFilterItem.d.ts +4 -5
  413. package/models/gridFilterItem.js +6 -6
  414. package/models/gridFilterModel.d.ts +9 -9
  415. package/models/gridFilterOperator.d.ts +5 -8
  416. package/models/gridIconSlotsComponent.d.ts +30 -0
  417. package/models/gridPaginationProps.d.ts +11 -6
  418. package/models/gridRenderContextProps.d.ts +1 -1
  419. package/models/gridRootContainerRef.d.ts +1 -1
  420. package/models/gridRowSelectionModel.d.ts +2 -2
  421. package/models/gridRows.d.ts +12 -12
  422. package/models/gridSlotsComponent.d.ts +0 -11
  423. package/models/gridSlotsComponentsProps.d.ts +0 -2
  424. package/models/gridSortModel.d.ts +3 -3
  425. package/models/gridStateCommunity.d.ts +2 -3
  426. package/models/index.d.ts +1 -0
  427. package/models/index.js +1 -0
  428. package/models/muiEvent.d.ts +2 -2
  429. package/models/params/gridCellParams.d.ts +5 -5
  430. package/models/params/gridColumnHeaderParams.d.ts +1 -1
  431. package/models/params/gridColumnOrderChangeParams.d.ts +2 -10
  432. package/models/params/gridEditCellParams.d.ts +2 -2
  433. package/models/params/gridRowParams.d.ts +3 -3
  434. package/models/params/gridScrollParams.d.ts +1 -1
  435. package/models/props/DataGridProps.d.ts +20 -72
  436. package/modern/DataGrid/DataGrid.js +41 -94
  437. package/modern/DataGrid/index.js +1 -1
  438. package/modern/DataGrid/useDataGridComponent.js +2 -2
  439. package/modern/DataGrid/useDataGridProps.js +8 -13
  440. package/modern/colDef/gridDateColDef.js +34 -8
  441. package/modern/colDef/gridDateOperators.js +3 -4
  442. package/modern/colDef/gridSingleSelectColDef.js +36 -3
  443. package/modern/colDef/gridSingleSelectOperators.js +2 -47
  444. package/modern/colDef/gridStringOperators.js +1 -1
  445. package/modern/components/GridAutoSizer.js +6 -19
  446. package/modern/components/GridFooter.js +2 -2
  447. package/modern/components/GridPagination.js +17 -14
  448. package/modern/components/GridRow.js +14 -16
  449. package/modern/components/GridScrollArea.js +4 -3
  450. package/modern/components/base/GridBody.js +9 -20
  451. package/modern/components/base/GridFooterPlaceholder.js +1 -8
  452. package/modern/components/base/GridOverlays.js +3 -3
  453. package/modern/components/base/index.js +0 -2
  454. package/modern/components/cell/GridCell.js +16 -11
  455. package/modern/components/cell/GridEditSingleSelectCell.js +24 -37
  456. package/modern/components/cell/GridSkeletonCell.js +1 -1
  457. package/modern/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
  458. package/modern/components/columnHeaders/GridColumnGroupHeader.js +5 -18
  459. package/modern/components/columnHeaders/GridColumnHeaderItem.js +29 -42
  460. package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  461. package/modern/components/columnHeaders/GridColumnHeaders.js +5 -9
  462. package/modern/components/columnHeaders/GridGenericColumnHeaderItem.js +5 -6
  463. package/modern/components/columnSelection/GridHeaderCheckbox.js +2 -2
  464. package/modern/components/containers/GridFooterContainer.js +4 -8
  465. package/modern/components/containers/GridRoot.js +4 -2
  466. package/modern/components/containers/GridRootStyles.js +58 -10
  467. package/modern/components/icons/index.js +12 -1
  468. package/modern/components/menu/GridMenu.js +1 -9
  469. package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +3 -3
  470. package/modern/components/menu/columnMenu/GridColumnMenu.js +57 -35
  471. package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +9 -5
  472. package/modern/components/menu/columnMenu/{GridFilterItemProps.js → GridColumnMenuItemProps.js} +0 -0
  473. package/modern/components/menu/columnMenu/index.js +7 -7
  474. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +21 -0
  475. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +43 -0
  476. package/{components/menu/columnMenu/HideGridColMenuItem.js → modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js} +22 -20
  477. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +43 -0
  478. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +73 -0
  479. package/modern/components/menu/columnMenu/menuItems/index.js +5 -0
  480. package/modern/components/panel/GridColumnsPanel.js +25 -10
  481. package/modern/components/panel/GridPanel.js +8 -1
  482. package/modern/components/panel/filterPanel/GridFilterForm.js +52 -52
  483. package/modern/components/panel/filterPanel/GridFilterInputDate.js +2 -2
  484. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +15 -22
  485. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -3
  486. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +18 -18
  487. package/modern/components/panel/filterPanel/GridFilterInputValue.js +7 -57
  488. package/modern/components/panel/filterPanel/GridFilterPanel.js +18 -18
  489. package/modern/components/panel/filterPanel/filterPanelUtils.js +5 -1
  490. package/modern/components/reexportable.js +1 -0
  491. package/modern/components/toolbar/GridToolbarDensitySelector.js +5 -6
  492. package/modern/components/toolbar/GridToolbarFilterButton.js +3 -3
  493. package/modern/components/virtualization/GridVirtualScroller.js +1 -0
  494. package/modern/constants/defaultGridSlotsComponents.js +9 -9
  495. package/modern/constants/gridClasses.js +1 -1
  496. package/modern/constants/index.js +0 -1
  497. package/modern/constants/localeTextConstants.js +4 -5
  498. package/modern/hooks/core/useGridApiInitialization.js +4 -12
  499. package/modern/hooks/core/useGridInitialization.js +0 -2
  500. package/modern/hooks/features/clipboard/useGridClipboard.js +19 -6
  501. package/modern/hooks/features/columnGrouping/gridColumnGroupsSelector.js +1 -9
  502. package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +2 -2
  503. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +18 -20
  504. package/modern/hooks/features/columnMenu/{columnMenuState.js → columnMenuInterfaces.js} +0 -0
  505. package/modern/hooks/features/columnMenu/index.js +1 -1
  506. package/modern/hooks/features/columnMenu/useGridColumnMenu.js +27 -25
  507. package/modern/hooks/features/columnMenu/useGridColumnMenuComponents.js +63 -0
  508. package/modern/hooks/features/columns/gridColumnsSelector.js +2 -2
  509. package/modern/hooks/features/columns/gridColumnsUtils.js +8 -13
  510. package/modern/hooks/features/columns/useGridColumns.js +28 -14
  511. package/modern/hooks/features/density/densitySelector.js +0 -2
  512. package/modern/hooks/features/density/useGridDensity.js +16 -33
  513. package/modern/hooks/features/dimensions/useGridDimensions.js +9 -8
  514. package/modern/hooks/features/editing/useGridRowEditing.js +8 -3
  515. package/modern/hooks/features/events/useGridEvents.js +0 -3
  516. package/modern/hooks/features/export/useGridPrintExport.js +19 -17
  517. package/modern/hooks/features/filter/gridFilterSelector.js +11 -11
  518. package/modern/hooks/features/filter/gridFilterState.js +3 -3
  519. package/modern/hooks/features/filter/gridFilterUtils.js +28 -28
  520. package/modern/hooks/features/filter/useGridFilter.js +22 -17
  521. package/modern/hooks/features/focus/useGridFocus.js +8 -1
  522. package/modern/hooks/features/index.js +0 -1
  523. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +9 -2
  524. package/modern/hooks/features/pagination/gridPaginationSelector.js +16 -9
  525. package/modern/hooks/features/pagination/gridPaginationUtils.js +26 -0
  526. package/modern/hooks/features/pagination/useGridPagination.js +153 -16
  527. package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +1 -1
  528. package/modern/hooks/features/rowSelection/useGridRowSelection.js +18 -12
  529. package/modern/hooks/features/rows/gridRowsUtils.js +4 -4
  530. package/modern/hooks/features/rows/useGridRows.js +6 -4
  531. package/modern/hooks/features/rows/useGridRowsMeta.js +12 -12
  532. package/modern/hooks/features/scroll/useGridScroll.js +2 -2
  533. package/modern/hooks/features/sorting/useGridSorting.js +12 -1
  534. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +29 -22
  535. package/modern/hooks/utils/index.js +0 -1
  536. package/modern/hooks/utils/useGridApiMethod.js +8 -6
  537. package/modern/hooks/utils/useGridVisibleRows.js +2 -2
  538. package/modern/index.js +12 -2
  539. package/modern/internals/index.js +3 -1
  540. package/modern/lib/createDetectElementResize/index.js +5 -5
  541. package/modern/locales/arSD.js +3 -4
  542. package/modern/locales/beBY.js +144 -0
  543. package/modern/locales/bgBG.js +3 -4
  544. package/modern/locales/coreLocales.js +60 -0
  545. package/modern/locales/csCZ.js +3 -4
  546. package/modern/locales/daDK.js +3 -4
  547. package/modern/locales/deDE.js +3 -4
  548. package/modern/locales/elGR.js +3 -4
  549. package/modern/locales/esES.js +40 -54
  550. package/modern/locales/faIR.js +3 -4
  551. package/modern/locales/fiFI.js +3 -4
  552. package/modern/locales/frFR.js +3 -4
  553. package/modern/locales/heIL.js +5 -5
  554. package/modern/locales/huHU.js +3 -4
  555. package/modern/locales/index.js +1 -0
  556. package/modern/locales/itIT.js +3 -4
  557. package/modern/locales/jaJP.js +16 -21
  558. package/modern/locales/koKR.js +3 -4
  559. package/modern/locales/nbNO.js +3 -4
  560. package/modern/locales/nlNL.js +3 -4
  561. package/modern/locales/plPL.js +3 -4
  562. package/modern/locales/ptBR.js +3 -4
  563. package/modern/locales/roRO.js +3 -4
  564. package/modern/locales/ruRU.js +16 -21
  565. package/modern/locales/skSK.js +10 -13
  566. package/modern/locales/svSE.js +12 -15
  567. package/modern/locales/trTR.js +3 -4
  568. package/modern/locales/ukUA.js +21 -30
  569. package/modern/locales/viVN.js +19 -26
  570. package/modern/locales/zhCN.js +3 -4
  571. package/modern/locales/zhTW.js +3 -4
  572. package/modern/models/colDef/index.js +2 -2
  573. package/modern/models/gridDensity.js +1 -13
  574. package/modern/models/gridEditRowModel.js +0 -1
  575. package/modern/models/gridFilterItem.js +6 -6
  576. package/modern/models/index.js +1 -0
  577. package/modern/utils/utils.js +1 -1
  578. package/node/DataGrid/DataGrid.js +39 -92
  579. package/node/DataGrid/index.js +0 -7
  580. package/node/DataGrid/useDataGridComponent.js +2 -2
  581. package/node/DataGrid/useDataGridProps.js +9 -15
  582. package/node/colDef/gridDateColDef.js +34 -8
  583. package/node/colDef/gridDateOperators.js +3 -4
  584. package/node/colDef/gridSingleSelectColDef.js +35 -2
  585. package/node/colDef/gridSingleSelectOperators.js +3 -49
  586. package/node/colDef/gridStringOperators.js +1 -1
  587. package/node/components/GridAutoSizer.js +6 -19
  588. package/node/components/GridFooter.js +1 -1
  589. package/node/components/GridPagination.js +16 -13
  590. package/node/components/GridRow.js +14 -16
  591. package/node/components/GridScrollArea.js +3 -2
  592. package/node/components/base/GridBody.js +9 -20
  593. package/node/components/base/GridFooterPlaceholder.js +1 -8
  594. package/node/components/base/GridOverlays.js +2 -2
  595. package/node/components/base/index.js +0 -22
  596. package/node/components/cell/GridCell.js +16 -11
  597. package/node/components/cell/GridEditSingleSelectCell.js +23 -36
  598. package/node/components/cell/GridSkeletonCell.js +1 -1
  599. package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
  600. package/node/components/columnHeaders/GridColumnGroupHeader.js +5 -18
  601. package/node/components/columnHeaders/GridColumnHeaderItem.js +29 -42
  602. package/node/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  603. package/node/components/columnHeaders/GridColumnHeaders.js +4 -8
  604. package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +5 -6
  605. package/node/components/columnSelection/GridHeaderCheckbox.js +1 -1
  606. package/node/components/containers/GridFooterContainer.js +3 -7
  607. package/node/components/containers/GridRoot.js +4 -2
  608. package/node/components/containers/GridRootStyles.js +57 -9
  609. package/node/components/icons/index.js +16 -2
  610. package/node/components/menu/GridMenu.js +1 -9
  611. package/node/components/menu/columnMenu/GridColumnHeaderMenu.js +3 -3
  612. package/node/components/menu/columnMenu/GridColumnMenu.js +60 -35
  613. package/node/components/menu/columnMenu/GridColumnMenuContainer.js +9 -5
  614. package/node/components/menu/columnMenu/{GridFilterItemProps.js → GridColumnMenuItemProps.js} +0 -0
  615. package/node/components/menu/columnMenu/index.js +26 -55
  616. package/node/components/{base/GridErrorHandler.js → menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js} +9 -24
  617. package/node/components/menu/columnMenu/{GridFilterMenuItem.js → menuItems/GridColumnMenuFilterItem.js} +20 -12
  618. package/node/components/menu/columnMenu/{HideGridColMenuItem.js → menuItems/GridColumnMenuHideItem.js} +21 -20
  619. package/node/components/menu/columnMenu/{GridColumnsMenuItem.js → menuItems/GridColumnMenuManageItem.js} +18 -10
  620. package/node/components/menu/columnMenu/{SortGridMenuItems.js → menuItems/GridColumnMenuSortItem.js} +41 -25
  621. package/node/components/menu/columnMenu/menuItems/index.js +60 -0
  622. package/node/components/panel/GridColumnsPanel.js +25 -10
  623. package/node/components/panel/GridPanel.js +8 -1
  624. package/node/components/panel/filterPanel/GridFilterForm.js +51 -51
  625. package/node/components/panel/filterPanel/GridFilterInputDate.js +2 -2
  626. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +14 -21
  627. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -3
  628. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +17 -17
  629. package/node/components/panel/filterPanel/GridFilterInputValue.js +7 -57
  630. package/node/components/panel/filterPanel/GridFilterPanel.js +17 -17
  631. package/node/components/panel/filterPanel/filterPanelUtils.js +7 -1
  632. package/node/components/reexportable.js +24 -0
  633. package/node/components/toolbar/GridToolbarDensitySelector.js +5 -6
  634. package/node/components/toolbar/GridToolbarFilterButton.js +3 -3
  635. package/node/components/virtualization/GridVirtualScroller.js +1 -0
  636. package/node/constants/defaultGridSlotsComponents.js +9 -9
  637. package/node/constants/gridClasses.js +1 -1
  638. package/node/constants/index.js +0 -11
  639. package/node/constants/localeTextConstants.js +4 -5
  640. package/node/hooks/core/useGridApiInitialization.js +4 -12
  641. package/node/hooks/core/useGridInitialization.js +0 -2
  642. package/node/hooks/features/clipboard/useGridClipboard.js +19 -6
  643. package/node/hooks/features/columnGrouping/gridColumnGroupsSelector.js +2 -11
  644. package/node/hooks/features/columnGrouping/useGridColumnGrouping.js +2 -2
  645. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +15 -17
  646. package/node/hooks/features/columnMenu/{columnMenuState.js → columnMenuInterfaces.js} +0 -0
  647. package/node/hooks/features/columnMenu/index.js +4 -4
  648. package/node/hooks/features/columnMenu/useGridColumnMenu.js +27 -25
  649. package/node/hooks/features/columnMenu/useGridColumnMenuComponents.js +72 -0
  650. package/node/hooks/features/columns/gridColumnsSelector.js +2 -2
  651. package/node/hooks/features/columns/gridColumnsUtils.js +9 -14
  652. package/node/hooks/features/columns/useGridColumns.js +26 -12
  653. package/node/hooks/features/density/densitySelector.js +1 -5
  654. package/node/hooks/features/density/useGridDensity.js +16 -33
  655. package/node/hooks/features/dimensions/useGridDimensions.js +8 -7
  656. package/node/hooks/features/editing/useGridRowEditing.js +8 -3
  657. package/node/hooks/features/events/useGridEvents.js +0 -3
  658. package/node/hooks/features/export/useGridPrintExport.js +18 -16
  659. package/node/hooks/features/filter/gridFilterSelector.js +17 -17
  660. package/node/hooks/features/filter/gridFilterState.js +2 -2
  661. package/node/hooks/features/filter/gridFilterUtils.js +27 -27
  662. package/node/hooks/features/filter/useGridFilter.js +21 -16
  663. package/node/hooks/features/focus/useGridFocus.js +8 -1
  664. package/node/hooks/features/index.js +0 -11
  665. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +8 -1
  666. package/node/hooks/features/pagination/gridPaginationSelector.js +18 -10
  667. package/node/hooks/features/pagination/gridPaginationUtils.js +38 -0
  668. package/node/hooks/features/pagination/useGridPagination.js +156 -17
  669. package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +1 -1
  670. package/node/hooks/features/rowSelection/useGridRowSelection.js +17 -11
  671. package/node/hooks/features/rows/gridRowsUtils.js +3 -3
  672. package/node/hooks/features/rows/useGridRows.js +6 -4
  673. package/node/hooks/features/rows/useGridRowsMeta.js +11 -11
  674. package/node/hooks/features/scroll/useGridScroll.js +1 -1
  675. package/node/hooks/features/sorting/useGridSorting.js +12 -1
  676. package/node/hooks/features/virtualization/useGridVirtualScroller.js +28 -21
  677. package/node/hooks/utils/index.js +0 -11
  678. package/node/hooks/utils/useGridApiMethod.js +8 -6
  679. package/node/hooks/utils/useGridVisibleRows.js +1 -1
  680. package/node/index.js +27 -3
  681. package/node/internals/index.js +20 -0
  682. package/node/lib/createDetectElementResize/index.js +5 -5
  683. package/node/locales/arSD.js +3 -4
  684. package/node/locales/beBY.js +151 -0
  685. package/node/locales/bgBG.js +3 -4
  686. package/node/locales/coreLocales.js +68 -0
  687. package/node/locales/csCZ.js +3 -4
  688. package/node/locales/daDK.js +3 -4
  689. package/node/locales/deDE.js +3 -4
  690. package/node/locales/elGR.js +3 -4
  691. package/node/locales/esES.js +40 -54
  692. package/node/locales/faIR.js +3 -4
  693. package/node/locales/fiFI.js +3 -4
  694. package/node/locales/frFR.js +3 -4
  695. package/node/locales/heIL.js +5 -5
  696. package/node/locales/huHU.js +3 -4
  697. package/node/locales/index.js +11 -0
  698. package/node/locales/itIT.js +3 -4
  699. package/node/locales/jaJP.js +16 -21
  700. package/node/locales/koKR.js +3 -4
  701. package/node/locales/nbNO.js +3 -4
  702. package/node/locales/nlNL.js +3 -4
  703. package/node/locales/plPL.js +3 -4
  704. package/node/locales/ptBR.js +3 -4
  705. package/node/locales/roRO.js +3 -4
  706. package/node/locales/ruRU.js +16 -21
  707. package/node/locales/skSK.js +10 -13
  708. package/node/locales/svSE.js +12 -15
  709. package/node/locales/trTR.js +3 -4
  710. package/node/locales/ukUA.js +21 -30
  711. package/node/locales/viVN.js +19 -26
  712. package/node/locales/zhCN.js +3 -4
  713. package/node/locales/zhTW.js +3 -4
  714. package/node/models/colDef/index.js +0 -11
  715. package/node/models/gridDensity.js +1 -15
  716. package/node/models/gridEditRowModel.js +0 -1
  717. package/node/models/gridFilterItem.js +7 -7
  718. package/node/models/index.js +11 -0
  719. package/node/utils/utils.js +1 -1
  720. package/package.json +3 -3
  721. package/utils/EventManager.d.ts +1 -1
  722. package/utils/cleanupTracking/CleanupTracking.d.ts +2 -2
  723. package/utils/createSelector.d.ts +5 -5
  724. package/utils/utils.d.ts +1 -1
  725. package/utils/utils.js +1 -1
  726. package/components/ErrorBoundary.d.ts +0 -20
  727. package/components/ErrorBoundary.js +0 -32
  728. package/components/GridErrorOverlay.d.ts +0 -8
  729. package/components/GridErrorOverlay.js +0 -27
  730. package/components/base/GridErrorHandler.d.ts +0 -8
  731. package/components/base/GridErrorHandler.js +0 -38
  732. package/components/base/GridHeaderPlaceholder.d.ts +0 -2
  733. package/components/base/GridHeaderPlaceholder.js +0 -16
  734. package/components/menu/columnMenu/GridColumnsMenuItem.d.ts +0 -7
  735. package/components/menu/columnMenu/GridColumnsMenuItem.js +0 -34
  736. package/components/menu/columnMenu/GridFilterMenuItem.d.ts +0 -7
  737. package/components/menu/columnMenu/GridFilterMenuItem.js +0 -34
  738. package/components/menu/columnMenu/HideGridColMenuItem.d.ts +0 -7
  739. package/components/menu/columnMenu/SortGridMenuItems.d.ts +0 -7
  740. package/components/menu/columnMenu/SortGridMenuItems.js +0 -57
  741. package/hooks/core/useGridErrorHandler.d.ts +0 -4
  742. package/hooks/core/useGridErrorHandler.js +0 -21
  743. package/hooks/features/columnMenu/columnMenuState.d.ts +0 -4
  744. package/hooks/features/editing/index.d.ts +0 -1
  745. package/hooks/features/editing/index.js +0 -1
  746. package/hooks/features/pagination/useGridPage.d.ts +0 -8
  747. package/hooks/features/pagination/useGridPage.js +0 -137
  748. package/hooks/features/pagination/useGridPageSize.d.ts +0 -8
  749. package/hooks/features/pagination/useGridPageSize.js +0 -110
  750. package/hooks/utils/useGridScrollFn.d.ts +0 -4
  751. package/hooks/utils/useGridScrollFn.js +0 -20
  752. package/legacy/components/ErrorBoundary.js +0 -55
  753. package/legacy/components/GridErrorOverlay.js +0 -27
  754. package/legacy/components/base/GridErrorHandler.js +0 -36
  755. package/legacy/components/base/GridHeaderPlaceholder.js +0 -16
  756. package/legacy/components/menu/columnMenu/GridColumnsMenuItem.js +0 -32
  757. package/legacy/components/menu/columnMenu/GridFilterMenuItem.js +0 -32
  758. package/legacy/components/menu/columnMenu/SortGridMenuItems.js +0 -57
  759. package/legacy/hooks/core/useGridErrorHandler.js +0 -23
  760. package/legacy/hooks/features/editing/index.js +0 -1
  761. package/legacy/hooks/features/pagination/useGridPage.js +0 -143
  762. package/legacy/hooks/features/pagination/useGridPageSize.js +0 -116
  763. package/legacy/hooks/utils/useGridScrollFn.js +0 -20
  764. package/modern/components/ErrorBoundary.js +0 -31
  765. package/modern/components/GridErrorOverlay.js +0 -27
  766. package/modern/components/base/GridErrorHandler.js +0 -35
  767. package/modern/components/base/GridHeaderPlaceholder.js +0 -15
  768. package/modern/components/menu/columnMenu/GridColumnsMenuItem.js +0 -34
  769. package/modern/components/menu/columnMenu/GridFilterMenuItem.js +0 -34
  770. package/modern/components/menu/columnMenu/SortGridMenuItems.js +0 -57
  771. package/modern/hooks/core/useGridErrorHandler.js +0 -21
  772. package/modern/hooks/features/editing/index.js +0 -1
  773. package/modern/hooks/features/pagination/useGridPage.js +0 -134
  774. package/modern/hooks/features/pagination/useGridPageSize.js +0 -107
  775. package/modern/hooks/utils/useGridScrollFn.js +0 -19
  776. package/node/components/ErrorBoundary.js +0 -40
  777. package/node/components/GridErrorOverlay.js +0 -37
  778. package/node/components/base/GridHeaderPlaceholder.js +0 -24
  779. package/node/hooks/core/useGridErrorHandler.js +0 -30
  780. package/node/hooks/features/editing/index.js +0 -16
  781. package/node/hooks/features/pagination/useGridPage.js +0 -145
  782. package/node/hooks/features/pagination/useGridPageSize.js +0 -118
  783. package/node/hooks/utils/useGridScrollFn.js +0 -27
package/CHANGELOG.md CHANGED
@@ -3,6 +3,932 @@
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-beta.1
7
+
8
+ _Jan 27, 2023_
9
+
10
+ We'd like to offer a big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 New shortcuts component for the date pickers (#7154) @alexfauquette
13
+ - 🌍 Add Belarusian (be-BY), Czech (cs-CZ) and Russian (ru-RU) locales
14
+ - 🌍 Improve Spanish (es-ES), Japanese (ja-JP), Slovak (sk-SK), and Vietnamese (vi-VN) locales
15
+ - ✨ New codemods for migrating to v6
16
+ - 📚 Documentation improvements
17
+ - 🐞 Bug fixes
18
+
19
+ ### `@mui/x-data-grid@v6.0.0-beta.1` / `@mui/x-data-grid-pro@v6.0.0-beta.1` / `@mui/x-data-grid-premium@v6.0.0-beta.1`
20
+
21
+ #### Changes
22
+
23
+ - [DataGrid] Add `title` attribute to cells (#7682) @thupi
24
+ - [DataGrid] Fix `autoHeight` not working properly inside of a flex container (#7701) @cherniavskii
25
+ - [DataGrid] Fix grid state not being updated after print preview is closed (#7642) @cherniavskii
26
+ - [DataGrid] Fix non-hideable columns visibility toggling (#7637) @cherniavskii
27
+ - [DataGrid] Fix scrolling on resize for data grids inside shadow root (#7298) @akiradev
28
+ - [l10n] Add Slovak (sk-SK) translation for aggregation functions (#7702) @msidlo
29
+ - [l10n] Add missing core locales for `MuiTablePagination` (#7717) @MBilalShafi
30
+ - [l10n] Improve Spanish (es-ES) and Vietnamese (vi-VN) locale (#7634) @WiXSL and @SpacerZ
31
+ - [l10n] Add Belarusian (be-BY) locale (#7646) @volhalink
32
+
33
+ ### `@mui/x-date-pickers@v6.0.0-beta.1` / `@mui/x-date-pickers-pro@v6.0.0-beta.1`
34
+
35
+ #### Changes
36
+
37
+ - [pickers] Fix `aria-labelledby` assignment to dialog (#7608) @LukasTy
38
+ - [pickers] Support `UTC` with `dayjs` (#7610) @flaviendelangle
39
+ - [pickers] Update focus when opening a UI view (#7620) @alexfauquette
40
+ - [DateRangePickers] Add shortcuts component (#7154) @alexfauquette
41
+ - [l10n] Add Czech (cs-CZ) locale (#7645) @OndrejHj04
42
+ - [l10n] Add Russian (ru-RU) locale (#7706) @rstmzh
43
+ - [l10n] Improve Japanese (ja-JP) locale (#7624) @makoto14
44
+
45
+ ### `@mui/x-codemod@v6.0.0-beta.1`
46
+
47
+ #### Changes
48
+
49
+ - [codemod] Add pickers `replace-toolbar-props-by-slot` codemod (#7687) @alexfauquette
50
+ - [codemod] Add `GridColumnMenuItemProps` to `column-menu-components-rename` codemod (#7710) @MBilalShafi
51
+ - [codemod] Add `headerHeight` prop update to `row-selection-props-rename` codemod (#7711) @MBilalShafi
52
+ - [codemod] Add pickers codemod for `components` to `slots` renaming (#7533) @alexfauquette
53
+ - [codemod] Add pickers `migrate-to-components-componentsProps` and `replace-arrows-button-slot` codemods (#7698) @alexfauquette
54
+ - [codemod] Add data grid codemod renaming `rowsPerPageOptions` prop to `pageSizeOptions` (#7603) @MBilalShafi
55
+ - [codemod] Add pickers `rename-should-disable-time` codemod (#7709) @alexfauquette
56
+ - [codemod] Add data grid `row-selection-props-rename` codemod (#7485) @MBilalShafi
57
+ - [codemod] Add data grid `rename-selectors-and-events` codemod (#7699) @MBilalShafi
58
+ - [codemod] Add pickers `replace-tabs-props` codemod (#7639) @alexfauquette
59
+
60
+ ### Docs
61
+
62
+ - [docs] Add info callout about available component `slots` (#7714) @Vivek-Prajapatii
63
+ - [docs] Add recipe for pinning grouped column (#7712) @MBilalShafi
64
+ - [docs] Fix 404 links to picker API page @oliviertassinari
65
+ - [docs] Update `DemoContainer` `components` prop using a codemod (#7574) @alexfauquette
66
+
67
+ ### Core
68
+
69
+ - [core] Fix `innerslotProps` typo (#7697) @LukasTy
70
+ - [core] Upgrade monorepo (#7676) @cherniavskii
71
+
72
+ ## 6.0.0-beta.0
73
+
74
+ _Jan 19, 2023_
75
+
76
+ After a long period in alpha, we're glad to announce the first MUI X v6 beta!
77
+ We encourage you to try out this version, packed with improvements, bug fixes, and a few highlighted features ✨:
78
+
79
+ **Data Grid**
80
+
81
+ - [Access to the API Object in the community version](https://next.mui.com/x/react-data-grid/api-object/)
82
+ - [Improved column menu](https://next.mui.com/x/react-data-grid/column-menu/)
83
+ - [Cell selection range](https://next.mui.com/x/react-data-grid/cell-selection/) (Premium)
84
+
85
+ **Date and Time pickers**
86
+
87
+ - [Fields: the new default input for pickers](https://next.mui.com/x/react-date-pickers/fields/).
88
+ - [Improved layout customization](https://next.mui.com/x/react-date-pickers/custom-layout/)
89
+ - [Edit date ranges with drag and drop](https://next.mui.com/x/react-date-pickers/date-range-calendar/) (Pro)
90
+
91
+ You can check the migration guides for the [Data Grid](https://next.mui.com/x/migration/migration-data-grid-v5/) and [Date Pickers](https://next.mui.com/x/migration/migration-pickers-v5/) in the documentation.
92
+
93
+ We'd like to offer a big thanks to the 10 contributors who made this release possible.
94
+
95
+ - ✨ Merge `page` and `pageSize` props into `paginationModel`
96
+ - 🚀 Replace old masked picker components with field based ones
97
+ - 🌍 Improve Swedish (sv-SE) and Italian (it-IT) locales
98
+ - 📚 Documentation improvements
99
+ - 🐞 Bug fixes
100
+
101
+ ### `@mui/x-data-grid@v6.0.0-beta.0` / `@mui/x-data-grid-pro@v6.0.0-beta.0` / `@mui/x-data-grid-premium@v6.0.0-beta.0`
102
+
103
+ #### Breaking changes
104
+
105
+ - The `disableExtendRowFullWidth` prop was removed.
106
+ Use `showCellVerticalBorder` or `showColumnVerticalBorder` props to show or hide right border for cells and header cells respectively.
107
+
108
+ - The `GridCellIdentifier` type was removed. Use `GridCellCoordinates` instead.
109
+
110
+ - The `singleSelect` column type now has a default value formatter that returns the `label` corresponding to the selected value when `valueOptions` is an array of objects.
111
+ As consequence, any existing value formatter will not be applied to the individual options anymore, but only to the text of the cell.
112
+ It is recommended to migrate `valueOptions` to an array of objects to be able to add a custom label for each value.
113
+ To override the label used for each option when the cell is in edit mode or in the filter panel, the following components now support a `getOptionLabel` prop.
114
+ This prop accepts a callback that is called with the item from `valueOptions` and must return the new label.
115
+
116
+ - `GridEditSingleSelectCell`
117
+ - `GridFilterInputSingleSelect`
118
+ - `GridFilterInputMultipleSingleSelect`
119
+
120
+ - The `getGridSingleSelectQuickFilterFn` function was removed.
121
+ You can copy the old function and pass it to the `getApplyQuickFilterFn` property of the `singleSelect` column definition.
122
+
123
+ - The `page` and `pageSize` props and their respective event handlers `onPageChange` and `onPageSizeChange` were removed.
124
+ Use `paginationModel` and `onPaginationModelChange` instead.
125
+
126
+ ```diff
127
+ <DataGrid
128
+ rows={rows}
129
+ columns={columns}
130
+ - page={page}
131
+ - pageSize={pageSize}
132
+ - onPageChange={handlePageChange}
133
+ - onPageSizeChange={handlePageSizeChange}
134
+ + paginationModel={{ page, pageSize }}
135
+ + onPaginationModelChange={handlePaginationModelChange}
136
+ />
137
+ ```
138
+
139
+ - The properties `initialState.pagination.page` and `initialState.pagination.pageSize` were also removed.
140
+ Use `initialState.pagination.paginationModel` instead.
141
+
142
+ ```diff
143
+ -initialState={{ pagination: { page: 1, pageSize: 10 } }}
144
+ +initialState={{ pagination: { paginationModel: { page: 1, pageSize: 10 } } }}
145
+ ```
146
+
147
+ - The `rowsPerPageOptions` prop was renamed to `pageSizeOptions`.
148
+
149
+ ```diff
150
+ -<DataGrid rowsPerPageOptions={[10, 20, 50]} />
151
+ +<DataGrid pageSizeOptions={[10, 20, 50]} />
152
+ ```
153
+
154
+ - The `error` and `onError` props were removed - the grid no longer catches errors during rendering.
155
+ To catch errors that happen during rendering use the [error boundary](https://reactjs.org/docs/error-boundaries.html).
156
+
157
+ - The `components.ErrorOverlay` slot was removed.
158
+
159
+ - The `GridErrorOverlay` component was removed.
160
+
161
+ - The `componentError` event was removed.
162
+ Use the [error boundary](https://reactjs.org/docs/error-boundaries.html) to catch errors thrown during rendering.
163
+
164
+ - The `apiRef.current.showError` method was removed.
165
+ The UI for errors is no longer handled by the grid.
166
+
167
+ - The `date` and `dateTime` columns now only support `Date` objects as values.
168
+ To parse a string value, use the [`valueGetter`](https://mui.com/x/react-data-grid/column-definition/#value-getter):
169
+
170
+ ```tsx
171
+ <DataGrid
172
+ columns={[
173
+ {
174
+ field: 'date',
175
+ type: 'date',
176
+ valueGetter: (params) => new Date(params.value),
177
+ },
178
+ ]}
179
+ />
180
+ ```
181
+
182
+ - The following selectors have been renamed:
183
+
184
+ - `gridVisibleSortedRowIdsSelector` renamed to `gridExpandedSortedRowIdsSelector`
185
+ - `gridVisibleSortedRowEntriesSelector` renamed to `gridExpandedSortedRowEntriesSelector`
186
+ - `gridVisibleRowCountSelector` renamed to `gridExpandedRowCountSelector`
187
+ - `gridVisibleSortedTopLevelRowEntriesSelector` renamed to `gridFilteredSortedTopLevelRowEntriesSelector`
188
+ - `gridVisibleTopLevelRowCountSelector` renamed to `gridFilteredTopLevelRowCountSelector`
189
+
190
+ - The `apiRef.current.getVisibleRowModels` method was removed. Use the `gridVisibleSortedRowEntriesSelector` selector instead.
191
+
192
+ - The `GridRowScrollEndParams["virtualRowsCount"]` parameter was renamed to `GridRowScrollEndParams["visibleRowsCount"]`.
193
+
194
+ #### Changes
195
+
196
+ - [DataGrid] Add default value formatter to `singleSelect` (#7290) @m4theushw
197
+ - [DataGrid] Fix flickering on grid scroll (#7549) @cherniavskii
198
+ - [DataGrid] Merge `page` and `pageSize` props into `paginationModel` (#7147) @MBilalShafi
199
+ - [DataGrid] Only support `Date` as value in `date` and `dateTime` column types (#7594) @cherniavskii
200
+ - [DataGrid] Remove error boundary (#7579) @cherniavskii
201
+ - [DataGrid] Remove `GridCellIdentifier` redundant type (#7578) @MBilalShafi
202
+ - [DataGrid] Remove `disableExtendRowFullWidth` prop (#7373) @MBilalShafi
203
+ - [DataGrid] Remove tag limit from `isAnyOf` operator input (#7592) @m4theushw
204
+ - [DataGrid] Use v6 terminology (#7473) @DanailH
205
+ - [DataGridPremium] Keep focus on first selected cell (#7482) @m4theushw
206
+ - [l10n] Update Swedish (sv-SE) locale (#7585) @MaanTyringe
207
+
208
+ ### `@mui/x-date-pickers@v6.0.0-beta.0` / `@mui/x-date-pickers-pro@v6.0.0-beta.0`
209
+
210
+ #### Breaking changes
211
+
212
+ - The `showToolbar` prop has been moved to the `toolbar` component slot props:
213
+
214
+ ```diff
215
+ <DatePicker
216
+ - showToolbar
217
+ + slotProps={{
218
+ + toolbar: {
219
+ + hidden: false,
220
+ + }
221
+ + }}
222
+ />
223
+ ```
224
+
225
+ - The new pickers have replaced the legacy one.
226
+
227
+ If you were using the new pickers with their temporary name, you just have to change your imports.
228
+
229
+ ```diff
230
+ -import { Unstable_NextDatePicker as NextDatePicker } from '@mui/x-date-pickers/NextDatePicker';
231
+ +import { DatePicker } from '@mui/x-date-pickers/DatePicker';
232
+ -import { Unstable_DesktopNextDatePicker as DesktopNextDatePicker } from '@mui/x-date-pickers/DesktopNextDatePicker';
233
+ +import { DesktopDatePicker } from '@mui/x-date-pickers/DesktopDatePicker';
234
+
235
+ // Same for all the other pickers with an `Unstable_` prefix
236
+ ```
237
+
238
+ If you were still using the legacy picker (`DatePicker`, `DesktopDatePicker`, ...), please take a look at our [migration guide](https://next.mui.com/x/migration/migration-pickers-v5/#picker-components) for detailed explanations on how to start using the new ones.
239
+
240
+ - The fields components are no longer unstable
241
+
242
+ ```diff
243
+ -import { Unstable_DateField as DateField } from '@mui/x-date-pickers/DateField';
244
+ +import { DateField } from '@mui/x-date-pickers/DateField';
245
+ ```
246
+
247
+ #### Changes
248
+
249
+ - [DateRangeCalendar] Ignore `calendars` prop on mobile (#7526) @flaviendelangle
250
+ - [DateRangeCalendar] Ignore `showDaysOutsideCurrentMonth` when `calendars > 1` (#7529) @flaviendelangle
251
+ - [DateRangePicker] Propagate `rangePosition` to view (#7602) @LukasTy
252
+ - [fields] Fix upper boundary on 12-hours sections (#7618) @flaviendelangle
253
+ - [fields] Publish value when cleaning the last section of a date (#7519) @flaviendelangle
254
+ - [fields] Remove the `Unstable_` prefix for field components (#7185) @flaviendelangle
255
+ - [pickers] Add missing `slots` and `slotProps` on the date range view renderer (#7586) @flaviendelangle
256
+ - [pickers] Drop legacy pickers (#7545) @flaviendelangle
257
+ - [pickers] Fix day calendar row and column index (#7589) @LukasTy
258
+ - [pickers] Go to the default view when opening a picker (#7484) @flaviendelangle
259
+ - [pickers] Make sure the `className` and `sx` props are applied to the field / static root of the picker and never to the view (#7600) @flaviendelangle
260
+ - [pickers] Rename new pickers (#7575) @flaviendelangle
261
+ - [pickers] Rename remaining `components` and `componentSlots` references (#7576) @LukasTy
262
+ - [pickers] Replace `showToolbar` with toolbar slot `hidden` prop (#7498) @LukasTy
263
+ - [pickers] Spread props to the DOM in `DateCalendar` and `TimeClock` (#7587) @flaviendelangle
264
+ - [pickers] Stop using the `WrapperVariantContext` in `DateRangeCalendar` (#7488) @flaviendelangle
265
+ - [l10n] Improve Italian (it-IT) locale (#7582) @marikadeveloper
266
+
267
+ ### `@mui/x-codemod@v6.0.0-beta.0`
268
+
269
+ #### Changes
270
+
271
+ - [codemod] Remove `disableExtendRowFullWidth` prop (#7508) @MBilalShafi
272
+
273
+ ### Docs
274
+
275
+ - [docs] Clean-up the `field components` page (#7605) @flaviendelangle
276
+ - [docs] List all pickers toolbar pages in api docs side menu (#7577) @LukasTy
277
+ - [docs] Remove "Flex layout" docs section and demo (#7477) @cherniavskii
278
+ - [docs] Rework the pickers "Getting Started" page (#7140) @flaviendelangle
279
+
280
+ ### Core
281
+
282
+ - [core] Add missing `status: needs triage` label on RFC @oliviertassinari
283
+ - [core] Add release documentation step detailing `x-codemod` package tag change (#7617) @LukasTy
284
+ - [core] Fix typo in `CHANGELOG` (#7611) @flaviendelangle
285
+ - [test] Fix date range picker tests to work with western time zones (#7581) @m4theushw
286
+
287
+ ## 6.0.0-alpha.15
288
+
289
+ _Jan 13, 2023_
290
+
291
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
292
+
293
+ - 🚀 Support components and slots for new pickers (#7390) @alexfauquette
294
+ - ✨ Update `onColumnOrderChange` behavior to match `onRowsOrderChange` (#7385) @DanailH
295
+ - 🌍 Improve Spanish (es-ES) and Belarusian (be-BY) locales
296
+ - 📚 Documentation improvements
297
+ - 🐞 Bugfixes
298
+
299
+ ### `@mui/x-data-grid@v6.0.0-alpha.15` / `@mui/x-data-grid-pro@6.0.0-alpha.15` / `@mui/x-data-grid-premium@6.0.0-alpha.15`
300
+
301
+ #### Breaking changes
302
+
303
+ - Remove the `onCellFocusOut` prop (#6302) @cherniavskii
304
+
305
+ The `onCellFocusOut` prop was removed. Use `componentsProps.cell.onBlur` instead:
306
+
307
+ ```tsx
308
+ <DataGrid
309
+ componentsProps={{
310
+ cell: {
311
+ onBlur: (event) => {
312
+ const cellElement = event.currentTarget;
313
+ const field = cellElement.getAttribute('data-field');
314
+ const rowId = cell.parentElement.getAttribute('data-id');
315
+ },
316
+ },
317
+ }}
318
+ />
319
+ ```
320
+
321
+ - [DataGrid] Stop exporting editing selector (#7456) @m4theushw
322
+
323
+ The `gridEditRowsStateSelector` selector was removed.
324
+
325
+ - [DataGrid] Rework column headers and virtual scroller positioning (#7001) @cherniavskii
326
+
327
+ The `headerHeight` prop was renamed to `columnHeaderHeight`.
328
+
329
+ - [DataGrid] Remove the `columnTypes` prop (#7309) @cherniavskii
330
+
331
+ The `columnTypes` prop was removed. For custom column types see [Custom column types](https://mui.com/x/react-data-grid/column-definition/#custom-column-types) docs.
332
+
333
+ - [DataGrid] Rename `linkOperators` to `logicOperators` (#7310) @cherniavskii
334
+
335
+ The `apiRef.current.setFilterLinkOperator` method was renamed to `apiRef.current.setFilterLogicOperator`.
336
+ The `GridLinkOperator` enum was renamed to `GridLogicOperator`.
337
+ The `GridFilterModel['linkOperator']` was renamed to `GridFilterModel['logicOperator']`.
338
+ The `linkOperators` prop of `GridFilterForm` and `GridFilterPanel` components was renamed to `logicOperators`.
339
+ The `linkOperatorInputProps` prop of `GridFilterForm` component was renamed to `logicOperatorInputProps`.
340
+ The `filterFormProps.linkOperatorInputProps` prop in `GridFilterForm` component was renamed to `filterFormProps.logicOperatorInputProps`.
341
+ The `GridLocaleText['filterPanelLinkOperator']` property was renamed to `GridLocaleText['filterPanelLogicOperator']`.
342
+ The `.MuiDataGrid-filterFormLinkOperatorInput`CSS class was renamed to `.MuiDataGrid-filterFormLogicOperatorInput`.
343
+
344
+ - [DataGrid] Remove `Alt+C` keyboard shortcut (#7466) @MBilalShafi
345
+
346
+ <kbd>Alt</kbd> (or <kbd>⌥ Option</kbd>) + <kbd>C</kbd> keyboard shortcut is no longer supported.
347
+
348
+ #### Changes
349
+
350
+ - [DataGrid] Fix <kbd>Tab</kbd> between portaled and non-portaled edit components (#7098) @m4theushw
351
+ - [DataGrid] Remove the `columnTypes` prop (#7309) @cherniavskii
352
+ - [DataGrid] Remove the `onCellFocusOut` prop (#6302) @cherniavskii
353
+ - [DataGrid] Rename `linkOperators` to `logicOperators` (#7310) @cherniavskii
354
+ - [DataGrid] Rework column headers and virtual scroller positioning (#7001) @cherniavskii
355
+ - [DataGrid] Stop exporting editing selector (#7456) @m4theushw
356
+ - [DataGrid] Update `onColumnOrderChange` behavior to match `onRowsOrderChange` (#7385) @DanailH
357
+ - [DataGrid] Improve Spanish (es-ES) locale (#7447) @Anderssxn
358
+ - [DataGrid] Remove Alt+C keyboard shortcut (#7466) @MBilalShafi
359
+ - [DataGridPremium] Fix Excel export not working with date strings (#7396) @cherniavskii
360
+
361
+ ### `@mui/x-date-pickers@6.0.0-alpha.15` / `@mui/x-date-pickers-pro@6.0.0-alpha.15`
362
+
363
+ #### Breaking changes
364
+
365
+ - [pickers] Stop using the `WrapperVariantContext` in `MonthCalendar` and `YearCalendar` (#7382) @flaviendelangle
366
+
367
+ The `modeMobile` and `modeDesktop` classes have been removed from the `PickersMonth` and `PickersYear` internal components.
368
+
369
+ If you were using those classes on responsive components,
370
+ you can import `DEFAULT_DESKTOP_MODE_MEDIA_QUERY` from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro` (or use your custom media query if any):
371
+
372
+ ```diff
373
+ <GlobalStyles
374
+ styles={{
375
+ - [`.${pickersYearClasses.modeDesktop}`]: {
376
+ - backgroundColor: 'red'
377
+ - }
378
+ + [DEFAULT_DESKTOP_MODE_MEDIA_QUERY]: {
379
+ + [`.${pickersYearClasses.root}`]: {
380
+ + backgroundColor: 'red'
381
+ + }
382
+ + }
383
+ - [`.${pickersYearClasses.modeMobile}`]: {
384
+ - backgroundColor: 'red'
385
+ - }
386
+ + [DEFAULT_DESKTOP_MODE_MEDIA_QUERY.replace('@media', '@media not')]: {
387
+ + [`.${pickersYearClasses.root}`]: {
388
+ + backgroundColor: 'red'
389
+ + }
390
+ + }
391
+ }}
392
+ />
393
+ ```
394
+
395
+ Works exactly the same way for `PickersMonth`.
396
+
397
+ - [pickers] Refactor `shouldDisableTime` (#7299) @LukasTy
398
+
399
+ The `shouldDisableTime` prop signature has been changed. Either rename the prop usage to `shouldDisableClock` or refactor usage.
400
+
401
+ ```diff
402
+ <DateTimePicker
403
+ - shouldDisableTime={(timeValue, view) => view === 'hours' && timeValue < 12}
404
+ + shouldDisableClock={(timeValue, view) => view === 'hours' && timeValue < 12}
405
+ />
406
+ ```
407
+
408
+ ```diff
409
+ <DateTimePicker
410
+ - shouldDisableTime={(timeValue, view) => view === 'hours' && timeValue < 12}
411
+ + shouldDisableTime={(value, view) => view === 'hours' && value.hour() < 12}
412
+ />
413
+ ```
414
+
415
+ #### Changes
416
+
417
+ - [fields] Fix Android editing (#7444) @flaviendelangle
418
+ - [pickers] Add Belarusian (be-BY) locale (#7395) @volhalink
419
+ - [pickers] Hide am/pm controls when there is no hour view (#7380) @flaviendelangle
420
+ - [pickers] Hide the tabs by default on `DesktopNextDateTimePicker` (#7503) @flaviendelangle
421
+ - [pickers] Refactor `shouldDisableTime` (#7299) @LukasTy
422
+ - [pickers] Remove `WrapperVariantContext` from `DateTimePickerTabs` (#7374) @LukasTy
423
+ - [pickers] Stop using the `WrapperVariantContext` in `MonthCalendar` and `YearCalendar` (#7382) @flaviendelangle
424
+ - [pickers] Support `components` and `slots` for new pickers (#7390) @alexfauquette
425
+ - [pickers] Replace `slotsProps` by `slotProps` (#7528) @alexfauquette
426
+
427
+ ### Docs
428
+
429
+ - [docs] Fix codesandboxes using `DemoContainer` (#7388) @LukasTy
430
+ - [docs] Fix wrong reference to currentView (#7441) @oliviertassinari
431
+ - [docs] New page for `DateRangeCalendar` (#7378) @flaviendelangle
432
+ - [docs] Update the migration guide with the breaking changes between the legacy and the new pickers (#7345) @flaviendelangle
433
+ - [docs] Use new pickers on "Custom components" demos (#7194) @flaviendelangle
434
+
435
+ ### Core
436
+
437
+ - [core] Handle selection edge case (#7350) @oliviertassinari
438
+ - [core] Improve license message @oliviertassinari
439
+ - [core] Move default `closeOnSelect` to prop definition in `usePickerValue` (#7459) @flaviendelangle
440
+ - [core] Move interfaces of UI views to dedicated files (#7458) @flaviendelangle
441
+ - [core] Update package used to import LicenseInfo (#7442) @oliviertassinari
442
+ - [test] Add a few inheritComponent (#7352) @oliviertassinari
443
+
444
+ ## 6.0.0-alpha.14
445
+
446
+ _Jan 5, 2023_
447
+
448
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
449
+
450
+ - 📆 Add `SingleInputTimeRangeField` and `SingleInputDateTimeRangeField` components (#7186) @alexfauquette
451
+ - 🚀 Use grid for modifying pickers layout (#6900) @alexfauquette
452
+ - ✨ Improve field components editing experience (#7272) @flaviendelangle
453
+ - 💻 Multiple codemods
454
+ - 📚 Many documentation improvements
455
+ - 🐞 Bugfixes
456
+
457
+ ### `@mui/x-data-grid@v6.0.0-alpha.14` / `@mui/x-data-grid-pro@v6.0.0-alpha.14` / `@mui/x-data-grid-premium@v6.0.0-alpha.14`
458
+
459
+ #### Breaking changes
460
+
461
+ - [DataGrid] Set default `GridCellParams['value']` type to `unknown` (#6959) @cherniavskii
462
+
463
+ The default type of `GridCellParams['value']` was changed from `any` to `unknown`.
464
+
465
+ #### Changes
466
+
467
+ - [DataGrid] Fix flickering on mount (#7205) @cherniavskii
468
+ - [DataGrid] Fix selected text in cell input not being copied in Firefox (#6593) @cherniavskii
469
+ - [DataGrid] Invert generic parameters order (#6874) @DanailH
470
+ - [DataGrid] Remove legacy logic for `singleSelect` inside `GridFilterInputValue` (#7386) @m4theushw
471
+ - [DataGrid] Remove remaining props from legacy editing API (#7381) @m4theushw
472
+ - [DataGrid] Set default `GridCellParams['value']` type to `unknown` (#6959) @cherniavskii
473
+
474
+ ### `@mui/x-date-pickers@v6.0.0-alpha.14` / `@mui/x-date-pickers-pro@v6.0.0-alpha.14`
475
+
476
+ #### Breaking changes
477
+
478
+ - [fields] Rename the `input` slot of the fields to `textField` to avoid confusion (#7369) @flaviendelangle
479
+
480
+ #### Changes
481
+
482
+ - [fields] Add `SingleInputTimeRangeField` and `SingleInputDateTimeRangeField` components (#7186) @alexfauquette
483
+ - [fields] Improve editing (automatic section switch, allow letter editing in digit section, allow numeric editing in letter section) (#7272) @flaviendelangle
484
+ - [fields] Rename the `input` slot of the fields to `textField` to avoid confusion (#7369) @flaviendelangle
485
+ - [fields] Prevent date change on `TimeField` arrow edition (#7383) @flaviendelangle
486
+ - [pickers] Clean some JSDoc descriptions (#7384) @flaviendelangle
487
+ - [pickers] Remove redundant `variants` in theme augmentation (#7356) @LukasTy
488
+ - [pickers] Remove the `PaperContent` slot from the new pickers (#7342) @flaviendelangle
489
+ - [pickers] Use grid for modifying the layout (#6900) @alexfauquette
490
+
491
+ ### `@mui/x-codemod@v6.0.0-alpha.14`
492
+
493
+ #### Changes
494
+
495
+ - [codemod] Add new codemod for adapter import (#7348) @flaviendelangle
496
+ - [codemod] Add new codemod for the value prop renaming on the view components (#7338) @flaviendelangle
497
+ - [codemod] Reorganize codemods and add rename column menu components codemod (#7368) @MBilalShafi
498
+
499
+ ### Docs
500
+
501
+ - [docs] Add example to add back the mobile keyboard view (#7347) @flaviendelangle
502
+ - [docs] Cleanup the doc pages of the community pickers (#7339) @flaviendelangle
503
+ - [docs] Drop security fixes support for v4 (#7322) @oliviertassinari
504
+ - [docs] Fix `disablePast` and `disableFuture` definition swap (#7324) @alexfauquette
505
+ - [docs] Hide ad for paid docs pages (#7321) @oliviertassinari
506
+ - [docs] New page for `TimeClock` (#7280) @flaviendelangle
507
+ - [docs] Note the pickers breaking changes supported by the codemod (#7337) @flaviendelangle
508
+ - [docs] Redirect translated pages (#7341) @cherniavskii
509
+ - [docs] Reorganize v6 pickers migration guide (#7257) @flaviendelangle
510
+
511
+ ### Core
512
+
513
+ - [core] Apply eslint rule for React component @oliviertassinari
514
+ - [core] Apply title capitalization convention @oliviertassinari
515
+ - [core] Fix the product license reference name (#7367) @oliviertassinari
516
+ - [core] Order the slots alphabetically in the JSON files (#7349) @flaviendelangle
517
+ - [core] Remove blanklines in `_redirects` @oliviertassinari
518
+ - [core] Remove dead prettier config @oliviertassinari
519
+ - [core] Sync back with the mono repo (#7351) @oliviertassinari
520
+ - [core] Sync monorepo, fix layout scrollbar @oliviertassinari
521
+ - [core] Upgrade monorepo (#7307) @LukasTy
522
+
523
+ ## 6.0.0-alpha.13
524
+
525
+ _Dec 24, 2022_
526
+
527
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
528
+
529
+ - 🚀 New column menu design and API
530
+ - 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
531
+ - 📚 Documentation improvements
532
+ - 🐞 Bugfixes
533
+
534
+ ### `@mui/x-data-grid@6.0.0-alpha.13` / `@mui/x-data-grid-pro@6.0.0-alpha.13` / `@mui/x-data-grid-premium@6.0.0-alpha.13`
535
+
536
+ #### Breaking changes
537
+
538
+ - New column menu design and API (#6619) MBilalShafi
539
+
540
+ The `currentColumn` prop passed to `components.ColumnMenu` was renamed to `colDef`.
541
+ The `column` prop passed to the items of the column menu was renamed to `colDef`.
542
+ The `DATA_GRID_DEFAULT_SLOTS_COMPONENTS` export has been removed.
543
+ The following components and interfaces were been renamed for consistency:
544
+
545
+ **Community Package:**
546
+
547
+ ```diff
548
+ -<GridFilterMenuItem />
549
+ +<GridColumnMenuFilterItem />
550
+ ```
551
+
552
+ ```diff
553
+ -<HideGridColMenuItem />
554
+ +<GridColumnMenuHideItem />
555
+ ```
556
+
557
+ ```diff
558
+ -<GridColumnsMenuItem />
559
+ +<GridColumnMenuColumnsItem />
560
+ ```
561
+
562
+ ```diff
563
+ -<SortGridMenuItems />
564
+ +<GridColumnMenuSortItem />
565
+ ```
566
+
567
+ ```diff
568
+ -interface GridFilterItemProps
569
+ +interface GridColumnMenuItemProps
570
+ ```
571
+
572
+ **Pro package:**
573
+
574
+ ```diff
575
+ -<GridColumnPinningMenuItems />
576
+ +<GridColumnMenuPinningItem />
577
+ ```
578
+
579
+ **Premium package:**
580
+
581
+ ```diff
582
+ -<GridAggregationColumnMenuItem />
583
+ +<GridColumnMenuAggregationItem />
584
+ ```
585
+
586
+ ```diff
587
+ -<GridRowGroupingColumnMenuItems />
588
+ -<GridRowGroupableColumnMenuItems />
589
+ +<GridColumnMenuGroupingItem />
590
+ ```
591
+
592
+ - Improve column definition typing (#7224) @cherniavskii
593
+
594
+ The `GridColumns` type was removed. Use `GridColDef[]` instead.
595
+ The `GridActionsColDef` interface was removed. Use `GridColDef` instead.
596
+ The `GridEnrichedColDef` type was removed. Use `GridColDef` instead.
597
+ The `GridStateColDef` type was removed.
598
+
599
+ If you use it to type `searchPredicate`, use `GridColumnsPanelProps['searchPredicate']` instead.
600
+ If you use it to type `getApplyFilterFn`, `GridFilterOperator['getApplyFilterFn']` can be used as replacement.
601
+
602
+ - Remove GridDensityType enum (#7304) @cherniavskii
603
+
604
+ The `GridDensityTypes` enum was removed. Use `GridDensity` type instead.
605
+
606
+ #### Changes
607
+
608
+ - [DataGrid] Allow disabling of buttons in column panel (#6947) @MBilalShafi
609
+ - [DataGrid] Improve column definition typing (#7224) @cherniavskii
610
+ - [DataGrid] Improve column menu design and API (#6619) @MBilalShafi
611
+ - [DataGrid] Remove `GridDensityType` enum (#7304) @cherniavskii
612
+ - [DataGrid] Remove `rowHeight` and `headerHeight` from state (#7199) @DanailH
613
+ - [DataGrid] Remove column separator to match table styles (#7067) @MBilalShafi
614
+ - [DataGrid] Update Russian (ru-RU) locale (#7220) @VeceluXa
615
+ - [DataGridPro] Use row ID as `key` of the detail panels (#7302) @m4theushw
616
+ - [DataGridPremium] Fix `exceljs` import with parcel (#7284) @alexfauquette
617
+
618
+ ### `@mui/x-date-pickers@6.0.0-alpha.13` / `@mui/x-date-pickers-pro@6.0.0-alpha.13`
619
+
620
+ #### Breaking changes
621
+
622
+ - Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
623
+
624
+ `AdapterLuxon` now requires `luxon` in version `3.0.2` or higher in order to work.
625
+
626
+ Take a look at the [Upgrading Luxon](https://moment.github.io/luxon/#/upgrading) guide if you are using an older version.
627
+
628
+ #### Changes
629
+
630
+ - [DateRangePicker] Fix to propagate `disabled` and `readOnly` on multi input picker (#7135) @LukasTy
631
+ - [fields] Fix multi input fields root element props order and types (#7225) @LukasTy
632
+ - [fields] Support escaped characters (#7184) @flaviendelangle
633
+ - [pickers] Allow to define custom view renderers on the pickers (#7176) @flaviendelangle
634
+ - [pickers] Avoid running validation methods several times in `DateCalendar` (#7247) @flaviendelangle
635
+ - [pickers] Improve Korean (ko-KR) locale (#7266) @hanbin9775
636
+ - [pickers] Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
637
+ - [pickers] Rework view internals (#7097) @flaviendelangle
638
+
639
+ ### `@mui/x-codemod@6.0.0-alpha.13`
640
+
641
+ #### Changes
642
+
643
+ - [codemod] New codemod for view component renaming (#7264) @flaviendelangle
644
+
645
+ ### Docs
646
+
647
+ - [docs] Fix some selectors not being documented (#7218) @cherniavskii
648
+ - [docs] New page for `DateCalendar` (#7053) @flaviendelangle
649
+ - [docs] Split selection docs (#7213) @m4theushw
650
+
651
+ ### Core
652
+
653
+ - [core] Fix API demos callout spacing @oliviertassinari
654
+
655
+ ## 6.0.0-alpha.12
656
+
657
+ _Dec 16, 2022_
658
+
659
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
660
+
661
+ - 🚀 The `apiRef` prop is now available in the `@mui/x-data-grid` package:
662
+
663
+ ```tsx
664
+ const apiRef = useGridApiRef();
665
+
666
+ return <DataGrid apiRef={apiRef} {...other} />;
667
+ ```
668
+
669
+ See [the documentation](https://next.mui.com/x/react-data-grid/api-object/) for more information.
670
+
671
+ - 🎁 The `DataGridPremium` now supports cell selection:
672
+
673
+ ```tsx
674
+ <DataGridPremium unstable_cellSelection />
675
+ ```
676
+
677
+ See [the documentation](https://next.mui.com/x/react-data-grid/selection/#cell-selection) for more information
678
+
679
+ - 🌍 Support the Right To Left orientation on the fields components
680
+ - 📚 Documentation improvements
681
+ - 🐞 Bugfixes
682
+
683
+ ### `@mui/x-data-grid@v6.0.0-alpha.12` / `@mui/x-data-grid-pro@v6.0.0-alpha.12` / `@mui/x-data-grid-premium@v6.0.0-alpha.12`
684
+
685
+ #### Breaking changes
686
+
687
+ - The `showCellRightBorder` was renamed to `showCellVerticalBorder`
688
+ - The `showColumnRightBorder` was renamed to `showColumnVerticalBorder`
689
+ - The `.MuiDataGrid-withBorder` CSS class was renamed to `.MuiDataGrid-withBorderColor` and it only sets `border-color` CSS property now.
690
+ - The following undocumented properties from `apiRef` were removed: `footerRef`, `headerRef`, `columnHeadersElementRef`, `columnHeadersContainerElementRef`
691
+ - The `GridHeaderPlaceholder` component was removed.
692
+ - The `MAX_PAGE_SIZE` constant was removed.
693
+ - The `useGridScrollFn` hook was removed.
694
+
695
+ #### Changes
696
+
697
+ - [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7180) @MBilalShafi
698
+ - [DataGrid] Support `apiRef` in Community package (#6773) @cherniavskii
699
+ - [DataGridPremium] Add support for cell selection (#6567) @m4theushw
700
+ - [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7142) @m4theushw
701
+ - [DataGridPro] Fix missing border in right-pinned columns (#4197) @cherniavskii
702
+ - [DataGridPro] Fix wrong border color on skeleton cells (#7202) @cherniavskii
703
+
704
+ ### `@mui/x-date-pickers@v6.0.0-alpha.12` / `@mui/x-date-pickers-pro@v6.0.0-alpha.12`
705
+
706
+ #### Changes
707
+
708
+ - [fields] Fix bug introduced by RTL in single input range fields (#7189) @alexfauquette
709
+ - [fields] Support RTL out of the box (#6715) @alexfauquette
710
+ - [pickers] Clean `autoFocus` behavior on fields and new pickers (#7153) @flaviendelangle
711
+ - [pickers] Fix label on the new range pickers (#7210) @flaviendelangle
712
+ - [pickers] Fix wrong component name on `StaticNextDateTime` (#7187) @flaviendelangle
713
+
714
+ ### Docs
715
+
716
+ - [docs] Add docs section about field placeholders' localization (#7139) @flaviendelangle
717
+ - [docs] Create a `DemoGrid` component to unify demos with several components (#7057) @flaviendelangle
718
+ - [docs] Document aggregation selectors (#7148) @cherniavskii
719
+ - [docs] Fix 301 links to demo pages in API pages (#7197) @oliviertassinari
720
+ - [docs] Fix errors and warning in demos (#7209) @LukasTy
721
+ - [docs] Use `DemoContainer` and `DemoItem` on every picker demo (#7149) @flaviendelangle
722
+
723
+ ### Core
724
+
725
+ - [core] Fix broken test (#7179) @flaviendelangle
726
+
727
+ ## 6.0.0-alpha.11
728
+
729
+ _Dec 8, 2022_
730
+
731
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
732
+
733
+ - 🚀 Add dragging support for the new Date Range Picker (`NextDateRangePicker`) (#6763) @LukasTy
734
+ - ⚡️ Improve performance of the `day` view (#7066) @flaviendelangle
735
+ - ✨ Fix lazy-loading feature not working in `DataGridPremium` (#7124) @m4theushw
736
+ - 🐞 Bugfixes
737
+
738
+ ### `@mui/x-data-grid@v6.0.0-alpha.11` / `@mui/x-data-grid-pro@v6.0.0-alpha.11` / `@mui/x-data-grid-premium@v6.0.0-alpha.11`
739
+
740
+ #### Breaking changes
741
+
742
+ - The `filterPanelOperators` translation key was renamed to `filterPanelOperator` (#7062) @MBilalShafi
743
+ - The `components.Header` slot was removed. Use `components.Toolbar` slot instead (#6999) @cherniavskii
744
+
745
+ #### Changes
746
+
747
+ - [DataGrid] Fix rows not rendering properly after height change (#6892) @MBilalShafi
748
+ - [DataGrid] Remove `Header` slot (#6999) @cherniavskii
749
+ - [DataGrid] Rename `filterPanelOperators` -> `filterPanelOperator` (#7062) @MBilalShafi
750
+ - [DataGridPremium] Add support for lazy-loading (#7124) @m4theushw
751
+ - [DataGridPremium] Pass `groupId` to aggregation function (#7003) @m4theushw
752
+
753
+ ### `@mui/x-date-pickers@v6.0.0-alpha.11` / `@mui/x-date-pickers-pro@v6.0.0-alpha.11`
754
+
755
+ #### Breaking changes
756
+
757
+ - Remove the callback version of the `action` prop on the `actionBar` slot (#7038) @flaviendelangle
758
+
759
+ The `action` prop of the `actionBar` slot is no longer supporting a callback.
760
+ Instead, you can pass a callback at the slot level:
761
+
762
+ ```diff
763
+ <DatePicker
764
+ componentsProps={{
765
+ - actionBar: {
766
+ - actions: (variant) => (variant === 'desktop' ? [] : ['clear']),
767
+ - },
768
+ + actionBar: ({ wrapperVariant }) => ({
769
+ + actions: wrapperVariant === 'desktop' ? [] : ['clear'],
770
+ + }),
771
+ }}
772
+ />
773
+ ```
774
+
775
+ - The `selectedDays` prop has been removed from the `Day` component (#7066) @flaviendelangle
776
+ If you need to access it, you can control the value and pass it to the slot using `componentsProps`:
777
+
778
+ ```tsx
779
+ function CustomDay({ selectedDay, ...other }) {
780
+ // do something with 'selectedDay'
781
+ return <PickersDay {...other} />;
782
+ }
783
+ function App() {
784
+ const [value, setValue] = React.useState(null);
785
+ return (
786
+ <DatePicker
787
+ value={value}
788
+ onChange={(newValue) => setValue(newValue)}
789
+ components={{ Day: CustomDay }}
790
+ componentsProps={{
791
+ day: { selectedDay: value },
792
+ }}
793
+ />
794
+ );
795
+ }
796
+ ```
797
+
798
+ - The `currentlySelectingRangeEnd` / `setCurrentlySelectingRangeEnd` props on the Date Range Picker toolbar have been renamed to `rangePosition` / `onRangePositionChange` (#6989) @flaviendelangle
799
+
800
+ ```diff
801
+ const CustomToolbarComponent = props => (
802
+ <div>
803
+ - <button onChange={() => props.setCurrentlySelectingRangeEnd('end')}>Edit end date</button>
804
+ + <button onClick={() => props.onRangePositionChange('end')}>Edit end date</button>
805
+ - <div>Is editing end date: {props.currentlySelectingRangeEnd === 'end'}</div>
806
+ + <div>Is editing end date: {props.rangePosition === 'end'}</div>
807
+ </div>
808
+ )
809
+ <DateRangePicker
810
+ components={{
811
+ Toolbar: CustomToolbarComponent
812
+ }}
813
+ />
814
+ ```
815
+
816
+ #### Changes
817
+
818
+ - [DateRangePicker] Add dragging support to edit range (#6763) @LukasTy
819
+ - [pickers] Fix lost props on Date Range Pickers (#7092) @flaviendelangle
820
+ - [pickers] Fix toolbar on the new range pickers (#6989) @flaviendelangle
821
+ - [pickers] Improve performance of `DayCalendar` (#7066) @flaviendelangle
822
+ - [pickers] Initialize date without time when selecting year or month (#7120) @LukasTy
823
+ - [pickers] Remove the callback version of the `action` prop in the `actionBar` component slot (#7038) @flaviendelangle
824
+
825
+ ### Docs
826
+
827
+ - [docs] Add `GridCell` change in migration guide (#7087) @MBilalShafi
828
+ - [docs] Fix API page ad space regression (#7051) @oliviertassinari
829
+ - [docs] Update localization doc to use existing locale (#7102) @LukasTy
830
+
831
+ ### Core
832
+
833
+ - [core] Add codemod to move l10n translation (#7027) @alexfauquette
834
+ - [core] Add notes to remove the legacy pickers internals (#7133) @flaviendelangle
835
+ - [core] Remove `internals-fields` imports (#7119) @flaviendelangle
836
+ - [core] Remove unused code (#7094) @flaviendelangle
837
+ - [core] Sync `ApiPage.js` with monorepo (#7073) @oliviertassinari
838
+ - [test] Fix karma-mocha assertion error messages (#7054) @cherniavskii
839
+
840
+ ## 6.0.0-alpha.10
841
+
842
+ _Dec 1, 2022_
843
+
844
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
845
+
846
+ - 🌍 Improve Ukrainian (uk-UA) and add Urdu (ur-PK) locales
847
+ - 📚 Documentation improvements
848
+ - 🐞 Bugfixes
849
+
850
+ ### `@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`
851
+
852
+ ### Breaking changes
853
+
854
+ - [DataGrid] Removes `GridCell` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
855
+
856
+ Returning `null` in `column.renderCell` or `column.renderEditCell` now renders an empty cell instead of the default formatted value.
857
+
858
+ - [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
859
+
860
+ Properties `columnField` and `operatorValue` of `GridFilterItem` are renamed `field` and `operator`. And `operator` property is now required.
861
+
862
+ ```diff
863
+ filterModel: {
864
+ items: [{
865
+ - columnField: 'rating',
866
+ + field: 'rating',
867
+ - operatorValue: '>',
868
+ + operator: '>', // required
869
+ value: '2.5'
870
+ }],
871
+ },
872
+ ```
873
+
874
+ #### Changes
875
+
876
+ - [DataGrid] Fix row selection when clicking blank cell (#6974) @yami03
877
+ - [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
878
+ - [DataGrid] Removes `<GridCell />` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
879
+ - [DataGridPremium] Fix empty column group in Excel export (#7029) @alexfauquette
880
+ - [DataGridPremium] Update cache before hydrating columns (#7040) @m4theushw
881
+ - [DataGridPremium] Use custom cell component for grouping cell by default (#6692) @cherniavskii
882
+ - [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
883
+
884
+ ### `@mui/x-date-pickers@v6.0.0-alpha.10` / `@mui/x-date-pickers-pro@v6.0.0-alpha.10`
885
+
886
+ #### Breaking changes
887
+
888
+ - Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
889
+
890
+ The `dateRangeIcon` prop has been renamed to `dateIcon`:
891
+
892
+ ```diff
893
+ // Same on all other Date Time Picker variations
894
+ <DateTimePicker
895
+ componentsProps={{
896
+ tabs: {
897
+ - dateRangeIcon: <LightModeIcon />,
898
+ + dateIcon: <LightModeIcon />,
899
+ }
900
+ }}
901
+ />
902
+ ```
903
+
904
+ #### Changes
905
+
906
+ - [DateTimePicker] Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
907
+ - [pickers] Allow non-controlled usage of `TimeClock` (#6962) @flaviendelangle
908
+ - [pickers] Throw error when using adapter from `@date-io` (#6972) @flaviendelangle
909
+ - [l10n] Add Urdu (ur-PK) locale (#7007) @MBilalShafi
910
+ - [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
911
+
912
+ ### Docs
913
+
914
+ - [docs] Add Demos section on the pickers API pages (#6909) @flaviendelangle
915
+ - [docs] Add missing pickers migration docs (#7000) @LukasTy
916
+ - [docs] Fix broken link (#7048) @flaviendelangle
917
+ - [docs] Improve demo about customizing pagination (#6724) @m4theushw
918
+ - [docs] Keep track of localization completion (#7002) @alexfauquette
919
+ - [docs] Remove `LocalizationProvider` from previews (#6869) @flaviendelangle
920
+ - [docs] Remove the statement of support to RTL (#6521) @joserodolfofreitas
921
+ - [docs] Rework localization doc pages (#6625) @flaviendelangle
922
+ - [docs] Setup GitHub issue template for feedbacks about docs (#7026) @alexfauquette
923
+ - [docs] Test links with API page ignoring url hash (#7004) @alexfauquette
924
+ - [docs] Update API links from clock-picker to time-clock (#6993) @alexfauquette
925
+ - [docs] Use new pickers on the validation page (#7047) @flaviendelangle
926
+
927
+ ### Core
928
+
929
+ - [core] Remove useless type casting in field hooks (#7045) @flaviendelangle
930
+ - [test] Sync `test:unit` with monorepo (#6907) @oliviertassinari
931
+
6
932
  ## 6.0.0-alpha.9
7
933
 
8
934
  _Nov 24, 2022_
@@ -566,7 +1492,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
566
1492
  // TimePicker, MobileTimePicker, DateRangePicker and MobileDateRangePicker.
567
1493
  <DatePicker
568
1494
  - DialogProps={{ backgroundColor: 'red' }}
569
- + componentsProps={{ dialog: { backgroundColor: 'red }}}
1495
+ + componentsProps={{ dialog: { backgroundColor: 'red' }}}
570
1496
  />
571
1497
  ```
572
1498
 
@@ -577,7 +1503,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
577
1503
  // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
578
1504
  <DatePicker
579
1505
  - PaperProps={{ backgroundColor: 'red' }}
580
- + componentsProps={{ desktopPaper: { backgroundColor: 'red }}}
1506
+ + componentsProps={{ desktopPaper: { backgroundColor: 'red' }}}
581
1507
  />
582
1508
  ```
583
1509
 
@@ -1096,6 +2022,218 @@ You can find more information about the new api, including how to set those tran
1096
2022
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
1097
2023
  - [website] Improve security header @oliviertassinari
1098
2024
 
2025
+ ## v5.17.21
2026
+
2027
+ _Jan 27, 2023_
2028
+
2029
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
2030
+
2031
+ - 🌍 Add Belarusian (be-BY), Czech (cs-CZ), and Russian (ru-RU) locales
2032
+ - 🌍 Improve Slovak (sk-SK), Japanese (ja-JP), Vietnamese (vi-VN), and Spanish (es-ES) locales
2033
+ - 🐞 Bugfixes
2034
+
2035
+ ### `@mui/x-data-grid@v5.17.21` / `@mui/x-data-grid-pro@v5.17.21` / `@mui/x-data-grid-premium@v5.17.21`
2036
+
2037
+ #### Changes
2038
+
2039
+ - [DataGrid] Add `title` attribute to cells (#7695) @thupi
2040
+ - [DataGrid] Fix grid state not being updated after print preview is closed (#7680) @cherniavskii
2041
+ - [DataGrid] Fix non-hideable columns visibility toggling (#7716) @cherniavskii
2042
+ - [DataGrid] Fix scrolling on resize for data grids inside shadow root (#7722) @cherniavskii
2043
+ - [DataGridPremium] Create aggregation footer row with `isAutoGenerated: true` (#7681) @m4theushw
2044
+ - [l10n] Add Belarusian (be-BY) locale (#7718) @volhalink
2045
+ - [l10n] Add Slovak (sk-SK) translation for aggregation functions (#7690) @msidlo
2046
+ - [l10n] Add missing core locales for `MuiTablePagination` (#7719) @MBilalShafi
2047
+ - [l10n] Improve Japanese (ja-JP) locale (#7627) @makoto14
2048
+ - [l10n] Improve Vietnamese (vi-VN) locale (#7601) @SpacerZ
2049
+
2050
+ ### `@mui/x-date-pickers@v5.0.16` / `@mui/x-date-pickers-pro@v5.0.16`
2051
+
2052
+ #### Changes
2053
+
2054
+ - [pickers] Add missing components to `themeAugmentation` (#7677) @LukasTy
2055
+ - [l10n] Add Czech (cs-CZ) locale (#7666) @OndrejHj04
2056
+ - [l10n] Add Russian (ru-RU) locale (#7708) @rstmzh
2057
+ - [l10n] Improve Spanish (es-ES) locale (#7614) @WiXSL
2058
+
2059
+ ### Docs
2060
+
2061
+ - [docs] Add info callout about available component `slots` (#7723) @Vivek-Prajapatii
2062
+
2063
+ ## 5.17.20
2064
+
2065
+ _Jan 19, 2023_
2066
+
2067
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
2068
+
2069
+ - 🌍 Improve Italian (it-IT) and Swedish (sv-SE) locales
2070
+ - 🐞 Bugfixes
2071
+
2072
+ ### `@mui/x-data-grid@v5.17.20` / `@mui/x-data-grid-pro@v5.17.20` / `@mui/x-data-grid-premium@v5.17.20`
2073
+
2074
+ #### Changes
2075
+
2076
+ - [DataGrid] Fix flickering on grid scroll (#7609) @cherniavskii
2077
+ - [DataGrid] Remove tag limit from `isAnyOf` operator input (#7616) @m4theushw
2078
+ - [l10n] Improve Swedish (sv-SE) locale (#7463) @MaanTyringe
2079
+
2080
+ ### `@mui/x-date-pickers@v5.0.15` / `@mui/x-date-pickers-pro@v5.0.15`
2081
+
2082
+ #### Changes
2083
+
2084
+ - [pickers] Ensure `key` is passed without object spreading (#7584) @alexfauquette
2085
+ - [l10n] Improve Italian (it-IT) locale (#7547) @marikadeveloper
2086
+
2087
+ ## 5.17.19
2088
+
2089
+ _Jan 16, 2023_
2090
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
2091
+
2092
+ - 🌍 Improve Spanish (es-ES) and add Belarusian (be-BY) and Urdu (ur-PK) locales
2093
+ - 🐞 Bugfixes
2094
+
2095
+ ### `@mui/x-data-grid@v5.17.19` / `@mui/x-data-grid-pro@v5.17.19` / `@mui/x-data-grid-premium@v5.17.19`
2096
+
2097
+ #### Changes
2098
+
2099
+ - [DataGrid] Improve print support (#7407) @cherniavskii
2100
+ - [DataGrid] Improve Spanish (es-ES) locale (#7438) @Anderssxn
2101
+ - [DataGridPremium] Fix Excel export not working with date strings (#7478) @cherniavskii
2102
+ - [DataGridPro] Fix missing column headers border with top-pinned rows (#7399) @cherniavskii
2103
+
2104
+ ### `@mui/x-date-pickers@v5.0.14` / `@mui/x-date-pickers-pro@v5.0.14`
2105
+
2106
+ #### Changes
2107
+
2108
+ - [pickers] Add Belarusian (be-BY) locale (#7450) @volhalink
2109
+ - [pickers] Add Urdu (ur-PK) locale (#7449) @MBilalShafi
2110
+
2111
+ ## 5.17.18
2112
+
2113
+ _Jan 5, 2023_
2114
+
2115
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
2116
+
2117
+ - 🐞 Bugfixes
2118
+
2119
+ ### `@mui/x-data-grid@v5.17.18` / `@mui/x-data-grid-pro@v5.17.18` / `@mui/x-data-grid-premium@v5.17.18`
2120
+
2121
+ #### Changes
2122
+
2123
+ - [DataGrid] Fix rows not rendering properly after height change (#7376) @cherniavskii
2124
+ - [DataGrid] Fix selected text in cell input not being copied in Firefox (#7330) @cherniavskii
2125
+ - [DataGridPremium] Export row grouping column menu components (#7308) @cherniavskii
2126
+
2127
+ ### `@mui/x-date-pickers@v5.0.13` / `@mui/x-date-pickers-pro@v5.0.13`
2128
+
2129
+ #### Changes
2130
+
2131
+ - [pickers] Fix the product license reference name (#7367)
2132
+
2133
+ ### Docs
2134
+
2135
+ - [docs] Redirect translated pages (#7370) @cherniavskii
2136
+
2137
+ ### Core
2138
+
2139
+ - [core] Fix release date (#7314) @DanailH
2140
+ - [core] Fix the product license reference name (#7367) @oliviertassinari
2141
+ - [core] Upgrade monorepo (#7344) @cherniavskii
2142
+
2143
+ ## 5.17.17
2144
+
2145
+ _Dec 24, 2022_
2146
+
2147
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
2148
+
2149
+ - 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
2150
+ - 🐞 Bugfixes
2151
+
2152
+ ### `@mui/x-data-grid@v5.17.17` / `@mui/x-data-grid-pro@v5.17.17` / `@mui/x-data-grid-premium@v5.17.17`
2153
+
2154
+ #### Changes
2155
+
2156
+ - [DataGrid] Update Russian (ru-RU) locale (#7291) @VeceluXa
2157
+ - [DataGridPro] Use row ID as `key` of the detail panels (#7311) @m4theushw
2158
+ - [DataGridPremium] Fix `exceljs` import with parcel (#7285) @alexfauquette
2159
+
2160
+ ### `@mui/x-date-pickers@v5.0.12` / `@mui/x-date-pickers-pro@v5.0.12`
2161
+
2162
+ #### Changes
2163
+
2164
+ - [pickers] Improve Korean (ko-KR) locale (#7283) @hanbin9775
2165
+
2166
+ ## 5.17.16
2167
+
2168
+ _Dec 16, 2022_
2169
+
2170
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
2171
+
2172
+ - 🐞 Bugfixes
2173
+
2174
+ ### `@mui/x-data-grid@v5.17.16` / `@mui/x-data-grid-pro@v5.17.16` / `@mui/x-data-grid-premium@v5.17.16`
2175
+
2176
+ #### Changes
2177
+
2178
+ - [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7125) @hanbin9775
2179
+ - [DataGrid] Fix flickering on mount (#7155) @cherniavskii
2180
+ - [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7174) @m4theushw
2181
+
2182
+ ### `@mui/x-date-pickers@v5.0.11` / `@mui/x-date-pickers-pro@v5.0.11`
2183
+
2184
+ #### Changes
2185
+
2186
+ - [DateTimePicker] Update export pattern (#7172) @kealjones-wk
2187
+
2188
+ ### Docs
2189
+
2190
+ - [docs] Document aggregation selectors (#7151) @cherniavskii
2191
+
2192
+ ## 5.17.15
2193
+
2194
+ _Dec 8, 2022_
2195
+
2196
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
2197
+
2198
+ - ✨ Fix lazy-loading not working in `DataGridPremium` (#7130) @m4theushw
2199
+ - 🐞 Bugfixes
2200
+
2201
+ ### `@mui/x-data-grid@v5.17.15` / `@mui/x-data-grid-pro@v5.17.15` / `@mui/x-data-grid-premium@v5.17.15`
2202
+
2203
+ #### Changes
2204
+
2205
+ - [DataGridPremium] Add support for lazy-loading (#7130) @m4theushw
2206
+ - [DataGridPremium] Pass `groupId` to the aggregation function (#7143) @m4theushw
2207
+
2208
+ ### `@mui/x-date-pickers@v5.0.10` / `@mui/x-date-pickers-pro@v5.0.10`
2209
+
2210
+ #### Changes
2211
+
2212
+ - [pickers] Initialize date without time when selecting year or month (#7136) @LukasTy
2213
+
2214
+ ### Docs
2215
+
2216
+ - [docs] Fix the nested import on the api pages (#7134) @flaviendelangle
2217
+ - [docs] Keep track of the localization completion (#7099) @alexfauquette
2218
+ - [docs] Update localization doc to use existing locale (#7104) @LukasTy
2219
+
2220
+ ## 5.17.14
2221
+
2222
+ _Dec 1, 2022_
2223
+
2224
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
2225
+
2226
+ - 🌍 Improve Ukrainian (uk-UA) locale (#7035) @rettoua
2227
+ - 🐞 Bugfixes
2228
+
2229
+ ### `@mui/x-data-grid@v5.17.14` / `@mui/x-data-grid-pro@v5.17.14` / `@mui/x-data-grid-premium@v5.17.14`
2230
+
2231
+ #### Changes
2232
+
2233
+ - [DataGrid] Fix row selection when clicking blank cell (#7056) @yami03
2234
+ - [DataGridPremium] Update cache before hydrating columns (#7043) @m4theushw
2235
+ - [l10n] Improve Ukrainian (uk-UA) locale (#7035) @rettoua
2236
+
1099
2237
  ## 5.17.13
1100
2238
 
1101
2239
  _Nov 24, 2022_