@tanstack/vue-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.
|
@@ -1046,8 +1046,9 @@
|
|
|
1046
1046
|
},
|
|
1047
1047
|
getFilterFn: () => {
|
|
1048
1048
|
var _table$options$filter;
|
|
1049
|
-
return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === 'auto' ? column.getAutoFilterFn()
|
|
1050
|
-
|
|
1049
|
+
return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === 'auto' ? column.getAutoFilterFn()
|
|
1050
|
+
// @ts-ignore
|
|
1051
|
+
: (_table$options$filter = table.options.filterFns?.[column.columnDef.filterFn]) != null ? _table$options$filter : filterFns[column.columnDef.filterFn];
|
|
1051
1052
|
},
|
|
1052
1053
|
getCanFilter: () => {
|
|
1053
1054
|
var _column$columnDef$ena, _table$options$enable, _table$options$enable2;
|
|
@@ -1135,8 +1136,9 @@
|
|
|
1135
1136
|
const {
|
|
1136
1137
|
globalFilterFn: globalFilterFn
|
|
1137
1138
|
} = table.options;
|
|
1138
|
-
return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === 'auto' ? table.getGlobalAutoFilterFn()
|
|
1139
|
-
|
|
1139
|
+
return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === 'auto' ? table.getGlobalAutoFilterFn()
|
|
1140
|
+
// @ts-ignore
|
|
1141
|
+
: (_table$options$filter2 = table.options.filterFns?.[globalFilterFn]) != null ? _table$options$filter2 : filterFns[globalFilterFn];
|
|
1140
1142
|
},
|
|
1141
1143
|
setColumnFilters: updater => {
|
|
1142
1144
|
const leafColumns = table.getAllLeafColumns();
|