intelica-library-ui 0.1.49 → 0.1.50

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.
@@ -1472,8 +1472,6 @@ class TableComponent {
1472
1472
  this.ColumnList = this.Columns.toArray();
1473
1473
  this.ColumnGroupList = this.ColumnGroups.toArray();
1474
1474
  this.RowResumenList = this.RowResumenGroups.toArray();
1475
- console.log(this.ColumnList);
1476
- console.log(this.RowResumenList);
1477
1475
  }
1478
1476
  LoadSearchOptions() {
1479
1477
  this.ListSearchOptionsSimple = this.ListSearchOptions.map(item => ({
@@ -2526,9 +2524,10 @@ class HtmlToExcelService {
2526
2524
  worksheet.columns.forEach((column, index) => {
2527
2525
  if (!column.values)
2528
2526
  return;
2529
- let columnWidth = columns[index].width ?? Math.max(...column.values.map(v => (v ? v.toString().length : 0)).filter(v => typeof v === "number"), columns[index].displayColumnName.length) + 2;
2527
+ let columnWidth = columns[index].width ?? Math.max(...column.values.map(v => (v ? v.toString().length : 0)).filter(v => typeof v === "number"), columns[index].displayColumnName.length) * 1.2;
2530
2528
  column.width = Math.min(Math.max(columnWidth, 5), 100);
2531
2529
  column.alignment = columns[index].isNumber ? { vertical: "middle", horizontal: "right", wrapText: true } : { vertical: "middle", horizontal: "left", wrapText: true };
2530
+ console.log(column.width, column);
2532
2531
  });
2533
2532
  worksheet.eachRow((row, rowIndex) => {
2534
2533
  if (rowIndex === 1)