vcomply-workflow-engine 2.6.118 → 2.6.120

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.
@@ -3817,7 +3817,7 @@
3817
3817
  };
3818
3818
  WorkflowComplianceComponent.prototype.checkWhetherAllListsLoaded = function () {
3819
3819
  var _this = this;
3820
- var _a, _b, _c, _d, _e, _f, _g, _h;
3820
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
3821
3821
  if (this.rcListLoaded && this.assigneesListLoaded && this.assignorsListLoaded &&
3822
3822
  this.categoriesListLoaded && this.assuranceCategoryListLoaded && this.groupsListLoaded) {
3823
3823
  if (this.frameworkDetails.length > 0) {
@@ -3833,9 +3833,12 @@
3833
3833
  this.responsibilityForm.program.push(this.selectedProgram);
3834
3834
  this.responsibilityForm.program_selected_ids.push(this.selectedProgram.category_id);
3835
3835
  this.responsibilityForm.category_id = (_b = (_a = this.selectedProgram) === null || _a === void 0 ? void 0 : _a.category_id) === null || _b === void 0 ? void 0 : _b.toString();
3836
- this.responsibilityForm.assignees.whoCanComplete = (((_c = this.selectedProgram) === null || _c === void 0 ? void 0 : _c.default_assignee_type) == 'ANYONE') ? 'ANY_ONE' : 'ALL';
3837
- this.responsibilityForm.reviewers.sequentialWorkflow = (((_d = this.selectedProgram) === null || _d === void 0 ? void 0 : _d.default_reviewers_type) == 'SEQUENTIAL') ? true : false;
3838
- var programCustomTags = ((_e = this.selectedProgram) === null || _e === void 0 ? void 0 : _e.custom_tags) ? JSON.parse(this.selectedProgram.custom_tags) : [];
3836
+ if ((_c = this.orgDetails) === null || _c === void 0 ? void 0 : _c.hasProgramFullPermission) {
3837
+ this.responsibilityForm.assignees.whoCanComplete = (((_d = this.selectedProgram) === null || _d === void 0 ? void 0 : _d.default_assignee_type) == 'ANYONE') ? 'ANY_ONE' : 'ALL';
3838
+ this.responsibilityForm.reviewers.sequentialWorkflow = (((_e = this.selectedProgram) === null || _e === void 0 ? void 0 : _e.default_reviewers_type) == 'SEQUENTIAL') ? true : false;
3839
+ this.responsibilityForm.formatAndEvidence.evidenceRequired = ((_f = this.selectedProgram) === null || _f === void 0 ? void 0 : _f.evidence_upload_flag) ? true : false;
3840
+ }
3841
+ var programCustomTags = ((_g = this.selectedProgram) === null || _g === void 0 ? void 0 : _g.custom_tags) ? JSON.parse(this.selectedProgram.custom_tags) : [];
3839
3842
  programCustomTags.forEach(function (tag) {
3840
3843
  var tagData = JSON.parse(tag);
3841
3844
  var index = _this.responsibilityForm.customTags.findIndex(function (tagElement) { return tagElement.tag_name == tagData.tag_name; });
@@ -3843,16 +3846,15 @@
3843
3846
  _this.responsibilityForm.customTags.push(tagData);
3844
3847
  }
3845
3848
  });
3846
- this.responsibilityForm.formatAndEvidence.evidenceRequired = ((_f = this.selectedProgram) === null || _f === void 0 ? void 0 : _f.evidence_upload_flag) ? true : false;
3847
3849
  var checkedMoreOptions = [];
3848
3850
  this.moreOptions.PROGRAM = true;
3849
3851
  checkedMoreOptions.push('PROGRAM');
3850
- if ((_g = this.selectedProgram) === null || _g === void 0 ? void 0 : _g.evidence_upload_flag) {
3852
+ if (((_h = this.selectedProgram) === null || _h === void 0 ? void 0 : _h.evidence_upload_flag) && ((_j = this.orgDetails) === null || _j === void 0 ? void 0 : _j.hasProgramFullPermission)) {
3851
3853
  checkedMoreOptions.push('FORMATE_EVIDENCE');
3852
3854
  this.moreOptions.FORMATE_EVIDENCE = true;
3853
3855
  }
3854
3856
  this.populateOption.emit(checkedMoreOptions);
3855
- this.filterListsAccordingToProgram((_h = this.selectedProgram) === null || _h === void 0 ? void 0 : _h._id);
3857
+ this.filterListsAccordingToProgram((_k = this.selectedProgram) === null || _k === void 0 ? void 0 : _k._id);
3856
3858
  }
3857
3859
  }
3858
3860
  }
