@tanstack/react-table 8.7.2 → 8.7.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.
|
@@ -1066,8 +1066,9 @@
|
|
|
1066
1066
|
},
|
|
1067
1067
|
getFilterFn: () => {
|
|
1068
1068
|
var _table$options$filter;
|
|
1069
|
-
return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === 'auto' ? column.getAutoFilterFn()
|
|
1070
|
-
|
|
1069
|
+
return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === 'auto' ? column.getAutoFilterFn()
|
|
1070
|
+
// @ts-ignore
|
|
1071
|
+
: (_table$options$filter = table.options.filterFns?.[column.columnDef.filterFn]) != null ? _table$options$filter : filterFns[column.columnDef.filterFn];
|
|
1071
1072
|
},
|
|
1072
1073
|
getCanFilter: () => {
|
|
1073
1074
|
var _column$columnDef$ena, _table$options$enable, _table$options$enable2;
|
|
@@ -1155,8 +1156,9 @@
|
|
|
1155
1156
|
const {
|
|
1156
1157
|
globalFilterFn: globalFilterFn
|
|
1157
1158
|
} = table.options;
|
|
1158
|
-
return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === 'auto' ? table.getGlobalAutoFilterFn()
|
|
1159
|
-
|
|
1159
|
+
return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === 'auto' ? table.getGlobalAutoFilterFn()
|
|
1160
|
+
// @ts-ignore
|
|
1161
|
+
: (_table$options$filter2 = table.options.filterFns?.[globalFilterFn]) != null ? _table$options$filter2 : filterFns[globalFilterFn];
|
|
1160
1162
|
},
|
|
1161
1163
|
setColumnFilters: updater => {
|
|
1162
1164
|
const leafColumns = table.getAllLeafColumns();
|