import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core'; import { Store } from '@ngrx/store'; import { Aggregation, Attribute, ChartSubTypeDefinition, ChartWidgetOptions, Class, DataWidgetComponent, Field, FieldType, Item, MarkSubType, MarkType, VariableDefinition, VegaColorType, VegaType, YapI18nService } from '@onepoint-yap/dashboard'; import { BehaviorSubject, Observable, Subject } from 'rxjs'; import { TimeUnit, View } from 'vega'; import { TopLevelSpec } from 'vega-lite'; import * as i0 from "@angular/core"; export type RadarValue = { category: number; key: string; value: number; }; export declare class WidgetChartComponent extends DataWidgetComponent implements AfterViewInit { private translateService; private cdRef; vega: ElementRef; typeOptions: { type: MarkType; subType: MarkSubType; label: MarkType | MarkSubType; id: string; translated?: string; }[]; markTypes: MarkType[]; subTypes?: Partial; schemes?: { id: VegaColorType; translated: string; }[]; MarkType: typeof MarkType; MarkSubType: typeof MarkSubType; WIDGET_HEADER_HEIGHT: number; timeUnits: TimeUnit[]; options$: Observable; optionsCopy: ChartWidgetOptions; classes$: Observable; fields$: Observable; variables$: Observable; vegaLiteSpec$: Observable; variableAttributes$: Observable; possibleSecondaryAttributes$: Observable; triggerCalculatePossibleAttributes$: BehaviorSubject; items$: Observable; filterDataForOptions$: Observable; filterDataForOptionsCopy$: Observable; variables: VariableDefinition[]; aggregations: any[]; variableAttributes: Attribute[]; fields: Field[]; isChartValid$: Observable; numericProperties$: Observable; textProperties$: Observable; comparisons: { id: string; name: string; }[]; view?: View; trigger$: Subject; invalidJson: boolean; constructor(store: Store, translateService: YapI18nService, el: ElementRef, cdRef: ChangeDetectorRef); ngAfterViewInit(): void; static calculateEncoding(options: ChartWidgetOptions): { x: { field: string; title: string; type: any; timeUnit: import("@onepoint-yap/dashboard").TimeUnit | undefined; bin: boolean; axis: { tickMinStep: number; } | undefined; scale: { zero: boolean; type: string | undefined; }; }; y: { field: string; title: string; type: any; timeUnit: import("@onepoint-yap/dashboard").TimeUnit | undefined; axis: { tickMinStep: number; } | undefined; aggregate: Aggregation.COUNT | Aggregation.SUM | Aggregation.DISTINCT | Aggregation.AVERAGE | Aggregation.MEDIAN | Aggregation.Q1 | Aggregation.Q3 | Aggregation.MIN | Aggregation.MAX | undefined; scale: { zero: boolean | undefined; type: string | undefined; }; }; } | { theta: { field: string; title: string; type: any; aggregate: string; }; color: { field: string; title: string; type: any; legend: boolean; scale: { scheme: string | { domain: string[]; range: string[]; }; }; }; } | { theta?: undefined; color?: undefined; }; static buildDataVegaRadar(items: Item[], options: ChartWidgetOptions): RadarValue[]; static matchingItems(items: Item[], options: ChartWidgetOptions, attributes: Attribute[]): Item[]; static uniqueAttributesByNames(attributes: Attribute[]): Attribute[]; templateTypeTranslationFn: (item: any, args: any[]) => string; translateAggregations: (item: any) => string; advancedEdit: string; changeChartTitle(title: string): void; changeTimeUnit($event: TimeUnit, variable: VariableDefinition): void; changeAggregation($event: Aggregation): void; changeProperty(attrName: string, index: number): void; static isTimeUnitUTC(variableDef: VariableDefinition): boolean; changeLabel(label: string, index: number): void; toggleOriginAtZero(variable: VariableDefinition, $event: boolean): void; changeType(typeOptionsId: string): void; resetChart(): void; emitManifest(): void; translateToVegaType(type: FieldType, name: string): VegaType; minTick(type: FieldType): { tickMinStep: number; } | undefined; trigger(): void; proposeTitle(): void; changeInnerRadius($event: string): void; openSettings(): void; toggleSeries($event: any): void; changeSeries($event: any): void; changeSeriesScheme($event: any): void; toggleSeriesLegend($event: any): void; toggleTooltip($event: any): void; axeLabel(i: number, optionsCopy: ChartWidgetOptions): "@yap.widget.chart.encoding.group" | "@yap.widget.chart.encoding.values" | "@yap.widget.chart.encoding.horizontal" | "@yap.widget.chart.encoding.vertical"; hasNoType(options: ChartWidgetOptions): boolean; scheme(): any; toggleSpecToMerge($event: any): void; updateAdvancedEdit($event: any): void; toImage(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }