pace-table-lib 1.0.71 → 1.0.72
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.
|
@@ -8190,8 +8190,8 @@
|
|
|
8190
8190
|
[VALUE_FORMAT_OBJ.CURRENCY_EUR_SHORT]: { currency: "EUR", locale: "en-US" },
|
|
8191
8191
|
[VALUE_FORMAT_OBJ.CURRENCY_CAD]: { currency: "CAD", locale: "en-US" },
|
|
8192
8192
|
[VALUE_FORMAT_OBJ.CURRENCY_CAD_SHORT]: { currency: "CAD", locale: "en-US" },
|
|
8193
|
-
[VALUE_FORMAT_OBJ.CURRENCY_CHF]: { currency: "CHF", locale: "
|
|
8194
|
-
[VALUE_FORMAT_OBJ.CURRENCY_CHF_SHORT]: { currency: "CHF", locale: "
|
|
8193
|
+
[VALUE_FORMAT_OBJ.CURRENCY_CHF]: { currency: "CHF", locale: "en-IN" },
|
|
8194
|
+
[VALUE_FORMAT_OBJ.CURRENCY_CHF_SHORT]: { currency: "CHF", locale: "en-IN" }
|
|
8195
8195
|
};
|
|
8196
8196
|
if (currencyMap[format]) {
|
|
8197
8197
|
const { currency, locale } = currencyMap[format];
|
|
@@ -18837,7 +18837,6 @@
|
|
|
18837
18837
|
)
|
|
18838
18838
|
] });
|
|
18839
18839
|
}
|
|
18840
|
-
const NO_ENTRY_TOKENS = ["nolegendentryrow", "nocolentry"];
|
|
18841
18840
|
function hexToRgb(hex) {
|
|
18842
18841
|
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
18843
18842
|
return result ? {
|
|
@@ -18886,7 +18885,6 @@
|
|
|
18886
18885
|
for (let i = segments.length - 1; i >= 0; i--) {
|
|
18887
18886
|
const seg = segments[i];
|
|
18888
18887
|
if (seg && seg !== "!subtotal") {
|
|
18889
|
-
if (NO_ENTRY_TOKENS.includes(seg.toLowerCase())) return measureValue;
|
|
18890
18888
|
if (seg.includes("~$~")) {
|
|
18891
18889
|
return seg.split("~$~")[1]?.trim() ?? seg;
|
|
18892
18890
|
}
|
|
@@ -19054,7 +19052,7 @@
|
|
|
19054
19052
|
const isRowTotalOn = tableStyleProps?.DataField?.RowTotal;
|
|
19055
19053
|
const isRowHeaderVisible = !RowHeader?.HideRowHeader;
|
|
19056
19054
|
const isColHeaderVisible = !ColumnHeader?.HideColumnHeader;
|
|
19057
|
-
|
|
19055
|
+
Table2?.colOrRowHeaderName;
|
|
19058
19056
|
const isConditionalFormatOn = Table2?.ConditionalformattingOnOff;
|
|
19059
19057
|
const conditionalFormatArr = Table2?.Conditionalformatting;
|
|
19060
19058
|
const conditionalFormatsByType = React.useMemo(() => {
|
|
@@ -19104,10 +19102,7 @@
|
|
|
19104
19102
|
}
|
|
19105
19103
|
}
|
|
19106
19104
|
return rh?.map((rowPath, i) => {
|
|
19107
|
-
const
|
|
19108
|
-
(t) => rowPath.toLowerCase().includes(t)
|
|
19109
|
-
);
|
|
19110
|
-
const segments = isNoEntry ? [measureValue] : parseRowPath(rowPath);
|
|
19105
|
+
const segments = parseRowPath(rowPath);
|
|
19111
19106
|
const isSubtotal = segments.includes("!subtotal");
|
|
19112
19107
|
const nonSubSegs = segments?.filter((s) => s !== "!subtotal");
|
|
19113
19108
|
const lastSeg = nonSubSegs[nonSubSegs.length - 1] ?? "";
|
|
@@ -19123,7 +19118,7 @@
|
|
|
19123
19118
|
rowPath,
|
|
19124
19119
|
segments,
|
|
19125
19120
|
depth: 0,
|
|
19126
|
-
name:
|
|
19121
|
+
name: getRowDisplayName(segments),
|
|
19127
19122
|
measureIndex,
|
|
19128
19123
|
measureName,
|
|
19129
19124
|
isSubtotal,
|
|
@@ -19145,10 +19140,7 @@
|
|
|
19145
19140
|
const isSubtotal = parts[parts.length - 1] === "!subtotal";
|
|
19146
19141
|
const cleanedParts = parts?.filter((p) => p !== "!subtotal")?.map((p) => {
|
|
19147
19142
|
if (p.includes("~$~")) return p.split("~$~")[1]?.trim() ?? p;
|
|
19148
|
-
|
|
19149
|
-
(t) => p.toLowerCase().includes(t)
|
|
19150
|
-
);
|
|
19151
|
-
return isNoEntry ? "" : p;
|
|
19143
|
+
return p;
|
|
19152
19144
|
});
|
|
19153
19145
|
const year = cleanedParts[0] ?? `__col_${i}__`;
|
|
19154
19146
|
const measureDisplay = (cleanedParts && cleanedParts[cleanedParts.length - 1]) ?? year;
|
|
@@ -19619,11 +19611,7 @@
|
|
|
19619
19611
|
"column header"
|
|
19620
19612
|
);
|
|
19621
19613
|
let displayLabel = col.isSubtotal ? col.levels[col.levels.length - 1] ?? "" : col.levels?.[col.levels.length - 1] ?? col.measureDisplay;
|
|
19622
|
-
if (
|
|
19623
|
-
(t) => tableData?.rowHeaders?.[0]?.toLowerCase().includes(t)
|
|
19624
|
-
) && measureFormatConfigs?.[0]?.measureName) {
|
|
19625
|
-
displayLabel = measureFormatConfigs[0].measureName;
|
|
19626
|
-
} else if (tableStyleProps?.ColumnDateFormat) {
|
|
19614
|
+
if (tableStyleProps?.ColumnDateFormat) {
|
|
19627
19615
|
const parts = col.path.split("`");
|
|
19628
19616
|
const lastPart = parts[parts.length - 1];
|
|
19629
19617
|
if (tableStyleProps?.ColumnDateFormat?.[0] && (col.path == col.measureDisplay || col.isSubtotal)) {
|
|
@@ -19725,11 +19713,7 @@
|
|
|
19725
19713
|
const shouldWrap = Table2?.RowWrapText;
|
|
19726
19714
|
const rowConFormat = getConditionalFormat(row.name, "row header");
|
|
19727
19715
|
let displayLabel = row.name;
|
|
19728
|
-
if (
|
|
19729
|
-
(t) => tableData?.columnHeaders?.[0]?.toLowerCase().includes(t)
|
|
19730
|
-
) && measureFormatConfigs?.[0]?.measureName) {
|
|
19731
|
-
displayLabel = measureFormatConfigs[0].measureName;
|
|
19732
|
-
} else if (tableStyleProps?.RowDateFormat) {
|
|
19716
|
+
if (tableStyleProps?.RowDateFormat) {
|
|
19733
19717
|
if (tableStyleProps?.RowDateFormat?.[0] && (row.name === row.segments[0] || row.isSubtotal)) {
|
|
19734
19718
|
displayLabel = applyDateFormat(
|
|
19735
19719
|
row.name,
|