@mui/x-data-grid 8.26.0 → 8.27.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 (760) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/DataGrid/DataGrid.d.ts +2 -2
  3. package/DataGrid/useDataGridComponent.d.ts +4 -4
  4. package/DataGrid/useDataGridProps.d.ts +2 -2
  5. package/colDef/gridActionsColDef.d.ts +1 -1
  6. package/colDef/gridBooleanColDef.d.ts +1 -1
  7. package/colDef/gridBooleanOperators.d.ts +1 -1
  8. package/colDef/gridCheckboxSelectionColDef.d.ts +1 -1
  9. package/colDef/gridDateColDef.d.ts +1 -1
  10. package/colDef/gridDateOperators.d.ts +2 -2
  11. package/colDef/gridDefaultColumnTypes.js +3 -1
  12. package/colDef/gridLongTextColDef.d.ts +2 -0
  13. package/colDef/gridLongTextColDef.js +17 -0
  14. package/colDef/gridNumericColDef.d.ts +1 -1
  15. package/colDef/gridNumericOperators.d.ts +1 -1
  16. package/colDef/gridSingleSelectColDef.d.ts +1 -1
  17. package/colDef/gridSingleSelectOperators.d.ts +1 -1
  18. package/colDef/gridStringColDef.d.ts +1 -1
  19. package/colDef/gridStringOperators.d.ts +1 -1
  20. package/colDef/index.d.ts +1 -0
  21. package/colDef/index.js +11 -0
  22. package/components/GridColumnHeaders.d.ts +1 -1
  23. package/components/GridColumnSortButton.d.ts +2 -2
  24. package/components/GridColumnUnsortedIcon.d.ts +2 -2
  25. package/components/GridFooter.d.ts +1 -1
  26. package/components/GridLoadingOverlay.d.ts +1 -1
  27. package/components/GridNoColumnsOverlay.d.ts +1 -1
  28. package/components/GridNoResultsOverlay.d.ts +1 -1
  29. package/components/GridNoRowsOverlay.d.ts +1 -1
  30. package/components/GridRow.d.ts +2 -2
  31. package/components/GridRowCount.d.ts +1 -1
  32. package/components/GridScrollArea.d.ts +2 -2
  33. package/components/GridSelectedRowCount.d.ts +1 -1
  34. package/components/GridSkeletonLoadingOverlay.d.ts +1 -1
  35. package/components/cell/GridActionsCell.d.ts +4 -4
  36. package/components/cell/GridActionsCellItem.d.ts +1 -1
  37. package/components/cell/GridCell.d.ts +3 -3
  38. package/components/cell/GridEditBooleanCell.d.ts +1 -1
  39. package/components/cell/GridEditDateCell.d.ts +2 -2
  40. package/components/cell/GridEditInputCell.d.ts +2 -2
  41. package/components/cell/GridEditLongTextCell.d.ts +41 -0
  42. package/components/cell/GridEditLongTextCell.js +248 -0
  43. package/components/cell/GridEditSingleSelectCell.d.ts +1 -1
  44. package/components/cell/GridFooterCell.d.ts +1 -1
  45. package/components/cell/GridLongTextCell.d.ts +43 -0
  46. package/components/cell/GridLongTextCell.js +254 -0
  47. package/components/cell/GridSkeletonCell.d.ts +1 -1
  48. package/components/cell/index.d.ts +3 -1
  49. package/components/cell/index.js +24 -0
  50. package/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
  51. package/components/columnHeaders/GridBaseColumnHeaders.d.ts +1 -1
  52. package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +1 -1
  53. package/components/columnHeaders/GridColumnHeaderItem.d.ts +3 -3
  54. package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -1
  55. package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +4 -4
  56. package/components/columnsManagement/GridColumnsManagement.d.ts +1 -1
  57. package/components/columnsManagement/utils.d.ts +1 -1
  58. package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
  59. package/components/containers/GridFooterContainer.d.ts +1 -1
  60. package/components/containers/GridOverlay.d.ts +1 -1
  61. package/components/containers/GridRoot.d.ts +2 -2
  62. package/components/containers/GridRootStyles.d.ts +1 -1
  63. package/components/containers/GridToolbarContainer.d.ts +1 -1
  64. package/components/export/ExportCsv.d.ts +2 -2
  65. package/components/export/ExportPrint.d.ts +2 -2
  66. package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
  67. package/components/menu/GridMenu.d.ts +1 -1
  68. package/components/menu/columnMenu/GridColumnHeaderMenu.d.ts +1 -1
  69. package/components/menu/columnMenu/GridColumnMenu.d.ts +1 -1
  70. package/components/menu/columnMenu/GridColumnMenuContainer.d.ts +1 -1
  71. package/components/menu/columnMenu/GridColumnMenuItemProps.d.ts +2 -2
  72. package/components/menu/columnMenu/GridColumnMenuProps.d.ts +3 -3
  73. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.d.ts +1 -1
  74. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.d.ts +1 -1
  75. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.d.ts +1 -1
  76. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.d.ts +1 -1
  77. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.d.ts +1 -1
  78. package/components/panel/GridColumnsPanel.d.ts +1 -1
  79. package/components/panel/GridPanel.d.ts +1 -1
  80. package/components/panel/GridPanelContent.d.ts +1 -1
  81. package/components/panel/GridPanelFooter.d.ts +1 -1
  82. package/components/panel/GridPanelHeader.d.ts +1 -1
  83. package/components/panel/GridPanelWrapper.d.ts +2 -2
  84. package/components/panel/filterPanel/GridFilterForm.d.ts +2 -2
  85. package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +2 -2
  86. package/components/panel/filterPanel/GridFilterInputDate.d.ts +2 -2
  87. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
  88. package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
  89. package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +2 -2
  90. package/components/panel/filterPanel/GridFilterInputValue.d.ts +3 -3
  91. package/components/panel/filterPanel/GridFilterPanel.d.ts +4 -4
  92. package/components/quickFilter/QuickFilter.d.ts +2 -2
  93. package/components/quickFilter/QuickFilterClear.d.ts +2 -2
  94. package/components/quickFilter/QuickFilterControl.d.ts +2 -2
  95. package/components/quickFilter/QuickFilterTrigger.d.ts +2 -2
  96. package/components/toolbar/GridToolbar.d.ts +3 -3
  97. package/components/toolbar/GridToolbarExport.d.ts +1 -1
  98. package/components/toolbar/GridToolbarQuickFilter.d.ts +2 -2
  99. package/components/toolbarV8/GridToolbar.d.ts +1 -1
  100. package/components/toolbarV8/Toolbar.d.ts +1 -1
  101. package/components/toolbarV8/ToolbarButton.d.ts +1 -1
  102. package/components/virtualization/GridMainContainer.d.ts +1 -1
  103. package/components/virtualization/GridVirtualScrollerContent.d.ts +1 -1
  104. package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +1 -1
  105. package/constants/defaultGridSlotsComponents.d.ts +1 -1
  106. package/constants/gridClasses.d.ts +44 -0
  107. package/constants/gridClasses.js +1 -1
  108. package/constants/localeTextConstants.d.ts +1 -1
  109. package/constants/localeTextConstants.js +3 -0
  110. package/context/GridContextProvider.d.ts +3 -3
  111. package/esm/DataGrid/DataGrid.d.ts +2 -2
  112. package/esm/DataGrid/useDataGridComponent.d.ts +4 -4
  113. package/esm/DataGrid/useDataGridProps.d.ts +2 -2
  114. package/esm/colDef/gridActionsColDef.d.ts +1 -1
  115. package/esm/colDef/gridBooleanColDef.d.ts +1 -1
  116. package/esm/colDef/gridBooleanOperators.d.ts +1 -1
  117. package/esm/colDef/gridCheckboxSelectionColDef.d.ts +1 -1
  118. package/esm/colDef/gridDateColDef.d.ts +1 -1
  119. package/esm/colDef/gridDateOperators.d.ts +2 -2
  120. package/esm/colDef/gridDefaultColumnTypes.js +3 -1
  121. package/esm/colDef/gridLongTextColDef.d.ts +2 -0
  122. package/esm/colDef/gridLongTextColDef.js +10 -0
  123. package/esm/colDef/gridNumericColDef.d.ts +1 -1
  124. package/esm/colDef/gridNumericOperators.d.ts +1 -1
  125. package/esm/colDef/gridSingleSelectColDef.d.ts +1 -1
  126. package/esm/colDef/gridSingleSelectOperators.d.ts +1 -1
  127. package/esm/colDef/gridStringColDef.d.ts +1 -1
  128. package/esm/colDef/gridStringOperators.d.ts +1 -1
  129. package/esm/colDef/index.d.ts +1 -0
  130. package/esm/colDef/index.js +1 -0
  131. package/esm/components/GridColumnHeaders.d.ts +1 -1
  132. package/esm/components/GridColumnSortButton.d.ts +2 -2
  133. package/esm/components/GridColumnUnsortedIcon.d.ts +2 -2
  134. package/esm/components/GridFooter.d.ts +1 -1
  135. package/esm/components/GridLoadingOverlay.d.ts +1 -1
  136. package/esm/components/GridNoColumnsOverlay.d.ts +1 -1
  137. package/esm/components/GridNoResultsOverlay.d.ts +1 -1
  138. package/esm/components/GridNoRowsOverlay.d.ts +1 -1
  139. package/esm/components/GridRow.d.ts +2 -2
  140. package/esm/components/GridRowCount.d.ts +1 -1
  141. package/esm/components/GridScrollArea.d.ts +2 -2
  142. package/esm/components/GridSelectedRowCount.d.ts +1 -1
  143. package/esm/components/GridSkeletonLoadingOverlay.d.ts +1 -1
  144. package/esm/components/cell/GridActionsCell.d.ts +4 -4
  145. package/esm/components/cell/GridActionsCellItem.d.ts +1 -1
  146. package/esm/components/cell/GridCell.d.ts +3 -3
  147. package/esm/components/cell/GridEditBooleanCell.d.ts +1 -1
  148. package/esm/components/cell/GridEditDateCell.d.ts +2 -2
  149. package/esm/components/cell/GridEditInputCell.d.ts +2 -2
  150. package/esm/components/cell/GridEditLongTextCell.d.ts +41 -0
  151. package/esm/components/cell/GridEditLongTextCell.js +240 -0
  152. package/esm/components/cell/GridEditSingleSelectCell.d.ts +1 -1
  153. package/esm/components/cell/GridFooterCell.d.ts +1 -1
  154. package/esm/components/cell/GridLongTextCell.d.ts +43 -0
  155. package/esm/components/cell/GridLongTextCell.js +246 -0
  156. package/esm/components/cell/GridSkeletonCell.d.ts +1 -1
  157. package/esm/components/cell/index.d.ts +3 -1
  158. package/esm/components/cell/index.js +3 -1
  159. package/esm/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
  160. package/esm/components/columnHeaders/GridBaseColumnHeaders.d.ts +1 -1
  161. package/esm/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +1 -1
  162. package/esm/components/columnHeaders/GridColumnHeaderItem.d.ts +3 -3
  163. package/esm/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -1
  164. package/esm/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +4 -4
  165. package/esm/components/columnsManagement/GridColumnsManagement.d.ts +1 -1
  166. package/esm/components/columnsManagement/utils.d.ts +1 -1
  167. package/esm/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
  168. package/esm/components/containers/GridFooterContainer.d.ts +1 -1
  169. package/esm/components/containers/GridOverlay.d.ts +1 -1
  170. package/esm/components/containers/GridRoot.d.ts +2 -2
  171. package/esm/components/containers/GridRootStyles.d.ts +1 -1
  172. package/esm/components/containers/GridToolbarContainer.d.ts +1 -1
  173. package/esm/components/export/ExportCsv.d.ts +2 -2
  174. package/esm/components/export/ExportPrint.d.ts +2 -2
  175. package/esm/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
  176. package/esm/components/menu/GridMenu.d.ts +1 -1
  177. package/esm/components/menu/columnMenu/GridColumnHeaderMenu.d.ts +1 -1
  178. package/esm/components/menu/columnMenu/GridColumnMenu.d.ts +1 -1
  179. package/esm/components/menu/columnMenu/GridColumnMenuContainer.d.ts +1 -1
  180. package/esm/components/menu/columnMenu/GridColumnMenuItemProps.d.ts +2 -2
  181. package/esm/components/menu/columnMenu/GridColumnMenuProps.d.ts +3 -3
  182. package/esm/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.d.ts +1 -1
  183. package/esm/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.d.ts +1 -1
  184. package/esm/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.d.ts +1 -1
  185. package/esm/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.d.ts +1 -1
  186. package/esm/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.d.ts +1 -1
  187. package/esm/components/panel/GridColumnsPanel.d.ts +1 -1
  188. package/esm/components/panel/GridPanel.d.ts +1 -1
  189. package/esm/components/panel/GridPanelContent.d.ts +1 -1
  190. package/esm/components/panel/GridPanelFooter.d.ts +1 -1
  191. package/esm/components/panel/GridPanelHeader.d.ts +1 -1
  192. package/esm/components/panel/GridPanelWrapper.d.ts +2 -2
  193. package/esm/components/panel/filterPanel/GridFilterForm.d.ts +2 -2
  194. package/esm/components/panel/filterPanel/GridFilterInputBoolean.d.ts +2 -2
  195. package/esm/components/panel/filterPanel/GridFilterInputDate.d.ts +2 -2
  196. package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
  197. package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
  198. package/esm/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +2 -2
  199. package/esm/components/panel/filterPanel/GridFilterInputValue.d.ts +3 -3
  200. package/esm/components/panel/filterPanel/GridFilterPanel.d.ts +4 -4
  201. package/esm/components/quickFilter/QuickFilter.d.ts +2 -2
  202. package/esm/components/quickFilter/QuickFilterClear.d.ts +2 -2
  203. package/esm/components/quickFilter/QuickFilterControl.d.ts +2 -2
  204. package/esm/components/quickFilter/QuickFilterTrigger.d.ts +2 -2
  205. package/esm/components/toolbar/GridToolbar.d.ts +3 -3
  206. package/esm/components/toolbar/GridToolbarExport.d.ts +1 -1
  207. package/esm/components/toolbar/GridToolbarQuickFilter.d.ts +2 -2
  208. package/esm/components/toolbarV8/GridToolbar.d.ts +1 -1
  209. package/esm/components/toolbarV8/Toolbar.d.ts +1 -1
  210. package/esm/components/toolbarV8/ToolbarButton.d.ts +1 -1
  211. package/esm/components/virtualization/GridMainContainer.d.ts +1 -1
  212. package/esm/components/virtualization/GridVirtualScrollerContent.d.ts +1 -1
  213. package/esm/components/virtualization/GridVirtualScrollerRenderZone.d.ts +1 -1
  214. package/esm/constants/defaultGridSlotsComponents.d.ts +1 -1
  215. package/esm/constants/gridClasses.d.ts +44 -0
  216. package/esm/constants/gridClasses.js +1 -1
  217. package/esm/constants/localeTextConstants.d.ts +1 -1
  218. package/esm/constants/localeTextConstants.js +3 -0
  219. package/esm/context/GridContextProvider.d.ts +3 -3
  220. package/esm/hooks/core/gridCoreSelector.d.ts +1 -1
  221. package/esm/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +10 -10
  222. package/esm/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +2 -2
  223. package/esm/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +3 -3
  224. package/esm/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +3 -3
  225. package/esm/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +3 -3
  226. package/esm/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +3 -3
  227. package/esm/hooks/core/useGridApiInitialization.d.ts +2 -2
  228. package/esm/hooks/core/useGridInitialization.d.ts +2 -2
  229. package/esm/hooks/core/useGridIsRtl.d.ts +2 -2
  230. package/esm/hooks/core/useGridLocaleText.d.ts +3 -3
  231. package/esm/hooks/core/useGridLoggerFactory.d.ts +3 -3
  232. package/esm/hooks/core/useGridRefs.d.ts +1 -1
  233. package/esm/hooks/core/useGridStateInitialization.d.ts +1 -1
  234. package/esm/hooks/features/clipboard/useGridClipboard.d.ts +2 -2
  235. package/esm/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.ts +1 -1
  236. package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +1 -1
  237. package/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +3 -3
  238. package/esm/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +4 -4
  239. package/esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +8 -8
  240. package/esm/hooks/features/columnMenu/columnMenuInterfaces.d.ts +1 -1
  241. package/esm/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
  242. package/esm/hooks/features/columnMenu/useGridColumnMenu.d.ts +3 -3
  243. package/esm/hooks/features/columnMenu/useGridColumnMenuSlots.d.ts +2 -2
  244. package/esm/hooks/features/columnResize/columnResizeSelector.d.ts +1 -1
  245. package/esm/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
  246. package/esm/hooks/features/columns/gridColumnsSelector.d.ts +2 -2
  247. package/esm/hooks/features/columns/gridColumnsUtils.d.ts +7 -7
  248. package/esm/hooks/features/columns/useGridColumnSpanning.d.ts +2 -2
  249. package/esm/hooks/features/columns/useGridColumns.d.ts +4 -4
  250. package/esm/hooks/features/dataSource/useGridDataSource.d.ts +1 -1
  251. package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +2 -2
  252. package/esm/hooks/features/density/densitySelector.d.ts +2 -2
  253. package/esm/hooks/features/density/densityState.d.ts +1 -1
  254. package/esm/hooks/features/density/useGridDensity.d.ts +4 -4
  255. package/esm/hooks/features/dimensions/gridDimensionsSelectors.d.ts +1 -1
  256. package/esm/hooks/features/dimensions/useGridDimensions.d.ts +5 -5
  257. package/esm/hooks/features/editing/gridEditingSelectors.d.ts +3 -3
  258. package/esm/hooks/features/editing/useGridCellEditable.d.ts +1 -1
  259. package/esm/hooks/features/editing/useGridCellEditing.d.ts +3 -3
  260. package/esm/hooks/features/editing/useGridEditing.d.ts +5 -5
  261. package/esm/hooks/features/editing/useGridRowEditing.d.ts +3 -3
  262. package/esm/hooks/features/editing/utils.d.ts +1 -1
  263. package/esm/hooks/features/events/useGridEvents.d.ts +3 -3
  264. package/esm/hooks/features/export/serializers/csvSerializer.d.ts +1 -1
  265. package/esm/hooks/features/export/useGridCsvExport.d.ts +2 -2
  266. package/esm/hooks/features/export/useGridPrintExport.d.ts +3 -3
  267. package/esm/hooks/features/export/utils.d.ts +5 -5
  268. package/esm/hooks/features/filter/gridFilterSelector.d.ts +3 -3
  269. package/esm/hooks/features/filter/gridFilterState.d.ts +4 -4
  270. package/esm/hooks/features/filter/gridFilterUtils.d.ts +4 -4
  271. package/esm/hooks/features/filter/useGridFilter.d.ts +4 -4
  272. package/esm/hooks/features/focus/gridFocusState.d.ts +1 -1
  273. package/esm/hooks/features/focus/gridFocusStateSelector.d.ts +2 -2
  274. package/esm/hooks/features/focus/useGridFocus.d.ts +4 -4
  275. package/esm/hooks/features/focus/useGridFocus.js +15 -1
  276. package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +1 -1
  277. package/esm/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +4 -4
  278. package/esm/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +3 -3
  279. package/esm/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -0
  280. package/esm/hooks/features/keyboardNavigation/utils.d.ts +3 -3
  281. package/esm/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
  282. package/esm/hooks/features/listView/useGridListView.d.ts +4 -4
  283. package/esm/hooks/features/overlays/gridOverlaysInterfaces.d.ts +1 -1
  284. package/esm/hooks/features/overlays/useGridOverlays.d.ts +3 -3
  285. package/esm/hooks/features/pagination/gridPaginationInterfaces.d.ts +2 -2
  286. package/esm/hooks/features/pagination/gridPaginationSelector.d.ts +2 -2
  287. package/esm/hooks/features/pagination/gridPaginationUtils.d.ts +1 -1
  288. package/esm/hooks/features/pagination/useGridPagination.d.ts +4 -4
  289. package/esm/hooks/features/pagination/useGridPaginationMeta.d.ts +3 -3
  290. package/esm/hooks/features/pagination/useGridPaginationModel.d.ts +5 -5
  291. package/esm/hooks/features/pagination/useGridRowCount.d.ts +3 -3
  292. package/esm/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +1 -1
  293. package/esm/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +1 -1
  294. package/esm/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +4 -4
  295. package/esm/hooks/features/rowReorder/gridRowReorderSelector.d.ts +1 -1
  296. package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +2 -2
  297. package/esm/hooks/features/rowSelection/useGridRowSelection.d.ts +4 -4
  298. package/esm/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +3 -3
  299. package/esm/hooks/features/rowSelection/utils.d.ts +3 -3
  300. package/esm/hooks/features/rows/gridRowSpanningUtils.d.ts +1 -1
  301. package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
  302. package/esm/hooks/features/rows/gridRowsMetaInterfaces.d.ts +1 -1
  303. package/esm/hooks/features/rows/gridRowsMetaSelector.d.ts +1 -1
  304. package/esm/hooks/features/rows/gridRowsMetaState.d.ts +1 -1
  305. package/esm/hooks/features/rows/gridRowsSelector.d.ts +2 -2
  306. package/esm/hooks/features/rows/gridRowsUtils.d.ts +5 -5
  307. package/esm/hooks/features/rows/useGridParamsApi.d.ts +3 -3
  308. package/esm/hooks/features/rows/useGridParamsOverridableMethods.d.ts +2 -2
  309. package/esm/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
  310. package/esm/hooks/features/rows/useGridRowSpanning.d.ts +2 -2
  311. package/esm/hooks/features/rows/useGridRows.d.ts +4 -4
  312. package/esm/hooks/features/rows/useGridRowsMeta.d.ts +4 -4
  313. package/esm/hooks/features/rows/useGridRowsOverridableMethods.d.ts +3 -3
  314. package/esm/hooks/features/rows/useGridRowsPreProcessors.d.ts +2 -2
  315. package/esm/hooks/features/scroll/useGridScroll.d.ts +3 -3
  316. package/esm/hooks/features/sorting/gridSortingSelector.d.ts +2 -2
  317. package/esm/hooks/features/sorting/gridSortingState.d.ts +2 -2
  318. package/esm/hooks/features/sorting/gridSortingUtils.d.ts +5 -5
  319. package/esm/hooks/features/sorting/useGridSorting.d.ts +4 -4
  320. package/esm/hooks/features/statePersistence/gridStatePersistenceInterface.d.ts +1 -1
  321. package/esm/hooks/features/statePersistence/useGridStatePersistence.d.ts +2 -2
  322. package/esm/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +1 -1
  323. package/esm/hooks/features/virtualization/useGridVirtualization.d.ts +5 -5
  324. package/esm/hooks/utils/useGridApiContext.d.ts +3 -3
  325. package/esm/hooks/utils/useGridApiMethod.d.ts +2 -2
  326. package/esm/hooks/utils/useGridApiRef.d.ts +2 -2
  327. package/esm/hooks/utils/useGridAriaAttributes.d.ts +1 -1
  328. package/esm/hooks/utils/useGridConfiguration.d.ts +1 -1
  329. package/esm/hooks/utils/useGridEvent.d.ts +3 -3
  330. package/esm/hooks/utils/useGridInitializeState.d.ts +4 -4
  331. package/esm/hooks/utils/useGridLogger.d.ts +3 -3
  332. package/esm/hooks/utils/useGridNativeEventListener.d.ts +2 -2
  333. package/esm/hooks/utils/useGridPrivateApiContext.d.ts +3 -3
  334. package/esm/hooks/utils/useGridSelector.d.ts +1 -1
  335. package/esm/hooks/utils/useGridVisibleRows.d.ts +2 -2
  336. package/esm/index.d.ts +2 -2
  337. package/esm/index.js +1 -1
  338. package/esm/internals/utils/attachPinnedStyle.d.ts +1 -1
  339. package/esm/internals/utils/cache.d.ts +1 -1
  340. package/esm/internals/utils/getPinnedCellOffset.d.ts +1 -1
  341. package/esm/internals/utils/propValidation.d.ts +1 -1
  342. package/esm/locales/arSD.d.ts +1 -1
  343. package/esm/locales/arSD.js +3 -0
  344. package/esm/locales/beBY.d.ts +1 -1
  345. package/esm/locales/beBY.js +3 -0
  346. package/esm/locales/bgBG.d.ts +1 -1
  347. package/esm/locales/bgBG.js +3 -0
  348. package/esm/locales/bnBD.d.ts +1 -1
  349. package/esm/locales/bnBD.js +3 -0
  350. package/esm/locales/caES.d.ts +1 -1
  351. package/esm/locales/caES.js +3 -0
  352. package/esm/locales/csCZ.d.ts +1 -1
  353. package/esm/locales/csCZ.js +3 -0
  354. package/esm/locales/daDK.d.ts +1 -1
  355. package/esm/locales/daDK.js +3 -0
  356. package/esm/locales/deDE.d.ts +1 -1
  357. package/esm/locales/deDE.js +3 -0
  358. package/esm/locales/elGR.d.ts +1 -1
  359. package/esm/locales/elGR.js +3 -0
  360. package/esm/locales/enUS.d.ts +1 -1
  361. package/esm/locales/esES.d.ts +1 -1
  362. package/esm/locales/esES.js +3 -0
  363. package/esm/locales/faIR.d.ts +1 -1
  364. package/esm/locales/faIR.js +3 -0
  365. package/esm/locales/fiFI.d.ts +1 -1
  366. package/esm/locales/fiFI.js +3 -0
  367. package/esm/locales/frFR.d.ts +1 -1
  368. package/esm/locales/frFR.js +3 -0
  369. package/esm/locales/heIL.d.ts +1 -1
  370. package/esm/locales/heIL.js +3 -0
  371. package/esm/locales/hrHR.js +3 -0
  372. package/esm/locales/huHU.d.ts +1 -1
  373. package/esm/locales/huHU.js +3 -0
  374. package/esm/locales/hyAM.d.ts +1 -1
  375. package/esm/locales/hyAM.js +3 -0
  376. package/esm/locales/idID.d.ts +2 -2
  377. package/esm/locales/idID.js +3 -0
  378. package/esm/locales/isIS.d.ts +1 -1
  379. package/esm/locales/isIS.js +3 -0
  380. package/esm/locales/itIT.d.ts +1 -1
  381. package/esm/locales/itIT.js +3 -0
  382. package/esm/locales/jaJP.d.ts +1 -1
  383. package/esm/locales/jaJP.js +3 -0
  384. package/esm/locales/koKR.d.ts +1 -1
  385. package/esm/locales/koKR.js +3 -0
  386. package/esm/locales/nbNO.d.ts +1 -1
  387. package/esm/locales/nbNO.js +3 -0
  388. package/esm/locales/nlNL.d.ts +1 -1
  389. package/esm/locales/nlNL.js +3 -0
  390. package/esm/locales/nnNO.d.ts +1 -1
  391. package/esm/locales/nnNO.js +3 -0
  392. package/esm/locales/plPL.d.ts +1 -1
  393. package/esm/locales/plPL.js +3 -0
  394. package/esm/locales/ptBR.d.ts +1 -1
  395. package/esm/locales/ptBR.js +3 -0
  396. package/esm/locales/ptPT.d.ts +1 -1
  397. package/esm/locales/ptPT.js +3 -0
  398. package/esm/locales/roRO.d.ts +1 -1
  399. package/esm/locales/roRO.js +3 -0
  400. package/esm/locales/ruRU.d.ts +1 -1
  401. package/esm/locales/ruRU.js +3 -0
  402. package/esm/locales/skSK.d.ts +1 -1
  403. package/esm/locales/skSK.js +3 -0
  404. package/esm/locales/svSE.d.ts +1 -1
  405. package/esm/locales/svSE.js +3 -0
  406. package/esm/locales/trTR.d.ts +1 -1
  407. package/esm/locales/trTR.js +3 -0
  408. package/esm/locales/ukUA.d.ts +1 -1
  409. package/esm/locales/ukUA.js +3 -0
  410. package/esm/locales/urPK.d.ts +1 -1
  411. package/esm/locales/urPK.js +3 -0
  412. package/esm/locales/viVN.d.ts +1 -1
  413. package/esm/locales/viVN.js +3 -0
  414. package/esm/locales/zhCN.d.ts +1 -1
  415. package/esm/locales/zhCN.js +3 -0
  416. package/esm/locales/zhHK.js +3 -0
  417. package/esm/locales/zhTW.d.ts +1 -1
  418. package/esm/locales/zhTW.js +3 -0
  419. package/esm/material/augmentation.d.ts +4 -0
  420. package/esm/material/icons/createSvgIcon.d.ts +1 -1
  421. package/esm/material/icons/index.d.ts +3 -1
  422. package/esm/material/icons/index.js +7 -1
  423. package/esm/material/index.js +25 -10
  424. package/esm/models/api/gridColumnApi.d.ts +1 -1
  425. package/esm/models/api/gridColumnGroupingApi.d.ts +2 -2
  426. package/esm/models/api/gridColumnSpanning.d.ts +3 -3
  427. package/esm/models/api/gridCoreApi.d.ts +2 -2
  428. package/esm/models/api/gridCsvExportApi.d.ts +1 -1
  429. package/esm/models/api/gridDensityApi.d.ts +2 -2
  430. package/esm/models/api/gridEditingApi.d.ts +6 -6
  431. package/esm/models/api/gridFilterApi.d.ts +4 -4
  432. package/esm/models/api/gridFocusApi.d.ts +3 -3
  433. package/esm/models/api/gridHeaderFilteringApi.d.ts +2 -2
  434. package/esm/models/api/gridLocaleTextApi.d.ts +3 -1
  435. package/esm/models/api/gridLoggerApi.d.ts +1 -1
  436. package/esm/models/api/gridParamsApi.d.ts +7 -7
  437. package/esm/models/api/gridPreferencesPanelApi.d.ts +1 -1
  438. package/esm/models/api/gridPrintExportApi.d.ts +1 -1
  439. package/esm/models/api/gridRowApi.d.ts +1 -1
  440. package/esm/models/api/gridRowSelectionApi.d.ts +1 -1
  441. package/esm/models/api/gridRowsMetaApi.d.ts +2 -2
  442. package/esm/models/api/gridScrollApi.d.ts +2 -2
  443. package/esm/models/api/gridSortApi.d.ts +3 -3
  444. package/esm/models/api/gridStateApi.d.ts +3 -3
  445. package/esm/models/colDef/gridColDef.d.ts +13 -13
  446. package/esm/models/colDef/gridColType.d.ts +1 -0
  447. package/esm/models/colDef/gridColumnTypesRecord.d.ts +2 -2
  448. package/esm/models/configuration/gridAggregationConfiguration.d.ts +2 -2
  449. package/esm/models/configuration/gridCellEditableConfiguration.d.ts +4 -4
  450. package/esm/models/configuration/gridConfiguration.d.ts +1 -1
  451. package/esm/models/configuration/gridParamsConfiguration.d.ts +2 -2
  452. package/esm/models/configuration/gridRowConfiguration.d.ts +4 -4
  453. package/esm/models/controlStateItem.d.ts +1 -1
  454. package/esm/models/events/gridEventLookup.d.ts +7 -7
  455. package/esm/models/gridBaseSlots.d.ts +13 -0
  456. package/esm/models/gridCell.d.ts +1 -1
  457. package/esm/models/gridCellClass.d.ts +2 -2
  458. package/esm/models/gridColumnGrouping.d.ts +1 -1
  459. package/esm/models/gridColumnHeaderClass.d.ts +1 -1
  460. package/esm/models/gridExport.d.ts +2 -2
  461. package/esm/models/gridFilterInputComponent.d.ts +3 -3
  462. package/esm/models/gridFilterItem.d.ts +1 -1
  463. package/esm/models/gridFilterModel.d.ts +1 -1
  464. package/esm/models/gridFilterOperator.d.ts +3 -3
  465. package/esm/models/gridHeaderFilteringModel.d.ts +1 -1
  466. package/esm/models/gridIconSlotsComponent.d.ts +12 -2
  467. package/esm/models/gridRowSelectionModel.d.ts +1 -1
  468. package/esm/models/gridSlotsComponent.d.ts +6 -1
  469. package/esm/models/gridSlotsComponentsProps.d.ts +4 -2
  470. package/esm/models/gridSortModel.d.ts +1 -1
  471. package/esm/models/gridStateCommunity.d.ts +1 -1
  472. package/esm/models/params/gridCellParams.d.ts +4 -4
  473. package/esm/models/params/gridColumnGroupHeaderParams.d.ts +1 -1
  474. package/esm/models/params/gridColumnHeaderParams.d.ts +1 -1
  475. package/esm/models/params/gridEditCellParams.d.ts +2 -2
  476. package/esm/models/params/gridPreferencePanelParams.d.ts +1 -1
  477. package/esm/models/params/gridRowParams.d.ts +1 -1
  478. package/esm/models/params/gridRowSelectionCheckboxParams.d.ts +1 -1
  479. package/esm/models/params/gridValueOptionsParams.d.ts +1 -1
  480. package/esm/models/props/DataGridProps.d.ts +25 -26
  481. package/esm/themeAugmentation/overrides.d.ts +1 -1
  482. package/esm/themeAugmentation/props.d.ts +2 -2
  483. package/esm/utils/assert.d.ts +1 -1
  484. package/esm/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.d.ts +1 -1
  485. package/esm/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +1 -1
  486. package/esm/utils/createSelector.d.ts +2 -2
  487. package/esm/utils/exportAs.d.ts +1 -1
  488. package/esm/utils/getPublicApiRef.d.ts +1 -1
  489. package/esm/utils/keyboardUtils.d.ts +1 -1
  490. package/hooks/core/gridCoreSelector.d.ts +1 -1
  491. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +10 -10
  492. package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +2 -2
  493. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +3 -3
  494. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +3 -3
  495. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +3 -3
  496. package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +3 -3
  497. package/hooks/core/useGridApiInitialization.d.ts +2 -2
  498. package/hooks/core/useGridInitialization.d.ts +2 -2
  499. package/hooks/core/useGridIsRtl.d.ts +2 -2
  500. package/hooks/core/useGridLocaleText.d.ts +3 -3
  501. package/hooks/core/useGridLoggerFactory.d.ts +3 -3
  502. package/hooks/core/useGridRefs.d.ts +1 -1
  503. package/hooks/core/useGridStateInitialization.d.ts +1 -1
  504. package/hooks/features/clipboard/useGridClipboard.d.ts +2 -2
  505. package/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.ts +1 -1
  506. package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +1 -1
  507. package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +3 -3
  508. package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +4 -4
  509. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +8 -8
  510. package/hooks/features/columnMenu/columnMenuInterfaces.d.ts +1 -1
  511. package/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
  512. package/hooks/features/columnMenu/useGridColumnMenu.d.ts +3 -3
  513. package/hooks/features/columnMenu/useGridColumnMenuSlots.d.ts +2 -2
  514. package/hooks/features/columnResize/columnResizeSelector.d.ts +1 -1
  515. package/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
  516. package/hooks/features/columns/gridColumnsSelector.d.ts +2 -2
  517. package/hooks/features/columns/gridColumnsUtils.d.ts +7 -7
  518. package/hooks/features/columns/useGridColumnSpanning.d.ts +2 -2
  519. package/hooks/features/columns/useGridColumns.d.ts +4 -4
  520. package/hooks/features/dataSource/useGridDataSource.d.ts +1 -1
  521. package/hooks/features/dataSource/useGridDataSourceBase.d.ts +2 -2
  522. package/hooks/features/density/densitySelector.d.ts +2 -2
  523. package/hooks/features/density/densityState.d.ts +1 -1
  524. package/hooks/features/density/useGridDensity.d.ts +4 -4
  525. package/hooks/features/dimensions/gridDimensionsSelectors.d.ts +1 -1
  526. package/hooks/features/dimensions/useGridDimensions.d.ts +5 -5
  527. package/hooks/features/editing/gridEditingSelectors.d.ts +3 -3
  528. package/hooks/features/editing/useGridCellEditable.d.ts +1 -1
  529. package/hooks/features/editing/useGridCellEditing.d.ts +3 -3
  530. package/hooks/features/editing/useGridEditing.d.ts +5 -5
  531. package/hooks/features/editing/useGridRowEditing.d.ts +3 -3
  532. package/hooks/features/editing/utils.d.ts +1 -1
  533. package/hooks/features/events/useGridEvents.d.ts +3 -3
  534. package/hooks/features/export/serializers/csvSerializer.d.ts +1 -1
  535. package/hooks/features/export/useGridCsvExport.d.ts +2 -2
  536. package/hooks/features/export/useGridPrintExport.d.ts +3 -3
  537. package/hooks/features/export/utils.d.ts +5 -5
  538. package/hooks/features/filter/gridFilterSelector.d.ts +3 -3
  539. package/hooks/features/filter/gridFilterState.d.ts +4 -4
  540. package/hooks/features/filter/gridFilterUtils.d.ts +4 -4
  541. package/hooks/features/filter/useGridFilter.d.ts +4 -4
  542. package/hooks/features/focus/gridFocusState.d.ts +1 -1
  543. package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -2
  544. package/hooks/features/focus/useGridFocus.d.ts +4 -4
  545. package/hooks/features/focus/useGridFocus.js +15 -1
  546. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +1 -1
  547. package/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +4 -4
  548. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +3 -3
  549. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -0
  550. package/hooks/features/keyboardNavigation/utils.d.ts +3 -3
  551. package/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
  552. package/hooks/features/listView/useGridListView.d.ts +4 -4
  553. package/hooks/features/overlays/gridOverlaysInterfaces.d.ts +1 -1
  554. package/hooks/features/overlays/useGridOverlays.d.ts +3 -3
  555. package/hooks/features/pagination/gridPaginationInterfaces.d.ts +2 -2
  556. package/hooks/features/pagination/gridPaginationSelector.d.ts +2 -2
  557. package/hooks/features/pagination/gridPaginationUtils.d.ts +1 -1
  558. package/hooks/features/pagination/useGridPagination.d.ts +4 -4
  559. package/hooks/features/pagination/useGridPaginationMeta.d.ts +3 -3
  560. package/hooks/features/pagination/useGridPaginationModel.d.ts +5 -5
  561. package/hooks/features/pagination/useGridRowCount.d.ts +3 -3
  562. package/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +1 -1
  563. package/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +1 -1
  564. package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +4 -4
  565. package/hooks/features/rowReorder/gridRowReorderSelector.d.ts +1 -1
  566. package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +2 -2
  567. package/hooks/features/rowSelection/useGridRowSelection.d.ts +4 -4
  568. package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +3 -3
  569. package/hooks/features/rowSelection/utils.d.ts +3 -3
  570. package/hooks/features/rows/gridRowSpanningUtils.d.ts +1 -1
  571. package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
  572. package/hooks/features/rows/gridRowsMetaInterfaces.d.ts +1 -1
  573. package/hooks/features/rows/gridRowsMetaSelector.d.ts +1 -1
  574. package/hooks/features/rows/gridRowsMetaState.d.ts +1 -1
  575. package/hooks/features/rows/gridRowsSelector.d.ts +2 -2
  576. package/hooks/features/rows/gridRowsUtils.d.ts +5 -5
  577. package/hooks/features/rows/useGridParamsApi.d.ts +3 -3
  578. package/hooks/features/rows/useGridParamsOverridableMethods.d.ts +2 -2
  579. package/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
  580. package/hooks/features/rows/useGridRowSpanning.d.ts +2 -2
  581. package/hooks/features/rows/useGridRows.d.ts +4 -4
  582. package/hooks/features/rows/useGridRowsMeta.d.ts +4 -4
  583. package/hooks/features/rows/useGridRowsOverridableMethods.d.ts +3 -3
  584. package/hooks/features/rows/useGridRowsPreProcessors.d.ts +2 -2
  585. package/hooks/features/scroll/useGridScroll.d.ts +3 -3
  586. package/hooks/features/sorting/gridSortingSelector.d.ts +2 -2
  587. package/hooks/features/sorting/gridSortingState.d.ts +2 -2
  588. package/hooks/features/sorting/gridSortingUtils.d.ts +5 -5
  589. package/hooks/features/sorting/useGridSorting.d.ts +4 -4
  590. package/hooks/features/statePersistence/gridStatePersistenceInterface.d.ts +1 -1
  591. package/hooks/features/statePersistence/useGridStatePersistence.d.ts +2 -2
  592. package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +1 -1
  593. package/hooks/features/virtualization/useGridVirtualization.d.ts +5 -5
  594. package/hooks/utils/useGridApiContext.d.ts +3 -3
  595. package/hooks/utils/useGridApiMethod.d.ts +2 -2
  596. package/hooks/utils/useGridApiRef.d.ts +2 -2
  597. package/hooks/utils/useGridAriaAttributes.d.ts +1 -1
  598. package/hooks/utils/useGridConfiguration.d.ts +1 -1
  599. package/hooks/utils/useGridEvent.d.ts +3 -3
  600. package/hooks/utils/useGridInitializeState.d.ts +4 -4
  601. package/hooks/utils/useGridLogger.d.ts +3 -3
  602. package/hooks/utils/useGridNativeEventListener.d.ts +2 -2
  603. package/hooks/utils/useGridPrivateApiContext.d.ts +3 -3
  604. package/hooks/utils/useGridSelector.d.ts +1 -1
  605. package/hooks/utils/useGridVisibleRows.d.ts +2 -2
  606. package/index.d.ts +2 -2
  607. package/index.js +1 -1
  608. package/internals/utils/attachPinnedStyle.d.ts +1 -1
  609. package/internals/utils/cache.d.ts +1 -1
  610. package/internals/utils/getPinnedCellOffset.d.ts +1 -1
  611. package/internals/utils/propValidation.d.ts +1 -1
  612. package/locales/arSD.d.ts +1 -1
  613. package/locales/arSD.js +3 -0
  614. package/locales/beBY.d.ts +1 -1
  615. package/locales/beBY.js +3 -0
  616. package/locales/bgBG.d.ts +1 -1
  617. package/locales/bgBG.js +3 -0
  618. package/locales/bnBD.d.ts +1 -1
  619. package/locales/bnBD.js +3 -0
  620. package/locales/caES.d.ts +1 -1
  621. package/locales/caES.js +3 -0
  622. package/locales/csCZ.d.ts +1 -1
  623. package/locales/csCZ.js +3 -0
  624. package/locales/daDK.d.ts +1 -1
  625. package/locales/daDK.js +3 -0
  626. package/locales/deDE.d.ts +1 -1
  627. package/locales/deDE.js +3 -0
  628. package/locales/elGR.d.ts +1 -1
  629. package/locales/elGR.js +3 -0
  630. package/locales/enUS.d.ts +1 -1
  631. package/locales/esES.d.ts +1 -1
  632. package/locales/esES.js +3 -0
  633. package/locales/faIR.d.ts +1 -1
  634. package/locales/faIR.js +3 -0
  635. package/locales/fiFI.d.ts +1 -1
  636. package/locales/fiFI.js +3 -0
  637. package/locales/frFR.d.ts +1 -1
  638. package/locales/frFR.js +3 -0
  639. package/locales/heIL.d.ts +1 -1
  640. package/locales/heIL.js +3 -0
  641. package/locales/hrHR.js +3 -0
  642. package/locales/huHU.d.ts +1 -1
  643. package/locales/huHU.js +3 -0
  644. package/locales/hyAM.d.ts +1 -1
  645. package/locales/hyAM.js +3 -0
  646. package/locales/idID.d.ts +2 -2
  647. package/locales/idID.js +3 -0
  648. package/locales/isIS.d.ts +1 -1
  649. package/locales/isIS.js +3 -0
  650. package/locales/itIT.d.ts +1 -1
  651. package/locales/itIT.js +3 -0
  652. package/locales/jaJP.d.ts +1 -1
  653. package/locales/jaJP.js +3 -0
  654. package/locales/koKR.d.ts +1 -1
  655. package/locales/koKR.js +3 -0
  656. package/locales/nbNO.d.ts +1 -1
  657. package/locales/nbNO.js +3 -0
  658. package/locales/nlNL.d.ts +1 -1
  659. package/locales/nlNL.js +3 -0
  660. package/locales/nnNO.d.ts +1 -1
  661. package/locales/nnNO.js +3 -0
  662. package/locales/plPL.d.ts +1 -1
  663. package/locales/plPL.js +3 -0
  664. package/locales/ptBR.d.ts +1 -1
  665. package/locales/ptBR.js +3 -0
  666. package/locales/ptPT.d.ts +1 -1
  667. package/locales/ptPT.js +3 -0
  668. package/locales/roRO.d.ts +1 -1
  669. package/locales/roRO.js +3 -0
  670. package/locales/ruRU.d.ts +1 -1
  671. package/locales/ruRU.js +3 -0
  672. package/locales/skSK.d.ts +1 -1
  673. package/locales/skSK.js +3 -0
  674. package/locales/svSE.d.ts +1 -1
  675. package/locales/svSE.js +3 -0
  676. package/locales/trTR.d.ts +1 -1
  677. package/locales/trTR.js +3 -0
  678. package/locales/ukUA.d.ts +1 -1
  679. package/locales/ukUA.js +3 -0
  680. package/locales/urPK.d.ts +1 -1
  681. package/locales/urPK.js +3 -0
  682. package/locales/viVN.d.ts +1 -1
  683. package/locales/viVN.js +3 -0
  684. package/locales/zhCN.d.ts +1 -1
  685. package/locales/zhCN.js +3 -0
  686. package/locales/zhHK.js +3 -0
  687. package/locales/zhTW.d.ts +1 -1
  688. package/locales/zhTW.js +3 -0
  689. package/material/augmentation.d.ts +4 -0
  690. package/material/icons/createSvgIcon.d.ts +1 -1
  691. package/material/icons/index.d.ts +3 -1
  692. package/material/icons/index.js +8 -2
  693. package/material/index.js +24 -9
  694. package/models/api/gridColumnApi.d.ts +1 -1
  695. package/models/api/gridColumnGroupingApi.d.ts +2 -2
  696. package/models/api/gridColumnSpanning.d.ts +3 -3
  697. package/models/api/gridCoreApi.d.ts +2 -2
  698. package/models/api/gridCsvExportApi.d.ts +1 -1
  699. package/models/api/gridDensityApi.d.ts +2 -2
  700. package/models/api/gridEditingApi.d.ts +6 -6
  701. package/models/api/gridFilterApi.d.ts +4 -4
  702. package/models/api/gridFocusApi.d.ts +3 -3
  703. package/models/api/gridHeaderFilteringApi.d.ts +2 -2
  704. package/models/api/gridLocaleTextApi.d.ts +3 -1
  705. package/models/api/gridLoggerApi.d.ts +1 -1
  706. package/models/api/gridParamsApi.d.ts +7 -7
  707. package/models/api/gridPreferencesPanelApi.d.ts +1 -1
  708. package/models/api/gridPrintExportApi.d.ts +1 -1
  709. package/models/api/gridRowApi.d.ts +1 -1
  710. package/models/api/gridRowSelectionApi.d.ts +1 -1
  711. package/models/api/gridRowsMetaApi.d.ts +2 -2
  712. package/models/api/gridScrollApi.d.ts +2 -2
  713. package/models/api/gridSortApi.d.ts +3 -3
  714. package/models/api/gridStateApi.d.ts +3 -3
  715. package/models/colDef/gridColDef.d.ts +13 -13
  716. package/models/colDef/gridColType.d.ts +1 -0
  717. package/models/colDef/gridColumnTypesRecord.d.ts +2 -2
  718. package/models/configuration/gridAggregationConfiguration.d.ts +2 -2
  719. package/models/configuration/gridCellEditableConfiguration.d.ts +4 -4
  720. package/models/configuration/gridConfiguration.d.ts +1 -1
  721. package/models/configuration/gridParamsConfiguration.d.ts +2 -2
  722. package/models/configuration/gridRowConfiguration.d.ts +4 -4
  723. package/models/controlStateItem.d.ts +1 -1
  724. package/models/events/gridEventLookup.d.ts +7 -7
  725. package/models/gridBaseSlots.d.ts +13 -0
  726. package/models/gridCell.d.ts +1 -1
  727. package/models/gridCellClass.d.ts +2 -2
  728. package/models/gridColumnGrouping.d.ts +1 -1
  729. package/models/gridColumnHeaderClass.d.ts +1 -1
  730. package/models/gridExport.d.ts +2 -2
  731. package/models/gridFilterInputComponent.d.ts +3 -3
  732. package/models/gridFilterItem.d.ts +1 -1
  733. package/models/gridFilterModel.d.ts +1 -1
  734. package/models/gridFilterOperator.d.ts +3 -3
  735. package/models/gridHeaderFilteringModel.d.ts +1 -1
  736. package/models/gridIconSlotsComponent.d.ts +12 -2
  737. package/models/gridRowSelectionModel.d.ts +1 -1
  738. package/models/gridSlotsComponent.d.ts +6 -1
  739. package/models/gridSlotsComponentsProps.d.ts +4 -2
  740. package/models/gridSortModel.d.ts +1 -1
  741. package/models/gridStateCommunity.d.ts +1 -1
  742. package/models/params/gridCellParams.d.ts +4 -4
  743. package/models/params/gridColumnGroupHeaderParams.d.ts +1 -1
  744. package/models/params/gridColumnHeaderParams.d.ts +1 -1
  745. package/models/params/gridEditCellParams.d.ts +2 -2
  746. package/models/params/gridPreferencePanelParams.d.ts +1 -1
  747. package/models/params/gridRowParams.d.ts +1 -1
  748. package/models/params/gridRowSelectionCheckboxParams.d.ts +1 -1
  749. package/models/params/gridValueOptionsParams.d.ts +1 -1
  750. package/models/props/DataGridProps.d.ts +25 -26
  751. package/package.json +3 -3
  752. package/themeAugmentation/overrides.d.ts +1 -1
  753. package/themeAugmentation/props.d.ts +2 -2
  754. package/utils/assert.d.ts +1 -1
  755. package/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.d.ts +1 -1
  756. package/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +1 -1
  757. package/utils/createSelector.d.ts +2 -2
  758. package/utils/exportAs.d.ts +1 -1
  759. package/utils/getPublicApiRef.d.ts +1 -1
  760. package/utils/keyboardUtils.d.ts +1 -1
