import { EventEmitter } from '@angular/core'; import { OnChanges, QueryList, SimpleChanges } from '@angular/core'; import { MatLegacyOption as MatOption } from '@angular/material/legacy-core'; import * as i0 from "@angular/core"; export declare class AutocompleteKeyboardNavigationDirective implements OnChanges { /** * need this to notify that key was clicked when navigation is disabled like close autocomplte panel */ keyboardNavigationDisable: boolean; /** * need to know if item selected to enable or disable enter to select item */ keyboardNavigationItemSelected: boolean; /** * all items that needed to loop on */ keyboardNavigationItems: any[]; /** * trigger navigation index change so we can mark the mat-option as active */ keyboardNavigationIndexChange: EventEmitter; /** * trigger when user select option */ keyboardSelectedOption: EventEmitter; /** * trigger when keypress and the navigation is disabled * ex: the autocomplete panel is closed * can be used to open the navigation panel on specific keys */ keyboardPressWhenNavigationDisabled: EventEmitter; /** * trigger when got to end of scroll and need to scroll back up * in cases where the option is not in dom because of virtual scroll */ keyboardScrollUpNeeded: EventEmitter; currentOptions: QueryList; private currentNavigationIndex; ngOnChanges(changes: SimpleChanges): void; /** * handle the autocomplete key event */ autoCompleteKeyDown(key: KeyboardEvent): void; /** * get index if exists in items helper if not return -1 */ private getIndexIfExistsOrMinusOne; /** * emit the index defined in navigation items helper or null if not fount */ private emitCurrentIndex; /** * get the active keyboard item if the active index is FIRST_OPTION_TEMPLATE_SELECTED_INDEX (-1) return the term typed * if nothing selected it will return null */ private getActiveKeyboardOptionValue; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } //# sourceMappingURL=autocomplete-keyboard-navigation.directive.d.ts.map