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.
|
@@ -18382,6 +18382,7 @@
|
|
|
18382
18382
|
if (!format.formattingScheme || format.formattingScheme.toLowerCase() !== "conditionally") {
|
|
18383
18383
|
return true;
|
|
18384
18384
|
}
|
|
18385
|
+
const formattedValue = formatValue(value, void 0, DataFieldDecimalPrecision);
|
|
18385
18386
|
const operator = format.operator?.toLowerCase();
|
|
18386
18387
|
if (operator === "contains" && format.containsStr) {
|
|
18387
18388
|
return value?.toLowerCase().includes(format.containsStr.toLowerCase());
|
|
@@ -18399,16 +18400,15 @@
|
|
|
18399
18400
|
try {
|
|
18400
18401
|
if (operator === "in between") {
|
|
18401
18402
|
if (format.checkValue && format.secondCheckValue) {
|
|
18402
|
-
return
|
|
18403
|
+
return formattedValue >= format.checkValue && formattedValue <= format.secondCheckValue;
|
|
18403
18404
|
}
|
|
18404
18405
|
return false;
|
|
18405
18406
|
} else if (operator === "not between") {
|
|
18406
18407
|
if (format.checkValue && format.secondCheckValue) {
|
|
18407
|
-
return
|
|
18408
|
+
return formattedValue < format.checkValue || formattedValue > format.secondCheckValue;
|
|
18408
18409
|
}
|
|
18409
18410
|
return false;
|
|
18410
18411
|
}
|
|
18411
|
-
const formattedValue = formatValue(value, void 0, DataFieldDecimalPrecision);
|
|
18412
18412
|
return compareVal(Number(formattedValue), format?.operator, Number(format?.checkValue));
|
|
18413
18413
|
} catch {
|
|
18414
18414
|
return false;
|