UNPKG

ngx-sp-infra

Version:
32 lines (31 loc) 1.06 kB
import { HttpClient } from '@angular/common/http'; import { AfterViewInit, ElementRef, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import * as i0 from "@angular/core"; export declare class SearchInputComponent implements OnInit, AfterViewInit { private http; private router; isVisible: boolean; searchQuery: string; items: { label: string; route: string; }[]; filteredItems: { label: string; route: string; }[]; searchInput: ElementRef<HTMLInputElement>; constructor(http: HttpClient, router: Router); ngOnInit(): void; ngAfterViewInit(): void; loadRoutes(): void; onKeydown(event: KeyboardEvent): void; closeSearch(): void; resetSearch(): void; onSearch(): void; navigateTo(route: string): void; private focusInput; static ɵfac: i0.ɵɵFactoryDeclaration<SearchInputComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "lib-search-input", never, {}, {}, never, never, true, never>; }