@mui/x-data-grid 8.0.0-alpha.12 → 8.0.0-alpha.13

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 (348) hide show
  1. package/CHANGELOG.md +299 -0
  2. package/DataGrid/DataGrid.js +31 -22
  3. package/DataGrid/useDataGridProps.js +1 -1
  4. package/colDef/gridCheckboxSelectionColDef.js +1 -3
  5. package/components/GridFooter.js +1 -1
  6. package/components/GridHeader.js +1 -1
  7. package/components/GridPagination.js +5 -6
  8. package/components/GridRowCount.js +4 -5
  9. package/components/GridScrollArea.js +4 -3
  10. package/components/GridSelectedRowCount.js +5 -6
  11. package/components/GridShadowScrollArea.d.ts +8 -0
  12. package/components/GridShadowScrollArea.js +82 -0
  13. package/components/cell/GridEditInputCell.js +2 -3
  14. package/components/columnSelection/GridHeaderCheckbox.js +51 -17
  15. package/components/columnsManagement/GridColumnsManagement.js +59 -61
  16. package/components/containers/GridOverlay.js +6 -8
  17. package/components/containers/GridRoot.js +4 -2
  18. package/components/containers/GridRootStyles.d.ts +1 -2
  19. package/components/containers/GridRootStyles.js +77 -100
  20. package/components/containers/GridToolbarContainer.js +5 -6
  21. package/components/menu/GridMenu.js +7 -6
  22. package/components/menu/columnMenu/GridColumnHeaderMenu.js +4 -3
  23. package/components/panel/GridPanel.js +18 -20
  24. package/components/panel/GridPanelContent.js +6 -8
  25. package/components/panel/GridPanelFooter.js +5 -6
  26. package/components/panel/GridPanelHeader.js +4 -5
  27. package/components/panel/filterPanel/GridFilterForm.js +13 -20
  28. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
  29. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +10 -39
  30. package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
  31. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +20 -45
  32. package/components/panel/filterPanel/GridFilterInputValue.js +3 -6
  33. package/components/toolbar/GridToolbarFilterButton.js +5 -6
  34. package/components/toolbar/GridToolbarQuickFilter.js +23 -30
  35. package/components/virtualization/GridVirtualScrollbar.js +8 -5
  36. package/components/virtualization/GridVirtualScrollerFiller.js +2 -1
  37. package/constants/cssVariables.d.ts +294 -0
  38. package/constants/cssVariables.js +168 -0
  39. package/constants/dataGridPropsDefaultValues.js +1 -0
  40. package/constants/defaultGridSlotsComponents.js +1 -1
  41. package/constants/gridClasses.d.ts +13 -0
  42. package/constants/gridClasses.js +1 -1
  43. package/context/GridContextProvider.js +4 -1
  44. package/esm/DataGrid/DataGrid.js +31 -22
  45. package/esm/DataGrid/useDataGridProps.js +1 -1
  46. package/esm/colDef/gridCheckboxSelectionColDef.js +1 -3
  47. package/esm/components/GridFooter.js +2 -2
  48. package/esm/components/GridHeader.js +1 -1
  49. package/esm/components/GridPagination.js +5 -6
  50. package/esm/components/GridRowCount.js +4 -5
  51. package/esm/components/GridScrollArea.js +2 -1
  52. package/esm/components/GridSelectedRowCount.js +5 -6
  53. package/esm/components/GridShadowScrollArea.d.ts +8 -0
  54. package/esm/components/GridShadowScrollArea.js +74 -0
  55. package/esm/components/cell/GridEditInputCell.js +2 -3
  56. package/esm/components/columnSelection/GridHeaderCheckbox.js +51 -17
  57. package/esm/components/columnsManagement/GridColumnsManagement.js +60 -62
  58. package/esm/components/containers/GridOverlay.js +6 -8
  59. package/esm/components/containers/GridRoot.js +4 -2
  60. package/esm/components/containers/GridRootStyles.d.ts +1 -2
  61. package/esm/components/containers/GridRootStyles.js +78 -101
  62. package/esm/components/containers/GridToolbarContainer.js +5 -6
  63. package/esm/components/menu/GridMenu.js +7 -6
  64. package/esm/components/menu/columnMenu/GridColumnHeaderMenu.js +2 -1
  65. package/esm/components/panel/GridPanel.js +18 -20
  66. package/esm/components/panel/GridPanelContent.js +6 -8
  67. package/esm/components/panel/GridPanelFooter.js +5 -6
  68. package/esm/components/panel/GridPanelHeader.js +4 -5
  69. package/esm/components/panel/filterPanel/GridFilterForm.js +13 -20
  70. package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
  71. package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +10 -39
  72. package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
  73. package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.js +19 -44
  74. package/esm/components/panel/filterPanel/GridFilterInputValue.js +3 -6
  75. package/esm/components/toolbar/GridToolbarFilterButton.js +5 -6
  76. package/esm/components/toolbar/GridToolbarQuickFilter.js +23 -30
  77. package/esm/components/virtualization/GridVirtualScrollbar.js +3 -1
  78. package/esm/components/virtualization/GridVirtualScrollerFiller.js +2 -1
  79. package/esm/constants/cssVariables.d.ts +294 -0
  80. package/esm/constants/cssVariables.js +161 -0
  81. package/esm/constants/dataGridPropsDefaultValues.js +1 -0
  82. package/esm/constants/defaultGridSlotsComponents.js +2 -2
  83. package/esm/constants/gridClasses.d.ts +13 -0
  84. package/esm/constants/gridClasses.js +1 -1
  85. package/esm/context/GridContextProvider.js +4 -1
  86. package/esm/hooks/features/clipboard/useGridClipboard.js +3 -2
  87. package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
  88. package/esm/hooks/features/columnResize/useGridColumnResize.js +2 -1
  89. package/esm/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -0
  90. package/esm/hooks/features/columns/gridColumnsSelector.d.ts +7 -0
  91. package/esm/hooks/features/columns/gridColumnsSelector.js +8 -0
  92. package/esm/hooks/features/columns/gridColumnsUtils.d.ts +3 -1
  93. package/esm/hooks/features/columns/gridColumnsUtils.js +6 -3
  94. package/esm/hooks/features/columns/index.d.ts +1 -1
  95. package/esm/hooks/features/columns/index.js +1 -1
  96. package/esm/hooks/features/columns/useGridColumns.js +4 -2
  97. package/esm/hooks/features/dataSource/gridDataSourceError.d.ts +31 -0
  98. package/esm/hooks/features/dataSource/gridDataSourceError.js +32 -0
  99. package/esm/hooks/features/dataSource/index.d.ts +2 -0
  100. package/esm/hooks/features/dataSource/index.js +2 -0
  101. package/esm/hooks/features/dataSource/models.d.ts +1 -1
  102. package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
  103. package/esm/hooks/features/dataSource/useGridDataSourceBase.js +27 -17
  104. package/esm/hooks/features/dimensions/useGridDimensions.js +11 -10
  105. package/esm/hooks/features/editing/useGridCellEditing.js +2 -1
  106. package/esm/hooks/features/editing/useGridRowEditing.js +2 -1
  107. package/esm/hooks/features/export/utils.js +4 -2
  108. package/esm/hooks/features/focus/useGridFocus.js +3 -2
  109. package/esm/hooks/features/index.d.ts +1 -1
  110. package/esm/hooks/features/index.js +1 -1
  111. package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
  112. package/esm/hooks/features/rowSelection/gridRowSelectionSelector.js +27 -7
  113. package/esm/hooks/features/rowSelection/useGridRowSelection.js +148 -81
  114. package/esm/hooks/features/rowSelection/utils.d.ts +2 -2
  115. package/esm/hooks/features/rowSelection/utils.js +11 -11
  116. package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
  117. package/esm/hooks/features/rows/gridRowsUtils.d.ts +2 -1
  118. package/esm/hooks/features/rows/gridRowsUtils.js +8 -0
  119. package/esm/hooks/features/rows/useGridParamsApi.js +2 -8
  120. package/esm/hooks/features/rows/useGridRowAriaAttributes.js +2 -4
  121. package/esm/hooks/features/rows/useGridRows.d.ts +2 -2
  122. package/esm/hooks/features/rows/useGridRows.js +7 -7
  123. package/esm/hooks/features/virtualization/useGridVirtualScroller.js +5 -9
  124. package/esm/hooks/utils/useGridSelector.js +4 -1
  125. package/esm/hooks/utils/useIsSSR.js +4 -1
  126. package/esm/index.js +1 -1
  127. package/esm/internals/index.d.ts +2 -1
  128. package/esm/internals/index.js +2 -1
  129. package/esm/internals/utils/propValidation.js +1 -1
  130. package/esm/locales/bnBD.d.ts +2 -0
  131. package/esm/locales/bnBD.js +167 -0
  132. package/esm/locales/deDE.js +3 -5
  133. package/esm/locales/huHU.js +10 -13
  134. package/esm/locales/index.d.ts +1 -0
  135. package/esm/locales/index.js +1 -0
  136. package/esm/locales/ruRU.js +17 -21
  137. package/esm/material/index.d.ts +1 -0
  138. package/esm/material/index.js +164 -49
  139. package/esm/material/variables.d.ts +5 -0
  140. package/esm/material/variables.js +89 -0
  141. package/esm/models/api/gridRowSelectionApi.d.ts +4 -2
  142. package/esm/models/api/gridSortApi.d.ts +1 -1
  143. package/esm/models/configuration/gridConfiguration.d.ts +7 -1
  144. package/esm/models/gridBaseSlots.d.ts +56 -6
  145. package/esm/models/gridDataSource.d.ts +9 -4
  146. package/esm/models/gridRowSelectionManager.d.ts +9 -0
  147. package/esm/models/gridRowSelectionManager.js +36 -0
  148. package/esm/models/gridRowSelectionModel.d.ts +4 -2
  149. package/esm/models/gridSlotsComponent.d.ts +7 -27
  150. package/esm/models/gridSlotsComponentsProps.d.ts +3 -11
  151. package/esm/models/gridSortModel.d.ts +1 -1
  152. package/esm/models/index.d.ts +2 -1
  153. package/esm/models/index.js +2 -3
  154. package/esm/models/props/DataGridProps.d.ts +22 -17
  155. package/esm/utils/css/context.d.ts +14 -0
  156. package/esm/utils/css/context.js +54 -0
  157. package/esm/utils/index.d.ts +2 -1
  158. package/esm/utils/index.js +1 -1
  159. package/hooks/features/clipboard/useGridClipboard.js +3 -2
  160. package/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
  161. package/hooks/features/columnResize/useGridColumnResize.js +28 -27
  162. package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -0
  163. package/hooks/features/columns/gridColumnsSelector.d.ts +7 -0
  164. package/hooks/features/columns/gridColumnsSelector.js +9 -1
  165. package/hooks/features/columns/gridColumnsUtils.d.ts +3 -1
  166. package/hooks/features/columns/gridColumnsUtils.js +6 -3
  167. package/hooks/features/columns/index.d.ts +1 -1
  168. package/hooks/features/columns/index.js +94 -10
  169. package/hooks/features/columns/useGridColumns.js +4 -2
  170. package/hooks/features/dataSource/gridDataSourceError.d.ts +31 -0
  171. package/hooks/features/dataSource/gridDataSourceError.js +40 -0
  172. package/hooks/features/dataSource/index.d.ts +2 -0
  173. package/hooks/features/dataSource/index.js +25 -0
  174. package/hooks/features/dataSource/models.d.ts +1 -1
  175. package/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
  176. package/hooks/features/dataSource/useGridDataSourceBase.js +27 -17
  177. package/hooks/features/dimensions/useGridDimensions.js +19 -18
  178. package/hooks/features/editing/useGridCellEditing.js +10 -9
  179. package/hooks/features/editing/useGridRowEditing.js +11 -10
  180. package/hooks/features/export/utils.js +4 -2
  181. package/hooks/features/focus/useGridFocus.js +8 -7
  182. package/hooks/features/index.d.ts +1 -1
  183. package/hooks/features/index.js +11 -28
  184. package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
  185. package/hooks/features/rowSelection/gridRowSelectionSelector.js +27 -7
  186. package/hooks/features/rowSelection/useGridRowSelection.js +146 -79
  187. package/hooks/features/rowSelection/utils.d.ts +2 -2
  188. package/hooks/features/rowSelection/utils.js +10 -10
  189. package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
  190. package/hooks/features/rows/gridRowsUtils.d.ts +2 -1
  191. package/hooks/features/rows/gridRowsUtils.js +10 -1
  192. package/hooks/features/rows/useGridParamsApi.js +2 -8
  193. package/hooks/features/rows/useGridRowAriaAttributes.js +2 -4
  194. package/hooks/features/rows/useGridRows.d.ts +2 -2
  195. package/hooks/features/rows/useGridRows.js +7 -7
  196. package/hooks/features/virtualization/useGridVirtualScroller.js +21 -25
  197. package/hooks/utils/useGridSelector.js +6 -2
  198. package/hooks/utils/useIsSSR.js +6 -2
  199. package/index.js +1 -1
  200. package/internals/index.d.ts +2 -1
  201. package/internals/index.js +15 -0
  202. package/internals/utils/propValidation.js +1 -1
  203. package/locales/bnBD.d.ts +2 -0
  204. package/locales/bnBD.js +173 -0
  205. package/locales/deDE.js +3 -5
  206. package/locales/huHU.js +10 -13
  207. package/locales/index.d.ts +1 -0
  208. package/locales/index.js +11 -0
  209. package/locales/ruRU.js +17 -21
  210. package/material/index.d.ts +1 -0
  211. package/material/index.js +170 -49
  212. package/material/variables.d.ts +5 -0
  213. package/material/variables.js +95 -0
  214. package/models/api/gridRowSelectionApi.d.ts +4 -2
  215. package/models/api/gridSortApi.d.ts +1 -1
  216. package/models/configuration/gridConfiguration.d.ts +7 -1
  217. package/models/gridBaseSlots.d.ts +56 -6
  218. package/models/gridDataSource.d.ts +9 -4
  219. package/models/gridRowSelectionManager.d.ts +9 -0
  220. package/models/gridRowSelectionManager.js +43 -0
  221. package/models/gridRowSelectionModel.d.ts +4 -2
  222. package/models/gridSlotsComponent.d.ts +7 -27
  223. package/models/gridSlotsComponentsProps.d.ts +3 -11
  224. package/models/gridSortModel.d.ts +1 -1
  225. package/models/index.d.ts +2 -1
  226. package/models/index.js +34 -11
  227. package/models/props/DataGridProps.d.ts +22 -17
  228. package/modern/DataGrid/DataGrid.js +31 -22
  229. package/modern/DataGrid/useDataGridProps.js +1 -1
  230. package/modern/colDef/gridCheckboxSelectionColDef.js +1 -3
  231. package/modern/components/GridFooter.js +2 -2
  232. package/modern/components/GridHeader.js +1 -1
  233. package/modern/components/GridPagination.js +5 -6
  234. package/modern/components/GridRowCount.js +4 -5
  235. package/modern/components/GridScrollArea.js +2 -1
  236. package/modern/components/GridSelectedRowCount.js +5 -6
  237. package/modern/components/GridShadowScrollArea.d.ts +8 -0
  238. package/modern/components/GridShadowScrollArea.js +74 -0
  239. package/modern/components/cell/GridEditInputCell.js +2 -3
  240. package/modern/components/columnSelection/GridHeaderCheckbox.js +51 -17
  241. package/modern/components/columnsManagement/GridColumnsManagement.js +60 -62
  242. package/modern/components/containers/GridOverlay.js +6 -8
  243. package/modern/components/containers/GridRoot.js +4 -2
  244. package/modern/components/containers/GridRootStyles.d.ts +1 -2
  245. package/modern/components/containers/GridRootStyles.js +78 -101
  246. package/modern/components/containers/GridToolbarContainer.js +5 -6
  247. package/modern/components/menu/GridMenu.js +7 -6
  248. package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +2 -1
  249. package/modern/components/panel/GridPanel.js +18 -20
  250. package/modern/components/panel/GridPanelContent.js +6 -8
  251. package/modern/components/panel/GridPanelFooter.js +5 -6
  252. package/modern/components/panel/GridPanelHeader.js +4 -5
  253. package/modern/components/panel/filterPanel/GridFilterForm.js +13 -20
  254. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
  255. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +10 -39
  256. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
  257. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +19 -44
  258. package/modern/components/panel/filterPanel/GridFilterInputValue.js +3 -6
  259. package/modern/components/toolbar/GridToolbarFilterButton.js +5 -6
  260. package/modern/components/toolbar/GridToolbarQuickFilter.js +23 -30
  261. package/modern/components/virtualization/GridVirtualScrollbar.js +3 -1
  262. package/modern/components/virtualization/GridVirtualScrollerFiller.js +2 -1
  263. package/modern/constants/cssVariables.d.ts +294 -0
  264. package/modern/constants/cssVariables.js +161 -0
  265. package/modern/constants/dataGridPropsDefaultValues.js +1 -0
  266. package/modern/constants/defaultGridSlotsComponents.js +2 -2
  267. package/modern/constants/gridClasses.d.ts +13 -0
  268. package/modern/constants/gridClasses.js +1 -1
  269. package/modern/context/GridContextProvider.js +4 -1
  270. package/modern/hooks/features/clipboard/useGridClipboard.js +3 -2
  271. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
  272. package/modern/hooks/features/columnResize/useGridColumnResize.js +2 -1
  273. package/modern/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -0
  274. package/modern/hooks/features/columns/gridColumnsSelector.d.ts +7 -0
  275. package/modern/hooks/features/columns/gridColumnsSelector.js +8 -0
  276. package/modern/hooks/features/columns/gridColumnsUtils.d.ts +3 -1
  277. package/modern/hooks/features/columns/gridColumnsUtils.js +6 -3
  278. package/modern/hooks/features/columns/index.d.ts +1 -1
  279. package/modern/hooks/features/columns/index.js +1 -1
  280. package/modern/hooks/features/columns/useGridColumns.js +4 -2
  281. package/modern/hooks/features/dataSource/gridDataSourceError.d.ts +31 -0
  282. package/modern/hooks/features/dataSource/gridDataSourceError.js +32 -0
  283. package/modern/hooks/features/dataSource/index.d.ts +2 -0
  284. package/modern/hooks/features/dataSource/index.js +2 -0
  285. package/modern/hooks/features/dataSource/models.d.ts +1 -1
  286. package/modern/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
  287. package/modern/hooks/features/dataSource/useGridDataSourceBase.js +27 -17
  288. package/modern/hooks/features/dimensions/useGridDimensions.js +11 -10
  289. package/modern/hooks/features/editing/useGridCellEditing.js +2 -1
  290. package/modern/hooks/features/editing/useGridRowEditing.js +2 -1
  291. package/modern/hooks/features/export/utils.js +4 -2
  292. package/modern/hooks/features/focus/useGridFocus.js +3 -2
  293. package/modern/hooks/features/index.d.ts +1 -1
  294. package/modern/hooks/features/index.js +1 -1
  295. package/modern/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
  296. package/modern/hooks/features/rowSelection/gridRowSelectionSelector.js +27 -7
  297. package/modern/hooks/features/rowSelection/useGridRowSelection.js +148 -81
  298. package/modern/hooks/features/rowSelection/utils.d.ts +2 -2
  299. package/modern/hooks/features/rowSelection/utils.js +11 -11
  300. package/modern/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
  301. package/modern/hooks/features/rows/gridRowsUtils.d.ts +2 -1
  302. package/modern/hooks/features/rows/gridRowsUtils.js +8 -0
  303. package/modern/hooks/features/rows/useGridParamsApi.js +2 -8
  304. package/modern/hooks/features/rows/useGridRowAriaAttributes.js +2 -4
  305. package/modern/hooks/features/rows/useGridRows.d.ts +2 -2
  306. package/modern/hooks/features/rows/useGridRows.js +7 -7
  307. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +5 -9
  308. package/modern/hooks/utils/useGridSelector.js +4 -1
  309. package/modern/hooks/utils/useIsSSR.js +4 -1
  310. package/modern/index.js +1 -1
  311. package/modern/internals/index.d.ts +2 -1
  312. package/modern/internals/index.js +2 -1
  313. package/modern/internals/utils/propValidation.js +1 -1
  314. package/modern/locales/bnBD.d.ts +2 -0
  315. package/modern/locales/bnBD.js +167 -0
  316. package/modern/locales/deDE.js +3 -5
  317. package/modern/locales/huHU.js +10 -13
  318. package/modern/locales/index.d.ts +1 -0
  319. package/modern/locales/index.js +1 -0
  320. package/modern/locales/ruRU.js +17 -21
  321. package/modern/material/index.d.ts +1 -0
  322. package/modern/material/index.js +164 -49
  323. package/modern/material/variables.d.ts +5 -0
  324. package/modern/material/variables.js +89 -0
  325. package/modern/models/api/gridRowSelectionApi.d.ts +4 -2
  326. package/modern/models/api/gridSortApi.d.ts +1 -1
  327. package/modern/models/configuration/gridConfiguration.d.ts +7 -1
  328. package/modern/models/gridBaseSlots.d.ts +56 -6
  329. package/modern/models/gridDataSource.d.ts +9 -4
  330. package/modern/models/gridRowSelectionManager.d.ts +9 -0
  331. package/modern/models/gridRowSelectionManager.js +36 -0
  332. package/modern/models/gridRowSelectionModel.d.ts +4 -2
  333. package/modern/models/gridSlotsComponent.d.ts +7 -27
  334. package/modern/models/gridSlotsComponentsProps.d.ts +3 -11
  335. package/modern/models/gridSortModel.d.ts +1 -1
  336. package/modern/models/index.d.ts +2 -1
  337. package/modern/models/index.js +2 -3
  338. package/modern/models/props/DataGridProps.d.ts +22 -17
  339. package/modern/utils/css/context.d.ts +14 -0
  340. package/modern/utils/css/context.js +54 -0
  341. package/modern/utils/index.d.ts +2 -1
  342. package/modern/utils/index.js +1 -1
  343. package/package.json +2 -2
  344. package/tsconfig.build.tsbuildinfo +1 -1
  345. package/utils/css/context.d.ts +14 -0
  346. package/utils/css/context.js +64 -0
  347. package/utils/index.d.ts +2 -1
  348. package/utils/index.js +8 -1
