@sunbird-cb/cbp-ai 0.1.107 → 0.1.108
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/components/role-mapping-generation/role-mapping-generation.component.mjs +15 -2
- package/fesm2022/sunbird-cb-cbp-ai.mjs +14 -1
- package/fesm2022/sunbird-cb-cbp-ai.mjs.map +1 -1
- package/lib/components/role-mapping-generation/role-mapping-generation.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/sunbird-cb-cbp-ai-0.1.108.tgz +0 -0
- package/sunbird-cb-cbp-ai-0.1.107.tgz +0 -0
|
@@ -11468,11 +11468,13 @@ class RoleMappingGenerationComponent {
|
|
|
11468
11468
|
additional_document: []
|
|
11469
11469
|
}, { emitEvent: false }); // avoid re-emitting ministryType's own valueChanges and recursing infinitely
|
|
11470
11470
|
if (type === 'state') {
|
|
11471
|
-
this.roleMappingForm.get('departments')?.
|
|
11471
|
+
this.roleMappingForm.get('departments')?.clearValidators();
|
|
11472
|
+
this.roleMappingForm.get('departments')?.updateValueAndValidity();
|
|
11472
11473
|
}
|
|
11473
11474
|
else {
|
|
11474
11475
|
this.roleMappingForm.get('departments')?.clearValidators();
|
|
11475
11476
|
this.roleMappingForm.get('departments')?.setValue([]);
|
|
11477
|
+
this.roleMappingForm.get('departments')?.updateValueAndValidity();
|
|
11476
11478
|
}
|
|
11477
11479
|
this.roleMappingForm.get('departments')?.updateValueAndValidity();
|
|
11478
11480
|
});
|
|
@@ -11514,6 +11516,7 @@ class RoleMappingGenerationComponent {
|
|
|
11514
11516
|
let wAOCount = 0;
|
|
11515
11517
|
this.apiLoading = false;
|
|
11516
11518
|
this.documents = res?.items;
|
|
11519
|
+
console.log('this.documents', this.documents);
|
|
11517
11520
|
this.disableUploadDocument = false;
|
|
11518
11521
|
this.disableUploadDocumentOriginal = false;
|
|
11519
11522
|
this.documents.forEach((item) => {
|
|
@@ -11838,6 +11841,16 @@ class RoleMappingGenerationComponent {
|
|
|
11838
11841
|
this.loadDepartments(true);
|
|
11839
11842
|
}
|
|
11840
11843
|
this.getUploadedDocuments();
|
|
11844
|
+
console.log('Generate CBP validation:', {
|
|
11845
|
+
formValid: this.roleMappingForm?.valid,
|
|
11846
|
+
formInvalid: this.roleMappingForm?.invalid,
|
|
11847
|
+
loading: this.loading,
|
|
11848
|
+
documents: this.documents,
|
|
11849
|
+
documentsLength: this.documents?.length,
|
|
11850
|
+
disabled: this.roleMappingForm?.invalid ||
|
|
11851
|
+
this.loading ||
|
|
11852
|
+
this.documents?.length < 1
|
|
11853
|
+
});
|
|
11841
11854
|
}
|
|
11842
11855
|
searchData() {
|
|
11843
11856
|
}
|