@@ -0,0 +1,248 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.GridEditLongTextCell = GridEditLongTextCell;
10
+ exports.renderEditLongTextCell = void 0;
11
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
+ var React = _interopRequireWildcard(require("react"));
13
+ var _clsx = _interopRequireDefault(require("clsx"));
14
+ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
+ var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
16
+ var _styles = require("@mui/material/styles");
17
+ var _gridClasses = require("../../constants/gridClasses");
18
+ var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
19
+ var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
20
+ var _useGridSelector = require("../../hooks/utils/useGridSelector");
21
+ var _gridDimensionsSelectors = require("../../hooks/features/dimensions/gridDimensionsSelectors");
22
+ var _assert = require("../../utils/assert");
23
+ var _cssVariables = require("../../constants/cssVariables");
24
+ var _jsxRuntime = require("react/jsx-runtime");
25
+ const useUtilityClasses = ownerState => {
26
+ const {
27
+ classes
28
+ } = ownerState;
29
+ const slots = {
30
+ root: ['editLongTextCell'],
31
+ value: ['editLongTextCellValue'],
32
+ popup: ['editLongTextCellPopup'],
33
+ popperContent: ['editLongTextCellPopperContent'],
34
+ textarea: ['editLongTextCellTextarea']
35
+ };
36
+ return (0, _composeClasses.default)(slots, _gridClasses.getDataGridUtilityClass, classes);
37
+ };
38
+ const GridEditLongTextCellTextarea = (0, _styles.styled)(_assert.NotRendered, {
39
+ name: 'MuiDataGrid',
40
+ slot: 'EditLongTextCellTextarea'
41
+ })(({
42
+ theme
43
+ }) => (0, _extends2.default)({
44
+ width: '100%',
45
+ padding: 0
46
+ }, theme.typography.body2, {
47
+ letterSpacing: 'normal',
48
+ outline: 'none',
49
+ background: 'transparent',
50
+ border: 'none',
51
+ resize: 'vertical'
52
+ }));
53
+ const GridEditLongTextCellRoot = (0, _styles.styled)('div', {
54
+ name: 'MuiDataGrid',
55
+ slot: 'EditLongTextCell'
56
+ })({
57
+ display: 'flex',
58
+ alignItems: 'center',
59
+ width: '100%',
60
+ height: '100%',
61
+ position: 'relative'
62
+ });
63
+ const GridEditLongTextCellValue = (0, _styles.styled)('div', {
64
+ name: 'MuiDataGrid',
65
+ slot: 'EditLongTextCellValue'
66
+ })({
67
+ overflow: 'hidden',
68
+ textOverflow: 'ellipsis',
69
+ whiteSpace: 'nowrap',
70
+ width: '100%',
71
+ paddingInline: 10
72
+ });
73
+ const GridEditLongTextCellPopper = (0, _styles.styled)(_assert.NotRendered, {
74
+ name: 'MuiDataGrid',
75
+ slot: 'EditLongTextCellPopper'
76
+ })(({
77
+ theme
78
+ }) => ({
79
+ zIndex: _cssVariables.vars.zIndex.menu,
80
+ background: (theme.vars || theme).palette.background.paper,
81
+ '&[data-popper-reference-hidden]': {
82
+ opacity: 0 // use opacity to preserve focus.
83
+ }
84
+ }));
85
+ const GridEditLongTextCellPopperContent = (0, _styles.styled)('div', {
86
+ name: 'MuiDataGrid',
87
+ slot: 'EditLongTextCellPopperContent'
88
+ })(({
89
+ theme
90
+ }) => (0, _extends2.default)({}, theme.typography.body2, {
91
+ letterSpacing: 'normal',
92
+ paddingBlock: 15.5,
93
+ paddingInline: 9,
94
+ height: 'max-content',
95
+ overflow: 'auto',
96
+ whiteSpace: 'pre-wrap',
97
+ wordBreak: 'break-word',
98
+ width: 'var(--_width)',
99
+ border: `1px solid ${(theme.vars || theme).palette.divider}`,
100
+ boxShadow: (theme.vars || theme).shadows[4],
101
+ boxSizing: 'border-box'
102
+ }));
103
+ function GridEditLongTextCell(props) {
104
+ const {
105
+ id,
106
+ value,
107
+ field,
108
+ colDef,
109
+ hasFocus,
110
+ cellMode,
111
+ slotProps
112
+ } = props;
113
+ const rootProps = (0, _useGridRootProps.useGridRootProps)();
114
+ const apiRef = (0, _useGridApiContext.useGridApiContext)();
115
+ const classes = useUtilityClasses(rootProps);
116
+ const rowHeight = (0, _useGridSelector.useGridSelector)(apiRef, _gridDimensionsSelectors.gridRowHeightSelector);
117
+ const [valueState, setValueState] = React.useState(value);
118
+ const [anchorEl, setAnchorEl] = React.useState(null);
119
+ const meta = apiRef.current.unstable_getEditCellMeta(id, field);
120
+ const popupId = `${id}-${field}-longtext-edit-popup`;
121
+
122
+ // Only show popup when this cell has focus
123
+ // This fixes editMode="row" where all cells enter edit mode simultaneously
124
+ const showPopup = hasFocus && Boolean(anchorEl);
125
+ React.useEffect(() => {
126
+ if (meta?.changeReason !== 'debouncedSetEditCellValue') {
127
+ setValueState(value);
128
+ }
129
+ }, [meta, value]);
130
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(GridEditLongTextCellRoot, (0, _extends2.default)({
131
+ tabIndex: cellMode === 'edit' && rootProps.editMode === 'row' ? 0 : undefined,
132
+ ref: setAnchorEl,
133
+ "aria-controls": showPopup ? popupId : undefined,
134
+ "aria-expanded": showPopup
135
+ }, slotProps?.root, {
136
+ className: (0, _clsx.default)(classes.root, slotProps?.root?.className),
137
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextCellValue, (0, _extends2.default)({}, slotProps?.value, {
138
+ className: (0, _clsx.default)(classes.value, slotProps?.value?.className),
139
+ children: valueState
140
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextCellPopper, (0, _extends2.default)({
141
+ as: rootProps.slots.basePopper,
142
+ ownerState: rootProps,
143
+ id: popupId,
144
+ role: "dialog",
145
+ "aria-label": colDef.headerName || field,
146
+ open: showPopup,
147
+ target: anchorEl,
148
+ placement: "bottom-start",
149
+ flip: true,
150
+ material: {
151
+ container: anchorEl?.closest('[role="row"]'),
152
+ modifiers: [{
153
+ name: 'offset',
154
+ options: {
155
+ offset: [-1, -rowHeight]
156
+ }
157
+ }]
158
+ }
159
+ }, slotProps?.popper, {
160
+ className: (0, _clsx.default)(classes.popup, slotProps?.popper?.className),
161
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextCellPopperContent, (0, _extends2.default)({}, slotProps?.popperContent, {
162
+ className: (0, _clsx.default)(classes.popperContent, slotProps?.popperContent?.className),
163
+ style: {
164
+ '--_width': `${colDef.computedWidth}px`
165
+ },
166
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextarea, (0, _extends2.default)({}, props, {
167
+ valueState: valueState,
168
+ setValueState: setValueState
169
+ }))
170
+ }))
171
+ }))]
172
+ }));
173
+ }
174
+ function GridEditLongTextarea(props) {
175
+ const {
176
+ id,
177
+ field,
178
+ colDef,
179
+ debounceMs = 200,
180
+ onValueChange,
181
+ valueState,
182
+ setValueState,
183
+ hasFocus,
184
+ slotProps
185
+ } = props;
186
+ const textareaRef = React.useRef(null);
187
+ const apiRef = (0, _useGridApiContext.useGridApiContext)();
188
+ const rootProps = (0, _useGridRootProps.useGridRootProps)();
189
+ const classes = useUtilityClasses(rootProps);
190
+ (0, _useEnhancedEffect.default)(() => {
191
+ if (hasFocus && textareaRef.current) {
192
+ // preventScroll: the popper is portaled into the GridRow, so focusing
193
+ // without it triggers the browser to scroll the grid container which is undesirable.
194
+ textareaRef.current.focus({
195
+ preventScroll: true
196
+ });
197
+ // Move cursor to end of text
198
+ const length = textareaRef.current.value.length;
199
+ textareaRef.current.setSelectionRange(length, length);
200
+ }
201
+ }, [hasFocus]);
202
+ const handleChange = React.useCallback(async event => {
203
+ const newValue = event.target.value;
204
+ const column = apiRef.current.getColumn(field);
205
+ let parsedValue = newValue;
206
+ if (column.valueParser) {
207
+ parsedValue = column.valueParser(newValue, apiRef.current.getRow(id), column, apiRef);
208
+ }
209
+ setValueState(parsedValue);
210
+ apiRef.current.setEditCellValue({
211
+ id,
212
+ field,
213
+ value: parsedValue,
214
+ debounceMs,
215
+ unstable_skipValueParser: true
216
+ }, event);
217
+ if (onValueChange) {
218
+ await onValueChange(event, newValue);
219
+ }
220
+ }, [apiRef, debounceMs, field, id, onValueChange, setValueState]);
221
+ const handleKeyDown = React.useCallback(event => {
222
+ if (event.key === 'Enter' && event.shiftKey) {
223
+ // Shift+Enter: let textarea handle newline, stop propagation to prevent grid from exiting edit
224
+ event.stopPropagation();
225
+ }
226
+ if (rootProps.editMode === 'cell' && event.key === 'Escape') {
227
+ apiRef.current.stopCellEditMode({
228
+ id,
229
+ field,
230
+ ignoreModifications: true
231
+ });
232
+ }
233
+ }, [apiRef, field, id, rootProps.editMode]);
234
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextCellTextarea, (0, _extends2.default)({
235
+ ref: textareaRef,
236
+ as: rootProps.slots.baseTextarea,
237
+ ownerState: rootProps,
238
+ "aria-label": colDef.headerName || field,
239
+ value: valueState ?? '',
240
+ onChange: handleChange,
241
+ onKeyDown: handleKeyDown
242
+ }, slotProps?.textarea, {
243
+ className: (0, _clsx.default)(classes.textarea, slotProps?.textarea?.className)
244
+ }));
245
+ }
246
+ const renderEditLongTextCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextCell, (0, _extends2.default)({}, params));
247
+ exports.renderEditLongTextCell = renderEditLongTextCell;
248
+ if (process.env.NODE_ENV !== "production") renderEditLongTextCell.displayName = "renderEditLongTextCell";
@@ -1,5 +1,5 @@
1
1
  import type { GridSlotProps } from "../../models/gridSlotsComponentsProps.js";
