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