select-top-control.component.d.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
  2. import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
  3. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  4. import { NzSelectSearchComponent } from './select-search.component';
  5. import { NzSelectItemInterface, NzSelectModeType, NzSelectTopControlItemType } from './select.types';
  6. import * as i0 from "@angular/core";
  7. export declare class NzSelectTopControlComponent implements OnChanges, OnInit {
  8. nzId: string | null;
  9. showSearch: boolean;
  10. placeHolder: string | TemplateRef<NzSafeAny> | null;
  11. open: boolean;
  12. maxTagCount: number;
  13. autofocus: boolean;
  14. disabled: boolean;
  15. mode: NzSelectModeType;
  16. customTemplate: TemplateRef<{
  17. $implicit: NzSelectItemInterface;
  18. }> | null;
  19. maxTagPlaceholder: TemplateRef<{
  20. $implicit: NzSafeAny[];
  21. }> | null;
  22. removeIcon: TemplateRef<NzSafeAny> | null;
  23. listOfTopItem: NzSelectItemInterface[];
  24. tokenSeparators: string[];
  25. readonly tokenize: EventEmitter<string[]>;
  26. readonly inputValueChange: EventEmitter<string>;
  27. readonly deleteItem: EventEmitter<NzSelectItemInterface>;
  28. nzSelectSearchComponent: NzSelectSearchComponent;
  29. listOfSlicedItem: NzSelectTopControlItemType[];
  30. isShowPlaceholder: boolean;
  31. isShowSingleLabel: boolean;
  32. isComposing: boolean;
  33. inputValue: string | null;
  34. updateTemplateVariable(): void;
  35. isComposingChange(isComposing: boolean): void;
  36. onInputValueChange(value: string): void;
  37. tokenSeparate(inputValue: string, tokenSeparators: string[]): void;
  38. clearInputValue(): void;
  39. focus(): void;
  40. blur(): void;
  41. onDeleteItem(item: NzSelectItemInterface): void;
  42. private destroyRef;
  43. private elementRef;
  44. private ngZone;
  45. noAnimation: NzNoAnimationDirective | null;
  46. ngOnChanges(changes: SimpleChanges): void;
  47. ngOnInit(): void;
  48. static ɵfac: i0.ɵɵFactoryDeclaration<NzSelectTopControlComponent, never>;
  49. static ɵcmp: i0.ɵɵComponentDeclaration<NzSelectTopControlComponent, "nz-select-top-control", ["nzSelectTopControl"], { "nzId": { "alias": "nzId"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "open": { "alias": "open"; "required": false; }; "maxTagCount": { "alias": "maxTagCount"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "customTemplate": { "alias": "customTemplate"; "required": false; }; "maxTagPlaceholder": { "alias": "maxTagPlaceholder"; "required": false; }; "removeIcon": { "alias": "removeIcon"; "required": false; }; "listOfTopItem": { "alias": "listOfTopItem"; "required": false; }; "tokenSeparators": { "alias": "tokenSeparators"; "required": false; }; }, { "tokenize": "tokenize"; "inputValueChange": "inputValueChange"; "deleteItem": "deleteItem"; }, never, never, true, never>;
  50. static ngAcceptInputType_maxTagCount: unknown;
  51. }