@tanstack/react-table 8.0.0-alpha.1 → 8.0.0-alpha.2

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.
@@ -675,12 +675,12 @@
675
675
  };
676
676
 
677
677
  //
678
- function getInitialState$6() {
678
+ function getInitialState$7() {
679
679
  return {
680
680
  columnVisibility: {}
681
681
  };
682
682
  }
683
- function getDefaultOptions$6(instance) {
683
+ function getDefaultOptions$7(instance) {
684
684
  return {
685
685
  onColumnVisibilityChange: makeStateUpdater('columnVisibility', instance)
686
686
  };
@@ -690,7 +690,7 @@
690
690
  defaultIsVisible: true
691
691
  };
692
692
  }
693
- function createColumn$4(column, instance) {
693
+ function createColumn$5(column, instance) {
694
694
  return {
695
695
  getCanHide: function getCanHide() {
696
696
  return instance.getColumnCanHide(column.id);
@@ -714,7 +714,7 @@
714
714
  }
715
715
  };
716
716
  }
717
- function getInstance$7(instance) {
717
+ function getInstance$8(instance) {
718
718
  return {
719
719
  getVisibleFlatColumns: memo(function () {
720
720
  return [instance.getAllFlatColumns(), instance.getAllFlatColumns().filter(function (d) {
@@ -929,19 +929,19 @@
929
929
  aggregationType: 'auto'
930
930
  };
931
931
  }
932
- function getInitialState$5() {
932
+ function getInitialState$6() {
933
933
  return {
934
934
  grouping: []
935
935
  };
936
936
  }
937
- function getDefaultOptions$5(instance) {
937
+ function getDefaultOptions$6(instance) {
938
938
  return {
939
939
  onGroupingChange: makeStateUpdater('grouping', instance),
940
940
  autoResetGrouping: true,
941
941
  groupedColumnMode: 'reorder'
942
942
  };
943
943
  }
944
- function createColumn$3(column, instance) {
944
+ function createColumn$4(column, instance) {
945
945
  return {
946
946
  aggregationType: column.aggregationType,
947
947
  getCanGroup: function getCanGroup() {
@@ -961,7 +961,7 @@
961
961
  }
962
962
  };
963
963
  }
964
- function getInstance$6(instance) {
964
+ function getInstance$7(instance) {
965
965
  return {
966
966
  getColumnAutoAggregationFn: function getColumnAutoAggregationFn(columnId) {
967
967
  var firstRow = instance.getCoreFlatRows()[0];
@@ -1126,17 +1126,17 @@
1126
1126
  }
1127
1127
 
1128
1128
  //
1129
- function getInitialState$4() {
1129
+ function getInitialState$5() {
1130
1130
  return {
1131
1131
  columnOrder: []
1132
1132
  };
1133
1133
  }
1134
- function getDefaultOptions$4(instance) {
1134
+ function getDefaultOptions$5(instance) {
1135
1135
  return {
1136
1136
  onColumnOrderChange: makeStateUpdater('columnOrder', instance)
1137
1137
  };
1138
1138
  }
1139
- function getInstance$5(instance) {
1139
+ function getInstance$6(instance) {
1140
1140
  return {
1141
1141
  setColumnOrder: function setColumnOrder(updater) {
1142
1142
  return instance.options.onColumnOrderChange == null ? void 0 : instance.options.onColumnOrderChange(updater, functionalUpdate(updater, instance.getState().columnOrder));
@@ -1188,7 +1188,7 @@
1188
1188
  }
1189
1189
 
1190
1190
  //
1191
- function getInitialState$3() {
1191
+ function getInitialState$4() {
1192
1192
  return {
1193
1193
  columnPinning: {
1194
1194
  left: [],
@@ -1196,12 +1196,12 @@
1196
1196
  }
1197
1197
  };
1198
1198
  }
1199
- function getDefaultOptions$3(instance) {
1199
+ function getDefaultOptions$4(instance) {
1200
1200
  return {
1201
1201
  onColumnPinningChange: makeStateUpdater('columnPinning', instance)
1202
1202
  };
1203
1203
  }
1204
- function createColumn$2(column, instance) {
1204
+ function createColumn$3(column, instance) {
1205
1205
  return {
1206
1206
  getCanPin: function getCanPin() {
1207
1207
  return instance.getColumnCanPin(column.id);
@@ -1217,7 +1217,7 @@
1217
1217
  }
1218
1218
  };
1219
1219
  }
1220
- function getInstance$4(instance) {
1220
+ function getInstance$5(instance) {
1221
1221
  return {
1222
1222
  setColumnPinning: function setColumnPinning(updater) {
1223
1223
  return instance.options.onColumnPinningChange == null ? void 0 : instance.options.onColumnPinningChange(updater, functionalUpdate(updater, instance.getState().columnPinning));
@@ -1329,6 +1329,312 @@
1329
1329
  };
1330
1330
  }
1331
1331
 
1332
+ //
1333
+ var defaultColumnSizing = {
1334
+ width: 150,
1335
+ minWidth: 20,
1336
+ maxWidth: Number.MAX_SAFE_INTEGER
1337
+ };
1338
+ function getInitialState$3() {
1339
+ return {
1340
+ columnSizing: {},
1341
+ columnSizingInfo: {
1342
+ startOffset: null,
1343
+ startSize: null,
1344
+ deltaOffset: null,
1345
+ deltaPercentage: null,
1346
+ isResizingColumn: false,
1347
+ columnSizingStart: []
1348
+ }
1349
+ };
1350
+ }
1351
+ function getDefaultOptions$3(instance) {
1352
+ return {
1353
+ columnResizeMode: 'onEnd',
1354
+ onColumnSizingChange: makeStateUpdater('columnSizing', instance),
1355
+ onColumnSizingInfoChange: makeStateUpdater('columnSizingInfo', instance)
1356
+ };
1357
+ }
1358
+ function getInstance$4(instance) {
1359
+ return {
1360
+ setColumnSizing: function setColumnSizing(updater) {
1361
+ return instance.options.onColumnSizingChange == null ? void 0 : instance.options.onColumnSizingChange(updater, functionalUpdate(updater, instance.getState().columnSizing));
1362
+ },
1363
+ setColumnSizingInfo: function setColumnSizingInfo(updater) {
1364
+ return instance.options.onColumnSizingInfoChange == null ? void 0 : instance.options.onColumnSizingInfoChange(updater, functionalUpdate(updater, instance.getState().columnSizingInfo));
1365
+ },
1366
+ resetColumnSizing: function resetColumnSizing() {
1367
+ var _instance$initialStat;
1368
+
1369
+ instance.setColumnSizing((_instance$initialStat = instance.initialState.columnSizing) != null ? _instance$initialStat : {});
1370
+ },
1371
+ resetHeaderSizeInfo: function resetHeaderSizeInfo() {
1372
+ var _instance$initialStat2;
1373
+
1374
+ instance.setColumnSizingInfo((_instance$initialStat2 = instance.initialState.columnSizingInfo) != null ? _instance$initialStat2 : {});
1375
+ },
1376
+ resetColumnSize: function resetColumnSize(columnId) {
1377
+ instance.setColumnSizing(function (_ref) {
1378
+ _ref[columnId];
1379
+ var rest = _objectWithoutPropertiesLoose(_ref, [columnId].map(_toPropertyKey));
1380
+
1381
+ return rest;
1382
+ });
1383
+ },
1384
+ resetHeaderSize: function resetHeaderSize(headerId) {
1385
+ var header = instance.getHeader(headerId);
1386
+
1387
+ if (!header) {
1388
+ return;
1389
+ }
1390
+
1391
+ return instance.resetColumnSize(header.column.id);
1392
+ },
1393
+ getHeaderCanResize: function getHeaderCanResize(headerId) {
1394
+ var header = instance.getHeader(headerId);
1395
+
1396
+ if (!header) {
1397
+ throw new Error();
1398
+ }
1399
+
1400
+ return instance.getColumnCanResize(header.column.id);
1401
+ },
1402
+ getColumnCanResize: function getColumnCanResize(columnId) {
1403
+ var _ref2, _ref3, _column$enableResizin;
1404
+
1405
+ var column = instance.getColumn(columnId);
1406
+
1407
+ if (!column) {
1408
+ throw new Error();
1409
+ }
1410
+
1411
+ return (_ref2 = (_ref3 = (_column$enableResizin = column.enableResizing) != null ? _column$enableResizin : instance.options.enableColumnResizing) != null ? _ref3 : column.defaultCanResize) != null ? _ref2 : true;
1412
+ },
1413
+ getColumnIsResizing: function getColumnIsResizing(columnId) {
1414
+ var column = instance.getColumn(columnId);
1415
+
1416
+ if (!column) {
1417
+ throw new Error();
1418
+ }
1419
+
1420
+ return instance.getState().columnSizingInfo.isResizingColumn === columnId;
1421
+ },
1422
+ getHeaderIsResizing: function getHeaderIsResizing(headerId) {
1423
+ var header = instance.getHeader(headerId);
1424
+
1425
+ if (!header) {
1426
+ throw new Error();
1427
+ }
1428
+
1429
+ return instance.getColumnIsResizing(header.column.id);
1430
+ },
1431
+ getHeaderResizerProps: function getHeaderResizerProps(headerId, userProps) {
1432
+ var header = instance.getHeader(headerId);
1433
+
1434
+ if (!header) {
1435
+ return;
1436
+ }
1437
+
1438
+ var column = instance.getColumn(header.column.id);
1439
+
1440
+ if (!column) {
1441
+ return;
1442
+ }
1443
+
1444
+ var canResize = column.getCanResize();
1445
+
1446
+ var onResizeStart = function onResizeStart(e) {
1447
+ if (isTouchStartEvent(e)) {
1448
+ // lets not respond to multiple touches (e.g. 2 or 3 fingers)
1449
+ if (e.touches && e.touches.length > 1) {
1450
+ return;
1451
+ }
1452
+ }
1453
+
1454
+ var columnSizingStart = header.getLeafHeaders().map(function (d) {
1455
+ return [d.column.id, d.getWidth()];
1456
+ });
1457
+ var clientX = isTouchStartEvent(e) ? Math.round(e.touches[0].clientX) : e.clientX;
1458
+
1459
+ var updateOffset = function updateOffset(eventType, clientXPos) {
1460
+ if (typeof clientXPos !== 'number') {
1461
+ return;
1462
+ }
1463
+
1464
+ var newColumnSizing = {};
1465
+ instance.setColumnSizingInfo(function (old) {
1466
+ var _old$startOffset, _old$startSize;
1467
+
1468
+ var deltaOffset = clientXPos - ((_old$startOffset = old == null ? void 0 : old.startOffset) != null ? _old$startOffset : 0);
1469
+ var deltaPercentage = Math.max(deltaOffset / ((_old$startSize = old == null ? void 0 : old.startSize) != null ? _old$startSize : 0), -0.999999);
1470
+ old.columnSizingStart.forEach(function (_ref4) {
1471
+ var columnId = _ref4[0],
1472
+ headerWidth = _ref4[1];
1473
+ newColumnSizing[columnId] = Math.max(headerWidth + headerWidth * deltaPercentage, 0);
1474
+ });
1475
+ return _extends({}, old, {
1476
+ deltaOffset: deltaOffset,
1477
+ deltaPercentage: deltaPercentage
1478
+ });
1479
+ });
1480
+
1481
+ if (instance.options.columnResizeMode === 'onChange' || eventType === 'end') {
1482
+ instance.setColumnSizing(function (old) {
1483
+ return _extends({}, old, newColumnSizing);
1484
+ });
1485
+ }
1486
+ };
1487
+
1488
+ var onMove = function onMove(clientXPos) {
1489
+ return updateOffset('move', clientXPos);
1490
+ };
1491
+
1492
+ var onEnd = function onEnd(clientXPos) {
1493
+ updateOffset('end', clientXPos);
1494
+ instance.setColumnSizingInfo(function (old) {
1495
+ return _extends({}, old, {
1496
+ isResizingColumn: false,
1497
+ startOffset: null,
1498
+ startSize: null,
1499
+ deltaOffset: null,
1500
+ deltaPercentage: null,
1501
+ columnSizingStart: []
1502
+ });
1503
+ });
1504
+ };
1505
+
1506
+ var mouseEvents = {
1507
+ moveHandler: function moveHandler(e) {
1508
+ return onMove(e.clientX);
1509
+ },
1510
+ upHandler: function upHandler(e) {
1511
+ document.removeEventListener('mousemove', mouseEvents.moveHandler);
1512
+ document.removeEventListener('mouseup', mouseEvents.upHandler);
1513
+ onEnd(e.clientX);
1514
+ }
1515
+ };
1516
+ var touchEvents = {
1517
+ moveHandler: function moveHandler(e) {
1518
+ if (e.cancelable) {
1519
+ e.preventDefault();
1520
+ e.stopPropagation();
1521
+ }
1522
+
1523
+ onMove(e.touches[0].clientX);
1524
+ return false;
1525
+ },
1526
+ upHandler: function upHandler(e) {
1527
+ document.removeEventListener('touchmove', touchEvents.moveHandler);
1528
+ document.removeEventListener('touchend', touchEvents.upHandler);
1529
+
1530
+ if (e.cancelable) {
1531
+ e.preventDefault();
1532
+ e.stopPropagation();
1533
+ }
1534
+
1535
+ onEnd(e.touches[0].clientX);
1536
+ }
1537
+ };
1538
+ var passiveIfSupported = passiveEventSupported() ? {
1539
+ passive: false
1540
+ } : false;
1541
+
1542
+ if (isTouchStartEvent(e)) {
1543
+ document.addEventListener('touchmove', touchEvents.moveHandler, passiveIfSupported);
1544
+ document.addEventListener('touchend', touchEvents.upHandler, passiveIfSupported);
1545
+ } else {
1546
+ document.addEventListener('mousemove', mouseEvents.moveHandler, passiveIfSupported);
1547
+ document.addEventListener('mouseup', mouseEvents.upHandler, passiveIfSupported);
1548
+ }
1549
+
1550
+ instance.setColumnSizingInfo(function (old) {
1551
+ return _extends({}, old, {
1552
+ startOffset: clientX,
1553
+ startSize: header.getWidth(),
1554
+ deltaOffset: 0,
1555
+ deltaPercentage: 0,
1556
+ columnSizingStart: columnSizingStart,
1557
+ isResizingColumn: header.column.id
1558
+ });
1559
+ });
1560
+ };
1561
+
1562
+ var initialProps = canResize ? {
1563
+ title: 'Toggle Grouping',
1564
+ draggable: false,
1565
+ role: 'separator',
1566
+ onMouseDown: function onMouseDown(e) {
1567
+ e.persist();
1568
+ onResizeStart(e);
1569
+ },
1570
+ onTouchStart: function onTouchStart(e) {
1571
+ e.persist();
1572
+ onResizeStart(e);
1573
+ }
1574
+ } : {};
1575
+ return propGetter(initialProps, userProps);
1576
+ }
1577
+ };
1578
+ }
1579
+ function createColumn$2(column, instance) {
1580
+ return {
1581
+ getIsResizing: function getIsResizing() {
1582
+ return instance.getColumnIsResizing(column.id);
1583
+ },
1584
+ getCanResize: function getCanResize() {
1585
+ return instance.getColumnCanResize(column.id);
1586
+ },
1587
+ resetSize: function resetSize() {
1588
+ return instance.resetColumnSize(column.id);
1589
+ }
1590
+ };
1591
+ }
1592
+ function createHeader(header, instance) {
1593
+ return {
1594
+ getIsResizing: function getIsResizing() {
1595
+ return instance.getHeaderIsResizing(header.id);
1596
+ },
1597
+ getCanResize: function getCanResize() {
1598
+ return instance.getHeaderCanResize(header.id);
1599
+ },
1600
+ getResizerProps: function getResizerProps(userProps) {
1601
+ return instance.getHeaderResizerProps(header.id, userProps);
1602
+ },
1603
+ resetSize: function resetSize() {
1604
+ return instance.resetHeaderSize(header.id);
1605
+ }
1606
+ };
1607
+ }
1608
+ var passiveSupported = null;
1609
+ function passiveEventSupported() {
1610
+ if (typeof passiveSupported === 'boolean') return passiveSupported;
1611
+ var supported = false;
1612
+
1613
+ try {
1614
+ var options = {
1615
+ get passive() {
1616
+ supported = true;
1617
+ return false;
1618
+ }
1619
+
1620
+ };
1621
+
1622
+ var noop = function noop() {};
1623
+
1624
+ window.addEventListener('test', noop, options);
1625
+ window.removeEventListener('test', noop);
1626
+ } catch (err) {
1627
+ supported = false;
1628
+ }
1629
+
1630
+ passiveSupported = supported;
1631
+ return passiveSupported;
1632
+ }
1633
+
1634
+ function isTouchStartEvent(e) {
1635
+ return e.type === 'touchstart';
1636
+ }
1637
+
1332
1638
  //
1333
1639
  function createRow$1(row, instance) {
1334
1640
  return {
@@ -1380,7 +1686,7 @@
1380
1686
  }
1381
1687
  function getInstance$3(instance) {
1382
1688
  return {
1383
- createHeader: function createHeader(column, options) {
1689
+ createHeader: function createHeader$1(column, options) {
1384
1690
  var _options$id;
1385
1691
 
1386
1692
  var id = (_options$id = options.id) != null ? _options$id : column.id;
@@ -1442,6 +1748,8 @@
1442
1748
  });
1443
1749
  }
1444
1750
  };
1751
+ header = Object.assign(header, createHeader(header, instance)); // Yes, we have to convert instance to uknown, because we know more than the compiler here.
1752
+
1445
1753
  return header;
1446
1754
  },
1447
1755
  // Header Groups
@@ -2891,7 +3199,7 @@
2891
3199
 
2892
3200
  var instance = {};
2893
3201
 
2894
- var defaultOptions = _extends({}, getDefaultOptions$6(instance), getDefaultOptions$4(instance), getDefaultOptions$3(instance), getDefaultOptions$2(instance), getDefaultOptions$1(instance), getDefaultOptions$5(instance), getDefaultOptions(instance));
3202
+ var defaultOptions = _extends({}, getDefaultOptions$7(instance), getDefaultOptions$5(instance), getDefaultOptions$4(instance), getDefaultOptions$2(instance), getDefaultOptions$1(instance), getDefaultOptions$6(instance), getDefaultOptions(instance), getDefaultOptions$3(instance));
2895
3203
 
2896
3204
  var defaultState = {};
2897
3205
 
@@ -2903,9 +3211,9 @@
2903
3211
 
2904
3212
  instance.options = buildOptions(options);
2905
3213
 
2906
- var initialState = _extends({}, getInitialState$6(), getInitialState$4(), getInitialState$3(), getInitialState$2(), getInitialState$1(), getInitialState$5(), getInitialState(), (_options$initialState = options.initialState) != null ? _options$initialState : {});
3214
+ var initialState = _extends({}, getInitialState$7(), getInitialState$5(), getInitialState$4(), getInitialState$2(), getInitialState$1(), getInitialState$6(), getInitialState(), getInitialState$3(), (_options$initialState = options.initialState) != null ? _options$initialState : {});
2907
3215
 
2908
- var finalInstance = _extends({}, instance, getInstance$7(instance), getInstance$5(instance), getInstance$4(instance), getInstance$3(instance), getInstance$2(instance), getInstance$1(instance), getInstance$6(instance), getInstance(instance), {
3216
+ var finalInstance = _extends({}, instance, getInstance$8(instance), getInstance$6(instance), getInstance$5(instance), getInstance$3(instance), getInstance$2(instance), getInstance$1(instance), getInstance$7(instance), getInstance(instance), getInstance$4(instance), {
2909
3217
  rerender: rerender,
2910
3218
  initialState: initialState,
2911
3219
  internalState: initialState,
@@ -2962,7 +3270,7 @@
2962
3270
  getColumnDefs: function getColumnDefs() {
2963
3271
  return instance.options.columns;
2964
3272
  },
2965
- createColumn: function createColumn$5(columnDef, depth, parent) {
3273
+ createColumn: function createColumn$6(columnDef, depth, parent) {
2966
3274
  var _ref2, _columnDef$id;
2967
3275
 
2968
3276
  var defaultColumn = instance.getDefaultColumn();
@@ -2983,11 +3291,7 @@
2983
3291
  }
2984
3292
  }
2985
3293
 
2986
- var column = _extends({
2987
- width: 150,
2988
- minWidth: 20,
2989
- maxWidth: Number.MAX_SAFE_INTEGER
2990
- }, defaultColumn, columnDef, {
3294
+ var column = _extends({}, defaultColumnSizing, defaultColumn, columnDef, {
2991
3295
  id: "" + id,
2992
3296
  accessorFn: accessorFn,
2993
3297
  parent: parent,
@@ -3022,7 +3326,7 @@
3022
3326
  }, 'column.getLeafColumns', instance.options.debug)
3023
3327
  });
3024
3328
 
3025
- column = Object.assign(column, createColumn$4(column, instance), createColumn$2(column, instance), createColumn$1(column, instance), createColumn(column, instance), createColumn$3(column, instance)); // Yes, we have to convert instance to uknown, because we know more than the compiler here.
3329
+ column = Object.assign(column, createColumn$5(column, instance), createColumn$3(column, instance), createColumn$1(column, instance), createColumn(column, instance), createColumn$4(column, instance), createColumn$2(column, instance)); // Yes, we have to convert instance to uknown, because we know more than the compiler here.
3026
3330
 
3027
3331
  return column;
3028
3332
  },
@@ -3082,7 +3386,7 @@
3082
3386
  return column;
3083
3387
  },
3084
3388
  getColumnWidth: function getColumnWidth(columnId) {
3085
- var _column$minWidth, _column$width, _column$maxWidth;
3389
+ var _column$minWidth, _ref3, _column$maxWidth;
3086
3390
 
3087
3391
  var column = instance.getColumn(columnId);
3088
3392
 
@@ -3090,7 +3394,8 @@
3090
3394
  throw new Error();
3091
3395
  }
3092
3396
 
3093
- return Math.min(Math.max((_column$minWidth = column.minWidth) != null ? _column$minWidth : 0, (_column$width = column.width) != null ? _column$width : 0), (_column$maxWidth = column.maxWidth) != null ? _column$maxWidth : 0);
3397
+ var columnSize = instance.getState().columnSizing[column.id];
3398
+ return Math.min(Math.max((_column$minWidth = column.minWidth) != null ? _column$minWidth : defaultColumnSizing.minWidth, (_ref3 = columnSize != null ? columnSize : column.width) != null ? _ref3 : defaultColumnSizing.width), (_column$maxWidth = column.maxWidth) != null ? _column$maxWidth : defaultColumnSizing.maxWidth);
3094
3399
  },
3095
3400
  createCell: function createCell$1(row, column, value) {
3096
3401
  var cell = {
@@ -3334,6 +3639,34 @@
3334
3639
  key: cell.id,
3335
3640
  role: 'gridcell'
3336
3641
  }, userProps);
3642
+ },
3643
+ getTableWidth: function getTableWidth() {
3644
+ var _instance$getHeaderGr, _instance$getHeaderGr2;
3645
+
3646
+ return (_instance$getHeaderGr = (_instance$getHeaderGr2 = instance.getHeaderGroups()[0]) == null ? void 0 : _instance$getHeaderGr2.headers.reduce(function (sum, header) {
3647
+ return sum + header.getWidth();
3648
+ }, 0)) != null ? _instance$getHeaderGr : 0;
3649
+ },
3650
+ getLeftTableWidth: function getLeftTableWidth() {
3651
+ var _instance$getLeftHead, _instance$getLeftHead2;
3652
+
3653
+ return (_instance$getLeftHead = (_instance$getLeftHead2 = instance.getLeftHeaderGroups()[0]) == null ? void 0 : _instance$getLeftHead2.headers.reduce(function (sum, header) {
3654
+ return sum + header.getWidth();
3655
+ }, 0)) != null ? _instance$getLeftHead : 0;
3656
+ },
3657
+ getCenterTableWidth: function getCenterTableWidth() {
3658
+ var _instance$getCenterHe, _instance$getCenterHe2;
3659
+
3660
+ return (_instance$getCenterHe = (_instance$getCenterHe2 = instance.getCenterHeaderGroups()[0]) == null ? void 0 : _instance$getCenterHe2.headers.reduce(function (sum, header) {
3661
+ return sum + header.getWidth();
3662
+ }, 0)) != null ? _instance$getCenterHe : 0;
3663
+ },
3664
+ getRightTableWidth: function getRightTableWidth() {
3665
+ var _instance$getRightHea, _instance$getRightHea2;
3666
+
3667
+ return (_instance$getRightHea = (_instance$getRightHea2 = instance.getRightHeaderGroups()[0]) == null ? void 0 : _instance$getRightHea2.headers.reduce(function (sum, header) {
3668
+ return sum + header.getWidth();
3669
+ }, 0)) != null ? _instance$getRightHea : 0;
3337
3670
  }
3338
3671
  });
3339
3672