autocomplete-option.component.d.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
  6. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  7. import { NzAutocompleteOptgroupComponent } from './autocomplete-optgroup.component';
  8. import * as i0 from "@angular/core";
  9. export declare class NzOptionSelectionChange {
  10. source: NzAutocompleteOptionComponent;
  11. isUserInput: boolean;
  12. constructor(source: NzAutocompleteOptionComponent, isUserInput?: boolean);
  13. }
  14. export declare class NzAutocompleteOptionComponent implements OnInit, OnDestroy {
  15. private ngZone;
  16. private changeDetectorRef;
  17. private element;
  18. nzValue: NzSafeAny;
  19. nzLabel?: string;
  20. nzDisabled: boolean;
  21. readonly selectionChange: EventEmitter<NzOptionSelectionChange>;
  22. readonly mouseEntered: EventEmitter<NzAutocompleteOptionComponent>;
  23. active: boolean;
  24. selected: boolean;
  25. nzAutocompleteOptgroupComponent: NzAutocompleteOptgroupComponent | null;
  26. private destroy$;
  27. constructor(ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, element: ElementRef<HTMLElement>);
  28. ngOnInit(): void;
  29. ngOnDestroy(): void;
  30. select(emit?: boolean): void;
  31. deselect(): void;
  32. /** Git display label */
  33. getLabel(): string;
  34. /** Set active (only styles) */
  35. setActiveStyles(): void;
  36. /** Unset active (only styles) */
  37. setInactiveStyles(): void;
  38. scrollIntoViewIfNeeded(): void;
  39. selectViaInteraction(): void;
  40. private emitSelectionChangeEvent;
  41. static ɵfac: i0.ɵɵFactoryDeclaration<NzAutocompleteOptionComponent, never>;
  42. 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>;
  43. static ngAcceptInputType_nzDisabled: unknown;
  44. }