@mui/x-data-grid-premium 8.0.0-alpha.10 → 8.0.0-alpha.12
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 +267 -2
- package/DataGridPremium/DataGrid.d.ts +1 -1
- package/DataGridPremium/DataGridPremium.d.ts +6 -6
- package/DataGridPremium/DataGridPremium.js +20 -6
- 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/components/GridAggregationHeader.d.ts +2 -2
- 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 +32 -42
- 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 +3 -6
- package/components/GridExcelExportMenuItem.d.ts +3 -3
- package/components/GridFooterCell.d.ts +2 -2
- package/components/GridGroupingColumnFooterCell.d.ts +1 -1
- package/components/GridGroupingColumnLeafCell.d.ts +1 -1
- package/components/GridGroupingCriteriaCell.d.ts +2 -2
- package/components/GridPremiumColumnMenu.d.ts +26 -26
- package/components/index.d.ts +5 -5
- package/components/promptControl/GridToolbarPromptControl.d.ts +22 -22
- 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 +3 -1
- package/esm/DataGridPremium/DataGrid.d.ts +8 -0
- package/esm/DataGridPremium/DataGridPremium.d.ts +16 -0
- package/esm/DataGridPremium/DataGridPremium.js +20 -6
- 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/components/GridAggregationHeader.d.ts +7 -0
- 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 +32 -42
- 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 +4 -7
- package/esm/components/GridExcelExportMenuItem.d.ts +9 -0
- package/esm/components/GridFooterCell.d.ts +9 -0
- package/esm/components/GridGroupingColumnFooterCell.d.ts +4 -0
- package/esm/components/GridGroupingColumnLeafCell.d.ts +4 -0
- package/esm/components/GridGroupingCriteriaCell.d.ts +7 -0
- package/esm/components/GridPremiumColumnMenu.d.ts +33 -0
- package/esm/components/index.d.ts +5 -0
- package/esm/components/promptControl/GridToolbarPromptControl.d.ts +26 -0
- 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 +3 -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 +0 -2
- package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +4 -0
- 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 +2 -2
- 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 +10 -4
- 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 +3 -1
- 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/useGridRowGrouping.d.ts +11 -0
- package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +0 -1
- package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +4 -0
- 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/index.d.ts +29 -0
- package/esm/index.js +7 -0
- 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 +163 -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 +0 -2
- package/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +3 -3
- 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 +2 -2
- package/hooks/features/dataSource/models.d.ts +41 -34
- package/hooks/features/dataSource/useGridDataSourcePremium.d.ts +3 -3
- package/hooks/features/dataSource/useGridDataSourcePremium.js +10 -4
- 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 +3 -1
- package/hooks/features/rowGrouping/index.d.ts +3 -3
- package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +3 -3
- package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +3 -3
- package/hooks/features/rowGrouping/useGridRowGrouping.js +0 -1
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +3 -3
- 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 +2 -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/index.d.ts +10 -12
- package/index.js +1 -1
- 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 -134
- 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 +20 -6
- 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/components/GridAggregationHeader.d.ts +7 -0
- 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 +32 -42
- 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 +4 -7
- package/modern/components/GridExcelExportMenuItem.d.ts +9 -0
- package/modern/components/GridFooterCell.d.ts +9 -0
- package/modern/components/GridGroupingColumnFooterCell.d.ts +4 -0
- package/modern/components/GridGroupingColumnLeafCell.d.ts +4 -0
- package/modern/components/GridGroupingCriteriaCell.d.ts +7 -0
- package/modern/components/GridPremiumColumnMenu.d.ts +33 -0
- package/modern/components/index.d.ts +5 -0
- package/modern/components/promptControl/GridToolbarPromptControl.d.ts +26 -0
- 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 +3 -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 +0 -2
- package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +4 -0
- 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 +2 -2
- 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 +10 -4
- 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 +3 -1
- 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/useGridRowGrouping.d.ts +11 -0
- package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +0 -1
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +4 -0
- 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/index.d.ts +29 -0
- package/modern/index.js +1 -1
- 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 +163 -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 +39 -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
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,270 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.0.0-alpha.12
|
|
9
|
+
|
|
10
|
+
_Feb 17, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 📦 Data Grid [data source](https://next.mui.com/x/react-data-grid/server-side-data/) is now available in the Community plan
|
|
15
|
+
- ⚡ Improve Data Grid Excel export serialization performance
|
|
16
|
+
- 🚫 Add ["No columns" overlay](https://next.mui.com/x/react-data-grid/overlays/#no-columns-overlay) to Data Grid
|
|
17
|
+
- 🌍 Improve Polish (pl-PL) and Ukrainian (uk-UA) locales on the Data Grid
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
|
|
20
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
21
|
+
@Neonin, @nusr, and @pawelkula.
|
|
22
|
+
Following are all team members who have contributed to this release:
|
|
23
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @romgrk, and @mapache-salvaje.
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- The `main--hasSkeletonLoadingOverlay` class has been renamed to `main--hiddenContent` and is now also applied when the "No columns" overlay is displayed.
|
|
30
|
+
|
|
31
|
+
- The `apiRef.current.forceUpdate()` method was removed. Use selectors combined with `useGridSelector()` hook to react to changes in the state.
|
|
32
|
+
|
|
33
|
+
- The selectors signature has been updated. They are only accepting `apiRef` as a first argument and `instanceId` is no longer the third argument.
|
|
34
|
+
|
|
35
|
+
```diff
|
|
36
|
+
-mySelector(state, arguments, instanceId)
|
|
37
|
+
+mySelector(apiRef, arguments)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid@8.0.0-alpha.12`
|
|
41
|
+
|
|
42
|
+
- [DataGrid] Add "No columns" overlay (#16543) @KenanYusuf
|
|
43
|
+
- [DataGrid] All selectors accept only `apiRef` as first argument (#16198) @arminmeh
|
|
44
|
+
- [DataGrid] Avoid `undefined` value for pagination `rowCount` (#16488) @cherniavskii
|
|
45
|
+
- [DataGrid] Create the base Checkbox slot (#16445) @romgrk
|
|
46
|
+
- [DataGrid] Create the base Input slot (#16443) @romgrk
|
|
47
|
+
- [DataGrid] Create the base MenuList slot (#16481) @romgrk
|
|
48
|
+
- [DataGrid] Create the base Popper slot (#16362) @romgrk
|
|
49
|
+
- [DataGrid] Create the base Select slot (#16394) @romgrk
|
|
50
|
+
- [DataGrid] Create the base Switch slot (#16527) @romgrk
|
|
51
|
+
- [DataGrid] Extract `getRowId()` API method as a selector (#16487) @MBilalShafi
|
|
52
|
+
- [DataGrid] Fix the `onClock` prop of the base Select slot (#16557) @romgrk
|
|
53
|
+
- [DataGrid] Go to the first page when sorting/filtering is applied (#16447) @arminmeh
|
|
54
|
+
- [DataGrid] Make base data source available in the Community plan (#16359) @MBilalShafi
|
|
55
|
+
- [DataGrid] Remove `apiRef.current.forceUpdate()` method (#16560) @MBilalShafi
|
|
56
|
+
- [DataGrid] Fix the unexpected behavior of the pagination when using `-1` for "All" rows per page (#16485) @nusr
|
|
57
|
+
- [l10n] Improve Polish (pl-PL) locale (#16123) @pawelkula
|
|
58
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#16463) @Neonin
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.12` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
61
|
+
|
|
62
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.12`.
|
|
63
|
+
|
|
64
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.12` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
65
|
+
|
|
66
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.12`, plus:
|
|
67
|
+
|
|
68
|
+
- [DataGridPremium] Fix Excel export Web Worker demo not working in dev mode (#16517) @cherniavskii
|
|
69
|
+
- [DataGridPremium] Fix loading issue + add skeleton overlay (#16282) @MBilalShafi
|
|
70
|
+
- [DataGridPremium] Improve Excel export serialization performance (#16526) @cherniavskii
|
|
71
|
+
- [DataGridPremium] Namespace Excel export worker (#16020) @oliviertassinari
|
|
72
|
+
|
|
73
|
+
### Date and Time Pickers
|
|
74
|
+
|
|
75
|
+
#### Breaking changes
|
|
76
|
+
|
|
77
|
+
- The `aria-label` on the `<Clock />` component and Time Picker opening button has been fixed to rely on the set `ampm` property instead of defaulting to the user's locale.
|
|
78
|
+
|
|
79
|
+
- The following unused formats have been removed from the adapters and can no longer be overridden via the `dateFormats` prop on the `<LocalizationProvider />` component:
|
|
80
|
+
|
|
81
|
+
- `fullTime` - please use `fullTime12h` and `fullTime24h` instead:
|
|
82
|
+
```diff
|
|
83
|
+
<LocalizationProvider
|
|
84
|
+
dateFormats={{
|
|
85
|
+
- fullTime: 'LT',
|
|
86
|
+
+ fullTime12h: 'hh:mm A',
|
|
87
|
+
+ fullTime24h: 'hh:mm',
|
|
88
|
+
}}
|
|
89
|
+
>
|
|
90
|
+
```
|
|
91
|
+
- `keyboardDateTime` - please use `keyboardDateTime12h` and `keyboardDateTime24h` instead:
|
|
92
|
+
```diff
|
|
93
|
+
<LocalizationProvider
|
|
94
|
+
dateFormats={{
|
|
95
|
+
- keyboardDateTime: 'DD.MM.YYYY | LT',
|
|
96
|
+
+ keyboardDateTime12h: 'DD.MM.YYYY | hh:mm A',
|
|
97
|
+
+ keyboardDateTime24h: 'DD.MM.YYYY | hh:mm',
|
|
98
|
+
}}
|
|
99
|
+
>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.12`
|
|
103
|
+
|
|
104
|
+
- [pickers] Fix time related aria labels to depend on `ampm` flag value (#16572) @LukasTy
|
|
105
|
+
- [pickers] Remove unused adapter formats (#16522) @LukasTy
|
|
106
|
+
|
|
107
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.12` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
108
|
+
|
|
109
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.12`, plus:
|
|
110
|
+
|
|
111
|
+
- [DateRangePicker] Avoid unnecessary field section focusing (#16474) @LukasTy
|
|
112
|
+
|
|
113
|
+
### Charts
|
|
114
|
+
|
|
115
|
+
#### Breaking changes
|
|
116
|
+
|
|
117
|
+
- The `useSeries` hook family has been stabilized and renamed accordingly — [Learn more](https://next.mui.com/x/migration/migration-charts-v7/#stabilize-useseries-and-usexxxseries-hooks-✅)
|
|
118
|
+
|
|
119
|
+
#### `@mui/x-charts@8.0.0-alpha.12`
|
|
120
|
+
|
|
121
|
+
- [charts] Add docs for scatter "Size" section (#16556) @bernardobelchior
|
|
122
|
+
- [charts] Add `test:performance:browser` script #16600 @bernardobelchior
|
|
123
|
+
- [charts] Add warning when using unknown ids in `useXxxSeries` hooks (#16552) @JCQuintas
|
|
124
|
+
- [charts] Divide the logic for `useXxxSeries` into `useXxxSeriesContext` (#16546) @JCQuintas
|
|
125
|
+
- [charts] Document plugins for internal use (#16504) @JCQuintas
|
|
126
|
+
- [charts] Fix internal typo (#16524) @alexfauquette
|
|
127
|
+
- [charts] Fix type overloads (#16581) @JCQuintas
|
|
128
|
+
- [charts] Fix zoom filter regression (#16507) @alexfauquette
|
|
129
|
+
- [charts] Improve tooltip placement in mobile (#16553) @bernardobelchior
|
|
130
|
+
- [charts] Let the `useXxxSeries` support array of ids and document them (#15545) @JCQuintas
|
|
131
|
+
- [charts] Memoize some tooltip internals (#16564) @alexfauquette
|
|
132
|
+
- [charts] Move Voronoi handler in a dedicated plugin (#16470) @alexfauquette
|
|
133
|
+
- [charts] Performance tests: set license on setup. Update vitest minor version. (#16525) @bernardobelchior
|
|
134
|
+
- [charts] Propagate the axis scale to the `valueFormatter` (#16555) @alexfauquette
|
|
135
|
+
- [charts] Remove `colors` prop from `SparkLineChart`. (#16494) @bernardobelchior
|
|
136
|
+
- [charts] Stabilize series hooks (`useSeries`, `usePieSeries`, etc.) (#16459) @bernardobelchior
|
|
137
|
+
|
|
138
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.12` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
139
|
+
|
|
140
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.12`.
|
|
141
|
+
|
|
142
|
+
### Tree View
|
|
143
|
+
|
|
144
|
+
#### `@mui/x-tree-view@8.0.0-alpha.12`
|
|
145
|
+
|
|
146
|
+
Internal changes.
|
|
147
|
+
|
|
148
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.12` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
149
|
+
|
|
150
|
+
Same changes as in `@mui/x-tree-view@8.0.0-alpha.12`.
|
|
151
|
+
|
|
152
|
+
### Docs
|
|
153
|
+
|
|
154
|
+
- [docs] Add demo for Scatter Chart with linked points (#16505) @bernardobelchior
|
|
155
|
+
- [docs] Improve license installation page (#16403) @michelengelen
|
|
156
|
+
- [docs] Standardize getting started docs across all packages (#16302) @mapache-salvaje
|
|
157
|
+
|
|
158
|
+
### Core
|
|
159
|
+
|
|
160
|
+
- [core] Update charts folder structure (#16471) @alexfauquette
|
|
161
|
+
- [code-infra] Bump @mui/monorepo (#16422) @LukasTy
|
|
162
|
+
- [code-infra] Fix lock file (#16562) @LukasTy
|
|
163
|
+
- [code-infra] Fix root package version (#16503) @JCQuintas
|
|
164
|
+
- [code-infra] Update internal packages to `next` releases (#16423) @LukasTy
|
|
165
|
+
- [code-infra] Update package layout for better ESM support (#14386) @Janpot
|
|
166
|
+
- [code-infra] Update peer dependencies for v8 (#16563) @Janpot
|
|
167
|
+
|
|
168
|
+
## 8.0.0-alpha.11
|
|
169
|
+
|
|
170
|
+
_Feb 7, 2025_
|
|
171
|
+
|
|
172
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
173
|
+
|
|
174
|
+
- ⚡ Mount and resize performance improvements for the Data Grid
|
|
175
|
+
|
|
176
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
177
|
+
@lauri865.
|
|
178
|
+
Following are all team members who have contributed to this release:
|
|
179
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @Janpot, @KenanYusuf, @LukasTy, @MBilalShafi, @noraleonte, @romgrk.
|
|
180
|
+
|
|
181
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
182
|
+
|
|
183
|
+
### Data Grid
|
|
184
|
+
|
|
185
|
+
#### Breaking changes
|
|
186
|
+
|
|
187
|
+
- `createUseGridApiEventHandler()` is not exported anymore.
|
|
188
|
+
- The `filteredRowsLookup` object of the filter state does not contain `true` values anymore. If the row is filtered out, the value is `false`. Otherwise, the row id is not present in the object.
|
|
189
|
+
This change only impacts you if you relied on `filteredRowsLookup` to get ids of filtered rows. In this case,use `gridDataRowIdsSelector` selector to get row ids and check `filteredRowsLookup` for `false` values:
|
|
190
|
+
|
|
191
|
+
```diff
|
|
192
|
+
const filteredRowsLookup = gridFilteredRowsLookupSelector(apiRef);
|
|
193
|
+
-const filteredRowIds = Object.keys(filteredRowsLookup).filter((rowId) => filteredRowsLookup[rowId] === true);
|
|
194
|
+
+const rowIds = gridDataRowIdsSelector(apiRef);
|
|
195
|
+
+const filteredRowIds = rowIds.filter((rowId) => filteredRowsLookup[rowId] !== false);
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
- The `visibleRowsLookup` state does not contain `true` values anymore. If the row is not visible, the value is `false`. Otherwise, the row id is not present in the object:
|
|
199
|
+
|
|
200
|
+
```diff
|
|
201
|
+
const visibleRowsLookup = gridVisibleRowsLookupSelector(apiRef);
|
|
202
|
+
-const isRowVisible = visibleRowsLookup[rowId] === true;
|
|
203
|
+
+const isRowVisible = visibleRowsLookup[rowId] !== false;
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
#### `@mui/x-data-grid@8.0.0-alpha.11`
|
|
207
|
+
|
|
208
|
+
- [DataGrid] Avoid `<GridRoot />` double-render pass on mount in SPA mode (#15648) @lauri865
|
|
209
|
+
- [DataGrid] Fix loading overlay not in sync with scroll (#16437) @MBilalShafi
|
|
210
|
+
- [DataGrid] Refactor: remove material `MenuList` import (#16444) @romgrk
|
|
211
|
+
- [DataGrid] Refactor: simplify `useGridApiEventHandler()` (#16479) @romgrk
|
|
212
|
+
|
|
213
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.11` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
214
|
+
|
|
215
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.11`, plus:
|
|
216
|
+
|
|
217
|
+
- [DataGridPro] Fix the return type of `useGridApiContext()` for Pro and Premium packages on React < 19 (#16441) @arminmeh
|
|
218
|
+
|
|
219
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.11` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
220
|
+
|
|
221
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.11`, plus:
|
|
222
|
+
|
|
223
|
+
- [DataGridPremium] Fix "no rows" overlay not showing with active aggregation (#16466) @KenanYusuf
|
|
224
|
+
|
|
225
|
+
### Date and Time Pickers
|
|
226
|
+
|
|
227
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.11`
|
|
228
|
+
|
|
229
|
+
Internal changes.
|
|
230
|
+
|
|
231
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.11` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
232
|
+
|
|
233
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.11`, plus:
|
|
234
|
+
|
|
235
|
+
- [DateRangeCalendar] Support arrow navigation with multiple months rendered (#16363) @flaviendelangle
|
|
236
|
+
- [DateRangePicker] Fix `currentMonthCalendarPosition` prop behavior on mobile (#16455) @LukasTy
|
|
237
|
+
- [DateRangePicker] Fix vertical alignment for multi input fields (#16489) @noraleonte
|
|
238
|
+
|
|
239
|
+
### Charts
|
|
240
|
+
|
|
241
|
+
#### `@mui/x-charts@8.0.0-alpha.11`
|
|
242
|
+
|
|
243
|
+
- [charts] Add `color` prop to `Sparkline` and deprecate `colors` (#16477) @bernardobelchior
|
|
244
|
+
- [charts] Make typescript more flexible about plugins and their params (#16478) @alexfauquette
|
|
245
|
+
- [charts] Remove component for axis event listener (#16314) @alexfauquette
|
|
246
|
+
|
|
247
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.11` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
248
|
+
|
|
249
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.11`.
|
|
250
|
+
|
|
251
|
+
### Tree View
|
|
252
|
+
|
|
253
|
+
#### `@mui/x-tree-view@8.0.0-alpha.11`
|
|
254
|
+
|
|
255
|
+
Internal changes.
|
|
256
|
+
|
|
257
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.11` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
258
|
+
|
|
259
|
+
Same changes as in `@mui/x-tree-view@8.0.0-alpha.11`.
|
|
260
|
+
|
|
261
|
+
### Docs
|
|
262
|
+
|
|
263
|
+
- [docs] Update charts colors default value (#16484) @bernardobelchior
|
|
264
|
+
|
|
265
|
+
### Core
|
|
266
|
+
|
|
267
|
+
- [core] Fix corepack and pnpm installation in CircleCI (#16434) @flaviendelangle
|
|
268
|
+
- [code-infra] Update monorepo (#16112) @Janpot
|
|
269
|
+
- [test] Avoid test warning when running on React 18 (#16486) @LukasTy
|
|
270
|
+
- [test] Disable `react-transition-group` transitions in unit testing (#16288) @lauri865
|
|
271
|
+
|
|
8
272
|
## 8.0.0-alpha.10
|
|
9
273
|
|
|
10
274
|
_Jan 30, 2025_
|
|
@@ -50,6 +314,7 @@ Following are all team members who have contributed to this release:
|
|
|
50
314
|
+ },
|
|
51
315
|
});
|
|
52
316
|
```
|
|
317
|
+
|
|
53
318
|
- The `detailPanels`, `pinnedColumns`, and `pinnedRowsRenderZone` classes have been removed.
|
|
54
319
|
- Return type of the `useGridApiRef()` hook and the type of `apiRef` prop are updated to explicitly include the possibilty of `null`. In addition to this, `useGridApiRef()` returns a reference that is initialized with `null` instead of `{}`.
|
|
55
320
|
|
|
@@ -91,7 +356,7 @@ Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.10`.
|
|
|
91
356
|
|
|
92
357
|
#### Breaking changes
|
|
93
358
|
|
|
94
|
-
- The component passed to the `field` slot no longer receives the `ref`,
|
|
359
|
+
- The component passed to the `field` slot no longer receives the `ref`, `disabled`, `className`, `sx`, `label`, `name`, `formatDensity`, `enableAccessibleFieldDOMStructure`, `selectedSections`, `onSelectedSectionsChange` and `inputRef` props — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#slot-field)
|
|
95
360
|
- The `MuiPickersPopper` theme entry have been renamed `MuiPickerPopper` and some of its props have been removed — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#muipickerspopper)
|
|
96
361
|
|
|
97
362
|
#### `@mui/x-date-pickers@8.0.0-alpha.10`
|
|
@@ -111,7 +376,7 @@ Same changes as in `@mui/x-date-pickers@8.0.0-alpha.10`.
|
|
|
111
376
|
|
|
112
377
|
- Replace `legend.position.horizontal` from `"left" | "middle" | "right"` to `"start" | "center" | "end"`.
|
|
113
378
|
This is to align with the CSS values and reflect the RTL ability of the legend component.
|
|
114
|
-
- The default colors have changed. To keep using the old palette. It is possible to import `blueberryTwilightPalette` from
|
|
379
|
+
- The default colors have changed. To keep using the old palette. It is possible to import `blueberryTwilightPalette` from `@mui/x-charts/colorPalettes` and set it on the `colors` property of charts.
|
|
115
380
|
- The `id` property is now optional on the `Pie` and `Scatter` data types.
|
|
116
381
|
|
|
117
382
|
#### `@mui/x-charts@8.0.0-alpha.10`
|
|
@@ -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;
|
|
@@ -27,6 +27,10 @@ const configuration = {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
|
|
30
|
+
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
31
|
+
packageName: "x-data-grid-premium",
|
|
32
|
+
releaseInfo: releaseInfo
|
|
33
|
+
});
|
|
30
34
|
let dataGridPremiumPropValidators;
|
|
31
35
|
if (process.env.NODE_ENV !== 'production') {
|
|
32
36
|
dataGridPremiumPropValidators = [..._internals.propValidatorsDataGrid, ..._internals.propValidatorsDataGridPro];
|
|
@@ -48,10 +52,7 @@ const DataGridPremiumRaw = (0, _forwardRef.forwardRef)(function DataGridPremium(
|
|
|
48
52
|
sx: props.sx
|
|
49
53
|
}, props.slotProps?.root, {
|
|
50
54
|
ref: ref,
|
|
51
|
-
children:
|
|
52
|
-
packageName: "x-data-grid-premium",
|
|
53
|
-
releaseInfo: releaseInfo
|
|
54
|
-
})
|
|
55
|
+
children: watermark
|
|
55
56
|
}))
|
|
56
57
|
});
|
|
57
58
|
});
|
|
@@ -387,6 +388,8 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
387
388
|
getRowHeight: _propTypes.default.func,
|
|
388
389
|
/**
|
|
389
390
|
* Return the id of a given [[GridRowModel]].
|
|
391
|
+
* Ensure the reference of this prop is stable to avoid performance implications.
|
|
392
|
+
* It could be done by either defining the prop outside of the component or by memoizing it.
|
|
390
393
|
*/
|
|
391
394
|
getRowId: _propTypes.default.func,
|
|
392
395
|
/**
|
|
@@ -1041,6 +1044,9 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1041
1044
|
* @default false
|
|
1042
1045
|
*/
|
|
1043
1046
|
treeData: _propTypes.default.bool,
|
|
1047
|
+
/**
|
|
1048
|
+
* Data source object.
|
|
1049
|
+
*/
|
|
1044
1050
|
unstable_dataSource: _propTypes.default.shape({
|
|
1045
1051
|
getAggregatedValue: _propTypes.default.func,
|
|
1046
1052
|
getChildrenCount: _propTypes.default.func,
|
|
@@ -1048,6 +1054,9 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1048
1054
|
getRows: _propTypes.default.func.isRequired,
|
|
1049
1055
|
updateRow: _propTypes.default.func
|
|
1050
1056
|
}),
|
|
1057
|
+
/**
|
|
1058
|
+
* Data source cache object.
|
|
1059
|
+
*/
|
|
1051
1060
|
unstable_dataSourceCache: _propTypes.default.shape({
|
|
1052
1061
|
clear: _propTypes.default.func.isRequired,
|
|
1053
1062
|
get: _propTypes.default.func.isRequired,
|
|
@@ -1080,6 +1089,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1080
1089
|
* Use in combination with `unstable_listColumn`.
|
|
1081
1090
|
*/
|
|
1082
1091
|
unstable_listView: _propTypes.default.bool,
|
|
1092
|
+
/**
|
|
1093
|
+
* Callback fired when the data source request fails.
|
|
1094
|
+
* @param {Error} error The error object.
|
|
1095
|
+
* @param {GridGetRowsParams} params With all properties from [[GridGetRowsParams]].
|
|
1096
|
+
*/
|
|
1083
1097
|
unstable_onDataSourceError: _propTypes.default.func,
|
|
1084
1098
|
/**
|
|
1085
1099
|
* If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
|
|
@@ -1091,8 +1105,8 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1091
1105
|
virtualizeColumnsWithAutoRowHeight: _propTypes.default.bool
|
|
1092
1106
|
} : void 0;
|
|
1093
1107
|
/**
|
|
1094
|
-
*
|
|
1095
|
-
* - [DataGridPremium](https://mui.com/x/react-data-grid/
|
|
1108
|
+
* Features:
|
|
1109
|
+
* - [DataGridPremium](https://mui.com/x/react-data-grid/features/)
|
|
1096
1110
|
*
|
|
1097
1111
|
* API:
|
|
1098
1112
|
* - [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 | null> | 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,17 +61,17 @@ 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
74
|
(0, _useGridAggregation.useGridAggregation)(apiRef, props);
|
|
74
|
-
(0, _useGridDataSourcePremium.useGridDataSourcePremium)(apiRef, props);
|
|
75
75
|
(0, _internals.useGridKeyboardNavigation)(apiRef, props);
|
|
76
76
|
(0, _internals.useGridRowSelection)(apiRef, props);
|
|
77
77
|
(0, _useGridCellSelection.useGridCellSelection)(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;
|
|
@@ -2,6 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { GridColumnHeaderParams } from '@mui/x-data-grid';
|
|
3
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 };
|
|
@@ -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: 4,
|
|
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 };
|