@tanstack/svelte-table 8.8.3 → 8.8.4
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.
|
@@ -935,19 +935,19 @@
|
|
|
935
935
|
};
|
|
936
936
|
|
|
937
937
|
const includesString = (row, columnId, filterValue) => {
|
|
938
|
-
var _row$getValue;
|
|
938
|
+
var _row$getValue, _row$getValue$toStrin, _row$getValue$toStrin2;
|
|
939
939
|
const search = filterValue.toLowerCase();
|
|
940
|
-
return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
|
|
940
|
+
return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : (_row$getValue$toStrin = _row$getValue.toString()) == null ? void 0 : (_row$getValue$toStrin2 = _row$getValue$toStrin.toLowerCase()) == null ? void 0 : _row$getValue$toStrin2.includes(search));
|
|
941
941
|
};
|
|
942
942
|
includesString.autoRemove = val => testFalsey(val);
|
|
943
943
|
const includesStringSensitive = (row, columnId, filterValue) => {
|
|
944
|
-
var _row$getValue2;
|
|
945
|
-
return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
|
|
944
|
+
var _row$getValue2, _row$getValue2$toStri;
|
|
945
|
+
return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : (_row$getValue2$toStri = _row$getValue2.toString()) == null ? void 0 : _row$getValue2$toStri.includes(filterValue));
|
|
946
946
|
};
|
|
947
947
|
includesStringSensitive.autoRemove = val => testFalsey(val);
|
|
948
948
|
const equalsString = (row, columnId, filterValue) => {
|
|
949
|
-
var _row$getValue3;
|
|
950
|
-
return ((_row$getValue3 = row.getValue(columnId)) == null ? void 0 : _row$getValue3.toLowerCase()) === filterValue.toLowerCase();
|
|
949
|
+
var _row$getValue3, _row$getValue3$toStri;
|
|
950
|
+
return ((_row$getValue3 = row.getValue(columnId)) == null ? void 0 : (_row$getValue3$toStri = _row$getValue3.toString()) == null ? void 0 : _row$getValue3$toStri.toLowerCase()) === (filterValue == null ? void 0 : filterValue.toLowerCase());
|
|
951
951
|
};
|
|
952
952
|
equalsString.autoRemove = val => testFalsey(val);
|
|
953
953
|
const arrIncludes = (row, columnId, filterValue) => {
|