@mui/x-data-grid-pro 8.26.0 → 8.27.1
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 +153 -0
- package/DataGridPro/DataGridPro.d.ts +2 -2
- package/DataGridPro/DataGridPro.js +1 -1
- package/DataGridPro/useDataGridProComponent.d.ts +4 -4
- package/DataGridPro/useDataGridProProps.d.ts +2 -2
- package/components/GridColumnHeaders.d.ts +1 -1
- package/components/GridColumnMenuPinningItem.d.ts +1 -1
- package/components/GridDataSourceTreeDataGroupingCell.d.ts +1 -1
- package/components/GridDetailPanel.d.ts +1 -1
- package/components/GridDetailPanelToggleCell.d.ts +1 -1
- package/components/GridDetailPanels.d.ts +1 -1
- package/components/GridPinnedRows.d.ts +1 -1
- package/components/GridProColumnMenu.d.ts +2 -2
- package/components/GridProColumnMenu.js +3 -1
- package/components/GridRowReorderCell.d.ts +1 -1
- package/components/GridRowReorderCell.js +2 -2
- package/components/GridTreeDataGroupingCell.d.ts +1 -1
- package/components/headerFiltering/GridHeaderFilterCell.d.ts +2 -2
- package/components/headerFiltering/GridHeaderFilterCell.js +2 -1
- package/components/headerFiltering/GridHeaderFilterClearButton.d.ts +1 -1
- package/components/headerFiltering/GridHeaderFilterMenu.d.ts +1 -1
- package/components/headerFiltering/GridHeaderFilterMenuContainer.d.ts +1 -1
- package/esm/DataGridPro/DataGridPro.d.ts +2 -2
- package/esm/DataGridPro/DataGridPro.js +1 -1
- package/esm/DataGridPro/useDataGridProComponent.d.ts +4 -4
- package/esm/DataGridPro/useDataGridProProps.d.ts +2 -2
- package/esm/components/GridColumnHeaders.d.ts +1 -1
- package/esm/components/GridColumnMenuPinningItem.d.ts +1 -1
- package/esm/components/GridDataSourceTreeDataGroupingCell.d.ts +1 -1
- package/esm/components/GridDetailPanel.d.ts +1 -1
- package/esm/components/GridDetailPanelToggleCell.d.ts +1 -1
- package/esm/components/GridDetailPanels.d.ts +1 -1
- package/esm/components/GridPinnedRows.d.ts +1 -1
- package/esm/components/GridProColumnMenu.d.ts +2 -2
- package/esm/components/GridProColumnMenu.js +3 -1
- package/esm/components/GridRowReorderCell.d.ts +1 -1
- package/esm/components/GridRowReorderCell.js +1 -1
- package/esm/components/GridTreeDataGroupingCell.d.ts +1 -1
- package/esm/components/headerFiltering/GridHeaderFilterCell.d.ts +2 -2
- package/esm/components/headerFiltering/GridHeaderFilterCell.js +2 -1
- package/esm/components/headerFiltering/GridHeaderFilterClearButton.d.ts +1 -1
- package/esm/components/headerFiltering/GridHeaderFilterMenu.d.ts +1 -1
- package/esm/components/headerFiltering/GridHeaderFilterMenuContainer.d.ts +1 -1
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/esm/hooks/features/columnPinning/gridColumnPinningInterface.d.ts +2 -2
- package/esm/hooks/features/columnPinning/useGridColumnPinning.d.ts +4 -4
- package/esm/hooks/features/columnPinning/useGridColumnPinning.js +4 -0
- package/esm/hooks/features/columnPinning/useGridColumnPinningPreProcessors.d.ts +3 -3
- package/esm/hooks/features/columnReorder/columnReorderSelector.d.ts +1 -1
- package/esm/hooks/features/columnReorder/useGridColumnReorder.d.ts +4 -4
- package/esm/hooks/features/dataSource/gridDataSourceSelector.d.ts +1 -1
- package/esm/hooks/features/dataSource/useGridDataSourceBasePro.d.ts +6 -6
- package/esm/hooks/features/dataSource/useGridDataSourcePro.d.ts +4 -4
- package/esm/hooks/features/dataSource/utils.d.ts +3 -3
- package/esm/hooks/features/detailPanel/gridDetailPanelInterface.d.ts +2 -2
- package/esm/hooks/features/detailPanel/gridDetailPanelSelector.d.ts +1 -1
- package/esm/hooks/features/detailPanel/gridDetailPanelToggleColDef.d.ts +1 -1
- package/esm/hooks/features/detailPanel/useGridDetailPanel.d.ts +4 -4
- package/esm/hooks/features/detailPanel/useGridDetailPanelPreProcessors.d.ts +3 -3
- package/esm/hooks/features/infiniteLoader/useGridInfiniteLoader.d.ts +3 -3
- package/esm/hooks/features/lazyLoader/useGridLazyLoader.d.ts +3 -3
- package/esm/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.d.ts +3 -3
- package/esm/hooks/features/lazyLoader/utils.d.ts +23 -8
- package/esm/hooks/features/lazyLoader/utils.js +23 -0
- package/esm/hooks/features/rowPinning/gridRowPinningInterface.d.ts +1 -1
- package/esm/hooks/features/rowPinning/useGridRowPinning.d.ts +4 -4
- package/esm/hooks/features/rowPinning/useGridRowPinningPreProcessors.d.ts +4 -4
- package/esm/hooks/features/rowReorder/gridRowReorderColDef.d.ts +1 -1
- package/esm/hooks/features/rowReorder/models.d.ts +1 -1
- package/esm/hooks/features/rowReorder/reorderValidator.d.ts +1 -1
- package/esm/hooks/features/rowReorder/useGridRowReorder.d.ts +3 -3
- package/esm/hooks/features/rowReorder/useGridRowReorderPreProcessors.d.ts +3 -3
- package/esm/hooks/features/rowReorder/utils.d.ts +2 -2
- package/esm/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
- package/esm/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.d.ts +3 -3
- package/esm/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js +23 -28
- package/esm/hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.d.ts +3 -3
- package/esm/hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.js +1 -1
- package/esm/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.d.ts +3 -3
- package/esm/hooks/features/serverSideTreeData/utils.d.ts +5 -2
- package/esm/hooks/features/serverSideTreeData/utils.js +14 -2
- package/esm/hooks/features/treeData/gridTreeDataGroupColDef.d.ts +1 -1
- package/esm/hooks/features/treeData/gridTreeDataUtils.d.ts +3 -3
- package/esm/hooks/features/treeData/treeDataReorderExecutor.d.ts +1 -1
- package/esm/hooks/features/treeData/useGridTreeData.d.ts +1 -1
- package/esm/hooks/features/treeData/useGridTreeDataPreProcessors.d.ts +3 -3
- package/esm/hooks/utils/useGridApiContext.d.ts +3 -3
- package/esm/hooks/utils/useGridApiRef.d.ts +2 -2
- package/esm/hooks/utils/useGridAriaAttributes.d.ts +1 -1
- package/esm/hooks/utils/useGridPrivateApiContext.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/propValidation.d.ts +2 -2
- package/esm/models/dataGridProProps.d.ts +4 -4
- package/esm/models/gridApiPro.d.ts +3 -3
- package/esm/models/gridFetchRowsParams.d.ts +1 -1
- package/esm/models/gridGroupingColDefOverride.d.ts +1 -1
- package/esm/models/gridProIconSlotsComponent.d.ts +2 -2
- package/esm/models/gridProSlotProps.d.ts +1 -1
- package/esm/models/gridProSlotsComponent.d.ts +2 -2
- package/esm/models/gridRowOrderChangeParams.d.ts +1 -1
- package/esm/models/gridRowScrollEndParams.d.ts +1 -1
- package/esm/models/gridStatePro.d.ts +1 -1
- package/esm/themeAugmentation/overrides.d.ts +1 -1
- package/esm/themeAugmentation/props.d.ts +2 -2
- package/esm/typeOverloads/modules.d.ts +2 -2
- package/esm/utils/tree/createRowTree.d.ts +4 -4
- package/esm/utils/tree/insertDataRowInTree.d.ts +4 -4
- package/esm/utils/tree/models.d.ts +1 -1
- package/esm/utils/tree/removeDataRowFromTree.d.ts +2 -2
- package/esm/utils/tree/sortRowTree.d.ts +2 -2
- package/esm/utils/tree/updateRowTree.d.ts +3 -3
- package/esm/utils/tree/utils.d.ts +4 -4
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columnPinning/gridColumnPinningInterface.d.ts +2 -2
- package/hooks/features/columnPinning/useGridColumnPinning.d.ts +4 -4
- package/hooks/features/columnPinning/useGridColumnPinning.js +4 -0
- package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.d.ts +3 -3
- package/hooks/features/columnReorder/columnReorderSelector.d.ts +1 -1
- package/hooks/features/columnReorder/useGridColumnReorder.d.ts +4 -4
- package/hooks/features/dataSource/gridDataSourceSelector.d.ts +1 -1
- package/hooks/features/dataSource/useGridDataSourceBasePro.d.ts +6 -6
- package/hooks/features/dataSource/useGridDataSourcePro.d.ts +4 -4
- package/hooks/features/dataSource/utils.d.ts +3 -3
- package/hooks/features/detailPanel/gridDetailPanelInterface.d.ts +2 -2
- package/hooks/features/detailPanel/gridDetailPanelSelector.d.ts +1 -1
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.d.ts +1 -1
- package/hooks/features/detailPanel/useGridDetailPanel.d.ts +4 -4
- package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.d.ts +3 -3
- package/hooks/features/infiniteLoader/useGridInfiniteLoader.d.ts +3 -3
- package/hooks/features/lazyLoader/useGridLazyLoader.d.ts +3 -3
- package/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.d.ts +3 -3
- package/hooks/features/lazyLoader/utils.d.ts +23 -8
- package/hooks/features/lazyLoader/utils.js +26 -1
- package/hooks/features/rowPinning/gridRowPinningInterface.d.ts +1 -1
- package/hooks/features/rowPinning/useGridRowPinning.d.ts +4 -4
- package/hooks/features/rowPinning/useGridRowPinningPreProcessors.d.ts +4 -4
- package/hooks/features/rowReorder/gridRowReorderColDef.d.ts +1 -1
- package/hooks/features/rowReorder/models.d.ts +1 -1
- package/hooks/features/rowReorder/reorderValidator.d.ts +1 -1
- package/hooks/features/rowReorder/useGridRowReorder.d.ts +3 -3
- package/hooks/features/rowReorder/useGridRowReorderPreProcessors.d.ts +3 -3
- package/hooks/features/rowReorder/utils.d.ts +2 -2
- package/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
- package/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.d.ts +3 -3
- package/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js +23 -28
- package/hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.d.ts +3 -3
- package/hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.js +2 -2
- package/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.d.ts +3 -3
- package/hooks/features/serverSideTreeData/utils.d.ts +5 -2
- package/hooks/features/serverSideTreeData/utils.js +14 -2
- package/hooks/features/treeData/gridTreeDataGroupColDef.d.ts +1 -1
- package/hooks/features/treeData/gridTreeDataUtils.d.ts +3 -3
- package/hooks/features/treeData/treeDataReorderExecutor.d.ts +1 -1
- package/hooks/features/treeData/useGridTreeData.d.ts +1 -1
- package/hooks/features/treeData/useGridTreeDataPreProcessors.d.ts +3 -3
- package/hooks/utils/useGridApiContext.d.ts +3 -3
- package/hooks/utils/useGridApiRef.d.ts +2 -2
- package/hooks/utils/useGridAriaAttributes.d.ts +1 -1
- package/hooks/utils/useGridPrivateApiContext.d.ts +1 -1
- package/index.js +1 -1
- package/internals/propValidation.d.ts +2 -2
- package/models/dataGridProProps.d.ts +4 -4
- package/models/gridApiPro.d.ts +3 -3
- package/models/gridFetchRowsParams.d.ts +1 -1
- package/models/gridGroupingColDefOverride.d.ts +1 -1
- package/models/gridProIconSlotsComponent.d.ts +2 -2
- package/models/gridProSlotProps.d.ts +1 -1
- package/models/gridProSlotsComponent.d.ts +2 -2
- package/models/gridRowOrderChangeParams.d.ts +1 -1
- package/models/gridRowScrollEndParams.d.ts +1 -1
- package/models/gridStatePro.d.ts +1 -1
- package/package.json +4 -4
- package/themeAugmentation/overrides.d.ts +1 -1
- package/themeAugmentation/props.d.ts +2 -2
- package/typeOverloads/modules.d.ts +2 -2
- package/utils/tree/createRowTree.d.ts +4 -4
- package/utils/tree/insertDataRowInTree.d.ts +4 -4
- package/utils/tree/models.d.ts +1 -1
- package/utils/tree/removeDataRowFromTree.d.ts +2 -2
- package/utils/tree/sortRowTree.d.ts +2 -2
- package/utils/tree/updateRowTree.d.ts +3 -3
- package/utils/tree/utils.d.ts +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid';
|
|
1
|
+
import type { GridColDef, GridValidRowModel } from '@mui/x-data-grid';
|
|
2
2
|
export interface GridGroupingColDefOverride<R extends GridValidRowModel = any> extends Omit<GridColDef<R>, 'editable' | 'valueSetter' | 'field' | 'type' | 'preProcessEditCellProps' | 'renderEditCell' | 'groupable'> {
|
|
3
3
|
/**
|
|
4
4
|
* The field from which we want to apply the sorting and the filtering for the grouping column.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseSlots } from '@mui/x-data-grid/internals';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseSlots } from '@mui/x-data-grid/internals';
|
|
3
3
|
type IconProps = BaseSlots.IconProps;
|
|
4
4
|
export interface GridProIconSlotsComponent {
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridSlotsComponentsProps } from '@mui/x-data-grid/internals';
|
|
1
|
+
import type { GridSlotsComponentsProps } from '@mui/x-data-grid/internals';
|
|
2
2
|
import type { GridHeaderFilterCellProps } from "../components/headerFiltering/GridHeaderFilterCell.js";
|
|
3
3
|
export interface HeaderFilterCellPropsOverrides {}
|
|
4
4
|
type SlotProps<Props, Overrides> = Partial<Props & Overrides>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridSlotsComponent } from '@mui/x-data-grid';
|
|
2
|
-
import { GridProIconSlotsComponent } from "./gridProIconSlotsComponent.js";
|
|
1
|
+
import type { GridSlotsComponent } from '@mui/x-data-grid';
|
|
2
|
+
import type { GridProIconSlotsComponent } from "./gridProIconSlotsComponent.js";
|
|
3
3
|
/**
|
|
4
4
|
* Grid components React prop interface containing all the overridable components
|
|
5
5
|
* for Pro package
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridInitialState as GridInitialStateCommunity, GridState as GridStateCommunity, GridColumnPinningState, GridPinnedColumnFields } from '@mui/x-data-grid';
|
|
1
|
+
import type { GridInitialState as GridInitialStateCommunity, GridState as GridStateCommunity, GridColumnPinningState, GridPinnedColumnFields } from '@mui/x-data-grid';
|
|
2
2
|
import type { GridDetailPanelState, GridDetailPanelInitialState, GridColumnReorderState } from "../hooks/index.js";
|
|
3
3
|
import type { GridDataSourceState } from "../hooks/features/dataSource/models.js";
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentsOverrides, ComponentsProps } from '@mui/material/styles';
|
|
2
|
-
import { DataGridProProps } from "../models/dataGridProProps.js";
|
|
1
|
+
import type { ComponentsOverrides, ComponentsProps } from '@mui/material/styles';
|
|
2
|
+
import type { DataGridProProps } from "../models/dataGridProProps.js";
|
|
3
3
|
export interface DataGridProComponentsPropsList {
|
|
4
4
|
MuiDataGrid: DataGridProProps;
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { GridRowId, GridPinnedColumnFields } from '@mui/x-data-grid';
|
|
1
|
+
import type { GridRowId, GridPinnedColumnFields } from '@mui/x-data-grid';
|
|
2
2
|
import type { GridRowScrollEndParams, GridRowOrderChangeParams, GridFetchRowsParams } from "../models/index.js";
|
|
3
3
|
import type { GridRenderHeaderFilterProps } from "../components/headerFiltering/GridHeaderFilterCell.js";
|
|
4
4
|
import type { GridColumnPinningInternalCache } from "../hooks/features/columnPinning/gridColumnPinningInterface.js";
|
|
5
5
|
import type { GridCanBeReorderedPreProcessingContext } from "../hooks/features/columnReorder/columnReorderInterfaces.js";
|
|
6
|
-
import { GridRowPinningInternalCache } from "../hooks/features/rowPinning/gridRowPinningInterface.js";
|
|
6
|
+
import type { GridRowPinningInternalCache } from "../hooks/features/rowPinning/gridRowPinningInterface.js";
|
|
7
7
|
export interface GridColDefPro {
|
|
8
8
|
/**
|
|
9
9
|
* Allows to render a component in the column header filter cell.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
-
import { GridRowTreeCreationValue } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { RowTreeBuilderNode, GridTreePathDuplicateHandler } from "./models.js";
|
|
4
|
-
import { DataGridProProps } from "../../models/dataGridProProps.js";
|
|
1
|
+
import { type GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
+
import { type GridRowTreeCreationValue } from '@mui/x-data-grid/internals';
|
|
3
|
+
import type { RowTreeBuilderNode, GridTreePathDuplicateHandler } from "./models.js";
|
|
4
|
+
import type { DataGridProProps } from "../../models/dataGridProProps.js";
|
|
5
5
|
interface CreateRowTreeParams {
|
|
6
6
|
previousTree: GridRowTreeConfig | null;
|
|
7
7
|
nodes: RowTreeBuilderNode[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GridRowId, GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
-
import { GridTreeDepths } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridTreePathDuplicateHandler, RowTreeBuilderGroupingCriterion } from "./models.js";
|
|
4
|
-
import { DataGridProProps } from "../../models/dataGridProProps.js";
|
|
1
|
+
import { type GridRowId, type GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
+
import type { GridTreeDepths } from '@mui/x-data-grid/internals';
|
|
3
|
+
import type { GridTreePathDuplicateHandler, RowTreeBuilderGroupingCriterion } from "./models.js";
|
|
4
|
+
import type { DataGridProProps } from "../../models/dataGridProProps.js";
|
|
5
5
|
interface InsertDataRowInTreeParams {
|
|
6
6
|
/**
|
|
7
7
|
* ID of the data row to insert in the tree.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridRowId, GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
-
import { GridTreeDepths } from '@mui/x-data-grid/internals';
|
|
1
|
+
import { type GridRowId, type GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
+
import type { GridTreeDepths } from '@mui/x-data-grid/internals';
|
|
3
3
|
interface RemoveDataRowFromTreeParams {
|
|
4
4
|
/**
|
|
5
5
|
* ID of the data row to remove from the tree.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridRowId, GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
-
import { GridSortingModelApplier } from '@mui/x-data-grid/internals';
|
|
1
|
+
import { type GridRowId, type GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
+
import type { GridSortingModelApplier } from '@mui/x-data-grid/internals';
|
|
3
3
|
interface SortRowTreeParams {
|
|
4
4
|
rowTree: GridRowTreeConfig;
|
|
5
5
|
disableChildrenSorting: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GridGroupNode, GridRowId, GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
-
import { GridRowTreeCreationValue, GridTreeDepths } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridTreePathDuplicateHandler, RowTreeBuilderNode } from "./models.js";
|
|
1
|
+
import { type GridGroupNode, type GridRowId, type GridRowTreeConfig } from '@mui/x-data-grid';
|
|
2
|
+
import { type GridRowTreeCreationValue, type GridTreeDepths } from '@mui/x-data-grid/internals';
|
|
3
|
+
import type { GridTreePathDuplicateHandler, RowTreeBuilderNode } from "./models.js";
|
|
4
4
|
export interface UpdateRowTreeNodes {
|
|
5
5
|
inserted: RowTreeBuilderNode[];
|
|
6
6
|
modified: RowTreeBuilderNode[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GridFilterState, GridGroupNode, GridRowId, GridRowTreeConfig, GridRowsState, GridTreeNode } from '@mui/x-data-grid';
|
|
2
|
-
import { GridTreeDepths } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { RowTreeBuilderGroupingCriterion } from "./models.js";
|
|
4
|
-
import { DataGridProProps } from "../../models/dataGridProProps.js";
|
|
1
|
+
import { type GridFilterState, type GridGroupNode, type GridRowId, type GridRowTreeConfig, type GridRowsState, type GridTreeNode } from '@mui/x-data-grid';
|
|
2
|
+
import type { GridTreeDepths } from '@mui/x-data-grid/internals';
|
|
3
|
+
import type { RowTreeBuilderGroupingCriterion } from "./models.js";
|
|
4
|
+
import type { DataGridProProps } from "../../models/dataGridProProps.js";
|
|
5
5
|
import type { GridStatePro } from "../../models/gridStatePro.js";
|
|
6
6
|
export declare const getGroupRowIdFromPath: (path: RowTreeBuilderGroupingCriterion[]) => string;
|
|
7
7
|
export declare const getNodePathInTree: ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { UseGridColumnHeadersProps, GetHeadersParams } from '@mui/x-data-grid/internals';
|
|
2
|
+
import { type UseGridColumnHeadersProps, type GetHeadersParams } from '@mui/x-data-grid/internals';
|
|
3
3
|
export declare const useGridColumnHeadersPro: (props: UseGridColumnHeadersProps) => {
|
|
4
4
|
getColumnFiltersRow: () => import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
getFillers: (params: GetHeadersParams | undefined, children: React.ReactNode, leftOverflow: number, borderBottom?: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridPinnedColumnPosition } from '@mui/x-data-grid';
|
|
2
|
-
import { GridPinnedColumnFields } from '@mui/x-data-grid/internals';
|
|
1
|
+
import type { GridPinnedColumnPosition } from '@mui/x-data-grid';
|
|
2
|
+
import type { GridPinnedColumnFields } from '@mui/x-data-grid/internals';
|
|
3
3
|
/**
|
|
4
4
|
* The column pinning API interface that is available in the grid [[apiRef]].
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
5
5
|
export declare const columnPinningStateInitializer: GridStateInitializer<Pick<DataGridProProcessedProps, 'pinnedColumns' | 'initialState'>>;
|
|
6
6
|
export declare const useGridColumnPinning: (apiRef: RefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, "disableColumnPinning" | "initialState" | "pinnedColumns" | "onPinnedColumnsChange" | "slotProps" | "slots">) => void;
|
|
@@ -112,7 +112,11 @@ const useGridColumnPinning = (apiRef, props) => {
|
|
|
112
112
|
const stateRestorePreProcessing = React.useCallback((params, context) => {
|
|
113
113
|
const newPinnedColumns = context.stateToRestore.pinnedColumns;
|
|
114
114
|
if (newPinnedColumns != null) {
|
|
115
|
+
apiRef.current.caches.columnPinning.orderedFieldsBeforePinningColumns = null;
|
|
115
116
|
setState(apiRef, newPinnedColumns);
|
|
117
|
+
return (0, _extends2.default)({}, params, {
|
|
118
|
+
callbacks: [...params.callbacks, () => apiRef.current.requestPipeProcessorsApplication('hydrateColumns')]
|
|
119
|
+
});
|
|
116
120
|
}
|
|
117
121
|
return params;
|
|
118
122
|
}, [apiRef]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
4
|
export declare const useGridColumnPinningPreProcessors: (apiRef: RefObject<GridPrivateApiPro>, props: DataGridProProcessedProps) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridStatePro } from "../../../models/gridStatePro.js";
|
|
1
|
+
import type { GridStatePro } from "../../../models/gridStatePro.js";
|
|
2
2
|
export declare const gridColumnReorderSelector: import("@mui/x-data-grid").OutputSelector<GridStatePro, unknown, import("./columnReorderInterfaces.js").GridColumnReorderState>;
|
|
3
3
|
export declare const gridColumnReorderDragColSelector: (args_0: import("react").RefObject<{
|
|
4
4
|
state: GridStatePro;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
5
5
|
export declare const columnReorderStateInitializer: GridStateInitializer;
|
|
6
6
|
/**
|
|
7
7
|
* @requires useGridColumns (method)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GridRowId } from '@mui/x-data-grid';
|
|
2
|
-
import { GridStatePro } from "../../../models/gridStatePro.js";
|
|
2
|
+
import type { GridStatePro } from "../../../models/gridStatePro.js";
|
|
3
3
|
export declare const gridDataSourceStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePro, unknown, import("./models.js").GridDataSourceState>;
|
|
4
4
|
export declare const gridDataSourceLoadingSelector: (args_0: import("react").RefObject<{
|
|
5
5
|
state: GridStatePro;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridRowId } from '@mui/x-data-grid';
|
|
3
|
-
import { CacheChunkManager, DataSourceRowsUpdateStrategy, GridDataSourceBaseOptions, GridStrategyProcessor } from '@mui/x-data-grid/internals';
|
|
4
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
5
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
6
|
-
import { GridDataSourceApiPro, GridDataSourcePrivateApiPro } from "./models.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridRowId } from '@mui/x-data-grid';
|
|
3
|
+
import { CacheChunkManager, DataSourceRowsUpdateStrategy, type GridDataSourceBaseOptions, type GridStrategyProcessor } from '@mui/x-data-grid/internals';
|
|
4
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
5
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
6
|
+
import type { GridDataSourceApiPro, GridDataSourcePrivateApiPro } from "./models.js";
|
|
7
7
|
export declare const INITIAL_STATE: {
|
|
8
8
|
loading: {};
|
|
9
9
|
errors: {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
5
5
|
export declare const dataSourceStateInitializer: GridStateInitializer;
|
|
6
6
|
export declare const useGridDataSourcePro: (apiRef: RefObject<GridPrivateApiPro>, props: DataGridProProcessedProps) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridKeyValue, GridRowId, GridRowTreeConfig } from '@mui/x-data-grid';
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/index.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridKeyValue, type GridRowId, type GridRowTreeConfig } from '@mui/x-data-grid';
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/index.js";
|
|
4
4
|
export declare enum RequestStatus {
|
|
5
5
|
QUEUED = 0,
|
|
6
6
|
PENDING = 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridStatePro } from "../../../models/gridStatePro.js";
|
|
1
|
+
import type { GridStatePro } from "../../../models/gridStatePro.js";
|
|
2
2
|
export declare const gridDetailPanelStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePro, unknown, import("./gridDetailPanelInterface.js").GridDetailPanelState>;
|
|
3
3
|
export declare const gridDetailPanelExpandedRowIdsSelector: (args_0: import("react").RefObject<{
|
|
4
4
|
state: GridStatePro;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridColDef } from '@mui/x-data-grid';
|
|
1
|
+
import { type GridColDef } from '@mui/x-data-grid';
|
|
2
2
|
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '@mui/x-data-grid/internals';
|
|
3
3
|
export { GRID_DETAIL_PANEL_TOGGLE_FIELD };
|
|
4
4
|
export declare const GRID_DETAIL_PANEL_TOGGLE_COL_DEF: GridColDef;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
5
5
|
export declare const detailPanelStateInitializer: GridStateInitializer<Pick<DataGridProProcessedProps, 'initialState' | 'detailPanelExpandedRowIds'>>;
|
|
6
6
|
export declare const useGridDetailPanel: (apiRef: RefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, "getDetailPanelContent" | "getDetailPanelHeight" | "detailPanelExpandedRowIds" | "onDetailPanelExpandedRowIdsChange">) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
4
|
export declare const useGridDetailPanelPreProcessors: (privateApiRef: RefObject<GridPrivateApiPro>, props: DataGridProProcessedProps) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
3
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
4
4
|
/**
|
|
5
5
|
* @requires useGridColumns (state)
|
|
6
6
|
* @requires useGridDimensions (method) - can be after
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
3
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
4
4
|
/**
|
|
5
5
|
* @requires useGridRows (state)
|
|
6
6
|
* @requires useGridPagination (state)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
3
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
4
4
|
export declare const GRID_SKELETON_ROW_ROOT_ID = "auto-generated-skeleton-row-root";
|
|
5
5
|
export declare const useGridLazyLoaderPreProcessors: (privateApiRef: RefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, "rowCount" | "rowsLoadingMode">) => void;
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridRowEntry } from '@mui/x-data-grid';
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridRowEntry } from '@mui/x-data-grid';
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
+
interface GridRowRenderContext {
|
|
5
|
+
firstRowIndex: number;
|
|
6
|
+
lastRowIndex: number;
|
|
7
|
+
}
|
|
8
|
+
interface AdjustRowParamsOptions {
|
|
9
|
+
pageSize: number;
|
|
10
|
+
rowCount: number | undefined;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Adjusts the row fetch parameters to align with page boundaries.
|
|
14
|
+
* - Start index is decreased to the start of the page
|
|
15
|
+
* - End index is increased to the end of the page (capped by rowCount - 1 if defined)
|
|
16
|
+
*/
|
|
17
|
+
export declare const adjustRowParams: <T extends {
|
|
18
|
+
start: number | string;
|
|
19
|
+
end: number;
|
|
20
|
+
}>(params: T, options: AdjustRowParamsOptions) => T;
|
|
4
21
|
export declare const findSkeletonRowsSection: ({
|
|
5
22
|
apiRef,
|
|
6
23
|
visibleRows,
|
|
@@ -8,11 +25,9 @@ export declare const findSkeletonRowsSection: ({
|
|
|
8
25
|
}: {
|
|
9
26
|
apiRef: RefObject<GridPrivateApiPro>;
|
|
10
27
|
visibleRows: GridRowEntry[];
|
|
11
|
-
range:
|
|
12
|
-
firstRowIndex: number;
|
|
13
|
-
lastRowIndex: number;
|
|
14
|
-
};
|
|
28
|
+
range: GridRowRenderContext;
|
|
15
29
|
}) => {
|
|
16
30
|
firstRowIndex: number;
|
|
17
31
|
lastRowIndex: number;
|
|
18
|
-
} | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
export {};
|
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.findSkeletonRowsSection = void 0;
|
|
7
|
+
exports.findSkeletonRowsSection = exports.adjustRowParams = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
9
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
10
|
+
/**
|
|
11
|
+
* Adjusts the row fetch parameters to align with page boundaries.
|
|
12
|
+
* - Start index is decreased to the start of the page
|
|
13
|
+
* - End index is increased to the end of the page (capped by rowCount - 1 if defined)
|
|
14
|
+
*/
|
|
15
|
+
const adjustRowParams = (params, options) => {
|
|
16
|
+
if (typeof params.start !== 'number') {
|
|
17
|
+
return params;
|
|
18
|
+
}
|
|
19
|
+
const {
|
|
20
|
+
pageSize,
|
|
21
|
+
rowCount
|
|
22
|
+
} = options;
|
|
23
|
+
const adjustedStart = params.start - params.start % pageSize;
|
|
24
|
+
const pageAlignedEnd = params.end + pageSize - params.end % pageSize - 1;
|
|
25
|
+
// rowCount of -1 means "unknown/infinite", treat same as undefined (no capping)
|
|
26
|
+
const maxEnd = rowCount !== undefined && rowCount !== -1 ? Math.max(0, rowCount - 1) : Infinity;
|
|
27
|
+
return (0, _extends2.default)({}, params, {
|
|
28
|
+
start: adjustedStart,
|
|
29
|
+
end: Math.min(maxEnd, pageAlignedEnd)
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
exports.adjustRowParams = adjustRowParams;
|
|
8
33
|
const findSkeletonRowsSection = ({
|
|
9
34
|
apiRef,
|
|
10
35
|
visibleRows,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridRowId, GridRowIdToModelLookup, GridRowsProp, GridValidRowModel } from '@mui/x-data-grid';
|
|
1
|
+
import type { GridRowId, GridRowIdToModelLookup, GridRowsProp, GridValidRowModel } from '@mui/x-data-grid';
|
|
2
2
|
export interface GridPinnedRowsProp<R extends GridValidRowModel = GridValidRowModel> {
|
|
3
3
|
top?: GridRowsProp<R>;
|
|
4
4
|
bottom?: GridRowsProp<R>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
5
5
|
export declare const rowPinningStateInitializer: GridStateInitializer<Pick<DataGridProProcessedProps, 'pinnedRows' | 'getRowId'>>;
|
|
6
6
|
export declare const useGridRowPinning: (apiRef: RefObject<GridPrivateApiPro>, props: Pick<DataGridProProcessedProps, "pinnedRows" | "getRowId">) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridHydrateRowsValue } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridRowId, GridRowModel } from '@mui/x-data-grid';
|
|
4
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridHydrateRowsValue } from '@mui/x-data-grid/internals';
|
|
3
|
+
import { type GridRowId, type GridRowModel } from '@mui/x-data-grid';
|
|
4
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
5
5
|
import type { GridPinnedRowsProp } from "./gridRowPinningInterface.js";
|
|
6
6
|
type GridPinnedRowPosition = keyof GridPinnedRowsProp;
|
|
7
7
|
export declare function addPinnedRow({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GridColDef } from '@mui/x-data-grid';
|
|
1
|
+
import { type GridColDef } from '@mui/x-data-grid';
|
|
2
2
|
export declare const GRID_REORDER_COL_DEF: GridColDef;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridTreeNode, GridValidRowModel } from '@mui/x-data-grid';
|
|
1
|
+
import type { GridTreeNode, GridValidRowModel } from '@mui/x-data-grid';
|
|
2
2
|
import type { RefObject } from '@mui/x-internals/types';
|
|
3
3
|
import type { RowReorderDropPosition, RowReorderDragDirection } from '@mui/x-data-grid/internals';
|
|
4
4
|
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { type GridStateInitializer } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
5
5
|
export declare const rowReorderStateInitializer: GridStateInitializer;
|
|
6
6
|
/**
|
|
7
7
|
* Hook for row reordering (Pro package)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
3
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
3
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
4
4
|
export declare const useGridRowReorderPreProcessors: (privateApiRef: RefObject<GridPrivateApiPro>, props: DataGridProProcessedProps) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { type GridRowId, type GridTreeNode, type GridGroupNode, type GridRowTreeConfig, type GridKeyValue, type GridValidRowModel } from '@mui/x-data-grid';
|
|
3
|
-
import {
|
|
3
|
+
import type { ReorderOperationType } from "./types.js";
|
|
4
4
|
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
5
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
5
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
6
6
|
export { getNodePathInTree } from "../../../utils/tree/utils.js";
|
|
7
7
|
/**
|
|
8
8
|
* Finds the closest cell element from the given event target.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { GridTreeNode } from '@mui/x-data-grid';
|
|
2
|
+
import { type GridTreeNode } from '@mui/x-data-grid';
|
|
3
3
|
export declare const useGridRowAriaAttributesPro: (addTreeDataAttributes?: boolean) => (rowNode: GridTreeNode, index: number) => React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
3
|
-
import { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
|
|
3
|
+
import type { DataGridProProcessedProps } from "../../../models/dataGridProProps.js";
|
|
4
4
|
/**
|
|
5
5
|
* @requires useGridRows (state)
|
|
6
6
|
* @requires useGridPagination (state)
|