vcomply-workflow-engine 2.6.2 → 2.6.5
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 +11 -6
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +3 -3
- package/esm2015/lib/workflow-program/workflow-program.component.js +10 -5
- package/fesm2015/vcomply-workflow-engine.js +11 -6
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
|
@@ -3428,7 +3428,6 @@
|
|
|
3428
3428
|
else {
|
|
3429
3429
|
_this.responsibilityForm.reviewers.list = [];
|
|
3430
3430
|
}
|
|
3431
|
-
console.log("reviewersListreviewersList", _this.responsibilityForm.program[0], _this.reviewersList, _this.responsibilityForm.reviewers.list, reviewers);
|
|
3432
3431
|
}
|
|
3433
3432
|
else {
|
|
3434
3433
|
_this.responsibilityForm.reviewers.list = [];
|
|
@@ -3438,7 +3437,8 @@
|
|
|
3438
3437
|
var allDefaultCCIds_1 = __spreadArray(__spreadArray([], __read(new Set(ids))), __read(new Set((_r = (_q = (_p = _this.responsibilityForm) === null || _p === void 0 ? void 0 : _p.program[0]) === null || _q === void 0 ? void 0 : _q.default_overseers) === null || _r === void 0 ? void 0 : _r.cc_email)));
|
|
3439
3438
|
var overseersCC = (_s = _this.overseersList) === null || _s === void 0 ? void 0 : _s.filter(function (element) { return allDefaultCCIds_1 === null || allDefaultCCIds_1 === void 0 ? void 0 : allDefaultCCIds_1.includes(element === null || element === void 0 ? void 0 : element.my_member_id); });
|
|
3440
3439
|
// const overseers = this.overseersList.filter((element: any) => this.responsibilityForm.program[0].default_overseers.cc_email.includes(element.my_member_id));
|
|
3441
|
-
var
|
|
3440
|
+
var notifyListIds = _this.returnIds(_this.responsibilityForm.overseers.notifyList, 'my_member_id');
|
|
3441
|
+
var allDefaultCCFailureIds_1 = __spreadArray(__spreadArray([], __read(new Set(notifyListIds))), __read(new Set((_v = (_u = (_t = _this.responsibilityForm) === null || _t === void 0 ? void 0 : _t.program[0]) === null || _u === void 0 ? void 0 : _u.default_overseers) === null || _v === void 0 ? void 0 : _v.failure_cc_email)));
|
|
3442
3442
|
var overseersCCFailure = (_w = _this.overseersList) === null || _w === void 0 ? void 0 : _w.filter(function (element) { return allDefaultCCFailureIds_1 === null || allDefaultCCFailureIds_1 === void 0 ? void 0 : allDefaultCCFailureIds_1.includes(element === null || element === void 0 ? void 0 : element.my_member_id); });
|
|
3443
3443
|
// const notifyOverseers = this.overseersList.filter((element: any) => this.responsibilityForm.program[0].default_overseers.failure_cc_email.includes(element.my_member_id));
|
|
3444
3444
|
// if (overseers.length) {
|
|
@@ -25660,18 +25660,23 @@
|
|
|
25660
25660
|
WorkflowProgramComponent.prototype.fetchUsersAssociatedWithRoles = function () {
|
|
25661
25661
|
var _this = this;
|
|
25662
25662
|
var _a, _b;
|
|
25663
|
+
var loggedInUser = this.currentUser();
|
|
25663
25664
|
var roleIds = (_b = (_a = this.controls.program_roles) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.map(function (ele) { return ele === null || ele === void 0 ? void 0 : ele._id; });
|
|
25664
25665
|
// if (fetchAll) {
|
|
25665
25666
|
this.programService.fetchAllRoleUsers(roleIds).subscribe({
|
|
25666
25667
|
next: function (res) {
|
|
25667
|
-
var _a, _b, _c, _d, _e, _f;
|
|
25668
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
25669
|
+
var isUserFind = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.some(function (res) { return (res === null || res === void 0 ? void 0 : res.member_id) === (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.member_id); });
|
|
25670
|
+
if (!isUserFind) {
|
|
25671
|
+
(_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.push(loggedInUser);
|
|
25672
|
+
res.total_items = (res === null || res === void 0 ? void 0 : res.total_items) + 1;
|
|
25673
|
+
}
|
|
25668
25674
|
_this.lists.OWNERS = res;
|
|
25669
25675
|
_this.lists.APPROVERS = res;
|
|
25670
|
-
|
|
25671
|
-
if (!((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.map(function (ele) { return ele === null || ele === void 0 ? void 0 : ele.member_id; })) === null || _b === void 0 ? void 0 : _b.includes((_d = (_c = _this.controls.program_approver) === null || _c === void 0 ? void 0 : _c.value[0]) === null || _d === void 0 ? void 0 : _d.member_id))) {
|
|
25676
|
+
if (!((_d = (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.map(function (ele) { return ele === null || ele === void 0 ? void 0 : ele.member_id; })) === null || _d === void 0 ? void 0 : _d.includes((_f = (_e = _this.controls.program_approver) === null || _e === void 0 ? void 0 : _e.value[0]) === null || _f === void 0 ? void 0 : _f.member_id))) {
|
|
25672
25677
|
_this.setFormField('program_approver', []);
|
|
25673
25678
|
}
|
|
25674
|
-
if ((
|
|
25679
|
+
if ((_h = (_g = _this.controls) === null || _g === void 0 ? void 0 : _g.all_user_in_role) === null || _h === void 0 ? void 0 : _h.value) {
|
|
25675
25680
|
_this.setFormField('program_owners', res === null || res === void 0 ? void 0 : res.data);
|
|
25676
25681
|
}
|
|
25677
25682
|
else {
|