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