pace-table-lib 1.0.51 → 1.0.53

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.
@@ -18788,11 +18788,11 @@
18788
18788
  function parseRowPath(rowPath) {
18789
18789
  return rowPath.split("`")?.filter(Boolean);
18790
18790
  }
18791
- function getRowDisplayName(segments) {
18791
+ function getRowDisplayName(segments, measureValue) {
18792
18792
  for (let i = segments.length - 1; i >= 0; i--) {
18793
18793
  const seg = segments[i];
18794
18794
  if (seg && seg !== "!subtotal") {
18795
- if (NO_ENTRY_TOKENS.includes(seg.toLowerCase())) return "value";
18795
+ if (NO_ENTRY_TOKENS.includes(seg.toLowerCase())) return measureValue;
18796
18796
  if (seg.includes("~$~")) {
18797
18797
  return seg.split("~$~")[1]?.trim() ?? seg;
18798
18798
  }
@@ -19056,6 +19056,7 @@
19056
19056
  const isSlAtStart = SparkLine?.Position === "Start";
19057
19057
  const isRowHeaderVisible = !RowHeader?.HideRowHeader;
19058
19058
  const isColHeaderVisible = !ColumnHeader?.HideColumnHeader;
19059
+ const measureValue = Table2.colOrRowHeaderName;
19059
19060
  const isConditionalFormatOn = Table2.ConditionalformattingOnOff;
19060
19061
  const conditionalFormatArr = Table2.Conditionalformatting;
19061
19062
  const conditionalFormatsByType = React.useMemo(() => {
@@ -19080,9 +19081,9 @@
19080
19081
  const getMeasureFormattingObj = React.useCallback(
19081
19082
  (measureInfo) => {
19082
19083
  const defaultFormat = {
19083
- numberFormat: DataField.NumberFormat ?? "Comma Separated",
19084
- decimalPrecision: DataField.DataFieldDecimalPrecision ?? 2,
19085
- displayUnits: DataField.DisplayUnits ?? "None"
19084
+ numberFormat: DataField.NumberFormat,
19085
+ decimalPrecision: DataField.DataFieldDecimalPrecision,
19086
+ displayUnits: DataField.DisplayUnits
19086
19087
  };
19087
19088
  if (measureInfo.measureIndex === -1 || !measureInfo.measureName) {
19088
19089
  return defaultFormat;
@@ -19101,7 +19102,7 @@
19101
19102
  const isNoEntry = NO_ENTRY_TOKENS.some(
19102
19103
  (t) => rowPath.toLowerCase().includes(t)
19103
19104
  );
19104
- const segments = isNoEntry ? ["value"] : parseRowPath(rowPath);
19105
+ const segments = isNoEntry ? [measureValue] : parseRowPath(rowPath);
19105
19106
  const isSubtotal = segments.includes("!subtotal");
19106
19107
  const nonSubSegs = segments?.filter((s) => s !== "!subtotal");
19107
19108
  const lastSeg = nonSubSegs[nonSubSegs.length - 1] ?? "";
@@ -19117,7 +19118,7 @@
19117
19118
  rowPath,
19118
19119
  segments,
19119
19120
  depth: 0,
19120
- name: isNoEntry ? "value" : getRowDisplayName(segments),
19121
+ name: isNoEntry ? measureValue : getRowDisplayName(segments, measureValue),
19121
19122
  measureIndex,
19122
19123
  measureName,
19123
19124
  isSubtotal,
@@ -19779,7 +19780,10 @@
19779
19780
  "span",
19780
19781
  {
19781
19782
  className: "pivot-row-header__text",
19782
- style: { textDecoration: rowHeaderFont.textDecoration },
19783
+ style: {
19784
+ textDecoration: rowHeaderFont.textDecoration,
19785
+ paddingRight: "5%"
19786
+ },
19783
19787
  children: displayLabel
19784
19788
  }
19785
19789
  )
@@ -19858,9 +19862,9 @@
19858
19862
  );
19859
19863
  const measureInfo = getMeasureNameFromCol(col);
19860
19864
  const measureFmt = col.isSubtotal ? {
19861
- numberFormat: DataField.NumberFormat ?? "Comma Separated",
19862
- decimalPrecision: DataField.measureDataFieldDecimalPrecision ?? 2,
19863
- displayUnits: DataField.DisplayUnits ?? "None"
19865
+ numberFormat: DataField.NumberFormat,
19866
+ decimalPrecision: DataField.measureDataFieldDecimalPrecision,
19867
+ displayUnits: DataField.DisplayUnits
19864
19868
  } : getMeasureFormattingObj(measureInfo);
19865
19869
  const resolvedFormat = {
19866
19870
  measureIndex: activeFormat?.measureIndex ?? 0,