vcomply-workflow-engine 5.0.20 → 5.0.22
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/esm2022/lib/report-a-case/components/case-category/case-category.component.mjs +1 -2
- package/esm2022/lib/report-a-case/components/case-owners/case-owners.component.mjs +14 -7
- package/esm2022/lib/report-a-case/components/chip-capsule/chip-capsule.component.mjs +1 -2
- package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +4 -4
- package/esm2022/lib/sharedComponents/responsibility-centers-list/responsibility-centers-list.component.mjs +1 -2
- package/fesm2022/vcomply-workflow-engine.mjs +15 -11
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/report-a-case/components/case-owners/case-owners.component.d.ts +4 -2
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3010,7 +3010,6 @@ class ResponsibilityCentersListComponent {
|
|
|
3010
3010
|
this.search = '';
|
|
3011
3011
|
}
|
|
3012
3012
|
ngOnChanges() {
|
|
3013
|
-
console.log(this.selectedResponsibilityCenters, 'selectedResponsibilityCenters');
|
|
3014
3013
|
this.selectedIds = this.selectedResponsibilityCenters.map((ele) => {
|
|
3015
3014
|
if (ele[this.rcIdKey]) {
|
|
3016
3015
|
return ele[this.rcIdKey];
|
|
@@ -9694,7 +9693,6 @@ class ChipCapsuleComponent {
|
|
|
9694
9693
|
this.remove = new EventEmitter();
|
|
9695
9694
|
}
|
|
9696
9695
|
ngOnInit() {
|
|
9697
|
-
console.log(this.items, 'items chips');
|
|
9698
9696
|
}
|
|
9699
9697
|
ngOnChanges(changes) {
|
|
9700
9698
|
console.log(changes, 'changes chips');
|
|
@@ -11046,7 +11044,6 @@ class CaseCategoryComponent {
|
|
|
11046
11044
|
label: category?.name,
|
|
11047
11045
|
value: category?._id,
|
|
11048
11046
|
}));
|
|
11049
|
-
console.log(this.selectedAdditionalItems, this.payload?.additional_category?.ids, this.selectedAdditionalCategoryList, 'add check 6');
|
|
11050
11047
|
}
|
|
11051
11048
|
}
|
|
11052
11049
|
updateACTWCategory() {
|
|
@@ -12705,9 +12702,9 @@ class CaseOwnersComponent {
|
|
|
12705
12702
|
set initialSelection(value) {
|
|
12706
12703
|
if (value?.length) {
|
|
12707
12704
|
this.state = SelectionState$1.SELECTED;
|
|
12708
|
-
this.selectedItems = value;
|
|
12709
|
-
const isString = typeof
|
|
12710
|
-
if (isString) {
|
|
12705
|
+
this.selectedItems = [...value];
|
|
12706
|
+
const isString = typeof value[0] === 'string';
|
|
12707
|
+
if (isString && (this.mode === 'CREATE' || this.isInternalChange)) {
|
|
12711
12708
|
this.populateOwnerList();
|
|
12712
12709
|
}
|
|
12713
12710
|
}
|
|
@@ -12733,6 +12730,7 @@ class CaseOwnersComponent {
|
|
|
12733
12730
|
this.selectedOwnerList = [];
|
|
12734
12731
|
this.workflowDetails = {};
|
|
12735
12732
|
this.fieldSelector = FIELD_SELECTOR;
|
|
12733
|
+
this.isInternalChange = false;
|
|
12736
12734
|
this.payload = {};
|
|
12737
12735
|
this.fieldSelected = '';
|
|
12738
12736
|
this.workflowId = '';
|
|
@@ -12741,6 +12739,9 @@ class CaseOwnersComponent {
|
|
|
12741
12739
|
this.fieldClicked = new EventEmitter();
|
|
12742
12740
|
this.getWorkflowDetails();
|
|
12743
12741
|
}
|
|
12742
|
+
ngOnDestroy() {
|
|
12743
|
+
this.isInternalChange = false;
|
|
12744
|
+
}
|
|
12744
12745
|
ngOnInit() {
|
|
12745
12746
|
if (this.workflowId) {
|
|
12746
12747
|
this.getCaseOwnersList(this.workflowId);
|
|
@@ -12761,10 +12762,12 @@ class CaseOwnersComponent {
|
|
|
12761
12762
|
...owner,
|
|
12762
12763
|
employee_name: owner?.member_name,
|
|
12763
12764
|
}));
|
|
12764
|
-
this.setDefaultOwner();
|
|
12765
12765
|
if (this.mode === 'EDIT') {
|
|
12766
12766
|
this.populateOwnerList();
|
|
12767
12767
|
}
|
|
12768
|
+
else {
|
|
12769
|
+
this.setDefaultOwner();
|
|
12770
|
+
}
|
|
12768
12771
|
this.ownerListLoader = false;
|
|
12769
12772
|
});
|
|
12770
12773
|
}
|
|
@@ -12776,7 +12779,7 @@ class CaseOwnersComponent {
|
|
|
12776
12779
|
}
|
|
12777
12780
|
return this.selectedItems.some((item) => item?.value === owner?._id);
|
|
12778
12781
|
});
|
|
12779
|
-
this.selectedItems = this.selectedOwnerList
|
|
12782
|
+
this.selectedItems = [...new Set(this.selectedOwnerList)]
|
|
12780
12783
|
.map((owner) => ({
|
|
12781
12784
|
label: owner?.employee_name,
|
|
12782
12785
|
value: owner?._id,
|
|
@@ -12816,6 +12819,7 @@ class CaseOwnersComponent {
|
|
|
12816
12819
|
this.validationError.caseOwner.message = '';
|
|
12817
12820
|
this.state = SelectionState$1.SELECTED;
|
|
12818
12821
|
this.fieldClicked.emit('');
|
|
12822
|
+
this.isInternalChange = true;
|
|
12819
12823
|
}
|
|
12820
12824
|
setSelectedOwnersList(event) {
|
|
12821
12825
|
this.selectedOwnerList = this.caseOwnersList?.filter((owner) => event?.includes(owner?._id));
|
|
@@ -13663,14 +13667,14 @@ class WorkflowCaseComponent {
|
|
|
13663
13667
|
this.resetForm();
|
|
13664
13668
|
}
|
|
13665
13669
|
ngOnInit() {
|
|
13666
|
-
if (this.mode === 'EDIT') {
|
|
13667
|
-
this.getCaseDetails();
|
|
13668
|
-
}
|
|
13669
13670
|
this.getUserList();
|
|
13670
13671
|
this.getGroupList();
|
|
13671
13672
|
if (this.workflowType === 'ACTW') {
|
|
13672
13673
|
this.additionalOptionStatus = { ...ADDITIONAL_OPTION_STATUS };
|
|
13673
13674
|
}
|
|
13675
|
+
if (this.mode === 'EDIT') {
|
|
13676
|
+
this.getCaseDetails();
|
|
13677
|
+
}
|
|
13674
13678
|
}
|
|
13675
13679
|
permissionLoader() {
|
|
13676
13680
|
this.reportACaseService.caseTypeLoader.subscribe((res) => {
|