@mui/x-data-grid-premium 8.0.0-alpha.9 → 8.0.0-beta.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 +1446 -0
- package/DataGridPremium/DataGrid.d.ts +1 -1
- package/DataGridPremium/DataGridPremium.d.ts +6 -6
- package/DataGridPremium/DataGridPremium.js +61 -35
- package/DataGridPremium/index.d.ts +3 -3
- package/DataGridPremium/useDataGridPremiumComponent.d.ts +3 -3
- package/DataGridPremium/useDataGridPremiumComponent.js +5 -4
- package/DataGridPremium/useDataGridPremiumProps.d.ts +2 -2
- package/DataGridPremium/useDataGridPremiumProps.js +2 -2
- package/README.md +1 -1
- package/components/GridAggregationHeader.d.ts +3 -3
- package/components/GridAggregationHeader.js +13 -12
- package/components/GridAggregationRowOverlay.d.ts +3 -0
- package/components/GridAggregationRowOverlay.js +44 -0
- package/components/GridBottomContainer.d.ts +3 -0
- package/components/GridBottomContainer.js +51 -0
- package/components/GridColumnMenuAggregationItem.d.ts +2 -2
- package/components/GridColumnMenuAggregationItem.js +36 -46
- package/components/GridColumnMenuRowGroupItem.d.ts +1 -1
- package/components/GridColumnMenuRowUngroupItem.d.ts +1 -1
- package/components/GridDataSourceGroupingCriteriaCell.d.ts +2 -2
- package/components/GridDataSourceGroupingCriteriaCell.js +8 -12
- package/components/GridExcelExportMenuItem.d.ts +3 -3
- package/components/GridFooterCell.d.ts +2 -2
- package/components/GridFooterCell.js +5 -6
- package/components/GridGroupingColumnFooterCell.d.ts +1 -1
- package/components/GridGroupingColumnFooterCell.js +2 -1
- package/components/GridGroupingColumnLeafCell.d.ts +1 -1
- package/components/GridGroupingColumnLeafCell.js +3 -9
- package/components/GridGroupingCriteriaCell.d.ts +2 -2
- package/components/GridGroupingCriteriaCell.js +3 -8
- package/components/GridPremiumColumnMenu.d.ts +26 -26
- package/components/GridPremiumToolbar.d.ts +3 -0
- package/components/GridPremiumToolbar.js +31 -0
- package/components/export/ExportExcel.d.ts +29 -0
- package/components/export/ExportExcel.js +216 -0
- package/components/export/index.d.ts +1 -0
- package/components/export/index.js +16 -0
- package/components/index.d.ts +6 -5
- package/components/index.js +13 -1
- package/components/promptControl/GridToolbarPromptControl.d.ts +22 -22
- package/components/promptControl/GridToolbarPromptControl.js +33 -20
- package/components/promptControl/RecordButton.d.ts +9 -9
- package/components/promptControl/index.d.ts +1 -1
- package/components/reexports.d.ts +1 -1
- package/constants/dataGridPremiumDefaultSlotsComponents.d.ts +1 -1
- package/constants/dataGridPremiumDefaultSlotsComponents.js +5 -1
- package/esm/DataGridPremium/DataGrid.d.ts +8 -0
- package/esm/DataGridPremium/DataGridPremium.d.ts +16 -0
- package/esm/DataGridPremium/DataGridPremium.js +61 -35
- package/esm/DataGridPremium/index.d.ts +3 -0
- package/esm/DataGridPremium/useDataGridPremiumComponent.d.ts +4 -0
- package/esm/DataGridPremium/useDataGridPremiumComponent.js +6 -5
- package/esm/DataGridPremium/useDataGridPremiumProps.d.ts +6 -0
- package/esm/DataGridPremium/useDataGridPremiumProps.js +2 -2
- package/esm/components/GridAggregationHeader.d.ts +7 -0
- package/esm/components/GridAggregationHeader.js +13 -12
- package/esm/components/GridAggregationRowOverlay.d.ts +3 -0
- package/esm/components/GridAggregationRowOverlay.js +37 -0
- package/esm/components/GridBottomContainer.d.ts +3 -0
- package/esm/components/GridBottomContainer.js +43 -0
- package/esm/components/GridColumnMenuAggregationItem.d.ts +7 -0
- package/esm/components/GridColumnMenuAggregationItem.js +36 -46
- package/esm/components/GridColumnMenuRowGroupItem.d.ts +3 -0
- package/esm/components/GridColumnMenuRowUngroupItem.d.ts +3 -0
- package/esm/components/GridDataSourceGroupingCriteriaCell.d.ts +7 -0
- package/esm/components/GridDataSourceGroupingCriteriaCell.js +9 -13
- package/esm/components/GridExcelExportMenuItem.d.ts +9 -0
- package/esm/components/GridFooterCell.d.ts +9 -0
- package/esm/components/GridFooterCell.js +5 -6
- package/esm/components/GridGroupingColumnFooterCell.d.ts +4 -0
- package/esm/components/GridGroupingColumnFooterCell.js +2 -1
- package/esm/components/GridGroupingColumnLeafCell.d.ts +4 -0
- package/esm/components/GridGroupingColumnLeafCell.js +3 -8
- package/esm/components/GridGroupingCriteriaCell.d.ts +7 -0
- package/esm/components/GridGroupingCriteriaCell.js +3 -8
- package/esm/components/GridPremiumColumnMenu.d.ts +33 -0
- package/esm/components/GridPremiumToolbar.d.ts +3 -0
- package/esm/components/GridPremiumToolbar.js +23 -0
- package/esm/components/export/ExportExcel.d.ts +29 -0
- package/esm/components/export/ExportExcel.js +209 -0
- package/esm/components/export/index.d.ts +1 -0
- package/esm/components/export/index.js +1 -0
- package/esm/components/index.d.ts +6 -0
- package/esm/components/index.js +2 -1
- package/esm/components/promptControl/GridToolbarPromptControl.d.ts +26 -0
- package/esm/components/promptControl/GridToolbarPromptControl.js +33 -20
- package/esm/components/promptControl/RecordButton.d.ts +16 -0
- package/esm/components/promptControl/index.d.ts +1 -0
- package/esm/components/reexports.d.ts +1 -0
- package/esm/constants/dataGridPremiumDefaultSlotsComponents.d.ts +2 -0
- package/esm/constants/dataGridPremiumDefaultSlotsComponents.js +5 -1
- package/esm/hooks/features/aggregation/createAggregationLookup.d.ts +17 -0
- package/esm/hooks/features/aggregation/createAggregationLookup.js +3 -3
- package/esm/hooks/features/aggregation/gridAggregationFunctions.d.ts +8 -0
- package/esm/hooks/features/aggregation/gridAggregationInterfaces.d.ts +129 -0
- package/esm/hooks/features/aggregation/gridAggregationSelectors.d.ts +13 -0
- package/esm/hooks/features/aggregation/gridAggregationSelectors.js +2 -2
- package/esm/hooks/features/aggregation/gridAggregationUtils.d.ts +62 -0
- package/esm/hooks/features/aggregation/gridAggregationUtils.js +1 -1
- package/esm/hooks/features/aggregation/index.d.ts +4 -0
- package/esm/hooks/features/aggregation/useGridAggregation.d.ts +6 -0
- package/esm/hooks/features/aggregation/useGridAggregation.js +6 -8
- package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +4 -0
- package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.js +7 -6
- package/esm/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +81 -0
- package/esm/hooks/features/aggregation/wrapColumnWithAggregation.js +6 -5
- package/esm/hooks/features/cellSelection/gridCellSelectionInterfaces.d.ts +40 -0
- package/esm/hooks/features/cellSelection/gridCellSelectionSelector.d.ts +2 -0
- package/esm/hooks/features/cellSelection/gridCellSelectionSelector.js +2 -1
- package/esm/hooks/features/cellSelection/index.d.ts +1 -0
- package/esm/hooks/features/cellSelection/useGridCellSelection.d.ts +6 -0
- package/esm/hooks/features/cellSelection/useGridCellSelection.js +15 -13
- package/esm/hooks/features/clipboard/useGridClipboardImport.d.ts +4 -0
- package/esm/hooks/features/clipboard/useGridClipboardImport.js +5 -5
- package/esm/hooks/features/dataSource/models.d.ts +54 -0
- package/esm/hooks/features/dataSource/useGridDataSourcePremium.d.ts +4 -0
- package/esm/hooks/features/dataSource/useGridDataSourcePremium.js +13 -7
- package/esm/hooks/features/export/gridExcelExportInterface.d.ts +71 -0
- package/esm/hooks/features/export/index.d.ts +2 -0
- package/esm/hooks/features/export/index.js +1 -1
- package/esm/hooks/features/export/serializer/excelSerializer.d.ts +40 -0
- package/esm/hooks/features/export/serializer/excelSerializer.js +69 -180
- package/esm/hooks/features/export/serializer/setupExcelExportWebWorker.d.ts +2 -0
- package/esm/hooks/features/export/serializer/setupExcelExportWebWorker.js +53 -0
- package/esm/hooks/features/export/serializer/utils.d.ts +36 -0
- package/esm/hooks/features/export/serializer/utils.js +93 -0
- package/esm/hooks/features/export/useGridExcelExport.d.ts +11 -0
- package/esm/hooks/features/export/useGridExcelExport.js +11 -5
- package/esm/hooks/features/index.d.ts +5 -0
- package/esm/hooks/features/promptControl/api.d.ts +2 -0
- package/esm/hooks/features/promptControl/index.d.ts +2 -0
- package/esm/hooks/features/promptControl/types.d.ts +25 -0
- package/esm/hooks/features/rowGrouping/createGroupingColDef.d.ts +57 -0
- package/esm/hooks/features/rowGrouping/createGroupingColDef.js +5 -5
- package/esm/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +44 -0
- package/esm/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +3 -0
- package/esm/hooks/features/rowGrouping/gridRowGroupingSelector.js +2 -2
- package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +54 -0
- package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.js +5 -3
- package/esm/hooks/features/rowGrouping/index.d.ts +3 -0
- package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +4 -0
- package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +3 -3
- package/esm/hooks/features/rowGrouping/useGridRowGrouping.d.ts +11 -0
- package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +4 -5
- package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +4 -0
- package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +5 -5
- package/esm/hooks/features/rows/index.d.ts +1 -0
- package/esm/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -0
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/utils/index.d.ts +1 -0
- package/esm/hooks/utils/useGridApiContext.d.ts +4 -0
- package/esm/hooks/utils/useGridApiRef.d.ts +4 -0
- package/esm/hooks/utils/useGridAriaAttributes.d.ts +2 -0
- package/esm/hooks/utils/useGridPrivateApiContext.d.ts +2 -0
- package/esm/hooks/utils/useGridRootProps.d.ts +2 -0
- package/esm/hooks/utils/useKeepGroupedColumnsHidden.d.ts +12 -0
- package/esm/hooks/utils/useKeepGroupedColumnsHidden.js +2 -2
- package/esm/index.d.ts +23 -0
- package/esm/index.js +6 -5
- package/esm/locales.d.ts +1 -0
- package/esm/material/icons.d.ts +15 -0
- package/esm/material/index.d.ts +8 -0
- package/esm/models/dataGridPremiumProps.d.ts +162 -0
- package/esm/models/gridApiPremium.d.ts +14 -0
- package/esm/models/gridGroupingValueGetter.d.ts +4 -0
- package/esm/models/gridPastedValueParser.d.ts +4 -0
- package/esm/models/gridPremiumIconSlotsComponent.d.ts +28 -0
- package/esm/models/gridPremiumSlotsComponent.d.ts +7 -0
- package/esm/models/gridStatePremium.d.ts +18 -0
- package/esm/models/index.d.ts +4 -0
- package/esm/package.json +1 -0
- package/esm/setupExcelExportWebWorker.d.ts +1 -0
- package/esm/setupExcelExportWebWorker.js +1 -0
- package/esm/themeAugmentation/index.d.ts +2 -0
- package/esm/themeAugmentation/overrides.d.ts +7 -0
- package/esm/themeAugmentation/props.d.ts +15 -0
- package/esm/typeOverloads/index.d.ts +2 -0
- package/esm/typeOverloads/modules.d.ts +97 -0
- package/esm/typeOverloads/reexports.d.ts +17 -0
- package/esm/utils/releaseInfo.d.ts +1 -0
- package/esm/utils/releaseInfo.js +1 -1
- package/hooks/features/aggregation/createAggregationLookup.d.ts +16 -10
- package/hooks/features/aggregation/createAggregationLookup.js +2 -2
- package/hooks/features/aggregation/gridAggregationFunctions.d.ts +7 -7
- package/hooks/features/aggregation/gridAggregationInterfaces.d.ts +81 -82
- package/hooks/features/aggregation/gridAggregationSelectors.d.ts +3 -3
- package/hooks/features/aggregation/gridAggregationSelectors.js +1 -2
- package/hooks/features/aggregation/gridAggregationUtils.d.ts +42 -25
- package/hooks/features/aggregation/gridAggregationUtils.js +1 -1
- package/hooks/features/aggregation/index.d.ts +4 -4
- package/hooks/features/aggregation/useGridAggregation.d.ts +3 -3
- package/hooks/features/aggregation/useGridAggregation.js +6 -8
- package/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +3 -3
- package/hooks/features/aggregation/useGridAggregationPreProcessors.js +7 -6
- package/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +67 -62
- package/hooks/features/aggregation/wrapColumnWithAggregation.js +6 -5
- package/hooks/features/cellSelection/gridCellSelectionInterfaces.d.ts +34 -34
- package/hooks/features/cellSelection/gridCellSelectionSelector.d.ts +2 -2
- package/hooks/features/cellSelection/gridCellSelectionSelector.js +2 -2
- package/hooks/features/cellSelection/index.d.ts +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.d.ts +3 -3
- package/hooks/features/cellSelection/useGridCellSelection.js +13 -11
- package/hooks/features/clipboard/useGridClipboardImport.d.ts +2 -2
- package/hooks/features/clipboard/useGridClipboardImport.js +4 -4
- package/hooks/features/dataSource/models.d.ts +41 -34
- package/hooks/features/dataSource/useGridDataSourcePremium.d.ts +3 -3
- package/hooks/features/dataSource/useGridDataSourcePremium.js +13 -7
- package/hooks/features/export/gridExcelExportInterface.d.ts +52 -52
- package/hooks/features/export/index.d.ts +2 -2
- package/hooks/features/export/index.js +2 -2
- package/hooks/features/export/serializer/excelSerializer.d.ts +23 -51
- package/hooks/features/export/serializer/excelSerializer.js +74 -187
- package/hooks/features/export/serializer/setupExcelExportWebWorker.d.ts +2 -0
- package/hooks/features/export/serializer/setupExcelExportWebWorker.js +59 -0
- package/hooks/features/export/serializer/utils.d.ts +36 -0
- package/hooks/features/export/serializer/utils.js +106 -0
- package/hooks/features/export/useGridExcelExport.d.ts +3 -3
- package/hooks/features/export/useGridExcelExport.js +10 -3
- package/hooks/features/index.d.ts +5 -5
- package/hooks/features/promptControl/api.d.ts +2 -2
- package/hooks/features/promptControl/index.d.ts +2 -2
- package/hooks/features/promptControl/types.d.ts +15 -15
- package/hooks/features/rowGrouping/createGroupingColDef.d.ts +44 -32
- package/hooks/features/rowGrouping/createGroupingColDef.js +4 -4
- package/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +32 -32
- package/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +2 -2
- package/hooks/features/rowGrouping/gridRowGroupingSelector.js +2 -2
- package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +30 -22
- package/hooks/features/rowGrouping/gridRowGroupingUtils.js +4 -2
- package/hooks/features/rowGrouping/index.d.ts +3 -3
- package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +3 -3
- package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +3 -3
- package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +3 -3
- package/hooks/features/rowGrouping/useGridRowGrouping.js +4 -5
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +3 -3
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +5 -5
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
- package/hooks/index.d.ts +2 -2
- package/hooks/utils/index.d.ts +1 -1
- package/hooks/utils/useGridApiContext.d.ts +4 -2
- package/hooks/utils/useGridApiRef.d.ts +4 -2
- package/hooks/utils/useGridAriaAttributes.d.ts +1 -1
- package/hooks/utils/useGridPrivateApiContext.d.ts +2 -2
- package/hooks/utils/useGridRootProps.d.ts +2 -2
- package/hooks/utils/useKeepGroupedColumnsHidden.d.ts +4 -4
- package/hooks/utils/useKeepGroupedColumnsHidden.js +2 -2
- package/index.d.ts +9 -17
- package/index.js +2 -11
- package/locales.d.ts +1 -1
- package/material/icons.d.ts +6 -6
- package/material/index.d.ts +6 -6
- package/models/dataGridPremiumProps.d.ts +140 -135
- package/models/gridApiPremium.d.ts +4 -6
- package/models/gridGroupingValueGetter.d.ts +2 -2
- package/models/gridPastedValueParser.d.ts +2 -2
- package/models/gridPremiumIconSlotsComponent.d.ts +26 -26
- package/models/gridPremiumSlotsComponent.d.ts +2 -3
- package/models/gridStatePremium.d.ts +7 -7
- package/models/index.d.ts +4 -4
- package/modern/DataGridPremium/DataGrid.d.ts +8 -0
- package/modern/DataGridPremium/DataGridPremium.d.ts +16 -0
- package/modern/DataGridPremium/DataGridPremium.js +61 -35
- package/modern/DataGridPremium/index.d.ts +3 -0
- package/modern/DataGridPremium/useDataGridPremiumComponent.d.ts +4 -0
- package/modern/DataGridPremium/useDataGridPremiumComponent.js +6 -5
- package/modern/DataGridPremium/useDataGridPremiumProps.d.ts +6 -0
- package/modern/DataGridPremium/useDataGridPremiumProps.js +2 -2
- package/modern/components/GridAggregationHeader.d.ts +7 -0
- package/modern/components/GridAggregationHeader.js +13 -12
- package/modern/components/GridAggregationRowOverlay.d.ts +3 -0
- package/modern/components/GridAggregationRowOverlay.js +37 -0
- package/modern/components/GridBottomContainer.d.ts +3 -0
- package/modern/components/GridBottomContainer.js +43 -0
- package/modern/components/GridColumnMenuAggregationItem.d.ts +7 -0
- package/modern/components/GridColumnMenuAggregationItem.js +36 -46
- package/modern/components/GridColumnMenuRowGroupItem.d.ts +3 -0
- package/modern/components/GridColumnMenuRowUngroupItem.d.ts +3 -0
- package/modern/components/GridDataSourceGroupingCriteriaCell.d.ts +7 -0
- package/modern/components/GridDataSourceGroupingCriteriaCell.js +9 -13
- package/modern/components/GridExcelExportMenuItem.d.ts +9 -0
- package/modern/components/GridFooterCell.d.ts +9 -0
- package/modern/components/GridFooterCell.js +5 -6
- package/modern/components/GridGroupingColumnFooterCell.d.ts +4 -0
- package/modern/components/GridGroupingColumnFooterCell.js +2 -1
- package/modern/components/GridGroupingColumnLeafCell.d.ts +4 -0
- package/modern/components/GridGroupingColumnLeafCell.js +3 -8
- package/modern/components/GridGroupingCriteriaCell.d.ts +7 -0
- package/modern/components/GridGroupingCriteriaCell.js +3 -8
- package/modern/components/GridPremiumColumnMenu.d.ts +33 -0
- package/modern/components/GridPremiumToolbar.d.ts +3 -0
- package/modern/components/GridPremiumToolbar.js +23 -0
- package/modern/components/export/ExportExcel.d.ts +29 -0
- package/modern/components/export/ExportExcel.js +209 -0
- package/modern/components/export/index.d.ts +1 -0
- package/modern/components/export/index.js +1 -0
- package/modern/components/index.d.ts +6 -0
- package/modern/components/index.js +2 -1
- package/modern/components/promptControl/GridToolbarPromptControl.d.ts +26 -0
- package/modern/components/promptControl/GridToolbarPromptControl.js +33 -20
- package/modern/components/promptControl/RecordButton.d.ts +16 -0
- package/modern/components/promptControl/index.d.ts +1 -0
- package/modern/components/reexports.d.ts +1 -0
- package/modern/constants/dataGridPremiumDefaultSlotsComponents.d.ts +2 -0
- package/modern/constants/dataGridPremiumDefaultSlotsComponents.js +5 -1
- package/modern/hooks/features/aggregation/createAggregationLookup.d.ts +17 -0
- package/modern/hooks/features/aggregation/createAggregationLookup.js +3 -3
- package/modern/hooks/features/aggregation/gridAggregationFunctions.d.ts +8 -0
- package/modern/hooks/features/aggregation/gridAggregationInterfaces.d.ts +129 -0
- package/modern/hooks/features/aggregation/gridAggregationSelectors.d.ts +13 -0
- package/modern/hooks/features/aggregation/gridAggregationSelectors.js +2 -2
- package/modern/hooks/features/aggregation/gridAggregationUtils.d.ts +62 -0
- package/modern/hooks/features/aggregation/gridAggregationUtils.js +1 -1
- package/modern/hooks/features/aggregation/index.d.ts +4 -0
- package/modern/hooks/features/aggregation/useGridAggregation.d.ts +6 -0
- package/modern/hooks/features/aggregation/useGridAggregation.js +6 -8
- package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +4 -0
- package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.js +7 -6
- package/modern/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +81 -0
- package/modern/hooks/features/aggregation/wrapColumnWithAggregation.js +6 -5
- package/modern/hooks/features/cellSelection/gridCellSelectionInterfaces.d.ts +40 -0
- package/modern/hooks/features/cellSelection/gridCellSelectionSelector.d.ts +2 -0
- package/modern/hooks/features/cellSelection/gridCellSelectionSelector.js +2 -1
- package/modern/hooks/features/cellSelection/index.d.ts +1 -0
- package/modern/hooks/features/cellSelection/useGridCellSelection.d.ts +6 -0
- package/modern/hooks/features/cellSelection/useGridCellSelection.js +15 -13
- package/modern/hooks/features/clipboard/useGridClipboardImport.d.ts +4 -0
- package/modern/hooks/features/clipboard/useGridClipboardImport.js +5 -5
- package/modern/hooks/features/dataSource/models.d.ts +54 -0
- package/modern/hooks/features/dataSource/useGridDataSourcePremium.d.ts +4 -0
- package/modern/hooks/features/dataSource/useGridDataSourcePremium.js +13 -7
- package/modern/hooks/features/export/gridExcelExportInterface.d.ts +71 -0
- package/modern/hooks/features/export/index.d.ts +2 -0
- package/modern/hooks/features/export/index.js +1 -1
- package/modern/hooks/features/export/serializer/excelSerializer.d.ts +40 -0
- package/modern/hooks/features/export/serializer/excelSerializer.js +69 -180
- package/modern/hooks/features/export/serializer/setupExcelExportWebWorker.d.ts +2 -0
- package/modern/hooks/features/export/serializer/setupExcelExportWebWorker.js +53 -0
- package/modern/hooks/features/export/serializer/utils.d.ts +36 -0
- package/modern/hooks/features/export/serializer/utils.js +93 -0
- package/modern/hooks/features/export/useGridExcelExport.d.ts +11 -0
- package/modern/hooks/features/export/useGridExcelExport.js +11 -5
- package/modern/hooks/features/index.d.ts +5 -0
- package/modern/hooks/features/promptControl/api.d.ts +2 -0
- package/modern/hooks/features/promptControl/index.d.ts +2 -0
- package/modern/hooks/features/promptControl/types.d.ts +25 -0
- package/modern/hooks/features/rowGrouping/createGroupingColDef.d.ts +57 -0
- package/modern/hooks/features/rowGrouping/createGroupingColDef.js +5 -5
- package/modern/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +44 -0
- package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +3 -0
- package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.js +2 -2
- package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +54 -0
- package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +5 -3
- package/modern/hooks/features/rowGrouping/index.d.ts +3 -0
- package/modern/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +4 -0
- package/modern/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +3 -3
- package/modern/hooks/features/rowGrouping/useGridRowGrouping.d.ts +11 -0
- package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +4 -5
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +4 -0
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +5 -5
- package/modern/hooks/features/rows/index.d.ts +1 -0
- package/modern/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -0
- package/modern/hooks/index.d.ts +2 -0
- package/modern/hooks/utils/index.d.ts +1 -0
- package/modern/hooks/utils/useGridApiContext.d.ts +4 -0
- package/modern/hooks/utils/useGridApiRef.d.ts +4 -0
- package/modern/hooks/utils/useGridAriaAttributes.d.ts +2 -0
- package/modern/hooks/utils/useGridPrivateApiContext.d.ts +2 -0
- package/modern/hooks/utils/useGridRootProps.d.ts +2 -0
- package/modern/hooks/utils/useKeepGroupedColumnsHidden.d.ts +12 -0
- package/modern/hooks/utils/useKeepGroupedColumnsHidden.js +2 -2
- package/modern/index.d.ts +23 -0
- package/modern/index.js +1 -7
- package/modern/locales.d.ts +1 -0
- package/modern/material/icons.d.ts +15 -0
- package/modern/material/index.d.ts +8 -0
- package/modern/models/dataGridPremiumProps.d.ts +162 -0
- package/modern/models/gridApiPremium.d.ts +14 -0
- package/modern/models/gridGroupingValueGetter.d.ts +4 -0
- package/modern/models/gridPastedValueParser.d.ts +4 -0
- package/modern/models/gridPremiumIconSlotsComponent.d.ts +28 -0
- package/modern/models/gridPremiumSlotsComponent.d.ts +7 -0
- package/modern/models/gridStatePremium.d.ts +18 -0
- package/modern/models/index.d.ts +4 -0
- package/modern/package.json +1 -0
- package/modern/setupExcelExportWebWorker.d.ts +1 -0
- package/modern/setupExcelExportWebWorker.js +1 -0
- package/modern/themeAugmentation/index.d.ts +2 -0
- package/modern/themeAugmentation/overrides.d.ts +7 -0
- package/modern/themeAugmentation/props.d.ts +15 -0
- package/modern/typeOverloads/index.d.ts +2 -0
- package/modern/typeOverloads/modules.d.ts +97 -0
- package/modern/typeOverloads/reexports.d.ts +17 -0
- package/modern/utils/releaseInfo.d.ts +1 -0
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +42 -9
- package/setupExcelExportWebWorker.d.ts +1 -0
- package/setupExcelExportWebWorker.js +12 -0
- package/themeAugmentation/index.d.ts +2 -2
- package/themeAugmentation/overrides.d.ts +3 -4
- package/themeAugmentation/props.d.ts +9 -11
- package/tsconfig.build.tsbuildinfo +1 -0
- package/typeOverloads/index.d.ts +1 -1
- package/typeOverloads/modules.d.ts +75 -82
- package/typeOverloads/reexports.d.ts +5 -5
- package/utils/releaseInfo.d.ts +1 -1
- package/utils/releaseInfo.js +1 -1
- package/DataGridPremium/package.json +0 -6
- package/components/package.json +0 -6
- package/esm/hooks/features/dataSource/cache.js +0 -3
- package/hooks/features/dataSource/cache.d.ts +0 -2
- package/hooks/features/dataSource/cache.js +0 -9
- package/hooks/package.json +0 -6
- package/material/package.json +0 -6
- package/models/package.json +0 -6
- package/modern/hooks/features/dataSource/cache.js +0 -3
- package/themeAugmentation/package.json +0 -6
- package/typeOverloads/package.json +0 -6
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
3
|
-
import { DataGridPremiumProps } from
|
|
3
|
+
import { DataGridPremiumProps } from "../models/dataGridPremiumProps.js";
|
|
4
4
|
export type { GridPremiumSlotsComponent as GridSlots } from '../models';
|
|
5
5
|
interface DataGridPremiumComponent {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<R extends GridValidRowModel = any>(props: DataGridPremiumProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
|
|
7
|
+
propTypes?: any;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* - [DataGridPremium](https://mui.com/x/react-data-grid/
|
|
10
|
+
* Features:
|
|
11
|
+
* - [DataGridPremium](https://mui.com/x/react-data-grid/features/)
|
|
12
12
|
*
|
|
13
13
|
* API:
|
|
14
14
|
* - [DataGridPremium API](https://mui.com/x/api/data-grid/data-grid-premium/)
|
|
15
15
|
*/
|
|
16
|
-
export declare const DataGridPremium: DataGridPremiumComponent;
|
|
16
|
+
export declare const DataGridPremium: DataGridPremiumComponent;
|
|
@@ -13,6 +13,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _xLicense = require("@mui/x-license");
|
|
14
14
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
15
15
|
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
16
|
+
var _material = require("@mui/x-data-grid/material");
|
|
16
17
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
17
18
|
var _useDataGridPremiumComponent = require("./useDataGridPremiumComponent");
|
|
18
19
|
var _useDataGridPremiumProps = require("./useDataGridPremiumProps");
|
|
@@ -22,11 +23,16 @@ var _useGridRowAriaAttributes = require("../hooks/features/rows/useGridRowAriaAt
|
|
|
22
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
24
|
const configuration = {
|
|
24
25
|
hooks: {
|
|
26
|
+
useCSSVariables: _material.useMaterialCSSVariables,
|
|
25
27
|
useGridAriaAttributes: _useGridAriaAttributes.useGridAriaAttributes,
|
|
26
28
|
useGridRowAriaAttributes: _useGridRowAriaAttributes.useGridRowAriaAttributes
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
31
|
const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
|
|
32
|
+
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
33
|
+
packageName: "x-data-grid-premium",
|
|
34
|
+
releaseInfo: releaseInfo
|
|
35
|
+
});
|
|
30
36
|
let dataGridPremiumPropValidators;
|
|
31
37
|
if (process.env.NODE_ENV !== 'production') {
|
|
32
38
|
dataGridPremiumPropValidators = [..._internals.propValidatorsDataGrid, ..._internals.propValidatorsDataGridPro];
|
|
@@ -48,10 +54,7 @@ const DataGridPremiumRaw = (0, _forwardRef.forwardRef)(function DataGridPremium(
|
|
|
48
54
|
sx: props.sx
|
|
49
55
|
}, props.slotProps?.root, {
|
|
50
56
|
ref: ref,
|
|
51
|
-
children:
|
|
52
|
-
packageName: "x-data-grid-premium",
|
|
53
|
-
releaseInfo: releaseInfo
|
|
54
|
-
})
|
|
57
|
+
children: watermark
|
|
55
58
|
}))
|
|
56
59
|
});
|
|
57
60
|
});
|
|
@@ -62,7 +65,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
62
65
|
// ----------------------------------------------------------------------
|
|
63
66
|
/**
|
|
64
67
|
* Aggregation functions available on the grid.
|
|
65
|
-
* @default GRID_AGGREGATION_FUNCTIONS when `
|
|
68
|
+
* @default GRID_AGGREGATION_FUNCTIONS when `dataSource` is not provided, `{}` when `dataSource` is provided
|
|
66
69
|
*/
|
|
67
70
|
aggregationFunctions: _propTypes.default.object,
|
|
68
71
|
/**
|
|
@@ -80,7 +83,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
80
83
|
* The ref object that allows grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
81
84
|
*/
|
|
82
85
|
apiRef: _propTypes.default.shape({
|
|
83
|
-
current: _propTypes.default.object
|
|
86
|
+
current: _propTypes.default.object
|
|
84
87
|
}),
|
|
85
88
|
/**
|
|
86
89
|
* The label of the Data Grid.
|
|
@@ -179,6 +182,24 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
179
182
|
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
180
183
|
*/
|
|
181
184
|
columnVisibilityModel: _propTypes.default.object,
|
|
185
|
+
/**
|
|
186
|
+
* Data source object.
|
|
187
|
+
*/
|
|
188
|
+
dataSource: _propTypes.default.shape({
|
|
189
|
+
getAggregatedValue: _propTypes.default.func,
|
|
190
|
+
getChildrenCount: _propTypes.default.func,
|
|
191
|
+
getGroupKey: _propTypes.default.func,
|
|
192
|
+
getRows: _propTypes.default.func.isRequired,
|
|
193
|
+
updateRow: _propTypes.default.func
|
|
194
|
+
}),
|
|
195
|
+
/**
|
|
196
|
+
* Data source cache object.
|
|
197
|
+
*/
|
|
198
|
+
dataSourceCache: _propTypes.default.shape({
|
|
199
|
+
clear: _propTypes.default.func.isRequired,
|
|
200
|
+
get: _propTypes.default.func.isRequired,
|
|
201
|
+
set: _propTypes.default.func.isRequired
|
|
202
|
+
}),
|
|
182
203
|
/**
|
|
183
204
|
* If above 0, the row children will be expanded up to this depth.
|
|
184
205
|
* If equal to -1, all the row children will be expanded.
|
|
@@ -387,6 +408,8 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
387
408
|
getRowHeight: _propTypes.default.func,
|
|
388
409
|
/**
|
|
389
410
|
* Return the id of a given [[GridRowModel]].
|
|
411
|
+
* Ensure the reference of this prop is stable to avoid performance implications.
|
|
412
|
+
* It could be done by either defining the prop outside of the component or by memoizing it.
|
|
390
413
|
*/
|
|
391
414
|
getRowId: _propTypes.default.func,
|
|
392
415
|
/**
|
|
@@ -491,6 +514,18 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
491
514
|
* @default false
|
|
492
515
|
*/
|
|
493
516
|
keepNonExistentRowsSelected: _propTypes.default.bool,
|
|
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.default.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.default.number,
|
|
494
529
|
/**
|
|
495
530
|
* If `true`, a loading overlay is displayed.
|
|
496
531
|
* @default false
|
|
@@ -667,6 +702,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
667
702
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
668
703
|
*/
|
|
669
704
|
onColumnWidthChange: _propTypes.default.func,
|
|
705
|
+
/**
|
|
706
|
+
* Callback fired when a data source request fails.
|
|
707
|
+
* @param {GridGetRowsError | GridUpdateRowError} error The data source error object.
|
|
708
|
+
*/
|
|
709
|
+
onDataSourceError: _propTypes.default.func,
|
|
670
710
|
/**
|
|
671
711
|
* Callback fired when the density changes.
|
|
672
712
|
* @param {GridDensity} density New density value.
|
|
@@ -688,6 +728,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
688
728
|
* @param {GridFetchRowsParams} params With all properties from [[GridFetchRowsParams]].
|
|
689
729
|
* @param {MuiEvent<{}>} event The event object.
|
|
690
730
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
731
|
+
* @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.
|
|
691
732
|
*/
|
|
692
733
|
onFetchRows: _propTypes.default.func,
|
|
693
734
|
/**
|
|
@@ -815,6 +856,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
815
856
|
* @param {GridRowScrollEndParams} params With all properties from [[GridRowScrollEndParams]].
|
|
816
857
|
* @param {MuiEvent<{}>} event The event object.
|
|
817
858
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
859
|
+
* @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.
|
|
818
860
|
*/
|
|
819
861
|
onRowsScrollEnd: _propTypes.default.func,
|
|
820
862
|
/**
|
|
@@ -938,7 +980,10 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
938
980
|
/**
|
|
939
981
|
* Sets the row selection model of the Data Grid.
|
|
940
982
|
*/
|
|
941
|
-
rowSelectionModel: _propTypes.default
|
|
983
|
+
rowSelectionModel: _propTypes.default /* @typescript-to-proptypes-ignore */.shape({
|
|
984
|
+
ids: _propTypes.default.instanceOf(Set).isRequired,
|
|
985
|
+
type: _propTypes.default.oneOf(['exclude', 'include']).isRequired
|
|
986
|
+
}),
|
|
942
987
|
/**
|
|
943
988
|
* When `rowSelectionPropagation.descendants` is set to `true`.
|
|
944
989
|
* - Selecting a parent selects all its filtered descendants automatically.
|
|
@@ -960,6 +1005,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
960
1005
|
* Set it to 'client' if you would like enable infnite loading.
|
|
961
1006
|
* Set it to 'server' if you would like to enable lazy loading.
|
|
962
1007
|
* @default "client"
|
|
1008
|
+
* @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.
|
|
963
1009
|
*/
|
|
964
1010
|
rowsLoadingMode: _propTypes.default.oneOf(['client', 'server']),
|
|
965
1011
|
/**
|
|
@@ -978,7 +1024,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
978
1024
|
scrollbarSize: _propTypes.default.number,
|
|
979
1025
|
/**
|
|
980
1026
|
* Set the area in `px` at the bottom of the grid viewport where onRowsScrollEnd is called.
|
|
981
|
-
* If combined with `
|
|
1027
|
+
* If combined with `lazyLoading`, it defines the area where the next data request is triggered.
|
|
982
1028
|
* @default 80
|
|
983
1029
|
*/
|
|
984
1030
|
scrollEndThreshold: _propTypes.default.number,
|
|
@@ -992,6 +1038,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
992
1038
|
* @default false
|
|
993
1039
|
*/
|
|
994
1040
|
showColumnVerticalBorder: _propTypes.default.bool,
|
|
1041
|
+
/**
|
|
1042
|
+
* If `true`, the toolbar is displayed.
|
|
1043
|
+
* @default false
|
|
1044
|
+
*/
|
|
1045
|
+
showToolbar: _propTypes.default.bool,
|
|
995
1046
|
/**
|
|
996
1047
|
* Overridable components props dynamically passed to the component at rendering.
|
|
997
1048
|
*/
|
|
@@ -1041,30 +1092,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1041
1092
|
* @default false
|
|
1042
1093
|
*/
|
|
1043
1094
|
treeData: _propTypes.default.bool,
|
|
1044
|
-
unstable_dataSource: _propTypes.default.shape({
|
|
1045
|
-
getAggregatedValue: _propTypes.default.func,
|
|
1046
|
-
getChildrenCount: _propTypes.default.func,
|
|
1047
|
-
getGroupKey: _propTypes.default.func,
|
|
1048
|
-
getRows: _propTypes.default.func.isRequired,
|
|
1049
|
-
updateRow: _propTypes.default.func
|
|
1050
|
-
}),
|
|
1051
|
-
unstable_dataSourceCache: _propTypes.default.shape({
|
|
1052
|
-
clear: _propTypes.default.func.isRequired,
|
|
1053
|
-
get: _propTypes.default.func.isRequired,
|
|
1054
|
-
set: _propTypes.default.func.isRequired
|
|
1055
|
-
}),
|
|
1056
|
-
/**
|
|
1057
|
-
* Used together with `unstable_dataSource` to enable lazy loading.
|
|
1058
|
-
* If enabled, the grid stops adding `paginationModel` to the data requests (`getRows`)
|
|
1059
|
-
* and starts sending `start` and `end` values depending on the loading mode and the scroll position.
|
|
1060
|
-
* @default false
|
|
1061
|
-
*/
|
|
1062
|
-
unstable_lazyLoading: _propTypes.default.bool,
|
|
1063
|
-
/**
|
|
1064
|
-
* If positive, the Data Grid will throttle data source requests on rendered rows interval change.
|
|
1065
|
-
* @default 500
|
|
1066
|
-
*/
|
|
1067
|
-
unstable_lazyLoadingRequestThrottleMs: _propTypes.default.number,
|
|
1068
1095
|
/**
|
|
1069
1096
|
* Definition of the column rendered when the `unstable_listView` prop is enabled.
|
|
1070
1097
|
*/
|
|
@@ -1080,7 +1107,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1080
1107
|
* Use in combination with `unstable_listColumn`.
|
|
1081
1108
|
*/
|
|
1082
1109
|
unstable_listView: _propTypes.default.bool,
|
|
1083
|
-
unstable_onDataSourceError: _propTypes.default.func,
|
|
1084
1110
|
/**
|
|
1085
1111
|
* If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
|
|
1086
1112
|
* By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
|
|
@@ -1091,8 +1117,8 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1091
1117
|
virtualizeColumnsWithAutoRowHeight: _propTypes.default.bool
|
|
1092
1118
|
} : void 0;
|
|
1093
1119
|
/**
|
|
1094
|
-
*
|
|
1095
|
-
* - [DataGridPremium](https://mui.com/x/react-data-grid/
|
|
1120
|
+
* Features:
|
|
1121
|
+
* - [DataGridPremium](https://mui.com/x/react-data-grid/features/)
|
|
1096
1122
|
*
|
|
1097
1123
|
* API:
|
|
1098
1124
|
* - [DataGridPremium API](https://mui.com/x/api/data-grid/data-grid-premium/)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export { DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES } from
|
|
1
|
+
export * from "./DataGrid.js";
|
|
2
|
+
export * from "./DataGridPremium.js";
|
|
3
|
+
export { DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES } from "./useDataGridPremiumProps.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridApiPremium, GridPrivateApiPremium } from
|
|
3
|
-
import { DataGridPremiumProcessedProps } from
|
|
4
|
-
export declare const useDataGridPremiumComponent: (inputApiRef: RefObject<GridApiPremium> | undefined, props: DataGridPremiumProcessedProps) => import("react").RefObject<GridPrivateApiPremium>;
|
|
2
|
+
import { GridApiPremium, GridPrivateApiPremium } from "../models/gridApiPremium.js";
|
|
3
|
+
import { DataGridPremiumProcessedProps } from "../models/dataGridPremiumProps.js";
|
|
4
|
+
export declare const useDataGridPremiumComponent: (inputApiRef: RefObject<GridApiPremium | null> | undefined, props: DataGridPremiumProcessedProps) => import("react").RefObject<GridPrivateApiPremium>;
|
|
@@ -40,7 +40,7 @@ const useDataGridPremiumComponent = (inputApiRef, props) => {
|
|
|
40
40
|
/**
|
|
41
41
|
* Register all state initializers here.
|
|
42
42
|
*/
|
|
43
|
-
(0, _internals.useGridInitializeState)(_internals.
|
|
43
|
+
(0, _internals.useGridInitializeState)(_internals.propsStateInitializer, apiRef, props);
|
|
44
44
|
(0, _internals.useGridInitializeState)(_internals.headerFilteringStateInitializer, apiRef, props);
|
|
45
45
|
(0, _internals.useGridInitializeState)(_useGridRowGrouping.rowGroupingStateInitializer, apiRef, props);
|
|
46
46
|
(0, _internals.useGridInitializeState)(_useGridAggregation.aggregationStateInitializer, apiRef, props);
|
|
@@ -50,8 +50,8 @@ const useDataGridPremiumComponent = (inputApiRef, props) => {
|
|
|
50
50
|
(0, _internals.useGridInitializeState)(_internals.columnPinningStateInitializer, apiRef, props);
|
|
51
51
|
(0, _internals.useGridInitializeState)(_internals.columnsStateInitializer, apiRef, props);
|
|
52
52
|
(0, _internals.useGridInitializeState)(_internals.rowPinningStateInitializer, apiRef, props);
|
|
53
|
-
(0, _internals.useGridInitializeState)(_internals.paginationStateInitializer, apiRef, props);
|
|
54
53
|
(0, _internals.useGridInitializeState)(_internals.rowsStateInitializer, apiRef, props);
|
|
54
|
+
(0, _internals.useGridInitializeState)(_internals.paginationStateInitializer, apiRef, props);
|
|
55
55
|
(0, _internals.useGridInitializeState)(_internals.editingStateInitializer, apiRef, props);
|
|
56
56
|
(0, _internals.useGridInitializeState)(_internals.focusStateInitializer, apiRef, props);
|
|
57
57
|
(0, _internals.useGridInitializeState)(_internals.sortingStateInitializer, apiRef, props);
|
|
@@ -61,16 +61,16 @@ const useDataGridPremiumComponent = (inputApiRef, props) => {
|
|
|
61
61
|
(0, _internals.useGridInitializeState)(_internals.densityStateInitializer, apiRef, props);
|
|
62
62
|
(0, _internals.useGridInitializeState)(_internals.columnReorderStateInitializer, apiRef, props);
|
|
63
63
|
(0, _internals.useGridInitializeState)(_internals.columnResizeStateInitializer, apiRef, props);
|
|
64
|
-
(0, _internals.useGridInitializeState)(_internals.rowsMetaStateInitializer, apiRef, props);
|
|
65
64
|
(0, _internals.useGridInitializeState)(_internals.columnMenuStateInitializer, apiRef, props);
|
|
66
65
|
(0, _internals.useGridInitializeState)(_internals.columnGroupsStateInitializer, apiRef, props);
|
|
67
66
|
(0, _internals.useGridInitializeState)(_internals.virtualizationStateInitializer, apiRef, props);
|
|
68
67
|
(0, _internals.useGridInitializeState)(_internals.dataSourceStateInitializer, apiRef, props);
|
|
68
|
+
(0, _internals.useGridInitializeState)(_internals.dimensionsStateInitializer, apiRef, props);
|
|
69
|
+
(0, _internals.useGridInitializeState)(_internals.rowsMetaStateInitializer, apiRef, props);
|
|
69
70
|
(0, _internals.useGridInitializeState)(_internals.listViewStateInitializer, apiRef, props);
|
|
70
71
|
(0, _useGridRowGrouping.useGridRowGrouping)(apiRef, props);
|
|
71
72
|
(0, _internals.useGridHeaderFiltering)(apiRef, props);
|
|
72
73
|
(0, _internals.useGridTreeData)(apiRef, props);
|
|
73
|
-
(0, _useGridDataSourcePremium.useGridDataSourcePremium)(apiRef, props);
|
|
74
74
|
(0, _useGridAggregation.useGridAggregation)(apiRef, props);
|
|
75
75
|
(0, _internals.useGridKeyboardNavigation)(apiRef, props);
|
|
76
76
|
(0, _internals.useGridRowSelection)(apiRef, props);
|
|
@@ -108,6 +108,7 @@ const useDataGridPremiumComponent = (inputApiRef, props) => {
|
|
|
108
108
|
(0, _internals.useGridDimensions)(apiRef, props);
|
|
109
109
|
(0, _internals.useGridEvents)(apiRef, props);
|
|
110
110
|
(0, _internals.useGridStatePersistence)(apiRef);
|
|
111
|
+
(0, _useGridDataSourcePremium.useGridDataSourcePremium)(apiRef, props);
|
|
111
112
|
(0, _internals.useGridVirtualization)(apiRef, props);
|
|
112
113
|
(0, _internals.useGridListView)(apiRef, props);
|
|
113
114
|
return apiRef;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataGridPremiumProps, DataGridPremiumProcessedProps, DataGridPremiumPropsWithDefaultValue } from
|
|
1
|
+
import { DataGridPremiumProps, DataGridPremiumProcessedProps, DataGridPremiumPropsWithDefaultValue } from "../models/dataGridPremiumProps.js";
|
|
2
2
|
/**
|
|
3
3
|
* The default values of `DataGridPremiumPropsWithDefaultValue` to inject in the props of DataGridPremium.
|
|
4
4
|
*/
|
|
5
5
|
export declare const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES: DataGridPremiumPropsWithDefaultValue;
|
|
6
|
-
export declare const useDataGridPremiumProps: (inProps: DataGridPremiumProps) => DataGridPremiumProcessedProps;
|
|
6
|
+
export declare const useDataGridPremiumProps: (inProps: DataGridPremiumProps) => DataGridPremiumProcessedProps;
|
|
@@ -15,7 +15,7 @@ var _aggregation = require("../hooks/features/aggregation");
|
|
|
15
15
|
var _dataGridPremiumDefaultSlotsComponents = require("../constants/dataGridPremiumDefaultSlotsComponents");
|
|
16
16
|
const getDataGridPremiumForcedProps = themedProps => (0, _extends2.default)({
|
|
17
17
|
signature: _xDataGridPro.GridSignature.DataGridPremium
|
|
18
|
-
}, themedProps.
|
|
18
|
+
}, themedProps.dataSource ? {
|
|
19
19
|
filterMode: 'server',
|
|
20
20
|
sortingMode: 'server',
|
|
21
21
|
paginationMode: 'server'
|
|
@@ -53,7 +53,7 @@ const useDataGridPremiumProps = inProps => {
|
|
|
53
53
|
defaultSlots,
|
|
54
54
|
slots: themedProps.slots
|
|
55
55
|
}), [themedProps.slots]);
|
|
56
|
-
return React.useMemo(() => (0, _extends2.default)({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps.
|
|
56
|
+
return React.useMemo(() => (0, _extends2.default)({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps.dataSource ? {
|
|
57
57
|
aggregationFunctions: {}
|
|
58
58
|
} : {}, themedProps, {
|
|
59
59
|
localeText,
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ This component has the following peer dependencies that you need to install as w
|
|
|
15
15
|
|
|
16
16
|
```json
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@mui/material": "^5.15.14 || ^6.0.0",
|
|
18
|
+
"@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0",
|
|
19
19
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
20
20
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
21
21
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridColumnHeaderParams } from '@mui/x-data-grid';
|
|
3
|
-
import type
|
|
3
|
+
import { type GridBaseColDef } from '@mui/x-data-grid/internals';
|
|
4
4
|
declare function GridAggregationHeader(props: GridColumnHeaderParams & {
|
|
5
|
-
|
|
5
|
+
renderHeader: GridBaseColDef['renderHeader'];
|
|
6
6
|
}): React.JSX.Element | null;
|
|
7
|
-
export { GridAggregationHeader };
|
|
7
|
+
export { GridAggregationHeader };
|
|
@@ -12,6 +12,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
13
13
|
var _styles = require("@mui/material/styles");
|
|
14
14
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
15
|
+
var _internals = require("@mui/x-data-grid/internals");
|
|
15
16
|
var _gridAggregationUtils = require("../hooks/features/aggregation/gridAggregationUtils");
|
|
16
17
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
17
18
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
@@ -20,7 +21,12 @@ const _excluded = ["renderHeader"];
|
|
|
20
21
|
const GridAggregationHeaderRoot = (0, _styles.styled)('div', {
|
|
21
22
|
name: 'MuiDataGrid',
|
|
22
23
|
slot: 'AggregationColumnHeader',
|
|
23
|
-
overridesResolver: (
|
|
24
|
+
overridesResolver: (props, styles) => {
|
|
25
|
+
const {
|
|
26
|
+
ownerState
|
|
27
|
+
} = props;
|
|
28
|
+
return [styles.aggregationColumnHeader, ownerState.colDef.headerAlign === 'left' && styles['aggregationColumnHeader--alignLeft'], ownerState.colDef.headerAlign === 'center' && styles['aggregationColumnHeader--alignCenter'], ownerState.colDef.headerAlign === 'right' && styles['aggregationColumnHeader--alignRight']];
|
|
29
|
+
}
|
|
24
30
|
})({
|
|
25
31
|
display: 'flex',
|
|
26
32
|
flexDirection: 'column',
|
|
@@ -33,17 +39,12 @@ const GridAggregationHeaderRoot = (0, _styles.styled)('div', {
|
|
|
33
39
|
});
|
|
34
40
|
const GridAggregationFunctionLabel = (0, _styles.styled)('div', {
|
|
35
41
|
name: 'MuiDataGrid',
|
|
36
|
-
slot: 'AggregationColumnHeaderLabel'
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
fontSize: theme.typography.caption.fontSize,
|
|
43
|
-
lineHeight: 'normal',
|
|
44
|
-
color: theme.palette.text.secondary,
|
|
45
|
-
marginTop: -1
|
|
46
|
-
};
|
|
42
|
+
slot: 'AggregationColumnHeaderLabel'
|
|
43
|
+
})({
|
|
44
|
+
font: _internals.vars.typography.font.small,
|
|
45
|
+
lineHeight: 'normal',
|
|
46
|
+
color: _internals.vars.colors.foreground.muted,
|
|
47
|
+
marginTop: -1
|
|
47
48
|
});
|
|
48
49
|
const useUtilityClasses = ownerState => {
|
|
49
50
|
const {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const GridAggregationRowOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement>> | React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export { GridAggregationRowOverlay };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.GridAggregationRowOverlay = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
12
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
13
|
+
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
14
|
+
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
15
|
+
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
16
|
+
var _gridAggregationSelectors = require("../hooks/features/aggregation/gridAggregationSelectors");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
const useUtilityClasses = ownerState => {
|
|
19
|
+
const {
|
|
20
|
+
classes
|
|
21
|
+
} = ownerState;
|
|
22
|
+
const slots = {
|
|
23
|
+
root: ['aggregationRowOverlayWrapper']
|
|
24
|
+
};
|
|
25
|
+
return (0, _composeClasses.default)(slots, _xDataGridPro.getDataGridUtilityClass, classes);
|
|
26
|
+
};
|
|
27
|
+
const GridAggregationRowOverlay = exports.GridAggregationRowOverlay = (0, _forwardRef.forwardRef)(function GridAggregationRowOverlay(props, forwardedRef) {
|
|
28
|
+
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
29
|
+
const rootProps = (0, _xDataGridPro.useGridRootProps)();
|
|
30
|
+
const classes = useUtilityClasses({
|
|
31
|
+
classes: rootProps.classes
|
|
32
|
+
});
|
|
33
|
+
const aggregationModel = (0, _internals.useGridSelector)(apiRef, _gridAggregationSelectors.gridAggregationModelSelector);
|
|
34
|
+
const visibleColumns = new Set(Object.keys(aggregationModel));
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
|
+
className: classes.root,
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.GridSkeletonLoadingOverlayInner, (0, _extends2.default)({}, props, {
|
|
38
|
+
skeletonRowsCount: 1,
|
|
39
|
+
visibleColumns: visibleColumns,
|
|
40
|
+
showFirstRowBorder: true,
|
|
41
|
+
ref: forwardedRef
|
|
42
|
+
}))
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.GridBottomContainer = GridBottomContainer;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
|
+
var _system = require("@mui/system");
|
|
14
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
+
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
16
|
+
var _useGridPrivateApiContext = require("../hooks/utils/useGridPrivateApiContext");
|
|
17
|
+
var _GridAggregationRowOverlay = require("./GridAggregationRowOverlay");
|
|
18
|
+
var _reexports = require("../typeOverloads/reexports");
|
|
19
|
+
var _hooks = require("../hooks");
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
const _excluded = ["children"];
|
|
22
|
+
const useUtilityClasses = () => {
|
|
23
|
+
const slots = {
|
|
24
|
+
root: ['bottomContainer']
|
|
25
|
+
};
|
|
26
|
+
return (0, _composeClasses.default)(slots, _xDataGridPro.getDataGridUtilityClass, {});
|
|
27
|
+
};
|
|
28
|
+
const Element = (0, _system.styled)('div')({
|
|
29
|
+
position: 'sticky',
|
|
30
|
+
zIndex: 40,
|
|
31
|
+
bottom: 'calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))'
|
|
32
|
+
});
|
|
33
|
+
function GridBottomContainer(props) {
|
|
34
|
+
const classes = useUtilityClasses();
|
|
35
|
+
const rootProps = (0, _reexports.useGridRootProps)();
|
|
36
|
+
const apiRef = (0, _useGridPrivateApiContext.useGridPrivateApiContext)();
|
|
37
|
+
const isLoading = (0, _xDataGridPro.useGridSelector)(apiRef, _xDataGridPro.gridRowsLoadingSelector);
|
|
38
|
+
const tree = (0, _xDataGridPro.useGridSelector)(apiRef, _xDataGridPro.gridRowTreeSelector);
|
|
39
|
+
const aggregationModel = (0, _xDataGridPro.useGridSelector)(apiRef, _hooks.gridAggregationModelSelector);
|
|
40
|
+
const aggregationPosition = rootProps.getAggregationPosition(tree[_xDataGridPro.GRID_ROOT_GROUP_ID]);
|
|
41
|
+
const hasAggregation = React.useMemo(() => Object.keys(aggregationModel).length > 0, [aggregationModel]);
|
|
42
|
+
const {
|
|
43
|
+
children
|
|
44
|
+
} = props,
|
|
45
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Element, (0, _extends2.default)({}, other, {
|
|
47
|
+
className: (0, _clsx.default)(classes.root, _xDataGridPro.gridClasses['container--bottom']),
|
|
48
|
+
role: "presentation",
|
|
49
|
+
children: hasAggregation && isLoading && aggregationPosition === 'footer' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridAggregationRowOverlay.GridAggregationRowOverlay, {}) : children
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
@@ -2,6 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
3
3
|
declare function GridColumnMenuAggregationItem(props: GridColumnMenuItemProps): React.JSX.Element;
|
|
4
4
|
declare namespace GridColumnMenuAggregationItem {
|
|
5
|
-
|
|
5
|
+
var propTypes: any;
|
|
6
6
|
}
|
|
7
|
-
export { GridColumnMenuAggregationItem };
|
|
7
|
+
export { GridColumnMenuAggregationItem };
|
|
@@ -13,8 +13,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var React = _react;
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
15
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
16
|
-
var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
|
17
|
-
var _InputLabel = _interopRequireDefault(require("@mui/material/InputLabel"));
|
|
18
16
|
var _utils = require("@mui/utils");
|
|
19
17
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
20
18
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
@@ -34,8 +32,8 @@ function GridColumnMenuAggregationItem(props) {
|
|
|
34
32
|
const availableAggregationFunctions = React.useMemo(() => (0, _gridAggregationUtils.getAvailableAggregationFunctions)({
|
|
35
33
|
aggregationFunctions: rootProps.aggregationFunctions,
|
|
36
34
|
colDef,
|
|
37
|
-
isDataSource: !!rootProps.
|
|
38
|
-
}), [colDef, rootProps.aggregationFunctions, rootProps.
|
|
35
|
+
isDataSource: !!rootProps.dataSource
|
|
36
|
+
}), [colDef, rootProps.aggregationFunctions, rootProps.dataSource]);
|
|
39
37
|
const _ref = rootProps.slotProps?.baseSelect || {},
|
|
40
38
|
{
|
|
41
39
|
native: isBaseSelectNative = false
|
|
@@ -51,12 +49,12 @@ function GridColumnMenuAggregationItem(props) {
|
|
|
51
49
|
colDef,
|
|
52
50
|
aggregationFunctionName,
|
|
53
51
|
aggregationFunction: rootProps.aggregationFunctions[aggregationFunctionName],
|
|
54
|
-
isDataSource: !!rootProps.
|
|
52
|
+
isDataSource: !!rootProps.dataSource
|
|
55
53
|
})) {
|
|
56
54
|
return aggregationFunctionName;
|
|
57
55
|
}
|
|
58
56
|
return '';
|
|
59
|
-
}, [rootProps.aggregationFunctions, rootProps.
|
|
57
|
+
}, [rootProps.aggregationFunctions, rootProps.dataSource, aggregationModel, colDef]);
|
|
60
58
|
const handleAggregationItemChange = event => {
|
|
61
59
|
const newAggregationItem = event.target?.value || undefined;
|
|
62
60
|
const currentModel = (0, _gridAggregationSelectors.gridAggregationModelSelector)(apiRef);
|
|
@@ -85,50 +83,42 @@ function GridColumnMenuAggregationItem(props) {
|
|
|
85
83
|
fontSize: "small"
|
|
86
84
|
}),
|
|
87
85
|
onKeyDown: handleMenuItemKeyDown,
|
|
88
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
89
|
-
|
|
86
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(rootProps.slots.baseSelect, (0, _extends2.default)({
|
|
87
|
+
labelId: `${id}-label`,
|
|
88
|
+
id: `${id}-input`,
|
|
89
|
+
value: selectedAggregationRule,
|
|
90
|
+
label: label,
|
|
91
|
+
onChange: handleAggregationItemChange,
|
|
92
|
+
onKeyDown: handleSelectKeyDown,
|
|
93
|
+
onBlur: event => event.stopPropagation(),
|
|
94
|
+
native: isBaseSelectNative,
|
|
90
95
|
fullWidth: true,
|
|
91
|
-
|
|
96
|
+
size: "small",
|
|
97
|
+
style: {
|
|
92
98
|
minWidth: 150
|
|
93
99
|
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
id: `${id}-input`,
|
|
102
|
-
value: selectedAggregationRule,
|
|
103
|
-
label: label,
|
|
104
|
-
color: "primary",
|
|
105
|
-
onChange: handleAggregationItemChange,
|
|
106
|
-
MenuProps: {
|
|
107
|
-
PaperProps: {
|
|
108
|
-
onKeyDown: handleSelectKeyDown
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
onBlur: event => event.stopPropagation(),
|
|
100
|
+
slotProps: {
|
|
101
|
+
htmlInput: {
|
|
102
|
+
ref: inputRef
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, baseSelectProps, {
|
|
106
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseSelectOption, (0, _extends2.default)({}, baseSelectOptionProps, {
|
|
112
107
|
native: isBaseSelectNative,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
aggregationFunction: rootProps.aggregationFunctions[aggFunc]
|
|
128
|
-
}
|
|
129
|
-
})))]
|
|
130
|
-
}))]
|
|
131
|
-
})
|
|
108
|
+
value: "",
|
|
109
|
+
children: "..."
|
|
110
|
+
})), availableAggregationFunctions.map(aggFunc => /*#__PURE__*/(0, _react.createElement)(rootProps.slots.baseSelectOption, (0, _extends2.default)({}, baseSelectOptionProps, {
|
|
111
|
+
key: aggFunc,
|
|
112
|
+
value: aggFunc,
|
|
113
|
+
native: isBaseSelectNative
|
|
114
|
+
}), (0, _gridAggregationUtils.getAggregationFunctionLabel)({
|
|
115
|
+
apiRef,
|
|
116
|
+
aggregationRule: {
|
|
117
|
+
aggregationFunctionName: aggFunc,
|
|
118
|
+
aggregationFunction: rootProps.aggregationFunctions[aggFunc]
|
|
119
|
+
}
|
|
120
|
+
})))]
|
|
121
|
+
}))
|
|
132
122
|
});
|
|
133
123
|
}
|
|
134
124
|
process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes = {
|