nuxeo-development-framework 5.5.0 → 5.5.2
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 +213 -1382
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/ndf-config-editor/constants/index.js +2 -2
- package/esm2015/lib/components/ndf-config-editor/constants/query.js +2 -2
- package/esm2015/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.js +24 -17
- package/esm2015/lib/components/ndf-config-editor/metadata-token.js +3 -0
- package/esm2015/lib/components/ndf-config-editor/models/payload-data.js +2 -0
- package/esm2015/lib/components/ndf-config-editor/public/editor-navigate-button.js +8 -4
- package/esm2015/lib/components/ndf-config-editor/public-api.js +2 -1
- package/esm2015/lib/components/ndf-config-editor/services/data-access.service.js +12 -15
- package/esm2015/lib/components/ndf-config-editor/services/data-store.service.js +38 -10
- 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/services/index.js +2 -1
- package/esm2015/lib/components/reports/ndf-reports/services/report-details.service.js +29 -0
- package/esm2015/lib/components/reports/ndf-reports/utilities/reports-table.mapper.js +3 -2
- package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +7 -7
- package/esm2015/lib/components/tables/ndf-table/models/table-column.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/table-options.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/services/ndf-table-configuration.service.js +18 -13
- package/esm2015/lib/components/tables/ndf-table/services/ndf-table.service.js +2 -2
- package/esm2015/lib/shared/constants/editor-config-type.js +5 -0
- package/esm2015/lib/shared/constants/index.js +2 -0
- package/esm2015/lib/shared/index.js +2 -1
- package/esm2015/lib/shared/services/base/base-editor-config.service.js +70 -0
- package/esm2015/lib/shared/services/base/index.js +2 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/nuxeo-development-framework.js +193 -1377
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/ndf-config-editor/constants/index.d.ts +1 -1
- package/lib/components/ndf-config-editor/containers/config-preview/config-preview.component.d.ts +2 -2
- package/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.d.ts +8 -7
- package/lib/components/ndf-config-editor/metadata-token.d.ts +8 -0
- package/lib/components/ndf-config-editor/models/payload-data.d.ts +6 -0
- package/lib/components/ndf-config-editor/public/editor-navigate-button.d.ts +1 -0
- package/lib/components/ndf-config-editor/public-api.d.ts +1 -0
- package/lib/components/ndf-config-editor/services/data-access.service.d.ts +7 -4
- package/lib/components/ndf-config-editor/services/data-store.service.d.ts +6 -3
- package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +2 -2
- package/lib/components/reports/ndf-reports/models/details.d.ts +5 -1
- package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +1 -1
- package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
- package/lib/components/reports/ndf-reports/services/report-details.service.d.ts +12 -0
- package/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.d.ts +1 -1
- package/lib/components/tables/ndf-table/models/table-column.d.ts +1 -0
- package/lib/components/tables/ndf-table/models/table-options.d.ts +1 -1
- package/lib/components/tables/ndf-table/services/ndf-table-configuration.service.d.ts +3 -5
- package/lib/shared/constants/editor-config-type.d.ts +4 -0
- package/lib/shared/constants/index.d.ts +1 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/services/base/base-editor-config.service.d.ts +32 -0
- package/lib/shared/services/base/index.d.ts +1 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
- package/esm2015/lib/components/ndf-config-editor/constants/type.js +0 -5
- package/esm2015/lib/components/ndf-config-editor/services/dummy-data.js +0 -1321
- package/lib/components/ndf-config-editor/constants/type.d.ts +0 -4
- package/lib/components/ndf-config-editor/services/dummy-data.d.ts +0 -992
package/lib/components/ndf-config-editor/containers/config-preview/config-preview.component.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export declare class ConfigPreviewComponent implements OnInit {
|
|
|
5
5
|
type: EditorType;
|
|
6
6
|
data: Record<string, any>;
|
|
7
7
|
types: {
|
|
8
|
-
readonly REPORTS: "
|
|
9
|
-
readonly TABLES: "
|
|
8
|
+
readonly REPORTS: "report";
|
|
9
|
+
readonly TABLES: "table";
|
|
10
10
|
};
|
|
11
11
|
constructor();
|
|
12
12
|
ngOnInit(): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DataStoreService } from '../../services';
|
|
3
|
-
import { EditorOptions,
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
3
|
+
import { EditorOptions, EditorTheme, MonacoEditor, NdfConfigMetadata, NdfConfigModel } from '../../models';
|
|
5
4
|
import { AppConfigService } from '../../../../configuration/app-config.service';
|
|
6
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
7
6
|
import { Location } from '@angular/common';
|
|
8
7
|
import { DestroySubject } from '../../../../shared';
|
|
8
|
+
import { CustomToastrService } from '../../../custom-toastr/services/custom-toastr.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class NdfConfigEditorComponent extends DestroySubject implements OnInit, OnChanges {
|
|
11
11
|
private readonly environment;
|
|
@@ -13,26 +13,27 @@ export declare class NdfConfigEditorComponent extends DestroySubject implements
|
|
|
13
13
|
private readonly configService;
|
|
14
14
|
private readonly matDialog;
|
|
15
15
|
private readonly location;
|
|
16
|
+
private readonly toastrService;
|
|
16
17
|
isEditorHasErrors: boolean;
|
|
17
18
|
private readonly _defaultEditorOptions;
|
|
18
19
|
private readonly _optionsSubject;
|
|
19
|
-
readonly options$: Observable<EditorOptions>;
|
|
20
|
+
readonly options$: import("rxjs").Observable<EditorOptions>;
|
|
20
21
|
private readonly _themeSubject;
|
|
21
|
-
readonly theme$: Observable<EditorTheme>;
|
|
22
|
+
readonly theme$: import("rxjs").Observable<EditorTheme>;
|
|
22
23
|
private readonly _dataKeySubject;
|
|
23
24
|
metadata: NdfConfigMetadata;
|
|
24
25
|
theme: EditorTheme;
|
|
25
26
|
options: EditorOptions;
|
|
26
27
|
private _monaco;
|
|
27
28
|
config: NdfConfigModel;
|
|
28
|
-
previewData$: Observable<any>;
|
|
29
|
-
editorData$: Observable<string>;
|
|
29
|
+
previewData$: import("rxjs").Observable<any>;
|
|
30
|
+
editorData$: import("rxjs").Observable<string>;
|
|
30
31
|
readonly modes: {
|
|
31
32
|
readonly EDIT: "edit";
|
|
32
33
|
readonly PREVIEW: "preview";
|
|
33
34
|
};
|
|
34
35
|
isFeatureEnabled: boolean;
|
|
35
|
-
constructor(environment: Record<string, any>, dataStore: DataStoreService, configService: AppConfigService, matDialog: MatDialog, location: Location);
|
|
36
|
+
constructor(environment: Record<string, any>, dataStore: DataStoreService, configService: AppConfigService, matDialog: MatDialog, location: Location, toastrService: CustomToastrService);
|
|
36
37
|
ngOnChanges(changes: SimpleChanges): void;
|
|
37
38
|
ngOnInit(): void;
|
|
38
39
|
onDataChanged(data: string): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { EditorType } from './models';
|
|
3
|
+
export declare const METADATA_EDITOR_OPTIONS: InjectionToken<MetadataEditorOptions>;
|
|
4
|
+
export declare type MetadataEditorOptions = {
|
|
5
|
+
[key in EditorType]: {
|
|
6
|
+
localPath: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
@@ -19,6 +19,7 @@ export declare class EditorButtonComponent implements OnInit {
|
|
|
19
19
|
key: string;
|
|
20
20
|
isFeatureEnabled: boolean;
|
|
21
21
|
constructor(environment: Record<string, any>, router: Router, baseAppUrl: string, configService: AppConfigService);
|
|
22
|
+
get isEnabled(): boolean;
|
|
22
23
|
ngOnInit(): void;
|
|
23
24
|
navigate(): void;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorButtonComponent, never>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { BaseEditorConfigService } from '../../../shared/services';
|
|
3
|
+
import { PayloadData } from '../models/payload-data';
|
|
4
|
+
import { AutomationResponseModel } from '../../../core/models';
|
|
2
5
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DataAccessService extends
|
|
4
|
-
|
|
5
|
-
saveData(
|
|
6
|
+
export declare class DataAccessService extends BaseEditorConfigService {
|
|
7
|
+
constructor(injector: Injector);
|
|
8
|
+
saveData(payload: PayloadData): import("rxjs").Observable<AutomationResponseModel<Record<PropertyKey, any>>>;
|
|
6
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataAccessService, never>;
|
|
7
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<DataAccessService>;
|
|
8
11
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { MetadataEditorOptions } from '../metadata-token';
|
|
1
2
|
import { EditorMode, EditorType } from '../models';
|
|
2
3
|
import { DataAccessService } from './data-access.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class DataStoreService {
|
|
5
6
|
private readonly dataAccessService;
|
|
7
|
+
private environment;
|
|
8
|
+
protected options: MetadataEditorOptions;
|
|
6
9
|
private readonly _editorTypeSubject;
|
|
7
10
|
readonly editorType$: import("rxjs").Observable<EditorType>;
|
|
8
11
|
private readonly _editorModeSubject;
|
|
@@ -10,14 +13,14 @@ export declare class DataStoreService {
|
|
|
10
13
|
private readonly _dataSubject;
|
|
11
14
|
readonly editorData$: import("rxjs").Observable<string>;
|
|
12
15
|
readonly previewData$: import("rxjs").Observable<any>;
|
|
13
|
-
constructor(dataAccessService: DataAccessService);
|
|
16
|
+
constructor(dataAccessService: DataAccessService, environment: any, options: MetadataEditorOptions);
|
|
14
17
|
get editorMode(): EditorMode;
|
|
15
18
|
get type(): EditorType;
|
|
16
19
|
get editorData(): string;
|
|
17
20
|
changeMode(mode: EditorMode): void;
|
|
18
21
|
changeEditorType(type: EditorType): void;
|
|
19
|
-
getData(key: string, type:
|
|
20
|
-
saveData(key: string): import("rxjs").Observable<
|
|
22
|
+
getData(key: string, type: EditorType): import("rxjs").Observable<string>;
|
|
23
|
+
saveData(key: string, type: string): import("rxjs").Observable<import("nuxeo-development-framework").AutomationResponseModel<Record<PropertyKey, any>>>;
|
|
21
24
|
storeData(data: string): void;
|
|
22
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataStoreService, never>;
|
|
23
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<DataStoreService>;
|
package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts
CHANGED
|
@@ -64,12 +64,12 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
64
64
|
reloadStrategy?: "never" | "always";
|
|
65
65
|
};
|
|
66
66
|
get reportConfig(): {
|
|
67
|
-
details?: import("../../models").ReportDetailsConfig
|
|
67
|
+
details?: Required<import("../../models").ReportDetailsConfig>;
|
|
68
68
|
items: import("../../models").ReportDefinitionModel[];
|
|
69
69
|
};
|
|
70
70
|
jsonEditorEnabled: boolean;
|
|
71
71
|
reportsKey: string;
|
|
72
|
-
editorType: "
|
|
72
|
+
editorType: "report";
|
|
73
73
|
navigateRoute: string[];
|
|
74
74
|
private _isConfigChanged;
|
|
75
75
|
set config(config: NdfReportsConfig);
|
|
@@ -2,12 +2,16 @@ import { TableColumnConfig, TableExportConfig, TableSortConfig, TableSortOptions
|
|
|
2
2
|
import { NdfReportsRequest } from './request';
|
|
3
3
|
import { EvaluatedString } from '../../../../shared';
|
|
4
4
|
export declare type ReportDetailsConfig = {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
source?: ReportDetailsKey | ReportConfigOptions;
|
|
7
|
+
};
|
|
8
|
+
export declare type ReportDetailsKey = string;
|
|
9
|
+
export declare type ReportConfigOptions = {
|
|
5
10
|
request?: Partial<NdfReportsRequest> & {
|
|
6
11
|
actions?: {
|
|
7
12
|
beforeSubmit?: EvaluatedString<'payload'>;
|
|
8
13
|
};
|
|
9
14
|
};
|
|
10
|
-
enabled: boolean;
|
|
11
15
|
columns?: TableColumnConfig[];
|
|
12
16
|
fields?: Record<string, string>;
|
|
13
17
|
prefix?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -45,7 +45,7 @@ export declare type CustomCriteriaModel = {
|
|
|
45
45
|
export declare type TableExportConfig = {
|
|
46
46
|
enabled: boolean;
|
|
47
47
|
request: NdfRequestConfig;
|
|
48
|
-
docTypeName: 'task' | 'request' | 'record';
|
|
48
|
+
docTypeName: 'task' | 'request' | 'record' | 'nonDocUsage' | 'document' | 'docUsage';
|
|
49
49
|
blobName: string;
|
|
50
50
|
defaultType: 'excel' | 'docx' | 'pdf';
|
|
51
51
|
allowedTypes?: LabelValue<string, 'excel' | 'docx' | 'pdf'>[];
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { HttpBaseService } from '../../../../shared/services/base/http-base.service';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { NdfTableConfig } from '../models';
|
|
4
|
+
import { BaseEditorConfigService } from '../../../../shared';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NdfTableConfigurationService extends
|
|
6
|
+
export declare class NdfTableConfigurationService extends BaseEditorConfigService {
|
|
7
7
|
readonly injector: Injector;
|
|
8
|
-
private readonly appConfigService;
|
|
9
|
-
private readonly configurationsUrl;
|
|
10
8
|
constructor(injector: Injector);
|
|
11
|
-
getTableConfiguration(key: string,
|
|
9
|
+
getTableConfiguration(key: string, localPath?: string): Observable<NdfTableConfig>;
|
|
12
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NdfTableConfigurationService, never>;
|
|
13
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<NdfTableConfigurationService>;
|
|
14
12
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './editor-config-type';
|
package/lib/shared/index.d.ts
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseService } from './base.service';
|
|
2
|
+
import { AppConfigService } from '../../../configuration/app-config.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
5
|
+
import { NDF_EDITOR_TYPE } from '../../constants';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare type ConfigType = (typeof NDF_EDITOR_TYPE)[keyof typeof NDF_EDITOR_TYPE];
|
|
8
|
+
export interface ConfigResponseModel {
|
|
9
|
+
submitted: boolean;
|
|
10
|
+
uid?: string;
|
|
11
|
+
data: {
|
|
12
|
+
key: string;
|
|
13
|
+
type: string;
|
|
14
|
+
app?: string;
|
|
15
|
+
config: Record<string, any>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface ConfigRequestModel {
|
|
19
|
+
key: string;
|
|
20
|
+
type: ConfigType;
|
|
21
|
+
app?: string;
|
|
22
|
+
localPath?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class BaseEditorConfigService extends BaseService {
|
|
25
|
+
injector: Injector;
|
|
26
|
+
protected appConfigService: AppConfigService;
|
|
27
|
+
constructor(injector: Injector);
|
|
28
|
+
fetchData({ key, type, app, localPath }: ConfigRequestModel): Observable<ConfigResponseModel>;
|
|
29
|
+
private _parseData;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseEditorConfigService, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseEditorConfigService>;
|
|
32
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxeo-development-framework",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.2",
|
|
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
|
+
}
|
package/public-api.d.ts
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export const NDF_EDITOR_TYPE = {
|
|
2
|
-
REPORTS: 'reports',
|
|
3
|
-
TABLES: 'tables'
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL251eGVvLWRldmVsb3BtZW50LWZyYW1ld29yay9zcmMvbGliL2NvbXBvbmVudHMvbmRmLWNvbmZpZy1lZGl0b3IvY29uc3RhbnRzL3R5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFHO0lBQzlCLE9BQU8sRUFBRSxTQUFTO0lBQ2xCLE1BQU0sRUFBRSxRQUFRO0NBQ1AsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBOREZfRURJVE9SX1RZUEUgPSB7XHJcblx0UkVQT1JUUzogJ3JlcG9ydHMnLFxyXG5cdFRBQkxFUzogJ3RhYmxlcydcclxufSBhcyBjb25zdDtcclxuIl19
|