pace-table-lib 1.0.58 → 1.0.60
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.
|
@@ -8389,6 +8389,24 @@
|
|
|
8389
8389
|
}
|
|
8390
8390
|
return 10;
|
|
8391
8391
|
}
|
|
8392
|
+
function getGroupIndex(measuresBySlice) {
|
|
8393
|
+
let groupIndex = 1;
|
|
8394
|
+
try {
|
|
8395
|
+
let lastParent = null;
|
|
8396
|
+
for (let i = 0; i <= measuresBySlice.length; i++) {
|
|
8397
|
+
const parent = measuresBySlice[i]?.sliceMark?.[0] ?? "";
|
|
8398
|
+
if (parent !== lastParent) {
|
|
8399
|
+
if (lastParent !== null) {
|
|
8400
|
+
groupIndex++;
|
|
8401
|
+
}
|
|
8402
|
+
lastParent = parent;
|
|
8403
|
+
}
|
|
8404
|
+
}
|
|
8405
|
+
} catch (err) {
|
|
8406
|
+
console.warn(err);
|
|
8407
|
+
}
|
|
8408
|
+
return groupIndex;
|
|
8409
|
+
}
|
|
8392
8410
|
var jquery$1 = { exports: {} };
|
|
8393
8411
|
/*!
|
|
8394
8412
|
* jQuery JavaScript Library v3.7.1
|
|
@@ -18147,7 +18165,7 @@
|
|
|
18147
18165
|
width: widthForTheTotal,
|
|
18148
18166
|
height: rowCellHeight,
|
|
18149
18167
|
color: finalStyleForRow.color,
|
|
18150
|
-
background: finalStyleForRow.background ?? getBgColorForCell(
|
|
18168
|
+
background: finalStyleForRow.background ?? getBgColorForCell(getGroupIndex(measuresBySlice), rowColors),
|
|
18151
18169
|
fontWeight: "bold"
|
|
18152
18170
|
});
|
|
18153
18171
|
if (isSparkLineVisible && isSlAtStart && !headerAtStart) {
|
|
@@ -18422,7 +18440,7 @@
|
|
|
18422
18440
|
const isSparkLineCol = isSparkLineVisible && !isSlAtStart && columnIndex === columnCount - 1;
|
|
18423
18441
|
const isPercentageMode = DataField.hasOwnProperty("percentageBy") && DataField.percentageBy && DataField.percentageBy?.toLowerCase() !== "absolute";
|
|
18424
18442
|
let rawValue;
|
|
18425
|
-
const bgColorForTotals = getBgColorForCell(
|
|
18443
|
+
const bgColorForTotals = getBgColorForCell(getGroupIndex(measuresBySlice), dataColors);
|
|
18426
18444
|
if (isColTotalOn && isRowTotalOn && !headerAtStart && isLastRow && isLastCol) {
|
|
18427
18445
|
baseStyle.background = bgColorForTotals;
|
|
18428
18446
|
rawValue = grandTotal;
|
|
@@ -19688,7 +19706,6 @@
|
|
|
19688
19706
|
maxWidth: isFitTableOn ? colCellWidth : Table2.TableWidth,
|
|
19689
19707
|
height: shouldWrapColumnHeader ? "auto" : colCellHeight,
|
|
19690
19708
|
alignItems: shouldWrapColumnHeader ? "flex-start" : "center",
|
|
19691
|
-
textAlign: colHeaderFont.textAlign?.toLowerCase() ?? "left",
|
|
19692
19709
|
fontSize: colHeaderFont.fontSize,
|
|
19693
19710
|
fontFamily: colHeaderFont.fontFamily,
|
|
19694
19711
|
fontWeight: col.isSubtotal ? "bold" : colHeaderFont.fontWeight,
|
|
@@ -19718,7 +19735,16 @@
|
|
|
19718
19735
|
children: collapsedCols.has(getCollapseKey(col)) ? "+" : "−"
|
|
19719
19736
|
}
|
|
19720
19737
|
),
|
|
19721
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19738
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19739
|
+
"span",
|
|
19740
|
+
{
|
|
19741
|
+
className: "pivot-column-header__text",
|
|
19742
|
+
style: {
|
|
19743
|
+
textAlign: colHeaderFont.textAlign?.toLowerCase() ?? "left"
|
|
19744
|
+
},
|
|
19745
|
+
children: displayLabel
|
|
19746
|
+
}
|
|
19747
|
+
)
|
|
19722
19748
|
] })
|
|
19723
19749
|
},
|
|
19724
19750
|
`col-${idx}`
|