nuxeo-development-framework 0.4.6 → 0.5.0
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 +144 -118
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/documents/components/document-scan/document-scan.service.js +1 -1
- package/esm2015/lib/components/documents/constants/documents.js +2 -2
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.js +22 -8
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +23 -23
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +46 -20
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.js +2 -2
- package/esm2015/lib/components/dynamic-form/services/dynamic-form-update.service.js +4 -9
- package/esm2015/lib/components/filter/filter/filter.component.js +1 -1
- package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +1 -1
- package/esm2015/lib/directive/permissions/evaluators.service.js +36 -4
- package/esm2015/lib/directive/permissions/permissions.directive.js +2 -39
- package/esm2015/lib/nuxeo-development-framework.module.js +8 -1
- package/esm2015/lib/pipes/time-ago.pipe.js +1 -1
- package/fesm2015/nuxeo-development-framework.js +135 -97
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.d.ts +10 -1
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +8 -8
- package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.d.ts +7 -1
- package/lib/components/dynamic-form/services/dynamic-form-update.service.d.ts +1 -6
- package/lib/directive/permissions/evaluators.service.d.ts +12 -1
- package/lib/directive/permissions/permissions.directive.d.ts +0 -4
- package/lib/nuxeo-development-framework.module.d.ts +2 -0
- package/package.json +1 -1
|
@@ -35,6 +35,14 @@ export declare class DynamicFormDepartmentComponent implements ControlValueAcces
|
|
|
35
35
|
/** Input Field label */
|
|
36
36
|
label: any;
|
|
37
37
|
defaultSelect: boolean;
|
|
38
|
+
/** custom page provider to get department nested tree from it can be passed from outside or not passed and use the defulte value */
|
|
39
|
+
pp_departmentNestedTree: any;
|
|
40
|
+
/** custom page provider to get department tree from it can be passed from outside or not passed and use the defulte value */
|
|
41
|
+
pp_departmentTree: any;
|
|
42
|
+
/** custom prefix to be used for adapting data coming from api */
|
|
43
|
+
customPrefix: any;
|
|
44
|
+
/** to allow custom action to be performed outside the component */
|
|
45
|
+
useCustomAddEditAction: any;
|
|
38
46
|
/** emitted when item is selected */
|
|
39
47
|
onSelecting: EventEmitter<any>;
|
|
40
48
|
/** emitted when action is clicked */
|
|
@@ -60,6 +68,7 @@ export declare class DynamicFormDepartmentComponent implements ControlValueAcces
|
|
|
60
68
|
validate(c: FormControl): any;
|
|
61
69
|
isRequired(): boolean;
|
|
62
70
|
hasErrors(): boolean;
|
|
71
|
+
onAction(e: any): void;
|
|
63
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormDepartmentComponent, [null, null, { optional: true; self: true; }]>;
|
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormDepartmentComponent, "app-dynamic-form-department", never, { "treeview": "treeview"; "treeViewAsFormControl": "treeViewAsFormControl"; "placeholder": "placeholder"; "multiple": "multiple"; "searchable": "searchable"; "label": "label"; "defaultSelect": "defaultSelect"; }, { "onSelecting": "onSelecting"; "actionClicked": "actionClicked"; }, never, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormDepartmentComponent, "app-dynamic-form-department", never, { "treeview": "treeview"; "treeViewAsFormControl": "treeViewAsFormControl"; "placeholder": "placeholder"; "multiple": "multiple"; "searchable": "searchable"; "label": "label"; "defaultSelect": "defaultSelect"; "pp_departmentNestedTree": "pp_departmentNestedTree"; "pp_departmentTree": "pp_departmentTree"; "customPrefix": "customPrefix"; "useCustomAddEditAction": "useCustomAddEditAction"; }, { "onSelecting": "onSelecting"; "actionClicked": "actionClicked"; }, never, never>;
|
|
65
74
|
}
|
|
@@ -16,14 +16,14 @@ export declare class DepartmentApiService {
|
|
|
16
16
|
private environment;
|
|
17
17
|
arabic: any;
|
|
18
18
|
constructor(CallApiService: CallApiService, translation: TranslationService, nuxeoService: NuxeoService, adapter: AdapterService, environment: any);
|
|
19
|
-
getDepartmentTree(): Observable<any>;
|
|
20
|
-
getDepartmentDetails(code: any): Observable<any>;
|
|
21
|
-
getDepartmentNestedTree(code: any): Observable<any>;
|
|
22
|
-
getDepartment(uid: any): Observable<any>;
|
|
23
|
-
createDepartment(Department: any, parentId: any): Observable<unknown>;
|
|
24
|
-
createDepartmentInRoot(Department: any): Observable<unknown>;
|
|
25
|
-
updateDepartment(Department: any, departmentId: any): Observable<unknown>;
|
|
26
|
-
recursiveFill(entries: any, level?: number, treeview?: boolean, collapsed?: boolean): TreeviewItem[];
|
|
19
|
+
getDepartmentTree(customPageProvider?: any): Observable<any>;
|
|
20
|
+
getDepartmentDetails(code: any, customPageProvider?: any): Observable<any>;
|
|
21
|
+
getDepartmentNestedTree(code: any, customPageProvider?: any): Observable<any>;
|
|
22
|
+
getDepartment(uid: any, fields?: any): Observable<any>;
|
|
23
|
+
createDepartment(Department: any, parentId: any, customOperation?: any, fields?: any): Observable<unknown>;
|
|
24
|
+
createDepartmentInRoot(Department: any, customOperation?: any): Observable<unknown>;
|
|
25
|
+
updateDepartment(Department: any, departmentId: any, customOperation?: any, fields?: any): Observable<unknown>;
|
|
26
|
+
recursiveFill(entries: any, level?: number, treeview?: boolean, collapsed?: boolean, customPrefix?: any): TreeviewItem[];
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<DepartmentApiService, never>;
|
|
28
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<DepartmentApiService>;
|
|
29
29
|
}
|
|
@@ -54,6 +54,12 @@ export declare class TreeviewSelectComponent implements OnInit, OnChanges, OnDes
|
|
|
54
54
|
plusClicked: EventEmitter<any>;
|
|
55
55
|
/** event emitted on plus button clicked (for department management) */
|
|
56
56
|
defaultSelect: boolean;
|
|
57
|
+
/** custom page provider to get department nested tree from it can be passed from outside or not passed and use the defulte value */
|
|
58
|
+
pp_departmentNestedTree: any;
|
|
59
|
+
/** use outside custom function instead of the iner function */
|
|
60
|
+
useCustomAddEditAction: boolean;
|
|
61
|
+
/** custom prefix to be used for adapting data coming from api */
|
|
62
|
+
customPrefix: any;
|
|
57
63
|
actionClicked: EventEmitter<any>;
|
|
58
64
|
dropdownTreeviewComponent: DropdownTreeviewComponent;
|
|
59
65
|
filterText: string;
|
|
@@ -91,5 +97,5 @@ export declare class TreeviewSelectComponent implements OnInit, OnChanges, OnDes
|
|
|
91
97
|
*/
|
|
92
98
|
update(item: any): void;
|
|
93
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeviewSelectComponent, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeviewSelectComponent, "app-dynamic-form-treeview-select", never, { "treeview": "treeview"; "treeViewAsFormControl": "treeViewAsFormControl"; "config": "config"; "items": "items"; "value": "value"; "multiple": "multiple"; "defaultSelect": "defaultSelect"; }, { "valueChange": "valueChange"; "plusClicked": "plusClicked"; "actionClicked": "actionClicked"; }, never, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeviewSelectComponent, "app-dynamic-form-treeview-select", never, { "treeview": "treeview"; "treeViewAsFormControl": "treeViewAsFormControl"; "config": "config"; "items": "items"; "value": "value"; "multiple": "multiple"; "defaultSelect": "defaultSelect"; "pp_departmentNestedTree": "pp_departmentNestedTree"; "useCustomAddEditAction": "useCustomAddEditAction"; "customPrefix": "customPrefix"; }, { "valueChange": "valueChange"; "plusClicked": "plusClicked"; "actionClicked": "actionClicked"; }, never, never>;
|
|
95
101
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
2
|
import { DynamicFormBaseItemModel } from '../models/dynamic-form.models';
|
|
3
|
-
import { AppConfigService } from '../../../configuration/app-config.service';
|
|
4
|
-
import { AdapterService } from '../../../Core/adapters/adapter.service';
|
|
5
3
|
import { CallApiService } from '../../../Core/services/callApi/call-api.service';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export interface UpdateNotification {
|
|
@@ -14,13 +12,10 @@ export interface ClickNotification {
|
|
|
14
12
|
export declare function transformKeyToObject(key: string, value: any): Object;
|
|
15
13
|
export declare class DynamicFormUpdateService {
|
|
16
14
|
private callApi;
|
|
17
|
-
private adapter;
|
|
18
|
-
private appConfigService;
|
|
19
15
|
itemUpdated$: Subject<UpdateNotification>;
|
|
20
16
|
itemClicked$: Subject<ClickNotification>;
|
|
21
17
|
validate$: Subject<unknown>;
|
|
22
|
-
|
|
23
|
-
constructor(callApi: CallApiService, adapter: AdapterService, appConfigService: AppConfigService);
|
|
18
|
+
constructor(callApi: CallApiService);
|
|
24
19
|
update(property: DynamicFormBaseItemModel, newValue: any): void;
|
|
25
20
|
validate(property: DynamicFormBaseItemModel, newValue: any): void;
|
|
26
21
|
clicked(property: DynamicFormBaseItemModel): void;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import { AppConfigService } from '../../configuration/app-config.service';
|
|
1
2
|
import { NuxeoService } from '../../Core/services/nuxeo/nuxeo.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class EvaluatorsService {
|
|
4
5
|
private nuxeoService;
|
|
5
|
-
|
|
6
|
+
private appConfigService;
|
|
7
|
+
context: {
|
|
8
|
+
entity: any;
|
|
9
|
+
getEvaluator: any;
|
|
10
|
+
user: any;
|
|
11
|
+
};
|
|
12
|
+
conditions: any;
|
|
13
|
+
constructor(nuxeoService: NuxeoService, appConfigService: AppConfigService);
|
|
6
14
|
asyncEvery: (arr: any, predicate: any) => Promise<boolean>;
|
|
7
15
|
asyncSome: (arr: any, predicate: any) => Promise<boolean>;
|
|
8
16
|
evaluators: {
|
|
@@ -21,6 +29,9 @@ export declare class EvaluatorsService {
|
|
|
21
29
|
isCreator: (context: any, args: any) => Promise<boolean>;
|
|
22
30
|
isUserInrole: (context: any, args: any) => Promise<any>;
|
|
23
31
|
};
|
|
32
|
+
evaluateRule(ruleId: any, context?: any): Promise<boolean>;
|
|
33
|
+
getRuleById(id: string): any;
|
|
34
|
+
getAllRules(): any;
|
|
24
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvaluatorsService, never>;
|
|
25
36
|
static ɵprov: i0.ɵɵInjectableDeclaration<EvaluatorsService>;
|
|
26
37
|
}
|
|
@@ -36,11 +36,7 @@ export declare class PermissionsDirective implements OnInit {
|
|
|
36
36
|
getEvaluator: any;
|
|
37
37
|
user: any;
|
|
38
38
|
};
|
|
39
|
-
getEvaluator: (key: string) => Promise<any>;
|
|
40
39
|
ngOnInit(): void;
|
|
41
|
-
evaluateRule(ruleId: any, context?: any): Promise<boolean>;
|
|
42
|
-
getRuleById(id: string): any;
|
|
43
|
-
getAllRules(): void;
|
|
44
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsDirective, never>;
|
|
45
41
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PermissionsDirective, "[permission]", never, { "permission": "permission"; }, {}, never>;
|
|
46
42
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
import * as i1 from "./nuxeo-development-framework.component";
|
|
3
4
|
import * as i2 from "@angular/common";
|
|
@@ -5,6 +6,7 @@ import * as i3 from "@angular/common/http";
|
|
|
5
6
|
import * as i4 from "@angular/forms";
|
|
6
7
|
import * as i5 from "./Core/core.module";
|
|
7
8
|
export declare class NuxeoDevelopmentFrameworkModule {
|
|
9
|
+
static forRoot(): ModuleWithProviders<NuxeoDevelopmentFrameworkModule>;
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NuxeoDevelopmentFrameworkModule, never>;
|
|
9
11
|
static ɵmod: i0.ɵɵNgModuleDeclaration<NuxeoDevelopmentFrameworkModule, [typeof i1.NuxeoDevelopmentFrameworkComponent], [typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.CoreModule], [typeof i5.CoreModule, typeof i1.NuxeoDevelopmentFrameworkComponent]>;
|
|
10
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<NuxeoDevelopmentFrameworkModule>;
|