pace-table-lib 1.0.30 → 1.0.32
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.
- package/dist/components/StaticTable/StaticTableTypeDec.types.d.ts +1 -0
- package/dist/pace-table-lib.es.js +23 -10
- package/dist/pace-table-lib.es.js.map +1 -1
- package/dist/pace-table-lib.umd.js +23 -10
- package/dist/pace-table-lib.umd.js.map +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -8039,9 +8039,16 @@
|
|
|
8039
8039
|
return span;
|
|
8040
8040
|
}
|
|
8041
8041
|
function getCleanString(dimensionMark) {
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8042
|
+
try {
|
|
8043
|
+
if (!dimensionMark) return dimensionMark;
|
|
8044
|
+
if (dimensionMark.includes("~$~")) {
|
|
8045
|
+
const parts = dimensionMark.split("~$~");
|
|
8046
|
+
return parts[1] ?? dimensionMark;
|
|
8047
|
+
}
|
|
8048
|
+
} catch (error) {
|
|
8049
|
+
console.log(error);
|
|
8050
|
+
}
|
|
8051
|
+
return dimensionMark;
|
|
8045
8052
|
}
|
|
8046
8053
|
function isFirstOccurrence(arr, index, level) {
|
|
8047
8054
|
return index === 0 || arr[index].slice(0, level + 1).join("~$~") !== arr[index - 1].slice(0, level + 1).join("~$~");
|
|
@@ -18148,17 +18155,23 @@
|
|
|
18148
18155
|
return `linear-gradient(to right, ${barColor} ${pct * 100}%, transparent ${pct * 100}%)`;
|
|
18149
18156
|
}
|
|
18150
18157
|
function getMeasureFormattingObj(givenMeasureName) {
|
|
18151
|
-
const
|
|
18158
|
+
const defaultFormat = {
|
|
18152
18159
|
numberFormat: NumberFormat,
|
|
18153
18160
|
decimalPrecision: DataFieldDecimalPrecision,
|
|
18154
18161
|
displayUnits: DisplayUnits
|
|
18155
18162
|
};
|
|
18156
|
-
if (isConditionalFormatOn) return
|
|
18157
|
-
if (!measureFormatConfigs)
|
|
18158
|
-
|
|
18159
|
-
|
|
18160
|
-
const
|
|
18161
|
-
|
|
18163
|
+
if (isConditionalFormatOn) return defaultFormat;
|
|
18164
|
+
if (!givenMeasureName || !measureFormatConfigs?.length) {
|
|
18165
|
+
return defaultFormat;
|
|
18166
|
+
}
|
|
18167
|
+
const measureIndex = getIndex(givenMeasureName);
|
|
18168
|
+
if (measureIndex == null || measureIndex < 0) {
|
|
18169
|
+
return defaultFormat;
|
|
18170
|
+
}
|
|
18171
|
+
const formattingObj = measureFormatConfigs.find(
|
|
18172
|
+
(item) => item.measureIndex === measureIndex
|
|
18173
|
+
);
|
|
18174
|
+
return formattingObj ?? defaultFormat;
|
|
18162
18175
|
}
|
|
18163
18176
|
function getConditionalFormat(value, formatFor, level) {
|
|
18164
18177
|
if (!isConditionalFormatOn) return;
|