vcomply-workflow-engine 2.6.5 → 2.6.6
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 +18 -16
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +19 -17
- package/fesm2015/vcomply-workflow-engine.js +18 -16
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
|
@@ -3760,7 +3760,7 @@
|
|
|
3760
3760
|
};
|
|
3761
3761
|
WorkflowComplianceComponent.prototype.saveSelectedList = function (type, selectedItems) {
|
|
3762
3762
|
var _this = this;
|
|
3763
|
-
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, _3, _4;
|
|
3763
|
+
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, _3, _4, _5;
|
|
3764
3764
|
switch (type) {
|
|
3765
3765
|
case 'assignors':
|
|
3766
3766
|
if (this.invalidType === 'whom') {
|
|
@@ -3832,22 +3832,24 @@
|
|
|
3832
3832
|
this.responsibilityForm.program_selected_ids = __spreadArray(__spreadArray([], __read(new Set(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories))), __read(new Set([(_j = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _j === void 0 ? void 0 : _j.category_id])));
|
|
3833
3833
|
}
|
|
3834
3834
|
else {
|
|
3835
|
-
|
|
3835
|
+
if ((_k = this.responsibilityForm) === null || _k === void 0 ? void 0 : _k.assessment) {
|
|
3836
|
+
((_m = Object.keys((_l = this.responsibilityForm) === null || _l === void 0 ? void 0 : _l.assessment)) === null || _m === void 0 ? void 0 : _m.length) ? this.getProgramDetails(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program._id) : null;
|
|
3837
|
+
}
|
|
3836
3838
|
this.responsibilityForm.category = (selectedItems.categories) ? selectedItems.categories : [];
|
|
3837
3839
|
this.responsibilityForm.program = [];
|
|
3838
3840
|
this.responsibilityForm.category_id = '';
|
|
3839
3841
|
this.responsibilityForm.program_selected_ids = [];
|
|
3840
3842
|
this.responsibilityForm.customTags = [];
|
|
3841
3843
|
this.responsibilityForm.program = (selectedItems.program) ? [selectedItems.program] : [];
|
|
3842
|
-
var categoryId = (
|
|
3843
|
-
if ((
|
|
3844
|
-
this.responsibilityForm.category_id = ((
|
|
3844
|
+
var categoryId = (_o = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories) === null || _o === void 0 ? void 0 : _o.toString();
|
|
3845
|
+
if ((_p = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories) === null || _p === void 0 ? void 0 : _p.length) {
|
|
3846
|
+
this.responsibilityForm.category_id = ((_q = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _q === void 0 ? void 0 : _q.category_id) + ',' + categoryId;
|
|
3845
3847
|
}
|
|
3846
3848
|
else {
|
|
3847
|
-
this.responsibilityForm.category_id = (
|
|
3849
|
+
this.responsibilityForm.category_id = (_s = (_r = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _r === void 0 ? void 0 : _r.category_id) === null || _s === void 0 ? void 0 : _s.toString();
|
|
3848
3850
|
}
|
|
3849
|
-
this.responsibilityForm.program_selected_ids = __spreadArray(__spreadArray([], __read(new Set(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories))), __read(new Set([(
|
|
3850
|
-
var programCustomTags = ((
|
|
3851
|
+
this.responsibilityForm.program_selected_ids = __spreadArray(__spreadArray([], __read(new Set(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories))), __read(new Set([(_t = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _t === void 0 ? void 0 : _t.category_id])));
|
|
3852
|
+
var programCustomTags = ((_u = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _u === void 0 ? void 0 : _u.custom_tags) ? JSON.parse((_v = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _v === void 0 ? void 0 : _v.custom_tags) : [];
|
|
3851
3853
|
programCustomTags === null || programCustomTags === void 0 ? void 0 : programCustomTags.forEach(function (tag) {
|
|
3852
3854
|
var tagData = JSON === null || JSON === void 0 ? void 0 : JSON.parse(tag);
|
|
3853
3855
|
var index = _this.responsibilityForm.customTags.findIndex(function (tagElement) { return tagElement.tag_name == tagData.tag_name; });
|
|
@@ -3855,12 +3857,12 @@
|
|
|
3855
3857
|
_this.responsibilityForm.customTags.push(tagData);
|
|
3856
3858
|
}
|
|
3857
3859
|
});
|
|
3858
|
-
this.responsibilityForm.formatAndEvidence.evidenceRequired = ((
|
|
3859
|
-
if ((
|
|
3860
|
+
this.responsibilityForm.formatAndEvidence.evidenceRequired = ((_w = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _w === void 0 ? void 0 : _w.evidence_upload_flag) ? true : false;
|
|
3861
|
+
if ((_x = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _x === void 0 ? void 0 : _x.evidence_upload_flag) {
|
|
3860
3862
|
this.moreOptions.FORMATE_EVIDENCE = true;
|
|
3861
3863
|
}
|
|
3862
|
-
if (!(((
|
|
3863
|
-
if ((
|
|
3864
|
+
if (!(((_y = this.selectedProgram) === null || _y === void 0 ? void 0 : _y.programType) === 0 && ((_0 = (_z = this.selectedProgram) === null || _z === void 0 ? void 0 : _z.name) === null || _0 === void 0 ? void 0 : _0.toLowerCase()) === 'uncategorized')) {
|
|
3865
|
+
if ((_1 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _1 === void 0 ? void 0 : _1._id) {
|
|
3864
3866
|
this.filterListsAccordingToProgram(selectedItems.program._id);
|
|
3865
3867
|
}
|
|
3866
3868
|
else {
|
|
@@ -3912,10 +3914,10 @@
|
|
|
3912
3914
|
this.responsibilityForm.riskMatrix = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.riskMatrix;
|
|
3913
3915
|
break;
|
|
3914
3916
|
case 'formate_evidence':
|
|
3915
|
-
this.responsibilityForm.formatAndEvidence.formatRequired = (
|
|
3916
|
-
this.responsibilityForm.formatAndEvidence.formatFiles = (
|
|
3917
|
-
this.responsibilityForm.formatAndEvidence.formatLinks = (
|
|
3918
|
-
this.responsibilityForm.formatAndEvidence.evidenceRequired = (
|
|
3917
|
+
this.responsibilityForm.formatAndEvidence.formatRequired = (_2 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isFormateUploaded) !== null && _2 !== void 0 ? _2 : false;
|
|
3918
|
+
this.responsibilityForm.formatAndEvidence.formatFiles = (_3 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.files) !== null && _3 !== void 0 ? _3 : [];
|
|
3919
|
+
this.responsibilityForm.formatAndEvidence.formatLinks = (_4 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.links) !== null && _4 !== void 0 ? _4 : [];
|
|
3920
|
+
this.responsibilityForm.formatAndEvidence.evidenceRequired = (_5 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isEvidenceRequired) !== null && _5 !== void 0 ? _5 : false;
|
|
3919
3921
|
break;
|
|
3920
3922
|
case 'reviewFrequency':
|
|
3921
3923
|
this.responsibilityForm.reviewers.reviewFrequency = {
|