pace-table-lib 1.0.32 → 1.0.34
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.
|
@@ -8344,9 +8344,14 @@ function getIndex(str) {
|
|
|
8344
8344
|
return Number(str.split("~$~")[0]);
|
|
8345
8345
|
}
|
|
8346
8346
|
function getFontSize(value) {
|
|
8347
|
-
if (typeof value === "number"
|
|
8348
|
-
|
|
8349
|
-
|
|
8347
|
+
if (typeof value === "number" && Number.isFinite(value)) {
|
|
8348
|
+
return value;
|
|
8349
|
+
}
|
|
8350
|
+
if (typeof value === "string") {
|
|
8351
|
+
const parsed = Number.parseFloat(value);
|
|
8352
|
+
return Number.isFinite(parsed) ? parsed : 10;
|
|
8353
|
+
}
|
|
8354
|
+
return 10;
|
|
8350
8355
|
}
|
|
8351
8356
|
var jquery$1 = { exports: {} };
|
|
8352
8357
|
/*!
|
|
@@ -18285,7 +18290,7 @@ function StaticTable({
|
|
|
18285
18290
|
return getSparkLine(dataArr, baseStyle);
|
|
18286
18291
|
}
|
|
18287
18292
|
if (rawValue === void 0) return null;
|
|
18288
|
-
const mName = measuresBySlice[rowIdxHeat]?.measureNames[colIdxHeat]
|
|
18293
|
+
const mName = measuresBySlice?.[rowIdxHeat]?.measureNames?.[colIdxHeat];
|
|
18289
18294
|
const formattingObj = getMeasureFormattingObj(mName);
|
|
18290
18295
|
const conditionalFormatObj = getConditionalFormat(rawValue, CONDITIONAL_FORMAT_FOR.VALUE);
|
|
18291
18296
|
const numberFormat = conditionalFormatObj?.numberFormat ?? formattingObj.numberFormat;
|
|
@@ -18446,7 +18451,7 @@ function StaticTable({
|
|
|
18446
18451
|
["--borderL"]: isFirstCol ? outsideBorder : null,
|
|
18447
18452
|
["--borderR"]: insideVBorder,
|
|
18448
18453
|
["--borderB"]: isLastRow ? outsideBorder : insideHBorder,
|
|
18449
|
-
["--borderT"]: isFirstRow && !isColTotalOn2 && !headerAtStart ? insideHBorder : null
|
|
18454
|
+
["--borderT"]: isFirstRow && !isColTotalOn2 && !headerAtStart ? insideHBorder ?? outsideBorder : null
|
|
18450
18455
|
};
|
|
18451
18456
|
if (cell.isSparkLine) {
|
|
18452
18457
|
newStyle.borderLeft = INNER;
|