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.
- package/bundles/nuxeo-development-framework.umd.js +74 -60
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.js +3 -2
- package/esm2015/lib/components/reports/charts/chart.token.js +1 -1
- package/esm2015/lib/components/reports/charts/components/chart.component.js +1 -1
- package/esm2015/lib/components/reports/charts/utility/colors.js +7 -1
- package/esm2015/lib/components/reports/charts/utility/css.js +32 -1
- package/esm2015/lib/components/reports/ndf-reports/base/base-graph.report.js +30 -1
- package/esm2015/lib/components/reports/ndf-reports/charts-components/graph-chart/graph-chart.component.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +1 -23
- package/esm2015/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.js +2 -24
- package/esm2015/lib/components/reports/ndf-reports/services/report-config-mapper.service.js +3 -9
- package/esm2015/lib/components/reports/ndf-reports/utilities/dataset-colors.js +3 -5
- package/fesm2015/nuxeo-development-framework.js +71 -56
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/reports/charts/chart.token.d.ts +3 -0
- package/lib/components/reports/charts/utility/colors.d.ts +1 -0
- package/lib/components/reports/charts/utility/css.d.ts +4 -0
- package/lib/components/reports/ndf-reports/base/base-graph.report.d.ts +5 -1
- package/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.d.ts +2 -5
- package/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.d.ts +1 -5
- 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>;
|
|
@@ -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 {
|
|
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>
|
|
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
|
}
|
package/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.d.ts
CHANGED
|
@@ -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>
|
|
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
|
}
|