vcomply-workflow-engine 6.6.1 → 6.6.3
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/workflow-compliance/workflow-compliance.component.mjs +23 -11
- package/fesm2022/vcomply-workflow-engine.mjs +22 -10
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/workflow-compliance/workflow-compliance.component.d.ts +1 -0
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -31914,7 +31914,16 @@ class WorkflowComplianceComponent {
|
|
|
31914
31914
|
this.unSubscribeProgram = new Subject();
|
|
31915
31915
|
this.customFields = [];
|
|
31916
31916
|
this.selectedPrograms = {};
|
|
31917
|
-
this.
|
|
31917
|
+
this.getOrgUserInfo();
|
|
31918
|
+
}
|
|
31919
|
+
ngOnInit() {
|
|
31920
|
+
this.setFeatureFlags();
|
|
31921
|
+
this.getInitialData();
|
|
31922
|
+
this.populateRCList();
|
|
31923
|
+
this.pickerChanged.emit(false);
|
|
31924
|
+
}
|
|
31925
|
+
getOrgUserInfo() {
|
|
31926
|
+
this.loader = true;
|
|
31918
31927
|
this.organizationCommonService?.getOrgUserInfo()?.subscribe({
|
|
31919
31928
|
next: (res) => {
|
|
31920
31929
|
const complianceSubmodule = res?.roleActions[res?.roleActions?.findIndex((ele) => ele?.moduleName === 'compliance')]?.subModule;
|
|
@@ -31930,15 +31939,10 @@ class WorkflowComplianceComponent {
|
|
|
31930
31939
|
this.hiddenList.push('PROGRAM');
|
|
31931
31940
|
this.getCategoryList();
|
|
31932
31941
|
}
|
|
31942
|
+
this.loader = false;
|
|
31933
31943
|
},
|
|
31934
31944
|
});
|
|
31935
31945
|
}
|
|
31936
|
-
ngOnInit() {
|
|
31937
|
-
this.setFeatureFlags();
|
|
31938
|
-
this.pickerChanged.emit(false);
|
|
31939
|
-
this.getInitialData();
|
|
31940
|
-
this.populateRCList();
|
|
31941
|
-
}
|
|
31942
31946
|
populateRCList() {
|
|
31943
31947
|
if (this.openedFrom === 'RISK_TREATMENT' && this.mode === 'CREATE') {
|
|
31944
31948
|
this.getRCList();
|
|
@@ -31959,6 +31963,7 @@ class WorkflowComplianceComponent {
|
|
|
31959
31963
|
this.checkWhetherAllListsLoaded();
|
|
31960
31964
|
this.getOrganizationDetails();
|
|
31961
31965
|
this.getUserDetails();
|
|
31966
|
+
this.checkCustomFields();
|
|
31962
31967
|
this.shortMonth = this.frequencyService.monthArray.map((month) => month.substring(0, 3));
|
|
31963
31968
|
if (this.openedFrom === 'RISK_TREATMENT') {
|
|
31964
31969
|
this.getRCDetailsinRiskTreatment();
|
|
@@ -31981,16 +31986,19 @@ class WorkflowComplianceComponent {
|
|
|
31981
31986
|
}
|
|
31982
31987
|
checkCustomFields() {
|
|
31983
31988
|
if (!this.customFields?.length) {
|
|
31984
|
-
|
|
31985
|
-
|
|
31986
|
-
|
|
31989
|
+
if (!this.hiddenList.includes('CUSTOM_FIELDS')) {
|
|
31990
|
+
this.hiddenList.push('CUSTOM_FIELDS');
|
|
31991
|
+
}
|
|
31987
31992
|
}
|
|
31993
|
+
this.hideElementsFromMoreOptions.emit(this.hiddenList);
|
|
31988
31994
|
}
|
|
31989
31995
|
getRCDetailsinRiskTreatment() {
|
|
31990
31996
|
this.responsibilityForm.rc = this.setList(this.responsibilityCentersList, [this.selectedRC], 'item_id');
|
|
31991
31997
|
this.moreOptions.RC = true;
|
|
31992
31998
|
}
|
|
31993
31999
|
getOrgDetails() {
|
|
32000
|
+
this.uiKitService.isLoader = true;
|
|
32001
|
+
this.entrustLoader = true;
|
|
31994
32002
|
this.organizationCommonService?.getOrgDetailsInfo()?.subscribe({
|
|
31995
32003
|
next: (res) => {
|
|
31996
32004
|
this.isRiskEnable = res?.enable_riskclass ? true : false;
|
|
@@ -31998,9 +32006,13 @@ class WorkflowComplianceComponent {
|
|
|
31998
32006
|
this.hiddenList.push('RISK_CLASSIFICATION');
|
|
31999
32007
|
this.hideElementsFromMoreOptions.emit(this.hiddenList);
|
|
32000
32008
|
}
|
|
32009
|
+
this.uiKitService.isLoader = false;
|
|
32010
|
+
this.entrustLoader = false;
|
|
32001
32011
|
},
|
|
32002
32012
|
error: (err) => {
|
|
32003
32013
|
console.error(err);
|
|
32014
|
+
this.uiKitService.isLoader = false;
|
|
32015
|
+
this.entrustLoader = false;
|
|
32004
32016
|
},
|
|
32005
32017
|
});
|
|
32006
32018
|
}
|