@clr/angular 12.4.0 → 12.4.1
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.
|
@@ -12012,10 +12012,13 @@
|
|
|
12012
12012
|
}
|
|
12013
12013
|
DatagridPropertyNumericFilter.prototype.accepts = function (item, low, high) {
|
|
12014
12014
|
var propValue = this.nestedProp.getPropValue(item);
|
|
12015
|
-
if (
|
|
12015
|
+
if (propValue === undefined) {
|
|
12016
12016
|
return false;
|
|
12017
12017
|
}
|
|
12018
|
-
if (
|
|
12018
|
+
if (low !== null && (typeof propValue !== 'number' || propValue < low)) {
|
|
12019
|
+
return false;
|
|
12020
|
+
}
|
|
12021
|
+
if (high !== null && (typeof propValue !== 'number' || propValue > high)) {
|
|
12019
12022
|
return false;
|
|
12020
12023
|
}
|
|
12021
12024
|
return true;
|