vcomply-workflow-engine 2.6.170 → 2.6.172

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.
@@ -365,6 +365,7 @@
365
365
  this.auth = auth;
366
366
  this.isHostRefreshActive = true;
367
367
  this.isRCSelected = false;
368
+ this.featureFlag_groups = false;
368
369
  this.workflowType = '';
369
370
  this.mode = 'CREATE';
370
371
  this.id = '';
@@ -476,6 +477,7 @@
476
477
  this.fetchOrganizationDetails();
477
478
  console.log("addToProgramDetails ===>", this.addToProgramDetails);
478
479
  this.programSimplifyFlag = this.feature.isFeatureEnabled('ff_program_simplify');
480
+ this.featureFlag_groups = this.feature.isFeatureEnabled('ff_responsibility_groups');
479
481
  };
480
482
  WorkflowEngineContainerComponent.prototype.setNetworkListner = function () {
481
483
  var _this = this;
@@ -630,7 +632,10 @@
630
632
  case 'assigneeTypeChange':
631
633
  this.compliance.responsibilityForm.assignees.whoCanComplete = 'ALL';
632
634
  this.compliance.responsibilityForm.assignees.list = this.compliance.setList(this.compliance.assigneesList, this.compliance.originalAssignee, 'employee_id');
633
- this.compliance.responsibilityForm.assigneeGroups.list = [];
635
+ console.log("this.compliance.responsibilityForm ==>", this.compliance.responsibilityForm);
636
+ if (this.featureFlag_groups) {
637
+ this.compliance['responsibilityForm']['assigneeGroups']['list'] = [];
638
+ }
634
639
  break;
635
640
  case 'sequential':
636
641
  this.compliance['responsibilityForm']['reviewers']['sequentialWorkflow'] = true;
@@ -4069,12 +4074,7 @@
4069
4074
  else {
4070
4075
  this.responsibilityForm.assignees.list = this.setList(this.assigneesList, selectedItems, 'my_member_id');
4071
4076
  }
4072
- if (this.responsibilityForm.program.length) {
4073
- this.refreshListsWhileProgramSelected();
4074
- }
4075
- else {
4076
- this.refreshAllLists();
4077
- }
4077
+ this.callRefreshList();
4078
4078
  }
4079
4079
  break;
4080
4080
  case 'rc':
@@ -4171,12 +4171,7 @@
4171
4171
  else {
4172
4172
  this.responsibilityForm.reviewers.list = this.setList(this.reviewersList, selectedItems, 'employee_id');
4173
4173
  }
4174
- if (this.responsibilityForm.program.length) {
4175
- this.refreshListsWhileProgramSelected();
4176
- }
4177
- else {
4178
- this.refreshAllLists();
4179
- }
4174
+ this.callRefreshList();
4180
4175
  break;
4181
4176
  case 'overseer':
4182
4177
  if (this.featureFlag_groups) {
@@ -4185,12 +4180,7 @@
4185
4180
  else {
4186
4181
  this.responsibilityForm.overseers.list = this.setList(this.overseersList, selectedItems, 'employee_id');
4187
4182
  }
4188
- if (this.responsibilityForm.program.length) {
4189
- this.refreshListsWhileProgramSelected();
4190
- }
4191
- else {
4192
- this.refreshAllLists();
4193
- }
4183
+ this.callRefreshList();
4194
4184
  break;
4195
4185
  case 'overseerNotify':
4196
4186
  if (this.featureFlag_groups) {
@@ -4199,12 +4189,7 @@
4199
4189
  else {
4200
4190
  this.responsibilityForm.overseers.notifyList = this.setList(this.overseersList, selectedItems, 'employee_id');
4201
4191
  }
4202
- if (this.responsibilityForm.program.length) {
4203
- this.refreshListsWhileProgramSelected();
4204
- }
4205
- else {
4206
- this.refreshAllLists();
4207
- }
4192
+ this.callRefreshList();
4208
4193
  break;
4209
4194
  case 'assurance':
4210
4195
  this.responsibilityForm.assuranceList = this.setList(this.assuranceCategoriesList, selectedItems, 'category_id');
@@ -8061,8 +8046,9 @@
8061
8046
  FloatingBarComponent.prototype.ngOnInit = function () {
8062
8047
  };
8063
8048
  FloatingBarComponent.prototype.next = function () {
8049
+ var _a;
8064
8050
  var selectedData;
8065
- if (this.selectedGroups.length > 0) {
8051
+ if (((_a = this.selectedGroups) === null || _a === void 0 ? void 0 : _a.length) > 0) {
8066
8052
  selectedData = { users: this.selectedData, groups: this.selectedGroups };
8067
8053
  }
8068
8054
  else {