UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

45 lines (44 loc) 2.19 kB
/** * 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 { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzAutocompleteOptgroupComponent } from './autocomplete-optgroup.component'; import * as i0 from "@angular/core"; export declare class NzOptionSelectionChange { source: NzAutocompleteOptionComponent; isUserInput: boolean; constructor(source: NzAutocompleteOptionComponent, isUserInput?: boolean); } export declare class NzAutocompleteOptionComponent implements OnInit, OnDestroy { private ngZone; private changeDetectorRef; private element; nzValue: NzSafeAny; nzLabel?: string; nzDisabled: boolean; readonly selectionChange: EventEmitter<NzOptionSelectionChange>; readonly mouseEntered: EventEmitter<NzAutocompleteOptionComponent>; active: boolean; selected: boolean; nzAutocompleteOptgroupComponent: NzAutocompleteOptgroupComponent | null; private destroy$; constructor(ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, element: ElementRef<HTMLElement>); ngOnInit(): void; ngOnDestroy(): void; select(emit?: boolean): void; deselect(): void; /** Git display label */ getLabel(): string; /** Set active (only styles) */ setActiveStyles(): void; /** Unset active (only styles) */ setInactiveStyles(): void; scrollIntoViewIfNeeded(): void; selectViaInteraction(): void; private emitSelectionChangeEvent; static ɵfac: i0.ɵɵFactoryDeclaration<NzAutocompleteOptionComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NzAutocompleteOptionComponent, "nz-auto-option", ["nzAutoOption"], { "nzValue": { "alias": "nzValue"; "required": false; }; "nzLabel": { "alias": "nzLabel"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "mouseEntered": "mouseEntered"; }, never, ["*"], true, never>; static ngAcceptInputType_nzDisabled: unknown; }