nuxeo-development-framework 3.3.2 → 3.3.3-snapshot
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 +214 -224
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.js +2 -2
- package/esm2015/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.js +22 -2
- package/esm2015/lib/components/documents/components/document-scan/document-scan.service.js +1 -1
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.js +14 -3
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +18 -55
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.js +5 -2
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +2 -2
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.js +2 -2
- package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +7 -1
- package/esm2015/lib/components/filter/filter/filter.component.js +1 -1
- package/esm2015/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.js +1 -1
- package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +1 -1
- package/esm2015/public-api.js +1 -2
- package/fesm2015/nuxeo-development-framework.js +98 -114
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.d.ts +11 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.d.ts +6 -3
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +2 -4
- package/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.d.ts +2 -1
- package/lib/components/dynamic-search/dynamic-search/dynamic-search.component.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/esm2015/lib/shared-services/global-admin.service.js +0 -24
- package/lib/shared-services/global-admin.service.d.ts +0 -13
|
@@ -15,6 +15,17 @@ export declare class CustomToastrComponent extends Toast implements OnInit {
|
|
|
15
15
|
private onDestroy$;
|
|
16
16
|
constructor(toastrService: ToastrService, toastPackage: ToastPackage, translate: TranslateService, userPreferenceService?: UserPreferencesService);
|
|
17
17
|
ngOnInit(): void;
|
|
18
|
+
setbBackgroundColor(): {
|
|
19
|
+
success: boolean;
|
|
20
|
+
error: boolean;
|
|
21
|
+
notification: boolean;
|
|
22
|
+
};
|
|
23
|
+
setTextColor(): {
|
|
24
|
+
'msg-success': boolean;
|
|
25
|
+
'msg-error': boolean;
|
|
26
|
+
'msg-notification': boolean;
|
|
27
|
+
};
|
|
28
|
+
remove(): void;
|
|
18
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomToastrComponent, never>;
|
|
19
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomToastrComponent, "cts-custom-toastr", never, {}, {}, never, never>;
|
|
20
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { TranslationService } from '../../../../Core/services/translation/translation.service';
|
|
@@ -17,7 +17,7 @@ import * as i0 from "@angular/core";
|
|
|
17
17
|
* >
|
|
18
18
|
* </app-dynamic-form-department>
|
|
19
19
|
*/
|
|
20
|
-
export declare class DynamicFormDepartmentComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
20
|
+
export declare class DynamicFormDepartmentComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy {
|
|
21
21
|
private translation;
|
|
22
22
|
private departmentApi;
|
|
23
23
|
control: NgControl;
|
|
@@ -45,6 +45,8 @@ export declare class DynamicFormDepartmentComponent implements ControlValueAcces
|
|
|
45
45
|
useCustomAddEditAction: any;
|
|
46
46
|
/** to allow custom parent property name to be paassed from outside the component */
|
|
47
47
|
customParentProperty: any;
|
|
48
|
+
/** to allow custom paramsto be passed to get departments request from outside the component */
|
|
49
|
+
customParams: {};
|
|
48
50
|
/** emitted when item is selected */
|
|
49
51
|
onSelecting: EventEmitter<any>;
|
|
50
52
|
/** emitted when action is clicked */
|
|
@@ -60,6 +62,7 @@ export declare class DynamicFormDepartmentComponent implements ControlValueAcces
|
|
|
60
62
|
get showError(): boolean;
|
|
61
63
|
constructor(translation: TranslationService, departmentApi: DepartmentApiService, control: NgControl);
|
|
62
64
|
ngOnInit(): void;
|
|
65
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
63
66
|
ngOnDestroy(): void;
|
|
64
67
|
recursiveFill(entries: any, level?: number): Promise<any>;
|
|
65
68
|
getLisOfOptions(): Promise<void>;
|
|
@@ -72,5 +75,5 @@ export declare class DynamicFormDepartmentComponent implements ControlValueAcces
|
|
|
72
75
|
hasErrors(): boolean;
|
|
73
76
|
onAction(e: any): void;
|
|
74
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormDepartmentComponent, [null, null, { optional: true; self: true; }]>;
|
|
75
|
-
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"; "customParentProperty": "customParentProperty"; }, { "onSelecting": "onSelecting"; "actionClicked": "actionClicked"; }, never, never>;
|
|
78
|
+
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"; "customParentProperty": "customParentProperty"; "customParams": "customParams"; }, { "onSelecting": "onSelecting"; "actionClicked": "actionClicked"; }, never, never>;
|
|
76
79
|
}
|
|
@@ -4,7 +4,6 @@ import { AdapterService } from '../../../../../Core/adapters/adapter.service';
|
|
|
4
4
|
import { CallApiService } from '../../../../../Core/services/callApi/call-api.service';
|
|
5
5
|
import { NuxeoService } from '../../../../../Core/services/nuxeo/nuxeo.service';
|
|
6
6
|
import { TranslationService } from '../../../../../Core/services/translation/translation.service';
|
|
7
|
-
import { GlobalAdminService } from '../../../../../shared-services/global-admin.service';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare const departmentCacheBuster$: Subject<void>;
|
|
10
9
|
export declare const minute = 60000;
|
|
@@ -14,11 +13,10 @@ export declare class DepartmentApiService {
|
|
|
14
13
|
private translation;
|
|
15
14
|
private nuxeoService;
|
|
16
15
|
private adapter;
|
|
17
|
-
private globalAdminService;
|
|
18
16
|
private environment;
|
|
19
17
|
arabic: any;
|
|
20
|
-
constructor(CallApiService: CallApiService, translation: TranslationService, nuxeoService: NuxeoService, adapter: AdapterService,
|
|
21
|
-
getDepartmentTree(customPageProvider?: any): Observable<any>;
|
|
18
|
+
constructor(CallApiService: CallApiService, translation: TranslationService, nuxeoService: NuxeoService, adapter: AdapterService, environment: any);
|
|
19
|
+
getDepartmentTree(customPageProvider?: any, customParams?: any): Observable<any>;
|
|
22
20
|
getDepartmentDetails(code: any, customPageProvider?: any): Observable<any>;
|
|
23
21
|
getDepartmentNestedTree(code: any, customPageProvider?: any, customParentCodeProperty?: any): Observable<any>;
|
|
24
22
|
getDepartment(uid: any, fields?: any): Observable<any>;
|
|
@@ -27,6 +27,7 @@ export declare class DynamicFormSelectTagComponent implements OnInit, ControlVal
|
|
|
27
27
|
onChange: any;
|
|
28
28
|
onTouched: any;
|
|
29
29
|
multiple: boolean;
|
|
30
|
+
selectedTagsCustomTemplate: any;
|
|
30
31
|
constructor(control: NgControl, tagsApiService: TagsApiService);
|
|
31
32
|
writeValue(value: any): void;
|
|
32
33
|
registerOnChange(fn: any): void;
|
|
@@ -38,5 +39,5 @@ export declare class DynamicFormSelectTagComponent implements OnInit, ControlVal
|
|
|
38
39
|
isRequired(): any;
|
|
39
40
|
buildTagObj(value: any): any[];
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormSelectTagComponent, [{ optional: true; self: true; }, null]>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormSelectTagComponent, "cts-dynamic-form-select-tag", never, { "label": "label"; "multiple": "multiple"; }, {}, never, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormSelectTagComponent, "cts-dynamic-form-select-tag", never, { "label": "label"; "multiple": "multiple"; "selectedTagsCustomTemplate": "selectedTagsCustomTemplate"; }, {}, never, never>;
|
|
42
43
|
}
|
|
@@ -77,6 +77,7 @@ export declare class DynamicSearchComponent implements OnInit, OnChanges {
|
|
|
77
77
|
savedDepFilterValue: any;
|
|
78
78
|
savedworkSpaceFilterValue: any;
|
|
79
79
|
resultSets: any[];
|
|
80
|
+
originalAggregations: any;
|
|
80
81
|
constructor(route: ActivatedRoute, router: Router, evaluatorService: EvaluatorsService, nuxeoService: NuxeoService, environment: any, breakpointObserver: BreakpointObserver);
|
|
81
82
|
ngOnChanges(changes: SimpleChanges): void;
|
|
82
83
|
ngOnInit(): void;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -186,7 +186,6 @@ export * from './lib/shared/components/spinner/spinner.component';
|
|
|
186
186
|
export * from './lib/shared/components/user-card/user-card.component';
|
|
187
187
|
export * from './lib/shared-services/shared-services.module';
|
|
188
188
|
export * from './lib/shared-services/user.service';
|
|
189
|
-
export * from './lib/shared-services/global-admin.service';
|
|
190
189
|
export * from './lib/Core/services/callApi/call-api.service';
|
|
191
190
|
export * from './lib/Core/services/nuxeo/nuxeo.service';
|
|
192
191
|
export * from './lib/Core/services/translation/translation.service';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../Core/services/nuxeo/nuxeo.service";
|
|
4
|
-
import * as i2 from "../directive/permissions/evaluators.service";
|
|
5
|
-
export class GlobalAdminService {
|
|
6
|
-
constructor(nuxeo, evaluatorService) {
|
|
7
|
-
this.nuxeo = nuxeo;
|
|
8
|
-
this.evaluatorService = evaluatorService;
|
|
9
|
-
this.isGlobalAdmin = false;
|
|
10
|
-
this.activeTenant = null;
|
|
11
|
-
}
|
|
12
|
-
checkIfGlobalAdmin() {
|
|
13
|
-
return this.evaluatorService.evaluateRule('isGlobalAdmin');
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
GlobalAdminService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: GlobalAdminService, deps: [{ token: i1.NuxeoService }, { token: i2.EvaluatorsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
-
GlobalAdminService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: GlobalAdminService, providedIn: 'root' });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: GlobalAdminService, decorators: [{
|
|
19
|
-
type: Injectable,
|
|
20
|
-
args: [{
|
|
21
|
-
providedIn: 'root'
|
|
22
|
-
}]
|
|
23
|
-
}], ctorParameters: function () { return [{ type: i1.NuxeoService },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yc1NlcnZpY2UgfSBmcm9tICcuLi9kaXJlY3RpdmUvcGVybWlzc2lvbnMvZXZhbHVhdG9ycy5zZXJ2aWNlJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgR2xvYmFsQWRtaW5TZXJ2aWNlIHtcbiAgaXNHbG9iYWxBZG1pbiA9IGZhbHNlO1xuICBhY3RpdmVUZW5hbnQgPSBudWxsO1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIG51eGVvIDogTnV4ZW9TZXJ2aWNlICwgcHJpdmF0ZSBldmFsdWF0b3JTZXJ2aWNlIDogRXZhbHVhdG9yc1NlcnZpY2UpIHsgfVxuXG4gIGNoZWNrSWZHbG9iYWxBZG1pbigpe1xuICAgcmV0dXJuIHRoaXMuZXZhbHVhdG9yU2VydmljZS5ldmFsdWF0ZVJ1bGUoJ2lzR2xvYmFsQWRtaW4nKVxuICB9XG59XG4iXX0=
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NuxeoService } from '../Core/services/nuxeo/nuxeo.service';
|
|
2
|
-
import { EvaluatorsService } from '../directive/permissions/evaluators.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GlobalAdminService {
|
|
5
|
-
private nuxeo;
|
|
6
|
-
private evaluatorService;
|
|
7
|
-
isGlobalAdmin: boolean;
|
|
8
|
-
activeTenant: any;
|
|
9
|
-
constructor(nuxeo: NuxeoService, evaluatorService: EvaluatorsService);
|
|
10
|
-
checkIfGlobalAdmin(): Promise<boolean>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalAdminService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalAdminService>;
|
|
13
|
-
}
|