1 | import type { BeanCollection, DragItem, DragSourceType, DraggingEvent, DropTarget } from 'ag-grid-community';
|
2 | import { Component } from 'ag-grid-community';
|
3 | import type { PillDragComp } from './pillDragComp';
|
4 | export interface PillDropZonePanelParams {
|
5 | emptyMessage?: string;
|
6 | title?: string;
|
7 | icon?: Element;
|
8 | }
|
9 | export declare abstract class PillDropZonePanel<TPill extends PillDragComp<TItem>, TItem> extends Component {
|
10 | private horizontal;
|
11 | private focusService;
|
12 | private dragAndDropService;
|
13 | wireBeans(beans: BeanCollection): void;
|
14 | private state;
|
15 | private dropTarget;
|
16 | private potentialDndItems;
|
17 | private guiDestroyFunctions;
|
18 | private params;
|
19 | private childPillComponents;
|
20 | private insertIndex;
|
21 | private ePillDropList;
|
22 | private positionableFeature;
|
23 | private resizeEnabled;
|
24 | protected abstract isItemDroppable(item: TItem, draggingEvent: DraggingEvent): boolean;
|
25 | protected abstract updateItems(items: TItem[]): void;
|
26 | protected abstract getExistingItems(): TItem[];
|
27 | protected abstract getIconName(): string;
|
28 | protected abstract getAriaLabel(): string;
|
29 | protected abstract createPillComponent(item: TItem, dropTarget: DropTarget, ghost: boolean, horizontal: boolean): TPill;
|
30 | protected abstract getItems(dragItem: DragItem<TItem>): TItem[];
|
31 | protected abstract isInterestedIn(type: DragSourceType): boolean;
|
32 | constructor(horizontal: boolean);
|
33 | isHorizontal(): boolean;
|
34 | toggleResizable(resizable: boolean): void;
|
35 | protected isSourceEventFromTarget(draggingEvent: DraggingEvent): boolean;
|
36 | destroy(): void;
|
37 | private destroyGui;
|
38 | init(params?: PillDropZonePanelParams): void;
|
39 | private onTabKeyDown;
|
40 | private onKeyDown;
|
41 | private addElementClasses;
|
42 | private setupDropTarget;
|
43 | protected minimumAllowedNewInsertIndex(): number;
|
44 | private checkInsertIndex;
|
45 | private getNewInsertIndex;
|
46 | private checkDragStartedBySelf;
|
47 | private onDragging;
|
48 | protected handleDragEnterEnd(draggingEvent: DraggingEvent): void;
|
49 | private onDragEnter;
|
50 | protected isPotentialDndItems(): boolean;
|
51 | protected handleDragLeaveEnd(draggingEvent: DraggingEvent): void;
|
52 | private onDragLeave;
|
53 | private onDragStop;
|
54 | private removeItems;
|
55 | private addItems;
|
56 | addItem(item: TItem): void;
|
57 | private rearrangeItems;
|
58 | refreshGui(): void;
|
59 | private getFocusedItem;
|
60 | private restoreFocus;
|
61 | focusList(fromBottom?: boolean): void;
|
62 | private getNonGhostItems;
|
63 | private addItemsToGui;
|
64 | private addAriaLabelsToComponents;
|
65 | private createItemComponent;
|
66 | private addIconAndTitleToGui;
|
67 | private isExistingItemsEmpty;
|
68 | private addEmptyMessageToGui;
|
69 | private addArrow;
|
70 | }
|