cfc-ds
Version:
Design System do Conselho Federal de Contabilidade baseado no govbr-ds
30 lines (29 loc) • 1.45 kB
TypeScript
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
import { TimerService } from '../../services/timer.service';
import { TimerType } from '../../enums/timer-type.enum';
import * as i0 from "@angular/core";
export declare class TimerComponent implements OnInit, OnDestroy {
private timerService;
type: TimerType;
initialTime: string | number;
criticalTime: number;
isGlobal: boolean;
timeOutEvent: EventEmitter<void>;
timeEvent: EventEmitter<void>;
timeCriticalEvent: EventEmitter<void>;
displayTime: string;
criticalTimeIsOut: boolean;
timerTypes: typeof TimerType;
private remainingTimeSubscription;
private localRemainingTime;
constructor(timerService: TimerService);
ngOnInit(): void;
ngOnDestroy(): void;
startTimer(): void;
private startLocalCountdown;
private updateDisplayTime;
private padZero;
private parseTimeToSeconds;
static ɵfac: i0.ɵɵFactoryDeclaration<TimerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TimerComponent, "cfc-timer", never, { "type": { "alias": "type"; "required": false; }; "initialTime": { "alias": "initialTime"; "required": false; }; "criticalTime": { "alias": "criticalTime"; "required": false; }; "isGlobal": { "alias": "isGlobal"; "required": false; }; }, { "timeOutEvent": "timeOutEvent"; "timeEvent": "timeEvent"; "timeCriticalEvent": "timeCriticalEvent"; }, never, never, false, never>;
}