nuxeo-development-framework 5.4.9 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +491 -288
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/reports/charts/plugins/data-labels.js +166 -102
  4. package/esm2015/lib/components/reports/charts/utility/colors.js +13 -1
  5. package/esm2015/lib/components/reports/ndf-reports/base/base-chart.js +2 -2
  6. package/esm2015/lib/components/reports/ndf-reports/base/base-custom-report.js +16 -3
  7. package/esm2015/lib/components/reports/ndf-reports/base/base-graph.report.js +10 -22
  8. package/esm2015/lib/components/reports/ndf-reports/base/base-report.js +5 -2
  9. package/esm2015/lib/components/reports/ndf-reports/charts-components/custom-chart/custom-chart.component.js +68 -0
  10. package/esm2015/lib/components/reports/ndf-reports/charts-components/index.js +2 -1
  11. package/esm2015/lib/components/reports/ndf-reports/components/_parts/custom-chart-dialog/custom-chart-dialog.component.js +41 -0
  12. package/esm2015/lib/components/reports/ndf-reports/components/_parts/index.js +2 -1
  13. package/esm2015/lib/components/reports/ndf-reports/components/custom-report/custom-report.component.js +23 -37
  14. package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +2 -6
  15. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.js +4 -3
  16. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +2 -2
  17. package/esm2015/lib/components/reports/ndf-reports/models/custom-definition.js +1 -1
  18. package/esm2015/lib/components/reports/ndf-reports/models/dialog-data.js +1 -1
  19. package/esm2015/lib/components/reports/ndf-reports/models/report-config.js +1 -1
  20. package/esm2015/lib/components/reports/ndf-reports/ndf-reports.module.js +5 -3
  21. package/esm2015/lib/components/reports/ndf-reports/public-api.js +2 -1
  22. package/esm2015/lib/components/reports/ndf-reports/services/chart-manager.service.js +15 -9
  23. package/esm2015/lib/components/reports/ndf-reports/services/custom-reports-registry.service.js +1 -1
  24. package/esm2015/lib/components/reports/ndf-reports/services/report-config-mapper.service.js +1 -1
  25. package/esm2015/lib/components/reports/ndf-reports/services/report-transform.service.js +2 -2
  26. package/esm2015/lib/components/reports/ndf-reports/services/reports-dialog.service.js +32 -0
  27. package/fesm2015/nuxeo-development-framework.js +452 -267
  28. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  29. package/lib/components/reports/charts/utility/colors.d.ts +5 -0
  30. package/lib/components/reports/ndf-reports/base/base-chart.d.ts +1 -1
  31. package/lib/components/reports/ndf-reports/base/base-custom-report.d.ts +18 -13
  32. package/lib/components/reports/ndf-reports/base/base-graph.report.d.ts +5 -13
  33. package/lib/components/reports/ndf-reports/base/base-report.d.ts +4 -1
  34. package/lib/components/reports/ndf-reports/charts-components/custom-chart/custom-chart.component.d.ts +15 -0
  35. package/lib/components/reports/ndf-reports/charts-components/index.d.ts +1 -0
  36. package/lib/components/reports/ndf-reports/components/_parts/custom-chart-dialog/custom-chart-dialog.component.d.ts +14 -0
  37. package/lib/components/reports/ndf-reports/components/_parts/index.d.ts +1 -0
  38. package/lib/components/reports/ndf-reports/components/custom-report/custom-report.component.d.ts +8 -10
  39. package/lib/components/reports/ndf-reports/models/custom-definition.d.ts +3 -3
  40. package/lib/components/reports/ndf-reports/models/dialog-data.d.ts +8 -0
  41. package/lib/components/reports/ndf-reports/models/report-config.d.ts +2 -2
  42. package/lib/components/reports/ndf-reports/ndf-reports.module.d.ts +22 -20
  43. package/lib/components/reports/ndf-reports/public-api.d.ts +1 -0
  44. package/lib/components/reports/ndf-reports/services/chart-manager.service.d.ts +2 -2
  45. package/lib/components/reports/ndf-reports/services/custom-reports-registry.service.d.ts +3 -2
  46. package/lib/components/reports/ndf-reports/services/report-config-mapper.service.d.ts +2 -2
  47. package/lib/components/reports/ndf-reports/services/reports-dialog.service.d.ts +21 -0
  48. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ import { Chart } from 'chart.js';
