@mui/x-data-grid-premium 8.0.0-beta.3 → 8.1.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 (492) hide show
  1. package/CHANGELOG.md +388 -96
  2. package/DataGridPremium/DataGridPremium.js +165 -9
  3. package/DataGridPremium/useDataGridPremiumComponent.d.ts +2 -2
  4. package/DataGridPremium/useDataGridPremiumComponent.js +22 -3
  5. package/DataGridPremium/useDataGridPremiumProps.js +5 -1
  6. package/components/GridColumnMenuPivotItem.d.ts +3 -0
  7. package/components/GridColumnMenuPivotItem.js +33 -0
  8. package/components/GridEmptyPivotOverlay.d.ts +6 -0
  9. package/components/GridEmptyPivotOverlay.js +29 -0
  10. package/components/GridFooterCell.js +1 -2
  11. package/components/GridGroupingCriteriaCell.js +8 -3
  12. package/components/GridPremiumColumnMenu.d.ts +5 -0
  13. package/components/GridPremiumColumnMenu.js +6 -1
  14. package/components/GridPremiumToolbar.d.ts +1 -1
  15. package/components/GridPremiumToolbar.js +29 -1
  16. package/components/aiAssistantPanel/AiAssistantPanelTrigger.d.ts +33 -0
  17. package/components/aiAssistantPanel/AiAssistantPanelTrigger.js +107 -0
  18. package/components/aiAssistantPanel/GridAiAssistantPanel.d.ts +3 -0
  19. package/components/aiAssistantPanel/GridAiAssistantPanel.js +195 -0
  20. package/components/aiAssistantPanel/GridAiAssistantPanelConversation.d.ts +7 -0
  21. package/components/aiAssistantPanel/GridAiAssistantPanelConversation.js +71 -0
  22. package/components/aiAssistantPanel/GridAiAssistantPanelConversationsMenu.d.ts +3 -0
  23. package/components/aiAssistantPanel/GridAiAssistantPanelConversationsMenu.js +89 -0
  24. package/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.d.ts +7 -0
  25. package/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.js +86 -0
  26. package/components/aiAssistantPanel/index.d.ts +2 -0
  27. package/components/aiAssistantPanel/index.js +27 -0
  28. package/components/collapsible/Collapsible.d.ts +4 -0
  29. package/components/collapsible/Collapsible.js +70 -0
  30. package/components/collapsible/CollapsibleContext.d.ts +8 -0
  31. package/components/collapsible/CollapsibleContext.js +17 -0
  32. package/components/collapsible/CollapsiblePanel.d.ts +4 -0
  33. package/components/collapsible/CollapsiblePanel.js +64 -0
  34. package/components/collapsible/CollapsibleTrigger.d.ts +4 -0
  35. package/components/collapsible/CollapsibleTrigger.js +106 -0
  36. package/components/collapsible/index.d.ts +4 -0
  37. package/components/collapsible/index.js +49 -0
  38. package/components/index.d.ts +5 -2
  39. package/components/index.js +40 -4
  40. package/components/pivotPanel/GridPivotPanel.d.ts +3 -0
  41. package/components/pivotPanel/GridPivotPanel.js +22 -0
  42. package/components/pivotPanel/GridPivotPanelBody.d.ts +11 -0
  43. package/components/pivotPanel/GridPivotPanelBody.js +368 -0
  44. package/components/pivotPanel/GridPivotPanelField.d.ts +22 -0
  45. package/components/pivotPanel/GridPivotPanelField.js +338 -0
  46. package/components/pivotPanel/GridPivotPanelFieldMenu.d.ts +8 -0
  47. package/components/pivotPanel/GridPivotPanelFieldMenu.js +177 -0
  48. package/components/pivotPanel/GridPivotPanelHeader.d.ts +7 -0
  49. package/components/pivotPanel/GridPivotPanelHeader.js +101 -0
  50. package/components/pivotPanel/GridPivotPanelSearch.d.ts +7 -0
  51. package/components/pivotPanel/GridPivotPanelSearch.js +77 -0
  52. package/components/pivotPanel/PivotPanelTrigger.d.ts +37 -0
  53. package/components/pivotPanel/PivotPanelTrigger.js +93 -0
  54. package/components/pivotPanel/index.d.ts +2 -0
  55. package/components/pivotPanel/index.js +27 -0
  56. package/components/prompt/GridPrompt.d.ts +7 -0
  57. package/components/prompt/GridPrompt.js +364 -0
  58. package/components/prompt/index.d.ts +1 -0
  59. package/components/prompt/index.js +12 -0
  60. package/components/promptField/GridPromptField.d.ts +4 -0
  61. package/components/promptField/GridPromptField.js +86 -0
  62. package/components/promptField/PromptField.d.ts +66 -0
  63. package/components/promptField/PromptField.js +95 -0
  64. package/components/promptField/PromptFieldContext.d.ts +16 -0
  65. package/components/promptField/PromptFieldContext.js +17 -0
  66. package/components/promptField/PromptFieldControl.d.ts +27 -0
  67. package/components/promptField/PromptFieldControl.js +102 -0
  68. package/components/promptField/PromptFieldRecord.d.ts +27 -0
  69. package/components/promptField/PromptFieldRecord.js +158 -0
  70. package/components/promptField/PromptFieldSend.d.ts +27 -0
  71. package/components/promptField/PromptFieldSend.js +83 -0
  72. package/components/promptField/index.d.ts +4 -0
  73. package/components/promptField/index.js +49 -0
  74. package/components/resizablePanel/ResizablePanel.d.ts +10 -0
  75. package/components/resizablePanel/ResizablePanel.js +59 -0
  76. package/components/resizablePanel/ResizablePanelContext.d.ts +7 -0
  77. package/components/resizablePanel/ResizablePanelContext.js +17 -0
  78. package/components/resizablePanel/ResizablePanelHandle.d.ts +4 -0
  79. package/components/resizablePanel/ResizablePanelHandle.js +115 -0
  80. package/components/resizablePanel/index.d.ts +3 -0
  81. package/components/resizablePanel/index.js +38 -0
  82. package/components/sidebar/Sidebar.d.ts +4 -0
  83. package/components/sidebar/Sidebar.js +54 -0
  84. package/components/sidebar/SidebarHeader.d.ts +4 -0
  85. package/components/sidebar/SidebarHeader.js +51 -0
  86. package/components/sidebar/index.d.ts +2 -0
  87. package/components/sidebar/index.js +27 -0
  88. package/constants/dataGridPremiumDefaultSlotsComponents.js +3 -0
  89. package/esm/DataGridPremium/DataGridPremium.js +167 -11
  90. package/esm/DataGridPremium/useDataGridPremiumComponent.d.ts +2 -2
  91. package/esm/DataGridPremium/useDataGridPremiumComponent.js +20 -3
  92. package/esm/DataGridPremium/useDataGridPremiumProps.js +5 -1
  93. package/esm/components/GridColumnMenuPivotItem.d.ts +3 -0
  94. package/esm/components/GridColumnMenuPivotItem.js +26 -0
  95. package/esm/components/GridEmptyPivotOverlay.d.ts +6 -0
  96. package/esm/components/GridEmptyPivotOverlay.js +22 -0
  97. package/esm/components/GridFooterCell.js +1 -2
  98. package/esm/components/GridGroupingCriteriaCell.js +9 -4
  99. package/esm/components/GridPremiumColumnMenu.d.ts +5 -0
  100. package/esm/components/GridPremiumColumnMenu.js +6 -1
  101. package/esm/components/GridPremiumToolbar.d.ts +1 -1
  102. package/esm/components/GridPremiumToolbar.js +30 -2
  103. package/esm/components/aiAssistantPanel/AiAssistantPanelTrigger.d.ts +33 -0
  104. package/esm/components/aiAssistantPanel/AiAssistantPanelTrigger.js +100 -0
  105. package/esm/components/aiAssistantPanel/GridAiAssistantPanel.d.ts +3 -0
  106. package/esm/components/aiAssistantPanel/GridAiAssistantPanel.js +188 -0
  107. package/esm/components/aiAssistantPanel/GridAiAssistantPanelConversation.d.ts +7 -0
  108. package/esm/components/aiAssistantPanel/GridAiAssistantPanelConversation.js +64 -0
  109. package/esm/components/aiAssistantPanel/GridAiAssistantPanelConversationsMenu.d.ts +3 -0
  110. package/esm/components/aiAssistantPanel/GridAiAssistantPanelConversationsMenu.js +82 -0
  111. package/esm/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.d.ts +7 -0
  112. package/esm/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.js +80 -0
  113. package/esm/components/aiAssistantPanel/index.d.ts +2 -0
  114. package/esm/components/aiAssistantPanel/index.js +2 -0
  115. package/esm/components/collapsible/Collapsible.d.ts +4 -0
  116. package/esm/components/collapsible/Collapsible.js +63 -0
  117. package/esm/components/collapsible/CollapsibleContext.d.ts +8 -0
  118. package/esm/components/collapsible/CollapsibleContext.js +9 -0
  119. package/esm/components/collapsible/CollapsiblePanel.d.ts +4 -0
  120. package/esm/components/collapsible/CollapsiblePanel.js +57 -0
  121. package/esm/components/collapsible/CollapsibleTrigger.d.ts +4 -0
  122. package/esm/components/collapsible/CollapsibleTrigger.js +99 -0
  123. package/esm/components/collapsible/index.d.ts +4 -0
  124. package/esm/components/collapsible/index.js +4 -0
  125. package/esm/components/index.d.ts +5 -2
  126. package/esm/components/index.js +5 -2
  127. package/esm/components/pivotPanel/GridPivotPanel.d.ts +3 -0
  128. package/esm/components/pivotPanel/GridPivotPanel.js +16 -0
  129. package/esm/components/pivotPanel/GridPivotPanelBody.d.ts +11 -0
  130. package/esm/components/pivotPanel/GridPivotPanelBody.js +361 -0
  131. package/esm/components/pivotPanel/GridPivotPanelField.d.ts +22 -0
  132. package/esm/components/pivotPanel/GridPivotPanelField.js +331 -0
  133. package/esm/components/pivotPanel/GridPivotPanelFieldMenu.d.ts +8 -0
  134. package/esm/components/pivotPanel/GridPivotPanelFieldMenu.js +170 -0
  135. package/esm/components/pivotPanel/GridPivotPanelHeader.d.ts +7 -0
  136. package/esm/components/pivotPanel/GridPivotPanelHeader.js +94 -0
  137. package/esm/components/pivotPanel/GridPivotPanelSearch.d.ts +7 -0
  138. package/esm/components/pivotPanel/GridPivotPanelSearch.js +70 -0
  139. package/esm/components/pivotPanel/PivotPanelTrigger.d.ts +37 -0
  140. package/esm/components/pivotPanel/PivotPanelTrigger.js +86 -0
  141. package/esm/components/pivotPanel/index.d.ts +2 -0
  142. package/esm/components/pivotPanel/index.js +2 -0
  143. package/esm/components/prompt/GridPrompt.d.ts +7 -0
  144. package/esm/components/prompt/GridPrompt.js +357 -0
  145. package/esm/components/prompt/index.d.ts +1 -0
  146. package/esm/components/prompt/index.js +1 -0
  147. package/esm/components/promptField/GridPromptField.d.ts +4 -0
  148. package/esm/components/promptField/GridPromptField.js +79 -0
  149. package/esm/components/promptField/PromptField.d.ts +66 -0
  150. package/esm/components/promptField/PromptField.js +88 -0
  151. package/esm/components/promptField/PromptFieldContext.d.ts +16 -0
  152. package/esm/components/promptField/PromptFieldContext.js +9 -0
  153. package/esm/components/promptField/PromptFieldControl.d.ts +27 -0
  154. package/esm/components/promptField/PromptFieldControl.js +95 -0
  155. package/esm/components/promptField/PromptFieldRecord.d.ts +27 -0
  156. package/esm/components/promptField/PromptFieldRecord.js +151 -0
  157. package/esm/components/promptField/PromptFieldSend.d.ts +27 -0
  158. package/{modern/components/export/ExportExcel.js → esm/components/promptField/PromptFieldSend.js} +30 -38
  159. package/esm/components/promptField/index.d.ts +4 -0
  160. package/esm/components/promptField/index.js +4 -0
  161. package/esm/components/resizablePanel/ResizablePanel.d.ts +10 -0
  162. package/esm/components/resizablePanel/ResizablePanel.js +52 -0
  163. package/esm/components/resizablePanel/ResizablePanelContext.d.ts +7 -0
  164. package/esm/components/resizablePanel/ResizablePanelContext.js +9 -0
  165. package/esm/components/resizablePanel/ResizablePanelHandle.d.ts +4 -0
  166. package/esm/components/resizablePanel/ResizablePanelHandle.js +108 -0
  167. package/esm/components/resizablePanel/index.d.ts +3 -0
  168. package/esm/components/resizablePanel/index.js +3 -0
  169. package/esm/components/sidebar/Sidebar.d.ts +4 -0
  170. package/esm/components/sidebar/Sidebar.js +47 -0
  171. package/esm/components/sidebar/SidebarHeader.d.ts +4 -0
  172. package/esm/components/sidebar/SidebarHeader.js +44 -0
  173. package/esm/components/sidebar/index.d.ts +2 -0
  174. package/esm/components/sidebar/index.js +2 -0
  175. package/esm/constants/dataGridPremiumDefaultSlotsComponents.js +3 -0
  176. package/esm/hooks/features/aggregation/gridAggregationFunctions.js +13 -0
  177. package/esm/hooks/features/aggregation/gridAggregationSelectors.d.ts +10 -1
  178. package/esm/hooks/features/aggregation/gridAggregationSelectors.js +28 -1
  179. package/esm/hooks/features/aggregation/gridAggregationUtils.d.ts +1 -1
  180. package/esm/hooks/features/aggregation/index.d.ts +1 -1
  181. package/esm/hooks/features/aggregation/index.js +1 -1
  182. package/esm/hooks/features/aggregation/useGridAggregation.js +3 -7
  183. package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.js +2 -8
  184. package/esm/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +5 -25
  185. package/esm/hooks/features/aggregation/wrapColumnWithAggregation.js +23 -10
  186. package/esm/hooks/features/aiAssistant/api.d.ts +12 -0
  187. package/esm/hooks/features/aiAssistant/api.js +31 -0
  188. package/esm/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +82 -0
  189. package/esm/hooks/features/aiAssistant/gridAiAssistantSelectors.d.ts +5 -0
  190. package/esm/hooks/features/aiAssistant/gridAiAssistantSelectors.js +5 -0
  191. package/esm/hooks/features/aiAssistant/index.d.ts +2 -0
  192. package/esm/hooks/features/aiAssistant/useGridAiAssistant.d.ts +6 -0
  193. package/esm/hooks/features/aiAssistant/useGridAiAssistant.js +293 -0
  194. package/esm/hooks/features/dataSource/useGridDataSourcePremium.js +4 -1
  195. package/esm/hooks/features/index.d.ts +1 -1
  196. package/esm/hooks/features/index.js +1 -1
  197. package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +69 -0
  198. package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -0
  199. package/esm/hooks/features/pivoting/gridPivotingSelectors.js +5 -0
  200. package/esm/hooks/features/pivoting/useGridPivoting.d.ts +7 -0
  201. package/esm/hooks/features/pivoting/useGridPivoting.js +339 -0
  202. package/esm/hooks/features/pivoting/utils.d.ts +21 -0
  203. package/esm/hooks/features/pivoting/utils.js +259 -0
  204. package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +1 -4
  205. package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +0 -1
  206. package/esm/hooks/utils/useResize.d.ts +9 -0
  207. package/esm/hooks/utils/useResize.js +52 -0
  208. package/esm/index.d.ts +4 -1
  209. package/esm/index.js +4 -2
  210. package/esm/material/icons.d.ts +15 -15
  211. package/esm/material/icons.js +32 -5
  212. package/esm/material/index.d.ts +31 -5
  213. package/esm/material/index.js +31 -3
  214. package/esm/models/dataGridPremiumProps.d.ts +96 -2
  215. package/esm/models/gridApiPremium.d.ts +4 -2
  216. package/esm/models/gridPremiumIconSlotsComponent.d.ts +141 -8
  217. package/esm/models/gridPremiumSlotsComponent.d.ts +13 -1
  218. package/esm/models/gridStatePremium.d.ts +6 -0
  219. package/esm/package.json +1 -1
  220. package/esm/setupExcelExportWebWorker/index.d.ts +1 -0
  221. package/esm/setupExcelExportWebWorker/index.js +1 -0
  222. package/esm/typeOverloads/modules.d.ts +32 -1
  223. package/esm/utils/speechRecognition.d.ts +2 -0
  224. package/esm/utils/speechRecognition.js +2 -0
  225. package/hooks/features/aggregation/gridAggregationFunctions.js +13 -0
  226. package/hooks/features/aggregation/gridAggregationSelectors.d.ts +10 -1
  227. package/hooks/features/aggregation/gridAggregationSelectors.js +29 -2
  228. package/hooks/features/aggregation/gridAggregationUtils.d.ts +1 -1
  229. package/hooks/features/aggregation/index.d.ts +1 -1
  230. package/hooks/features/aggregation/index.js +21 -11
  231. package/hooks/features/aggregation/useGridAggregation.js +3 -7
  232. package/hooks/features/aggregation/useGridAggregationPreProcessors.js +2 -8
  233. package/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +5 -25
  234. package/hooks/features/aggregation/wrapColumnWithAggregation.js +24 -11
  235. package/hooks/features/aiAssistant/api.d.ts +12 -0
  236. package/hooks/features/aiAssistant/api.js +37 -0
  237. package/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +82 -0
  238. package/hooks/features/aiAssistant/gridAiAssistantSelectors.d.ts +5 -0
  239. package/hooks/features/aiAssistant/gridAiAssistantSelectors.js +11 -0
  240. package/hooks/features/aiAssistant/index.d.ts +2 -0
  241. package/hooks/features/aiAssistant/useGridAiAssistant.d.ts +6 -0
  242. package/hooks/features/aiAssistant/useGridAiAssistant.js +303 -0
  243. package/hooks/features/dataSource/useGridDataSourcePremium.js +3 -0
  244. package/hooks/features/index.d.ts +1 -1
  245. package/hooks/features/index.js +4 -4
  246. package/hooks/features/pivoting/gridPivotingInterfaces.d.ts +69 -0
  247. package/hooks/features/pivoting/gridPivotingInterfaces.js +5 -0
  248. package/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -0
  249. package/hooks/features/pivoting/gridPivotingSelectors.js +30 -0
  250. package/hooks/features/pivoting/useGridPivoting.d.ts +7 -0
  251. package/hooks/features/pivoting/useGridPivoting.js +349 -0
  252. package/hooks/features/pivoting/utils.d.ts +21 -0
  253. package/hooks/features/pivoting/utils.js +270 -0
  254. package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +1 -4
  255. package/hooks/features/rowGrouping/useGridRowGrouping.js +0 -1
  256. package/hooks/utils/useResize.d.ts +9 -0
  257. package/hooks/utils/useResize.js +60 -0
  258. package/index.d.ts +4 -1
  259. package/index.js +19 -3
  260. package/material/icons.d.ts +15 -15
  261. package/material/icons.js +36 -9
  262. package/material/index.d.ts +31 -5
  263. package/material/index.js +30 -2
  264. package/models/dataGridPremiumProps.d.ts +96 -2
  265. package/models/gridApiPremium.d.ts +4 -2
  266. package/models/gridPremiumIconSlotsComponent.d.ts +141 -8
  267. package/models/gridPremiumSlotsComponent.d.ts +13 -1
  268. package/models/gridStatePremium.d.ts +6 -0
  269. package/package.json +9 -15
  270. package/setupExcelExportWebWorker/index.d.ts +1 -0
  271. package/{setupExcelExportWebWorker.js → setupExcelExportWebWorker/index.js} +1 -1
  272. package/typeOverloads/modules.d.ts +32 -1
  273. package/utils/speechRecognition.d.ts +2 -0
  274. package/utils/speechRecognition.js +8 -0
  275. package/components/promptControl/GridToolbarPromptControl.d.ts +0 -26
  276. package/components/promptControl/GridToolbarPromptControl.js +0 -222
  277. package/components/promptControl/RecordButton.d.ts +0 -16
  278. package/components/promptControl/RecordButton.js +0 -119
  279. package/components/promptControl/index.d.ts +0 -1
  280. package/components/promptControl/index.js +0 -12
  281. package/esm/components/promptControl/GridToolbarPromptControl.d.ts +0 -26
  282. package/esm/components/promptControl/GridToolbarPromptControl.js +0 -215
  283. package/esm/components/promptControl/RecordButton.d.ts +0 -16
  284. package/esm/components/promptControl/RecordButton.js +0 -111
  285. package/esm/components/promptControl/index.d.ts +0 -1
  286. package/esm/components/promptControl/index.js +0 -1
  287. package/esm/hooks/features/promptControl/api.d.ts +0 -2
  288. package/esm/hooks/features/promptControl/api.js +0 -22
  289. package/esm/hooks/features/promptControl/index.d.ts +0 -2
  290. package/esm/hooks/features/promptControl/types.d.ts +0 -25
  291. package/esm/setupExcelExportWebWorker.d.ts +0 -1
  292. package/esm/setupExcelExportWebWorker.js +0 -1
  293. package/esm/utils/releaseInfo.d.ts +0 -1
  294. package/esm/utils/releaseInfo.js +0 -13
  295. package/hooks/features/promptControl/api.d.ts +0 -2
  296. package/hooks/features/promptControl/api.js +0 -28
  297. package/hooks/features/promptControl/index.d.ts +0 -2
  298. package/hooks/features/promptControl/types.d.ts +0 -25
  299. package/modern/DataGridPremium/DataGrid.d.ts +0 -8
  300. package/modern/DataGridPremium/DataGrid.js +0 -19
  301. package/modern/DataGridPremium/DataGridPremium.d.ts +0 -16
  302. package/modern/DataGridPremium/DataGridPremium.js +0 -1127
  303. package/modern/DataGridPremium/index.d.ts +0 -3
  304. package/modern/DataGridPremium/index.js +0 -3
  305. package/modern/DataGridPremium/useDataGridPremiumComponent.d.ts +0 -4
  306. package/modern/DataGridPremium/useDataGridPremiumComponent.js +0 -108
  307. package/modern/DataGridPremium/useDataGridPremiumProps.d.ts +0 -6
  308. package/modern/DataGridPremium/useDataGridPremiumProps.js +0 -54
  309. package/modern/components/GridAggregationHeader.d.ts +0 -7
  310. package/modern/components/GridAggregationHeader.js +0 -89
  311. package/modern/components/GridAggregationRowOverlay.d.ts +0 -3
  312. package/modern/components/GridAggregationRowOverlay.js +0 -37
  313. package/modern/components/GridBottomContainer.d.ts +0 -3
  314. package/modern/components/GridBottomContainer.js +0 -43
  315. package/modern/components/GridColumnMenuAggregationItem.d.ts +0 -7
  316. package/modern/components/GridColumnMenuAggregationItem.js +0 -124
  317. package/modern/components/GridColumnMenuRowGroupItem.d.ts +0 -3
  318. package/modern/components/GridColumnMenuRowGroupItem.js +0 -42
  319. package/modern/components/GridColumnMenuRowUngroupItem.d.ts +0 -3
  320. package/modern/components/GridColumnMenuRowUngroupItem.js +0 -44
  321. package/modern/components/GridDataSourceGroupingCriteriaCell.d.ts +0 -7
  322. package/modern/components/GridDataSourceGroupingCriteriaCell.js +0 -121
  323. package/modern/components/GridExcelExportMenuItem.d.ts +0 -9
  324. package/modern/components/GridExcelExportMenuItem.js +0 -48
  325. package/modern/components/GridFooterCell.d.ts +0 -9
  326. package/modern/components/GridFooterCell.js +0 -43
  327. package/modern/components/GridGroupingColumnFooterCell.d.ts +0 -4
  328. package/modern/components/GridGroupingColumnFooterCell.js +0 -23
  329. package/modern/components/GridGroupingColumnLeafCell.d.ts +0 -4
  330. package/modern/components/GridGroupingColumnLeafCell.js +0 -17
  331. package/modern/components/GridGroupingCriteriaCell.d.ts +0 -7
  332. package/modern/components/GridGroupingCriteriaCell.js +0 -87
  333. package/modern/components/GridPremiumColumnMenu.d.ts +0 -33
  334. package/modern/components/GridPremiumColumnMenu.js +0 -37
  335. package/modern/components/GridPremiumToolbar.d.ts +0 -3
  336. package/modern/components/GridPremiumToolbar.js +0 -23
  337. package/modern/components/export/ExportExcel.d.ts +0 -29
  338. package/modern/components/export/index.d.ts +0 -1
  339. package/modern/components/export/index.js +0 -1
  340. package/modern/components/index.d.ts +0 -6
  341. package/modern/components/index.js +0 -6
  342. package/modern/components/promptControl/GridToolbarPromptControl.d.ts +0 -26
  343. package/modern/components/promptControl/GridToolbarPromptControl.js +0 -215
  344. package/modern/components/promptControl/RecordButton.d.ts +0 -16
  345. package/modern/components/promptControl/RecordButton.js +0 -111
  346. package/modern/components/promptControl/index.d.ts +0 -1
  347. package/modern/components/promptControl/index.js +0 -1
  348. package/modern/components/reexports.d.ts +0 -1
  349. package/modern/components/reexports.js +0 -1
  350. package/modern/constants/dataGridPremiumDefaultSlotsComponents.d.ts +0 -2
  351. package/modern/constants/dataGridPremiumDefaultSlotsComponents.js +0 -11
  352. package/modern/hooks/features/aggregation/createAggregationLookup.d.ts +0 -17
  353. package/modern/hooks/features/aggregation/createAggregationLookup.js +0 -111
  354. package/modern/hooks/features/aggregation/gridAggregationFunctions.d.ts +0 -8
  355. package/modern/hooks/features/aggregation/gridAggregationFunctions.js +0 -93
  356. package/modern/hooks/features/aggregation/gridAggregationInterfaces.d.ts +0 -129
  357. package/modern/hooks/features/aggregation/gridAggregationSelectors.d.ts +0 -13
  358. package/modern/hooks/features/aggregation/gridAggregationSelectors.js +0 -15
  359. package/modern/hooks/features/aggregation/gridAggregationUtils.d.ts +0 -62
  360. package/modern/hooks/features/aggregation/gridAggregationUtils.js +0 -180
  361. package/modern/hooks/features/aggregation/index.d.ts +0 -4
  362. package/modern/hooks/features/aggregation/index.js +0 -3
  363. package/modern/hooks/features/aggregation/useGridAggregation.d.ts +0 -6
  364. package/modern/hooks/features/aggregation/useGridAggregation.js +0 -103
  365. package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +0 -4
  366. package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.js +0 -96
  367. package/modern/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +0 -81
  368. package/modern/hooks/features/aggregation/wrapColumnWithAggregation.js +0 -215
  369. package/modern/hooks/features/cellSelection/gridCellSelectionInterfaces.d.ts +0 -40
  370. package/modern/hooks/features/cellSelection/gridCellSelectionInterfaces.js +0 -1
  371. package/modern/hooks/features/cellSelection/gridCellSelectionSelector.d.ts +0 -2
  372. package/modern/hooks/features/cellSelection/gridCellSelectionSelector.js +0 -2
  373. package/modern/hooks/features/cellSelection/index.d.ts +0 -1
  374. package/modern/hooks/features/cellSelection/index.js +0 -1
  375. package/modern/hooks/features/cellSelection/useGridCellSelection.d.ts +0 -6
  376. package/modern/hooks/features/cellSelection/useGridCellSelection.js +0 -486
  377. package/modern/hooks/features/clipboard/useGridClipboardImport.d.ts +0 -4
  378. package/modern/hooks/features/clipboard/useGridClipboardImport.js +0 -335
  379. package/modern/hooks/features/dataSource/models.d.ts +0 -54
  380. package/modern/hooks/features/dataSource/models.js +0 -1
  381. package/modern/hooks/features/dataSource/useGridDataSourcePremium.d.ts +0 -4
  382. package/modern/hooks/features/dataSource/useGridDataSourcePremium.js +0 -59
  383. package/modern/hooks/features/export/gridExcelExportInterface.d.ts +0 -71
  384. package/modern/hooks/features/export/gridExcelExportInterface.js +0 -1
  385. package/modern/hooks/features/export/index.d.ts +0 -2
  386. package/modern/hooks/features/export/index.js +0 -2
  387. package/modern/hooks/features/export/serializer/excelSerializer.d.ts +0 -40
  388. package/modern/hooks/features/export/serializer/excelSerializer.js +0 -269
  389. package/modern/hooks/features/export/serializer/setupExcelExportWebWorker.d.ts +0 -2
  390. package/modern/hooks/features/export/serializer/setupExcelExportWebWorker.js +0 -53
  391. package/modern/hooks/features/export/serializer/utils.d.ts +0 -36
  392. package/modern/hooks/features/export/serializer/utils.js +0 -93
  393. package/modern/hooks/features/export/useGridExcelExport.d.ts +0 -11
  394. package/modern/hooks/features/export/useGridExcelExport.js +0 -139
  395. package/modern/hooks/features/index.d.ts +0 -5
  396. package/modern/hooks/features/index.js +0 -6
  397. package/modern/hooks/features/promptControl/api.d.ts +0 -2
  398. package/modern/hooks/features/promptControl/api.js +0 -22
  399. package/modern/hooks/features/promptControl/index.d.ts +0 -2
  400. package/modern/hooks/features/promptControl/index.js +0 -1
  401. package/modern/hooks/features/promptControl/types.d.ts +0 -25
  402. package/modern/hooks/features/promptControl/types.js +0 -1
  403. package/modern/hooks/features/rowGrouping/createGroupingColDef.d.ts +0 -57
  404. package/modern/hooks/features/rowGrouping/createGroupingColDef.js +0 -272
  405. package/modern/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +0 -44
  406. package/modern/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +0 -1
  407. package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +0 -3
  408. package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.js +0 -5
  409. package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +0 -54
  410. package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +0 -173
  411. package/modern/hooks/features/rowGrouping/index.d.ts +0 -3
  412. package/modern/hooks/features/rowGrouping/index.js +0 -3
  413. package/modern/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +0 -4
  414. package/modern/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +0 -73
  415. package/modern/hooks/features/rowGrouping/useGridRowGrouping.d.ts +0 -11
  416. package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +0 -182
  417. package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +0 -4
  418. package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +0 -157
  419. package/modern/hooks/features/rows/index.d.ts +0 -1
  420. package/modern/hooks/features/rows/index.js +0 -1
  421. package/modern/hooks/features/rows/useGridRowAriaAttributes.d.ts +0 -1
  422. package/modern/hooks/features/rows/useGridRowAriaAttributes.js +0 -8
  423. package/modern/hooks/index.d.ts +0 -2
  424. package/modern/hooks/index.js +0 -3
  425. package/modern/hooks/utils/index.d.ts +0 -1
  426. package/modern/hooks/utils/index.js +0 -1
  427. package/modern/hooks/utils/useGridApiContext.d.ts +0 -4
  428. package/modern/hooks/utils/useGridApiContext.js +0 -2
  429. package/modern/hooks/utils/useGridApiRef.d.ts +0 -4
  430. package/modern/hooks/utils/useGridApiRef.js +0 -2
  431. package/modern/hooks/utils/useGridAriaAttributes.d.ts +0 -2
  432. package/modern/hooks/utils/useGridAriaAttributes.js +0 -13
  433. package/modern/hooks/utils/useGridPrivateApiContext.d.ts +0 -2
  434. package/modern/hooks/utils/useGridPrivateApiContext.js +0 -2
  435. package/modern/hooks/utils/useGridRootProps.d.ts +0 -2
  436. package/modern/hooks/utils/useGridRootProps.js +0 -2
  437. package/modern/hooks/utils/useKeepGroupedColumnsHidden.d.ts +0 -12
  438. package/modern/hooks/utils/useKeepGroupedColumnsHidden.js +0 -43
  439. package/modern/index.d.ts +0 -23
  440. package/modern/index.js +0 -26
  441. package/modern/locales.d.ts +0 -1
  442. package/modern/locales.js +0 -1
  443. package/modern/material/icons.d.ts +0 -15
  444. package/modern/material/icons.js +0 -20
  445. package/modern/material/index.d.ts +0 -8
  446. package/modern/material/index.js +0 -11
  447. package/modern/models/dataGridPremiumProps.d.ts +0 -162
  448. package/modern/models/dataGridPremiumProps.js +0 -1
  449. package/modern/models/gridApiPremium.d.ts +0 -14
  450. package/modern/models/gridApiPremium.js +0 -1
  451. package/modern/models/gridGroupingValueGetter.d.ts +0 -4
  452. package/modern/models/gridGroupingValueGetter.js +0 -1
  453. package/modern/models/gridPastedValueParser.d.ts +0 -4
  454. package/modern/models/gridPastedValueParser.js +0 -1
  455. package/modern/models/gridPremiumIconSlotsComponent.d.ts +0 -28
  456. package/modern/models/gridPremiumIconSlotsComponent.js +0 -1
  457. package/modern/models/gridPremiumSlotsComponent.d.ts +0 -7
  458. package/modern/models/gridPremiumSlotsComponent.js +0 -1
  459. package/modern/models/gridStatePremium.d.ts +0 -18
  460. package/modern/models/gridStatePremium.js +0 -1
  461. package/modern/models/index.d.ts +0 -4
  462. package/modern/models/index.js +0 -4
  463. package/modern/package.json +0 -1
  464. package/modern/setupExcelExportWebWorker.d.ts +0 -1
  465. package/modern/setupExcelExportWebWorker.js +0 -1
  466. package/modern/themeAugmentation/index.d.ts +0 -2
  467. package/modern/themeAugmentation/index.js +0 -4
  468. package/modern/themeAugmentation/overrides.d.ts +0 -7
  469. package/modern/themeAugmentation/overrides.js +0 -1
  470. package/modern/themeAugmentation/props.d.ts +0 -15
  471. package/modern/themeAugmentation/props.js +0 -1
  472. package/modern/typeOverloads/index.d.ts +0 -2
  473. package/modern/typeOverloads/index.js +0 -2
  474. package/modern/typeOverloads/modules.d.ts +0 -97
  475. package/modern/typeOverloads/modules.js +0 -1
  476. package/modern/typeOverloads/reexports.d.ts +0 -17
  477. package/modern/typeOverloads/reexports.js +0 -15
  478. package/modern/utils/releaseInfo.d.ts +0 -1
  479. package/modern/utils/releaseInfo.js +0 -13
  480. package/setupExcelExportWebWorker.d.ts +0 -1
  481. package/tsconfig.build.tsbuildinfo +0 -1
  482. package/utils/releaseInfo.d.ts +0 -1
  483. package/utils/releaseInfo.js +0 -20
  484. /package/esm/hooks/features/{promptControl/types.js → aiAssistant/gridAiAssistantInterfaces.js} +0 -0
  485. /package/esm/hooks/features/{promptControl → aiAssistant}/index.js +0 -0
  486. /package/{modern/hooks/features/aggregation/gridAggregationInterfaces.js → esm/hooks/features/pivoting/gridPivotingInterfaces.js} +0 -0
  487. /package/esm/{locales.d.ts → locales/index.d.ts} +0 -0
  488. /package/esm/{locales.js → locales/index.js} +0 -0
  489. /package/hooks/features/{promptControl/types.js → aiAssistant/gridAiAssistantInterfaces.js} +0 -0
  490. /package/hooks/features/{promptControl → aiAssistant}/index.js +0 -0
  491. /package/{locales.d.ts → locales/index.d.ts} +0 -0
  492. /package/{locales.js → locales/index.js} +0 -0
