@nova-ui/dashboards
Version:
Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and
21 lines (20 loc) • 922 B
TypeScript
import { EventBus, IEvent } from "@nova-ui/bits";
import { IConfigurable, IProperties } from "../../../types";
import * as i0 from "@angular/core";
export interface IInteractionPayload<T> {
interactionType?: string;
data: T;
}
export interface IInteractionHandlerProperties extends IProperties {
interactionType?: string;
}
export declare abstract class InteractionHandler<T extends IInteractionHandlerProperties, P> implements IConfigurable {
protected readonly eventBus: EventBus<IEvent>;
protected properties: T;
constructor(eventBus: EventBus<IEvent>);
updateConfiguration(properties: T): void;
protected initializeSubscriptions(): void;
protected abstract handleInteraction(interaction: IInteractionPayload<P>): void;
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionHandler<any, any>, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<InteractionHandler<any, any>>;
}