@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
@@ -5,6 +5,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
5
5
  const _excluded = ["label", "icon", "showInMenu", "onClick"],
6
6
  _excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
7
7
  import * as React from 'react';
8
+ import PropTypes from 'prop-types';
8
9
  import { forwardRef } from '@mui/x-internals/forwardRef';
9
10
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.mjs";
10
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -56,4 +57,77 @@ const GridActionsCellItem = forwardRef((props, ref) => {
56
57
  }));
57
58
  });
58
59
  if (process.env.NODE_ENV !== "production") GridActionsCellItem.displayName = "GridActionsCellItem";
60
+ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-proptypes */ = {
61
+ // ----------------------------- Warning --------------------------------
62
+ // | These PropTypes are generated from the TypeScript type definitions |
63
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
64
+ // ----------------------------------------------------------------------
65
+ className: PropTypes.string,
66
+ /**
67
+ * from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
68
+ */
69
+ component: PropTypes.elementType,
70
+ disabled: PropTypes.bool,
71
+ icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
72
+ '__@iterator@659': PropTypes.func.isRequired
73
+ }), PropTypes.shape({
74
+ '__@iterator@659': PropTypes.func.isRequired,
75
+ key: PropTypes.string,
76
+ props: PropTypes.any.isRequired,
77
+ type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
78
+ }), PropTypes.shape({
79
+ '__@toStringTag@1607': PropTypes.oneOf(['BigInt']).isRequired,
80
+ key: PropTypes.string,
81
+ props: PropTypes.any.isRequired,
82
+ toLocaleString: PropTypes.func.isRequired,
83
+ toString: PropTypes.func.isRequired,
84
+ type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired,
85
+ valueOf: PropTypes.func.isRequired
86
+ }), PropTypes.shape({
87
+ '__@toStringTag@1607': PropTypes.oneOf(['BigInt']).isRequired,
88
+ toLocaleString: PropTypes.func.isRequired,
89
+ toString: PropTypes.func.isRequired,
90
+ valueOf: PropTypes.func.isRequired
91
+ }), PropTypes.shape({
92
+ '__@toStringTag@1607': PropTypes.string.isRequired,
93
+ catch: PropTypes.func.isRequired,
94
+ finally: PropTypes.func.isRequired,
95
+ key: PropTypes.string,
96
+ props: PropTypes.any.isRequired,
97
+ then: PropTypes.func.isRequired,
98
+ type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
99
+ }), PropTypes.shape({
100
+ '__@toStringTag@1607': PropTypes.string.isRequired,
101
+ catch: PropTypes.func.isRequired,
102
+ finally: PropTypes.func.isRequired,
103
+ then: PropTypes.func.isRequired
104
+ }), PropTypes.shape({
105
+ children: PropTypes.node,
106
+ key: PropTypes.string,
107
+ props: PropTypes.any.isRequired,
108
+ type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
109
+ }), PropTypes.shape({
110
+ key: PropTypes.string,
111
+ props: PropTypes.any.isRequired,
112
+ toExponential: PropTypes.func.isRequired,
113
+ toFixed: PropTypes.func.isRequired,
114
+ toLocaleString: PropTypes.func.isRequired,
115
+ toPrecision: PropTypes.func.isRequired,
116
+ toString: PropTypes.func.isRequired,
117
+ type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired,
118
+ valueOf: PropTypes.func.isRequired
119
+ }), PropTypes.shape({
120
+ key: PropTypes.string,
121
+ props: PropTypes.any.isRequired,
122
+ type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
123
+ }), PropTypes.shape({
124
+ key: PropTypes.string,
125
+ props: PropTypes.any.isRequired,
126
+ type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired,
127
+ valueOf: PropTypes.func.isRequired
128
+ }), PropTypes.string, PropTypes.bool]),
129
+ label: PropTypes.node,
130
+ showInMenu: PropTypes.bool,
131
+ style: PropTypes.object
132
+ } : void 0;
59
133
  export { GridActionsCellItem };
@@ -57,7 +57,7 @@ function GridBooleanCellRaw(props) {
57
57
  "data-value": Boolean(value)
58
58
  }, other));
59
59
  }
60
- process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes = {
60
+ process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.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" |
@@ -49,7 +49,7 @@ function GridBooleanCellRaw(props) {
49
49
  "data-value": Boolean(value)
50
50
  }, other));
51
51
  }
52
- process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes = {
52
+ process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes /* remove-proptypes */ = {
53
53
  // ----------------------------- Warning --------------------------------
54
54
  // | These PropTypes are generated from the TypeScript type definitions |
55
55
  // | 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 GridRowId } from "../../models/index.mjs";
2
+ import type { GridRowId } from "../../models/index.mjs";
3
3
  import type { GridAlignment, GridStateColDef } from "../../models/colDef/gridColDef.mjs";
4
4
  import type { GridRowModel, GridTreeNode } from "../../models/gridRows.mjs";
5
5
  import { PinnedColumnPosition } from "../../internals/constants.mjs";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type GridRowId } from "../../models/index.js";
2
+ import type { GridRowId } from "../../models/index.js";
3
3
  import type { GridAlignment, GridStateColDef } from "../../models/colDef/gridColDef.js";
4
4
  import type { GridRowModel, GridTreeNode } from "../../models/gridRows.js";
5
5
  import { PinnedColumnPosition } from "../../internals/constants.js";
@@ -22,7 +22,7 @@ var _forwardRef = require("@mui/x-internals/forwardRef");
22
22
  var _store = require("@mui/x-internals/store");
23
23
  var _xVirtualizer = require("@mui/x-virtualizer");
24
24
  var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
25
- var _doesSupportPreventScroll = require("../../utils/doesSupportPreventScroll");
25
+ var _focusElement = require("../../utils/focusElement");
26
26
  var _gridClasses = require("../../constants/gridClasses");
27
27
  var _models = require("../../models");
28
28
  var _useGridSelector = require("../../hooks/utils/useGridSelector");
@@ -233,15 +233,7 @@ const GridCell = (0, _forwardRef.forwardRef)(function GridCell(props, ref) {
233
233
  if (cellRef.current && !cellRef.current.contains(doc.activeElement)) {
234
234
  const focusableElement = cellRef.current.querySelector('[tabindex="0"]');
235
235
  const elementToFocus = focusableElement || cellRef.current;
236
- if ((0, _doesSupportPreventScroll.doesSupportPreventScroll)()) {
237
- elementToFocus.focus({
238
- preventScroll: true
239
- });
240
- } else {
241
- const scrollPosition = apiRef.current.getScrollPosition();
242
- elementToFocus.focus();
243
- apiRef.current.scroll(scrollPosition);
244
- }
236
+ (0, _focusElement.focusElement)(elementToFocus, apiRef);
245
237
  }
246
238
  }, [hasFocus, cellMode, apiRef]);
247
239
  if (isCellRowSpanned) {
@@ -322,7 +314,7 @@ const GridCell = (0, _forwardRef.forwardRef)(function GridCell(props, ref) {
322
314
  }));
323
315
  });
324
316
  if (process.env.NODE_ENV !== "production") GridCell.displayName = "GridCell";
