@mui/x-data-grid 9.5.0 → 9.7.0

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 (383) hide show
  1. package/CHANGELOG.md +261 -0
  2. package/DataGrid/DataGrid.js +75 -14
  3. package/DataGrid/DataGrid.mjs +75 -14
  4. package/colDef/gridDateOperators.d.mts +1 -1
  5. package/colDef/gridDateOperators.d.ts +1 -1
  6. package/components/GridColumnHeaders.d.mts +1 -1
  7. package/components/GridColumnHeaders.d.ts +1 -1
  8. package/components/GridColumnHeaders.js +1 -1
  9. package/components/GridColumnHeaders.mjs +1 -1
  10. package/components/GridColumnUnsortedIcon.js +1 -1
  11. package/components/GridColumnUnsortedIcon.mjs +1 -1
  12. package/components/GridFooter.d.mts +1 -1
  13. package/components/GridFooter.d.ts +1 -1
  14. package/components/GridFooter.js +1 -1
  15. package/components/GridFooter.mjs +1 -1
  16. package/components/GridLoadingOverlay.d.mts +1 -1
  17. package/components/GridLoadingOverlay.d.ts +1 -1
  18. package/components/GridLoadingOverlay.js +1 -1
  19. package/components/GridLoadingOverlay.mjs +1 -1
  20. package/components/GridNoColumnsOverlay.d.mts +1 -1
  21. package/components/GridNoColumnsOverlay.d.ts +1 -1
  22. package/components/GridNoColumnsOverlay.js +1 -1
  23. package/components/GridNoColumnsOverlay.mjs +1 -1
  24. package/components/GridNoResultsOverlay.d.mts +1 -1
  25. package/components/GridNoResultsOverlay.d.ts +1 -1
  26. package/components/GridNoRowsOverlay.d.mts +1 -1
  27. package/components/GridNoRowsOverlay.d.ts +1 -1
  28. package/components/GridNoRowsOverlay.js +1 -1
  29. package/components/GridNoRowsOverlay.mjs +1 -1
  30. package/components/GridRow.js +1 -1
  31. package/components/GridRow.mjs +1 -1
  32. package/components/GridRowCount.d.mts +1 -1
  33. package/components/GridRowCount.d.ts +1 -1
  34. package/components/GridRowCount.js +1 -1
  35. package/components/GridRowCount.mjs +1 -1
  36. package/components/GridRowDragAndDropOverlay.d.mts +1 -1
  37. package/components/GridRowDragAndDropOverlay.d.ts +1 -1
  38. package/components/GridSelectedRowCount.d.mts +1 -1
  39. package/components/GridSelectedRowCount.d.ts +1 -1
  40. package/components/GridSelectedRowCount.js +1 -1
  41. package/components/GridSelectedRowCount.mjs +1 -1
  42. package/components/GridShadowScrollArea.js +1 -1
  43. package/components/GridShadowScrollArea.mjs +1 -1
  44. package/components/cell/GridActionsCell.d.mts +1 -1
  45. package/components/cell/GridActionsCell.d.ts +1 -1
  46. package/components/cell/GridActionsCell.js +83 -3
  47. package/components/cell/GridActionsCell.mjs +83 -3
  48. package/components/cell/GridActionsCellItem.js +75 -1
  49. package/components/cell/GridActionsCellItem.mjs +74 -0
  50. package/components/cell/GridBooleanCell.js +1 -1
  51. package/components/cell/GridBooleanCell.mjs +1 -1
  52. package/components/cell/GridCell.d.mts +1 -1
  53. package/components/cell/GridCell.d.ts +1 -1
  54. package/components/cell/GridCell.js +3 -11
  55. package/components/cell/GridCell.mjs +3 -11
  56. package/components/cell/GridEditBooleanCell.js +1 -1
  57. package/components/cell/GridEditBooleanCell.mjs +1 -1
  58. package/components/cell/GridEditDateCell.js +1 -1
  59. package/components/cell/GridEditDateCell.mjs +1 -1
  60. package/components/cell/GridEditInputCell.js +68 -0
  61. package/components/cell/GridEditInputCell.mjs +68 -0
  62. package/components/cell/GridEditLongTextCell.d.mts +3 -0
  63. package/components/cell/GridEditLongTextCell.d.ts +3 -0
  64. package/components/cell/GridEditLongTextCell.js +141 -0
  65. package/components/cell/GridEditLongTextCell.mjs +141 -0
  66. package/components/cell/GridEditSingleSelectCell.js +1 -1
  67. package/components/cell/GridEditSingleSelectCell.mjs +1 -1
  68. package/components/cell/GridFooterCell.d.mts +1 -1
  69. package/components/cell/GridFooterCell.d.ts +1 -1
  70. package/components/cell/GridLongTextCell.d.mts +3 -0
  71. package/components/cell/GridLongTextCell.d.ts +3 -0
  72. package/components/cell/GridLongTextCell.js +66 -0
  73. package/components/cell/GridLongTextCell.mjs +66 -0
  74. package/components/cell/GridSkeletonCell.js +3 -2
  75. package/components/cell/GridSkeletonCell.mjs +3 -2
  76. package/components/columnHeaders/GridBaseColumnHeaders.d.mts +1 -1
  77. package/components/columnHeaders/GridBaseColumnHeaders.d.ts +1 -1
  78. package/components/columnHeaders/GridColumnGroupHeader.js +2 -10
  79. package/components/columnHeaders/GridColumnGroupHeader.mjs +2 -10
  80. package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +2 -2
  81. package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +2 -2
  82. package/components/columnHeaders/GridColumnHeaderItem.js +3 -11
  83. package/components/columnHeaders/GridColumnHeaderItem.mjs +3 -11
  84. package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  85. package/components/columnHeaders/GridColumnHeaderSeparator.mjs +1 -1
  86. package/components/columnHeaders/GridColumnHeaderSortIcon.d.mts +1 -1
  87. package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -1
  88. package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
  89. package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +1 -1
  90. package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  91. package/components/columnHeaders/GridColumnHeaderTitle.mjs +1 -1
  92. package/components/columnHeaders/GridGenericColumnHeaderItem.d.mts +1 -1
  93. package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +1 -1
  94. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  95. package/components/columnSelection/GridCellCheckboxRenderer.mjs +1 -1
  96. package/components/columnSelection/GridHeaderCheckbox.js +1 -1
  97. package/components/columnSelection/GridHeaderCheckbox.mjs +1 -1
  98. package/components/columnSelection/GridRowCheckbox.js +1 -1
  99. package/components/columnSelection/GridRowCheckbox.mjs +1 -1
  100. package/components/columnsManagement/GridColumnsManagement.js +1 -1
  101. package/components/columnsManagement/GridColumnsManagement.mjs +1 -1
  102. package/components/columnsPanel/ColumnsPanelTrigger.d.mts +1 -1
  103. package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
  104. package/components/columnsPanel/ColumnsPanelTrigger.js +3 -3
  105. package/components/columnsPanel/ColumnsPanelTrigger.mjs +3 -3
  106. package/components/containers/GridFooterContainer.d.mts +1 -1
  107. package/components/containers/GridFooterContainer.d.ts +1 -1
  108. package/components/containers/GridFooterContainer.js +1 -1
  109. package/components/containers/GridFooterContainer.mjs +1 -1
  110. package/components/containers/GridOverlay.d.mts +1 -1
  111. package/components/containers/GridOverlay.d.ts +1 -1
  112. package/components/containers/GridOverlay.js +1 -1
  113. package/components/containers/GridOverlay.mjs +1 -1
  114. package/components/containers/GridRoot.js +1 -1
  115. package/components/containers/GridRoot.mjs +1 -1
  116. package/components/containers/GridRootStyles.js +3 -2
  117. package/components/containers/GridRootStyles.mjs +3 -2
  118. package/components/containers/GridToolbarContainer.d.mts +1 -1
  119. package/components/containers/GridToolbarContainer.d.ts +1 -1
  120. package/components/containers/GridToolbarContainer.js +1 -1
  121. package/components/containers/GridToolbarContainer.mjs +1 -1
  122. package/components/export/ExportCsv.d.mts +1 -1
  123. package/components/export/ExportCsv.d.ts +1 -1
  124. package/components/export/ExportCsv.js +1 -1
  125. package/components/export/ExportCsv.mjs +1 -1
  126. package/components/export/ExportPrint.d.mts +1 -1
  127. package/components/export/ExportPrint.d.ts +1 -1
  128. package/components/export/ExportPrint.js +1 -1
  129. package/components/export/ExportPrint.mjs +1 -1
  130. package/components/filterPanel/FilterPanelTrigger.d.mts +1 -1
  131. package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
  132. package/components/filterPanel/FilterPanelTrigger.js +3 -3
  133. package/components/filterPanel/FilterPanelTrigger.mjs +3 -3
  134. package/components/menu/GridMenu.js +1 -1
  135. package/components/menu/GridMenu.mjs +1 -1
  136. package/components/menu/columnMenu/GridColumnHeaderMenu.d.mts +1 -1
  137. package/components/menu/columnMenu/GridColumnHeaderMenu.d.ts +1 -1
  138. package/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  139. package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +1 -1
  140. package/components/menu/columnMenu/GridColumnMenu.js +2 -2
  141. package/components/menu/columnMenu/GridColumnMenu.mjs +2 -2
  142. package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  143. package/components/menu/columnMenu/GridColumnMenuContainer.mjs +1 -1
  144. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  145. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +1 -1
  146. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  147. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.mjs +1 -1
  148. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  149. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.mjs +1 -1
  150. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  151. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.mjs +1 -1
  152. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  153. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.mjs +1 -1
  154. package/components/panel/GridColumnsPanel.d.mts +1 -1
  155. package/components/panel/GridColumnsPanel.d.ts +1 -1
  156. package/components/panel/GridPanel.js +1 -1
  157. package/components/panel/GridPanel.mjs +1 -1
  158. package/components/panel/GridPanelContent.d.mts +1 -1
  159. package/components/panel/GridPanelContent.d.ts +1 -1
  160. package/components/panel/GridPanelContent.js +1 -1
  161. package/components/panel/GridPanelContent.mjs +1 -1
  162. package/components/panel/GridPanelContext.d.mts +9 -3
  163. package/components/panel/GridPanelContext.d.ts +9 -3
  164. package/components/panel/GridPanelContext.js +40 -7
  165. package/components/panel/GridPanelContext.mjs +40 -7
  166. package/components/panel/GridPanelFooter.d.mts +1 -1
  167. package/components/panel/GridPanelFooter.d.ts +1 -1
  168. package/components/panel/GridPanelFooter.js +1 -1
  169. package/components/panel/GridPanelFooter.mjs +1 -1
  170. package/components/panel/GridPanelHeader.d.mts +1 -1
  171. package/components/panel/GridPanelHeader.d.ts +1 -1
  172. package/components/panel/GridPanelHeader.js +1 -1
  173. package/components/panel/GridPanelHeader.mjs +1 -1
  174. package/components/panel/GridPanelWrapper.d.mts +1 -1
  175. package/components/panel/GridPanelWrapper.d.ts +1 -1
  176. package/components/panel/GridPreferencesPanel.js +4 -6
  177. package/components/panel/GridPreferencesPanel.mjs +4 -6
  178. package/components/panel/filterPanel/GridFilterForm.d.mts +2 -1
  179. package/components/panel/filterPanel/GridFilterForm.d.ts +2 -1
  180. package/components/panel/filterPanel/GridFilterForm.js +1 -1
  181. package/components/panel/filterPanel/GridFilterForm.mjs +1 -1
  182. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  183. package/components/panel/filterPanel/GridFilterInputBoolean.mjs +1 -1
  184. package/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  185. package/components/panel/filterPanel/GridFilterInputDate.mjs +1 -1
  186. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  187. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +1 -1
  188. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  189. package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +1 -1
  190. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
  191. package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +1 -1
  192. package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  193. package/components/panel/filterPanel/GridFilterInputValue.mjs +1 -1
  194. package/components/panel/filterPanel/GridFilterPanel.d.mts +2 -2
  195. package/components/panel/filterPanel/GridFilterPanel.d.ts +2 -2
  196. package/components/panel/filterPanel/GridFilterPanel.js +1 -1
  197. package/components/panel/filterPanel/GridFilterPanel.mjs +1 -1
  198. package/components/quickFilter/QuickFilter.d.mts +2 -2
  199. package/components/quickFilter/QuickFilter.d.ts +2 -2
  200. package/components/quickFilter/QuickFilter.js +1 -1
  201. package/components/quickFilter/QuickFilter.mjs +1 -1
  202. package/components/quickFilter/QuickFilterClear.d.mts +2 -2
  203. package/components/quickFilter/QuickFilterClear.d.ts +2 -2
  204. package/components/quickFilter/QuickFilterClear.js +1 -1
  205. package/components/quickFilter/QuickFilterClear.mjs +1 -1
  206. package/components/quickFilter/QuickFilterControl.d.mts +2 -2
  207. package/components/quickFilter/QuickFilterControl.d.ts +2 -2
  208. package/components/quickFilter/QuickFilterControl.js +1 -1
  209. package/components/quickFilter/QuickFilterControl.mjs +1 -1
  210. package/components/quickFilter/QuickFilterTrigger.d.mts +2 -2
  211. package/components/quickFilter/QuickFilterTrigger.d.ts +2 -2
  212. package/components/quickFilter/QuickFilterTrigger.js +1 -1
  213. package/components/quickFilter/QuickFilterTrigger.mjs +1 -1
  214. package/components/toolbar/GridToolbar.d.mts +3 -3
  215. package/components/toolbar/GridToolbar.d.ts +3 -3
  216. package/components/toolbar/GridToolbar.js +1 -1
  217. package/components/toolbar/GridToolbar.mjs +1 -1
  218. package/components/toolbar/GridToolbarColumnsButton.js +3 -3
  219. package/components/toolbar/GridToolbarColumnsButton.mjs +3 -3
  220. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  221. package/components/toolbar/GridToolbarDensitySelector.mjs +1 -1
  222. package/components/toolbar/GridToolbarExport.js +3 -3
  223. package/components/toolbar/GridToolbarExport.mjs +3 -3
  224. package/components/toolbar/GridToolbarExportContainer.js +1 -1
  225. package/components/toolbar/GridToolbarExportContainer.mjs +1 -1
  226. package/components/toolbar/GridToolbarFilterButton.js +3 -3
  227. package/components/toolbar/GridToolbarFilterButton.mjs +3 -3
  228. package/components/toolbar/GridToolbarQuickFilter.js +1 -1
  229. package/components/toolbar/GridToolbarQuickFilter.mjs +1 -1
  230. package/components/toolbarV8/GridToolbar.js +8 -3
  231. package/components/toolbarV8/GridToolbar.mjs +8 -3
  232. package/components/toolbarV8/Toolbar.d.mts +1 -1
  233. package/components/toolbarV8/Toolbar.d.ts +1 -1
  234. package/components/toolbarV8/Toolbar.js +1 -1
  235. package/components/toolbarV8/Toolbar.mjs +1 -1
  236. package/components/toolbarV8/ToolbarButton.d.mts +1 -1
  237. package/components/toolbarV8/ToolbarButton.d.ts +1 -1
  238. package/components/toolbarV8/ToolbarButton.js +1 -1
  239. package/components/toolbarV8/ToolbarButton.mjs +1 -1
  240. package/components/virtualization/GridVirtualScrollbar.js +8 -1
  241. package/components/virtualization/GridVirtualScrollbar.mjs +8 -1
  242. package/components/virtualization/GridVirtualScroller.js +12 -0
  243. package/components/virtualization/GridVirtualScroller.mjs +12 -0
  244. package/components/virtualization/GridVirtualScrollerContent.d.mts +1 -1
  245. package/components/virtualization/GridVirtualScrollerContent.d.ts +1 -1
  246. package/components/virtualization/GridVirtualScrollerRenderZone.d.mts +1 -1
  247. package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +1 -1
  248. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +7 -1
  249. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.mjs +7 -1
  250. package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.mts +1 -1
  251. package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +1 -1
  252. package/hooks/features/columnHeaders/useGridColumnHeaders.d.mts +2 -1
  253. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +2 -1
  254. package/hooks/features/columnResize/useGridColumnResize.js +56 -2
  255. package/hooks/features/columnResize/useGridColumnResize.mjs +57 -3
  256. package/hooks/features/columns/gridColumnsSelector.d.mts +1 -1
  257. package/hooks/features/columns/gridColumnsSelector.d.ts +1 -1
  258. package/hooks/features/dimensions/useGridDimensions.js +3 -3
  259. package/hooks/features/dimensions/useGridDimensions.mjs +3 -3
  260. package/hooks/features/editing/gridEditingSelectors.d.mts +1 -1
  261. package/hooks/features/editing/gridEditingSelectors.d.ts +1 -1
  262. package/hooks/features/editing/gridEditingSelectors.mjs +0 -1
  263. package/hooks/features/editing/utils.d.mts +1 -1
  264. package/hooks/features/editing/utils.d.ts +1 -1
  265. package/hooks/features/editing/utils.js +1 -1
  266. package/hooks/features/editing/utils.mjs +1 -1
  267. package/hooks/features/filter/gridFilterState.d.mts +1 -1
  268. package/hooks/features/filter/gridFilterState.d.ts +1 -1
  269. package/hooks/features/filter/gridFilterUtils.d.mts +2 -2
  270. package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
  271. package/hooks/features/focus/useGridFocus.js +2 -10
  272. package/hooks/features/focus/useGridFocus.mjs +2 -10
  273. package/hooks/features/rowSelection/useGridRowSelection.js +0 -3
  274. package/hooks/features/rowSelection/useGridRowSelection.mjs +0 -3
  275. package/hooks/features/rows/gridRowSpanningUtils.d.mts +1 -1
  276. package/hooks/features/rows/gridRowSpanningUtils.d.ts +1 -1
  277. package/hooks/features/rows/gridRowSpanningUtils.js +1 -1
  278. package/hooks/features/rows/gridRowSpanningUtils.mjs +1 -1
  279. package/hooks/features/rows/gridRowsUtils.d.mts +1 -1
  280. package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
  281. package/hooks/features/rows/gridRowsUtils.js +5 -3
  282. package/hooks/features/rows/gridRowsUtils.mjs +5 -3
  283. package/hooks/features/virtualization/useGridVirtualization.d.mts +1 -1
  284. package/hooks/features/virtualization/useGridVirtualization.d.ts +1 -1
  285. package/hooks/features/virtualization/useGridVirtualization.js +2 -2
  286. package/hooks/features/virtualization/useGridVirtualization.mjs +2 -2
  287. package/hooks/utils/useGridSelector.js +1 -1
  288. package/hooks/utils/useGridSelector.mjs +1 -1
  289. package/index.js +1 -1
  290. package/index.mjs +1 -1
  291. package/locales/arSD.d.mts +1 -1
  292. package/locales/arSD.d.ts +1 -1
  293. package/locales/beBY.d.mts +1 -1
  294. package/locales/beBY.d.ts +1 -1
  295. package/locales/bgBG.d.mts +1 -1
  296. package/locales/bgBG.d.ts +1 -1
  297. package/locales/bnBD.d.mts +1 -1
  298. package/locales/bnBD.d.ts +1 -1
  299. package/locales/caES.d.mts +1 -1
  300. package/locales/caES.d.ts +1 -1
  301. package/locales/csCZ.d.mts +1 -1
  302. package/locales/csCZ.d.ts +1 -1
  303. package/locales/daDK.d.mts +1 -1
  304. package/locales/daDK.d.ts +1 -1
  305. package/locales/deDE.d.mts +1 -1
  306. package/locales/deDE.d.ts +1 -1
  307. package/locales/elGR.d.mts +1 -1
  308. package/locales/elGR.d.ts +1 -1
  309. package/locales/enUS.d.mts +1 -1
  310. package/locales/enUS.d.ts +1 -1
  311. package/locales/esES.d.mts +1 -1
  312. package/locales/esES.d.ts +1 -1
  313. package/locales/faIR.d.mts +1 -1
  314. package/locales/faIR.d.ts +1 -1
  315. package/locales/fiFI.d.mts +1 -1
  316. package/locales/fiFI.d.ts +1 -1
  317. package/locales/frFR.d.mts +1 -1
  318. package/locales/frFR.d.ts +1 -1
  319. package/locales/heIL.d.mts +1 -1
  320. package/locales/heIL.d.ts +1 -1
  321. package/locales/huHU.d.mts +1 -1
  322. package/locales/huHU.d.ts +1 -1
  323. package/locales/hyAM.d.mts +1 -1
  324. package/locales/hyAM.d.ts +1 -1
  325. package/locales/idID.d.mts +1 -1
  326. package/locales/idID.d.ts +1 -1
  327. package/locales/isIS.d.mts +1 -1
  328. package/locales/isIS.d.ts +1 -1
  329. package/locales/itIT.d.mts +1 -1
  330. package/locales/itIT.d.ts +1 -1
  331. package/locales/jaJP.d.mts +1 -1
  332. package/locales/jaJP.d.ts +1 -1
  333. package/locales/koKR.d.mts +1 -1
  334. package/locales/koKR.d.ts +1 -1
  335. package/locales/nbNO.d.mts +1 -1
  336. package/locales/nbNO.d.ts +1 -1
  337. package/locales/nlNL.d.mts +1 -1
  338. package/locales/nlNL.d.ts +1 -1
  339. package/locales/nnNO.d.mts +1 -1
  340. package/locales/nnNO.d.ts +1 -1
  341. package/locales/plPL.d.mts +1 -1
  342. package/locales/plPL.d.ts +1 -1
  343. package/locales/ptBR.d.mts +1 -1
  344. package/locales/ptBR.d.ts +1 -1
  345. package/locales/ptPT.d.mts +1 -1
  346. package/locales/ptPT.d.ts +1 -1
  347. package/locales/roRO.d.mts +1 -1
  348. package/locales/roRO.d.ts +1 -1
  349. package/locales/ruRU.d.mts +1 -1
  350. package/locales/ruRU.d.ts +1 -1
  351. package/locales/skSK.d.mts +1 -1
  352. package/locales/skSK.d.ts +1 -1
  353. package/locales/svSE.d.mts +1 -1
  354. package/locales/svSE.d.ts +1 -1
  355. package/locales/thTH.d.mts +1 -1
  356. package/locales/thTH.d.ts +1 -1
  357. package/locales/trTR.d.mts +1 -1
  358. package/locales/trTR.d.ts +1 -1
  359. package/locales/ukUA.d.mts +1 -1
  360. package/locales/ukUA.d.ts +1 -1
  361. package/locales/urPK.d.mts +1 -1
  362. package/locales/urPK.d.ts +1 -1
  363. package/locales/viVN.d.mts +1 -1
  364. package/locales/viVN.d.ts +1 -1
  365. package/locales/zhCN.d.mts +1 -1
  366. package/locales/zhCN.d.ts +1 -1
  367. package/locales/zhTW.d.mts +1 -1
  368. package/locales/zhTW.d.ts +1 -1
  369. package/material/index.js +5 -3
  370. package/material/index.mjs +5 -3
  371. package/material/variables.d.mts +1 -1
  372. package/material/variables.d.ts +1 -1
  373. package/package.json +8 -4
  374. package/utils/createSelector.d.mts +1 -1
  375. package/utils/createSelector.d.ts +1 -1
  376. package/utils/focusElement.d.mts +9 -0
  377. package/utils/focusElement.d.ts +9 -0
  378. package/utils/focusElement.js +24 -0
  379. package/utils/focusElement.mjs +19 -0
  380. package/utils/isJSDOM.d.mts +0 -1
  381. package/utils/isJSDOM.d.ts +0 -1
  382. package/utils/isJSDOM.js +0 -7
  383. package/utils/isJSDOM.mjs +0 -1
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type GridOverlayProps } from "./containers/GridOverlay.js";
2
+ import type { GridOverlayProps } from "./containers/GridOverlay.js";
3
3
  import type { GridLoadingOverlayVariant } from "../hooks/features/overlays/gridOverlaysInterfaces.js";
