nuxeo-development-framework 3.3.1 → 3.3.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.
Files changed (21) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +2593 -2523
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/Core/services/roles/roles.service.js +20 -5
  4. package/esm2015/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.js +2 -22
  5. package/esm2015/lib/components/documents/components/document-scan/document-scan.service.js +1 -1
  6. package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +50 -18
  7. package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.js +17 -5
  8. package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +2 -2
  9. package/esm2015/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.js +2 -2
  10. package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +1 -1
  11. package/esm2015/lib/shared-services/global-admin.service.js +24 -0
  12. package/esm2015/public-api.js +2 -1
  13. package/fesm2015/nuxeo-development-framework.js +268 -200
  14. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  15. package/lib/Core/services/roles/roles.service.d.ts +7 -1
  16. package/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.d.ts +0 -11
  17. package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +3 -1
  18. package/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.d.ts +3 -1
  19. package/lib/shared-services/global-admin.service.d.ts +13 -0
  20. package/package.json +1 -1
  21. package/public-api.d.ts +1 -0
@@ -1,11 +1,17 @@
1
+ import { GlobalAdminService } from "../../../shared-services/global-admin.service";
2
+ import { NuxeoService } from "../nuxeo/nuxeo.service";
1
3
  import * as i0 from "@angular/core";
2
4
  export declare class RolesService {
3
5
  private environment;
4
- constructor(environment: any);
6
+ private globalAdmin;
7
+ private nuxeoService;
8
+ constructor(environment: any, globalAdmin: GlobalAdminService, nuxeoService: NuxeoService);
5
9
  getRoleName(role: any, code?: any): string;
6
10
  isUserInRole(user: any, role: any, code?: any): boolean;
7
11
  getUserRoleName(user: any, code: any): any;
8
12
  isUserManagerInDepartment(user: any, code: any): boolean;
13
+ 'tenant_Fintech_cts_role_HR_Employee': any;
14
+ "cts_role_secr": any;
9
15
  getUserDepartment(currentUser: any, prefix?: string): string;
10
16
  static ɵfac: i0.ɵɵFactoryDeclaration<RolesService, never>;
11
17
  static ɵprov: i0.ɵɵInjectableDeclaration<RolesService>;
@@ -15,17 +15,6 @@ 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;
29
18
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomToastrComponent, never>;
30
19
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomToastrComponent, "cts-custom-toastr", never, {}, {}, never, never>;
31
20
  }
@@ -4,6 +4,7 @@ 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';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare const departmentCacheBuster$: Subject<void>;
9
10
  export declare const minute = 60000;
@@ -13,9 +14,10 @@ export declare class DepartmentApiService {
13
14
  private translation;
14
15
  private nuxeoService;
15
16
  private adapter;
17
+ private globalAdminService;
16
18
  private environment;
17
19
  arabic: any;
18
- constructor(CallApiService: CallApiService, translation: TranslationService, nuxeoService: NuxeoService, adapter: AdapterService, environment: any);
20
+ constructor(CallApiService: CallApiService, translation: TranslationService, nuxeoService: NuxeoService, adapter: AdapterService, globalAdminService: GlobalAdminService, environment: any);
19
21
  getDepartmentTree(customPageProvider?: any): Observable<any>;
20
22
  getDepartmentDetails(code: any, customPageProvider?: any): Observable<any>;
21
23
  getDepartmentNestedTree(code: any, customPageProvider?: any, customParentCodeProperty?: any): Observable<any>;
@@ -1,10 +1,12 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { NuxeoService } from '../../../../../Core/services/nuxeo/nuxeo.service';
3
+ import { GlobalAdminService } from '../../../../../shared-services/global-admin.service';
3
4
  import * as i0 from "@angular/core";
4
5
  /** @ignore */
5
6
  export declare class UsersInDepartmentsApiService {
6
7
  private nuxeoService;
7
- constructor(nuxeoService: NuxeoService);
8
+ private globalAdmin;
9
+ constructor(nuxeoService: NuxeoService, globalAdmin: GlobalAdminService);
8
10
  getAllUsers(params?: {}): Observable<any>;
9
11
  getUsersSuggestions(username: string, params?: {}): Observable<any>;
10
12
  getCtsUsers(deptTitle: any, params?: {}): Observable<any>;
@@ -0,0 +1,13 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",
package/public-api.d.ts CHANGED
@@ -186,6 +186,7 @@ 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';
189
190
  export * from './lib/Core/services/callApi/call-api.service';
190
191
  export * from './lib/Core/services/nuxeo/nuxeo.service';
191
192
  export * from './lib/Core/services/translation/translation.service';