325
- process.env.NODE_ENV !== "production" ? GridCell.propTypes = {
317
+ process.env.NODE_ENV !== "production" ? GridCell.propTypes /* remove-proptypes */ = {
326
318
  // ----------------------------- Warning --------------------------------
327
319
  // | These PropTypes are generated from the TypeScript type definitions |
328
320
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -17,7 +17,7 @@ import { forwardRef } from '@mui/x-internals/forwardRef';
17
17
  import { useStore } from '@mui/x-internals/store';
18
18
  import { Rowspan } from '@mui/x-virtualizer';
19
19
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
20
- import { doesSupportPreventScroll } from "../../utils/doesSupportPreventScroll.mjs";
20
+ import { focusElement } from "../../utils/focusElement.mjs";
21
21
  import { getDataGridUtilityClass, gridClasses } from "../../constants/gridClasses.mjs";
22
22
  import { GridCellModes } from "../../models/index.mjs";
23
23
  import { useGridSelector } from "../../hooks/utils/useGridSelector.mjs";
@@ -226,15 +226,7 @@ const GridCell = forwardRef(function GridCell(props, ref) {
226
226
  if (cellRef.current && !cellRef.current.contains(doc.activeElement)) {
227
227
  const focusableElement = cellRef.current.querySelector('[tabindex="0"]');
228
228
  const elementToFocus = focusableElement || cellRef.current;
229
- if (doesSupportPreventScroll()) {
230
- elementToFocus.focus({
231
- preventScroll: true
232
- });
233
- } else {
234
- const scrollPosition = apiRef.current.getScrollPosition();
235
- elementToFocus.focus();
236
- apiRef.current.scroll(scrollPosition);
237
- }
229
+ focusElement(elementToFocus, apiRef);
238
230
  }
239
231
  }, [hasFocus, cellMode, apiRef]);
240
232
  if (isCellRowSpanned) {
@@ -315,7 +307,7 @@ const GridCell = forwardRef(function GridCell(props, ref) {
315
307
  }));
316
308
  });
317
309
  if (process.env.NODE_ENV !== "production") GridCell.displayName = "GridCell";
318
- process.env.NODE_ENV !== "production" ? GridCell.propTypes = {
310
+ process.env.NODE_ENV !== "production" ? GridCell.propTypes /* remove-proptypes */ = {
319
311
  // ----------------------------- Warning --------------------------------
320
312
  // | These PropTypes are generated from the TypeScript type definitions |
321
313
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -82,7 +82,7 @@ function GridEditBooleanCell(props) {
82
82
  }, rootProps.slotProps?.baseCheckbox))
83
83
  }));
84
84
  }
85
- process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes = {
85
+ process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes /* remove-proptypes */ = {
86
86
  // ----------------------------- Warning --------------------------------
87
87
  // | These PropTypes are generated from the TypeScript type definitions |
88
88
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -74,7 +74,7 @@ function GridEditBooleanCell(props) {
74
74
  }, rootProps.slotProps?.baseCheckbox))
75
75
  }));
76
76
  }
77
- process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes = {
77
+ process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes /* remove-proptypes */ = {
78
78
  // ----------------------------- Warning --------------------------------
79
79
  // | These PropTypes are generated from the TypeScript type definitions |
80
80
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -136,7 +136,7 @@ function GridEditDateCell(props) {
136
136
  }
137
137
  }));
138
138
  }
139
- process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes = {
139
+ process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes /* remove-proptypes */ = {
140
140
  // ----------------------------- Warning --------------------------------
141
141
  // | These PropTypes are generated from the TypeScript type definitions |
142
142
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -128,7 +128,7 @@ function GridEditDateCell(props) {
128
128
  }
129
129
  }));
130
130
  }
131
- process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes = {
131
+ process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes /* remove-proptypes */ = {
132
132
  // ----------------------------- Warning --------------------------------
133
133
  // | These PropTypes are generated from the TypeScript type definitions |
134
134
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -10,6 +10,7 @@ exports.renderEditInputCell = exports.GridEditInputCell = 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 _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
14
15
  var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
15
16
  var _styles = require("@mui/material/styles");
@@ -107,6 +108,73 @@ const GridEditInputCell = exports.GridEditInputCell = (0, _forwardRef.forwardRef
107
108
  }));
108
109
  });
109
110
  if (process.env.NODE_ENV !== "production") GridEditInputCell.displayName = "GridEditInputCell";
