@sunbird-cb/cbp-ai 0.1.105 → 0.1.106
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 +7 -1
- package/esm2022/lib/components/view-final-cbp-plan/view-final-cbp-plan.component.mjs +3 -3
- package/fesm2022/sunbird-cb-cbp-ai.mjs +8 -2
- 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/lib/components/view-final-cbp-plan/view-final-cbp-plan.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/sunbird-cb-cbp-ai-0.1.105.tgz +0 -0
|
@@ -11824,6 +11824,12 @@ class RoleMappingGenerationComponent {
|
|
|
11824
11824
|
this.sharedService.cbpPlanFinalObj['ministry'] = selectedMinistry;
|
|
11825
11825
|
this.sharedService.cbpPlanFinalObj['role_mapping_generation'] = [];
|
|
11826
11826
|
this.sharedService.roleMappingGenerationData = [];
|
|
11827
|
+
// Selecting a different ministry/state invalidates any previously selected department
|
|
11828
|
+
this.roleMappingForm.get('departments')?.setValue(null);
|
|
11829
|
+
this.selectedDepartmentObj = null;
|
|
11830
|
+
this.pinnedDepartmentOptions = [];
|
|
11831
|
+
this.sharedService.cbpPlanFinalObj['department_name'] = '';
|
|
11832
|
+
this.sharedService.cbpPlanFinalObj['departments'] = '';
|
|
11827
11833
|
localStorage.setItem('cbpPlanFinalObj', JSON.stringify(this.sharedService.cbpPlanFinalObj));
|
|
11828
11834
|
if (selectedMinistryId && (this.selectedMinistryType === 'state' || this.selectedMinistryType === 'ministry')) {
|
|
11829
11835
|
this.departmentMinistryId = selectedMinistryId;
|
|
@@ -13186,10 +13192,10 @@ class ViewFinalCbpPlanComponent {
|
|
|
13186
13192
|
? json.cbp_plans[json.cbp_plans.length - 1]?.selected_courses || []
|
|
13187
13193
|
: [];
|
|
13188
13194
|
const courseDetails = courses.map((c, i) => {
|
|
13189
|
-
const competencies = (c.competencies || [])
|
|
13195
|
+
const competencies = (c.competencies || c.competencies_v6 || [])
|
|
13190
13196
|
.map((cc) => `${cc.competencyAreaName} → ${cc.competencyThemeName} → ${cc.competencySubThemeName}`)
|
|
13191
13197
|
.join(" | ");
|
|
13192
|
-
return (`${i + 1}. Course Name: ${c?.course}\n` +
|
|
13198
|
+
return (`${i + 1}. Course Name: ${c?.course || c?.name}\n` +
|
|
13193
13199
|
` Identifier: ${c?.identifier}\n` +
|
|
13194
13200
|
` Duration (mins): ${Math.round(+c.duration / 60)}\n` +
|
|
13195
13201
|
` Relevancy: ${c?.relevancy}%\n` +
|