UNPKG

@ngez/core

Version:

A collection of minimalistic, easy-to-use and fully customizable Angular components, directives and services

37 lines (36 loc) 1.33 kB
import { ElementRef, OnDestroy, ViewContainerRef } from "@angular/core"; import { Overlay } from '@angular/cdk/overlay'; import { NgEzAutocompleteComponent } from "./autocomplete.component"; import { ReplaySubject } from "rxjs"; import { ControlValueAccessor } from '@angular/forms'; export declare class NgEzAutocompleteDirective implements ControlValueAccessor, OnDestroy { private element; private overlay; private viewContainerRef; private document; autocomplete: NgEzAutocompleteComponent; text$: ReplaySubject<string>; isOpen: boolean; private isDisabled; private onTouched; private onChange; private overlayRef; private subscription; constructor(element: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef, document: any); ngOnDestroy(): void; private onValueChange; private onKeyDown; open(): void; close(): void; toggle(): void; writeValue(value: any): void; registerOnChange(fn: (value: any) => {}): void; registerOnTouched(fn: () => {}): void; setDisabledState(isDisabled: boolean): void; private setValue; private scrollToOption; private getAutocompleteClosingActions; private getOutsideClickStream; private setValueAndClose; private unsubscribe; }