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.
|
@@ -17605,6 +17605,7 @@
|
|
|
17605
17605
|
);
|
|
17606
17606
|
}, [rawDataMatrix, isDataBarOn, KPI.KPIBaseFormat]);
|
|
17607
17607
|
const cornerCells = React.useMemo(() => {
|
|
17608
|
+
if (!fixedColWidth) return;
|
|
17608
17609
|
const cells = [];
|
|
17609
17610
|
const baseStyle = {
|
|
17610
17611
|
width: fixedColWidth,
|
|
@@ -17798,7 +17799,6 @@
|
|
|
17798
17799
|
headerAtStart,
|
|
17799
17800
|
isRowTotalOn,
|
|
17800
17801
|
isColTotalOn,
|
|
17801
|
-
fixedColWidth,
|
|
17802
17802
|
colCellHeight,
|
|
17803
17803
|
rowCellHeight,
|
|
17804
17804
|
newNonFixedColCellWidth,
|
|
@@ -18038,6 +18038,7 @@
|
|
|
18038
18038
|
return map;
|
|
18039
18039
|
}, [measuresBySlice, rowColors]);
|
|
18040
18040
|
const rowHeadersBase = React.useMemo(() => {
|
|
18041
|
+
if (!fixedColWidth) return;
|
|
18041
18042
|
const headers = [];
|
|
18042
18043
|
const marks = measuresBySlice.map((m) => m.sliceMark);
|
|
18043
18044
|
const totalLevels = fixedColCount;
|
|
@@ -18211,7 +18212,7 @@
|
|
|
18211
18212
|
if (measures) {
|
|
18212
18213
|
const slJsx = getSparkLine(measures, styleObj);
|
|
18213
18214
|
if (headerAtStart) {
|
|
18214
|
-
cornerCells
|
|
18215
|
+
cornerCells?.push({
|
|
18215
18216
|
isSparkLine: true,
|
|
18216
18217
|
slJsx,
|
|
18217
18218
|
label: "",
|
|
@@ -18573,6 +18574,9 @@
|
|
|
18573
18574
|
}
|
|
18574
18575
|
style["--borderB"] = isLastRow ? outsideBorder : insideHBorder;
|
|
18575
18576
|
style["--borderL"] = isFirstCol && !isRowHeaderVisible && !headerAtStart && outsideBorder;
|
|
18577
|
+
if (isFirstCol && fixedColWidth <= 0) {
|
|
18578
|
+
style["--borderL"] = outsideBorder;
|
|
18579
|
+
}
|
|
18576
18580
|
}
|
|
18577
18581
|
function applyBordersToCornerCells(cells, fixedColWidth2, fixedRowCount2) {
|
|
18578
18582
|
return cells.map((cell, index) => {
|
|
@@ -18658,8 +18662,12 @@
|
|
|
18658
18662
|
const leftPx = style.left ?? 0;
|
|
18659
18663
|
const topPx = style.top ?? 0;
|
|
18660
18664
|
const heightPx = style.height || cellHeight;
|
|
18661
|
-
const
|
|
18662
|
-
const
|
|
18665
|
+
const isFixedHidden = fixedColWidth <= 0;
|
|
18666
|
+
const firstVisibleColIndex = isFixedHidden && isRowHeaderVisible ? 1 : 0;
|
|
18667
|
+
const colIndexAbs = Math.round(
|
|
18668
|
+
(leftPx - fixedColCount2 * fixedColWidth) / cellWidth
|
|
18669
|
+
);
|
|
18670
|
+
const isFirstCol = colIndexAbs === firstVisibleColIndex;
|
|
18663
18671
|
const isLastCol = colIndexAbs === lastHeaderColAbs;
|
|
18664
18672
|
const rowIndex = Math.round(topPx / cellHeight);
|
|
18665
18673
|
const rowSpan = Math.max(1, Math.round(heightPx / cellHeight));
|
|
@@ -18683,6 +18691,9 @@
|
|
|
18683
18691
|
newStyle["--borderR"] = outsideBorder;
|
|
18684
18692
|
newStyle["--borderT"] = outsideBorder;
|
|
18685
18693
|
}
|
|
18694
|
+
if (isFirstRow && isRowHeaderVisible && fixedColWidth <= 0) {
|
|
18695
|
+
newStyle["--borderL"] = outsideBorder;
|
|
18696
|
+
}
|
|
18686
18697
|
return { ...cell, ...newStyle };
|
|
18687
18698
|
});
|
|
18688
18699
|
return processed;
|
|
@@ -19780,7 +19791,10 @@
|
|
|
19780
19791
|
"span",
|
|
19781
19792
|
{
|
|
19782
19793
|
className: "pivot-row-header__text",
|
|
19783
|
-
style: {
|
|
19794
|
+
style: {
|
|
19795
|
+
textDecoration: rowHeaderFont.textDecoration,
|
|
19796
|
+
paddingRight: "5%"
|
|
19797
|
+
},
|
|
19784
19798
|
children: displayLabel
|
|
19785
19799
|
}
|
|
19786
19800
|
)
|