UNPKG

carbon-components-angular

Version:
72 lines (68 loc) 2.49 kB
/** * * carbon-angular v0.0.0 | base-notification.component.d.ts * * Copyright 2014, 2024 IBM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { EventEmitter, ComponentRef } from "@angular/core"; import { I18n } from "carbon-components-angular/i18n"; import { NotificationContent } from "./notification-content.interface"; import { NotificationDisplayService } from "./notification-display.service"; import * as i0 from "@angular/core"; /** * Base class for `Notification`, `ActionableNotification`, & `Toast` * consisting of common functionality * * Get started with importing the module: * * ```typescript * import { NotificationModule } from 'carbon-components-angular'; * ``` * * [See demo](../../?path=/story/components-notification--inline-notification) */ export declare class BaseNotification { protected notificationDisplayService: NotificationDisplayService; protected i18n: I18n; /** * Set role attribute for component * `Status` is default for inline-notification & toast component * `alertdialog` is default for actionable-notification */ get roleAttr(): string; /** * Emits on close. */ close: EventEmitter<any>; componentRef: ComponentRef<BaseNotification>; readonly iconDictionary: { error: string; info: string; "info-square": string; success: string; warning: string; "warning-alt": string; }; protected defaultNotificationObj: NotificationContent; protected _notificationObj: NotificationContent; constructor(notificationDisplayService: NotificationDisplayService, i18n: I18n); /** * Emits close event. */ onClose(): void; onClick(action: any, event: any): void; destroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<BaseNotification, never>; static ɵcmp: i0.ɵɵComponentDeclaration<BaseNotification, "ng-component", never, {}, { "close": "close"; }, never, never, false>; }