vcomply-workflow-engine 2.4.21 → 2.4.22
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/bundles/vcomply-workflow-engine.umd.js +145 -39
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +144 -38
- package/esm2015/lib/workflow-compliance/workflow-compliance.component.ngsummary.json +1 -1
- package/esm2015/lib/workflow-services/responsibility.service.js +3 -3
- package/fesm2015/vcomply-workflow-engine.js +145 -39
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/lib/workflow-compliance/workflow-compliance.component.d.ts +3 -1
- package/lib/workflow-services/responsibility.service.d.ts +1 -1
- package/package.json +2 -2
- package/vcomply-workflow-engine.metadata.json +1 -1
|
@@ -2074,10 +2074,10 @@
|
|
|
2074
2074
|
params: params, headers: headers
|
|
2075
2075
|
}).pipe(operators.retry(2));
|
|
2076
2076
|
};
|
|
2077
|
-
ResponsibilityService.prototype.getAssignorsList = function () {
|
|
2077
|
+
ResponsibilityService.prototype.getAssignorsList = function (params) {
|
|
2078
2078
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
2079
2079
|
return this.http.get(this.env.organizationGet + 'organizationUsers&isOnBehalf=1', {
|
|
2080
|
-
headers: headers
|
|
2080
|
+
params: params, headers: headers
|
|
2081
2081
|
}).pipe(operators.retry(2));
|
|
2082
2082
|
};
|
|
2083
2083
|
ResponsibilityService.prototype.getCategoriesList = function () {
|
|
@@ -2646,6 +2646,11 @@
|
|
|
2646
2646
|
link: true,
|
|
2647
2647
|
placeholder: 'Add more information about completing the responsibility',
|
|
2648
2648
|
};
|
|
2649
|
+
this.programPeopleList = {
|
|
2650
|
+
assigneesList: [],
|
|
2651
|
+
reviewersList: [],
|
|
2652
|
+
overseersList: [],
|
|
2653
|
+
};
|
|
2649
2654
|
this.loader = false;
|
|
2650
2655
|
this.submitted = false;
|
|
2651
2656
|
this.smileyMessage = "Done!";
|
|
@@ -2863,8 +2868,8 @@
|
|
|
2863
2868
|
this.getAssignorsList();
|
|
2864
2869
|
this.getAssigneesList();
|
|
2865
2870
|
this.getAssurance();
|
|
2866
|
-
this.getAssuranceForRequiresAudit();
|
|
2867
2871
|
this.getGroupsList();
|
|
2872
|
+
this.getAssuranceForRequiresAudit();
|
|
2868
2873
|
this.checkWhetherAllListsLoaded();
|
|
2869
2874
|
this.getOrganizationDetails();
|
|
2870
2875
|
this.getUserDetails();
|
|
@@ -3029,18 +3034,29 @@
|
|
|
3029
3034
|
this.getPeopleListAgainstPID(program_id);
|
|
3030
3035
|
this.getRCList(program_id);
|
|
3031
3036
|
this.getGroupsList(program_id);
|
|
3037
|
+
this.getAssignorsList(program_id);
|
|
3032
3038
|
}
|
|
3033
3039
|
else {
|
|
3034
3040
|
this.getAssigneesList();
|
|
3035
3041
|
this.getRCList();
|
|
3036
3042
|
this.getGroupsList();
|
|
3043
|
+
this.getAssignorsList();
|
|
3037
3044
|
}
|
|
3038
3045
|
};
|
|
3039
|
-
WorkflowComplianceComponent.prototype.getAssignorsList = function () {
|
|
3046
|
+
WorkflowComplianceComponent.prototype.getAssignorsList = function (program_id) {
|
|
3040
3047
|
var _this = this;
|
|
3041
|
-
|
|
3048
|
+
var params = new i1.HttpParams();
|
|
3049
|
+
if (program_id) {
|
|
3050
|
+
params = params.append('program_ids', program_id);
|
|
3051
|
+
}
|
|
3052
|
+
this.responsibilityService.getAssignorsList(params).subscribe(function (res) {
|
|
3042
3053
|
_this.behalfOfUsersList = res;
|
|
3043
|
-
|
|
3054
|
+
if (program_id) {
|
|
3055
|
+
_this.refreshListsWhileProgramSelected();
|
|
3056
|
+
}
|
|
3057
|
+
else {
|
|
3058
|
+
_this.refreshAllLists();
|
|
3059
|
+
}
|
|
3044
3060
|
_this.assignorsListLoaded = true;
|
|
3045
3061
|
}, function (err) {
|
|
3046
3062
|
console.error(err);
|
|
@@ -3058,7 +3074,12 @@
|
|
|
3058
3074
|
user.member_name = user.employee_name;
|
|
3059
3075
|
return user;
|
|
3060
3076
|
});
|
|
3061
|
-
|
|
3077
|
+
if (program_id) {
|
|
3078
|
+
_this.refreshListsWhileProgramSelected();
|
|
3079
|
+
}
|
|
3080
|
+
else {
|
|
3081
|
+
_this.refreshAllLists();
|
|
3082
|
+
}
|
|
3062
3083
|
_this.assigneesListLoaded = true;
|
|
3063
3084
|
}, function (err) {
|
|
3064
3085
|
console.error(err);
|
|
@@ -3084,6 +3105,11 @@
|
|
|
3084
3105
|
user.member_name = user.employee_name;
|
|
3085
3106
|
return user;
|
|
3086
3107
|
});
|
|
3108
|
+
_this.programPeopleList = {
|
|
3109
|
+
assigneesList: __spreadArray([], __read(new Set(_this.assigneesList))),
|
|
3110
|
+
reviewersList: __spreadArray([], __read(new Set(_this.reviewersList))),
|
|
3111
|
+
overseersList: __spreadArray([], __read(new Set(_this.overseersList))),
|
|
3112
|
+
};
|
|
3087
3113
|
if (_this.responsibilityForm.program[0].default_assignee_ids) {
|
|
3088
3114
|
if (_this.responsibilityForm.assignees.list.length) {
|
|
3089
3115
|
var ids = _this.returnIds(_this.responsibilityForm.assignees.list, 'my_member_id');
|
|
@@ -3310,7 +3336,12 @@
|
|
|
3310
3336
|
else {
|
|
3311
3337
|
_this.isAssessmentDisabled.emit(true);
|
|
3312
3338
|
}
|
|
3313
|
-
_this.
|
|
3339
|
+
if (_this.responsibilityForm.program.length) {
|
|
3340
|
+
_this.refreshListsWhileProgramSelected();
|
|
3341
|
+
}
|
|
3342
|
+
else {
|
|
3343
|
+
_this.refreshAllLists();
|
|
3344
|
+
}
|
|
3314
3345
|
_this.getEditMoreOptions(res);
|
|
3315
3346
|
}
|
|
3316
3347
|
});
|
|
@@ -3402,14 +3433,19 @@
|
|
|
3402
3433
|
};
|
|
3403
3434
|
WorkflowComplianceComponent.prototype.saveSelectedList = function (type, selectedItems) {
|
|
3404
3435
|
var _this = this;
|
|
3405
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v
|
|
3436
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
3406
3437
|
switch (type) {
|
|
3407
3438
|
case 'assignors':
|
|
3408
3439
|
if (this.invalidType === 'whom') {
|
|
3409
3440
|
this.invalidType = '';
|
|
3410
3441
|
}
|
|
3411
3442
|
this.responsibilityForm.assignors.list = this.setList(this.assignorsList, [selectedItems.member_id], 'member_id');
|
|
3412
|
-
this.
|
|
3443
|
+
if (this.responsibilityForm.program.length) {
|
|
3444
|
+
this.refreshListsWhileProgramSelected();
|
|
3445
|
+
}
|
|
3446
|
+
else {
|
|
3447
|
+
this.refreshAllLists();
|
|
3448
|
+
}
|
|
3413
3449
|
break;
|
|
3414
3450
|
case 'assignees':
|
|
3415
3451
|
if (this.invalidType === 'who') {
|
|
@@ -3417,13 +3453,19 @@
|
|
|
3417
3453
|
}
|
|
3418
3454
|
if (this.assigneeRadioSelect) {
|
|
3419
3455
|
this.responsibilityForm.assignees.list = this.setList(this.assigneesList, [selectedItems.employee_id], 'employee_id');
|
|
3420
|
-
if (this.responsibilityForm.program.length
|
|
3456
|
+
if (this.responsibilityForm.program.length) {
|
|
3457
|
+
this.refreshListsWhileProgramSelected();
|
|
3458
|
+
}
|
|
3459
|
+
else {
|
|
3421
3460
|
this.refreshAllLists();
|
|
3422
3461
|
}
|
|
3423
3462
|
}
|
|
3424
3463
|
else {
|
|
3425
3464
|
this.responsibilityForm.assignees.list = this.setList(this.assigneesList, selectedItems, 'my_member_id');
|
|
3426
|
-
if (
|
|
3465
|
+
if (this.responsibilityForm.program.length) {
|
|
3466
|
+
this.refreshListsWhileProgramSelected();
|
|
3467
|
+
}
|
|
3468
|
+
else {
|
|
3427
3469
|
this.refreshAllLists();
|
|
3428
3470
|
}
|
|
3429
3471
|
}
|
|
@@ -3453,14 +3495,14 @@
|
|
|
3453
3495
|
case 'program':
|
|
3454
3496
|
if (this.selectedProgram) {
|
|
3455
3497
|
this.responsibilityForm.category = (selectedItems.categories) ? selectedItems.categories : [];
|
|
3456
|
-
var categoryId = (
|
|
3457
|
-
if ((
|
|
3458
|
-
this.responsibilityForm.category_id = ((
|
|
3498
|
+
var categoryId = (_a = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories) === null || _a === void 0 ? void 0 : _a.toString();
|
|
3499
|
+
if ((_b = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories) === null || _b === void 0 ? void 0 : _b.length) {
|
|
3500
|
+
this.responsibilityForm.category_id = ((_c = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _c === void 0 ? void 0 : _c.category_id) + ',' + categoryId;
|
|
3459
3501
|
}
|
|
3460
3502
|
else {
|
|
3461
|
-
this.responsibilityForm.category_id = (
|
|
3503
|
+
this.responsibilityForm.category_id = (_e = (_d = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _d === void 0 ? void 0 : _d.category_id) === null || _e === void 0 ? void 0 : _e.toString();
|
|
3462
3504
|
}
|
|
3463
|
-
this.responsibilityForm.program_selected_ids = __spreadArray(__spreadArray([], __read(new Set(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories))), __read(new Set([(
|
|
3505
|
+
this.responsibilityForm.program_selected_ids = __spreadArray(__spreadArray([], __read(new Set(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories))), __read(new Set([(_f = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _f === void 0 ? void 0 : _f.category_id])));
|
|
3464
3506
|
}
|
|
3465
3507
|
else {
|
|
3466
3508
|
this.responsibilityForm.category = (selectedItems.categories) ? selectedItems.categories : [];
|
|
@@ -3469,15 +3511,15 @@
|
|
|
3469
3511
|
this.responsibilityForm.program_selected_ids = [];
|
|
3470
3512
|
this.responsibilityForm.customTags = [];
|
|
3471
3513
|
this.responsibilityForm.program = (selectedItems.program) ? [selectedItems.program] : [];
|
|
3472
|
-
var categoryId = (
|
|
3473
|
-
if ((
|
|
3474
|
-
this.responsibilityForm.category_id = ((
|
|
3514
|
+
var categoryId = (_g = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories) === null || _g === void 0 ? void 0 : _g.toString();
|
|
3515
|
+
if ((_h = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories) === null || _h === void 0 ? void 0 : _h.length) {
|
|
3516
|
+
this.responsibilityForm.category_id = ((_j = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _j === void 0 ? void 0 : _j.category_id) + ',' + categoryId;
|
|
3475
3517
|
}
|
|
3476
3518
|
else {
|
|
3477
|
-
this.responsibilityForm.category_id = (
|
|
3519
|
+
this.responsibilityForm.category_id = (_l = (_k = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _k === void 0 ? void 0 : _k.category_id) === null || _l === void 0 ? void 0 : _l.toString();
|
|
3478
3520
|
}
|
|
3479
|
-
this.responsibilityForm.program_selected_ids = __spreadArray(__spreadArray([], __read(new Set(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories))), __read(new Set([(
|
|
3480
|
-
var programCustomTags = ((
|
|
3521
|
+
this.responsibilityForm.program_selected_ids = __spreadArray(__spreadArray([], __read(new Set(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories))), __read(new Set([(_m = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _m === void 0 ? void 0 : _m.category_id])));
|
|
3522
|
+
var programCustomTags = ((_o = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _o === void 0 ? void 0 : _o.custom_tags) ? JSON.parse(selectedItems.program.custom_tags) : [];
|
|
3481
3523
|
programCustomTags.forEach(function (tag) {
|
|
3482
3524
|
var tagData = JSON.parse(tag);
|
|
3483
3525
|
var index = _this.responsibilityForm.customTags.findIndex(function (tagElement) { return tagElement.tag_name == tagData.tag_name; });
|
|
@@ -3485,11 +3527,11 @@
|
|
|
3485
3527
|
_this.responsibilityForm.customTags.push(tagData);
|
|
3486
3528
|
}
|
|
3487
3529
|
});
|
|
3488
|
-
this.responsibilityForm.formatAndEvidence.evidenceRequired = ((
|
|
3489
|
-
if ((
|
|
3530
|
+
this.responsibilityForm.formatAndEvidence.evidenceRequired = ((_p = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _p === void 0 ? void 0 : _p.evidence_upload_flag) ? true : false;
|
|
3531
|
+
if ((_q = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _q === void 0 ? void 0 : _q.evidence_upload_flag) {
|
|
3490
3532
|
this.moreOptions.FORMATE_EVIDENCE = true;
|
|
3491
3533
|
}
|
|
3492
|
-
if ((
|
|
3534
|
+
if ((_r = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _r === void 0 ? void 0 : _r._id) {
|
|
3493
3535
|
this.filterListsAccordingToProgram(selectedItems.program._id);
|
|
3494
3536
|
}
|
|
3495
3537
|
else {
|
|
@@ -3499,19 +3541,28 @@
|
|
|
3499
3541
|
break;
|
|
3500
3542
|
case 'reviewer':
|
|
3501
3543
|
this.responsibilityForm.reviewers.list = this.setList(this.reviewersList, selectedItems, 'employee_id');
|
|
3502
|
-
if (this.responsibilityForm.program.length
|
|
3544
|
+
if (this.responsibilityForm.program.length) {
|
|
3545
|
+
this.refreshListsWhileProgramSelected();
|
|
3546
|
+
}
|
|
3547
|
+
else {
|
|
3503
3548
|
this.refreshAllLists();
|
|
3504
3549
|
}
|
|
3505
3550
|
break;
|
|
3506
3551
|
case 'overseer':
|
|
3507
3552
|
this.responsibilityForm.overseers.list = this.setList(this.overseersList, selectedItems, 'employee_id');
|
|
3508
|
-
if (this.responsibilityForm.program.length
|
|
3553
|
+
if (this.responsibilityForm.program.length) {
|
|
3554
|
+
this.refreshListsWhileProgramSelected();
|
|
3555
|
+
}
|
|
3556
|
+
else {
|
|
3509
3557
|
this.refreshAllLists();
|
|
3510
3558
|
}
|
|
3511
3559
|
break;
|
|
3512
3560
|
case 'overseerNotify':
|
|
3513
3561
|
this.responsibilityForm.overseers.notifyList = this.setList(this.overseersList, selectedItems, 'employee_id');
|
|
3514
|
-
if (this.responsibilityForm.program.length
|
|
3562
|
+
if (this.responsibilityForm.program.length) {
|
|
3563
|
+
this.refreshListsWhileProgramSelected();
|
|
3564
|
+
}
|
|
3565
|
+
else {
|
|
3515
3566
|
this.refreshAllLists();
|
|
3516
3567
|
}
|
|
3517
3568
|
break;
|
|
@@ -3531,10 +3582,10 @@
|
|
|
3531
3582
|
this.responsibilityForm.riskMatrix = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.riskMatrix;
|
|
3532
3583
|
break;
|
|
3533
3584
|
case 'formate_evidence':
|
|
3534
|
-
this.responsibilityForm.formatAndEvidence.formatRequired = (
|
|
3535
|
-
this.responsibilityForm.formatAndEvidence.formatFiles = (
|
|
3536
|
-
this.responsibilityForm.formatAndEvidence.formatLinks = (
|
|
3537
|
-
this.responsibilityForm.formatAndEvidence.evidenceRequired = (
|
|
3585
|
+
this.responsibilityForm.formatAndEvidence.formatRequired = (_s = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isFormateUploaded) !== null && _s !== void 0 ? _s : false;
|
|
3586
|
+
this.responsibilityForm.formatAndEvidence.formatFiles = (_t = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.files) !== null && _t !== void 0 ? _t : [];
|
|
3587
|
+
this.responsibilityForm.formatAndEvidence.formatLinks = (_u = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.links) !== null && _u !== void 0 ? _u : [];
|
|
3588
|
+
this.responsibilityForm.formatAndEvidence.evidenceRequired = (_v = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isEvidenceRequired) !== null && _v !== void 0 ? _v : false;
|
|
3538
3589
|
break;
|
|
3539
3590
|
case 'reviewFrequency':
|
|
3540
3591
|
this.responsibilityForm.reviewers.reviewFrequency = {
|
|
@@ -3558,33 +3609,50 @@
|
|
|
3558
3609
|
break;
|
|
3559
3610
|
case 'assignors':
|
|
3560
3611
|
this.responsibilityForm.assignors.list = [];
|
|
3561
|
-
this.
|
|
3612
|
+
if (this.responsibilityForm.program.length) {
|
|
3613
|
+
this.refreshListsWhileProgramSelected();
|
|
3614
|
+
}
|
|
3615
|
+
else {
|
|
3616
|
+
this.refreshAllLists();
|
|
3617
|
+
}
|
|
3562
3618
|
break;
|
|
3563
3619
|
case 'assignees':
|
|
3564
3620
|
var entrustIndex = this.responsibilityForm.assignees.list.findIndex(function (owner) { return owner.employee_id == event.employee_id; });
|
|
3565
3621
|
this.responsibilityForm.assignees.list.splice(entrustIndex, 1);
|
|
3566
|
-
if (this.responsibilityForm.program.length
|
|
3622
|
+
if (this.responsibilityForm.program.length) {
|
|
3623
|
+
this.refreshListsWhileProgramSelected();
|
|
3624
|
+
}
|
|
3625
|
+
else {
|
|
3567
3626
|
this.refreshAllLists();
|
|
3568
3627
|
}
|
|
3569
3628
|
break;
|
|
3570
3629
|
case 'reviewer':
|
|
3571
3630
|
var reviewerIndex = this.responsibilityForm.reviewers.list.findIndex(function (reviewer) { return reviewer.employee_id == event.employee_id; });
|
|
3572
3631
|
this.responsibilityForm.reviewers.list.splice(reviewerIndex, 1);
|
|
3573
|
-
if (this.responsibilityForm.program.length
|
|
3632
|
+
if (this.responsibilityForm.program.length) {
|
|
3633
|
+
this.refreshListsWhileProgramSelected();
|
|
3634
|
+
}
|
|
3635
|
+
else {
|
|
3574
3636
|
this.refreshAllLists();
|
|
3575
3637
|
}
|
|
3576
3638
|
break;
|
|
3577
3639
|
case 'overseer':
|
|
3578
3640
|
var overseerIndex = this.responsibilityForm.overseers.list.findIndex(function (overseer) { return overseer.employee_id == event.employee_id; });
|
|
3579
3641
|
this.responsibilityForm.overseers.list.splice(overseerIndex, 1);
|
|
3580
|
-
if (this.responsibilityForm.program.length
|
|
3642
|
+
if (this.responsibilityForm.program.length) {
|
|
3643
|
+
this.refreshListsWhileProgramSelected();
|
|
3644
|
+
}
|
|
3645
|
+
else {
|
|
3581
3646
|
this.refreshAllLists();
|
|
3582
3647
|
}
|
|
3583
3648
|
break;
|
|
3584
3649
|
case 'overseerNotifyList':
|
|
3585
3650
|
var overseerNotifyIndex = this.responsibilityForm.overseers.notifyList.findIndex(function (overseerN) { return overseerN.employee_id == event.employee_id; });
|
|
3586
3651
|
this.responsibilityForm.overseers.notifyList.splice(overseerNotifyIndex, 1);
|
|
3587
|
-
if (this.responsibilityForm.program.length
|
|
3652
|
+
if (this.responsibilityForm.program.length) {
|
|
3653
|
+
this.refreshListsWhileProgramSelected();
|
|
3654
|
+
}
|
|
3655
|
+
else {
|
|
3588
3656
|
this.refreshAllLists();
|
|
3589
3657
|
}
|
|
3590
3658
|
break;
|
|
@@ -3777,6 +3845,45 @@
|
|
|
3777
3845
|
this.reviewersList = allUsers.filter(function (user) { return !(overseerIds.includes(user.my_member_id) || assigneeIds.includes(user.my_member_id)); });
|
|
3778
3846
|
this.overseersList = allUsers.filter(function (user) { return !(assignorAndAssigneesIds.includes(user.my_member_id) || reviewersIds.includes(user.my_member_id)); });
|
|
3779
3847
|
};
|
|
3848
|
+
WorkflowComplianceComponent.prototype.refreshListsWhileProgramSelected = function () {
|
|
3849
|
+
var assignorAndAssigneesIds = [];
|
|
3850
|
+
var reviewersIds = [];
|
|
3851
|
+
var overseerIds = [];
|
|
3852
|
+
var assigneeIds = [];
|
|
3853
|
+
var behalfUsers = lodash.cloneDeep(this.behalfOfUsersList);
|
|
3854
|
+
var assignors = lodash.cloneDeep(this.responsibilityForm.assignors.list);
|
|
3855
|
+
var assignees = lodash.cloneDeep(this.responsibilityForm.assignees.list);
|
|
3856
|
+
var reviewers = lodash.cloneDeep(this.responsibilityForm.reviewers.list);
|
|
3857
|
+
var overseerList = lodash.cloneDeep(this.responsibilityForm.overseers.list);
|
|
3858
|
+
var notifyOverseers = lodash.cloneDeep(this.responsibilityForm.overseers.notifyList);
|
|
3859
|
+
assignors === null || assignors === void 0 ? void 0 : assignors.forEach(function (user) {
|
|
3860
|
+
assignorAndAssigneesIds.push(user.member_id);
|
|
3861
|
+
});
|
|
3862
|
+
assignees === null || assignees === void 0 ? void 0 : assignees.forEach(function (user) {
|
|
3863
|
+
assignorAndAssigneesIds.push(user.my_member_id);
|
|
3864
|
+
assigneeIds.push(user.my_member_id);
|
|
3865
|
+
});
|
|
3866
|
+
if (this.responsibilityForm.assignors.list.length == 0) {
|
|
3867
|
+
assignorAndAssigneesIds.push(this.memberId);
|
|
3868
|
+
}
|
|
3869
|
+
reviewers === null || reviewers === void 0 ? void 0 : reviewers.forEach(function (user) {
|
|
3870
|
+
reviewersIds.push(user.my_member_id);
|
|
3871
|
+
});
|
|
3872
|
+
overseerList === null || overseerList === void 0 ? void 0 : overseerList.forEach(function (user) {
|
|
3873
|
+
overseerIds.push(user.my_member_id);
|
|
3874
|
+
});
|
|
3875
|
+
notifyOverseers === null || notifyOverseers === void 0 ? void 0 : notifyOverseers.forEach(function (user) {
|
|
3876
|
+
overseerIds.push(user.my_member_id);
|
|
3877
|
+
});
|
|
3878
|
+
assignorAndAssigneesIds = __spreadArray([], __read(new Set(assignorAndAssigneesIds)));
|
|
3879
|
+
assigneeIds = __spreadArray([], __read(new Set(assigneeIds)));
|
|
3880
|
+
reviewersIds = __spreadArray([], __read(new Set(reviewersIds)));
|
|
3881
|
+
overseerIds = __spreadArray([], __read(new Set(overseerIds)));
|
|
3882
|
+
this.assignorsList = behalfUsers.filter(function (user) { return !(overseerIds.includes(user.member_id)); });
|
|
3883
|
+
this.assigneesList = this.programPeopleList.assigneesList.filter(function (user) { return !(reviewersIds.includes(user.my_member_id) || overseerIds.includes(user.my_member_id)); });
|
|
3884
|
+
this.reviewersList = this.programPeopleList.reviewersList.filter(function (user) { return !(overseerIds.includes(user.my_member_id) || assigneeIds.includes(user.my_member_id)); });
|
|
3885
|
+
this.overseersList = this.programPeopleList.overseersList.filter(function (user) { return !(assignorAndAssigneesIds.includes(user.my_member_id) || reviewersIds.includes(user.my_member_id)); });
|
|
3886
|
+
};
|
|
3780
3887
|
WorkflowComplianceComponent.prototype.submitResponsibility = function () {
|
|
3781
3888
|
var valid = this.validateResponsibility();
|
|
3782
3889
|
if (!valid) {
|
|
@@ -4546,7 +4653,6 @@
|
|
|
4546
4653
|
// TODO: select Assessment list and set id to payload
|
|
4547
4654
|
WorkflowComplianceComponent.prototype.onAssessmentSelect = function (event) {
|
|
4548
4655
|
this.isAssessment = false;
|
|
4549
|
-
debugger;
|
|
4550
4656
|
this.responsibilityForm.assessment = event;
|
|
4551
4657
|
};
|
|
4552
4658
|
// TODO: Populate assessment data from already selected data
|