UNPKG

@pagamio/frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

54 lines (53 loc) 1.89 kB
import type { QueryProps } from 'src/shared/types'; import type { ChartToolTipProps, DistributionChartTooltip, DistributionQueryProps, StatisticsQueryProps, TableColumn, TooltipField } from '../types'; interface SpeedometerProps<TData extends { id: string | number; }> { title?: string; url?: string; query: QueryProps; colors?: { low: string; medium: string; high: string; }; thresholds?: { low: number; medium: number; }; chartDetails?: { columns?: any[]; data?: any[]; }; tooltipValueFormat: string; tooltipTitle?: string; tooltipUnit?: string; tooltipAdditionalFields?: (string | TooltipField)[]; currencyDisplaySymbol?: string; metricDetailData: { statisticsUrl?: string; title: string; topFiveChartTitle?: string; bottomFiveChartTitle?: string; itemStatisticsQuery: StatisticsQueryProps; valueMetricsQuery: StatisticsQueryProps; averageMetricsQuery: StatisticsQueryProps; distributionMetricsQuery: DistributionQueryProps; yAxisDataNameKey: string; xAxisNameKey: string; xAxisLabel: string; yAxisLabel: string; nameKey: string; valueKey: string; dataGridSearchKey: string; dataGridColumns: TableColumn<TData>[]; dataSearchInputPlaceHolder: string; chartToolTip?: ChartToolTipProps; detailsTableTitle?: string; distributionChartTooltip: DistributionChartTooltip; }; } declare const SpeedometerChart: <TData extends { id: string | number; }>({ title, url, query, colors, thresholds, chartDetails, tooltipValueFormat, tooltipTitle, tooltipUnit, tooltipAdditionalFields, metricDetailData, ...props }: SpeedometerProps<TData>) => import("react/jsx-runtime").JSX.Element; export default SpeedometerChart;