@deephaven/iris-grid 0.31.2-beta.3 → 0.31.2-beta.8
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.css +7 -0
- package/dist/IrisGrid.css.map +1 -1
- package/dist/IrisGrid.d.ts +3 -0
- package/dist/IrisGrid.d.ts.map +1 -1
- package/dist/IrisGrid.js +78 -52
- package/dist/IrisGrid.js.map +1 -1
- package/dist/IrisGridRenderer.d.ts +1 -1
- package/dist/IrisGridRenderer.d.ts.map +1 -1
- package/dist/IrisGridRenderer.js +16 -11
- package/dist/IrisGridRenderer.js.map +1 -1
- package/dist/IrisGridTheme.d.ts.map +1 -1
- package/dist/IrisGridTheme.js +1 -0
- package/dist/IrisGridTheme.js.map +1 -1
- package/dist/IrisGridTheme.module.css +1 -0
- package/dist/IrisGridTheme.module.css.map +1 -1
- package/dist/mousehandlers/IrisGridTokenMouseHandler.d.ts +17 -0
- package/dist/mousehandlers/IrisGridTokenMouseHandler.d.ts.map +1 -0
- package/dist/mousehandlers/IrisGridTokenMouseHandler.js +136 -0
- package/dist/mousehandlers/IrisGridTokenMouseHandler.js.map +1 -0
- package/dist/mousehandlers/index.d.ts +1 -0
- package/dist/mousehandlers/index.d.ts.map +1 -1
- package/dist/mousehandlers/index.js +1 -0
- package/dist/mousehandlers/index.js.map +1 -1
- package/dist/sidebar/visibility-ordering-builder/VisibilityOrderingBuilder.d.ts.map +1 -1
- package/dist/sidebar/visibility-ordering-builder/VisibilityOrderingBuilder.js +4 -2
- package/dist/sidebar/visibility-ordering-builder/VisibilityOrderingBuilder.js.map +1 -1
- package/dist/sidebar/visibility-ordering-builder/VisibilityOrderingGroup.d.ts.map +1 -1
- package/dist/sidebar/visibility-ordering-builder/VisibilityOrderingGroup.js +43 -15
- package/dist/sidebar/visibility-ordering-builder/VisibilityOrderingGroup.js.map +1 -1
- package/package.json +15 -15
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
|
|
17
|
+
import { Grid, GridRange, GridUtils, isEditableGridModel, isExpandableGridModel } 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 } from '@deephaven/utils';
|
|
21
|
+
import { assertNotNull, copyToClipboard, EMPTY_ARRAY, EMPTY_MAP, Pending, PromiseUtils, ValidationError, getOrThrow } 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, PendingMouseHandler } from "./mousehandlers/index.js";
|
|
31
|
+
import { IrisGridCellOverflowMouseHandler, IrisGridColumnSelectMouseHandler, IrisGridColumnTooltipMouseHandler, IrisGridContextMenuHandler, IrisGridDataSelectMouseHandler, IrisGridFilterMouseHandler, IrisGridRowTreeMouseHandler, IrisGridSortMouseHandler, IrisGridTokenMouseHandler, 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,6 +396,30 @@ 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
|
+
}));
|
|
399
423
|
_defineProperty(this, "handleGotoValueChanged", input => {
|
|
400
424
|
this.setState({
|
|
401
425
|
gotoValue: input
|
|
@@ -550,7 +574,7 @@ export class IrisGrid extends Component {
|
|
|
550
574
|
if (canCopy) {
|
|
551
575
|
keyHandlers.push(new CopyKeyHandler(this));
|
|
552
576
|
}
|
|
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)];
|
|
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)];
|
|
554
578
|
var _movedColumns = movedColumnsProp.length > 0 ? movedColumnsProp : _model.initialMovedColumns;
|
|
555
579
|
var movedRows = movedRowsProp.length > 0 ? movedRowsProp : _model.initialMovedRows;
|
|
556
580
|
var _metricCalculator = new IrisGridMetricCalculator({
|
|
@@ -629,6 +653,8 @@ export class IrisGrid extends Component {
|
|
|
629
653
|
overflowButtonTooltipProps: null,
|
|
630
654
|
expandCellTooltipProps: null,
|
|
631
655
|
expandTooltipDisplayValue: 'expand',
|
|
656
|
+
linkHoverTooltipProps: null,
|
|
657
|
+
linkHoverDisplayValue: '',
|
|
632
658
|
isGotoShown: false,
|
|
633
659
|
gotoRow: '',
|
|
634
660
|
gotoRowError: '',
|
|
@@ -1536,9 +1562,8 @@ export class IrisGrid extends Component {
|
|
|
1536
1562
|
});
|
|
1537
1563
|
}
|
|
1538
1564
|
handleAnimationLoop() {
|
|
1539
|
-
var _this$grid7
|
|
1540
|
-
(_this$grid7 = this.grid) === null || _this$grid7 === void 0 ? void 0 : _this$grid7.
|
|
1541
|
-
(_this$grid8 = this.grid) === null || _this$grid8 === void 0 ? void 0 : _this$grid8.updateCanvas();
|
|
1565
|
+
var _this$grid7;
|
|
1566
|
+
(_this$grid7 = this.grid) === null || _this$grid7 === void 0 ? void 0 : _this$grid7.updateCanvas();
|
|
1542
1567
|
if (this.isAnimating) {
|
|
1543
1568
|
this.animationFrame = requestAnimationFrame(this.handleAnimationLoop);
|
|
1544
1569
|
}
|
|
@@ -1595,7 +1620,7 @@ export class IrisGrid extends Component {
|
|
|
1595
1620
|
onError(error);
|
|
1596
1621
|
}
|
|
1597
1622
|
showAllColumns() {
|
|
1598
|
-
var _this$
|
|
1623
|
+
var _this$grid8;
|
|
1599
1624
|
var {
|
|
1600
1625
|
metricCalculator
|
|
1601
1626
|
} = this.state;
|
|
@@ -1607,7 +1632,7 @@ export class IrisGrid extends Component {
|
|
|
1607
1632
|
metricCalculator.resetColumnWidth(modelIndex);
|
|
1608
1633
|
}
|
|
1609
1634
|
}
|
|
1610
|
-
(_this$
|
|
1635
|
+
(_this$grid8 = this.grid) === null || _this$grid8 === void 0 ? void 0 : _this$grid8.forceUpdate();
|
|
1611
1636
|
}
|
|
1612
1637
|
toggleSort(columnIndex, addToExisting) {
|
|
1613
1638
|
log.info('Toggling sort for column', columnIndex);
|
|
@@ -1623,15 +1648,15 @@ export class IrisGrid extends Component {
|
|
|
1623
1648
|
this.updateSorts(sorts);
|
|
1624
1649
|
}
|
|
1625
1650
|
updateSorts(sorts) {
|
|
1626
|
-
var _this$
|
|
1651
|
+
var _this$grid9;
|
|
1627
1652
|
this.startLoading('Sorting...');
|
|
1628
1653
|
this.setState({
|
|
1629
1654
|
sorts
|
|
1630
1655
|
});
|
|
1631
|
-
(_this$
|
|
1656
|
+
(_this$grid9 = this.grid) === null || _this$grid9 === void 0 ? void 0 : _this$grid9.forceUpdate();
|
|
1632
1657
|
}
|
|
1633
1658
|
sortColumn(modelColumn) {
|
|
1634
|
-
var _this$
|
|
1659
|
+
var _this$grid10;
|
|
1635
1660
|
var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : TableUtils.sortDirection.none;
|
|
1636
1661
|
var isAbs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
1637
1662
|
var addToExisting = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
@@ -1644,15 +1669,15 @@ export class IrisGrid extends Component {
|
|
|
1644
1669
|
this.setState({
|
|
1645
1670
|
sorts
|
|
1646
1671
|
});
|
|
1647
|
-
(_this$
|
|
1672
|
+
(_this$grid10 = this.grid) === null || _this$grid10 === void 0 ? void 0 : _this$grid10.forceUpdate();
|
|
1648
1673
|
}
|
|
1649
1674
|
reverse(reverseType) {
|
|
1650
|
-
var _this$
|
|
1675
|
+
var _this$grid11;
|
|
1651
1676
|
this.startLoading('Reversing...');
|
|
1652
1677
|
this.setState({
|
|
1653
1678
|
reverseType
|
|
1654
1679
|
});
|
|
1655
|
-
(_this$
|
|
1680
|
+
(_this$grid11 = this.grid) === null || _this$grid11 === void 0 ? void 0 : _this$grid11.forceUpdate();
|
|
1656
1681
|
}
|
|
1657
1682
|
isReversible() {
|
|
1658
1683
|
var {
|
|
@@ -1693,8 +1718,8 @@ export class IrisGrid extends Component {
|
|
|
1693
1718
|
this.focusFilterBar(columnIndex);
|
|
1694
1719
|
}
|
|
1695
1720
|
} else {
|
|
1696
|
-
var _this$
|
|
1697
|
-
(_this$
|
|
1721
|
+
var _this$grid12;
|
|
1722
|
+
(_this$grid12 = this.grid) === null || _this$grid12 === void 0 ? void 0 : _this$grid12.focus();
|
|
1698
1723
|
}
|
|
1699
1724
|
}
|
|
1700
1725
|
isTableSearchAvailable() {
|
|
@@ -1728,13 +1753,13 @@ export class IrisGrid extends Component {
|
|
|
1728
1753
|
var _this$crossColumnRef2;
|
|
1729
1754
|
(_this$crossColumnRef2 = this.crossColumnRef) === null || _this$crossColumnRef2 === void 0 ? void 0 : _this$crossColumnRef2.current.focus();
|
|
1730
1755
|
} else {
|
|
1731
|
-
var _this$
|
|
1732
|
-
(_this$
|
|
1756
|
+
var _this$grid13;
|
|
1757
|
+
(_this$grid13 = this.grid) === null || _this$grid13 === void 0 ? void 0 : _this$grid13.focus();
|
|
1733
1758
|
}
|
|
1734
1759
|
});
|
|
1735
1760
|
}
|
|
1736
1761
|
toggleGotoRow() {
|
|
1737
|
-
var _this$
|
|
1762
|
+
var _this$grid14, _this$grid15;
|
|
1738
1763
|
var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
1739
1764
|
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1740
1765
|
var columnName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
@@ -1754,8 +1779,8 @@ export class IrisGrid extends Component {
|
|
|
1754
1779
|
this.focusRowInGrid(row);
|
|
1755
1780
|
return;
|
|
1756
1781
|
}
|
|
1757
|
-
var cursorRow = (_this$
|
|
1758
|
-
var cursorColumn = (_this$
|
|
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;
|
|
1759
1784
|
if (cursorRow == null || cursorColumn == null) {
|
|
1760
1785
|
// if a cell is not selected / grid is not rendered
|
|
1761
1786
|
this.setState({
|
|
@@ -1910,7 +1935,7 @@ export class IrisGrid extends Component {
|
|
|
1910
1935
|
this.setAdvancedFilter(index, filter, options);
|
|
1911
1936
|
}
|
|
1912
1937
|
handleAdvancedFilterSortChange(column, direction) {
|
|
1913
|
-
var _this$
|
|
1938
|
+
var _this$grid16;
|
|
1914
1939
|
var addToExisting = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
1915
1940
|
var {
|
|
1916
1941
|
model
|
|
@@ -1933,11 +1958,11 @@ export class IrisGrid extends Component {
|
|
|
1933
1958
|
this.setState({
|
|
1934
1959
|
sorts
|
|
1935
1960
|
});
|
|
1936
|
-
(_this$
|
|
1961
|
+
(_this$grid16 = this.grid) === null || _this$grid16 === void 0 ? void 0 : _this$grid16.forceUpdate();
|
|
1937
1962
|
}
|
|
1938
1963
|
handleAdvancedFilterDone() {
|
|
1939
|
-
var _this$
|
|
1940
|
-
(_this$
|
|
1964
|
+
var _this$grid17;
|
|
1965
|
+
(_this$grid17 = this.grid) === null || _this$grid17 === void 0 ? void 0 : _this$grid17.focus();
|
|
1941
1966
|
}
|
|
1942
1967
|
handleAdvancedMenuOpened(column) {
|
|
1943
1968
|
this.setState({
|
|
@@ -2018,8 +2043,8 @@ export class IrisGrid extends Component {
|
|
|
2018
2043
|
var setGridFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
2019
2044
|
var defocusInput = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
2020
2045
|
if (setGridFocus) {
|
|
2021
|
-
var _this$
|
|
2022
|
-
(_this$
|
|
2046
|
+
var _this$grid18;
|
|
2047
|
+
(_this$grid18 = this.grid) === null || _this$grid18 === void 0 ? void 0 : _this$grid18.focus();
|
|
2023
2048
|
}
|
|
2024
2049
|
if (defocusInput) {
|
|
2025
2050
|
this.setState({
|
|
@@ -2109,7 +2134,7 @@ export class IrisGrid extends Component {
|
|
|
2109
2134
|
}
|
|
2110
2135
|
}
|
|
2111
2136
|
handleUpdate() {
|
|
2112
|
-
var _this$
|
|
2137
|
+
var _this$grid19;
|
|
2113
2138
|
this.stopLoading();
|
|
2114
2139
|
log.debug2('Received model update');
|
|
2115
2140
|
var {
|
|
@@ -2139,16 +2164,16 @@ export class IrisGrid extends Component {
|
|
|
2139
2164
|
} else {
|
|
2140
2165
|
this.lastLoadedConfig = null;
|
|
2141
2166
|
}
|
|
2142
|
-
(_this$
|
|
2167
|
+
(_this$grid19 = this.grid) === null || _this$grid19 === void 0 ? void 0 : _this$grid19.forceUpdate();
|
|
2143
2168
|
}
|
|
2144
2169
|
handleViewChanged(metrics) {
|
|
2145
|
-
var _this$grid$state, _this$
|
|
2170
|
+
var _this$grid$state, _this$grid20;
|
|
2146
2171
|
var {
|
|
2147
2172
|
model
|
|
2148
2173
|
} = this.props;
|
|
2149
2174
|
var {
|
|
2150
2175
|
selectionEndRow = 0
|
|
2151
|
-
} = (_this$grid$state = (_this$
|
|
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 : {};
|
|
2152
2177
|
var pendingRowCount = 0;
|
|
2153
2178
|
if (isEditableGridModel(model) && model.isEditable) {
|
|
2154
2179
|
assertNotNull(metrics);
|
|
@@ -2205,8 +2230,8 @@ export class IrisGrid extends Component {
|
|
|
2205
2230
|
this.setState({
|
|
2206
2231
|
columnHeaderGroups: IrisGridUtils.parseColumnHeaderGroups(model, columnHeaderGroups).groups
|
|
2207
2232
|
}, () => {
|
|
2208
|
-
var _this$
|
|
2209
|
-
return (_this$
|
|
2233
|
+
var _this$grid21;
|
|
2234
|
+
return (_this$grid21 = this.grid) === null || _this$grid21 === void 0 ? void 0 : _this$grid21.forceUpdate();
|
|
2210
2235
|
});
|
|
2211
2236
|
}
|
|
2212
2237
|
handleTooltipRef(tooltip) {
|
|
@@ -2345,9 +2370,9 @@ export class IrisGrid extends Component {
|
|
|
2345
2370
|
isReady
|
|
2346
2371
|
} = this.state;
|
|
2347
2372
|
if (isReady) {
|
|
2348
|
-
var _this$
|
|
2373
|
+
var _this$grid22;
|
|
2349
2374
|
this.stopLoading();
|
|
2350
|
-
(_this$
|
|
2375
|
+
(_this$grid22 = this.grid) === null || _this$grid22 === void 0 ? void 0 : _this$grid22.forceUpdate();
|
|
2351
2376
|
} else {
|
|
2352
2377
|
this.initState();
|
|
2353
2378
|
}
|
|
@@ -2359,7 +2384,7 @@ export class IrisGrid extends Component {
|
|
|
2359
2384
|
return this.discardPending();
|
|
2360
2385
|
}
|
|
2361
2386
|
handlePendingDataUpdated() {
|
|
2362
|
-
var _this$
|
|
2387
|
+
var _this$grid23;
|
|
2363
2388
|
log.debug('pending data updated');
|
|
2364
2389
|
var {
|
|
2365
2390
|
model
|
|
@@ -2373,7 +2398,7 @@ export class IrisGrid extends Component {
|
|
|
2373
2398
|
pendingDataErrors,
|
|
2374
2399
|
pendingSaveError: null
|
|
2375
2400
|
});
|
|
2376
|
-
(_this$
|
|
2401
|
+
(_this$grid23 = this.grid) === null || _this$grid23 === void 0 ? void 0 : _this$grid23.forceUpdate();
|
|
2377
2402
|
}
|
|
2378
2403
|
|
|
2379
2404
|
/**
|
|
@@ -2729,22 +2754,22 @@ export class IrisGrid extends Component {
|
|
|
2729
2754
|
gotoRowError: 'Invalid row index'
|
|
2730
2755
|
});
|
|
2731
2756
|
} else if (rowInt === 0) {
|
|
2732
|
-
var _this$
|
|
2757
|
+
var _this$grid24;
|
|
2733
2758
|
this.setState({
|
|
2734
2759
|
gotoRowError: '',
|
|
2735
2760
|
gotoValueError: ''
|
|
2736
2761
|
});
|
|
2737
|
-
(_this$
|
|
2762
|
+
(_this$grid24 = this.grid) === null || _this$grid24 === void 0 ? void 0 : _this$grid24.setFocusRow(0);
|
|
2738
2763
|
} else if (rowInt < 0) {
|
|
2739
|
-
var _this$
|
|
2764
|
+
var _this$grid25;
|
|
2740
2765
|
this.setState({
|
|
2741
2766
|
gotoRowError: '',
|
|
2742
2767
|
gotoValueError: ''
|
|
2743
2768
|
});
|
|
2744
|
-
(_this$
|
|
2769
|
+
(_this$grid25 = this.grid) === null || _this$grid25 === void 0 ? void 0 : _this$grid25.setFocusRow(rowInt + rowCount);
|
|
2745
2770
|
} else {
|
|
2746
|
-
var _this$
|
|
2747
|
-
(_this$
|
|
2771
|
+
var _this$grid26;
|
|
2772
|
+
(_this$grid26 = this.grid) === null || _this$grid26 === void 0 ? void 0 : _this$grid26.setFocusRow(rowInt - 1);
|
|
2748
2773
|
this.setState({
|
|
2749
2774
|
gotoRowError: '',
|
|
2750
2775
|
gotoValueError: ''
|
|
@@ -2843,11 +2868,11 @@ export class IrisGrid extends Component {
|
|
|
2843
2868
|
})));
|
|
2844
2869
|
}
|
|
2845
2870
|
handleGotoValueSelectedColumnNameChanged(columnName) {
|
|
2846
|
-
var _this$
|
|
2871
|
+
var _this$grid27;
|
|
2847
2872
|
var {
|
|
2848
2873
|
model
|
|
2849
2874
|
} = this.props;
|
|
2850
|
-
var cursorRow = (_this$
|
|
2875
|
+
var cursorRow = (_this$grid27 = this.grid) === null || _this$grid27 === void 0 ? void 0 : _this$grid27.state.cursorRow;
|
|
2851
2876
|
if (cursorRow != null) {
|
|
2852
2877
|
var _index = model.getColumnIndexByName(columnName);
|
|
2853
2878
|
var _column3 = IrisGridUtils.getColumnByName(model.columns, columnName);
|
|
@@ -2883,8 +2908,8 @@ export class IrisGrid extends Component {
|
|
|
2883
2908
|
var _rollupConfig$columns3,
|
|
2884
2909
|
_rollupConfig$columns4,
|
|
2885
2910
|
_this6 = this,
|
|
2886
|
-
_this$
|
|
2887
|
-
_this$
|
|
2911
|
+
_this$grid29,
|
|
2912
|
+
_this$grid29$state$dr,
|
|
2888
2913
|
_openOptions;
|
|
2889
2914
|
var {
|
|
2890
2915
|
children,
|
|
@@ -2962,6 +2987,7 @@ export class IrisGrid extends Component {
|
|
|
2962
2987
|
overflowText,
|
|
2963
2988
|
overflowButtonTooltipProps,
|
|
2964
2989
|
expandCellTooltipProps,
|
|
2990
|
+
linkHoverTooltipProps,
|
|
2965
2991
|
isGotoShown,
|
|
2966
2992
|
gotoRow,
|
|
2967
2993
|
gotoRowError,
|
|
@@ -2999,7 +3025,7 @@ export class IrisGrid extends Component {
|
|
|
2999
3025
|
var columnX = allColumnXs.get(focusedFilterBarColumn);
|
|
3000
3026
|
var columnWidth = allColumnWidths.get(focusedFilterBarColumn);
|
|
3001
3027
|
if (columnX != null && columnWidth != null) {
|
|
3002
|
-
var _theme$filterBarHeigh, _theme$filterBarHeigh2, _this$
|
|
3028
|
+
var _theme$filterBarHeigh, _theme$filterBarHeigh2, _this$grid28;
|
|
3003
3029
|
var x = gridX + columnX;
|
|
3004
3030
|
var y = gridY - ((_theme$filterBarHeigh = theme.filterBarHeight) !== null && _theme$filterBarHeigh !== void 0 ? _theme$filterBarHeigh : 0);
|
|
3005
3031
|
var fieldWidth = columnWidth + 1; // cover right border
|
|
@@ -3040,7 +3066,7 @@ export class IrisGrid extends Component {
|
|
|
3040
3066
|
onChange: this.handleFilterBarChange,
|
|
3041
3067
|
onDone: this.handleFilterBarDone,
|
|
3042
3068
|
onTab: this.handleFilterBarTab,
|
|
3043
|
-
onContextMenu: (_this$
|
|
3069
|
+
onContextMenu: (_this$grid28 = this.grid) === null || _this$grid28 === void 0 ? void 0 : _this$grid28.handleContextMenu,
|
|
3044
3070
|
debounceMs: debounceMs,
|
|
3045
3071
|
value: _value5
|
|
3046
3072
|
});
|
|
@@ -3408,7 +3434,7 @@ export class IrisGrid extends Component {
|
|
|
3408
3434
|
movedColumns: movedColumns,
|
|
3409
3435
|
customColumns: customColumns,
|
|
3410
3436
|
hiddenColumns: hiddenColumns,
|
|
3411
|
-
alwaysFetchColumns: this.getAlwaysFetchColumns(alwaysFetchColumns, model.columns, movedColumns, model.floatingLeftColumnCount, model.floatingRightColumnCount, (_this$
|
|
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),
|
|
3412
3438
|
formatColumns: this.getCachedPreviewFormatColumns(this.getCachedModelColumns(model, customColumns), conditionalFormats, conditionalFormatPreview,
|
|
3413
3439
|
// Disable the preview format when we press Back on the format edit page
|
|
3414
3440
|
((_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),
|
|
@@ -3430,7 +3456,7 @@ export class IrisGrid extends Component {
|
|
|
3430
3456
|
transform: "up-1"
|
|
3431
3457
|
}),
|
|
3432
3458
|
tooltip: "Table Options"
|
|
3433
|
-
})), focusField, loadingElement, filterBar, columnTooltip, advancedFilterMenus, overflowButtonTooltipProps && this.getOverflowButtonTooltip(overflowButtonTooltipProps), expandCellTooltipProps && this.getExpandCellTooltip(expandCellTooltipProps)), /*#__PURE__*/React.createElement(GotoRow, {
|
|
3459
|
+
})), focusField, loadingElement, filterBar, columnTooltip, advancedFilterMenus, overflowButtonTooltipProps && this.getOverflowButtonTooltip(overflowButtonTooltipProps), expandCellTooltipProps && this.getExpandCellTooltip(expandCellTooltipProps), linkHoverTooltipProps && this.getLinkHoverTooltip(linkHoverTooltipProps)), /*#__PURE__*/React.createElement(GotoRow, {
|
|
3434
3460
|
model: model,
|
|
3435
3461
|
isShown: isGotoShown,
|
|
3436
3462
|
gotoRow: gotoRow,
|