@deephaven/iris-grid 0.31.2-beta.8 → 0.31.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.
package/dist/IrisGrid.js CHANGED
@@ -14,11 +14,11 @@ import deepEqual from 'deep-equal';
14
14
  import Log from '@deephaven/log';
15
15
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
16
16
  import { ContextActions, Stack, Menu, Page, Popper, ThemeExport, Tooltip, Button, ContextActionUtils } from '@deephaven/components';
17
- import { Grid, GridRange, GridUtils, isEditableGridModel, isExpandableGridModel } from '@deephaven/grid';
17
+ import { Grid, GridRange, GridUtils, isEditableGridModel, isExpandableGridModel, getOrThrow } from '@deephaven/grid';
18
18
  import { dhEye, dhFilterFilled, dhGraphLineUp, dhTriangleDownSquare, vsClose, vsCloudDownload, vsEdit, vsFilter, vsMenu, vsReply, vsRuby, vsSearch, vsSplitHorizontal, vsSymbolOperator, vsTools } from '@deephaven/icons';
19
19
  import dh from '@deephaven/jsapi-shim';
20
20
  import { DateUtils, Formatter, FormatterUtils, TableUtils } from '@deephaven/jsapi-utils';
21
- import { assertNotNull, copyToClipboard, EMPTY_ARRAY, EMPTY_MAP, Pending, PromiseUtils, ValidationError, getOrThrow } from '@deephaven/utils';
21
+ import { assertNotNull, copyToClipboard, EMPTY_ARRAY, EMPTY_MAP, Pending, PromiseUtils, ValidationError } from '@deephaven/utils';
22
22
  import { Type as FilterType } from '@deephaven/filters';
23
23
  import throttle from 'lodash.throttle';
24
24
  import debounce from 'lodash.debounce';
@@ -28,7 +28,7 @@ import PendingDataBottomBar from "./PendingDataBottomBar.js";
28
28
  import IrisGridCopyHandler from "./IrisGridCopyHandler.js";
29
29
  import FilterInputField from "./FilterInputField.js";
30
30
  import { ClearFilterKeyHandler, CopyKeyHandler, ReverseKeyHandler } from "./key-handlers/index.js";
31
- import { IrisGridCellOverflowMouseHandler, IrisGridColumnSelectMouseHandler, IrisGridColumnTooltipMouseHandler, IrisGridContextMenuHandler, IrisGridDataSelectMouseHandler, IrisGridFilterMouseHandler, IrisGridRowTreeMouseHandler, IrisGridSortMouseHandler, IrisGridTokenMouseHandler, PendingMouseHandler } from "./mousehandlers/index.js";
31
+ import { IrisGridCellOverflowMouseHandler, IrisGridColumnSelectMouseHandler, IrisGridColumnTooltipMouseHandler, IrisGridContextMenuHandler, IrisGridDataSelectMouseHandler, IrisGridFilterMouseHandler, IrisGridRowTreeMouseHandler, IrisGridSortMouseHandler, PendingMouseHandler } from "./mousehandlers/index.js";
32
32
  import ToastBottomBar from "./ToastBottomBar.js";
33
33
  import IrisGridMetricCalculator from "./IrisGridMetricCalculator.js";
34
34
  import IrisGridModelUpdater from "./IrisGridModelUpdater.js";
@@ -396,30 +396,6 @@ export class IrisGrid extends Component {
396
396
  }
397
397
  }, "Click to ", expandTooltipDisplayValue, " row", /*#__PURE__*/React.createElement("br", null), ContextActionUtils.isMacPlatform() ? '⌘' : 'Ctrl+', "Click to expand row and all children")));
398
398
  }));
399
- _defineProperty(this, "getLinkHoverTooltip", memoize(linkHoverTooltipProps => {
400
- if (linkHoverTooltipProps == null) {
401
- return null;
402
- }
403
- var {
404
- linkHoverDisplayValue
405
- } = this.state;
406
- var wrapperStyle = _objectSpread(_objectSpread({
407
- position: 'absolute'
408
- }, linkHoverTooltipProps), {}, {
409
- pointerEvents: 'none'
410
- });
411
- var popperOptions = {
412
- placement: 'bottom'
413
- };
414
- return /*#__PURE__*/React.createElement("div", {
415
- style: wrapperStyle
416
- }, /*#__PURE__*/React.createElement(Tooltip, {
417
- options: popperOptions,
418
- ref: this.handleTooltipRef
419
- }, /*#__PURE__*/React.createElement("div", {
420
- className: "link-hover-tooltip"
421
- }, linkHoverDisplayValue, " - Click once to follow.", /*#__PURE__*/React.createElement("br", null), "Click and hold to select this cell.")));
422
- }));
423
399
  _defineProperty(this, "handleGotoValueChanged", input => {
424
400
  this.setState({
425
401
  gotoValue: input
@@ -574,7 +550,7 @@ export class IrisGrid extends Component {
574
550
  if (canCopy) {
575
551
  keyHandlers.push(new CopyKeyHandler(this));
576
552
  }
577
- var mouseHandlers = [new IrisGridCellOverflowMouseHandler(this), new IrisGridRowTreeMouseHandler(this), new IrisGridTokenMouseHandler(this), new IrisGridColumnSelectMouseHandler(this), new IrisGridColumnTooltipMouseHandler(this), new IrisGridSortMouseHandler(this), new IrisGridFilterMouseHandler(this), new IrisGridContextMenuHandler(this), new IrisGridDataSelectMouseHandler(this), new PendingMouseHandler(this)];
553
+ var mouseHandlers = [new IrisGridCellOverflowMouseHandler(this), new IrisGridRowTreeMouseHandler(this), new IrisGridColumnSelectMouseHandler(this), new IrisGridColumnTooltipMouseHandler(this), new IrisGridSortMouseHandler(this), new IrisGridFilterMouseHandler(this), new IrisGridContextMenuHandler(this), new IrisGridDataSelectMouseHandler(this), new PendingMouseHandler(this)];
578
554
  var _movedColumns = movedColumnsProp.length > 0 ? movedColumnsProp : _model.initialMovedColumns;
579
555
  var movedRows = movedRowsProp.length > 0 ? movedRowsProp : _model.initialMovedRows;
580
556
  var _metricCalculator = new IrisGridMetricCalculator({
@@ -653,8 +629,6 @@ export class IrisGrid extends Component {
653
629
  overflowButtonTooltipProps: null,
654
630
  expandCellTooltipProps: null,
655
631
  expandTooltipDisplayValue: 'expand',
656
- linkHoverTooltipProps: null,
657
- linkHoverDisplayValue: '',
658
632
  isGotoShown: false,
659
633
  gotoRow: '',
660
634
  gotoRowError: '',
@@ -1562,8 +1536,9 @@ export class IrisGrid extends Component {
1562
1536
  });
1563
1537
  }
1564
1538
  handleAnimationLoop() {
1565
- var _this$grid7;
1566
- (_this$grid7 = this.grid) === null || _this$grid7 === void 0 ? void 0 : _this$grid7.updateCanvas();
1539
+ var _this$grid7, _this$grid8;
1540
+ (_this$grid7 = this.grid) === null || _this$grid7 === void 0 ? void 0 : _this$grid7.updateCanvasScale();
1541
+ (_this$grid8 = this.grid) === null || _this$grid8 === void 0 ? void 0 : _this$grid8.updateCanvas();
1567
1542
  if (this.isAnimating) {
1568
1543
  this.animationFrame = requestAnimationFrame(this.handleAnimationLoop);
1569
1544
  }
@@ -1620,7 +1595,7 @@ export class IrisGrid extends Component {
1620
1595
  onError(error);
1621
1596
  }
1622
1597
  showAllColumns() {
1623
- var _this$grid8;
1598
+ var _this$grid9;
1624
1599
  var {
1625
1600
  metricCalculator
1626
1601
  } = this.state;
@@ -1632,7 +1607,7 @@ export class IrisGrid extends Component {
1632
1607
  metricCalculator.resetColumnWidth(modelIndex);
1633
1608
  }
1634
1609
  }
1635
- (_this$grid8 = this.grid) === null || _this$grid8 === void 0 ? void 0 : _this$grid8.forceUpdate();
1610
+ (_this$grid9 = this.grid) === null || _this$grid9 === void 0 ? void 0 : _this$grid9.forceUpdate();
1636
1611
  }
1637
1612
  toggleSort(columnIndex, addToExisting) {
1638
1613
  log.info('Toggling sort for column', columnIndex);
@@ -1648,15 +1623,15 @@ export class IrisGrid extends Component {
1648
1623
  this.updateSorts(sorts);
1649
1624
  }
1650
1625
  updateSorts(sorts) {
1651
- var _this$grid9;
1626
+ var _this$grid10;
1652
1627
  this.startLoading('Sorting...');
1653
1628
  this.setState({
1654
1629
  sorts
1655
1630
  });
1656
- (_this$grid9 = this.grid) === null || _this$grid9 === void 0 ? void 0 : _this$grid9.forceUpdate();
1631
+ (_this$grid10 = this.grid) === null || _this$grid10 === void 0 ? void 0 : _this$grid10.forceUpdate();
1657
1632
  }
1658
1633
  sortColumn(modelColumn) {
1659
- var _this$grid10;
1634
+ var _this$grid11;
1660
1635
  var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : TableUtils.sortDirection.none;
1661
1636
  var isAbs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1662
1637
  var addToExisting = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
@@ -1669,15 +1644,15 @@ export class IrisGrid extends Component {
1669
1644
  this.setState({
1670
1645
  sorts
1671
1646
  });
1672
- (_this$grid10 = this.grid) === null || _this$grid10 === void 0 ? void 0 : _this$grid10.forceUpdate();
1647
+ (_this$grid11 = this.grid) === null || _this$grid11 === void 0 ? void 0 : _this$grid11.forceUpdate();
1673
1648
  }
1674
1649
  reverse(reverseType) {
1675
- var _this$grid11;
1650
+ var _this$grid12;
1676
1651
  this.startLoading('Reversing...');
1677
1652
  this.setState({
1678
1653
  reverseType
1679
1654
  });
1680
- (_this$grid11 = this.grid) === null || _this$grid11 === void 0 ? void 0 : _this$grid11.forceUpdate();
1655
+ (_this$grid12 = this.grid) === null || _this$grid12 === void 0 ? void 0 : _this$grid12.forceUpdate();
1681
1656
  }
1682
1657
  isReversible() {
1683
1658
  var {
@@ -1718,8 +1693,8 @@ export class IrisGrid extends Component {
1718
1693
  this.focusFilterBar(columnIndex);
1719
1694
  }
1720
1695
  } else {
1721
- var _this$grid12;
1722
- (_this$grid12 = this.grid) === null || _this$grid12 === void 0 ? void 0 : _this$grid12.focus();
1696
+ var _this$grid13;
1697
+ (_this$grid13 = this.grid) === null || _this$grid13 === void 0 ? void 0 : _this$grid13.focus();
1723
1698
  }
1724
1699
  }
1725
1700
  isTableSearchAvailable() {
@@ -1753,13 +1728,13 @@ export class IrisGrid extends Component {
1753
1728
  var _this$crossColumnRef2;
1754
1729
  (_this$crossColumnRef2 = this.crossColumnRef) === null || _this$crossColumnRef2 === void 0 ? void 0 : _this$crossColumnRef2.current.focus();
1755
1730
  } else {
1756
- var _this$grid13;
1757
- (_this$grid13 = this.grid) === null || _this$grid13 === void 0 ? void 0 : _this$grid13.focus();
1731
+ var _this$grid14;
1732
+ (_this$grid14 = this.grid) === null || _this$grid14 === void 0 ? void 0 : _this$grid14.focus();
1758
1733
  }
1759
1734
  });
1760
1735
  }
1761
1736
  toggleGotoRow() {
1762
- var _this$grid14, _this$grid15;
1737
+ var _this$grid15, _this$grid16;
1763
1738
  var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1764
1739
  var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1765
1740
  var columnName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
@@ -1779,8 +1754,8 @@ export class IrisGrid extends Component {
1779
1754
  this.focusRowInGrid(row);
1780
1755
  return;
1781
1756
  }
1782
- var cursorRow = (_this$grid14 = this.grid) === null || _this$grid14 === void 0 ? void 0 : _this$grid14.state.cursorRow;
1783
- var cursorColumn = (_this$grid15 = this.grid) === null || _this$grid15 === void 0 ? void 0 : _this$grid15.state.cursorColumn;
1757
+ var cursorRow = (_this$grid15 = this.grid) === null || _this$grid15 === void 0 ? void 0 : _this$grid15.state.cursorRow;
1758
+ var cursorColumn = (_this$grid16 = this.grid) === null || _this$grid16 === void 0 ? void 0 : _this$grid16.state.cursorColumn;
1784
1759
  if (cursorRow == null || cursorColumn == null) {
1785
1760
  // if a cell is not selected / grid is not rendered
1786
1761
  this.setState({
@@ -1935,15 +1910,14 @@ export class IrisGrid extends Component {
1935
1910
  this.setAdvancedFilter(index, filter, options);
1936
1911
  }
1937
1912
  handleAdvancedFilterSortChange(column, direction) {
1938
- var _this$grid16;
1913
+ var _this$grid17;
1939
1914
  var addToExisting = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1940
1915
  var {
1941
1916
  model
1942
1917
  } = this.props;
1943
1918
  var columnIndex = model.getColumnIndexByName(column.name);
1944
1919
  assertNotNull(columnIndex);
1945
- var columnName = model.columns[columnIndex].name;
1946
- var oldSort = TableUtils.getSortForColumn(model.sort, columnName);
1920
+ var oldSort = TableUtils.getSortForColumn(model.sort, columnIndex);
1947
1921
  var newSort = null;
1948
1922
  if (oldSort == null || oldSort.direction !== direction) {
1949
1923
  if (direction === TableUtils.sortDirection.descending) {
@@ -1952,17 +1926,17 @@ export class IrisGrid extends Component {
1952
1926
  newSort = column.sort().asc();
1953
1927
  }
1954
1928
  }
1955
- var sorts = TableUtils.setSortForColumn(model.sort, columnName, newSort, addToExisting);
1929
+ var sorts = TableUtils.setSortForColumn(model.sort, columnIndex, newSort, addToExisting);
1956
1930
  log.info('Setting table sorts', sorts);
1957
1931
  this.startLoading('Sorting...');
1958
1932
  this.setState({
1959
1933
  sorts
1960
1934
  });
1961
- (_this$grid16 = this.grid) === null || _this$grid16 === void 0 ? void 0 : _this$grid16.forceUpdate();
1935
+ (_this$grid17 = this.grid) === null || _this$grid17 === void 0 ? void 0 : _this$grid17.forceUpdate();
1962
1936
  }
1963
1937
  handleAdvancedFilterDone() {
1964
- var _this$grid17;
1965
- (_this$grid17 = this.grid) === null || _this$grid17 === void 0 ? void 0 : _this$grid17.focus();
1938
+ var _this$grid18;
1939
+ (_this$grid18 = this.grid) === null || _this$grid18 === void 0 ? void 0 : _this$grid18.focus();
1966
1940
  }
1967
1941
  handleAdvancedMenuOpened(column) {
1968
1942
  this.setState({
@@ -2043,8 +2017,8 @@ export class IrisGrid extends Component {
2043
2017
  var setGridFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
2044
2018
  var defocusInput = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2045
2019
  if (setGridFocus) {
2046
- var _this$grid18;
2047
- (_this$grid18 = this.grid) === null || _this$grid18 === void 0 ? void 0 : _this$grid18.focus();
2020
+ var _this$grid19;
2021
+ (_this$grid19 = this.grid) === null || _this$grid19 === void 0 ? void 0 : _this$grid19.focus();
2048
2022
  }
2049
2023
  if (defocusInput) {
2050
2024
  this.setState({
@@ -2134,7 +2108,7 @@ export class IrisGrid extends Component {
2134
2108
  }
2135
2109
  }
2136
2110
  handleUpdate() {
2137
- var _this$grid19;
2111
+ var _this$grid20;
2138
2112
  this.stopLoading();
2139
2113
  log.debug2('Received model update');
2140
2114
  var {
@@ -2164,16 +2138,16 @@ export class IrisGrid extends Component {
2164
2138
  } else {
2165
2139
  this.lastLoadedConfig = null;
2166
2140
  }
2167
- (_this$grid19 = this.grid) === null || _this$grid19 === void 0 ? void 0 : _this$grid19.forceUpdate();
2141
+ (_this$grid20 = this.grid) === null || _this$grid20 === void 0 ? void 0 : _this$grid20.forceUpdate();
2168
2142
  }
2169
2143
  handleViewChanged(metrics) {
2170
- var _this$grid$state, _this$grid20;
2144
+ var _this$grid$state, _this$grid21;
2171
2145
  var {
2172
2146
  model
2173
2147
  } = this.props;
2174
2148
  var {
2175
2149
  selectionEndRow = 0
2176
- } = (_this$grid$state = (_this$grid20 = this.grid) === null || _this$grid20 === void 0 ? void 0 : _this$grid20.state) !== null && _this$grid$state !== void 0 ? _this$grid$state : {};
2150
+ } = (_this$grid$state = (_this$grid21 = this.grid) === null || _this$grid21 === void 0 ? void 0 : _this$grid21.state) !== null && _this$grid$state !== void 0 ? _this$grid$state : {};
2177
2151
  var pendingRowCount = 0;
2178
2152
  if (isEditableGridModel(model) && model.isEditable) {
2179
2153
  assertNotNull(metrics);
@@ -2230,8 +2204,8 @@ export class IrisGrid extends Component {
2230
2204
  this.setState({
2231
2205
  columnHeaderGroups: IrisGridUtils.parseColumnHeaderGroups(model, columnHeaderGroups).groups
2232
2206
  }, () => {
2233
- var _this$grid21;
2234
- return (_this$grid21 = this.grid) === null || _this$grid21 === void 0 ? void 0 : _this$grid21.forceUpdate();
2207
+ var _this$grid22;
2208
+ return (_this$grid22 = this.grid) === null || _this$grid22 === void 0 ? void 0 : _this$grid22.forceUpdate();
2235
2209
  });
2236
2210
  }
2237
2211
  handleTooltipRef(tooltip) {
@@ -2370,9 +2344,9 @@ export class IrisGrid extends Component {
2370
2344
  isReady
2371
2345
  } = this.state;
2372
2346
  if (isReady) {
2373
- var _this$grid22;
2347
+ var _this$grid23;
2374
2348
  this.stopLoading();
2375
- (_this$grid22 = this.grid) === null || _this$grid22 === void 0 ? void 0 : _this$grid22.forceUpdate();
2349
+ (_this$grid23 = this.grid) === null || _this$grid23 === void 0 ? void 0 : _this$grid23.forceUpdate();
2376
2350
  } else {
2377
2351
  this.initState();
2378
2352
  }
@@ -2384,7 +2358,7 @@ export class IrisGrid extends Component {
2384
2358
  return this.discardPending();
2385
2359
  }
2386
2360
  handlePendingDataUpdated() {
2387
- var _this$grid23;
2361
+ var _this$grid24;
2388
2362
  log.debug('pending data updated');
2389
2363
  var {
2390
2364
  model
@@ -2398,7 +2372,7 @@ export class IrisGrid extends Component {
2398
2372
  pendingDataErrors,
2399
2373
  pendingSaveError: null
2400
2374
  });
2401
- (_this$grid23 = this.grid) === null || _this$grid23 === void 0 ? void 0 : _this$grid23.forceUpdate();
2375
+ (_this$grid24 = this.grid) === null || _this$grid24 === void 0 ? void 0 : _this$grid24.forceUpdate();
2402
2376
  }
2403
2377
 
2404
2378
  /**
@@ -2754,22 +2728,22 @@ export class IrisGrid extends Component {
2754
2728
  gotoRowError: 'Invalid row index'
2755
2729
  });
2756
2730
  } else if (rowInt === 0) {
2757
- var _this$grid24;
2731
+ var _this$grid25;
2758
2732
  this.setState({
2759
2733
  gotoRowError: '',
2760
2734
  gotoValueError: ''
2761
2735
  });
2762
- (_this$grid24 = this.grid) === null || _this$grid24 === void 0 ? void 0 : _this$grid24.setFocusRow(0);
2736
+ (_this$grid25 = this.grid) === null || _this$grid25 === void 0 ? void 0 : _this$grid25.setFocusRow(0);
2763
2737
  } else if (rowInt < 0) {
2764
- var _this$grid25;
2738
+ var _this$grid26;
2765
2739
  this.setState({
2766
2740
  gotoRowError: '',
2767
2741
  gotoValueError: ''
2768
2742
  });
2769
- (_this$grid25 = this.grid) === null || _this$grid25 === void 0 ? void 0 : _this$grid25.setFocusRow(rowInt + rowCount);
2743
+ (_this$grid26 = this.grid) === null || _this$grid26 === void 0 ? void 0 : _this$grid26.setFocusRow(rowInt + rowCount);
2770
2744
  } else {
2771
- var _this$grid26;
2772
- (_this$grid26 = this.grid) === null || _this$grid26 === void 0 ? void 0 : _this$grid26.setFocusRow(rowInt - 1);
2745
+ var _this$grid27;
2746
+ (_this$grid27 = this.grid) === null || _this$grid27 === void 0 ? void 0 : _this$grid27.setFocusRow(rowInt - 1);
2773
2747
  this.setState({
2774
2748
  gotoRowError: '',
2775
2749
  gotoValueError: ''
@@ -2868,11 +2842,11 @@ export class IrisGrid extends Component {
2868
2842
  })));
2869
2843
  }
2870
2844
  handleGotoValueSelectedColumnNameChanged(columnName) {
2871
- var _this$grid27;
2845
+ var _this$grid28;
2872
2846
  var {
2873
2847
  model
2874
2848
  } = this.props;
2875
- var cursorRow = (_this$grid27 = this.grid) === null || _this$grid27 === void 0 ? void 0 : _this$grid27.state.cursorRow;
2849
+ var cursorRow = (_this$grid28 = this.grid) === null || _this$grid28 === void 0 ? void 0 : _this$grid28.state.cursorRow;
2876
2850
  if (cursorRow != null) {
2877
2851
  var _index = model.getColumnIndexByName(columnName);
2878
2852
  var _column3 = IrisGridUtils.getColumnByName(model.columns, columnName);
@@ -2908,8 +2882,8 @@ export class IrisGrid extends Component {
2908
2882
  var _rollupConfig$columns3,
2909
2883
  _rollupConfig$columns4,
2910
2884
  _this6 = this,
2911
- _this$grid29,
2912
- _this$grid29$state$dr,
2885
+ _this$grid30,
2886
+ _this$grid30$state$dr,
2913
2887
  _openOptions;
2914
2888
  var {
2915
2889
  children,
@@ -2987,7 +2961,6 @@ export class IrisGrid extends Component {
2987
2961
  overflowText,
2988
2962
  overflowButtonTooltipProps,
2989
2963
  expandCellTooltipProps,
2990
- linkHoverTooltipProps,
2991
2964
  isGotoShown,
2992
2965
  gotoRow,
2993
2966
  gotoRowError,
@@ -3025,7 +2998,7 @@ export class IrisGrid extends Component {
3025
2998
  var columnX = allColumnXs.get(focusedFilterBarColumn);
3026
2999
  var columnWidth = allColumnWidths.get(focusedFilterBarColumn);
3027
3000
  if (columnX != null && columnWidth != null) {
3028
- var _theme$filterBarHeigh, _theme$filterBarHeigh2, _this$grid28;
3001
+ var _theme$filterBarHeigh, _theme$filterBarHeigh2, _this$grid29;
3029
3002
  var x = gridX + columnX;
3030
3003
  var y = gridY - ((_theme$filterBarHeigh = theme.filterBarHeight) !== null && _theme$filterBarHeigh !== void 0 ? _theme$filterBarHeigh : 0);
3031
3004
  var fieldWidth = columnWidth + 1; // cover right border
@@ -3066,7 +3039,7 @@ export class IrisGrid extends Component {
3066
3039
  onChange: this.handleFilterBarChange,
3067
3040
  onDone: this.handleFilterBarDone,
3068
3041
  onTab: this.handleFilterBarTab,
3069
- onContextMenu: (_this$grid28 = this.grid) === null || _this$grid28 === void 0 ? void 0 : _this$grid28.handleContextMenu,
3042
+ onContextMenu: (_this$grid29 = this.grid) === null || _this$grid29 === void 0 ? void 0 : _this$grid29.handleContextMenu,
3070
3043
  debounceMs: debounceMs,
3071
3044
  value: _value5
3072
3045
  });
@@ -3218,7 +3191,7 @@ export class IrisGrid extends Component {
3218
3191
  var {
3219
3192
  options: advancedFilterOptions
3220
3193
  } = _advancedFilter2 || {};
3221
- var sort = TableUtils.getSortForColumn(model.sort, _column4.name);
3194
+ var sort = TableUtils.getSortForColumn(model.sort, _modelColumn);
3222
3195
  var sortDirection = sort ? sort.direction : null;
3223
3196
  var element = /*#__PURE__*/React.createElement("div", {
3224
3197
  key: columnIndex,
@@ -3434,7 +3407,7 @@ export class IrisGrid extends Component {
3434
3407
  movedColumns: movedColumns,
3435
3408
  customColumns: customColumns,
3436
3409
  hiddenColumns: hiddenColumns,
3437
- alwaysFetchColumns: this.getAlwaysFetchColumns(alwaysFetchColumns, model.columns, movedColumns, model.floatingLeftColumnCount, model.floatingRightColumnCount, (_this$grid29 = this.grid) === null || _this$grid29 === void 0 ? void 0 : (_this$grid29$state$dr = _this$grid29.state.draggingColumn) === null || _this$grid29$state$dr === void 0 ? void 0 : _this$grid29$state$dr.range),
3410
+ alwaysFetchColumns: this.getAlwaysFetchColumns(alwaysFetchColumns, model.columns, movedColumns, model.floatingLeftColumnCount, model.floatingRightColumnCount, (_this$grid30 = this.grid) === null || _this$grid30 === void 0 ? void 0 : (_this$grid30$state$dr = _this$grid30.state.draggingColumn) === null || _this$grid30$state$dr === void 0 ? void 0 : _this$grid30$state$dr.range),
3438
3411
  formatColumns: this.getCachedPreviewFormatColumns(this.getCachedModelColumns(model, customColumns), conditionalFormats, conditionalFormatPreview,
3439
3412
  // Disable the preview format when we press Back on the format edit page
3440
3413
  ((_openOptions = openOptions[openOptions.length - 1]) === null || _openOptions === void 0 ? void 0 : _openOptions.type) === OptionType.CONDITIONAL_FORMATTING_EDIT ? conditionalFormatEditIndex !== null && conditionalFormatEditIndex !== void 0 ? conditionalFormatEditIndex : undefined : undefined),
@@ -3456,7 +3429,7 @@ export class IrisGrid extends Component {
3456
3429
  transform: "up-1"
3457
3430
  }),
3458
3431
  tooltip: "Table Options"
3459
- })), focusField, loadingElement, filterBar, columnTooltip, advancedFilterMenus, overflowButtonTooltipProps && this.getOverflowButtonTooltip(overflowButtonTooltipProps), expandCellTooltipProps && this.getExpandCellTooltip(expandCellTooltipProps), linkHoverTooltipProps && this.getLinkHoverTooltip(linkHoverTooltipProps)), /*#__PURE__*/React.createElement(GotoRow, {
3432
+ })), focusField, loadingElement, filterBar, columnTooltip, advancedFilterMenus, overflowButtonTooltipProps && this.getOverflowButtonTooltip(overflowButtonTooltipProps), expandCellTooltipProps && this.getExpandCellTooltip(expandCellTooltipProps)), /*#__PURE__*/React.createElement(GotoRow, {
3460
3433
  model: model,
3461
3434
  isShown: isGotoShown,
3462
3435
  gotoRow: gotoRow,