@mui/x-data-grid 5.9.0 → 5.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (519) hide show
  1. package/CHANGELOG.md +284 -10
  2. package/DataGrid/DataGrid.js +35 -1
  3. package/DataGrid/useDataGridProps.js +2 -1
  4. package/README.md +5 -4
  5. package/colDef/gridActionsColDef.js +2 -1
  6. package/colDef/gridBooleanColDef.js +2 -1
  7. package/colDef/gridCheckboxSelectionColDef.js +1 -0
  8. package/colDef/gridDateColDef.js +4 -2
  9. package/colDef/gridNumericColDef.js +3 -2
  10. package/colDef/gridNumericOperators.d.ts +2 -0
  11. package/colDef/gridNumericOperators.js +11 -0
  12. package/colDef/gridSingleSelectColDef.js +3 -2
  13. package/colDef/gridSingleSelectOperators.d.ts +3 -0
  14. package/colDef/gridSingleSelectOperators.js +52 -0
  15. package/colDef/gridStringColDef.js +3 -2
  16. package/colDef/gridStringOperators.d.ts +2 -0
  17. package/colDef/gridStringOperators.js +12 -0
  18. package/components/GridFooter.d.ts +4 -2
  19. package/components/GridFooter.js +11 -2
  20. package/components/GridRow.js +9 -5
  21. package/components/GridRowCount.d.ts +4 -1
  22. package/components/GridRowCount.js +1 -0
  23. package/components/GridScrollArea.js +3 -4
  24. package/components/GridSelectedRowCount.d.ts +4 -1
  25. package/components/GridSelectedRowCount.js +2 -1
  26. package/components/base/GridBody.js +1 -2
  27. package/components/base/GridOverlays.js +2 -3
  28. package/components/cell/GridActionsCell.js +13 -4
  29. package/components/cell/GridCell.js +8 -8
  30. package/components/cell/GridEditBooleanCell.d.ts +15 -3
  31. package/components/cell/GridEditBooleanCell.js +101 -6
  32. package/components/cell/GridEditDateCell.d.ts +16 -4
  33. package/components/cell/GridEditDateCell.js +99 -5
  34. package/components/cell/GridEditInputCell.d.ts +11 -5
  35. package/components/cell/GridEditInputCell.js +29 -5
  36. package/components/cell/GridEditSingleSelectCell.d.ts +12 -4
  37. package/components/cell/GridEditSingleSelectCell.js +28 -5
  38. package/components/cell/index.d.ts +2 -0
  39. package/components/cell/index.js +2 -0
  40. package/components/columnHeaders/GridColumnHeaderItem.js +15 -16
  41. package/components/columnHeaders/GridColumnHeaders.d.ts +2 -0
  42. package/components/columnHeaders/GridColumnHeadersInner.d.ts +2 -0
  43. package/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
  44. package/components/columnSelection/GridHeaderCheckbox.js +4 -5
  45. package/components/containers/GridFooterContainer.d.ts +8 -2
  46. package/components/containers/GridFooterContainer.js +11 -2
  47. package/components/containers/GridRoot.js +25 -5
  48. package/components/containers/GridRootStyles.js +36 -1
  49. package/components/containers/GridToolbarContainer.d.ts +8 -2
  50. package/components/containers/GridToolbarContainer.js +12 -2
  51. package/components/menu/GridMenu.js +1 -0
  52. package/components/panel/GridPanelContent.d.ts +8 -1
  53. package/components/panel/GridPanelContent.js +13 -2
  54. package/components/panel/GridPanelFooter.d.ts +8 -1
  55. package/components/panel/GridPanelFooter.js +13 -2
  56. package/components/panel/GridPanelHeader.d.ts +8 -1
  57. package/components/panel/GridPanelHeader.js +13 -2
  58. package/components/toolbar/GridToolbar.d.ts +12 -2
  59. package/components/toolbar/GridToolbar.js +30 -7
  60. package/components/toolbar/GridToolbarExport.d.ts +5 -4
  61. package/components/toolbar/GridToolbarExport.js +15 -20
  62. package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
  63. package/components/toolbar/GridToolbarQuickFilter.d.ts +20 -0
  64. package/components/toolbar/GridToolbarQuickFilter.js +87 -0
  65. package/components/toolbar/index.d.ts +3 -1
  66. package/components/toolbar/index.js +3 -2
  67. package/components/virtualization/GridVirtualScroller.d.ts +4 -1
  68. package/components/virtualization/GridVirtualScrollerContent.d.ts +4 -1
  69. package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +4 -1
  70. package/constants/defaultGridSlotsComponents.js +4 -2
  71. package/constants/gridClasses.d.ts +32 -0
  72. package/constants/gridClasses.js +1 -1
  73. package/constants/localeTextConstants.js +8 -1
  74. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +11 -0
  75. package/hooks/core/pipeProcessing/useGridPipeProcessing.js +10 -9
  76. package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +4 -4
  77. package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +6 -7
  78. package/hooks/core/useGridApiInitialization.js +3 -3
  79. package/hooks/core/useGridErrorHandler.js +1 -2
  80. package/hooks/core/useGridStateInitialization.js +1 -2
  81. package/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -6
  82. package/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
  83. package/hooks/features/columns/useGridColumnSpanning.js +1 -2
  84. package/hooks/features/columns/useGridColumns.d.ts +1 -1
  85. package/hooks/features/columns/useGridColumns.js +8 -9
  86. package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
  87. package/hooks/features/dimensions/useGridDimensions.js +8 -9
  88. package/hooks/features/editRows/useGridCellEditing.new.d.ts +1 -1
  89. package/hooks/features/editRows/useGridCellEditing.new.js +133 -32
  90. package/hooks/features/editRows/useGridCellEditing.old.js +20 -21
  91. package/hooks/features/editRows/useGridEditing.old.js +4 -5
  92. package/hooks/features/editRows/useGridRowEditing.new.d.ts +1 -1
  93. package/hooks/features/editRows/useGridRowEditing.new.js +122 -42
  94. package/hooks/features/editRows/useGridRowEditing.old.js +21 -22
  95. package/hooks/features/events/useGridEvents.js +17 -18
  96. package/hooks/features/export/serializers/csvSerializer.js +5 -5
  97. package/hooks/features/export/useGridCsvExport.js +23 -16
  98. package/hooks/features/export/useGridPrintExport.js +22 -0
  99. package/hooks/features/export/utils.d.ts +3 -1
  100. package/hooks/features/export/utils.js +13 -0
  101. package/hooks/features/filter/gridFilterState.d.ts +1 -2
  102. package/hooks/features/filter/gridFilterState.js +3 -1
  103. package/hooks/features/filter/gridFilterUtils.d.ts +8 -0
  104. package/hooks/features/filter/gridFilterUtils.js +84 -2
  105. package/hooks/features/filter/useGridFilter.js +20 -8
  106. package/hooks/features/focus/useGridFocus.d.ts +1 -1
  107. package/hooks/features/focus/useGridFocus.js +29 -33
  108. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +4 -5
  109. package/hooks/features/pagination/useGridPage.js +3 -4
  110. package/hooks/features/pagination/useGridPageSize.js +2 -3
  111. package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -6
  112. package/hooks/features/rows/gridRowsSelector.d.ts +1 -0
  113. package/hooks/features/rows/gridRowsSelector.js +1 -0
  114. package/hooks/features/rows/gridRowsState.d.ts +16 -11
  115. package/hooks/features/rows/gridRowsUtils.d.ts +14 -1
  116. package/hooks/features/rows/gridRowsUtils.js +79 -1
  117. package/hooks/features/rows/useGridRows.js +148 -128
  118. package/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
  119. package/hooks/features/scroll/useGridScroll.js +6 -1
  120. package/hooks/features/selection/useGridSelection.d.ts +1 -1
  121. package/hooks/features/selection/useGridSelection.js +13 -10
  122. package/hooks/features/sorting/useGridSorting.js +8 -9
  123. package/hooks/features/virtualization/useGridVirtualScroller.d.ts +2 -0
  124. package/hooks/features/virtualization/useGridVirtualScroller.js +14 -5
  125. package/hooks/utils/useGridApiEventHandler.d.ts +4 -1
  126. package/hooks/utils/useGridApiEventHandler.js +22 -9
  127. package/hooks/utils/useGridNativeEventListener.js +1 -2
  128. package/hooks/utils/useGridSelector.js +1 -1
  129. package/index.d.ts +2 -0
  130. package/index.js +1 -1
  131. package/internals/index.d.ts +4 -1
  132. package/internals/index.js +5 -2
  133. package/legacy/DataGrid/DataGrid.js +35 -1
  134. package/legacy/DataGrid/useDataGridProps.js +2 -1
  135. package/legacy/colDef/gridActionsColDef.js +2 -1
  136. package/legacy/colDef/gridBooleanColDef.js +2 -1
  137. package/legacy/colDef/gridCheckboxSelectionColDef.js +1 -0
  138. package/legacy/colDef/gridDateColDef.js +4 -2
  139. package/legacy/colDef/gridNumericColDef.js +3 -2
  140. package/legacy/colDef/gridNumericOperators.js +28 -18
  141. package/legacy/colDef/gridSingleSelectColDef.js +3 -2
  142. package/legacy/colDef/gridSingleSelectOperators.js +55 -6
  143. package/legacy/colDef/gridStringColDef.js +3 -2
  144. package/legacy/colDef/gridStringOperators.js +25 -14
  145. package/legacy/components/GridFooter.js +11 -2
  146. package/legacy/components/GridRow.js +9 -5
  147. package/legacy/components/GridRowCount.js +1 -0
  148. package/legacy/components/GridScrollArea.js +3 -4
  149. package/legacy/components/GridSelectedRowCount.js +2 -1
  150. package/legacy/components/base/GridBody.js +1 -2
  151. package/legacy/components/base/GridOverlays.js +2 -3
  152. package/legacy/components/cell/GridActionsCell.js +13 -4
  153. package/legacy/components/cell/GridCell.js +8 -8
  154. package/legacy/components/cell/GridEditBooleanCell.js +132 -11
  155. package/legacy/components/cell/GridEditDateCell.js +148 -42
  156. package/legacy/components/cell/GridEditInputCell.js +61 -12
  157. package/legacy/components/cell/GridEditSingleSelectCell.js +41 -13
  158. package/legacy/components/cell/index.js +2 -0
  159. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +15 -16
  160. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
  161. package/legacy/components/columnSelection/GridHeaderCheckbox.js +4 -5
  162. package/legacy/components/containers/GridFooterContainer.js +11 -2
  163. package/legacy/components/containers/GridRoot.js +23 -5
  164. package/legacy/components/containers/GridRootStyles.js +26 -5
  165. package/legacy/components/containers/GridToolbarContainer.js +12 -2
  166. package/legacy/components/menu/GridMenu.js +1 -0
  167. package/legacy/components/panel/GridPanelContent.js +13 -2
  168. package/legacy/components/panel/GridPanelFooter.js +13 -2
  169. package/legacy/components/panel/GridPanelHeader.js +13 -2
  170. package/legacy/components/toolbar/GridToolbar.js +31 -6
  171. package/legacy/components/toolbar/GridToolbarExport.js +18 -19
  172. package/legacy/components/toolbar/GridToolbarQuickFilter.js +102 -0
  173. package/legacy/components/toolbar/index.js +3 -2
  174. package/legacy/constants/defaultGridSlotsComponents.js +4 -2
  175. package/legacy/constants/gridClasses.js +1 -1
  176. package/legacy/constants/localeTextConstants.js +8 -1
  177. package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +10 -10
  178. package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +6 -7
  179. package/legacy/hooks/core/useGridApiInitialization.js +3 -3
  180. package/legacy/hooks/core/useGridErrorHandler.js +1 -2
  181. package/legacy/hooks/core/useGridStateInitialization.js +1 -2
  182. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -6
  183. package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
  184. package/legacy/hooks/features/columns/useGridColumnSpanning.js +1 -2
  185. package/legacy/hooks/features/columns/useGridColumns.js +8 -9
  186. package/legacy/hooks/features/dimensions/useGridDimensions.js +8 -9
  187. package/legacy/hooks/features/editRows/useGridCellEditing.new.js +213 -83
  188. package/legacy/hooks/features/editRows/useGridCellEditing.old.js +20 -21
  189. package/legacy/hooks/features/editRows/useGridEditing.old.js +4 -5
  190. package/legacy/hooks/features/editRows/useGridRowEditing.new.js +126 -42
  191. package/legacy/hooks/features/editRows/useGridRowEditing.old.js +20 -21
  192. package/legacy/hooks/features/events/useGridEvents.js +17 -18
  193. package/legacy/hooks/features/export/serializers/csvSerializer.js +5 -5
  194. package/legacy/hooks/features/export/useGridCsvExport.js +24 -17
  195. package/legacy/hooks/features/export/useGridPrintExport.js +22 -0
  196. package/legacy/hooks/features/export/utils.js +14 -0
  197. package/legacy/hooks/features/filter/gridFilterState.js +3 -1
  198. package/legacy/hooks/features/filter/gridFilterUtils.js +96 -2
  199. package/legacy/hooks/features/filter/useGridFilter.js +20 -8
  200. package/legacy/hooks/features/focus/useGridFocus.js +31 -35
  201. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +4 -5
  202. package/legacy/hooks/features/pagination/useGridPage.js +3 -4
  203. package/legacy/hooks/features/pagination/useGridPageSize.js +2 -3
  204. package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -6
  205. package/legacy/hooks/features/rows/gridRowsSelector.js +3 -0
  206. package/legacy/hooks/features/rows/gridRowsUtils.js +82 -1
  207. package/legacy/hooks/features/rows/useGridRows.js +164 -131
  208. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
  209. package/legacy/hooks/features/scroll/useGridScroll.js +6 -1
  210. package/legacy/hooks/features/selection/useGridSelection.js +13 -10
  211. package/legacy/hooks/features/sorting/useGridSorting.js +8 -9
  212. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +14 -5
  213. package/legacy/hooks/utils/useGridApiEventHandler.js +20 -9
  214. package/legacy/hooks/utils/useGridNativeEventListener.js +1 -2
  215. package/legacy/hooks/utils/useGridSelector.js +1 -1
  216. package/legacy/index.js +1 -1
  217. package/legacy/internals/index.js +5 -2
  218. package/legacy/locales/arSD.js +8 -1
  219. package/legacy/locales/bgBG.js +8 -1
  220. package/legacy/locales/csCZ.js +7 -0
  221. package/legacy/locales/daDK.js +8 -1
  222. package/legacy/locales/deDE.js +10 -3
  223. package/legacy/locales/elGR.js +7 -0
  224. package/legacy/locales/esES.js +7 -0
  225. package/legacy/locales/faIR.js +8 -1
  226. package/legacy/locales/fiFI.js +7 -0
  227. package/legacy/locales/frFR.js +7 -0
  228. package/legacy/locales/heIL.js +8 -1
  229. package/legacy/locales/huHU.js +8 -1
  230. package/legacy/locales/itIT.js +7 -0
  231. package/legacy/locales/jaJP.js +7 -0
  232. package/legacy/locales/koKR.js +7 -0
  233. package/legacy/locales/nlNL.js +7 -0
  234. package/legacy/locales/plPL.js +8 -1
  235. package/legacy/locales/ptBR.js +8 -1
  236. package/legacy/locales/ruRU.js +7 -0
  237. package/legacy/locales/skSK.js +7 -0
  238. package/legacy/locales/trTR.js +8 -1
  239. package/legacy/locales/ukUA.js +7 -0
  240. package/legacy/locales/viVN.js +7 -0
  241. package/legacy/locales/zhCN.js +7 -0
  242. package/legacy/models/events/gridEvents.js +8 -0
  243. package/legacy/models/index.js +4 -3
  244. package/legacy/utils/createSelector.js +18 -2
  245. package/legacy/utils/exportAs.js +1 -1
  246. package/locales/arSD.js +8 -1
  247. package/locales/bgBG.js +8 -1
  248. package/locales/csCZ.js +7 -0
  249. package/locales/daDK.js +8 -1
  250. package/locales/deDE.js +10 -3
  251. package/locales/elGR.js +7 -0
  252. package/locales/esES.js +7 -0
  253. package/locales/faIR.js +8 -1
  254. package/locales/fiFI.js +7 -0
  255. package/locales/frFR.js +7 -0
  256. package/locales/heIL.js +8 -1
  257. package/locales/huHU.js +8 -1
  258. package/locales/itIT.js +7 -0
  259. package/locales/jaJP.js +7 -0
  260. package/locales/koKR.js +7 -0
  261. package/locales/nlNL.js +7 -0
  262. package/locales/plPL.js +8 -1
  263. package/locales/ptBR.js +8 -1
  264. package/locales/ruRU.js +7 -0
  265. package/locales/skSK.js +7 -0
  266. package/locales/trTR.js +8 -1
  267. package/locales/ukUA.js +7 -0
  268. package/locales/viVN.js +7 -0
  269. package/locales/zhCN.js +7 -0
  270. package/models/api/gridCoreApi.d.ts +10 -0
  271. package/models/api/gridEditingApi.d.ts +23 -4
  272. package/models/api/gridFilterApi.d.ts +5 -0
  273. package/models/api/gridFocusApi.d.ts +1 -0
  274. package/models/api/gridLocaleTextApi.d.ts +5 -0
  275. package/models/api/gridRowApi.d.ts +34 -0
  276. package/models/api/index.d.ts +1 -1
  277. package/models/colDef/gridColDef.d.ts +13 -0
  278. package/models/events/gridEventLookup.d.ts +293 -3
  279. package/models/events/gridEvents.d.ts +8 -251
  280. package/models/events/gridEvents.js +8 -0
  281. package/models/gridExport.d.ts +29 -2
  282. package/models/gridFilterModel.d.ts +11 -0
  283. package/models/gridFilterOperator.d.ts +1 -1
  284. package/models/gridIconSlotsComponent.d.ts +10 -0
  285. package/models/gridStateCommunity.d.ts +0 -2
  286. package/models/index.d.ts +1 -1
  287. package/models/index.js +4 -3
  288. package/models/props/DataGridProps.d.ts +56 -28
  289. package/modern/DataGrid/DataGrid.js +35 -1
  290. package/modern/DataGrid/useDataGridProps.js +2 -1
  291. package/modern/colDef/gridActionsColDef.js +2 -1
  292. package/modern/colDef/gridBooleanColDef.js +2 -1
  293. package/modern/colDef/gridCheckboxSelectionColDef.js +1 -0
  294. package/modern/colDef/gridDateColDef.js +4 -2
  295. package/modern/colDef/gridNumericColDef.js +3 -2
  296. package/modern/colDef/gridNumericOperators.js +11 -0
  297. package/modern/colDef/gridSingleSelectColDef.js +3 -2
  298. package/modern/colDef/gridSingleSelectOperators.js +52 -0
  299. package/modern/colDef/gridStringColDef.js +3 -2
  300. package/modern/colDef/gridStringOperators.js +12 -0
  301. package/modern/components/GridFooter.js +11 -2
  302. package/modern/components/GridRow.js +9 -5
  303. package/modern/components/GridRowCount.js +1 -0
  304. package/modern/components/GridScrollArea.js +3 -4
  305. package/modern/components/GridSelectedRowCount.js +2 -1
  306. package/modern/components/base/GridBody.js +1 -2
  307. package/modern/components/base/GridOverlays.js +2 -3
  308. package/modern/components/cell/GridActionsCell.js +14 -3
  309. package/modern/components/cell/GridCell.js +8 -8
  310. package/modern/components/cell/GridEditBooleanCell.js +101 -6
  311. package/modern/components/cell/GridEditDateCell.js +99 -5
  312. package/modern/components/cell/GridEditInputCell.js +29 -5
  313. package/modern/components/cell/GridEditSingleSelectCell.js +28 -5
  314. package/modern/components/cell/index.js +2 -0
  315. package/modern/components/columnHeaders/GridColumnHeaderItem.js +15 -16
  316. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
  317. package/modern/components/columnSelection/GridHeaderCheckbox.js +4 -5
  318. package/modern/components/containers/GridFooterContainer.js +11 -2
  319. package/modern/components/containers/GridRoot.js +25 -3
  320. package/modern/components/containers/GridRootStyles.js +36 -1
  321. package/modern/components/containers/GridToolbarContainer.js +12 -2
  322. package/modern/components/menu/GridMenu.js +1 -0
  323. package/modern/components/panel/GridPanelContent.js +13 -2
  324. package/modern/components/panel/GridPanelFooter.js +13 -2
  325. package/modern/components/panel/GridPanelHeader.js +13 -2
  326. package/modern/components/toolbar/GridToolbar.js +30 -7
  327. package/modern/components/toolbar/GridToolbarExport.js +15 -20
  328. package/modern/components/toolbar/GridToolbarQuickFilter.js +85 -0
  329. package/modern/components/toolbar/index.js +3 -2
  330. package/modern/constants/defaultGridSlotsComponents.js +4 -2
  331. package/modern/constants/gridClasses.js +1 -1
  332. package/modern/constants/localeTextConstants.js +8 -1
  333. package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +10 -9
  334. package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +6 -7
  335. package/modern/hooks/core/useGridApiInitialization.js +3 -3
  336. package/modern/hooks/core/useGridErrorHandler.js +1 -2
  337. package/modern/hooks/core/useGridStateInitialization.js +1 -2
  338. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -6
  339. package/modern/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
  340. package/modern/hooks/features/columns/useGridColumnSpanning.js +1 -2
  341. package/modern/hooks/features/columns/useGridColumns.js +8 -9
  342. package/modern/hooks/features/dimensions/useGridDimensions.js +8 -9
  343. package/modern/hooks/features/editRows/useGridCellEditing.new.js +131 -32
  344. package/modern/hooks/features/editRows/useGridCellEditing.old.js +20 -21
  345. package/modern/hooks/features/editRows/useGridEditing.old.js +4 -5
  346. package/modern/hooks/features/editRows/useGridRowEditing.new.js +120 -42
  347. package/modern/hooks/features/editRows/useGridRowEditing.old.js +21 -22
  348. package/modern/hooks/features/events/useGridEvents.js +17 -18
  349. package/modern/hooks/features/export/serializers/csvSerializer.js +5 -5
  350. package/modern/hooks/features/export/useGridCsvExport.js +21 -16
  351. package/modern/hooks/features/export/useGridPrintExport.js +20 -0
  352. package/modern/hooks/features/export/utils.js +13 -0
  353. package/modern/hooks/features/filter/gridFilterState.js +3 -1
  354. package/modern/hooks/features/filter/gridFilterUtils.js +80 -2
  355. package/modern/hooks/features/filter/useGridFilter.js +20 -8
  356. package/modern/hooks/features/focus/useGridFocus.js +29 -33
  357. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +4 -5
  358. package/modern/hooks/features/pagination/useGridPage.js +3 -4
  359. package/modern/hooks/features/pagination/useGridPageSize.js +2 -3
  360. package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -6
  361. package/modern/hooks/features/rows/gridRowsSelector.js +1 -0
  362. package/modern/hooks/features/rows/gridRowsUtils.js +77 -1
  363. package/modern/hooks/features/rows/useGridRows.js +148 -128
  364. package/modern/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
  365. package/modern/hooks/features/scroll/useGridScroll.js +6 -1
  366. package/modern/hooks/features/selection/useGridSelection.js +13 -10
  367. package/modern/hooks/features/sorting/useGridSorting.js +8 -9
  368. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +14 -5
  369. package/modern/hooks/utils/useGridApiEventHandler.js +20 -9
  370. package/modern/hooks/utils/useGridNativeEventListener.js +1 -2
  371. package/modern/hooks/utils/useGridSelector.js +1 -1
  372. package/modern/index.js +1 -1
  373. package/modern/internals/index.js +5 -2
  374. package/modern/locales/arSD.js +8 -1
  375. package/modern/locales/bgBG.js +8 -1
  376. package/modern/locales/csCZ.js +7 -0
  377. package/modern/locales/daDK.js +8 -1
  378. package/modern/locales/deDE.js +10 -3
  379. package/modern/locales/elGR.js +7 -0
  380. package/modern/locales/esES.js +7 -0
  381. package/modern/locales/faIR.js +8 -1
  382. package/modern/locales/fiFI.js +7 -0
  383. package/modern/locales/frFR.js +7 -0
  384. package/modern/locales/heIL.js +8 -1
  385. package/modern/locales/huHU.js +8 -1
  386. package/modern/locales/itIT.js +7 -0
  387. package/modern/locales/jaJP.js +7 -0
  388. package/modern/locales/koKR.js +7 -0
  389. package/modern/locales/nlNL.js +7 -0
  390. package/modern/locales/plPL.js +8 -1
  391. package/modern/locales/ptBR.js +8 -1
  392. package/modern/locales/ruRU.js +7 -0
  393. package/modern/locales/skSK.js +7 -0
  394. package/modern/locales/trTR.js +8 -1
  395. package/modern/locales/ukUA.js +7 -0
  396. package/modern/locales/viVN.js +7 -0
  397. package/modern/locales/zhCN.js +7 -0
  398. package/modern/models/events/gridEvents.js +8 -0
  399. package/modern/models/index.js +4 -3
  400. package/modern/utils/createSelector.js +20 -2
  401. package/modern/utils/exportAs.js +1 -1
  402. package/node/DataGrid/DataGrid.js +35 -1
  403. package/node/DataGrid/useDataGridProps.js +2 -1
  404. package/node/colDef/gridActionsColDef.js +2 -1
  405. package/node/colDef/gridBooleanColDef.js +2 -1
  406. package/node/colDef/gridCheckboxSelectionColDef.js +1 -0
  407. package/node/colDef/gridDateColDef.js +4 -2
  408. package/node/colDef/gridNumericColDef.js +2 -1
  409. package/node/colDef/gridNumericOperators.js +15 -1
  410. package/node/colDef/gridSingleSelectColDef.js +2 -1
  411. package/node/colDef/gridSingleSelectOperators.js +56 -1
  412. package/node/colDef/gridStringColDef.js +2 -1
  413. package/node/colDef/gridStringOperators.js +16 -1
  414. package/node/components/GridFooter.js +10 -1
  415. package/node/components/GridRow.js +9 -6
  416. package/node/components/GridRowCount.js +1 -0
  417. package/node/components/GridScrollArea.js +3 -5
  418. package/node/components/GridSelectedRowCount.js +2 -1
  419. package/node/components/base/GridBody.js +1 -3
  420. package/node/components/base/GridOverlays.js +2 -4
  421. package/node/components/cell/GridActionsCell.js +13 -4
  422. package/node/components/cell/GridCell.js +7 -7
  423. package/node/components/cell/GridEditBooleanCell.js +100 -5
  424. package/node/components/cell/GridEditDateCell.js +98 -4
  425. package/node/components/cell/GridEditInputCell.js +29 -5
  426. package/node/components/cell/GridEditSingleSelectCell.js +28 -6
  427. package/node/components/cell/index.js +26 -0
  428. package/node/components/columnHeaders/GridColumnHeaderItem.js +15 -17
  429. package/node/components/columnSelection/GridCellCheckboxRenderer.js +2 -4
  430. package/node/components/columnSelection/GridHeaderCheckbox.js +4 -6
  431. package/node/components/containers/GridFooterContainer.js +10 -1
  432. package/node/components/containers/GridRoot.js +24 -3
  433. package/node/components/containers/GridRootStyles.js +36 -1
  434. package/node/components/containers/GridToolbarContainer.js +11 -1
  435. package/node/components/menu/GridMenu.js +1 -0
  436. package/node/components/panel/GridPanelContent.js +11 -1
  437. package/node/components/panel/GridPanelFooter.js +11 -1
  438. package/node/components/panel/GridPanelHeader.js +11 -1
  439. package/node/components/toolbar/GridToolbar.js +32 -7
  440. package/node/components/toolbar/GridToolbarExport.js +14 -19
  441. package/node/components/toolbar/GridToolbarQuickFilter.js +109 -0
  442. package/node/components/toolbar/index.js +42 -11
  443. package/node/constants/defaultGridSlotsComponents.js +3 -1
  444. package/node/constants/gridClasses.js +1 -1
  445. package/node/constants/localeTextConstants.js +8 -1
  446. package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +10 -8
  447. package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +6 -8
  448. package/node/hooks/core/useGridApiInitialization.js +3 -4
  449. package/node/hooks/core/useGridErrorHandler.js +1 -3
  450. package/node/hooks/core/useGridStateInitialization.js +1 -3
  451. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -7
  452. package/node/hooks/features/columnMenu/useGridColumnMenu.js +3 -4
  453. package/node/hooks/features/columns/useGridColumnSpanning.js +1 -3
  454. package/node/hooks/features/columns/useGridColumns.js +8 -10
  455. package/node/hooks/features/dimensions/useGridDimensions.js +8 -10
  456. package/node/hooks/features/editRows/useGridCellEditing.new.js +133 -32
  457. package/node/hooks/features/editRows/useGridCellEditing.old.js +20 -22
  458. package/node/hooks/features/editRows/useGridEditing.old.js +4 -6
  459. package/node/hooks/features/editRows/useGridRowEditing.new.js +122 -43
  460. package/node/hooks/features/editRows/useGridRowEditing.old.js +21 -23
  461. package/node/hooks/features/events/useGridEvents.js +17 -19
  462. package/node/hooks/features/export/serializers/csvSerializer.js +5 -5
  463. package/node/hooks/features/export/useGridCsvExport.js +26 -17
  464. package/node/hooks/features/export/useGridPrintExport.js +25 -0
  465. package/node/hooks/features/export/utils.js +19 -2
  466. package/node/hooks/features/filter/gridFilterState.js +3 -1
  467. package/node/hooks/features/filter/gridFilterUtils.js +92 -3
  468. package/node/hooks/features/filter/useGridFilter.js +21 -9
  469. package/node/hooks/features/focus/useGridFocus.js +29 -34
  470. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +4 -6
  471. package/node/hooks/features/pagination/useGridPage.js +3 -5
  472. package/node/hooks/features/pagination/useGridPageSize.js +2 -4
  473. package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -8
  474. package/node/hooks/features/rows/gridRowsSelector.js +3 -1
  475. package/node/hooks/features/rows/gridRowsUtils.js +95 -1
  476. package/node/hooks/features/rows/useGridRows.js +150 -126
  477. package/node/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
  478. package/node/hooks/features/scroll/useGridScroll.js +6 -1
  479. package/node/hooks/features/selection/useGridSelection.js +13 -11
  480. package/node/hooks/features/sorting/useGridSorting.js +8 -10
  481. package/node/hooks/features/virtualization/useGridVirtualScroller.js +14 -6
  482. package/node/hooks/utils/useGridApiEventHandler.js +22 -10
  483. package/node/hooks/utils/useGridNativeEventListener.js +1 -3
  484. package/node/hooks/utils/useGridSelector.js +1 -1
  485. package/node/index.js +1 -1
  486. package/node/internals/index.js +39 -3
  487. package/node/locales/arSD.js +8 -1
  488. package/node/locales/bgBG.js +8 -1
  489. package/node/locales/csCZ.js +7 -0
  490. package/node/locales/daDK.js +8 -1
  491. package/node/locales/deDE.js +10 -3
  492. package/node/locales/elGR.js +7 -0
  493. package/node/locales/esES.js +7 -0
  494. package/node/locales/faIR.js +8 -1
  495. package/node/locales/fiFI.js +7 -0
  496. package/node/locales/frFR.js +7 -0
  497. package/node/locales/heIL.js +8 -1
  498. package/node/locales/huHU.js +8 -1
  499. package/node/locales/itIT.js +7 -0
  500. package/node/locales/jaJP.js +7 -0
  501. package/node/locales/koKR.js +7 -0
  502. package/node/locales/nlNL.js +7 -0
  503. package/node/locales/plPL.js +8 -1
  504. package/node/locales/ptBR.js +8 -1
  505. package/node/locales/ruRU.js +7 -0
  506. package/node/locales/skSK.js +7 -0
  507. package/node/locales/trTR.js +8 -1
  508. package/node/locales/ukUA.js +7 -0
  509. package/node/locales/viVN.js +7 -0
  510. package/node/locales/zhCN.js +7 -0
  511. package/node/models/events/gridEvents.js +8 -0
  512. package/node/models/index.js +0 -13
  513. package/node/utils/createSelector.js +25 -4
  514. package/node/utils/exportAs.js +1 -1
  515. package/package.json +3 -2
  516. package/utils/createSelector.d.ts +2 -1
  517. package/utils/createSelector.js +20 -2
  518. package/utils/exportAs.d.ts +2 -2
  519. package/utils/exportAs.js +1 -1
