UNPKG

pagamio-frontend-commons-lib

Version:

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

48 lines (47 loc) 1.98 kB
import type { QueryProps } from 'src/shared/types'; import type { ChartToolTipProps, DistributionChartTooltip, DistributionQueryProps, StatisticsQueryProps, TableColumn, TooltipField } from '../types'; interface GroupedBarChartProps<TData extends { id: string | number; }> { title?: string; className?: string; url?: string; query: QueryProps; xAxisLabel: string; xAxisValueKey: string; rightYAxisValueKey: string; leftYAxisValueKey: string; chartToolTip: ChartToolTipProps; tooltipValueFormat: string; tooltipTitle?: string; tooltipUnit?: string; tooltipAdditionalFields?: (string | TooltipField)[]; yAxisLabelFormatter?: (value: number) => string; metricDetailData: { title: string; statisticsUrl?: 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; topFiveChartTitle?: string; bottomFiveChartTitle?: string; distributionChartTooltip: DistributionChartTooltip; }; showDetailsModal?: boolean; } declare const GroupedBarChart: <TData extends { id: string | number; }>({ title, className, url, query, xAxisLabel, xAxisValueKey, leftYAxisValueKey, rightYAxisValueKey, tooltipValueFormat, chartToolTip, tooltipTitle, tooltipUnit, tooltipAdditionalFields, yAxisLabelFormatter, metricDetailData, showDetailsModal, ...props }: GroupedBarChartProps<TData>) => import("react/jsx-runtime").JSX.Element; export default GroupedBarChart;