import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { Subject } from 'rxjs'; import { FormGroup } from '@angular/forms'; import { FieldConfig } from '../../models/field-config.model'; import { FormField } from '../../models/form-field.model'; import { SearchType } from '../../models/search.model'; import { FormUtilityService } from '../../services/form-utility.service'; import * as i0 from "@angular/core"; /** * Component support search capability and used as a form filed with type search and independently as search component. * @export * @class SearchComponent * @implements {OnInit} * @implements {AfterViewInit} * @implements {OnDestroy} * @implements {FormField} */ export declare class SearchComponent implements OnInit, AfterViewInit, OnDestroy, FormField { private cd; private formUtilityService; config: FieldConfig; group: FormGroup; formControlName: string; placeholderLabel: string; searchTerm: string; supportMessage: string; searchType: SearchType; searchValue: EventEmitter; searchControl: ElementRef; minCharacterToSearch: number; searchResponse: string; destroy$: Subject; searchInfo: any; isSearchValueEmitted: boolean; constructor(cd: ChangeDetectorRef, formUtilityService: FormUtilityService); /** * Implementation of ngOnInit lifecycle hook method to initialize config and form group if its undefined * @memberof SearchComponent */ ngOnInit(): void; /** * Handles form control search keyup event and emits searched value * @memberof SearchComponent */ ngAfterViewInit(): void; /** * Stops typing keystrokes from bubbling up to a parent control (such as an * Angular Material `mat-select`) that would otherwise consume them. This is * required when the search input is rendered inside a `mat-select` dropdown, * where the space bar activates the highlighted option instead of typing a * space, and letter keys trigger the built-in typeahead. Navigation and * dismissal keys (Arrow keys, Enter, Escape, Tab) are allowed to propagate so * the parent dropdown keeps its keyboard behaviour. * @param {KeyboardEvent} event - The keydown event raised by the search input. * @memberof SearchComponent */ onSearchKeyDown(event: KeyboardEvent): void; /** * Validates email based on defined validation patterns * @param {string} email * @return {boolean} * @memberof SearchComponent */ isValidateEmail(email: string): boolean; /** * Clears search response on change of form search control value * @memberof SearchComponent */ onChange(): void; /** * Clears search response and emits searched value on search input change * @memberof SearchComponent */ onSearchInputChange(): void; /** * Emits the searchValue event along with the searched term while clicking on the search icon * @memberof SearchComponent */ onSearchClick(): void; /** * Implementation of ngOnDestroy lifecycle hook method to unsubscribe the open observable subscriptions. * @memberof SearchComponent */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }