@ieeesa-npm/groups 0.6.1 → 0.6.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.
- package/esm2022/lib/assets/constants.json +26 -5
- package/esm2022/lib/components/add-user-roster/add-user-roster.component.mjs +1 -1
- package/esm2022/lib/components/edit-user-roles/edit-user-roles.component.mjs +221 -0
- package/esm2022/lib/components/tree-view/tree-view.component.mjs +7 -4
- package/esm2022/lib/components/view-roster/view-roster.component.mjs +113 -21
- package/esm2022/lib/groups.component.mjs +34 -4
- package/esm2022/lib/models/add-new-user.model.mjs +1 -1
- package/esm2022/lib/models/add-or-edit-user-group.model.mjs +2 -0
- package/esm2022/lib/models/delete-user-group.model.mjs +2 -0
- package/esm2022/lib/models/group-function-type.model.mjs +3 -2
- package/esm2022/lib/models/group-user-info.model.mjs +2 -0
- package/esm2022/lib/models/roster-function-type.model.mjs +7 -0
- package/esm2022/lib/models/user.model.mjs +1 -1
- package/esm2022/lib/services/groups.service.mjs +72 -6
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/ieeesa-npm-groups.mjs +463 -35
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/components/edit-user-roles/edit-user-roles.component.d.ts +89 -0
- package/lib/components/view-roster/view-roster.component.d.ts +32 -3
- package/lib/groups.component.d.ts +6 -0
- package/lib/models/add-new-user.model.d.ts +0 -15
- package/lib/models/add-or-edit-user-group.model.d.ts +15 -0
- package/lib/models/delete-user-group.model.d.ts +5 -0
- package/lib/models/group-function-type.model.d.ts +3 -2
- package/lib/models/group-user-info.model.d.ts +6 -0
- package/lib/models/roster-function-type.model.d.ts +4 -0
- package/lib/models/user.model.d.ts +1 -0
- package/lib/services/groups.service.d.ts +52 -17
- package/package.json +3 -3
- package/public-api.d.ts +4 -0
|
@@ -3,7 +3,7 @@ import { Injectable, EventEmitter, Component, ViewEncapsulation, Output, Input,
|
|
|
3
3
|
import * as i2$1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { Validators } from '@angular/forms';
|
|
6
|
-
import { AlignType, FormControlType, DynamicFormComponent, MenuComponent, IconButtonComponent, TextTruncatedDirective, SearchType, ChipsType, TableColumnType, TableColumnSortDirection, DataTableComponent, ModalComponent,
|
|
6
|
+
import { AlignType, FormControlType, DynamicFormComponent, MenuComponent, IconButtonComponent, TextTruncatedDirective, SearchType, ChipsType, TableColumnType, TableColumnSortDirection, ModalConfirmationComponent, DataTableComponent, ModalComponent, SearchComponent, SelectComponent, LegendComponent } from '@ieeesa-npm/presentation';
|
|
7
7
|
import * as i2 from '@ieeesa-npm/utility';
|
|
8
8
|
import { AlertType, AlertsService, ModalType } from '@ieeesa-npm/utility';
|
|
9
9
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
@@ -199,6 +199,19 @@ var deleteGroup = {
|
|
|
199
199
|
promptMessage: "Are you sure you want to delete the group: "
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
|
+
var deleteUsersGroup = {
|
|
203
|
+
message: {
|
|
204
|
+
success: {
|
|
205
|
+
removed: "user(s) removed successfully."
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
confirmationInfo: {
|
|
209
|
+
leftButtonLabel: "Cancel",
|
|
210
|
+
rightButtonLabel: "Ok",
|
|
211
|
+
promptMessagePart1: "Are you sure you want to remove ",
|
|
212
|
+
promptMessagePart2: "selected user(s) from the"
|
|
213
|
+
}
|
|
214
|
+
};
|
|
202
215
|
var viewRoster = {
|
|
203
216
|
tableColumns: {
|
|
204
217
|
name: "Name",
|
|
@@ -208,6 +221,14 @@ var viewRoster = {
|
|
|
208
221
|
searchPlaceholder: "Search by Name/Email Address",
|
|
209
222
|
filterByRole: "Role"
|
|
210
223
|
};
|
|
224
|
+
var editUserRoles = {
|
|
225
|
+
heading: "Edit System User",
|
|
226
|
+
message: {
|
|
227
|
+
success: {
|
|
228
|
+
submission: "Changes saved successfully."
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
};
|
|
211
232
|
var errors = {
|
|
212
233
|
"1001": "Group Name already in use.",
|
|
213
234
|
"1002": "Group Short Name already in use.",
|
|
@@ -215,7 +236,7 @@ var errors = {
|
|
|
215
236
|
"1004": "Group Name is required.",
|
|
216
237
|
"1005": "Group Short Name is required.",
|
|
217
238
|
"1006": "Group Type is required.",
|
|
218
|
-
"1007": "Group
|
|
239
|
+
"1007": "Group id is required.",
|
|
219
240
|
"1008": " has either been moved or already deleted.",
|
|
220
241
|
"1009": "Unable to delete a parent group, please delete or reassign any child groups first.",
|
|
221
242
|
"1010": "Group types are not found for the tenant or application!",
|
|
@@ -231,7 +252,7 @@ var errors = {
|
|
|
231
252
|
"1020": "Role id is required.",
|
|
232
253
|
"1021": "User id is required.",
|
|
233
254
|
"1022": "User has already been added to this group.",
|
|
234
|
-
"1023": "Role doesn't
|
|
255
|
+
"1023": "Role doesn't exist for the systems user group.",
|
|
235
256
|
"1024": "No user(s) found!",
|
|
236
257
|
"1025": "User has already been added to this group.",
|
|
237
258
|
"1026": "User does not belong to the selected group.",
|
|
@@ -241,10 +262,10 @@ var errors = {
|
|
|
241
262
|
"1030": "No record found!",
|
|
242
263
|
"1031": "No record found!",
|
|
243
264
|
"1032": "No record found!",
|
|
244
|
-
"2001": "Email does not
|
|
265
|
+
"2001": "Email does not exist.",
|
|
245
266
|
"2002": "Role does not belong to the group type.",
|
|
246
|
-
"2010": "User
|
|
247
|
-
"2011": "User
|
|
267
|
+
"2010": "User not found.",
|
|
268
|
+
"2011": "User not found.",
|
|
248
269
|
ER1000: "Allowed group types are not found for the selected group!"
|
|
249
270
|
};
|
|
250
271
|
var ariaLabel = {
|
|
@@ -256,7 +277,9 @@ var constants = {
|
|
|
256
277
|
editGroup: editGroup,
|
|
257
278
|
viewGroups: viewGroups,
|
|
258
279
|
deleteGroup: deleteGroup,
|
|
280
|
+
deleteUsersGroup: deleteUsersGroup,
|
|
259
281
|
viewRoster: viewRoster,
|
|
282
|
+
editUserRoles: editUserRoles,
|
|
260
283
|
errors: errors,
|
|
261
284
|
ariaLabel: ariaLabel
|
|
262
285
|
};
|
|
@@ -268,7 +291,9 @@ var screenTexts = /*#__PURE__*/Object.freeze({
|
|
|
268
291
|
createGroup: createGroup,
|
|
269
292
|
default: constants,
|
|
270
293
|
deleteGroup: deleteGroup,
|
|
294
|
+
deleteUsersGroup: deleteUsersGroup,
|
|
271
295
|
editGroup: editGroup,
|
|
296
|
+
editUserRoles: editUserRoles,
|
|
272
297
|
errors: errors,
|
|
273
298
|
viewGroups: viewGroups,
|
|
274
299
|
viewRoster: viewRoster
|
|
@@ -299,8 +324,9 @@ var GroupFunctionType;
|
|
|
299
324
|
GroupFunctionType["EDIT"] = "EDIT";
|
|
300
325
|
GroupFunctionType["VIEW_ROSTER"] = "VIEW_ROSTER";
|
|
301
326
|
GroupFunctionType["FILTER"] = "FILTER";
|
|
302
|
-
GroupFunctionType["ADD_USER_TO_ROSTER"] = "ADD_USER_TO_ROSTER";
|
|
303
327
|
GroupFunctionType["TOGGLE"] = "TOGGLE";
|
|
328
|
+
GroupFunctionType["EDIT_ROSTER_USER_ROLE"] = "EDIT_ROSTER_USER_ROLE";
|
|
329
|
+
GroupFunctionType["ADD_USER_TO_ROSTER"] = "ADD_USER_TO_ROSTER";
|
|
304
330
|
})(GroupFunctionType || (GroupFunctionType = {}));
|
|
305
331
|
|
|
306
332
|
/**
|
|
@@ -375,6 +401,25 @@ class GroupsService {
|
|
|
375
401
|
throw error;
|
|
376
402
|
}));
|
|
377
403
|
}
|
|
404
|
+
/**
|
|
405
|
+
* Deletes a user from group based on the provided information
|
|
406
|
+
* @param {groupId} string -groupId of the selected group from where selected user to be deleted.
|
|
407
|
+
* @param {userId} Array -user ids of selected users who are deleted from the selected group
|
|
408
|
+
* @return {*} {Observable<any>} -Observable representing the group deletion response
|
|
409
|
+
* @memberof GroupsService
|
|
410
|
+
*/
|
|
411
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
412
|
+
deleteUsersGroup(deleteUserGroupPayload
|
|
413
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
414
|
+
) {
|
|
415
|
+
return this.httpService
|
|
416
|
+
.putData(`${this.apiBaseUrl}/groups/roster/deleteGroupUsers`, deleteUserGroupPayload)
|
|
417
|
+
.pipe(map((response) => {
|
|
418
|
+
return response;
|
|
419
|
+
}), catchError((error) => {
|
|
420
|
+
throw error;
|
|
421
|
+
}));
|
|
422
|
+
}
|
|
378
423
|
/**
|
|
379
424
|
* Posts create group form data to server using HttpService for creating new group.
|
|
380
425
|
* @param {CreateGroupPayload} createGroupPayload -create group form data which includes group name, type, short name, scope.
|
|
@@ -583,7 +628,7 @@ class GroupsService {
|
|
|
583
628
|
/**
|
|
584
629
|
* Gets the user details for the selected group
|
|
585
630
|
* @param {GetUserDetailsPayload} payload
|
|
586
|
-
* @return {Observable<
|
|
631
|
+
* @return {Observable<AddOrEditGroupUserDetailsResponse>}
|
|
587
632
|
* @memberof GroupsService
|
|
588
633
|
*/
|
|
589
634
|
getGroupUserDetails(payload) {
|
|
@@ -597,13 +642,13 @@ class GroupsService {
|
|
|
597
642
|
}
|
|
598
643
|
/**
|
|
599
644
|
* Posts add new user form data to the API for the selected group and returns the success or failure response.
|
|
600
|
-
* @param {
|
|
601
|
-
* @return {Observable<
|
|
645
|
+
* @param {AddOrEditUserPayload} AddOrEditUserPayload
|
|
646
|
+
* @return {Observable<AddOrEditGroupUserDetailsResponse>}
|
|
602
647
|
* @memberof GroupsService
|
|
603
648
|
*/
|
|
604
|
-
addNewGroupUser(
|
|
649
|
+
addNewGroupUser(AddOrEditUserPayload) {
|
|
605
650
|
return this.httpService
|
|
606
|
-
.postData(`${this.apiBaseUrl}/groups/roster/createGroupUserRole`,
|
|
651
|
+
.postData(`${this.apiBaseUrl}/groups/roster/createGroupUserRole`, AddOrEditUserPayload)
|
|
607
652
|
.pipe(map((response) => {
|
|
608
653
|
return response;
|
|
609
654
|
}), catchError((error) => {
|
|
@@ -627,6 +672,53 @@ class GroupsService {
|
|
|
627
672
|
this.groupTypeRoles?.map((option) => (option.checked = false));
|
|
628
673
|
return this.groupTypeRoles;
|
|
629
674
|
}
|
|
675
|
+
/**
|
|
676
|
+
* Sets the selected user info.
|
|
677
|
+
* @param {GroupUserInfo} userInfo
|
|
678
|
+
* @memberof GroupsService
|
|
679
|
+
*/
|
|
680
|
+
setSelectedUserInfo(userInfo) {
|
|
681
|
+
this.selectedUserInfo = userInfo;
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Returns selected user info.
|
|
685
|
+
* @return {GroupUserInfo}
|
|
686
|
+
* @memberof GroupsService
|
|
687
|
+
*/
|
|
688
|
+
getSelectedUserInfo() {
|
|
689
|
+
return this.selectedUserInfo;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* Updates group user roles to server using HttpService.
|
|
693
|
+
* @param {AddOrEditUserPayload} payload
|
|
694
|
+
* @return {Observable<AddOrEditGroupUserDetailsResponse>}
|
|
695
|
+
* @memberof GroupsService
|
|
696
|
+
*/
|
|
697
|
+
editGroupsUserRole(payload) {
|
|
698
|
+
return this.httpService
|
|
699
|
+
.putData(`${this.apiBaseUrl}/groups/roster/editGroupUserRole`, payload)
|
|
700
|
+
.pipe(map((response) => {
|
|
701
|
+
return response;
|
|
702
|
+
}), catchError((error) => {
|
|
703
|
+
throw error;
|
|
704
|
+
}));
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* Sets roster function type.
|
|
708
|
+
* @param {RosterFunctionType} rosterFunctionType
|
|
709
|
+
* @memberof GroupsService
|
|
710
|
+
*/
|
|
711
|
+
setRosterFunctionType(rosterFunctionType) {
|
|
712
|
+
this.rosterFunctionType = rosterFunctionType;
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* Returns roster function type.
|
|
716
|
+
* @return {RosterFunctionType}
|
|
717
|
+
* @memberof GroupsService
|
|
718
|
+
*/
|
|
719
|
+
getRosterFunctionType() {
|
|
720
|
+
return this.rosterFunctionType;
|
|
721
|
+
}
|
|
630
722
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: GroupsService, deps: [{ token: i2.HttpService }, { token: i2.AlertsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
631
723
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: GroupsService, providedIn: 'root' }); }
|
|
632
724
|
}
|
|
@@ -1514,9 +1606,12 @@ class TreeViewComponent {
|
|
|
1514
1606
|
e.isToolTipNeeded = false;
|
|
1515
1607
|
if (e?.id === GroupAction.VIEW_ROSTER ||
|
|
1516
1608
|
(e?.id === GroupAction.EDIT_GROUP && !isAdminGroupType) ||
|
|
1517
|
-
(e?.id === GroupAction.DELETE_GROUP &&
|
|
1609
|
+
(e?.id === GroupAction.DELETE_GROUP &&
|
|
1610
|
+
!isAdminGroupType &&
|
|
1611
|
+
!group?.item?.hasChildren) ||
|
|
1518
1612
|
(e?.id === GroupAction.CREATE_SUB_GROUP &&
|
|
1519
|
-
group?.item?.groupTypeInfo?.businessRule?.allowSubGroup &&
|
|
1613
|
+
group?.item?.groupTypeInfo?.businessRule?.allowSubGroup &&
|
|
1614
|
+
!isAdminGroupType)) {
|
|
1520
1615
|
filteredMenu.push(e);
|
|
1521
1616
|
}
|
|
1522
1617
|
});
|
|
@@ -1575,6 +1670,222 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
|
|
|
1575
1670
|
type: Output
|
|
1576
1671
|
}] } });
|
|
1577
1672
|
|
|
1673
|
+
/**
|
|
1674
|
+
* Component implements the functionalities to edit user roles for system user.
|
|
1675
|
+
* @class EditUserRolesComponent
|
|
1676
|
+
* @implements {OnInit}
|
|
1677
|
+
* @implements {OnDestroy}
|
|
1678
|
+
*/
|
|
1679
|
+
class EditUserRolesComponent {
|
|
1680
|
+
constructor(
|
|
1681
|
+
// eslint-disable-next-line no-unused-vars
|
|
1682
|
+
groupsService,
|
|
1683
|
+
// eslint-disable-next-line no-unused-vars
|
|
1684
|
+
globalErrorHandlerService,
|
|
1685
|
+
// eslint-disable-next-line no-unused-vars
|
|
1686
|
+
alertService // eslint-disable-next-line no-empty-function
|
|
1687
|
+
) {
|
|
1688
|
+
this.groupsService = groupsService;
|
|
1689
|
+
this.globalErrorHandlerService = globalErrorHandlerService;
|
|
1690
|
+
this.alertService = alertService;
|
|
1691
|
+
this.destroy$ = new Subject();
|
|
1692
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1693
|
+
this.constants = screenTexts;
|
|
1694
|
+
this.addUserRosterTexts = this.constants?.addUserRoster;
|
|
1695
|
+
this.leftButtonLabel = this.addUserRosterTexts?.label?.leftButtonLabel;
|
|
1696
|
+
this.rightButtonLabel = this.addUserRosterTexts?.label?.saveButtonLabel;
|
|
1697
|
+
this.isSubmitButtonDisabled = true;
|
|
1698
|
+
this.colWidth = { xs: 12, xl: 12, sm: 12, md: 12, lg: 12 };
|
|
1699
|
+
this.selectedUserRoleIds = [];
|
|
1700
|
+
this.actionButtonAlign = AlignType.LEFT;
|
|
1701
|
+
this.submitFormResponse = new EventEmitter();
|
|
1702
|
+
this.formCancel = new EventEmitter();
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* Initialize the edit user role required information and form group array.
|
|
1706
|
+
* @return -returns nothing
|
|
1707
|
+
* @memberof EditUserRolesComponent
|
|
1708
|
+
*/
|
|
1709
|
+
ngOnInit() {
|
|
1710
|
+
this.getSelectedUserDetails();
|
|
1711
|
+
this.editUserRolesFormGroup();
|
|
1712
|
+
}
|
|
1713
|
+
/**
|
|
1714
|
+
* Gets required information for the edit user role component.
|
|
1715
|
+
* @return -returns nothing
|
|
1716
|
+
* @memberof EditUserRolesComponent
|
|
1717
|
+
*/
|
|
1718
|
+
getSelectedUserDetails() {
|
|
1719
|
+
this.selectedUserInfo = this.groupsService?.getSelectedUserInfo();
|
|
1720
|
+
const selectedUserRoleNames = this.selectedUserInfo?.role
|
|
1721
|
+
?.split(',')
|
|
1722
|
+
.map((role) => role?.trim());
|
|
1723
|
+
this.userRoles = this.groupsService?.getGroupTypeUserRoles();
|
|
1724
|
+
this.userRoles?.forEach((role) => {
|
|
1725
|
+
if (selectedUserRoleNames?.includes(role?.name)) {
|
|
1726
|
+
role.checked = true;
|
|
1727
|
+
this.selectedUserRoleIds?.push(role?.id);
|
|
1728
|
+
}
|
|
1729
|
+
});
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Initialize the edit user role form group array.
|
|
1733
|
+
* @memberof EditUserRolesComponent
|
|
1734
|
+
*/
|
|
1735
|
+
editUserRolesFormGroup() {
|
|
1736
|
+
this.editUserRoleFormGroup = {
|
|
1737
|
+
formGroup: [
|
|
1738
|
+
{
|
|
1739
|
+
legend: '',
|
|
1740
|
+
controls: [
|
|
1741
|
+
{
|
|
1742
|
+
type: FormControlType?.TEXT_AREA,
|
|
1743
|
+
label: this.addUserRosterTexts?.label?.email + '*',
|
|
1744
|
+
controlName: 'email',
|
|
1745
|
+
value: this.selectedUserInfo?.email,
|
|
1746
|
+
ariaLabel: this.addUserRosterTexts?.label?.ariaLabel?.email,
|
|
1747
|
+
ariaDescribedById: this.addUserRosterTexts?.label?.ariaDescribedById?.email,
|
|
1748
|
+
isReadonly: true,
|
|
1749
|
+
ariaMultiline: false,
|
|
1750
|
+
isResize: true,
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
type: FormControlType.TEXT_AREA,
|
|
1754
|
+
label: this.addUserRosterTexts?.label?.fullName + '*',
|
|
1755
|
+
controlName: 'fullName',
|
|
1756
|
+
value: this.selectedUserInfo?.name,
|
|
1757
|
+
ariaLabel: this.addUserRosterTexts?.label?.ariaLabel?.fullName,
|
|
1758
|
+
ariaDescribedById: this.addUserRosterTexts?.label?.ariaDescribedById?.fullName,
|
|
1759
|
+
isReadonly: true,
|
|
1760
|
+
ariaMultiline: false,
|
|
1761
|
+
isResize: true,
|
|
1762
|
+
},
|
|
1763
|
+
{
|
|
1764
|
+
type: FormControlType.CHECKBOX,
|
|
1765
|
+
label: this.addUserRosterTexts?.label?.role + '*',
|
|
1766
|
+
controlName: 'roles',
|
|
1767
|
+
checkboxOptions: this.userRoles,
|
|
1768
|
+
minSelectionRequired: 1,
|
|
1769
|
+
ariaLabel: this.addUserRosterTexts?.label?.ariaLabel?.role,
|
|
1770
|
+
ariaDescribedById: this.addUserRosterTexts?.label?.ariaDescribedById?.role,
|
|
1771
|
+
supportMessage: this.addUserRosterTexts?.supportText?.role,
|
|
1772
|
+
requiredErrorMessage: this.addUserRosterTexts?.message?.error?.roleRequired,
|
|
1773
|
+
validation: [Validators.required],
|
|
1774
|
+
},
|
|
1775
|
+
],
|
|
1776
|
+
},
|
|
1777
|
+
],
|
|
1778
|
+
};
|
|
1779
|
+
}
|
|
1780
|
+
/**
|
|
1781
|
+
* Handles user role selection in edit user roles form.
|
|
1782
|
+
* @param {CheckboxOption} event
|
|
1783
|
+
* @memberof EditUserRolesComponent
|
|
1784
|
+
*/
|
|
1785
|
+
onUserRoleSelection(event) {
|
|
1786
|
+
if (event?.checked) {
|
|
1787
|
+
this.selectedUserRoleIds?.push(event?.id);
|
|
1788
|
+
}
|
|
1789
|
+
else {
|
|
1790
|
+
this.selectedUserRoleIds = this.selectedUserRoleIds?.filter((id) => id !== event?.id);
|
|
1791
|
+
}
|
|
1792
|
+
this.isSubmitButtonDisabled = this.selectedUserRoleIds?.length === 0;
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* Update roles of user on form submission.
|
|
1796
|
+
* @param {FormGroup[]} form
|
|
1797
|
+
* @memberof EditUserRolesComponent
|
|
1798
|
+
*/
|
|
1799
|
+
onEditUserRoleFormSubmit(form) {
|
|
1800
|
+
form[0]?.markAllAsTouched();
|
|
1801
|
+
if (form[0].status === FormStatus?.VALID) {
|
|
1802
|
+
const AddOrEditUserPayload = {
|
|
1803
|
+
payload: {
|
|
1804
|
+
email: this.selectedUserInfo?.email,
|
|
1805
|
+
userId: this.selectedUserInfo?.userId,
|
|
1806
|
+
roles: this.selectedUserRoleIds,
|
|
1807
|
+
groupId: this.groupsService?.selectedGroupInfo?.groupId,
|
|
1808
|
+
},
|
|
1809
|
+
};
|
|
1810
|
+
this.groupsService
|
|
1811
|
+
.editGroupsUserRole(AddOrEditUserPayload)
|
|
1812
|
+
.pipe(takeUntil(this.destroy$))
|
|
1813
|
+
.subscribe({
|
|
1814
|
+
next: (res) => {
|
|
1815
|
+
if (res?.status) {
|
|
1816
|
+
this.submitFormResponse?.emit(res);
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
error: (error) => {
|
|
1820
|
+
this.handleErrors(error);
|
|
1821
|
+
},
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
/**
|
|
1826
|
+
* Emits form cancel event.
|
|
1827
|
+
* @memberof EditUserRolesComponent
|
|
1828
|
+
*/
|
|
1829
|
+
onEditUserRoleCancelled() {
|
|
1830
|
+
this.formCancel?.emit();
|
|
1831
|
+
}
|
|
1832
|
+
/**
|
|
1833
|
+
* Get form reference.
|
|
1834
|
+
* @param {FormGroup[]} form
|
|
1835
|
+
* @memberof EditUserRolesComponent
|
|
1836
|
+
*/
|
|
1837
|
+
getFormGroupReference(form) {
|
|
1838
|
+
this.form = form[0];
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Captures the server side errors and handles it based on the custom or Http errors.
|
|
1842
|
+
* @param {HttpErrorResponse} error
|
|
1843
|
+
* @return -returns nothing
|
|
1844
|
+
* @memberof EditUserRolesComponent
|
|
1845
|
+
*/
|
|
1846
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1847
|
+
handleErrors(error) {
|
|
1848
|
+
const errorCodes = error?.error?.body?.errorCodes;
|
|
1849
|
+
if (Array.isArray(errorCodes) && !error?.error?.status) {
|
|
1850
|
+
const errorMessage = this.groupsService?.parseErrorMessage(errorCodes);
|
|
1851
|
+
this.alertService?.showMessage({
|
|
1852
|
+
status: 'custom',
|
|
1853
|
+
message: errorMessage,
|
|
1854
|
+
alertType: AlertType?.ERROR,
|
|
1855
|
+
isCloseNeeded: true,
|
|
1856
|
+
});
|
|
1857
|
+
}
|
|
1858
|
+
else if (error && error instanceof HttpErrorResponse) {
|
|
1859
|
+
this.globalErrorHandlerService?.handleError(error);
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
/**
|
|
1863
|
+
* NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
1864
|
+
* @memberof CreateGroupComponent
|
|
1865
|
+
*/
|
|
1866
|
+
ngOnDestroy() {
|
|
1867
|
+
this.destroy$.next(true);
|
|
1868
|
+
this.destroy$.unsubscribe();
|
|
1869
|
+
}
|
|
1870
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EditUserRolesComponent, deps: [{ token: GroupsService }, { token: i2.GlobalErrorHandlerService }, { token: i2.AlertsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1871
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: EditUserRolesComponent, isStandalone: true, selector: "ieeesa-edit-user-roles", outputs: { submitFormResponse: "submitFormResponse", formCancel: "formCancel" }, ngImport: i0, template: "<ieeesa-dynamic-form\r\n [leftButtonLabel]=\"leftButtonLabel\"\r\n [rightButtonLabel]=\"rightButtonLabel\"\r\n [isLegendVisible]=\"false\"\r\n [isSubmitButtonDisabled]=\"isSubmitButtonDisabled\"\r\n [colWidth]=\"colWidth\"\r\n [actionButtonAlign]=\"actionButtonAlign\"\r\n [formGroups]=\"editUserRoleFormGroup\"\r\n [isLeftButtonNeeded]=\"true\"\r\n (formSubmit)=\"onEditUserRoleFormSubmit($event)\"\r\n (formLeftButtonClicked)=\"onEditUserRoleCancelled()\"\r\n (formCheckboxSelection)=\"onUserRoleSelection($event)\"\r\n (formGroupsReference)=\"getFormGroupReference($event)\"\r\n></ieeesa-dynamic-form>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.56em;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25em;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625em;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375em;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125em;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875em;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625em;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:rgba(29,25,43,.12)}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:rgba(103,80,164,.12)}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:rgba(103,80,164,.08)}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1em;border:1px solid #cac4d0;background:#ffffff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-edit-user-roles .mat-mdc-dialog-container{box-shadow:none}.ieeesa-modal-dialog.ieeesa-edit-user-roles .mat-mdc-dialog-surface{border-radius:0;margin:1em 0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .mat-mdc-form-field-subscript-wrapper{display:none}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:.5em}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal-title__heading{font-size:1.875em;line-height:36px}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .mat-mdc-dialog-content{padding:1.5em 1em .75em!important}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field{margin-bottom:1em;padding:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__content,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-checkbox-field__content,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-checkbox-field .mdc-label{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:24px;color:#49454f;letter-spacing:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-checkbox-field .mdc-label{padding-left:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__actions{flex-direction:row-reverse;gap:1.5em;padding:3em 1em .75em 0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field{margin-bottom:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-text-field-wrapper,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-form-field-focus-overlay,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-text-field-wrapper,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-form-field-focus-overlay{background:#ffffff;padding:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-infix,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-form-field-focus-overlay .mat-mdc-form-field-infix,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-infix,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-form-field-focus-overlay .mat-mdc-form-field-infix{min-height:2.375em;padding-top:.0625em;padding-bottom:.375em}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mdc-line-ripple:before,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mdc-line-ripple:after,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mdc-line-ripple:before,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mdc-line-ripple:after{border:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DynamicFormComponent, selector: "ieeesa-dynamic-form", inputs: ["formGroups", "submitResponse", "searchResponse", "colWidth", "isLegendVisible", "rightButtonLabel", "leftButtonLabel", "isSubmitButtonDisabled", "isLeftButtonDisabled", "isLeftButtonNeeded", "actionButtonAlign"], outputs: ["formSubmit", "formChange", "formInput", "formLeftButtonClicked", "formSearchApply", "formGroupsReference", "dropdownChange", "formCheckboxSelection", "formDateSelected", "formSelectSearch", "formControlChange", "formAutoCompleteSearch", "autoCompleteOptionSelected", "formAfterContentInit", "formSelectedDateRange"], exportAs: ["dynamicForm"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1872
|
+
}
|
|
1873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: EditUserRolesComponent, decorators: [{
|
|
1874
|
+
type: Component,
|
|
1875
|
+
args: [{ selector: 'ieeesa-edit-user-roles', standalone: true, imports: [CommonModule, DynamicFormComponent], encapsulation: ViewEncapsulation.None, template: "<ieeesa-dynamic-form\r\n [leftButtonLabel]=\"leftButtonLabel\"\r\n [rightButtonLabel]=\"rightButtonLabel\"\r\n [isLegendVisible]=\"false\"\r\n [isSubmitButtonDisabled]=\"isSubmitButtonDisabled\"\r\n [colWidth]=\"colWidth\"\r\n [actionButtonAlign]=\"actionButtonAlign\"\r\n [formGroups]=\"editUserRoleFormGroup\"\r\n [isLeftButtonNeeded]=\"true\"\r\n (formSubmit)=\"onEditUserRoleFormSubmit($event)\"\r\n (formLeftButtonClicked)=\"onEditUserRoleCancelled()\"\r\n (formCheckboxSelection)=\"onUserRoleSelection($event)\"\r\n (formGroupsReference)=\"getFormGroupReference($event)\"\r\n></ieeesa-dynamic-form>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.56em;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25em;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625em;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375em;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125em;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875em;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625em;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:rgba(29,25,43,.12)}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:rgba(103,80,164,.12)}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:rgba(103,80,164,.08)}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1em;border:1px solid #cac4d0;background:#ffffff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-edit-user-roles .mat-mdc-dialog-container{box-shadow:none}.ieeesa-modal-dialog.ieeesa-edit-user-roles .mat-mdc-dialog-surface{border-radius:0;margin:1em 0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .mat-mdc-form-field-subscript-wrapper{display:none}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:.5em}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal-title__heading{font-size:1.875em;line-height:36px}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .mat-mdc-dialog-content{padding:1.5em 1em .75em!important}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field{margin-bottom:1em;padding:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__content,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-checkbox-field__content,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-checkbox-field .mdc-label{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:24px;color:#49454f;letter-spacing:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-checkbox-field .mdc-label{padding-left:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .ieeesa-dynamic-form__actions{flex-direction:row-reverse;gap:1.5em;padding:3em 1em .75em 0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field{margin-bottom:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-text-field-wrapper,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-form-field-focus-overlay,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-text-field-wrapper,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-form-field-focus-overlay{background:#ffffff;padding:0}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-infix,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-form-field-focus-overlay .mat-mdc-form-field-infix,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-infix,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mat-mdc-form-field-focus-overlay .mat-mdc-form-field-infix{min-height:2.375em;padding-top:.0625em;padding-bottom:.375em}.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mdc-line-ripple:before,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .email.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mdc-line-ripple:after,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mdc-line-ripple:before,.ieeesa-modal-dialog.ieeesa-edit-user-roles .ieeesa-modal .full-name.ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mat-mdc-form-field .mdc-line-ripple:after{border:0}\n"] }]
|
|
1876
|
+
}], ctorParameters: function () { return [{ type: GroupsService }, { type: i2.GlobalErrorHandlerService }, { type: i2.AlertsService }]; }, propDecorators: { submitFormResponse: [{
|
|
1877
|
+
type: Output
|
|
1878
|
+
}], formCancel: [{
|
|
1879
|
+
type: Output
|
|
1880
|
+
}] } });
|
|
1881
|
+
|
|
1882
|
+
/* eslint-disable no-unused-vars */
|
|
1883
|
+
var RosterFunctionType;
|
|
1884
|
+
(function (RosterFunctionType) {
|
|
1885
|
+
RosterFunctionType["EDIT_ROSTER_USER_ROLE"] = "EDIT_ROSTER_USER_ROLE";
|
|
1886
|
+
RosterFunctionType["ADD_USER_TO_ROSTER"] = "ADD_USER_TO_ROSTER";
|
|
1887
|
+
})(RosterFunctionType || (RosterFunctionType = {}));
|
|
1888
|
+
|
|
1578
1889
|
/**
|
|
1579
1890
|
* Component implements the view and functionalities to add group users to roster.
|
|
1580
1891
|
* @export
|
|
@@ -1912,6 +2223,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
|
|
|
1912
2223
|
class ViewRosterComponent {
|
|
1913
2224
|
constructor(
|
|
1914
2225
|
// eslint-disable-next-line no-unused-vars
|
|
2226
|
+
dialog,
|
|
2227
|
+
// eslint-disable-next-line no-unused-vars
|
|
1915
2228
|
groupService,
|
|
1916
2229
|
// eslint-disable-next-line no-unused-vars
|
|
1917
2230
|
alertService,
|
|
@@ -1919,6 +2232,7 @@ class ViewRosterComponent {
|
|
|
1919
2232
|
cdr,
|
|
1920
2233
|
// eslint-disable-next-line no-unused-vars
|
|
1921
2234
|
globalErrorHandlerService) {
|
|
2235
|
+
this.dialog = dialog;
|
|
1922
2236
|
this.groupService = groupService;
|
|
1923
2237
|
this.alertService = alertService;
|
|
1924
2238
|
this.cdr = cdr;
|
|
@@ -1927,6 +2241,8 @@ class ViewRosterComponent {
|
|
|
1927
2241
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1928
2242
|
this.constants = screenTexts;
|
|
1929
2243
|
this.viewRosterConstants = this.constants?.viewRoster;
|
|
2244
|
+
this.alignmentType = AlignType;
|
|
2245
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1930
2246
|
this.filters = [
|
|
1931
2247
|
{
|
|
1932
2248
|
id: 1,
|
|
@@ -1990,14 +2306,16 @@ class ViewRosterComponent {
|
|
|
1990
2306
|
* @memberof ViewRosterComponent
|
|
1991
2307
|
*/
|
|
1992
2308
|
ngAfterViewInit() {
|
|
1993
|
-
if (this.groupService
|
|
2309
|
+
if (this.groupService?.canShowMessage) {
|
|
1994
2310
|
this.groupService.canShowMessage = false;
|
|
1995
|
-
this.
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2311
|
+
if (this.groupService?.rosterFunctionType ===
|
|
2312
|
+
RosterFunctionType?.ADD_USER_TO_ROSTER) {
|
|
2313
|
+
this.showAlertMessage(this.constants?.addUserRoster?.message?.success?.submission, AlertType.SUCCESS);
|
|
2314
|
+
}
|
|
2315
|
+
else if (this.groupService?.rosterFunctionType ===
|
|
2316
|
+
RosterFunctionType?.EDIT_ROSTER_USER_ROLE) {
|
|
2317
|
+
this.showAlertMessage(this.constants?.editUserRoles?.message?.success?.submission, AlertType.SUCCESS);
|
|
2318
|
+
}
|
|
2001
2319
|
}
|
|
2002
2320
|
}
|
|
2003
2321
|
/**
|
|
@@ -2143,17 +2461,84 @@ class ViewRosterComponent {
|
|
|
2143
2461
|
const errorCodes = error?.error?.body?.errorCodes;
|
|
2144
2462
|
if (Array.isArray(errorCodes) && !error?.error?.status) {
|
|
2145
2463
|
const errorMessage = this.groupService.parseErrorMessage(errorCodes);
|
|
2146
|
-
this.
|
|
2147
|
-
status: 'custom',
|
|
2148
|
-
message: errorMessage,
|
|
2149
|
-
alertType: AlertType.ERROR,
|
|
2150
|
-
isCloseNeeded: true,
|
|
2151
|
-
});
|
|
2464
|
+
this.showAlertMessage(errorMessage, AlertType.ERROR);
|
|
2152
2465
|
}
|
|
2153
2466
|
else if (error && error instanceof HttpErrorResponse) {
|
|
2154
2467
|
this.globalErrorHandlerService.handleError(error);
|
|
2155
2468
|
}
|
|
2156
2469
|
}
|
|
2470
|
+
/**
|
|
2471
|
+
* Opens the confirmation modal to get user confirmation to delete the users from the selected group.
|
|
2472
|
+
* @memberof ViewRosterComponent
|
|
2473
|
+
*/
|
|
2474
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2475
|
+
openUserDeleteConfirmationModal(selectedUsers) {
|
|
2476
|
+
const userIds = selectedUsers.map((user) => user?.userId);
|
|
2477
|
+
const selectedGroupInfo = this.groupService?.getSelectedGroupInfo();
|
|
2478
|
+
const confirmationInfo = deleteUsersGroup?.confirmationInfo;
|
|
2479
|
+
const deleteUserGroupModalOptions = {
|
|
2480
|
+
leftButtonLabel: confirmationInfo?.leftButtonLabel,
|
|
2481
|
+
rightButtonLabel: confirmationInfo?.rightButtonLabel,
|
|
2482
|
+
promptMessage: `${confirmationInfo?.promptMessagePart1} ${userIds?.length} ${confirmationInfo?.promptMessagePart2} ${selectedGroupInfo?.groupName}?`,
|
|
2483
|
+
actionButtonAlign: this.alignmentType?.MIDDLE,
|
|
2484
|
+
};
|
|
2485
|
+
this.dialogRef = this.dialog.open(ModalConfirmationComponent, {
|
|
2486
|
+
data: deleteUserGroupModalOptions,
|
|
2487
|
+
width: 'auto',
|
|
2488
|
+
autoFocus: 'dialog',
|
|
2489
|
+
ariaLabel: ariaLabel?.alert,
|
|
2490
|
+
});
|
|
2491
|
+
this.dialogRef
|
|
2492
|
+
.afterClosed()
|
|
2493
|
+
.pipe(takeUntil(this.destroy$))
|
|
2494
|
+
.subscribe((result) => {
|
|
2495
|
+
if (result) {
|
|
2496
|
+
this.deleteUsersGroup(selectedGroupInfo?.groupId, userIds);
|
|
2497
|
+
}
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
/**
|
|
2501
|
+
* Send API request to delete the selected user(s) from the selected group and handles the success and error response.
|
|
2502
|
+
* @memberof ViewRosterComponent
|
|
2503
|
+
*/
|
|
2504
|
+
deleteUsersGroup(groupId, userIds) {
|
|
2505
|
+
const deleteUsersGroupTexts = deleteUsersGroup;
|
|
2506
|
+
const deleteUserGroupPayload = {
|
|
2507
|
+
payload: {
|
|
2508
|
+
[groupId]: userIds,
|
|
2509
|
+
},
|
|
2510
|
+
};
|
|
2511
|
+
this.groupService
|
|
2512
|
+
.deleteUsersGroup(deleteUserGroupPayload)
|
|
2513
|
+
.pipe(takeUntil(this.destroy$))
|
|
2514
|
+
.subscribe({
|
|
2515
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2516
|
+
next: (res) => {
|
|
2517
|
+
if (res?.status) {
|
|
2518
|
+
this.showAlertMessage(`${res.body} ${deleteUsersGroupTexts?.message?.success?.removed}`, AlertType.SUCCESS);
|
|
2519
|
+
this.getGroupUsersAndInitializeTableView();
|
|
2520
|
+
}
|
|
2521
|
+
},
|
|
2522
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2523
|
+
error: (error) => {
|
|
2524
|
+
this.handleErrors(error);
|
|
2525
|
+
},
|
|
2526
|
+
});
|
|
2527
|
+
}
|
|
2528
|
+
/**
|
|
2529
|
+
* Sets selected user info and emits event openModalNotifier with EDIT_ROSTER_USER_ROLE value.
|
|
2530
|
+
* @param {GroupUserInfo[]} selectedUserInfo
|
|
2531
|
+
* @memberof ViewRosterComponent
|
|
2532
|
+
*/
|
|
2533
|
+
onEditUserRoles(selectedUserInfo) {
|
|
2534
|
+
this.groupService.setSelectedUserInfo({
|
|
2535
|
+
email: selectedUserInfo[0]?.email,
|
|
2536
|
+
name: selectedUserInfo[0]?.name,
|
|
2537
|
+
role: selectedUserInfo[0]?.role,
|
|
2538
|
+
userId: selectedUserInfo[0]?.userId,
|
|
2539
|
+
});
|
|
2540
|
+
this.groupService?.openModalNotifier?.next(GroupFunctionType.EDIT_ROSTER_USER_ROLE);
|
|
2541
|
+
}
|
|
2157
2542
|
/**
|
|
2158
2543
|
* Emits openModalNotifier event with GroupFunctionType value as ADD_USER_TO_ROSTER
|
|
2159
2544
|
* @memberof ViewRosterComponent
|
|
@@ -2161,6 +2546,21 @@ class ViewRosterComponent {
|
|
|
2161
2546
|
onAddNewUser() {
|
|
2162
2547
|
this.groupService?.openModalNotifier?.next(GroupFunctionType.ADD_USER_TO_ROSTER);
|
|
2163
2548
|
}
|
|
2549
|
+
/**
|
|
2550
|
+
* Handles alerts for success, error, warning.
|
|
2551
|
+
* @param {(string | string[])} message -error or warning message
|
|
2552
|
+
* @param {AlertType} alertType
|
|
2553
|
+
* @return -returns nothing
|
|
2554
|
+
* @memberof ViewRosterComponent
|
|
2555
|
+
*/
|
|
2556
|
+
showAlertMessage(message, alertType) {
|
|
2557
|
+
this.alertService?.showMessage({
|
|
2558
|
+
status: 'custom',
|
|
2559
|
+
message: message,
|
|
2560
|
+
alertType: alertType,
|
|
2561
|
+
isCloseNeeded: true,
|
|
2562
|
+
});
|
|
2563
|
+
}
|
|
2164
2564
|
/**
|
|
2165
2565
|
* NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
2166
2566
|
* @memberof ViewRosterComponent
|
|
@@ -2169,13 +2569,13 @@ class ViewRosterComponent {
|
|
|
2169
2569
|
this.destroy$.next(true);
|
|
2170
2570
|
this.destroy$.unsubscribe();
|
|
2171
2571
|
}
|
|
2172
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: ViewRosterComponent, deps: [{ token: GroupsService }, { token: i2.AlertsService }, { token: i0.ChangeDetectorRef }, { token: i2.GlobalErrorHandlerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2173
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: ViewRosterComponent, isStandalone: true, selector: "ieeesa-view-roster", ngImport: i0, template: "<ieeesa-data-table\r\n [tableDataInfo]=\"tableData\"\r\n [columnSchemaInfo]=\"columnSchema\"\r\n [defaultSortedColumn]=\"defaultSortedColumn\"\r\n [defaultColumnSortDirection]=\"defaultColumnSortDirection\"\r\n [searchPlaceHolderText]=\"viewRosterConstants?.searchPlaceholder\"\r\n [tableActions]=\"rosterActions\"\r\n [filters]=\"filters\"\r\n [selectedFilterOptions]=\"roles\"\r\n (removeFilteredOption)=\"onFilterUsersByRoles($event)\"\r\n (filteredOptions)=\"onFilterUsersByRoles($event)\"\r\n (searchedValue)=\"onSearchGroupUsers($event)\"\r\n (addRow)=\"onAddNewUser()\"\r\n></ieeesa-data-table>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.56em;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25em;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625em;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375em;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125em;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875em;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625em;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:rgba(29,25,43,.12)}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:rgba(103,80,164,.12)}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:rgba(103,80,164,.08)}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1em;border:1px solid #cac4d0;background:#ffffff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-view-roster{max-width:80vw!important}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:3em}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal .mat-mdc-dialog-content{padding:0;min-height:405px}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal-title{padding-bottom:1.25em}.ieeesa-data-table__content{height:500px}.ieeesa-data-table__no-table-data{height:auto}.ieeesa-data-table__filter{padding-bottom:1em}.ieeesa-data-table .cdk-column-select{width:7%}.ieeesa-data-table .cdk-column-name{width:18%}.ieeesa-data-table .cdk-column-email{width:27%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DataTableComponent, selector: "ieeesa-data-table", inputs: ["tableDataInfo", "columnSchemaInfo", "tableActions", "caption", "paginatorConfig", "searchPlaceHolderText", "rowEditButton", "rowDeleteButton", "tableEditButton", "tableDeleteButton", "addButton", "defaultColumnSortDirection", "defaultSortedColumn", "filters", "selectedFilterOptions", "appliedFilterOptions", "searchType"], outputs: ["rowSelected", "selectedRowToEdit", "selectedRowToDelete", "selectedRowsToDelete", "rowLink", "addRow", "columnDataOnRowLinkClick", "paginationChange", "selectedFilter", "removeFilteredOption", "filteredOptions", "searchedValue"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: ViewRosterComponent, deps: [{ token: i1.MatDialog }, { token: GroupsService }, { token: i2.AlertsService }, { token: i0.ChangeDetectorRef }, { token: i2.GlobalErrorHandlerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2573
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: ViewRosterComponent, isStandalone: true, selector: "ieeesa-view-roster", ngImport: i0, template: "<ieeesa-data-table\r\n [tableDataInfo]=\"tableData\"\r\n [columnSchemaInfo]=\"columnSchema\"\r\n [defaultSortedColumn]=\"defaultSortedColumn\"\r\n [defaultColumnSortDirection]=\"defaultColumnSortDirection\"\r\n [searchPlaceHolderText]=\"viewRosterConstants?.searchPlaceholder\"\r\n [tableActions]=\"rosterActions\"\r\n [filters]=\"filters\"\r\n [selectedFilterOptions]=\"roles\"\r\n (removeFilteredOption)=\"onFilterUsersByRoles($event)\"\r\n (filteredOptions)=\"onFilterUsersByRoles($event)\"\r\n (searchedValue)=\"onSearchGroupUsers($event)\"\r\n (selectedRowToEdit)=\"onEditUserRoles($event)\"\r\n (selectedRowsToDelete)=\"openUserDeleteConfirmationModal($event)\"\r\n (addRow)=\"onAddNewUser()\"\r\n></ieeesa-data-table>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.56em;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25em;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625em;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375em;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125em;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875em;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625em;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:rgba(29,25,43,.12)}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:rgba(103,80,164,.12)}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:rgba(103,80,164,.08)}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1em;border:1px solid #cac4d0;background:#ffffff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-view-roster{max-width:80vw!important}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:3em}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal .mat-mdc-dialog-content{padding:0;min-height:405px}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal-title{padding-bottom:1.25em}.ieeesa-data-table__content{height:500px}.ieeesa-data-table__no-table-data{height:auto}.ieeesa-data-table__filter{padding-bottom:1em}.ieeesa-data-table .cdk-column-select{width:7%}.ieeesa-data-table .cdk-column-name{width:18%}.ieeesa-data-table .cdk-column-email{width:27%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DataTableComponent, selector: "ieeesa-data-table", inputs: ["tableDataInfo", "columnSchemaInfo", "tableActions", "caption", "paginatorConfig", "searchPlaceHolderText", "rowEditButton", "rowDeleteButton", "tableEditButton", "tableDeleteButton", "addButton", "defaultColumnSortDirection", "defaultSortedColumn", "filters", "selectedFilterOptions", "appliedFilterOptions", "searchType"], outputs: ["rowSelected", "selectedRowToEdit", "selectedRowToDelete", "selectedRowsToDelete", "rowLink", "addRow", "columnDataOnRowLinkClick", "paginationChange", "selectedFilter", "removeFilteredOption", "filteredOptions", "searchedValue"] }, { kind: "ngmodule", type: MatDialogModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2174
2574
|
}
|
|
2175
2575
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: ViewRosterComponent, decorators: [{
|
|
2176
2576
|
type: Component,
|
|
2177
|
-
args: [{ selector: 'ieeesa-view-roster', standalone: true, imports: [CommonModule, DataTableComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ieeesa-data-table\r\n [tableDataInfo]=\"tableData\"\r\n [columnSchemaInfo]=\"columnSchema\"\r\n [defaultSortedColumn]=\"defaultSortedColumn\"\r\n [defaultColumnSortDirection]=\"defaultColumnSortDirection\"\r\n [searchPlaceHolderText]=\"viewRosterConstants?.searchPlaceholder\"\r\n [tableActions]=\"rosterActions\"\r\n [filters]=\"filters\"\r\n [selectedFilterOptions]=\"roles\"\r\n (removeFilteredOption)=\"onFilterUsersByRoles($event)\"\r\n (filteredOptions)=\"onFilterUsersByRoles($event)\"\r\n (searchedValue)=\"onSearchGroupUsers($event)\"\r\n (addRow)=\"onAddNewUser()\"\r\n></ieeesa-data-table>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.56em;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25em;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625em;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375em;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125em;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875em;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625em;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:rgba(29,25,43,.12)}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:rgba(103,80,164,.12)}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:rgba(103,80,164,.08)}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1em;border:1px solid #cac4d0;background:#ffffff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-view-roster{max-width:80vw!important}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:3em}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal .mat-mdc-dialog-content{padding:0;min-height:405px}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal-title{padding-bottom:1.25em}.ieeesa-data-table__content{height:500px}.ieeesa-data-table__no-table-data{height:auto}.ieeesa-data-table__filter{padding-bottom:1em}.ieeesa-data-table .cdk-column-select{width:7%}.ieeesa-data-table .cdk-column-name{width:18%}.ieeesa-data-table .cdk-column-email{width:27%}\n"] }]
|
|
2178
|
-
}], ctorParameters: function () { return [{ type: GroupsService }, { type: i2.AlertsService }, { type: i0.ChangeDetectorRef }, { type: i2.GlobalErrorHandlerService }]; } });
|
|
2577
|
+
args: [{ selector: 'ieeesa-view-roster', standalone: true, imports: [CommonModule, DataTableComponent, MatDialogModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ieeesa-data-table\r\n [tableDataInfo]=\"tableData\"\r\n [columnSchemaInfo]=\"columnSchema\"\r\n [defaultSortedColumn]=\"defaultSortedColumn\"\r\n [defaultColumnSortDirection]=\"defaultColumnSortDirection\"\r\n [searchPlaceHolderText]=\"viewRosterConstants?.searchPlaceholder\"\r\n [tableActions]=\"rosterActions\"\r\n [filters]=\"filters\"\r\n [selectedFilterOptions]=\"roles\"\r\n (removeFilteredOption)=\"onFilterUsersByRoles($event)\"\r\n (filteredOptions)=\"onFilterUsersByRoles($event)\"\r\n (searchedValue)=\"onSearchGroupUsers($event)\"\r\n (selectedRowToEdit)=\"onEditUserRoles($event)\"\r\n (selectedRowsToDelete)=\"openUserDeleteConfirmationModal($event)\"\r\n (addRow)=\"onAddNewUser()\"\r\n></ieeesa-data-table>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.56em;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25em;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625em;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375em;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375em;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125em;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875em;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625em;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5em;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125em;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1em;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875em;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875em;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5em;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:rgba(29,25,43,.12)}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:rgba(103,80,164,.12)}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:rgba(103,80,164,.08)}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1em;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1em;border:1px solid #cac4d0;background:#ffffff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125em;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-view-roster{max-width:80vw!important}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:3em}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal .mat-mdc-dialog-content{padding:0;min-height:405px}.ieeesa-modal-dialog.ieeesa-view-roster .ieeesa-modal-title{padding-bottom:1.25em}.ieeesa-data-table__content{height:500px}.ieeesa-data-table__no-table-data{height:auto}.ieeesa-data-table__filter{padding-bottom:1em}.ieeesa-data-table .cdk-column-select{width:7%}.ieeesa-data-table .cdk-column-name{width:18%}.ieeesa-data-table .cdk-column-email{width:27%}\n"] }]
|
|
2578
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: GroupsService }, { type: i2.AlertsService }, { type: i0.ChangeDetectorRef }, { type: i2.GlobalErrorHandlerService }]; } });
|
|
2179
2579
|
|
|
2180
2580
|
/**
|
|
2181
2581
|
* 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.
|
|
@@ -2204,6 +2604,7 @@ class GroupsComponent {
|
|
|
2204
2604
|
this.viewGroupTexts = this.constants?.viewGroups;
|
|
2205
2605
|
this.createGroupText = this.constants?.createGroup;
|
|
2206
2606
|
this.editGroupTexts = this.constants?.editGroup;
|
|
2607
|
+
this.editUserRolesTexts = this.constants?.editUserRoles;
|
|
2207
2608
|
this.addUserRosterTexts = this.constants?.addUserRoster;
|
|
2208
2609
|
this.isGroupSearchActive = false;
|
|
2209
2610
|
this.isGroupFilterActive = false;
|
|
@@ -2250,8 +2651,11 @@ class GroupsComponent {
|
|
|
2250
2651
|
this.groupsService?.openModalNotifier
|
|
2251
2652
|
?.pipe(takeUntil(this.destroy$))
|
|
2252
2653
|
?.subscribe((response) => {
|
|
2654
|
+
this.dialogRef?.close();
|
|
2655
|
+
if (response === GroupFunctionType.EDIT_ROSTER_USER_ROLE) {
|
|
2656
|
+
this.openEditUserRolesModal();
|
|
2657
|
+
}
|
|
2253
2658
|
if (response === GroupFunctionType.ADD_USER_TO_ROSTER) {
|
|
2254
|
-
this.dialogRef?.close();
|
|
2255
2659
|
this.openAddUserRosterModal();
|
|
2256
2660
|
}
|
|
2257
2661
|
});
|
|
@@ -2292,6 +2696,21 @@ class GroupsComponent {
|
|
|
2292
2696
|
this.functionType = GroupFunctionType?.EDIT;
|
|
2293
2697
|
this.openModal(dialogOptions, 'ieeesa-create-group', editGroupInfo);
|
|
2294
2698
|
}
|
|
2699
|
+
/**
|
|
2700
|
+
* Sets the dialog options for edit user roles and calls openModal method.
|
|
2701
|
+
* @memberof GroupsComponent
|
|
2702
|
+
*/
|
|
2703
|
+
openEditUserRolesModal() {
|
|
2704
|
+
const dialogOptions = {
|
|
2705
|
+
heading: this.editUserRolesTexts?.heading,
|
|
2706
|
+
isCloseNeeded: true,
|
|
2707
|
+
componentReference: EditUserRolesComponent,
|
|
2708
|
+
modalType: ModalType.FORM,
|
|
2709
|
+
};
|
|
2710
|
+
this.functionType = GroupFunctionType.EDIT_ROSTER_USER_ROLE;
|
|
2711
|
+
this.groupsService?.setGroupFunctionType(this.functionType);
|
|
2712
|
+
this.openModal(dialogOptions, 'ieeesa-edit-user-roles');
|
|
2713
|
+
}
|
|
2295
2714
|
/**
|
|
2296
2715
|
* Sets the dialog options for add users modal and calls openModal method.
|
|
2297
2716
|
* @memberof GroupsComponent
|
|
@@ -2339,6 +2758,7 @@ class GroupsComponent {
|
|
|
2339
2758
|
this.dialogRef = this.dialog?.open(ModalComponent, {
|
|
2340
2759
|
data: dialogOptions,
|
|
2341
2760
|
width: this.functionType === GroupFunctionType.VIEW_ROSTER ||
|
|
2761
|
+
this.functionType === GroupFunctionType.EDIT_ROSTER_USER_ROLE ||
|
|
2342
2762
|
this.functionType === GroupFunctionType.ADD_USER_TO_ROSTER
|
|
2343
2763
|
? ''
|
|
2344
2764
|
: 'auto',
|
|
@@ -2370,8 +2790,14 @@ class GroupsComponent {
|
|
|
2370
2790
|
this.getGroups(editGroupInfo.parentGroupInfo);
|
|
2371
2791
|
break;
|
|
2372
2792
|
}
|
|
2793
|
+
case GroupFunctionType?.EDIT_ROSTER_USER_ROLE: {
|
|
2794
|
+
this.groupsService.canShowMessage = true;
|
|
2795
|
+
this.groupsService.setRosterFunctionType(RosterFunctionType.EDIT_ROSTER_USER_ROLE);
|
|
2796
|
+
break;
|
|
2797
|
+
}
|
|
2373
2798
|
case GroupFunctionType?.ADD_USER_TO_ROSTER: {
|
|
2374
2799
|
this.groupsService.canShowMessage = true;
|
|
2800
|
+
this.groupsService.setRosterFunctionType(RosterFunctionType.ADD_USER_TO_ROSTER);
|
|
2375
2801
|
break;
|
|
2376
2802
|
}
|
|
2377
2803
|
default:
|
|
@@ -2382,7 +2808,8 @@ class GroupsComponent {
|
|
|
2382
2808
|
.pipe(takeUntil(this.destroy$))
|
|
2383
2809
|
.subscribe(() => {
|
|
2384
2810
|
this.dialogRef?.close();
|
|
2385
|
-
if (this.functionType === GroupFunctionType.ADD_USER_TO_ROSTER
|
|
2811
|
+
if (this.functionType === GroupFunctionType.ADD_USER_TO_ROSTER ||
|
|
2812
|
+
this.functionType === GroupFunctionType.EDIT_ROSTER_USER_ROLE) {
|
|
2386
2813
|
this.canReopenViewRosterModal = false;
|
|
2387
2814
|
this.viewRoster(this.groupsService.selectedGroupInfo);
|
|
2388
2815
|
}
|
|
@@ -2391,7 +2818,8 @@ class GroupsComponent {
|
|
|
2391
2818
|
?.afterOpened()
|
|
2392
2819
|
.pipe(takeUntil(this.destroy$))
|
|
2393
2820
|
.subscribe(() => {
|
|
2394
|
-
if (this.functionType === GroupFunctionType.ADD_USER_TO_ROSTER
|
|
2821
|
+
if (this.functionType === GroupFunctionType.ADD_USER_TO_ROSTER ||
|
|
2822
|
+
this.functionType === GroupFunctionType.EDIT_ROSTER_USER_ROLE) {
|
|
2395
2823
|
this.canReopenViewRosterModal = true;
|
|
2396
2824
|
}
|
|
2397
2825
|
});
|
|
@@ -2692,5 +3120,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
|
|
|
2692
3120
|
* Generated bundle index. Do not edit.
|
|
2693
3121
|
*/
|
|
2694
3122
|
|
|
2695
|
-
export { CreateGroupComponent, FormStatus, GroupAction, GroupFunctionType, GroupNode, Groups, GroupsComponent, GroupsDataSource, GroupsModule, GroupsService, GroupsValidationPatterns, TreeViewComponent };
|
|
3123
|
+
export { CreateGroupComponent, EditUserRolesComponent, FormStatus, GroupAction, GroupFunctionType, GroupNode, Groups, GroupsComponent, GroupsDataSource, GroupsModule, GroupsService, GroupsValidationPatterns, RosterFunctionType, TreeViewComponent };
|
|
2696
3124
|
//# sourceMappingURL=ieeesa-npm-groups.mjs.map
|