@mui/x-data-grid-premium 8.0.0-beta.2 → 8.0.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.
- package/CHANGELOG.md +423 -96
- package/DataGridPremium/DataGridPremium.js +188 -26
- package/DataGridPremium/useDataGridPremiumComponent.d.ts +2 -2
- package/DataGridPremium/useDataGridPremiumComponent.js +22 -3
- package/DataGridPremium/useDataGridPremiumProps.js +5 -1
- package/components/GridColumnMenuPivotItem.d.ts +3 -0
- package/components/GridColumnMenuPivotItem.js +33 -0
- package/components/GridEmptyPivotOverlay.d.ts +6 -0
- package/components/GridEmptyPivotOverlay.js +29 -0
- package/components/GridGroupingCriteriaCell.js +8 -3
- package/components/GridPremiumColumnMenu.d.ts +5 -0
- package/components/GridPremiumColumnMenu.js +6 -1
- package/components/GridPremiumToolbar.d.ts +1 -1
- package/components/GridPremiumToolbar.js +29 -1
- package/components/aiAssistantPanel/AiAssistantPanelTrigger.d.ts +33 -0
- package/components/aiAssistantPanel/AiAssistantPanelTrigger.js +107 -0
- package/components/aiAssistantPanel/GridAiAssistantPanel.d.ts +3 -0
- package/components/aiAssistantPanel/GridAiAssistantPanel.js +195 -0
- package/components/aiAssistantPanel/GridAiAssistantPanelConversation.d.ts +7 -0
- package/components/aiAssistantPanel/GridAiAssistantPanelConversation.js +71 -0
- package/components/aiAssistantPanel/GridAiAssistantPanelConversationsMenu.d.ts +3 -0
- package/components/aiAssistantPanel/GridAiAssistantPanelConversationsMenu.js +92 -0
- package/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.d.ts +7 -0
- package/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.js +86 -0
- package/components/aiAssistantPanel/index.d.ts +2 -0
- package/components/aiAssistantPanel/index.js +27 -0
- package/components/collapsible/Collapsible.d.ts +4 -0
- package/components/collapsible/Collapsible.js +70 -0
- package/components/collapsible/CollapsibleContext.d.ts +8 -0
- package/components/collapsible/CollapsibleContext.js +17 -0
- package/components/collapsible/CollapsiblePanel.d.ts +4 -0
- package/components/collapsible/CollapsiblePanel.js +64 -0
- package/components/collapsible/CollapsibleTrigger.d.ts +4 -0
- package/components/collapsible/CollapsibleTrigger.js +106 -0
- package/components/collapsible/index.d.ts +4 -0
- package/components/collapsible/index.js +49 -0
- package/components/export/ExportExcel.js +4 -129
- package/components/index.d.ts +5 -2
- package/components/index.js +40 -4
- package/components/pivotPanel/GridPivotPanel.d.ts +3 -0
- package/components/pivotPanel/GridPivotPanel.js +22 -0
- package/components/pivotPanel/GridPivotPanelBody.d.ts +11 -0
- package/components/pivotPanel/GridPivotPanelBody.js +368 -0
- package/components/pivotPanel/GridPivotPanelField.d.ts +22 -0
- package/components/pivotPanel/GridPivotPanelField.js +338 -0
- package/components/pivotPanel/GridPivotPanelFieldMenu.d.ts +8 -0
- package/components/pivotPanel/GridPivotPanelFieldMenu.js +177 -0
- package/components/pivotPanel/GridPivotPanelHeader.d.ts +7 -0
- package/components/pivotPanel/GridPivotPanelHeader.js +101 -0
- package/components/pivotPanel/GridPivotPanelSearch.d.ts +7 -0
- package/components/pivotPanel/GridPivotPanelSearch.js +77 -0
- package/components/pivotPanel/PivotPanelTrigger.d.ts +37 -0
- package/components/pivotPanel/PivotPanelTrigger.js +93 -0
- package/components/pivotPanel/index.d.ts +2 -0
- package/components/pivotPanel/index.js +27 -0
- package/components/prompt/GridPrompt.d.ts +7 -0
- package/components/prompt/GridPrompt.js +364 -0
- package/components/prompt/index.d.ts +1 -0
- package/components/prompt/index.js +12 -0
- package/components/promptField/GridPromptField.d.ts +4 -0
- package/components/promptField/GridPromptField.js +86 -0
- package/components/promptField/PromptField.d.ts +66 -0
- package/components/promptField/PromptField.js +95 -0
- package/components/promptField/PromptFieldContext.d.ts +16 -0
- package/components/promptField/PromptFieldContext.js +17 -0
- package/components/promptField/PromptFieldControl.d.ts +27 -0
- package/components/promptField/PromptFieldControl.js +102 -0
- package/components/promptField/PromptFieldRecord.d.ts +27 -0
- package/components/promptField/PromptFieldRecord.js +158 -0
- package/components/promptField/PromptFieldSend.d.ts +27 -0
- package/components/promptField/PromptFieldSend.js +83 -0
- package/components/promptField/index.d.ts +4 -0
- package/components/promptField/index.js +49 -0
- package/components/resizablePanel/ResizablePanel.d.ts +10 -0
- package/components/resizablePanel/ResizablePanel.js +59 -0
- package/components/resizablePanel/ResizablePanelContext.d.ts +7 -0
- package/components/resizablePanel/ResizablePanelContext.js +17 -0
- package/components/resizablePanel/ResizablePanelHandle.d.ts +4 -0
- package/components/resizablePanel/ResizablePanelHandle.js +115 -0
- package/components/resizablePanel/index.d.ts +3 -0
- package/components/resizablePanel/index.js +38 -0
- package/components/sidebar/Sidebar.d.ts +4 -0
- package/components/sidebar/Sidebar.js +54 -0
- package/components/sidebar/SidebarHeader.d.ts +4 -0
- package/components/sidebar/SidebarHeader.js +51 -0
- package/components/sidebar/index.d.ts +2 -0
- package/components/sidebar/index.js +27 -0
- package/constants/dataGridPremiumDefaultSlotsComponents.js +3 -0
- package/esm/DataGridPremium/DataGridPremium.js +190 -28
- package/esm/DataGridPremium/useDataGridPremiumComponent.d.ts +2 -2
- package/esm/DataGridPremium/useDataGridPremiumComponent.js +20 -3
- package/esm/DataGridPremium/useDataGridPremiumProps.js +5 -1
- package/esm/components/GridColumnMenuPivotItem.d.ts +3 -0
- package/esm/components/GridColumnMenuPivotItem.js +26 -0
- package/esm/components/GridEmptyPivotOverlay.d.ts +6 -0
- package/esm/components/GridEmptyPivotOverlay.js +22 -0
- package/esm/components/GridGroupingCriteriaCell.js +9 -4
- package/esm/components/GridPremiumColumnMenu.d.ts +5 -0
- package/esm/components/GridPremiumColumnMenu.js +6 -1
- package/esm/components/GridPremiumToolbar.d.ts +1 -1
- package/esm/components/GridPremiumToolbar.js +30 -2
- package/esm/components/aiAssistantPanel/AiAssistantPanelTrigger.d.ts +33 -0
- package/esm/components/aiAssistantPanel/AiAssistantPanelTrigger.js +100 -0
- package/esm/components/aiAssistantPanel/GridAiAssistantPanel.d.ts +3 -0
- package/esm/components/aiAssistantPanel/GridAiAssistantPanel.js +188 -0
- package/esm/components/aiAssistantPanel/GridAiAssistantPanelConversation.d.ts +7 -0
- package/esm/components/aiAssistantPanel/GridAiAssistantPanelConversation.js +64 -0
- package/esm/components/aiAssistantPanel/GridAiAssistantPanelConversationsMenu.d.ts +3 -0
- package/esm/components/aiAssistantPanel/GridAiAssistantPanelConversationsMenu.js +85 -0
- package/esm/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.d.ts +7 -0
- package/esm/components/aiAssistantPanel/GridAiAssistantPanelSuggestions.js +80 -0
- package/esm/components/aiAssistantPanel/index.d.ts +2 -0
- package/esm/components/aiAssistantPanel/index.js +2 -0
- package/esm/components/collapsible/Collapsible.d.ts +4 -0
- package/esm/components/collapsible/Collapsible.js +63 -0
- package/esm/components/collapsible/CollapsibleContext.d.ts +8 -0
- package/esm/components/collapsible/CollapsibleContext.js +9 -0
- package/esm/components/collapsible/CollapsiblePanel.d.ts +4 -0
- package/esm/components/collapsible/CollapsiblePanel.js +57 -0
- package/esm/components/collapsible/CollapsibleTrigger.d.ts +4 -0
- package/esm/components/collapsible/CollapsibleTrigger.js +99 -0
- package/esm/components/collapsible/index.d.ts +4 -0
- package/esm/components/collapsible/index.js +4 -0
- package/esm/components/export/ExportExcel.js +4 -129
- package/esm/components/index.d.ts +5 -2
- package/esm/components/index.js +5 -2
- package/esm/components/pivotPanel/GridPivotPanel.d.ts +3 -0
- package/esm/components/pivotPanel/GridPivotPanel.js +16 -0
- package/esm/components/pivotPanel/GridPivotPanelBody.d.ts +11 -0
- package/esm/components/pivotPanel/GridPivotPanelBody.js +361 -0
- package/esm/components/pivotPanel/GridPivotPanelField.d.ts +22 -0
- package/esm/components/pivotPanel/GridPivotPanelField.js +331 -0
- package/esm/components/pivotPanel/GridPivotPanelFieldMenu.d.ts +8 -0
- package/esm/components/pivotPanel/GridPivotPanelFieldMenu.js +170 -0
- package/esm/components/pivotPanel/GridPivotPanelHeader.d.ts +7 -0
- package/esm/components/pivotPanel/GridPivotPanelHeader.js +94 -0
- package/esm/components/pivotPanel/GridPivotPanelSearch.d.ts +7 -0
- package/esm/components/pivotPanel/GridPivotPanelSearch.js +70 -0
- package/esm/components/pivotPanel/PivotPanelTrigger.d.ts +37 -0
- package/esm/components/pivotPanel/PivotPanelTrigger.js +86 -0
- package/esm/components/pivotPanel/index.d.ts +2 -0
- package/esm/components/pivotPanel/index.js +2 -0
- package/esm/components/prompt/GridPrompt.d.ts +7 -0
- package/esm/components/prompt/GridPrompt.js +357 -0
- package/esm/components/prompt/index.d.ts +1 -0
- package/esm/components/prompt/index.js +1 -0
- package/esm/components/promptField/GridPromptField.d.ts +4 -0
- package/esm/components/promptField/GridPromptField.js +79 -0
- package/esm/components/promptField/PromptField.d.ts +66 -0
- package/esm/components/promptField/PromptField.js +88 -0
- package/esm/components/promptField/PromptFieldContext.d.ts +16 -0
- package/esm/components/promptField/PromptFieldContext.js +9 -0
- package/esm/components/promptField/PromptFieldControl.d.ts +27 -0
- package/esm/components/promptField/PromptFieldControl.js +95 -0
- package/esm/components/promptField/PromptFieldRecord.d.ts +27 -0
- package/esm/components/promptField/PromptFieldRecord.js +151 -0
- package/esm/components/promptField/PromptFieldSend.d.ts +27 -0
- package/esm/components/promptField/PromptFieldSend.js +76 -0
- package/esm/components/promptField/index.d.ts +4 -0
- package/esm/components/promptField/index.js +4 -0
- package/esm/components/resizablePanel/ResizablePanel.d.ts +10 -0
- package/esm/components/resizablePanel/ResizablePanel.js +52 -0
- package/esm/components/resizablePanel/ResizablePanelContext.d.ts +7 -0
- package/esm/components/resizablePanel/ResizablePanelContext.js +9 -0
- package/esm/components/resizablePanel/ResizablePanelHandle.d.ts +4 -0
- package/esm/components/resizablePanel/ResizablePanelHandle.js +108 -0
- package/esm/components/resizablePanel/index.d.ts +3 -0
- package/esm/components/resizablePanel/index.js +3 -0
- package/esm/components/sidebar/Sidebar.d.ts +4 -0
- package/esm/components/sidebar/Sidebar.js +47 -0
- package/esm/components/sidebar/SidebarHeader.d.ts +4 -0
- package/esm/components/sidebar/SidebarHeader.js +44 -0
- package/esm/components/sidebar/index.d.ts +2 -0
- package/esm/components/sidebar/index.js +2 -0
- package/esm/constants/dataGridPremiumDefaultSlotsComponents.js +3 -0
- package/esm/hooks/features/aggregation/gridAggregationFunctions.js +13 -0
- package/esm/hooks/features/aggregation/gridAggregationSelectors.d.ts +10 -1
- package/esm/hooks/features/aggregation/gridAggregationSelectors.js +28 -1
- package/esm/hooks/features/aggregation/gridAggregationUtils.d.ts +1 -1
- package/esm/hooks/features/aggregation/index.d.ts +1 -1
- package/esm/hooks/features/aggregation/index.js +1 -1
- package/esm/hooks/features/aggregation/useGridAggregation.js +7 -11
- package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.js +2 -8
- package/esm/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +5 -25
- package/esm/hooks/features/aggregation/wrapColumnWithAggregation.js +23 -10
- package/esm/hooks/features/aiAssistant/api.d.ts +12 -0
- package/esm/hooks/features/aiAssistant/api.js +31 -0
- package/esm/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +82 -0
- package/esm/hooks/features/aiAssistant/gridAiAssistantSelectors.d.ts +5 -0
- package/esm/hooks/features/aiAssistant/gridAiAssistantSelectors.js +5 -0
- package/esm/hooks/features/aiAssistant/index.d.ts +2 -0
- package/esm/hooks/features/aiAssistant/useGridAiAssistant.d.ts +6 -0
- package/esm/hooks/features/aiAssistant/useGridAiAssistant.js +293 -0
- package/esm/hooks/features/cellSelection/useGridCellSelection.js +6 -6
- package/esm/hooks/features/clipboard/useGridClipboardImport.js +4 -4
- package/esm/hooks/features/dataSource/useGridDataSourcePremium.js +4 -1
- package/esm/hooks/features/export/useGridExcelExport.js +2 -2
- package/esm/hooks/features/index.d.ts +1 -1
- package/esm/hooks/features/index.js +1 -1
- package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +69 -0
- package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -0
- package/esm/hooks/features/pivoting/gridPivotingSelectors.js +5 -0
- package/esm/hooks/features/pivoting/useGridPivoting.d.ts +7 -0
- package/esm/hooks/features/pivoting/useGridPivoting.js +339 -0
- package/esm/hooks/features/pivoting/utils.d.ts +21 -0
- package/esm/hooks/features/pivoting/utils.js +259 -0
- package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +1 -4
- package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +4 -5
- package/esm/hooks/utils/useResize.d.ts +9 -0
- package/esm/hooks/utils/useResize.js +52 -0
- package/esm/index.d.ts +4 -1
- package/esm/index.js +4 -2
- package/esm/material/icons.d.ts +15 -15
- package/esm/material/icons.js +32 -5
- package/esm/material/index.d.ts +31 -5
- package/esm/material/index.js +31 -3
- package/esm/models/dataGridPremiumProps.d.ts +96 -2
- package/esm/models/gridApiPremium.d.ts +4 -2
- package/esm/models/gridPremiumIconSlotsComponent.d.ts +141 -8
- package/esm/models/gridPremiumSlotsComponent.d.ts +13 -1
- package/esm/models/gridStatePremium.d.ts +6 -0
- package/esm/package.json +1 -1
- package/esm/setupExcelExportWebWorker/index.d.ts +1 -0
- package/esm/setupExcelExportWebWorker/index.js +1 -0
- package/esm/typeOverloads/modules.d.ts +32 -1
- package/esm/utils/speechRecognition.d.ts +2 -0
- package/esm/utils/speechRecognition.js +2 -0
- package/hooks/features/aggregation/gridAggregationFunctions.js +13 -0
- package/hooks/features/aggregation/gridAggregationSelectors.d.ts +10 -1
- package/hooks/features/aggregation/gridAggregationSelectors.js +29 -2
- package/hooks/features/aggregation/gridAggregationUtils.d.ts +1 -1
- package/hooks/features/aggregation/index.d.ts +1 -1
- package/hooks/features/aggregation/index.js +21 -11
- package/hooks/features/aggregation/useGridAggregation.js +6 -10
- package/hooks/features/aggregation/useGridAggregationPreProcessors.js +2 -8
- package/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +5 -25
- package/hooks/features/aggregation/wrapColumnWithAggregation.js +24 -11
- package/hooks/features/aiAssistant/api.d.ts +12 -0
- package/hooks/features/aiAssistant/api.js +37 -0
- package/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +82 -0
- package/hooks/features/aiAssistant/gridAiAssistantSelectors.d.ts +5 -0
- package/hooks/features/aiAssistant/gridAiAssistantSelectors.js +11 -0
- package/hooks/features/aiAssistant/index.d.ts +2 -0
- package/hooks/features/aiAssistant/useGridAiAssistant.d.ts +6 -0
- package/hooks/features/aiAssistant/useGridAiAssistant.js +303 -0
- package/hooks/features/cellSelection/useGridCellSelection.js +5 -5
- package/hooks/features/clipboard/useGridClipboardImport.js +3 -3
- package/hooks/features/dataSource/useGridDataSourcePremium.js +4 -1
- package/hooks/features/export/useGridExcelExport.js +1 -1
- package/hooks/features/index.d.ts +1 -1
- package/hooks/features/index.js +4 -4
- package/hooks/features/pivoting/gridPivotingInterfaces.d.ts +69 -0
- package/hooks/features/pivoting/gridPivotingInterfaces.js +5 -0
- package/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -0
- package/hooks/features/pivoting/gridPivotingSelectors.js +30 -0
- package/hooks/features/pivoting/useGridPivoting.d.ts +7 -0
- package/hooks/features/pivoting/useGridPivoting.js +349 -0
- package/hooks/features/pivoting/utils.d.ts +21 -0
- package/hooks/features/pivoting/utils.js +270 -0
- package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +1 -4
- package/hooks/features/rowGrouping/useGridRowGrouping.js +3 -4
- package/hooks/utils/useResize.d.ts +9 -0
- package/hooks/utils/useResize.js +60 -0
- package/index.d.ts +4 -1
- package/index.js +19 -3
- package/material/icons.d.ts +15 -15
- package/material/icons.js +36 -9
- package/material/index.d.ts +31 -5
- package/material/index.js +30 -2
- package/models/dataGridPremiumProps.d.ts +96 -2
- package/models/gridApiPremium.d.ts +4 -2
- package/models/gridPremiumIconSlotsComponent.d.ts +141 -8
- package/models/gridPremiumSlotsComponent.d.ts +13 -1
- package/models/gridStatePremium.d.ts +6 -0
- package/package.json +12 -18
- package/setupExcelExportWebWorker/index.d.ts +1 -0
- package/{setupExcelExportWebWorker.js → setupExcelExportWebWorker/index.js} +1 -1
- package/typeOverloads/modules.d.ts +32 -1
- package/utils/speechRecognition.d.ts +2 -0
- package/utils/speechRecognition.js +8 -0
- package/components/promptControl/GridToolbarPromptControl.d.ts +0 -26
- package/components/promptControl/GridToolbarPromptControl.js +0 -222
- package/components/promptControl/RecordButton.d.ts +0 -16
- package/components/promptControl/RecordButton.js +0 -119
- package/components/promptControl/index.d.ts +0 -1
- package/components/promptControl/index.js +0 -12
- package/esm/components/promptControl/GridToolbarPromptControl.d.ts +0 -26
- package/esm/components/promptControl/GridToolbarPromptControl.js +0 -215
- package/esm/components/promptControl/RecordButton.d.ts +0 -16
- package/esm/components/promptControl/RecordButton.js +0 -111
- package/esm/components/promptControl/index.d.ts +0 -1
- package/esm/components/promptControl/index.js +0 -1
- package/esm/hooks/features/promptControl/api.d.ts +0 -2
- package/esm/hooks/features/promptControl/api.js +0 -22
- package/esm/hooks/features/promptControl/index.d.ts +0 -2
- package/esm/hooks/features/promptControl/types.d.ts +0 -25
- package/esm/setupExcelExportWebWorker.d.ts +0 -1
- package/esm/setupExcelExportWebWorker.js +0 -1
- package/esm/utils/releaseInfo.d.ts +0 -1
- package/esm/utils/releaseInfo.js +0 -13
- package/hooks/features/promptControl/api.d.ts +0 -2
- package/hooks/features/promptControl/api.js +0 -28
- package/hooks/features/promptControl/index.d.ts +0 -2
- package/hooks/features/promptControl/types.d.ts +0 -25
- package/modern/DataGridPremium/DataGrid.d.ts +0 -8
- package/modern/DataGridPremium/DataGrid.js +0 -19
- package/modern/DataGridPremium/DataGridPremium.d.ts +0 -16
- package/modern/DataGridPremium/DataGridPremium.js +0 -1121
- package/modern/DataGridPremium/index.d.ts +0 -3
- package/modern/DataGridPremium/index.js +0 -3
- package/modern/DataGridPremium/useDataGridPremiumComponent.d.ts +0 -4
- package/modern/DataGridPremium/useDataGridPremiumComponent.js +0 -108
- package/modern/DataGridPremium/useDataGridPremiumProps.d.ts +0 -6
- package/modern/DataGridPremium/useDataGridPremiumProps.js +0 -54
- package/modern/components/GridAggregationHeader.d.ts +0 -7
- package/modern/components/GridAggregationHeader.js +0 -89
- package/modern/components/GridAggregationRowOverlay.d.ts +0 -3
- package/modern/components/GridAggregationRowOverlay.js +0 -37
- package/modern/components/GridBottomContainer.d.ts +0 -3
- package/modern/components/GridBottomContainer.js +0 -43
- package/modern/components/GridColumnMenuAggregationItem.d.ts +0 -7
- package/modern/components/GridColumnMenuAggregationItem.js +0 -124
- package/modern/components/GridColumnMenuRowGroupItem.d.ts +0 -3
- package/modern/components/GridColumnMenuRowGroupItem.js +0 -42
- package/modern/components/GridColumnMenuRowUngroupItem.d.ts +0 -3
- package/modern/components/GridColumnMenuRowUngroupItem.js +0 -44
- package/modern/components/GridDataSourceGroupingCriteriaCell.d.ts +0 -7
- package/modern/components/GridDataSourceGroupingCriteriaCell.js +0 -121
- package/modern/components/GridExcelExportMenuItem.d.ts +0 -9
- package/modern/components/GridExcelExportMenuItem.js +0 -48
- package/modern/components/GridFooterCell.d.ts +0 -9
- package/modern/components/GridFooterCell.js +0 -43
- package/modern/components/GridGroupingColumnFooterCell.d.ts +0 -4
- package/modern/components/GridGroupingColumnFooterCell.js +0 -23
- package/modern/components/GridGroupingColumnLeafCell.d.ts +0 -4
- package/modern/components/GridGroupingColumnLeafCell.js +0 -17
- package/modern/components/GridGroupingCriteriaCell.d.ts +0 -7
- package/modern/components/GridGroupingCriteriaCell.js +0 -87
- package/modern/components/GridPremiumColumnMenu.d.ts +0 -33
- package/modern/components/GridPremiumColumnMenu.js +0 -37
- package/modern/components/GridPremiumToolbar.d.ts +0 -3
- package/modern/components/GridPremiumToolbar.js +0 -23
- package/modern/components/export/ExportExcel.d.ts +0 -29
- package/modern/components/export/ExportExcel.js +0 -209
- package/modern/components/export/index.d.ts +0 -1
- package/modern/components/export/index.js +0 -1
- package/modern/components/index.d.ts +0 -6
- package/modern/components/index.js +0 -6
- package/modern/components/promptControl/GridToolbarPromptControl.d.ts +0 -26
- package/modern/components/promptControl/GridToolbarPromptControl.js +0 -215
- package/modern/components/promptControl/RecordButton.d.ts +0 -16
- package/modern/components/promptControl/RecordButton.js +0 -111
- package/modern/components/promptControl/index.d.ts +0 -1
- package/modern/components/promptControl/index.js +0 -1
- package/modern/components/reexports.d.ts +0 -1
- package/modern/components/reexports.js +0 -1
- package/modern/constants/dataGridPremiumDefaultSlotsComponents.d.ts +0 -2
- package/modern/constants/dataGridPremiumDefaultSlotsComponents.js +0 -11
- package/modern/hooks/features/aggregation/createAggregationLookup.d.ts +0 -17
- package/modern/hooks/features/aggregation/createAggregationLookup.js +0 -111
- package/modern/hooks/features/aggregation/gridAggregationFunctions.d.ts +0 -8
- package/modern/hooks/features/aggregation/gridAggregationFunctions.js +0 -93
- package/modern/hooks/features/aggregation/gridAggregationInterfaces.d.ts +0 -129
- package/modern/hooks/features/aggregation/gridAggregationSelectors.d.ts +0 -13
- package/modern/hooks/features/aggregation/gridAggregationSelectors.js +0 -15
- package/modern/hooks/features/aggregation/gridAggregationUtils.d.ts +0 -62
- package/modern/hooks/features/aggregation/gridAggregationUtils.js +0 -180
- package/modern/hooks/features/aggregation/index.d.ts +0 -4
- package/modern/hooks/features/aggregation/index.js +0 -3
- package/modern/hooks/features/aggregation/useGridAggregation.d.ts +0 -6
- package/modern/hooks/features/aggregation/useGridAggregation.js +0 -103
- package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +0 -4
- package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.js +0 -96
- package/modern/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +0 -81
- package/modern/hooks/features/aggregation/wrapColumnWithAggregation.js +0 -215
- package/modern/hooks/features/cellSelection/gridCellSelectionInterfaces.d.ts +0 -40
- package/modern/hooks/features/cellSelection/gridCellSelectionInterfaces.js +0 -1
- package/modern/hooks/features/cellSelection/gridCellSelectionSelector.d.ts +0 -2
- package/modern/hooks/features/cellSelection/gridCellSelectionSelector.js +0 -2
- package/modern/hooks/features/cellSelection/index.d.ts +0 -1
- package/modern/hooks/features/cellSelection/index.js +0 -1
- package/modern/hooks/features/cellSelection/useGridCellSelection.d.ts +0 -6
- package/modern/hooks/features/cellSelection/useGridCellSelection.js +0 -486
- package/modern/hooks/features/clipboard/useGridClipboardImport.d.ts +0 -4
- package/modern/hooks/features/clipboard/useGridClipboardImport.js +0 -335
- package/modern/hooks/features/dataSource/models.d.ts +0 -54
- package/modern/hooks/features/dataSource/models.js +0 -1
- package/modern/hooks/features/dataSource/useGridDataSourcePremium.d.ts +0 -4
- package/modern/hooks/features/dataSource/useGridDataSourcePremium.js +0 -59
- package/modern/hooks/features/export/gridExcelExportInterface.d.ts +0 -71
- package/modern/hooks/features/export/gridExcelExportInterface.js +0 -1
- package/modern/hooks/features/export/index.d.ts +0 -2
- package/modern/hooks/features/export/index.js +0 -2
- package/modern/hooks/features/export/serializer/excelSerializer.d.ts +0 -40
- package/modern/hooks/features/export/serializer/excelSerializer.js +0 -269
- package/modern/hooks/features/export/serializer/setupExcelExportWebWorker.d.ts +0 -2
- package/modern/hooks/features/export/serializer/setupExcelExportWebWorker.js +0 -53
- package/modern/hooks/features/export/serializer/utils.d.ts +0 -36
- package/modern/hooks/features/export/serializer/utils.js +0 -93
- package/modern/hooks/features/export/useGridExcelExport.d.ts +0 -11
- package/modern/hooks/features/export/useGridExcelExport.js +0 -139
- package/modern/hooks/features/index.d.ts +0 -5
- package/modern/hooks/features/index.js +0 -6
- package/modern/hooks/features/promptControl/api.d.ts +0 -2
- package/modern/hooks/features/promptControl/api.js +0 -22
- package/modern/hooks/features/promptControl/index.d.ts +0 -2
- package/modern/hooks/features/promptControl/index.js +0 -1
- package/modern/hooks/features/promptControl/types.d.ts +0 -25
- package/modern/hooks/features/promptControl/types.js +0 -1
- package/modern/hooks/features/rowGrouping/createGroupingColDef.d.ts +0 -57
- package/modern/hooks/features/rowGrouping/createGroupingColDef.js +0 -272
- package/modern/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +0 -44
- package/modern/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +0 -1
- package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +0 -3
- package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.js +0 -5
- package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +0 -54
- package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +0 -173
- package/modern/hooks/features/rowGrouping/index.d.ts +0 -3
- package/modern/hooks/features/rowGrouping/index.js +0 -3
- package/modern/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +0 -4
- package/modern/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +0 -73
- package/modern/hooks/features/rowGrouping/useGridRowGrouping.d.ts +0 -11
- package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +0 -182
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +0 -4
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +0 -157
- package/modern/hooks/features/rows/index.d.ts +0 -1
- package/modern/hooks/features/rows/index.js +0 -1
- package/modern/hooks/features/rows/useGridRowAriaAttributes.d.ts +0 -1
- package/modern/hooks/features/rows/useGridRowAriaAttributes.js +0 -8
- package/modern/hooks/index.d.ts +0 -2
- package/modern/hooks/index.js +0 -3
- package/modern/hooks/utils/index.d.ts +0 -1
- package/modern/hooks/utils/index.js +0 -1
- package/modern/hooks/utils/useGridApiContext.d.ts +0 -4
- package/modern/hooks/utils/useGridApiContext.js +0 -2
- package/modern/hooks/utils/useGridApiRef.d.ts +0 -4
- package/modern/hooks/utils/useGridApiRef.js +0 -2
- package/modern/hooks/utils/useGridAriaAttributes.d.ts +0 -2
- package/modern/hooks/utils/useGridAriaAttributes.js +0 -13
- package/modern/hooks/utils/useGridPrivateApiContext.d.ts +0 -2
- package/modern/hooks/utils/useGridPrivateApiContext.js +0 -2
- package/modern/hooks/utils/useGridRootProps.d.ts +0 -2
- package/modern/hooks/utils/useGridRootProps.js +0 -2
- package/modern/hooks/utils/useKeepGroupedColumnsHidden.d.ts +0 -12
- package/modern/hooks/utils/useKeepGroupedColumnsHidden.js +0 -43
- package/modern/index.d.ts +0 -23
- package/modern/index.js +0 -26
- package/modern/locales.d.ts +0 -1
- package/modern/locales.js +0 -1
- package/modern/material/icons.d.ts +0 -15
- package/modern/material/icons.js +0 -20
- package/modern/material/index.d.ts +0 -8
- package/modern/material/index.js +0 -11
- package/modern/models/dataGridPremiumProps.d.ts +0 -162
- package/modern/models/dataGridPremiumProps.js +0 -1
- package/modern/models/gridApiPremium.d.ts +0 -14
- package/modern/models/gridApiPremium.js +0 -1
- package/modern/models/gridGroupingValueGetter.d.ts +0 -4
- package/modern/models/gridGroupingValueGetter.js +0 -1
- package/modern/models/gridPastedValueParser.d.ts +0 -4
- package/modern/models/gridPastedValueParser.js +0 -1
- package/modern/models/gridPremiumIconSlotsComponent.d.ts +0 -28
- package/modern/models/gridPremiumIconSlotsComponent.js +0 -1
- package/modern/models/gridPremiumSlotsComponent.d.ts +0 -7
- package/modern/models/gridPremiumSlotsComponent.js +0 -1
- package/modern/models/gridStatePremium.d.ts +0 -18
- package/modern/models/gridStatePremium.js +0 -1
- package/modern/models/index.d.ts +0 -4
- package/modern/models/index.js +0 -4
- package/modern/package.json +0 -1
- package/modern/setupExcelExportWebWorker.d.ts +0 -1
- package/modern/setupExcelExportWebWorker.js +0 -1
- package/modern/themeAugmentation/index.d.ts +0 -2
- package/modern/themeAugmentation/index.js +0 -4
- package/modern/themeAugmentation/overrides.d.ts +0 -7
- package/modern/themeAugmentation/overrides.js +0 -1
- package/modern/themeAugmentation/props.d.ts +0 -15
- package/modern/themeAugmentation/props.js +0 -1
- package/modern/typeOverloads/index.d.ts +0 -2
- package/modern/typeOverloads/index.js +0 -2
- package/modern/typeOverloads/modules.d.ts +0 -97
- package/modern/typeOverloads/modules.js +0 -1
- package/modern/typeOverloads/reexports.d.ts +0 -17
- package/modern/typeOverloads/reexports.js +0 -15
- package/modern/utils/releaseInfo.d.ts +0 -1
- package/modern/utils/releaseInfo.js +0 -13
- package/setupExcelExportWebWorker.d.ts +0 -1
- package/tsconfig.build.tsbuildinfo +0 -1
- package/utils/releaseInfo.d.ts +0 -1
- package/utils/releaseInfo.js +0 -20
- /package/esm/hooks/features/{promptControl/types.js → aiAssistant/gridAiAssistantInterfaces.js} +0 -0
- /package/esm/hooks/features/{promptControl → aiAssistant}/index.js +0 -0
- /package/{modern/hooks/features/aggregation/gridAggregationInterfaces.js → esm/hooks/features/pivoting/gridPivotingInterfaces.js} +0 -0
- /package/hooks/features/{promptControl/types.js → aiAssistant/gridAiAssistantInterfaces.js} +0 -0
- /package/hooks/features/{promptControl → aiAssistant}/index.js +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export const useResize = options => {
|
|
3
|
+
const resizeHandleRef = React.useRef(null);
|
|
4
|
+
const optionsRef = React.useRef(options);
|
|
5
|
+
React.useEffect(() => {
|
|
6
|
+
optionsRef.current = options;
|
|
7
|
+
}, [options]);
|
|
8
|
+
React.useEffect(() => {
|
|
9
|
+
const handle = resizeHandleRef.current;
|
|
10
|
+
if (!handle) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
const {
|
|
14
|
+
onSizeChange,
|
|
15
|
+
getInitialSize,
|
|
16
|
+
direction = 'horizontal'
|
|
17
|
+
} = optionsRef.current;
|
|
18
|
+
let startPosition = null;
|
|
19
|
+
let startSize = null;
|
|
20
|
+
const handlePointerMove = event => {
|
|
21
|
+
event.preventDefault();
|
|
22
|
+
if (startPosition === null || startSize === null) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const delta = direction === 'horizontal' ? startPosition - event.clientX : startPosition - event.clientY;
|
|
26
|
+
const newSize = startSize + delta;
|
|
27
|
+
onSizeChange(newSize, handle);
|
|
28
|
+
};
|
|
29
|
+
const handlePointerUp = event => {
|
|
30
|
+
startPosition = null;
|
|
31
|
+
startSize = null;
|
|
32
|
+
handle.removeEventListener('pointermove', handlePointerMove);
|
|
33
|
+
handle.releasePointerCapture(event.pointerId);
|
|
34
|
+
};
|
|
35
|
+
const handlePointerDown = event => {
|
|
36
|
+
startPosition = direction === 'horizontal' ? event.clientX : event.clientY;
|
|
37
|
+
startSize = getInitialSize(handle);
|
|
38
|
+
handle.addEventListener('pointermove', handlePointerMove);
|
|
39
|
+
handle.setPointerCapture(event.pointerId);
|
|
40
|
+
};
|
|
41
|
+
handle.addEventListener('pointerdown', handlePointerDown);
|
|
42
|
+
handle.addEventListener('pointerup', handlePointerUp);
|
|
43
|
+
return () => {
|
|
44
|
+
handle.removeEventListener('pointerdown', handlePointerDown);
|
|
45
|
+
handle.removeEventListener('pointerup', handlePointerUp);
|
|
46
|
+
handle.removeEventListener('pointermove', handlePointerMove);
|
|
47
|
+
};
|
|
48
|
+
}, []);
|
|
49
|
+
return {
|
|
50
|
+
ref: resizeHandleRef
|
|
51
|
+
};
|
|
52
|
+
};
|
package/esm/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/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-data-grid-premium v8.0.0
|
|
2
|
+
* @mui/x-data-grid-premium v8.0.0
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
@@ -23,4 +23,6 @@ export * from "./models/index.js";
|
|
|
23
23
|
export * from "./components/index.js";
|
|
24
24
|
export { GridColumnHeaders } from '@mui/x-data-grid-pro';
|
|
25
25
|
export { useGridApiContext, useGridApiRef, useGridRootProps } from "./typeOverloads/reexports.js";
|
|
26
|
-
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from "./components/reexports.js";
|
|
26
|
+
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from "./components/reexports.js";
|
|
27
|
+
export { useGridPivoting as unstable_useGridPivoting } from "./hooks/features/pivoting/useGridPivoting.js";
|
|
28
|
+
export { IS_SPEECH_RECOGNITION_SUPPORTED } from "./utils/speechRecognition.js";
|
package/esm/material/icons.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
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/esm/material/icons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { createSvgIcon } from '@mui/
|
|
2
|
+
import { createSvgIcon } from '@mui/x-data-grid/internals';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
export const GridWorkspacesIcon = createSvgIcon(/*#__PURE__*/_jsx("g", {
|
|
5
5
|
children: /*#__PURE__*/_jsx("path", {
|
|
@@ -12,9 +12,36 @@ export const GridGroupWorkIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
|
12
12
|
export const GridFunctionsIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
13
13
|
d: "M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"
|
|
14
14
|
}), 'Functions');
|
|
15
|
-
export const
|
|
15
|
+
export const GridSendIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
16
16
|
d: "M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"
|
|
17
|
-
}), '
|
|
18
|
-
export const
|
|
17
|
+
}), 'Send');
|
|
18
|
+
export const GridMicIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
19
19
|
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"
|
|
20
|
-
}), '
|
|
20
|
+
}), 'Mic');
|
|
21
|
+
export const GridMicOffIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
22
|
+
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"
|
|
23
|
+
}), 'MicOff');
|
|
24
|
+
export const GridMoveToTopIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
25
|
+
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"
|
|
26
|
+
}), 'MoveToTop');
|
|
27
|
+
export const GridMoveToBottomIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
28
|
+
d: "M16.59 5.795 12 10.385l-4.59-4.59L6 7.205l6 6 6-6-1.41-1.41ZM18 16.205v2H6v-2h12Z"
|
|
29
|
+
}), 'MoveToBottom');
|
|
30
|
+
export const GridExpandLessIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "m12 8.295-6 6 1.41 1.41 4.59-4.58 4.59 4.58 1.41-1.41-6-6Z"
|
|
32
|
+
}), 'ExpandLess');
|
|
33
|
+
export const GridPivotIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
34
|
+
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"
|
|
35
|
+
}), 'Pivot');
|
|
36
|
+
export const GridAssistantIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
37
|
+
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"
|
|
38
|
+
}), 'Assistant');
|
|
39
|
+
export const GridPromptIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
40
|
+
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"
|
|
41
|
+
}), 'Prompt');
|
|
42
|
+
export const GridRerunIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
43
|
+
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"
|
|
44
|
+
}), 'Rerun');
|
|
45
|
+
export const GridHistoryIcon = createSvgIcon(/*#__PURE__*/_jsx("path", {
|
|
46
|
+
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"
|
|
47
|
+
}), 'History');
|
package/esm/material/index.d.ts
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
declare const materialSlots: {
|
|
2
|
-
columnMenuUngroupIcon: React.JSXElementConstructor<
|
|
3
|
-
columnMenuGroupIcon: React.JSXElementConstructor<
|
|
4
|
-
columnMenuAggregationIcon: React.JSXElementConstructor<
|
|
5
|
-
|
|
6
|
-
|
|
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/esm/material/index.js
CHANGED
|
@@ -1,11 +1,39 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import {
|
|
2
|
+
import { GridSearchIcon, GridClearIcon, GridAddIcon, GridCheckIcon, GridExpandMoreIcon, GridDeleteIcon, GridCloseIcon } from '@mui/x-data-grid';
|
|
3
|
+
import { GridArrowDownwardIcon, GridArrowUpwardIcon, GridFilterAltIcon } from '@mui/x-data-grid-pro';
|
|
4
|
+
import { GridWorkspacesIcon, GridGroupWorkIcon, GridFunctionsIcon, GridMoveToTopIcon, GridMoveToBottomIcon, GridExpandLessIcon, GridPivotIcon, GridSendIcon, GridMicIcon, GridMicOffIcon, GridAssistantIcon, GridPromptIcon, GridRerunIcon, GridHistoryIcon } from "./icons.js";
|
|
3
5
|
const iconsSlots = {
|
|
6
|
+
collapsibleIcon: GridExpandMoreIcon,
|
|
4
7
|
columnMenuUngroupIcon: GridWorkspacesIcon,
|
|
5
8
|
columnMenuGroupIcon: GridGroupWorkIcon,
|
|
6
9
|
columnMenuAggregationIcon: GridFunctionsIcon,
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
pivotIcon: GridPivotIcon,
|
|
11
|
+
pivotSearchIcon: GridSearchIcon,
|
|
12
|
+
pivotSearchClearIcon: GridClearIcon,
|
|
13
|
+
pivotMenuAddIcon: GridAddIcon,
|
|
14
|
+
pivotMenuMoveUpIcon: GridExpandLessIcon,
|
|
15
|
+
pivotMenuMoveDownIcon: GridExpandMoreIcon,
|
|
16
|
+
pivotMenuMoveToTopIcon: GridMoveToTopIcon,
|
|
17
|
+
pivotMenuMoveToBottomIcon: GridMoveToBottomIcon,
|
|
18
|
+
pivotMenuCheckIcon: GridCheckIcon,
|
|
19
|
+
pivotMenuRemoveIcon: GridDeleteIcon,
|
|
20
|
+
sidebarCloseIcon: GridCloseIcon,
|
|
21
|
+
aiAssistantIcon: GridAssistantIcon,
|
|
22
|
+
aiAssistantPanelCloseIcon: GridCloseIcon,
|
|
23
|
+
aiAssistantPanelNewConversationIcon: GridAddIcon,
|
|
24
|
+
aiAssistantPanelHistoryIcon: GridHistoryIcon,
|
|
25
|
+
promptIcon: GridPromptIcon,
|
|
26
|
+
promptSendIcon: GridSendIcon,
|
|
27
|
+
promptSpeechRecognitionIcon: GridMicIcon,
|
|
28
|
+
promptSpeechRecognitionOffIcon: GridMicOffIcon,
|
|
29
|
+
promptRerunIcon: GridRerunIcon,
|
|
30
|
+
promptSortAscIcon: GridArrowUpwardIcon,
|
|
31
|
+
promptSortDescIcon: GridArrowDownwardIcon,
|
|
32
|
+
promptFilterIcon: GridFilterAltIcon,
|
|
33
|
+
promptPivotIcon: GridPivotIcon,
|
|
34
|
+
promptAggregationIcon: GridFunctionsIcon,
|
|
35
|
+
promptGroupIcon: GridGroupWorkIcon,
|
|
36
|
+
promptChangesToggleIcon: GridExpandMoreIcon
|
|
9
37
|
};
|
|
10
38
|
const materialSlots = _extends({}, iconsSlots);
|
|
11
39
|
export 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
|
|
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<
|
|
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<
|
|
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<
|
|
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
|
|
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
|
-
|
|
124
|
+
promptRerunIcon: React.JSXElementConstructor<IconProps>;
|
|
23
125
|
/**
|
|
24
|
-
* Icon used
|
|
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
|
-
|
|
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
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { GridInitialState as GridInitialStatePro, GridState as GridStatePro } from '@mui/x-data-grid-pro';
|
|
2
2
|
import type { GridRowGroupingState, GridRowGroupingInitialState, GridAggregationState, GridAggregationInitialState, GridCellSelectionModel } from '../hooks';
|
|
3
|
+
import type { GridPivotingInitialState, GridPivotingState } from '../hooks/features/pivoting/gridPivotingInterfaces';
|
|
4
|
+
import { GridAiAssistantInitialState, GridAiAssistantState } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
|
|
3
5
|
/**
|
|
4
6
|
* The state of Data Grid Premium.
|
|
5
7
|
*/
|
|
@@ -7,6 +9,8 @@ export interface GridStatePremium extends GridStatePro {
|
|
|
7
9
|
rowGrouping: GridRowGroupingState;
|
|
8
10
|
aggregation: GridAggregationState;
|
|
9
11
|
cellSelection: GridCellSelectionModel;
|
|
12
|
+
pivoting: GridPivotingState;
|
|
13
|
+
aiAssistant: GridAiAssistantState;
|
|
10
14
|
}
|
|
11
15
|
/**
|
|
12
16
|
* The initial state of Data Grid Premium.
|
|
@@ -15,4 +19,6 @@ export interface GridInitialStatePremium extends GridInitialStatePro {
|
|
|
15
19
|
rowGrouping?: GridRowGroupingInitialState;
|
|
16
20
|
aggregation?: GridAggregationInitialState;
|
|
17
21
|
cellSelection?: GridCellSelectionModel;
|
|
22
|
+
pivoting?: GridPivotingInitialState;
|
|
23
|
+
aiAssistant?: GridAiAssistantInitialState;
|
|
18
24
|
}
|
package/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","sideEffects":
|
|
1
|
+
{"type":"module","sideEffects":["**/*.css"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setupExcelExportWebWorker } from "../hooks/features/export/serializer/setupExcelExportWebWorker.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setupExcelExportWebWorker } from "../hooks/features/export/serializer/setupExcelExportWebWorker.js";
|