@alauda/ui
Version:
Angular UI components by Alauda Frontend Team.
35 lines (34 loc) • 1.37 kB
TypeScript
import { TemplatePortal } from '@angular/cdk/portal';
import { AfterViewInit } from '@angular/core';
import { Bem } from '../internal/utils';
import { MessageComponent } from '../message/message.component';
import { NotificationConfig } from './notification.config';
import * as i0 from "@angular/core";
export declare class NotificationComponent extends MessageComponent implements AfterViewInit {
protected readonly animateStartState = "flyLeft";
protected readonly animateStartEnd = "flyUp";
bem: Bem;
animateState: string;
uniqueId: string;
isHover: boolean;
title: string;
remains: number;
childComponentInstance: unknown;
customClass: string;
footerPortal: TemplatePortal<unknown>;
private readonly portalOutlet;
private readonly modalEl;
onMouseEnter(): void;
onMouseLeave(): void;
ngAfterViewInit(): void;
setConfig(config: NotificationConfig): void;
/**
* Attach a TemplatePortal as content to this modal container.
* @param portal Portal to be attached as the modal content.
*/
private attachTemplatePortal;
private attachComponentRef;
private countDown;
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "aui-notification", never, {}, {}, never, never, true, never>;
}