/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { FocusMonitor } from '@angular/cdk/a11y'; import { Direction, Directionality } from '@angular/cdk/bidi'; import { CdkConnectedOverlay, ConnectedOverlayPositionChange } from '@angular/cdk/overlay'; import { Platform } from '@angular/cdk/platform'; import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { VtsConfigKey, VtsConfigService } from '@ui-vts-kit/ng-vts/core/config'; import { VtsNoAnimationDirective } from '@ui-vts-kit/ng-vts/core/no-animation'; import { BooleanInput, VtsSafeAny, OnChangeType, OnTouchedType, VtsSizeXLMSType } from '@ui-vts-kit/ng-vts/core/types'; import { VtsOptionGroupComponent } from './option-group.component'; import { VtsOptionComponent } from './option.component'; import { VtsSelectTopControlComponent } from './select-top-control.component'; import { VtsFilterOptionType, VtsSelectItemInterface, VtsSelectModeType, VtsSelectOptionInterface } from './select.types'; import * as i0 from "@angular/core"; export declare class VtsSelectComponent implements ControlValueAccessor, OnInit, OnDestroy, AfterContentInit, OnChanges { vtsConfigService: VtsConfigService; private cdr; private elementRef; private platform; private focusMonitor; private directionality; noAnimation?: VtsNoAnimationDirective; readonly _vtsModuleName: VtsConfigKey; static ngAcceptInputType_vtsAllowClear: BooleanInput; static ngAcceptInputType_vtsBorderless: BooleanInput; static ngAcceptInputType_vtsShowSearch: BooleanInput; static ngAcceptInputType_vtsLoading: BooleanInput; static ngAcceptInputType_vtsAutoFocus: BooleanInput; static ngAcceptInputType_vtsAutoClearSearchValue: BooleanInput; static ngAcceptInputType_vtsServerSearch: BooleanInput; static ngAcceptInputType_vtsDisabled: BooleanInput; static ngAcceptInputType_vtsOpen: BooleanInput; vtsId: string | null; vtsSize: VtsSizeXLMSType; vtsOptionOverflowSize: number; vtsDropdownClassName: string | null; vtsDropdownMatchSelectWidth: boolean; vtsDropdownStyle: { [key: string]: string; } | null; vtsNoResult: string | TemplateRef | undefined; vtsPlaceHolder: string | TemplateRef | null; vtsMaxTagCount: number; vtsDropdownRender: TemplateRef | null; vtsCustomTemplate: TemplateRef<{ $implicit: VtsSelectItemInterface; }> | null; vtsSuffixIcon: TemplateRef | string | null; vtsClearIcon: TemplateRef | null; vtsRemoveIcon: TemplateRef | null; vtsMenuItemSelectedIcon: TemplateRef | null; vtsTokenSeparators: string[]; vtsMaxTagPlaceholder: TemplateRef<{ $implicit: VtsSafeAny[]; }> | null; vtsMaxMultipleCount: number; vtsMode: VtsSelectModeType; vtsCustomFilterFn: VtsFilterOptionType; vtsCustomCompareFn: (o1: VtsSafeAny, o2: VtsSafeAny) => boolean; vtsAllowClear: boolean; vtsBorderless: boolean; vtsShowSearch: boolean; vtsLoading: boolean; vtsAutoFocus: boolean; vtsAutoClearSearchValue: boolean; vtsServerSearch: boolean; vtsDisabled: boolean; vtsOpen: boolean; vtsBackdrop: boolean; vtsOptions: VtsSelectOptionInterface[]; set vtsShowArrow(value: boolean); get vtsShowArrow(): boolean; get vtsOptionHeightPx(): 48 | 40 | 36 | 32; readonly vtsOnSearch: EventEmitter; readonly vtsScrollToBottom: EventEmitter; readonly vtsOpenChange: EventEmitter; readonly vtsBlur: EventEmitter; readonly vtsFocus: EventEmitter; originElement: ElementRef; cdkConnectedOverlay: CdkConnectedOverlay; vtsSelectTopControlComponent: VtsSelectTopControlComponent; listOfVtsOptionComponent: QueryList; listOfVtsOptionGroupComponent: QueryList; vtsOptionGroupComponentElement: ElementRef; vtsSelectTopControlComponentElement: ElementRef; private listOfValue$; private listOfTemplateItem$; private listOfTagAndTemplateItem; private searchValue; private isReactiveDriven; private value; private destroy$; private _vtsShowArrow; onChange: OnChangeType; onTouched: OnTouchedType; dropDownPosition: 'top' | 'center' | 'bottom'; triggerWidth: number | null; listOfContainerItem: VtsSelectItemInterface[]; listOfTopItem: VtsSelectItemInterface[]; activatedValue: VtsSafeAny | null; listOfValue: VtsSafeAny[]; focused: boolean; dir: Direction; generateTagItem(value: string): VtsSelectItemInterface; onItemClick(value: VtsSafeAny): void; onItemDelete(item: VtsSelectItemInterface): void; onHostClick(): void; clickArrow(openState: boolean): void; updateListOfContainerItem(): void; clearInput(): void; updateListOfValue(listOfValue: VtsSafeAny[]): void; onTokenSeparate(listOfLabel: string[]): void; onOverlayKeyDown(e: KeyboardEvent): void; onKeyDown(e: KeyboardEvent): void; setOpenState(value: boolean): void; onOpenChange(): void; onInputValueChange(value: string): void; onClearSelection(): void; onClickOutside(event: MouseEvent): void; focus(): void; blur(): void; onPositionChange(position: ConnectedOverlayPositionChange): void; updateCdkConnectedOverlayStatus(): void; updateCdkConnectedOverlayPositions(): void; constructor(vtsConfigService: VtsConfigService, cdr: ChangeDetectorRef, elementRef: ElementRef, platform: Platform, focusMonitor: FocusMonitor, directionality: Directionality, noAnimation?: VtsNoAnimationDirective); writeValue(modelValue: VtsSafeAny | VtsSafeAny[]): void; registerOnChange(fn: OnChangeType): void; registerOnTouched(fn: OnTouchedType): void; setDisabledState(disabled: boolean): void; ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngAfterContentInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }