ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
118 lines • 4.06 kB
TypeScript
import * as i0 from "@angular/core";
import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
import { NgStyleInterface } from "ng-zorro-antd/core/types";
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
type NzStatisticValueType = number | string;
declare namespace statistic_component_d_exports {
export { NzStatisticComponent };
}
export declare class NzStatisticComponent {
protected readonly dir: import("@angular/core").WritableSignal<import("@angular/cdk/bidi").Direction>;
nzPrefix?: string | TemplateRef<void>;
nzSuffix?: string | TemplateRef<void>;
nzTitle?: string | TemplateRef<void>;
nzValue?: NzStatisticValueType;
nzValueStyle: NgStyleInterface;
nzValueTemplate?: TemplateRef<{
$implicit: NzStatisticValueType;
}>;
nzLoading: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<NzStatisticComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzStatisticComponent, "nz-statistic", ["nzStatistic"], {
"nzPrefix": {
"alias": "nzPrefix";
"required": false;
};
"nzSuffix": {
"alias": "nzSuffix";
"required": false;
};
"nzTitle": {
"alias": "nzTitle";
"required": false;
};
"nzValue": {
"alias": "nzValue";
"required": false;
};
"nzValueStyle": {
"alias": "nzValueStyle";
"required": false;
};
"nzValueTemplate": {
"alias": "nzValueTemplate";
"required": false;
};
"nzLoading": {
"alias": "nzLoading";
"required": false;
};
}, {}, never, never, true, never>;
static ngAcceptInputType_nzLoading: unknown;
}
declare namespace countdown_component_d_exports {
export { NzCountdownComponent };
}
export declare class NzCountdownComponent extends NzStatisticComponent implements OnInit, OnChanges {
private readonly cdr;
private readonly destroyRef;
private readonly ngZone;
private readonly platform;
nzFormat: string;
readonly nzCountdownFinish: EventEmitter<void>;
diff: number;
private target;
private intervalId;
constructor();
ngOnChanges(changes: SimpleChanges): void;
ngOnInit(): void;
syncTimer(): void;
startTimer(): void;
stopTimer(): void;
/**
* Update time that should be displayed on the screen.
*/
protected updateValue(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzCountdownComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzCountdownComponent, "nz-countdown", ["nzCountdown"], {
"nzFormat": {
"alias": "nzFormat";
"required": false;
};
}, {
"nzCountdownFinish": "nzCountdownFinish";
}, never, never, true, never>;
}
declare namespace statistic_content_value_component_d_exports {
export { NzStatisticContentValueComponent };
}
export declare class NzStatisticContentValueComponent implements OnChanges {
nzValue?: NzStatisticValueType;
nzValueTemplate?: TemplateRef<{
$implicit: NzStatisticValueType;
}>;
displayInt: string;
displayDecimal: string;
private locale_id;
ngOnChanges(): void;
private formatNumber;
static ɵfac: i0.ɵɵFactoryDeclaration<NzStatisticContentValueComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzStatisticContentValueComponent, "nz-statistic-content-value", ["nzStatisticContentValue"], {
"nzValue": {
"alias": "nzValue";
"required": false;
};
"nzValueTemplate": {
"alias": "nzValueTemplate";
"required": false;
};
}, {}, never, never, true, never>;
}
export declare class NzStatisticModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzStatisticModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzStatisticModule, never, [typeof NzStatisticComponent, typeof NzCountdownComponent, typeof NzStatisticContentValueComponent], [typeof NzStatisticComponent, typeof NzCountdownComponent, typeof NzStatisticContentValueComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzStatisticModule>;
}