vcomply-workflow-engine 1.0.0 → 1.0.1
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 -15
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/add-multiple-responsibility/add-multiple-responsibility.component.js +16 -23
- package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +3 -1520
- package/fesm2015/vcomply-workflow-engine.js +17 -16
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
- package/vcomply-workflow-engine.metadata.json +1 -1
|
@@ -2153,7 +2153,6 @@ FrequencyService.ctorParameters = () => [
|
|
|
2153
2153
|
{ type: Configurations, decorators: [{ type: Optional }] }
|
|
2154
2154
|
];
|
|
2155
2155
|
|
|
2156
|
-
// import { Component, OnInit, Input, Output, EventEmitter, ViewChild, ElementRef } from '@angular/core';
|
|
2157
2156
|
class WorkflowComplianceComponent {
|
|
2158
2157
|
constructor(authService, responsibilityService, frequencyService, uiKitService, snackBar) {
|
|
2159
2158
|
this.authService = authService;
|
|
@@ -3032,9 +3031,9 @@ class WorkflowComplianceComponent {
|
|
|
3032
3031
|
assignorAndAssigneesIds = [...new Set(assignorAndAssigneesIds)];
|
|
3033
3032
|
reviewersIds = [...new Set(reviewersIds)];
|
|
3034
3033
|
overseerIds = [...new Set(overseerIds)];
|
|
3035
|
-
this.assignorsList = behalfUsers.filter((user) => !(
|
|
3034
|
+
this.assignorsList = behalfUsers.filter((user) => !(overseerIds.includes(user.member_id)));
|
|
3036
3035
|
this.assigneesList = allUsers.filter((user) => !(reviewersIds.includes(user.my_member_id) || overseerIds.includes(user.my_member_id)));
|
|
3037
|
-
this.reviewersList = allUsers.filter((user) => !(
|
|
3036
|
+
this.reviewersList = allUsers.filter((user) => !(overseerIds.includes(user.my_member_id)));
|
|
3038
3037
|
this.overseersList = allUsers.filter((user) => !(assignorAndAssigneesIds.includes(user.my_member_id) || reviewersIds.includes(user.my_member_id)));
|
|
3039
3038
|
}
|
|
3040
3039
|
submitResponsibility() {
|
|
@@ -10037,7 +10036,6 @@ FrequencyBulkService.decorators = [
|
|
|
10037
10036
|
];
|
|
10038
10037
|
FrequencyBulkService.ctorParameters = () => [];
|
|
10039
10038
|
|
|
10040
|
-
// import { DatePipe } from '@angular/common';
|
|
10041
10039
|
class AddMultipleResponsibilityComponent {
|
|
10042
10040
|
constructor(riskService, responsibilityService, authService, frequencyService, snackBar) {
|
|
10043
10041
|
this.riskService = riskService;
|
|
@@ -10290,19 +10288,22 @@ class AddMultipleResponsibilityComponent {
|
|
|
10290
10288
|
var trimmedName = report[0].toString().replace(re, '').trim();
|
|
10291
10289
|
trimmedName = trimmedName.replace(/ +/g, ' ');
|
|
10292
10290
|
}
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10291
|
+
/**
|
|
10292
|
+
* index key for
|
|
10293
|
+
*
|
|
10294
|
+
* report[1] On Behalf of user
|
|
10295
|
+
* report[11] Reviewer
|
|
10296
|
+
* report[17] Always Notify
|
|
10297
|
+
* report[18] Notify On Failure
|
|
10298
|
+
* report[2] Assignee
|
|
10299
|
+
* report[4] frequency
|
|
10300
|
+
* trimmedName Report name
|
|
10301
|
+
* defaultOwner Default Assignor
|
|
10302
|
+
*/
|
|
10303
|
+
if ((!trimmedName) || (report[1] && ((report[1] == report[17]) || (report[1] == report[18]))) ||
|
|
10304
|
+
((!report[1]) && ((this.defaultOwner == report[17]) || (this.defaultOwner == report[18]))) ||
|
|
10304
10305
|
(report[2] && ((report[2] == report[11]) || (report[2] == report[17]) || (report[2] == report[18]))) ||
|
|
10305
|
-
((!report[2]) && ((this.defaultOwner == report[
|
|
10306
|
+
((!report[2]) && ((this.defaultOwner == report[17]) || (this.defaultOwner == report[18]))) ||
|
|
10306
10307
|
(report[11] && ((report[11] == report[17]) || (report[11] == report[18])))
|
|
10307
10308
|
|| (!report[2]) || (!report[4])) {
|
|
10308
10309
|
return false;
|