@@ -0,0 +1,294 @@
1
+ declare const keys: {
2
+ readonly spacingUnit: "--DataGrid-t-spacing-unit";
3
+ readonly colors: {
4
+ readonly border: {
5
+ readonly base: "--DataGrid-t-colors-border-base";
6
+ };
7
+ readonly foreground: {
8
+ readonly base: "--DataGrid-t-colors-foreground-base";
9
+ readonly muted: "--DataGrid-t-colors-foreground-muted";
10
+ readonly accent: "--DataGrid-t-colors-foreground-accent";
11
+ readonly disabled: "--DataGrid-t-colors-foreground-disabled";
12
+ };
13
+ readonly background: {
14
+ readonly base: "--DataGrid-t-colors-background-base";
15
+ readonly overlay: "--DataGrid-t-colors-background-overlay";
16
+ readonly backdrop: "--DataGrid-t-colors-background-backdrop";
17
+ };
18
+ readonly interactive: {
19
+ readonly hover: "--DataGrid-t-colors-interactive-hover";
20
+ readonly hoverOpacity: "--DataGrid-t-colors-interactive-hover-opacity";
21
+ readonly focus: "--DataGrid-t-colors-interactive-focus";
22
+ readonly focusOpacity: "--DataGrid-t-colors-interactive-focus-opacity";
23
+ readonly disabled: "--DataGrid-t-colors-interactive-disabled";
24
+ readonly disabledOpacity: "--DataGrid-t-colors-interactive-disabled-opacity";
25
+ readonly selected: "--DataGrid-t-colors-interactive-selected";
26
+ readonly selectedOpacity: "--DataGrid-t-colors-interactive-selected-opacity";
27
+ };
28
+ };
29
+ readonly header: {
30
+ readonly background: {
31
+ readonly base: "--DataGrid-t-header-background-base";
32
+ };
33
+ };
34
+ readonly cell: {
35
+ readonly background: {
36
+ readonly pinned: "--DataGrid-t-cell-background-pinned";
37
+ };
38
+ };
39
+ readonly radius: {
40
+ readonly base: "--DataGrid-t-radius-base";
41
+ };
42
+ readonly typography: {
43
+ readonly fontFamily: {
44
+ readonly base: "--DataGrid-t-typography-font-family-base";
45
+ };
46
+ readonly fontWeight: {
47
+ readonly light: "--DataGrid-t-typography-font-weight-light";
48
+ readonly regular: "--DataGrid-t-typography-font-weight-regular";
49
+ readonly medium: "--DataGrid-t-typography-font-weight-medium";
50
+ readonly bold: "--DataGrid-t-typography-font-weight-bold";
51
+ };
52
+ readonly body: {
53
+ readonly fontFamily: "--DataGrid-t-typography-body-font-family";
54
+ readonly fontSize: "--DataGrid-t-typography-body-font-size";
55
+ readonly fontWeight: "--DataGrid-t-typography-body-font-weight";
56
+ readonly letterSpacing: "--DataGrid-t-typography-body-letter-spacing";
57
+ readonly lineHeight: "--DataGrid-t-typography-body-line-height";
58
+ };
59
+ readonly small: {
60
+ readonly fontFamily: "--DataGrid-t-typography-small-font-family";
61
+ readonly fontSize: "--DataGrid-t-typography-small-font-size";
62
+ readonly fontWeight: "--DataGrid-t-typography-small-font-weight";
63
+ readonly letterSpacing: "--DataGrid-t-typography-small-letter-spacing";
64
+ readonly lineHeight: "--DataGrid-t-typography-small-line-height";
65
+ };
66
+ };
67
+ readonly transitions: {
68
+ readonly easing: {
69
+ readonly easeIn: "--DataGrid-t-transitions-easing-ease-in";
70
+ readonly easeOut: "--DataGrid-t-transitions-easing-ease-out";
71
+ readonly easeInOut: "--DataGrid-t-transitions-easing-ease-in-out";
72
+ };
73
+ readonly duration: {
74
+ readonly short: "--DataGrid-t-transitions-duration-short";
75
+ readonly base: "--DataGrid-t-transitions-duration-base";
76
+ readonly long: "--DataGrid-t-transitions-duration-long";
77
+ };
78
+ };
79
+ readonly shadows: {
80
+ readonly base: "--DataGrid-t-shadows-base";
81
+ readonly overlay: "--DataGrid-t-shadows-overlay";
82
+ };
83
+ readonly zIndex: {
84
+ readonly panel: "--DataGrid-t-z-index-panel";
85
+ readonly menu: "--DataGrid-t-z-index-menu";
86
+ };
87
+ };
88
+ export type GridCSSVariablesInterface = { [E in CreateObjectEntries<typeof keys> as E['value']]: string | number };
89
+ type Entry = {
90
+ key: string;
91
+ value: unknown;
92
+ };
93
+ type EmptyEntry<TValue> = {
94
+ key: '';
95
+ value: TValue;
96
+ };
97
+ type CreateObjectEntries<TValue, TValueInitial = TValue> = TValue extends object ? { [TKey in keyof TValue]-?: TKey extends string ? OmitItself<TValue[TKey], TValueInitial> extends infer TNestedValue ? TNestedValue extends Entry ? {
98
+ key: `${TKey}.${TNestedValue['key']}`;
99
+ value: TNestedValue['value'];
100
+ } : never : never : never }[keyof TValue] : EmptyEntry<TValue>;
101
+ type OmitItself<TValue, TValueInitial> = TValue extends TValueInitial ? EmptyEntry<TValue> : CreateObjectEntries<TValue, TValueInitial>;
102
+ export declare const vars: {
103
+ spacingUnit: "--DataGrid-t-spacing-unit";
104
+ colors: {
105
+ readonly border: {
106
+ readonly base: "--DataGrid-t-colors-border-base";
107
+ };
108
+ readonly foreground: {
109
+ readonly base: "--DataGrid-t-colors-foreground-base";
110
+ readonly muted: "--DataGrid-t-colors-foreground-muted";
111
+ readonly accent: "--DataGrid-t-colors-foreground-accent";
112
+ readonly disabled: "--DataGrid-t-colors-foreground-disabled";
113
+ };
114
+ readonly background: {
115
+ readonly base: "--DataGrid-t-colors-background-base";
116
+ readonly overlay: "--DataGrid-t-colors-background-overlay";
117
+ readonly backdrop: "--DataGrid-t-colors-background-backdrop";
118
+ };
119
+ readonly interactive: {
120
+ readonly hover: "--DataGrid-t-colors-interactive-hover";
121
+ readonly hoverOpacity: "--DataGrid-t-colors-interactive-hover-opacity";
122
+ readonly focus: "--DataGrid-t-colors-interactive-focus";
123
+ readonly focusOpacity: "--DataGrid-t-colors-interactive-focus-opacity";
124
+ readonly disabled: "--DataGrid-t-colors-interactive-disabled";
125
+ readonly disabledOpacity: "--DataGrid-t-colors-interactive-disabled-opacity";
126
+ readonly selected: "--DataGrid-t-colors-interactive-selected";
127
+ readonly selectedOpacity: "--DataGrid-t-colors-interactive-selected-opacity";
128
+ };
129
+ };
130
+ header: {
131
+ readonly background: {
132
+ readonly base: "--DataGrid-t-header-background-base";
133
+ };
134
+ };
135
+ cell: {
136
+ readonly background: {
137
+ readonly pinned: "--DataGrid-t-cell-background-pinned";
138
+ };
139
+ };
140
+ radius: {
141
+ readonly base: "--DataGrid-t-radius-base";
142
+ };
143
+ typography: {
144
+ readonly fontFamily: {
145
+ readonly base: "--DataGrid-t-typography-font-family-base";
146
+ };
147
+ readonly fontWeight: {
148
+ readonly light: "--DataGrid-t-typography-font-weight-light";
149
+ readonly regular: "--DataGrid-t-typography-font-weight-regular";
150
+ readonly medium: "--DataGrid-t-typography-font-weight-medium";
151
+ readonly bold: "--DataGrid-t-typography-font-weight-bold";
152
+ };
153
+ readonly body: {
154
+ readonly fontFamily: "--DataGrid-t-typography-body-font-family";
155
+ readonly fontSize: "--DataGrid-t-typography-body-font-size";
156
+ readonly fontWeight: "--DataGrid-t-typography-body-font-weight";
157
+ readonly letterSpacing: "--DataGrid-t-typography-body-letter-spacing";
158
+ readonly lineHeight: "--DataGrid-t-typography-body-line-height";
159
+ };
160
+ readonly small: {
161
+ readonly fontFamily: "--DataGrid-t-typography-small-font-family";
162
+ readonly fontSize: "--DataGrid-t-typography-small-font-size";
163
+ readonly fontWeight: "--DataGrid-t-typography-small-font-weight";
164
+ readonly letterSpacing: "--DataGrid-t-typography-small-letter-spacing";
165
+ readonly lineHeight: "--DataGrid-t-typography-small-line-height";
166
+ };
167
+ };
168
+ transitions: {
169
+ readonly easing: {
170
+ readonly easeIn: "--DataGrid-t-transitions-easing-ease-in";
171
+ readonly easeOut: "--DataGrid-t-transitions-easing-ease-out";
172
+ readonly easeInOut: "--DataGrid-t-transitions-easing-ease-in-out";
173
+ };
174
+ readonly duration: {
175
+ readonly short: "--DataGrid-t-transitions-duration-short";
176
+ readonly base: "--DataGrid-t-transitions-duration-base";
177
+ readonly long: "--DataGrid-t-transitions-duration-long";
178
+ };
179
+ };
180
+ shadows: {
181
+ readonly base: "--DataGrid-t-shadows-base";
182
+ readonly overlay: "--DataGrid-t-shadows-overlay";
183
+ };
184
+ zIndex: {
185
+ readonly panel: "--DataGrid-t-z-index-panel";
186
+ readonly menu: "--DataGrid-t-z-index-menu";
187
+ };
188
+ breakpoints: {
189
+ values: {
190
+ xs: number;
191
+ sm: number;
192
+ md: number;
193
+ lg: number;
194
+ xl: number;
195
+ };
196
+ up: (key: any) => string;
197
+ };
198
+ spacing: typeof spacing;
199
+ transition: typeof transition;
200
+ keys: {
201
+ readonly spacingUnit: "--DataGrid-t-spacing-unit";
202
+ readonly colors: {
203
+ readonly border: {
204
+ readonly base: "--DataGrid-t-colors-border-base";
205
+ };
206
+ readonly foreground: {
207
+ readonly base: "--DataGrid-t-colors-foreground-base";
208
+ readonly muted: "--DataGrid-t-colors-foreground-muted";
209
+ readonly accent: "--DataGrid-t-colors-foreground-accent";
210
+ readonly disabled: "--DataGrid-t-colors-foreground-disabled";
211
+ };
212
+ readonly background: {
213
+ readonly base: "--DataGrid-t-colors-background-base";
214
+ readonly overlay: "--DataGrid-t-colors-background-overlay";
215
+ readonly backdrop: "--DataGrid-t-colors-background-backdrop";
216
+ };
217
+ readonly interactive: {
218
+ readonly hover: "--DataGrid-t-colors-interactive-hover";
219
+ readonly hoverOpacity: "--DataGrid-t-colors-interactive-hover-opacity";
220
+ readonly focus: "--DataGrid-t-colors-interactive-focus";
221
+ readonly focusOpacity: "--DataGrid-t-colors-interactive-focus-opacity";
222
+ readonly disabled: "--DataGrid-t-colors-interactive-disabled";
223
+ readonly disabledOpacity: "--DataGrid-t-colors-interactive-disabled-opacity";
224
+ readonly selected: "--DataGrid-t-colors-interactive-selected";
225
+ readonly selectedOpacity: "--DataGrid-t-colors-interactive-selected-opacity";
226
+ };
227
+ };
228
+ readonly header: {
229
+ readonly background: {
230
+ readonly base: "--DataGrid-t-header-background-base";
231
+ };
232
+ };
233
+ readonly cell: {
234
+ readonly background: {
235
+ readonly pinned: "--DataGrid-t-cell-background-pinned";
236
+ };
237
+ };
238
+ readonly radius: {
239
+ readonly base: "--DataGrid-t-radius-base";
240
+ };
241
+ readonly typography: {
242
+ readonly fontFamily: {
243
+ readonly base: "--DataGrid-t-typography-font-family-base";
244
+ };
245
+ readonly fontWeight: {
246
+ readonly light: "--DataGrid-t-typography-font-weight-light";
247
+ readonly regular: "--DataGrid-t-typography-font-weight-regular";
248
+ readonly medium: "--DataGrid-t-typography-font-weight-medium";
249
+ readonly bold: "--DataGrid-t-typography-font-weight-bold";
250
+ };
251
+ readonly body: {
252
+ readonly fontFamily: "--DataGrid-t-typography-body-font-family";
253
+ readonly fontSize: "--DataGrid-t-typography-body-font-size";
254
+ readonly fontWeight: "--DataGrid-t-typography-body-font-weight";
255
+ readonly letterSpacing: "--DataGrid-t-typography-body-letter-spacing";
256
+ readonly lineHeight: "--DataGrid-t-typography-body-line-height";
257
+ };
258
+ readonly small: {
259
+ readonly fontFamily: "--DataGrid-t-typography-small-font-family";
260
+ readonly fontSize: "--DataGrid-t-typography-small-font-size";
261
+ readonly fontWeight: "--DataGrid-t-typography-small-font-weight";
262
+ readonly letterSpacing: "--DataGrid-t-typography-small-letter-spacing";
263
+ readonly lineHeight: "--DataGrid-t-typography-small-line-height";
264
+ };
265
+ };
266
+ readonly transitions: {
267
+ readonly easing: {
268
+ readonly easeIn: "--DataGrid-t-transitions-easing-ease-in";
269
+ readonly easeOut: "--DataGrid-t-transitions-easing-ease-out";
270
+ readonly easeInOut: "--DataGrid-t-transitions-easing-ease-in-out";
271
+ };
272
+ readonly duration: {
273
+ readonly short: "--DataGrid-t-transitions-duration-short";
274
+ readonly base: "--DataGrid-t-transitions-duration-base";
275
+ readonly long: "--DataGrid-t-transitions-duration-long";
276
+ };
277
+ };
278
+ readonly shadows: {
279
+ readonly base: "--DataGrid-t-shadows-base";
280
+ readonly overlay: "--DataGrid-t-shadows-overlay";
281
+ };
282
+ readonly zIndex: {
283
+ readonly panel: "--DataGrid-t-z-index-panel";
284
+ readonly menu: "--DataGrid-t-z-index-menu";
285
+ };
286
+ };
287
+ };
288
+ declare function spacing(a?: number, b?: number, c?: number, d?: number): string;
289
+ declare function transition(props: string[], options?: {
290
+ duration?: string;
291
+ easing?: string;
292
+ delay?: number;
293
+ }): string;
294
+ export {};
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.vars = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ // NOTE: Breakpoints can't come from the theme because we need access to them at
10
+ // initialization time and media-queries can't use CSS variables. For users with
11
+ // custom breakpoints, we might want to provide a way to configure them globally
12
+ // instead of through the theme.
13
+ const breakpoints = {
14
+ values: {
15
+ xs: 0,
16
+ // phone
17
+ sm: 600,
18
+ // tablet
19
+ md: 900,
20
+ // small laptop
21
+ lg: 1200,
22
+ // desktop
23
+ xl: 1536 // large screen
24
+ },
25
+ up: key => {
26
+ const values = breakpoints.values;
27
+ const value = typeof values[key] === 'number' ? values[key] : key;
28
+ return `@media (min-width:${value}px)`;
29
+ }
30
+ };
31
+ const keys = {
32
+ spacingUnit: '--DataGrid-t-spacing-unit',
33
+ /* Variables */
34
+ colors: {
35
+ border: {
36
+ base: '--DataGrid-t-colors-border-base'
37
+ },
38
+ foreground: {
39
+ base: '--DataGrid-t-colors-foreground-base',
40
+ muted: '--DataGrid-t-colors-foreground-muted',
41
+ accent: '--DataGrid-t-colors-foreground-accent',
42
+ disabled: '--DataGrid-t-colors-foreground-disabled'
43
+ },
44
+ background: {
45
+ base: '--DataGrid-t-colors-background-base',
46
+ overlay: '--DataGrid-t-colors-background-overlay',
47
+ backdrop: '--DataGrid-t-colors-background-backdrop'
48
+ },
49
+ interactive: {
50
+ hover: '--DataGrid-t-colors-interactive-hover',
51
+ hoverOpacity: '--DataGrid-t-colors-interactive-hover-opacity',
52
+ focus: '--DataGrid-t-colors-interactive-focus',
53
+ focusOpacity: '--DataGrid-t-colors-interactive-focus-opacity',
54
+ disabled: '--DataGrid-t-colors-interactive-disabled',
55
+ disabledOpacity: '--DataGrid-t-colors-interactive-disabled-opacity',
56
+ selected: '--DataGrid-t-colors-interactive-selected',
57
+ selectedOpacity: '--DataGrid-t-colors-interactive-selected-opacity'
58
+ }
59
+ },
60
+ header: {
61
+ background: {
62
+ base: '--DataGrid-t-header-background-base'
63
+ }
64
+ },
65
+ cell: {
66
+ background: {
67
+ pinned: '--DataGrid-t-cell-background-pinned'
68
+ }
69
+ },
70
+ radius: {
71
+ base: '--DataGrid-t-radius-base'
72
+ },
73
+ typography: {
74
+ fontFamily: {
75
+ base: '--DataGrid-t-typography-font-family-base'
76
+ },
77
+ fontWeight: {
78
+ light: '--DataGrid-t-typography-font-weight-light',
79
+ regular: '--DataGrid-t-typography-font-weight-regular',
80
+ medium: '--DataGrid-t-typography-font-weight-medium',
81
+ bold: '--DataGrid-t-typography-font-weight-bold'
82
+ },
83
+ body: {
84
+ fontFamily: '--DataGrid-t-typography-body-font-family',
85
+ fontSize: '--DataGrid-t-typography-body-font-size',
86
+ fontWeight: '--DataGrid-t-typography-body-font-weight',
87
+ letterSpacing: '--DataGrid-t-typography-body-letter-spacing',
88
+ lineHeight: '--DataGrid-t-typography-body-line-height'
89
+ },
90
+ small: {
91
+ fontFamily: '--DataGrid-t-typography-small-font-family',
92
+ fontSize: '--DataGrid-t-typography-small-font-size',
93
+ fontWeight: '--DataGrid-t-typography-small-font-weight',
94
+ letterSpacing: '--DataGrid-t-typography-small-letter-spacing',
95
+ lineHeight: '--DataGrid-t-typography-small-line-height'
96
+ }
97
+ },
98
+ transitions: {
99
+ easing: {
100
+ easeIn: '--DataGrid-t-transitions-easing-ease-in',
101
+ easeOut: '--DataGrid-t-transitions-easing-ease-out',
102
+ easeInOut: '--DataGrid-t-transitions-easing-ease-in-out'
103
+ },
104
+ duration: {
105
+ short: '--DataGrid-t-transitions-duration-short',
106
+ base: '--DataGrid-t-transitions-duration-base',
107
+ long: '--DataGrid-t-transitions-duration-long'
108
+ }
109
+ },
110
+ shadows: {
111
+ base: '--DataGrid-t-shadows-base',
112
+ overlay: '--DataGrid-t-shadows-overlay'
113
+ },
114
+ zIndex: {
115
+ panel: '--DataGrid-t-z-index-panel',
116
+ menu: '--DataGrid-t-z-index-menu'
117
+ }
118
+ };
119
+ const values = wrap(keys);
120
+ const vars = exports.vars = (0, _extends2.default)({
121
+ breakpoints,
122
+ spacing,
123
+ transition,
124
+ keys
125
+ }, values);
126
+ function spacing(a, b, c, d) {
127
+ /* eslint-disable prefer-template */
128
+ if (a === undefined) {
129
+ return spacingString(1);
130
+ }
131
+ if (b === undefined) {
132
+ return spacingString(a);
133
+ }
134
+ if (c === undefined) {
135
+ return spacingString(a) + ' ' + spacingString(b);
136
+ }
137
+ if (d === undefined) {
138
+ return spacingString(a) + ' ' + spacingString(b) + ' ' + spacingString(c);
139
+ }
140
+ return spacingString(a) + ' ' + spacingString(b) + ' ' + spacingString(c) + ' ' + spacingString(d);
141
+ /* eslint-enable prefer-template */
142
+ }
143
+ function spacingString(value) {
144
+ if (value === 0) {
145
+ return '0';
146
+ }
147
+ return `calc(var(--DataGrid-t-spacing-unit) * ${value})`;
148
+ }
149
+ function transition(props, options) {
150
+ const {
151
+ duration = vars.transitions.duration.base,
152
+ easing = vars.transitions.easing.easeInOut,
153
+ delay = 0
154
+ } = options ?? {};
155
+ return props.map(prop => `${prop} ${duration} ${easing} ${delay}ms`).join(', ');
156
+ }
157
+ function wrap(input) {
158
+ if (typeof input === 'string') {
159
+ return `var(${input})`;
160
+ }
161
+ const result = {};
162
+ for (const key in input) {
163
+ if (Object.hasOwn(input, key)) {
164
+ result[key] = wrap(input[key]);
165
+ }
166
+ }
167
+ return result;
168
+ }
@@ -57,6 +57,7 @@ const DATA_GRID_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PROPS_DEFAULT_VALUES =
57
57
  rowSpanning: false,
