@sunbird-cb/cbp-ai 0.1.93 → 0.1.95
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/view-final-cbp-plan/view-final-cbp-plan.component.mjs +8 -2
- package/fesm2022/sunbird-cb-cbp-ai.mjs +7 -1
- package/fesm2022/sunbird-cb-cbp-ai.mjs.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.93.tgz +0 -0
|
@@ -12918,6 +12918,7 @@ class ViewFinalCbpPlanComponent {
|
|
|
12918
12918
|
}
|
|
12919
12919
|
generateExcel(jsonArray, filename = "final.xlsx") {
|
|
12920
12920
|
console.log('jsonArray', jsonArray);
|
|
12921
|
+
this.loading = true;
|
|
12921
12922
|
if (!jsonArray || jsonArray.length === 0)
|
|
12922
12923
|
return;
|
|
12923
12924
|
// -------- MAIN HEADER FROM FIRST OBJECT ---------
|
|
@@ -12949,7 +12950,9 @@ class ViewFinalCbpPlanComponent {
|
|
|
12949
12950
|
` Duration (mins): ${Math.round(+c.duration / 60)}\n` +
|
|
12950
12951
|
` Relevancy: ${c?.relevancy}%\n` +
|
|
12951
12952
|
` Rationale: ${c?.rationale}\n` +
|
|
12952
|
-
`
|
|
12953
|
+
` Organisation: ${Array.isArray(c?.organisation)
|
|
12954
|
+
? c.organisation.join(", ")
|
|
12955
|
+
: c?.organisation ?? ""}\n` +
|
|
12953
12956
|
` Competencies: ${competencies}`);
|
|
12954
12957
|
}).join("\n\n");
|
|
12955
12958
|
return {
|
|
@@ -13020,6 +13023,9 @@ class ViewFinalCbpPlanComponent {
|
|
|
13020
13023
|
XLSX.utils.book_append_sheet(wb, ws, "Sheet1");
|
|
13021
13024
|
// Export Excel
|
|
13022
13025
|
XLSX.writeFile(wb, filename);
|
|
13026
|
+
setTimeout(() => {
|
|
13027
|
+
this.loading = false;
|
|
13028
|
+
}, 5000);
|
|
13023
13029
|
}
|
|
13024
13030
|
downloadCSV() {
|
|
13025
13031
|
let fileName = '';
|