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

22 lines (21 loc) 969 B
import { PipeTransform } from "@angular/core"; import { UnitConversionService, UnitOption } from "@nova-ui/bits"; import * as i0 from "@angular/core"; /** * Pipe for transforming large values to their abbreviated counterparts. * Conversions are applied for values 10000 or greater */ export declare class DashboardUnitConversionPipe implements PipeTransform { private unitConversionService; constructor(unitConversionService: UnitConversionService); /** * Transforms a large number value to its abbreviated counterpart * * @param value The value to convert * * @returns The string representation of the converted value */ transform: (value: string | number | undefined, units?: UnitOption, defaultThreshold?: number) => string; static ɵfac: i0.ɵɵFactoryDeclaration<DashboardUnitConversionPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<DashboardUnitConversionPipe, "nuiDashboardUnitConversion", false>; }