UNPKG

@hxui/angular

Version:

An Angular library based on the [HXUI design system](https://hxui.io).

49 lines (48 loc) 2.11 kB
import { ChangeDetectorRef, ElementRef, TemplateRef } from '@angular/core'; import { Observable } from 'rxjs'; import { TypeaheadMatch } from './typeahead-match.class'; import { TypeaheadDirective } from './typeahead.directive'; import * as i0 from "@angular/core"; export declare class TypeaheadContainerComponent { private element; private _changeDetectionRef; parent: TypeaheadDirective; query: any; isFocused: boolean; top: string; left: string; display: string; placement: string; protected _active: TypeaheadMatch; protected _matches: TypeaheadMatch[]; /** Subject for notifying that the tooltip has been hidden from the view */ private readonly _onHide; /** The timeout ID of any current timer set to show the tooltip */ private _showTimeoutId; /** The timeout ID of any current timer set to hide the tooltip */ private _hideTimeoutId; constructor(element: ElementRef, _changeDetectionRef: ChangeDetectorRef); get active(): TypeaheadMatch; get matches(): TypeaheadMatch[]; set matches(value: TypeaheadMatch[]); get optionsListTemplate(): TemplateRef<any>; get itemTemplate(): TemplateRef<any>; selectActiveMatch(): void; prevActiveMatch(): void; nextActiveMatch(): void; selectActive(value: TypeaheadMatch): void; hightlight(match: TypeaheadMatch, query: any): string; focusLost(): void; isActive(value: TypeaheadMatch): boolean; selectMatch(value: TypeaheadMatch, e?: Event): boolean; show(delay: number): void; /** * Hide the tooltip after the provided delay in ms. * @param delay Amount of milliseconds to delay hiding the tooltip. */ hide(delay: number): void; /** Returns an observable that notifies when the dropdown has been hidden from view. */ afterHidden(): Observable<void>; static ɵfac: i0.ɵɵFactoryDeclaration<TypeaheadContainerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TypeaheadContainerComponent, "hx-typeahead-container", never, {}, {}, never, never>; }