111
+ process.env.NODE_ENV !== "production" ? GridEditInputCell.propTypes /* remove-proptypes */ = {
112
+ // ----------------------------- Warning --------------------------------
113
+ // | These PropTypes are generated from the TypeScript type definitions |
114
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
115
+ // ----------------------------------------------------------------------
116
+ /**
117
+ * GridApi that let you manipulate the grid.
118
+ */
119
+ api: _propTypes.default.object.isRequired,
120
+ /**
121
+ * The mode of the cell.
122
+ */
123
+ cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
124
+ changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
125
+ /**
126
+ * The column of the row that the current cell belongs to.
127
+ */
128
+ colDef: _propTypes.default.object.isRequired,
129
+ debounceMs: _propTypes.default.number,
130
+ /**
131
+ * The column field of the cell that triggered the event.
132
+ */
133
+ field: _propTypes.default.string.isRequired,
134
+ /**
135
+ * The cell value formatted with the column valueFormatter.
136
+ */
137
+ formattedValue: _propTypes.default.any,
138
+ /**
139
+ * If true, the cell is the active element.
140
+ */
141
+ hasFocus: _propTypes.default.bool.isRequired,
142
+ /**
143
+ * The grid row id.
144
+ */
145
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
146
+ /**
147
+ * If true, the cell is editable.
148
+ */
149
+ isEditable: _propTypes.default.bool,
150
+ isProcessingProps: _propTypes.default.bool,
151
+ isValidating: _propTypes.default.bool,
152
+ /**
153
+ * Callback called when the value is changed by the user.
154
+ * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
155
+ * @param {Date | null} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
156
+ * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
157
+ */
158
+ onValueChange: _propTypes.default.func,
159
+ /**
160
+ * The row model of the row that the current cell belongs to.
161
+ */
162
+ row: _propTypes.default.any.isRequired,
163
+ /**
164
+ * The node of the row that the current cell belongs to.
165
+ */
166
+ rowNode: _propTypes.default.object.isRequired,
167
+ slotProps: _propTypes.default.object,
168
+ /**
169
+ * the tabIndex value.
170
+ */
171
+ tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
172
+ /**
173
+ * The cell value.
174
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
175
+ */
176
+ value: _propTypes.default.any
177
+ } : void 0;
110
178
  const renderEditInputCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditInputCell, (0, _extends2.default)({}, params));
111
179
  exports.renderEditInputCell = renderEditInputCell;
112
180
  if (process.env.NODE_ENV !== "production") renderEditInputCell.displayName = "renderEditInputCell";
@@ -4,6 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "hasFocus", "isValidating", "debounceMs", "isProcessingProps", "onValueChange", "slotProps"];
6
6
  import * as React from 'react';
7
+ import PropTypes from 'prop-types';
7
8
  import composeClasses from '@mui/utils/composeClasses';
8
9
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
9
10
  import { styled } from '@mui/material/styles';
@@ -100,6 +101,73 @@ const GridEditInputCell = forwardRef((props, ref) => {
100
101
  }));
101
102
  });
102
103
  if (process.env.NODE_ENV !== "production") GridEditInputCell.displayName = "GridEditInputCell";
104
+ process.env.NODE_ENV !== "production" ? GridEditInputCell.propTypes /* remove-proptypes */ = {
105
+ // ----------------------------- Warning --------------------------------
106
+ // | These PropTypes are generated from the TypeScript type definitions |
107
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
108
+ // ----------------------------------------------------------------------
109
+ /**
110
+ * GridApi that let you manipulate the grid.
111
+ */
112
+ api: PropTypes.object.isRequired,
113
+ /**
114
+ * The mode of the cell.
115
+ */
116
+ cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
117
+ changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
118
+ /**
119
+ * The column of the row that the current cell belongs to.
120
+ */
121
+ colDef: PropTypes.object.isRequired,
122
+ debounceMs: PropTypes.number,
123
+ /**
124
+ * The column field of the cell that triggered the event.
125
+ */
126
+ field: PropTypes.string.isRequired,
127
+ /**
128
+ * The cell value formatted with the column valueFormatter.
129
+ */
130
+ formattedValue: PropTypes.any,
131
+ /**
132
+ * If true, the cell is the active element.
133
+ */
134
+ hasFocus: PropTypes.bool.isRequired,
135
+ /**
136
+ * The grid row id.
137
+ */
138
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
139
+ /**
140
+ * If true, the cell is editable.
141
+ */
142
+ isEditable: PropTypes.bool,
143
+ isProcessingProps: PropTypes.bool,
144
+ isValidating: PropTypes.bool,
145
+ /**
146
+ * Callback called when the value is changed by the user.
147
+ * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
148
+ * @param {Date | null} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
149
+ * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
150
+ */
151
+ onValueChange: PropTypes.func,
152
+ /**
153
+ * The row model of the row that the current cell belongs to.
154
+ */
155
+ row: PropTypes.any.isRequired,
156
+ /**
157
+ * The node of the row that the current cell belongs to.
158
+ */
159
+ rowNode: PropTypes.object.isRequired,
160
+ slotProps: PropTypes.object,
161
+ /**
162
+ * the tabIndex value.
163
+ */
164
+ tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
165
+ /**
166
+ * The cell value.
167
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
168
+ */
169
+ value: PropTypes.any
170
+ } : void 0;
103
171
  export { GridEditInputCell };
104
172
  export const renderEditInputCell = params => /*#__PURE__*/_jsx(GridEditInputCell, _extends({}, params));
105
173
  if (process.env.NODE_ENV !== "production") renderEditInputCell.displayName = "renderEditInputCell";
@@ -37,5 +37,8 @@ export interface GridEditLongTextCellProps extends GridRenderEditCellParams<any,
37
37
  };
38
38
  }
39
39
  declare function GridEditLongTextCell(props: GridEditLongTextCellProps): import("react/jsx-runtime").JSX.Element;
40
+ declare namespace GridEditLongTextCell {
41
+ var propTypes: any;
42
+ }
40
43
  export { GridEditLongTextCell };
41
44
  export declare const renderEditLongTextCell: (params: GridEditLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -37,5 +37,8 @@ export interface GridEditLongTextCellProps extends GridRenderEditCellParams<any,
37
37
  };
38
38
  }
39
39
  declare function GridEditLongTextCell(props: GridEditLongTextCellProps): import("react/jsx-runtime").JSX.Element;
40
+ declare namespace GridEditLongTextCell {
41
+ var propTypes: any;
42
+ }
40
43
  export { GridEditLongTextCell };
41
44
  export declare const renderEditLongTextCell: (params: GridEditLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,6 +10,7 @@ exports.GridEditLongTextCell = GridEditLongTextCell;
10
10
  exports.renderEditLongTextCell = void 0;
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
14
  var _clsx = _interopRequireDefault(require("clsx"));
14
15
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
16
  var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
@@ -171,6 +172,76 @@ function GridEditLongTextCell(props) {
171
172
  }))]
172
173
  }));
173
174
  }
