@aotearoan/neon
Version:
Neon is a lightweight design library of Vue 3 components with minimal dependencies.
28 lines (27 loc) • 1.02 kB
TypeScript
import type { NeonDialogMessage } from '@/model/feedback/dialog/NeonDialogMessage';
/**
* NeonDialogService is a service for invoking confirmation dialogs to the <strong>NeonAlert</strong> component for display to the
* user
*/
export declare class NeonDialogService {
static readonly resolveEventKey: string;
static readonly defaultDialogMessage: NeonDialogMessage;
/**
* Show a dialog message.
*
* @param dialog the dialog message to display.
*/
static show(dialog: Omit<NeonDialogMessage, 'open'>): Promise<boolean>;
/**
* Trigger a resolution of the show dialog promise.
*
* @param key boolean value to resolve the promise.
*/
static resolve(key: boolean): void;
/**
* Generate an event key so that all events are published on the correct topic.
* @returns The event key for sending a message on <a href="/utils/common/event/NeonEventBus">NeonEventBus</a>.
*/
static generateEventKey(): string;
private static emit;
}