intelica-library-ui 0.1.96 → 0.1.98
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.
|
@@ -3099,12 +3099,12 @@ class HtmlToExcelService {
|
|
|
3099
3099
|
const buffer = await workbook.xlsx.writeBuffer();
|
|
3100
3100
|
saveAs(new Blob([buffer]), excelName);
|
|
3101
3101
|
}
|
|
3102
|
-
|
|
3102
|
+
async ExportToCSVRaw(excelName, rowsSerializate) {
|
|
3103
3103
|
const rows = JSON.parse(rowsSerializate);
|
|
3104
3104
|
const csvLines = rows.map(r => r.linea);
|
|
3105
|
-
const csvContent = csvLines.join(
|
|
3106
|
-
const blob = new Blob([csvContent], { type:
|
|
3107
|
-
saveAs(blob, excelName.endsWith(
|
|
3105
|
+
const csvContent = csvLines.join("\n");
|
|
3106
|
+
const blob = new Blob([csvContent], { type: "text/csv;charset=utf-8;" });
|
|
3107
|
+
saveAs(blob, excelName.endsWith(".csv") ? excelName : `${excelName}.csv`);
|
|
3108
3108
|
}
|
|
3109
3109
|
GetExcelColumnLetter(columnNumber) {
|
|
3110
3110
|
let letter = "";
|