58
58
  showCellVerticalBorder: false,
59
59
  showColumnVerticalBorder: false,
60
+ showToolbar: false,
60
61
  sortingMode: 'client',
61
62
  sortingOrder: ['asc', 'desc', null],
62
63
  throttleRowsMs: 0,
@@ -28,7 +28,7 @@ const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = exports.DATA_GRID_DEFAULT_SLOTS_COMPO
28
28
  bottomContainer: _GridBottomContainer.GridBottomContainer,
29
29
  footer: _components.GridFooter,
30
30
  footerRowCount: _components.GridRowCount,
31
- toolbar: null,
31
+ toolbar: _components.GridToolbar,
32
32
  pinnedRows: _GridPinnedRows.GridPinnedRows,
33
33
  loadingOverlay: _components.GridLoadingOverlay,
34
34
  noResultsOverlay: _GridNoResultsOverlay.GridNoResultsOverlay,
@@ -260,6 +260,14 @@ export interface GridClasses {
260
260
  * Styles applied to the columns management footer element.
261
261
  */
262
262
  columnsManagementFooter: string;
263
+ /**
264
+ * Styles applied to the columns management scroll area element.
265
+ */
266
+ columnsManagementScrollArea: string;
267
+ /**
268
+ * Styles applied to the columns management empty text element.
269
+ */
270
+ columnsManagementEmptyText: string;
263
271
  /**
264
272
  * Styles applied to the top container.
265
273
  */
@@ -586,6 +594,11 @@ export interface GridClasses {
586
594
  * Styles applied to the sort icon element.
587
595
  */
588
596
  sortIcon: string;
597
+ /**
598
+ * Styles applied to the shadow scroll area element.
599
+ * @ignore - do not document.
600
+ */
601
+ shadowScrollArea: string;
589
602
  /**
590
603
  * Styles applied to the toolbar container element.
591
604
  */
@@ -9,4 +9,4 @@ var _utils = require("@mui/utils");
9
9
  function getDataGridUtilityClass(slot) {
10
10
  return (0, _utils.unstable_generateUtilityClass)('MuiDataGrid', slot);
11
11
  }
12
- const gridClasses = exports.gridClasses = (0, _utils.unstable_generateUtilityClasses)('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'aggregationRowOverlayWrapper', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeader--filter', 'columnHeaderFilterInput', 'columnHeaderFilterOperatorLabel', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'container--top', 'container--bottom', 'detailPanel', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hiddenContent', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'toolbarPromptControl', 'toolbarPromptControl--recording', 'toolbarPromptControlRecordingIndicator', 'toolbarPromptControlRecordButton', 'toolbarPromptControlSendButton', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom']);
12
+ const gridClasses = exports.gridClasses = (0, _utils.unstable_generateUtilityClasses)('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'aggregationRowOverlayWrapper', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeader--filter', 'columnHeaderFilterInput', 'columnHeaderFilterOperatorLabel', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'columnsManagementScrollArea', 'columnsManagementEmptyText', 'container--top', 'container--bottom', 'detailPanel', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hiddenContent', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortIcon', 'shadowScrollArea', 'toolbarContainer', 'toolbarFilterList', 'toolbarPromptControl', 'toolbarPromptControl--recording', 'toolbarPromptControlRecordingIndicator', 'toolbarPromptControlRecordButton', 'toolbarPromptControlSendButton', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom']);
@@ -10,6 +10,7 @@ var _GridApiContext = require("../components/GridApiContext");
10
10
  var _useGridPrivateApiContext = require("../hooks/utils/useGridPrivateApiContext");
11
11
  var _GridRootPropsContext = require("./GridRootPropsContext");
12
12
  var _GridConfigurationContext = require("../components/GridConfigurationContext");
13
+ var _context = require("../utils/css/context");
13
14
  var _jsxRuntime = require("react/jsx-runtime");
14
15
  function GridContextProvider({
15
16
  privateApiRef,
@@ -26,7 +27,9 @@ function GridContextProvider({
26
27
  value: privateApiRef,
27
28
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridApiContext.GridApiContext.Provider, {
28
29
  value: apiRef,
29
- children: children
30
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.GridCSSVariablesContext, {
31
+ children: children
32
+ })
30
33
  })
31
34
  })
32
35
  })
