@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
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.useResize = void 0;
8
+ var React = _interopRequireWildcard(require("react"));
9
+ const useResize = options => {
10
+ const resizeHandleRef = React.useRef(null);
11
+ const optionsRef = React.useRef(options);
12
+ React.useEffect(() => {
13
+ optionsRef.current = options;
14
+ }, [options]);
15
+ React.useEffect(() => {
16
+ const handle = resizeHandleRef.current;
17
+ if (!handle) {
18
+ return undefined;
19
+ }
20
+ const {
21
+ onSizeChange,
22
+ getInitialSize,
23
+ direction = 'horizontal'
24
+ } = optionsRef.current;
25
+ let startPosition = null;
26
+ let startSize = null;
27
+ const handlePointerMove = event => {
28
+ event.preventDefault();
29
+ if (startPosition === null || startSize === null) {
30
+ return;
31
+ }
32
+ const delta = direction === 'horizontal' ? startPosition - event.clientX : startPosition - event.clientY;
33
+ const newSize = startSize + delta;
34
+ onSizeChange(newSize, handle);
35
+ };
36
+ const handlePointerUp = event => {
37
+ startPosition = null;
38
+ startSize = null;
39
+ handle.removeEventListener('pointermove', handlePointerMove);
40
+ handle.releasePointerCapture(event.pointerId);
41
+ };
42
+ const handlePointerDown = event => {
43
+ startPosition = direction === 'horizontal' ? event.clientX : event.clientY;
44
+ startSize = getInitialSize(handle);
45
+ handle.addEventListener('pointermove', handlePointerMove);
46
+ handle.setPointerCapture(event.pointerId);
47
+ };
48
+ handle.addEventListener('pointerdown', handlePointerDown);
49
+ handle.addEventListener('pointerup', handlePointerUp);
50
+ return () => {
51
+ handle.removeEventListener('pointerdown', handlePointerDown);
52
+ handle.removeEventListener('pointerup', handlePointerUp);
53
+ handle.removeEventListener('pointermove', handlePointerMove);
54
+ };
55
+ }, []);
56
+ return {
57
+ ref: resizeHandleRef
58
+ };
59
+ };
60
+ exports.useResize = useResize;
package/index.d.ts CHANGED
@@ -20,4 +20,7 @@ export type { DataGridPremiumProps, GridExperimentalPremiumFeatures } from './mo
20
20
  export { useGridApiContext, useGridApiRef, useGridRootProps } from "./typeOverloads/reexports.js";
21
21
  export type { GridApi, GridInitialState, GridState } from './typeOverloads/reexports';
22
22
  export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from "./components/reexports.js";
23
- export type { GridGetRowsParamsPremium as GridGetRowsParams, GridGetRowsResponsePremium as GridGetRowsResponse, GridDataSourcePremium as GridDataSource, GridDataSourceApiPremium as GridDataSourceApi, GridDataSourceApiBasePremium as GridDataSourceApiBase, GridDataSourcePremiumPrivateApi as GridDataSourcePrivateApi } from './hooks/features/dataSource/models';
23
+ export type { GridGetRowsParamsPremium as GridGetRowsParams, GridGetRowsResponsePremium as GridGetRowsResponse, GridDataSourcePremium as GridDataSource, GridDataSourceApiPremium as GridDataSourceApi, GridDataSourceApiBasePremium as GridDataSourceApiBase, GridDataSourcePremiumPrivateApi as GridDataSourcePrivateApi } from './hooks/features/dataSource/models';
24
+ export { useGridPivoting as unstable_useGridPivoting } from "./hooks/features/pivoting/useGridPivoting.js";
25
+ export type { GridPivotModel } from './hooks/features/pivoting/gridPivotingInterfaces';
26
+ export { IS_SPEECH_RECOGNITION_SUPPORTED } from "./utils/speechRecognition.js";
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v8.0.0-beta.3
2
+ * @mui/x-data-grid-premium v8.1.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -17,7 +17,9 @@ var _exportNames = {
17
17
  useGridRootProps: true,
18
18
  GridColumnMenu: true,
19
19
  GRID_COLUMN_MENU_SLOTS: true,
20
- GRID_COLUMN_MENU_SLOT_PROPS: true
20
+ GRID_COLUMN_MENU_SLOT_PROPS: true,
21
+ unstable_useGridPivoting: true,
22
+ IS_SPEECH_RECOGNITION_SUPPORTED: true
21
23
  };