@@ -12,253 +12,543 @@ import type { GridRowId, GridRowTreeNodeConfig } from '../gridRows';
12
12
  import type { GridColumnVisibilityModel } from '../../hooks/features/columns';
13
13
  import type { GridStrategyProcessorName } from '../../hooks/core/strategyProcessing';
14
14
  import { GridRowEditStartParams, GridRowEditStopParams } from '../params/gridRowParams';
15
+ import { GridCellModesModel, GridRowModesModel } from '../api/gridEditingApi';
15
16
  export interface GridRowEventLookup {
17
+ /**
18
+ * Fired when a row is clicked.
19
+ * Not fired if the cell clicked is from an interactive column (actions, checkbox, etc).
20
+ */
16
21
  rowClick: {
17
22
  params: GridRowParams;
18
23
  event: React.MouseEvent<HTMLElement>;
19
24
  };
25
+ /**
26
+ * Fired when a row is double-clicked.
27
+ */
20
28
  rowDoubleClick: {
21
29
  params: GridRowParams;
22
30
  event: React.MouseEvent<HTMLElement>;
23
31
  };
32
+ /**
33
+ * Fired when the mouse enters the row. Called with a [[GridRowParams]] object.
34
+ */
24
35
  rowMouseEnter: {
25
36
  params: GridRowParams;
26
37
  event: React.MouseEvent<HTMLElement>;
27
38
  };
39
+ /**
40
+ * Fired when the mouse leaves the row. Called with a [[GridRowParams]] object.
41
+ */
28
42
  rowMouseLeave: {
29
43
  params: GridRowParams;
30
44
  event: React.MouseEvent<HTMLElement>;
31
45
  };
46
+ /**
47
+ * Fired when the user starts dragging a row. It's mapped to the `dragstart` DOM event.
48
+ * @ignore - do not document.
49
+ */
50
+ rowDragStart: {
51
+ params: GridRowParams;
52
+ event: React.DragEvent<HTMLElement>;
53
+ };
54
+ /**
55
+ * Fired while an element or text selection is dragged over the row.
56
+ * It's mapped to the `dragover` DOM event.
57
+ * @ignore - do not document.
58
+ */
59
+ rowDragOver: {
60
+ params: GridRowParams;
61
+ event: React.DragEvent<HTMLElement>;
62
+ };
63
+ /**
64
+ * Fired when the dragging of a row ends.
65
+ * @ignore - do not document.
66
+ */
67
+ rowDragEnd: {
68
+ params: GridRowParams;
69
+ event: React.DragEvent<HTMLElement>;
70
+ };
32
71
  }
