UNPKG

mx-ui-components

Version:

mobius ui library

34 lines (33 loc) 1.1 kB
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; constructor(notificationsCallback?: ((notification: any) => void) | undefined); connectedCallback(): Promise<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; };