4
4
  export interface GridLoadingOverlayProps extends GridOverlayProps {
5
5
  /**
@@ -57,7 +57,7 @@ const GridLoadingOverlay = exports.GridLoadingOverlay = (0, _forwardRef.forwardR
57
57
  }));
58
58
  });
59
59
  if (process.env.NODE_ENV !== "production") GridLoadingOverlay.displayName = "GridLoadingOverlay";
60
- process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes = {
60
+ process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes /* remove-proptypes */ = {
61
61
  // ----------------------------- Warning --------------------------------
62
62
  // | These PropTypes are generated from the TypeScript type definitions |
63
63
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -50,7 +50,7 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay(props, ref) {
50
50
  }));
51
51
  });
52
52
  if (process.env.NODE_ENV !== "production") GridLoadingOverlay.displayName = "GridLoadingOverlay";
53
- process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes = {
53
+ process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes /* remove-proptypes */ = {
54
54
  // ----------------------------- Warning --------------------------------
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
56
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -1,4 +1,4 @@
1
- import { type GridOverlayProps } from "./containers/GridOverlay.mjs";
1
+ import type { GridOverlayProps } from "./containers/GridOverlay.mjs";
2
2
  declare const GridNoColumnsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
3
  sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
4
4
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { type GridOverlayProps } from "./containers/GridOverlay.js";
1
+ import type { GridOverlayProps } from "./containers/GridOverlay.js";
2
2
  declare const GridNoColumnsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
3
  sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
4
4
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -34,7 +34,7 @@ const GridNoColumnsOverlay = exports.GridNoColumnsOverlay = (0, _forwardRef.forw
34
34
  }));