33
72
  export interface GridColumnHeaderEventLookup {
73
+ /**
74
+ * Fired when a column header is clicked
75
+ */
34
76
  columnHeaderClick: {
35
77
  params: GridColumnHeaderParams;
36
78
  event: React.MouseEvent<HTMLElement>;
37
79
  };
80
+ /**
81
+ * Fired when a column header is double-clicked.
82
+ */
38
83
  columnHeaderDoubleClick: {
39
84
  params: GridColumnHeaderParams;
40
85
  event: React.MouseEvent<HTMLElement>;
41
86
  };
87
+ /**
88
+ * Fired when a `mouseover` event happens in a column header.
89
+ * @ignore - do not document.
90
+ */
42
91
  columnHeaderOver: {
43
92
  params: GridColumnHeaderParams;
44
93
  event: React.MouseEvent<HTMLElement>;
45
94
  };
95
+ /**
96
+ * Fired when a `mouseout` event happens in a column header.
97
+ * @ignore - do not document.
98
+ */
46
99
  columnHeaderOut: {
47
100
  params: GridColumnHeaderParams;
48
101
  event: React.MouseEvent<HTMLElement>;
49
102
  };
103
+ /**
104
+ * Fired when a `mouseenter` event happens in a column header.
105
+ * @ignore - do not document.
106
+ */
50
107
  columnHeaderEnter: {
51
108
  params: GridColumnHeaderParams;
52
109
  event: React.MouseEvent<HTMLElement>;
53
110
  };
111
+ /**
112
+ * Fired when a `mouseleave` event happens in a column header.
113
+ * @ignore - do not document.*
114
+ */
54
115
  columnHeaderLeave: {
55
116
  params: GridColumnHeaderParams;
56
117
  event: React.MouseEvent<HTMLElement>;
57
118
  };
119
+ /**
120
+ * Fired when a key is pressed in a column header. It's mapped do the `keydown` DOM event.
121
+ */
58
122
  columnHeaderKeyDown: {
59
123
  params: GridColumnHeaderParams;
60
124
  event: React.KeyboardEvent<HTMLElement>;
61
125
  };
126
+ /**
127
+ * Fired when a column header gains focus.
128
+ * @ignore - do not document.
129
+ */
62
130
  columnHeaderFocus: {
63
131
  params: GridColumnHeaderParams;
64
132
  event: React.FocusEvent<HTMLElement>;
65
133
  };
134
+ /**
135
+ * Fired when a column header loses focus.
136
+ * @ignore - do not document.
137
+ */
66
138
  columnHeaderBlur: {
67
139
  params: GridColumnHeaderParams;
68
140
  event: React.FocusEvent<HTMLElement>;
69
141
  };
142
+ /**
143
+ * Fired when the user starts dragging a column header. It's mapped to the `dragstart` DOM event.
144
+ * @ignore - do not document.
145
+ */
70
146
  columnHeaderDragStart: {
71
147
  params: GridColumnHeaderParams;
72
148
  event: React.DragEvent<HTMLElement>;
73
149
  };
150
+ /**
151
+ * Fired when the dragged column header enters a valid drop target.
152
+ * It's mapped to the `dragend` DOM event.
153
+ * @ignore - do not document.
154
+ */
74
155
  columnHeaderDragEnter: {
75
156
  params: GridColumnHeaderParams;
76
157
  event: React.DragEvent<HTMLElement>;
77
158
  };
159
+ /**
160
+ * Fired while an element or text selection is dragged over the column header.
161
+ * It's mapped to the `dragover` DOM event.
162
+ * @ignore - do not document.
163
+ */
78
164
  columnHeaderDragOver: {
79
165
  params: GridColumnHeaderParams;
80
166
  event: React.DragEvent<HTMLElement>;
81
167
  };
168
+ /**
169
+ * Fired when the dragging of a column header ends.
170
+ * @ignore - do not document.
171
+ */
82
172
  columnHeaderDragEnd: {
83
173
  params: GridColumnHeaderParams;
84
174
  event: React.DragEvent<HTMLElement>;
85
175
  };
176
+ /**
177
+ * Fired when a `mousedown` DOM event happens in the column header separator.
178
+ * @ignore - do not document.
179
+ */
86
180
  columnSeparatorMouseDown: {
87
181
  params: GridColumnHeaderParams;
88
182
  event: React.MouseEvent<HTMLElement>;
89
183
  };
90
184
  }
91
185
  export interface GridCellEventLookup {
186
+ /**
187
+ * Fired when a cell is clicked.
188
+ */
92
189
  cellClick: {
93
190
  params: GridCellParams;
94
191
  event: React.MouseEvent<HTMLElement>;
95
192
  };
193
+ /**
194
+ * Fired when a cell is double-clicked.
195
+ */
96
196
  cellDoubleClick: {
97
197
  params: GridCellParams;
98
198
  event: React.MouseEvent<HTMLElement>;
99
199
  };
200
+ /**
201
+ * Fired when a `mousedown` event happens in a cell.
202
+ */
100
203
  cellMouseDown: {
101
204
  params: GridCellParams;
102
205
  event: React.MouseEvent<HTMLElement>;
103
206
  };
207
+ /**
208
+ * Fired when a `mouseup` event happens in a cell.
209
+ */
104
210
  cellMouseUp: {
105
211
  params: GridCellParams;
106
212
  event: React.MouseEvent<HTMLElement>;
107
213
  };
214
+ /**
215
+ * Fired when a `keydown` event happens in a cell.
216
+ */
108
217
  cellKeyDown: {
109
218
  params: GridCellParams;
110
219
  event: React.KeyboardEvent<HTMLElement>;
111
220
  };
221
+ /**
222
+ * Fired when the dragged cell enters a valid drop target. It's mapped to the `dragend` DOM event.
223
+ * @ignore - do not document.
224
+ */
112
225
  cellDragEnter: {
113
226
  params: GridCellParams;
114
227
  event: React.DragEvent<HTMLElement>;
115
228
  };
229
+ /**
230
+ * Fired while an element or text selection is dragged over the cell.
231
+ * It's mapped to the `dragover` DOM event.
232
+ * @ignore - do not document.
233
+ */
116
234
  cellDragOver: {
117
235
  params: GridCellParams;
118
236
  event: React.DragEvent<HTMLElement>;
119
237
  };
120
238
  }
