nuxeo-development-framework 5.5.2 → 5.5.3
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 +121 -45
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +73 -22
- package/esm2015/lib/components/reports/ndf-reports/models/details.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/ndf-reports.module.js +15 -3
- package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -2
- package/esm2015/lib/components/reports/ndf-reports/services/report-configuration.service.js +41 -0
- package/esm2015/lib/components/reports/ndf-reports/utilities/reports-table.mapper.js +7 -8
- package/fesm2015/nuxeo-development-framework.js +109 -35
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +11 -7
- package/lib/components/reports/ndf-reports/models/details.d.ts +1 -1
- package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +0 -2
- package/lib/components/reports/ndf-reports/services/index.d.ts +1 -1
- package/lib/components/reports/ndf-reports/services/report-configuration.service.d.ts +14 -0
- package/package.json +1 -1
- package/esm2015/lib/components/reports/ndf-reports/services/report-details.service.js +0 -29
- package/lib/components/reports/ndf-reports/services/report-details.service.d.ts +0 -12
package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnimationEvent } from '@angular/animations';
|
|
2
2
|
import { Direction } from '@angular/cdk/bidi';
|
|
3
|
-
import { ChangeDetectorRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { ChangeDetectorRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
6
|
import { DestroySubject, FluidHeightDirective } from '../../../../../shared';
|
|
@@ -8,10 +8,10 @@ import { Observable } from 'rxjs';
|
|
|
8
8
|
import { NdfTableConfig } from '../../../../tables';
|
|
9
9
|
import { AggregationResponse, FieldConfigModel, FilterQueryService, FiltersMapperService, FormQueryModel } from '../../../../ndf-filters';
|
|
10
10
|
import { CriteriaModel, NdfReportsConfig, ReportConfigModel } from '../../models';
|
|
11
|
-
import { ChartManagerService, NdfReportsService, ReportsStateService, ReportTransformService } from '../../services';
|
|
11
|
+
import { ChartManagerService, NdfReportsService, ReportConfigurationService, ReportsStateService, ReportTransformService } from '../../services';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare const slideAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
14
|
-
export declare class NdfReportsComponent extends DestroySubject implements OnInit, OnDestroy {
|
|
14
|
+
export declare class NdfReportsComponent extends DestroySubject implements OnInit, OnDestroy, OnChanges {
|
|
15
15
|
private _translateService;
|
|
16
16
|
private _filtersMapper;
|
|
17
17
|
private _ndfReportsService;
|
|
@@ -20,6 +20,7 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
20
20
|
private _cdr;
|
|
21
21
|
private _filterQueryService;
|
|
22
22
|
private _stateService;
|
|
23
|
+
private _configurationService;
|
|
23
24
|
private _router;
|
|
24
25
|
private _ngZone;
|
|
25
26
|
fluidDirective: FluidHeightDirective;
|
|
@@ -53,7 +54,6 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
53
54
|
aggregations: Record<string, AggregationResponse>;
|
|
54
55
|
get showDetails(): boolean;
|
|
55
56
|
isDetailsOpened: boolean;
|
|
56
|
-
get config(): NdfReportsConfig;
|
|
57
57
|
get filtersConfig(): {
|
|
58
58
|
mode: "payload" | "params";
|
|
59
59
|
payload?: Record<string, any>;
|
|
@@ -64,7 +64,6 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
64
64
|
reloadStrategy?: "never" | "always";
|
|
65
65
|
};
|
|
66
66
|
get reportConfig(): {
|
|
67
|
-
details?: Required<import("../../models").ReportDetailsConfig>;
|
|
68
67
|
items: import("../../models").ReportDefinitionModel[];
|
|
69
68
|
};
|
|
70
69
|
jsonEditorEnabled: boolean;
|
|
@@ -72,11 +71,14 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
72
71
|
editorType: "report";
|
|
73
72
|
navigateRoute: string[];
|
|
74
73
|
private _isConfigChanged;
|
|
74
|
+
private _config;
|
|
75
75
|
set config(config: NdfReportsConfig);
|
|
76
|
+
get config(): NdfReportsConfig;
|
|
76
77
|
onQueryChange: EventEmitter<any>;
|
|
77
78
|
trackByFn: (_: number, report: ReportConfigModel) => string | number;
|
|
78
|
-
constructor(_translateService: TranslateService, _filtersMapper: FiltersMapperService, _ndfReportsService: NdfReportsService, _chartHelperService: ChartManagerService, _transformService: ReportTransformService, _cdr: ChangeDetectorRef, _filterQueryService: FilterQueryService, _stateService: ReportsStateService, _router: Router, _ngZone: NgZone);
|
|
79
|
+
constructor(_translateService: TranslateService, _filtersMapper: FiltersMapperService, _ndfReportsService: NdfReportsService, _chartHelperService: ChartManagerService, _transformService: ReportTransformService, _cdr: ChangeDetectorRef, _filterQueryService: FilterQueryService, _stateService: ReportsStateService, _configurationService: ReportConfigurationService, _router: Router, _ngZone: NgZone);
|
|
79
80
|
ngOnInit(): void;
|
|
81
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
80
82
|
onNavigate(data: {
|
|
81
83
|
report: Record<string, any>;
|
|
82
84
|
data: Record<string, any>;
|
|
@@ -85,7 +87,7 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
85
87
|
printAll(): void;
|
|
86
88
|
filterChanged(criteria: Record<any, any>): void;
|
|
87
89
|
onContentScroll(isScrolling: boolean): void;
|
|
88
|
-
openReportDetails(
|
|
90
|
+
openReportDetails(criteriaModel: CriteriaModel, reportConfig: ReportConfigModel): void;
|
|
89
91
|
closeDetailsPanel(): void;
|
|
90
92
|
onDetailsAnimationEnd(event: AnimationEvent): void;
|
|
91
93
|
ngOnDestroy(): void;
|
|
@@ -97,6 +99,8 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
97
99
|
private _updateActiveQuery;
|
|
98
100
|
private _prepareAggregations;
|
|
99
101
|
private _checkConfigChange;
|
|
102
|
+
private _loadReportsConfig;
|
|
103
|
+
private _initReportsConfig;
|
|
100
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsComponent, never>;
|
|
101
105
|
static ɵcmp: i0.ɵɵComponentDeclaration<NdfReportsComponent, "app-ndf-reports", never, { "jsonEditorEnabled": "jsonEditorEnabled"; "reportsKey": "reportsKey"; "navigateRoute": "navigateRoute"; "config": "config"; }, { "onQueryChange": "onQueryChange"; }, never, never>;
|
|
102
106
|
}
|
|
@@ -3,7 +3,7 @@ import { NdfReportsRequest } from './request';
|
|
|
3
3
|
import { EvaluatedString } from '../../../../shared';
|
|
4
4
|
export declare type ReportDetailsConfig = {
|
|
5
5
|
enabled: boolean;
|
|
6
|
-
source
|
|
6
|
+
source: ReportDetailsKey | ReportConfigOptions;
|
|
7
7
|
};
|
|
8
8
|
export declare type ReportDetailsKey = string;
|
|
9
9
|
export declare type ReportConfigOptions = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FieldConfigModel } from '../../../ndf-filters';
|
|
2
|
-
import { ReportDetailsConfig } from './details';
|
|
3
2
|
import { NdfReportsRequest } from './request';
|
|
4
3
|
import { ReportDefinitionModel } from './report-config';
|
|
5
4
|
declare type NdfReportsFilters = {
|
|
@@ -18,7 +17,6 @@ export declare type NdfReportsConfig = {
|
|
|
18
17
|
print?: boolean;
|
|
19
18
|
};
|
|
20
19
|
reports: {
|
|
21
|
-
details?: Required<ReportDetailsConfig>;
|
|
22
20
|
items: ReportDefinitionModel[];
|
|
23
21
|
};
|
|
24
22
|
activeQuery?: Record<string, any>;
|
|
@@ -10,4 +10,4 @@ export * from './chart-plugins-registry.service';
|
|
|
10
10
|
export * from './report-config-mapper.service';
|
|
11
11
|
export * from './reports-data-transformers.service';
|
|
12
12
|
export * from './custom-reports-registry.service';
|
|
13
|
-
export * from './report-
|
|
13
|
+
export * from './report-configuration.service';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { BaseEditorConfigService } from '../../../../shared';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { NdfTableConfig } from '../../../tables';
|
|
5
|
+
import { NdfReportsConfig } from '../models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ReportConfigurationService extends BaseEditorConfigService {
|
|
8
|
+
readonly injector: Injector;
|
|
9
|
+
constructor(injector: Injector);
|
|
10
|
+
getTableConfiguration(key: string, localPath?: string): Observable<NdfTableConfig>;
|
|
11
|
+
getReportsConfiguration(key: string, localPath?: string): Observable<NdfReportsConfig>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportConfigurationService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReportConfigurationService>;
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BaseEditorConfigService, NDF_EDITOR_TYPE } from '../../../../shared';
|
|
3
|
-
import { map } from 'rxjs/operators';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class ReportDetailsService extends BaseEditorConfigService {
|
|
6
|
-
constructor(injector) {
|
|
7
|
-
super(injector);
|
|
8
|
-
this.injector = injector;
|
|
9
|
-
}
|
|
10
|
-
getTableConfiguration(key, localPath) {
|
|
11
|
-
var _a;
|
|
12
|
-
return this.fetchData({
|
|
13
|
-
key,
|
|
14
|
-
type: NDF_EDITOR_TYPE.REPORTS,
|
|
15
|
-
app: (_a = this.environment) === null || _a === void 0 ? void 0 : _a.appKey,
|
|
16
|
-
localPath
|
|
17
|
-
}).pipe(map((res) => {
|
|
18
|
-
var _a;
|
|
19
|
-
return (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.config;
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
ReportDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ReportDetailsService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
24
|
-
ReportDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ReportDetailsService, providedIn: 'root' });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ReportDetailsService, decorators: [{
|
|
26
|
-
type: Injectable,
|
|
27
|
-
args: [{ providedIn: 'root' }]
|
|
28
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LWRldGFpbHMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL251eGVvLWRldmVsb3BtZW50LWZyYW1ld29yay9zcmMvbGliL2NvbXBvbmVudHMvcmVwb3J0cy9uZGYtcmVwb3J0cy9zZXJ2aWNlcy9yZXBvcnQtZGV0YWlscy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQVksTUFBTSxlQUFlLENBQUM7QUFDckQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLGVBQWUsRUFBRSxNQUFNLG9CQUFvQ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XG5pbXBvcnQgeyBtYXAgfSBmcm9tICdyeGpzL29wZXJhdG9ycyc7XHJcbmltcG9ydCB7IE5kZlRhYmxlQ29uZmlnIH0gZnJvbSAnLi4vLi4vLi4vdGFibGVzJztcclxuXHJcbkBJbmplY3RhYmxlKHsgcHJvdmlkZWRJbjogJ3Jvb3QnIH0pXHJcbmV4cG9ydCBjbGFzcyBSZXBvcnREZXRhaWxzU2VydmljZSBleHRlbmRzIEJhc2VFZGl0b3JDb25maWdTZXJ2aWNlIHtcclxuXHRjb25zdHJ1Y3RvcihwdWJsaWMgcmVhZG9ubHkgaW5qZWN0b3I6IEluamVjdG9yKSB7XHJcblx0XHRzdXBlcihpbmplY3Rvcik7XHJcblx0fVxyXG5cclxuXHRnZXRUYWJsZUNvbmZpZ3VyYXRpb24oa2V5OiBzdHJpbmcsIGxvY2FsUGF0aD86IHN0cmluZyk6IE9ic2VydmFibGU8TmRmVGFibGVDb25maWc+IHtcclxuXHRcdHJldHVybiB0aGlzLmZldGNoRGF0YSh7XHJcblx0XHRcdGtleSxcclxuXHRcdFx0dHlwZTogTkRGX0VESVRPUl9UWVBFLlJFUE9SVFMsXHJcblx0XHRcdGFwcDogdGhpcy5lbnZpcm9ubWVudD8uYXBwS2V5LFxyXG5cdFx0XHRsb2NhbFBhdGhcclxuXHRcdH0pLnBpcGUoXHJcblx0XHRcdG1hcCgocmVzKSA9PiB7XHJcblx0XHRcdFx0cmV0dXJuIHJlcz8uZGF0YT8uY29uZmlnIGFzIE5kZlRhYmxlQ29uZmlnO1xyXG5cdFx0XHR9KVxyXG5cdFx0KTtcclxuXHR9XHJcbn1cclxuIl19
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { BaseEditorConfigService } from '../../../../shared';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { NdfTableConfig } from '../../../tables';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ReportDetailsService extends BaseEditorConfigService {
|
|
7
|
-
readonly injector: Injector;
|
|
8
|
-
constructor(injector: Injector);
|
|
9
|
-
getTableConfiguration(key: string, localPath?: string): Observable<NdfTableConfig>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ReportDetailsService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ReportDetailsService>;
|
|
12
|
-
}
|