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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/CHANGELOG.md +226 -15
  2. package/colDef/gridActionsColDef.js +1 -0
  3. package/colDef/gridBooleanColDef.js +1 -0
  4. package/colDef/gridCheckboxSelectionColDef.js +1 -0
  5. package/components/GridScrollbarFillerCell.js +6 -21
  6. package/components/cell/GridCell.js +10 -12
  7. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
  8. package/components/containers/GridRootStyles.js +50 -19
  9. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
  10. package/constants/gridClasses.d.ts +24 -8
  11. package/constants/gridClasses.js +1 -1
  12. package/hooks/features/clipboard/useGridClipboard.js +1 -1
  13. package/hooks/features/editing/useGridCellEditing.js +3 -4
  14. package/hooks/features/editing/useGridRowEditing.js +3 -4
  15. package/hooks/features/sorting/useGridSorting.js +1 -2
  16. package/index.js +1 -1
  17. package/internals/index.d.ts +1 -1
  18. package/internals/index.js +1 -1
  19. package/models/colDef/gridColDef.d.ts +6 -0
  20. package/modern/colDef/gridActionsColDef.js +1 -0
  21. package/modern/colDef/gridBooleanColDef.js +1 -0
  22. package/modern/colDef/gridCheckboxSelectionColDef.js +1 -0
  23. package/modern/components/GridScrollbarFillerCell.js +6 -21
  24. package/modern/components/cell/GridCell.js +10 -12
  25. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
  26. package/modern/components/containers/GridRootStyles.js +50 -19
  27. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
  28. package/modern/constants/gridClasses.js +1 -1
  29. package/modern/hooks/features/clipboard/useGridClipboard.js +1 -1
  30. package/modern/hooks/features/editing/useGridCellEditing.js +3 -4
  31. package/modern/hooks/features/editing/useGridRowEditing.js +3 -4
  32. package/modern/hooks/features/sorting/useGridSorting.js +1 -2
  33. package/modern/index.js +1 -1
  34. package/modern/internals/index.js +1 -1
  35. package/modern/utils/keyboardUtils.js +20 -11
  36. package/node/colDef/gridActionsColDef.js +1 -0
  37. package/node/colDef/gridBooleanColDef.js +1 -0
  38. package/node/colDef/gridCheckboxSelectionColDef.js +1 -0
  39. package/node/components/GridScrollbarFillerCell.js +5 -20
  40. package/node/components/cell/GridCell.js +10 -12
  41. package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -2
  42. package/node/components/containers/GridRootStyles.js +50 -19
  43. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +8 -2
  44. package/node/constants/gridClasses.js +1 -1
  45. package/node/hooks/features/clipboard/useGridClipboard.js +1 -1
  46. package/node/hooks/features/editing/useGridCellEditing.js +2 -3
  47. package/node/hooks/features/editing/useGridRowEditing.js +2 -3
  48. package/node/hooks/features/sorting/useGridSorting.js +1 -2
  49. package/node/index.js +1 -1
  50. package/node/internals/index.js +7 -0
  51. package/node/utils/keyboardUtils.js +25 -20
  52. package/package.json +1 -1
  53. package/utils/keyboardUtils.d.ts +7 -6
  54. package/utils/keyboardUtils.js +20 -11
  55. package/legacy/DataGrid/DataGrid.js +0 -664
  56. package/legacy/DataGrid/index.js +0 -2
  57. package/legacy/DataGrid/useDataGridComponent.js +0 -81
  58. package/legacy/DataGrid/useDataGridProps.js +0 -98
  59. package/legacy/colDef/gridActionsColDef.js +0 -18
  60. package/legacy/colDef/gridBooleanColDef.js +0 -42
  61. package/legacy/colDef/gridBooleanOperators.js +0 -16
  62. package/legacy/colDef/gridCheckboxSelectionColDef.js +0 -33
  63. package/legacy/colDef/gridDateColDef.js +0 -62
  64. package/legacy/colDef/gridDateOperators.js +0 -115
  65. package/legacy/colDef/gridDefaultColumnTypes.js +0 -19
  66. package/legacy/colDef/gridNumericColDef.js +0 -19
  67. package/legacy/colDef/gridNumericOperators.js +0 -145
  68. package/legacy/colDef/gridSingleSelectColDef.js +0 -64
  69. package/legacy/colDef/gridSingleSelectOperators.js +0 -46
  70. package/legacy/colDef/gridStringColDef.js +0 -27
  71. package/legacy/colDef/gridStringOperators.js +0 -112
  72. package/legacy/colDef/index.js +0 -13
  73. package/legacy/components/GridApiContext.js +0 -5
  74. package/legacy/components/GridColumnHeaders.js +0 -94
  75. package/legacy/components/GridDetailPanels.js +0 -4
  76. package/legacy/components/GridFooter.js +0 -42
  77. package/legacy/components/GridHeader.js +0 -13
  78. package/legacy/components/GridHeaders.js +0 -53
  79. package/legacy/components/GridLoadingOverlay.js +0 -21
  80. package/legacy/components/GridNoResultsOverlay.js +0 -14
  81. package/legacy/components/GridNoRowsOverlay.js +0 -23
  82. package/legacy/components/GridPagination.js +0 -85
  83. package/legacy/components/GridPinnedRows.js +0 -4
  84. package/legacy/components/GridRow.js +0 -465
  85. package/legacy/components/GridRowCount.js +0 -63
  86. package/legacy/components/GridScrollbarFillerCell.js +0 -34
  87. package/legacy/components/GridSelectedRowCount.js +0 -66
  88. package/legacy/components/base/GridBody.js +0 -2
  89. package/legacy/components/base/GridFooterPlaceholder.js +0 -12
  90. package/legacy/components/base/GridOverlays.js +0 -122
  91. package/legacy/components/base/index.js +0 -3
  92. package/legacy/components/cell/GridActionsCell.js +0 -294
  93. package/legacy/components/cell/GridActionsCellItem.js +0 -69
  94. package/legacy/components/cell/GridBooleanCell.js +0 -121
  95. package/legacy/components/cell/GridCell.js +0 -350
  96. package/legacy/components/cell/GridEditBooleanCell.js +0 -174
  97. package/legacy/components/cell/GridEditDateCell.js +0 -230
  98. package/legacy/components/cell/GridEditInputCell.js +0 -198
  99. package/legacy/components/cell/GridEditSingleSelectCell.js +0 -231
  100. package/legacy/components/cell/GridSkeletonCell.js +0 -52
  101. package/legacy/components/cell/index.js +0 -9
  102. package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +0 -59
  103. package/legacy/components/columnHeaders/GridBaseColumnHeaders.js +0 -41
  104. package/legacy/components/columnHeaders/GridColumnGroupHeader.js +0 -132
  105. package/legacy/components/columnHeaders/GridColumnHeaderFilterIconButton.js +0 -93
  106. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +0 -212
  107. package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +0 -71
  108. package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +0 -79
  109. package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +0 -84
  110. package/legacy/components/columnHeaders/GridColumnHeadersInner.js +0 -55
  111. package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +0 -107
  112. package/legacy/components/columnHeaders/GridIconButtonContainer.js +0 -41
  113. package/legacy/components/columnHeaders/index.js +0 -5
  114. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +0 -160
  115. package/legacy/components/columnSelection/GridHeaderCheckbox.js +0 -134
  116. package/legacy/components/columnSelection/index.js +0 -2
  117. package/legacy/components/columnsManagement/GridColumnsManagement.js +0 -307
  118. package/legacy/components/columnsManagement/index.js +0 -1
  119. package/legacy/components/columnsManagement/utils.js +0 -22
  120. package/legacy/components/containers/GridFooterContainer.js +0 -50
  121. package/legacy/components/containers/GridOverlay.js +0 -52
  122. package/legacy/components/containers/GridRoot.js +0 -79
  123. package/legacy/components/containers/GridRootStyles.js +0 -395
  124. package/legacy/components/containers/GridToolbarContainer.js +0 -59
  125. package/legacy/components/containers/index.js +0 -4
  126. package/legacy/components/index.js +0 -19
  127. package/legacy/components/menu/GridMenu.js +0 -132
  128. package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -61
  129. package/legacy/components/menu/columnMenu/GridColumnMenu.js +0 -81
  130. package/legacy/components/menu/columnMenu/GridColumnMenuContainer.js +0 -56
  131. package/legacy/components/menu/columnMenu/GridColumnMenuItemProps.js +0 -1
  132. package/legacy/components/menu/columnMenu/GridColumnMenuProps.js +0 -1
  133. package/legacy/components/menu/columnMenu/index.js +0 -9
  134. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +0 -21
  135. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +0 -41
  136. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +0 -60
  137. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +0 -41
  138. package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +0 -80
  139. package/legacy/components/menu/columnMenu/menuItems/index.js +0 -5
  140. package/legacy/components/menu/index.js +0 -2
  141. package/legacy/components/panel/GridColumnsPanel.js +0 -22
  142. package/legacy/components/panel/GridPanel.js +0 -137
  143. package/legacy/components/panel/GridPanelContent.js +0 -49
  144. package/legacy/components/panel/GridPanelFooter.js +0 -50
  145. package/legacy/components/panel/GridPanelHeader.js +0 -48
  146. package/legacy/components/panel/GridPanelWrapper.js +0 -64
  147. package/legacy/components/panel/GridPreferencesPanel.js +0 -26
  148. package/legacy/components/panel/filterPanel/GridFilterForm.js +0 -528
  149. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +0 -118
  150. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +0 -121
  151. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -116
  152. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -102
  153. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +0 -149
  154. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +0 -106
  155. package/legacy/components/panel/filterPanel/GridFilterInputValueProps.js +0 -1
  156. package/legacy/components/panel/filterPanel/GridFilterPanel.js +0 -264
  157. package/legacy/components/panel/filterPanel/filterPanelUtils.js +0 -22
  158. package/legacy/components/panel/filterPanel/index.js +0 -9
  159. package/legacy/components/panel/index.js +0 -7
  160. package/legacy/components/reexportable.js +0 -1
  161. package/legacy/components/toolbar/GridToolbar.js +0 -64
  162. package/legacy/components/toolbar/GridToolbarColumnsButton.js +0 -68
  163. package/legacy/components/toolbar/GridToolbarDensitySelector.js +0 -142
  164. package/legacy/components/toolbar/GridToolbarExport.js +0 -80
  165. package/legacy/components/toolbar/GridToolbarExportContainer.js +0 -105
  166. package/legacy/components/toolbar/GridToolbarFilterButton.js +0 -136
  167. package/legacy/components/toolbar/GridToolbarQuickFilter.js +0 -164
  168. package/legacy/components/toolbar/index.js +0 -7
  169. package/legacy/components/virtualization/GridBottomContainer.js +0 -25
  170. package/legacy/components/virtualization/GridMainContainer.js +0 -20
  171. package/legacy/components/virtualization/GridTopContainer.js +0 -35
  172. package/legacy/components/virtualization/GridVirtualScrollbar.js +0 -129
  173. package/legacy/components/virtualization/GridVirtualScroller.js +0 -93
  174. package/legacy/components/virtualization/GridVirtualScrollerContent.js +0 -35
  175. package/legacy/components/virtualization/GridVirtualScrollerFiller.js +0 -70
  176. package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +0 -49
  177. package/legacy/constants/defaultGridSlotsComponents.js +0 -33
  178. package/legacy/constants/envConstants.js +0 -19
  179. package/legacy/constants/gridClasses.js +0 -5
  180. package/legacy/constants/gridDetailPanelToggleField.js +0 -2
  181. package/legacy/constants/index.js +0 -3
  182. package/legacy/constants/localeTextConstants.js +0 -158
  183. package/legacy/context/GridContextProvider.js +0 -21
  184. package/legacy/context/GridRootPropsContext.js +0 -6
  185. package/legacy/context/index.js +0 -1
  186. package/legacy/hooks/core/gridCoreSelector.js +0 -7
  187. package/legacy/hooks/core/index.js +0 -1
  188. package/legacy/hooks/core/pipeProcessing/gridPipeProcessingApi.js +0 -1
  189. package/legacy/hooks/core/pipeProcessing/index.js +0 -4
  190. package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +0 -114
  191. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +0 -26
  192. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -26
  193. package/legacy/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +0 -1
  194. package/legacy/hooks/core/strategyProcessing/index.js +0 -3
  195. package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +0 -18
  196. package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +0 -116
  197. package/legacy/hooks/core/useGridApiInitialization.js +0 -124
  198. package/legacy/hooks/core/useGridInitialization.js +0 -26
  199. package/legacy/hooks/core/useGridLocaleText.js +0 -12
  200. package/legacy/hooks/core/useGridLoggerFactory.js +0 -51
  201. package/legacy/hooks/core/useGridRefs.js +0 -13
  202. package/legacy/hooks/core/useGridStateInitialization.js +0 -106
  203. package/legacy/hooks/core/useGridTheme.js +0 -21
  204. package/legacy/hooks/features/clipboard/useGridClipboard.js +0 -92
  205. package/legacy/hooks/features/columnGrouping/gridColumnGroupsInterfaces.js +0 -1
  206. package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -24
  207. package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +0 -92
  208. package/legacy/hooks/features/columnGrouping/index.js +0 -2
  209. package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +0 -140
  210. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +0 -272
  211. package/legacy/hooks/features/columnMenu/columnMenuInterfaces.js +0 -1
  212. package/legacy/hooks/features/columnMenu/columnMenuSelector.js +0 -3
  213. package/legacy/hooks/features/columnMenu/index.js +0 -2
  214. package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +0 -108
  215. package/legacy/hooks/features/columnMenu/useGridColumnMenuSlots.js +0 -71
  216. package/legacy/hooks/features/columns/gridColumnsInterfaces.js +0 -9
  217. package/legacy/hooks/features/columns/gridColumnsSelector.js +0 -174
  218. package/legacy/hooks/features/columns/gridColumnsUtils.js +0 -338
  219. package/legacy/hooks/features/columns/index.js +0 -2
  220. package/legacy/hooks/features/columns/useGridColumnSpanning.js +0 -105
  221. package/legacy/hooks/features/columns/useGridColumns.js +0 -319
  222. package/legacy/hooks/features/density/densitySelector.js +0 -10
  223. package/legacy/hooks/features/density/densityState.js +0 -1
  224. package/legacy/hooks/features/density/index.js +0 -2
  225. package/legacy/hooks/features/density/useGridDensity.js +0 -48
  226. package/legacy/hooks/features/dimensions/gridDimensionsApi.js +0 -1
  227. package/legacy/hooks/features/dimensions/gridDimensionsSelectors.js +0 -3
  228. package/legacy/hooks/features/dimensions/index.js +0 -2
  229. package/legacy/hooks/features/dimensions/useGridDimensions.js +0 -302
  230. package/legacy/hooks/features/editing/gridEditingSelectors.js +0 -4
  231. package/legacy/hooks/features/editing/useGridCellEditing.js +0 -456
  232. package/legacy/hooks/features/editing/useGridEditing.js +0 -145
  233. package/legacy/hooks/features/editing/useGridRowEditing.js +0 -567
  234. package/legacy/hooks/features/events/useGridEvents.js +0 -23
  235. package/legacy/hooks/features/export/serializers/csvSerializer.js +0 -155
  236. package/legacy/hooks/features/export/useGridCsvExport.js +0 -75
  237. package/legacy/hooks/features/export/useGridPrintExport.js +0 -313
  238. package/legacy/hooks/features/export/utils.js +0 -49
  239. package/legacy/hooks/features/filter/gridFilterSelector.js +0 -165
  240. package/legacy/hooks/features/filter/gridFilterState.js +0 -20
  241. package/legacy/hooks/features/filter/gridFilterUtils.js +0 -330
  242. package/legacy/hooks/features/filter/index.js +0 -2
  243. package/legacy/hooks/features/filter/useGridFilter.js +0 -378
  244. package/legacy/hooks/features/focus/gridFocusState.js +0 -1
  245. package/legacy/hooks/features/focus/gridFocusStateSelector.js +0 -31
  246. package/legacy/hooks/features/focus/index.js +0 -2
  247. package/legacy/hooks/features/focus/useGridFocus.js +0 -408
  248. package/legacy/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +0 -10
  249. package/legacy/hooks/features/headerFiltering/index.js +0 -1
  250. package/legacy/hooks/features/headerFiltering/useGridHeaderFiltering.js +0 -93
  251. package/legacy/hooks/features/index.js +0 -16
  252. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +0 -565
  253. package/legacy/hooks/features/pagination/gridPaginationInterfaces.js +0 -1
  254. package/legacy/hooks/features/pagination/gridPaginationSelector.js +0 -115
  255. package/legacy/hooks/features/pagination/gridPaginationUtils.js +0 -31
  256. package/legacy/hooks/features/pagination/index.js +0 -2
  257. package/legacy/hooks/features/pagination/useGridPagination.js +0 -175
  258. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +0 -3
  259. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelState.js +0 -1
  260. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -6
  261. package/legacy/hooks/features/preferencesPanel/index.js +0 -3
  262. package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +0 -125
  263. package/legacy/hooks/features/rowSelection/gridRowSelectionSelector.js +0 -19
  264. package/legacy/hooks/features/rowSelection/index.js +0 -1
  265. package/legacy/hooks/features/rowSelection/useGridRowSelection.js +0 -419
  266. package/legacy/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +0 -45
  267. package/legacy/hooks/features/rowSelection/utils.js +0 -8
  268. package/legacy/hooks/features/rows/gridRowsInterfaces.js +0 -1
  269. package/legacy/hooks/features/rows/gridRowsMetaSelector.js +0 -3
  270. package/legacy/hooks/features/rows/gridRowsMetaState.js +0 -1
  271. package/legacy/hooks/features/rows/gridRowsSelector.js +0 -90
  272. package/legacy/hooks/features/rows/gridRowsUtils.js +0 -294
  273. package/legacy/hooks/features/rows/index.js +0 -4
  274. package/legacy/hooks/features/rows/useGridParamsApi.js +0 -142
  275. package/legacy/hooks/features/rows/useGridRows.js +0 -466
  276. package/legacy/hooks/features/rows/useGridRowsMeta.js +0 -236
  277. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +0 -82
  278. package/legacy/hooks/features/scroll/useGridScroll.js +0 -133
  279. package/legacy/hooks/features/sorting/gridSortingSelector.js +0 -56
  280. package/legacy/hooks/features/sorting/gridSortingState.js +0 -1
  281. package/legacy/hooks/features/sorting/gridSortingUtils.js +0 -154
  282. package/legacy/hooks/features/sorting/index.js +0 -2
  283. package/legacy/hooks/features/sorting/useGridSorting.js +0 -276
  284. package/legacy/hooks/features/statePersistence/gridStatePersistenceInterface.js +0 -1
  285. package/legacy/hooks/features/statePersistence/index.js +0 -1
  286. package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +0 -25
  287. package/legacy/hooks/features/virtualization/gridVirtualizationSelectors.js +0 -61
  288. package/legacy/hooks/features/virtualization/index.js +0 -2
  289. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -646
  290. package/legacy/hooks/features/virtualization/useGridVirtualization.js +0 -63
  291. package/legacy/hooks/index.js +0 -3
  292. package/legacy/hooks/utils/index.js +0 -9
  293. package/legacy/hooks/utils/useFirstRender.js +0 -8
  294. package/legacy/hooks/utils/useGridApiContext.js +0 -9
  295. package/legacy/hooks/utils/useGridApiEventHandler.js +0 -105
  296. package/legacy/hooks/utils/useGridApiMethod.js +0 -11
  297. package/legacy/hooks/utils/useGridApiRef.js +0 -7
  298. package/legacy/hooks/utils/useGridAriaAttributes.js +0 -25
  299. package/legacy/hooks/utils/useGridInitializeState.js +0 -8
  300. package/legacy/hooks/utils/useGridLogger.js +0 -10
  301. package/legacy/hooks/utils/useGridNativeEventListener.js +0 -32
  302. package/legacy/hooks/utils/useGridPrivateApiContext.js +0 -12
  303. package/legacy/hooks/utils/useGridRootProps.js +0 -9
  304. package/legacy/hooks/utils/useGridSelector.js +0 -54
  305. package/legacy/hooks/utils/useGridVisibleRows.js +0 -42
  306. package/legacy/hooks/utils/useLazyRef.js +0 -11
  307. package/legacy/hooks/utils/useOnMount.js +0 -7
  308. package/legacy/hooks/utils/useResizeObserver.js +0 -36
  309. package/legacy/hooks/utils/useRunOnce.js +0 -18
  310. package/legacy/hooks/utils/useTimeout.js +0 -38
  311. package/legacy/index.js +0 -38
  312. package/legacy/internals/index.js +0 -68
  313. package/legacy/internals/utils/computeSlots.js +0 -17
  314. package/legacy/internals/utils/index.js +0 -3
  315. package/legacy/internals/utils/propValidation.js +0 -21
  316. package/legacy/internals/utils/useProps.js +0 -32
  317. package/legacy/joy/icons.js +0 -432
  318. package/legacy/joy/index.js +0 -2
  319. package/legacy/joy/joySlots.js +0 -420
  320. package/legacy/locales/arSD.js +0 -160
  321. package/legacy/locales/beBY.js +0 -184
  322. package/legacy/locales/bgBG.js +0 -160
  323. package/legacy/locales/coreLocales.js +0 -62
  324. package/legacy/locales/csCZ.js +0 -181
  325. package/legacy/locales/daDK.js +0 -160
  326. package/legacy/locales/deDE.js +0 -160
  327. package/legacy/locales/elGR.js +0 -160
  328. package/legacy/locales/enUS.js +0 -4
  329. package/legacy/locales/esES.js +0 -160
  330. package/legacy/locales/faIR.js +0 -160
  331. package/legacy/locales/fiFI.js +0 -160
  332. package/legacy/locales/frFR.js +0 -160
  333. package/legacy/locales/heIL.js +0 -160
  334. package/legacy/locales/hrHR.js +0 -160
  335. package/legacy/locales/huHU.js +0 -160
  336. package/legacy/locales/index.js +0 -35
  337. package/legacy/locales/itIT.js +0 -160
  338. package/legacy/locales/jaJP.js +0 -160
  339. package/legacy/locales/koKR.js +0 -162
  340. package/legacy/locales/nbNO.js +0 -162
  341. package/legacy/locales/nlNL.js +0 -160
  342. package/legacy/locales/plPL.js +0 -163
  343. package/legacy/locales/ptBR.js +0 -160
  344. package/legacy/locales/ptPT.js +0 -160
  345. package/legacy/locales/roRO.js +0 -160
  346. package/legacy/locales/ruRU.js +0 -181
  347. package/legacy/locales/skSK.js +0 -181
  348. package/legacy/locales/svSE.js +0 -160
  349. package/legacy/locales/trTR.js +0 -161
  350. package/legacy/locales/ukUA.js +0 -182
  351. package/legacy/locales/urPK.js +0 -160
  352. package/legacy/locales/viVN.js +0 -160
  353. package/legacy/locales/zhCN.js +0 -160
  354. package/legacy/locales/zhHK.js +0 -160
  355. package/legacy/locales/zhTW.js +0 -160
  356. package/legacy/material/components/MUISelectOption.js +0 -14
  357. package/legacy/material/icons/GridColumnUnsortedIcon.js +0 -16
  358. package/legacy/material/icons/index.js +0 -89
  359. package/legacy/material/index.js +0 -69
  360. package/legacy/models/api/gridApiCommon.js +0 -1
  361. package/legacy/models/api/gridApiCommunity.js +0 -1
  362. package/legacy/models/api/gridCallbackDetails.js +0 -1
  363. package/legacy/models/api/gridColumnApi.js +0 -1
  364. package/legacy/models/api/gridColumnGroupingApi.js +0 -1
  365. package/legacy/models/api/gridColumnMenuApi.js +0 -1
  366. package/legacy/models/api/gridColumnSpanning.js +0 -1
  367. package/legacy/models/api/gridCoreApi.js +0 -1
  368. package/legacy/models/api/gridCsvExportApi.js +0 -1
  369. package/legacy/models/api/gridDensityApi.js +0 -1
  370. package/legacy/models/api/gridEditingApi.js +0 -1
  371. package/legacy/models/api/gridFilterApi.js +0 -1
  372. package/legacy/models/api/gridFocusApi.js +0 -1
  373. package/legacy/models/api/gridHeaderFilteringApi.js +0 -1
  374. package/legacy/models/api/gridLocaleTextApi.js +0 -1
  375. package/legacy/models/api/gridLoggerApi.js +0 -1
  376. package/legacy/models/api/gridParamsApi.js +0 -1
  377. package/legacy/models/api/gridPreferencesPanelApi.js +0 -1
  378. package/legacy/models/api/gridPrintExportApi.js +0 -1
  379. package/legacy/models/api/gridRowApi.js +0 -1
  380. package/legacy/models/api/gridRowSelectionApi.js +0 -1
  381. package/legacy/models/api/gridRowsMetaApi.js +0 -1
  382. package/legacy/models/api/gridScrollApi.js +0 -1
  383. package/legacy/models/api/gridSortApi.js +0 -1
  384. package/legacy/models/api/gridStateApi.js +0 -1
  385. package/legacy/models/api/gridVirtualizationApi.js +0 -1
  386. package/legacy/models/api/index.js +0 -16
  387. package/legacy/models/colDef/gridColDef.js +0 -1
  388. package/legacy/models/colDef/gridColType.js +0 -1
  389. package/legacy/models/colDef/gridColumnTypesRecord.js +0 -1
  390. package/legacy/models/colDef/index.js +0 -6
  391. package/legacy/models/controlStateItem.js +0 -1
  392. package/legacy/models/cursorCoordinates.js +0 -1
  393. package/legacy/models/elementSize.js +0 -1
  394. package/legacy/models/events/gridEventListener.js +0 -1
  395. package/legacy/models/events/gridEventLookup.js +0 -1
  396. package/legacy/models/events/gridEventPublisher.js +0 -1
  397. package/legacy/models/events/index.js +0 -3
  398. package/legacy/models/gridApiCaches.js +0 -1
  399. package/legacy/models/gridCell.js +0 -1
  400. package/legacy/models/gridCellClass.js +0 -1
  401. package/legacy/models/gridColumnGrouping.js +0 -11
  402. package/legacy/models/gridColumnHeaderClass.js +0 -1
  403. package/legacy/models/gridColumnSpanning.js +0 -1
  404. package/legacy/models/gridDensity.js +0 -1
  405. package/legacy/models/gridEditRowModel.js +0 -16
  406. package/legacy/models/gridExport.js +0 -1
  407. package/legacy/models/gridFeatureMode.js +0 -1
  408. package/legacy/models/gridFilterItem.js +0 -11
  409. package/legacy/models/gridFilterModel.js +0 -1
  410. package/legacy/models/gridFilterOperator.js +0 -1
  411. package/legacy/models/gridHeaderFilteringModel.js +0 -1
  412. package/legacy/models/gridIconSlotsComponent.js +0 -1
  413. package/legacy/models/gridPaginationProps.js +0 -1
  414. package/legacy/models/gridRenderContextProps.js +0 -1
  415. package/legacy/models/gridRowSelectionModel.js +0 -1
  416. package/legacy/models/gridRows.js +0 -1
  417. package/legacy/models/gridSlotsComponent.js +0 -1
  418. package/legacy/models/gridSlotsComponentsProps.js +0 -1
  419. package/legacy/models/gridSortModel.js +0 -1
  420. package/legacy/models/gridStateCommunity.js +0 -1
  421. package/legacy/models/index.js +0 -29
  422. package/legacy/models/logger.js +0 -1
  423. package/legacy/models/muiEvent.js +0 -1
  424. package/legacy/models/params/gridCellParams.js +0 -1
  425. package/legacy/models/params/gridColumnGroupHeaderParams.js +0 -1
  426. package/legacy/models/params/gridColumnHeaderParams.js +0 -1
  427. package/legacy/models/params/gridColumnOrderChangeParams.js +0 -1
  428. package/legacy/models/params/gridColumnResizeParams.js +0 -1
  429. package/legacy/models/params/gridEditCellParams.js +0 -27
  430. package/legacy/models/params/gridHeaderSelectionCheckboxParams.js +0 -1
  431. package/legacy/models/params/gridMenuParams.js +0 -1
  432. package/legacy/models/params/gridPreferencePanelParams.js +0 -1
  433. package/legacy/models/params/gridRowParams.js +0 -44
  434. package/legacy/models/params/gridRowSelectionCheckboxParams.js +0 -1
  435. package/legacy/models/params/gridScrollParams.js +0 -1
  436. package/legacy/models/params/gridValueOptionsParams.js +0 -1
  437. package/legacy/models/params/index.js +0 -13
  438. package/legacy/models/props/DataGridProps.js +0 -1
  439. package/legacy/themeAugmentation/index.js +0 -4
  440. package/legacy/themeAugmentation/overrides.js +0 -1
  441. package/legacy/themeAugmentation/props.js +0 -1
  442. package/legacy/utils/EventManager.js +0 -91
  443. package/legacy/utils/Store.js +0 -34
  444. package/legacy/utils/cleanupTracking/CleanupTracking.js +0 -1
  445. package/legacy/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +0 -29
  446. package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -52
  447. package/legacy/utils/createControllablePromise.js +0 -11
  448. package/legacy/utils/createSelector.js +0 -120
  449. package/legacy/utils/doesSupportPreventScroll.js +0 -13
  450. package/legacy/utils/domUtils.js +0 -49
  451. package/legacy/utils/exportAs.js +0 -40
  452. package/legacy/utils/fastMemo.js +0 -5
  453. package/legacy/utils/fastObjectShallowCompare.js +0 -32
  454. package/legacy/utils/getGridLocalization.js +0 -15
  455. package/legacy/utils/getPublicApiRef.js +0 -5
  456. package/legacy/utils/index.js +0 -1
  457. package/legacy/utils/keyboardUtils.js +0 -60
  458. package/legacy/utils/utils.js +0 -189
  459. package/legacy/utils/warning.js +0 -25