121
239
  export interface GridControlledStateEventLookup {
240
+ /**
241
+ * Fired when the page size changes.
242
+ */
122
243
  pageSizeChange: {
123
244
  params: number;
124
245
  };
246
+ /**
247
+ * Fired when the page changes.
248
+ */
125
249
  pageChange: {
126
250
  params: number;
127
251
  };
252
+ /**
253
+ * Fired when the filter model changes.
254
+ */
128
255
  filterModelChange: {
129
256
  params: GridFilterModel;
130
257
  };
258
+ /**
259
+ * Fired when the sort model changes.
260
+ */
131
261
  sortModelChange: {
132
262
  params: GridSortModel;
133
263
  };
264
+ /**
265
+ * Fired when the row editing model changes.
266
+ */
134
267
  editRowsModelChange: {
135
268
  params: GridEditRowsModel;
136
269
  };
270
+ /**
271
+ * Fired when the selection state of one or multiple rows changes.
272
+ */
137
273
  selectionChange: {
138
274
  params: GridSelectionModel;
139
275
  };
276
+ /**
277
+ * Fired when the column visibility model changes.
278
+ */
140
279
  columnVisibilityModelChange: {
141
280
  params: GridColumnVisibilityModel;
142
281
  };
143
- detailPanelsExpandedRowIdsChange: {
144
- params: GridRowId[];
145
- };
146
282
  }
