import * as i0 from '@angular/core'; import { OnChanges, TemplateRef, AfterViewInit, EventEmitter, SimpleChanges, OnInit, ElementRef, AfterContentInit, QueryList } from '@angular/core'; import { Subject } from 'rxjs'; import { NzSafeAny, NzSizeLDSType, NzStatus, NzVariant, OnChangeType, OnTouchedType, NgClassInterface, NzValidateStatus } from 'ng-zorro-antd/core/types'; import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling'; import { Direction } from '@angular/cdk/bidi'; import { CdkConnectedOverlay, ConnectionPositionPair, ConnectedOverlayPositionChange } from '@angular/cdk/overlay'; import { ControlValueAccessor } from '@angular/forms'; import { NzConfigKey } from 'ng-zorro-antd/core/config'; import { NzFormStatusService } from 'ng-zorro-antd/core/form'; import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import * as i1 from 'ng-zorro-antd/space'; /** * 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 */ declare class NzOptionGroupComponent implements OnChanges { nzLabel: string | number | TemplateRef | null; changes: Subject; ngOnChanges(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 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 */ type NzSelectModeType = 'default' | 'multiple' | 'tags'; interface NzSelectItemInterface { template?: TemplateRef | null; nzLabel: string | number | null; nzValue: NzSafeAny | null; nzTitle?: string | number | null; nzDisabled?: boolean; nzHide?: boolean; nzCustomContent?: boolean; groupLabel?: string | number | TemplateRef | null; type?: string; key?: NzSafeAny; } interface NzSelectOptionInterface { label: string | number | null | TemplateRef; value: NzSafeAny | null; title?: string | number | null; disabled?: boolean; hide?: boolean; groupLabel?: string | number | TemplateRef | null; key?: string | number; } type NzSelectTopControlItemType = Partial & { contentTemplateOutlet: TemplateRef | null; contentTemplateOutletContext: NzSafeAny; }; type NzFilterOptionType = (input: string, option: NzSelectItemInterface) => boolean; type NzSelectPlacementType = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'; declare class NzOptionContainerComponent implements OnChanges, AfterViewInit { private readonly ngZone; private readonly platformId; notFoundContent: string | TemplateRef | undefined; menuItemSelectedIcon: TemplateRef | null; dropdownRender: TemplateRef | null; activatedValue: NzSafeAny | null; listOfSelectedValue: NzSafeAny[]; compareWith: (o1: NzSafeAny, o2: NzSafeAny) => boolean; mode: NzSelectModeType; matchWidth: boolean; itemSize: number; maxItemLength: number; isMaxMultipleCountReached: boolean; listOfContainerItem: NzSelectItemInterface[]; readonly itemClick: EventEmitter; readonly scrollToBottom: EventEmitter; cdkVirtualScrollViewport: CdkVirtualScrollViewport; private scrolledIndex; onItemClick(value: NzSafeAny): void; onItemHover(value: NzSafeAny): void; trackValue(_index: number, option: NzSelectItemInterface): NzSafeAny; onScrolledIndexChange(index: number): void; scrollToActivatedValue(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 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 */ declare class NzOptionComponent implements OnChanges, OnInit { private readonly destroyRef; private readonly nzOptionGroupComponent; changes: Subject; groupLabel?: string | number | TemplateRef | null; template: TemplateRef; nzTitle?: string | number | null; nzLabel: string | number | null; nzValue: NzSafeAny | null; nzKey?: string | number; nzDisabled: boolean; nzHide: boolean; nzCustomContent: boolean; ngOnInit(): void; ngOnChanges(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_nzDisabled: unknown; static ngAcceptInputType_nzHide: unknown; static ngAcceptInputType_nzCustomContent: unknown; } declare class NzSelectSearchComponent implements AfterViewInit, OnChanges { private readonly elementRef; private readonly renderer; private readonly focusMonitor; nzId: string | null; disabled: boolean; mirrorSync: boolean; showInput: boolean; focusTrigger: boolean; value: string; autofocus: boolean; readonly valueChange: EventEmitter; readonly isComposingChange: EventEmitter; inputElement: ElementRef; mirrorElement?: ElementRef; setCompositionState(isComposing: boolean): void; onValueChange(value: string): void; clearInputValue(): void; syncMirrorWidth(): void; focus(): void; blur(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzSelectTopControlComponent implements OnChanges, OnInit { private readonly destroyRef; private readonly elementRef; private readonly ngZone; readonly noAnimation: NzNoAnimationDirective | null; nzId: string | null; showSearch: boolean; placeHolder: string | TemplateRef | null; open: boolean; maxTagCount: number; autofocus: boolean; disabled: boolean; mode: NzSelectModeType; customTemplate: TemplateRef<{ $implicit: NzSelectItemInterface; }> | null; maxTagPlaceholder: TemplateRef<{ $implicit: NzSafeAny[]; }> | null; removeIcon: TemplateRef | null; listOfTopItem: NzSelectItemInterface[]; tokenSeparators: string[]; readonly tokenize: EventEmitter; readonly inputValueChange: EventEmitter; readonly deleteItem: EventEmitter; nzSelectSearchComponent: NzSelectSearchComponent; listOfSlicedItem: NzSelectTopControlItemType[]; isShowPlaceholder: boolean; isShowSingleLabel: boolean; isComposing: boolean; inputValue: string | null; updateTemplateVariable(): void; isComposingChange(isComposing: boolean): void; onInputValueChange(value: string): void; tokenSeparate(inputValue: string, tokenSeparators: string[]): void; clearInputValue(): void; focus(): void; blur(): void; onDeleteItem(item: NzSelectItemInterface): void; ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_maxTagCount: unknown; } type NzSelectSizeType = NzSizeLDSType; declare class NzSelectComponent implements ControlValueAccessor, OnInit, AfterContentInit, OnChanges { readonly _nzModuleName: NzConfigKey; private readonly ngZone; private readonly cdr; private readonly host; private readonly renderer; private readonly platform; private readonly focusMonitor; private readonly directionality; private readonly destroyRef; nzId: string | null; nzSize: NzSelectSizeType; nzStatus: NzStatus; nzVariant: NzVariant; nzOptionHeightPx: number; nzOptionOverflowSize: number; nzDropdownClassName: string[] | string | null; nzDropdownMatchSelectWidth: boolean; nzDropdownStyle: Record | null; nzNotFoundContent: string | TemplateRef | undefined; nzPlaceHolder: string | TemplateRef | null; nzPlacement: NzSelectPlacementType | null; nzMaxTagCount: number; nzDropdownRender: TemplateRef | null; nzCustomTemplate: TemplateRef<{ $implicit: NzSelectItemInterface; }> | null; nzSuffixIcon: TemplateRef | string | null; nzClearIcon: TemplateRef | null; nzRemoveIcon: TemplateRef | null; nzMenuItemSelectedIcon: TemplateRef | null; nzTokenSeparators: string[]; nzMaxTagPlaceholder: TemplateRef<{ $implicit: NzSafeAny[]; }> | null; nzMaxMultipleCount: number; nzMode: NzSelectModeType; nzFilterOption: NzFilterOptionType; compareWith: (o1: NzSafeAny, o2: NzSafeAny) => boolean; nzAllowClear: boolean; /** * @deprecated Will be removed in v21. It is recommended to use `nzVariant` instead. */ nzBorderless: boolean; nzShowSearch: boolean; nzLoading: boolean; nzAutoFocus: boolean; nzAutoClearSearchValue: boolean; nzServerSearch: boolean; nzDisabled: boolean; nzOpen: boolean; nzSelectOnTab: boolean; nzBackdrop: boolean; nzOptions: NzSelectOptionInterface[]; set nzShowArrow(value: boolean); get nzShowArrow(): boolean; get isMultiple(): boolean; get isMaxMultipleCountSet(): boolean; get isMaxMultipleCountReached(): boolean; readonly nzOnSearch: EventEmitter; readonly nzScrollToBottom: EventEmitter; readonly nzOpenChange: EventEmitter; readonly nzBlur: EventEmitter; readonly nzFocus: EventEmitter; readonly nzOnClear: i0.OutputEmitterRef; originElement: ElementRef; cdkConnectedOverlay: CdkConnectedOverlay; nzSelectTopControlComponent: NzSelectTopControlComponent; listOfNzOptionComponent: QueryList; listOfNzOptionGroupComponent: QueryList; nzOptionGroupComponentElement: ElementRef; nzSelectTopControlComponentElement: ElementRef; protected finalSize: i0.Signal; private size; private compactSize; private listOfValue$; private listOfTemplateItem$; private listOfTagAndTemplateItem; private searchValue; private isReactiveDriven; private value; private _nzShowArrow; private requestId; private isNzDisableFirstChange; onChange: OnChangeType; onTouched: OnTouchedType; dropdownPosition: NzSelectPlacementType; triggerWidth: number | null; listOfContainerItem: NzSelectItemInterface[]; listOfTopItem: NzSelectItemInterface[]; activatedValue: NzSafeAny | null; listOfValue: NzSafeAny[]; focused: boolean; dir: Direction; positions: ConnectionPositionPair[]; prefixCls: string; statusCls: NgClassInterface; status: NzValidateStatus; hasFeedback: boolean; generateTagItem(value: string): NzSelectItemInterface; onItemClick(value: NzSafeAny): void; onItemDelete(item: NzSelectItemInterface): void; updateListOfContainerItem(): void; clearInput(): void; updateListOfValue(listOfValue: NzSafeAny[]): void; onTokenSeparate(listOfLabel: string[]): 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; noAnimation: NzNoAnimationDirective | null; protected nzFormStatusService: NzFormStatusService | null; private nzFormNoStatusService; constructor(); writeValue(modelValue: NzSafeAny | NzSafeAny[]): void; registerOnChange(fn: OnChangeType): void; registerOnTouched(fn: OnTouchedType): void; setDisabledState(disabled: boolean): void; ngOnChanges({ nzOpen, nzDisabled, nzOptions, nzStatus, nzPlacement, nzSize }: SimpleChanges): void; ngOnInit(): void; ngAfterContentInit(): void; private setStatusStyles; private getTitle; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_nzMaxMultipleCount: unknown; static ngAcceptInputType_nzAllowClear: unknown; static ngAcceptInputType_nzBorderless: unknown; static ngAcceptInputType_nzShowSearch: unknown; static ngAcceptInputType_nzLoading: unknown; static ngAcceptInputType_nzAutoFocus: unknown; static ngAcceptInputType_nzAutoClearSearchValue: unknown; static ngAcceptInputType_nzServerSearch: unknown; static ngAcceptInputType_nzDisabled: unknown; static ngAcceptInputType_nzOpen: unknown; static ngAcceptInputType_nzSelectOnTab: unknown; static ngAcceptInputType_nzBackdrop: unknown; static ngAcceptInputType_nzShowArrow: unknown; } declare class NzOptionItemComponent implements OnChanges, OnInit { private readonly el; private readonly ngZone; private readonly destroyRef; selected: boolean; activated: boolean; grouped: boolean; customContent: boolean; template: TemplateRef | null; disabled: boolean; showState: boolean; title?: string | number | null; label: string | number | null; value: NzSafeAny | null; activatedValue: NzSafeAny | null; listOfSelectedValue: NzSafeAny[]; icon: TemplateRef | null; compareWith: (o1: NzSafeAny, o2: NzSafeAny) => boolean; readonly itemClick: EventEmitter; readonly itemHover: EventEmitter; ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_customContent: unknown; } declare class NzSelectItemComponent { disabled: boolean; label: string | number | null | undefined; deletable: boolean; removeIcon: TemplateRef | null; contentTemplateOutletContext: NzSafeAny | null; contentTemplateOutlet: string | TemplateRef | null; readonly delete: EventEmitter; protected get templateOutletContext(): NzSafeAny; onDelete(e: MouseEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_disabled: unknown; static ngAcceptInputType_displayLabelInHtml: unknown; static ngAcceptInputType_deletable: unknown; } declare class NzSelectClearComponent { clearIcon: TemplateRef | null; readonly clear: EventEmitter; onClick(e: MouseEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 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 */ declare class NzSelectArrowComponent { listOfValue: NzSafeAny[]; loading: boolean; search: boolean; showArrow: boolean; isMaxMultipleCountSet: boolean; suffixIcon: TemplateRef | string | null; feedbackIcon: TemplateRef | string | null; nzMaxMultipleCount: number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_nzMaxMultipleCount: unknown; } /** * 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 */ declare class NzSelectPlaceholderComponent { placeholder: TemplateRef | string | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * 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 */ declare class NzOptionItemGroupComponent { nzLabel: string | number | TemplateRef | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzSelectModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NzOptionComponent, NzOptionContainerComponent, NzOptionGroupComponent, NzOptionItemComponent, NzOptionItemGroupComponent, NzSelectArrowComponent, NzSelectClearComponent, NzSelectComponent, NzSelectItemComponent, NzSelectModule, NzSelectPlaceholderComponent, NzSelectSearchComponent, NzSelectTopControlComponent }; export type { NzFilterOptionType, NzSelectItemInterface, NzSelectModeType, NzSelectOptionInterface, NzSelectPlacementType, NzSelectSizeType, NzSelectTopControlItemType };