pace-table-lib 1.0.52 → 1.0.54

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.
@@ -17586,6 +17586,7 @@ function StaticTable({
17586
17586
  );
17587
17587
  }, [rawDataMatrix, isDataBarOn, KPI.KPIBaseFormat]);
17588
17588
  const cornerCells = useMemo(() => {
17589
+ if (!fixedColWidth) return;
17589
17590
  const cells = [];
17590
17591
  const baseStyle = {
17591
17592
  width: fixedColWidth,
@@ -17779,7 +17780,6 @@ function StaticTable({
17779
17780
  headerAtStart,
17780
17781
  isRowTotalOn,
17781
17782
  isColTotalOn,
17782
- fixedColWidth,
17783
17783
  colCellHeight,
17784
17784
  rowCellHeight,
17785
17785
  newNonFixedColCellWidth,
@@ -18019,6 +18019,7 @@ function StaticTable({
18019
18019
  return map;
18020
18020
  }, [measuresBySlice, rowColors]);
18021
18021
  const rowHeadersBase = useMemo(() => {
18022
+ if (!fixedColWidth) return;
18022
18023
  const headers = [];
18023
18024
  const marks = measuresBySlice.map((m) => m.sliceMark);
18024
18025
  const totalLevels = fixedColCount;
@@ -18192,7 +18193,7 @@ function StaticTable({
18192
18193
  if (measures) {
18193
18194
  const slJsx = getSparkLine(measures, styleObj);
18194
18195
  if (headerAtStart) {
18195
- cornerCells.push({
18196
+ cornerCells?.push({
18196
18197
  isSparkLine: true,
18197
18198
  slJsx,
18198
18199
  label: "",
@@ -18554,6 +18555,9 @@ function StaticTable({
18554
18555
  }
18555
18556
  style["--borderB"] = isLastRow ? outsideBorder : insideHBorder;
18556
18557
  style["--borderL"] = isFirstCol && !isRowHeaderVisible && !headerAtStart && outsideBorder;
18558
+ if (isFirstCol && fixedColWidth <= 0) {
18559
+ style["--borderL"] = outsideBorder;
18560
+ }
18557
18561
  }
18558
18562
  function applyBordersToCornerCells(cells, fixedColWidth2, fixedRowCount2) {
18559
18563
  return cells.map((cell, index) => {
@@ -18639,8 +18643,12 @@ function StaticTable({
18639
18643
  const leftPx = style.left ?? 0;
18640
18644
  const topPx = style.top ?? 0;
18641
18645
  const heightPx = style.height || cellHeight;
18642
- const colIndexAbs = Math.round((leftPx - fixedColCount2 * fixedColWidth) / cellWidth);
18643
- const isFirstCol = colIndexAbs === fixedColCount2;
18646
+ const isFixedHidden = fixedColWidth <= 0;
18647
+ const firstVisibleColIndex = isFixedHidden && isRowHeaderVisible ? 1 : 0;
18648
+ const colIndexAbs = Math.round(
18649
+ (leftPx - fixedColCount2 * fixedColWidth) / cellWidth
18650
+ );
18651
+ const isFirstCol = colIndexAbs === firstVisibleColIndex;
18644
18652
  const isLastCol = colIndexAbs === lastHeaderColAbs;
18645
18653
  const rowIndex = Math.round(topPx / cellHeight);
18646
18654
  const rowSpan = Math.max(1, Math.round(heightPx / cellHeight));
@@ -18664,6 +18672,9 @@ function StaticTable({
18664
18672
  newStyle["--borderR"] = outsideBorder;
18665
18673
  newStyle["--borderT"] = outsideBorder;
18666
18674
  }
18675
+ if (isFirstRow && isRowHeaderVisible && fixedColWidth <= 0) {
18676
+ newStyle["--borderL"] = outsideBorder;
18677
+ }
18667
18678
  return { ...cell, ...newStyle };
18668
18679
  });
18669
18680
  return processed;
@@ -19761,7 +19772,10 @@ const PivotTable = ({
19761
19772
  "span",
19762
19773
  {
19763
19774
  className: "pivot-row-header__text",
19764
- style: { textDecoration: rowHeaderFont.textDecoration },
19775
+ style: {
19776
+ textDecoration: rowHeaderFont.textDecoration,
19777
+ paddingRight: "5%"
19778
+ },
19765
19779
  children: displayLabel
19766
19780
  }
19767
19781
  )