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.
@@ -18,3 +18,4 @@ export declare function calculateWidthHeightDynamically(content: string, fontSiz
18
18
  export declare function applyTextRelatedCss(headerArr: any[], flag: boolean): any[];
19
19
  export declare function applyTextCssForCorners(headerArr: any[], flag: boolean): any[];
20
20
  export declare function getIndex(str: string): number;
21
+ export declare function getFontSize(value?: number | string): number;
@@ -8327,6 +8327,11 @@ function applyTextCssForCorners(headerArr, flag) {
8327
8327
  function getIndex(str) {
8328
8328
  return Number(str.split("~$~")[0]);
8329
8329
  }
8330
+ function getFontSize(value) {
8331
+ if (typeof value === "number") return value;
8332
+ if (typeof value === "string") return parseInt(value, 11);
8333
+ return 0;
8334
+ }
8330
8335
  var jquery$1 = { exports: {} };
8331
8336
  /*!
8332
8337
  * jQuery JavaScript Library v3.7.1
@@ -17341,20 +17346,20 @@ function StaticTable({
17341
17346
  const rowHeaderFont = useMemo(() => ({
17342
17347
  color: RowHeader.RowHeaderColor,
17343
17348
  fontFamily: RowHeader.RowHeaderFontFamily,
17344
- fontSize: RowHeader.RowHeaderFontSize,
17349
+ fontSize: getFontSize(RowHeader.RowHeaderFontSize),
17345
17350
  justifyContent: RowHeader.Textalign,
17346
17351
  ...getFontStyleObj(RowHeader.RowHeaderFontStyle)
17347
17352
  }), [RowHeader]);
17348
17353
  const colHeaderFont = useMemo(() => ({
17349
17354
  color: ColumnHeader.ColumnHeaderColor,
17350
17355
  fontFamily: ColumnHeader.ColumnHeaderFontFamily,
17351
- fontSize: ColumnHeader.ColumnHeaderFontSize,
17356
+ fontSize: getFontSize(ColumnHeader.ColumnHeaderFontSize),
17352
17357
  justifyContent: ColumnHeader.Textalign,
17353
17358
  ...getFontStyleObj(ColumnHeader.ColumnHeaderFontStyle)
17354
17359
  }), [ColumnHeader]);
17355
17360
  const dataCellFont = useMemo(() => ({
17356
17361
  fontFamily: DataFieldFontFamily,
17357
- fontSize: DataFieldFontSize,
17362
+ fontSize: getFontSize(DataFieldFontSize),
17358
17363
  justifyContent: Textalign,
17359
17364
  color: DataFieldColor,
17360
17365
  ...getFontStyleObj(DataFieldFontStyle)