UNPKG

design-angular-kit

Version:

Un toolkit Angular conforme alle linee guida di design per i servizi web della PA

45 lines (44 loc) 1.72 kB
import { AfterViewInit, EventEmitter } from '@angular/core'; import { AlertColor } from '../../../interfaces/core'; import { ItAbstractComponent } from '../../../abstracts/abstract.component'; import * as i0 from "@angular/core"; import * as i1 from "../../../utils/coercion"; /** * Alert * @description You can provide feedback to the user via alert messages. */ export declare class ItAlertComponent extends ItAbstractComponent implements AfterViewInit { /** * The alert color * @default info */ color: AlertColor; /** * Inserts the close button * @default false */ dismissible?: boolean; /** * This event fires immediately when the instance's close method is called. */ closeEvent: EventEmitter<Event>; /** * This event fires when the alert has been closed (it will wait for CSS transitions to complete). */ closedEvent: EventEmitter<Event>; private alert?; private alertElement?; ngAfterViewInit(): void; /** * Close an alert by removing it from the DOM. * If the `.fade` and `.show` classes are present in the element, the alert will be closed with a disappearing effect. */ close(): void; /** * The alert is removed */ dispose(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ItAlertComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ItAlertComponent, "it-alert", ["itAlert"], { "color": { "alias": "color"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; }, { "closeEvent": "closeEvent"; "closedEvent": "closedEvent"; }, never, ["[heading]", "*"], true, never>; static ngAcceptInputType_dismissible: i1.BooleanInput; }