import { EventEmitter } from '../../stencil-public-runtime'; import { GritEventData, GritAutocompleteItemData } from '../../common/interfaces/event'; import { ICustomGoogleAnalyticsConfig } from '@progleasing/grit-universal-analytics'; export declare class GritAutocomplete { private filteredItemListMaxHeight; private filteredItems; private itemList; private slotItems; private inputRef; private fieldRef; private listBoxInitialHeight; private listBoxHeight; private messageElements; host: HTMLGritWcAutocompleteElement; /** * Determines item list max height value. */ itemListMaxHeight: number; /** * Determines current focused index value used for searching in filteredItems variable array. */ focusedIndex: number; /** * Contains current autocomplete focused item. */ currentlyFocusedItem: HTMLGritWcAutocompleteItemElement; /** * Previous focused index value. */ prevFocusedIndex: number; /** * Determines if listbox is currently displayed or hidden. */ display: boolean; /** Label string. */ label: string; /** Value of the autocomplete. */ value: string; /** Sets the autocomplete to disable state. */ disabled: boolean; /** * Sets the autocomplete to match full case, if it’s false or not present, * it will match with any case */ matchFullCase: boolean; /** * It's the custom event to be passed into the `GoogleAnalytics.getInstance().pushCustomEvent()` function. */ analyticsCustomObj: ICustomGoogleAnalyticsConfig; /** * If it is set to false, no event will be pushed into Google Analytics. */ analyticsEnabled: boolean; /** Determines name property for the native input element. */ name: string; /** * If it is set to true, no personally identifiable information will be pushed into Google Analytics. */ pii: boolean; /** * If it contains an error, errorKey will match the corresponding autocomplete message and show the error. */ errorKey: string; /** * If it is set to true, it will show fields validation Icon. */ useValidationIcon: boolean; /** * Update event fired whenever the input of the * autocomplete changes. */ gritUpdate: EventEmitter>; onHandleError(err: any): void; onHandleWatch(newValue: string, oldValue?: string): void; componentDidLoad(): void; keyDownSelect(e: KeyboardEvent): void; onMouseDown(e: MouseEvent): void; onTouchStart(e: PointerEvent): void; onItemSelectedClick(event: CustomEvent): void; /** This method opens the autocomplete selectable list box with it’s expand animation. */ open(): Promise; /** This method closes the autocomplete selectable list box with it’s collapse animation. */ close(): Promise; private calculateListBoxHeight; private handleSelectedValue; /** * The function will add or remove a focused class to an autocomplete item component. * Also sets the value for currentlyFocusedItem variable. */ private activateKeyboardItem; private activateNextItem; private activatePreviousItem; private selectClosestValue; private onItemSelectedEnter; private onItemSelected; private onInput; private onInputRef; private fieldRefHandler; /** * Filters items in corresponds to what current value is set to. */ private filterItems; /** * Will display list box and execute expand animation. */ private animateInItems; /** * Will hide list box and execute collapse animation. */ private animateOutItems; private clearInput; private getValue; private handleBlur; render(): any; }