nuxeo-development-framework 5.5.3 → 5.5.5

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 (30) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +259 -58
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.js +3 -2
  4. package/esm2015/lib/components/reports/charts/plugins/data-labels.js +3 -3
  5. package/esm2015/lib/components/reports/charts/utility/css.js +3 -3
  6. package/esm2015/lib/components/reports/ndf-reports/base/base-graph.report.js +6 -3
  7. package/esm2015/lib/components/reports/ndf-reports/base/base-report.js +2 -1
  8. package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +26 -4
  9. package/esm2015/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.js +28 -4
  10. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.js +7 -1
  11. package/esm2015/lib/components/reports/ndf-reports/services/chart-theme.service.js +54 -0
  12. package/esm2015/lib/components/reports/ndf-reports/services/dynamic-timeline-report.service.js +1 -1
  13. package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -1
  14. package/esm2015/lib/components/reports/ndf-reports/services/report-config-mapper.service.js +21 -4
  15. package/esm2015/lib/components/reports/ndf-reports/utilities/dataset-colors.js +51 -0
  16. package/esm2015/lib/components/reports/ndf-reports/utilities/index.js +2 -1
  17. package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
  18. package/fesm2015/nuxeo-development-framework.js +227 -57
  19. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  20. package/lib/components/reports/ndf-reports/base/base-graph.report.d.ts +5 -2
  21. package/lib/components/reports/ndf-reports/base/base-report.d.ts +2 -1
  22. package/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.d.ts +5 -2
  23. package/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.d.ts +5 -1
  24. package/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.d.ts +3 -1
  25. package/lib/components/reports/ndf-reports/services/chart-theme.service.d.ts +14 -0
  26. package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
  27. package/lib/components/reports/ndf-reports/services/report-config-mapper.service.d.ts +1 -0
  28. package/lib/components/reports/ndf-reports/utilities/dataset-colors.d.ts +1 -0
  29. package/lib/components/reports/ndf-reports/utilities/index.d.ts +1 -0
  30. package/package.json +1 -1
@@ -1,10 +1,13 @@
1
+ import { ComponentType } from '@angular/cdk/portal';
1
2
  import { DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition } from '../models';
2
- import { BaseReport } from './base-report';
3
+ import { ChartThemeService } from '../services';
3
4
  import { ReportsDialogService } from '../services/reports-dialog.service';
4
- import { ComponentType } from '@angular/cdk/portal';
5
+ import { BaseReport } from './base-report';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare abstract class BaseGraphReport<TDefinition extends GraphChartDefinition | DynamicLineChartDefinition, TConfig extends GraphChart | DynamicLineChart> extends BaseReport<TDefinition, TConfig> {
7
8
  protected _dialog: ReportsDialogService<any>;
9
+ protected _chartThemeService: ChartThemeService;
10
+ protected _initialTheme: "dark" | "light";
8
11
  openGraphDialog(component?: ComponentType<any>): void;
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseGraphReport<any, any>, never>;
10
13
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseGraphReport<any, any>, never, never, {}, {}, never>;
@@ -12,6 +12,7 @@ export declare abstract class BaseReport<TDefinition extends ReportDefinitionMod
12
12
  private readonly _configMapperService;
13
13
  protected _configSub: BehaviorSubject<TConfig>;
14
14
  config$: import("rxjs").Observable<TConfig>;
15
+ protected _definition: TDefinition;
15
16
  set definition(obj: TDefinition);
16
17
  get config(): TConfig;
17
18
  direction: Direction;
@@ -55,7 +56,7 @@ export declare abstract class BaseReport<TDefinition extends ReportDefinitionMod
55
56
  }>;
56
57
  constructor(injector: Injector);
57
58
  navigate(): void;
58
- private _prepareConfig;
59
+ protected _prepareConfig(obj: TDefinition): TConfig;
59
60
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseReport<any, any>, never>;
60
61
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseReport<any, any>, never, never, { "definition": "definition"; "direction": "direction"; "data": "data"; "criteria": "criteria"; }, { "onNavigate": "onNavigate"; "onOpen": "onOpen"; }, never>;
61
62
  }
@@ -1,9 +1,9 @@
1
- import { Injector } from '@angular/core';
1
+ import { AfterViewInit, Injector, OnDestroy } from '@angular/core';
2
2
  import { GraphChartComponent } from '../../charts-components';
3
3
  import { BaseGraphReport } from '../../base/base-graph.report';
4
4
  import { DynamicLineChart, DynamicLineChartDefinition, TimeGroups } from '../../models';