35
35
  });
36
36
  if (process.env.NODE_ENV !== "production") GridNoColumnsOverlay.displayName = "GridNoColumnsOverlay";
37
- process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes = {
37
+ process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes /* remove-proptypes */ = {
38
38
  // ----------------------------- Warning --------------------------------
39
39
  // | These PropTypes are generated from the TypeScript type definitions |
40
40
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -28,7 +28,7 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay(props, ref
28
28
  }));
29
29
  });
30
30
  if (process.env.NODE_ENV !== "production") GridNoColumnsOverlay.displayName = "GridNoColumnsOverlay";
31
- process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes = {
31
+ process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes /* remove-proptypes */ = {
32
32
  // ----------------------------- Warning --------------------------------
33
33
  // | These PropTypes are generated from the TypeScript type definitions |
34
34
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -1,4 +1,4 @@
1
- import { type GridOverlayProps } from "./containers/GridOverlay.mjs";
1
+ import type { GridOverlayProps } from "./containers/GridOverlay.mjs";
2
2
  export declare const GridNoResultsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
3
  sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
4
4
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { type GridOverlayProps } from "./containers/GridOverlay.js";
1
+ import type { GridOverlayProps } from "./containers/GridOverlay.js";
2
2
  export declare const GridNoResultsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
3
  sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
4
4
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { type GridOverlayProps } from "./containers/GridOverlay.mjs";
1
+ import type { GridOverlayProps } from "./containers/GridOverlay.mjs";
2
2
  declare const GridNoRowsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
3
  sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
4
4
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { type GridOverlayProps } from "./containers/GridOverlay.js";
1
+ import type { GridOverlayProps } from "./containers/GridOverlay.js";
2
2
  declare const GridNoRowsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
3
  sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
4
4
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -21,7 +21,7 @@ const GridNoRowsOverlay = exports.GridNoRowsOverlay = (0, _forwardRef.forwardRef
21
21
  }));
