@tanstack/svelte-table 8.5.25 → 8.5.27
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.
- package/build/cjs/table-core/build/esm/index.js +5 -5
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +47 -47
- package/build/umd/index.development.js +5 -5
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -866,12 +866,12 @@ const Expanding = {
|
|
|
866
866
|
const includesString = (row, columnId, filterValue) => {
|
|
867
867
|
var _row$getValue;
|
|
868
868
|
const search = filterValue.toLowerCase();
|
|
869
|
-
return (_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search);
|
|
869
|
+
return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
|
|
870
870
|
};
|
|
871
871
|
includesString.autoRemove = val => testFalsey(val);
|
|
872
872
|
const includesStringSensitive = (row, columnId, filterValue) => {
|
|
873
873
|
var _row$getValue2;
|
|
874
|
-
return (_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue);
|
|
874
|
+
return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
|
|
875
875
|
};
|
|
876
876
|
includesStringSensitive.autoRemove = val => testFalsey(val);
|
|
877
877
|
const equalsString = (row, columnId, filterValue) => {
|
|
@@ -3151,11 +3151,11 @@ function getSortedRowModel() {
|
|
|
3151
3151
|
|
|
3152
3152
|
// If there are sub-rows, sort them
|
|
3153
3153
|
sortedData.forEach(row => {
|
|
3154
|
+
var _row$subRows;
|
|
3154
3155
|
sortedFlatRows.push(row);
|
|
3155
|
-
if (
|
|
3156
|
-
|
|
3156
|
+
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
3157
|
+
row.subRows = sortData(row.subRows);
|
|
3157
3158
|
}
|
|
3158
|
-
row.subRows = sortData(row.subRows);
|
|
3159
3159
|
});
|
|
3160
3160
|
return sortedData;
|
|
3161
3161
|
};
|