import { SelectChangeEvent, SelectFilterEvent, SelectFilterOptions, SelectFilterTemplateContext, SelectGroupTemplateContext, SelectHeaderTemplateContext, SelectIconTemplateContext, SelectItemTemplateContext, SelectLazyLoadEvent, SelectLoaderTemplateContext, SelectPassThrough, SelectSelectedItemTemplateContext } from "primeng/types/select"; import * as i0 from "@angular/core"; import { AfterViewChecked, AfterViewInit, ElementRef, TemplateRef } from "@angular/core"; import { MotionEvent, MotionOptions } from "@primeuix/motion"; import * as i2 from "primeng/api"; import { FilterMatchModeType, FilterService, OverlayOptions, ScrollerOptions } from "primeng/api"; import { BaseInput } from "primeng/baseinput"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { Overlay } from "primeng/overlay"; import { Scroller } from "primeng/scroller"; import { Nullable } from "primeng/ts-helpers"; import { AppendTo, CSSProperties } from "primeng/types/shared"; import { TooltipPosition } from "primeng/types/tooltip"; import { BaseStyle } from "primeng/base"; export * from "primeng/types/select"; export declare class SelectStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-disabled': any; 'p-invalid': any; 'p-variant-filled': boolean; 'p-focus': any; 'p-inputwrapper-filled': any; 'p-inputwrapper-focus': any; 'p-select-open': any; 'p-select-fluid': any; 'p-select-sm p-inputfield-sm': boolean; 'p-select-lg p-inputfield-lg': boolean; })[]; label: ({ instance }: { instance: any; }) => (string | { 'p-placeholder': any; 'p-select-label-empty': boolean; })[]; clearIcon: string; dropdown: string; loadingIcon: string; dropdownIcon: string; overlay: string; header: string; pcFilter: string; listContainer: string; list: string; optionGroup: string; optionGroupLabel: string; option: ({ instance }: { instance: any; }) => (string | { 'p-select-option-selected': any; 'p-disabled': any; 'p-focus': any; })[]; optionLabel: string; optionCheckIcon: string; optionBlankIcon: string; emptyMessage: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * Select also known as Select, is used to choose an item from a collection of options. * * [Live Demo](https://www.primeng.org/select/) * * @module selectstyle * */ export declare enum SelectClasses { /** * Class name of the root element */ root = "p-select", /** * Class name of the label element */ label = "p-select-label", /** * Class name of the clear icon element */ clearIcon = "p-select-clear-icon", /** * Class name of the dropdown element */ dropdown = "p-select-dropdown", /** * Class name of the loadingicon element */ loadingIcon = "p-select-loading-icon", /** * Class name of the dropdown icon element */ dropdownIcon = "p-select-dropdown-icon", /** * Class name of the overlay element */ overlay = "p-select-overlay", /** * Class name of the header element */ header = "p-select-header", /** * Class name of the filter element */ pcFilter = "p-select-filter", /** * Class name of the list container element */ listContainer = "p-select-list-container", /** * Class name of the list element */ list = "p-select-list", /** * Class name of the option group element */ optionGroup = "p-select-option-group", /** * Class name of the option group label element */ optionGroupLabel = "p-select-option-group-label", /** * Class name of the option element */ option = "p-select-option", /** * Class name of the option label element */ optionLabel = "p-select-option-label", /** * Class name of the option check icon element */ optionCheckIcon = "p-select-option-check-icon", /** * Class name of the option blank icon element */ optionBlankIcon = "p-select-option-blank-icon", /** * Class name of the empty message element */ emptyMessage = "p-select-empty-message" } export declare const SELECT_VALUE_ACCESSOR: any; /** * Select is used to choose an item from a collection of options. * @group Components */ export declare class Select extends BaseInput implements AfterViewInit, AfterViewChecked { componentName: string; bindDirectiveInstance: Bind; filterService: FilterService; /** * Unique identifier of the component * @group Props */ id: import("@angular/core").InputSignal; private _internalId; $id: import("@angular/core").Signal; /** * Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value. * @group Props */ scrollHeight: import("@angular/core").InputSignal; /** * When specified, displays an input field to filter the items on keyup. * @group Props */ filter: 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; /** * When present, it specifies that the component cannot be edited. * @group Props */ readonly: import("@angular/core").InputSignalWithTransform; /** * When present, custom value instead of predefined options can be entered using the editable input field. * @group Props */ editable: import("@angular/core").InputSignalWithTransform; /** * Index of the element in tabbing order. * @group Props */ tabindex: import("@angular/core").InputSignalWithTransform; /** * Default text to display when no option is selected. * @group Props */ placeholder: import("@angular/core").InputSignal; /** * Icon to display in loading state. * @group Props */ loadingIcon: import("@angular/core").InputSignal; /** * Placeholder text to show when filter input is empty. * @group Props */ filterPlaceholder: import("@angular/core").InputSignal; /** * Locale to use in filtering. The default locale is the host environment's current locale. * @group Props */ filterLocale: import("@angular/core").InputSignal; /** * Identifier of the accessible input element. * @group Props */ inputId: import("@angular/core").InputSignal; /** * A property to uniquely identify a value in options. * @remarks Ignored when optionValue is set, because optionValue already yields a scalar to compare. * @group Props */ dataKey: import("@angular/core").InputSignal; /** * When filtering is enabled, filterBy decides which field or fields (comma separated) to search against. * @group Props */ filterBy: import("@angular/core").InputSignal; /** * Fields used when filtering the options, defaults to optionLabel. * @group Props */ filterFields: import("@angular/core").InputSignal; /** * When present, it specifies that the component should automatically get focus on load. * @group Props */ autofocus: import("@angular/core").InputSignalWithTransform; /** * Clears the filter value when hiding the select. * @group Props */ resetFilterOnHide: import("@angular/core").InputSignalWithTransform; /** * Whether the selected option will be shown with a check mark. * @group Props */ checkmark: import("@angular/core").InputSignalWithTransform; /** * Icon class of the select icon. * @group Props */ dropdownIcon: import("@angular/core").InputSignal; /** * Whether the select is in loading state. * @group Props */ loading: import("@angular/core").InputSignalWithTransform; /** * Name of the label field of an option. * @group Props */ optionLabel: import("@angular/core").InputSignal; /** * Name of the value field of an option. * @group Props */ optionValue: import("@angular/core").InputSignal; /** * Name of the disabled field of an option or function to determine disabled state. * @group Props */ optionDisabled: import("@angular/core").InputSignal boolean) | undefined>; /** * Name of the label field of an option group. * @group Props */ optionGroupLabel: import("@angular/core").InputSignal; /** * Name of the options field of an option group. * @group Props */ optionGroupChildren: import("@angular/core").InputSignal; /** * Whether to display options as grouped when nested options are provided. * @group Props */ group: import("@angular/core").InputSignalWithTransform; /** * When enabled, a clear icon is displayed to clear the value. * @group Props */ showClear: import("@angular/core").InputSignalWithTransform; /** * Text to display when filtering does not return any results. Defaults to global value in i18n translation configuration. * @group Props */ emptyFilterMessage: 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; /** * Text to display when filtering. Defaults to global value in i18n translation configuration. * @group Props * @defaultValue 'Search results are available' */ filterMessage: 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; /** * Text to be displayed in hidden accessible field when no option is selected. Defaults to global value in i18n translation configuration. * @group Props * @defaultValue 'No selected item' */ emptySelectionMessage: import("@angular/core").InputSignal; /** * Defines if data is loaded and interacted with in lazy manner. Only effective when virtualScroll is enabled. * @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").InputSignalWithTransform; /** * 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; /** * Whether to use overlay API feature. The properties of overlay API can be used like an object in it. * @group Props */ overlayOptions: import("@angular/core").InputSignal; /** * Defines a string that labels the filter input. * @group Props */ ariaFilterLabel: import("@angular/core").InputSignal; /** * Used to define a aria label attribute the current element. * @group Props */ ariaLabel: import("@angular/core").InputSignal; /** * Establishes relationships between the component and label(s) where its value should be one or more element IDs. * @group Props */ ariaLabelledBy: import("@angular/core").InputSignal; /** * Defines how the items are filtered. * @group Props */ filterMatchMode: import("@angular/core").InputSignal; /** * Advisory information to display in a tooltip on hover. * @group Props */ tooltip: import("@angular/core").InputSignal; /** * Position of the tooltip. * @group Props */ tooltipPosition: import("@angular/core").InputSignal; /** * Type of CSS position. * @group Props */ tooltipPositionStyle: import("@angular/core").InputSignal; /** * Style class of the tooltip. * @group Props */ tooltipStyleClass: import("@angular/core").InputSignal; /** * Fields used when filtering the options, defaults to optionLabel. * @group Props */ focusOnHover: import("@angular/core").InputSignalWithTransform; /** * Determines if the option will be selected on focus. * @group Props */ selectOnFocus: import("@angular/core").InputSignalWithTransform; /** * When enabled, allows multiple items to be selected. * @group Props */ multiple: import("@angular/core").InputSignalWithTransform; /** * Whether to focus on the first visible or selected element when the overlay panel is shown. * @group Props */ autoOptionFocus: import("@angular/core").InputSignalWithTransform; /** * Applies focus to the filter element when the overlay is shown. * @group Props */ autofocusFilter: import("@angular/core").InputSignalWithTransform; /** * When specified, filter displays with this value. * @group Props */ filterValue: import("@angular/core").InputSignal; /** * An array of objects to display as the available options. * @group Props */ options: 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 when value of select changes. * @param {SelectChangeEvent} event - custom change event. * @group Emits */ onChange: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when data is filtered. * @param {SelectFilterEvent} event - custom filter event. * @group Emits */ onFilter: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when select gets focus. * @param {Event} event - Browser event. * @group Emits */ onFocus: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when select loses focus. * @param {Event} event - Browser event. * @group Emits */ onBlur: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when component is clicked. * @param {MouseEvent} event - Mouse event. * @group Emits */ onClick: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when select overlay gets visible. * @param {MotionEvent} event - Motion event. The AnimationEvent typing is deprecated and kept for backward compatibility; only the MotionEvent properties exist at runtime. * @group Emits */ onShow: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when select overlay gets hidden. * @param {MotionEvent} event - Motion event. The AnimationEvent typing is deprecated and kept for backward compatibility; only the MotionEvent properties exist at runtime. * @group Emits */ onHide: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when select clears the value. * @param {Event} event - Browser event. * @group Emits */ onClear: import("@angular/core").OutputEmitterRef; /** * Callback to invoke in lazy mode to load new data. Only emitted when virtualScroll is enabled. * @param {SelectLazyLoadEvent} event - Lazy load event. * @group Emits */ onLazyLoad: import("@angular/core").OutputEmitterRef; _componentStyle: SelectStyle; filterViewChild: import("@angular/core").Signal | undefined>; focusInputViewChild: import("@angular/core").Signal | undefined>; editableInputViewChild: import("@angular/core").Signal | undefined>; itemsViewChild: import("@angular/core").Signal | undefined>; scroller: import("@angular/core").Signal; overlayViewChild: import("@angular/core").Signal; firstHiddenFocusableElementOnOverlay: import("@angular/core").Signal | undefined>; lastHiddenFocusableElementOnOverlay: import("@angular/core").Signal | undefined>; itemsWrapper: Nullable; $appendTo: import("@angular/core").Signal; /** * Custom item template. * @group Templates */ itemTemplate: 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 selected item template. * @group Templates */ selectedItemTemplate: import("@angular/core").Signal> | undefined>; /** * Custom header template. * @param {SelectHeaderTemplateContext} context - header context. * @group Templates */ headerTemplate: import("@angular/core").Signal | undefined>; /** * Custom filter template. * @group Templates */ filterTemplate: import("@angular/core").Signal | undefined>; /** * Custom footer template. * @group Templates */ footerTemplate: import("@angular/core").Signal | undefined>; /** * Custom empty filter template. * @group Templates */ emptyFilterTemplate: import("@angular/core").Signal | undefined>; /** * Custom empty template. * @group Templates */ emptyTemplate: import("@angular/core").Signal | undefined>; /** * Custom dropdown icon template. * @group Templates */ dropdownIconTemplate: 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 filter icon template. * @group Templates */ filterIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom on icon template. * @deprecated since v22. Select never renders this template; it will be removed in a future version. * @group Templates */ onIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom off icon template. * @deprecated since v22. Select never renders this template; it will be removed in a future version. * @group Templates */ offIconTemplate: import("@angular/core").Signal | undefined>; /** * Custom cancel icon template. * @deprecated since v22. Select never renders this template; it will be removed in a future version. * @group Templates */ cancelIconTemplate: import("@angular/core").Signal | undefined>; filterOptions: SelectFilterOptions | undefined; _filterValue: import("@angular/core").WritableSignal; _options: import("@angular/core").WritableSignal; value: any; focused: import("@angular/core").WritableSignal; overlayVisible: import("@angular/core").WritableSignal; optionsChanged: Nullable; selectedOptionUpdated: Nullable; searchValue: Nullable; searchTimeout: any; alignOverlayTimeout: any; changeTimeout: any; scrollToSelectedTimeout: any; scrollInViewTimeout: any; preventModelTouched: Nullable; focusedOptionIndex: import("@angular/core").WritableSignal; clicked: import("@angular/core").WritableSignal; private translation; emptyMessageLabel: import("@angular/core").Signal; emptyFilterMessageLabel: import("@angular/core").Signal; filterMessageText: import("@angular/core").Signal; emptyFilterMessageText: import("@angular/core").Signal; filterResultMessageText: import("@angular/core").Signal; selectionMessageText: import("@angular/core").Signal; emptySelectionMessageText: import("@angular/core").Signal; selectedMessageText: import("@angular/core").Signal; private largeListWarned; isVisibleClearIcon: import("@angular/core").Signal; listLabel: import("@angular/core").Signal; focusedOptionId: import("@angular/core").Signal; visibleOptions: import("@angular/core").Signal; label: import("@angular/core").Signal; $ariaLabel: import("@angular/core").Signal; $ariaMultiselectable: import("@angular/core").Signal; $ariaReadonly: import("@angular/core").Signal; $placeholder: import("@angular/core").Signal; $required: import("@angular/core").Signal<"" | undefined>; $readonly: import("@angular/core").Signal<"" | undefined>; $disabledAttr: import("@angular/core").Signal<"" | undefined>; $tabindex: import("@angular/core").Signal; filterInputValue: import("@angular/core").Signal; get $ariaActivedescendant(): string | null | undefined; get $ariaExpanded(): boolean; $ariaControls: import("@angular/core").Signal; showEmptyFilterMessage: import("@angular/core").Signal; showEmptyMessage: import("@angular/core").Signal; hasEmptyTemplate: import("@angular/core").Signal | undefined>; $ariaOwns: import("@angular/core").Signal; selectedItemContext: import("@angular/core").Signal>; clearIconContext: import("@angular/core").Signal; dropdownIconContext: import("@angular/core").Signal; filterTemplateContext: import("@angular/core").Signal; defaultBuildInItemsContext: import("@angular/core").Signal<{ $implicit: any; options: {}; }>; ariaSetSize: import("@angular/core").Signal; private groupIndexes; containerDataP: import("@angular/core").Signal; labelDataP: import("@angular/core").Signal; dropdownIconDataP: import("@angular/core").Signal; overlayDataP: import("@angular/core").Signal; selectedOption: import("@angular/core").WritableSignal; constructor(); private isModelValueNotSet; private getAllVisibleAndNonVisibleOptions; virtualScrollerDisabled: import("@angular/core").Signal; getBuildInItemsContext(items: any[], scrollerOptions: any): { $implicit: any[]; options: any; }; getLoaderContext(scrollerOptions: any): SelectLoaderTemplateContext; getItemSizeStyle(scrollerOptions: any): { height: string; }; getGroupContext(optionGroup: any): SelectGroupTemplateContext; onInit(): void; private createFilterOptions; onAfterViewChecked(): void; flatOptions(options: any): any; autoUpdateModel(): void; onOptionSelect(event: any, option: any, isHide?: boolean, preventChange?: boolean): void; onOptionSelectMultiple(event: any, option: any, preventChange?: boolean): void; onOptionMouseEnter(event: any, index: any): void; updateModel(value: any, _event?: any): void; isSelected(option: any): boolean; private isOptionValueEqualsModelValue; onAfterViewInit(): void; updateEditableLabel(): void; clearEditableLabel(): void; getOptionIndex(index: any, scrollerOptions: any): any; getOptionLabel(option: any): any; getValueLabel(value: any): any; getOptionValue(option: any): any; getPTItemOptions(option: any, itemOptions: any, index: number, key: string): any; isSelectedOptionEmpty(): boolean; isOptionDisabled(option: any): any; getOptionGroupLabel(optionGroup: any): any; getOptionGroupChildren(optionGroup: any): any; getAriaPosInset(index: any): number; /** * Callback to invoke on filter reset. * @group Method */ resetFilter(): void; onContainerClick(event: any): void; isEmpty(): any; onEditableInput(event: Event): void; /** * Displays the panel. * @group Method */ show(isFocus?: any): void; private warnLargeListWithoutVirtualScroll; onOverlayBeforeEnter(event: MotionEvent): void; onOverlayAfterLeave(event: MotionEvent): void; /** * Hides the panel. * @group Method */ hide(isFocus?: any): void; onInputFocus(event: Event): void; onInputBlur(event: Event): void; onKeyDown(event: KeyboardEvent, search?: boolean): void; onFilterTemplateKeyDown(event: KeyboardEvent): void; onFilterKeyDown(event: any): void; onFilterBlur(event: any): void; onArrowDownKey(event: KeyboardEvent): void; changeFocusedOptionIndex(event: any, index: any, withSelection?: boolean): void; scrollInView(index?: number): void; hasSelectedOption(): boolean; isValidSelectedOption(option: any): boolean; equalityKey(): string | undefined; findFirstFocusedOptionIndex(): any; findFirstOptionIndex(): any; findSelectedOptionIndex(): any; findNextOptionIndex(index: any): any; findPrevOptionIndex(index: any): any; findLastOptionIndex(): number; findLastFocusedOptionIndex(): any; isValidOption(option: any): boolean; isOptionGroup(option: any): any; isOptionFocused(index: number, scrollerOptions: any): boolean; trackOption(option: any, index: number): any; onArrowUpKey(event: KeyboardEvent, pressedInInputText?: boolean): void; onArrowLeftKey(event: KeyboardEvent, pressedInInputText?: boolean): void; onDeleteKey(event: KeyboardEvent): void; onHomeKey(event: any, pressedInInputText?: boolean): void; onEndKey(event: any, pressedInInputText?: boolean): void; onPageDownKey(event: KeyboardEvent): void; onPageUpKey(event: KeyboardEvent): void; onSpaceKey(event: KeyboardEvent, pressedInInputText?: boolean): void; onEnterKey(event: any, pressedInInput?: boolean): void; onEscapeKey(event: KeyboardEvent): void; onTabKey(event: any, pressedInInputText?: boolean): void; onFirstHiddenFocus(event: any): void; onLastHiddenFocus(event: any): void; hasFocusableElements(): boolean; onBackspaceKey(event: KeyboardEvent, pressedInInputText?: boolean): void; searchFields(): any[]; searchOptions(event: any, char: any, withSelection?: boolean): boolean; isOptionExactMatched(option: any): boolean; isOptionMatched(option: any): any; onFilterInputChange(event: Event | any): void; clearTimers(): void; onDestroy(): void; applyFocus(): void; /** * Applies focus. * @group Method */ focus(): void; /** * Clears the model. * @group Method */ clear(event?: Event): void; /** * @override * * @see {@link BaseEditableHolder.writeControlValue} * Writes the value to the control. */ writeControlValue(value: any, setModelValue: (value: any) => void): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class SelectModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }