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