@mui/x-data-grid 7.0.0-beta.3 → 7.0.0-beta.4

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 (459) hide show
  1. package/CHANGELOG.md +226 -15
  2. package/colDef/gridActionsColDef.js +1 -0
  3. package/colDef/gridBooleanColDef.js +1 -0
  4. package/colDef/gridCheckboxSelectionColDef.js +1 -0
  5. package/components/GridScrollbarFillerCell.js +6 -21
  6. package/components/cell/GridCell.js +10 -12
  7. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
  8. package/components/containers/GridRootStyles.js +50 -19
  9. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
  10. package/constants/gridClasses.d.ts +24 -8
  11. package/constants/gridClasses.js +1 -1
  12. package/hooks/features/clipboard/useGridClipboard.js +1 -1
  13. package/hooks/features/editing/useGridCellEditing.js +3 -4
  14. package/hooks/features/editing/useGridRowEditing.js +3 -4
  15. package/hooks/features/sorting/useGridSorting.js +1 -2
  16. package/index.js +1 -1
  17. package/internals/index.d.ts +1 -1
  18. package/internals/index.js +1 -1
  19. package/models/colDef/gridColDef.d.ts +6 -0
  20. package/modern/colDef/gridActionsColDef.js +1 -0
  21. package/modern/colDef/gridBooleanColDef.js +1 -0
  22. package/modern/colDef/gridCheckboxSelectionColDef.js +1 -0
  23. package/modern/components/GridScrollbarFillerCell.js +6 -21
  24. package/modern/components/cell/GridCell.js +10 -12
  25. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
  26. package/modern/components/containers/GridRootStyles.js +50 -19
  27. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
  28. package/modern/constants/gridClasses.js +1 -1
  29. package/modern/hooks/features/clipboard/useGridClipboard.js +1 -1
  30. package/modern/hooks/features/editing/useGridCellEditing.js +3 -4
  31. package/modern/hooks/features/editing/useGridRowEditing.js +3 -4
  32. package/modern/hooks/features/sorting/useGridSorting.js +1 -2
  33. package/modern/index.js +1 -1
  34. package/modern/internals/index.js +1 -1
  35. package/modern/utils/keyboardUtils.js +20 -11
  36. package/node/colDef/gridActionsColDef.js +1 -0
  37. package/node/colDef/gridBooleanColDef.js +1 -0
  38. package/node/colDef/gridCheckboxSelectionColDef.js +1 -0
  39. package/node/components/GridScrollbarFillerCell.js +5 -20
  40. package/node/components/cell/GridCell.js +10 -12
  41. package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
  42. package/node/components/containers/GridRootStyles.js +50 -19
  43. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
  44. package/node/constants/gridClasses.js +1 -1
  45. package/node/hooks/features/clipboard/useGridClipboard.js +1 -1
  46. package/node/hooks/features/editing/useGridCellEditing.js +2 -3
  47. package/node/hooks/features/editing/useGridRowEditing.js +2 -3
  48. package/node/hooks/features/sorting/useGridSorting.js +1 -2
  49. package/node/index.js +1 -1
  50. package/node/internals/index.js +7 -0
  51. package/node/utils/keyboardUtils.js +25 -20
  52. package/package.json +1 -1
  53. package/utils/keyboardUtils.d.ts +7 -6
  54. package/utils/keyboardUtils.js +20 -11
  55. package/legacy/DataGrid/DataGrid.js +0 -664
  56. package/legacy/DataGrid/index.js +0 -2
  57. package/legacy/DataGrid/useDataGridComponent.js +0 -81
  58. package/legacy/DataGrid/useDataGridProps.js +0 -98
  59. package/legacy/colDef/gridActionsColDef.js +0 -18
  60. package/legacy/colDef/gridBooleanColDef.js +0 -42
  61. package/legacy/colDef/gridBooleanOperators.js +0 -16
  62. package/legacy/colDef/gridCheckboxSelectionColDef.js +0 -33
  63. package/legacy/colDef/gridDateColDef.js +0 -62
  64. package/legacy/colDef/gridDateOperators.js +0 -115
  65. package/legacy/colDef/gridDefaultColumnTypes.js +0 -19
  66. package/legacy/colDef/gridNumericColDef.js +0 -19
  67. package/legacy/colDef/gridNumericOperators.js +0 -145
  68. package/legacy/colDef/gridSingleSelectColDef.js +0 -64
  69. package/legacy/colDef/gridSingleSelectOperators.js +0 -46
  70. package/legacy/colDef/gridStringColDef.js +0 -27
  71. package/legacy/colDef/gridStringOperators.js +0 -112
  72. package/legacy/colDef/index.js +0 -13
  73. package/legacy/components/GridApiContext.js +0 -5
  74. package/legacy/components/GridColumnHeaders.js +0 -94
  75. package/legacy/components/GridDetailPanels.js +0 -4
  76. package/legacy/components/GridFooter.js +0 -42
  77. package/legacy/components/GridHeader.js +0 -13
  78. package/legacy/components/GridHeaders.js +0 -53
  79. package/legacy/components/GridLoadingOverlay.js +0 -21
  80. package/legacy/components/GridNoResultsOverlay.js +0 -14
  81. package/legacy/components/GridNoRowsOverlay.js +0 -23
  82. package/legacy/components/GridPagination.js +0 -85
  83. package/legacy/components/GridPinnedRows.js +0 -4
  84. package/legacy/components/GridRow.js +0 -465
  85. package/legacy/components/GridRowCount.js +0 -63
  86. package/legacy/components/GridScrollbarFillerCell.js +0 -34
  87. package/legacy/components/GridSelectedRowCount.js +0 -66
  88. package/legacy/components/base/GridBody.js +0 -2
  89. package/legacy/components/base/GridFooterPlaceholder.js +0 -12
  90. package/legacy/components/base/GridOverlays.js +0 -122
  91. package/legacy/components/base/index.js +0 -3
  92. package/legacy/components/cell/GridActionsCell.js +0 -294
  93. package/legacy/components/cell/GridActionsCellItem.js +0 -69
  94. package/legacy/components/cell/GridBooleanCell.js +0 -121
  95. package/legacy/components/cell/GridCell.js +0 -350
  96. package/legacy/components/cell/GridEditBooleanCell.js +0 -174
  97. package/legacy/components/cell/GridEditDateCell.js +0 -230
  98. package/legacy/components/cell/GridEditInputCell.js +0 -198
  99. package/legacy/components/cell/GridEditSingleSelectCell.js +0 -231
  100. package/legacy/components/cell/GridSkeletonCell.js +0 -52
  101. package/legacy/components/cell/index.js +0 -9
  102. package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +0 -59
  103. package/legacy/components/columnHeaders/GridBaseColumnHeaders.js +0 -41
  104. package/legacy/components/columnHeaders/GridColumnGroupHeader.js +0 -132
  105. package/legacy/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -93
  106. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +0 -212
  107. package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +0 -71
  108. package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +0 -79
  109. package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +0 -84
  110. package/legacy/components/columnHeaders/GridColumnHeadersInner.js +0 -55
  111. package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +0 -107
  112. package/legacy/components/columnHeaders/GridIconButtonContainer.js +0 -41
  113. package/legacy/components/columnHeaders/index.js +0 -5
  114. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +0 -160
  115. package/legacy/components/columnSelection/GridHeaderCheckbox.js +0 -134
  116. package/legacy/components/columnSelection/index.js +0 -2
  117. package/legacy/components/columnsManagement/GridColumnsManagement.js +0 -307
  118. package/legacy/components/columnsManagement/index.js +0 -1
  119. package/legacy/components/columnsManagement/utils.js +0 -22
  120. package/legacy/components/containers/GridFooterContainer.js +0 -50
  121. package/legacy/components/containers/GridOverlay.js +0 -52
  122. package/legacy/components/containers/GridRoot.js +0 -79
  123. package/legacy/components/containers/GridRootStyles.js +0 -395
  124. package/legacy/components/containers/GridToolbarContainer.js +0 -59
  125. package/legacy/components/containers/index.js +0 -4
  126. package/legacy/components/index.js +0 -19
  127. package/legacy/components/menu/GridMenu.js +0 -132
  128. package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -61
  129. package/legacy/components/menu/columnMenu/GridColumnMenu.js +0 -81
  130. package/legacy/components/menu/columnMenu/GridColumnMenuContainer.js +0 -56
  131. package/legacy/components/menu/columnMenu/GridColumnMenuItemProps.js +0 -1
  132. package/legacy/components/menu/columnMenu/GridColumnMenuProps.js +0 -1
  133. package/legacy/components/menu/columnMenu/index.js +0 -9
  134. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +0 -21
  135. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +0 -41
  136. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +0 -60
  137. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +0 -41
  138. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +0 -80
  139. package/legacy/components/menu/columnMenu/menuItems/index.js +0 -5
  140. package/legacy/components/menu/index.js +0 -2
  141. package/legacy/components/panel/GridColumnsPanel.js +0 -22
  142. package/legacy/components/panel/GridPanel.js +0 -137
  143. package/legacy/components/panel/GridPanelContent.js +0 -49
  144. package/legacy/components/panel/GridPanelFooter.js +0 -50
  145. package/legacy/components/panel/GridPanelHeader.js +0 -48
  146. package/legacy/components/panel/GridPanelWrapper.js +0 -64
  147. package/legacy/components/panel/GridPreferencesPanel.js +0 -26
  148. package/legacy/components/panel/filterPanel/GridFilterForm.js +0 -528
  149. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +0 -118
  150. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +0 -121
  151. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -116
  152. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -102
  153. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +0 -149
  154. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +0 -106
  155. package/legacy/components/panel/filterPanel/GridFilterInputValueProps.js +0 -1
  156. package/legacy/components/panel/filterPanel/GridFilterPanel.js +0 -264
  157. package/legacy/components/panel/filterPanel/filterPanelUtils.js +0 -22
  158. package/legacy/components/panel/filterPanel/index.js +0 -9
  159. package/legacy/components/panel/index.js +0 -7
  160. package/legacy/components/reexportable.js +0 -1
  161. package/legacy/components/toolbar/GridToolbar.js +0 -64
  162. package/legacy/components/toolbar/GridToolbarColumnsButton.js +0 -68
  163. package/legacy/components/toolbar/GridToolbarDensitySelector.js +0 -142
  164. package/legacy/components/toolbar/GridToolbarExport.js +0 -80
  165. package/legacy/components/toolbar/GridToolbarExportContainer.js +0 -105
  166. package/legacy/components/toolbar/GridToolbarFilterButton.js +0 -136
  167. package/legacy/components/toolbar/GridToolbarQuickFilter.js +0 -164
  168. package/legacy/components/toolbar/index.js +0 -7
  169. package/legacy/components/virtualization/GridBottomContainer.js +0 -25
  170. package/legacy/components/virtualization/GridMainContainer.js +0 -20
  171. package/legacy/components/virtualization/GridTopContainer.js +0 -35
  172. package/legacy/components/virtualization/GridVirtualScrollbar.js +0 -129
  173. package/legacy/components/virtualization/GridVirtualScroller.js +0 -93
  174. package/legacy/components/virtualization/GridVirtualScrollerContent.js +0 -35
  175. package/legacy/components/virtualization/GridVirtualScrollerFiller.js +0 -70
  176. package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +0 -49
  177. package/legacy/constants/defaultGridSlotsComponents.js +0 -33
  178. package/legacy/constants/envConstants.js +0 -19
  179. package/legacy/constants/gridClasses.js +0 -5
  180. package/legacy/constants/gridDetailPanelToggleField.js +0 -2
  181. package/legacy/constants/index.js +0 -3
  182. package/legacy/constants/localeTextConstants.js +0 -158
  183. package/legacy/context/GridContextProvider.js +0 -21
  184. package/legacy/context/GridRootPropsContext.js +0 -6
  185. package/legacy/context/index.js +0 -1
  186. package/legacy/hooks/core/gridCoreSelector.js +0 -7
  187. package/legacy/hooks/core/index.js +0 -1
  188. package/legacy/hooks/core/pipeProcessing/gridPipeProcessingApi.js +0 -1
  189. package/legacy/hooks/core/pipeProcessing/index.js +0 -4
  190. package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +0 -114
  191. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +0 -26
  192. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -26
  193. package/legacy/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +0 -1
  194. package/legacy/hooks/core/strategyProcessing/index.js +0 -3
  195. package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +0 -18
  196. package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +0 -116
  197. package/legacy/hooks/core/useGridApiInitialization.js +0 -124
  198. package/legacy/hooks/core/useGridInitialization.js +0 -26
  199. package/legacy/hooks/core/useGridLocaleText.js +0 -12
  200. package/legacy/hooks/core/useGridLoggerFactory.js +0 -51
  201. package/legacy/hooks/core/useGridRefs.js +0 -13
  202. package/legacy/hooks/core/useGridStateInitialization.js +0 -106
  203. package/legacy/hooks/core/useGridTheme.js +0 -21
  204. package/legacy/hooks/features/clipboard/useGridClipboard.js +0 -92
  205. package/legacy/hooks/features/columnGrouping/gridColumnGroupsInterfaces.js +0 -1
  206. package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -24
  207. package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +0 -92
  208. package/legacy/hooks/features/columnGrouping/index.js +0 -2
  209. package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +0 -140
  210. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +0 -272
  211. package/legacy/hooks/features/columnMenu/columnMenuInterfaces.js +0 -1
  212. package/legacy/hooks/features/columnMenu/columnMenuSelector.js +0 -3
  213. package/legacy/hooks/features/columnMenu/index.js +0 -2
  214. package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +0 -108
  215. package/legacy/hooks/features/columnMenu/useGridColumnMenuSlots.js +0 -71
  216. package/legacy/hooks/features/columns/gridColumnsInterfaces.js +0 -9
  217. package/legacy/hooks/features/columns/gridColumnsSelector.js +0 -174
  218. package/legacy/hooks/features/columns/gridColumnsUtils.js +0 -338
  219. package/legacy/hooks/features/columns/index.js +0 -2
  220. package/legacy/hooks/features/columns/useGridColumnSpanning.js +0 -105
  221. package/legacy/hooks/features/columns/useGridColumns.js +0 -319
  222. package/legacy/hooks/features/density/densitySelector.js +0 -10
  223. package/legacy/hooks/features/density/densityState.js +0 -1
  224. package/legacy/hooks/features/density/index.js +0 -2
  225. package/legacy/hooks/features/density/useGridDensity.js +0 -48
  226. package/legacy/hooks/features/dimensions/gridDimensionsApi.js +0 -1
  227. package/legacy/hooks/features/dimensions/gridDimensionsSelectors.js +0 -3
  228. package/legacy/hooks/features/dimensions/index.js +0 -2
  229. package/legacy/hooks/features/dimensions/useGridDimensions.js +0 -302
  230. package/legacy/hooks/features/editing/gridEditingSelectors.js +0 -4
  231. package/legacy/hooks/features/editing/useGridCellEditing.js +0 -456
  232. package/legacy/hooks/features/editing/useGridEditing.js +0 -145
  233. package/legacy/hooks/features/editing/useGridRowEditing.js +0 -567
  234. package/legacy/hooks/features/events/useGridEvents.js +0 -23
  235. package/legacy/hooks/features/export/serializers/csvSerializer.js +0 -155
  236. package/legacy/hooks/features/export/useGridCsvExport.js +0 -75
  237. package/legacy/hooks/features/export/useGridPrintExport.js +0 -313
  238. package/legacy/hooks/features/export/utils.js +0 -49
  239. package/legacy/hooks/features/filter/gridFilterSelector.js +0 -165
  240. package/legacy/hooks/features/filter/gridFilterState.js +0 -20
  241. package/legacy/hooks/features/filter/gridFilterUtils.js +0 -330
  242. package/legacy/hooks/features/filter/index.js +0 -2
  243. package/legacy/hooks/features/filter/useGridFilter.js +0 -378
  244. package/legacy/hooks/features/focus/gridFocusState.js +0 -1
  245. package/legacy/hooks/features/focus/gridFocusStateSelector.js +0 -31
  246. package/legacy/hooks/features/focus/index.js +0 -2
  247. package/legacy/hooks/features/focus/useGridFocus.js +0 -408
  248. package/legacy/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +0 -10
  249. package/legacy/hooks/features/headerFiltering/index.js +0 -1
  250. package/legacy/hooks/features/headerFiltering/useGridHeaderFiltering.js +0 -93
  251. package/legacy/hooks/features/index.js +0 -16
  252. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +0 -565
  253. package/legacy/hooks/features/pagination/gridPaginationInterfaces.js +0 -1
  254. package/legacy/hooks/features/pagination/gridPaginationSelector.js +0 -115
  255. package/legacy/hooks/features/pagination/gridPaginationUtils.js +0 -31
  256. package/legacy/hooks/features/pagination/index.js +0 -2
  257. package/legacy/hooks/features/pagination/useGridPagination.js +0 -175
  258. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +0 -3
  259. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelState.js +0 -1
  260. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -6
  261. package/legacy/hooks/features/preferencesPanel/index.js +0 -3
  262. package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +0 -125
  263. package/legacy/hooks/features/rowSelection/gridRowSelectionSelector.js +0 -19
  264. package/legacy/hooks/features/rowSelection/index.js +0 -1
  265. package/legacy/hooks/features/rowSelection/useGridRowSelection.js +0 -419
  266. package/legacy/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +0 -45
  267. package/legacy/hooks/features/rowSelection/utils.js +0 -8
  268. package/legacy/hooks/features/rows/gridRowsInterfaces.js +0 -1
  269. package/legacy/hooks/features/rows/gridRowsMetaSelector.js +0 -3
  270. package/legacy/hooks/features/rows/gridRowsMetaState.js +0 -1
  271. package/legacy/hooks/features/rows/gridRowsSelector.js +0 -90
  272. package/legacy/hooks/features/rows/gridRowsUtils.js +0 -294
  273. package/legacy/hooks/features/rows/index.js +0 -4
  274. package/legacy/hooks/features/rows/useGridParamsApi.js +0 -142
  275. package/legacy/hooks/features/rows/useGridRows.js +0 -466
  276. package/legacy/hooks/features/rows/useGridRowsMeta.js +0 -236
  277. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +0 -82
  278. package/legacy/hooks/features/scroll/useGridScroll.js +0 -133
  279. package/legacy/hooks/features/sorting/gridSortingSelector.js +0 -56
  280. package/legacy/hooks/features/sorting/gridSortingState.js +0 -1
  281. package/legacy/hooks/features/sorting/gridSortingUtils.js +0 -154
  282. package/legacy/hooks/features/sorting/index.js +0 -2
  283. package/legacy/hooks/features/sorting/useGridSorting.js +0 -276
  284. package/legacy/hooks/features/statePersistence/gridStatePersistenceInterface.js +0 -1
  285. package/legacy/hooks/features/statePersistence/index.js +0 -1
  286. package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +0 -25
  287. package/legacy/hooks/features/virtualization/gridVirtualizationSelectors.js +0 -61
  288. package/legacy/hooks/features/virtualization/index.js +0 -2
  289. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -646
  290. package/legacy/hooks/features/virtualization/useGridVirtualization.js +0 -63
  291. package/legacy/hooks/index.js +0 -3
  292. package/legacy/hooks/utils/index.js +0 -9
  293. package/legacy/hooks/utils/useFirstRender.js +0 -8
  294. package/legacy/hooks/utils/useGridApiContext.js +0 -9
  295. package/legacy/hooks/utils/useGridApiEventHandler.js +0 -105
  296. package/legacy/hooks/utils/useGridApiMethod.js +0 -11
  297. package/legacy/hooks/utils/useGridApiRef.js +0 -7
  298. package/legacy/hooks/utils/useGridAriaAttributes.js +0 -25
  299. package/legacy/hooks/utils/useGridInitializeState.js +0 -8
  300. package/legacy/hooks/utils/useGridLogger.js +0 -10
  301. package/legacy/hooks/utils/useGridNativeEventListener.js +0 -32
  302. package/legacy/hooks/utils/useGridPrivateApiContext.js +0 -12
  303. package/legacy/hooks/utils/useGridRootProps.js +0 -9
  304. package/legacy/hooks/utils/useGridSelector.js +0 -54
  305. package/legacy/hooks/utils/useGridVisibleRows.js +0 -42
  306. package/legacy/hooks/utils/useLazyRef.js +0 -11
  307. package/legacy/hooks/utils/useOnMount.js +0 -7
  308. package/legacy/hooks/utils/useResizeObserver.js +0 -36
  309. package/legacy/hooks/utils/useRunOnce.js +0 -18
  310. package/legacy/hooks/utils/useTimeout.js +0 -38
  311. package/legacy/index.js +0 -38
  312. package/legacy/internals/index.js +0 -68
  313. package/legacy/internals/utils/computeSlots.js +0 -17
  314. package/legacy/internals/utils/index.js +0 -3
  315. package/legacy/internals/utils/propValidation.js +0 -21
  316. package/legacy/internals/utils/useProps.js +0 -32
  317. package/legacy/joy/icons.js +0 -432
  318. package/legacy/joy/index.js +0 -2
  319. package/legacy/joy/joySlots.js +0 -420
  320. package/legacy/locales/arSD.js +0 -160
  321. package/legacy/locales/beBY.js +0 -184
  322. package/legacy/locales/bgBG.js +0 -160
  323. package/legacy/locales/coreLocales.js +0 -62
  324. package/legacy/locales/csCZ.js +0 -181
  325. package/legacy/locales/daDK.js +0 -160
  326. package/legacy/locales/deDE.js +0 -160
  327. package/legacy/locales/elGR.js +0 -160
  328. package/legacy/locales/enUS.js +0 -4
  329. package/legacy/locales/esES.js +0 -160
  330. package/legacy/locales/faIR.js +0 -160
  331. package/legacy/locales/fiFI.js +0 -160
  332. package/legacy/locales/frFR.js +0 -160
  333. package/legacy/locales/heIL.js +0 -160
  334. package/legacy/locales/hrHR.js +0 -160
  335. package/legacy/locales/huHU.js +0 -160
  336. package/legacy/locales/index.js +0 -35
  337. package/legacy/locales/itIT.js +0 -160
  338. package/legacy/locales/jaJP.js +0 -160
  339. package/legacy/locales/koKR.js +0 -162
  340. package/legacy/locales/nbNO.js +0 -162
  341. package/legacy/locales/nlNL.js +0 -160
  342. package/legacy/locales/plPL.js +0 -163
  343. package/legacy/locales/ptBR.js +0 -160
  344. package/legacy/locales/ptPT.js +0 -160
  345. package/legacy/locales/roRO.js +0 -160
  346. package/legacy/locales/ruRU.js +0 -181
  347. package/legacy/locales/skSK.js +0 -181
  348. package/legacy/locales/svSE.js +0 -160
  349. package/legacy/locales/trTR.js +0 -161
  350. package/legacy/locales/ukUA.js +0 -182
  351. package/legacy/locales/urPK.js +0 -160
  352. package/legacy/locales/viVN.js +0 -160
  353. package/legacy/locales/zhCN.js +0 -160
  354. package/legacy/locales/zhHK.js +0 -160
  355. package/legacy/locales/zhTW.js +0 -160
  356. package/legacy/material/components/MUISelectOption.js +0 -14
  357. package/legacy/material/icons/GridColumnUnsortedIcon.js +0 -16
  358. package/legacy/material/icons/index.js +0 -89
  359. package/legacy/material/index.js +0 -69
  360. package/legacy/models/api/gridApiCommon.js +0 -1
  361. package/legacy/models/api/gridApiCommunity.js +0 -1
  362. package/legacy/models/api/gridCallbackDetails.js +0 -1
  363. package/legacy/models/api/gridColumnApi.js +0 -1
  364. package/legacy/models/api/gridColumnGroupingApi.js +0 -1
  365. package/legacy/models/api/gridColumnMenuApi.js +0 -1
  366. package/legacy/models/api/gridColumnSpanning.js +0 -1
  367. package/legacy/models/api/gridCoreApi.js +0 -1
  368. package/legacy/models/api/gridCsvExportApi.js +0 -1
  369. package/legacy/models/api/gridDensityApi.js +0 -1
  370. package/legacy/models/api/gridEditingApi.js +0 -1
  371. package/legacy/models/api/gridFilterApi.js +0 -1
  372. package/legacy/models/api/gridFocusApi.js +0 -1
  373. package/legacy/models/api/gridHeaderFilteringApi.js +0 -1
  374. package/legacy/models/api/gridLocaleTextApi.js +0 -1
  375. package/legacy/models/api/gridLoggerApi.js +0 -1
  376. package/legacy/models/api/gridParamsApi.js +0 -1
  377. package/legacy/models/api/gridPreferencesPanelApi.js +0 -1
  378. package/legacy/models/api/gridPrintExportApi.js +0 -1
  379. package/legacy/models/api/gridRowApi.js +0 -1
  380. package/legacy/models/api/gridRowSelectionApi.js +0 -1
  381. package/legacy/models/api/gridRowsMetaApi.js +0 -1
  382. package/legacy/models/api/gridScrollApi.js +0 -1
  383. package/legacy/models/api/gridSortApi.js +0 -1
  384. package/legacy/models/api/gridStateApi.js +0 -1
  385. package/legacy/models/api/gridVirtualizationApi.js +0 -1
  386. package/legacy/models/api/index.js +0 -16
  387. package/legacy/models/colDef/gridColDef.js +0 -1
  388. package/legacy/models/colDef/gridColType.js +0 -1
  389. package/legacy/models/colDef/gridColumnTypesRecord.js +0 -1
  390. package/legacy/models/colDef/index.js +0 -6
  391. package/legacy/models/controlStateItem.js +0 -1
  392. package/legacy/models/cursorCoordinates.js +0 -1
  393. package/legacy/models/elementSize.js +0 -1
  394. package/legacy/models/events/gridEventListener.js +0 -1
  395. package/legacy/models/events/gridEventLookup.js +0 -1
  396. package/legacy/models/events/gridEventPublisher.js +0 -1
  397. package/legacy/models/events/index.js +0 -3
  398. package/legacy/models/gridApiCaches.js +0 -1
  399. package/legacy/models/gridCell.js +0 -1
  400. package/legacy/models/gridCellClass.js +0 -1
  401. package/legacy/models/gridColumnGrouping.js +0 -11
  402. package/legacy/models/gridColumnHeaderClass.js +0 -1
  403. package/legacy/models/gridColumnSpanning.js +0 -1
  404. package/legacy/models/gridDensity.js +0 -1
  405. package/legacy/models/gridEditRowModel.js +0 -16
  406. package/legacy/models/gridExport.js +0 -1
  407. package/legacy/models/gridFeatureMode.js +0 -1
  408. package/legacy/models/gridFilterItem.js +0 -11
  409. package/legacy/models/gridFilterModel.js +0 -1
  410. package/legacy/models/gridFilterOperator.js +0 -1
  411. package/legacy/models/gridHeaderFilteringModel.js +0 -1
  412. package/legacy/models/gridIconSlotsComponent.js +0 -1
  413. package/legacy/models/gridPaginationProps.js +0 -1
  414. package/legacy/models/gridRenderContextProps.js +0 -1
  415. package/legacy/models/gridRowSelectionModel.js +0 -1
  416. package/legacy/models/gridRows.js +0 -1
  417. package/legacy/models/gridSlotsComponent.js +0 -1
  418. package/legacy/models/gridSlotsComponentsProps.js +0 -1
  419. package/legacy/models/gridSortModel.js +0 -1
  420. package/legacy/models/gridStateCommunity.js +0 -1
  421. package/legacy/models/index.js +0 -29
  422. package/legacy/models/logger.js +0 -1
  423. package/legacy/models/muiEvent.js +0 -1
  424. package/legacy/models/params/gridCellParams.js +0 -1
  425. package/legacy/models/params/gridColumnGroupHeaderParams.js +0 -1
  426. package/legacy/models/params/gridColumnHeaderParams.js +0 -1
  427. package/legacy/models/params/gridColumnOrderChangeParams.js +0 -1
  428. package/legacy/models/params/gridColumnResizeParams.js +0 -1
  429. package/legacy/models/params/gridEditCellParams.js +0 -27
  430. package/legacy/models/params/gridHeaderSelectionCheckboxParams.js +0 -1
  431. package/legacy/models/params/gridMenuParams.js +0 -1
  432. package/legacy/models/params/gridPreferencePanelParams.js +0 -1
  433. package/legacy/models/params/gridRowParams.js +0 -44
  434. package/legacy/models/params/gridRowSelectionCheckboxParams.js +0 -1
  435. package/legacy/models/params/gridScrollParams.js +0 -1
  436. package/legacy/models/params/gridValueOptionsParams.js +0 -1
  437. package/legacy/models/params/index.js +0 -13
  438. package/legacy/models/props/DataGridProps.js +0 -1
  439. package/legacy/themeAugmentation/index.js +0 -4
  440. package/legacy/themeAugmentation/overrides.js +0 -1
  441. package/legacy/themeAugmentation/props.js +0 -1
  442. package/legacy/utils/EventManager.js +0 -91
  443. package/legacy/utils/Store.js +0 -34
  444. package/legacy/utils/cleanupTracking/CleanupTracking.js +0 -1
  445. package/legacy/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +0 -29
  446. package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -52
  447. package/legacy/utils/createControllablePromise.js +0 -11
  448. package/legacy/utils/createSelector.js +0 -120
  449. package/legacy/utils/doesSupportPreventScroll.js +0 -13
  450. package/legacy/utils/domUtils.js +0 -49
  451. package/legacy/utils/exportAs.js +0 -40
  452. package/legacy/utils/fastMemo.js +0 -5
  453. package/legacy/utils/fastObjectShallowCompare.js +0 -32
  454. package/legacy/utils/getGridLocalization.js +0 -15
  455. package/legacy/utils/getPublicApiRef.js +0 -5
  456. package/legacy/utils/index.js +0 -1
  457. package/legacy/utils/keyboardUtils.js +0 -60
  458. package/legacy/utils/utils.js +0 -189
  459. package/legacy/utils/warning.js +0 -25