@@ -3864,7 +3866,7 @@
3864
3866
  };
3865
3867
  WorkflowComplianceComponent.prototype.saveSelectedList = function (type, selectedItems) {
3866
3868
  var _this = this;
3867
- 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, _6, _7;
3869
+ 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, _6, _7, _8;
3868
3870
  switch (type) {
3869
3871
  case 'assignors':
3870
3872
  if (this.invalidType === 'whom') {
@@ -3965,13 +3967,14 @@
3965
3967
  });
3966
3968
  if ((_w = this.orgDetails) === null || _w === void 0 ? void 0 : _w.hasProgramFullPermission) {
3967
3969
  this.responsibilityForm.assignees.whoCanComplete = (((_x = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _x === void 0 ? void 0 : _x.default_assignee_type) == 'ANYONE') ? 'ANY_ONE' : 'ALL';
3968
- this.responsibilityForm.formatAndEvidence.evidenceRequired = ((_y = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _y === void 0 ? void 0 : _y.evidence_upload_flag) ? true : false;
3969
- if ((_z = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _z === void 0 ? void 0 : _z.evidence_upload_flag) {
3970
+ this.responsibilityForm.reviewers.sequentialWorkflow = (((_y = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _y === void 0 ? void 0 : _y.default_reviewers_type) == 'SEQUENTIAL') ? true : false;
3971
+ this.responsibilityForm.formatAndEvidence.evidenceRequired = ((_z = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _z === void 0 ? void 0 : _z.evidence_upload_flag) ? true : false;
3972
+ if ((_0 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _0 === void 0 ? void 0 : _0.evidence_upload_flag) {
3970
3973
  this.moreOptions.FORMATE_EVIDENCE = true;
3971
3974
  }
3972
3975
  }
3973
- if (!(((_0 = this.selectedProgram) === null || _0 === void 0 ? void 0 : _0.programType) === 0 && ((_2 = (_1 = this.selectedProgram) === null || _1 === void 0 ? void 0 : _1.name) === null || _2 === void 0 ? void 0 : _2.toLowerCase()) === 'uncategorized')) {
3974
- if ((_3 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _3 === void 0 ? void 0 : _3._id) {
3976
+ if (!(((_1 = this.selectedProgram) === null || _1 === void 0 ? void 0 : _1.programType) === 0 && ((_3 = (_2 = this.selectedProgram) === null || _2 === void 0 ? void 0 : _2.name) === null || _3 === void 0 ? void 0 : _3.toLowerCase()) === 'uncategorized')) {
3977
+ if ((_4 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.program) === null || _4 === void 0 ? void 0 : _4._id) {
3975
3978
  this.filterListsAccordingToProgram(selectedItems.program._id);
3976
3979
  }
3977
3980
  else {
@@ -4023,10 +4026,10 @@
4023
4026
  this.responsibilityForm.riskMatrix = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.riskMatrix;
4024
4027
  break;
4025
4028
  case 'formate_evidence':
4026
- this.responsibilityForm.formatAndEvidence.formatRequired = (_4 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isFormateUploaded) !== null && _4 !== void 0 ? _4 : false;
4027
- this.responsibilityForm.formatAndEvidence.formatFiles = (_5 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.files) !== null && _5 !== void 0 ? _5 : [];
4028
- this.responsibilityForm.formatAndEvidence.formatLinks = (_6 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.links) !== null && _6 !== void 0 ? _6 : [];
4029
- this.responsibilityForm.formatAndEvidence.evidenceRequired = (_7 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isEvidenceRequired) !== null && _7 !== void 0 ? _7 : false;
4029
+ this.responsibilityForm.formatAndEvidence.formatRequired = (_5 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isFormateUploaded) !== null && _5 !== void 0 ? _5 : false;
4030
+ this.responsibilityForm.formatAndEvidence.formatFiles = (_6 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.files) !== null && _6 !== void 0 ? _6 : [];
4031
+ this.responsibilityForm.formatAndEvidence.formatLinks = (_7 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.links) !== null && _7 !== void 0 ? _7 : [];
4032
+ this.responsibilityForm.formatAndEvidence.evidenceRequired = (_8 = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.isEvidenceRequired) !== null && _8 !== void 0 ? _8 : false;
4030
4033
  break;
4031
4034
  case 'reviewFrequency':
4032
4035
  this.responsibilityForm.reviewers.reviewFrequency = {
@@ -28996,7 +28999,7 @@
28996
28999
  CustomFieldComponent.decorators = [
28997
29000
  { type: i0.Component, args: [{
28998
29001
  selector: 'custom-field',
28999
- template: "\r\n <ng-container *ngFor=\"let field of customFields; let i = index\">\r\n <!-- <div class=\"selected\" *ngIf=\"field?.name && !field?.isEditing \">\r\n <div (click)=\"manipulateCustomField('ACTIVATE')\" class=\"custom-text vx-fs-13 vx-paragraph-txt\">CUSTOM TAG TEXT HERE</div>\r\n <button *ngIf=\"customFields?.length > 1\" (click)=\"manipulateCustomField('DELETE',i)\" class=\"cross-btn vx-fs-12 vx-txt-red vx-p-0 vx-m-0 vx-ml-2 vx-d-flex vx-align-center vx-justify-center\"><i class=\"icons\">&#xe9ae;</i></button>\r\n </div> -->\r\n\r\n <div class=\"custom-input vx-mt-2\" >\r\n <input #custom_fields (keyup.enter)=\"manipulateCustomField('ADD')\" (keyup.backspace)=\"field?.name?.length ? null : manipulateCustomField('DELETE',i)\" (ngModelChange)=\"valChange()\" type=\"text\" placeholder=\"Add a field name\" [(ngModel)]=\"field.name\" [ngModelOptions]=\"{standalone: true}\">\r\n <button *ngIf=\"customFields?.length > 1\" (click)=\"manipulateCustomField('DELETE',i)\" class=\"cross-btn vx-fs-12 vx-txt-red vx-p-0 vx-m-0 vx-ml-2 vx-d-flex vx-align-center vx-justify-center\"><i class=\"icons\">&#xe9ae;</i></button>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"vx-d-flex vx-align-center vx-justify-end vx-mt-2\">\r\n <button (click)=\"manipulateCustomField('ADD')\" class=\"add-more-btn vx-fs-11 vx-fw-600 vx-txt-blue vx-tt-uppercase vx-p-0 vx-m-0\">+ ADD MORE\r\n FIELDS</button>\r\n </div>\r\n",
29002
+ template: "\r\n <ng-container *ngFor=\"let field of customFields; let i = index\">\r\n <!-- <div class=\"selected\" *ngIf=\"field?.name && !field?.isEditing \">\r\n <div (click)=\"manipulateCustomField('ACTIVATE')\" class=\"custom-text vx-fs-13 vx-paragraph-txt\">CUSTOM TAG TEXT HERE</div>\r\n <button *ngIf=\"customFields?.length > 1\" (click)=\"manipulateCustomField('DELETE',i)\" class=\"cross-btn vx-fs-12 vx-txt-red vx-p-0 vx-m-0 vx-ml-2 vx-d-flex vx-align-center vx-justify-center\"><i class=\"icons\">&#xe9ae;</i></button>\r\n </div> -->\r\n\r\n <div class=\"custom-input vx-mt-2\" >\r\n <input #custom_fields (keyup.enter)=\"manipulateCustomField('ADD')\" (keyup.backspace)=\"field?.name?.length ? null : manipulateCustomField('DELETE',i)\" [(ngModel)]=\"field.name\" (ngModelChange)=\"valChange()\" type=\"text\" placeholder=\"Add a field name\" [ngModelOptions]=\"{standalone: true}\">\r\n <button *ngIf=\"customFields?.length > 1\" (click)=\"manipulateCustomField('DELETE',i)\" class=\"cross-btn vx-fs-12 vx-txt-red vx-p-0 vx-m-0 vx-ml-2 vx-d-flex vx-align-center vx-justify-center\"><i class=\"icons\">&#xe9ae;</i></button>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"vx-d-flex vx-align-center vx-justify-end vx-mt-2\">\r\n <button (click)=\"manipulateCustomField('ADD')\" class=\"add-more-btn vx-fs-11 vx-fw-600 vx-txt-blue vx-tt-uppercase vx-p-0 vx-m-0\">+ ADD MORE\r\n FIELDS</button>\r\n </div>\r\n",
29000
29003
  providers: [CUSTOM_TAG_VALUE_ACCESSOR],
29001
29004
  styles: [""]
29002
29005
  },] }