intelica-library-ui 0.1.109 → 0.1.110

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.
@@ -3061,6 +3061,7 @@ class HtmlToExcelService {
3061
3061
  SetReportPage(rowsSerializate, worksheet, columns, imageId, subtitles = [], showTotalRow = false, headerGroups = []) {
3062
3062
  let columnsCell = [];
3063
3063
  let rows = JSON.parse(rowsSerializate);
3064
+ let isHeaderGood = headerGroups.length > 0;
3064
3065
  const imageRows = 5;
3065
3066
  const numberRows = rows.length;
3066
3067
  for (let i = 0; i < subtitles.length + imageRows; i++) {
@@ -3068,7 +3069,7 @@ class HtmlToExcelService {
3068
3069
  }
3069
3070
  let startRow = imageRows + 1 + subtitles.length;
3070
3071
  const groupedIndices = new Set();
3071
- if (headerGroups.length > 0) {
3072
+ if (isHeaderGood) {
3072
3073
  for (const group of headerGroups) {
3073
3074
  const startChar = this.GetExcelColumnLetter(group.startColumn);
3074
3075
  const endChar = this.GetExcelColumnLetter(group.endColumn);
@@ -3101,7 +3102,7 @@ class HtmlToExcelService {
3101
3102
  for (let i = 0; i < columns.length; i++) {
3102
3103
  const colLetter = this.GetExcelColumnLetter(i);
3103
3104
  const topCell = `${colLetter}${startRow}`;
3104
- const bottomCell = `${colLetter}${startRow + 1}`;
3105
+ const bottomCell = `${colLetter}${isHeaderGood ? startRow + 1 : startRow}`;
3105
3106
  if (groupedIndices.has(i)) {
3106
3107
  columnsCell.push(bottomCell);
3107
3108
  worksheet.getCell(bottomCell).value = columns[i].displayColumnName;