@colijnit/corecomponents_v12 258.1.14 → 258.1.16

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.
@@ -10588,7 +10588,7 @@
10588
10588
  }
10589
10589
  else if (typeof value === 'number') {
10590
10590
  var hasDecimal = function (num) { return !Number.isInteger(num); };
10591
- return hasDecimal ? value.toFixed(2) : value.toFixed(0);
10591
+ return hasDecimal(value) ? value.toFixed(2) : value.toFixed(0);
10592
10592
  }
10593
10593
  else if (Array.isArray(value)) {
10594
10594
  return value.join(', ');
@@ -10596,6 +10596,9 @@
10596
10596
  else if (typeof value === 'object' && value !== null) {
10597
10597
  return JSON.stringify(value);
10598
10598
  }
10599
+ else if (typeof value === 'boolean') {
10600
+ return String(value);
10601
+ }
10599
10602
  else {
10600
10603
  if (!value)
10601
10604
  return '';
@@ -10606,7 +10609,10 @@
10606
10609
  return String(value);
10607
10610
  }
10608
10611
  }); });
10609
- var csvContent = __spreadArray([headers], __read(rows)).map(function (row) { return row.map(function (cell) { return "\"" + cell.replace(/"/g, '""') + "\""; }).join(','); }).join('\r\n');
10612
+ // const csvContent = [headers, ...rows].map(row =>
10613
+ // row.map(cell => `"${cell.replace(/"/g, '""')}"`).join(',')
10614
+ // ).join('\r\n');
10615
+ var csvContent = __spreadArray([headers], __read(rows)).map(function (row) { return row.map(function (cell) { return "\"" + String(cell).replace(/"/g, '""') + "\""; }).join(','); }).join('\r\n');
10610
10616
  var blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
10611
10617
  var link = document.createElement('a');
10612
10618
  var url = URL.createObjectURL(blob);