UNPKG

2.48 kBTypeScriptView Raw
1import type { BeanCollection, RichSelectParams } from 'ag-grid-community';
2import { AgPickerField } from 'ag-grid-community';
3import type { AgRichSelectListEvent } from './agRichSelectList';
4import { AgRichSelectList } from './agRichSelectList';
5export type AgRichSelectEvent = AgRichSelectListEvent;
6export declare class AgRichSelect<TValue = any> extends AgPickerField<TValue[] | TValue, RichSelectParams<TValue>, AgRichSelectEvent, AgRichSelectList<TValue, AgRichSelectEvent>> {
7 private userComponentFactory;
8 private ariaAnnouncementService;
9 wireBeans(beans: BeanCollection): void;
10 private searchString;
11 private listComponent;
12 private pillContainer;
13 protected values: TValue[];
14 private searchStringCreator;
15 private readonly eInput;
16 private readonly eDeselect;
17 private ariaToggleSelection;
18 private ariaDeselectAllItems;
19 private ariaDeleteSelection;
20 private skipWrapperAnnouncement?;
21 constructor(config?: RichSelectParams<TValue>);
22 postConstruct(): void;
23 private setupAriaProperties;
24 private createListComponent;
25 private renderSelectedValue;
26 protected createPickerComponent(): AgRichSelectList<TValue, AgRichSelectListEvent>;
27 setSearchStringCreator(searchStringFn: (values: TValue[]) => string[]): void;
28 setValueList(params: {
29 valueList: TValue[];
30 refresh?: boolean;
31 }): void;
32 showPicker(): void;
33 protected beforeHidePicker(): void;
34 private createOrUpdatePillContainer;
35 private doWhileBlockingAnnouncement;
36 private onWrapperFocus;
37 private onWrapperFocusOut;
38 private onDeselectAllMouseDown;
39 private onDeselectAllClick;
40 private buildSearchStringFromKeyboardEvent;
41 private searchTextFromCharacter;
42 searchTextFromString(str: string | null | undefined): void;
43 private buildSearchStrings;
44 private filterListModel;
45 private runSearch;
46 private getSuggestionsAndFilteredValues;
47 private displayOrHidePicker;
48 private clearSearchString;
49 setValue(value: TValue[] | TValue | null, silent?: boolean, fromPicker?: boolean, skipRendering?: boolean): this;
50 private onNavigationKeyDown;
51 protected onEnterKeyDown(e: KeyboardEvent): void;
52 private onDeleteKeyDown;
53 private onTabKeyDown;
54 private getValueFromSet;
55 private onListValueSelected;
56 private dispatchPickerEventAndHidePicker;
57 getFocusableElement(): HTMLElement;
58 protected onKeyDown(e: KeyboardEvent): void;
59 destroy(): void;
60}