import { FocusOrigin } from '@angular/cdk/a11y'; import { Platform } from '@angular/cdk/platform'; import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core'; import { NgControl } from '@angular/forms'; import { Subject } from 'rxjs'; import { DropdownComponent, OptionComponent } from '../../../dropdown'; import { OptionHeaderModel, OptionModel, OptionSeparator } from '../../control.model'; import { TextFieldDirective } from '../text-field.directive'; import * as i0 from "@angular/core"; export type OptionType = OptionModel | OptionSeparator | OptionHeaderModel; export declare class SelectComponent extends TextFieldDirective implements OnChanges, AfterViewInit, OnDestroy { protected element: ElementRef; protected parentControl: NgControl; cdr: ChangeDetectorRef; label: string; placeholder: string; adjustHeight: boolean; showAllErrors: boolean; dim: boolean; multiple: boolean; set options(values: OptionType[] | null); expanded: EventEmitter; selectInput?: ElementRef; optionsDropdown?: DropdownComponent; ngContent?: QueryList; get hasValue(): boolean; mouseDown: boolean; dropdownOptions: OptionType[]; selectedOption?: OptionModel; isOpened: boolean; fieldType: string; private selectedOptions; /** * either the selected option label, either the placeholder */ displayedValue?: string; private optionsClosed$; private contentOptionsChanged$; protected _terminator: Subject; protected platform: Platform; constructor(element: ElementRef, parentControl: NgControl, cdr: ChangeDetectorRef); ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; ngOnDestroy(): void; toggleDropdown(): void; dropDownOpened(): void; dropDownClosed(): void; onControlFocused(event: FocusOrigin): void; selectOption(option: OptionModel | OptionComponent): void; selectMultipleOptions(option: OptionModel): void; focusInput(): void; /** * click on select input triggers paPopup toggle and display the options. * paPopup will listen to click and close itself immediately if we dont wait for a tick */ private _openOptionDropDown; private _initDisplayAndSelection; protected _updateDisplayedValue(val?: string): void; private _updateDisplayMultipleValues; private _initSelectedOptionsForMultipleValue; private _findLabelByValue; private _handleNgContent; private _trackNgContentOptionSelected; private _markOptionAsSelected; private _toggleSelectedOption; onMouseDown(): void; onMouseUp(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_label: string | null | undefined; static ngAcceptInputType_placeholder: string | null | undefined; static ngAcceptInputType_adjustHeight: unknown; static ngAcceptInputType_showAllErrors: unknown; static ngAcceptInputType_dim: unknown; static ngAcceptInputType_multiple: unknown; }