UNPKG

@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

43 lines (42 loc) 1.98 kB
import { ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from "@angular/core"; import { LoggerService } from "@nova-ui/bits"; import { IAccessors, IChartAssistSeries } from "@nova-ui/charts"; import { ProportionalContentAggregatorsRegistryService } from "../../../services/proportional-content-aggregators-registry.service"; import { ProportionalDonutContentFormattersRegistryService } from "../../../services/public-api"; import { IHasChangeDetector } from "../../../types"; import { IFormatter, IFormatterProperties } from "../../types"; import { IDonutContentConfig } from "../types"; export declare class ProportionalDonutContentComponent implements OnChanges, OnDestroy, IHasChangeDetector { private aggregatorRegistry; private formatterRegistry; changeDetector: ChangeDetectorRef; private logger; static lateLoadKey: string; widgetData: IChartAssistSeries<IAccessors>[]; donutConfig: IDonutContentConfig; private chartAssist; aggregatedValue: string; contentFormatter: IFormatter; contentFormatterProperties: IFormatterProperties | undefined; private contentFormatterDefinition; private contentAggregatorDefinition; /** Hovered series Id */ private emphasizedSeriesId; private destroy$; private chartAssistSubscription; constructor(aggregatorRegistry: ProportionalContentAggregatorsRegistryService, formatterRegistry: ProportionalDonutContentFormattersRegistryService, changeDetector: ChangeDetectorRef, logger: LoggerService); ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** * Iterates over formatters and maps their properties from the data * * @param formattersConfiguration */ private getFormatterProperties; private updateAggregatorDefinition; private updateFormatterDefinition; private updateAggregatedValue; private updateFormatterProperties; private getAggregatorProperties; private subscribeToChartAssist; }