UNPKG

1.45 kBTypeScriptView Raw
1import type { AgColumn, BeanCollection, ColumnEventType, ColumnModel, DragItem, DraggingEvent, DropTarget, FuncColsService } from 'ag-grid-community';
2import { DragSourceType } from 'ag-grid-community';
3import type { PillDropZonePanelParams } from 'ag-grid-enterprise';
4import { PillDropZonePanel } from 'ag-grid-enterprise';
5import { DropZoneColumnComp } from './dropZoneColumnComp';
6export type TDropZone = 'rowGroup' | 'pivot' | 'aggregation';
7export declare abstract class BaseDropZonePanel extends PillDropZonePanel<DropZoneColumnComp, AgColumn> {
8 private dropZonePurpose;
9 protected columnModel: ColumnModel;
10 protected funcColsService: FuncColsService;
11 wireBeans(beans: BeanCollection): void;
12 constructor(horizontal: boolean, dropZonePurpose: TDropZone);
13 init(params: PillDropZonePanelParams): void;
14 protected getItems(dragItem: DragItem): AgColumn[];
15 protected isInterestedIn(type: DragSourceType): boolean;
16 protected minimumAllowedNewInsertIndex(): number;
17 private showOrHideColumnOnExit;
18 protected handleDragEnterEnd(draggingEvent: DraggingEvent): void;
19 protected handleDragLeaveEnd(draggingEvent: DraggingEvent): void;
20 setColumnsVisible(columns: AgColumn[] | null | undefined, visible: boolean, source: ColumnEventType): void;
21 private isRowGroupPanel;
22 protected createPillComponent(column: AgColumn, dropTarget: DropTarget, ghost: boolean, horizontal: boolean): DropZoneColumnComp;
23}