22
24
  Object.defineProperty(exports, "GRID_COLUMN_MENU_SLOTS", {
23
25
  enumerable: true,
@@ -43,6 +45,18 @@ Object.defineProperty(exports, "GridColumnMenu", {
43
45
  return _reexports2.GridColumnMenu;
44
46
  }
45
47
  });
48
+ Object.defineProperty(exports, "IS_SPEECH_RECOGNITION_SUPPORTED", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _speechRecognition.IS_SPEECH_RECOGNITION_SUPPORTED;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "unstable_useGridPivoting", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _useGridPivoting.useGridPivoting;
58
+ }
59
+ });
46
60
  Object.defineProperty(exports, "useGridApiContext", {
47
61
  enumerable: true,
48
62
  get: function () {
@@ -244,4 +258,6 @@ Object.keys(_components3).forEach(function (key) {
244
258
  });
245
259
  var _xDataGridPro = require("@mui/x-data-grid-pro");
246
260
  var _reexports = require("./typeOverloads/reexports");
247
- var _reexports2 = require("./components/reexports");
261
+ var _reexports2 = require("./components/reexports");
262
+ var _useGridPivoting = require("./hooks/features/pivoting/useGridPivoting");
263
+ var _speechRecognition = require("./utils/speechRecognition");
@@ -1,15 +1,15 @@
1
- export declare const GridWorkspacesIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
2
- muiName: string;
3
- };
4
- export declare const GridGroupWorkIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
5
- muiName: string;
6
- };
7
- export declare const GridFunctionsIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
8
- muiName: string;
9
- };
10
- export declare const GridSendPromptIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
11
- muiName: string;
12
- };
13
- export declare const GridRecordPromptIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
14
- muiName: string;
15
- };
1
+ import * as React from 'react';
2
+ export declare const GridWorkspacesIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
3
+ export declare const GridGroupWorkIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
4
+ export declare const GridFunctionsIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
5
+ export declare const GridSendIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
6
+ export declare const GridMicIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
7
+ export declare const GridMicOffIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
8
+ export declare const GridMoveToTopIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
9
+ export declare const GridMoveToBottomIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
10
+ export declare const GridExpandLessIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
11
+ export declare const GridPivotIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
12
+ export declare const GridAssistantIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
13
+ export declare const GridPromptIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
14
+ export declare const GridRerunIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
15
+ export declare const GridHistoryIcon: (props: import("@mui/x-data-grid").GridBaseIconProps) => React.ReactNode;
package/material/icons.js CHANGED
@@ -4,24 +4,51 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.GridWorkspacesIcon = exports.GridSendPromptIcon = exports.GridRecordPromptIcon = exports.GridGroupWorkIcon = exports.GridFunctionsIcon = void 0;
7
+ exports.GridWorkspacesIcon = exports.GridSendIcon = exports.GridRerunIcon = exports.GridPromptIcon = exports.GridPivotIcon = exports.GridMoveToTopIcon = exports.GridMoveToBottomIcon = exports.GridMicOffIcon = exports.GridMicIcon = exports.GridHistoryIcon = exports.GridGroupWorkIcon = exports.GridFunctionsIcon = exports.GridExpandLessIcon = exports.GridAssistantIcon = void 0;
8
8
  var React = _interopRequireWildcard(require("react"));
9
- var _utils = require("@mui/material/utils");
9
+ var _internals = require("@mui/x-data-grid/internals");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
- const GridWorkspacesIcon = exports.GridWorkspacesIcon = (0, _utils.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
11
+ const GridWorkspacesIcon = exports.GridWorkspacesIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
12
12
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
13
13
  d: "M6,13c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4S8.2,13,6,13z M12,3C9.8,3,8,4.8,8,7s1.8,4,4,4s4-1.8,4-4S14.2,3,12,3z M18,13 c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4S20.2,13,18,13z"
14
14
  })
15
15
  }), 'Workspaces');
16
- const GridGroupWorkIcon = exports.GridGroupWorkIcon = (0, _utils.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
16
+ const GridGroupWorkIcon = exports.GridGroupWorkIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
17
17
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
18
18
  }), 'GroupWork');
19
- const GridFunctionsIcon = exports.GridFunctionsIcon = (0, _utils.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
19
+ const GridFunctionsIcon = exports.GridFunctionsIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
20
20
  d: "M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"
21
21
  }), 'Functions');
22
- const GridSendPromptIcon = exports.GridSendPromptIcon = (0, _utils.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
22
+ const GridSendIcon = exports.GridSendIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
23
23
  d: "M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"
24
- }), 'SendPrompt');
25
- const GridRecordPromptIcon = exports.GridRecordPromptIcon = (0, _utils.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
24
+ }), 'Send');
25
+ const GridMicIcon = exports.GridMicIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
26
26
  d: "M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"
