import { Overlay } from '@angular/cdk/overlay'; import { AfterViewInit, ElementRef, ExistingProvider, OnDestroy, ViewContainerRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { VtsSafeAny, OnChangeType, OnTouchedType } from '@ui-vts-kit/ng-vts/core/types'; import { VtsInputGroupWhitSuffixOrPrefixDirective } from '@ui-vts-kit/ng-vts/input'; import { VtsAutocompleteOptionComponent } from './autocomplete-option.component'; import { VtsAutocompleteComponent } from './autocomplete.component'; import * as i0 from "@angular/core"; export declare const VTS_AUTOCOMPLETE_VALUE_ACCESSOR: ExistingProvider; export declare function getVtsAutocompleteMissingPanelError(): Error; export declare class VtsAutocompleteTriggerDirective implements AfterViewInit, ControlValueAccessor, OnDestroy { private elementRef; private overlay; private viewContainerRef; private vtsInputGroupWhitSuffixOrPrefixDirective; private document; /** Bind vtsAutocomplete component */ vtsAutocomplete: VtsAutocompleteComponent; onChange: OnChangeType; onTouched: OnTouchedType; panelOpen: boolean; /** Current active option */ get activeOption(): VtsAutocompleteOptionComponent | void; private destroy$; private overlayRef; private portal; private positionStrategy; private previousValue; private selectionChangeSubscription; private optionsChangeSubscription; private overlayOutsideClickSubscription; constructor(elementRef: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef, vtsInputGroupWhitSuffixOrPrefixDirective: VtsInputGroupWhitSuffixOrPrefixDirective, document: VtsSafeAny); ngAfterViewInit(): void; ngOnDestroy(): void; writeValue(value: VtsSafeAny): void; registerOnChange(fn: (value: {}) => {}): void; registerOnTouched(fn: () => {}): void; setDisabledState(isDisabled: boolean): void; openPanel(): void; closePanel(): void; handleKeydown(event: KeyboardEvent): void; handleInput(event: KeyboardEvent): void; handleFocus(): void; handleBlur(): void; /** * Subscription data source changes event */ private subscribeOptionsChange; /** * Subscription option changes event and set the value */ private subscribeSelectionChange; private subscribeOverlayOutsideClick; private attachOverlay; private updateStatus; private destroyPanel; private getOverlayConfig; private getConnectedElement; private getHostWidth; private getOverlayPosition; private resetActiveItem; private setValueAndClose; private setTriggerValue; private doBackfill; private canOpen; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }