@tanstack/vue-table 8.8.1 → 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) => {
|
|
@@ -2010,12 +2010,12 @@
|
|
|
2010
2010
|
return isAllRowsSelected;
|
|
2011
2011
|
},
|
|
2012
2012
|
getIsAllPageRowsSelected: () => {
|
|
2013
|
-
const paginationFlatRows = table.getPaginationRowModel().flatRows;
|
|
2013
|
+
const paginationFlatRows = table.getPaginationRowModel().flatRows.filter(row => row.getCanSelect());
|
|
2014
2014
|
const {
|
|
2015
2015
|
rowSelection
|
|
2016
2016
|
} = table.getState();
|
|
2017
2017
|
let isAllPageRowsSelected = !!paginationFlatRows.length;
|
|
2018
|
-
if (isAllPageRowsSelected && paginationFlatRows.some(row =>
|
|
2018
|
+
if (isAllPageRowsSelected && paginationFlatRows.some(row => !rowSelection[row.id])) {
|
|
2019
2019
|
isAllPageRowsSelected = false;
|
|
2020
2020
|
}
|
|
2021
2021
|
return isAllPageRowsSelected;
|
|
@@ -2027,7 +2027,7 @@
|
|
|
2027
2027
|
},
|
|
2028
2028
|
getIsSomePageRowsSelected: () => {
|
|
2029
2029
|
const paginationFlatRows = table.getPaginationRowModel().flatRows;
|
|
2030
|
-
return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.some(d => d.getIsSelected() || d.getIsSomeSelected());
|
|
2030
|
+
return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.filter(row => row.getCanSelect()).some(d => d.getIsSelected() || d.getIsSomeSelected());
|
|
2031
2031
|
},
|
|
2032
2032
|
getToggleAllRowsSelectedHandler: () => {
|
|
2033
2033
|
return e => {
|