import * as i0 from '@angular/core'; import { AfterViewInit, QueryList, PipeTransform, InjectionToken } from '@angular/core'; import * as i1 from '@odx/angular'; import { ReadonlyController, ClickOutsideDirective } from '@odx/angular'; import { AutocompleteControl, BaseSearchFilterPipe } from '@odx/angular/cdk/autocomplete-control'; import * as _odx_angular_components_autocomplete from '@odx/angular/components/autocomplete'; import { OptionControl } from '@odx/angular/cdk/option-control'; import { InputControlDirective } from '@odx/angular/cdk/custom-form-control'; /** * Represents an option component for the autocomplete control. * * @template T - The type of the option value. */ declare class AutocompleteOptionComponent extends OptionControl { protected readonly autocompleteControl: _odx_angular_components_autocomplete.AutocompleteComponent; /** * Sets the active styles for the option component. */ setActiveStyles(): void; protected selectOption(): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "odx-autocomplete-option", never, {}, {}, never, ["*"], true, never>; } /** * Directive for controlling the input in an autocomplete component. * Extends the base InputControlDirective class. */ declare class AutocompleteInputControlDirective extends InputControlDirective { protected readonly readonlyController: ReadonlyController | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Represents an autocomplete component that provides user interface for a dropdown list to select from as users type. * It extends `AutocompleteControl`, integrating custom logic for handling keyboard and mouse events, * managing the dropdown state, and updating the associated search field. * * @see {AutocompleteControl} * * @template T - The type of the value handled by the autocomplete. */ declare class AutocompleteComponent extends AutocompleteControl implements AfterViewInit { private readonly defaultActiveOptionIndex; private patchValueFlag; private shouldOpenOnOptionUpdate; protected readonly clickOutsideDirective: ClickOutsideDirective; /** * The list of autocomplete options. * * @type {QueryList> | undefined} */ options?: QueryList>; /** Text to display when no options are found. * * @type {string | null} */ notFoundText: i0.InputSignal; /** * The search field input control. * * @type {AutocompleteInputControlDirective | undefined} */ searchField?: AutocompleteInputControlDirective; ngAfterViewInit(): void; /** * Selects an option, updates the value, updates the search field display, * emits the selected value, and closes the dropdown. * * @param {AutocompleteOptionComponent | null} option - The option component to select. If the option is undefined or its value is undefined, * no action is taken. */ selectOption(option?: AutocompleteOptionComponent | null): void; /** * Resets the search field to its initial state and updates the value of the autocomplete * to an empty string or initial value. */ resetSearchField(): void; protected handleQueryListOption(options: QueryList>): void; protected handleSearchFieldChanges(): void; protected handleClickOutside(): void; protected clickOutside(): void; protected updateDropdownState(): void; protected handleClickEvent(): void; protected handleKeyboardEvent(event: KeyboardEvent): Promise; protected activateSelectedOption(): void; protected onDropdownClosed(): void; private updateSearchField; private blurSelectSearchField; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "odx-autocomplete", never, { "notFoundText": { "alias": "notFoundText"; "required": false; "isSignal": true; }; }, {}, ["searchField", "options"], ["input[odxAutocompleteControl]", "*"], true, [{ directive: typeof i1.ClickOutsideDirective; inputs: {}; outputs: {}; }]>; } declare class AutocompleteSearchFilterPipe extends BaseSearchFilterPipe implements PipeTransform { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class AutocompleteModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare const AUTOCOMPLETE_CONTROL: InjectionToken>; export { AUTOCOMPLETE_CONTROL, AutocompleteComponent, AutocompleteInputControlDirective, AutocompleteModule, AutocompleteOptionComponent, AutocompleteSearchFilterPipe };