@ieeesa-npm/groups 0.10.8 → 0.10.9
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/esm2022/lib/assets/constants.json +1 -4
- package/esm2022/lib/components/add-user-roster/add-user-roster.component.mjs +6 -5
- package/esm2022/lib/components/edit-user-roles/edit-user-roles.component.mjs +2 -2
- package/esm2022/lib/components/view-roster/view-roster.component.mjs +3 -3
- package/esm2022/lib/groups.component.mjs +1 -1
- package/esm2022/lib/models/user.model.mjs +1 -1
- package/esm2022/lib/services/groups.service.mjs +14 -6
- package/fesm2022/ieeesa-npm-groups.mjs +20 -14
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/components/add-user-roster/add-user-roster.component.d.ts +3 -3
- package/lib/components/edit-user-roles/edit-user-roles.component.d.ts +1 -1
- package/lib/components/view-roster/view-roster.component.d.ts +2 -2
- package/lib/groups.component.d.ts +2 -2
- package/lib/models/user.model.d.ts +1 -2
- package/lib/services/groups.service.d.ts +21 -10
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
|
-
import {
|
|
4
|
+
import { AlertType, AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
|
|
5
5
|
import { FormGrid, AlignType, CheckboxOption, SelectOption, FormModel, FieldConfig, DynamicFormComponent } from '@ieeesa-npm/presentation';
|
|
6
6
|
import { GroupsService } from '../../services/groups.service';
|
|
7
7
|
import { AddOrEditUserIndividualRosterPayload, AddOrEditUserPayload } from '../../models/add-or-edit-user-group.model';
|
|
@@ -74,7 +74,7 @@ export declare class AddUserRosterComponent implements OnInit, OnDestroy {
|
|
|
74
74
|
*/
|
|
75
75
|
validateUserExistence(): void;
|
|
76
76
|
/**
|
|
77
|
-
* Initialize form
|
|
77
|
+
* Initialize the form fields required for add new user to the roster based on the searched email.
|
|
78
78
|
* @memberof AddUserRosterComponent
|
|
79
79
|
*/
|
|
80
80
|
initializeAddUserFormGroup(): void;
|
|
@@ -195,7 +195,7 @@ export declare class AddUserRosterComponent implements OnInit, OnDestroy {
|
|
|
195
195
|
* @return -returns nothing
|
|
196
196
|
* @memberof AddUserRosterComponent
|
|
197
197
|
*/
|
|
198
|
-
showAlertMessage(message: string | string[], alertType: AlertType): void;
|
|
198
|
+
showAlertMessage(message: string | string[], alertType: AlertType, isHtmlContent?: boolean): void;
|
|
199
199
|
/**
|
|
200
200
|
* NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
201
201
|
* @memberof AddUserRosterComponent
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { GroupsService } from '../../services/groups.service';
|
|
3
|
-
import { AlignType, CheckboxOption, FieldConfig, FormGrid, FormModel, SelectOption
|
|
3
|
+
import { AlignType, CheckboxOption, DynamicFormComponent, FieldConfig, FormGrid, FormModel, SelectOption } from '@ieeesa-npm/presentation';
|
|
4
4
|
import { FormGroup } from '@angular/forms';
|
|
5
5
|
import { GroupUserInfo } from '../../models/group-user-info.model';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
@@ -5,7 +5,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
5
5
|
import { TableColumnSchema, TableActions, AlignType, ChipOption, CheckboxOption, FiltersAndOptions } from '@ieeesa-npm/presentation';
|
|
6
6
|
import { AlertType, AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
|
|
7
7
|
import { GroupsService } from '../../services/groups.service';
|
|
8
|
-
import { User,
|
|
8
|
+
import { User, LoggedInUserInfo } from '../../models/user.model';
|
|
9
9
|
import { GroupUserInfo } from '../../models/group-user-info.model';
|
|
10
10
|
import { GroupRosterType } from '../../models/roster-type.model';
|
|
11
11
|
import { FilterType } from '../../models/filter-type.model';
|
|
@@ -51,7 +51,7 @@ export declare class ViewRosterComponent implements AfterViewInit, OnDestroy, On
|
|
|
51
51
|
tableColumnsForIndividual: any;
|
|
52
52
|
tableColumnsForSystemUsers: any;
|
|
53
53
|
emptyFieldValueReplacedBy: any;
|
|
54
|
-
userInfo:
|
|
54
|
+
userInfo: LoggedInUserInfo;
|
|
55
55
|
constructor(dialog: MatDialog, groupService: GroupsService, alertService: AlertsService, cdr: ChangeDetectorRef, globalErrorHandlerService: GlobalErrorHandlerService);
|
|
56
56
|
ngOnInit(): void;
|
|
57
57
|
/**
|
|
@@ -14,7 +14,7 @@ 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
16
|
import { GroupPermissionsMapService } from './services/group-permissions-map-service';
|
|
17
|
-
import {
|
|
17
|
+
import { LoggedInUserInfo } from './models/user.model';
|
|
18
18
|
import * as i0 from "@angular/core";
|
|
19
19
|
/**
|
|
20
20
|
* 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.
|
|
@@ -60,7 +60,7 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
|
|
|
60
60
|
applicationId: string;
|
|
61
61
|
apiBaseURL: string;
|
|
62
62
|
userPermissions: UserPermission[];
|
|
63
|
-
userInfo:
|
|
63
|
+
userInfo: LoggedInUserInfo;
|
|
64
64
|
permissionType: typeof PermissionType;
|
|
65
65
|
functionType: GroupFunctionType;
|
|
66
66
|
alignmentType: typeof AlignType;
|
|
@@ -50,12 +50,11 @@ export interface SearchUsersPayload {
|
|
|
50
50
|
ascendingOrder: boolean;
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
53
|
+
export interface LoggedInUserInfo {
|
|
54
54
|
appId: string;
|
|
55
55
|
userId: string;
|
|
56
56
|
ssoId: string;
|
|
57
57
|
firstName: string;
|
|
58
58
|
lastName: string;
|
|
59
59
|
email: string;
|
|
60
|
-
canDelete?: boolean;
|
|
61
60
|
}
|
|
@@ -5,7 +5,7 @@ import { AlertsService, HttpService } from '@ieeesa-npm/utility';
|
|
|
5
5
|
import { GetGroupResponse, GetGroupsPayload } from '../models/view-group.model';
|
|
6
6
|
import { DeleteGroupPayload } from '../models/delete-group.model';
|
|
7
7
|
import { GroupInfo } from '../models/group-info.model';
|
|
8
|
-
import { SearchUsersPayload, FilterUsersPayload, GetGroupUsersResponse, User,
|
|
8
|
+
import { SearchUsersPayload, FilterUsersPayload, GetGroupUsersResponse, User, LoggedInUserInfo } from '../models/user.model';
|
|
9
9
|
import { CheckboxOption } from '@ieeesa-npm/presentation';
|
|
10
10
|
import { EditGroupPayload } from '../models/edit-group.model';
|
|
11
11
|
import { GroupFunctionType } from '../models/group-function-type.model';
|
|
@@ -53,12 +53,12 @@ export declare class GroupsService {
|
|
|
53
53
|
"1014": string;
|
|
54
54
|
"1015": string;
|
|
55
55
|
"1016": string;
|
|
56
|
-
"1017": string;
|
|
56
|
+
"1017": string;
|
|
57
|
+
"1018": string; /**
|
|
57
58
|
* Returns the selected group parent group info.
|
|
58
59
|
* @return {(GroupInfo | undefined)} -group info.
|
|
59
60
|
* @memberof GroupsService
|
|
60
61
|
*/
|
|
61
|
-
"1018": string;
|
|
62
62
|
"1019": string;
|
|
63
63
|
"1020": string;
|
|
64
64
|
"1021": string;
|
|
@@ -70,6 +70,11 @@ export declare class GroupsService {
|
|
|
70
70
|
"1027": string;
|
|
71
71
|
"1028": string;
|
|
72
72
|
"1029": string;
|
|
73
|
+
/**
|
|
74
|
+
* Returns group function type.
|
|
75
|
+
* @return {GroupFunctionType} -group function type.
|
|
76
|
+
* @memberof GroupsService
|
|
77
|
+
*/
|
|
73
78
|
"1030": string;
|
|
74
79
|
"1031": string;
|
|
75
80
|
"1032": string;
|
|
@@ -112,7 +117,7 @@ export declare class GroupsService {
|
|
|
112
117
|
userGroupPermissions: GroupPermission[];
|
|
113
118
|
groupTypes: GroupTypeConfiguration[];
|
|
114
119
|
isParentGroupChanged: boolean;
|
|
115
|
-
userInfo:
|
|
120
|
+
userInfo: LoggedInUserInfo;
|
|
116
121
|
constructor(httpService: HttpService, userPermissionsService: UserPermissionsService, groupPermissionsService: GroupPermissionsMapService, alertService: AlertsService);
|
|
117
122
|
setAppConfig(apiBaseUrl: string, userPermission: any): void;
|
|
118
123
|
/**
|
|
@@ -242,6 +247,12 @@ export declare class GroupsService {
|
|
|
242
247
|
* @memberof GroupsService
|
|
243
248
|
*/
|
|
244
249
|
getMemberTypes(): Observable<MemberTypeResponse>;
|
|
250
|
+
/**
|
|
251
|
+
* Returns the true if logged in user is admin.
|
|
252
|
+
* @return {boolean}
|
|
253
|
+
* @memberof GroupsService
|
|
254
|
+
*/
|
|
255
|
+
isAdminUser(): boolean;
|
|
245
256
|
/**
|
|
246
257
|
* Concatenates the group users assigned roles name separated by comma as string and returns the group users in an array.
|
|
247
258
|
* @param {GetGroupUsersResponse} response
|
|
@@ -342,17 +353,17 @@ export declare class GroupsService {
|
|
|
342
353
|
*/
|
|
343
354
|
getUserGroupPermissions(): GroupPermission[];
|
|
344
355
|
/**
|
|
345
|
-
* Sets the logged In user
|
|
346
|
-
* @param {
|
|
356
|
+
* Sets the logged In user information.
|
|
357
|
+
* @param {LoggedInUserInfo} userInfo
|
|
347
358
|
* @memberof GroupsService
|
|
348
359
|
*/
|
|
349
|
-
setUserInfo(userInfo:
|
|
360
|
+
setUserInfo(userInfo: LoggedInUserInfo): void;
|
|
350
361
|
/**
|
|
351
|
-
* Returns the logged in user
|
|
352
|
-
* @return {
|
|
362
|
+
* Returns the logged in user information.
|
|
363
|
+
* @return {LoggedInUserInfo}
|
|
353
364
|
* @memberof GroupsService
|
|
354
365
|
*/
|
|
355
|
-
getUserInfo():
|
|
366
|
+
getUserInfo(): LoggedInUserInfo;
|
|
356
367
|
/**
|
|
357
368
|
* Validates permission based access for provided feature.
|
|
358
369
|
* Checks for group level permissions, and provides access based on individual group permissions.
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ieeesa-npm/groups",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.1.0",
|
|
6
6
|
"@angular/core": "^16.1.0",
|
|
7
|
-
"@ieeesa-npm/presentation": "^0.11.
|
|
7
|
+
"@ieeesa-npm/presentation": "^0.11.6",
|
|
8
8
|
"@ieeesa-npm/shared-styles": "^0.2.6",
|
|
9
|
-
"@ieeesa-npm/utility": "^0.10.
|
|
9
|
+
"@ieeesa-npm/utility": "^0.10.4"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tslib": "^2.3.0"
|