pace-table-lib 1.0.26 → 1.0.27

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.
@@ -8343,6 +8343,9 @@
8343
8343
  }
8344
8344
  }));
8345
8345
  }
8346
+ function getIndex(str) {
8347
+ return Number(str.split("~$~")[0]);
8348
+ }
8346
8349
  var jquery$1 = { exports: {} };
8347
8350
  /*!
8348
8351
  * jQuery JavaScript Library v3.7.1
@@ -17344,7 +17347,7 @@
17344
17347
  const outsideBorder = isOutsideBorderVisible ? createBorder(Border.LineWidth, Border.LineStyle, Border.LineColor) : null;
17345
17348
  const insideVBorder = isInsideVerticalBVisible ? createBorder(Border.VerticalBorderLineWidth, Border.VerticalBorderLineStyle, Border.VerticalBorderLineColor) : null;
17346
17349
  const insideHBorder = isInsideHorizontalBVisible ? createBorder(Border.HorizontalBorderLineWidth, Border.HorizontalBorderLineStyle, Border.HorizontalBorderLineColor) : null;
17347
- const renderDataCell = (label, styles, className, childClassName, toolTip, dataBarBg) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...ToolTipVisibility ? { title: toolTip } : {}, className, style: styles, onContextMenu: styles.hasOwnProperty("oncontextmenu") ? styles.oncontextmenu : null, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: childClassName, style: { fontFamily: styles.fontFamily, textAlign: styles.justifyContent, background: dataBarBg ?? "none" }, children: label }) });
17350
+ const renderDataCell = (label, styles, className, childClassName, toolTip, dataBarBg) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...ToolTipVisibility ? { title: getCleanString(toolTip) ?? "" } : {}, className, style: styles, onContextMenu: styles.hasOwnProperty("oncontextmenu") ? styles.oncontextmenu : null, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: childClassName, style: { fontFamily: styles.fontFamily, textAlign: styles.justifyContent, background: dataBarBg ?? "none" }, children: label }) });
17348
17351
  React.useEffect(() => {
17349
17352
  const hide = () => setMenu((m) => ({ ...m, visible: false }));
17350
17353
  document.addEventListener("click", hide);
@@ -17385,7 +17388,7 @@
17385
17388
  if (!isColHeaderVisible) {
17386
17389
  return headerAtStart && isColTotalOn ? 1 : 0;
17387
17390
  }
17388
- const base = Math.max(...dimensionMarks.map((d) => d.length));
17391
+ const base = Math.max(...dimensionMarks?.map((d) => d?.length));
17389
17392
  return base + (headerAtStart && isColTotalOn ? 1 : 0);
17390
17393
  }, [dimensionMarks, headerAtStart, isColTotalOn, isColHeaderVisible]);
17391
17394
  const fixedColCount = React.useMemo(() => {
@@ -18139,7 +18142,8 @@
18139
18142
  if (isConditionalFormatOn) return numberFormatConfig;
18140
18143
  if (!measureFormatConfigs) return numberFormatConfig;
18141
18144
  if (!givenMeasureName) return numberFormatConfig;
18142
- const formattingObj = measureFormatConfigs.find((item) => item.measureName === getCleanString(givenMeasureName));
18145
+ const mIndex = getIndex(givenMeasureName);
18146
+ const formattingObj = measureFormatConfigs?.[mIndex];
18143
18147
  return formattingObj ?? numberFormatConfig;
18144
18148
  }
18145
18149
  function getConditionalFormat(value, formatFor, level) {
@@ -18273,8 +18277,8 @@
18273
18277
  return getSparkLine(dataArr, baseStyle);
18274
18278
  }
18275
18279
  if (rawValue === void 0) return null;
18276
- const dimName = dimensionMarks[colIdxHeat]?.[fixedRowCount - 1] ?? void 0;
18277
- const formattingObj = getMeasureFormattingObj(dimName);
18280
+ const mName = measuresBySlice[rowIdxHeat]?.measureNames[colIdxHeat] ?? void 0;
18281
+ const formattingObj = getMeasureFormattingObj(mName);
18278
18282
  const conditionalFormatObj = getConditionalFormat(rawValue, CONDITIONAL_FORMAT_FOR.VALUE);
18279
18283
  const numberFormat = conditionalFormatObj?.numberFormat ?? formattingObj.numberFormat;
18280
18284
  const decimalPrecision = conditionalFormatObj?.decimalPrecision ?? formattingObj.decimalPrecision;