cats-data-grid 2.0.91 → 2.0.92
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.
|
@@ -1917,8 +1917,10 @@ class CatsDataGridComponent {
|
|
|
1917
1917
|
];
|
|
1918
1918
|
}
|
|
1919
1919
|
normalizeSetFilterType(value, key) {
|
|
1920
|
-
if (
|
|
1921
|
-
|
|
1920
|
+
if (value === null || value === undefined || value === '') {
|
|
1921
|
+
value = 'N/A';
|
|
1922
|
+
}
|
|
1923
|
+
// if (!value) return;
|
|
1922
1924
|
if (Array.isArray(value) && typeof value[0] === 'string') {
|
|
1923
1925
|
return value;
|
|
1924
1926
|
}
|
|
@@ -2072,7 +2074,10 @@ class CatsDataGridComponent {
|
|
|
2072
2074
|
if (col.selectedValues?.size >= 0 &&
|
|
2073
2075
|
col.selectedValues?.size !== col.options.length) {
|
|
2074
2076
|
result = result.filter((r) => {
|
|
2075
|
-
|
|
2077
|
+
let value = this.evaluateFieldValue(r, field);
|
|
2078
|
+
if (value === null || value === undefined || value === '') {
|
|
2079
|
+
return col.selectedValues.has('N/A');
|
|
2080
|
+
}
|
|
2076
2081
|
if (Array.isArray(value) &&
|
|
2077
2082
|
value.every((val) => typeof val !== 'object')) {
|
|
2078
2083
|
return value.some((m) => col.selectedValues.has(m));
|
|
@@ -2081,7 +2086,7 @@ class CatsDataGridComponent {
|
|
|
2081
2086
|
value.every((val) => typeof val === 'object')) {
|
|
2082
2087
|
return value.some((m) => col.selectedValues.has(m[col?.cellRendererParams?.tagKey]));
|
|
2083
2088
|
}
|
|
2084
|
-
return col.selectedValues.has(
|
|
2089
|
+
return col.selectedValues.has(value);
|
|
2085
2090
|
});
|
|
2086
2091
|
this.activeFilters.add(col.fieldName);
|
|
2087
2092
|
}
|