pace-table-lib 1.0.20 → 1.0.22
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.
|
@@ -17071,7 +17071,7 @@ function JQuerySparkLine({
|
|
|
17071
17071
|
switch (slPropData.slType) {
|
|
17072
17072
|
case SL_TYPE.LINE:
|
|
17073
17073
|
{
|
|
17074
|
-
$(sparkRef.current).sparkline(slPropData.dataArr, {
|
|
17074
|
+
$(sparkRef.current).sparkline([...slPropData.dataArr], {
|
|
17075
17075
|
type: "line",
|
|
17076
17076
|
width: `${width}px`,
|
|
17077
17077
|
height: `${height}px`,
|
|
@@ -17088,7 +17088,7 @@ function JQuerySparkLine({
|
|
|
17088
17088
|
break;
|
|
17089
17089
|
case SL_TYPE.BAR:
|
|
17090
17090
|
{
|
|
17091
|
-
$(sparkRef.current).sparkline(slPropData.dataArr, {
|
|
17091
|
+
$(sparkRef.current).sparkline([...slPropData.dataArr], {
|
|
17092
17092
|
type: "bar",
|
|
17093
17093
|
width: `${width}px`,
|
|
17094
17094
|
height: `${height}px`,
|
|
@@ -17103,7 +17103,7 @@ function JQuerySparkLine({
|
|
|
17103
17103
|
break;
|
|
17104
17104
|
case SL_TYPE.BOX:
|
|
17105
17105
|
{
|
|
17106
|
-
$(sparkRef.current).sparkline(slPropData.dataArr, {
|
|
17106
|
+
$(sparkRef.current).sparkline([...slPropData.dataArr], {
|
|
17107
17107
|
type: "box",
|
|
17108
17108
|
width: `${width}px`,
|
|
17109
17109
|
height: `${height}px`,
|
|
@@ -17116,7 +17116,7 @@ function JQuerySparkLine({
|
|
|
17116
17116
|
break;
|
|
17117
17117
|
case SL_TYPE.DISCRETE:
|
|
17118
17118
|
{
|
|
17119
|
-
$(sparkRef.current).sparkline(slPropData.dataArr, {
|
|
17119
|
+
$(sparkRef.current).sparkline([...slPropData.dataArr], {
|
|
17120
17120
|
type: "discrete",
|
|
17121
17121
|
width: `${width}`,
|
|
17122
17122
|
height: `${height}px`,
|
|
@@ -17128,14 +17128,14 @@ function JQuerySparkLine({
|
|
|
17128
17128
|
break;
|
|
17129
17129
|
case SL_TYPE.PIE:
|
|
17130
17130
|
{
|
|
17131
|
-
$(sparkRef.current).sparkline(slPropData.dataArr, {
|
|
17131
|
+
$(sparkRef.current).sparkline([...slPropData.dataArr], {
|
|
17132
17132
|
type: "pie",
|
|
17133
17133
|
// width: `${40}px`,
|
|
17134
17134
|
height: `${height}px`,
|
|
17135
17135
|
borderWidth: 0,
|
|
17136
17136
|
offset: slPropData.slStyle?.offset || 0,
|
|
17137
17137
|
tooltipFormatter: function(sparkline, options, fields) {
|
|
17138
|
-
const total = slPropData.dataArr.reduce((a, b) => a + b, 0);
|
|
17138
|
+
const total = [...slPropData.dataArr].reduce((a, b) => a + b, 0);
|
|
17139
17139
|
const value = fields.value;
|
|
17140
17140
|
const percent = total > 0 ? (value / total * 100).toFixed(2) : 0;
|
|
17141
17141
|
const formattedValue = formatValue2(value);
|
|
@@ -17995,6 +17995,7 @@ function StaticTable({
|
|
|
17995
17995
|
const baseStyle = {
|
|
17996
17996
|
...style,
|
|
17997
17997
|
...dataCellFont,
|
|
17998
|
+
fontWeight: "bold",
|
|
17998
17999
|
background: outerDivBg
|
|
17999
18000
|
};
|
|
18000
18001
|
const isLastRow = rowIndex === rowCount - 1;
|
|
@@ -18003,7 +18004,6 @@ function StaticTable({
|
|
|
18003
18004
|
const isSparkLineCol = isSparkLineVisible && !isSlAtStart && columnIndex === columnCount - 1;
|
|
18004
18005
|
const isPercentageMode = DataField.hasOwnProperty("percentageBy") && DataField.percentageBy && DataField.percentageBy?.toLowerCase() !== "absolute";
|
|
18005
18006
|
let rawValue;
|
|
18006
|
-
let isBold = true;
|
|
18007
18007
|
const bgColorForTotals = getBgColorForCell(rowCount - fixedRowCount, dataColors);
|
|
18008
18008
|
if (isColTotalOn && isRowTotalOn && !headerAtStart && isLastRow && isLastCol) {
|
|
18009
18009
|
baseStyle.background = bgColorForTotals;
|
|
@@ -18031,10 +18031,10 @@ function StaticTable({
|
|
|
18031
18031
|
tableData.columnTotalRow[colIdxHeat].columnTotal
|
|
18032
18032
|
);
|
|
18033
18033
|
}
|
|
18034
|
-
|
|
18034
|
+
baseStyle.fontWeight = dataCellFont.fontWeight;
|
|
18035
18035
|
} else {
|
|
18036
18036
|
rawValue = measuresBySlice[rowIdxHeat]?.measures?.[colIdxHeat];
|
|
18037
|
-
|
|
18037
|
+
baseStyle.fontWeight = dataCellFont.fontWeight;
|
|
18038
18038
|
}
|
|
18039
18039
|
if (isSparkLineCol && isSparkLineVisible && !isSlAtStart) {
|
|
18040
18040
|
const dataArr = measuresBySlice[rowIdxHeat]?.measures;
|
|
@@ -18052,8 +18052,7 @@ function StaticTable({
|
|
|
18052
18052
|
formattedValue = formatValue(rawValue, VALUE_FORMAT_OBJ.PERCENT_SHORT);
|
|
18053
18053
|
}
|
|
18054
18054
|
let finalStyle = {
|
|
18055
|
-
...baseStyle
|
|
18056
|
-
fontWeight: isBold ? "bold" : "normal"
|
|
18055
|
+
...baseStyle
|
|
18057
18056
|
};
|
|
18058
18057
|
if (conditionalFormatObj) {
|
|
18059
18058
|
if (conditionalFormatObj.fontFamily) finalStyle.fontFamily = conditionalFormatObj.fontFamily;
|