56 lines
2.8 KiB
TypeScript
56 lines
2.8 KiB
TypeScript
import { Direction } from '@angular/cdk/bidi';
|
|
import * as i0 from '@angular/core';
|
|
import { OnChanges, OnInit, TemplateRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
import { NzConfigKey } from 'ng-zorro-antd/core/config';
|
|
|
|
/**
|
|
* 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 NzAlertType = 'success' | 'info' | 'warning' | 'error';
|
|
declare class NzAlertComponent implements OnChanges, OnInit {
|
|
private cdr;
|
|
private directionality;
|
|
private readonly destroyRef;
|
|
readonly _nzModuleName: NzConfigKey;
|
|
nzAction: string | TemplateRef<void> | null;
|
|
nzCloseText: string | TemplateRef<void> | null;
|
|
nzIconType: string | null;
|
|
nzMessage: string | TemplateRef<void> | null;
|
|
nzDescription: string | TemplateRef<void> | null;
|
|
nzType: 'success' | 'info' | 'warning' | 'error';
|
|
nzCloseable: boolean;
|
|
nzShowIcon: boolean;
|
|
nzBanner: boolean;
|
|
nzNoAnimation: boolean;
|
|
nzIcon: string | TemplateRef<void> | null;
|
|
readonly nzOnClose: EventEmitter<boolean>;
|
|
closed: boolean;
|
|
iconTheme: 'outline' | 'fill';
|
|
inferredIconType: string;
|
|
dir: Direction;
|
|
private isTypeSet;
|
|
private isShowIconSet;
|
|
constructor();
|
|
ngOnInit(): void;
|
|
closeAlert(): void;
|
|
onFadeAnimationDone(): void;
|
|
ngOnChanges(changes: SimpleChanges): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<NzAlertComponent, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<NzAlertComponent, "nz-alert", ["nzAlert"], { "nzAction": { "alias": "nzAction"; "required": false; }; "nzCloseText": { "alias": "nzCloseText"; "required": false; }; "nzIconType": { "alias": "nzIconType"; "required": false; }; "nzMessage": { "alias": "nzMessage"; "required": false; }; "nzDescription": { "alias": "nzDescription"; "required": false; }; "nzType": { "alias": "nzType"; "required": false; }; "nzCloseable": { "alias": "nzCloseable"; "required": false; }; "nzShowIcon": { "alias": "nzShowIcon"; "required": false; }; "nzBanner": { "alias": "nzBanner"; "required": false; }; "nzNoAnimation": { "alias": "nzNoAnimation"; "required": false; }; "nzIcon": { "alias": "nzIcon"; "required": false; }; }, { "nzOnClose": "nzOnClose"; }, never, never, true, never>;
|
|
static ngAcceptInputType_nzCloseable: unknown;
|
|
static ngAcceptInputType_nzShowIcon: unknown;
|
|
static ngAcceptInputType_nzBanner: unknown;
|
|
static ngAcceptInputType_nzNoAnimation: unknown;
|
|
}
|
|
|
|
declare class NzAlertModule {
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<NzAlertModule, never>;
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<NzAlertModule, never, [typeof NzAlertComponent], [typeof NzAlertComponent]>;
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<NzAlertModule>;
|
|
}
|
|
|
|
export { NzAlertComponent, NzAlertModule };
|
|
export type { NzAlertType };
|