vcomply-workflow-engine 6.0.96 → 6.0.98
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/more-option/more-option.component.mjs +2 -13
- package/esm2022/lib/workflow-program/create-program-ui/user-group-list/user-group-list.component.mjs +5 -2
- package/esm2022/lib/workflow-program/workflow-program.component.mjs +8 -3
- package/fesm2022/vcomply-workflow-engine.mjs +12 -15
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -15447,7 +15447,7 @@ class UserGroupListComponent {
|
|
|
15447
15447
|
const isChecked = evt?.target?.checked === true;
|
|
15448
15448
|
const sourceUsers = this.fromResponsibility ? this.disableUsers() : this.usersList;
|
|
15449
15449
|
if (isChecked) {
|
|
15450
|
-
this.selectedUsers = sourceUsers
|
|
15450
|
+
this.selectedUsers = sourceUsers;
|
|
15451
15451
|
this.selectedUserIds = this.selectedUsers.map((user) => user?.member_id);
|
|
15452
15452
|
}
|
|
15453
15453
|
else {
|
|
@@ -15642,6 +15642,9 @@ class UserGroupListComponent {
|
|
|
15642
15642
|
this.reviewerIds?.includes(user?.member_id) ||
|
|
15643
15643
|
this.assigneeIds?.includes(user?.member_id)));
|
|
15644
15644
|
break;
|
|
15645
|
+
case 'collaborator':
|
|
15646
|
+
this.nonDisabledUsers = this.usersList.filter((user) => !(this.disabledIds?.includes(user?.member_id)));
|
|
15647
|
+
break;
|
|
15645
15648
|
default:
|
|
15646
15649
|
}
|
|
15647
15650
|
return this.nonDisabledUsers;
|
|
@@ -39421,17 +39424,6 @@ class MoreOptionComponent {
|
|
|
39421
39424
|
checked: false,
|
|
39422
39425
|
hidden: false,
|
|
39423
39426
|
},
|
|
39424
|
-
// {
|
|
39425
|
-
// imageUrl: 'https://cdn.v-comply.com/libraries/workflow-engine/assets/workflow/category.svg',
|
|
39426
|
-
// name: 'Program',
|
|
39427
|
-
// code: 'CATEGORY',
|
|
39428
|
-
// tooltipTitle: 'Program',
|
|
39429
|
-
// tooltipMessage: `Programs enable you to group similar responsibilities together.
|
|
39430
|
-
// Allocating a responsibility to a Program allows you to view a group or similar responsibilities at once.
|
|
39431
|
-
// It also allows you to view the performance of those collective responsibilities.`,
|
|
39432
|
-
// checked: false,
|
|
39433
|
-
// hidden: false,
|
|
39434
|
-
// },
|
|
39435
39427
|
{
|
|
39436
39428
|
imageUrl: ASSETS.responsibility_center,
|
|
39437
39429
|
name: 'Responsibility Center',
|
|
@@ -39663,7 +39655,7 @@ class MoreOptionComponent {
|
|
|
39663
39655
|
code: 'OWNERS',
|
|
39664
39656
|
},
|
|
39665
39657
|
{
|
|
39666
|
-
imageUrl:
|
|
39658
|
+
imageUrl: ASSETS.collaborator,
|
|
39667
39659
|
name: 'Collaborators',
|
|
39668
39660
|
tooltipTitle: 'Collaborators',
|
|
39669
39661
|
tooltipMessage: COLLABORATOR_TOOLTIP,
|
|
@@ -45519,7 +45511,8 @@ class WorkflowProgramComponent {
|
|
|
45519
45511
|
refreshList() {
|
|
45520
45512
|
let selectedOwner = this.controls?.program_owners?.value?.map((ele) => ele.member_id);
|
|
45521
45513
|
let disableCollaborator = this.lists?.COLLABORATORS?.data?.filter((user) => selectedOwner?.includes(user?.member_id));
|
|
45522
|
-
|
|
45514
|
+
const selectedCollaborator = this.controls?.program_collaborator?.value?.filter((ele) => !selectedOwner.includes(ele.member_id));
|
|
45515
|
+
this.listAction({ users: selectedCollaborator }, 'COLLABORATOR');
|
|
45523
45516
|
}
|
|
45524
45517
|
removeRole(evt) {
|
|
45525
45518
|
this.onRemovingRole.emit(evt);
|
|
@@ -45666,8 +45659,8 @@ class WorkflowProgramComponent {
|
|
|
45666
45659
|
this.setFormField('program_roles', defaultVal);
|
|
45667
45660
|
this.fetchUsersAssociatedWithRoles();
|
|
45668
45661
|
this.fetchGroupsAssociatedWithRoles();
|
|
45669
|
-
this.fetchUserWithManageProgramsRole();
|
|
45670
45662
|
}
|
|
45663
|
+
this.fetchUserWithManageProgramsRole();
|
|
45671
45664
|
},
|
|
45672
45665
|
error: (err) => { },
|
|
45673
45666
|
});
|
|
@@ -45713,8 +45706,12 @@ class WorkflowProgramComponent {
|
|
|
45713
45706
|
});
|
|
45714
45707
|
}
|
|
45715
45708
|
fetchUserWithManageProgramsRole() {
|
|
45709
|
+
if (this.lists.COLLABORATORS.length) {
|
|
45710
|
+
return;
|
|
45711
|
+
}
|
|
45716
45712
|
this.programService.fetchAllRoleUsers(this.manageProgramsRoleId).subscribe({
|
|
45717
45713
|
next: (res) => {
|
|
45714
|
+
res.data = res?.data?.filter((ele) => ele?.user_role === 'MANAGER');
|
|
45718
45715
|
this.lists.COLLABORATORS = res;
|
|
45719
45716
|
},
|
|
45720
45717
|
});
|