@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
32 lines (31 loc) • 1.24 kB
TypeScript
import { ChangeDetectorRef, OnChanges, SimpleChanges } from "@angular/core";
import { EventBus, IDataSource, IEvent } from "@nova-ui/bits";
import { IKpiConfiguration, IKpiData, IKpiFormatterProperties } from "./types";
import { IHasChangeDetector } from "../../types";
import { IBroker } from "../providers/types";
export declare class KpiComponent implements IHasChangeDetector, OnChanges {
changeDetector: ChangeDetectorRef;
dataSource: IDataSource;
eventBus: EventBus<IEvent>;
static lateLoadKey: string;
widgetData: IKpiData;
backgroundColor: string;
syncValuesBroker: IBroker[];
configuration: IKpiConfiguration;
busy: boolean;
elementClass: string;
formattersProperties: IKpiFormatterProperties;
defaultColor: string;
get interactive(): boolean;
constructor(changeDetector: ChangeDetectorRef, dataSource: IDataSource, eventBus: EventBus<IEvent>);
onInteraction(): void;
getScaleBroker(id: string): IBroker | undefined;
ngOnChanges(changes: SimpleChanges): void;
get showEmpty(): boolean;
/**
* Iterates over formatters and maps their properties from the data
*
* @param formattersConfiguration
*/
private getFormatterProperties;
}