UNPKG

ag-grid-enterprise

Version:

ag-Grid Enterprise Features

67 lines 2.31 kB
// ag-grid-enterprise v19.1.4 import { Column, Component, Context, DragAndDropService, EventService, GridOptionsWrapper, LoggerFactory } from "ag-grid-community/main"; export interface BaseDropZonePanelParams { dragAndDropIcon: string; emptyMessage: string; title: string; icon: HTMLElement; } export interface BaseDropZonePanelBeans { gridOptionsWrapper: GridOptionsWrapper; eventService: EventService; context: Context; loggerFactory: LoggerFactory; dragAndDropService: DragAndDropService; } export declare abstract class BaseDropZonePanel extends Component { private static STATE_NOT_DRAGGING; private static STATE_NEW_COLUMNS_IN; private static STATE_REARRANGE_COLUMNS; private static CHAR_LEFT_ARROW; private static CHAR_RIGHT_ARROW; private state; private logger; private dropTarget; private potentialDndColumns; private guiDestroyFunctions; private params; private beans; private childColumnComponents; private insertIndex; private horizontal; private valueColumn; private eColumnDropList; protected abstract isColumnDroppable(column: Column): boolean; protected abstract updateColumns(columns: Column[]): void; protected abstract getExistingColumns(): Column[]; protected abstract getIconName(): string; constructor(horizontal: boolean, valueColumn: boolean, name: string); isHorizontal(): boolean; setBeans(beans: BaseDropZonePanelBeans): void; destroy(): void; private destroyGui; init(params: BaseDropZonePanelParams): void; private setupDropTarget; private isInterestedIn; private checkInsertIndex; private getNewHorizontalInsertIndex; private getNewVerticalInsertIndex; private checkDragStartedBySelf; private onDragging; private onDragEnter; protected isPotentialDndColumns(): boolean; private onDragLeave; private onDragStop; private removeColumns; private addColumns; private rearrangeColumns; refreshGui(): void; private getNonGhostColumns; private addColumnsToGui; private createColumnComponent; private addIconAndTitleToGui; private isExistingColumnsEmpty; private addEmptyMessageToGui; private addArrow; } //# sourceMappingURL=baseDropZonePanel.d.ts.map