countdown.component.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930
  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 { Platform } from '@angular/cdk/platform';
  6. import { EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
  7. import { NzStatisticComponent } from './statistic.component';
  8. import * as i0 from "@angular/core";
  9. export declare class NzCountdownComponent extends NzStatisticComponent implements OnInit, OnChanges, OnDestroy {
  10. private ngZone;
  11. private platform;
  12. nzFormat: string;
  13. readonly nzCountdownFinish: EventEmitter<void>;
  14. diff: number;
  15. private target;
  16. private updater_?;
  17. constructor(ngZone: NgZone, platform: Platform);
  18. ngOnChanges(changes: SimpleChanges): void;
  19. ngOnInit(): void;
  20. ngOnDestroy(): void;
  21. syncTimer(): void;
  22. startTimer(): void;
  23. stopTimer(): void;
  24. /**
  25. * Update time that should be displayed on the screen.
  26. */
  27. protected updateValue(): void;
  28. static ɵfac: i0.ɵɵFactoryDeclaration<NzCountdownComponent, never>;
  29. static ɵcmp: i0.ɵɵComponentDeclaration<NzCountdownComponent, "nz-countdown", ["nzCountdown"], { "nzFormat": { "alias": "nzFormat"; "required": false; }; }, { "nzCountdownFinish": "nzCountdownFinish"; }, never, never, true, never>;
  30. }