@clr/angular
Version:
Angular components for Clarity
41 lines (40 loc) • 2.04 kB
TypeScript
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
import { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';
import { AlertIconAndTypesService } from './providers/icon-and-types.service';
import { MultiAlertService } from './providers/multi-alert.service';
import * as i0 from "@angular/core";
export declare class ClrAlert implements OnInit, OnDestroy {
private iconService;
private cdr;
private multiAlertService;
private commonStrings;
private renderer;
private hostElement;
isSmall: boolean;
closable: boolean;
isAppLevel: boolean;
clrCloseButtonAriaLabel: string;
_closedChanged: EventEmitter<boolean>;
_closed: boolean;
private _hidden;
private subscriptions;
private _isLightweight;
private _origAlertType;
constructor(iconService: AlertIconAndTypesService, cdr: ChangeDetectorRef, multiAlertService: MultiAlertService, commonStrings: ClrCommonStringsService, renderer: Renderer2, hostElement: ElementRef<HTMLElement>);
get isLightweight(): boolean;
set isLightweight(val: boolean);
get alertType(): string;
set alertType(val: string);
set alertIconShape(value: string);
set closed(value: boolean);
get alertClass(): string;
get hidden(): boolean;
set hidden(value: boolean);
ngOnInit(): void;
ngOnDestroy(): void;
configAlertType(val: string): void;
open(): void;
close(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ClrAlert, [null, null, { optional: true; }, null, null, null]>;
static ɵcmp: i0.ɵɵComponentDeclaration<ClrAlert, "clr-alert", never, { "isSmall": "clrAlertSizeSmall"; "closable": "clrAlertClosable"; "isAppLevel": "clrAlertAppLevel"; "clrCloseButtonAriaLabel": "clrCloseButtonAriaLabel"; "isLightweight": "clrAlertLightweight"; "alertType": "clrAlertType"; "alertIconShape": "clrAlertIcon"; "closed": "clrAlertClosed"; }, { "_closedChanged": "clrAlertClosedChange"; }, never, ["*"], false, never>;
}