vcomply-workflow-engine 2.6.163 → 2.6.165
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 +14 -15
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.js +15 -16
- package/fesm2015/vcomply-workflow-engine.js +14 -15
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
|
@@ -30732,7 +30732,7 @@
|
|
|
30732
30732
|
var responsibilityBulkUpload = (_c = (_b = (_a = this.bulkUpload) === null || _a === void 0 ? void 0 : _a.frequency) === null || _b === void 0 ? void 0 : _b.reports) === null || _c === void 0 ? void 0 : _c.concat((_e = (_d = this.bulkUpload) === null || _d === void 0 ? void 0 : _d.ongoing) === null || _e === void 0 ? void 0 : _e.reports, (_g = (_f = this.bulkUpload) === null || _f === void 0 ? void 0 : _f.onCompletion) === null || _g === void 0 ? void 0 : _g.reports);
|
|
30733
30733
|
// this.responsibilityBulkUpload.reports.forEach((report: any) => {
|
|
30734
30734
|
responsibilityBulkUpload.forEach(function (report) {
|
|
30735
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
30735
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
30736
30736
|
if (report.isValid) {
|
|
30737
30737
|
if ((report === null || report === void 0 ? void 0 : report.responsibilityCategory) === null) {
|
|
30738
30738
|
report.responsibilityCategory = '';
|
|
@@ -30780,13 +30780,13 @@
|
|
|
30780
30780
|
created_by: (assignorDetails) ? _this.memberId : 0,
|
|
30781
30781
|
report_name: (_g = report === null || report === void 0 ? void 0 : report.responsibilityName) !== null && _g !== void 0 ? _g : '',
|
|
30782
30782
|
entrusted_to: (_j = (_h = report === null || report === void 0 ? void 0 : report.assignee) === null || _h === void 0 ? void 0 : _h.split(' (')[0]) !== null && _j !== void 0 ? _j : '',
|
|
30783
|
-
entrusted_to_id: _this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee) ? _this.getEmployeeIdFromGroup(report === null || report === void 0 ? void 0 : report.assignee) : _this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to'),
|
|
30784
|
-
email_address: !_this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee) ? ((
|
|
30785
|
-
isGroupAssignTo: ((
|
|
30783
|
+
entrusted_to_id: _this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee) ? _this.getEmployeeIdFromGroup(report === null || report === void 0 ? void 0 : report.assignee) : (_l = (_k = _this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to')) === null || _k === void 0 ? void 0 : _k.toString()) !== null && _l !== void 0 ? _l : '',
|
|
30784
|
+
email_address: !_this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee) ? ((_p = (_o = (_m = report === null || report === void 0 ? void 0 : report.assignee) === null || _m === void 0 ? void 0 : _m.split(' (')[1]) === null || _o === void 0 ? void 0 : _o.replace(')', '')) !== null && _p !== void 0 ? _p : '') : '',
|
|
30785
|
+
isGroupAssignTo: ((_q = report === null || report === void 0 ? void 0 : report.assigneeType) === null || _q === void 0 ? void 0 : _q.includes('Any')) ? 1 : 0,
|
|
30786
30786
|
// category_name: categoryName,
|
|
30787
30787
|
category_name_with_tree: '',
|
|
30788
|
-
category_id: (
|
|
30789
|
-
program_cat_ids: ((
|
|
30788
|
+
category_id: (_s = (_r = _this.getProgramId(report === null || report === void 0 ? void 0 : report.program, report === null || report === void 0 ? void 0 : report.programCategory).categoryId) === null || _r === void 0 ? void 0 : _r.toString()) !== null && _s !== void 0 ? _s : '',
|
|
30789
|
+
program_cat_ids: ((_t = _this.getProgramId(report === null || report === void 0 ? void 0 : report.program, report === null || report === void 0 ? void 0 : report.programCategory)) === null || _t === void 0 ? void 0 : _t.childProgramId) ? [(_u = _this.getProgramId(report === null || report === void 0 ? void 0 : report.program, report === null || report === void 0 ? void 0 : report.programCategory)) === null || _u === void 0 ? void 0 : _u.childProgramId] : [],
|
|
30790
30790
|
rc_name: rcDetails ? rcDetails === null || rcDetails === void 0 ? void 0 : rcDetails.name : '',
|
|
30791
30791
|
rc_id: rcDetails ? rcDetails === null || rcDetails === void 0 ? void 0 : rcDetails.rcId : 0,
|
|
30792
30792
|
entity_tree: (rcDetails && (rcDetails === null || rcDetails === void 0 ? void 0 : rcDetails.rcId)) ? [{
|
|
@@ -30794,8 +30794,8 @@
|
|
|
30794
30794
|
rc_id: rcDetails ? rcDetails === null || rcDetails === void 0 ? void 0 : rcDetails.rcId : 0
|
|
30795
30795
|
}] : [],
|
|
30796
30796
|
userGroupIds: {
|
|
30797
|
-
assigneeAllGroupIds: (!((
|
|
30798
|
-
assigneeAnyoneGroupIds: (((
|
|
30797
|
+
assigneeAllGroupIds: (!((_v = report === null || report === void 0 ? void 0 : report.assigneeType) === null || _v === void 0 ? void 0 : _v.includes('Any')) && _this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee)) ? [_this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to')] : [],
|
|
30798
|
+
assigneeAnyoneGroupIds: (((_w = report === null || report === void 0 ? void 0 : report.assigneeType) === null || _w === void 0 ? void 0 : _w.includes('Any')) && _this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee)) ? [_this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to')] : [],
|
|
30799
30799
|
ccEmailGroupIds: [],
|
|
30800
30800
|
failureCCEmailGroupIds: [],
|
|
30801
30801
|
reviewerGroupIds: []
|
|
@@ -30804,10 +30804,10 @@
|
|
|
30804
30804
|
compliance_type: frequencyValue === null || frequencyValue === void 0 ? void 0 : frequencyValue.split('~')[0],
|
|
30805
30805
|
frequency_description: report === null || report === void 0 ? void 0 : report.frequency,
|
|
30806
30806
|
start_date: (report === null || report === void 0 ? void 0 : report.day) ? startDate : currentDate + ' 00:00:00',
|
|
30807
|
-
risk_class: (
|
|
30807
|
+
risk_class: (_x = report === null || report === void 0 ? void 0 : report.reportClass) !== null && _x !== void 0 ? _x : '',
|
|
30808
30808
|
risk_classId: (report === null || report === void 0 ? void 0 : report.reportClass) ? _this.returnIds(report === null || report === void 0 ? void 0 : report.reportClass, 'risk_class') : ((_this.riskClassEnabled) ? 1 : 2),
|
|
30809
30809
|
doc_utc: 0,
|
|
30810
|
-
comment: (
|
|
30810
|
+
comment: (_y = report === null || report === void 0 ? void 0 : report.notes) !== null && _y !== void 0 ? _y : '',
|
|
30811
30811
|
cc_mail: ccDetails ? ccDetails === null || ccDetails === void 0 ? void 0 : ccDetails.email : '',
|
|
30812
30812
|
cc_mail_id: ccDetails ? ccDetails === null || ccDetails === void 0 ? void 0 : ccDetails.employeeId : '',
|
|
30813
30813
|
cc_failed_mail: ccFailureDetails ? ccFailureDetails === null || ccFailureDetails === void 0 ? void 0 : ccFailureDetails.email : '',
|
|
@@ -30816,7 +30816,7 @@
|
|
|
30816
30816
|
responsibilityWindow: (frequencyType === '1') ? 0 : completeDays,
|
|
30817
30817
|
failed_after: notCompleteDays,
|
|
30818
30818
|
excel_sheet_name: "",
|
|
30819
|
-
report_upload_flag: (((report === null || report === void 0 ? void 0 : report.isFormat) === 'Yes') && ((
|
|
30819
|
+
report_upload_flag: (((report === null || report === void 0 ? void 0 : report.isFormat) === 'Yes') && ((_z = report === null || report === void 0 ? void 0 : report.formatForResponsibility) === null || _z === void 0 ? void 0 : _z.length)) ? 1 : 0,
|
|
30820
30820
|
report_id: 0,
|
|
30821
30821
|
is_assigned_flag: 0,
|
|
30822
30822
|
private_library_id: 0,
|
|
@@ -30836,14 +30836,14 @@
|
|
|
30836
30836
|
reviewerFailure: ((report === null || report === void 0 ? void 0 : report.reviewWillBeFailedAfter) && (report === null || report === void 0 ? void 0 : report.reviewWillBeFailedAfter) !== '') ? report === null || report === void 0 ? void 0 : report.reviewWillBeFailedAfter : 2,
|
|
30837
30837
|
reviewer_email: reviewerDetails ? reviewerDetails === null || reviewerDetails === void 0 ? void 0 : reviewerDetails.email : '',
|
|
30838
30838
|
formatForResponsibility: (report === null || report === void 0 ? void 0 : report.formatForResponsibility) ? report.formatForResponsibility : '',
|
|
30839
|
-
documentaryEvidence: (
|
|
30839
|
+
documentaryEvidence: (_0 = report === null || report === void 0 ? void 0 : report.evidenceNotes) !== null && _0 !== void 0 ? _0 : '',
|
|
30840
30840
|
isdocumentaryEvidence: (report.documentEvidenceRequired === 'Yes') ? 1 : 0,
|
|
30841
|
-
objective: (
|
|
30841
|
+
objective: (_1 = report.objective) !== null && _1 !== void 0 ? _1 : '',
|
|
30842
30842
|
excel_sheet_info: _this.fileResponse,
|
|
30843
30843
|
showList: false,
|
|
30844
30844
|
custom_tags: '[]',
|
|
30845
30845
|
questionnaire_type: '',
|
|
30846
|
-
on_completion_of_type: ((report === null || report === void 0 ? void 0 : report.frequency) === 'On Completion of' || ((
|
|
30846
|
+
on_completion_of_type: ((report === null || report === void 0 ? void 0 : report.frequency) === 'On Completion of' || ((_2 = report === null || report === void 0 ? void 0 : report.frequency) === null || _2 === void 0 ? void 0 : _2.toLowerCase()) === 'ongoing') ? 1 : 0,
|
|
30847
30847
|
on_completion_of: _this.returnIds(report === null || report === void 0 ? void 0 : report.parentResponsibility, 'parentResponsibility') ? [_this.returnIds(report === null || report === void 0 ? void 0 : report.parentResponsibility, 'parentResponsibility')] : [],
|
|
30848
30848
|
};
|
|
30849
30849
|
payload.push(obj);
|
|
@@ -31187,7 +31187,6 @@
|
|
|
31187
31187
|
var childCategory = [];
|
|
31188
31188
|
/* Creating a list of child categories. */
|
|
31189
31189
|
for (var j = 1; true; j++) {
|
|
31190
|
-
console.log("tempList[j]tempList[j]", tempList[j], index);
|
|
31191
31190
|
if (tempList[j] && tempList[j][index]) {
|
|
31192
31191
|
var category_1 = {
|
|
31193
31192
|
name: tempList[j][index - 1],
|