@@ -11,9 +11,11 @@ import { GridContextProvider } from "../context/GridContextProvider.js";
11
11
  import { useDataGridComponent } from "./useDataGridComponent.js";
12
12
  import { useDataGridProps } from "./useDataGridProps.js";
13
13
  import { propValidatorsDataGrid, validateProps } from "../internals/utils/propValidation.js";
14
+ import { useMaterialCSSVariables } from "../material/variables.js";
14
15
  import { jsx as _jsx } from "react/jsx-runtime";
15
16
  const configuration = {
16
17
  hooks: {
18
+ useCSSVariables: useMaterialCSSVariables,
17
19
  useGridAriaAttributes,
18
20
  useGridRowAriaAttributes
19
21
  }
@@ -138,6 +140,21 @@ DataGridRaw.propTypes = {
138
140
  * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
139
141
  */
140
142
  columnVisibilityModel: PropTypes.object,
143
+ /**
144
+ * The data source object.
145
+ */
146
+ dataSource: PropTypes.shape({
147
+ getRows: PropTypes.func.isRequired,
148
+ updateRow: PropTypes.func
149
+ }),
150
+ /**
151
+ * Data source cache object.
152
+ */
153
+ dataSourceCache: PropTypes.shape({
154
+ clear: PropTypes.func.isRequired,
155
+ get: PropTypes.func.isRequired,
156
+ set: PropTypes.func.isRequired
157
+ }),
141
158
  /**
142
159
  * Set the density of the Data Grid.
143
160
  * @default "standard"
@@ -490,6 +507,11 @@ DataGridRaw.propTypes = {
490
507
  * @param {GridCallbackDetails} details Additional details for this callback.
491
508
  */
492
509
  onColumnWidthChange: PropTypes.func,
510
+ /**
511
+ * Callback fired when a data source request fails.
512
+ * @param {GridGetRowsError | GridUpdateRowError} error The data source error object.
513
+ */
514
+ onDataSourceError: PropTypes.func,
493
515
  /**
494
516
  * Callback fired when the density changes.
495
517
  * @param {GridDensity} density New density value.
@@ -687,7 +709,10 @@ DataGridRaw.propTypes = {
687
709
  /**
688
710
  * Sets the row selection model of the Data Grid.
689
711
  */
690
- rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
712
+ rowSelectionModel: PropTypes /* @typescript-to-proptypes-ignore */.shape({
713
+ ids: PropTypes.instanceOf(Set).isRequired,
714
+ type: PropTypes.oneOf(['exclude', 'include']).isRequired
715
+ }),
691
716
  /**
692
717
  * Sets the type of space between rows added by `getRowSpacing`.
693
718
  * @default "margin"
@@ -712,6 +737,11 @@ DataGridRaw.propTypes = {
712
737
  * @default false
713
738
  */
714
739
  showColumnVerticalBorder: PropTypes.bool,
740
+ /**
741
+ * If `true`, the toolbar is displayed.
742
+ * @default false
743
+ */
744
+ showToolbar: PropTypes.bool,
715
745
  /**
716
746
  * Overridable components props dynamically passed to the component at rendering.
717
747
  */
@@ -743,27 +773,6 @@ DataGridRaw.propTypes = {
743
773
  * The system prop that allows defining system overrides as well as additional CSS styles.
744
774
  */
745
775
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
746
- /**
747
- * The data source object.
748
- */
749
- unstable_dataSource: PropTypes.shape({
750
- getRows: PropTypes.func.isRequired,
751
- updateRow: PropTypes.func
752
- }),
753
- /**
754
- * Data source cache object.
755
- */
756
- unstable_dataSourceCache: PropTypes.shape({
757
- clear: PropTypes.func.isRequired,
758
- get: PropTypes.func.isRequired,
759
- set: PropTypes.func.isRequired
760
- }),
761
- /**
762
- * Callback fired when the data source request fails.
763
- * @param {Error} error The error object.
764
- * @param {GridGetRowsParams} params With all properties from [[GridGetRowsParams]].
765
- */
766
- unstable_onDataSourceError: PropTypes.func,
767
776
  /**
768
777
  * If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
769
778
  * By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
@@ -17,7 +17,7 @@ const DATA_GRID_FORCED_PROPS = {
17
17
  signature: 'DataGrid',
18
18
  unstable_listView: false
19
19
  };
20
- const getDataGridForcedProps = themedProps => _extends({}, DATA_GRID_FORCED_PROPS, themedProps.unstable_dataSource ? {
20
+ const getDataGridForcedProps = themedProps => _extends({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
21
21
  filterMode: 'server',
22
22
  sortingMode: 'server',
23
23
  paginationMode: 'server'