intelica-library-ui 0.1.95 → 0.1.96

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,6 +3099,13 @@ class HtmlToExcelService {
3099
3099
  const buffer = await workbook.xlsx.writeBuffer();
3100
3100
  saveAs(new Blob([buffer]), excelName);
3101
3101
  }
3102
+ exportToCSVRaw(excelName, rowsSerializate) {
3103
+ const rows = JSON.parse(rowsSerializate);
3104
+ const csvLines = rows.map(r => r.linea);
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
+ }
3102
3109
  GetExcelColumnLetter(columnNumber) {
3103
3110
  let letter = "";
3104
3111
  while (columnNumber >= 0) {