22
22
  });
23
23
  if (process.env.NODE_ENV !== "production") GridNoRowsOverlay.displayName = "GridNoRowsOverlay";
24
- process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes = {
24
+ process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes /* remove-proptypes */ = {
25
25
  // ----------------------------- Warning --------------------------------
26
26
  // | These PropTypes are generated from the TypeScript type definitions |
27
27
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -15,7 +15,7 @@ const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay(props, ref) {
15
15
  }));
16
16
  });
17
17
  if (process.env.NODE_ENV !== "production") GridNoRowsOverlay.displayName = "GridNoRowsOverlay";
18
- process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes = {
18
+ process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes /* remove-proptypes */ = {
19
19
  // ----------------------------- Warning --------------------------------
20
20
  // | These PropTypes are generated from the TypeScript type definitions |
21
21
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -330,7 +330,7 @@ const GridRow = (0, _forwardRef.forwardRef)(function GridRow(props, refProp) {
330
330
  }));
331
331
  });
332
332
  if (process.env.NODE_ENV !== "production") GridRow.displayName = "GridRow";
333
- process.env.NODE_ENV !== "production" ? GridRow.propTypes = {
333
+ process.env.NODE_ENV !== "production" ? GridRow.propTypes /* remove-proptypes */ = {
334
334
  // ----------------------------- Warning --------------------------------
335
335
  // | These PropTypes are generated from the TypeScript type definitions |
336
336
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -323,7 +323,7 @@ const GridRow = forwardRef(function GridRow(props, refProp) {
323
323
  }));
324
324
  });
