@mui/x-data-grid 8.0.0 → 8.2.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 +230 -5
- package/DataGrid/DataGrid.d.ts +1 -1
- package/DataGrid/useDataGridProps.js +5 -4
- package/colDef/gridDefaultColumnTypes.d.ts +1 -1
- package/colDef/gridNumericOperators.d.ts +2 -2
- package/colDef/gridStringOperators.d.ts +1 -1
- package/components/GridDetailPanels.d.ts +1 -1
- package/components/GridPinnedRows.d.ts +1 -1
- package/components/GridRow.d.ts +1 -1
- package/components/GridRowCount.js +1 -2
- package/components/GridSelectedRowCount.js +1 -2
- package/components/GridSkeletonLoadingOverlay.js +1 -2
- package/components/base/GridOverlays.js +2 -4
- package/components/cell/GridActionsCellItem.d.ts +1 -1
- package/components/cell/GridBooleanCell.d.ts +2 -2
- package/components/cell/GridEditInputCell.js +3 -3
- package/components/cell/GridEditSingleSelectCell.d.ts +1 -1
- package/components/cell/index.d.ts +1 -1
- package/components/columnHeaders/GridBaseColumnHeaders.js +1 -2
- package/components/columnHeaders/GridColumnHeaderTitle.js +1 -2
- package/components/columnHeaders/GridIconButtonContainer.js +1 -2
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/columnsManagement/GridColumnsManagement.d.ts +1 -1
- package/components/columnsManagement/utils.d.ts +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
- package/components/containers/GridFooterContainer.js +1 -2
- package/components/containers/GridRootStyles.js +14 -12
- package/components/export/ExportCsv.d.ts +1 -1
- package/components/export/ExportPrint.d.ts +1 -1
- package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
- package/components/panel/GridPanel.js +0 -1
- package/components/panel/GridPanelFooter.js +1 -2
- package/components/panel/GridPanelHeader.js +1 -2
- package/components/panel/filterPanel/GridFilterForm.js +6 -12
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +1 -1
- package/components/panel/filterPanel/filterPanelUtils.d.ts +2 -2
- package/components/panel/filterPanel/index.d.ts +2 -2
- package/components/quickFilter/QuickFilter.d.ts +1 -1
- package/components/quickFilter/QuickFilterClear.d.ts +1 -1
- package/components/quickFilter/QuickFilterControl.d.ts +1 -1
- package/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
- package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/components/toolbar/GridToolbarExport.d.ts +1 -1
- package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.js +1 -2
- package/components/toolbar/index.d.ts +1 -1
- package/components/toolbarV8/ToolbarButton.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.js +1 -2
- package/constants/dataGridPropsDefaultValues.d.ts +1 -1
- package/esm/DataGrid/DataGrid.d.ts +1 -1
- package/esm/DataGrid/useDataGridProps.js +6 -5
- package/esm/colDef/gridDefaultColumnTypes.d.ts +1 -1
- package/esm/colDef/gridNumericOperators.d.ts +2 -2
- package/esm/colDef/gridStringOperators.d.ts +1 -1
- package/esm/components/GridDetailPanels.d.ts +1 -1
- package/esm/components/GridPinnedRows.d.ts +1 -1
- package/esm/components/GridRow.d.ts +1 -1
- package/esm/components/GridRowCount.js +1 -2
- package/esm/components/GridSelectedRowCount.js +1 -2
- package/esm/components/GridSkeletonLoadingOverlay.js +1 -2
- package/esm/components/base/GridOverlays.js +2 -4
- package/esm/components/cell/GridActionsCellItem.d.ts +1 -1
- package/esm/components/cell/GridBooleanCell.d.ts +2 -2
- package/esm/components/cell/GridEditInputCell.js +3 -3
- package/esm/components/cell/GridEditSingleSelectCell.d.ts +1 -1
- package/esm/components/cell/index.d.ts +1 -1
- package/esm/components/columnHeaders/GridBaseColumnHeaders.js +1 -2
- package/esm/components/columnHeaders/GridColumnHeaderTitle.js +1 -2
- package/esm/components/columnHeaders/GridIconButtonContainer.js +1 -2
- package/esm/components/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
- package/esm/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/esm/components/columnsManagement/GridColumnsManagement.d.ts +1 -1
- package/esm/components/columnsManagement/utils.d.ts +1 -1
- package/esm/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
- package/esm/components/containers/GridFooterContainer.js +1 -2
- package/esm/components/containers/GridRootStyles.js +14 -12
- package/esm/components/export/ExportCsv.d.ts +1 -1
- package/esm/components/export/ExportPrint.d.ts +1 -1
- package/esm/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
- package/esm/components/panel/GridPanel.js +0 -1
- package/esm/components/panel/GridPanelFooter.js +1 -2
- package/esm/components/panel/GridPanelHeader.js +1 -2
- package/esm/components/panel/filterPanel/GridFilterForm.js +6 -12
- package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +1 -1
- package/esm/components/panel/filterPanel/filterPanelUtils.d.ts +2 -2
- package/esm/components/panel/filterPanel/index.d.ts +2 -2
- package/esm/components/quickFilter/QuickFilter.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilterClear.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilterControl.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarExport.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarFilterButton.js +1 -2
- package/esm/components/toolbar/index.d.ts +1 -1
- package/esm/components/toolbarV8/ToolbarButton.d.ts +1 -1
- package/esm/components/virtualization/GridVirtualScrollerRenderZone.js +1 -2
- package/esm/constants/dataGridPropsDefaultValues.d.ts +1 -1
- package/esm/hooks/core/gridPropsSelectors.d.ts +2 -2
- package/esm/hooks/core/index.d.ts +1 -1
- package/esm/hooks/core/useGridApiInitialization.d.ts +1 -1
- package/esm/hooks/core/useGridInitialization.d.ts +1 -1
- package/esm/hooks/core/useGridProps.d.ts +3 -3
- package/esm/hooks/core/useGridRefs.d.ts +1 -1
- package/esm/hooks/core/useGridStateInitialization.d.ts +1 -1
- package/esm/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +2 -2
- package/esm/hooks/features/columnGrouping/index.d.ts +1 -1
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -2
- package/esm/hooks/features/columnResize/gridColumnResizeApi.d.ts +1 -1
- package/esm/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
- package/esm/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -1
- package/esm/hooks/features/columns/gridColumnsSelector.d.ts +9 -9
- package/esm/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/esm/hooks/features/dataSource/cache.d.ts +1 -1
- package/esm/hooks/features/dataSource/gridDataSourceError.d.ts +1 -1
- package/esm/hooks/features/dataSource/gridDataSourceSelector.d.ts +1 -1
- package/esm/hooks/features/dataSource/models.d.ts +3 -3
- package/esm/hooks/features/dataSource/useGridDataSource.d.ts +2 -2
- package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +5 -5
- package/esm/hooks/features/dataSource/utils.d.ts +1 -1
- package/esm/hooks/features/dimensions/gridDimensionsApi.d.ts +1 -1
- package/esm/hooks/features/dimensions/index.d.ts +2 -2
- package/esm/hooks/features/export/serializers/csvSerializer.d.ts +4 -4
- package/esm/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/esm/hooks/features/export/useGridPrintExport.js +3 -34
- package/esm/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/esm/hooks/features/filter/gridFilterUtils.d.ts +1 -1
- package/esm/hooks/features/filter/index.d.ts +2 -2
- package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
- package/esm/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
- package/esm/hooks/features/listView/useGridListView.d.ts +1 -1
- package/esm/hooks/features/overlays/useGridOverlays.d.ts +1 -1
- package/esm/hooks/features/pagination/index.d.ts +1 -1
- package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +1 -1
- package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +3 -3
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +1 -1
- package/esm/hooks/features/rowSelection/useGridRowSelection.js +7 -6
- package/esm/hooks/features/rowSelection/utils.d.ts +4 -4
- package/esm/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/esm/hooks/features/rows/gridRowSpanningUtils.d.ts +5 -5
- package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/esm/hooks/features/rows/gridRowsSelector.d.ts +3 -3
- package/esm/hooks/features/rows/index.d.ts +1 -1
- package/esm/hooks/features/rows/useGridParamsApi.js +1 -1
- package/esm/hooks/features/rows/useGridRowSpanning.d.ts +5 -5
- package/esm/hooks/features/sorting/gridSortingSelector.d.ts +1 -1
- package/esm/hooks/features/sorting/index.d.ts +2 -2
- package/esm/hooks/features/statePersistence/index.d.ts +1 -1
- package/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +1 -1
- package/esm/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +1 -1
- package/esm/hooks/utils/index.d.ts +1 -1
- package/esm/hooks/utils/useGridEvent.d.ts +1 -1
- package/esm/hooks/utils/useGridRootProps.d.ts +1 -1
- package/esm/hooks/utils/useGridSelector.d.ts +2 -2
- package/esm/hooks/utils/useGridVisibleRows.d.ts +1 -1
- package/esm/index.d.ts +5 -5
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +24 -24
- package/esm/locales/hrHR.d.ts +1 -1
- package/esm/locales/hyAM.d.ts +2 -0
- package/esm/locales/hyAM.js +296 -0
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +1 -0
- package/esm/locales/ptPT.d.ts +1 -1
- package/esm/locales/zhHK.d.ts +1 -1
- package/esm/material/index.d.ts +2 -2
- package/esm/material/index.js +6 -1
- package/esm/material/variables.js +2 -2
- package/esm/models/api/gridApiCommon.d.ts +32 -32
- package/esm/models/api/gridApiCommunity.d.ts +7 -7
- package/esm/models/api/gridCallbackDetails.d.ts +2 -2
- package/esm/models/api/gridColumnApi.d.ts +1 -1
- package/esm/models/api/gridCoreApi.d.ts +4 -4
- package/esm/models/api/gridFilterApi.d.ts +1 -1
- package/esm/models/api/gridLocaleTextApi.d.ts +1 -1
- package/esm/models/api/gridRowSelectionApi.d.ts +2 -2
- package/esm/models/api/index.d.ts +10 -10
- package/esm/models/colDef/gridColDef.d.ts +2 -2
- package/esm/models/colDef/index.d.ts +1 -1
- package/esm/models/configuration/gridConfiguration.d.ts +2 -2
- package/esm/models/controlStateItem.d.ts +4 -4
- package/esm/models/events/gridEventListener.d.ts +2 -2
- package/esm/models/events/gridEventLookup.d.ts +14 -8
- package/esm/models/events/gridEventPublisher.d.ts +1 -1
- package/esm/models/gridCell.d.ts +1 -1
- package/esm/models/gridColumnGrouping.d.ts +1 -1
- package/esm/models/gridDataSource.d.ts +1 -1
- package/esm/models/gridEditRowModel.d.ts +1 -1
- package/esm/models/gridExport.d.ts +2 -2
- package/esm/models/gridFilterInputComponent.d.ts +2 -2
- package/esm/models/gridFilterOperator.d.ts +4 -4
- package/esm/models/gridRowSelectionManager.d.ts +2 -2
- package/esm/models/gridRows.d.ts +1 -1
- package/esm/models/gridSlotsComponent.d.ts +3 -3
- package/esm/models/gridSlotsComponentsProps.d.ts +20 -20
- package/esm/models/gridStateCommunity.d.ts +9 -9
- package/esm/models/index.d.ts +5 -5
- package/esm/models/params/gridCellParams.d.ts +1 -1
- package/esm/models/params/gridColumnHeaderParams.d.ts +1 -1
- package/esm/models/params/gridColumnOrderChangeParams.d.ts +1 -1
- package/esm/models/params/gridColumnResizeParams.d.ts +1 -1
- package/esm/models/params/gridRowParams.d.ts +1 -1
- package/esm/models/props/DataGridProps.d.ts +5 -5
- package/esm/utils/composeGridClasses.d.ts +1 -1
- package/esm/utils/domUtils.d.ts +2 -2
- package/esm/utils/getGridLocalization.d.ts +1 -1
- package/esm/utils/getPublicApiRef.d.ts +1 -1
- package/esm/utils/index.d.ts +1 -1
- package/hooks/core/gridPropsSelectors.d.ts +2 -2
- package/hooks/core/index.d.ts +1 -1
- package/hooks/core/useGridApiInitialization.d.ts +1 -1
- package/hooks/core/useGridInitialization.d.ts +1 -1
- package/hooks/core/useGridProps.d.ts +3 -3
- package/hooks/core/useGridRefs.d.ts +1 -1
- package/hooks/core/useGridStateInitialization.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +2 -2
- package/hooks/features/columnGrouping/index.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -2
- package/hooks/features/columnResize/gridColumnResizeApi.d.ts +1 -1
- package/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +9 -9
- package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/hooks/features/dataSource/cache.d.ts +1 -1
- package/hooks/features/dataSource/gridDataSourceError.d.ts +1 -1
- package/hooks/features/dataSource/gridDataSourceSelector.d.ts +1 -1
- package/hooks/features/dataSource/models.d.ts +3 -3
- package/hooks/features/dataSource/useGridDataSource.d.ts +2 -2
- package/hooks/features/dataSource/useGridDataSourceBase.d.ts +5 -5
- package/hooks/features/dataSource/utils.d.ts +1 -1
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +1 -1
- package/hooks/features/dimensions/index.d.ts +2 -2
- package/hooks/features/export/serializers/csvSerializer.d.ts +4 -4
- package/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.js +3 -34
- package/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +1 -1
- package/hooks/features/filter/index.d.ts +2 -2
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
- package/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
- package/hooks/features/listView/useGridListView.d.ts +1 -1
- package/hooks/features/overlays/useGridOverlays.d.ts +1 -1
- package/hooks/features/pagination/index.d.ts +1 -1
- package/hooks/features/pivoting/gridPivotingInterfaces.d.ts +1 -1
- package/hooks/features/pivoting/gridPivotingSelectors.d.ts +3 -3
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.js +7 -6
- package/hooks/features/rowSelection/utils.d.ts +4 -4
- package/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +5 -5
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/hooks/features/rows/gridRowsSelector.d.ts +3 -3
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/useGridParamsApi.js +1 -1
- package/hooks/features/rows/useGridRowSpanning.d.ts +5 -5
- package/hooks/features/sorting/gridSortingSelector.d.ts +1 -1
- package/hooks/features/sorting/index.d.ts +2 -2
- package/hooks/features/statePersistence/index.d.ts +1 -1
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +1 -1
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +1 -1
- package/hooks/utils/index.d.ts +1 -1
- package/hooks/utils/useGridEvent.d.ts +1 -1
- package/hooks/utils/useGridRootProps.d.ts +1 -1
- package/hooks/utils/useGridSelector.d.ts +2 -2
- package/hooks/utils/useGridVisibleRows.d.ts +1 -1
- package/index.d.ts +5 -5
- package/index.js +1 -1
- package/internals/index.d.ts +24 -24
- package/locales/hrHR.d.ts +1 -1
- package/locales/hyAM.d.ts +2 -0
- package/locales/hyAM.js +302 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +11 -0
- package/locales/ptPT.d.ts +1 -1
- package/locales/zhHK.d.ts +1 -1
- package/material/index.d.ts +2 -2
- package/material/index.js +6 -1
- package/material/variables.js +1 -1
- package/models/api/gridApiCommon.d.ts +32 -32
- package/models/api/gridApiCommunity.d.ts +7 -7
- package/models/api/gridCallbackDetails.d.ts +2 -2
- package/models/api/gridColumnApi.d.ts +1 -1
- package/models/api/gridCoreApi.d.ts +4 -4
- package/models/api/gridFilterApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +1 -1
- package/models/api/gridRowSelectionApi.d.ts +2 -2
- package/models/api/index.d.ts +10 -10
- package/models/colDef/gridColDef.d.ts +2 -2
- package/models/colDef/index.d.ts +1 -1
- package/models/configuration/gridConfiguration.d.ts +2 -2
- package/models/controlStateItem.d.ts +4 -4
- package/models/events/gridEventListener.d.ts +2 -2
- package/models/events/gridEventLookup.d.ts +14 -8
- package/models/events/gridEventPublisher.d.ts +1 -1
- package/models/gridCell.d.ts +1 -1
- package/models/gridColumnGrouping.d.ts +1 -1
- package/models/gridDataSource.d.ts +1 -1
- package/models/gridEditRowModel.d.ts +1 -1
- package/models/gridExport.d.ts +2 -2
- package/models/gridFilterInputComponent.d.ts +2 -2
- package/models/gridFilterOperator.d.ts +4 -4
- package/models/gridRowSelectionManager.d.ts +2 -2
- package/models/gridRows.d.ts +1 -1
- package/models/gridSlotsComponent.d.ts +3 -3
- package/models/gridSlotsComponentsProps.d.ts +20 -20
- package/models/gridStateCommunity.d.ts +9 -9
- package/models/index.d.ts +5 -5
- package/models/params/gridCellParams.d.ts +1 -1
- package/models/params/gridColumnHeaderParams.d.ts +1 -1
- package/models/params/gridColumnOrderChangeParams.d.ts +1 -1
- package/models/params/gridColumnResizeParams.d.ts +1 -1
- package/models/params/gridRowParams.d.ts +1 -1
- package/models/props/DataGridProps.d.ts +5 -5
- package/package.json +2 -2
- package/utils/composeGridClasses.d.ts +1 -1
- package/utils/domUtils.d.ts +2 -2
- package/utils/getGridLocalization.d.ts +1 -1
- package/utils/getPublicApiRef.d.ts +1 -1
- package/utils/index.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiCommunity } from
|
|
3
|
-
import type { DataGridProcessedProps } from
|
|
2
|
+
import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
|
|
3
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
|
|
4
4
|
/**
|
|
5
5
|
* Community version of the data source hook. Contains implementation of the `useGridDataSourceBase` hook.
|
|
6
6
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridDataSourceCache } from "../../../models/gridDataSource.js";
|
|
3
3
|
import { CacheChunkManager, DataSourceRowsUpdateStrategy } from "./utils.js";
|
|
4
|
-
import type { GridDataSourceApi, GridDataSourceBaseOptions } from
|
|
5
|
-
import type { GridPrivateApiCommunity } from
|
|
6
|
-
import type { DataGridProcessedProps } from
|
|
7
|
-
import type { GridStrategyProcessor } from
|
|
8
|
-
import type { GridEventListener } from
|
|
4
|
+
import type { GridDataSourceApi, GridDataSourceBaseOptions } from "./models.js";
|
|
5
|
+
import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
|
|
6
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
|
|
7
|
+
import type { GridStrategyProcessor } from "../../core/strategyProcessing/index.js";
|
|
8
|
+
import type { GridEventListener } from "../../../models/events/index.js";
|
|
9
9
|
export declare const useGridDataSourceBase: <Api extends GridPrivateApiCommunity>(apiRef: RefObject<Api>, props: Pick<DataGridProcessedProps, "dataSource" | "dataSourceCache" | "onDataSourceError" | "pageSizeOptions" | "signature">, options?: GridDataSourceBaseOptions) => {
|
|
10
10
|
api: {
|
|
11
11
|
public: GridDataSourceApi;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GridGetRowsParams, GridGetRowsResponse } from
|
|
1
|
+
import type { GridGetRowsParams, GridGetRowsResponse } from "../../../models/gridDataSource.js";
|
|
2
2
|
export declare enum DataSourceRowsUpdateStrategy {
|
|
3
3
|
Default = "set-new-rows",
|
|
4
4
|
LazyLoading = "replace-row-range",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { GridDimensionsState } from
|
|
1
|
+
export type { GridDimensionsState } from "./useGridDimensions.js";
|
|
2
2
|
export { gridDimensionsSelector, gridColumnsTotalWidthSelector } from "./gridDimensionsSelectors.js";
|
|
3
|
-
export type { GridDimensions, GridDimensionsApi } from
|
|
3
|
+
export type { GridDimensions, GridDimensionsApi } from "./gridDimensionsApi.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridCsvExportOptions, GridRowId } from
|
|
3
|
-
import type { GridCellParams } from
|
|
4
|
-
import type { GridStateColDef } from
|
|
5
|
-
import type { GridApiCommunity } from
|
|
2
|
+
import type { GridCsvExportOptions, GridRowId } from "../../../../models/index.js";
|
|
3
|
+
import type { GridCellParams } from "../../../../models/params/gridCellParams.js";
|
|
4
|
+
import type { GridStateColDef } from "../../../../models/colDef/gridColDef.js";
|
|
5
|
+
import type { GridApiCommunity } from "../../../../models/api/gridApiCommunity.js";
|
|
6
6
|
export declare const serializeCellValue: (cellParams: GridCellParams, options: {
|
|
7
7
|
csvOptions: CSVOptions;
|
|
8
8
|
ignoreValueFormatter: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
|
|
3
|
-
import type { DataGridProcessedProps } from
|
|
3
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
|
|
4
4
|
/**
|
|
5
5
|
* @requires useGridColumns (state)
|
|
6
6
|
* @requires useGridFilter (state)
|
|
@@ -9,6 +9,7 @@ exports.useGridPrintExport = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _utils = require("@mui/utils");
|
|
12
|
+
var _export = require("@mui/x-internals/export");
|
|
12
13
|
var _useGridLogger = require("../../utils/useGridLogger");
|
|
13
14
|
var _gridFilterSelector = require("../filter/gridFilterSelector");
|
|
14
15
|
var _gridColumnsSelector = require("../columns/gridColumnsSelector");
|
|
@@ -155,43 +156,11 @@ const useGridPrintExport = (apiRef, props) => {
|
|
|
155
156
|
if (normalizeOptions.bodyClassName) {
|
|
156
157
|
printDoc.body.classList.add(...normalizeOptions.bodyClassName.split(' '));
|
|
157
158
|
}
|
|
158
|
-
|
|
159
|
+
let stylesheetLoadPromises = [];
|
|
159
160
|
if (normalizeOptions.copyStyles) {
|
|
160
161
|
const rootCandidate = gridRootElement.getRootNode();
|
|
161
162
|
const root = rootCandidate.constructor.name === 'ShadowRoot' ? rootCandidate : doc.current;
|
|
162
|
-
|
|
163
|
-
for (let i = 0; i < headStyleElements.length; i += 1) {
|
|
164
|
-
const node = headStyleElements[i];
|
|
165
|
-
if (node.tagName === 'STYLE') {
|
|
166
|
-
const newHeadStyleElements = printDoc.createElement(node.tagName);
|
|
167
|
-
const sheet = node.sheet;
|
|
168
|
-
if (sheet) {
|
|
169
|
-
let styleCSS = '';
|
|
170
|
-
// NOTE: for-of is not supported by IE
|
|
171
|
-
for (let j = 0; j < sheet.cssRules.length; j += 1) {
|
|
172
|
-
if (typeof sheet.cssRules[j].cssText === 'string') {
|
|
173
|
-
styleCSS += `${sheet.cssRules[j].cssText}\r\n`;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
newHeadStyleElements.appendChild(printDoc.createTextNode(styleCSS));
|
|
177
|
-
printDoc.head.appendChild(newHeadStyleElements);
|
|
178
|
-
}
|
|
179
|
-
} else if (node.getAttribute('href')) {
|
|
180
|
-
// If `href` tag is empty, avoid loading these links
|
|
181
|
-
|
|
182
|
-
const newHeadStyleElements = printDoc.createElement(node.tagName);
|
|
183
|
-
for (let j = 0; j < node.attributes.length; j += 1) {
|
|
184
|
-
const attr = node.attributes[j];
|
|
185
|
-
if (attr) {
|
|
186
|
-
newHeadStyleElements.setAttribute(attr.nodeName, attr.nodeValue || '');
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
stylesheetLoadPromises.push(new Promise(resolve => {
|
|
190
|
-
newHeadStyleElements.addEventListener('load', () => resolve());
|
|
191
|
-
}));
|
|
192
|
-
printDoc.head.appendChild(newHeadStyleElements);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
163
|
+
stylesheetLoadPromises = (0, _export.loadStyleSheets)(printDoc, root);
|
|
195
164
|
}
|
|
196
165
|
|
|
197
166
|
// Trigger print
|
|
@@ -15,7 +15,7 @@ export declare const gridQuickFilterValuesSelector: import("@mui/x-data-grid").O
|
|
|
15
15
|
* @category Visible rows
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
export declare const gridVisibleRowsLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("./gridFilterState").GridVisibleRowsLookupState>;
|
|
18
|
+
export declare const gridVisibleRowsLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("./gridFilterState.js").GridVisibleRowsLookupState>;
|
|
19
19
|
/**
|
|
20
20
|
* @category Filtering
|
|
21
21
|
* @ignore - do not document.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridFilterItem, GridFilterModel } from "../../../models/index.js";
|
|
3
|
-
import type { GridPrivateApiCommunity } from
|
|
3
|
+
import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
|
|
4
4
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
5
5
|
import { GridAggregatedFilterItemApplier, GridFilterItemResult, GridQuickFilterValueResult } from "./gridFilterState.js";
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { GridFilterState, GridFilterInitialState } from
|
|
1
|
+
export type { GridFilterState, GridFilterInitialState } from "./gridFilterState.js";
|
|
2
2
|
export { getDefaultGridFilterModel } from "./gridFilterState.js";
|
|
3
3
|
export { gridFilterModelSelector, gridQuickFilterValuesSelector, gridVisibleRowsLookupSelector, gridFilteredRowsLookupSelector, gridFilteredDescendantCountLookupSelector, gridExpandedSortedRowEntriesSelector, gridExpandedSortedRowIdsSelector, gridFilteredSortedRowEntriesSelector, gridFilteredSortedRowIdsSelector, gridFilteredSortedTopLevelRowEntriesSelector, gridExpandedRowCountSelector, gridFilteredTopLevelRowCountSelector, gridFilteredRowCountSelector, gridFilteredDescendantRowCountSelector, gridFilterActiveItemsSelector, gridFilterActiveItemsLookupSelector } from "./gridFilterSelector.js";
|
|
4
|
-
export type { GridFilterActiveItemsLookup } from
|
|
4
|
+
export type { GridFilterActiveItemsLookup } from "./gridFilterSelector.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
2
|
-
export declare const gridHeaderFilteringStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("../../../models/gridHeaderFilteringModel").GridHeaderFilteringState>;
|
|
3
|
-
export declare const gridHeaderFilteringEnabledSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("../../../models/gridHeaderFilteringModel").GridHeaderFilteringState, boolean>;
|
|
4
|
-
export declare const gridHeaderFilteringEditFieldSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("../../../models/gridHeaderFilteringModel").GridHeaderFilteringState, string | null>;
|
|
5
|
-
export declare const gridHeaderFilteringMenuSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("../../../models/gridHeaderFilteringModel").GridHeaderFilteringState, string | null>;
|
|
2
|
+
export declare const gridHeaderFilteringStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("../../../models/gridHeaderFilteringModel.js").GridHeaderFilteringState>;
|
|
3
|
+
export declare const gridHeaderFilteringEnabledSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("../../../models/gridHeaderFilteringModel.js").GridHeaderFilteringState, boolean>;
|
|
4
|
+
export declare const gridHeaderFilteringEditFieldSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("../../../models/gridHeaderFilteringModel.js").GridHeaderFilteringState, string | null>;
|
|
5
|
+
export declare const gridHeaderFilteringMenuSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("../../../models/gridHeaderFilteringModel.js").GridHeaderFilteringState, string | null>;
|
|
@@ -4,4 +4,4 @@ import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
|
4
4
|
* @category List View
|
|
5
5
|
* @ignore - Do not document
|
|
6
6
|
*/
|
|
7
|
-
export declare const gridListColumnSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("./useGridListView").GridListViewState>;
|
|
7
|
+
export declare const gridListColumnSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("./useGridListView.js").GridListViewState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridListViewColDef } from
|
|
2
|
+
import type { GridListViewColDef } from "../../../models/colDef/gridColDef.js";
|
|
3
3
|
import { GridStateInitializer } from "../../utils/useGridInitializeState.js";
|
|
4
4
|
import { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
|
|
5
5
|
import { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridLoadingOverlayVariant } from "../../../components/GridLoadingOverlay.js";
|
|
3
|
-
import type { GridOverlayType } from
|
|
3
|
+
import type { GridOverlayType } from "../../../components/base/GridOverlays.js";
|
|
4
4
|
/**
|
|
5
5
|
* Uses the grid state to determine which overlay to display.
|
|
6
6
|
* Returns the active overlay type and the active loading overlay variant.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./gridPaginationSelector.js";
|
|
2
|
-
export type { GridPaginationModelApi, GridPaginationRowCountApi, GridPaginationApi, GridPaginationState, GridPaginationInitialState } from
|
|
2
|
+
export type { GridPaginationModelApi, GridPaginationRowCountApi, GridPaginationApi, GridPaginationState, GridPaginationInitialState } from "./gridPaginationInterfaces.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GridRowModelUpdate } from '@mui/x-data-grid';
|
|
2
|
-
import type { GridColDef } from
|
|
2
|
+
import type { GridColDef } from "../../../models/colDef/index.js";
|
|
3
3
|
export interface GridPivotingStatePartial {
|
|
4
4
|
active: boolean;
|
|
5
5
|
panelOpen: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { GridColDef } from
|
|
2
|
-
import type { GridStateCommunity } from
|
|
3
|
-
import type { GridPivotingStatePartial } from
|
|
1
|
+
import type { GridColDef } from "../../../models/colDef/index.js";
|
|
2
|
+
import type { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
3
|
+
import type { GridPivotingStatePartial } from "./gridPivotingInterfaces.js";
|
|
4
4
|
export declare const gridPivotActiveSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridPivotingStatePartial, boolean>;
|
|
5
5
|
export declare const gridPivotInitialColumnsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridPivotingStatePartial, Map<string, GridColDef>>;
|
|
6
6
|
export declare const gridPivotPanelOpenSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridPivotingStatePartial, boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
2
2
|
import { GridRowId } from "../../../models/gridRows.js";
|
|
3
3
|
export declare const gridRowSelectionStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("@mui/x-data-grid").GridRowSelectionModel>;
|
|
4
|
-
export declare const gridRowSelectionManagerSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowSelectionModel, import("../../../models/gridRowSelectionManager").RowSelectionManager>;
|
|
4
|
+
export declare const gridRowSelectionManagerSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowSelectionModel, import("../../../models/gridRowSelectionManager.js").RowSelectionManager>;
|
|
5
5
|
export declare const gridRowSelectionCountSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, number, number>;
|
|
6
6
|
export declare const gridRowSelectionIdsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridRowId[], Map<GridRowId, import("@mui/x-data-grid").GridValidRowModel>>;
|
|
@@ -383,13 +383,14 @@ const useGridRowSelection = (apiRef, props) => {
|
|
|
383
383
|
|
|
384
384
|
const isMultipleSelectionDisabled = !checkboxSelection && !hasCtrlKey && !(0, _keyboardUtils.isKeyboardEvent)(event);
|
|
385
385
|
const resetSelection = !canHaveMultipleSelection || isMultipleSelectionDisabled;
|
|
386
|
+
const isSelected = apiRef.current.isRowSelected(id);
|
|
386
387
|
const selectedRowsCount = (0, _gridRowSelectionSelector.gridRowSelectionCountSelector)(apiRef);
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
388
|
+
|
|
389
|
+
// Clicking on a row should toggle the selection except when a range of rows is already selected and the selection should reset
|
|
390
|
+
// In that case, we want to keep the current row selected (https://github.com/mui/mui-x/pull/15509#discussion_r1878082687)
|
|
391
|
+
const shouldStaySelected = selectedRowsCount > 1 && resetSelection;
|
|
392
|
+
const newSelectionState = shouldStaySelected || !isSelected;
|
|
393
|
+
apiRef.current.selectRow(id, newSelectionState, resetSelection);
|
|
393
394
|
}, [apiRef, canHaveMultipleSelection, checkboxSelection]);
|
|
394
395
|
const handleRowClick = React.useCallback((params, event) => {
|
|
395
396
|
if (disableRowSelectionOnClick) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridRowId, GridRowTreeConfig } from
|
|
3
|
-
import type { DataGridProcessedProps } from
|
|
4
|
-
import type { GridPrivateApiCommunity } from
|
|
2
|
+
import type { GridRowId, GridRowTreeConfig } from "../../../models/gridRows.js";
|
|
3
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
|
|
4
|
+
import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
|
|
5
5
|
import { type GridRowSelectionPropagation } from "../../../models/gridRowSelectionModel.js";
|
|
6
6
|
import { type RowSelectionManager } from "../../../models/gridRowSelectionManager.js";
|
|
7
7
|
export declare const ROW_SELECTION_PROPAGATION_DEFAULT: GridRowSelectionPropagation;
|
|
8
|
-
export declare function getCheckboxPropsSelector(groupId: GridRowId, autoSelectParents: boolean): import("@mui/x-data-grid").OutputSelector<import("../../../models/gridStateCommunity").GridStateCommunity, RowSelectionManager, {
|
|
8
|
+
export declare function getCheckboxPropsSelector(groupId: GridRowId, autoSelectParents: boolean): import("@mui/x-data-grid").OutputSelector<import("../../../models/gridStateCommunity.js").GridStateCommunity, RowSelectionManager, {
|
|
9
9
|
isIndeterminate: boolean;
|
|
10
10
|
isChecked: boolean;
|
|
11
11
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
2
|
-
export declare const gridRowSpanningHiddenCellsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("./useGridRowSpanning").GridRowSpanningState, Record<import("@mui/x-data-grid").GridRowId, Record<string, boolean>>>;
|
|
3
|
-
export declare const gridRowSpanningSpannedCellsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("./useGridRowSpanning").GridRowSpanningState, Record<import("@mui/x-data-grid").GridRowId, Record<string, number>>>;
|
|
4
|
-
export declare const gridRowSpanningHiddenCellsOriginMapSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("./useGridRowSpanning").GridRowSpanningState, Record<number, Record<string, number>>>;
|
|
2
|
+
export declare const gridRowSpanningHiddenCellsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("./useGridRowSpanning.js").GridRowSpanningState, Record<import("@mui/x-data-grid").GridRowId, Record<string, boolean>>>;
|
|
3
|
+
export declare const gridRowSpanningSpannedCellsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("./useGridRowSpanning.js").GridRowSpanningState, Record<import("@mui/x-data-grid").GridRowId, Record<string, number>>>;
|
|
4
|
+
export declare const gridRowSpanningHiddenCellsOriginMapSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("./useGridRowSpanning.js").GridRowSpanningState, Record<number, Record<string, number>>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridRenderContext } from
|
|
3
|
-
import type { GridValidRowModel } from
|
|
4
|
-
import type { GridColDef } from
|
|
5
|
-
import type { GridApiCommunity } from
|
|
6
|
-
import type { RowRange } from
|
|
2
|
+
import type { GridRenderContext } from "../../../models/index.js";
|
|
3
|
+
import type { GridValidRowModel } from "../../../models/gridRows.js";
|
|
4
|
+
import type { GridColDef } from "../../../models/colDef/index.js";
|
|
5
|
+
import type { GridApiCommunity } from "../../../models/api/gridApiCommunity.js";
|
|
6
|
+
import type { RowRange } from "./useGridRowSpanning.js";
|
|
7
7
|
export declare function getUnprocessedRange(testRange: RowRange, processedRange: RowRange): RowRange | null;
|
|
8
8
|
export declare function isRowContextInitialized(renderContext: GridRenderContext): boolean;
|
|
9
9
|
export declare function isRowRangeUpdated(range1: RowRange, range2: RowRange): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridRowEntry, GridRowId, GridRowTreeConfig, GridValidRowModel } from "../../../models/gridRows.js";
|
|
2
|
-
import type { DataGridProcessedProps } from
|
|
2
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
|
|
3
3
|
export interface GridRowsInternalCache {
|
|
4
4
|
/**
|
|
5
5
|
* The rows as they were the last time all the rows have been updated at once
|
|
@@ -10,7 +10,7 @@ export declare const gridRowTreeSelector: import("@mui/x-data-grid").OutputSelec
|
|
|
10
10
|
export declare const gridRowNodeSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridRowId, import("@mui/x-data-grid").GridTreeNode>;
|
|
11
11
|
export declare const gridRowGroupsToFetchSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, GridRowId[] | undefined>;
|
|
12
12
|
export declare const gridRowGroupingNameSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, string>;
|
|
13
|
-
export declare const gridRowTreeDepthsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, import("./gridRowsInterfaces").GridTreeDepths>;
|
|
13
|
+
export declare const gridRowTreeDepthsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, import("./gridRowsInterfaces.js").GridTreeDepths>;
|
|
14
14
|
export declare const gridRowMaximumTreeDepthSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, number>;
|
|
15
15
|
export declare const gridDataRowIdsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, GridRowId[]>;
|
|
16
16
|
export declare const gridDataRowsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowIdToModelLookup<import("@mui/x-data-grid").GridValidRowModel>, import("@mui/x-data-grid").GridValidRowModel[]>;
|
|
@@ -18,13 +18,13 @@ export declare const gridDataRowsSelector: import("@mui/x-data-grid").OutputSele
|
|
|
18
18
|
* @ignore - do not document.
|
|
19
19
|
*/
|
|
20
20
|
export declare const gridAdditionalRowGroupsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, {
|
|
21
|
-
pinnedRows?: import("./gridRowsInterfaces").GridPinnedRowsState;
|
|
21
|
+
pinnedRows?: import("./gridRowsInterfaces.js").GridPinnedRowsState;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
/**
|
|
24
24
|
* @ignore - do not document.
|
|
25
25
|
*/
|
|
26
26
|
export declare const gridPinnedRowsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, {
|
|
27
|
-
pinnedRows?: import("./gridRowsInterfaces").GridPinnedRowsState;
|
|
27
|
+
pinnedRows?: import("./gridRowsInterfaces.js").GridPinnedRowsState;
|
|
28
28
|
} | undefined, {
|
|
29
29
|
bottom: {
|
|
30
30
|
id: GridRowId;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./gridRowsMetaSelector.js";
|
|
2
2
|
export * from "./gridRowsMetaState.js";
|
|
3
3
|
export { gridRowCountSelector, gridRowsLoadingSelector, gridTopLevelRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowGroupingNameSelector, gridRowTreeDepthsSelector, gridRowMaximumTreeDepthSelector, gridDataRowIdsSelector, gridRowNodeSelector } from "./gridRowsSelector.js";
|
|
4
|
-
export type { GridRowsState, GridRowIdToModelLookup } from
|
|
4
|
+
export type { GridRowsState, GridRowIdToModelLookup } from "./gridRowsInterfaces.js";
|
|
5
5
|
export { GRID_ROOT_GROUP_ID, checkGridRowIdIsValid, isAutogeneratedRow } from "./gridRowsUtils.js";
|
|
@@ -62,7 +62,7 @@ function useGridParamsApi(apiRef, props) {
|
|
|
62
62
|
value,
|
|
63
63
|
formattedValue: value,
|
|
64
64
|
isEditable: false,
|
|
65
|
-
api:
|
|
65
|
+
api: apiRef.current
|
|
66
66
|
};
|
|
67
67
|
if (colDef && colDef.valueFormatter) {
|
|
68
68
|
params.formattedValue = colDef.valueFormatter(value, row, colDef, apiRef);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridColDef } from
|
|
3
|
-
import type { GridRowId } from
|
|
4
|
-
import type { DataGridProcessedProps } from
|
|
5
|
-
import type { GridPrivateApiCommunity } from
|
|
6
|
-
import type { GridStateInitializer } from
|
|
2
|
+
import type { GridColDef } from "../../../models/colDef/index.js";
|
|
3
|
+
import type { GridRowId } from "../../../models/gridRows.js";
|
|
4
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
|
|
5
|
+
import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
|
|
6
|
+
import type { GridStateInitializer } from "../../utils/useGridInitializeState.js";
|
|
7
7
|
export interface GridRowSpanningState {
|
|
8
8
|
spannedCells: Record<GridRowId, Record<GridColDef['field'], number>>;
|
|
9
9
|
hiddenCells: Record<GridRowId, Record<GridColDef['field'], boolean>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridSortDirection, GridSortModel } from "../../../models/gridSortModel.js";
|
|
2
|
-
import type { GridValidRowModel, GridRowEntry, GridRowId } from
|
|
2
|
+
import type { GridValidRowModel, GridRowEntry, GridRowId } from "../../../models/gridRows.js";
|
|
3
3
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
4
4
|
/**
|
|
5
5
|
* Get the id of the rows after the sorting process.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { gridSortedRowIdsSelector, gridSortedRowEntriesSelector, gridSortModelSelector, gridSortColumnLookupSelector } from "./gridSortingSelector.js";
|
|
2
|
-
export type { GridSortColumnLookup } from
|
|
3
|
-
export type { GridSortingState, GridSortingInitialState } from
|
|
2
|
+
export type { GridSortColumnLookup } from "./gridSortingSelector.js";
|
|
3
|
+
export type { GridSortingState, GridSortingInitialState } from "./gridSortingState.js";
|
|
4
4
|
export { gridDateComparator, gridNumberComparator, gridStringOrNumberComparator } from "./gridSortingUtils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { GridStatePersistenceApi, GridExportStateParams } from
|
|
1
|
+
export type { GridStatePersistenceApi, GridExportStateParams } from "./gridStatePersistenceInterface.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const gridFocusedVirtualCellSelector: import("@mui/x-data-grid").OutputSelector<import("../../../models/gridStateCommunity").GridStateCommunity, import("@mui/x-data-grid").GridCellCoordinates | null, {
|
|
1
|
+
export declare const gridFocusedVirtualCellSelector: import("@mui/x-data-grid").OutputSelector<import("../../../models/gridStateCommunity.js").GridStateCommunity, import("@mui/x-data-grid").GridCellCoordinates | null, {
|
|
2
2
|
rowIndex: number;
|
|
3
3
|
columnIndex: number;
|
|
4
4
|
id?: import("@mui/x-data-grid").GridRowId | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GridColumnsRenderContext } from
|
|
1
|
+
import type { GridColumnsRenderContext } from "../../../models/params/gridScrollParams.js";
|
|
2
2
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
3
3
|
/**
|
|
4
4
|
* Get the columns state
|
package/hooks/utils/index.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export * from "./useGridNativeEventListener.js";
|
|
|
6
6
|
export * from "./useFirstRender.js";
|
|
7
7
|
export * from "./useOnMount.js";
|
|
8
8
|
export * from "./useRunOnce.js";
|
|
9
|
-
export type { RenderProp } from
|
|
9
|
+
export type { RenderProp } from "./useGridComponentRenderer.js";
|
|
@@ -3,7 +3,7 @@ import { EventListenerOptions } from '@mui/x-internals/EventManager';
|
|
|
3
3
|
import { GridEventListener, GridEvents } from "../../models/events/index.js";
|
|
4
4
|
import { TimerBasedCleanupTracking } from "../../utils/cleanupTracking/TimerBasedCleanupTracking.js";
|
|
5
5
|
import { FinalizationRegistryBasedCleanupTracking } from "../../utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js";
|
|
6
|
-
import type { GridApiCommon } from
|
|
6
|
+
import type { GridApiCommon } from "../../models/index.js";
|
|
7
7
|
export declare function useGridEvent<Api extends GridApiCommon, E extends GridEvents>(apiRef: RefObject<Api>, eventName: E, handler?: GridEventListener<E>, options?: EventListenerOptions): void;
|
|
8
8
|
export declare function useGridEventPriority<Api extends GridApiCommon, E extends GridEvents>(apiRef: RefObject<Api>, eventName: E, handler?: GridEventListener<E>): void;
|
|
9
9
|
export declare function unstable_resetCleanupTracking(): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataGridProcessedProps } from
|
|
1
|
+
import type { DataGridProcessedProps } from "../../models/props/DataGridProps.js";
|
|
2
2
|
export declare const useGridRootProps: () => DataGridProcessedProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridApiCommon } from
|
|
3
|
-
import type { OutputSelector } from
|
|
2
|
+
import type { GridApiCommon } from "../../models/api/gridApiCommon.js";
|
|
3
|
+
import type { OutputSelector } from "../../utils/createSelector.js";
|
|
4
4
|
type Selector<Api extends GridApiCommon, Args, T> = ((apiRef: RefObject<Api>) => T) | ((apiRef: RefObject<Api | null>) => T) | OutputSelector<Api['state'], Args, T>;
|
|
5
5
|
export declare const objectShallowCompare: (a: unknown, b: unknown) => boolean;
|
|
6
6
|
export declare const argsEqual: (prev: any, curr: any) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { DataGridProcessedProps } from "../../models/props/DataGridProps.js";
|
|
3
|
-
import type { GridApiCommon } from
|
|
3
|
+
import type { GridApiCommon } from "../../models/index.js";
|
|
4
4
|
export declare const getVisibleRows: <Api extends GridApiCommon>(apiRef: RefObject<Api>, props?: Pick<DataGridProcessedProps, "pagination" | "paginationMode">) => {
|
|
5
5
|
rows: import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[];
|
|
6
6
|
range: {
|
package/index.d.ts
CHANGED
|
@@ -12,16 +12,16 @@ export * from "./models/index.js";
|
|
|
12
12
|
export * from "./context/index.js";
|
|
13
13
|
export * from "./colDef/index.js";
|
|
14
14
|
export * from "./utils/index.js";
|
|
15
|
-
export type { DataGridProps, GridExperimentalFeatures } from
|
|
16
|
-
export type { GridExportFormat, GridExportExtension } from
|
|
15
|
+
export type { DataGridProps, GridExperimentalFeatures } from "./models/props/DataGridProps.js";
|
|
16
|
+
export type { GridExportFormat, GridExportExtension } from "./models/gridExport.js";
|
|
17
17
|
export { GridColumnHeaders } from "./components/GridColumnHeaders.js";
|
|
18
|
-
export type { GridColumnHeadersProps } from
|
|
18
|
+
export type { GridColumnHeadersProps } from "./components/GridColumnHeaders.js";
|
|
19
19
|
/**
|
|
20
20
|
* Reexportable exports.
|
|
21
21
|
*/
|
|
22
22
|
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from "./components/reexportable.js";
|
|
23
|
-
export type { GridGetRowsParams, GridGetRowsResponse, GridDataSource } from
|
|
24
|
-
export type { GridDataSourceApiBase, GridDataSourceApi } from
|
|
23
|
+
export type { GridGetRowsParams, GridGetRowsResponse, GridDataSource } from "./models/gridDataSource.js";
|
|
24
|
+
export type { GridDataSourceApiBase, GridDataSourceApi } from "./hooks/features/dataSource/models.js";
|
|
25
25
|
/**
|
|
26
26
|
* The full grid API.
|
|
27
27
|
* @demos
|
package/index.js
CHANGED