import { AutoCompleteAddEvent, AutoCompleteCompleteEvent, AutoCompleteDropdownClickEvent, AutoCompleteGroupTemplateContext, AutoCompleteItemTemplateContext, AutoCompleteLazyLoadEvent, AutoCompleteLoaderTemplateContext, AutoCompletePassThrough, AutoCompleteRemoveIconTemplateContext, AutoCompleteSelectEvent, AutoCompleteSelectedItemTemplateContext, AutoCompleteUnselectEvent } from "primeng/types/autocomplete"; import * as i0 from "@angular/core"; import { ElementRef, InjectionToken, TemplateRef } from "@angular/core"; import { MotionOptions } from "@primeuix/motion"; import * as i2 from "primeng/api"; import { OverlayOptions, OverlayService, ScrollerOptions } from "primeng/api"; import { BaseInput } from "primeng/baseinput"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { ConnectedOverlayScrollHandler } from "primeng/dom"; import { Overlay } from "primeng/overlay"; import { Scroller } from "primeng/scroller"; import { Nullable } from "primeng/ts-helpers"; import { AppendTo, CSSProperties } from "primeng/types/shared"; import { BaseStyle } from "primeng/base"; export * from "primeng/types/autocomplete"; export declare class AutoCompleteStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-invalid': any; 'p-focus': any; 'p-inputwrapper-filled': any; 'p-inputwrapper-focus': any; 'p-autocomplete-open': any; 'p-autocomplete-fluid': any; })[]; pcInputText: string; inputMultiple: ({ instance }: { instance: any; }) => (string | { 'p-disabled': any; 'p-variant-filled': boolean; })[]; clearIcon: string; chipItem: ({ instance, i }: { instance: any; i: any; }) => (string | { 'p-focus': boolean; })[]; pcChip: string; chipIcon: string; inputChip: string; loader: string; dropdown: string; overlay: ({ instance }: { instance: any; }) => (string | { 'p-input-filled': boolean; 'p-ripple-disabled': boolean; })[]; listContainer: string; list: string; optionGroup: string; option: ({ instance, option, i, scrollerOptions }: { instance: any; option: any; i: any; scrollerOptions: any; }) => { 'p-autocomplete-option': boolean; 'p-autocomplete-option-selected': any; 'p-focus': boolean; 'p-disabled': any; }; emptyMessage: string; }; inlineStyles: { root: { position: string; }; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * AutoComplete is an input component that provides real-time suggestions while being typed. * * [Live Demo](https://www.primeng.org/autocomplete/) * * @module autocompletestyle * */ export declare enum AutoCompleteClasses { /** * Class name of the root element */ root = "p-autocomplete", /** * Class name of the input element */ pcInputText = "p-autocomplete-input", /** * Class name of the input multiple element */ inputMultiple = "p-autocomplete-input-multiple", /** * Class name of the chip item element */ chipItem = "p-autocomplete-chip-item", /** * Class name of the chip element */ pcChip = "p-autocomplete-chip", /** * Class name of the chip icon element */ chipIcon = "p-autocomplete-chip-icon", /** * Class name of the input chip element */ inputChip = "p-autocomplete-input-chip", /** * Class name of the loader element */ loader = "p-autocomplete-loader", /** * Class name of the dropdown element */ dropdown = "p-autocomplete-dropdown", /** * Class name of the panel element */ panel = "p-autocomplete-overlay", /** * Class name of the list element */ list = "p-autocomplete-list", /** * Class name of the option group element */ optionGroup = "p-autocomplete-option-group", /** * Class name of the option element */ option = "p-autocomplete-option", /** * Class name of the empty message element */ emptyMessage = "p-autocomplete-empty-message", /** * Class name of the clear icon */ clearIcon = "p-autocomplete-clear-icon" } export declare const AUTOCOMPLETE_VALUE_ACCESSOR: { provide: InjectionToken; useExisting: import("@angular/core").Type; multi: boolean; }; /** * AutoComplete is an input component that provides real-time suggestions when being typed. * @group Components */ export declare class AutoComplete extends BaseInput { componentName: string; $pcAutoComplete: AutoComplete | undefined; bindDirectiveInstance: Bind; /** * Minimum number of characters to initiate a search. * @group Props */ minQueryLength: import("@angular/core").InputSignal; /** * Delay between keystrokes to wait before sending a query. * @group Props */ delay: import("@angular/core").InputSignalWithTransform; /** * Inline style of the overlay panel element. * @group Props */ panelStyle: import("@angular/core").InputSignal; /** * Style class of the overlay panel element. * @group Props */ panelStyleClass: import("@angular/core").InputSignal; /** * Inline style of the input field. * @group Props */ inputStyle: import("@angular/core").InputSignal; /** * Identifier of the focus input to match a label defined for the component. * @group Props */ inputId: import("@angular/core").InputSignal; /** * Inline style of the input field. * @group Props */ inputStyleClass: import("@angular/core").InputSignal; /** * Hint text for the input field. * @group Props */ placeholder: import("@angular/core").InputSignal; /** * When present, it specifies that the input cannot be typed. * @group Props */ readonly: import("@angular/core").InputSignalWithTransform; /** * Maximum height of the suggestions panel. * @group Props */ scrollHeight: import("@angular/core").InputSignal; /** * Defines if data is loaded and interacted with in lazy manner. * @group Props */ lazy: import("@angular/core").InputSignalWithTransform; /** * Whether the data should be loaded on demand during scroll. * @group Props */ virtualScroll: import("@angular/core").InputSignalWithTransform; /** * Height of an item in the list for VirtualScrolling. * @group Props */ virtualScrollItemSize: import("@angular/core").InputSignal; /** * Whether to use the scroller feature. The properties of scroller component can be used like an object in it. * @group Props */ virtualScrollOptions: import("@angular/core").InputSignal; /** * When enabled, highlights the first item in the list by default. * @group Props */ autoHighlight: import("@angular/core").InputSignalWithTransform; /** * When present, autocomplete clears the manual input if it does not match of the suggestions to force only accepting values from the suggestions. * @group Props */ forceSelection: import("@angular/core").InputSignalWithTransform; /** * Type of the input, defaults to "text". * @group Props */ type: import("@angular/core").InputSignal; /** * Whether to automatically manage layering. * @group Props */ autoZIndex: import("@angular/core").InputSignalWithTransform; /** * Base zIndex value to use in layering. * @group Props */ baseZIndex: import("@angular/core").InputSignalWithTransform; /** * Defines a string that labels the input for accessibility. * @group Props */ ariaLabel: import("@angular/core").InputSignal; /** * Defines a string that labels the dropdown button for accessibility. * @group Props */ dropdownAriaLabel: import("@angular/core").InputSignal; /** * Specifies one or more IDs in the DOM that labels the input field. * @group Props */ ariaLabelledBy: import("@angular/core").InputSignal; /** * Icon class of the dropdown icon. * @group Props */ dropdownIcon: import("@angular/core").InputSignal; /** * Ensures uniqueness of selected items on multiple mode. * @group Props */ unique: import("@angular/core").InputSignalWithTransform; /** * Whether to display options as grouped when nested options are provided. * @group Props */ group: import("@angular/core").InputSignalWithTransform; /** * Whether to run a query when input receives focus. * @group Props */ completeOnFocus: import("@angular/core").InputSignalWithTransform; /** * When enabled, a clear icon is displayed to clear the value. * @group Props */ showClear: import("@angular/core").InputSignalWithTransform; /** * Displays a button next to the input field when enabled. * @group Props */ dropdown: import("@angular/core").InputSignalWithTransform; /** * Whether to show the empty message or not. * @group Props */ showEmptyMessage: import("@angular/core").InputSignalWithTransform; /** * Specifies the behavior dropdown button. Default "blank" mode sends an empty string and "current" mode sends the input value. * @group Props */ dropdownMode: import("@angular/core").InputSignal; /** * Specifies if multiple values can be selected. * @deprecated Use InputTags component instead for chips/tags input functionality. * @group Props */ multiple: import("@angular/core").InputSignalWithTransform; /** * When enabled, the input value is added to the selected items on tab key press when multiple is true and typeahead is false. * @deprecated Use InputTags component instead for chips/tags input functionality. * @group Props */ addOnTab: import("@angular/core").InputSignalWithTransform; /** * Index of the element in tabbing order. * @group Props */ tabindex: import("@angular/core").InputSignal; /** * A property to uniquely identify a value in options. * @group Props */ dataKey: import("@angular/core").InputSignal; /** * Text to display when there is no data. Defaults to global value in i18n translation configuration. * @group Props */ emptyMessage: import("@angular/core").InputSignal; /** * When present, it specifies that the component should automatically get focus on load. * @group Props */ autofocus: import("@angular/core").InputSignalWithTransform; /** * Used to define a string that autocomplete attribute the current element. * @group Props */ autocomplete: import("@angular/core").InputSignal; /** * Name of the options field of an option group. * @group Props */ optionGroupChildren: import("@angular/core").InputSignal; /** * Name of the label field of an option group. * @group Props */ optionGroupLabel: import("@angular/core").InputSignal; /** * Options for the overlay element. * @group Props */ overlayOptions: import("@angular/core").InputSignal; /** * An array of suggestions to display. * @group Props */ suggestions: import("@angular/core").InputSignal; /** * Property name or getter function to use as the label of an option. * @group Props */ optionLabel: import("@angular/core").InputSignal string) | undefined>; /** * Property name or getter function to use as the value of an option. * @group Props */ optionValue: import("@angular/core").InputSignal string) | undefined>; /** * Unique identifier of the component. * @group Props */ id: import("@angular/core").InputSignal; /** * Text to display when the search is active. Defaults to global value in i18n translation configuration. * @group Props * @defaultValue '{0} results are available' */ searchMessage: import("@angular/core").InputSignal; /** * Text to display when filtering does not return any results. Defaults to global value in i18n translation configuration. * @group Props * @defaultValue 'No selected item' */ emptySelectionMessage: import("@angular/core").InputSignal; /** * Text to be displayed in hidden accessible field when options are selected. Defaults to global value in i18n translation configuration. * @group Props * @defaultValue '{0} items selected' */ selectionMessage: import("@angular/core").InputSignal; /** * Whether to focus on the first visible or selected element when the overlay panel is shown. * @group Props */ autoOptionFocus: import("@angular/core").InputSignalWithTransform; /** * When enabled, the focused option is selected. * @group Props */ selectOnFocus: import("@angular/core").InputSignalWithTransform; /** * Locale to use in searching. The default locale is the host environment's current locale. * @group Props */ searchLocale: import("@angular/core").InputSignal; /** * Property name or getter function to use as the disabled flag of an option, defaults to false when not defined. * @group Props */ optionDisabled: import("@angular/core").InputSignal boolean) | undefined>; /** * When enabled, the hovered option will be focused. * @group Props */ focusOnHover: import("@angular/core").InputSignalWithTransform; /** * Whether typeahead is active or not. * @defaultValue true * @group Props */ typeahead: import("@angular/core").InputSignalWithTransform; /** * Whether to add an item on blur event if the input has value and typeahead is false with multiple mode. * @deprecated Use InputTags component instead for chips/tags input functionality. * @defaultValue false * @group Props */ addOnBlur: import("@angular/core").InputSignalWithTransform; /** * Separator char to add item when typeahead is false and multiple mode is enabled. * @deprecated Use InputTags component instead for chips/tags input functionality. * @group Props */ separator: import("@angular/core").InputSignal; /** * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). * @defaultValue 'self' * @group Props */ appendTo: import("@angular/core").InputSignal; /** * The motion options. * @group Props */ motionOptions: import("@angular/core").InputSignal; /** * Callback to invoke to search for suggestions. * @param {AutoCompleteCompleteEvent} event - Custom complete event. * @group Emits */ completeMethod: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when a suggestion is selected. * @param {AutoCompleteSelectEvent} event - custom select event. * @group Emits */ onSelect: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when a selected value is removed. * @param {AutoCompleteUnselectEvent} event - custom unselect event. * @group Emits */ onUnselect: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when an item is added via addOnBlur or separator features. * @param {AutoCompleteAddEvent} event - Custom add event. * @group Emits */ onAdd: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when the component receives focus. * @param {Event} event - Browser event. * @group Emits */ onFocus: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when the component loses focus. * @param {Event} event - Browser event. * @group Emits */ onBlur: import("@angular/core").OutputEmitterRef; /** * Callback to invoke to when dropdown button is clicked. * @param {AutoCompleteDropdownClickEvent} event - custom dropdown click event. * @group Emits */ onDropdownClick: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when clear button is clicked. * @group Emits */ onClear: import("@angular/core").OutputEmitterRef; /** * Callback to invoke on input key down. * @param {KeyboardEvent} event - Keyboard event. * @group Emits */ onInputKeydown: import("@angular/core").OutputEmitterRef; /** * Callback to invoke on input key up. * @param {KeyboardEvent} event - Keyboard event. * @group Emits */ onKeyUp: import("@angular/core").OutputEmitterRef; /** * Callback to invoke on overlay is shown. * @group Emits */ onShow: import("@angular/core").OutputEmitterRef; /** * Callback to invoke on overlay is hidden. * @group Emits */ onHide: import("@angular/core").OutputEmitterRef; /** * Callback to invoke on lazy load data. * @param {AutoCompleteLazyLoadEvent} event - Lazy load event. * @group Emits */ onLazyLoad: import("@angular/core").OutputEmitterRef; inputEL: import("@angular/core").Signal | undefined>; multiInputEl: import("@angular/core").Signal | undefined>; multiContainerEL: import("@angular/core").Signal | undefined>; dropdownButton: import("@angular/core").Signal | undefined>; itemsViewChild: import("@angular/core").Signal | undefined>; scroller: import("@angular/core").Signal; overlayViewChild: import("@angular/core").Signal; itemsWrapper: Nullable; /** * Custom item template. * @group Templates */ itemTemplate: import("@angular/core").Signal> | undefined>; /** * Custom empty message template. * @group Templates */ emptyTemplate: import("@angular/core").Signal | undefined>; /** * Custom header template. * @group Templates */ headerTemplate: import("@angular/core").Signal | undefined>; /** * Custom footer template. * @group Templates */ footerTemplate: import("@angular/core").Signal | undefined>; /** * Custom selected item template. * @group Templates */ selectedItemTemplate: import("@angular/core").Signal> | undefined>; /** * Custom group template. * @group Templates */ groupTemplate: import("@angular/core").Signal> | undefined>; /** * Custom loader template. * @group Templates */ loaderTemplate: import("@angular/core").Signal | undefined>; /** * Custom remove icon template. * @group Templates */ removeIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom loading icon template. * @group Templates */ loadingIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom clear icon template. * @group Templates */ clearIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom dropdown icon template. * @group Templates */ dropdownIconTemplate: import("@angular/core").Signal | undefined>; value: any; timeout: ReturnType | null; overlayVisible: import("@angular/core").WritableSignal; suggestionsUpdated: Nullable; highlightOption: unknown; highlightOptionChanged: Nullable; focused: import("@angular/core").WritableSignal; loading: import("@angular/core").WritableSignal; scrollHandler: Nullable; listId: string | undefined; searchTimeout: ReturnType | null; dirty: boolean; focusedMultipleOptionIndex: import("@angular/core").WritableSignal; focusedOptionIndex: import("@angular/core").WritableSignal; _componentStyle: AutoCompleteStyle; overlayService: OverlayService; private _internalId; $id: import("@angular/core").Signal; $appendTo: import("@angular/core").Signal; get $overlayTarget(): "@grandparent" | "@parent"; visibleOptions: import("@angular/core").Signal; inputValue: import("@angular/core").Signal; $showClear: import("@angular/core").Signal; scrollerStyle: import("@angular/core").Signal<{ height: string; }>; $tabindex: import("@angular/core").Signal; requiredAttr: import("@angular/core").Signal<"" | undefined>; readonlyAttr: import("@angular/core").Signal<"" | undefined>; disabledAttr: import("@angular/core").Signal<"" | undefined>; $listId: import("@angular/core").Signal; get focusedMultipleOptionId(): string | null; get focusedOptionId(): string | null; get searchResultMessageText(): string; get searchMessageText(): string; get emptySearchMessageText(): string; get selectionMessageText(): string; get emptySelectionMessageText(): string; get selectedMessageText(): string; get ariaSetSize(): any; get listLabel(): string; get virtualScrollerDisabled(): boolean; get optionValueSelected(): string | false | ((item: any) => string) | undefined; onHostClick(event: MouseEvent): void; chipItemClass(index: number): string; constructor(); onAfterViewChecked(): void; handleSuggestionsChange(): void; flatOptions(options: any): any; isOptionGroup(option: any): boolean; findFirstOptionIndex(): number; findLastOptionIndex(): number; findFirstFocusedOptionIndex(): number; findLastFocusedOptionIndex(): number; findSelectedOptionIndex(): number; findNextOptionIndex(index: number): number; findPrevOptionIndex(index: number): number; isValidSelectedOption(option: any): boolean; isValidOption(option: any): boolean; isOptionDisabled(option: any): boolean; isSelected(option: any): boolean; isOptionMatched(option: any, value: string): boolean; isInputClicked(event: MouseEvent): boolean; isDropdownClicked(event: MouseEvent): boolean; equalityKey(): string | undefined; onContainerClick(event: MouseEvent): void; handleDropdownClick(event: MouseEvent): void; onInput(event: Event): void; onInputChange(event: Event): void; onInputFocus(event: FocusEvent): void; onMultipleContainerFocus(event: FocusEvent): void; onMultipleContainerBlur(event: FocusEvent): void; onMultipleContainerKeyDown(event: KeyboardEvent): void; onInputBlur(event: FocusEvent): void; onInputPaste(event: ClipboardEvent): void; onInputKeyUp(event: KeyboardEvent): void; onKeyDown(event: KeyboardEvent): void; handleSeparatorKey(event: KeyboardEvent): void; onArrowDownKey(event: KeyboardEvent): void; onArrowUpKey(event: KeyboardEvent): void; onArrowLeftKey(event: KeyboardEvent): void; onArrowRightKey(event: KeyboardEvent): void; onHomeKey(event: KeyboardEvent): void; onEndKey(event: KeyboardEvent): void; onPageDownKey(event: KeyboardEvent): void; onPageUpKey(event: KeyboardEvent): void; onEnterKey(event: KeyboardEvent): void; onEscapeKey(event: KeyboardEvent): void; onTabKey(event: KeyboardEvent): void; onBackspaceKey(event: KeyboardEvent): void; onArrowLeftKeyOnMultiple(event: KeyboardEvent): void; onArrowRightKeyOnMultiple(event: KeyboardEvent): void; onBackspaceKeyOnMultiple(event: KeyboardEvent): void; onOptionSelect(event: Event | null, option: any, isHide?: boolean): void; onOptionMouseEnter(event: MouseEvent, index: number): void; search(event: Event, query: string, source: string): void; removeOption(event: Event, index: number): void; updateModel(options: any): void; updateInputValue(): void; updateInputWithForceSelection(event: Event | null): void; autoUpdateModel(): void; scrollInView(index?: number): void; changeFocusedOptionIndex(event: Event, index: number): void; show(isFocus?: boolean): void; hide(isFocus?: boolean): void; clear(): void; hasSelectedOption(): boolean; getAriaPosInset(index: number): number; getOptionLabel(option: any): any; getOptionValue(option: any): any; getChipTrackKey(option: any): any; getOptionIndex(index: number, scrollerOptions: any): number; getOptionGroupLabel(optionGroup: any): any; getOptionGroupChildren(optionGroup: any): any; getPTOptions(option: any, scrollerOptions: any, index: number, key: string): any; getSelectedItemContext(option: any): { $implicit: any; }; getRemoveIconContext(index: number): { removeCallback: any; index: number; class: string | undefined; }; getGroupContext(optionGroup: any): { $implicit: any; }; getItemContext(option: any, index: number, scrollerOptions: any): { $implicit: any; index: any; }; getLoaderContext(scrollerOptions: any): { options: any; }; getBuildInItemsContext(items: any[], scrollerOptions: any): { $implicit: any[]; options: any; }; shouldShowEmptyMessage(items: any[]): boolean; getItemStyle(scrollerOptions: any): CSSProperties; getChipLabel(option: any): any; getMultipleOptionId(index: number): string; getOptionElementId(index: number, scrollerOptions: any): string; isOptionFocused(index: number, scrollerOptions: any): boolean; getAriaControls(): string | null; getAriaActiveDescendant(): string | null | undefined; getMultipleAriaActiveDescendant(): string | null | undefined; getMultiplePlaceholder(): string | null | undefined; getListContainerMaxHeight(): string; onOverlayBeforeEnter(): void; get containerDataP(): string; get overlayDataP(): string; get inputMultipleDataP(): string; /** * @override * * @see {@link BaseEditableHolder.writeControlValue} * Writes the value to the control. */ writeControlValue(value: any, setModelValue: (value: any) => void): void; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class AutoCompleteModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }