pace-table-lib 1.0.64 → 1.0.65
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.
|
@@ -18364,6 +18364,7 @@ function StaticTable({
|
|
|
18364
18364
|
if (!format.formattingScheme || format.formattingScheme.toLowerCase() !== "conditionally") {
|
|
18365
18365
|
return true;
|
|
18366
18366
|
}
|
|
18367
|
+
const formattedValue = formatValue(value, void 0, DataFieldDecimalPrecision);
|
|
18367
18368
|
const operator = format.operator?.toLowerCase();
|
|
18368
18369
|
if (operator === "contains" && format.containsStr) {
|
|
18369
18370
|
return value?.toLowerCase().includes(format.containsStr.toLowerCase());
|
|
@@ -18381,16 +18382,15 @@ function StaticTable({
|
|
|
18381
18382
|
try {
|
|
18382
18383
|
if (operator === "in between") {
|
|
18383
18384
|
if (format.checkValue && format.secondCheckValue) {
|
|
18384
|
-
return
|
|
18385
|
+
return formattedValue >= format.checkValue && formattedValue <= format.secondCheckValue;
|
|
18385
18386
|
}
|
|
18386
18387
|
return false;
|
|
18387
18388
|
} else if (operator === "not between") {
|
|
18388
18389
|
if (format.checkValue && format.secondCheckValue) {
|
|
18389
|
-
return
|
|
18390
|
+
return formattedValue < format.checkValue || formattedValue > format.secondCheckValue;
|
|
18390
18391
|
}
|
|
18391
18392
|
return false;
|
|
18392
18393
|
}
|
|
18393
|
-
const formattedValue = formatValue(value, void 0, DataFieldDecimalPrecision);
|
|
18394
18394
|
return compareVal(Number(formattedValue), format?.operator, Number(format?.checkValue));
|
|
18395
18395
|
} catch {
|
|
18396
18396
|
return false;
|