UNPKG

@mui/x-data-grid-pro

Version:

The Pro plan edition of the MUI X Data Grid components.

27 lines 1.01 kB
import type { ReorderExecutionContext, ReorderOperation } from "./types.js"; /** * Base class for all reorder operations. * Provides abstract methods for operation detection and execution. */ export declare abstract class BaseReorderOperation { abstract readonly operationType: string; /** * Detects if this operation can handle the given context. */ abstract detectOperation(ctx: ReorderExecutionContext): ReorderOperation | null; /** * Executes the detected operation. */ abstract executeOperation(operation: ReorderOperation, ctx: ReorderExecutionContext): Promise<void> | void; } /** * Executor class for handling row reorder operations in grouped data grids. * * This class coordinates the execution of different reorder operation types, * trying each operation in order until one succeeds or all fail. */ export declare class RowReorderExecutor { private operations; constructor(operations: BaseReorderOperation[]); execute(ctx: ReorderExecutionContext): Promise<void>; }