icon.directive.d.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 { AfterContentChecked, ChangeDetectorRef, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
  6. import { IconDirective, ThemeType } from '@ant-design/icons-angular';
  7. import { NzIconService } from './icon.service';
  8. import * as i0 from "@angular/core";
  9. export declare class NzIconDirective extends IconDirective implements OnChanges, AfterContentChecked, OnDestroy {
  10. private readonly ngZone;
  11. private readonly changeDetectorRef;
  12. readonly iconService: NzIconService;
  13. readonly renderer: Renderer2;
  14. cacheClassName: string | null;
  15. set nzSpin(value: boolean);
  16. nzRotate: number;
  17. set nzType(value: string);
  18. set nzTheme(value: ThemeType);
  19. set nzTwotoneColor(value: string);
  20. set nzIconfont(value: string);
  21. hostClass?: string;
  22. private readonly el;
  23. private iconfont?;
  24. private spin;
  25. private destroy$;
  26. constructor(ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, iconService: NzIconService, renderer: Renderer2);
  27. ngOnChanges(changes: SimpleChanges): void;
  28. /**
  29. * If custom content is provided, try to normalize SVG elements.
  30. */
  31. ngAfterContentChecked(): void;
  32. ngOnDestroy(): void;
  33. /**
  34. * Replacement of `changeIcon` for more modifications.
  35. */
  36. private changeIcon2;
  37. private handleSpin;
  38. private handleRotate;
  39. private setClassName;
  40. private setSVGData;
  41. static ɵfac: i0.ɵɵFactoryDeclaration<NzIconDirective, never>;
  42. static ɵdir: i0.ɵɵDirectiveDeclaration<NzIconDirective, "nz-icon,[nz-icon]", ["nzIcon"], { "nzSpin": { "alias": "nzSpin"; "required": false; }; "nzRotate": { "alias": "nzRotate"; "required": false; }; "nzType": { "alias": "nzType"; "required": false; }; "nzTheme": { "alias": "nzTheme"; "required": false; }; "nzTwotoneColor": { "alias": "nzTwotoneColor"; "required": false; }; "nzIconfont": { "alias": "nzIconfont"; "required": false; }; }, {}, never, never, true, never>;
  43. static ngAcceptInputType_nzSpin: unknown;
  44. static ngAcceptInputType_nzRotate: unknown;
  45. }