vcomply-workflow-engine 2.6.87 → 2.6.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/bundles/vcomply-workflow-engine.umd.js +17 -17
- 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 +18 -18
- package/fesm2015/vcomply-workflow-engine.js +17 -17
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
|
@@ -28420,9 +28420,9 @@ class AddMultipleResponsibilityWithTabComponent {
|
|
|
28420
28420
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
28421
28421
|
this.loader = true;
|
|
28422
28422
|
const payload = [];
|
|
28423
|
-
const frequencyTypeArray = ['1', '2', '3', '4', '7', '0'];
|
|
28424
|
-
const defaultWindow = [0, 2, 7, 30, 7, 15];
|
|
28425
|
-
const defaultFailedDay = [1, 2, 5, 5, 5, 5];
|
|
28423
|
+
const frequencyTypeArray = ['1', '2', '3', '4', '7', '0', '6'];
|
|
28424
|
+
const defaultWindow = [0, 2, 7, 30, 7, 15, 3];
|
|
28425
|
+
const defaultFailedDay = [1, 2, 5, 5, 5, 5, 5];
|
|
28426
28426
|
// this.bulkUpload?.frequency
|
|
28427
28427
|
let 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);
|
|
28428
28428
|
// this.responsibilityBulkUpload.reports.forEach((report: any) => {
|
|
@@ -28452,14 +28452,14 @@ class AddMultipleResponsibilityWithTabComponent {
|
|
|
28452
28452
|
let completeDays;
|
|
28453
28453
|
let notCompleteDays;
|
|
28454
28454
|
const frequencyType = frequencyValue === null || frequencyValue === void 0 ? void 0 : frequencyValue.split('~')[0];
|
|
28455
|
-
if (report.responsibilityWindow !== '') {
|
|
28455
|
+
if (report.responsibilityWindow && report.responsibilityWindow !== '') {
|
|
28456
28456
|
completeDays = report === null || report === void 0 ? void 0 : report.responsibilityWindow;
|
|
28457
28457
|
}
|
|
28458
28458
|
else if (frequencyTypeArray === null || frequencyTypeArray === void 0 ? void 0 : frequencyTypeArray.includes(frequencyType)) {
|
|
28459
28459
|
const indexOfArray = frequencyTypeArray === null || frequencyTypeArray === void 0 ? void 0 : frequencyTypeArray.indexOf(frequencyType);
|
|
28460
28460
|
completeDays = defaultWindow[indexOfArray];
|
|
28461
28461
|
}
|
|
28462
|
-
if ((report === null || report === void 0 ? void 0 : report.failedAfter) !== '') {
|
|
28462
|
+
if ((report === null || report === void 0 ? void 0 : report.failedAfter) && (report === null || report === void 0 ? void 0 : report.failedAfter) !== '') {
|
|
28463
28463
|
notCompleteDays = report === null || report === void 0 ? void 0 : report.failedAfter;
|
|
28464
28464
|
}
|
|
28465
28465
|
else if (frequencyTypeArray.includes(frequencyType)) {
|
|
@@ -28491,15 +28491,15 @@ class AddMultipleResponsibilityWithTabComponent {
|
|
|
28491
28491
|
frequency_handler: frequencyValue,
|
|
28492
28492
|
compliance_type: frequencyValue === null || frequencyValue === void 0 ? void 0 : frequencyValue.split('~')[0],
|
|
28493
28493
|
frequency_description: report === null || report === void 0 ? void 0 : report.frequency,
|
|
28494
|
-
start_date: (report.day) ? startDate : currentDate + ' 00:00:00',
|
|
28495
|
-
risk_class: (_t = report.reportClass) !== null && _t !== void 0 ? _t : '',
|
|
28496
|
-
risk_classId: (report.reportClass) ? this.returnIds(report.reportClass, 'risk_class') : ((this.riskClassEnabled) ? 1 : 2),
|
|
28494
|
+
start_date: (report === null || report === void 0 ? void 0 : report.day) ? startDate : currentDate + ' 00:00:00',
|
|
28495
|
+
risk_class: (_t = report === null || report === void 0 ? void 0 : report.reportClass) !== null && _t !== void 0 ? _t : '',
|
|
28496
|
+
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),
|
|
28497
28497
|
doc_utc: 0,
|
|
28498
|
-
comment: (_u = report.notes) !== null && _u !== void 0 ? _u : '',
|
|
28498
|
+
comment: (_u = report === null || report === void 0 ? void 0 : report.notes) !== null && _u !== void 0 ? _u : '',
|
|
28499
28499
|
cc_mail: ccDetails ? ccDetails === null || ccDetails === void 0 ? void 0 : ccDetails.email : '',
|
|
28500
28500
|
cc_mail_id: ccDetails ? ccDetails === null || ccDetails === void 0 ? void 0 : ccDetails.employeeId : '',
|
|
28501
|
-
cc_failed_mail: ccFailureDetails ? ccFailureDetails.email : '',
|
|
28502
|
-
cc_failure_id: ccFailureDetails ? ccFailureDetails.employeeId : 0,
|
|
28501
|
+
cc_failed_mail: ccFailureDetails ? ccFailureDetails === null || ccFailureDetails === void 0 ? void 0 : ccFailureDetails.email : '',
|
|
28502
|
+
cc_failure_id: ccFailureDetails ? ccFailureDetails === null || ccFailureDetails === void 0 ? void 0 : ccFailureDetails.employeeId : 0,
|
|
28503
28503
|
send_reminder: "",
|
|
28504
28504
|
responsibilityWindow: (frequencyType === '1') ? 0 : completeDays,
|
|
28505
28505
|
failed_after: notCompleteDays,
|
|
@@ -28520,10 +28520,10 @@ class AddMultipleResponsibilityWithTabComponent {
|
|
|
28520
28520
|
type: "SEQUENTIAL"
|
|
28521
28521
|
}
|
|
28522
28522
|
} : {},
|
|
28523
|
-
reviewerWindow: (report === null || report === void 0 ? void 0 : report.reviewToBeCompletedWithin) ===
|
|
28524
|
-
reviewerFailure: report.reviewWillBeFailedAfter === '' ?
|
|
28525
|
-
reviewer_email: reviewerDetails ? reviewerDetails.email : '',
|
|
28526
|
-
formatForResponsibility: report.formatForResponsibility ? report.formatForResponsibility : '',
|
|
28523
|
+
reviewerWindow: ((report === null || report === void 0 ? void 0 : report.reviewToBeCompletedWithin) && (report === null || report === void 0 ? void 0 : report.reviewToBeCompletedWithin) !== '') ? report === null || report === void 0 ? void 0 : report.reviewToBeCompletedWithin : 2,
|
|
28524
|
+
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,
|
|
28525
|
+
reviewer_email: reviewerDetails ? reviewerDetails === null || reviewerDetails === void 0 ? void 0 : reviewerDetails.email : '',
|
|
28526
|
+
formatForResponsibility: (report === null || report === void 0 ? void 0 : report.formatForResponsibility) ? report.formatForResponsibility : '',
|
|
28527
28527
|
documentaryEvidence: (_w = report === null || report === void 0 ? void 0 : report.evidenceNotes) !== null && _w !== void 0 ? _w : '',
|
|
28528
28528
|
isdocumentaryEvidence: (report.documentEvidenceRequired === 'Yes') ? 1 : 0,
|
|
28529
28529
|
objective: (_x = report.objective) !== null && _x !== void 0 ? _x : '',
|
|
@@ -28537,7 +28537,7 @@ class AddMultipleResponsibilityWithTabComponent {
|
|
|
28537
28537
|
payload.push(obj);
|
|
28538
28538
|
}
|
|
28539
28539
|
});
|
|
28540
|
-
console.log("payloadpayload",
|
|
28540
|
+
// console.log("payloadpayload",payload, "responsibilityBulkUpload ==>", responsibilityBulkUpload )
|
|
28541
28541
|
this.responsibilityService.addBulkResponsibility(payload).subscribe((res) => {
|
|
28542
28542
|
this.loader = false;
|
|
28543
28543
|
this.showExcel = false;
|
|
@@ -28875,7 +28875,7 @@ class AddMultipleResponsibilityWithTabComponent {
|
|
|
28875
28875
|
}
|
|
28876
28876
|
});
|
|
28877
28877
|
}
|
|
28878
|
-
console.log('this.uploadedFiles this.templateInfo',
|
|
28878
|
+
// console.log('this.uploadedFiles this.templateInfo',this.templateInfo, this.bulkUpload)
|
|
28879
28879
|
}
|
|
28880
28880
|
/**
|
|
28881
28881
|
* It takes an event, which is a string, and then it sets the responsibilityBulkUpload variable to
|