2
- import { GridRenderEditCellParams } from "../../models/params/gridCellParams.js";
2
+ import type { GridRenderEditCellParams } from "../../models/params/gridCellParams.js";
3
3
  export interface GridEditSingleSelectCellProps extends GridRenderEditCellParams {
4
4
  /**
5
5
  * Callback called when the value is changed by the user.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SxProps, Theme } from '@mui/material/styles';
2
+ import { type SxProps, type Theme } from '@mui/material/styles';
3
3
  import type { GridRenderCellParams } from "../../models/params/gridCellParams.js";
4
4
  interface GridFooterCellProps extends GridRenderCellParams {
5
5
  sx?: SxProps<Theme>;
@@ -0,0 +1,43 @@
1
+ import * as React from 'react';
2
+ import type { GridRenderCellParams } from "../../models/params/gridCellParams.js";
3
+ import type { GridSlotProps } from "../../models/gridSlotsComponent.js";
4
+ export interface GridLongTextCellProps extends GridRenderCellParams<any, string | null> {
5
+ /**
6
+ * A function to customize the content rendered in the popup.
7
+ * @param {string | null} value The cell value.
8
+ * @returns {React.ReactNode} The content to render in the popup.
9
+ */
10
+ renderContent?: (value: string | null) => React.ReactNode;
11
+ /**
12
+ * Props passed to internal components.
13
+ */
14
+ slotProps?: {
15
+ /**
16
+ * Props passed to the root element.
17
+ */
18
+ root?: React.HTMLAttributes<HTMLDivElement>;
19
+ /**
20
+ * Props passed to the content element.
21
+ */
22
+ content?: React.HTMLAttributes<HTMLDivElement>;
23
+ /**
24
+ * Props passed to the expand button element.
25
+ */
26
+ expandButton?: React.ButtonHTMLAttributes<HTMLButtonElement>;
27
+ /**
28
+ * Props passed to the collapse button element.
29
+ */
30
+ collapseButton?: React.ButtonHTMLAttributes<HTMLButtonElement>;
31
+ /**
32
+ * Props passed to the popper element.
33
+ */
34
+ popper?: Partial<GridSlotProps['basePopper']>;
35
+ /**
36
+ * Props passed to the popper content element.
37
+ */
38
+ popperContent?: React.HTMLAttributes<HTMLDivElement>;
39
+ };
40
+ }
41
+ declare function GridLongTextCell(props: GridLongTextCellProps): import("react/jsx-runtime").JSX.Element;
42
+ export { GridLongTextCell };
43
+ export declare const renderLongTextCell: (params: GridLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,254 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.GridLongTextCell = GridLongTextCell;
10
+ exports.renderLongTextCell = void 0;
11
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
+ var React = _interopRequireWildcard(require("react"));
13
+ var _clsx = _interopRequireDefault(require("clsx"));
14
+ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
+ var _styles = require("@mui/material/styles");
16
+ var _gridClasses = require("../../constants/gridClasses");
17
+ var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
18
+ var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
19
+ var _useGridSelector = require("../../hooks/utils/useGridSelector");
20
+ var _gridDimensionsSelectors = require("../../hooks/features/dimensions/gridDimensionsSelectors");
21
+ var _assert = require("../../utils/assert");
22
+ var _cssVariables = require("../../constants/cssVariables");
23
+ var _jsxRuntime = require("react/jsx-runtime");
24
+ const useUtilityClasses = ownerState => {
25
+ const {
26
+ classes
27
+ } = ownerState;
28
+ const slots = {
29
+ root: ['longTextCell'],
30
+ content: ['longTextCellContent'],
31
+ expandButton: ['longTextCellExpandButton'],
32
+ collapseButton: ['longTextCellCollapseButton'],
33
+ popup: ['longTextCellPopup'],
34
+ popperContent: ['longTextCellPopperContent']
35
+ };
36
+ return (0, _composeClasses.default)(slots, _gridClasses.getDataGridUtilityClass, classes);
37
+ };
38
+ const GridLongTextCellRoot = (0, _styles.styled)('div', {
39
+ name: 'MuiDataGrid',
40
+ slot: 'LongTextCell'
41
+ })({
42
+ display: 'flex',
43
+ alignItems: 'center',
44
+ width: '100%',
45
+ height: '100%',
46
+ position: 'relative'
47
+ });
48
+ const GridLongTextCellContent = (0, _styles.styled)('div', {
49
+ name: 'MuiDataGrid',
50
+ slot: 'LongTextCellContent'
51
+ })({
52
+ overflow: 'hidden',
53
+ textOverflow: 'ellipsis',
54
+ whiteSpace: 'nowrap',
55
+ flex: 1
56
+ });
57
+ const GridLongTextCellPopperContent = (0, _styles.styled)('div', {
58
+ name: 'MuiDataGrid',
59
+ slot: 'LongTextCellPopperContent'
60
+ })(({
61
+ theme
62
+ }) => (0, _extends2.default)({}, theme.typography.body2, {
63
+ letterSpacing: 'normal',
64
+ paddingBlock: 15.5,
65
+ paddingInline: 9,
66
+ maxHeight: 52 * 3,
67
+ overflow: 'auto',
68
+ whiteSpace: 'pre-wrap',
69
+ wordBreak: 'break-word',
70
+ width: 'var(--_width)',
71
+ border: `1px solid ${(theme.vars || theme).palette.divider}`,
72
+ boxSizing: 'border-box'
73
+ }));
74
+ const GridLongTextCellCornerButton = (0, _styles.styled)('button', {
75
+ name: 'MuiDataGrid',
76
+ slot: 'LongTextCellCornerButton'
77
+ })(({
78
+ theme
79
+ }) => ({
80
+ lineHeight: 0,
81
+ position: 'absolute',
82
+ bottom: 1,
83
+ right: 0,
84
+ border: '1px solid',
85
+ color: (theme.vars || theme).palette.text.secondary,
86
+ borderColor: (theme.vars || theme).palette.divider,
87
+ backgroundColor: (theme.vars || theme).palette.background.paper,
88
+ borderRadius: 0,
89
+ fontSize: '0.875rem',
90
+ padding: 2,
91
+ '&:focus-visible': {
92
+ outline: 'none'
93
+ },
94
+ '&:hover': {
95
+ backgroundColor: (theme.vars || theme).palette.background.paper,
96
+ color: (theme.vars || theme).palette.text.primary
97
+ },
98
+ [`&.${_gridClasses.gridClasses.longTextCellExpandButton}`]: {
99
+ right: -9,
100
+ opacity: 0,
101
+ [`.${_gridClasses.gridClasses.longTextCell}:hover &, .${_gridClasses.gridClasses.longTextCell}.Mui-focused &`]: {
102
+ opacity: 1
103
+ }
104
+ },
105
+ [`&.${_gridClasses.gridClasses.longTextCellCollapseButton}`]: {
106
+ bottom: 2,
107
+ right: 2,
108
+ border: 'none'
109
+ }
110
+ }));
111
+ const GridLongTextCellPopper = (0, _styles.styled)(_assert.NotRendered, {
112
+ name: 'MuiDataGrid',
113
+ slot: 'LongTextCellPopper'
114
+ })(({
115
+ theme
116
+ }) => ({
117
+ zIndex: _cssVariables.vars.zIndex.menu,
118
+ background: (theme.vars || theme).palette.background.paper,
119
+ '&[data-popper-reference-hidden]': {
120
+ visibility: 'hidden',
121
+ pointerEvents: 'none'
122
+ }
123
+ }));
124
+ function GridLongTextCell(props) {
125
+ const {
126
+ id,
127
+ value = '',
128
+ colDef,
129
+ hasFocus,
130
+ slotProps,
131
+ renderContent
132
+ } = props;
133
+ const popupId = `${id}-${colDef.field}-longtext-popup`;
134
+ const rootProps = (0, _useGridRootProps.useGridRootProps)();
135
+ const apiRef = (0, _useGridApiContext.useGridApiContext)();
136
+ const classes = useUtilityClasses(rootProps);
137
+ const rowHeight = (0, _useGridSelector.useGridSelector)(apiRef, _gridDimensionsSelectors.gridRowHeightSelector);
138
+ const [popupOpen, setPopupOpen] = React.useState(false);
139
+ const cellRef = React.useRef(null);
140
+ const cornerButtonRef = React.useRef(null);
141
+ React.useEffect(() => {
142
+ if (hasFocus && !popupOpen) {
143
+ if (cornerButtonRef.current && cornerButtonRef.current !== document.activeElement) {
144
+ cornerButtonRef.current.focus();
145
+ }
146
+ }
147
+ if (!hasFocus) {
148
+ setPopupOpen(false);
149
+ }
150
+ }, [hasFocus, popupOpen]);
151
+ const handleExpandClick = event => {
152
+ // event.detail === 0 means keyboard-triggered click (Enter keyup on focused button)
153
+ // Ignore these to prevent popup from opening when focus moves to this cell via Enter
154
+ if (event.detail === 0) {
155
+ return;
156
+ }
157
+ event.stopPropagation();
158
+ setPopupOpen(true);
159
+ };
160
+ const handleExpandKeyDown = event => {
161
+ if (event.key === ' ' && !event.shiftKey) {
162
+ event.preventDefault(); // Prevent native button click on keyup
163
+ event.stopPropagation(); // Prevent grid row selection
164
+ setPopupOpen(prev => !prev);
165
+ }
166
+ if (event.key === 'Escape' && popupOpen) {
167
+ event.stopPropagation(); // Prevent grid cell navigation
168
+ setPopupOpen(false);
169
+ }
170
+ };
171
+ const handleClickAway = () => {
172
+ setPopupOpen(false);
173
+ };
174
+ const handleCollapseClick = event => {
175
+ event.stopPropagation();
176
+ setPopupOpen(false);
177
+ apiRef.current.getCellElement(id, colDef.field)?.focus();
178
+ };
179
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(GridLongTextCellRoot, (0, _extends2.default)({
180
+ ref: cellRef
181
+ }, slotProps?.root, {
182
+ className: (0, _clsx.default)(classes.root, slotProps?.root?.className, hasFocus && 'Mui-focused'),
183
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(GridLongTextCellContent, (0, _extends2.default)({}, slotProps?.content, {
184
+ className: (0, _clsx.default)(classes.content, slotProps?.content?.className),
185
+ children: value
186
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(GridLongTextCellCornerButton, (0, _extends2.default)({
187
+ ref: cornerButtonRef,
188
+ "aria-label": `${value}, ${apiRef.current.getLocaleText('longTextCellExpandLabel')}`,
189
+ "aria-haspopup": "dialog",
190
+ "aria-controls": popupOpen ? popupId : undefined,
191
+ "aria-expanded": popupOpen,
192
+ "aria-keyshortcuts": "Space",
193
+ tabIndex: 0
194
+ }, slotProps?.expandButton, {
195
+ className: (0, _clsx.default)(classes.expandButton, slotProps?.expandButton?.className),
196
+ onClick: handleExpandClick,
197
+ onKeyDown: handleExpandKeyDown,
198
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.longTextCellExpandIcon, {
199
+ fontSize: "inherit"
200
+ })
201
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(GridLongTextCellPopper, (0, _extends2.default)({
202
+ id: popupId,
203
+ role: "dialog",
204
+ "aria-label": colDef.headerName || colDef.field,
205
+ as: rootProps.slots.basePopper,
206
+ ownerState: rootProps,
207
+ open: popupOpen,
208
+ target: cellRef.current,
209
+ placement: "bottom-start",
210
+ onClickAway: handleClickAway,
211
+ clickAwayMouseEvent: "onMouseDown",
212
+ flip: true,
213
+ material: {
214
+ container: cellRef.current?.closest('[role="row"]'),
215
+ modifiers: [{
216
+ name: 'offset',
217
+ options: {
218
+ offset: [-10, -rowHeight]
219
+ }
220
+ }]
221
+ }
222
+ }, slotProps?.popper, {
223
+ className: (0, _clsx.default)(classes.popup, slotProps?.popper?.className),
224
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(GridLongTextCellPopperContent, (0, _extends2.default)({
225
+ tabIndex: -1,
226
+ onKeyDown: event => {
227
+ if (event.key === 'Escape') {
228
+ event.stopPropagation();
229
+ setPopupOpen(false);
230
+ apiRef.current.getCellElement(id, colDef.field)?.focus();
231
+ }
232
+ }
233
+ }, slotProps?.popperContent, {
234
+ className: (0, _clsx.default)(classes.popperContent, slotProps?.popperContent?.className),
235
+ style: (0, _extends2.default)({
236
+ '--_width': `${colDef.computedWidth}px`
237
+ }, slotProps?.popperContent?.style),
238
+ children: [renderContent ? renderContent(value) : value, /*#__PURE__*/(0, _jsxRuntime.jsx)(GridLongTextCellCornerButton, (0, _extends2.default)({
239
+ "aria-label": apiRef.current.getLocaleText('longTextCellCollapseLabel'),
240
+ "aria-keyshortcuts": "Escape"
241
+ }, slotProps?.collapseButton, {
242
+ className: (0, _clsx.default)(classes.collapseButton, slotProps?.collapseButton?.className),
243
+ onClick: handleCollapseClick,
244
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.longTextCellCollapseIcon, {
245
+ fontSize: "inherit"
246
+ })
247
+ }))]
248
+ }))
249
+ }))]
250
+ }));
251
+ }
252
+ const renderLongTextCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridLongTextCell, (0, _extends2.default)({}, params));
253
+ exports.renderLongTextCell = renderLongTextCell;
254
+ if (process.env.NODE_ENV !== "production") renderLongTextCell.displayName = "renderLongTextCell";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { GridColType } from "../../models/index.js";
2
+ import type { GridColType } from "../../models/index.js";
3
3
  export interface GridSkeletonCellProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  type?: GridColType;
5
5
  width?: number | string;
@@ -7,4 +7,6 @@ export * from "./GridEditInputCell.js";
7
7
  export * from "./GridEditSingleSelectCell.js";
8
8
  export * from "./GridActionsCell.js";
9
9
  export * from "./GridActionsCellItem.js";
10
- export * from "./GridSkeletonCell.js";
10
+ export * from "./GridSkeletonCell.js";
11
+ export * from "./GridLongTextCell.js";
12
+ export * from "./GridEditLongTextCell.js";
@@ -108,4 +108,28 @@ Object.keys(_GridSkeletonCell).forEach(function (key) {
108
108
  return _GridSkeletonCell[key];
109
109
  }
110
110
  });
111
+ });
112
+ var _GridLongTextCell = require("./GridLongTextCell");
113
+ Object.keys(_GridLongTextCell).forEach(function (key) {
114
+ if (key === "default" || key === "__esModule") return;
115
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
116
+ if (key in exports && exports[key] === _GridLongTextCell[key]) return;
117
+ Object.defineProperty(exports, key, {
118
+ enumerable: true,
119
+ get: function () {
120
+ return _GridLongTextCell[key];
121
+ }
122
+ });
123
+ });
124
+ var _GridEditLongTextCell = require("./GridEditLongTextCell");
125
+ Object.keys(_GridEditLongTextCell).forEach(function (key) {
126
+ if (key === "default" || key === "__esModule") return;
127
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
128
+ if (key in exports && exports[key] === _GridEditLongTextCell[key]) return;
129
+ Object.defineProperty(exports, key, {
130
+ enumerable: true,
131
+ get: function () {
132
+ return _GridEditLongTextCell[key];
133
+ }
134
+ });
111
135
  });
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { GridStateColDef } from "../../models/colDef/gridColDef.js";
2
+ import type { GridStateColDef } from "../../models/colDef/gridColDef.js";
3
3
  export interface ColumnHeaderMenuIconProps {
4
4
  colDef: GridStateColDef;
5
5
  columnMenuId: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { type SxProps, type Theme } from '@mui/system';
3
3
  interface GridBaseColumnHeadersProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  sx?: SxProps<Theme>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { GridColumnHeaderParams } from "../../models/params/gridColumnHeaderParams.js";
2
+ import type { GridColumnHeaderParams } from "../../models/params/gridColumnHeaderParams.js";
3
3
  export interface ColumnHeaderFilterIconButtonProps {
4
4
  field: string;
5
5
  counter?: number;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { GridStateColDef } from "../../models/colDef/gridColDef.js";
3
- import { GridSortDirection } from "../../models/gridSortModel.js";
4
- import { GridColumnHeaderSeparatorProps } from "./GridColumnHeaderSeparator.js";
2
+ import type { GridStateColDef } from "../../models/colDef/gridColDef.js";
3
+ import type { GridSortDirection } from "../../models/gridSortModel.js";
4
+ import type { GridColumnHeaderSeparatorProps } from "./GridColumnHeaderSeparator.js";
5
5
  import { PinnedColumnPosition } from "../../internals/constants.js";
6
6
  interface GridColumnHeaderItemProps {
7
7
  colIndex: number;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { GridColumnSortButtonProps } from "../GridColumnSortButton.js";
2
+ import { type GridColumnSortButtonProps } from "../GridColumnSortButton.js";
3
3
  export interface GridColumnHeaderSortIconProps extends GridColumnSortButtonProps {}
4
4
  declare function GridColumnHeaderSortIconRaw(props: GridColumnHeaderSortIconProps): import("react/jsx-runtime").JSX.Element;
5
5
  declare namespace GridColumnHeaderSortIconRaw {
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { GridStateColDef } from "../../models/colDef/gridColDef.js";
3
- import { GridSortDirection } from "../../models/gridSortModel.js";
4
- import { GridColumnHeaderSeparatorProps } from "./GridColumnHeaderSeparator.js";
5
- import { GridColumnGroup } from "../../models/gridColumnGrouping.js";
2
+ import type { GridStateColDef } from "../../models/colDef/gridColDef.js";
3
+ import type { GridSortDirection } from "../../models/gridSortModel.js";
4
+ import { type GridColumnHeaderSeparatorProps } from "./GridColumnHeaderSeparator.js";
5
+ import type { GridColumnGroup } from "../../models/gridColumnGrouping.js";
6
6
  interface GridGenericColumnHeaderItemProps extends Pick<GridStateColDef, 'headerClassName' | 'description' | 'resizable'> {
7
7
  classes: Record<'root' | 'draggableContainer' | 'titleContainer' | 'titleContainerContent', string>;
8
8
  colIndex: number;
@@ -1,4 +1,4 @@
1
- import { TextFieldProps } from "../../models/gridBaseSlots.js";
1
+ import type { TextFieldProps } from "../../models/gridBaseSlots.js";
2
2
  import type { DataGridProcessedProps } from "../../models/props/DataGridProps.js";
3
3
  import type { GridColDef } from "../../models/colDef/gridColDef.js";
4
4
  export interface GridColumnsManagementProps {