@tanstack/table-core 8.0.0-alpha.57 → 8.0.0-alpha.58

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.
@@ -12,6 +12,7 @@ export declare type ExpandedRow = {
12
12
  getToggleExpandedProps: <TGetter extends Getter<ToggleExpandedProps>>(userProps?: TGetter) => undefined | PropGetterValue<ToggleExpandedProps, TGetter>;
13
13
  };
14
14
  export declare type ExpandedOptions<TGenerics extends TableGenerics> = {
15
+ manualExpanding?: boolean;
15
16
  onExpandedChange?: OnChangeFn<ExpandedState>;
16
17
  autoResetExpanded?: boolean;
17
18
  enableExpanded?: boolean;
@@ -49,10 +49,12 @@ export declare type FiltersOptions<TGenerics extends TableGenerics> = {
49
49
  filterFromLeafRows?: boolean;
50
50
  filterFns?: TGenerics['FilterFns'];
51
51
  enableFilters?: boolean;
52
+ manualColumnFiltering?: boolean;
52
53
  onColumnFiltersChange?: OnChangeFn<ColumnFiltersState>;
53
54
  autoResetColumnFilters?: boolean;
54
55
  enableColumnFilters?: boolean;
55
56
  getColumnFilteredRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
57
+ manualGlobalFiltering?: boolean;
56
58
  globalFilterFn?: FilterFnOption<TGenerics>;
57
59
  onGlobalFilterChange?: OnChangeFn<any>;
58
60
  autoResetGlobalFilter?: boolean;
@@ -51,6 +51,7 @@ export declare type ColumnDefaultOptions = {
51
51
  enableGrouping: boolean;
52
52
  };
53
53
  export declare type GroupingOptions<TGenerics extends TableGenerics> = {
54
+ manualGrouping?: boolean;
54
55
  aggregationFns?: TGenerics['AggregationFns'];
55
56
  onGroupingChange?: OnChangeFn<GroupingState>;
56
57
  autoResetGrouping?: boolean;
@@ -8,6 +8,7 @@ export declare type PaginationTableState = {
8
8
  pagination: PaginationState;
9
9
  };
10
10
  export declare type PaginationOptions<TGenerics extends TableGenerics> = {
11
+ manualPagination?: boolean;
11
12
  onPaginationChange?: OnChangeFn<PaginationState>;
12
13
  autoResetPageIndex?: boolean;
13
14
  getPaginationRowModel?: (instance: TableInstance<TGenerics>) => () => RowModel<TGenerics>;
@@ -40,6 +40,7 @@ export declare type SortingColumn<TGenerics extends TableGenerics> = {
40
40
  getToggleSortingProps: <TGetter extends Getter<ToggleSortingProps>>(userProps?: TGetter) => undefined | PropGetterValue<ToggleSortingProps, TGetter>;
41
41
  };
42
42
  export declare type SortingOptions<TGenerics extends TableGenerics> = {
43
+ manualSorting?: boolean;
43
44
  sortingFns?: TGenerics['SortingFns'];
44
45
  onSortingChange?: OnChangeFn<SortingState>;
45
46
  autoResetSorting?: boolean;
@@ -1289,7 +1289,7 @@
1289
1289
  instance._getExpandedRowModel = instance.options.getExpandedRowModel(instance);
1290
1290
  }
1291
1291
 
1292
- if (!instance._getExpandedRowModel) {
1292
+ if (instance.options.manualExpanding || !instance._getExpandedRowModel) {
1293
1293
  return instance.getPreExpandedRowModel();
1294
1294
  }
1295
1295
 
@@ -1780,7 +1780,7 @@
1780
1780
  instance._getColumnFilteredRowModel = instance.options.getColumnFilteredRowModel(instance);
1781
1781
  }
1782
1782
 
1783
- if (!instance._getColumnFilteredRowModel) {
1783
+ if (instance.options.manualColumnFiltering || !instance._getColumnFilteredRowModel) {
1784
1784
  return instance.getPreColumnFilteredRowModel();
1785
1785
  }
1786
1786
 
@@ -1794,7 +1794,7 @@
1794
1794
  instance._getGlobalFilteredRowModel = instance.options.getGlobalFilteredRowModel(instance);
1795
1795
  }
1796
1796
 
1797
- if (!instance._getGlobalFilteredRowModel) {
1797
+ if (instance.options.manualGlobalFiltering || !instance._getGlobalFilteredRowModel) {
1798
1798
  return instance.getPreGlobalFilteredRowModel();
1799
1799
  }
1800
1800
 
@@ -2070,7 +2070,7 @@
2070
2070
  instance._getGroupedRowModel = instance.options.getGroupedRowModel(instance);
2071
2071
  }
2072
2072
 
2073
- if (!instance._getGroupedRowModel) {
2073
+ if (instance.options.manualGrouping || !instance._getGroupedRowModel) {
2074
2074
  return instance.getPreGroupedRowModel();
2075
2075
  }
2076
2076
 
@@ -2349,7 +2349,7 @@
2349
2349
  instance._getPaginationRowModel = instance.options.getPaginationRowModel(instance);
2350
2350
  }
2351
2351
 
2352
- if (!instance._getPaginationRowModel) {
2352
+ if (instance.options.manualPagination || !instance._getPaginationRowModel) {
2353
2353
  return instance.getPrePaginationRowModel();
2354
2354
  }
2355
2355
 
@@ -3576,7 +3576,7 @@
3576
3576
  instance._getSortedRowModel = instance.options.getSortedRowModel(instance);
3577
3577
  }
3578
3578
 
3579
- if (!instance._getSortedRowModel) {
3579
+ if (instance.options.manualSorting || !instance._getSortedRowModel) {
3580
3580
  return instance.getPreSortedRowModel();
3581
3581
  }
3582
3582