package/CHANGELOG.md CHANGED
@@ -3,7 +3,157 @@
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
- ## v7.0.0-beta.3
6
+ ## 7.0.0-beta.4
7
+
8
+ _Feb 23, 2024_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Introduce a new DOM structure for the field components that provides a better accessibility
13
+ - 🚀 Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
14
+ - 🕥 The support for IE11 has been removed (#12151) @flaviendelangle
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Breaking changes
19
+
20
+ - The support for IE11 has been removed from all MUI X packages. The `legacy` bundle that used to support old browsers like IE11 is no longer included.
21
+
22
+ ### Data Grid
23
+
24
+ #### Breaking changes
25
+
26
+ - The cell inner wrapper `.MuiDataGrid-cellContent` has been removed, use `.MuiDataGrid-cell` to style the cells.
27
+
28
+ #### `@mui/x-data-grid@7.0.0-beta.4`
29
+
30
+ - [DataGrid] Simplify cell DOM structure (#12013) @romgrk
31
+ - [DataGrid] Fix values labels in `is any of` filter operator (#11939) @gitstart
32
+
33
+ #### `@mui/x-data-grid-pro@7.0.0-beta.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.4`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.0.0-beta.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
40
+
41
+ ### Date Pickers
42
+
43
+ #### Breaking changes
44
+
45
+ - The `selectedSections` prop no longer accepts start and end indexes.
46
+ When selecting several — but not all — sections, the field components were not behaving correctly, you can now only select one or all sections:
47
+
48
+ ```diff
49
+ <DateField
50
+ - selectedSections={{ startIndex: 0, endIndex: 0 }}
51
+ + selectedSections={0}
52
+
53
+ // If the field has 3 sections
54
+ - selectedSections={{ startIndex: 0, endIndex: 2 }}
55
+ + selectedSections="all"
56
+ />
57
+ ```
58
+
59
+ - The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
60
+ This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure. Learn more about this new [accessible DOM structure](/x/react-date-pickers/fields/#accessible-dom-structure).
61
+
62
+ When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
63
+
64
+ ```diff
65
+ function MyCustomTextField(props) {
66
+ const {
67
+ + // Should be ignored
68
+ + enableAccessibleFieldDOMStructure,
69
+ // ... rest of the props you are using
70
+ } = props;
71
+
72
+ return ( /* Some UI to edit the date */ )
73
+ }
74
+
75
+ function MyCustomField(props) {
76
+ const fieldResponse = useDateField<Dayjs, false, typeof textFieldProps>({
77
+ ...props,
78
+ + // If you only support one DOM structure, we advise you to hardcode it here to avoid unwanted switches in your application
79
+ + enableAccessibleFieldDOMStructure: false,
80
+ });
81
+
82
+ return <MyCustomTextField ref={ref} {...fieldResponse} />;
83
+ }
84
+
85
+ function App() {
86
+ return <DatePicker slots={{ field: MyCustomField }} />;
87
+ }
88
+ ```
89
+
90
+ - The following internal types were exported by mistake and have been removed from the public API:
91
+
92
+ - `UseDateFieldDefaultizedProps`
93
+ - `UseTimeFieldDefaultizedProps`
94
+ - `UseDateTimeFieldDefaultizedProps`
95
+ - `UseSingleInputDateRangeFieldComponentProps`
96
+ - `UseSingleInputTimeRangeFieldComponentProps`
97
+ - `UseSingleInputDateTimeRangeFieldComponentProps`
98
+
99
+ #### `@mui/x-date-pickers@7.0.0-beta.4`
100
+
101
+ - [fields] Add a11y support to multi-HTML field (#12173) @LukasTy
102
+ - [fields] Use the `PickersTextField` component in the fields (#10649) @flaviendelangle
103
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12096) @LukasTy
104
+
105
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
106
+
107
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.4`.
108
+
109
+ ### Charts / `@mui/x-charts@7.0.0-beta.4`
110
+
111
+ #### Breaking changes
112
+
113
+ These components are no longer exported from `@mui/x-charts`:
114
+
115
+ - `CartesianContextProvider`
116
+ - `DrawingProvider`
117
+
118
+ #### `@mui/x-charts@7.0.0-beta.4`
119
+
120
+ - [charts] Don't display text if no value is provided (#12127) @alexfauquette
121
+ - [charts] Remove export of context providers (#12123) @oliviertassinari
122
+
123
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.4`
124
+
125
+ - [TreeView] Stop using custom `findIndex` to support IE11 (#12129) @flaviendelangle
126
+
127
+ ### Docs
128
+
129
+ - [docs] Add recipe for hiding separator on non-resizable columns (#12134) @michelengelen
130
+ - [docs] Add small improvements to the Gauge Chart page (#12076) @danilo-leal
131
+ - [docs] Add the 'point' scaleType to the axis documentation (#12179) @alexfauquette
132
+ - [docs] Clarify Pickers 'Component composition' section (#12097) @LukasTy
133
+ - [docs] Fix "Licensing" page link (#12156) @LukasTy
134
+ - [docs] Fix the Treemap illustration (#12185) @danilo-leal
135
+ - [docs] Fix error raised by Grammarly on the page @oliviertassinari
136
+ - [docs] Improve performance on Charts entry point @oliviertassinari
137
+ - [docs] Link to React Transition Group with https @oliviertassinari
138
+ - [docs] Move Heatmap to `pro` plan (#12047) @alexfauquette
139
+ - [docs] Reduce number of Vale errors @oliviertassinari
140
+ - [docs] Remove default value set to `undefined` (#12128) @alexfauquette
141
+
142
+ ### Core
143
+
144
+ - [core] Fix docs link check (#12135) @LukasTy
145
+ - [core] Fix missing context display names (#12124) @oliviertassinari
146
+ - [core] Fix shortcuts when Caps Lock enabled (#12121) @oliviertassinari
147
+ - [core] Remove IE 11 compat logic (#12119) @oliviertassinari
148
+ - [core] Simplify key utils (#12120) @oliviertassinari
149
+ - [core] Use the @mui/internal-scripts package (#12142) @michaldudak
150
+ - [all components] Remove legacy IE 11 bundle (#12151) @flaviendelangle
151
+ - [code-infra] Bump monorepo (#11880) @Janpot
152
+ - [code-infra] Use `experimental.cpus` to control amount of export workers in Next.js (#12095) @Janpot
153
+ - [docs-infra] Remove randomized API page layout (#11876) @alexfauquette
154
+ - [test] Create local wrapper over `describeConformance` (#12130) @michaldudak
155
+
156
+ ## 7.0.0-beta.3
7
157
 
8
158
  _Feb 16, 2024_
9
159
 
@@ -67,7 +217,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
67
217
  - [core] Sort prop asc (#12033) @oliviertassinari
68
218
  - [core] Bump monorepo (#12055) @alexfauquette
69
219
 
70
- ## v7.0.0-beta.2
220
+ ## 7.0.0-beta.2
71
221
 
72
222
  _Feb 9, 2024_
73
223
 
@@ -336,7 +486,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
336
486
 
337
487
  _Jan 26, 2024_
338
488
 
339
- We are glad to announce MUI X v7 beta!
489
+ We are glad to announce MUI X v7 beta!
340
490
  This version has several improvements, bug fixes, and exciting features 🎉.
341
491
  We want to offer a big thanks to the 7 contributors who made this release possible ✨:
342
492
 
@@ -1353,7 +1503,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
1353
1503
 
1354
1504
  - The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
1355
1505
 
1356
- - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs) prop to customize filter debounce time.
1506
+ - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#data-grid-prop-filterDebounceMs) prop to customize filter debounce time.
1357
1507
 
1358
1508
  - The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
1359
1509
 
@@ -2202,7 +2352,68 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2202
2352
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2203
2353
  - [license] Correctly throw errors (#10924) @oliviertassinari
2204
2354
 
2205
- ## v6.19.4
2355
+ ## 6.19.5
2356
+
2357
+ _Feb 23, 2024_
2358
+
2359
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
2360
+
2361
+ - 🐞 Bugfixes
2362
+ - 📚 Documentation improvements
2363
+
2364
+ ### Data Grid
2365
+
2366
+ #### `@mui/x-data-grid@6.19.5`
2367
+
2368
+ - [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid
2369
+
2370
+ #### `@mui/x-data-grid-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2371
+
2372
+ Same changes as in `@mui/x-data-grid@6.19.5`.
2373
+
2374
+ #### `@mui/x-data-grid-premium@6.19.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2375
+
2376
+ Same changes as in `@mui/x-data-grid-pro@6.19.5`.
2377
+
2378
+ ### Date Pickers
2379
+
2380
+ #### `@mui/x-date-pickers@6.19.5`
2381
+
2382
+ - [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
2383
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy
2384
+
2385
+ #### `@mui/x-date-pickers-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2386
+
2387
+ Same changes as in `@mui/x-date-pickers@6.19.5`.
2388
+
2389
+ ### Charts / `@mui/x-charts@6.19.5`
2390
+
2391
+ - [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette
2392
+
2393
+ ### Docs
2394
+
2395
+ - [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
2396
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
2397
+ - [docs] Fix 301 to Material UI @oliviertassinari
2398
+ - [docs] Fix 301 to Material UI @oliviertassinari
2399
+ - [docs] Fix 404 links to translation source @oliviertassinari
2400
+ - [docs] Fix dead link to translations @oliviertassinari
2401
+ - [docs] Fix the Treemap illustration (#12189) @danilo-leal
2402
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
2403
+ - [docs] Improve performance on Charts entry point @oliviertassinari
2404
+ - [docs] Move Heatmap to pro (#12170) @alexfauquette
2405
+ - [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
2406
+ - [docs] Removed `focused` prop from demo (#12126) @michelengelen
2407
+ - [docs] Add missing Heatmap pro icon @oliviertassinari
2408
+ - [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
2409
+ - [docs] Avoid use of shorthand (#12009) @oliviertassinari
2410
+
2411
+ ### Core
2412
+
2413
+ - [core] Fix CI @oliviertassinari
2414
+ - [core] Fix docs link check (#12137) @LukasTy
2415
+
2416
+ ## 6.19.4
2206
2417
 
2207
2418
  _Feb 9, 2024_
2208
2419
 
@@ -2214,7 +2425,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2214
2425
 
2215
2426
  ### Data Grid
2216
2427
 
2217
- #### `@mui/x-data-grid@v6.19.4`
2428
+ #### `@mui/x-data-grid@6.19.4`
2218
2429
 
2219
2430
  - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2220
2431
  - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
@@ -2222,28 +2433,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2222
2433
  - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2223
2434
  - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2224
2435
 
2225
- #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2436
+ #### `@mui/x-data-grid-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2226
2437
 
2227
- Same changes as in `@mui/x-data-grid@v6.19.4`.
2438
+ Same changes as in `@mui/x-data-grid@6.19.4`.
2228
2439
 
2229
- #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2440
+ #### `@mui/x-data-grid-premium@6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2230
2441
 
2231
- Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
2442
+ Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
2232
2443
 
2233
2444
  - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2234
2445
  - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2235
2446
 
2236
2447
  ### Date Pickers
2237
2448
 
2238
- #### `@mui/x-date-pickers@v6.19.4`
2449
+ #### `@mui/x-date-pickers@6.19.4`
2239
2450
 
2240
2451
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2241
2452
 
2242
- #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2453
+ #### `@mui/x-date-pickers-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2243
2454
 
2244
- Same changes as in `@mui/x-date-pickers@v6.19.4`.
2455
+ Same changes as in `@mui/x-date-pickers@6.19.4`.
2245
2456
 
2246
- ### Charts / `@mui/x-charts@v6.19.4`
2457
+ ### Charts / `@mui/x-charts@6.19.4`
2247
2458
 
2248
2459
  - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2249
2460
  - [charts] Allow series ids to be numbers (#11960) @alexfauquette
@@ -2304,7 +2515,7 @@ Same changes as in `@mui/x-date-pickers@6.19.3`.
2304
2515
  - [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
2305
2516
  - [docs] Improve Support page (#11556) @oliviertassinari
2306
2517
  - [docs] Sync support page with core @oliviertassinari
2307
- - [docs] These API don't exist in MUI X v6 @oliviertassinari
2518
+ - [docs] These API don't exist in MUI X v6 @oliviertassinari
2308
2519
  - [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
2309
2520
 
2310
2521
  ## 6.19.2
@@ -8,6 +8,7 @@ export const GRID_ACTIONS_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
8
8
  // @ts-ignore
9
9
  aggregable: false,
10
10
  width: 100,
11
+ display: 'flex',
11
12
  align: 'center',
12
13
  headerAlign: 'center',
13
14
  headerName: '',
@@ -25,6 +25,7 @@ const stringToBoolean = value => {
25
25
  };
26
26
  export const GRID_BOOLEAN_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
27
27
  type: 'boolean',
28
+ display: 'flex',
28
29
  align: 'center',
29
30
  headerAlign: 'center',
30
31
  renderCell: renderBooleanCell,
@@ -19,6 +19,7 @@ export const GRID_CHECKBOX_SELECTION_COL_DEF = _extends({}, GRID_BOOLEAN_COL_DEF
19
19
  disableReorder: true,
20
20
  disableExport: true,
21
21
  getApplyQuickFilterFn: undefined,
22
+ display: 'flex',
22
23
  valueGetter: (value, row, column, apiRef) => {
23
24
  const selectionLookup = selectedIdsLookupSelector(apiRef);
24
25
  const rowId = apiRef.current.getRowId(row);
@@ -1,34 +1,19 @@
1
1
  import * as React from 'react';
2
2
  import clsx from 'clsx';
3
- import { styled } from '@mui/material/styles';
4
- import { getDataGridUtilityClass as getClassName } from '../constants';
3
+ import { gridClasses } from '../constants';
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
6
5
  const classes = {
7
- root: getClassName('scrollbarFiller'),
8
- header: getClassName('scrollbarFiller--header'),
9
- borderTop: getClassName('scrollbarFiller--borderTop'),
10
- pinnedRight: getClassName('scrollbarFiller--pinnedRight')
6
+ root: gridClasses.scrollbarFiller,
7
+ header: gridClasses['scrollbarFiller--header'],
8
+ borderTop: gridClasses['scrollbarFiller--borderTop'],
9
+ pinnedRight: gridClasses['scrollbarFiller--pinnedRight']
11
10
  };
12
- const Style = styled('div')({
13
- minWidth: 'calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))',
14
- alignSelf: 'stretch',
15
- [`&.${classes.borderTop}`]: {
16
- borderTop: '1px solid var(--DataGrid-rowBorderColor)'
17
- },
18
- [`&.${classes.pinnedRight}`]: {
19
- backgroundColor: 'var(--DataGrid-pinnedBackground)'
20
- },
21
- [`&.${classes.pinnedRight}:not(.${classes.header})`]: {
22
- position: 'sticky',
23
- right: 0
24
- }
25
- });
26
11
  function GridScrollbarFillerCell({
27
12
  header,
28
13
  borderTop = true,
29
14
  pinnedRight
30
15
  }) {
31
- return /*#__PURE__*/_jsx(Style, {
16
+ return /*#__PURE__*/_jsx("div", {
32
17
  role: "presentation",
33
18
  className: clsx(classes.root, header && classes.header, borderTop && classes.borderTop, pinnedRight && classes.pinnedRight)
34
19
  });
@@ -58,8 +58,7 @@ const useUtilityClasses = ownerState => {
58
58
  classes
59
59
  } = ownerState;
60
60
  const slots = {
61
- root: ['cell', `cell--text${capitalize(align)}`, isSelected && 'selected', isEditable && 'cell--editable', showLeftBorder && 'cell--withLeftBorder', showRightBorder && 'cell--withRightBorder', pinnedPosition === PinnedPosition.LEFT && 'cell--pinnedLeft', pinnedPosition === PinnedPosition.RIGHT && 'cell--pinnedRight', isSelectionMode && !isEditable && 'cell--selectionMode'],
62
- content: ['cellContent']
61
+ root: ['cell', `cell--text${capitalize(align)}`, isSelected && 'selected', isEditable && 'cell--editable', showLeftBorder && 'cell--withLeftBorder', showRightBorder && 'cell--withRightBorder', pinnedPosition === PinnedPosition.LEFT && 'cell--pinnedLeft', pinnedPosition === PinnedPosition.RIGHT && 'cell--pinnedRight', isSelectionMode && !isEditable && 'cell--selectionMode']
63
62
  };
64
63
  return composeClasses(slots, getDataGridUtilityClass, classes);
65
64
  };
@@ -140,6 +139,9 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
140
139
  if (column.cellClassName) {
141
140
  classNames.push(typeof column.cellClassName === 'function' ? column.cellClassName(cellParamsWithAPI) : column.cellClassName);
142
141
  }
142
+ if (column.display === 'flex') {
143
+ classNames.push(gridClasses['cell--flex']);
144
+ }
143
145
  if (getCellClassName) {
144
146
  classNames.push(getCellClassName(cellParamsWithAPI));
145
147
  }
@@ -248,12 +250,11 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
248
250
  };
249
251
  }
250
252
  let children;
251
- if (editCellState == null && column.renderCell) {
253
+ let title;
254
+ if (editCellState === null && column.renderCell) {
252
255
  children = column.renderCell(cellParamsWithAPI);
253
- classNames.push(gridClasses['cell--withRenderer']);
254
- classNames.push(rootClasses == null ? void 0 : rootClasses['cell--withRenderer']);
255
256
  }
256
- if (editCellState != null && column.renderEditCell) {
257
+ if (editCellState !== null && column.renderEditCell) {
257
258
  const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column.field);
258
259
 
259
260
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -267,12 +268,8 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
267
268
  }
268
269
  if (children === undefined) {
269
270
  const valueString = valueToRender == null ? void 0 : valueToRender.toString();
270
- children = /*#__PURE__*/_jsx("div", {
271
- className: classes.content,
272
- title: valueString,
273
- role: "presentation",
274
- children: valueString
275
- });
271
+ children = valueString;
272
+ title = valueString;
276
273
  }
277
274
  if ( /*#__PURE__*/React.isValidElement(children) && canManageOwnFocus) {
278
275
  children = /*#__PURE__*/React.cloneElement(children, {
@@ -292,6 +289,7 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
292
289
  "aria-colindex": colIndex + 1,
293
290
  "aria-colspan": colSpan,
294
291
  style: style,
292
+ title: title,
295
293
  tabIndex: tabIndex,
296
294
  onClick: publish('cellClick', onClick),
297
295
  onDoubleClick: publish('cellDoubleClick', onDoubleClick),
@@ -4,7 +4,6 @@ const _excluded = ["field", "id", "value", "formattedValue", "row", "rowNode", "
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { unstable_composeClasses as composeClasses, unstable_useForkRef as useForkRef } from '@mui/utils';
7
- import { isSpaceKey } from '../../utils/keyboardUtils';
8
7
  import { useGridApiContext } from '../../hooks/utils/useGridApiContext';
9
8
  import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
10
9
  import { getDataGridUtilityClass } from '../../constants/gridClasses';
@@ -64,7 +63,7 @@ const GridCellCheckboxForwardRef = /*#__PURE__*/React.forwardRef(function GridCe
64
63
  }
65
64
  }, [hasFocus]);
66
65
  const handleKeyDown = React.useCallback(event => {
67
- if (isSpaceKey(event.key)) {
66
+ if (event.key === ' ') {
68
67
  // We call event.stopPropagation to avoid selecting the row and also scrolling to bottom
69
68
  // TODO: Remove and add a check inside useGridKeyboardNavigation
70
69
  event.stopPropagation();
@@ -47,6 +47,8 @@ export const GridRootStyles = styled('div', {
47
47
  [`&.${c.autosizing}`]: styles.autosizing
48
48
  }, {
49
49
  [`& .${c.editBooleanCell}`]: styles.editBooleanCell
50
+ }, {
51
+ [`& .${c.cell}`]: styles.cell
50
52
  }, {
51
53
  [`& .${c['cell--editing']}`]: styles['cell--editing']
52
54
  }, {
@@ -55,12 +57,6 @@ export const GridRootStyles = styled('div', {
55
57
  [`& .${c['cell--textLeft']}`]: styles['cell--textLeft']
56
58
  }, {
57
59
  [`& .${c['cell--textRight']}`]: styles['cell--textRight']
58
- },
59
- // TODO v6: Remove
60
- {
61
- [`& .${c['cell--withRenderer']}`]: styles['cell--withRenderer']
62
- }, {
63
- [`& .${c.cell}`]: styles.cell
64
60
  }, {
65
61
  [`& .${c['cell--rangeTop']}`]: styles['cell--rangeTop']
66
62
  }, {
@@ -71,8 +67,6 @@ export const GridRootStyles = styled('div', {
71
67
  [`& .${c['cell--rangeRight']}`]: styles['cell--rangeRight']
72
68
  }, {
73
69
  [`& .${c['cell--withRightBorder']}`]: styles['cell--withRightBorder']
74
- }, {
75
- [`& .${c.cellContent}`]: styles.cellContent
76
70
  }, {
77
71
  [`& .${c.cellCheckbox}`]: styles.cellCheckbox
78
72
  }, {
@@ -235,9 +229,21 @@ export const GridRootStyles = styled('div', {
235
229
  [`& .${c.columnHeaderTitleContainerContent} > *`]: {
236
230
  overflow: 'visible !important'
237
231
  },
238
- [`& .${c.cell} > *`]: {
232
+ '@media (hover: hover)': {
233
+ [`& .${c.iconButtonContainer}`]: {
234
+ width: '0 !important',
235
+ visibility: 'hidden !important'
236
+ },
237
+ [`& .${c.menuIcon}`]: {
238
+ width: '0 !important',
239
+ visibility: 'hidden !important'
240
+ }
241
+ },
242
+ [`& .${c.cell}`]: {
239
243
  overflow: 'visible !important',
240
- whiteSpace: 'nowrap'
244
+ whiteSpace: 'nowrap',
245
+ minWidth: 'max-content !important',
246
+ maxWidth: 'max-content !important'
241
247
  },
242
248
  [`& .${c.groupingCriteriaCell}`]: {
243
249
  width: 'unset'
@@ -429,15 +435,19 @@ export const GridRootStyles = styled('div', {
429
435
  },
430
436
  /* Cell styles */
431
437
  [`& .${c.cell}`]: {
432
- display: 'flex',
433
- alignItems: 'center',
434
438
  height: 'var(--height)',
435
439
  minWidth: 'var(--width)',
436
440
  maxWidth: 'var(--width)',
441
+ lineHeight: 'calc(var(--height) - 1px)',
442
+ // -1px for the border
443
+
437
444
  '--width': '0px',
438
445
  '--height': '0px',
439
446
  boxSizing: 'border-box',
440
447
  borderTop: `1px solid var(--rowBorderColor)`,
448
+ overflow: 'hidden',
449
+ whiteSpace: 'nowrap',
450
+ textOverflow: 'ellipsis',
441
451
  '&.Mui-selected': selectedStyles
442
452
  },
443
453
  [`& .${c['virtualScrollerContent--overflowed']} .${c['row--lastVisible']} .${c.cell}`]: {
@@ -446,9 +456,10 @@ export const GridRootStyles = styled('div', {
446
456
  [`&.${c['root--disableUserSelection']} .${c.cell}`]: {
447
457
  userSelect: 'none'
448
458
  },
449
- [`& .${c.row}:not(.${c['row--dynamicHeight']}) > .${c.cell}`]: {
450
- overflow: 'hidden',
451
- whiteSpace: 'nowrap'
459
+ [`& .${c['row--dynamicHeight']} > .${c.cell}`]: {
460
+ overflow: 'initial',
461
+ whiteSpace: 'initial',
462
+ lineHeight: 'inherit'
452
463
  },
453
464
  [`& .${c.cellEmpty}`]: {
454
465
  padding: 0
@@ -466,10 +477,6 @@ export const GridRootStyles = styled('div', {
466
477
  outlineOffset: '-1px'
467
478
  }
468
479
  },
469
- [`& .${c.cellContent}`]: {
470
- overflow: 'hidden',
471
- textOverflow: 'ellipsis'
472
- },
473
480
  [`& .${c['row--editing']}`]: {
474
481
  boxShadow: t.shadows[2]
475
482
  },
@@ -508,6 +515,7 @@ export const GridRootStyles = styled('div', {
508
515
  },
509
516
  [`& .${c.rowReorderCellContainer}`]: {
510
517
  padding: 0,
518
+ display: 'flex',
511
519
  alignItems: 'stretch'
512
520
  },
513
521
  [`.${c.withBorderColor}`]: {
@@ -527,13 +535,21 @@ export const GridRootStyles = styled('div', {
527
535
  borderRightWidth: '1px',
528
536
  borderRightStyle: 'solid'
529
537
  },
538
+ [`& .${c['cell--flex']}`]: {
539
+ display: 'flex',
540
+ alignItems: 'center',
541
+ lineHeight: 'inherit'
542
+ },
530
543
  [`& .${c['cell--textLeft']}`]: {
544
+ textAlign: 'left',
531
545
  justifyContent: 'flex-start'
532
546
  },
533
547
  [`& .${c['cell--textRight']}`]: {
548
+ textAlign: 'right',
534
549
  justifyContent: 'flex-end'
535
550
  },
536
551
  [`& .${c['cell--textCenter']}`]: {
552
+ textAlign: 'center',
537
553
  justifyContent: 'center'
538
554
  },
539
555
  [`& .${c['cell--pinnedLeft']}, & .${c['cell--pinnedRight']}`]: {
@@ -604,6 +620,21 @@ export const GridRootStyles = styled('div', {
604
620
  flex: '0 0 28px',
605
621
  alignSelf: 'stretch',
606
622
  marginRight: t.spacing(2)
623
+ },
624
+ /* ScrollbarFiller styles */
625
+ [`.${c.scrollbarFiller}`]: {
626
+ minWidth: 'calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))',
627
+ alignSelf: 'stretch',
628
+ [`&.${c['scrollbarFiller--borderTop']}`]: {
629
+ borderTop: '1px solid var(--DataGrid-rowBorderColor)'
630
+ },
631
+ [`&.${c['scrollbarFiller--pinnedRight']}`]: {
632
+ backgroundColor: 'var(--DataGrid-pinnedBackground)'
633
+ },
634
+ [`&.${c['scrollbarFiller--pinnedRight']}:not(.${c['scrollbarFiller--header']})`]: {
635
+ position: 'sticky',
636
+ right: 0
637
+ }
607
638
  }
608
639
  });
609
640
  return gridStyle;
@@ -52,8 +52,14 @@ function GridFilterInputMultipleSingleSelect(props) {
52
52
  if (!Array.isArray(item.value)) {
53
53
  return [];
54
54
  }
55
- return item.value;
56
- }, [item.value]);
55
+ return item.value.reduce((acc, value) => {
56
+ const resolvedValue = resolvedValueOptions.find(v => getOptionValue(v) === value);
57
+ if (resolvedValue != null) {
58
+ acc.push(resolvedValue);
59
+ }
60
+ return acc;
61
+ }, []);
62
+ }, [getOptionValue, item.value, resolvedValueOptions]);
57
63
  const handleChange = React.useCallback((event, value) => {
58
64
  applyValue(_extends({}, item, {
59
65
  value: value.map(getOptionValue)