1
2
  export declare function transparentize(value: string, opacity: number): string;
2
3
  export declare function colorToHex(color: any): any;
3
4
  export declare function hexToRgb(hex: string): {
@@ -9,3 +10,7 @@ export declare function rgbToHex(r: number, g: number, b: number): string;
9
10
  export declare function createTint(color: string, amount: number): string;
10
11
  export declare function createShade(color: string, amount: number): string;
11
12
  export declare function createColorVariants(color: string, length: number, type?: 'tint' | 'shade', amount?: number): string[];
13
+ export declare function createConicGradient(chart: Chart, colors: {
14
+ startColor: string;
15
+ endColor: string;
16
+ }): any;
@@ -10,9 +10,9 @@ export declare abstract class BaseChart<T> extends DestroySubject {
10
10
  abstract report$: Observable<any>;
11
11
  protected _translateService: TranslateService;
12
12
  protected readonly _rebuildTriggerSub: BehaviorSubject<boolean>;
13
- protected _dataSub: ReplaySubject<ReportResponseModel>;
14
13
  protected _configSub: ReplaySubject<T>;
15
14
  protected _isInitialized: boolean;
15
+ protected _dataSub: ReplaySubject<ReportResponseModel>;
16
16
  private _data;
17
17
  set data(data: ReportResponseModel);
18
18
  get data(): ReportResponseModel;
@@ -1,16 +1,23 @@
1
1
  import { Injector } from '@angular/core';
2
2
  import { Direction } from '@angular/cdk/bidi';
3
- import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
3
+ import { BehaviorSubject, ReplaySubject } from 'rxjs';
4
4
  import { DestroySubject } from '../../../../shared/components';
5
- import { CriteriaModel, CustomChartConfig, ReportResponseModel } from '../models';
6
5
  import Chart from 'chart.js/auto';
6
+ import { CriteriaModel, CustomChart, CustomChartDefinition, ReportResponseModel } from '../models';
7
7
  import { ChartManagerService } from '../services';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare abstract class BaseCustomReport extends DestroySubject {
10
10
  readonly injector: Injector;
11
+ protected chart: Chart;
12
+ protected _printListener: EventListener;
13
+ abstract print(): void;
11
14
  protected _chartHelperService: ChartManagerService;
12
15
  direction: Direction;
13
- data: ReportResponseModel;
16
+ definition: CustomChartDefinition;
17
+ protected _dataSub: ReplaySubject<ReportResponseModel>;
18
+ private _data;
19
+ set data(data: ReportResponseModel);
20
+ get data(): ReportResponseModel;
14
21
  protected _criteriaSub: ReplaySubject<{
15
22
  params?: Record<string, any>;
16
23
  payload?: {
@@ -21,7 +28,7 @@ export declare abstract class BaseCustomReport extends DestroySubject {
21
28
  }[];
22
29
  } & Record<string, any>;
23
30
  }>;
24
- criteria$: Observable<{
31
+ criteria$: import("rxjs").Observable<{
25
32
  params?: Record<string, any>;
26
33
  payload?: {
27
34
  predicateList: import("nuxeo-development-framework").OperatorValueObject[];
@@ -33,15 +40,13 @@ export declare abstract class BaseCustomReport extends DestroySubject {
33
40
  }>;
34
41
  private _criteria;
35
42
  set criteria(value: CriteriaModel);
36
- protected _configSub: BehaviorSubject<import("../models").CustomChartDefinition>;
37
- config$: Observable<import("../models").CustomChartDefinition>;
38
- set config(obj: CustomChartConfig);
39
- get config(): CustomChartConfig;
40
- protected constructor(injector: Injector);
41
- chart: Chart;
42
- protected _printListener: EventListener;
43
- abstract print(): void;
43
+ get criteria(): CriteriaModel;
44
+ protected _configSub: BehaviorSubject<CustomChartDefinition>;
45
+ config$: import("rxjs").Observable<CustomChartDefinition>;
46
+ set config(obj: CustomChart);
47
+ get config(): CustomChart;
48
+ constructor(injector: Injector);
44
49
  chartReady(chart: Chart): void;
45
50
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseCustomReport, never>;
46
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseCustomReport, never, never, { "direction": "direction"; "data": "data"; "criteria": "criteria"; "config": "config"; }, {}, never>;
51
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseCustomReport, never, never, { "direction": "direction"; "definition": "definition"; "data": "data"; "criteria": "criteria"; "config": "config"; }, {}, never>;
47
52
  }
@@ -1,19 +1,11 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { CriteriaModel, DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition, ReportResponseModel } from '../models';
1
+ import { DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition } from '../models';
3
2
  import { BaseReport } from './base-report';
4
- import { TranslateService } from '@ngx-translate/core';
5
- import { MatDialog } from '@angular/material/dialog';
3
+ import { ReportsDialogService } from '../services/reports-dialog.service';
4
+ import { ComponentType } from '@angular/cdk/portal';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare abstract class BaseGraphReport<TDefinition extends GraphChartDefinition | DynamicLineChartDefinition, TConfig extends GraphChart | DynamicLineChart> extends BaseReport<TDefinition, TConfig> {
8
- protected _translateService: TranslateService;
9
- protected _cdr: ChangeDetectorRef;
10
- protected _dialog: MatDialog;
11
- openGraphDialog(_options?: {
12
- config?: GraphChart | DynamicLineChart;
13
- data?: ReportResponseModel;
14
- component?: any;
15
- criteria?: CriteriaModel;
16
- }): void;
7
+ protected _dialog: ReportsDialogService<any>;
8
+ openGraphDialog(component?: ComponentType<any>): void;
17
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseGraphReport<any, any>, never>;
18
10
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseGraphReport<any, any>, never, never, {}, {}, never>;
19
11
  }
@@ -1,11 +1,14 @@
1
- import { EventEmitter, Injector } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, Injector } from '@angular/core';
2
2
  import { CriteriaModel, ReportConfigModel, ReportDefinitionModel, ReportResponseModel } from '../models';
3
3
  import { Direction } from '@angular/cdk/bidi';
4
4
  import { DestroySubject } from '../../../../shared/components';
5
5
  import { BehaviorSubject, ReplaySubject } from 'rxjs';
6
+ import { TranslateService } from '@ngx-translate/core';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare abstract class BaseReport<TDefinition extends ReportDefinitionModel, TConfig extends ReportConfigModel> extends DestroySubject {
8
9
  injector: Injector;
10
+ protected readonly _translateService: TranslateService;
11
+ protected readonly _cdr: ChangeDetectorRef;
9
12
  private readonly _configMapperService;
10
13
  protected _configSub: BehaviorSubject<TConfig>;
11
14
  config$: import("rxjs").Observable<TConfig>;
@@ -0,0 +1,15 @@
1
+ import { ComponentRef, OnChanges, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
2
+ import { BaseCustomReport } from '../../base';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CustomChartComponent extends BaseCustomReport implements OnInit, OnChanges {
5
+ private readonly _registeredComponents;
6
+ container: ViewContainerRef;
7
+ protected _componentRef: ComponentRef<any>;
8
+ ngOnInit(): void;
9
+ ngOnChanges(changes: SimpleChanges): void;
10
+ ngOnDestroy(): void;
11
+ private _prepareComponent;
12
+ print(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomChartComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomChartComponent, "app-custom-chart", never, {}, {}, never, never>;
15
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './digit-chart/digit-chart.component';
2
2
  export * from './graph-chart/graph-chart.component';
3
+ export * from './custom-chart/custom-chart.component';
@@ -0,0 +1,14 @@
1
+ import { CustomChartComponent } from '../../../charts-components/custom-chart/custom-chart.component';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { CustomDialogData } from '../../../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CustomChartDialogComponent {
6
+ dialogRef: MatDialogRef<CustomChartDialogComponent, any>;
7
+ chart: CustomDialogData;
8
+ customChartComponent: CustomChartComponent;
9
+ constructor(dialogRef: MatDialogRef<CustomChartDialogComponent, any>, chart: CustomDialogData);
10
+ close(): void;
11
+ printChart(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomChartDialogComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomChartDialogComponent, "app-custom-chart-dialog", never, {}, {}, never, never>;
14
+ }
@@ -3,3 +3,4 @@ export * from './time-group-selector/time-group-selector.component';
3
3
  export * from './graph-dialog/graph-dialog.component';
4
4
  export * from './timeline-dialog/timeline-dialog.component';
5
5
  export * from './report-actions/report-actions.component';
6
+ export * from './custom-chart-dialog/custom-chart-dialog.component';
@@ -1,15 +1,13 @@
1
- import { ComponentRef, OnChanges, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
2
1
  import { BaseReport } from '../../base';
3
- import { CustomChartDefinition } from '../../models';
2
+ import { CustomChart, CustomChartDefinition } from '../../models';
3
+ import { CustomChartComponent } from '../../charts-components';
4
+ import { ReportsDialogService } from '../../services/reports-dialog.service';
4
5
  import * as i0 from "@angular/core";
5
- export declare class CustomReportComponent extends BaseReport<CustomChartDefinition, any> implements OnInit, OnChanges {
6
- private readonly _registeredComponents;
7
- container: ViewContainerRef;
8
- protected _componentRef: ComponentRef<any>;
9
- ngOnInit(): void;
10
- ngOnChanges(changes: SimpleChanges): void;
11
- ngOnDestroy(): void;
12
- private _prepareComponent;
6
+ export declare class CustomReportComponent extends BaseReport<CustomChartDefinition, CustomChart> {
7
+ protected _dialog: ReportsDialogService<any>;
8
+ customChartComponent: CustomChartComponent;
9
+ printChart(): void;
10
+ openDialog(): void;
13
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomReportComponent, never>;
14
12
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomReportComponent, "app-custom-report", never, {}, {}, never, never>;
15
13
  }
@@ -3,10 +3,10 @@ import { GraphDialogConfig } from './graph-definition';
3
3
  import { ReportDataSource } from './report-data-source';
4
4
  export interface CustomChartDefinition extends BaseReportConfig, GraphDialogConfig {
5
5
  mode: 'custom';
6
- type?: string;
6
+ type: string;
7
7
  prefix?: string;
8
8
  print?: boolean;
9
- datasource: ReportDataSource[];
9
+ datasource?: ReportDataSource[];
10
10
  options?: Record<string, any>;
11
11
  }
12
- export declare type CustomChartConfig = CustomChartDefinition;
12
+ export declare type CustomChart = CustomChartDefinition;
@@ -3,6 +3,7 @@ import { Direction } from '@angular/cdk/bidi';
3
3
  import { CriteriaModel } from './common';
4
4
  import { GraphChart } from './graph-definition';
5
5
  import { DynamicLineChart } from './dynamic-line';
6
+ import { CustomChart } from './custom-definition';
6
7
  export declare type GraphDialogData = {
7
8
  config: GraphChart | DynamicLineChart;
8
9
  data?: ReportResponseModel;
@@ -10,3 +11,10 @@ export declare type GraphDialogData = {
10
11
  direction: Direction;
11
12
  criteria?: CriteriaModel;
12
13
  };
14
+ export declare type CustomDialogData = {
15
+ config: CustomChart;
16
+ data?: ReportResponseModel;
17
+ title?: string;
18
+ direction: Direction;
19
+ criteria?: CriteriaModel;
20
+ };
@@ -1,6 +1,6 @@
1
1
  import { DigitChart, DigitChartDefinition } from './digit';
2
2
  import { GraphChart, GraphChartDefinition } from './graph-definition';
3
3
  import { DynamicLineChart, DynamicLineChartDefinition } from './dynamic-line';
4
- import { CustomChartDefinition } from './custom-definition';
5
- export declare type ReportConfigModel = DigitChart | GraphChart | DynamicLineChart;
4
+ import { CustomChart, CustomChartDefinition } from './custom-definition';
5
+ export declare type ReportConfigModel = DigitChart | GraphChart | DynamicLineChart | CustomChart;
6
6
  export declare type ReportDefinitionModel = DigitChartDefinition | GraphChartDefinition | DynamicLineChartDefinition | CustomChartDefinition;
@@ -13,27 +13,29 @@ import * as i11 from "./charts-components/graph-chart/graph-chart.component";
13
13
  import * as i12 from "./charts-components/digit-chart/digit-chart.component";
14
14
  import * as i13 from "./components/_parts/report-actions/report-actions.component";
15
15
  import * as i14 from "./components/custom-report/custom-report.component";
16
- import * as i15 from "@angular/common";
17
- import * as i16 from "@ngx-translate/core";
18
- import * as i17 from "@angular/material/menu";
19
- import * as i18 from "@angular/material/icon";
20
- import * as i19 from "@angular/material/button";
21
- import * as i20 from "../charts/charts.module";
22
- import * as i21 from "../../dynamic-form/dynamic-form.module";
23
- import * as i22 from "@angular/forms";
24
- import * as i23 from "@ng-select/ng-select";
25
- import * as i24 from "@angular/material/tooltip";
26
- import * as i25 from "../../../shared/directives/fluid-height.directive";
27
- import * as i26 from "../../ndf-filters/ndf-filters-panel.module";
28
- import * as i27 from "@angular/material/progress-spinner";
29
- import * as i28 from "../../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
30
- import * as i29 from "../../tables/ndf-table/ndf-table.module";
31
- import * as i30 from "../../../directive/directive.module";
32
- import * as i31 from "../../ndf-config-editor/public/editor-navigate-button";
33
- import * as i32 from "../chart-panel";
34
- import * as i33 from "../../skeleton/skeleton.module";
16
+ import * as i15 from "./charts-components/custom-chart/custom-chart.component";
17
+ import * as i16 from "./components/_parts/custom-chart-dialog/custom-chart-dialog.component";
18
+ import * as i17 from "@angular/common";
19
+ import * as i18 from "@ngx-translate/core";
20
+ import * as i19 from "@angular/material/menu";
21
+ import * as i20 from "@angular/material/icon";
22
+ import * as i21 from "@angular/material/button";
23
+ import * as i22 from "../charts/charts.module";
24
+ import * as i23 from "../../dynamic-form/dynamic-form.module";
25
+ import * as i24 from "@angular/forms";
26
+ import * as i25 from "@ng-select/ng-select";
27
+ import * as i26 from "@angular/material/tooltip";
28
+ import * as i27 from "../../../shared/directives/fluid-height.directive";
29
+ import * as i28 from "../../ndf-filters/ndf-filters-panel.module";
30
+ import * as i29 from "@angular/material/progress-spinner";
31
+ import * as i30 from "../../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
32
+ import * as i31 from "../../tables/ndf-table/ndf-table.module";
33
+ import * as i32 from "../../../directive/directive.module";
34
+ import * as i33 from "../../ndf-config-editor/public/editor-navigate-button";
35
+ import * as i34 from "../chart-panel";
36
+ import * as i35 from "../../skeleton/skeleton.module";
35
37
  export declare class NdfReportsModule {
36
38
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsModule, never>;
37
- static ɵmod: i0.ɵɵNgModuleDeclaration<NdfReportsModule, [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent, typeof i3.ChartTypeSelectorComponent, typeof i4.DigitReportComponent, typeof i5.GraphReportComponent, typeof i6.DynamicTimelineReportComponent, typeof i7.TimeGroupSelectorComponent, typeof i8.GraphDialogComponent, typeof i9.TimelineDialogComponent, typeof i10.ScrollableDivDirective, typeof i11.GraphChartComponent, typeof i12.DigitChartComponent, typeof i13.ReportActionsComponent, typeof i14.CustomReportComponent], [typeof i15.CommonModule, typeof i16.TranslateModule, typeof i17.MatMenuModule, typeof i18.MatIconModule, typeof i19.MatButtonModule, typeof i20.ChartsModule, typeof i21.DynamicFormModule, typeof i22.ReactiveFormsModule, typeof i22.FormsModule, typeof i23.NgSelectModule, typeof i24.MatTooltipModule, typeof i25.FluidHeightModule, typeof i26.NdfFiltersPanelModule, typeof i27.MatProgressSpinnerModule, typeof i28.NuxeoDialogModule, typeof i29.NdfTableModule, typeof i30.DirectiveModule, typeof i31.EditorNavigateButton, typeof i32.ChartPanelModule, typeof i33.SkeletonModule], [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent]>;
39
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NdfReportsModule, [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent, typeof i3.ChartTypeSelectorComponent, typeof i4.DigitReportComponent, typeof i5.GraphReportComponent, typeof i6.DynamicTimelineReportComponent, typeof i7.TimeGroupSelectorComponent, typeof i8.GraphDialogComponent, typeof i9.TimelineDialogComponent, typeof i10.ScrollableDivDirective, typeof i11.GraphChartComponent, typeof i12.DigitChartComponent, typeof i13.ReportActionsComponent, typeof i14.CustomReportComponent, typeof i15.CustomChartComponent, typeof i16.CustomChartDialogComponent], [typeof i17.CommonModule, typeof i18.TranslateModule, typeof i19.MatMenuModule, typeof i20.MatIconModule, typeof i21.MatButtonModule, typeof i22.ChartsModule, typeof i23.DynamicFormModule, typeof i24.ReactiveFormsModule, typeof i24.FormsModule, typeof i25.NgSelectModule, typeof i26.MatTooltipModule, typeof i27.FluidHeightModule, typeof i28.NdfFiltersPanelModule, typeof i29.MatProgressSpinnerModule, typeof i30.NuxeoDialogModule, typeof i31.NdfTableModule, typeof i32.DirectiveModule, typeof i33.EditorNavigateButton, typeof i34.ChartPanelModule, typeof i35.SkeletonModule], [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent]>;
38
40
  static ɵinj: i0.ɵɵInjectorDeclaration<NdfReportsModule>;
39
41
  }
@@ -3,3 +3,4 @@ export * from './models';
3
3
  export * from './services';
4
4
  export * from './containers';
5
5
  export * from './options';
6
+ export * from './base/base-custom-report';
@@ -1,5 +1,5 @@
1
1
  import { TranslateService } from '@ngx-translate/core';
2
- import { Chart } from 'chart.js/auto';
2
+ import { Chart, Plugin } from 'chart.js/auto';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ChartManagerService {
5
5
  private _translateService;
@@ -11,7 +11,7 @@ export declare class ChartManagerService {
11
11
  resizeCharts(): void;
12
12
  destroy(id: string | number): void;
13
13
  destroyAll(): void;
14
- printChart(id: string | number, label: string): Promise<void>;
14
+ printChart(id: string | number, label: string, options?: Record<string, any>, plugins?: Plugin<any>[]): Promise<void>;
15
15
  private _createHiddenCanvasForExport;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartManagerService, never>;
17
17
  static ɵprov: i0.ɵɵInjectableDeclaration<ChartManagerService>;
@@ -1,8 +1,9 @@
1
- import { ComponentFactoryResolver, Type, ViewContainerRef, ComponentRef } from '@angular/core';
1
+ import { ComponentFactoryResolver, ViewContainerRef, ComponentRef } from '@angular/core';
2
+ import { ComponentType } from '@angular/cdk/portal';
2
3
  import * as i0 from "@angular/core";
3
4
  export interface CustomReportRegistryDefinition {
4
5
  type: string;
5
- component: Type<any>;
6
+ component: ComponentType<any>;
6
7
  category?: string;
7
8
  name?: string;
8
9
  description?: string;
@@ -1,4 +1,4 @@
1
- import { CustomChartConfig, CustomChartDefinition, DigitChart, DigitChartDefinition, DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition } from '../models';
1
+ import { CustomChart, CustomChartDefinition, DigitChart, DigitChartDefinition, DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition } from '../models';
2
2
  import { ChartPluginsRegistry } from './chart-plugins-registry.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ReportConfigMapperService {
@@ -20,7 +20,7 @@ export declare class ReportConfigMapperService {
20
20
  * Prepares a custom chart configuration
21
21
  * @param config
22
22
  */
23
- prepareCustomConfig(config: CustomChartDefinition): CustomChartConfig;
23
+ prepareCustomConfig(config: CustomChartDefinition): CustomChart;
24
24
  /**
25
25
  * Prepares a digit chart configuration
26
26
  * @param config The digit chart definition
@@ -0,0 +1,21 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { Injector } from '@angular/core';
3
+ import { MatDialog } from '@angular/material/dialog';
4
+ import { CriteriaModel, CustomChart, DynamicLineChart, GraphChart, ReportResponseModel } from '../models';
5
+ import { Direction } from '@angular/cdk/bidi';
6
+ import { ComponentType } from '@angular/cdk/portal';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ReportsDialogService<T extends GraphChart | DynamicLineChart | CustomChart> {
9
+ private injector;
10
+ protected _translateService: TranslateService;
11
+ protected _dialog: MatDialog;
12
+ constructor(injector: Injector);
13
+ open(component: ComponentType<any>, options: {
14
+ config: T;
15
+ data: ReportResponseModel;
16
+ criteria?: CriteriaModel;
17
+ direction: Direction;
18
+ }): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReportsDialogService<any>, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReportsDialogService<any>>;
21
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.4.9",
3
+ "version": "5.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",
@@ -83,4 +83,4 @@
83
83
  "fesm2015": "fesm2015/nuxeo-development-framework.js",
84
84
  "typings": "nuxeo-development-framework.d.ts",
85
85
  "sideEffects": false
86
- }
86
+ }