175
+ process.env.NODE_ENV !== "production" ? GridEditLongTextCell.propTypes /* remove-proptypes */ = {
176
+ // ----------------------------- Warning --------------------------------
177
+ // | These PropTypes are generated from the TypeScript type definitions |
178
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
179
+ // ----------------------------------------------------------------------
180
+ /**
181
+ * GridApi that let you manipulate the grid.
182
+ */
183
+ api: _propTypes.default.object.isRequired,
184
+ /**
185
+ * The mode of the cell.
186
+ */
187
+ cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
188
+ changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
189
+ /**
190
+ * The column of the row that the current cell belongs to.
191
+ */
192
+ colDef: _propTypes.default.object.isRequired,
193
+ debounceMs: _propTypes.default.number,
194
+ /**
195
+ * The column field of the cell that triggered the event.
196
+ */
197
+ field: _propTypes.default.string.isRequired,
198
+ /**
199
+ * The cell value formatted with the column valueFormatter.
200
+ */
201
+ formattedValue: _propTypes.default.string,
202
+ /**
203
+ * If true, the cell is the active element.
204
+ */
205
+ hasFocus: _propTypes.default.bool.isRequired,
206
+ /**
207
+ * The grid row id.
208
+ */
209
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
210
+ /**
211
+ * If true, the cell is editable.
212
+ */
213
+ isEditable: _propTypes.default.bool,
214
+ isProcessingProps: _propTypes.default.bool,
215
+ isValidating: _propTypes.default.bool,
216
+ /**
217
+ * Callback called when the value is changed by the user.
218
+ * @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
219
+ * @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
220
+ * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
221
+ */
222
+ onValueChange: _propTypes.default.func,
223
+ /**
224
+ * The row model of the row that the current cell belongs to.
225
+ */
226
+ row: _propTypes.default.any.isRequired,
227
+ /**
228
+ * The node of the row that the current cell belongs to.
229
+ */
230
+ rowNode: _propTypes.default.object.isRequired,
231
+ /**
232
+ * Props passed to internal components.
233
+ */
234
+ slotProps: _propTypes.default.object,
235
+ /**
236
+ * the tabIndex value.
237
+ */
238
+ tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
239
+ /**
240
+ * The cell value.
241
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
242
+ */
243
+ value: _propTypes.default.string
244
+ } : void 0;
174
245
  function GridEditLongTextarea(props) {
175
246
  const {
176
247
  id,
@@ -243,6 +314,76 @@ function GridEditLongTextarea(props) {
243
314
  className: (0, _clsx.default)(classes.textarea, slotProps?.textarea?.className)
244
315
  }));
245
316
  }
317
+ process.env.NODE_ENV !== "production" ? GridEditLongTextarea.propTypes /* remove-proptypes */ = {
318
+ // ----------------------------- Warning --------------------------------
319
+ // | These PropTypes are generated from the TypeScript type definitions |
320
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
321
+ // ----------------------------------------------------------------------
322
+ /**
323
+ * GridApi that let you manipulate the grid.
324
+ */
325
+ api: _propTypes.default.object.isRequired,
326
+ /**
327
+ * The mode of the cell.
328
+ */
329
+ cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
330
+ changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
331
+ /**
332
+ * The column of the row that the current cell belongs to.
333
+ */
334
+ colDef: _propTypes.default.object.isRequired,
335
+ debounceMs: _propTypes.default.number,
336
+ /**
337
+ * The column field of the cell that triggered the event.
338
+ */
339
+ field: _propTypes.default.string.isRequired,
340
+ /**
341
+ * The cell value formatted with the column valueFormatter.
342
+ */
343
+ formattedValue: _propTypes.default.string,
344
+ /**
345
+ * If true, the cell is the active element.
346
+ */
347
+ hasFocus: _propTypes.default.bool.isRequired,
348
+ /**
349
+ * The grid row id.
350
+ */
351
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
352
+ /**
353
+ * If true, the cell is editable.
354
+ */
355
+ isEditable: _propTypes.default.bool,
356
+ isProcessingProps: _propTypes.default.bool,
357
+ isValidating: _propTypes.default.bool,
358
+ /**
359
+ * Callback called when the value is changed by the user.
360
+ * @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
361
+ * @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
362
+ * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
363
+ */
364
+ onValueChange: _propTypes.default.func,
365
+ /**
366
+ * The row model of the row that the current cell belongs to.
367
+ */
368
+ row: _propTypes.default.any.isRequired,
369
+ /**
370
+ * The node of the row that the current cell belongs to.
371
+ */
372
+ rowNode: _propTypes.default.object.isRequired,
373
+ /**
374
+ * Props passed to internal components.
375
+ */
376
+ slotProps: _propTypes.default.object,
377
+ /**
378
+ * the tabIndex value.
379
+ */
380
+ tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
381
+ /**
382
+ * The cell value.
383
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
384
+ */
385
+ value: _propTypes.default.string
386
+ } : void 0;
246
387
  const renderEditLongTextCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextCell, (0, _extends2.default)({}, params));
247
388
  exports.renderEditLongTextCell = renderEditLongTextCell;
248
389
  if (process.env.NODE_ENV !== "production") renderEditLongTextCell.displayName = "renderEditLongTextCell";