import { BooleanInput } from '@angular/cdk/coercion'; import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit, QueryList } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { MatOption } from '@angular/material/core'; import { MatSelect } from '@angular/material/select'; import { CanDestroyNotify, CanDestroyNotifyCtor } from '@mtna/lib-ui'; import * as i0 from "@angular/core"; declare class SelectSearchBase { } export declare const _SelectSearchMixinBase: CanDestroyNotifyCtor & typeof SelectSearchBase; export declare class MtnaSelectSearchComponent extends _SelectSearchMixinBase implements CanDestroyNotify, ControlValueAccessor, OnInit { matSelect: MatSelect; private changeDetectorRef; static ngAcceptInputType_noResultsFound: BooleanInput; /** Reference to the search input field */ searchSelectInput?: ElementRef; /** Label to be shown when no entries are found. Set to null if no message should be shown. Defaults to 'No Options Found' */ noResultsFoundLabel: string; /** Whether no results have been found. Only necessary when using virtual scroll */ get noResultsFound(): boolean; set noResultsFound(value: boolean); private _noResultsFound; /** Placeholder label for search input, defaults to 'Search' */ placeholderLabel: string; /** Resets the input value on mat-select close. Defaults to true */ resetOnClose: boolean; /** Sets the aria-label value for the input, defaults to 'Search'. */ selectSearchAriaLabel: string; /** Search text value change */ search: EventEmitter; /** Current search value */ get value(): string; private _value; /** Previously selected values when using */ previousSelectedValues: unknown[]; /** Reference to the MatSelect options */ _options?: QueryList; onChange: (value: unknown) => void; onTouched: (value?: unknown) => void; constructor(matSelect: MatSelect, changeDetectorRef: ChangeDetectorRef); ngOnInit(): void; /** * Initializes handling * Note: to improve this code, mat-select should be extended to allow disabling resetting the selection while filtering. */ initMultipleHandling(): void; onInputChange(value: string): void; onBlur(value: string): void; registerOnChange(fn: (value: unknown) => void): void; registerOnTouched(fn: () => void): void; writeValue(value: string): void; /** Focuses the search input field */ _focus(): void; /** Handles the key down event with MatSelect. * Allows e.g. selecting with enter key, navigation with arrow keys, etc. * @param event */ _handleKeydown(event: KeyboardEvent): void; /** Resets the current search value * @param focus whether to focus after resetting */ _reset(focus?: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};