UNPKG

@aotearoan/neon

Version:

Neon is a lightweight design library of Vue 3 components with minimal dependencies.

48 lines (47 loc) 1.52 kB
import type { NeonBannerMessage } from '@/model/feedback/banner/NeonBannerMessage'; import { NeonAlertLevel } from '@/model/feedback/alert/NeonAlertLevel'; /** * NeonBannerService is a service for sending status banner notifications to the <strong>NeonBanner</strong> component for display to the user. */ export declare class NeonBannerService { static readonly removeEventKey: string; /** * Send an info message. * * @param message The info message to display. */ static info(message: NeonBannerMessage): void; /** * Send a success message. * * @param message The success message to display. */ static success(message: NeonBannerMessage): void; /** * Send a warning message. * * @param message The warning message to display. */ static warn(message: NeonBannerMessage): void; /** * Send an error message. * * @param message The error message to display. */ static error(message: NeonBannerMessage): void; /** * Remove a message. * * @param key Key of the message to delete. */ static remove(key: string): void; /** * Generate an event key so that all events are published on the correct topic. * * @param eventType Alert level of the event. * * @returns The event key for sending a message on <a href="/utils/NeonEventBus">NeonEventBus</a>. */ static generateEventKey(eventType: NeonAlertLevel): string; private static emit; }