UNPKG

1.9 kBTypeScriptView Raw
1// Type definitions for ag-grid v18.1.2
2// Project: http://www.ag-grid.com/
3// Definitions by: Niall Crosby <https://github.com/ag-grid/>
4import { Column } from "../entities/column";
5import { DraggingEvent } from "../dragAndDrop/dragAndDropService";
6import { GridPanel } from "../gridPanel/gridPanel";
7import { DropListener } from "./bodyDropTarget";
8import { ColumnEventType } from "../events";
9export declare class MoveColumnController implements DropListener {
10 private loggerFactory;
11 private columnController;
12 private dragAndDropService;
13 private gridOptionsWrapper;
14 private gridPanel;
15 private needToMoveLeft;
16 private needToMoveRight;
17 private movingIntervalId;
18 private intervalCount;
19 private logger;
20 private pinned;
21 private centerContainer;
22 private lastDraggingEvent;
23 private failedMoveAttempts;
24 private eContainer;
25 constructor(pinned: string, eContainer: HTMLElement);
26 registerGridComp(gridPanel: GridPanel): void;
27 init(): void;
28 getIconName(): string;
29 onDragEnter(draggingEvent: DraggingEvent): void;
30 onDragLeave(draggingEvent: DraggingEvent): void;
31 setColumnsVisible(columns: Column[], visible: boolean, source?: ColumnEventType): void;
32 setColumnsPinned(columns: Column[], pinned: string, source?: ColumnEventType): void;
33 onDragStop(): void;
34 private normaliseX(x);
35 private checkCenterForScrolling(xAdjustedForScroll);
36 onDragging(draggingEvent: DraggingEvent, fromEnter?: boolean): void;
37 private normaliseDirection(hDirection);
38 private calculateOldIndex(movingCols);
39 private attemptMoveColumns(dragSourceType, allMovingColumns, hDirection, xAdjusted, fromEnter);
40 private calculateValidMoves(movingCols, draggingRight, x);
41 private isColumnHidden(displayedColumns, col);
42 private ensureIntervalStarted();
43 private ensureIntervalCleared();
44 private moveInterval();
45}