@mui/x-data-grid 7.0.0-beta.2 → 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 (496) hide show
  1. package/CHANGELOG.md +298 -23
  2. package/DataGrid/DataGrid.js +0 -6
  3. package/colDef/gridActionsColDef.js +1 -0
  4. package/colDef/gridBooleanColDef.js +1 -0
  5. package/colDef/gridCheckboxSelectionColDef.js +1 -0
  6. package/components/GridRow.d.ts +3 -1
  7. package/components/GridRow.js +10 -2
  8. package/components/GridScrollbarFillerCell.js +6 -21
  9. package/components/cell/GridCell.js +10 -12
  10. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
  11. package/components/containers/GridRootStyles.js +51 -23
  12. package/components/panel/GridPanel.d.ts +1 -1
  13. package/components/panel/filterPanel/GridFilterInputBoolean.js +6 -4
  14. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
  15. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -4
  16. package/components/panel/filterPanel/GridFilterInputValue.js +4 -3
  17. package/components/virtualization/GridVirtualScrollerRenderZone.js +10 -3
  18. package/constants/gridClasses.d.ts +24 -8
  19. package/constants/gridClasses.js +1 -1
  20. package/hooks/features/clipboard/useGridClipboard.js +1 -1
  21. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +5 -5
  22. package/hooks/features/columnHeaders/useGridColumnHeaders.js +46 -48
  23. package/hooks/features/editing/useGridCellEditing.js +3 -4
  24. package/hooks/features/editing/useGridRowEditing.js +3 -4
  25. package/hooks/features/sorting/useGridSorting.js +1 -2
  26. package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +9 -0
  27. package/hooks/features/virtualization/gridVirtualizationSelectors.js +7 -0
  28. package/hooks/features/virtualization/useGridVirtualScroller.js +19 -16
  29. package/hooks/features/virtualization/useGridVirtualization.d.ts +8 -0
  30. package/hooks/features/virtualization/useGridVirtualization.js +6 -1
  31. package/index.js +1 -1
  32. package/internals/index.d.ts +1 -1
  33. package/internals/index.js +1 -1
  34. package/models/colDef/gridColDef.d.ts +6 -0
  35. package/models/events/gridEventLookup.d.ts +1 -8
  36. package/models/props/DataGridProps.d.ts +0 -6
  37. package/modern/DataGrid/DataGrid.js +0 -6
  38. package/modern/colDef/gridActionsColDef.js +1 -0
  39. package/modern/colDef/gridBooleanColDef.js +1 -0
  40. package/modern/colDef/gridCheckboxSelectionColDef.js +1 -0
  41. package/modern/components/GridRow.js +10 -2
  42. package/modern/components/GridScrollbarFillerCell.js +6 -21
  43. package/modern/components/cell/GridCell.js +10 -12
  44. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
  45. package/modern/components/containers/GridRootStyles.js +51 -23
  46. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +6 -4
  47. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
  48. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -4
  49. package/modern/components/panel/filterPanel/GridFilterInputValue.js +4 -3
  50. package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +10 -3
  51. package/modern/constants/gridClasses.js +1 -1
  52. package/modern/hooks/features/clipboard/useGridClipboard.js +1 -1
  53. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +46 -48
  54. package/modern/hooks/features/editing/useGridCellEditing.js +3 -4
  55. package/modern/hooks/features/editing/useGridRowEditing.js +3 -4
  56. package/modern/hooks/features/sorting/useGridSorting.js +1 -2
  57. package/modern/hooks/features/virtualization/gridVirtualizationSelectors.js +7 -0
  58. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +18 -14
  59. package/modern/hooks/features/virtualization/useGridVirtualization.js +6 -1
  60. package/modern/index.js +1 -1
  61. package/modern/internals/index.js +1 -1
  62. package/modern/utils/keyboardUtils.js +20 -11
  63. package/node/DataGrid/DataGrid.js +0 -6
  64. package/node/colDef/gridActionsColDef.js +1 -0
  65. package/node/colDef/gridBooleanColDef.js +1 -0
  66. package/node/colDef/gridCheckboxSelectionColDef.js +1 -0
  67. package/node/components/GridRow.js +10 -2
  68. package/node/components/GridScrollbarFillerCell.js +5 -20
  69. package/node/components/cell/GridCell.js +10 -12
  70. package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
  71. package/node/components/containers/GridRootStyles.js +51 -23
  72. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +6 -4
  73. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
  74. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -4
  75. package/node/components/panel/filterPanel/GridFilterInputValue.js +4 -3
  76. package/node/components/virtualization/GridVirtualScrollerRenderZone.js +10 -3
  77. package/node/constants/gridClasses.js +1 -1
  78. package/node/hooks/features/clipboard/useGridClipboard.js +1 -1
  79. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +45 -47
  80. package/node/hooks/features/editing/useGridCellEditing.js +2 -3
  81. package/node/hooks/features/editing/useGridRowEditing.js +2 -3
  82. package/node/hooks/features/sorting/useGridSorting.js +1 -2
  83. package/node/hooks/features/virtualization/gridVirtualizationSelectors.js +8 -1
  84. package/node/hooks/features/virtualization/useGridVirtualScroller.js +17 -13
  85. package/node/hooks/features/virtualization/useGridVirtualization.js +7 -2
  86. package/node/index.js +1 -1
  87. package/node/internals/index.js +7 -0
  88. package/node/utils/keyboardUtils.js +25 -20
  89. package/package.json +3 -3
  90. package/utils/keyboardUtils.d.ts +7 -6
  91. package/utils/keyboardUtils.js +20 -11
  92. package/legacy/DataGrid/DataGrid.js +0 -670
  93. package/legacy/DataGrid/index.js +0 -2
  94. package/legacy/DataGrid/useDataGridComponent.js +0 -81
  95. package/legacy/DataGrid/useDataGridProps.js +0 -98
  96. package/legacy/colDef/gridActionsColDef.js +0 -18
  97. package/legacy/colDef/gridBooleanColDef.js +0 -42
  98. package/legacy/colDef/gridBooleanOperators.js +0 -16
  99. package/legacy/colDef/gridCheckboxSelectionColDef.js +0 -33
  100. package/legacy/colDef/gridDateColDef.js +0 -62
  101. package/legacy/colDef/gridDateOperators.js +0 -115
  102. package/legacy/colDef/gridDefaultColumnTypes.js +0 -19
  103. package/legacy/colDef/gridNumericColDef.js +0 -19
  104. package/legacy/colDef/gridNumericOperators.js +0 -145
  105. package/legacy/colDef/gridSingleSelectColDef.js +0 -64
  106. package/legacy/colDef/gridSingleSelectOperators.js +0 -46
  107. package/legacy/colDef/gridStringColDef.js +0 -27
  108. package/legacy/colDef/gridStringOperators.js +0 -112
  109. package/legacy/colDef/index.js +0 -13
  110. package/legacy/components/GridApiContext.js +0 -5
  111. package/legacy/components/GridColumnHeaders.js +0 -94
  112. package/legacy/components/GridDetailPanels.js +0 -4
  113. package/legacy/components/GridFooter.js +0 -42
  114. package/legacy/components/GridHeader.js +0 -13
  115. package/legacy/components/GridHeaders.js +0 -53
  116. package/legacy/components/GridLoadingOverlay.js +0 -21
  117. package/legacy/components/GridNoResultsOverlay.js +0 -14
  118. package/legacy/components/GridNoRowsOverlay.js +0 -23
  119. package/legacy/components/GridPagination.js +0 -85
  120. package/legacy/components/GridPinnedRows.js +0 -4
  121. package/legacy/components/GridRow.js +0 -457
  122. package/legacy/components/GridRowCount.js +0 -63
  123. package/legacy/components/GridScrollbarFillerCell.js +0 -34
  124. package/legacy/components/GridSelectedRowCount.js +0 -66
  125. package/legacy/components/base/GridBody.js +0 -2
  126. package/legacy/components/base/GridFooterPlaceholder.js +0 -12
  127. package/legacy/components/base/GridOverlays.js +0 -122
  128. package/legacy/components/base/index.js +0 -3
  129. package/legacy/components/cell/GridActionsCell.js +0 -294
  130. package/legacy/components/cell/GridActionsCellItem.js +0 -69
  131. package/legacy/components/cell/GridBooleanCell.js +0 -121
  132. package/legacy/components/cell/GridCell.js +0 -350
  133. package/legacy/components/cell/GridEditBooleanCell.js +0 -174
  134. package/legacy/components/cell/GridEditDateCell.js +0 -230
  135. package/legacy/components/cell/GridEditInputCell.js +0 -198
  136. package/legacy/components/cell/GridEditSingleSelectCell.js +0 -231
  137. package/legacy/components/cell/GridSkeletonCell.js +0 -52
  138. package/legacy/components/cell/index.js +0 -9
  139. package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +0 -59
  140. package/legacy/components/columnHeaders/GridBaseColumnHeaders.js +0 -41
  141. package/legacy/components/columnHeaders/GridColumnGroupHeader.js +0 -132
  142. package/legacy/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -93
  143. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +0 -212
  144. package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +0 -71
  145. package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +0 -79
  146. package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +0 -84
  147. package/legacy/components/columnHeaders/GridColumnHeadersInner.js +0 -55
  148. package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +0 -107
  149. package/legacy/components/columnHeaders/GridIconButtonContainer.js +0 -41
  150. package/legacy/components/columnHeaders/index.js +0 -5
  151. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +0 -160
  152. package/legacy/components/columnSelection/GridHeaderCheckbox.js +0 -134
  153. package/legacy/components/columnSelection/index.js +0 -2
  154. package/legacy/components/columnsManagement/GridColumnsManagement.js +0 -307
  155. package/legacy/components/columnsManagement/index.js +0 -1
  156. package/legacy/components/columnsManagement/utils.js +0 -22
  157. package/legacy/components/containers/GridFooterContainer.js +0 -50
  158. package/legacy/components/containers/GridOverlay.js +0 -52
  159. package/legacy/components/containers/GridRoot.js +0 -79
  160. package/legacy/components/containers/GridRootStyles.js +0 -398
  161. package/legacy/components/containers/GridToolbarContainer.js +0 -59
  162. package/legacy/components/containers/index.js +0 -4
  163. package/legacy/components/index.js +0 -19
  164. package/legacy/components/menu/GridMenu.js +0 -132
  165. package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -61
  166. package/legacy/components/menu/columnMenu/GridColumnMenu.js +0 -81
  167. package/legacy/components/menu/columnMenu/GridColumnMenuContainer.js +0 -56
  168. package/legacy/components/menu/columnMenu/GridColumnMenuItemProps.js +0 -1
  169. package/legacy/components/menu/columnMenu/GridColumnMenuProps.js +0 -1
  170. package/legacy/components/menu/columnMenu/index.js +0 -9
  171. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +0 -21
  172. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +0 -41
  173. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +0 -60
  174. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +0 -41
  175. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +0 -80
  176. package/legacy/components/menu/columnMenu/menuItems/index.js +0 -5
  177. package/legacy/components/menu/index.js +0 -2
  178. package/legacy/components/panel/GridColumnsPanel.js +0 -22
  179. package/legacy/components/panel/GridPanel.js +0 -137
  180. package/legacy/components/panel/GridPanelContent.js +0 -49
  181. package/legacy/components/panel/GridPanelFooter.js +0 -50
  182. package/legacy/components/panel/GridPanelHeader.js +0 -48
  183. package/legacy/components/panel/GridPanelWrapper.js +0 -64
  184. package/legacy/components/panel/GridPreferencesPanel.js +0 -26
  185. package/legacy/components/panel/filterPanel/GridFilterForm.js +0 -528
  186. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +0 -115
  187. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +0 -121
  188. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -116
  189. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -102
  190. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +0 -146
  191. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +0 -104
  192. package/legacy/components/panel/filterPanel/GridFilterInputValueProps.js +0 -1
  193. package/legacy/components/panel/filterPanel/GridFilterPanel.js +0 -264
  194. package/legacy/components/panel/filterPanel/filterPanelUtils.js +0 -22
  195. package/legacy/components/panel/filterPanel/index.js +0 -9
  196. package/legacy/components/panel/index.js +0 -7
  197. package/legacy/components/reexportable.js +0 -1
  198. package/legacy/components/toolbar/GridToolbar.js +0 -64
  199. package/legacy/components/toolbar/GridToolbarColumnsButton.js +0 -68
  200. package/legacy/components/toolbar/GridToolbarDensitySelector.js +0 -142
  201. package/legacy/components/toolbar/GridToolbarExport.js +0 -80
  202. package/legacy/components/toolbar/GridToolbarExportContainer.js +0 -105
  203. package/legacy/components/toolbar/GridToolbarFilterButton.js +0 -136
  204. package/legacy/components/toolbar/GridToolbarQuickFilter.js +0 -164
  205. package/legacy/components/toolbar/index.js +0 -7
  206. package/legacy/components/virtualization/GridBottomContainer.js +0 -25
  207. package/legacy/components/virtualization/GridMainContainer.js +0 -20
  208. package/legacy/components/virtualization/GridTopContainer.js +0 -35
  209. package/legacy/components/virtualization/GridVirtualScrollbar.js +0 -129
  210. package/legacy/components/virtualization/GridVirtualScroller.js +0 -93
  211. package/legacy/components/virtualization/GridVirtualScrollerContent.js +0 -35
  212. package/legacy/components/virtualization/GridVirtualScrollerFiller.js +0 -70
  213. package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +0 -42
  214. package/legacy/constants/defaultGridSlotsComponents.js +0 -33
  215. package/legacy/constants/envConstants.js +0 -19
  216. package/legacy/constants/gridClasses.js +0 -5
  217. package/legacy/constants/gridDetailPanelToggleField.js +0 -2
  218. package/legacy/constants/index.js +0 -3
  219. package/legacy/constants/localeTextConstants.js +0 -158
  220. package/legacy/context/GridContextProvider.js +0 -21
  221. package/legacy/context/GridRootPropsContext.js +0 -6
  222. package/legacy/context/index.js +0 -1
  223. package/legacy/hooks/core/gridCoreSelector.js +0 -7
  224. package/legacy/hooks/core/index.js +0 -1
  225. package/legacy/hooks/core/pipeProcessing/gridPipeProcessingApi.js +0 -1
  226. package/legacy/hooks/core/pipeProcessing/index.js +0 -4
  227. package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +0 -114
  228. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +0 -26
  229. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -26
  230. package/legacy/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +0 -1
  231. package/legacy/hooks/core/strategyProcessing/index.js +0 -3
  232. package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +0 -18
  233. package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +0 -116
  234. package/legacy/hooks/core/useGridApiInitialization.js +0 -124
  235. package/legacy/hooks/core/useGridInitialization.js +0 -26
  236. package/legacy/hooks/core/useGridLocaleText.js +0 -12
  237. package/legacy/hooks/core/useGridLoggerFactory.js +0 -51
  238. package/legacy/hooks/core/useGridRefs.js +0 -13
  239. package/legacy/hooks/core/useGridStateInitialization.js +0 -106
  240. package/legacy/hooks/core/useGridTheme.js +0 -21
  241. package/legacy/hooks/features/clipboard/useGridClipboard.js +0 -92
  242. package/legacy/hooks/features/columnGrouping/gridColumnGroupsInterfaces.js +0 -1
  243. package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -24
  244. package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +0 -92
  245. package/legacy/hooks/features/columnGrouping/index.js +0 -2
  246. package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +0 -140
  247. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +0 -275
  248. package/legacy/hooks/features/columnMenu/columnMenuInterfaces.js +0 -1
  249. package/legacy/hooks/features/columnMenu/columnMenuSelector.js +0 -3
  250. package/legacy/hooks/features/columnMenu/index.js +0 -2
  251. package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +0 -108
  252. package/legacy/hooks/features/columnMenu/useGridColumnMenuSlots.js +0 -71
  253. package/legacy/hooks/features/columns/gridColumnsInterfaces.js +0 -9
  254. package/legacy/hooks/features/columns/gridColumnsSelector.js +0 -174
  255. package/legacy/hooks/features/columns/gridColumnsUtils.js +0 -338
  256. package/legacy/hooks/features/columns/index.js +0 -2
  257. package/legacy/hooks/features/columns/useGridColumnSpanning.js +0 -105
  258. package/legacy/hooks/features/columns/useGridColumns.js +0 -319
  259. package/legacy/hooks/features/density/densitySelector.js +0 -10
  260. package/legacy/hooks/features/density/densityState.js +0 -1
  261. package/legacy/hooks/features/density/index.js +0 -2
  262. package/legacy/hooks/features/density/useGridDensity.js +0 -48
  263. package/legacy/hooks/features/dimensions/gridDimensionsApi.js +0 -1
  264. package/legacy/hooks/features/dimensions/gridDimensionsSelectors.js +0 -3
  265. package/legacy/hooks/features/dimensions/index.js +0 -2
  266. package/legacy/hooks/features/dimensions/useGridDimensions.js +0 -302
  267. package/legacy/hooks/features/editing/gridEditingSelectors.js +0 -4
  268. package/legacy/hooks/features/editing/useGridCellEditing.js +0 -456
  269. package/legacy/hooks/features/editing/useGridEditing.js +0 -145
  270. package/legacy/hooks/features/editing/useGridRowEditing.js +0 -567
  271. package/legacy/hooks/features/events/useGridEvents.js +0 -23
  272. package/legacy/hooks/features/export/serializers/csvSerializer.js +0 -155
  273. package/legacy/hooks/features/export/useGridCsvExport.js +0 -75
  274. package/legacy/hooks/features/export/useGridPrintExport.js +0 -313
  275. package/legacy/hooks/features/export/utils.js +0 -49
  276. package/legacy/hooks/features/filter/gridFilterSelector.js +0 -165
  277. package/legacy/hooks/features/filter/gridFilterState.js +0 -20
  278. package/legacy/hooks/features/filter/gridFilterUtils.js +0 -330
  279. package/legacy/hooks/features/filter/index.js +0 -2
  280. package/legacy/hooks/features/filter/useGridFilter.js +0 -378
  281. package/legacy/hooks/features/focus/gridFocusState.js +0 -1
  282. package/legacy/hooks/features/focus/gridFocusStateSelector.js +0 -31
  283. package/legacy/hooks/features/focus/index.js +0 -2
  284. package/legacy/hooks/features/focus/useGridFocus.js +0 -408
  285. package/legacy/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +0 -10
  286. package/legacy/hooks/features/headerFiltering/index.js +0 -1
  287. package/legacy/hooks/features/headerFiltering/useGridHeaderFiltering.js +0 -93
  288. package/legacy/hooks/features/index.js +0 -16
  289. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +0 -565
  290. package/legacy/hooks/features/pagination/gridPaginationInterfaces.js +0 -1
  291. package/legacy/hooks/features/pagination/gridPaginationSelector.js +0 -115
  292. package/legacy/hooks/features/pagination/gridPaginationUtils.js +0 -31
  293. package/legacy/hooks/features/pagination/index.js +0 -2
  294. package/legacy/hooks/features/pagination/useGridPagination.js +0 -175
  295. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +0 -3
  296. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelState.js +0 -1
  297. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -6
  298. package/legacy/hooks/features/preferencesPanel/index.js +0 -3
  299. package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +0 -125
  300. package/legacy/hooks/features/rowSelection/gridRowSelectionSelector.js +0 -19
  301. package/legacy/hooks/features/rowSelection/index.js +0 -1
  302. package/legacy/hooks/features/rowSelection/useGridRowSelection.js +0 -419
  303. package/legacy/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +0 -45
  304. package/legacy/hooks/features/rowSelection/utils.js +0 -8
  305. package/legacy/hooks/features/rows/gridRowsInterfaces.js +0 -1
  306. package/legacy/hooks/features/rows/gridRowsMetaSelector.js +0 -3
  307. package/legacy/hooks/features/rows/gridRowsMetaState.js +0 -1
  308. package/legacy/hooks/features/rows/gridRowsSelector.js +0 -90
  309. package/legacy/hooks/features/rows/gridRowsUtils.js +0 -294
  310. package/legacy/hooks/features/rows/index.js +0 -4
  311. package/legacy/hooks/features/rows/useGridParamsApi.js +0 -142
  312. package/legacy/hooks/features/rows/useGridRows.js +0 -466
  313. package/legacy/hooks/features/rows/useGridRowsMeta.js +0 -236
  314. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +0 -82
  315. package/legacy/hooks/features/scroll/useGridScroll.js +0 -133
  316. package/legacy/hooks/features/sorting/gridSortingSelector.js +0 -56
  317. package/legacy/hooks/features/sorting/gridSortingState.js +0 -1
  318. package/legacy/hooks/features/sorting/gridSortingUtils.js +0 -154
  319. package/legacy/hooks/features/sorting/index.js +0 -2
  320. package/legacy/hooks/features/sorting/useGridSorting.js +0 -276
  321. package/legacy/hooks/features/statePersistence/gridStatePersistenceInterface.js +0 -1
  322. package/legacy/hooks/features/statePersistence/index.js +0 -1
  323. package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +0 -25
  324. package/legacy/hooks/features/virtualization/gridVirtualizationSelectors.js +0 -52
  325. package/legacy/hooks/features/virtualization/index.js +0 -2
  326. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -643
  327. package/legacy/hooks/features/virtualization/useGridVirtualization.js +0 -58
  328. package/legacy/hooks/index.js +0 -3
  329. package/legacy/hooks/utils/index.js +0 -9
  330. package/legacy/hooks/utils/useFirstRender.js +0 -8
  331. package/legacy/hooks/utils/useGridApiContext.js +0 -9
  332. package/legacy/hooks/utils/useGridApiEventHandler.js +0 -105
  333. package/legacy/hooks/utils/useGridApiMethod.js +0 -11
  334. package/legacy/hooks/utils/useGridApiRef.js +0 -7
  335. package/legacy/hooks/utils/useGridAriaAttributes.js +0 -25
  336. package/legacy/hooks/utils/useGridInitializeState.js +0 -8
  337. package/legacy/hooks/utils/useGridLogger.js +0 -10
  338. package/legacy/hooks/utils/useGridNativeEventListener.js +0 -32
  339. package/legacy/hooks/utils/useGridPrivateApiContext.js +0 -12
  340. package/legacy/hooks/utils/useGridRootProps.js +0 -9
  341. package/legacy/hooks/utils/useGridSelector.js +0 -54
  342. package/legacy/hooks/utils/useGridVisibleRows.js +0 -42
  343. package/legacy/hooks/utils/useLazyRef.js +0 -11
  344. package/legacy/hooks/utils/useOnMount.js +0 -7
  345. package/legacy/hooks/utils/useResizeObserver.js +0 -36
  346. package/legacy/hooks/utils/useRunOnce.js +0 -18
  347. package/legacy/hooks/utils/useTimeout.js +0 -38
  348. package/legacy/index.js +0 -38
  349. package/legacy/internals/index.js +0 -68
  350. package/legacy/internals/utils/computeSlots.js +0 -17
  351. package/legacy/internals/utils/index.js +0 -3
  352. package/legacy/internals/utils/propValidation.js +0 -21
  353. package/legacy/internals/utils/useProps.js +0 -32
  354. package/legacy/joy/icons.js +0 -432
  355. package/legacy/joy/index.js +0 -2
  356. package/legacy/joy/joySlots.js +0 -420
  357. package/legacy/locales/arSD.js +0 -160
  358. package/legacy/locales/beBY.js +0 -184
  359. package/legacy/locales/bgBG.js +0 -160
  360. package/legacy/locales/coreLocales.js +0 -62
  361. package/legacy/locales/csCZ.js +0 -181
  362. package/legacy/locales/daDK.js +0 -160
  363. package/legacy/locales/deDE.js +0 -160
  364. package/legacy/locales/elGR.js +0 -160
  365. package/legacy/locales/enUS.js +0 -4
  366. package/legacy/locales/esES.js +0 -160
  367. package/legacy/locales/faIR.js +0 -160
  368. package/legacy/locales/fiFI.js +0 -160
  369. package/legacy/locales/frFR.js +0 -160
  370. package/legacy/locales/heIL.js +0 -160
  371. package/legacy/locales/hrHR.js +0 -160
  372. package/legacy/locales/huHU.js +0 -160
  373. package/legacy/locales/index.js +0 -35
  374. package/legacy/locales/itIT.js +0 -160
  375. package/legacy/locales/jaJP.js +0 -160
  376. package/legacy/locales/koKR.js +0 -162
  377. package/legacy/locales/nbNO.js +0 -162
  378. package/legacy/locales/nlNL.js +0 -160
  379. package/legacy/locales/plPL.js +0 -163
  380. package/legacy/locales/ptBR.js +0 -160
  381. package/legacy/locales/ptPT.js +0 -160
  382. package/legacy/locales/roRO.js +0 -160
  383. package/legacy/locales/ruRU.js +0 -181
  384. package/legacy/locales/skSK.js +0 -181
  385. package/legacy/locales/svSE.js +0 -160
  386. package/legacy/locales/trTR.js +0 -161
  387. package/legacy/locales/ukUA.js +0 -182
  388. package/legacy/locales/urPK.js +0 -160
  389. package/legacy/locales/viVN.js +0 -160
  390. package/legacy/locales/zhCN.js +0 -160
  391. package/legacy/locales/zhHK.js +0 -160
  392. package/legacy/locales/zhTW.js +0 -160
  393. package/legacy/material/components/MUISelectOption.js +0 -14
  394. package/legacy/material/icons/GridColumnUnsortedIcon.js +0 -16
  395. package/legacy/material/icons/index.js +0 -89
  396. package/legacy/material/index.js +0 -69
  397. package/legacy/models/api/gridApiCommon.js +0 -1
  398. package/legacy/models/api/gridApiCommunity.js +0 -1
  399. package/legacy/models/api/gridCallbackDetails.js +0 -1
  400. package/legacy/models/api/gridColumnApi.js +0 -1
  401. package/legacy/models/api/gridColumnGroupingApi.js +0 -1
  402. package/legacy/models/api/gridColumnMenuApi.js +0 -1
  403. package/legacy/models/api/gridColumnSpanning.js +0 -1
  404. package/legacy/models/api/gridCoreApi.js +0 -1
  405. package/legacy/models/api/gridCsvExportApi.js +0 -1
  406. package/legacy/models/api/gridDensityApi.js +0 -1
  407. package/legacy/models/api/gridEditingApi.js +0 -1
  408. package/legacy/models/api/gridFilterApi.js +0 -1
  409. package/legacy/models/api/gridFocusApi.js +0 -1
  410. package/legacy/models/api/gridHeaderFilteringApi.js +0 -1
  411. package/legacy/models/api/gridLocaleTextApi.js +0 -1
  412. package/legacy/models/api/gridLoggerApi.js +0 -1
  413. package/legacy/models/api/gridParamsApi.js +0 -1
  414. package/legacy/models/api/gridPreferencesPanelApi.js +0 -1
  415. package/legacy/models/api/gridPrintExportApi.js +0 -1
  416. package/legacy/models/api/gridRowApi.js +0 -1
  417. package/legacy/models/api/gridRowSelectionApi.js +0 -1
  418. package/legacy/models/api/gridRowsMetaApi.js +0 -1
  419. package/legacy/models/api/gridScrollApi.js +0 -1
  420. package/legacy/models/api/gridSortApi.js +0 -1
  421. package/legacy/models/api/gridStateApi.js +0 -1
  422. package/legacy/models/api/gridVirtualizationApi.js +0 -1
  423. package/legacy/models/api/index.js +0 -16
  424. package/legacy/models/colDef/gridColDef.js +0 -1
  425. package/legacy/models/colDef/gridColType.js +0 -1
  426. package/legacy/models/colDef/gridColumnTypesRecord.js +0 -1
  427. package/legacy/models/colDef/index.js +0 -6
  428. package/legacy/models/controlStateItem.js +0 -1
  429. package/legacy/models/cursorCoordinates.js +0 -1
  430. package/legacy/models/elementSize.js +0 -1
  431. package/legacy/models/events/gridEventListener.js +0 -1
  432. package/legacy/models/events/gridEventLookup.js +0 -1
  433. package/legacy/models/events/gridEventPublisher.js +0 -1
  434. package/legacy/models/events/index.js +0 -3
  435. package/legacy/models/gridApiCaches.js +0 -1
  436. package/legacy/models/gridCell.js +0 -1
  437. package/legacy/models/gridCellClass.js +0 -1
  438. package/legacy/models/gridColumnGrouping.js +0 -11
  439. package/legacy/models/gridColumnHeaderClass.js +0 -1
  440. package/legacy/models/gridColumnSpanning.js +0 -1
  441. package/legacy/models/gridDensity.js +0 -1
  442. package/legacy/models/gridEditRowModel.js +0 -16
  443. package/legacy/models/gridExport.js +0 -1
  444. package/legacy/models/gridFeatureMode.js +0 -1
  445. package/legacy/models/gridFilterItem.js +0 -11
  446. package/legacy/models/gridFilterModel.js +0 -1
  447. package/legacy/models/gridFilterOperator.js +0 -1
  448. package/legacy/models/gridHeaderFilteringModel.js +0 -1
  449. package/legacy/models/gridIconSlotsComponent.js +0 -1
  450. package/legacy/models/gridPaginationProps.js +0 -1
  451. package/legacy/models/gridRenderContextProps.js +0 -1
  452. package/legacy/models/gridRowSelectionModel.js +0 -1
  453. package/legacy/models/gridRows.js +0 -1
  454. package/legacy/models/gridSlotsComponent.js +0 -1
  455. package/legacy/models/gridSlotsComponentsProps.js +0 -1
  456. package/legacy/models/gridSortModel.js +0 -1
  457. package/legacy/models/gridStateCommunity.js +0 -1
  458. package/legacy/models/index.js +0 -29
  459. package/legacy/models/logger.js +0 -1
  460. package/legacy/models/muiEvent.js +0 -1
  461. package/legacy/models/params/gridCellParams.js +0 -1
  462. package/legacy/models/params/gridColumnGroupHeaderParams.js +0 -1
  463. package/legacy/models/params/gridColumnHeaderParams.js +0 -1
  464. package/legacy/models/params/gridColumnOrderChangeParams.js +0 -1
  465. package/legacy/models/params/gridColumnResizeParams.js +0 -1
  466. package/legacy/models/params/gridEditCellParams.js +0 -27
  467. package/legacy/models/params/gridHeaderSelectionCheckboxParams.js +0 -1
  468. package/legacy/models/params/gridMenuParams.js +0 -1
  469. package/legacy/models/params/gridPreferencePanelParams.js +0 -1
  470. package/legacy/models/params/gridRowParams.js +0 -44
  471. package/legacy/models/params/gridRowSelectionCheckboxParams.js +0 -1
  472. package/legacy/models/params/gridScrollParams.js +0 -1
  473. package/legacy/models/params/gridValueOptionsParams.js +0 -1
  474. package/legacy/models/params/index.js +0 -13
  475. package/legacy/models/props/DataGridProps.js +0 -1
  476. package/legacy/themeAugmentation/index.js +0 -4
  477. package/legacy/themeAugmentation/overrides.js +0 -1
  478. package/legacy/themeAugmentation/props.js +0 -1
  479. package/legacy/utils/EventManager.js +0 -91
  480. package/legacy/utils/Store.js +0 -34
  481. package/legacy/utils/cleanupTracking/CleanupTracking.js +0 -1
  482. package/legacy/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +0 -29
  483. package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -52
  484. package/legacy/utils/createControllablePromise.js +0 -11
  485. package/legacy/utils/createSelector.js +0 -120
  486. package/legacy/utils/doesSupportPreventScroll.js +0 -13
  487. package/legacy/utils/domUtils.js +0 -49
  488. package/legacy/utils/exportAs.js +0 -40
  489. package/legacy/utils/fastMemo.js +0 -5
  490. package/legacy/utils/fastObjectShallowCompare.js +0 -32
  491. package/legacy/utils/getGridLocalization.js +0 -15
  492. package/legacy/utils/getPublicApiRef.js +0 -5
  493. package/legacy/utils/index.js +0 -1
  494. package/legacy/utils/keyboardUtils.js +0 -60
  495. package/legacy/utils/utils.js +0 -189
  496. package/legacy/utils/warning.js +0 -25
