@deephaven/iris-grid 0.53.1-layout-manager.4 → 0.54.1-beta.0
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/FilterInputField.css +0 -6
- package/dist/FilterInputField.css.map +1 -1
- package/dist/IrisGrid.css +0 -6
- package/dist/IrisGrid.css.map +1 -1
- package/dist/IrisGrid.d.ts +1 -1
- package/dist/IrisGrid.d.ts.map +1 -1
- package/dist/IrisGrid.js +84 -86
- package/dist/IrisGrid.js.map +1 -1
- package/dist/TreeTableViewportUpdater.d.ts +2 -2
- package/dist/TreeTableViewportUpdater.d.ts.map +1 -1
- package/dist/TreeTableViewportUpdater.js.map +1 -1
- package/package.json +15 -15
package/dist/IrisGrid.js
CHANGED
|
@@ -80,7 +80,6 @@ export class IrisGrid extends Component {
|
|
|
80
80
|
var _model$layoutHints, _model$layoutHints$hi, _model$columns$0$name, _model$columns$;
|
|
81
81
|
super(props);
|
|
82
82
|
_defineProperty(this, "grid", void 0);
|
|
83
|
-
_defineProperty(this, "gridWrapper", void 0);
|
|
84
83
|
_defineProperty(this, "lastFocusedFilterBarColumn", void 0);
|
|
85
84
|
_defineProperty(this, "lastLoadedConfig", void 0);
|
|
86
85
|
_defineProperty(this, "tooltip", void 0);
|
|
@@ -504,7 +503,6 @@ export class IrisGrid extends Component {
|
|
|
504
503
|
this.handleGotoValueChanged = this.handleGotoValueChanged.bind(this);
|
|
505
504
|
this.handleGotoValueSubmitted = this.handleGotoValueSubmitted.bind(this);
|
|
506
505
|
this.grid = null;
|
|
507
|
-
this.gridWrapper = null;
|
|
508
506
|
this.lastLoadedConfig = null;
|
|
509
507
|
this.pending = new Pending();
|
|
510
508
|
this.globalColumnFormats = EMPTY_ARRAY;
|
|
@@ -776,6 +774,11 @@ export class IrisGrid extends Component {
|
|
|
776
774
|
|
|
777
775
|
// When the loading scrim started/when it should extend to the end of the screen.
|
|
778
776
|
|
|
777
|
+
get gridWrapper() {
|
|
778
|
+
var _this$grid$canvasWrap, _this$grid;
|
|
779
|
+
return (_this$grid$canvasWrap = (_this$grid = this.grid) === null || _this$grid === void 0 ? void 0 : _this$grid.canvasWrapper.current) !== null && _this$grid$canvasWrap !== void 0 ? _this$grid$canvasWrap : null;
|
|
780
|
+
}
|
|
781
|
+
|
|
779
782
|
/**
|
|
780
783
|
* Builds formatColumns array based on the provided formatting rules with optional preview
|
|
781
784
|
* @param columns Array of columns
|
|
@@ -1458,8 +1461,8 @@ export class IrisGrid extends Component {
|
|
|
1458
1461
|
model.removeEventListener(IrisGridModel.EVENT.PENDING_DATA_UPDATED, this.handlePendingDataUpdated);
|
|
1459
1462
|
}
|
|
1460
1463
|
focus() {
|
|
1461
|
-
var _this$
|
|
1462
|
-
(_this$
|
|
1464
|
+
var _this$grid2;
|
|
1465
|
+
(_this$grid2 = this.grid) === null || _this$grid2 === void 0 ? void 0 : _this$grid2.focus();
|
|
1463
1466
|
}
|
|
1464
1467
|
focusFilterBar(column) {
|
|
1465
1468
|
var {
|
|
@@ -1489,16 +1492,16 @@ export class IrisGrid extends Component {
|
|
|
1489
1492
|
lastLeft
|
|
1490
1493
|
} = metrics;
|
|
1491
1494
|
if (column < left) {
|
|
1492
|
-
var _this$
|
|
1493
|
-
(_this$
|
|
1495
|
+
var _this$grid3;
|
|
1496
|
+
(_this$grid3 = this.grid) === null || _this$grid3 === void 0 ? void 0 : _this$grid3.setViewState({
|
|
1494
1497
|
left: column
|
|
1495
1498
|
}, true);
|
|
1496
1499
|
} else if (rightVisible < column) {
|
|
1497
|
-
var _this$
|
|
1498
|
-
var metricState = (_this$
|
|
1500
|
+
var _this$grid4, _this$grid5;
|
|
1501
|
+
var metricState = (_this$grid4 = this.grid) === null || _this$grid4 === void 0 ? void 0 : _this$grid4.getMetricState();
|
|
1499
1502
|
assertNotNull(metricState);
|
|
1500
1503
|
var newLeft = metricCalculator.getLastLeft(metricState, column, metricCalculator.getVisibleWidth(metricState));
|
|
1501
|
-
(_this$
|
|
1504
|
+
(_this$grid5 = this.grid) === null || _this$grid5 === void 0 ? void 0 : _this$grid5.setViewState({
|
|
1502
1505
|
left: Math.min(newLeft, lastLeft),
|
|
1503
1506
|
leftOffset: 0
|
|
1504
1507
|
}, true);
|
|
@@ -1510,13 +1513,13 @@ export class IrisGrid extends Component {
|
|
|
1510
1513
|
});
|
|
1511
1514
|
}
|
|
1512
1515
|
hideColumnByVisibleIndex(columnVisibleIndex) {
|
|
1513
|
-
var _this$
|
|
1516
|
+
var _this$grid6;
|
|
1514
1517
|
var {
|
|
1515
1518
|
metricCalculator,
|
|
1516
1519
|
movedColumns
|
|
1517
1520
|
} = this.state;
|
|
1518
1521
|
metricCalculator.setColumnWidth(GridUtils.getModelIndex(columnVisibleIndex, movedColumns), 0);
|
|
1519
|
-
(_this$
|
|
1522
|
+
(_this$grid6 = this.grid) === null || _this$grid6 === void 0 ? void 0 : _this$grid6.forceUpdate();
|
|
1520
1523
|
}
|
|
1521
1524
|
freezeColumnByColumnName(columnName) {
|
|
1522
1525
|
var {
|
|
@@ -1561,7 +1564,7 @@ export class IrisGrid extends Component {
|
|
|
1561
1564
|
});
|
|
1562
1565
|
}
|
|
1563
1566
|
handleColumnVisibilityChanged(modelIndexes, isVisible) {
|
|
1564
|
-
var _this$
|
|
1567
|
+
var _this$grid7;
|
|
1565
1568
|
var {
|
|
1566
1569
|
metricCalculator,
|
|
1567
1570
|
metrics
|
|
@@ -1582,7 +1585,7 @@ export class IrisGrid extends Component {
|
|
|
1582
1585
|
metricCalculator.setColumnWidth(modelIndex, 0);
|
|
1583
1586
|
});
|
|
1584
1587
|
}
|
|
1585
|
-
(_this$
|
|
1588
|
+
(_this$grid7 = this.grid) === null || _this$grid7 === void 0 ? void 0 : _this$grid7.forceUpdate();
|
|
1586
1589
|
}
|
|
1587
1590
|
handleColumnVisibilityReset() {
|
|
1588
1591
|
var _model$layoutHints$fr, _model$layoutHints2;
|
|
@@ -1616,8 +1619,8 @@ export class IrisGrid extends Component {
|
|
|
1616
1619
|
});
|
|
1617
1620
|
}
|
|
1618
1621
|
handleAnimationLoop() {
|
|
1619
|
-
var _this$
|
|
1620
|
-
(_this$
|
|
1622
|
+
var _this$grid8;
|
|
1623
|
+
(_this$grid8 = this.grid) === null || _this$grid8 === void 0 ? void 0 : _this$grid8.updateCanvas();
|
|
1621
1624
|
if (this.isAnimating) {
|
|
1622
1625
|
this.animationFrame = requestAnimationFrame(this.handleAnimationLoop);
|
|
1623
1626
|
}
|
|
@@ -1662,7 +1665,7 @@ export class IrisGrid extends Component {
|
|
|
1662
1665
|
onError(error);
|
|
1663
1666
|
}
|
|
1664
1667
|
showAllColumns() {
|
|
1665
|
-
var _this$
|
|
1668
|
+
var _this$grid9;
|
|
1666
1669
|
var {
|
|
1667
1670
|
metricCalculator
|
|
1668
1671
|
} = this.state;
|
|
@@ -1674,7 +1677,7 @@ export class IrisGrid extends Component {
|
|
|
1674
1677
|
metricCalculator.resetColumnWidth(modelIndex);
|
|
1675
1678
|
}
|
|
1676
1679
|
}
|
|
1677
|
-
(_this$
|
|
1680
|
+
(_this$grid9 = this.grid) === null || _this$grid9 === void 0 ? void 0 : _this$grid9.forceUpdate();
|
|
1678
1681
|
}
|
|
1679
1682
|
toggleSort(columnIndex, addToExisting) {
|
|
1680
1683
|
log.info('Toggling sort for column', columnIndex);
|
|
@@ -1694,15 +1697,15 @@ export class IrisGrid extends Component {
|
|
|
1694
1697
|
}
|
|
1695
1698
|
}
|
|
1696
1699
|
updateSorts(sorts) {
|
|
1697
|
-
var _this$
|
|
1700
|
+
var _this$grid10;
|
|
1698
1701
|
this.startLoading('Sorting...');
|
|
1699
1702
|
this.setState({
|
|
1700
1703
|
sorts
|
|
1701
1704
|
});
|
|
1702
|
-
(_this$
|
|
1705
|
+
(_this$grid10 = this.grid) === null || _this$grid10 === void 0 ? void 0 : _this$grid10.forceUpdate();
|
|
1703
1706
|
}
|
|
1704
1707
|
sortColumn(modelColumn) {
|
|
1705
|
-
var _this$
|
|
1708
|
+
var _this$grid11;
|
|
1706
1709
|
var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : TableUtils.sortDirection.none;
|
|
1707
1710
|
var isAbs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
1708
1711
|
var addToExisting = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
@@ -1715,15 +1718,15 @@ export class IrisGrid extends Component {
|
|
|
1715
1718
|
this.setState({
|
|
1716
1719
|
sorts
|
|
1717
1720
|
});
|
|
1718
|
-
(_this$
|
|
1721
|
+
(_this$grid11 = this.grid) === null || _this$grid11 === void 0 ? void 0 : _this$grid11.forceUpdate();
|
|
1719
1722
|
}
|
|
1720
1723
|
reverse(reverseType) {
|
|
1721
|
-
var _this$
|
|
1724
|
+
var _this$grid12;
|
|
1722
1725
|
this.startLoading('Reversing...');
|
|
1723
1726
|
this.setState({
|
|
1724
1727
|
reverseType
|
|
1725
1728
|
});
|
|
1726
|
-
(_this$
|
|
1729
|
+
(_this$grid12 = this.grid) === null || _this$grid12 === void 0 ? void 0 : _this$grid12.forceUpdate();
|
|
1727
1730
|
}
|
|
1728
1731
|
isReversible() {
|
|
1729
1732
|
var {
|
|
@@ -1764,8 +1767,8 @@ export class IrisGrid extends Component {
|
|
|
1764
1767
|
this.focusFilterBar(columnIndex);
|
|
1765
1768
|
}
|
|
1766
1769
|
} else {
|
|
1767
|
-
var _this$
|
|
1768
|
-
(_this$
|
|
1770
|
+
var _this$grid13;
|
|
1771
|
+
(_this$grid13 = this.grid) === null || _this$grid13 === void 0 ? void 0 : _this$grid13.focus();
|
|
1769
1772
|
}
|
|
1770
1773
|
}
|
|
1771
1774
|
isTableSearchAvailable() {
|
|
@@ -1802,13 +1805,13 @@ export class IrisGrid extends Component {
|
|
|
1802
1805
|
var _this$crossColumnRef2;
|
|
1803
1806
|
(_this$crossColumnRef2 = this.crossColumnRef) === null || _this$crossColumnRef2 === void 0 ? void 0 : _this$crossColumnRef2.current.focus();
|
|
1804
1807
|
} else {
|
|
1805
|
-
var _this$
|
|
1806
|
-
(_this$
|
|
1808
|
+
var _this$grid14;
|
|
1809
|
+
(_this$grid14 = this.grid) === null || _this$grid14 === void 0 ? void 0 : _this$grid14.focus();
|
|
1807
1810
|
}
|
|
1808
1811
|
});
|
|
1809
1812
|
}
|
|
1810
1813
|
toggleGotoRow() {
|
|
1811
|
-
var _this$
|
|
1814
|
+
var _this$grid15, _this$grid16;
|
|
1812
1815
|
var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
1813
1816
|
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1814
1817
|
var columnName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
@@ -1829,8 +1832,8 @@ export class IrisGrid extends Component {
|
|
|
1829
1832
|
(_this$gotoRowRef$curr = this.gotoRowRef.current) === null || _this$gotoRowRef$curr === void 0 ? void 0 : _this$gotoRowRef$curr.focus();
|
|
1830
1833
|
return;
|
|
1831
1834
|
}
|
|
1832
|
-
var cursorRow = (_this$
|
|
1833
|
-
var cursorColumn = (_this$
|
|
1835
|
+
var cursorRow = (_this$grid15 = this.grid) === null || _this$grid15 === void 0 ? void 0 : _this$grid15.state.cursorRow;
|
|
1836
|
+
var cursorColumn = (_this$grid16 = this.grid) === null || _this$grid16 === void 0 ? void 0 : _this$grid16.state.cursorColumn;
|
|
1834
1837
|
if (cursorRow == null || cursorColumn == null) {
|
|
1835
1838
|
// if a cell is not selected / grid is not rendered
|
|
1836
1839
|
this.setState({
|
|
@@ -1985,7 +1988,7 @@ export class IrisGrid extends Component {
|
|
|
1985
1988
|
this.setAdvancedFilter(index, filter, options);
|
|
1986
1989
|
}
|
|
1987
1990
|
handleAdvancedFilterSortChange(column, direction) {
|
|
1988
|
-
var _this$
|
|
1991
|
+
var _this$grid17;
|
|
1989
1992
|
var addToExisting = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
1990
1993
|
var {
|
|
1991
1994
|
model
|
|
@@ -2008,11 +2011,11 @@ export class IrisGrid extends Component {
|
|
|
2008
2011
|
this.setState({
|
|
2009
2012
|
sorts
|
|
2010
2013
|
});
|
|
2011
|
-
(_this$
|
|
2014
|
+
(_this$grid17 = this.grid) === null || _this$grid17 === void 0 ? void 0 : _this$grid17.forceUpdate();
|
|
2012
2015
|
}
|
|
2013
2016
|
handleAdvancedFilterDone() {
|
|
2014
|
-
var _this$
|
|
2015
|
-
(_this$
|
|
2017
|
+
var _this$grid18;
|
|
2018
|
+
(_this$grid18 = this.grid) === null || _this$grid18 === void 0 ? void 0 : _this$grid18.focus();
|
|
2016
2019
|
}
|
|
2017
2020
|
handleAdvancedMenuOpened(column) {
|
|
2018
2021
|
this.setState({
|
|
@@ -2094,8 +2097,8 @@ export class IrisGrid extends Component {
|
|
|
2094
2097
|
var setGridFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
2095
2098
|
var defocusInput = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
2096
2099
|
if (setGridFocus) {
|
|
2097
|
-
var _this$
|
|
2098
|
-
(_this$
|
|
2100
|
+
var _this$grid19;
|
|
2101
|
+
(_this$grid19 = this.grid) === null || _this$grid19 === void 0 ? void 0 : _this$grid19.focus();
|
|
2099
2102
|
}
|
|
2100
2103
|
if (defocusInput) {
|
|
2101
2104
|
this.setState({
|
|
@@ -2185,7 +2188,7 @@ export class IrisGrid extends Component {
|
|
|
2185
2188
|
}
|
|
2186
2189
|
}
|
|
2187
2190
|
handleUpdate() {
|
|
2188
|
-
var _this$
|
|
2191
|
+
var _this$grid20;
|
|
2189
2192
|
log.debug2('Received model update');
|
|
2190
2193
|
var {
|
|
2191
2194
|
advancedFilters,
|
|
@@ -2214,17 +2217,17 @@ export class IrisGrid extends Component {
|
|
|
2214
2217
|
} else {
|
|
2215
2218
|
this.lastLoadedConfig = null;
|
|
2216
2219
|
}
|
|
2217
|
-
(_this$
|
|
2220
|
+
(_this$grid20 = this.grid) === null || _this$grid20 === void 0 ? void 0 : _this$grid20.forceUpdate();
|
|
2218
2221
|
this.stopLoading();
|
|
2219
2222
|
}
|
|
2220
2223
|
handleViewChanged(metrics) {
|
|
2221
|
-
var _this$grid$state, _this$
|
|
2224
|
+
var _this$grid$state, _this$grid21;
|
|
2222
2225
|
var {
|
|
2223
2226
|
model
|
|
2224
2227
|
} = this.props;
|
|
2225
2228
|
var {
|
|
2226
2229
|
selectionEndRow = 0
|
|
2227
|
-
} = (_this$grid$state = (_this$
|
|
2230
|
+
} = (_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 : {};
|
|
2228
2231
|
var pendingRowCount = 0;
|
|
2229
2232
|
if (isEditableGridModel(model) && model.isEditable) {
|
|
2230
2233
|
assertNotNull(metrics);
|
|
@@ -2252,7 +2255,7 @@ export class IrisGrid extends Component {
|
|
|
2252
2255
|
});
|
|
2253
2256
|
}
|
|
2254
2257
|
handleSelectionChanged(selectedRanges) {
|
|
2255
|
-
var _this$
|
|
2258
|
+
var _this$grid22;
|
|
2256
2259
|
assertNotNull(selectedRanges);
|
|
2257
2260
|
var {
|
|
2258
2261
|
onSelectionChanged
|
|
@@ -2268,7 +2271,7 @@ export class IrisGrid extends Component {
|
|
|
2268
2271
|
copyOperation: null
|
|
2269
2272
|
});
|
|
2270
2273
|
}
|
|
2271
|
-
if (((_this$
|
|
2274
|
+
if (((_this$grid22 = this.grid) === null || _this$grid22 === void 0 ? void 0 : _this$grid22.state.cursorRow) != null) {
|
|
2272
2275
|
this.setState({
|
|
2273
2276
|
gotoRow: "".concat(this.grid.state.cursorRow + 1)
|
|
2274
2277
|
});
|
|
@@ -2287,8 +2290,8 @@ export class IrisGrid extends Component {
|
|
|
2287
2290
|
this.setState({
|
|
2288
2291
|
columnHeaderGroups: IrisGridUtils.parseColumnHeaderGroups(model, columnHeaderGroups).groups
|
|
2289
2292
|
}, () => {
|
|
2290
|
-
var _this$
|
|
2291
|
-
return (_this$
|
|
2293
|
+
var _this$grid23;
|
|
2294
|
+
return (_this$grid23 = this.grid) === null || _this$grid23 === void 0 ? void 0 : _this$grid23.forceUpdate();
|
|
2292
2295
|
});
|
|
2293
2296
|
}
|
|
2294
2297
|
handleTooltipRef(tooltip) {
|
|
@@ -2427,9 +2430,9 @@ export class IrisGrid extends Component {
|
|
|
2427
2430
|
isReady
|
|
2428
2431
|
} = this.state;
|
|
2429
2432
|
if (isReady) {
|
|
2430
|
-
var _this$
|
|
2433
|
+
var _this$grid24;
|
|
2431
2434
|
this.stopLoading();
|
|
2432
|
-
(_this$
|
|
2435
|
+
(_this$grid24 = this.grid) === null || _this$grid24 === void 0 ? void 0 : _this$grid24.forceUpdate();
|
|
2433
2436
|
} else {
|
|
2434
2437
|
this.initState();
|
|
2435
2438
|
}
|
|
@@ -2441,7 +2444,7 @@ export class IrisGrid extends Component {
|
|
|
2441
2444
|
return this.discardPending();
|
|
2442
2445
|
}
|
|
2443
2446
|
handlePendingDataUpdated() {
|
|
2444
|
-
var _this$
|
|
2447
|
+
var _this$grid25;
|
|
2445
2448
|
log.debug('pending data updated');
|
|
2446
2449
|
var {
|
|
2447
2450
|
model
|
|
@@ -2455,7 +2458,7 @@ export class IrisGrid extends Component {
|
|
|
2455
2458
|
pendingDataErrors,
|
|
2456
2459
|
pendingSaveError: null
|
|
2457
2460
|
});
|
|
2458
|
-
(_this$
|
|
2461
|
+
(_this$grid25 = this.grid) === null || _this$grid25 === void 0 ? void 0 : _this$grid25.forceUpdate();
|
|
2459
2462
|
}
|
|
2460
2463
|
|
|
2461
2464
|
/**
|
|
@@ -2815,22 +2818,22 @@ export class IrisGrid extends Component {
|
|
|
2815
2818
|
gotoRowError: 'Invalid row index'
|
|
2816
2819
|
});
|
|
2817
2820
|
} else if (rowInt === 0) {
|
|
2818
|
-
var _this$
|
|
2821
|
+
var _this$grid26;
|
|
2819
2822
|
this.setState({
|
|
2820
2823
|
gotoRowError: '',
|
|
2821
2824
|
gotoValueError: ''
|
|
2822
2825
|
});
|
|
2823
|
-
(_this$
|
|
2826
|
+
(_this$grid26 = this.grid) === null || _this$grid26 === void 0 ? void 0 : _this$grid26.setFocusRow(0);
|
|
2824
2827
|
} else if (rowInt < 0) {
|
|
2825
|
-
var _this$
|
|
2828
|
+
var _this$grid27;
|
|
2826
2829
|
this.setState({
|
|
2827
2830
|
gotoRowError: '',
|
|
2828
2831
|
gotoValueError: ''
|
|
2829
2832
|
});
|
|
2830
|
-
(_this$
|
|
2833
|
+
(_this$grid27 = this.grid) === null || _this$grid27 === void 0 ? void 0 : _this$grid27.setFocusRow(rowInt + rowCount);
|
|
2831
2834
|
} else {
|
|
2832
|
-
var _this$
|
|
2833
|
-
(_this$
|
|
2835
|
+
var _this$grid28;
|
|
2836
|
+
(_this$grid28 = this.grid) === null || _this$grid28 === void 0 ? void 0 : _this$grid28.setFocusRow(rowInt - 1);
|
|
2834
2837
|
this.setState({
|
|
2835
2838
|
gotoRowError: '',
|
|
2836
2839
|
gotoValueError: ''
|
|
@@ -2930,11 +2933,11 @@ export class IrisGrid extends Component {
|
|
|
2930
2933
|
});
|
|
2931
2934
|
}
|
|
2932
2935
|
handleGotoValueSelectedColumnNameChanged(columnName) {
|
|
2933
|
-
var _this$
|
|
2936
|
+
var _this$grid29;
|
|
2934
2937
|
var {
|
|
2935
2938
|
model
|
|
2936
2939
|
} = this.props;
|
|
2937
|
-
var cursorRow = (_this$
|
|
2940
|
+
var cursorRow = (_this$grid29 = this.grid) === null || _this$grid29 === void 0 ? void 0 : _this$grid29.state.cursorRow;
|
|
2938
2941
|
if (cursorRow != null) {
|
|
2939
2942
|
var _index = model.getColumnIndexByName(columnName);
|
|
2940
2943
|
var _column2 = IrisGridUtils.getColumnByName(model.columns, columnName);
|
|
@@ -2970,8 +2973,8 @@ export class IrisGrid extends Component {
|
|
|
2970
2973
|
var _rollupConfig$columns3,
|
|
2971
2974
|
_rollupConfig$columns4,
|
|
2972
2975
|
_this6 = this,
|
|
2973
|
-
_this$
|
|
2974
|
-
_this$
|
|
2976
|
+
_this$grid31,
|
|
2977
|
+
_this$grid31$state$dr,
|
|
2975
2978
|
_openOptions;
|
|
2976
2979
|
var {
|
|
2977
2980
|
children,
|
|
@@ -3088,7 +3091,7 @@ export class IrisGrid extends Component {
|
|
|
3088
3091
|
var columnX = allColumnXs.get(focusedFilterBarColumn);
|
|
3089
3092
|
var columnWidth = allColumnWidths.get(focusedFilterBarColumn);
|
|
3090
3093
|
if (columnX != null && columnWidth != null) {
|
|
3091
|
-
var _theme$filterBarHeigh, _theme$filterBarHeigh2, _this$
|
|
3094
|
+
var _theme$filterBarHeigh, _theme$filterBarHeigh2, _this$grid30;
|
|
3092
3095
|
var x = gridX + columnX;
|
|
3093
3096
|
var y = gridY - ((_theme$filterBarHeigh = theme.filterBarHeight) !== null && _theme$filterBarHeigh !== void 0 ? _theme$filterBarHeigh : 0);
|
|
3094
3097
|
var fieldWidth = columnWidth + 1; // cover right border
|
|
@@ -3128,7 +3131,7 @@ export class IrisGrid extends Component {
|
|
|
3128
3131
|
onChange: this.handleFilterBarChange,
|
|
3129
3132
|
onDone: this.handleFilterBarDone,
|
|
3130
3133
|
onTab: this.handleFilterBarTab,
|
|
3131
|
-
onContextMenu: (_this$
|
|
3134
|
+
onContextMenu: (_this$grid30 = this.grid) === null || _this$grid30 === void 0 ? void 0 : _this$grid30.handleContextMenu,
|
|
3132
3135
|
debounceMs: debounceMs,
|
|
3133
3136
|
value: _value4
|
|
3134
3137
|
}, focusedFilterBarColumn);
|
|
@@ -3468,32 +3471,27 @@ export class IrisGrid extends Component {
|
|
|
3468
3471
|
ref: this.crossColumnRef
|
|
3469
3472
|
})
|
|
3470
3473
|
})
|
|
3471
|
-
}), /*#__PURE__*/_jsxs(
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
this.gridWrapper = gridWrapper;
|
|
3474
|
+
}), /*#__PURE__*/_jsxs(Grid, {
|
|
3475
|
+
ref: grid => {
|
|
3476
|
+
this.grid = grid;
|
|
3475
3477
|
},
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
renderer: this.renderer,
|
|
3494
|
-
stateOverride: stateOverride,
|
|
3495
|
-
theme: theme
|
|
3496
|
-
}), /*#__PURE__*/_jsx(IrisGridCellOverflowModal, {
|
|
3478
|
+
isStickyBottom: !isEditableGridModel(model) || !model.isEditable,
|
|
3479
|
+
isStuckToBottom: isStuckToBottom,
|
|
3480
|
+
isStuckToRight: isStuckToRight,
|
|
3481
|
+
metricCalculator: metricCalculator,
|
|
3482
|
+
model: model,
|
|
3483
|
+
keyHandlers: keyHandlers,
|
|
3484
|
+
mouseHandlers: mouseHandlers,
|
|
3485
|
+
movedColumns: movedColumns,
|
|
3486
|
+
movedRows: movedRows,
|
|
3487
|
+
onError: this.handleGridError,
|
|
3488
|
+
onViewChanged: this.handleViewChanged,
|
|
3489
|
+
onSelectionChanged: this.handleSelectionChanged,
|
|
3490
|
+
onMovedColumnsChanged: this.handleMovedColumnsChanged,
|
|
3491
|
+
renderer: this.renderer,
|
|
3492
|
+
stateOverride: stateOverride,
|
|
3493
|
+
theme: theme,
|
|
3494
|
+
children: [/*#__PURE__*/_jsx(IrisGridCellOverflowModal, {
|
|
3497
3495
|
isOpen: showOverflowModal,
|
|
3498
3496
|
text: overflowText,
|
|
3499
3497
|
onClose: this.handleOverflowClose
|
|
@@ -3511,7 +3509,7 @@ export class IrisGrid extends Component {
|
|
|
3511
3509
|
movedColumns: movedColumns,
|
|
3512
3510
|
customColumns: customColumns,
|
|
3513
3511
|
hiddenColumns: hiddenColumns,
|
|
3514
|
-
alwaysFetchColumns: this.getAlwaysFetchColumns(alwaysFetchColumns, model.columns, movedColumns, model.floatingLeftColumnCount, model.floatingRightColumnCount, (_this$
|
|
3512
|
+
alwaysFetchColumns: this.getAlwaysFetchColumns(alwaysFetchColumns, model.columns, movedColumns, model.floatingLeftColumnCount, model.floatingRightColumnCount, (_this$grid31 = this.grid) === null || _this$grid31 === void 0 ? void 0 : (_this$grid31$state$dr = _this$grid31.state.draggingColumn) === null || _this$grid31$state$dr === void 0 ? void 0 : _this$grid31$state$dr.range),
|
|
3515
3513
|
formatColumns: this.getCachedPreviewFormatColumns(model.dh, model.columns, conditionalFormats, conditionalFormatPreview,
|
|
3516
3514
|
// Disable the preview format when we press Back on the format edit page
|
|
3517
3515
|
((_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),
|