UNPKG

1.74 kBTypeScriptView Raw
1import type { Component, RichSelectParams } from 'ag-grid-community';
2import { VirtualList } from './virtualList';
3export type AgRichSelectListEvent = 'fieldPickerValueSelected' | 'richSelectListRowSelected';
4export declare class AgRichSelectList<TValue, TEventType extends string = AgRichSelectListEvent> extends VirtualList<Component<TEventType | AgRichSelectListEvent>, TEventType | AgRichSelectListEvent> {
5 private readonly params;
6 private readonly richSelectWrapper;
7 private readonly getSearchString;
8 private eLoading;
9 private lastRowHovered;
10 private currentList;
11 private selectedItems;
12 constructor(params: RichSelectParams, richSelectWrapper: HTMLElement, getSearchString: () => string);
13 postConstruct(): void;
14 navigateToPage(key: 'PageUp' | 'PageDown' | 'Home' | 'End'): number | null;
15 protected drawVirtualRows(softRefresh?: boolean | undefined): void;
16 highlightFilterMatch(searchString: string): void;
17 onNavigationKeyDown(key: string, announceItem: () => void): void;
18 selectValue(value?: TValue[] | TValue): void;
19 private selectListItems;
20 getCurrentList(): TValue[] | undefined;
21 setCurrentList(list: TValue[]): void;
22 getSelectedItems(): Set<TValue>;
23 getLastItemHovered(): TValue;
24 highlightIndex(index: number, preventUnnecessaryScroll?: boolean): void;
25 getIndicesForValues(values?: TValue[] | TValue): number[];
26 toggleListItemSelection(value: TValue): void;
27 private refreshSelectedItems;
28 private createLoadingElement;
29 private createRowComponent;
30 private getRowForMouseEvent;
31 private onMouseMove;
32 private onMouseDown;
33 private onMouseOut;
34 private onClick;
35 private dispatchValueSelected;
36 destroy(): void;
37}