Skip to content

Commit

Permalink
fix: approve api change in core/chart and core/reports
Browse files Browse the repository at this point in the history
  • Loading branch information
trik committed Nov 27, 2020
1 parent 40f5fa7 commit c2a01b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/public_api_guard/core/chart.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
export declare class AjfChartComponent implements AfterViewInit, OnChanges {
chartType: ExtendedChartType;
data: ChartData;
instance: ChartWidgetInstance;
options: ChartOptions;
constructor(_el: ElementRef, _renderer: Renderer2);
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
static ɵcmp: i0.ɵɵComponentDefWithMeta<AjfChartComponent, "ajf-chart", never, { "data": "data"; "options": "options"; "chartType": "chartType"; }, {}, never, never>;
static ɵcmp: i0.ɵɵComponentDefWithMeta<AjfChartComponent, "ajf-chart", never, { "data": "data"; "options": "options"; "chartType": "chartType"; "instance": "instance"; }, {}, never, never>;
static ɵfac: i0.ɵɵFactoryDef<AjfChartComponent, never>;
}

Expand Down
5 changes: 5 additions & 0 deletions tools/public_api_guard/core/reports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export interface AjfChartWidgetInstance extends AjfDataWidgetInstance {
datasets: ChartDataSets[];
labels: string[];
widget: AjfChartWidget;
canvasDataUrl?(): string;
}

export declare type AjfColumnWidget = AjfWidgetWithContent;
Expand Down Expand Up @@ -363,8 +364,12 @@ export declare function createAggregation(aggregation: AjfAggregationCreate): Aj

export declare function createReportInstance(report: AjfReport, context: AjfContext, ts: TranslateService): AjfReportInstance;

export declare function createReportPdf(report: AjfReportInstance, orientation?: PageOrientation): Promise<TCreatedPdf>;

export declare function createWidget(widget: AjfWidgetCreate): AjfWidget;

export declare function createWidgetInstance(widget: AjfWidget, context: AjfContext, _ts: TranslateService): AjfWidgetInstance;

export declare function openReportPdf(report: AjfReportInstance, orientation?: PageOrientation): void;

export declare function widgetToWidgetInstance(widget: AjfWidget, context: AjfContext, ts: TranslateService): AjfWidgetInstance;

0 comments on commit c2a01b9

Please sign in to comment.