@tanstack/svelte-table 8.7.3 → 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.
@@ -616,11 +616,11 @@
616
616
  const startSize = header.getSize();
617
617
  const columnSizingStart = header ? header.getLeafHeaders().map(d => [d.column.id, d.column.getSize()]) : [[column.id, column.getSize()]];
618
618
  const clientX = isTouchStartEvent(e) ? Math.round(e.touches[0].clientX) : e.clientX;
619
+ const newColumnSizing = {};
619
620
  const updateOffset = (eventType, clientXPos) => {
620
621
  if (typeof clientXPos !== 'number') {
621
622
  return;
622
623
  }
623
- let newColumnSizing = {};
624
624
  table.setColumnSizingInfo(old => {
625
625
  var _old$startOffset, _old$startSize;
626
626
  const deltaOffset = clientXPos - ((_old$startOffset = old?.startOffset) != null ? _old$startOffset : 0);
@@ -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() : // @ts-ignore
1050
- (_table$options$filter = table.options.filterFns?.[column.columnDef.filterFn]) != null ? _table$options$filter : filterFns[column.columnDef.filterFn];
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() : // @ts-ignore
1139
- (_table$options$filter2 = table.options.filterFns?.[globalFilterFn]) != null ? _table$options$filter2 : filterFns[globalFilterFn];
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();