@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
36 lines (35 loc) • 1.36 kB
TypeScript
import { EventBus, IEvent } from "@nova-ui/bits";
import { IBroker, IBrokerUserConfig, IBrokerValue } from "./types";
import { PizzagnaService } from "../../pizzagna/services/pizzagna.service";
import { IConfigurable, IProperties } from "../../types";
export declare class KpiScaleSyncBroker implements IConfigurable {
private eventBus;
private pizzagnaService;
protected properties: IProperties;
protected componentId: string;
private valuesObject;
private brokers;
private builder;
private destroySubscriptions$;
private tileNodes;
constructor(eventBus: EventBus<IEvent>, pizzagnaService: PizzagnaService);
updateConfiguration(properties: IProperties): void;
configure(): KpiScaleSyncBrokerBuilder;
getBrokers(): readonly IBroker[];
subscribeToBrokers(): void;
setComponent(component: any, componentId: string): void;
destroy(): void;
private processAndEmitSyncedValue;
private configureValueModel;
private createPropertiesAndSubscribeToBrokers;
private getMin;
private getMax;
}
declare class KpiScaleSyncBrokerBuilder {
private brokers;
readonly valuesObject: Record<string, Array<Partial<IBrokerValue>>>;
constructor(brokers: IBroker[]);
addBroker(broker: IBrokerUserConfig): KpiScaleSyncBrokerBuilder;
private getDefaultBrokerObject;
}
export {};