5
5
  import * as i0 from "@angular/core";
6
- export declare class DynamicTimelineReportComponent extends BaseGraphReport<DynamicLineChartDefinition, DynamicLineChart> {
6
+ export declare class DynamicTimelineReportComponent extends BaseGraphReport<DynamicLineChartDefinition, DynamicLineChart> implements AfterViewInit, OnDestroy {
7
7
  injector: Injector;
8
8
  private readonly _timelineService;
9
9
  graphChartComponent: GraphChartComponent;
@@ -12,11 +12,14 @@ export declare class DynamicTimelineReportComponent extends BaseGraphReport<Dyna
12
12
  filterCriteria$: import("rxjs").Observable<any>;
13
13
  report$: import("rxjs").Observable<any>;
14
14
  constructor(injector: Injector);
15
+ ngAfterViewInit(): void;
16
+ ngOnDestroy(): void;
15
17
  _subscribeToLanguage(): void;
16
18
  printChart(): void;
17
19
  changeGroup(group: TimeGroups): void;
18
20
  openTimelineDialog(): void;
19
21
  openDetails(): void;
22
+ private _setupThemeWatcher;
20
23
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTimelineReportComponent, never>;
21
24
  static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTimelineReportComponent, "app-dynamic-timeline-report", never, {}, {}, never, never>;
22
25
  }
@@ -1,12 +1,16 @@
1
+ import { AfterViewInit, OnDestroy } from '@angular/core';
1
2
  import { GraphChartComponent } from '../../charts-components';
2
3
  import { BaseGraphReport } from '../../base/base-graph.report';
3
4
  import { ChartTypes, GraphChart, GraphChartDefinition } from '../../models';
4
5
  import * as i0 from "@angular/core";
5
- export declare class GraphReportComponent extends BaseGraphReport<GraphChartDefinition, GraphChart> {
6
+ export declare class GraphReportComponent extends BaseGraphReport<GraphChartDefinition, GraphChart> implements AfterViewInit, OnDestroy {
6
7
  graphChartComponent: GraphChartComponent;
7
8
  chartType$: import("rxjs").Observable<"line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar" | "verticalBar" | "horizontalBar">;
9
+ ngAfterViewInit(): void;
10
+ ngOnDestroy(): void;
8
11
  changeChartType(type: ChartTypes): void;
9
12
  printChart(): void;
13
+ private _setupThemeWatcher;
10
14
  static ɵfac: i0.ɵɵFactoryDeclaration<GraphReportComponent, never>;
11
15
  static ɵcmp: i0.ɵɵComponentDeclaration<GraphReportComponent, "app-graph-report", never, {}, {}, never, never>;
12
16
  }
@@ -10,7 +10,9 @@ export declare class NdfReportComponent extends DestroySubject {
10
10
  readonly dynamicLine: "dynamicLine";
11
11
  readonly custom: "custom";
12
12
  };
13
- config: ReportDefinitionModel;
13
+ _config: ReportDefinitionModel;
14
+ set config(value: ReportDefinitionModel);
15
+ get config(): ReportDefinitionModel;
14
16
  direction: Direction;
15
17
  data: ReportResponseModel;
16
18
  criteria: CriteriaModel;
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ChartThemeService {
3
+ private currentTheme;
4
+ theme$: import("rxjs").Observable<"dark" | "light">;
5
+ private observer?;
6
+ constructor();
7
+ getCurrentTheme(): 'light' | 'dark';
8
+ destroy(): void;
9
+ private _initializeThemeDetection;
10
+ private _getThemeFromBody;
11
+ private _setupThemeWatcher;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartThemeService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChartThemeService>;
14
+ }
@@ -11,3 +11,4 @@ export * from './report-config-mapper.service';
11
11
  export * from './reports-data-transformers.service';
12
12
  export * from './custom-reports-registry.service';
13
13
  export * from './report-configuration.service';
14
+ export * from './chart-theme.service';
@@ -34,6 +34,7 @@ export declare class ReportConfigMapperService {
34
34
  */
35
35
  private _preparePlugins;
36
36
  private _getChartOptions;
37
+ private _prepareColors;
37
38
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportConfigMapperService, never>;
38
39
  static ɵprov: i0.ɵɵInjectableDeclaration<ReportConfigMapperService>;
39
40
  }
@@ -0,0 +1 @@
1
+ export declare function replaceDatasetColors(datasets: any[]): any[];
@@ -1 +1,2 @@
1
1
  export * from './reports-table.mapper';
2
+ export * from './dataset-colors';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.5.3",
3
+ "version": "5.5.5",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",