@tanstack/svelte-table 8.0.0-alpha.68 → 8.0.0-alpha.71

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.
@@ -434,6 +434,16 @@ const defaultColumnSizing = {
434
434
  minSize: 20,
435
435
  maxSize: Number.MAX_SAFE_INTEGER
436
436
  };
437
+
438
+ const getDefaultColumnSizingInfoState = () => ({
439
+ startOffset: null,
440
+ startSize: null,
441
+ deltaOffset: null,
442
+ deltaPercentage: null,
443
+ isResizingColumn: false,
444
+ columnSizingStart: []
445
+ });
446
+
437
447
  const ColumnSizing = {
438
448
  getDefaultColumn: () => {
439
449
  return defaultColumnSizing;
@@ -441,14 +451,7 @@ const ColumnSizing = {
441
451
  getInitialState: state => {
442
452
  return {
443
453
  columnSizing: {},
444
- columnSizingInfo: {
445
- startOffset: null,
446
- startSize: null,
447
- deltaOffset: null,
448
- deltaPercentage: null,
449
- isResizingColumn: false,
450
- columnSizingStart: []
451
- },
454
+ columnSizingInfo: getDefaultColumnSizingInfoState(),
452
455
  ...state
453
456
  };
454
457
  },
@@ -618,42 +621,42 @@ const ColumnSizing = {
618
621
  return {
619
622
  setColumnSizing: updater => instance.options.onColumnSizingChange == null ? void 0 : instance.options.onColumnSizingChange(updater),
620
623
  setColumnSizingInfo: updater => instance.options.onColumnSizingInfoChange == null ? void 0 : instance.options.onColumnSizingInfoChange(updater),
621
- resetColumnSizing: () => {
624
+ resetColumnSizing: defaultState => {
622
625
  var _instance$initialStat;
623
626
 
624
- instance.setColumnSizing((_instance$initialStat = instance.initialState.columnSizing) != null ? _instance$initialStat : {});
627
+ instance.setColumnSizing(defaultState ? {} : (_instance$initialStat = instance.initialState.columnSizing) != null ? _instance$initialStat : {});
625
628
  },
626
- resetHeaderSizeInfo: () => {
629
+ resetHeaderSizeInfo: defaultState => {
627
630
  var _instance$initialStat2;
628
631
 
629
- instance.setColumnSizingInfo((_instance$initialStat2 = instance.initialState.columnSizingInfo) != null ? _instance$initialStat2 : {});
632
+ instance.setColumnSizingInfo(defaultState ? getDefaultColumnSizingInfoState() : (_instance$initialStat2 = instance.initialState.columnSizingInfo) != null ? _instance$initialStat2 : getDefaultColumnSizingInfoState());
630
633
  },
631
634
  getTotalSize: () => {
632
635
  var _instance$getHeaderGr, _instance$getHeaderGr2;
633
636
 
634
637
  return (_instance$getHeaderGr = (_instance$getHeaderGr2 = instance.getHeaderGroups()[0]) == null ? void 0 : _instance$getHeaderGr2.headers.reduce((sum, header) => {
635
- return sum + header.column.getSize();
638
+ return sum + header.getSize();
636
639
  }, 0)) != null ? _instance$getHeaderGr : 0;
637
640
  },
638
641
  getLeftTotalSize: () => {
639
642
  var _instance$getLeftHead, _instance$getLeftHead2;
640
643
 
641
644
  return (_instance$getLeftHead = (_instance$getLeftHead2 = instance.getLeftHeaderGroups()[0]) == null ? void 0 : _instance$getLeftHead2.headers.reduce((sum, header) => {
642
- return sum + header.column.getSize();
645
+ return sum + header.getSize();
643
646
  }, 0)) != null ? _instance$getLeftHead : 0;
644
647
  },
645
648
  getCenterTotalSize: () => {
646
649
  var _instance$getCenterHe, _instance$getCenterHe2;
647
650
 
648
651
  return (_instance$getCenterHe = (_instance$getCenterHe2 = instance.getCenterHeaderGroups()[0]) == null ? void 0 : _instance$getCenterHe2.headers.reduce((sum, header) => {
649
- return sum + header.column.getSize();
652
+ return sum + header.getSize();
650
653
  }, 0)) != null ? _instance$getCenterHe : 0;
651
654
  },
652
655
  getRightTotalSize: () => {
653
656
  var _instance$getRightHea, _instance$getRightHea2;
654
657
 
655
658
  return (_instance$getRightHea = (_instance$getRightHea2 = instance.getRightHeaderGroups()[0]) == null ? void 0 : _instance$getRightHea2.headers.reduce((sum, header) => {
656
- return sum + header.column.getSize();
659
+ return sum + header.getSize();
657
660
  }, 0)) != null ? _instance$getRightHea : 0;
658
661
  }
659
662
  };
@@ -707,10 +710,13 @@ const Expanding = {
707
710
  },
708
711
  createInstance: instance => {
709
712
  let registered = false;
713
+ let queued = false;
710
714
  return {
711
715
  _autoResetExpanded: () => {
712
716
  if (!registered) {
713
- registered = true;
717
+ instance.queue(() => {
718
+ registered = true;
719
+ });
714
720
  return;
715
721
  }
716
722
 
@@ -719,7 +725,12 @@ const Expanding = {
719
725
  }
720
726
 
721
727
  if (instance.options.autoResetAll === true || instance.options.autoResetExpanded) {
722
- instance.resetExpanded();
728
+ if (queued) return;
729
+ queued = true;
730
+ instance.queue(() => {
731
+ instance.resetExpanded();
732
+ queued = false;
733
+ });
723
734
  }
724
735
  },
725
736
  setExpanded: updater => instance.options.onExpandedChange == null ? void 0 : instance.options.onExpandedChange(updater),
@@ -730,10 +741,10 @@ const Expanding = {
730
741
  instance.setExpanded({});
731
742
  }
732
743
  },
733
- resetExpanded: () => {
744
+ resetExpanded: defaultState => {
734
745
  var _instance$initialStat, _instance$initialStat2;
735
746
 
736
- instance.setExpanded((_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.expanded) != null ? _instance$initialStat : {});
747
+ instance.setExpanded(defaultState ? {} : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.expanded) != null ? _instance$initialStat : {});
737
748
  },
738
749
  getCanSomeRowsExpand: () => {
739
750
  return instance.getRowModel().flatRows.some(row => row.getCanExpand());
@@ -1072,7 +1083,7 @@ const Filters = {
1072
1083
  _getFacetedMinMaxValues: instance.options.getFacetedMinMaxValues && instance.options.getFacetedMinMaxValues(instance, column.id),
1073
1084
  getFacetedMinMaxValues: () => {
1074
1085
  if (!column._getFacetedMinMaxValues) {
1075
- return [NaN, NaN];
1086
+ return undefined;
1076
1087
  }
1077
1088
 
1078
1089
  return column._getFacetedMinMaxValues();
@@ -1127,13 +1138,13 @@ const Filters = {
1127
1138
  setGlobalFilter: updater => {
1128
1139
  instance.options.onGlobalFilterChange == null ? void 0 : instance.options.onGlobalFilterChange(updater);
1129
1140
  },
1130
- resetGlobalFilter: () => {
1131
- instance.setGlobalFilter(instance.initialState.globalFilter);
1141
+ resetGlobalFilter: defaultState => {
1142
+ instance.setGlobalFilter(defaultState ? undefined : instance.initialState.globalFilter);
1132
1143
  },
1133
- resetColumnFilters: () => {
1144
+ resetColumnFilters: defaultState => {
1134
1145
  var _instance$initialStat, _instance$initialStat2;
1135
1146
 
1136
- instance.setColumnFilters((_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.columnFilters) != null ? _instance$initialStat : []);
1147
+ instance.setColumnFilters(defaultState ? [] : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.columnFilters) != null ? _instance$initialStat : []);
1137
1148
  },
1138
1149
  getPreFilteredRowModel: () => instance.getCoreRowModel(),
1139
1150
  _getFilteredRowModel: instance.options.getFilteredRowModel && instance.options.getFilteredRowModel(instance),
@@ -1163,7 +1174,7 @@ const Filters = {
1163
1174
  _getGlobalFacetedMinMaxValues: instance.options.getFacetedMinMaxValues && instance.options.getFacetedMinMaxValues(instance, '__global__'),
1164
1175
  getGlobalFacetedMinMaxValues: () => {
1165
1176
  if (!instance._getGlobalFacetedMinMaxValues) {
1166
- return [NaN, NaN];
1177
+ return;
1167
1178
  }
1168
1179
 
1169
1180
  return instance._getGlobalFacetedMinMaxValues();
@@ -1362,10 +1373,10 @@ const Grouping = {
1362
1373
  createInstance: instance => {
1363
1374
  return {
1364
1375
  setGrouping: updater => instance.options.onGroupingChange == null ? void 0 : instance.options.onGroupingChange(updater),
1365
- resetGrouping: () => {
1376
+ resetGrouping: defaultState => {
1366
1377
  var _instance$initialStat, _instance$initialStat2;
1367
1378
 
1368
- instance.setGrouping((_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.grouping) != null ? _instance$initialStat : []);
1379
+ instance.setGrouping(defaultState ? [] : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.grouping) != null ? _instance$initialStat : []);
1369
1380
  },
1370
1381
  getPreGroupedRowModel: () => instance.getSortedRowModel(),
1371
1382
  getGroupedRowModel: () => {
@@ -1442,10 +1453,10 @@ const Ordering = {
1442
1453
  createInstance: instance => {
1443
1454
  return {
1444
1455
  setColumnOrder: updater => instance.options.onColumnOrderChange == null ? void 0 : instance.options.onColumnOrderChange(updater),
1445
- resetColumnOrder: () => {
1456
+ resetColumnOrder: defaultState => {
1446
1457
  var _instance$initialStat;
1447
1458
 
1448
- instance.setColumnOrder((_instance$initialStat = instance.initialState.columnOrder) != null ? _instance$initialStat : []);
1459
+ instance.setColumnOrder(defaultState ? [] : (_instance$initialStat = instance.initialState.columnOrder) != null ? _instance$initialStat : []);
1449
1460
  },
1450
1461
  _getOrderColumnsFn: memo(() => [instance.getState().columnOrder, instance.getState().grouping, instance.options.groupedColumnMode], (columnOrder, grouping, groupedColumnMode) => columns => {
1451
1462
  // Sort grouped columns to the start of the column list
@@ -1483,13 +1494,18 @@ const Ordering = {
1483
1494
  };
1484
1495
 
1485
1496
  //
1497
+ const defaultPageIndex = 0;
1498
+ const defaultPageSize = 10;
1499
+
1500
+ const getDefaultPaginationState = () => ({
1501
+ pageIndex: defaultPageIndex,
1502
+ pageSize: defaultPageSize
1503
+ });
1504
+
1486
1505
  const Pagination = {
1487
1506
  getInitialState: state => {
1488
1507
  return { ...state,
1489
- pagination: {
1490
- pageCount: -1,
1491
- pageIndex: 0,
1492
- pageSize: 10,
1508
+ pagination: { ...getDefaultPaginationState(),
1493
1509
  ...(state == null ? void 0 : state.pagination)
1494
1510
  }
1495
1511
  };
@@ -1502,10 +1518,13 @@ const Pagination = {
1502
1518
  },
1503
1519
  createInstance: instance => {
1504
1520
  let registered = false;
1521
+ let queued = false;
1505
1522
  return {
1506
1523
  _autoResetPageIndex: () => {
1507
1524
  if (!registered) {
1508
- registered = true;
1525
+ instance.queue(() => {
1526
+ registered = true;
1527
+ });
1509
1528
  return;
1510
1529
  }
1511
1530
 
@@ -1514,7 +1533,12 @@ const Pagination = {
1514
1533
  }
1515
1534
 
1516
1535
  if (instance.options.autoResetAll === true || instance.options.autoResetPageIndex) {
1517
- instance.resetPageIndex();
1536
+ if (queued) return;
1537
+ queued = true;
1538
+ instance.queue(() => {
1539
+ instance.resetPageIndex();
1540
+ queued = false;
1541
+ });
1518
1542
  }
1519
1543
  },
1520
1544
  setPagination: updater => {
@@ -1525,14 +1549,10 @@ const Pagination = {
1525
1549
 
1526
1550
  return instance.options.onPaginationChange == null ? void 0 : instance.options.onPaginationChange(safeUpdater);
1527
1551
  },
1528
- resetPagination: () => {
1552
+ resetPagination: defaultState => {
1529
1553
  var _instance$initialStat;
1530
1554
 
1531
- instance.setPagination((_instance$initialStat = instance.initialState.pagination) != null ? _instance$initialStat : {
1532
- pageIndex: 0,
1533
- pageSize: 10,
1534
- pageCount: -1
1535
- });
1555
+ instance.setPagination(defaultState ? getDefaultPaginationState() : (_instance$initialStat = instance.initialState.pagination) != null ? _instance$initialStat : getDefaultPaginationState());
1536
1556
  },
1537
1557
  setPageIndex: updater => {
1538
1558
  instance.setPagination(old => {
@@ -1544,13 +1564,15 @@ const Pagination = {
1544
1564
  };
1545
1565
  });
1546
1566
  },
1547
- resetPageIndex: () => {
1548
- instance.setPageIndex(0);
1549
- },
1550
- resetPageSize: () => {
1567
+ resetPageIndex: defaultState => {
1551
1568
  var _instance$initialStat2, _instance$initialStat3, _instance$initialStat4;
1552
1569
 
1553
- instance.setPageSize((_instance$initialStat2 = (_instance$initialStat3 = instance.initialState) == null ? void 0 : (_instance$initialStat4 = _instance$initialStat3.pagination) == null ? void 0 : _instance$initialStat4.pageSize) != null ? _instance$initialStat2 : 10);
1570
+ instance.setPageIndex(defaultState ? defaultPageIndex : (_instance$initialStat2 = (_instance$initialStat3 = instance.initialState) == null ? void 0 : (_instance$initialStat4 = _instance$initialStat3.pagination) == null ? void 0 : _instance$initialStat4.pageIndex) != null ? _instance$initialStat2 : defaultPageIndex);
1571
+ },
1572
+ resetPageSize: defaultState => {
1573
+ var _instance$initialStat5, _instance$initialStat6, _instance$initialStat7;
1574
+
1575
+ instance.setPageSize(defaultState ? defaultPageSize : (_instance$initialStat5 = (_instance$initialStat6 = instance.initialState) == null ? void 0 : (_instance$initialStat7 = _instance$initialStat6.pagination) == null ? void 0 : _instance$initialStat7.pageSize) != null ? _instance$initialStat5 : defaultPageSize);
1554
1576
  },
1555
1577
  setPageSize: updater => {
1556
1578
  instance.setPagination(old => {
@@ -1564,7 +1586,9 @@ const Pagination = {
1564
1586
  });
1565
1587
  },
1566
1588
  setPageCount: updater => instance.setPagination(old => {
1567
- let newPageCount = functionalUpdate(updater, old.pageCount);
1589
+ var _old$pageCount;
1590
+
1591
+ let newPageCount = functionalUpdate(updater, (_old$pageCount = old.pageCount) != null ? _old$pageCount : -1);
1568
1592
 
1569
1593
  if (typeof newPageCount === 'number') {
1570
1594
  newPageCount = Math.max(-1, newPageCount);
@@ -1632,7 +1656,7 @@ const Pagination = {
1632
1656
  pageCount
1633
1657
  } = instance.getState().pagination;
1634
1658
 
1635
- if (pageCount > 0) {
1659
+ if (typeof pageCount !== 'undefined') {
1636
1660
  return pageCount;
1637
1661
  }
1638
1662
 
@@ -1643,13 +1667,15 @@ const Pagination = {
1643
1667
  };
1644
1668
 
1645
1669
  //
1670
+ const getDefaultPinningState = () => ({
1671
+ left: [],
1672
+ right: []
1673
+ });
1674
+
1646
1675
  const Pinning = {
1647
1676
  getInitialState: state => {
1648
1677
  return {
1649
- columnPinning: {
1650
- left: [],
1651
- right: []
1652
- },
1678
+ columnPinning: getDefaultPinningState(),
1653
1679
  ...state
1654
1680
  };
1655
1681
  },
@@ -1759,10 +1785,10 @@ const Pinning = {
1759
1785
  createInstance: instance => {
1760
1786
  return {
1761
1787
  setColumnPinning: updater => instance.options.onColumnPinningChange == null ? void 0 : instance.options.onColumnPinningChange(updater),
1762
- resetColumnPinning: () => {
1788
+ resetColumnPinning: defaultState => {
1763
1789
  var _instance$initialStat, _instance$initialStat2;
1764
1790
 
1765
- return instance.setColumnPinning((_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.columnPinning) != null ? _instance$initialStat : {});
1791
+ return instance.setColumnPinning(defaultState ? getDefaultPinningState() : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.columnPinning) != null ? _instance$initialStat : getDefaultPinningState());
1766
1792
  },
1767
1793
  getIsSomeColumnsPinned: () => {
1768
1794
  const {
@@ -1828,10 +1854,10 @@ const RowSelection = {
1828
1854
  createInstance: instance => {
1829
1855
  return {
1830
1856
  setRowSelection: updater => instance.options.onRowSelectionChange == null ? void 0 : instance.options.onRowSelectionChange(updater),
1831
- resetRowSelection: () => {
1857
+ resetRowSelection: defaultState => {
1832
1858
  var _instance$initialStat;
1833
1859
 
1834
- return instance.setRowSelection((_instance$initialStat = instance.initialState.rowSelection) != null ? _instance$initialStat : {});
1860
+ return instance.setRowSelection(defaultState ? {} : (_instance$initialStat = instance.initialState.rowSelection) != null ? _instance$initialStat : {});
1835
1861
  },
1836
1862
  toggleAllRowsSelected: value => {
1837
1863
  instance.setRowSelection(old => {
@@ -2458,14 +2484,9 @@ const Sorting = {
2458
2484
 
2459
2485
  return (_instance$getState$so2 = (_instance$getState$so3 = instance.getState().sorting) == null ? void 0 : _instance$getState$so3.findIndex(d => d.id === column.id)) != null ? _instance$getState$so2 : -1;
2460
2486
  },
2461
- resetSorting: columnId => {
2462
- if (columnId) {
2463
- instance.setSorting(old => old != null && old.length ? old.filter(d => d.id !== columnId) : []);
2464
- } else {
2465
- var _instance$initialStat, _instance$initialStat2;
2466
-
2467
- instance.setSorting((_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.sorting) != null ? _instance$initialStat : []);
2468
- }
2487
+ clearSorting: () => {
2488
+ //clear sorting for just 1 column
2489
+ instance.setSorting(old => old != null && old.length ? old.filter(d => d.id !== column.id) : []);
2469
2490
  },
2470
2491
  getToggleSortingHandler: () => {
2471
2492
  const canSort = column.getCanSort();
@@ -2480,6 +2501,11 @@ const Sorting = {
2480
2501
  createInstance: instance => {
2481
2502
  return {
2482
2503
  setSorting: updater => instance.options.onSortingChange == null ? void 0 : instance.options.onSortingChange(updater),
2504
+ resetSorting: defaultState => {
2505
+ var _instance$initialStat, _instance$initialStat2;
2506
+
2507
+ instance.setSorting(defaultState ? [] : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.sorting) != null ? _instance$initialStat : []);
2508
+ },
2483
2509
  getPreSortedRowModel: () => instance.getFilteredRowModel(),
2484
2510
  getSortedRowModel: () => {
2485
2511
  if (!instance._getSortedRowModel && instance.options.getSortedRowModel) {
@@ -2583,6 +2609,11 @@ const Visibility = {
2583
2609
  getRightVisibleLeafColumns: makeVisibleColumnsMethod('getRightVisibleLeafColumns', () => instance.getRightLeafColumns()),
2584
2610
  getCenterVisibleLeafColumns: makeVisibleColumnsMethod('getCenterVisibleLeafColumns', () => instance.getCenterLeafColumns()),
2585
2611
  setColumnVisibility: updater => instance.options.onColumnVisibilityChange == null ? void 0 : instance.options.onColumnVisibilityChange(updater),
2612
+ resetColumnVisibility: defaultState => {
2613
+ var _instance$initialStat;
2614
+
2615
+ instance.setColumnVisibility(defaultState ? {} : (_instance$initialStat = instance.initialState.columnVisibility) != null ? _instance$initialStat : {});
2616
+ },
2586
2617
  toggleAllColumnsVisible: value => {
2587
2618
  var _value;
2588
2619
 
@@ -3348,9 +3379,7 @@ function getCoreRowModel() {
3348
3379
  return (_instance$options$deb = instance.options.debugAll) != null ? _instance$options$deb : instance.options.debugTable;
3349
3380
  },
3350
3381
  onChange: () => {
3351
- instance.queue(() => {
3352
- instance._autoResetPageIndex();
3353
- });
3382
+ instance._autoResetPageIndex();
3354
3383
  }
3355
3384
  });
3356
3385
  }
@@ -3556,9 +3585,7 @@ function getFilteredRowModel() {
3556
3585
  return (_instance$options$deb = instance.options.debugAll) != null ? _instance$options$deb : instance.options.debugTable;
3557
3586
  },
3558
3587
  onChange: () => {
3559
- instance.queue(() => {
3560
- instance._autoResetPageIndex();
3561
- });
3588
+ instance._autoResetPageIndex();
3562
3589
  }
3563
3590
  });
3564
3591
  }
@@ -3626,14 +3653,20 @@ function getFacetedUniqueValues() {
3626
3653
 
3627
3654
  function getFacetedMinMaxValues() {
3628
3655
  return (instance, columnId) => memo(() => [instance.getColumn(columnId).getFacetedRowModel()], facetedRowModel => {
3629
- var _facetedRowModel$flat, _facetedRowModel$flat2, _facetedRowModel$flat3, _facetedRowModel$flat4;
3656
+ var _facetedRowModel$flat;
3657
+
3658
+ const firstValue = (_facetedRowModel$flat = facetedRowModel.flatRows[0]) == null ? void 0 : _facetedRowModel$flat.getValue(columnId);
3630
3659
 
3631
- let facetedMinMaxValues = [(_facetedRowModel$flat = (_facetedRowModel$flat2 = facetedRowModel.flatRows[0]) == null ? void 0 : _facetedRowModel$flat2.getValue(columnId)) != null ? _facetedRowModel$flat : null, (_facetedRowModel$flat3 = (_facetedRowModel$flat4 = facetedRowModel.flatRows[0]) == null ? void 0 : _facetedRowModel$flat4.getValue(columnId)) != null ? _facetedRowModel$flat3 : null];
3660
+ if (typeof firstValue === 'undefined') {
3661
+ return undefined;
3662
+ }
3663
+
3664
+ let facetedMinMaxValues = [firstValue, firstValue];
3632
3665
 
3633
3666
  for (let i = 0; i < facetedRowModel.flatRows.length; i++) {
3634
- var _facetedRowModel$flat5;
3667
+ var _facetedRowModel$flat2;
3635
3668
 
3636
- const value = (_facetedRowModel$flat5 = facetedRowModel.flatRows[i]) == null ? void 0 : _facetedRowModel$flat5.getValue(columnId);
3669
+ const value = (_facetedRowModel$flat2 = facetedRowModel.flatRows[i]) == null ? void 0 : _facetedRowModel$flat2.getValue(columnId);
3637
3670
 
3638
3671
  if (value < facetedMinMaxValues[0]) {
3639
3672
  facetedMinMaxValues[0] = value;
@@ -3741,9 +3774,7 @@ function getSortedRowModel() {
3741
3774
  return (_instance$options$deb = instance.options.debugAll) != null ? _instance$options$deb : instance.options.debugTable;
3742
3775
  },
3743
3776
  onChange: () => {
3744
- instance.queue(() => {
3745
- instance._autoResetPageIndex();
3746
- });
3777
+ instance._autoResetPageIndex();
3747
3778
  }
3748
3779
  });
3749
3780
  }