@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
83 lines (82 loc) • 2.73 kB
TypeScript
import { Injector, OnDestroy, OnInit } from '@angular/core';
import { CoreBaseComponent } from '../common/base.component';
import { DialogService } from '../dialog/dialog.service';
import { StatusIconType } from '../icon/layered-icon/status/status-icon.component';
import { Alert, AlertBar, AlertBarService } from './alert-bar.service';
import * as i0 from "@angular/core";
export declare class AlertBarComponent extends CoreBaseComponent implements OnInit, OnDestroy, AlertBar {
private alertBarService;
private dialogService;
/**
* The source name to use for logging
*/
protected get logSourceName(): string;
id: string;
private dialogSubscriptions;
alerts: Alert[];
/**
* Initializes a new instance of the {AlertBarComponent} class.
*
* @param alertBarService The alert service.
* @param router The router.
* @param activatedRoute The activated route.
*/
constructor(injector: Injector, alertBarService: AlertBarService, dialogService: DialogService);
/**
* The method to run when the component is initialized.
*/
ngOnInit(): void;
/**
* The method to run when the component is destroyed.
*/
ngOnDestroy(): void;
/**
* Open details view in notification pane
* @param alert the alert clicked
*/
openNotificationDetails(alert: Alert): void;
/**
* click the message expand button
* @param event the event
* @param alert the alert clicked
*/
clickExpand(event: Event, alert: Alert): void;
/**
* stop propagation on the event
* @param event the event to stop
*/
stopClickPropagation(event: Event): void;
/**
* Assigns needsClamp properly to given alert
* @param alert the alert
* @param event the clamped event
*/
assignClamped(alert: Alert, event: any): void;
/**
* Gets the status string for the status icon
*
* @param alert The alert.
*/
getStatusString(alert: Alert): StatusIconType;
getIconTitle(alert: Alert): string;
/**
* Shows an alert.
*
* @param alert The alert to show.
*/
show(alert: Alert): void;
/**
* Dismisses an alert.
*
* @param alert The alert to dismiss.
*/
dismiss(alert: Alert): void;
/**
* Create the index name in map collection.
*
* @param alert the alert
*/
private indexName;
static ɵfac: i0.ɵɵFactoryDeclaration<AlertBarComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AlertBarComponent, "sme-alert-bar", never, { "id": "id"; }, {}, never, never, false, never>;
}