vcomply-workflow-engine 6.1.86 → 6.1.88
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/workflow-program/workflow-program.component.mjs +13 -12
- package/fesm2022/vcomply-workflow-engine.mjs +12 -11
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/workflow-program/workflow-program.component.d.ts +2 -0
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -45371,6 +45371,7 @@ class WorkflowProgramComponent {
|
|
|
45371
45371
|
];
|
|
45372
45372
|
this.additionalOption = { ...CONSTANTS$1.additionalOption };
|
|
45373
45373
|
this.activeList = '';
|
|
45374
|
+
this.manageProgramsRoleId = [];
|
|
45374
45375
|
this.fileUploadTracker = {
|
|
45375
45376
|
description: [],
|
|
45376
45377
|
objective: [],
|
|
@@ -45424,7 +45425,9 @@ class WorkflowProgramComponent {
|
|
|
45424
45425
|
this.setFormField('program_type', this.programType ?? 1);
|
|
45425
45426
|
this.fetchOrganizationUsers();
|
|
45426
45427
|
this.fetchOrganizationGroup();
|
|
45427
|
-
this.
|
|
45428
|
+
if (this.mode !== 'EDIT') {
|
|
45429
|
+
this.fetchRoles();
|
|
45430
|
+
}
|
|
45428
45431
|
this.fetchRC();
|
|
45429
45432
|
this.handleDataPopulation();
|
|
45430
45433
|
if (this.addToProgramDetails?._id) {
|
|
@@ -45880,15 +45883,17 @@ class WorkflowProgramComponent {
|
|
|
45880
45883
|
const defaultVal = this.lists?.ROLES?.data?.filter((ele) => ele?.roleName?.toLowerCase() === 'key admin' ||
|
|
45881
45884
|
ele?.roleName?.toLowerCase() === 'admin');
|
|
45882
45885
|
this.lists.SYSTEM_ROLE_IDS = defaultSystemVal;
|
|
45883
|
-
|
|
45884
|
-
|
|
45885
|
-
}
|
|
45886
|
+
this.manageProgramsRoleId = this.getManageProgramsRoleId();
|
|
45887
|
+
this.setFormField('program_roles', defaultVal);
|
|
45886
45888
|
this.fetchUsersAssociatedWithRoles();
|
|
45887
45889
|
this.fetchGroupsAssociatedWithRoles();
|
|
45888
45890
|
},
|
|
45889
45891
|
error: (err) => { },
|
|
45890
45892
|
});
|
|
45891
45893
|
}
|
|
45894
|
+
getManageProgramsRoleId() {
|
|
45895
|
+
return this.lists?.ROLES?.data?.filter((ele) => !['key admin', 'admin'].includes(ele?.roleName?.toLowerCase())).map((ele) => ele?._id) ?? [];
|
|
45896
|
+
}
|
|
45892
45897
|
//fetch the list of responsibilities center
|
|
45893
45898
|
fetchRC() {
|
|
45894
45899
|
this.programService.getResponsibilityCenterList().subscribe({
|
|
@@ -45919,7 +45924,7 @@ class WorkflowProgramComponent {
|
|
|
45919
45924
|
}
|
|
45920
45925
|
fetchGroupsAssociatedWithRoles() {
|
|
45921
45926
|
const roleIds = this.controls.program_roles?.value?.map((ele) => ele?._id);
|
|
45922
|
-
this.programService.fetchAllRoleGroups(
|
|
45927
|
+
this.programService.fetchAllRoleGroups(this.manageProgramsRoleId).subscribe({
|
|
45923
45928
|
next: (res) => {
|
|
45924
45929
|
this.lists.OWNERS_GROUPS = res;
|
|
45925
45930
|
const roleIds = this.controls.program_roles?.value.map((ele) => ele._id);
|
|
@@ -46147,8 +46152,8 @@ class WorkflowProgramComponent {
|
|
|
46147
46152
|
this.loader = false;
|
|
46148
46153
|
this.showSmiley = true;
|
|
46149
46154
|
this.uiKitService.isSmileyOn = true;
|
|
46150
|
-
this.postIframeMessage(PostMessageEvent.PROGRAM_UPDATED, res);
|
|
46151
46155
|
this.createdProgramId = res?.data?.program?.id;
|
|
46156
|
+
this.postIframeMessage(PostMessageEvent.PROGRAM_UPDATED, res);
|
|
46152
46157
|
},
|
|
46153
46158
|
error: (err) => {
|
|
46154
46159
|
this.loader = false;
|
|
@@ -46275,18 +46280,14 @@ class WorkflowProgramComponent {
|
|
|
46275
46280
|
this.setFormField('program_type', programType);
|
|
46276
46281
|
this.setFormField('program_objective', res?.description);
|
|
46277
46282
|
this.editorData.programObjective = res?.description;
|
|
46278
|
-
if (res?.roles && res?.roles?.length && this.mode === 'EDIT') {
|
|
46279
|
-
this.additionalOption.ROLES = true;
|
|
46280
|
-
}
|
|
46281
46283
|
if (res.customFields.length) {
|
|
46282
46284
|
this.setFormField('custom_fields', res.customFields);
|
|
46283
46285
|
this.additionalOption.CUSTOM_FIELDS = true;
|
|
46284
46286
|
this.populateOptionalFields();
|
|
46285
46287
|
}
|
|
46288
|
+
this.fetchRoles();
|
|
46286
46289
|
this.populateMembers(res);
|
|
46287
46290
|
this.populateGroups(res);
|
|
46288
|
-
this.fetchUsersAssociatedWithRoles('getProgramDetails');
|
|
46289
|
-
this.fetchGroupsAssociatedWithRoles();
|
|
46290
46291
|
this.fetchOrganizationGroup(res);
|
|
46291
46292
|
this.fetchOrganizationUsers();
|
|
46292
46293
|
}
|