27
- }), 'RecordPrompt');
27
+ }), 'Mic');
28
+ const GridMicOffIcon = exports.GridMicOffIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
+ d: "M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"
30
+ }), 'MicOff');
31
+ const GridMoveToTopIcon = exports.GridMoveToTopIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
32
+ d: "m7.41 18.205 4.59-4.59 4.59 4.59 1.41-1.41-6-6-6 6 1.41 1.41ZM6 7.795v-2h12v2H6Z"
33
+ }), 'MoveToTop');
34
+ const GridMoveToBottomIcon = exports.GridMoveToBottomIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
35
+ d: "M16.59 5.795 12 10.385l-4.59-4.59L6 7.205l6 6 6-6-1.41-1.41ZM18 16.205v2H6v-2h12Z"
36
+ }), 'MoveToBottom');
37
+ const GridExpandLessIcon = exports.GridExpandLessIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
38
+ d: "m12 8.295-6 6 1.41 1.41 4.59-4.58 4.59 4.58 1.41-1.41-6-6Z"
39
+ }), 'ExpandLess');
40
+ const GridPivotIcon = exports.GridPivotIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
41
+ d: "M10 8h11V5c0-1.1-.9-2-2-2h-9zM3 8h5V3H5c-1.1 0-2 .9-2 2zm2 13h3V10H3v9c0 1.1.9 2 2 2m8 1-4-4 4-4zm1-9 4-4 4 4zm.58 6H13v-2h1.58c1.33 0 2.42-1.08 2.42-2.42V13h2v1.58c0 2.44-1.98 4.42-4.42 4.42"
42
+ }), 'Pivot');
43
+ const GridAssistantIcon = exports.GridAssistantIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
44
+ d: "M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11z"
45
+ }), 'Assistant');
46
+ const GridPromptIcon = exports.GridPromptIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
47
+ d: "m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"
48
+ }), 'Prompt');
49
+ const GridRerunIcon = exports.GridRerunIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
50
+ d: "M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"
51
+ }), 'Rerun');
52
+ const GridHistoryIcon = exports.GridHistoryIcon = (0, _internals.createSvgIcon)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
53
+ d: "M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"
54
+ }), 'History');
@@ -1,8 +1,34 @@
1
1
  declare const materialSlots: {
2
- columnMenuUngroupIcon: React.JSXElementConstructor<any>;
3
- columnMenuGroupIcon: React.JSXElementConstructor<any>;
4
- columnMenuAggregationIcon: React.JSXElementConstructor<any>;
5
- toolbarPromptSendIcon: React.JSXElementConstructor<any>;
6
- toolbarPromptRecordIcon: React.JSXElementConstructor<any>;
2
+ columnMenuUngroupIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
3
+ columnMenuGroupIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
4
+ columnMenuAggregationIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
5
+ pivotIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
6
+ pivotSearchIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
7
+ pivotSearchClearIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
8
+ pivotMenuAddIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
9
+ pivotMenuMoveUpIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
10
+ pivotMenuMoveDownIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
11
+ pivotMenuMoveToTopIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
12
+ pivotMenuMoveToBottomIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
13
+ pivotMenuCheckIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
14
+ pivotMenuRemoveIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
15
+ sidebarCloseIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
16
+ collapsibleIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
17
+ aiAssistantIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
18
+ aiAssistantPanelCloseIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
19
+ aiAssistantPanelNewConversationIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
20
+ aiAssistantPanelHistoryIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
21
+ promptIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
22
+ promptSendIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
23
+ promptSpeechRecognitionIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
24
+ promptSpeechRecognitionOffIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
25
+ promptRerunIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
26
+ promptSortAscIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
27
+ promptSortDescIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
28
+ promptGroupIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
29
+ promptFilterIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
30
+ promptPivotIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
31
+ promptAggregationIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
32
+ promptChangesToggleIcon: React.JSXElementConstructor<import("@mui/x-data-grid/models/gridBaseSlots").IconProps>;
7
33
  };
8
34
  export default materialSlots;
package/material/index.js CHANGED
@@ -6,13 +6,41 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _xDataGrid = require("@mui/x-data-grid");
10
+ var _xDataGridPro = require("@mui/x-data-grid-pro");
9
11
  var _icons = require("./icons");
