@saydar/table-builder 1.0.9 → 1.0.11
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.
|
@@ -1734,7 +1734,9 @@ class TableStore extends ComponentStore {
|
|
|
1734
1734
|
if (!filter.filterId) {
|
|
1735
1735
|
filter.filterId = v4();
|
|
1736
1736
|
}
|
|
1737
|
-
filter.
|
|
1737
|
+
if (filter.filterType === FilterType.In) {
|
|
1738
|
+
filter.filterValue = splitCommaValue(filter.filterValue);
|
|
1739
|
+
}
|
|
1738
1740
|
filtersObj[filter.filterId] = filter;
|
|
1739
1741
|
return filtersObj;
|
|
1740
1742
|
}, {});
|
|
@@ -2989,9 +2991,11 @@ class InFilterComponent {
|
|
|
2989
2991
|
}
|
|
2990
2992
|
onValueChange(i, value) {
|
|
2991
2993
|
this.value = [...this.value];
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2994
|
+
if (typeof value === 'string' && value.includes(',')) {
|
|
2995
|
+
const parts = value.split(',').map(s => s.trim());
|
|
2996
|
+
const leading = parts.slice(0, -1).filter(s => s);
|
|
2997
|
+
const last = parts[parts.length - 1];
|
|
2998
|
+
this.value.splice(i, 1, ...leading, last);
|
|
2995
2999
|
}
|
|
2996
3000
|
else {
|
|
2997
3001
|
this.value[i] = value;
|