@mui/x-data-grid-pro
Version:
The Pro plan edition of the MUI X Data Grid components.
8 lines • 1.02 kB
TypeScript
import { type GridRowId, type GridTreeNode, type GridGroupNode, type GridValidRowModel, type GridRowTreeConfig } from '@mui/x-data-grid';
import type { ReorderExecutionContext } from "../rowReorder/types.js";
export declare const buildTreeDataPath: (node: GridTreeNode, tree: GridRowTreeConfig) => string[];
export declare function displaySetTreeDataPathWarning(operationName: string): void;
export declare function removeNodeFromSourceParent(updatedTree: Record<string, GridTreeNode>, sourceNode: GridTreeNode): void;
export declare function updateLeafPath(sourceNode: GridTreeNode, targetPath: string[], ctx: ReorderExecutionContext): Promise<GridValidRowModel | null>;
export declare function updateGroupHierarchyPaths(sourceNode: GridGroupNode, sourceBasePath: string[], targetPath: string[], ctx: ReorderExecutionContext): Promise<GridValidRowModel[]>;
export declare function updateNodeParentAndDepth(updatedTree: Record<string, GridTreeNode>, node: GridTreeNode, newParentId: GridRowId, newDepth: number): void;