10
12
  const iconsSlots = {
13
+ collapsibleIcon: _xDataGrid.GridExpandMoreIcon,
11
14
  columnMenuUngroupIcon: _icons.GridWorkspacesIcon,
12
15
  columnMenuGroupIcon: _icons.GridGroupWorkIcon,
13
16
  columnMenuAggregationIcon: _icons.GridFunctionsIcon,
14
- toolbarPromptSendIcon: _icons.GridSendPromptIcon,
15
- toolbarPromptRecordIcon: _icons.GridRecordPromptIcon
17
+ pivotIcon: _icons.GridPivotIcon,
18
+ pivotSearchIcon: _xDataGrid.GridSearchIcon,
19
+ pivotSearchClearIcon: _xDataGrid.GridClearIcon,
20
+ pivotMenuAddIcon: _xDataGrid.GridAddIcon,
21
+ pivotMenuMoveUpIcon: _icons.GridExpandLessIcon,
22
+ pivotMenuMoveDownIcon: _xDataGrid.GridExpandMoreIcon,
23
+ pivotMenuMoveToTopIcon: _icons.GridMoveToTopIcon,
24
+ pivotMenuMoveToBottomIcon: _icons.GridMoveToBottomIcon,
25
+ pivotMenuCheckIcon: _xDataGrid.GridCheckIcon,
26
+ pivotMenuRemoveIcon: _xDataGrid.GridDeleteIcon,
27
+ sidebarCloseIcon: _xDataGrid.GridCloseIcon,
28
+ aiAssistantIcon: _icons.GridAssistantIcon,
29
+ aiAssistantPanelCloseIcon: _xDataGrid.GridCloseIcon,
30
+ aiAssistantPanelNewConversationIcon: _xDataGrid.GridAddIcon,
31
+ aiAssistantPanelHistoryIcon: _icons.GridHistoryIcon,
32
+ promptIcon: _icons.GridPromptIcon,
33
+ promptSendIcon: _icons.GridSendIcon,
34
+ promptSpeechRecognitionIcon: _icons.GridMicIcon,
35
+ promptSpeechRecognitionOffIcon: _icons.GridMicOffIcon,
36
+ promptRerunIcon: _icons.GridRerunIcon,
37
+ promptSortAscIcon: _xDataGridPro.GridArrowUpwardIcon,
38
+ promptSortDescIcon: _xDataGridPro.GridArrowDownwardIcon,
39
+ promptFilterIcon: _xDataGridPro.GridFilterAltIcon,
40
+ promptPivotIcon: _icons.GridPivotIcon,
41
+ promptAggregationIcon: _icons.GridFunctionsIcon,
42
+ promptGroupIcon: _icons.GridGroupWorkIcon,
43
+ promptChangesToggleIcon: _xDataGrid.GridExpandMoreIcon
16
44
  };
17
45
  const materialSlots = (0, _extends2.default)({}, iconsSlots);
18
46
  var _default = exports.default = materialSlots;
@@ -1,5 +1,5 @@
1
1
  import { RefObject } from '@mui/x-internals/types';
2
- import { GridCallbackDetails, GridValidRowModel, GridGroupNode, GridEventListener, GridGetRowsError, GridUpdateRowError } from '@mui/x-data-grid-pro';
2
+ import { GridCallbackDetails, GridValidRowModel, GridGroupNode, GridEventListener, GridGetRowsError, GridUpdateRowError, type GridColDef, GridLocaleTextApi } from '@mui/x-data-grid-pro';
3
3
  import { GridExperimentalProFeatures, DataGridProPropsWithDefaultValue, DataGridProPropsWithoutDefaultValue, DataGridPropsWithComplexDefaultValueAfterProcessing, DataGridPropsWithComplexDefaultValueBeforeProcessing, DataGridPremiumSharedPropsWithDefaultValue } from '@mui/x-data-grid-pro/internals';
4
4
  import type { GridRowGroupingModel } from '../hooks/features/rowGrouping';
5
5
  import type { GridAggregationModel, GridAggregationFunction, GridAggregationFunctionDataSource, GridAggregationPosition } from '../hooks/features/aggregation';
@@ -7,7 +7,9 @@ import { GridPremiumSlotsComponent } from "./gridPremiumSlotsComponent.js";
7
7
  import { GridInitialStatePremium } from "./gridStatePremium.js";
8
8
  import { GridApiPremium } from "./gridApiPremium.js";
9
9
  import { GridCellSelectionModel } from "../hooks/features/cellSelection/index.js";
10
+ import type { GridPivotingColDefOverrides, GridPivotModel } from '../hooks/features/pivoting/gridPivotingInterfaces';
10
11
  import { GridDataSourcePremium as GridDataSource, GridGetRowsParamsPremium as GridGetRowsParams } from "../hooks/features/dataSource/models.js";
12
+ import { Conversation, PromptResponse, PromptSuggestion } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
11
13
  export interface GridExperimentalPremiumFeatures extends GridExperimentalProFeatures {}
12
14
  export interface DataGridPremiumPropsWithComplexDefaultValueBeforeProcessing extends Pick<DataGridPropsWithComplexDefaultValueBeforeProcessing, 'localeText'> {
13
15
  /**
@@ -65,7 +67,7 @@ export interface DataGridPremiumPropsWithDefaultValue<R extends GridValidRowMode
65
67
  * Determines the position of an aggregated value.
66
68
  * @param {GridGroupNode} groupNode The current group.
67
69
  * @returns {GridAggregationPosition | null} Position of the aggregated value (if `null`, the group isn't aggregated).
68
- * @default (groupNode) => groupNode == null ? 'footer' : 'inline'
70
+ * @default (groupNode) => (groupNode.depth === -1 ? 'footer' : 'inline')
69
71
  */
70
72
  getAggregationPosition: (groupNode: GridGroupNode) => GridAggregationPosition | null;
71
73
  /**
@@ -80,6 +82,25 @@ export interface DataGridPremiumPropsWithDefaultValue<R extends GridValidRowMode
80
82
  * @default (pastedText) => { const text = pastedText.replace(/\r?\n$/, ''); return text.split(/\r\n|\n|\r/).map((row) => row.split('\t')); }
81
83
  */
82
84
  splitClipboardPastedText: (text: string) => string[][] | null;
85
+ /**
86
+ * If `true`, the pivoting feature is disabled.
87
+ * @default false
88
+ */
89
+ disablePivoting: boolean;
90
+ /**
91
+ * Allows to generate derived columns from actual columns that will be used for pivoting.
92
+ * Useful e.g. for date columns to generate year, quarter, month, etc.
93
+ * @param {GridColDef} column The column to generate derived columns for.
94
+ * @param {GridLocaleTextApi['getLocaleText']} getLocaleText The function to get the locale text.
95
+ * @returns {GridColDef[] | undefined} The derived columns.
96
+ * @default {defaultGetPivotDerivedColumns} Creates year and quarter columns for date columns.
97
+ */
98
+ getPivotDerivedColumns: ((column: GridColDef, getLocaleText: GridLocaleTextApi['getLocaleText']) => GridColDef[] | undefined) | null;
99
+ /**
100
+ * If `true`, the AI Assistant is enabled.
101
+ * @default false
102
+ */
103
+ aiAssistant: boolean;
83
104
  }
