ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
46 lines (45 loc) • 2.35 kB
TypeScript
/**
* 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
*/
import { Direction, Directionality } from '@angular/cdk/bidi';
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
import { BooleanInput } from 'ng-zorro-antd/core/types';
import * as i0 from "@angular/core";
export declare class NzAlertComponent implements OnChanges, OnDestroy, OnInit {
nzConfigService: NzConfigService;
private cdr;
private directionality;
readonly _nzModuleName: NzConfigKey;
static ngAcceptInputType_nzCloseable: BooleanInput;
static ngAcceptInputType_nzShowIcon: BooleanInput;
static ngAcceptInputType_nzBanner: BooleanInput;
static ngAcceptInputType_nzNoAnimation: BooleanInput;
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;
readonly nzOnClose: EventEmitter<boolean>;
closed: boolean;
iconTheme: 'outline' | 'fill';
inferredIconType: string;
dir: Direction;
private isTypeSet;
private isShowIconSet;
private destroy$;
constructor(nzConfigService: NzConfigService, cdr: ChangeDetectorRef, directionality: Directionality);
ngOnInit(): void;
closeAlert(): void;
onFadeAnimationDone(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzAlertComponent, [null, null, { optional: true; }]>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzAlertComponent, "nz-alert", ["nzAlert"], { "nzAction": "nzAction"; "nzCloseText": "nzCloseText"; "nzIconType": "nzIconType"; "nzMessage": "nzMessage"; "nzDescription": "nzDescription"; "nzType": "nzType"; "nzCloseable": "nzCloseable"; "nzShowIcon": "nzShowIcon"; "nzBanner": "nzBanner"; "nzNoAnimation": "nzNoAnimation"; }, { "nzOnClose": "nzOnClose"; }, never, never>;
}