@ieeesa-npm/groups 0.10.3 → 0.10.4

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.
@@ -13,7 +13,6 @@ import { EditGroupAndParentInfo } from './models/edit-group.model';
13
13
  import { UserPermissionsService } from './services/user-permissions.service';
14
14
  import { GroupPermission, UserPermission } from './models/group-permissions.model';
15
15
  import { PermissionType } from './models/permission-type.model';
16
- import { GroupPermissionsMapService } from './services/group-permissions-map-service';
17
16
  import * as i0 from "@angular/core";
18
17
  /**
19
18
  * Groups component is a wrapper or container component for groups management reusable component and in this component integrates all group management functionalities and this will be entry component for managing groups when it is consumed in other applications.
@@ -26,7 +25,6 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
26
25
  private breakpointObserverService;
27
26
  globalErrorHandlerService: GlobalErrorHandlerService;
28
27
  private userPermissionsService;
29
- private groupPermissionsService;
30
28
  destroy$: Subject<boolean>;
31
29
  dialogRef: any;
32
30
  constants: any;
@@ -69,7 +67,7 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
69
67
  trimmedSearchTerm: string;
70
68
  userGroupPermissions: GroupPermission[];
71
69
  supportMessage: string;
72
- constructor(dialog: MatDialog, groupsService: GroupsService, alertService: AlertsService, breakpointObserverService: BreakpointObserverService, globalErrorHandlerService: GlobalErrorHandlerService, userPermissionsService: UserPermissionsService, groupPermissionsService: GroupPermissionsMapService);
70
+ constructor(dialog: MatDialog, groupsService: GroupsService, alertService: AlertsService, breakpointObserverService: BreakpointObserverService, globalErrorHandlerService: GlobalErrorHandlerService, userPermissionsService: UserPermissionsService);
73
71
  /**
74
72
  * Initialize the groups component.
75
73
  * @return -returns nothing
@@ -1,4 +1,3 @@
1
- import { UserPermission } from './group-permissions.model';
2
1
  import { GroupType } from './group-types.model';
3
2
  export interface GroupInfo {
4
3
  groupId: string;
@@ -13,5 +12,4 @@ export interface GroupInfo {
13
12
  groupTypeInfo?: GroupType;
14
13
  children?: GroupInfo[];
15
14
  noOfChildren?: number;
16
- permissions: UserPermission[] | null;
17
15
  }
@@ -4,13 +4,9 @@ export declare enum PermissionType {
4
4
  CREATE_SUBGROUP = "CREATE_SUBGROUP",
5
5
  EDIT_GROUP = "EDIT_GROUP",
6
6
  DELETE_GROUP = "DELETE_GROUP",
7
+ MANAGE_SYSTEM_USERS = "MANAGE_SYSTEM_USERS",
7
8
  VIEW_GROUP_OFFICERS = "VIEW_GROUP_OFFICERS",
8
9
  MANAGE_GROUP_OFFICERS = "MANAGE_GROUP_OFFICERS",
9
10
  VIEW_GROUP_MEMBERS = "VIEW_GROUP_MEMBERS",
10
- MANAGE_GROUP_MEMBERS = "MANAGE_GROUP_MEMBERS",
11
- MANAGE_SYSTEM_USERS = "MANAGE_SYSTEM_USERS",
12
- VIEW_ALL_GROUPS = "VIEW_ALL_GROUPS",
13
- MANAGE_ALL_GROUPS = "MANAGE_ALL_GROUPS",
14
- VIEW_ALL_ROSTERS = "VIEW_ALL_ROSTERS",
15
- MANAGE_ALL_ROSTERS = "MANAGE_ALL_ROSTERS"
11
+ MANAGE_GROUP_MEMBERS = "MANAGE_GROUP_MEMBERS"
16
12
  }
@@ -2,20 +2,7 @@ import { GroupPermission } from '../models/group-permissions.model';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class GroupPermissionsMapService {
4
4
  groupPermissions: GroupPermission[];
5
- globalGroupPermissions: GroupPermission[];
6
- /**
7
- * Returns group-wise permission mappings.
8
- * @return {GroupPermission[]}
9
- * @memberof GroupPermissionsMapService
10
- */
11
5
  getGroupPermissions(): GroupPermission[];
12
- /**
13
- * Returns global permissions mapping for groups.
14
- * Global permissions are maintained separately as global permissions also include role based group wise permissions irrespective of the attached group.
15
- * @return {GroupPermission[]}
16
- * @memberof GroupPermissionsMapService
17
- */
18
- getGlobalGroupPermissions(): GroupPermission[];
19
6
  static ɵfac: i0.ɵɵFactoryDeclaration<GroupPermissionsMapService, never>;
20
7
  static ɵprov: i0.ɵɵInjectableDeclaration<GroupPermissionsMapService>;
