pace-table-lib 1.0.27 → 1.0.28
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.
|
@@ -8346,6 +8346,11 @@
|
|
|
8346
8346
|
function getIndex(str) {
|
|
8347
8347
|
return Number(str.split("~$~")[0]);
|
|
8348
8348
|
}
|
|
8349
|
+
function getFontSize(value) {
|
|
8350
|
+
if (typeof value === "number") return value;
|
|
8351
|
+
if (typeof value === "string") return parseInt(value, 11);
|
|
8352
|
+
return 0;
|
|
8353
|
+
}
|
|
8349
8354
|
var jquery$1 = { exports: {} };
|
|
8350
8355
|
/*!
|
|
8351
8356
|
* jQuery JavaScript Library v3.7.1
|
|
@@ -17360,20 +17365,20 @@
|
|
|
17360
17365
|
const rowHeaderFont = React.useMemo(() => ({
|
|
17361
17366
|
color: RowHeader.RowHeaderColor,
|
|
17362
17367
|
fontFamily: RowHeader.RowHeaderFontFamily,
|
|
17363
|
-
fontSize: RowHeader.RowHeaderFontSize,
|
|
17368
|
+
fontSize: getFontSize(RowHeader.RowHeaderFontSize),
|
|
17364
17369
|
justifyContent: RowHeader.Textalign,
|
|
17365
17370
|
...getFontStyleObj(RowHeader.RowHeaderFontStyle)
|
|
17366
17371
|
}), [RowHeader]);
|
|
17367
17372
|
const colHeaderFont = React.useMemo(() => ({
|
|
17368
17373
|
color: ColumnHeader.ColumnHeaderColor,
|
|
17369
17374
|
fontFamily: ColumnHeader.ColumnHeaderFontFamily,
|
|
17370
|
-
fontSize: ColumnHeader.ColumnHeaderFontSize,
|
|
17375
|
+
fontSize: getFontSize(ColumnHeader.ColumnHeaderFontSize),
|
|
17371
17376
|
justifyContent: ColumnHeader.Textalign,
|
|
17372
17377
|
...getFontStyleObj(ColumnHeader.ColumnHeaderFontStyle)
|
|
17373
17378
|
}), [ColumnHeader]);
|
|
17374
17379
|
const dataCellFont = React.useMemo(() => ({
|
|
17375
17380
|
fontFamily: DataFieldFontFamily,
|
|
17376
|
-
fontSize: DataFieldFontSize,
|
|
17381
|
+
fontSize: getFontSize(DataFieldFontSize),
|
|
17377
17382
|
justifyContent: Textalign,
|
|
17378
17383
|
color: DataFieldColor,
|
|
17379
17384
|
...getFontStyleObj(DataFieldFontStyle)
|