@@ -1,1127 +0,0 @@
1
- 'use client';
2
-
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import * as React from 'react';
5
- import PropTypes from 'prop-types';
6
- import { useLicenseVerifier, Watermark } from '@mui/x-license';
7
- import { GridRoot, GridContextProvider } from '@mui/x-data-grid-pro';
8
- import { propValidatorsDataGrid, propValidatorsDataGridPro, validateProps } from '@mui/x-data-grid-pro/internals';
9
- import { useMaterialCSSVariables } from '@mui/x-data-grid/material';
10
- import { forwardRef } from '@mui/x-internals/forwardRef';
11
- import { useDataGridPremiumComponent } from "./useDataGridPremiumComponent.js";
12
- import { useDataGridPremiumProps } from "./useDataGridPremiumProps.js";
13
- import { getReleaseInfo } from "../utils/releaseInfo.js";
14
- import { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
15
- import { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
16
- import { jsx as _jsx } from "react/jsx-runtime";
17
- const configuration = {
18
- hooks: {
19
- useCSSVariables: useMaterialCSSVariables,
20
- useGridAriaAttributes,
21
- useGridRowAriaAttributes
22
- }
23
- };
24
- const releaseInfo = getReleaseInfo();
25
- const watermark = /*#__PURE__*/_jsx(Watermark, {
26
- packageName: "x-data-grid-premium",
27
- releaseInfo: releaseInfo
28
- });
29
- let dataGridPremiumPropValidators;
30
- if (process.env.NODE_ENV !== 'production') {
31
- dataGridPremiumPropValidators = [...propValidatorsDataGrid, ...propValidatorsDataGridPro];
32
- }
33
- const DataGridPremiumRaw = forwardRef(function DataGridPremium(inProps, ref) {
34
- const props = useDataGridPremiumProps(inProps);
35
- const privateApiRef = useDataGridPremiumComponent(props.apiRef, props);
36
- useLicenseVerifier('x-data-grid-premium', releaseInfo);
37
- if (process.env.NODE_ENV !== 'production') {
38
- validateProps(props, dataGridPremiumPropValidators);
39
- }
40
- return /*#__PURE__*/_jsx(GridContextProvider, {
41
- privateApiRef: privateApiRef,
42
- configuration: configuration,
43
- props: props,
44
- children: /*#__PURE__*/_jsx(GridRoot, _extends({
45
- className: props.className,
46
- style: props.style,
47
- sx: props.sx
48
- }, props.slotProps?.root, {
49
- ref: ref,
50
- children: watermark
51
- }))
52
- });
53
- });
54
- process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
55
- // ----------------------------- Warning --------------------------------
56
- // | These PropTypes are generated from the TypeScript type definitions |
57
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
58
- // ----------------------------------------------------------------------
59
- /**
60
- * Aggregation functions available on the grid.
61
- * @default GRID_AGGREGATION_FUNCTIONS when `dataSource` is not provided, `{}` when `dataSource` is provided
62
- */
63
- aggregationFunctions: PropTypes.object,
64
- /**
65
- * Set the aggregation model of the grid.
66
- */
67
- aggregationModel: PropTypes.object,
68
- /**
69
- * Rows used to generate the aggregated value.
70
- * If `filtered`, the aggregated values are generated using only the rows currently passing the filtering process.
71
- * If `all`, the aggregated values are generated using all the rows.
72
- * @default "filtered"
73
- */
74
- aggregationRowsScope: PropTypes.oneOf(['all', 'filtered']),
75
- /**
76
- * The ref object that allows grid manipulation. Can be instantiated with `useGridApiRef()`.
77
- */
78
- apiRef: PropTypes.shape({
79
- current: PropTypes.object
80
- }),
81
- /**
82
- * The `aria-label` of the Data Grid.
83
- */
84
- 'aria-label': PropTypes.string,
85
- /**
86
- * The `id` of the element containing a label for the Data Grid.
87
- */
88
- 'aria-labelledby': PropTypes.string,
89
- /**
90
- * If `true`, the Data Grid height is dynamic and follows the number of rows in the Data Grid.
91
- * @default false
92
- * @deprecated Use flex parent container instead: https://mui.com/x/react-data-grid/layout/#flex-parent-container
93
- * @example
94
- * <div style={{ display: 'flex', flexDirection: 'column' }}>
95
- * <DataGrid />
96
- * </div>
97
- */
98
- autoHeight: PropTypes.bool,
99
- /**
100
- * If `true`, the pageSize is calculated according to the container size and the max number of rows to avoid rendering a vertical scroll bar.
101
- * @default false
102
- */
103
- autoPageSize: PropTypes.bool,
104
- /**
105
- * If `true`, columns are autosized after the datagrid is mounted.
106
- * @default false
107
- */
108
- autosizeOnMount: PropTypes.bool,
109
- /**
110
- * The options for autosize when user-initiated.
111
- */
112
- autosizeOptions: PropTypes.shape({
113
- columns: PropTypes.arrayOf(PropTypes.string),
114
- disableColumnVirtualization: PropTypes.bool,
115
- expand: PropTypes.bool,
116
- includeHeaders: PropTypes.bool,
117
- includeOutliers: PropTypes.bool,
118
- outliersFactor: PropTypes.number
119
- }),
120
- /**
121
- * Controls the modes of the cells.
122
- */
123
- cellModesModel: PropTypes.object,
124
- /**
125
- * If `true`, the cell selection mode is enabled.
126
- * @default false
127
- */
128
- cellSelection: PropTypes.bool,
129
- /**
130
- * Set the cell selection model of the grid.
131
- */
132
- cellSelectionModel: PropTypes.object,
133
- /**
134
- * If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
135
- * @default false
136
- */
137
- checkboxSelection: PropTypes.bool,
138
- /**
139
- * If `true`, the "Select All" header checkbox selects only the rows on the current page. To be used in combination with `checkboxSelection`.
140
- * It only works if the pagination is enabled.
141
- * @default false
142
- */
143
- checkboxSelectionVisibleOnly: PropTypes.bool,
144
- /**
145
- * Override or extend the styles applied to the component.
146
- */
147
- classes: PropTypes.object,
148
- className: PropTypes.string,
149
- /**
150
- * The character used to separate cell values when copying to the clipboard.
151
- * @default '\t'
152
- */
153
- clipboardCopyCellDelimiter: PropTypes.string,
154
- /**
155
- * Column region in pixels to render before/after the viewport
156
- * @default 150
157
- */
158
- columnBufferPx: PropTypes.number,
159
- /**
160
- * Sets the height in pixels of the column group headers in the Data Grid.
161
- * Inherits the `columnHeaderHeight` value if not set.
162
- */
163
- columnGroupHeaderHeight: PropTypes.number,
164
- columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
165
- /**
166
- * Sets the height in pixel of the column headers in the Data Grid.
167
- * @default 56
168
- */
169
- columnHeaderHeight: PropTypes.number,
170
- /**
171
- * Set of columns of type [[GridColDef]][].
172
- */
173
- columns: PropTypes.arrayOf(PropTypes.object).isRequired,
174
- /**
175
- * Set the column visibility model of the Data Grid.
176
- * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
177
- */
178
- columnVisibilityModel: PropTypes.object,
179
- /**
180
- * Data source object.
181
- */
182
- dataSource: PropTypes.shape({
183
- getAggregatedValue: PropTypes.func,
184
- getChildrenCount: PropTypes.func,
185
- getGroupKey: PropTypes.func,
186
- getRows: PropTypes.func.isRequired,
187
- updateRow: PropTypes.func
188
- }),
189
- /**
190
- * Data source cache object.
191
- */
192
- dataSourceCache: PropTypes.shape({
193
- clear: PropTypes.func.isRequired,
194
- get: PropTypes.func.isRequired,
195
- set: PropTypes.func.isRequired
196
- }),
197
- /**
198
- * If above 0, the row children will be expanded up to this depth.
199
- * If equal to -1, all the row children will be expanded.
200
- * @default 0
201
- */
202
- defaultGroupingExpansionDepth: PropTypes.number,
203
- /**
204
- * Set the density of the Data Grid.
205
- * @default "standard"
206
- */
207
- density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
208
- /**
209
- * The row ids to show the detail panel.
210
- */
211
- detailPanelExpandedRowIds: PropTypes /* @typescript-to-proptypes-ignore */.instanceOf(Set),
212
- /**
213
- * If `true`, aggregation is disabled.
214
- * @default false
215
- */
216
- disableAggregation: PropTypes.bool,
217
- /**
218
- * If `true`, column autosizing on header separator double-click is disabled.
219
- * @default false
220
- */
221
- disableAutosize: PropTypes.bool,
222
- /**
223
- * If `true`, the filtering will only be applied to the top level rows when grouping rows with the `treeData` prop.
224
- * @default false
225
- */
226
- disableChildrenFiltering: PropTypes.bool,
227
- /**
228
- * If `true`, the sorting will only be applied to the top level rows when grouping rows with the `treeData` prop.
229
- * @default false
230
- */
231
- disableChildrenSorting: PropTypes.bool,
232
- /**
233
- * If `true`, the clipboard paste is disabled.
234
- * @default false
235
- */
236
- disableClipboardPaste: PropTypes.bool,
237
- /**
238
- * If `true`, column filters are disabled.
239
- * @default false
240
- */
241
- disableColumnFilter: PropTypes.bool,
242
- /**
243
- * If `true`, the column menu is disabled.
244
- * @default false
245
- */
246
- disableColumnMenu: PropTypes.bool,
247
- /**
248
- * If `true`, the column pinning is disabled.
249
- * @default false
250
- */
251
- disableColumnPinning: PropTypes.bool,
252
- /**
253
- * If `true`, reordering columns is disabled.
254
- * @default false
255
- */
256
- disableColumnReorder: PropTypes.bool,
257
- /**
258
- * If `true`, resizing columns is disabled.
259
- * @default false
260
- */
261
- disableColumnResize: PropTypes.bool,
262
- /**
263
- * If `true`, hiding/showing columns is disabled.
264
- * @default false
265
- */
266
- disableColumnSelector: PropTypes.bool,
267
- /**
268
- * If `true`, the column sorting feature will be disabled.
269
- * @default false
270
- */
271
- disableColumnSorting: PropTypes.bool,
272
- /**
273
- * If `true`, the density selector is disabled.
274
- * @default false
275
- */
276
- disableDensitySelector: PropTypes.bool,
277
- /**
278
- * If `true`, `eval()` is not used for performance optimization.
279
- * @default false
280
- */
281
- disableEval: PropTypes.bool,
282
- /**
283
- * If `true`, filtering with multiple columns is disabled.
284
- * @default false
285
- */
286
- disableMultipleColumnsFiltering: PropTypes.bool,
287
- /**
288
- * If `true`, the sorting with multiple columns is disabled.
289
- * @default false
290
- */
291
- disableMultipleColumnsSorting: PropTypes.bool,
292
- /**
293
- * If `true`, multiple selection using the Ctrl/CMD or Shift key is disabled.
294
- * The MIT DataGrid will ignore this prop, unless `checkboxSelection` is enabled.
295
- * @default false (`!props.checkboxSelection` for MIT Data Grid)
296
- */
297
- disableMultipleRowSelection: PropTypes.bool,
298
- /**
299
- * If `true`, the row grouping is disabled.
300
- * @default false
301
- */
302
- disableRowGrouping: PropTypes.bool,
303
- /**
304
- * If `true`, the selection on click on a row or cell is disabled.
305
- * @default false
306
- */
307
- disableRowSelectionOnClick: PropTypes.bool,
308
- /**
309
- * If `true`, the virtualization is disabled.
310
- * @default false
311
- */
312
- disableVirtualization: PropTypes.bool,
313
- /**
314
- * Controls whether to use the cell or row editing.
315
- * @default "cell"
316
- */
317
- editMode: PropTypes.oneOf(['cell', 'row']),
318
- /**
319
- * Use if the actual rowCount is not known upfront, but an estimation is available.
320
- * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
321
- * Applicable only with `paginationMode="server"` and when `rowCount="-1"`
322
- */
323
- estimatedRowCount: PropTypes.number,
324
- /**
325
- * Unstable features, breaking changes might be introduced.
326
- * For each feature, if the flag is not explicitly set to `true`, then the feature is fully disabled, and neither property nor method calls will have any effect.
327
- */
328
- experimentalFeatures: PropTypes.shape({
329
- warnIfFocusStateIsNotSynced: PropTypes.bool
330
- }),
331
- /**
332
- * The milliseconds delay to wait after a keystroke before triggering filtering.
333
- * @default 150
334
- */
335
- filterDebounceMs: PropTypes.number,
336
- /**
337
- * Filtering can be processed on the server or client-side.
338
- * Set it to 'server' if you would like to handle filtering on the server-side.
339
- * @default "client"
340
- */
341
- filterMode: PropTypes.oneOf(['client', 'server']),
342
- /**
343
- * Set the filter model of the Data Grid.
344
- */
345
- filterModel: PropTypes.shape({
346
- items: PropTypes.arrayOf(PropTypes.shape({
347
- field: PropTypes.string.isRequired,
348
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
349
- operator: PropTypes.string.isRequired,
350
- value: PropTypes.any
351
- })).isRequired,
352
- logicOperator: PropTypes.oneOf(['and', 'or']),
353
- quickFilterExcludeHiddenColumns: PropTypes.bool,
354
- quickFilterLogicOperator: PropTypes.oneOf(['and', 'or']),
355
- quickFilterValues: PropTypes.array
356
- }),
357
- /**
358
- * Determines the position of an aggregated value.
359
- * @param {GridGroupNode} groupNode The current group.
360
- * @returns {GridAggregationPosition | null} Position of the aggregated value (if `null`, the group isn't aggregated).
361
- * @default (groupNode) => groupNode == null ? 'footer' : 'inline'
362
- */
363
- getAggregationPosition: PropTypes.func,
364
- /**
365
- * Function that applies CSS classes dynamically on cells.
366
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
367
- * @returns {string} The CSS class to apply to the cell.
368
- */
369
- getCellClassName: PropTypes.func,
370
- /**
371
- * Function that returns the element to render in row detail.
372
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
373
- * @returns {React.JSX.Element} The row detail element.
374
- */
375
- getDetailPanelContent: PropTypes.func,
376
- /**
377
- * Function that returns the height of the row detail panel.
378
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
379
- * @returns {number | string} The height in pixels or "auto" to use the content height.
380
- * @default "() => 500"
381
- */
382
- getDetailPanelHeight: PropTypes.func,
383
- /**
384
- * Function that returns the estimated height for a row.
385
- * Only works if dynamic row height is used.
386
- * Once the row height is measured this value is discarded.
387
- * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].
388
- * @returns {number | null} The estimated row height value. If `null` or `undefined` then the default row height, based on the density, is applied.
389
- */
390
- getEstimatedRowHeight: PropTypes.func,
391
- /**
392
- * Function that applies CSS classes dynamically on rows.
393
- * @param {GridRowClassNameParams} params With all properties from [[GridRowClassNameParams]].
394
- * @returns {string} The CSS class to apply to the row.
395
- */
396
- getRowClassName: PropTypes.func,
397
- /**
398
- * Function that sets the row height per row.
399
- * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].
400
- * @returns {GridRowHeightReturnValue} The row height value. If `null` or `undefined` then the default row height is applied. If "auto" then the row height is calculated based on the content.
401
- */
402
- getRowHeight: PropTypes.func,
403
- /**
404
- * Return the id of a given [[GridRowModel]].
405
- * Ensure the reference of this prop is stable to avoid performance implications.
406
- * It could be done by either defining the prop outside of the component or by memoizing it.
407
- */
408
- getRowId: PropTypes.func,
409
- /**
410
- * Function that allows to specify the spacing between rows.
411
- * @param {GridRowSpacingParams} params With all properties from [[GridRowSpacingParams]].
412
- * @returns {GridRowSpacing} The row spacing values.
413
- */
414
- getRowSpacing: PropTypes.func,
415
- /**
416
- * Determines the path of a row in the tree data.
417
- * For instance, a row with the path ["A", "B"] is the child of the row with the path ["A"].
418
- * Note that all paths must contain at least one element.
419
- * @template R
420
- * @param {R} row The row from which we want the path.
421
- * @returns {string[]} The path to the row.
422
- */
423
- getTreeDataPath: PropTypes.func,
424
- /**
425
- * The grouping column used by the tree data.
426
- */
427
- groupingColDef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
428
- /**
429
- * Override the height of the header filters.
430
- */
431
- headerFilterHeight: PropTypes.number,
432
- /**
433
- * If `true`, the header filters feature is enabled.
434
- * @default false
435
- */
436
- headerFilters: PropTypes.bool,
437
- /**
438
- * If `true`, the footer component is hidden.
439
- * @default false
440
- */
441
- hideFooter: PropTypes.bool,
442
- /**
443
- * If `true`, the pagination component in the footer is hidden.
444
- * @default false
445
- */
446
- hideFooterPagination: PropTypes.bool,
447
- /**
448
- * If `true`, the row count in the footer is hidden.
449
- * It has no effect if the pagination is enabled.
450
- * @default false
451
- */
452
- hideFooterRowCount: PropTypes.bool,
453
- /**
454
- * If `true`, the selected row count in the footer is hidden.
455
- * @default false
456
- */
457
- hideFooterSelectedRowCount: PropTypes.bool,
458
- /**
459
- * If `true`, the diacritics (accents) are ignored when filtering or quick filtering.
460
- * E.g. when filter value is `cafe`, the rows with `café` will be visible.
461
- * @default false
462
- */
463
- ignoreDiacritics: PropTypes.bool,
464
- /**
465
- * If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
466
- * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
467
- * @default false
468
- */
469
- ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({
470
- clipboardExport: PropTypes.bool,
471
- csvExport: PropTypes.bool
472
- }), PropTypes.bool]),
473
- /**
474
- * The initial state of the DataGridPremium.
475
- * The data in it is set in the state on initialization but isn't controlled.
476
- * If one of the data in `initialState` is also being controlled, then the control state wins.
477
- */
478
- initialState: PropTypes.object,
479
- /**
480
- * Callback fired when a cell is rendered, returns true if the cell is editable.
481
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
482
- * @returns {boolean} A boolean indicating if the cell is editable.
483
- */
484
- isCellEditable: PropTypes.func,
485
- /**
486
- * Determines if a group should be expanded after its creation.
487
- * This prop takes priority over the `defaultGroupingExpansionDepth` prop.
488
- * @param {GridGroupNode} node The node of the group to test.
489
- * @returns {boolean} A boolean indicating if the group is expanded.
490
- */
491
- isGroupExpandedByDefault: PropTypes.func,
492
- /**
493
- * Determines if a row can be selected.
494
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
495
- * @returns {boolean} A boolean indicating if the row is selectable.
496
- */
497
- isRowSelectable: PropTypes.func,
498
- /**
499
- * If `true`, moving the mouse pointer outside the grid before releasing the mouse button
500
- * in a column re-order action will not cause the column to jump back to its original position.
501
- * @default false
502
- */
503
- keepColumnPositionIfDraggedOutside: PropTypes.bool,
504
- /**
505
- * If `true`, the selection model will retain selected rows that do not exist.
506
- * Useful when using server side pagination and row selections need to be retained
507
- * when changing pages.
508
- * @default false
509
- */
510
- keepNonExistentRowsSelected: PropTypes.bool,
511
- /**
512
- * The label of the Data Grid.
513
- * If the `showToolbar` prop is `true`, the label will be displayed in the toolbar and applied to the `aria-label` attribute of the grid.
514
- * If the `showToolbar` prop is `false`, the label will not be visible but will be applied to the `aria-label` attribute of the grid.
515
- */
516
- label: PropTypes.string,
517
- /**
518
- * Used together with `dataSource` to enable lazy loading.
519
- * If enabled, the grid stops adding `paginationModel` to the data requests (`getRows`)
520
- * and starts sending `start` and `end` values depending on the loading mode and the scroll position.
521
- * @default false
522
- */
523
- lazyLoading: PropTypes.bool,
524
- /**
525
- * If positive, the Data Grid will throttle data source requests on rendered rows interval change.
526
- * @default 500
527
- */
528
- lazyLoadingRequestThrottleMs: PropTypes.number,
529
- /**
530
- * If `true`, displays the data in a list view.
531
- * Use in combination with `listViewColumn`.
532
- */
533
- listView: PropTypes.bool,
534
- /**
535
- * Definition of the column rendered when the `listView` prop is enabled.
536
- */
537
- listViewColumn: PropTypes.shape({
538
- align: PropTypes.oneOf(['center', 'left', 'right']),
539
- cellClassName: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
540
- display: PropTypes.oneOf(['flex', 'text']),
541
- field: PropTypes.string.isRequired,
542
- renderCell: PropTypes.func
543
- }),
544
- /**
545
- * If `true`, a loading overlay is displayed.
546
- * @default false
547
- */
548
- loading: PropTypes.bool,
549
- /**
550
- * Set the locale text of the Data Grid.
551
- * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
552
- */
553
- localeText: PropTypes.object,
554
- /**
555
- * Pass a custom logger in the components that implements the [[Logger]] interface.
556
- * @default console
557
- */
558
- logger: PropTypes.shape({
559
- debug: PropTypes.func.isRequired,
560
- error: PropTypes.func.isRequired,
561
- info: PropTypes.func.isRequired,
562
- warn: PropTypes.func.isRequired
563
- }),
564
- /**
565
- * Allows to pass the logging level or false to turn off logging.
566
- * @default "error" ("warn" in dev mode)
567
- */
568
- logLevel: PropTypes.oneOf(['debug', 'error', 'info', 'warn', false]),
569
- /**
570
- * Nonce of the inline styles for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute).
571
- */
572
- nonce: PropTypes.string,
573
- /**
574
- * Callback fired when the row grouping model changes.
575
- * @param {GridAggregationModel} model The aggregated columns.
576
- * @param {GridCallbackDetails} details Additional details for this callback.
577
- */
578
- onAggregationModelChange: PropTypes.func,
579
- /**
580
- * Callback fired before the clipboard paste operation starts.
581
- * Use it to confirm or cancel the paste operation.
582
- * @param {object} params Params passed to the callback.
583
- * @param {string[][]} params.data The raw pasted data split by rows and cells.
584
- * @returns {Promise<any>} A promise that resolves to confirm the paste operation, and rejects to cancel it.
585
- */
586
- onBeforeClipboardPasteStart: PropTypes.func,
587
- /**
588
- * Callback fired when any cell is clicked.
589
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
590
- * @param {MuiEvent<React.MouseEvent>} event The event object.
591
- * @param {GridCallbackDetails} details Additional details for this callback.
592
- */
593
- onCellClick: PropTypes.func,
594
- /**
595
- * Callback fired when a double click event comes from a cell element.
596
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
597
- * @param {MuiEvent<React.MouseEvent>} event The event object.
598
- * @param {GridCallbackDetails} details Additional details for this callback.
599
- */
600
- onCellDoubleClick: PropTypes.func,
601
- /**
602
- * Callback fired when the cell turns to edit mode.
603
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
604
- * @param {MuiEvent<React.KeyboardEvent | React.MouseEvent>} event The event that caused this prop to be called.
605
- */
606
- onCellEditStart: PropTypes.func,
607
- /**
608
- * Callback fired when the cell turns to view mode.
609
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
610
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
611
- */
612
- onCellEditStop: PropTypes.func,
613
- /**
614
- * Callback fired when a keydown event comes from a cell element.
615
- * @param {GridCellParams} params With all properties from [[GridCellParams]].
616
- * @param {MuiEvent<React.KeyboardEvent>} event The event object.
617
- * @param {GridCallbackDetails} details Additional details for this callback.
618
- */
619
- onCellKeyDown: PropTypes.func,
620
- /**
621
- * Callback fired when the `cellModesModel` prop changes.
622
- * @param {GridCellModesModel} cellModesModel Object containing which cells are in "edit" mode.
623
- * @param {GridCallbackDetails} details Additional details for this callback.
624
- */
625
- onCellModesModelChange: PropTypes.func,
626
- /**
627
- * Callback fired when the selection state of one or multiple cells changes.
628
- * @param {GridCellSelectionModel} cellSelectionModel Object in the shape of [[GridCellSelectionModel]] containing the selected cells.
629
- * @param {GridCallbackDetails} details Additional details for this callback.
630
- */
631
- onCellSelectionModelChange: PropTypes.func,
632
- /**
633
- * Callback called when the data is copied to the clipboard.
634
- * @param {string} data The data copied to the clipboard.
635
- */
636
- onClipboardCopy: PropTypes.func,
637
- /**
638
- * Callback fired when the clipboard paste operation ends.
639
- */
640
- onClipboardPasteEnd: PropTypes.func,
641
- /**
642
- * Callback fired when the clipboard paste operation starts.
643
- */
644
- onClipboardPasteStart: PropTypes.func,
645
- /**
646
- * Callback fired when a click event comes from a column header element.
647
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
648
- * @param {MuiEvent<React.MouseEvent>} event The event object.
649
- * @param {GridCallbackDetails} details Additional details for this callback.
650
- */
651
- onColumnHeaderClick: PropTypes.func,
652
- /**
653
- * Callback fired when a contextmenu event comes from a column header element.
654
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
655
- * @param {MuiEvent<React.MouseEvent>} event The event object.
656
- */
657
- onColumnHeaderContextMenu: PropTypes.func,
658
- /**
659
- * Callback fired when a double click event comes from a column header element.
660
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
661
- * @param {MuiEvent<React.MouseEvent>} event The event object.
662
- * @param {GridCallbackDetails} details Additional details for this callback.
663
- */
664
- onColumnHeaderDoubleClick: PropTypes.func,
665
- /**
666
- * Callback fired when a mouse enter event comes from a column header element.
667
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
668
- * @param {MuiEvent<React.MouseEvent>} event The event object.
669
- * @param {GridCallbackDetails} details Additional details for this callback.
670
- */
671
- onColumnHeaderEnter: PropTypes.func,
672
- /**
673
- * Callback fired when a mouse leave event comes from a column header element.
674
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
675
- * @param {MuiEvent<React.MouseEvent>} event The event object.
676
- * @param {GridCallbackDetails} details Additional details for this callback.
677
- */
678
- onColumnHeaderLeave: PropTypes.func,
679
- /**
680
- * Callback fired when a mouseout event comes from a column header element.
681
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
682
- * @param {MuiEvent<React.MouseEvent>} event The event object.
683
- * @param {GridCallbackDetails} details Additional details for this callback.
684
- */
685
- onColumnHeaderOut: PropTypes.func,
686
- /**
687
- * Callback fired when a mouseover event comes from a column header element.
688
- * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
689
- * @param {MuiEvent<React.MouseEvent>} event The event object.
690
- * @param {GridCallbackDetails} details Additional details for this callback.
691
- */
692
- onColumnHeaderOver: PropTypes.func,
693
- /**
694
- * Callback fired when a column is reordered.
695
- * @param {GridColumnOrderChangeParams} params With all properties from [[GridColumnOrderChangeParams]].
696
- * @param {MuiEvent<{}>} event The event object.
697
- * @param {GridCallbackDetails} details Additional details for this callback.
698
- */
699
- onColumnOrderChange: PropTypes.func,
700
- /**
701
- * Callback fired while a column is being resized.
702
- * @param {GridColumnResizeParams} params With all properties from [[GridColumnResizeParams]].
703
- * @param {MuiEvent<React.MouseEvent>} event The event object.
704
- * @param {GridCallbackDetails} details Additional details for this callback.
705
- */
706
- onColumnResize: PropTypes.func,
707
- /**
708
- * Callback fired when the column visibility model changes.
709
- * @param {GridColumnVisibilityModel} model The new model.
710
- * @param {GridCallbackDetails} details Additional details for this callback.
711
- */
712
- onColumnVisibilityModelChange: PropTypes.func,
713
- /**
714
- * Callback fired when the width of a column is changed.
715
- * @param {GridColumnResizeParams} params With all properties from [[GridColumnResizeParams]].
716
- * @param {MuiEvent<React.MouseEvent>} event The event object.
717
- * @param {GridCallbackDetails} details Additional details for this callback.
718
- */
719
- onColumnWidthChange: PropTypes.func,
720
- /**
721
- * Callback fired when a data source request fails.
722
- * @param {GridGetRowsError | GridUpdateRowError} error The data source error object.
723
- */
724
- onDataSourceError: PropTypes.func,
725
- /**
726
- * Callback fired when the density changes.
727
- * @param {GridDensity} density New density value.
728
- */
729
- onDensityChange: PropTypes.func,
730
- /**
731
- * Callback fired when the detail panel of a row is opened or closed.
732
- * @param {GridRowId[]} ids The ids of the rows which have the detail panel open.
733
- * @param {GridCallbackDetails} details Additional details for this callback.
734
- */
735
- onDetailPanelExpandedRowIdsChange: PropTypes.func,
736
- /**
737
- * Callback fired when the state of the Excel export changes.
738
- * @param {string} inProgress Indicates if the task is in progress.
739
- */
740
- onExcelExportStateChange: PropTypes.func,
741
- /**
742
- * Callback fired when rowCount is set and the next batch of virtualized rows is rendered.
743
- * @param {GridFetchRowsParams} params With all properties from [[GridFetchRowsParams]].
744
- * @param {MuiEvent<{}>} event The event object.
745
- * @param {GridCallbackDetails} details Additional details for this callback.
746
- * @deprecated Use the {@link https://next.mui.com/x/react-data-grid/server-side-data/lazy-loading/#viewport-loading Server-side data-Viewport loading} instead.
747
- */
748
- onFetchRows: PropTypes.func,
749
- /**
750
- * Callback fired when the Filter model changes before the filters are applied.
751
- * @param {GridFilterModel} model With all properties from [[GridFilterModel]].
752
- * @param {GridCallbackDetails} details Additional details for this callback.
753
- */
754
- onFilterModelChange: PropTypes.func,
755
- /**
756
- * Callback fired when the menu is closed.
757
- * @param {GridMenuParams} params With all properties from [[GridMenuParams]].
758
- * @param {MuiEvent<{}>} event The event object.
759
- * @param {GridCallbackDetails} details Additional details for this callback.
760
- */
761
- onMenuClose: PropTypes.func,
762
- /**
763
- * Callback fired when the menu is opened.
764
- * @param {GridMenuParams} params With all properties from [[GridMenuParams]].
765
- * @param {MuiEvent<{}>} event The event object.
766
- * @param {GridCallbackDetails} details Additional details for this callback.
767
- */
768
- onMenuOpen: PropTypes.func,
769
- /**
770
- * Callback fired when the pagination meta has changed.
771
- * @param {GridPaginationMeta} paginationMeta Updated pagination meta.
772
- */
773
- onPaginationMetaChange: PropTypes.func,
774
- /**
775
- * Callback fired when the pagination model has changed.
776
- * @param {GridPaginationModel} model Updated pagination model.
777
- * @param {GridCallbackDetails} details Additional details for this callback.
778
- */
779
- onPaginationModelChange: PropTypes.func,
780
- /**
781
- * Callback fired when the pinned columns have changed.
782
- * @param {GridPinnedColumnFields} pinnedColumns The changed pinned columns.
783
- * @param {GridCallbackDetails} details Additional details for this callback.
784
- */
785
- onPinnedColumnsChange: PropTypes.func,
786
- /**
787
- * Callback fired when the preferences panel is closed.
788
- * @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
789
- * @param {MuiEvent<{}>} event The event object.
790
- * @param {GridCallbackDetails} details Additional details for this callback.
791
- */
792
- onPreferencePanelClose: PropTypes.func,
793
- /**
794
- * Callback fired when the preferences panel is opened.
795
- * @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
796
- * @param {MuiEvent<{}>} event The event object.
797
- * @param {GridCallbackDetails} details Additional details for this callback.
798
- */
799
- onPreferencePanelOpen: PropTypes.func,
800
- /**
801
- * Callback called when `processRowUpdate` throws an error or rejects.
802
- * @param {any} error The error thrown.
803
- */
804
- onProcessRowUpdateError: PropTypes.func,
805
- /**
806
- * Callback fired when the Data Grid is resized.
807
- * @param {ElementSize} containerSize With all properties from [[ElementSize]].
808
- * @param {MuiEvent<{}>} event The event object.
809
- * @param {GridCallbackDetails} details Additional details for this callback.
810
- */
811
- onResize: PropTypes.func,
812
- /**
813
- * Callback fired when a row is clicked.
814
- * Not called if the target clicked is an interactive element added by the built-in columns.
815
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
816
- * @param {MuiEvent<React.MouseEvent>} event The event object.
817
- * @param {GridCallbackDetails} details Additional details for this callback.
818
- */
819
- onRowClick: PropTypes.func,
820
- /**
821
- * Callback fired when the row count has changed.
822
- * @param {number} count Updated row count.
823
- */
824
- onRowCountChange: PropTypes.func,
825
- /**
826
- * Callback fired when a double click event comes from a row container element.
827
- * @param {GridRowParams} params With all properties from [[RowParams]].
828
- * @param {MuiEvent<React.MouseEvent>} event The event object.
829
- * @param {GridCallbackDetails} details Additional details for this callback.
830
- */
831
- onRowDoubleClick: PropTypes.func,
832
- /**
833
- * Callback fired when the row turns to edit mode.
834
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
835
- * @param {MuiEvent<React.KeyboardEvent | React.MouseEvent>} event The event that caused this prop to be called.
836
- */
837
- onRowEditStart: PropTypes.func,
838
- /**
839
- * Callback fired when the row turns to view mode.
840
- * @param {GridRowParams} params With all properties from [[GridRowParams]].
841
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
842
- */
843
- onRowEditStop: PropTypes.func,
844
- /**
845
- * Callback fired when the row grouping model changes.
846
- * @param {GridRowGroupingModel} model Columns used as grouping criteria.
847
- * @param {GridCallbackDetails} details Additional details for this callback.
848
- */
849
- onRowGroupingModelChange: PropTypes.func,
850
- /**
851
- * Callback fired when the `rowModesModel` prop changes.
852
- * @param {GridRowModesModel} rowModesModel Object containing which rows are in "edit" mode.
853
- * @param {GridCallbackDetails} details Additional details for this callback.
854
- */
855
- onRowModesModelChange: PropTypes.func,
856
- /**
857
- * Callback fired when a row is being reordered.
858
- * @param {GridRowOrderChangeParams} params With all properties from [[GridRowOrderChangeParams]].
859
- * @param {MuiEvent<{}>} event The event object.
860
- * @param {GridCallbackDetails} details Additional details for this callback.
861
- */
862
- onRowOrderChange: PropTypes.func,
863
- /**
864
- * Callback fired when the selection state of one or multiple rows changes.
865
- * @param {GridRowSelectionModel} rowSelectionModel With all the row ids [[GridSelectionModel]].
866
- * @param {GridCallbackDetails} details Additional details for this callback.
867
- */
868
- onRowSelectionModelChange: PropTypes.func,
869
- /**
870
- * Callback fired when scrolling to the bottom of the grid viewport.
871
- * @param {GridRowScrollEndParams} params With all properties from [[GridRowScrollEndParams]].
872
- * @param {MuiEvent<{}>} event The event object.
873
- * @param {GridCallbackDetails} details Additional details for this callback.
874
- * @deprecated Use the {@link https://next.mui.com/x/react-data-grid/server-side-data/lazy-loading/#infinite-loading Server-side data-Infinite loading} instead.
875
- */
876
- onRowsScrollEnd: PropTypes.func,
877
- /**
878
- * Callback fired when the sort model changes before a column is sorted.
879
- * @param {GridSortModel} model With all properties from [[GridSortModel]].
880
- * @param {GridCallbackDetails} details Additional details for this callback.
881
- */
882
- onSortModelChange: PropTypes.func,
883
- /**
884
- * Callback fired when the state of the Data Grid is updated.
885
- * @param {GridState} state The new state.
886
- * @param {MuiEvent<{}>} event The event object.
887
- * @param {GridCallbackDetails} details Additional details for this callback.
888
- * @ignore - do not document.
889
- */
890
- onStateChange: PropTypes.func,
891
- /**
892
- * Select the pageSize dynamically using the component UI.
893
- * @default [25, 50, 100]
894
- */
895
- pageSizeOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
896
- label: PropTypes.string.isRequired,
897
- value: PropTypes.number.isRequired
898
- })]).isRequired),
899
- /**
900
- * If `true`, pagination is enabled.
901
- * @default false
902
- */
903
- pagination: PropTypes.bool,
904
- /**
905
- * The extra information about the pagination state of the Data Grid.
906
- * Only applicable with `paginationMode="server"`.
907
- */
908
- paginationMeta: PropTypes.shape({
909
- hasNextPage: PropTypes.bool
910
- }),
911
- /**
912
- * Pagination can be processed on the server or client-side.
913
- * Set it to 'client' if you would like to handle the pagination on the client-side.
914
- * Set it to 'server' if you would like to handle the pagination on the server-side.
915
- * @default "client"
916
- */
917
- paginationMode: PropTypes.oneOf(['client', 'server']),
918
- /**
919
- * The pagination model of type [[GridPaginationModel]] which refers to current `page` and `pageSize`.
920
- */
921
- paginationModel: PropTypes.shape({
922
- page: PropTypes.number.isRequired,
923
- pageSize: PropTypes.number.isRequired
924
- }),
925
- /**
926
- * The column fields to display pinned to left or right.
927
- */
928
- pinnedColumns: PropTypes.object,
929
- /**
930
- * Rows data to pin on top or bottom.
931
- */
932
- pinnedRows: PropTypes.shape({
933
- bottom: PropTypes.arrayOf(PropTypes.object),
934
- top: PropTypes.arrayOf(PropTypes.object)
935
- }),
936
- /**
937
- * Callback called before updating a row with new values in the row and cell editing.
938
- * @template R
939
- * @param {R} newRow Row object with the new values.
940
- * @param {R} oldRow Row object with the old values.
941
- * @param {{ rowId: GridRowId }} params Additional parameters.
942
- * @returns {Promise<R> | R} The final values to update the row.
943
- */
944
- processRowUpdate: PropTypes.func,
945
- /**
946
- * The milliseconds throttle delay for resizing the grid.
947
- * @default 60
948
- */
949
- resizeThrottleMs: PropTypes.number,
950
- /**
951
- * Row region in pixels to render before/after the viewport
952
- * @default 150
953
- */
954
- rowBufferPx: PropTypes.number,
955
- /**
956
- * Set the total number of rows, if it is different from the length of the value `rows` prop.
957
- * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
958
- * Only works with `paginationMode="server"`, ignored when `paginationMode="client"`.
959
- */
960
- rowCount: PropTypes.number,
961
- /**
962
- * If `single`, all the columns that are grouped are represented in the same grid column.
963
- * If `multiple`, each column that is grouped is represented in its own grid column.
964
- * @default 'single'
965
- */
966
- rowGroupingColumnMode: PropTypes.oneOf(['multiple', 'single']),
967
- /**
968
- * Set the row grouping model of the grid.
969
- */
970
- rowGroupingModel: PropTypes.arrayOf(PropTypes.string),
971
- /**
972
- * Sets the height in pixel of a row in the Data Grid.
973
- * @default 52
974
- */
975
- rowHeight: PropTypes.number,
976
- /**
977
- * Controls the modes of the rows.
978
- */
979
- rowModesModel: PropTypes.object,
980
- /**
981
- * If `true`, the reordering of rows is enabled.
982
- * @default false
983
- */
984
- rowReordering: PropTypes.bool,
985
- /**
986
- * Set of rows of type [[GridRowsProp]].
987
- * @default []
988
- */
989
- rows: PropTypes.arrayOf(PropTypes.object),
990
- /**
991
- * If `false`, the row selection mode is disabled.
992
- * @default true
993
- */
994
- rowSelection: PropTypes.bool,
995
- /**
996
- * Sets the row selection model of the Data Grid.
997
- */
998
- rowSelectionModel: PropTypes /* @typescript-to-proptypes-ignore */.shape({
999
- ids: PropTypes.instanceOf(Set).isRequired,
1000
- type: PropTypes.oneOf(['exclude', 'include']).isRequired
1001
- }),
1002
- /**
1003
- * When `rowSelectionPropagation.descendants` is set to `true`.
1004
- * - Selecting a parent selects all its filtered descendants automatically.
1005
- * - Deselecting a parent row deselects all its filtered descendants automatically.
1006
- *
1007
- * When `rowSelectionPropagation.parents` is set to `true`
1008
- * - Selecting all the filtered descendants of a parent selects the parent automatically.
1009
- * - Deselecting a descendant of a selected parent deselects the parent automatically.
1010
- *
1011
- * Works with tree data and row grouping on the client-side only.
1012
- * @default { parents: true, descendants: true }
1013
- */
1014
- rowSelectionPropagation: PropTypes.shape({
1015
- descendants: PropTypes.bool,
1016
- parents: PropTypes.bool
1017
- }),
1018
- /**
1019
- * Loading rows can be processed on the server or client-side.
1020
- * Set it to 'client' if you would like enable infnite loading.
1021
- * Set it to 'server' if you would like to enable lazy loading.
1022
- * @default "client"
1023
- * @deprecated Use the {@link https://next.mui.com/x/react-data-grid/server-side-data/lazy-loading/#viewport-loading Server-side data-Viewport loading} instead.
1024
- */
1025
- rowsLoadingMode: PropTypes.oneOf(['client', 'server']),
1026
- /**
1027
- * Sets the type of space between rows added by `getRowSpacing`.
1028
- * @default "margin"
1029
- */
1030
- rowSpacingType: PropTypes.oneOf(['border', 'margin']),
1031
- /**
1032
- * If `true`, the Data Grid will auto span the cells over the rows having the same value.
1033
- * @default false
1034
- */
1035
- rowSpanning: PropTypes.bool,
1036
- /**
1037
- * Override the height/width of the Data Grid inner scrollbar.
1038
- */
1039
- scrollbarSize: PropTypes.number,
1040
- /**
1041
- * Set the area in `px` at the bottom of the grid viewport where onRowsScrollEnd is called.
1042
- * If combined with `lazyLoading`, it defines the area where the next data request is triggered.
1043
- * @default 80
1044
- */
1045
- scrollEndThreshold: PropTypes.number,
1046
- /**
1047
- * If `true`, vertical borders will be displayed between cells.
1048
- * @default false
1049
- */
1050
- showCellVerticalBorder: PropTypes.bool,
1051
- /**
1052
- * If `true`, vertical borders will be displayed between column header items.
1053
- * @default false
1054
- */
1055
- showColumnVerticalBorder: PropTypes.bool,
1056
- /**
1057
- * If `true`, the toolbar is displayed.
1058
- * @default false
1059
- */
1060
- showToolbar: PropTypes.bool,
1061
- /**
1062
- * Overridable components props dynamically passed to the component at rendering.
1063
- */
1064
- slotProps: PropTypes.object,
1065
- /**
1066
- * Overridable components.
1067
- */
1068
- slots: PropTypes.object,
1069
- /**
1070
- * Sorting can be processed on the server or client-side.
1071
- * Set it to 'client' if you would like to handle sorting on the client-side.
1072
- * Set it to 'server' if you would like to handle sorting on the server-side.
1073
- * @default "client"
1074
- */
1075
- sortingMode: PropTypes.oneOf(['client', 'server']),
1076
- /**
1077
- * The order of the sorting sequence.
1078
- * @default ['asc', 'desc', null]
1079
- */
1080
- sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
1081
- /**
1082
- * Set the sort model of the Data Grid.
1083
- */
1084
- sortModel: PropTypes.arrayOf(PropTypes.shape({
1085
- field: PropTypes.string.isRequired,
1086
- sort: PropTypes.oneOf(['asc', 'desc'])
1087
- })),
1088
- /**
1089
- * The function is used to split the pasted text into rows and cells.
1090
- * @param {string} text The text pasted from the clipboard.
1091
- * @returns {string[][] | null} A 2D array of strings. The first dimension is the rows, the second dimension is the columns.
1092
- * @default (pastedText) => { const text = pastedText.replace(/\r?\n$/, ''); return text.split(/\r\n|\n|\r/).map((row) => row.split('\t')); }
1093
- */
1094
- splitClipboardPastedText: PropTypes.func,
1095
- style: PropTypes.object,
1096
- /**
1097
- * The system prop that allows defining system overrides as well as additional CSS styles.
1098
- */
1099
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
1100
- /**
1101
- * If positive, the Data Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
1102
- * It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
1103
- * @default 0
1104
- */
1105
- throttleRowsMs: PropTypes.number,
1106
- /**
1107
- * If `true`, the rows will be gathered in a tree structure according to the `getTreeDataPath` prop.
1108
- * @default false
1109
- */
1110
- treeData: PropTypes.bool,
1111
- /**
1112
- * If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
1113
- * By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
1114
- * For datasets with a large number of columns, this can cause performance issues.
1115
- * The downside of enabling this prop is that the row height will be estimated based the cells that are currently rendered, which can cause row height change when scrolling horizontally.
1116
- * @default false
1117
- */
1118
- virtualizeColumnsWithAutoRowHeight: PropTypes.bool
1119
- } : void 0;
1120
- /**
1121
- * Features:
1122
- * - [DataGridPremium](https://mui.com/x/react-data-grid/features/)
1123
- *
1124
- * API:
1125
- * - [DataGridPremium API](https://mui.com/x/api/data-grid/data-grid-premium/)
1126
- */
1127
- export const DataGridPremium = /*#__PURE__*/React.memo(DataGridPremiumRaw);