325
325
  if (process.env.NODE_ENV !== "production") GridRow.displayName = "GridRow";
326
- process.env.NODE_ENV !== "production" ? GridRow.propTypes = {
326
+ process.env.NODE_ENV !== "production" ? GridRow.propTypes /* remove-proptypes */ = {
327
327
  // ----------------------------- Warning --------------------------------
328
328
  // | These PropTypes are generated from the TypeScript type definitions |
329
329
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type SxProps, type Theme } from '@mui/system';
2
+ import type { SxProps, Theme } from '@mui/system';
3
3
  interface RowCountProps {
4
4
  rowCount: number;
5
5
  visibleRowCount: number;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type SxProps, type Theme } from '@mui/system';
2
+ import type { SxProps, Theme } from '@mui/system';
3
3
  interface RowCountProps {
4
4
  rowCount: number;
5
5
  visibleRowCount: number;
@@ -61,7 +61,7 @@ const GridRowCount = exports.GridRowCount = (0, _forwardRef.forwardRef)(function
61
61
  }));
62
62
  });
63
63
  if (process.env.NODE_ENV !== "production") GridRowCount.displayName = "GridRowCount";
64
- process.env.NODE_ENV !== "production" ? GridRowCount.propTypes = {
64
+ process.env.NODE_ENV !== "production" ? GridRowCount.propTypes /* remove-proptypes */ = {
65
65
  // ----------------------------- Warning --------------------------------
66
66
  // | These PropTypes are generated from the TypeScript type definitions |
67
67
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -54,7 +54,7 @@ const GridRowCount = forwardRef(function GridRowCount(props, ref) {
54
54
  }));
55
55
  });
