UNPKG

1.84 kBTypeScriptView Raw
1import type { BeanCollection, ComponentSelector, DragAndDropIcon, DragItem, DragSourceType, DropTarget } from 'ag-grid-community';
2import { Component } from 'ag-grid-community';
3export type PillDragCompEvent = 'columnRemove';
4export declare abstract class PillDragComp<TItem> extends Component<PillDragCompEvent> {
5 private dragSourceDropTarget;
6 private ghost;
7 private horizontal;
8 private template?;
9 private agComponents?;
10 private dragAndDropService;
11 wireBeans(beans: BeanCollection): void;
12 private readonly eText;
13 private readonly eDragHandle;
14 private readonly eButton;
15 abstract getItem(): TItem;
16 protected abstract getDisplayName(): string;
17 protected abstract getAriaDisplayName(): string;
18 protected abstract getTooltip(): string | null | undefined;
19 protected abstract createGetDragItem(): () => DragItem<TItem>;
20 protected abstract getDragSourceType(): DragSourceType;
21 constructor(dragSourceDropTarget: DropTarget, ghost: boolean, horizontal: boolean, template?: string | undefined, agComponents?: ComponentSelector[] | undefined);
22 postConstruct(): void;
23 protected isDraggable(): boolean;
24 protected refreshDraggable(): void;
25 protected setupAria(): void;
26 protected addAdditionalAriaInstructions(ariaInstructions: string[], translate: (key: string, defaultValue: string) => string): void;
27 private setupTooltip;
28 protected getDragSourceId(): string | undefined;
29 protected getDefaultIconName(): DragAndDropIcon;
30 private addDragSource;
31 protected setupComponents(): void;
32 protected isRemovable(): boolean;
33 protected refreshRemove(): void;
34 private setupRemove;
35 protected onKeyDown(e: KeyboardEvent): void;
36 protected getDisplayValue(): string;
37 private setTextValue;
38 private addElementClasses;
39 destroy(): void;
40}