import type { AgAreaChart } from './agAreaChart'; import type { AgAreaChartStacked } from './agAreaStacked'; import type { AgAreaChartStacked100 } from './agAreaStacked100'; import type { AgBarChartGrouped } from './agBarChartGrouped'; import type { AgBarChartStacked } from './agBarChartStacked'; import type { AgBarChartStacked100 } from './agBarChartStacked100'; import type { AgBubbleChart } from './agBubbleChart'; import type { AgButtonFilterWidget } from './agButtonFilterWidget'; import type { AgColumnChartGrouped } from './agColumnChartGrouped'; import type { AgColumnChartStacked } from './agColumnChartStacked'; import type { AgColumnChartStacked100 } from './agColumnChartStacked100'; import type { AgConeFunnelChart } from './agConeFunnelChart'; import type { AgDateFilterWidget } from './agDateFilterWidget'; import type { AgDonutChart } from './agDonutChart'; import type { AgFunnelChart } from './agFunnelChart'; import type { AgGridWidget } from './agGridWidget'; import type { AgImageWidget } from './agImageWidget'; import type { AgLineChart } from './agLineChart'; import type { AgLinearGauge } from './agLinearGaugeWidget'; import type { AgListFilterWidget } from './agListFilterWidget'; import type { AgNightingaleChart } from './agNightingaleChart'; import type { AgPieChart } from './agPieChart'; import type { AgPyramidChart } from './agPyramidChart'; import type { AgRadarAreaChart } from './agRadarAreaChart'; import type { AgRadarLineChart } from './agRadarLineChart'; import type { AgRadialBarChart } from './agRadialBarChart'; import type { AgRadialColumnChart } from './agRadialColumnChart'; import type { AgRadialGauge } from './agRadialGaugeWidget'; import type { AgScatterChart } from './agScatterChart'; import type { AgTextWidget } from './agTextWidget'; import type { AgValueWidget } from './agValueWidget'; import type { AgBaseWidgetDefinition } from './agWidgetDefinition'; /** * Union type representing any widget configuration. * Use this when you need to handle any widget type generically. */ export type AgDefaultWidget = AgValueWidget | AgGridWidget | AgColumnChartGrouped | AgColumnChartStacked | AgColumnChartStacked100 | AgBarChartGrouped | AgBarChartStacked | AgBarChartStacked100 | AgLineChart | AgAreaChart | AgAreaChartStacked | AgAreaChartStacked100 | AgScatterChart | AgBubbleChart | AgRadarLineChart | AgRadarAreaChart | AgRadialColumnChart | AgNightingaleChart | AgRadialBarChart | AgPieChart | AgDonutChart | AgFunnelChart | AgConeFunnelChart | AgPyramidChart | AgRadialGauge | AgLinearGauge | AgButtonFilterWidget | AgListFilterWidget | AgDateFilterWidget | AgTextWidget | AgImageWidget; /** * @deprecated v1.1 Use `AgDefaultWidget` for the provided widget types, or use `AgWidgetState for all widget types */ export type AgWidget = AgDefaultWidget; export type AgDefaultWidgetType = AgDefaultWidget['type']; type IsAgWidgetType = TWidget extends { type: TWidgetType; } ? TWidget : never; export type AgDefaultWidgetDefinition = { [TWidgetType in AgDefaultWidgetType]: AgBaseWidgetDefinition, any>; }[AgDefaultWidgetType]; export {};