56
56
  if (process.env.NODE_ENV !== "production") GridRowCount.displayName = "GridRowCount";
57
- process.env.NODE_ENV !== "production" ? GridRowCount.propTypes = {
57
+ process.env.NODE_ENV !== "production" ? GridRowCount.propTypes /* remove-proptypes */ = {
58
58
  // ----------------------------- Warning --------------------------------
59
59
  // | These PropTypes are generated from the TypeScript type definitions |
60
60
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -4,4 +4,4 @@ export interface GridRowDragAndDropOverlayProps {
4
4
  rowId: GridRowId;
5
5
  className?: string;
6
6
  }
7
- export declare const GridRowDragAndDropOverlay: React.NamedExoticComponent<GridRowDragAndDropOverlayProps>;
7
+ export declare const GridRowDragAndDropOverlay: React.MemoExoticComponent<(props: GridRowDragAndDropOverlayProps) => import("react/jsx-runtime").JSX.Element | null>;
@@ -4,4 +4,4 @@ export interface GridRowDragAndDropOverlayProps {
4
4
  rowId: GridRowId;
5
5
  className?: string;
6
6
  }
7
- export declare const GridRowDragAndDropOverlay: React.NamedExoticComponent<GridRowDragAndDropOverlayProps>;
7
+ export declare const GridRowDragAndDropOverlay: React.MemoExoticComponent<(props: GridRowDragAndDropOverlayProps) => import("react/jsx-runtime").JSX.Element | null>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type SxProps, type Theme } from '@mui/system';
2
+ import type { SxProps, Theme } from '@mui/system';
3
3
  interface SelectedRowCountProps {
4
4
  selectedRowCount: number;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type SxProps, type Theme } from '@mui/system';
2
+ import type { SxProps, Theme } from '@mui/system';
3
3
  interface SelectedRowCountProps {
4
4
  selectedRowCount: number;
5
5
  }
@@ -65,7 +65,7 @@ const GridSelectedRowCount = exports.GridSelectedRowCount = (0, _forwardRef.forw
65
65
  }));
66
66
  });
67
67
  if (process.env.NODE_ENV !== "production") GridSelectedRowCount.displayName = "GridSelectedRowCount";
68
- process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes = {
68
+ process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes /* remove-proptypes */ = {
69
69
  // ----------------------------- Warning --------------------------------
70
70
  // | These PropTypes are generated from the TypeScript type definitions |
71
71
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -58,7 +58,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount(props, ref
58
58
  }));
59
59
  });
60
60
  if (process.env.NODE_ENV !== "production") GridSelectedRowCount.displayName = "GridSelectedRowCount";
61
- process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes = {
61
+ process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes /* remove-proptypes */ = {
62
62
  // ----------------------------- Warning --------------------------------
63
63
  // | These PropTypes are generated from the TypeScript type definitions |
64
64
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -94,7 +94,7 @@ const GridShadowScrollArea = exports.GridShadowScrollArea = (0, _forwardRef.forw
94
94
  }));
95
95
  });
96
96
  if (process.env.NODE_ENV !== "production") GridShadowScrollArea.displayName = "GridShadowScrollArea";
97
- process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes = {
97
+ process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes /* remove-proptypes */ = {
98
98
  // ----------------------------- Warning --------------------------------
99
99
  // | These PropTypes are generated from the TypeScript type definitions |
100
100
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -87,7 +87,7 @@ const GridShadowScrollArea = forwardRef(function GridShadowScrollArea(props, ref
87
87
  }));
88
88
  });
89
89
  if (process.env.NODE_ENV !== "production") GridShadowScrollArea.displayName = "GridShadowScrollArea";
