@skyux/indicators
Version:
This library was generated with [Nx](https://nx.dev).
50 lines (49 loc) • 2.46 kB
TypeScript
import { AfterViewChecked, EventEmitter, OnDestroy, OnInit } from '@angular/core';
import { SkyIndicatorDescriptionType } from '../shared/indicator-description-type';
import { SkyIndicatorIconType } from '../shared/indicator-icon-type';
import * as i0 from "@angular/core";
import * as i1 from "@skyux/theme";
export declare class SkyAlertComponent implements AfterViewChecked, OnInit, OnDestroy {
#private;
/**
* The style for the alert, which determines the icon and background color.
* The valid options are `danger`, `info`, `success`, and `warning`.
* @default "warning"
*/
set alertType(value: SkyIndicatorIconType | undefined);
/**
* Whether to include a close button for users to dismiss the alert.
* @default false
*/
closeable: boolean | undefined;
/**
* Whether the alert is closed.
* @default false
*/
closed: boolean | undefined;
/**
* The predefined text to be read by screen readers for users who cannot see the alert icon.
* This property is optional but will be required in future versions of SKY UX.
*/
set descriptionType(value: SkyIndicatorDescriptionType | undefined);
get descriptionType(): SkyIndicatorDescriptionType | undefined;
/**
* The text to be read by screen readers for users who cannot see
* the indicator icon when `descriptionType` is `custom`.
*/
set customDescription(value: string | undefined);
get customDescription(): string | undefined;
/**
* Fires when users close the alert.
*/
closedChange: EventEmitter<boolean>;
iconName: string | undefined;
alertTypeOrDefault: SkyIndicatorIconType;
descriptionComputed: string | undefined;
ngOnInit(): void;
ngAfterViewChecked(): void;
ngOnDestroy(): void;
close(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SkyAlertComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SkyAlertComponent, "sky-alert", never, { "alertType": { "alias": "alertType"; "required": false; }; "closeable": { "alias": "closeable"; "required": false; }; "closed": { "alias": "closed"; "required": false; }; "descriptionType": { "alias": "descriptionType"; "required": false; }; "customDescription": { "alias": "customDescription"; "required": false; }; }, { "closedChange": "closedChange"; }, never, ["*"], false, [{ directive: typeof i1.SkyThemeComponentClassDirective; inputs: {}; outputs: {}; }]>;
}