@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
22 lines (21 loc) • 1.06 kB
TypeScript
import { DecimalPipe } from "@angular/common";
import { EventBus, IDataSource, IEvent } from "@nova-ui/bits";
import { DataSourceAdapter } from "./data-source-adapter";
import { IKpiThresholdsConfig } from "../../configurator/components/widgets/kpi/types";
import { PizzagnaService } from "../../pizzagna/services/pizzagna.service";
import { IKpiData } from "../kpi-widget/types";
export interface IKpiDataSourceAdapterConfiguration {
thresholds: IKpiThresholdsConfig;
}
export declare class KpiDataSourceAdapter extends DataSourceAdapter<IKpiData> {
private numberPipe;
private thresholds;
constructor(eventBus: EventBus<IEvent>, dataSource: IDataSource, pizzagnaService: PizzagnaService, numberPipe: DecimalPipe);
updateConfiguration(properties: IKpiDataSourceAdapterConfiguration): void;
protected processOutput(data: IKpiData): IKpiData;
setComponent(component: any, componentId: string): void;
private getThresholdColor;
private getThresholdChecks;
private processThresholds;
private processNumberFormat;
}