90
- process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes = {
90
+ process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes /* remove-proptypes */ = {
91
91
  // ----------------------------- Warning --------------------------------
92
92
  // | These PropTypes are generated from the TypeScript type definitions |
93
93
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { GridRowParams } from "../../models/params/gridRowParams.mjs";
3
3
  import type { GridRenderCellParams } from "../../models/params/gridCellParams.mjs";
4
- import { type GridMenuProps } from "../menu/GridMenu.mjs";
4
+ import type { GridMenuProps } from "../menu/GridMenu.mjs";
5
5
  import type { GridValidRowModel, GridTreeNodeWithRender } from "../../models/gridRows.mjs";
6
6
  interface GridActionsCellProps<R extends GridValidRowModel = any, V = any, F = V, N extends GridTreeNodeWithRender = GridTreeNodeWithRender> extends Omit<GridRenderCellParams<R, V, F, N>, 'api'> {
7
7
  api?: GridRenderCellParams['api'];
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { GridRowParams } from "../../models/params/gridRowParams.js";
3
3
  import type { GridRenderCellParams } from "../../models/params/gridCellParams.js";
4
- import { type GridMenuProps } from "../menu/GridMenu.js";
4
+ import type { GridMenuProps } from "../menu/GridMenu.js";
5
5
  import type { GridValidRowModel, GridTreeNodeWithRender } from "../../models/gridRows.js";
6
6
  interface GridActionsCellProps<R extends GridValidRowModel = any, V = any, F = V, N extends GridTreeNodeWithRender = GridTreeNodeWithRender> extends Omit<GridRenderCellParams<R, V, F, N>, 'api'> {
7
7
  api?: GridRenderCellParams['api'];
@@ -220,7 +220,7 @@ If this is intentional, you can suppress this warning by passing the \`suppressC
220
220
  })]
221
221
  }));
222
222
  }
223
- process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
223
+ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes /* remove-proptypes */ = {
224
224
  // ----------------------------- Warning --------------------------------
225
225
  // | These PropTypes are generated from the TypeScript type definitions |
226
226
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -230,7 +230,7 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
230
230
  * The mode of the cell.
231
231
  */
232
232
  cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
233
- children: _propTypes.default.node.isRequired,
233
+ children: _propTypes.default.node,
234
234
  /**
235
235
  * The column of the row that the current cell belongs to.
236
236
  */
@@ -255,15 +255,40 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
255
255
  * If true, the cell is editable.
256
256
  */
257
257
  isEditable: _propTypes.default.bool,
258
+ /**
259
+ * Callback to fire before the menu gets closed.
260
+ * Use this callback to prevent the menu from closing.
261
+ *
262
+ * @param {GridRowParams<R>} params Row parameters.
263
+ * @param {React.MouseEvent<HTMLElement> | React.KeyboardEvent | MouseEvent | TouchEvent | undefined} event The event triggering this callback.
264
+ * @returns {boolean} if the menu should be closed.
265
+ */
266
+ onMenuClose: _propTypes.default.func,
267
+ /**
268
+ * Callback to fire before the menu gets opened.
269
+ * Use this callback to prevent the menu from opening.
270
+ *
271
+ * @param {GridRowParams<R>} params Row parameters.
272
+ * @param {React.MouseEvent<HTMLElement>} event The event triggering this callback.
273
+ * @returns {boolean} if the menu should be opened.
274
+ */
275
+ onMenuOpen: _propTypes.default.func,
258
276
  position: _propTypes.default.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
259
277
  /**
260
278
  * The row model of the row that the current cell belongs to.
261
279
  */
262
- row: _propTypes.default.any.isRequired,
280
+ row: _propTypes.default.object.isRequired,
263
281
  /**
264
282
  * The node of the row that the current cell belongs to.
265
283
  */
266
284
  rowNode: _propTypes.default.object.isRequired,
285
+ /**
286
+ * If true, the children passed to the component will not be validated.
287
+ * If false, only `GridActionsCellItem` and `React.Fragment` are allowed as children.
288
+ * Only use this prop if you know what you are doing.
289
+ * @default false
290
+ */
291
+ suppressChildrenValidation: _propTypes.default.bool,
267
292
  /**
268
293
  * the tabIndex value.
269
294
  */
@@ -293,6 +318,61 @@ function GridActionsCellWrapper(props) {
293
318
  children: actions
294
319
  }));
295
320
  }
321
+ process.env.NODE_ENV !== "production" ? GridActionsCellWrapper.propTypes /* remove-proptypes */ = {
322
+ // ----------------------------- Warning --------------------------------
323
+ // | These PropTypes are generated from the TypeScript type definitions |
324
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
325
+ // ----------------------------------------------------------------------
326
+ /**
327
+ * GridApi that let you manipulate the grid.
328
+ */
329
+ api: _propTypes.default.object.isRequired,
330
+ /**
331
+ * The mode of the cell.
332
+ */
333
+ cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
334
+ /**
335
+ * The column of the row that the current cell belongs to.
336
+ */
337
+ colDef: _propTypes.default.object.isRequired,
338
+ /**
339
+ * The column field of the cell that triggered the event.
340
+ */
341
+ field: _propTypes.default.string.isRequired,
342
+ /**
343
+ * The cell value formatted with the column valueFormatter.
344
+ */
345
+ formattedValue: _propTypes.default.any,
346
+ /**
347
+ * If true, the cell is the active element.
348
+ */
349
+ hasFocus: _propTypes.default.bool.isRequired,
350
+ /**
351
+ * The grid row id.
352
+ */
353
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
354
+ /**
355
+ * If true, the cell is editable.
356
+ */
357
+ isEditable: _propTypes.default.bool,
358
+ /**
359
+ * The row model of the row that the current cell belongs to.
360
+ */
361
+ row: _propTypes.default.any.isRequired,
362
+ /**
363
+ * The node of the row that the current cell belongs to.
364
+ */
365
+ rowNode: _propTypes.default.object.isRequired,
366
+ /**
367
+ * the tabIndex value.
368
+ */
369
+ tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
370
+ /**
371
+ * The cell value.
372
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
373
+ */
374
+ value: _propTypes.default.any
375
+ } : void 0;
296
376
  const renderActionsCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridActionsCellWrapper, (0, _extends2.default)({}, params));
297
377
  exports.renderActionsCell = renderActionsCell;
298
378
  if (process.env.NODE_ENV !== "production") renderActionsCell.displayName = "renderActionsCell";
@@ -212,7 +212,7 @@ If this is intentional, you can suppress this warning by passing the \`suppressC
212
212
  })]
213
213
  }));
214
214
  }
215
- process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
215
+ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes /* remove-proptypes */ = {
216
216
  // ----------------------------- Warning --------------------------------
217
217
  // | These PropTypes are generated from the TypeScript type definitions |
218
218
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -222,7 +222,7 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
222
222
  * The mode of the cell.
223
223
  */
224
224
  cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
225
- children: PropTypes.node.isRequired,
225
+ children: PropTypes.node,
226
226
  /**
227
227
  * The column of the row that the current cell belongs to.
228
228
  */
@@ -247,15 +247,40 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
247
247
  * If true, the cell is editable.
248
248
  */
249
249
  isEditable: PropTypes.bool,
250
+ /**
251
+ * Callback to fire before the menu gets closed.
252
+ * Use this callback to prevent the menu from closing.
253
+ *
254
+ * @param {GridRowParams<R>} params Row parameters.
255
+ * @param {React.MouseEvent<HTMLElement> | React.KeyboardEvent | MouseEvent | TouchEvent | undefined} event The event triggering this callback.
256
+ * @returns {boolean} if the menu should be closed.
257
+ */
258
+ onMenuClose: PropTypes.func,
259
+ /**
260
+ * Callback to fire before the menu gets opened.
261
+ * Use this callback to prevent the menu from opening.
262
+ *
263
+ * @param {GridRowParams<R>} params Row parameters.
264
+ * @param {React.MouseEvent<HTMLElement>} event The event triggering this callback.
265
+ * @returns {boolean} if the menu should be opened.
266
+ */
267
+ onMenuOpen: PropTypes.func,
250
268
  position: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
251
269
  /**
252
270
  * The row model of the row that the current cell belongs to.
253
271
  */
254
- row: PropTypes.any.isRequired,
272
+ row: PropTypes.object.isRequired,
255
273
  /**
256
274
  * The node of the row that the current cell belongs to.
257
275
  */
258
276
  rowNode: PropTypes.object.isRequired,
277
+ /**
278
+ * If true, the children passed to the component will not be validated.
279
+ * If false, only `GridActionsCellItem` and `React.Fragment` are allowed as children.
280
+ * Only use this prop if you know what you are doing.
281
+ * @default false
282
+ */
283
+ suppressChildrenValidation: PropTypes.bool,
259
284
  /**
260
285
  * the tabIndex value.
261
286
  */
@@ -287,5 +312,60 @@ function GridActionsCellWrapper(props) {
287
312
  children: actions
288
313
  }));
289
314
  }
315
+ process.env.NODE_ENV !== "production" ? GridActionsCellWrapper.propTypes /* remove-proptypes */ = {
316
+ // ----------------------------- Warning --------------------------------
317
+ // | These PropTypes are generated from the TypeScript type definitions |
318
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
319
+ // ----------------------------------------------------------------------
320
+ /**
321
+ * GridApi that let you manipulate the grid.
322
+ */
323
+ api: PropTypes.object.isRequired,
324
+ /**
325
+ * The mode of the cell.
326
+ */
327
+ cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
328
+ /**
329
+ * The column of the row that the current cell belongs to.
330
+ */
331
+ colDef: PropTypes.object.isRequired,
332
+ /**
333
+ * The column field of the cell that triggered the event.
334
+ */
335
+ field: PropTypes.string.isRequired,
336
+ /**
337
+ * The cell value formatted with the column valueFormatter.
338
+ */
339
+ formattedValue: PropTypes.any,
340
+ /**
341
+ * If true, the cell is the active element.
342
+ */
343
+ hasFocus: PropTypes.bool.isRequired,
344
+ /**
345
+ * The grid row id.
346
+ */
347
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
348
+ /**
349
+ * If true, the cell is editable.
350
+ */
351
+ isEditable: PropTypes.bool,
352
+ /**
353
+ * The row model of the row that the current cell belongs to.
354
+ */
355
+ row: PropTypes.any.isRequired,
356
+ /**
357
+ * The node of the row that the current cell belongs to.
358
+ */
359
+ rowNode: PropTypes.object.isRequired,
360
+ /**
361
+ * the tabIndex value.
362
+ */
363
+ tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
364
+ /**
365
+ * The cell value.
366
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
367
+ */
368
+ value: PropTypes.any
369
+ } : void 0;
290
370
  export const renderActionsCell = params => /*#__PURE__*/_jsx(GridActionsCellWrapper, _extends({}, params));
291
371
  if (process.env.NODE_ENV !== "production") renderActionsCell.displayName = "renderActionsCell";
@@ -10,6 +10,7 @@ exports.GridActionsCellItem = void 0;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
14
  var _forwardRef = require("@mui/x-internals/forwardRef");
14
15
  var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
15
16
  var _jsxRuntime = require("react/jsx-runtime");
@@ -62,4 +63,77 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
62
63
  children: label
63
64
  }));
64
65
  });
65
- if (process.env.NODE_ENV !== "production") GridActionsCellItem.displayName = "GridActionsCellItem";
66
+ if (process.env.NODE_ENV !== "production") GridActionsCellItem.displayName = "GridActionsCellItem";
67
+ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-proptypes */ = {
68
+ // ----------------------------- Warning --------------------------------
69
+ // | These PropTypes are generated from the TypeScript type definitions |
70
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
71
+ // ----------------------------------------------------------------------
72
+ className: _propTypes.default.string,
73
+ /**
74
+ * from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
75
+ */
76
+ component: _propTypes.default.elementType,
77
+ disabled: _propTypes.default.bool,
78
+ icon: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
79
+ '__@iterator@659': _propTypes.default.func.isRequired
80
+ }), _propTypes.default.shape({
81
+ '__@iterator@659': _propTypes.default.func.isRequired,
82
+ key: _propTypes.default.string,
83
+ props: _propTypes.default.any.isRequired,
84
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
85
+ }), _propTypes.default.shape({
86
+ '__@toStringTag@1607': _propTypes.default.oneOf(['BigInt']).isRequired,
87
+ key: _propTypes.default.string,
88
+ props: _propTypes.default.any.isRequired,
89
+ toLocaleString: _propTypes.default.func.isRequired,
90
+ toString: _propTypes.default.func.isRequired,
91
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired,
92
+ valueOf: _propTypes.default.func.isRequired
93
+ }), _propTypes.default.shape({
94
+ '__@toStringTag@1607': _propTypes.default.oneOf(['BigInt']).isRequired,
95
+ toLocaleString: _propTypes.default.func.isRequired,
96
+ toString: _propTypes.default.func.isRequired,
97
+ valueOf: _propTypes.default.func.isRequired
98
+ }), _propTypes.default.shape({
99
+ '__@toStringTag@1607': _propTypes.default.string.isRequired,
100
+ catch: _propTypes.default.func.isRequired,
101
+ finally: _propTypes.default.func.isRequired,
102
+ key: _propTypes.default.string,
103
+ props: _propTypes.default.any.isRequired,
104
+ then: _propTypes.default.func.isRequired,
105
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
106
+ }), _propTypes.default.shape({
107
+ '__@toStringTag@1607': _propTypes.default.string.isRequired,
108
+ catch: _propTypes.default.func.isRequired,
109
+ finally: _propTypes.default.func.isRequired,
110
+ then: _propTypes.default.func.isRequired
111
+ }), _propTypes.default.shape({
112
+ children: _propTypes.default.node,
113
+ key: _propTypes.default.string,
114
+ props: _propTypes.default.any.isRequired,
115
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
116
+ }), _propTypes.default.shape({
117
+ key: _propTypes.default.string,
118
+ props: _propTypes.default.any.isRequired,
119
+ toExponential: _propTypes.default.func.isRequired,
120
+ toFixed: _propTypes.default.func.isRequired,
121
+ toLocaleString: _propTypes.default.func.isRequired,
122
+ toPrecision: _propTypes.default.func.isRequired,
123
+ toString: _propTypes.default.func.isRequired,
124
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired,
125
+ valueOf: _propTypes.default.func.isRequired
126
+ }), _propTypes.default.shape({
127
+ key: _propTypes.default.string,
128
+ props: _propTypes.default.any.isRequired,
129
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
130
+ }), _propTypes.default.shape({
131
+ key: _propTypes.default.string,
132
+ props: _propTypes.default.any.isRequired,
133
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired,
134
+ valueOf: _propTypes.default.func.isRequired
135
+ }), _propTypes.default.string, _propTypes.default.bool]),
136
+ label: _propTypes.default.node,
137
+ showInMenu: _propTypes.default.bool,
138
+ style: _propTypes.default.object
139
+ } : void 0;