nuxeo-development-framework 5.5.4 → 5.5.6

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 (22) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +74 -60
  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/chart.token.js +1 -1
  5. package/esm2015/lib/components/reports/charts/components/chart.component.js +1 -1
  6. package/esm2015/lib/components/reports/charts/utility/colors.js +7 -1
  7. package/esm2015/lib/components/reports/charts/utility/css.js +32 -1
  8. package/esm2015/lib/components/reports/ndf-reports/base/base-graph.report.js +30 -1
  9. package/esm2015/lib/components/reports/ndf-reports/charts-components/graph-chart/graph-chart.component.js +1 -1
  10. package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +1 -23
  11. package/esm2015/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.js +2 -24
  12. package/esm2015/lib/components/reports/ndf-reports/services/report-config-mapper.service.js +3 -9
  13. package/esm2015/lib/components/reports/ndf-reports/utilities/dataset-colors.js +3 -5
  14. package/fesm2015/nuxeo-development-framework.js +71 -56
  15. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  16. package/lib/components/reports/charts/chart.token.d.ts +3 -0
  17. package/lib/components/reports/charts/utility/colors.d.ts +1 -0
  18. package/lib/components/reports/charts/utility/css.d.ts +4 -0
  19. package/lib/components/reports/ndf-reports/base/base-graph.report.d.ts +5 -1
  20. package/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.d.ts +2 -5
  21. package/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.d.ts +1 -5
  22. package/package.json +1 -1
@@ -4,5 +4,8 @@ export declare type ChartDefaultsOptions = {
4
4
  globalPlugins?: Plugin[];
5
5
  fontFamily?: string;
6
6
  fontSize?: number;
7
+ color?: string;
8
+ borderColor?: string;
9
+ backgroundColor?: string;
7
10
  };
8
11
  export declare const CHART_DEFAULTS_OPTIONS: InjectionToken<ChartDefaultsOptions>;
@@ -14,3 +14,4 @@ export declare function createConicGradient(chart: Chart, colors: {
14
14
  startColor: string;
15
15
  endColor: string;
16
16
  }): any;
17
+ export declare function isColor(str: string): boolean;
@@ -43,3 +43,7 @@ export declare const getColors: (length?: number, staticColors?: string[]) => st
43
43
  * @returns {string} - The text color, either the dark color (`--chart-value-dark-color`) or the light color (`--chart-value-light-color`).
44
44
  */
45
45
  export declare function getTextColor(backgroundColor: string): string;
46
+ export declare function getCssColors(colors: string[]): string[];
47
+ export declare function isCssVar(value: string): boolean;
48
+ export declare function extractCssVar(data: string): string;
49
+ export declare function resolveColor(value: string | undefined, cssVar: string, fallback: string): string;
@@ -1,14 +1,18 @@
1
1
  import { ComponentType } from '@angular/cdk/portal';
2
+ import { AfterViewInit, OnDestroy } from '@angular/core';
2
3
  import { DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition } from '../models';
3
4
  import { ChartThemeService } from '../services';
4
5
  import { ReportsDialogService } from '../services/reports-dialog.service';
5
6
  import { BaseReport } from './base-report';
6
7
  import * as i0 from "@angular/core";
7
- export declare abstract class BaseGraphReport<TDefinition extends GraphChartDefinition | DynamicLineChartDefinition, TConfig extends GraphChart | DynamicLineChart> extends BaseReport<TDefinition, TConfig> {
8
+ export declare abstract class BaseGraphReport<TDefinition extends GraphChartDefinition | DynamicLineChartDefinition, TConfig extends GraphChart | DynamicLineChart> extends BaseReport<TDefinition, TConfig> implements AfterViewInit, OnDestroy {
8
9
  protected _dialog: ReportsDialogService<any>;
9
10
  protected _chartThemeService: ChartThemeService;
10
11
  protected _initialTheme: "dark" | "light";
11
12
  openGraphDialog(component?: ComponentType<any>): void;
13
+ ngAfterViewInit(): void;
14
+ ngOnDestroy(): void;
15
+ protected _setupThemeWatcher(): void;
12
16
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseGraphReport<any, any>, never>;
13
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseGraphReport<any, any>, never, never, {}, {}, never>;
14
18
  }
@@ -1,9 +1,9 @@
1
- import { AfterViewInit, Injector, OnDestroy } from '@angular/core';
1
+ import { Injector } 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> implements AfterViewInit, OnDestroy {
6
+ export declare class DynamicTimelineReportComponent extends BaseGraphReport<DynamicLineChartDefinition, DynamicLineChart> {
7
7
  injector: Injector;
8
8
  private readonly _timelineService;
9
9
  graphChartComponent: GraphChartComponent;
@@ -12,14 +12,11 @@ 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;
17
15
  _subscribeToLanguage(): void;
18
16
  printChart(): void;
19
17
  changeGroup(group: TimeGroups): void;
20
18
  openTimelineDialog(): void;
21
19
  openDetails(): void;
22
- private _setupThemeWatcher;
23
20
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTimelineReportComponent, never>;
24
21
  static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTimelineReportComponent, "app-dynamic-timeline-report", never, {}, {}, never, never>;
25
22
  }
@@ -1,16 +1,12 @@
1
- import { AfterViewInit, OnDestroy } from '@angular/core';
2
1
  import { GraphChartComponent } from '../../charts-components';
3
2
  import { BaseGraphReport } from '../../base/base-graph.report';
4
3
  import { ChartTypes, GraphChart, GraphChartDefinition } from '../../models';
5
4
  import * as i0 from "@angular/core";
6
- export declare class GraphReportComponent extends BaseGraphReport<GraphChartDefinition, GraphChart> implements AfterViewInit, OnDestroy {
5
+ export declare class GraphReportComponent extends BaseGraphReport<GraphChartDefinition, GraphChart> {
7
6
  graphChartComponent: GraphChartComponent;
8
7
  chartType$: import("rxjs").Observable<"line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar" | "verticalBar" | "horizontalBar">;
9
- ngAfterViewInit(): void;
10
- ngOnDestroy(): void;
11
8
  changeChartType(type: ChartTypes): void;
12
9
  printChart(): void;
13
- private _setupThemeWatcher;
14
10
  static ɵfac: i0.ɵɵFactoryDeclaration<GraphReportComponent, never>;
15
11
  static ɵcmp: i0.ɵɵComponentDeclaration<GraphReportComponent, "app-graph-report", never, {}, {}, never, never>;
16
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.5.4",
3
+ "version": "5.5.6",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",