84
105
  export interface DataGridPremiumPropsWithoutDefaultValue<R extends GridValidRowModel = any> extends Omit<DataGridProPropsWithoutDefaultValue<R>, 'initialState' | 'apiRef' | 'dataSource' | 'onDataSourceError'> {
85
106
  /**
@@ -159,4 +180,77 @@ export interface DataGridPremiumPropsWithoutDefaultValue<R extends GridValidRowM
159
180
  * @param {GridGetRowsError | GridUpdateRowError} error The data source error object.
160
181
  */
161
182
  onDataSourceError?: (error: GridGetRowsError<GridGetRowsParams> | GridUpdateRowError) => void;
183
+ /**
184
+ * The pivot model of the grid.
185
+ * Will be used to generate the pivot data.
186
+ * In case of `pivotActive` being `false`, the pivot model is still used to populate the pivot panel.
187
+ */
188
+ pivotModel?: GridPivotModel;
189
+ /**
190
+ * Callback fired when the pivot model changes.
191
+ * @param {GridPivotModel} pivotModel The new pivot model.
192
+ */
193
+ onPivotModelChange?: (pivotModel: GridPivotModel) => void;
194
+ /**
195
+ * If `true`, the data grid will show data in pivot mode using the `pivotModel`.
196
+ * @default false
197
+ */
198
+ pivotActive?: boolean;
199
+ /**
200
+ * Callback fired when the pivot active state changes.
201
+ * @param {boolean} isPivotActive Whether the data grid is in pivot mode.
202
+ */
203
+ onPivotActiveChange?: (isPivotActive: boolean) => void;
204
+ /**
205
+ * If `true`, the pivot side panel is visible.
206
+ * @default false
207
+ */
208
+ pivotPanelOpen?: boolean;
209
+ /**
210
+ * Callback fired when the pivot side panel open state changes.
211
+ * @param {boolean} pivotPanelOpen Whether the pivot side panel is visible.
212
+ */
213
+ onPivotPanelOpenChange?: (pivotPanelOpen: boolean) => void;
214
+ /**
215
+ * The column definition overrides for the columns generated by the pivoting feature.
216
+ * @param {string} originalColumnField The field of the original column.
217
+ * @param {string[]} columnGroupPath The path of the column groups the column belongs to.
218
+ * @returns {Partial<GridPivotingColDefOverrides> | undefined | void} The column definition overrides.
219
+ * @default undefined
220
+ */
221
+ pivotingColDef?: Partial<GridPivotingColDefOverrides> | ((originalColumnField: GridColDef['field'], columnGroupPath: string[]) => Partial<GridPivotingColDefOverrides> | undefined);
222
+ /**
223
+ * The conversations with the AI Assistant.
224
+ */
225
+ aiAssistantConversations?: Conversation[];
226
+ /**
227
+ * Callback fired when the AI Assistant conversations change.
228
+ * @param {Conversation[]} conversations The new AI Assistant conversations.
229
+ */
230
+ onAiAssistantConversationsChange?: (conversations: Conversation[]) => void;
231
+ /**
232
+ * The suggestions of the AI Assistant.
233
+ */
234
+ aiAssistantSuggestions?: PromptSuggestion[];
235
+ /**
236
+ * The index of the active AI Assistant conversation.
237
+ */
238
+ aiAssistantActiveConversationIndex?: number;
239
+ /**
240
+ * Callback fired when the AI Assistant active conversation index changes.
241
+ * @param {number} aiAssistantActiveConversationIndex The new active conversation index.
242
+ */
243
+ onAiAssistantActiveConversationIndexChange?: (aiAssistantActiveConversationIndex: number) => void;
244
+ /**
245
+ * If `true`, the AI Assistant is allowed to pick up values from random cells from each column to build the prompt context.
246
+ */
247
+ allowAiAssistantDataSampling?: boolean;
248
+ /**
249
+ * The function to be used to process the prompt.
250
+ * @param {string} prompt The prompt to be processed.
251
+ * @param {string} promptContext The prompt context.
252
+ * @param {string} conversationId The id of the conversation the prompt is part of. If not passed, prompt response will return a new conversation id that can be used to continue the newly started conversation.
253
+ * @returns {Promise<PromptResponse>} The prompt response.
254
+ */
255
+ onPrompt?: (prompt: string, promptContext: string, conversationId?: string) => Promise<PromptResponse>;
162
256
  }
@@ -6,9 +6,11 @@ import { GridCellSelectionApi } from "../hooks/features/cellSelection/gridCellSe
6
6
  import type { DataGridPremiumProcessedProps } from './dataGridPremiumProps';
7
7
  import type { GridDataSourcePremiumPrivateApi, GridDataSourceApiPremium } from '../hooks/features/dataSource/models';
8
8
  import type { GridAggregationPrivateApi } from '../hooks/features/aggregation/gridAggregationInterfaces';
9
+ import type { GridPivotingApi, GridPivotingPrivateApi } from '../hooks/features/pivoting/gridPivotingInterfaces';
10
+ import { GridAiAssistantApi } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
9
11
  /**
10
12
  * The api of Data Grid Premium.
11
13
  * TODO: Do not redefine manually the pro features
12
14
  */
13
- export interface GridApiPremium extends GridApiCommon<GridStatePremium, GridInitialStatePremium>, GridRowProApi, GridColumnPinningApi, GridDetailPanelApi, GridRowGroupingApi, GridExcelExportApi, GridAggregationApi, GridRowPinningApi, GridDataSourceApiPremium, GridCellSelectionApi, GridRowMultiSelectionApi, GridColumnReorderApi {}
14
- export interface GridPrivateApiPremium extends GridApiPremium, GridPrivateOnlyApiCommon<GridApiPremium, GridPrivateApiPremium, DataGridPremiumProcessedProps>, GridDataSourcePremiumPrivateApi, GridAggregationPrivateApi, GridDetailPanelPrivateApi {}
15
+ export interface GridApiPremium extends GridApiCommon<GridStatePremium, GridInitialStatePremium>, GridRowProApi, GridColumnPinningApi, GridDetailPanelApi, GridRowGroupingApi, GridExcelExportApi, GridAggregationApi, GridRowPinningApi, GridDataSourceApiPremium, GridCellSelectionApi, GridPivotingApi, GridAiAssistantApi, GridRowMultiSelectionApi, GridColumnReorderApi {}
16
+ export interface GridPrivateApiPremium extends GridApiPremium, GridPrivateOnlyApiCommon<GridApiPremium, GridPrivateApiPremium, DataGridPremiumProcessedProps>, GridDataSourcePremiumPrivateApi, GridAggregationPrivateApi, GridDetailPanelPrivateApi, GridPivotingPrivateApi {}
@@ -1,28 +1,161 @@
1
1
  import * as React from 'react';