@@ -1,670 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
- import * as React from 'react';
4
- import PropTypes from 'prop-types';
5
- import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot } from '../components';
6
- import { GridContextProvider } from '../context/GridContextProvider';
7
- import { useDataGridComponent } from './useDataGridComponent';
8
- import { useDataGridProps } from './useDataGridProps';
9
- import { propValidatorsDataGrid, validateProps } from '../internals/utils/propValidation';
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
- var propValidators = [].concat(_toConsumableArray(propValidatorsDataGrid), [
13
- // Only validate in MIT version
14
- function (props) {
15
- return props.columns && props.columns.some(function (column) {
16
- return column.resizable;
17
- }) && ["MUI X: `column.resizable = true` is not a valid prop.", 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n') || undefined;
18
- }]);
19
- var DataGridRaw = /*#__PURE__*/React.forwardRef(function DataGrid(inProps, ref) {
20
- var props = useDataGridProps(inProps);
21
- var privateApiRef = useDataGridComponent(props.apiRef, props);
22
- validateProps(props, propValidators);
23
- return /*#__PURE__*/_jsx(GridContextProvider, {
24
- privateApiRef: privateApiRef,
25
- props: props,
26
- children: /*#__PURE__*/_jsxs(GridRoot, _extends({
27
- className: props.className,
28
- style: props.style,
29
- sx: props.sx,
30
- ref: ref
31
- }, props.forwardedProps, {
32
- children: [/*#__PURE__*/_jsx(GridHeader, {}), /*#__PURE__*/_jsx(GridBody, {}), /*#__PURE__*/_jsx(GridFooterPlaceholder, {})]
33
- }))
34
- });
35
- });
36
- /**
37
- * Demos:
38
- * - [DataGrid](https://mui.com/x/react-data-grid/demo/)
39
- *
40
- * API:
41
- * - [DataGrid API](https://mui.com/x/api/data-grid/data-grid/)
42
- */
43
- export var DataGrid = /*#__PURE__*/React.memo(DataGridRaw);
44
- DataGridRaw.propTypes = {
45
- // ----------------------------- Warning --------------------------------
46
- // | These PropTypes are generated from the TypeScript type definitions |
47
- // | To update them edit the TypeScript types and run "yarn proptypes" |
48
- // ----------------------------------------------------------------------
49
- /**
50
- * The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
51
- */
52
- apiRef: PropTypes.shape({
53
- current: PropTypes.object.isRequired
54
- }),
55
- /**
56
- * The label of the Data Grid.
57
- */
58
- 'aria-label': PropTypes.string,
59
- /**
60
- * The id of the element containing a label for the Data Grid.
61
- */
62
- 'aria-labelledby': PropTypes.string,
63
- /**
64
- * If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
65
- * @default false
66
- */
67
- autoHeight: PropTypes.bool,
68
- /**
69
- * If `true`, the pageSize is calculated according to the container size and the max number of rows to avoid rendering a vertical scroll bar.
70
- * @default false
71
- */
72
- autoPageSize: PropTypes.bool,
73
- /**
74
- * Controls the modes of the cells.
75
- */
76
- cellModesModel: PropTypes.object,
77
- /**
78
- * If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
79
- * @default false
80
- */
81
- checkboxSelection: PropTypes.bool,
82
- /**
83
- * Override or extend the styles applied to the component.
84
- */
85
- classes: PropTypes.object,
86
- /**
87
- * The character used to separate cell values when copying to the clipboard.
88
- * @default '\t'
89
- */
90
- clipboardCopyCellDelimiter: PropTypes.string,
91
- /**
92
- * Number of extra columns to be rendered before/after the visible slice.
93
- * @default 3
94
- */
95
- columnBuffer: PropTypes.number,
96
- columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
97
- /**
98
- * Sets the height in pixel of the column headers in the Data Grid.
99
- * @default 56
100
- */
101
- columnHeaderHeight: PropTypes.number,
102
- /**
103
- * Set of columns of type [[GridColDef]][].
104
- */
105
- columns: PropTypes.arrayOf(PropTypes.object).isRequired,
106
- /**
107
- * Number of rows from the `columnBuffer` that can be visible before a new slice is rendered.
108
- * @default 3
109
- */
110
- columnThreshold: PropTypes.number,
111
- /**
112
- * Set the column visibility model of the Data Grid.
113
- * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
114
- */
115
- columnVisibilityModel: PropTypes.object,
116
- /**
117
- * Set the density of the Data Grid.
118
- * @default "standard"
119
- */
120
- density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
121
- /**
122
- * If `true`, column filters are disabled.
123
- * @default false
124
- */
125
- disableColumnFilter: PropTypes.bool,
126
- /**
127
- * If `true`, the column menu is disabled.
128
- * @default false
129
- */
130
- disableColumnMenu: PropTypes.bool,
131
- /**
132
- * If `true`, hiding/showing columns is disabled.
133
- * @default false
134
- */
135
- disableColumnSelector: PropTypes.bool,
136
- /**
137
- * If `true`, the column sorting feature will be disabled.
138
- * @default false
139
- */
140
- disableColumnSorting: PropTypes.bool,
141
- /**
142
- * If `true`, the density selector is disabled.
143
- * @default false
144
- */
145
- disableDensitySelector: PropTypes.bool,
146
- /**
147
- * If `true`, `eval()` is not used for performance optimization.
148
- * @default false
149
- */
150
- disableEval: PropTypes.bool,
151
- /**
152
- * If `true`, multiple selection using the Ctrl/CMD or Shift key is disabled.
153
- * The MIT DataGrid will ignore this prop, unless `checkboxSelection` is enabled.
154
- * @default false (`!props.checkboxSelection` for MIT Data Grid)
155
- */
156
- disableMultipleRowSelection: PropTypes.bool,
157
- /**
158
- * If `true`, the selection on click on a row or cell is disabled.
159
- * @default false
160
- */
161
- disableRowSelectionOnClick: PropTypes.bool,
162
- /**
163
- * If `true`, the virtualization is disabled.
164
- * @default false
165
- */
166
- disableVirtualization: PropTypes.bool,
167
- /**
168
- * Controls whether to use the cell or row editing.
169
- * @default "cell"
170
- */
171
- editMode: PropTypes.oneOf(['cell', 'row']),
172
- /**
173
- * Unstable features, breaking changes might be introduced.
174
- * For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
175
- */
176
- experimentalFeatures: PropTypes.shape({
177
- warnIfFocusStateIsNotSynced: PropTypes.bool
178
- }),
179
- /**
180
- * The milliseconds delay to wait after a keystroke before triggering filtering.
181
- * @default 150
182
- */
183
- filterDebounceMs: PropTypes.number,
184
- /**
185
- * Filtering can be processed on the server or client-side.
186
- * Set it to 'server' if you would like to handle filtering on the server-side.
187
- * @default "client"
188
- */
189
- filterMode: PropTypes.oneOf(['client', 'server']),
190
- /**
191
- * Set the filter model of the Data Grid.
192
- */
193
- filterModel: PropTypes.shape({
194
- items: PropTypes.arrayOf(PropTypes.shape({
195
- field: PropTypes.string.isRequired,
196
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
197
- operator: PropTypes.string.isRequired,
198
- value: PropTypes.any
199
- })).isRequired,
200
- logicOperator: PropTypes.oneOf(['and', 'or']),
201
- quickFilterExcludeHiddenColumns: PropTypes.bool,
202
- quickFilterLogicOperator: PropTypes.oneOf(['and', 'or']),
203
- quickFilterValues: PropTypes.array
204
- }),
205
- /**
206
- * Forwarded props for the Data Grid root element.
207
- * @ignore - do not document.
208
- */
209
- forwardedProps: PropTypes.object,
210
- /**
211
- * Function that applies CSS classes dynamically on cells.
212
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
213
- * @returns {string} The CSS class to apply to the cell.
214
- */
215
- getCellClassName: PropTypes.func,
216
- /**
217
- * Function that returns the element to render in row detail.
218
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
219
- * @returns {React.JSX.Element} The row detail element.
220
- */
221
- getDetailPanelContent: PropTypes.func,
222
- /**
223
- * Function that returns the estimated height for a row.
224
- * Only works if dynamic row height is used.
225
- * Once the row height is measured this value is discarded.
226
- * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].
227
- * @returns {number | null} The estimated row height value. If `null` or `undefined` then the default row height, based on the density, is applied.
228
- */
229
- getEstimatedRowHeight: PropTypes.func,
230
- /**
231
- * Function that applies CSS classes dynamically on rows.
232
- * @param {GridRowClassNameParams} params With all properties from [[GridRowClassNameParams]].
233
- * @returns {string} The CSS class to apply to the row.
234
- */
235
- getRowClassName: PropTypes.func,
236
- /**
237
- * Function that sets the row height per row.
238
- * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].
239
- * @returns {GridRowHeightReturnValue} The row height value. If `null` or `undefined` then the default row height is applied. If "auto" then the row height is calculated based on the content.
240
- */
241
- getRowHeight: PropTypes.func,
242
- /**
243
- * Return the id of a given [[GridRowModel]].
244
- */
245
- getRowId: PropTypes.func,
246
- /**
247
- * Function that allows to specify the spacing between rows.
248
- * @param {GridRowSpacingParams} params With all properties from [[GridRowSpacingParams]].
249
- * @returns {GridRowSpacing} The row spacing values.
250
- */
251
- getRowSpacing: PropTypes.func,
252
- /**
253
- * If `true`, the footer component is hidden.
254
- * @default false
255
- */
256
- hideFooter: PropTypes.bool,
257
- /**
258
- * If `true`, the pagination component in the footer is hidden.
259
- * @default false
260
- */
261
- hideFooterPagination: PropTypes.bool,
262
- /**
263
- * If `true`, the selected row count in the footer is hidden.
264
- * @default false
265
- */
266
- hideFooterSelectedRowCount: PropTypes.bool,
267
- /**
268
- * If `true`, the diacritics (accents) are ignored when filtering or quick filtering.
269
- * E.g. when filter value is `cafe`, the rows with `café` will be visible.
270
- * @default false
271
- */
272
- ignoreDiacritics: PropTypes.bool,
273
- /**
274
- * If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
275
- * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
276
- * @default false
277
- */
278
- ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({
279
- clipboardExport: PropTypes.bool,
280
- csvExport: PropTypes.bool
281
- }), PropTypes.bool]),
282
- /**
283
- * The initial state of the DataGrid.
284
- * The data in it will be set in the state on initialization but will not be controlled.
285
- * If one of the data in `initialState` is also being controlled, then the control state wins.
286
- */
287
- initialState: PropTypes.object,
288
- /**
289
- * Callback fired when a cell is rendered, returns true if the cell is editable.
290
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
291
- * @returns {boolean} A boolean indicating if the cell is editable.
292
- */
293
- isCellEditable: PropTypes.func,
294
- /**
295
- * Determines if a row can be selected.
296
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
297
- * @returns {boolean} A boolean indicating if the cell is selectable.
298
- */
299
- isRowSelectable: PropTypes.func,
300
- /**
301
- * If `true`, the selection model will retain selected rows that do not exist.
302
- * Useful when using server side pagination and row selections need to be retained
303
- * when changing pages.
304
- * @default false
305
- */
306
- keepNonExistentRowsSelected: PropTypes.bool,
307
- /**
308
- * If `true`, a loading overlay is displayed.
309
- */
310
- loading: PropTypes.bool,
311
- /**
312
- * Set the locale text of the Data Grid.
313
- * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
314
- */
315
- localeText: PropTypes.object,
316
- /**
317
- * Pass a custom logger in the components that implements the [[Logger]] interface.
318
- * @default console
319
- */
320
- logger: PropTypes.shape({
321
- debug: PropTypes.func.isRequired,
322
- error: PropTypes.func.isRequired,
323
- info: PropTypes.func.isRequired,
324
- warn: PropTypes.func.isRequired
325
- }),
326
- /**
327
- * Allows to pass the logging level or false to turn off logging.
328
- * @default "error" ("warn" in dev mode)
329
- */
330
- logLevel: PropTypes.oneOf(['debug', 'error', 'info', 'warn', false]),
331
- /**
332
- * Nonce of the inline styles for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute).
333
- */
334
- nonce: PropTypes.string,
335
- /**
336
- * Callback fired when any cell is clicked.
337
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
338
- * @param {MuiEvent<React.MouseEvent>} event The event object.
339
- * @param {GridCallbackDetails} details Additional details for this callback.
340
- */
341
- onCellClick: PropTypes.func,
342
- /**
343
- * Callback fired when a double click event comes from a cell element.
344
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
345
- * @param {MuiEvent<React.MouseEvent>} event The event object.
346
- * @param {GridCallbackDetails} details Additional details for this callback.
347
- */
348
- onCellDoubleClick: PropTypes.func,
349
- /**
350
- * Callback fired when the cell turns to edit mode.
351
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
352
- * @param {MuiEvent<React.KeyboardEvent | React.MouseEvent>} event The event that caused this prop to be called.
353
- */
354
- onCellEditStart: PropTypes.func,
355
- /**
356
- * Callback fired when the cell turns to view mode.
357
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
358
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
359
- */
360
- onCellEditStop: PropTypes.func,
361
- /**
362
- * Callback fired when a keydown event comes from a cell element.
363
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
364
- * @param {MuiEvent<React.KeyboardEvent>} event The event object.
365
- * @param {GridCallbackDetails} details Additional details for this callback.
366
- */
367
- onCellKeyDown: PropTypes.func,
368
- /**
369
- * Callback fired when the `cellModesModel` prop changes.
370
- * @param {GridCellModesModel} cellModesModel Object containing which cells are in "edit" mode.
371
- * @param {GridCallbackDetails} details Additional details for this callback.
372
- */
373
- onCellModesModelChange: PropTypes.func,
374
- /**
375
- * Callback called when the data is copied to the clipboard.
376
- * @param {string} data The data copied to the clipboard.
377
- */
378
- onClipboardCopy: PropTypes.func,
379
- /**
380
- * Callback fired when a click event comes from a column header element.
381
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
382
- * @param {MuiEvent<React.MouseEvent>} event The event object.
383
- * @param {GridCallbackDetails} details Additional details for this callback.
384
- */
385
- onColumnHeaderClick: PropTypes.func,
386
- /**
387
- * Callback fired when a double click event comes from a column header element.
388
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
389
- * @param {MuiEvent<React.MouseEvent>} event The event object.
390
- * @param {GridCallbackDetails} details Additional details for this callback.
391
- */
392
- onColumnHeaderDoubleClick: PropTypes.func,
393
- /**
394
- * Callback fired when a mouse enter event comes from a column header element.
395
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
396
- * @param {MuiEvent<React.MouseEvent>} event The event object.
397
- * @param {GridCallbackDetails} details Additional details for this callback.
398
- */
399
- onColumnHeaderEnter: PropTypes.func,
400
- /**
401
- * Callback fired when a mouse leave event comes from a column header element.
402
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
403
- * @param {MuiEvent<React.MouseEvent>} event The event object.
404
- * @param {GridCallbackDetails} details Additional details for this callback.
405
- */
406
- onColumnHeaderLeave: PropTypes.func,
407
- /**
408
- * Callback fired when a mouseout event comes from a column header element.
409
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
410
- * @param {MuiEvent<React.MouseEvent>} event The event object.
411
- * @param {GridCallbackDetails} details Additional details for this callback.
412
- */
413
- onColumnHeaderOut: PropTypes.func,
414
- /**
415
- * Callback fired when a mouseover event comes from a column header element.
416
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
417
- * @param {MuiEvent<React.MouseEvent>} event The event object.
418
- * @param {GridCallbackDetails} details Additional details for this callback.
419
- */
420
- onColumnHeaderOver: PropTypes.func,
421
- /**
422
- * Callback fired when a column is reordered.
423
- * @param {GridColumnOrderChangeParams} params With all properties from [[GridColumnOrderChangeParams]].
424
- * @param {MuiEvent<{}>} event The event object.
425
- * @param {GridCallbackDetails} details Additional details for this callback.
426
- */
427
- onColumnOrderChange: PropTypes.func,
428
- /**
429
- * Callback fired when the column visibility model changes.
430
- * @param {GridColumnVisibilityModel} model The new model.
431
- * @param {GridCallbackDetails} details Additional details for this callback.
432
- */
433
- onColumnVisibilityModelChange: PropTypes.func,
434
- /**
435
- * Callback fired when the Filter model changes before the filters are applied.
436
- * @param {GridFilterModel} model With all properties from [[GridFilterModel]].
437
- * @param {GridCallbackDetails} details Additional details for this callback.
438
- */
439
- onFilterModelChange: PropTypes.func,
440
- /**
441
- * Callback fired when the menu is closed.
442
- * @param {GridMenuParams} params With all properties from [[GridMenuParams]].
443
- * @param {MuiEvent<{}>} event The event object.
444
- * @param {GridCallbackDetails} details Additional details for this callback.
445
- */
446
- onMenuClose: PropTypes.func,
447
- /**
448
- * Callback fired when the menu is opened.
449
- * @param {GridMenuParams} params With all properties from [[GridMenuParams]].
450
- * @param {MuiEvent<{}>} event The event object.
451
- * @param {GridCallbackDetails} details Additional details for this callback.
452
- */
453
- onMenuOpen: PropTypes.func,
454
- /**
455
- * Callback fired when the pagination model has changed.
456
- * @param {GridPaginationModel} model Updated pagination model.
457
- * @param {GridCallbackDetails} details Additional details for this callback.
458
- */
459
- onPaginationModelChange: PropTypes.func,
460
- /**
461
- * Callback fired when the preferences panel is closed.
462
- * @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
463
- * @param {MuiEvent<{}>} event The event object.
464
- * @param {GridCallbackDetails} details Additional details for this callback.
465
- */
466
- onPreferencePanelClose: PropTypes.func,
467
- /**
468
- * Callback fired when the preferences panel is opened.
469
- * @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
470
- * @param {MuiEvent<{}>} event The event object.
471
- * @param {GridCallbackDetails} details Additional details for this callback.
472
- */
473
- onPreferencePanelOpen: PropTypes.func,
474
- /**
475
- * Callback called when `processRowUpdate` throws an error or rejects.
476
- * @param {any} error The error thrown.
477
- */
478
- onProcessRowUpdateError: PropTypes.func,
479
- /**
480
- * Callback fired when the Data Grid is resized.
481
- * @param {ElementSize} containerSize With all properties from [[ElementSize]].
482
- * @param {MuiEvent<{}>} event The event object.
483
- * @param {GridCallbackDetails} details Additional details for this callback.
484
- */
485
- onResize: PropTypes.func,
486
- /**
487
- * Callback fired when a row is clicked.
488
- * Not called if the target clicked is an interactive element added by the built-in columns.
489
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
490
- * @param {MuiEvent<React.MouseEvent>} event The event object.
491
- * @param {GridCallbackDetails} details Additional details for this callback.
492
- */
493
- onRowClick: PropTypes.func,
494
- /**
495
- * Callback fired when a double click event comes from a row container element.
496
- * @param {GridRowParams} params With all properties from [[RowParams]].
497
- * @param {MuiEvent<React.MouseEvent>} event The event object.
498
- * @param {GridCallbackDetails} details Additional details for this callback.
499
- */
500
- onRowDoubleClick: PropTypes.func,
501
- /**
502
- * Callback fired when the row changes are committed.
503
- * @param {GridRowId} id The row id.
504
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
505
- */
506
- onRowEditCommit: PropTypes.func,
507
- /**
508
- * Callback fired when the row turns to edit mode.
509
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
510
- * @param {MuiEvent<React.KeyboardEvent | React.MouseEvent>} event The event that caused this prop to be called.
511
- */
512
- onRowEditStart: PropTypes.func,
513
- /**
514
- * Callback fired when the row turns to view mode.
515
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
516
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
517
- */
518
- onRowEditStop: PropTypes.func,
519
- /**
520
- * Callback fired when the `rowModesModel` prop changes.
521
- * @param {GridRowModesModel} rowModesModel Object containing which rows are in "edit" mode.
522
- * @param {GridCallbackDetails} details Additional details for this callback.
523
- */
524
- onRowModesModelChange: PropTypes.func,
525
- /**
526
- * Callback fired when the selection state of one or multiple rows changes.
527
- * @param {GridRowSelectionModel} rowSelectionModel With all the row ids [[GridSelectionModel]].
528
- * @param {GridCallbackDetails} details Additional details for this callback.
529
- */
530
- onRowSelectionModelChange: PropTypes.func,
531
- /**
532
- * Callback fired when the sort model changes before a column is sorted.
533
- * @param {GridSortModel} model With all properties from [[GridSortModel]].
534
- * @param {GridCallbackDetails} details Additional details for this callback.
535
- */
536
- onSortModelChange: PropTypes.func,
537
- /**
538
- * Callback fired when the state of the Data Grid is updated.
539
- * @param {GridState} state The new state.
540
- * @param {MuiEvent<{}>} event The event object.
541
- * @param {GridCallbackDetails} details Additional details for this callback.
542
- * @ignore - do not document.
543
- */
544
- onStateChange: PropTypes.func,
545
- /**
546
- * Select the pageSize dynamically using the component UI.
547
- * @default [25, 50, 100]
548
- */
549
- pageSizeOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
550
- label: PropTypes.string.isRequired,
551
- value: PropTypes.number.isRequired
552
- })]).isRequired),
553
- pagination: PropTypes.oneOf([true]),
554
- /**
555
- * Pagination can be processed on the server or client-side.
556
- * Set it to 'client' if you would like to handle the pagination on the client-side.
557
- * Set it to 'server' if you would like to handle the pagination on the server-side.
558
- * @default "client"
559
- */
560
- paginationMode: PropTypes.oneOf(['client', 'server']),
561
- /**
562
- * The pagination model of type [[GridPaginationModel]] which refers to current `page` and `pageSize`.
563
- */
564
- paginationModel: PropTypes.shape({
565
- page: PropTypes.number.isRequired,
566
- pageSize: PropTypes.number.isRequired
567
- }),
568
- /**
569
- * Callback called before updating a row with new values in the row and cell editing.
570
- * @template R
571
- * @param {R} newRow Row object with the new values.
572
- * @param {R} oldRow Row object with the old values.
573
- * @returns {Promise<R> | R} The final values to update the row.
574
- */
575
- processRowUpdate: PropTypes.func,
576
- /**
577
- * Number of extra rows to be rendered before/after the visible slice.
578
- * @default 3
579
- */
580
- rowBuffer: PropTypes.number,
581
- /**
582
- * Set the total number of rows, if it is different from the length of the value `rows` prop.
583
- * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
584
- */
585
- rowCount: PropTypes.number,
586
- /**
587
- * Sets the height in pixel of a row in the Data Grid.
588
- * @default 52
589
- */
590
- rowHeight: PropTypes.number,
591
- /**
592
- * Controls the modes of the rows.
593
- */
594
- rowModesModel: PropTypes.object,
595
- /**
596
- * The milliseconds delay to wait after measuring the row height before recalculating row positions.
597
- * Setting it to a lower value could be useful when using dynamic row height,
598
- * but might reduce performance when displaying a large number of rows.
599
- * @default 166
600
- */
601
- rowPositionsDebounceMs: PropTypes.number,
602
- /**
603
- * Set of rows of type [[GridRowsProp]].
604
- */
605
- rows: PropTypes.arrayOf(PropTypes.object).isRequired,
606
- /**
607
- * If `false`, the row selection mode is disabled.
608
- * @default true
609
- */
610
- rowSelection: PropTypes.bool,
611
- /**
612
- * Sets the row selection model of the Data Grid.
613
- */
614
- rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
615
- /**
616
- * Sets the type of space between rows added by `getRowSpacing`.
617
- * @default "margin"
618
- */
619
- rowSpacingType: PropTypes.oneOf(['border', 'margin']),
620
- /**
621
- * Number of rows from the `rowBuffer` that can be visible before a new slice is rendered.
622
- * @default 3
623
- */
624
- rowThreshold: PropTypes.number,
625
- /**
626
- * Override the height/width of the Data Grid inner scrollbar.
627
- */
628
- scrollbarSize: PropTypes.number,
629
- /**
630
- * If `true`, the vertical borders of the cells are displayed.
631
- * @default false
632
- */
633
- showCellVerticalBorder: PropTypes.bool,
634
- /**
635
- * If `true`, the right border of the column headers are displayed.
636
- * @default false
637
- */
638
- showColumnVerticalBorder: PropTypes.bool,
639
- /**
640
- * Overridable components props dynamically passed to the component at rendering.
641
- */
642
- slotProps: PropTypes.object,
643
- /**
644
- * Overridable components.
645
- */
646
- slots: PropTypes.object,
647
- /**
648
- * Sorting can be processed on the server or client-side.
649
- * Set it to 'client' if you would like to handle sorting on the client-side.
650
- * Set it to 'server' if you would like to handle sorting on the server-side.
651
- * @default "client"
652
- */
653
- sortingMode: PropTypes.oneOf(['client', 'server']),
654
- /**
655
- * The order of the sorting sequence.
656
- * @default ['asc', 'desc', null]
657
- */
658
- sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
659
- /**
660
- * Set the sort model of the Data Grid.
661
- */
662
- sortModel: PropTypes.arrayOf(PropTypes.shape({
663
- field: PropTypes.string.isRequired,
664
- sort: PropTypes.oneOf(['asc', 'desc'])
665
- })),
666
- /**
667
- * The system prop that allows defining system overrides as well as additional CSS styles.
668
- */
669
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
670
- };
@@ -1,2 +0,0 @@
1
- export * from './DataGrid';
2
- export { DATA_GRID_PROPS_DEFAULT_VALUES } from './useDataGridProps';