vcomply-workflow-engine 0.1.2 → 0.1.3
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 +16 -8
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/log-an-issue/log-an-issue.component.js +3 -3
- package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +19 -11
- package/fesm2015/vcomply-workflow-engine.js +16 -8
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
|
@@ -3006,7 +3006,9 @@
|
|
|
3006
3006
|
if ((res === null || res === void 0 ? void 0 : res.rc_id) > 0) {
|
|
3007
3007
|
_this.rcSelected.emit(true);
|
|
3008
3008
|
}
|
|
3009
|
-
|
|
3009
|
+
if (res === null || res === void 0 ? void 0 : res.audit_category_details) {
|
|
3010
|
+
_this.populateAssuranceList(res === null || res === void 0 ? void 0 : res.audit_category_details);
|
|
3011
|
+
}
|
|
3010
3012
|
if ((_q = res.assessment) === null || _q === void 0 ? void 0 : _q.assessment_id) {
|
|
3011
3013
|
_this.getAssessmentDetails(res.assessment);
|
|
3012
3014
|
}
|
|
@@ -3433,7 +3435,7 @@
|
|
|
3433
3435
|
};
|
|
3434
3436
|
WorkflowComplianceComponent.prototype.entrustResponsibility = function (entrustForm) {
|
|
3435
3437
|
var _this = this;
|
|
3436
|
-
var _a, _b, _c, _d, _e;
|
|
3438
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
3437
3439
|
console.log("entrustForm ==>", entrustForm);
|
|
3438
3440
|
this.loader = true;
|
|
3439
3441
|
this.uiKitService.isLoader = true;
|
|
@@ -3526,16 +3528,22 @@
|
|
|
3526
3528
|
test_required_flag: (moreOptions.ASSURANCE) ? (entrustForm.assuranceList.length > 0 ? 1 : 0) : 0,
|
|
3527
3529
|
testplan_category_id: (moreOptions.ASSURANCE) ? this.returnIds(entrustForm.assuranceList, 'category_id') : [],
|
|
3528
3530
|
testplan_category_manager: '',
|
|
3529
|
-
audit_category_details: {
|
|
3531
|
+
audit_category_details: ((_e = (_d = this.responsibilityForm) === null || _d === void 0 ? void 0 : _d.audit_category_details) === null || _e === void 0 ? void 0 : _e.category_id) ? {
|
|
3530
3532
|
category_id: this.responsibilityForm.audit_category_details.category_id,
|
|
3531
3533
|
sample: this.selectedSample === 0 ? this.sampleValue : 0,
|
|
3532
3534
|
percentage: this.selectedSample === 1 ? this.samplePercentage : 0,
|
|
3533
3535
|
frequency_pattern: "1~0~" + this.sendAuditRemindersValue + "~1",
|
|
3534
3536
|
frequency_time: moment__namespace(this.auditTime, 'HH:mm a').format('HH:mm:ss')
|
|
3537
|
+
} : {
|
|
3538
|
+
category_id: 0,
|
|
3539
|
+
sample: 0,
|
|
3540
|
+
percentage: 0,
|
|
3541
|
+
frequency_pattern: "",
|
|
3542
|
+
frequency_time: ''
|
|
3535
3543
|
},
|
|
3536
3544
|
assessment: {
|
|
3537
|
-
category_id: moreOptions.ASSESSMENT ? (
|
|
3538
|
-
assessment_id: moreOptions.ASSESSMENT ? (
|
|
3545
|
+
category_id: moreOptions.ASSESSMENT ? (_f = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assessment) === null || _f === void 0 ? void 0 : _f.category_id : '',
|
|
3546
|
+
assessment_id: moreOptions.ASSESSMENT ? (_g = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assessment) === null || _g === void 0 ? void 0 : _g.assessment_id : ''
|
|
3539
3547
|
}
|
|
3540
3548
|
};
|
|
3541
3549
|
this.responsibilityPayload = payload;
|
|
@@ -4154,7 +4162,7 @@
|
|
|
4154
4162
|
this.isAssessment = false;
|
|
4155
4163
|
this.responsibilityForm.assessment = event;
|
|
4156
4164
|
};
|
|
4157
|
-
// TODO: Populate assessment data from already selected data
|
|
4165
|
+
// TODO: Populate assessment data from already selected data
|
|
4158
4166
|
/**
|
|
4159
4167
|
*
|
|
4160
4168
|
* @param assessmentDetails : selected assessment details like it's object id and category_id
|
|
@@ -12883,10 +12891,10 @@
|
|
|
12883
12891
|
url = 'https://' + window.location.host;
|
|
12884
12892
|
}
|
|
12885
12893
|
if (window.location.host.startsWith('localhost')) {
|
|
12886
|
-
url += '/issue-workroom/' + ((_a = this.issueData) === null || _a === void 0 ? void 0 : _a._id);
|
|
12894
|
+
url += '/issue/issue-workroom/' + ((_a = this.issueData) === null || _a === void 0 ? void 0 : _a._id);
|
|
12887
12895
|
}
|
|
12888
12896
|
else {
|
|
12889
|
-
url += '/audit/issue-workroom/' + ((_b = this.issueData) === null || _b === void 0 ? void 0 : _b._id);
|
|
12897
|
+
url += '/issue/audit/issue-workroom/' + ((_b = this.issueData) === null || _b === void 0 ? void 0 : _b._id);
|
|
12890
12898
|
}
|
|
12891
12899
|
window.location.href = url;
|
|
12892
12900
|
};
|