2
+ import { BaseSlots } from '@mui/x-data-grid/internals';
3
+ type IconProps = BaseSlots.IconProps;
2
4
  export interface GridPremiumIconSlotsComponent {
3
5
  /**
4
6
  * Icon displayed in column menu for ungrouping
5
7
  * @default GridWorkspacesIcon
6
8
  */
7
- columnMenuUngroupIcon: React.JSXElementConstructor<any>;
9
+ columnMenuUngroupIcon: React.JSXElementConstructor<IconProps>;
8
10
  /**
9
11
  * Icon displayed in column menu for grouping
10
12
  * @default GridGroupWorkIcon
11
13
  */
12
- columnMenuGroupIcon: React.JSXElementConstructor<any>;
14
+ columnMenuGroupIcon: React.JSXElementConstructor<IconProps>;
13
15
  /**
14
16
  * Icon displayed in column menu for aggregation
15
17
  * @default GridFunctionsIcon
16
18
  */
17
- columnMenuAggregationIcon: React.JSXElementConstructor<any>;
19
+ columnMenuAggregationIcon: React.JSXElementConstructor<IconProps>;
20
+ /**
21
+ * Icon used for the pivot icon
22
+ * @default GridPivotIcon
23
+ */
24
+ pivotIcon: React.JSXElementConstructor<IconProps>;
25
+ /**
26
+ * Icon used for the search icon in the sidebar search field
27
+ * @default GridSearchIcon
28
+ */
29
+ pivotSearchIcon: React.JSXElementConstructor<IconProps>;
30
+ /**
31
+ * Icon used for the clear button in the sidebar search field
32
+ * @default GridClearIcon
33
+ */
34
+ pivotSearchClearIcon: React.JSXElementConstructor<IconProps>;
35
+ /**
36
+ * Icon displayed in the pivot menu for adding a field to a pivot section.
37
+ * @default GridAddIcon
38
+ */
39
+ pivotMenuAddIcon: React.JSXElementConstructor<IconProps>;
40
+ /**
41
+ * Icon displayed in the pivot menu for moving a field up.
42
+ * @default GridExpandLessIcon
43
+ */
44
+ pivotMenuMoveUpIcon: React.JSXElementConstructor<IconProps>;
45
+ /**
46
+ * Icon displayed in the pivot menu for moving a field down.
47
+ * @default GridExpandMoreIcon
48
+ */
49
+ pivotMenuMoveDownIcon: React.JSXElementConstructor<IconProps>;
50
+ /**
51
+ * Icon displayed in the pivot menu for moving a field to the top.
52
+ * @default GridMoveToTopIcon
53
+ */
54
+ pivotMenuMoveToTopIcon: React.JSXElementConstructor<IconProps>;
55
+ /**
56
+ * Icon displayed in the pivot menu for moving a field to the bottom.
57
+ * @default GridMoveToBottomIcon
58
+ */
59
+ pivotMenuMoveToBottomIcon: React.JSXElementConstructor<IconProps>;
60
+ /**
61
+ * Icon displayed in the pivot menu to signify a pivot section is selected.
62
+ * @default GridCheckIcon
63
+ */
64
+ pivotMenuCheckIcon: React.JSXElementConstructor<IconProps>;
65
+ /**
66
+ * Icon displayed in the pivot menu for removing a field from the pivot.
67
+ * @default GridDeleteIcon
68
+ */
69
+ pivotMenuRemoveIcon: React.JSXElementConstructor<IconProps>;
70
+ /**
71
+ * Icon displayed in the sidebar close button.
72
+ * @default GridCloseIcon
73
+ */
74
+ sidebarCloseIcon: React.JSXElementConstructor<IconProps>;
75
+ /**
76
+ * Icon displayed in the collapsible to indicate if it is open or closed.
77
+ * @default GridExpandMoreIcon
78
+ */
79
+ collapsibleIcon: React.JSXElementConstructor<IconProps>;
80
+ /**
81
+ * Icon used for the AI Assistant button
82
+ * @default GridAssistantIcon
83
+ */
84
+ aiAssistantIcon: React.JSXElementConstructor<IconProps>;
85
+ /**
86
+ * Icon used for the AI Assistant panel close button
87
+ * @default GridCloseIcon
88
+ */
89
+ aiAssistantPanelCloseIcon: React.JSXElementConstructor<IconProps>;
90
+ /**
91
+ * Icon used for the AI Assistant panel new conversation button
92
+ * @default GridAddIcon
93
+ */
94
+ aiAssistantPanelNewConversationIcon: React.JSXElementConstructor<IconProps>;
95
+ /**
96
+ * Icon used for the AI Assistant panel history icon
97
+ * @default GridHistoryIcon
98
+ */
99
+ aiAssistantPanelHistoryIcon: React.JSXElementConstructor<IconProps>;
100
+ /**
101
+ * Icon used for the prompt
102
+ * @default GridPromptIcon
103
+ */
104
+ promptIcon: React.JSXElementConstructor<IconProps>;
18
105
  /**
19
106
  * Icon used for the button that sends a prompt
20
- * @default GridFunctionsIcon
107
+ * @default GridSendIcon
108
+ */
109
+ promptSendIcon: React.JSXElementConstructor<IconProps>;
110
+ /**
111
+ * Icon used for the button that starts and stops recording the prompt
112
+ * @default GridMicIcon
113
+ */
114
+ promptSpeechRecognitionIcon: React.JSXElementConstructor<IconProps>;
115
+ /**
116
+ * Icon used for when speech recognition is not supported
117
+ * @default GridMicOffIcon
118
+ */
119
+ promptSpeechRecognitionOffIcon: React.JSXElementConstructor<IconProps>;
120
+ /**
121
+ * Icon used for the button that reruns a prompt
122
+ * @default GridRerunIcon
21
123
  */
22
- toolbarPromptSendIcon: React.JSXElementConstructor<any>;
124
+ promptRerunIcon: React.JSXElementConstructor<IconProps>;
23
125
  /**
24
- * Icon used for the button that starts/stops recording the prompt
126
+ * Icon used to display sort ascending changes
127
+ * @default GridArrowUpwardIcon
128
+ */
129
+ promptSortAscIcon: React.JSXElementConstructor<IconProps>;
130
+ /**
131
+ * Icon used to display sort descending changes
132
+ * @default GridArrowDownwardIcon
133
+ */
134
+ promptSortDescIcon: React.JSXElementConstructor<IconProps>;
135
+ /**
136
+ * Icon used to display group changes
137
+ * @default GridGroupWorkIcon
138
+ */
139
+ promptGroupIcon: React.JSXElementConstructor<IconProps>;
140
+ /**
141
+ * Icon used to display filter changes
142
+ * @default GridFilterAltIcon
143
+ */
144
+ promptFilterIcon: React.JSXElementConstructor<IconProps>;
145
+ /**
146
+ * Icon used to display pivot changes
147
+ * @default GridPivotIcon
148
+ */
149
+ promptPivotIcon: React.JSXElementConstructor<IconProps>;
150
+ /**
151
+ * Icon used to display aggregation changes
25
152
  * @default GridFunctionsIcon
26
153
  */
27
- toolbarPromptRecordIcon: React.JSXElementConstructor<any>;
28
- }
154
+ promptAggregationIcon: React.JSXElementConstructor<IconProps>;
155
+ /**
156
+ * Icon used on the toggle button of the changes list
157
+ * @default GridExpandMoreIcon
158
+ */
159
+ promptChangesToggleIcon: React.JSXElementConstructor<IconProps>;
160
+ }
161
+ export {};
@@ -4,4 +4,16 @@ import { GridPremiumIconSlotsComponent } from "./gridPremiumIconSlotsComponent.j
4
4
  * Grid components React prop interface containing all the overridable components
5
5
  * for Premium package
6
6
  */
7
- export interface GridPremiumSlotsComponent extends GridProSlotsComponent, GridPremiumIconSlotsComponent {}
7
+ export interface GridPremiumSlotsComponent extends GridProSlotsComponent, GridPremiumIconSlotsComponent {
8
+ /**
9
+ * Component rendered when AI Assistant panel is open. Only needed when `aiAssistant` prop is passed to the grid.
10
+ * Pass `GridAiAssistantPanel` to render the default AI Assistant panel.
11
+ * @default null
12
+ */
13
+ aiAssistantPanel: React.JSXElementConstructor<any> | null;
14
+ /**
15
+ * Component rendered when pivot mode is enabled but no rows are defined.
16
+ * @default GridEmptyPivotOverlay
17
+ */
18
+ emptyPivotOverlay: React.JSXElementConstructor<any>;
19
+ }