mx-ui-components
Version:
mobius ui library
37 lines (36 loc) • 1.21 kB
TypeScript
import BaseComponent from "../Counter/BaseComponent";
export default class Notification extends BaseComponent {
private readonly notificationsCallback?;
private notificationComponentJSON;
private currentTimeframe;
private todaysTimeframeDivReference;
private parsedProps;
private templates;
private subscribeTo;
private listener;
private defaultMessageContainer;
private defaultMessage;
constructor(notificationsCallback?: ((notification: any) => void) | undefined);
connectedCallback(): Promise<void>;
createTimelineNotificationContainer(): void;
createNewSubscription(subscription: SubscriptionT): void;
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
private getNotificationElement;
private handleNotification;
disconnectedCallback(): void;
/**
@description Creates new timeframe header, attach it to DOM and return the header
*/
private switchToNewTimeframe;
}
export type SubscriptionT = {
filters?: {
product: string;
};
id?: string;
module: string;
nodeId: string;
nodeType: string;
userId?: string;
[key: string]: unknown;
};