21
8
  }
@@ -19,10 +19,9 @@ import { MemberTypeResponse } from '../models/member-type.model';
19
19
  import { ClassificationResponse } from '../models/classification.model';
20
20
  import { GroupRosterType } from '../models/roster-type.model';
21
21
  import { FormControlStatus } from '@angular/forms';
22
- import { GroupPermission, UserPermission } from '../models/group-permissions.model';
22
+ import { GroupPermission } from '../models/group-permissions.model';
23
23
  import { PermissionType } from '../models/permission-type.model';
24
24
  import { UserPermissionsService } from './user-permissions.service';
25
- import { GroupPermissionsMapService } from './group-permissions-map-service';
26
25
  import { ParentGroupsInfo } from '../models/parent-groups-info.model';
27
26
  import * as i0 from "@angular/core";
28
27
  /**
@@ -32,7 +31,6 @@ import * as i0 from "@angular/core";
32
31
  export declare class GroupsService {
33
32
  private httpService;
34
33
  private userPermissionsService;
35
- private groupPermissionsService;
36
34
  alertService: AlertsService;
37
35
  groupsText: {
38
36
  ER1000: string;
@@ -40,7 +38,12 @@ export declare class GroupsService {
40
38
  "1001": string;
41
39
  "1002": string;
42
40
  "1003": string;
43
- "1004": string;
41
+ "1004": string; /**
42
+ * Sets selected group info.
43
+ * @param {(GroupInfo | undefined)} selectedGroupInfo -selected group info.
44
+ * @param {(GroupInfo | undefined)} [selectedGroupParentInfo] -selected parent group info.
45
+ * @memberof GroupsService
46
+ */
44
47
  "1005": string;
45
48
  "1006": string;
46
49
  "1007": string;
@@ -69,12 +72,7 @@ export declare class GroupsService {
69
72
  "1030": string;
70
73
  "1031": string;
71
74
  "1032": string;
72
- "1033": string; /**
73
- * Gets the group users for the given group id.
74
- * @param {string} groupId
75
- * @return {Observable<GetGroupUsersResponse>}
76
- * @memberof GroupsService
77
- */
75
+ "1033": string;
78
76
  "1034": string;
79
77
  "1035": string;
80
78
  "1036": string;
@@ -111,7 +109,7 @@ export declare class GroupsService {
111
109
  userGroupPermissions: GroupPermission[];
112
110
  groupTypes: GroupTypeConfiguration[];
113
111
  isParentGroupChanged: boolean;
114
- constructor(httpService: HttpService, userPermissionsService: UserPermissionsService, groupPermissionsService: GroupPermissionsMapService, alertService: AlertsService);
112
+ constructor(httpService: HttpService, userPermissionsService: UserPermissionsService, alertService: AlertsService);
115
113
  setAppConfig(apiBaseUrl: string, userPermission: any): void;
116
114
  /**
117
115
  * Gets application group types from API and returns it as an observable.
@@ -341,13 +339,11 @@ export declare class GroupsService {
341
339
  getUserGroupPermissions(): GroupPermission[];
342
340
  /**
343
341
  * Validates permission based access for provided feature.
344
- * Checks for group level permissions, and provides access based on individual group permissions.
345
- * For global permissions provides access across the individual groups or System groups.
346
342
  * @param {PermissionType} permissionType
347
343
  * @return {boolean}
348
344
  * @memberof GroupsService
349
345
  */
350
- validateAccess(permissionType: PermissionType, permissions?: UserPermission[] | null): boolean;
346
+ validateAccess(permissionType: PermissionType): boolean;
351
347
  /**
352
348
  * Store the loaded group types.
353
349
  * @param {GroupTypeConfiguration[]} groupTypes
@@ -19,7 +19,7 @@ export declare class UserPermissionsService {
19
19
  * @return {GroupPermissions[]}
20
20
  * @memberof UserPermissionsService
21
21
  */
22
- filterUserGroupPermissions(userPermissions: UserPermission[], groupPermissions: GroupPermission[]): GroupPermission[];
22
+ filterUserGroupPermissions(userPermissions: UserPermission[]): GroupPermission[];
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<UserPermissionsService, never>;
24
24
  static ɵprov: i0.ɵɵInjectableDeclaration<UserPermissionsService>;
25
25
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/groups",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
7
- "@ieeesa-npm/presentation": "^0.11.0",
7
+ "@ieeesa-npm/presentation": "^0.10.9",
8
8
  "@ieeesa-npm/shared-styles": "^0.2.6",
9
- "@ieeesa-npm/utility": "^0.9.9"
9
+ "@ieeesa-npm/utility": "^0.9.8"
10
10
  },
11
11
  "dependencies": {
12
12
  "tslib": "^2.3.0"