147
283
  export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEventLookup, GridCellEventLookup, GridControlledStateEventLookup {
284
+ /**
285
+ * Fired when the grid is unmounted.
286
+ */
148
287
  unmount: {};
288
+ /**
289
+ * Fired when an exception is thrown in the grid.
290
+ */
149
291
  componentError: {
150
292
  params: any;
151
293
  };
294
+ /**
295
+ * Fired when the state of the grid is updated.
296
+ */
152
297
  stateChange: {
153
298
  params: any;
154
299
  };
300
+ /**
301
+ * Fired when the grid is resized.
302
+ */
155
303
  resize: {
156
304
  params: ElementSize;
157
305
  };
306
+ /**
307
+ * Fired when the inner size of the viewport changes. Called with an [[ElementSize]] object.
308
+ */
158
309
  viewportInnerSizeChange: {
159
310
  params: ElementSize;
160
311
  };
312
+ /**
313
+ * Fired when the grid is resized with a debounced time of 60ms.
314
+ */
161
315
  debouncedResize: {
162
316
  params: ElementSize;
163
317
  };
318
+ /**
319
+ * Fired when a processor of the active strategy changes.
320
+ * @ignore - do not document.
321
+ */
164
322
  activeStrategyProcessorChange: {
165
323
  params: GridStrategyProcessorName;
166
324
  };
325
+ /**
326
+ * Fired when the callback to decide if a strategy is available or not changes.
327
+ * @ignore - do not document.
328
+ */
167
329
  strategyAvailabilityChange: {};
330
+ /**
331
+ * Fired when the columns state is changed.
332
+ */
168
333
  columnsChange: {
169
334
  params: string[];
170
335
  };
336
+ /**
337
+ * Fired when the width of a column is changed.
338
+ */
171
339
  columnWidthChange: {
172
340
  params: GridColumnResizeParams;
173
341
  event: MouseEvent | {};
174
342
  };
343
+ /**
344
+ * Fired when the user starts resizing a column.
345
+ */
175
346
  columnResizeStart: {
176
347
  params: {
177
348
  field: string;
178
349
  };
179
350
  event: React.MouseEvent<HTMLElement>;
180
351
  };
352
+ /**
353
+ * Fired when the user stops resizing a column.
354
+ */
181
355
  columnResizeStop: {
182
356
  params: null;
183
357
  event: MouseEvent;
184
358
  };
359
+ /**
360
+ * Fired when a column visibility changes.
361
+ * It is not fired when the `columnVisibilityModel` is controlled or initialized.
362
+ * It is not fired when toggling all column's visibility at once.
363
+ * @deprecated Use `'columnVisibilityModelChange'` instead.
364
+ */
185
365
  columnVisibilityChange: {
186
366
  params: GridColumnVisibilityChangeParams;
187
367
  };
368
+ /**
369
+ * Fired during the resizing of a column.
370
+ */
188
371
  columnResize: {
189
372
  params: GridColumnResizeParams;
190
373
  event: MouseEvent;
191
374
  };
375
+ /**
376
+ * Fired when the user ends reordering a column.
377
+ */
192
378
  columnOrderChange: {
193
379
  params: GridColumnOrderChangeParams;
194
380
  };
381
+ /**
382
+ * Fired when the rows are updated.
383
+ * @ignore - do not document.
384
+ */
195
385
  rowsSet: {};
386
+ /**
387
+ * Fired when the filtered rows are updated
388
+ * @ignore - do not document.
389
+ */
196
390
  filteredRowsSet: {};
391
+ /**
392
+ * Fired when the sorted rows are updated
393
+ * @ignore - do not document
394
+ */
197
395
  sortedRowsSet: {};
396
+ /**
397
+ * Fired when the expansion of a row is changed. Called with a [[GridRowTreeNodeConfig]] object.
398
+ * @ignore - do not document.
399
+ */
198
400
  rowExpansionChange: {
199
401
  params: GridRowTreeNodeConfig;
200
402
  };
403
+ /**
404
+ * Fired when the mode of a cell changes.
405
+ * @ignore - do not document
406
+ */
201
407
  cellModeChange: {
202
408
  params: GridCellParams;
203
409
  };
410
+ /**
411
+ * Fired when the model that controls the cell modes changes.
412
+ */
413
+ cellModesModelChange: {
414
+ params: GridCellModesModel;
415
+ };
416
+ /**
417
+ * Fired when the model that controls the row modes changes.
418
+ */
419
+ rowModesModelChange: {
420
+ params: GridRowModesModel;
421
+ };
422
+ /**
423
+ * Fired when the cell turns to edit mode.
424
+ */
204
425
  cellEditStart: {
205
426
  params: GridCellEditStartParams;
206
427
  event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
207
428
  };
429
+ /**
430
+ * Fired when the cell turns back to view mode.
431
+ */
208
432
  cellEditStop: {
209
433
  params: GridCellEditStopParams;
210
434
  event: MuiBaseEvent;
211
435
  };
436
+ /**
437
+ * Fired when the props of the edit input are committed.
438
+ */
212
439
  cellEditCommit: {
213
440
  params: GridCellEditCommitParams;
214
441
  event: MuiBaseEvent;
215
442
  };
443
+ /**
444
+ * Fired when the props of the edit cell changes.
445
+ */
216
446
  editCellPropsChange: {
217
447
  params: GridEditCellPropsParams;
218
448
  event: React.SyntheticEvent<HTMLElement> | {};
219
449
  };
450
+ /**
451
+ * Fired when the row turns to edit mode.
452
+ */
220
453
  rowEditStart: {
221
454
  params: GridRowEditStartParams;
222
455
  event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
223
456
  };
457
+ /**
458
+ * Fired when the row turns back to view mode.
459
+ */
224
460
  rowEditStop: {
225
461
  params: GridRowEditStopParams;
226
462
  event: MuiBaseEvent;
227
463
  };
464
+ /**
465
+ * Fired when the props of the edit input are committed.
466
+ */
228
467
  rowEditCommit: {
229
468
  params: GridRowId;
230
469
  event: MuiBaseEvent;
231
470
  };
471
+ /**
472
+ * Fired when a cell gains focus.
473
+ */
232
474
  cellFocusIn: {
233
475
  params: GridCellParams;
234
476
  };
477
+ /**
478
+ * Fired when a cell loses focus.
479
+ */
235
480
  cellFocusOut: {
236
481
  params: GridCellParams;
237
482
  event: MuiBaseEvent;
238
483
  };
484
+ /**
485
+ * Fired when a [navigation key](/x/react-data-grid/accessibility#keyboard-navigation) is pressed in a cell.
486
+ * @ignore - do not document.
487
+ */
239
488
  cellNavigationKeyDown: {
240
489
  params: GridCellParams | GridRowParams;
241
490
  event: React.KeyboardEvent<HTMLElement>;
242
491
  };
492
+ /**
493
+ * Fired when a [navigation key](/x/react-data-grid/accessibility#keyboard-navigation) is pressed in a column header.
494
+ * @ignore - do not document.
495
+ */
243
496
  columnHeaderNavigationKeyDown: {
244
497
  params: GridColumnHeaderParams;
245
498
  event: React.KeyboardEvent<HTMLElement>;
246
499
  };
500
+ /**
501
+ * Fired during the scroll of the grid viewport.
502
+ */
247
503
  rowsScroll: {
248
504
  params: GridScrollParams;
249
505
  event: React.UIEvent | MuiBaseEvent;
250
506
  };
507
+ /**
508
+ * Fired when the content size used by the `GridVirtualScroller` changes.
509
+ * @ignore - do not document.
510
+ */
251
511
  virtualScrollerContentSizeChange: {};
512
+ /**
513
+ * Fired when the content is scrolled by the mouse wheel.
514
+ * It's attached to the "mousewheel" event.
515
+ * @ignore - do not document.
516
+ */
517
+ virtualScrollerWheel: {
518
+ params: {};
519
+ event: React.WheelEvent;
520
+ };
521
+ /**
522
+ * Fired when the content is moved using a touch device.
523
+ * It's attached to the "touchmove" event.
524
+ * @ignore - do not document.
525
+ */
526
+ virtualScrollerTouchMove: {
527
+ params: {};
528
+ event: React.TouchEvent;
529
+ };
530
+ /**
531
+ * Fired when the value of the selection checkbox of the header is changed
532
+ */
252
533
  headerSelectionCheckboxChange: {
253
534
  params: GridHeaderSelectionCheckboxParams;
254
535
  };
536
+ /**
537
+ * Fired when the value of the selection checkbox of a row is changed
538
+ */
255
539
  rowSelectionCheckboxChange: {
256
540
  params: GridRowSelectionCheckboxParams;
257
541
  event: React.ChangeEvent<HTMLElement>;
258
542
  };
543
+ /**
544
+ * Fired when the preference panel is closed.
545
+ */
259
546
  preferencePanelClose: {
260
547
  params: GridPreferencePanelParams;
261
548
  };
549
+ /**
550
+ * Fired when the preference panel is opened.
551
+ */
262
552
  preferencePanelOpen: {
263
553
  params: GridPreferencePanelParams;
264
554
  };