nuxeo-development-framework 3.3.6 → 3.3.8

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.
Files changed (19) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +746 -746
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/Core/services/roles/roles.service.js +13 -17
  4. package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.js +7 -3
  5. package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +4 -9
  6. package/esm2015/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.js +2 -2
  7. package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +18 -11
  8. package/esm2015/lib/components/filter/filter/filter.component.js +1 -1
  9. package/esm2015/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.js +1 -1
  10. package/esm2015/lib/nuxeo-development-framework.module.js +2 -2
  11. package/esm2015/lib/shared-services/global-admin.service.js +5 -7
  12. package/fesm2015/nuxeo-development-framework.js +212 -212
  13. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  14. package/lib/Core/services/roles/roles.service.d.ts +2 -8
  15. package/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.d.ts +3 -1
  16. package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +1 -1
  17. package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.d.ts +3 -1
  18. package/lib/shared-services/global-admin.service.d.ts +1 -3
  19. package/package.json +1 -1
@@ -1,18 +1,12 @@
1
- import { GlobalAdminService } from "../../../shared-services/global-admin.service";
2
- import { NuxeoService } from "../nuxeo/nuxeo.service";
3
1
  import * as i0 from "@angular/core";
4
2
  export declare class RolesService {
5
3
  private environment;
6
- private globalAdmin;
7
- private nuxeoService;
8
- constructor(environment: any, globalAdmin: GlobalAdminService, nuxeoService: NuxeoService);
4
+ constructor(environment: any);
9
5
  getRoleName(role: any, code?: any): string;
10
6
  isUserInRole(user: any, role: any, code?: any): boolean;
11
7
  getUserRoleName(user: any, code: any): any;
12
8
  isUserManagerInDepartment(user: any, code: any): boolean;
13
- 'tenant_Fintech_cts_role_HR_Employee': any;
14
- "cts_role_secr": any;
15
- getUserDepartment(currentUser: any, prefix?: string): string;
9
+ getUserDepartment(currentUser: any, prefix?: string, option?: any): string;
16
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RolesService, never>;
17
11
  static ɵprov: i0.ɵɵInjectableDeclaration<RolesService>;
18
12
  }
@@ -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 */
@@ -72,5 +74,5 @@ export declare class DynamicFormDepartmentComponent implements ControlValueAcces
72
74
  hasErrors(): boolean;
73
75
  onAction(e: any): void;
74
76
  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>;
77
+ 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
78
  }
@@ -18,7 +18,7 @@ export declare class DepartmentApiService {
18
18
  private environment;
19
19
  arabic: any;
20
20
  constructor(CallApiService: CallApiService, translation: TranslationService, nuxeoService: NuxeoService, adapter: AdapterService, globalAdminService: GlobalAdminService, environment: any);
21
- getDepartmentTree(customPageProvider?: any): Observable<any>;
21
+ getDepartmentTree(customPageProvider?: any, customParams?: any): Observable<any>;
22
22
  getDepartmentDetails(code: any, customPageProvider?: any): Observable<any>;
23
23
  getDepartmentNestedTree(code: any, customPageProvider?: any, customParentCodeProperty?: any): Observable<any>;
24
24
  getDepartment(uid: any, fields?: any): Observable<any>;
@@ -6,6 +6,7 @@ import { DepartmentManagementService } from "../dynamic-form-department/services
6
6
  import { DepartmentApiService } from "../dynamic-form-department/services/department-api.service";
7
7
  import { RolesService } from "../../../../Core/services/roles/roles.service";
8
8
  import { NuxeoService } from "../../../../Core/services/nuxeo/nuxeo.service";
9
+ import { GlobalAdminService } from "../../../../shared-services/global-admin.service";
9
10
  import * as i0 from "@angular/core";
10
11
  /**
11
12
  * A tree view selector component that can be used in reactive and template driven forms,
@@ -30,6 +31,7 @@ export declare class TreeviewSelectComponent implements OnInit, OnChanges, OnDes
30
31
  private departmentManagment;
31
32
  private rolesService;
32
33
  private nuxeoService;
34
+ private globalAdmin;
33
35
  multipleSelection: any[];
34
36
  selectedItem: any;
35
37
  selectedParentWithChild: any[];
@@ -70,7 +72,7 @@ export declare class TreeviewSelectComponent implements OnInit, OnChanges, OnDes
70
72
  languageSubscription: Subscription;
71
73
  onDestroy$: Subject<boolean>;
72
74
  private dropdownTreeviewSelectI18n;
73
- constructor(i18n: TreeviewI18n, translation: TranslationService, departmentApiService: DepartmentApiService, departmentManagment: DepartmentManagementService, rolesService: RolesService, nuxeoService: NuxeoService);
75
+ constructor(i18n: TreeviewI18n, translation: TranslationService, departmentApiService: DepartmentApiService, departmentManagment: DepartmentManagementService, rolesService: RolesService, nuxeoService: NuxeoService, globalAdmin: GlobalAdminService);
74
76
  ngOnInit(): void;
75
77
  ngOnDestroy(): void;
76
78
  ngOnChanges(): void;
@@ -1,12 +1,10 @@
1
- import { NuxeoService } from '../Core/services/nuxeo/nuxeo.service';
2
1
  import { EvaluatorsService } from '../directive/permissions/evaluators.service';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class GlobalAdminService {
5
- private nuxeo;
6
4
  private evaluatorService;
7
5
  isGlobalAdmin: boolean;
8
6
  activeTenant: any;
9
- constructor(nuxeo: NuxeoService, evaluatorService: EvaluatorsService);
7
+ constructor(evaluatorService: EvaluatorsService);
10
8
  checkIfGlobalAdmin(): Promise<boolean>;
11
9
  static ɵfac: i0.ɵɵFactoryDeclaration<GlobalAdminService, never>;
12
10
  static ɵprov: i0.ɵɵInjectableDeclaration<GlobalAdminService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "3.3.6",
3
+ "version": "3.3.8",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",