@tanstack/table-core 8.8.2 → 8.8.5
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/lib/columnHelper.js +0 -1
- package/build/lib/columnHelper.js.map +1 -1
- package/build/lib/features/ColumnSizing.js +2 -0
- package/build/lib/features/ColumnSizing.js.map +1 -1
- package/build/lib/features/Expanding.js +1 -1
- package/build/lib/features/Expanding.js.map +1 -1
- package/build/lib/features/RowSelection.js.map +1 -1
- package/build/lib/filterFns.js +6 -6
- package/build/lib/filterFns.js.map +1 -1
- package/build/lib/index.esm.js +9 -8
- package/build/lib/index.esm.js.map +1 -1
- package/build/lib/index.mjs +9 -8
- package/build/lib/index.mjs.map +1 -1
- package/build/lib/utils/getFacetedMinMaxValues.js.map +1 -1
- package/build/lib/utils/getSortedRowModel.js.map +1 -1
- package/build/umd/index.development.js +9 -8
- 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 +1 -1
- package/src/features/Expanding.ts +3 -1
- package/src/features/RowSelection.ts +7 -7
- package/src/filterFns.ts +12 -3
- package/src/utils/getFacetedMinMaxValues.ts +1 -1
- package/src/utils/getSortedRowModel.ts +1 -1
package/build/lib/index.mjs
CHANGED
|
@@ -510,6 +510,8 @@ function buildHeaderGroups(allColumns, columnsToGroup, table, headerFamily) {
|
|
|
510
510
|
|
|
511
511
|
//
|
|
512
512
|
|
|
513
|
+
//
|
|
514
|
+
|
|
513
515
|
const defaultColumnSizing = {
|
|
514
516
|
size: 150,
|
|
515
517
|
minSize: 20,
|
|
@@ -816,7 +818,7 @@ const Expanding = {
|
|
|
816
818
|
table.setExpanded(defaultState ? {} : (_table$initialState$e = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.expanded) != null ? _table$initialState$e : {});
|
|
817
819
|
},
|
|
818
820
|
getCanSomeRowsExpand: () => {
|
|
819
|
-
return table.
|
|
821
|
+
return table.getPrePaginationRowModel().flatRows.some(row => row.getCanExpand());
|
|
820
822
|
},
|
|
821
823
|
getToggleAllRowsExpandedHandler: () => {
|
|
822
824
|
return e => {
|
|
@@ -920,19 +922,19 @@ const Expanding = {
|
|
|
920
922
|
};
|
|
921
923
|
|
|
922
924
|
const includesString = (row, columnId, filterValue) => {
|
|
923
|
-
var _row$getValue;
|
|
925
|
+
var _row$getValue, _row$getValue$toStrin, _row$getValue$toStrin2;
|
|
924
926
|
const search = filterValue.toLowerCase();
|
|
925
|
-
return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
|
|
927
|
+
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));
|
|
926
928
|
};
|
|
927
929
|
includesString.autoRemove = val => testFalsey(val);
|
|
928
930
|
const includesStringSensitive = (row, columnId, filterValue) => {
|
|
929
|
-
var _row$getValue2;
|
|
930
|
-
return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
|
|
931
|
+
var _row$getValue2, _row$getValue2$toStri;
|
|
932
|
+
return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : (_row$getValue2$toStri = _row$getValue2.toString()) == null ? void 0 : _row$getValue2$toStri.includes(filterValue));
|
|
931
933
|
};
|
|
932
934
|
includesStringSensitive.autoRemove = val => testFalsey(val);
|
|
933
935
|
const equalsString = (row, columnId, filterValue) => {
|
|
934
|
-
var _row$getValue3;
|
|
935
|
-
return ((_row$getValue3 = row.getValue(columnId)) == null ? void 0 : _row$getValue3.toLowerCase()) === filterValue.toLowerCase();
|
|
936
|
+
var _row$getValue3, _row$getValue3$toStri;
|
|
937
|
+
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());
|
|
936
938
|
};
|
|
937
939
|
equalsString.autoRemove = val => testFalsey(val);
|
|
938
940
|
const arrIncludes = (row, columnId, filterValue) => {
|
|
@@ -2943,7 +2945,6 @@ const createRow = (table, id, original, rowIndex, depth, subRows, parentId) => {
|
|
|
2943
2945
|
// helper.accessor('nested.bar', {
|
|
2944
2946
|
// cell: info => info.getValue(),
|
|
2945
2947
|
// })
|
|
2946
|
-
|
|
2947
2948
|
function createColumnHelper() {
|
|
2948
2949
|
return {
|
|
2949
2950
|
accessor: (accessor, column) => {
|