vcomply-workflow-engine 2.3.1 → 2.3.15
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 +24 -34
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +25 -35
- package/fesm2015/vcomply-workflow-engine.js +24 -34
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
|
@@ -3263,7 +3263,7 @@
|
|
|
3263
3263
|
};
|
|
3264
3264
|
WorkflowComplianceComponent.prototype.checkWhetherAllListsLoaded = function () {
|
|
3265
3265
|
var _this = this;
|
|
3266
|
-
var _a, _b, _c, _d, _e
|
|
3266
|
+
var _a, _b, _c, _d, _e;
|
|
3267
3267
|
if (this.rcListLoaded && this.assigneesListLoaded && this.assignorsListLoaded &&
|
|
3268
3268
|
this.categoriesListLoaded && this.assuranceCategoryListLoaded && this.groupsListLoaded) {
|
|
3269
3269
|
if (this.frameworkDetails.length > 0) {
|
|
@@ -3277,28 +3277,23 @@
|
|
|
3277
3277
|
this.uiKitService.isLoader = false;
|
|
3278
3278
|
if (this.selectedProgram) {
|
|
3279
3279
|
this.responsibilityForm.program.push(this.selectedProgram);
|
|
3280
|
-
var programCustomTags = (
|
|
3281
|
-
programCustomTags.forEach(function (
|
|
3282
|
-
var
|
|
3283
|
-
if (
|
|
3284
|
-
|
|
3285
|
-
var index = _this.responsibilityForm.customTags.findIndex(function (tagElement) { return tagElement.tag_name == tagData.tag_name; });
|
|
3286
|
-
if (index == -1) {
|
|
3287
|
-
_this.responsibilityForm.customTags.push(tagData);
|
|
3288
|
-
}
|
|
3289
|
-
});
|
|
3280
|
+
var programCustomTags = ((_a = this.selectedProgram) === null || _a === void 0 ? void 0 : _a.custom_tags) ? JSON.parse(this.selectedProgram.custom_tags) : [];
|
|
3281
|
+
programCustomTags.forEach(function (tagData) {
|
|
3282
|
+
var index = _this.responsibilityForm.customTags.findIndex(function (tagElement) { return tagElement.tag_name == tagData.tag_name; });
|
|
3283
|
+
if (index == -1) {
|
|
3284
|
+
_this.responsibilityForm.customTags.push(tagData);
|
|
3290
3285
|
}
|
|
3291
3286
|
});
|
|
3292
|
-
this.responsibilityForm.formatAndEvidence.evidenceRequired = (
|
|
3287
|
+
this.responsibilityForm.formatAndEvidence.evidenceRequired = (_c = (_b = this.selectedProgram) === null || _b === void 0 ? void 0 : _b.evidence_upload_flag) !== null && _c !== void 0 ? _c : false;
|
|
3293
3288
|
var checkedMoreOptions = [];
|
|
3294
3289
|
this.moreOptions.PROGRAM = true;
|
|
3295
3290
|
checkedMoreOptions.push('PROGRAM');
|
|
3296
|
-
if ((
|
|
3291
|
+
if ((_d = this.selectedProgram) === null || _d === void 0 ? void 0 : _d.evidence_upload_flag) {
|
|
3297
3292
|
checkedMoreOptions.push('FORMATE_EVIDENCE');
|
|
3298
3293
|
this.moreOptions.FORMATE_EVIDENCE = true;
|
|
3299
3294
|
}
|
|
3300
3295
|
this.populateOption.emit(checkedMoreOptions);
|
|
3301
|
-
this.filterListsAccordingToProgram((
|
|
3296
|
+
this.filterListsAccordingToProgram((_e = this.selectedProgram) === null || _e === void 0 ? void 0 : _e._id);
|
|
3302
3297
|
}
|
|
3303
3298
|
}
|
|
3304
3299
|
}
|
|
@@ -3310,7 +3305,7 @@
|
|
|
3310
3305
|
};
|
|
3311
3306
|
WorkflowComplianceComponent.prototype.saveSelectedList = function (type, selectedItems) {
|
|
3312
3307
|
var _this = this;
|
|
3313
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r
|
|
3308
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
3314
3309
|
switch (type) {
|
|
3315
3310
|
case 'assignors':
|
|
3316
3311
|
if (this.invalidType === 'whom') {
|
|
@@ -3373,26 +3368,21 @@
|
|
|
3373
3368
|
this.responsibilityForm.category_id = (_e = (_d = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _d === void 0 ? void 0 : _d.category_id) === null || _e === void 0 ? void 0 : _e.toString();
|
|
3374
3369
|
}
|
|
3375
3370
|
this.responsibilityForm.program_selected_ids = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories;
|
|
3376
|
-
var programCustomTags = (
|
|
3377
|
-
programCustomTags.forEach(function (
|
|
3378
|
-
var
|
|
3379
|
-
if (
|
|
3380
|
-
|
|
3381
|
-
var index = _this.responsibilityForm.customTags.findIndex(function (tagElement) { return tagElement.tag_name == tagData.tag_name; });
|
|
3382
|
-
if (index == -1) {
|
|
3383
|
-
_this.responsibilityForm.customTags.push(tagData);
|
|
3384
|
-
}
|
|
3385
|
-
});
|
|
3371
|
+
var programCustomTags = ((_f = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _f === void 0 ? void 0 : _f.custom_tags) ? JSON.parse(selectedItems.program.custom_tags) : [];
|
|
3372
|
+
programCustomTags.forEach(function (tagData) {
|
|
3373
|
+
var index = _this.responsibilityForm.customTags.findIndex(function (tagElement) { return tagElement.tag_name == tagData.tag_name; });
|
|
3374
|
+
if (index == -1) {
|
|
3375
|
+
_this.responsibilityForm.customTags.push(tagData);
|
|
3386
3376
|
}
|
|
3387
3377
|
});
|
|
3388
|
-
this.responsibilityForm.formatAndEvidence.evidenceRequired = (
|
|
3389
|
-
if ((
|
|
3378
|
+
this.responsibilityForm.formatAndEvidence.evidenceRequired = (_h = (_g = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _g === void 0 ? void 0 : _g.evidence_upload_flag) !== null && _h !== void 0 ? _h : false;
|
|
3379
|
+
if ((_j = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _j === void 0 ? void 0 : _j.evidence_upload_flag) {
|
|
3390
3380
|
this.moreOptions.FORMATE_EVIDENCE = true;
|
|
3391
3381
|
}
|
|
3392
|
-
if (((
|
|
3393
|
-
this.responsibilityForm.program_selected_ids.push((
|
|
3382
|
+
if (((_k = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories) === null || _k === void 0 ? void 0 : _k.length) == 0) {
|
|
3383
|
+
this.responsibilityForm.program_selected_ids.push((_l = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _l === void 0 ? void 0 : _l.category_id);
|
|
3394
3384
|
}
|
|
3395
|
-
if ((
|
|
3385
|
+
if ((_m = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _m === void 0 ? void 0 : _m._id) {
|
|
3396
3386
|
this.filterListsAccordingToProgram(selectedItems.program._id);
|
|
3397
3387
|
}
|
|
3398
3388
|
else {
|
|
@@ -3439,10 +3429,10 @@
|
|
|
3439
3429
|
this.responsibilityForm.riskMatrix = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.riskMatrix;
|
|
3440
3430
|
break;
|
|
3441
3431
|
case 'formate_evidence':
|
|
3442
|
-
this.responsibilityForm.formatAndEvidence.formatRequired = (
|
|
3443
|
-
this.responsibilityForm.formatAndEvidence.formatFiles = (
|
|
3444
|
-
this.responsibilityForm.formatAndEvidence.formatLinks = (
|
|
3445
|
-
this.responsibilityForm.formatAndEvidence.evidenceRequired = (
|
|
3432
|
+
this.responsibilityForm.formatAndEvidence.formatRequired = (_o = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isFormateUploaded) !== null && _o !== void 0 ? _o : false;
|
|
3433
|
+
this.responsibilityForm.formatAndEvidence.formatFiles = (_p = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.files) !== null && _p !== void 0 ? _p : [];
|
|
3434
|
+
this.responsibilityForm.formatAndEvidence.formatLinks = (_q = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.links) !== null && _q !== void 0 ? _q : [];
|
|
3435
|
+
this.responsibilityForm.formatAndEvidence.evidenceRequired = (_r = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isEvidenceRequired) !== null && _r !== void 0 ? _r : false;
|
|
3446
3436
|
break;
|
|
3447
3437
|
case 'reviewFrequency':
|
|
3448
3438
|
this.responsibilityForm.reviewers.reviewFrequency = {
|