@@ -1,664 +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 turns to edit mode.
503
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
504
- * @param {MuiEvent<React.KeyboardEvent | React.MouseEvent>} event The event that caused this prop to be called.
505
- */
506
- onRowEditStart: PropTypes.func,
507
- /**
508
- * Callback fired when the row turns to view mode.
509
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
510
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
511
- */
512
- onRowEditStop: PropTypes.func,
513
- /**
514
- * Callback fired when the `rowModesModel` prop changes.
515
- * @param {GridRowModesModel} rowModesModel Object containing which rows are in "edit" mode.
516
- * @param {GridCallbackDetails} details Additional details for this callback.
517
- */
518
- onRowModesModelChange: PropTypes.func,
519
- /**
520
- * Callback fired when the selection state of one or multiple rows changes.
521
- * @param {GridRowSelectionModel} rowSelectionModel With all the row ids [[GridSelectionModel]].
522
- * @param {GridCallbackDetails} details Additional details for this callback.
523
- */
524
- onRowSelectionModelChange: PropTypes.func,
525
- /**
526
- * Callback fired when the sort model changes before a column is sorted.
527
- * @param {GridSortModel} model With all properties from [[GridSortModel]].
528
- * @param {GridCallbackDetails} details Additional details for this callback.
529
- */
530
- onSortModelChange: PropTypes.func,
531
- /**
532
- * Callback fired when the state of the Data Grid is updated.
533
- * @param {GridState} state The new state.
534
- * @param {MuiEvent<{}>} event The event object.
535
- * @param {GridCallbackDetails} details Additional details for this callback.
536
- * @ignore - do not document.
537
- */
538
- onStateChange: PropTypes.func,
539
- /**
540
- * Select the pageSize dynamically using the component UI.
541
- * @default [25, 50, 100]
542
- */
543
- pageSizeOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
544
- label: PropTypes.string.isRequired,
545
- value: PropTypes.number.isRequired
546
- })]).isRequired),
547
- pagination: PropTypes.oneOf([true]),
548
- /**
549
- * Pagination can be processed on the server or client-side.
550
- * Set it to 'client' if you would like to handle the pagination on the client-side.
551
- * Set it to 'server' if you would like to handle the pagination on the server-side.
552
- * @default "client"
553
- */
554
- paginationMode: PropTypes.oneOf(['client', 'server']),
555
- /**
556
- * The pagination model of type [[GridPaginationModel]] which refers to current `page` and `pageSize`.
557
- */
558
- paginationModel: PropTypes.shape({
559
- page: PropTypes.number.isRequired,
560
- pageSize: PropTypes.number.isRequired
561
- }),
562
- /**
563
- * Callback called before updating a row with new values in the row and cell editing.
564
- * @template R
565
- * @param {R} newRow Row object with the new values.
566
- * @param {R} oldRow Row object with the old values.
567
- * @returns {Promise<R> | R} The final values to update the row.
568
- */
569
- processRowUpdate: PropTypes.func,
570
- /**
571
- * Number of extra rows to be rendered before/after the visible slice.
572
- * @default 3
573
- */
574
- rowBuffer: PropTypes.number,
575
- /**
576
- * Set the total number of rows, if it is different from the length of the value `rows` prop.
577
- * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
578
- */
579
- rowCount: PropTypes.number,
580
- /**
581
- * Sets the height in pixel of a row in the Data Grid.
582
- * @default 52
583
- */
584
- rowHeight: PropTypes.number,
585
- /**
586
- * Controls the modes of the rows.
587
- */
588
- rowModesModel: PropTypes.object,
589
- /**
590
- * The milliseconds delay to wait after measuring the row height before recalculating row positions.
591
- * Setting it to a lower value could be useful when using dynamic row height,
592
- * but might reduce performance when displaying a large number of rows.
593
- * @default 166
594
- */
595
- rowPositionsDebounceMs: PropTypes.number,
596
- /**
597
- * Set of rows of type [[GridRowsProp]].
598
- */
599
- rows: PropTypes.arrayOf(PropTypes.object).isRequired,
600
- /**
601
- * If `false`, the row selection mode is disabled.
602
- * @default true
603
- */
604
- rowSelection: PropTypes.bool,
605
- /**
606
- * Sets the row selection model of the Data Grid.
607
- */
608
- rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
609
- /**
610
- * Sets the type of space between rows added by `getRowSpacing`.
611
- * @default "margin"
612
- */
613
- rowSpacingType: PropTypes.oneOf(['border', 'margin']),
614
- /**
615
- * Number of rows from the `rowBuffer` that can be visible before a new slice is rendered.
616
- * @default 3
617
- */
618
- rowThreshold: PropTypes.number,
619
- /**
620
- * Override the height/width of the Data Grid inner scrollbar.
621
- */
622
- scrollbarSize: PropTypes.number,
623
- /**
624
- * If `true`, the vertical borders of the cells are displayed.
625
- * @default false
626
- */
627
- showCellVerticalBorder: PropTypes.bool,
628
- /**
629
- * If `true`, the right border of the column headers are displayed.
630
- * @default false
631
- */
632
- showColumnVerticalBorder: PropTypes.bool,
633
- /**
634
- * Overridable components props dynamically passed to the component at rendering.
635
- */
636
- slotProps: PropTypes.object,
637
- /**
638
- * Overridable components.
639
- */
640
- slots: PropTypes.object,
641
- /**
642
- * Sorting can be processed on the server or client-side.
643
- * Set it to 'client' if you would like to handle sorting on the client-side.
644
- * Set it to 'server' if you would like to handle sorting on the server-side.
645
- * @default "client"
646
- */
647
- sortingMode: PropTypes.oneOf(['client', 'server']),
648
- /**
649
- * The order of the sorting sequence.
650
- * @default ['asc', 'desc', null]
651
- */
652
- sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
653
- /**
654
- * Set the sort model of the Data Grid.
655
- */
656
- sortModel: PropTypes.arrayOf(PropTypes.shape({
657
- field: PropTypes.string.isRequired,
658
- sort: PropTypes.oneOf(['asc', 'desc'])
659
- })),
660
- /**
661
- * The system prop that allows defining system overrides as well as additional CSS styles.
662
- */
663
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
664
- };
@@ -1,2 +0,0 @@
1
- export * from './DataGrid';
2
- export { DATA_GRID_PROPS_DEFAULT_VALUES } from './useDataGridProps';