pace-table-lib 1.0.56 → 1.0.57

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.
@@ -17861,10 +17861,10 @@ function StaticTable({
17861
17861
  }
17862
17862
  }
17863
17863
  levelStyle.background = parentColorMap[parent];
17864
- const finalStyleForColumn = getFinalStyleObj(STYLE_FOR.COLUMN, levelStyle, colLabel, level);
17864
+ const finalStyleForColumn2 = getFinalStyleObj(STYLE_FOR.COLUMN, levelStyle, colLabel, level);
17865
17865
  const toolTipVal = formatValue(dimensionMarks[i][level], ToolTipNumberFormat, ToolTipDecimalPrecision);
17866
17866
  headers.push({
17867
- ...finalStyleForColumn,
17867
+ ...finalStyleForColumn2,
17868
17868
  label: colLabel,
17869
17869
  tooltip: toolTipVal,
17870
17870
  left: offsetLeft,
@@ -17929,6 +17929,7 @@ function StaticTable({
17929
17929
  }
17930
17930
  const leftForTotal = offsetLeftBase + dimensionMarks.length * newNonFixedColCellWidth;
17931
17931
  const isTotalVisibleAtLast = isRowTotalOn && !headerAtStart && isColHeaderVisible;
17932
+ const finalStyleForColumn = getFinalStyleObj(STYLE_FOR.COLUMN, levelStyle, TOTAL, totalLevels);
17932
17933
  if (isTotalVisibleAtLast) {
17933
17934
  headers.push({
17934
17935
  ...colHeaderFont,
@@ -17937,8 +17938,9 @@ function StaticTable({
17937
17938
  left: leftForTotal,
17938
17939
  top: 0,
17939
17940
  width: newNonFixedColCellWidth,
17941
+ color: finalStyleForColumn.color,
17940
17942
  height: colCellHeight * fixedRowCount,
17941
- background: getBgColorForCell(dimensionMarks.length, colColors),
17943
+ background: finalStyleForColumn.background ?? getBgColorForCell(dimensionMarks.length, colColors),
17942
17944
  fontWeight: "bold",
17943
17945
  childClassName: "col_header_data_cell_total"
17944
17946
  });
@@ -18096,10 +18098,10 @@ function StaticTable({
18096
18098
  rowLabel = formatValue(rowLabel, dFormat);
18097
18099
  }
18098
18100
  }
18099
- const finalStyleForRow = getFinalStyleObj(STYLE_FOR.ROW, baseStyleObj, rowLabel, level, parent);
18101
+ const finalStyleForRow2 = getFinalStyleObj(STYLE_FOR.ROW, baseStyleObj, rowLabel, level, parent);
18100
18102
  const tooltipValue = formatValue(marks[i][level], ToolTipNumberFormat, ToolTipDecimalPrecision);
18101
18103
  headers.push({
18102
- ...finalStyleForRow,
18104
+ ...finalStyleForRow2,
18103
18105
  label: getCleanString(rowLabel),
18104
18106
  tooltip: tooltipValue,
18105
18107
  top: offsetTop,
@@ -18112,6 +18114,7 @@ function StaticTable({
18112
18114
  }
18113
18115
  }
18114
18116
  const widthForTheTotal = isSparkLineVisible && isSlAtStart ? (fixedColCount - 1) * fixedColWidth : fixedColCount * fixedColWidth;
18117
+ const finalStyleForRow = getFinalStyleObj(STYLE_FOR.ROW, baseStyleObj, TOTAL, totalLevels);
18115
18118
  if (isColTotalOn && !headerAtStart && isRowHeaderVisible) {
18116
18119
  headers.push({
18117
18120
  ...rowHeaderFont,
@@ -18121,7 +18124,8 @@ function StaticTable({
18121
18124
  left: 0,
18122
18125
  width: widthForTheTotal,
18123
18126
  height: rowCellHeight,
18124
- background: getBgColorForCell(rowCount - 1, rowColors),
18127
+ color: finalStyleForRow.color,
18128
+ background: finalStyleForRow.background ?? getBgColorForCell(rowCount - 1, rowColors),
18125
18129
  fontWeight: "bold"
18126
18130
  });
18127
18131
  if (isSparkLineVisible && isSlAtStart && !headerAtStart) {
@@ -18361,7 +18365,7 @@ function StaticTable({
18361
18365
  return style;
18362
18366
  }
18363
18367
  case STYLE_FOR.ROW: {
18364
- const conFormatForRow = index > 0 && getConditionalFormat(label, CONDITIONAL_FORMAT_FOR.ROW, index);
18368
+ const conFormatForRow = getConditionalFormat(label, CONDITIONAL_FORMAT_FOR.ROW, index);
18365
18369
  style.background = rowHeaderBandColorMap[parentLabel];
18366
18370
  style = applyConditionalFormatting(style, conFormatForRow);
18367
18371
  return style;