@refinitiv-ui/efx-grid 6.0.6 → 6.0.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/lib/column-dragging/es6/index.js +1 -1
- package/lib/core/dist/core.js +85 -41
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataTable.js +11 -1
- package/lib/core/es6/data/Segment.d.ts +4 -0
- package/lib/core/es6/data/Segment.js +16 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +2 -0
- package/lib/core/es6/data/SegmentCollection.js +38 -36
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/core/es6/grid/components/Cell.js +3 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +2 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +7 -0
- package/lib/core/es6/grid/components/StretchedCells.js +7 -3
- package/lib/core/es6/index.d.ts +1 -0
- package/lib/core/es6/index.js +2 -0
- package/lib/formatters/es6/index.d.ts +1 -1
- package/lib/formatters/es6/index.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/grid/lib/efx-grid.d.ts +3 -3
- package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
- package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/grid/themes/halo/light/efx-grid.js +1 -1
- package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/grid/themes/solar/charcoal/efx-grid.js +1 -1
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/row-segmenting/es6/index.js +1 -1
- package/lib/rt-grid/es6/index.js +3 -3
- package/lib/statistics-row/es6/index.js +1 -1
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -1
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +37 -26
- package/lib/tr-grid-cell-selection/es6/index.js +1 -1
- package/lib/tr-grid-checkbox/es6/index.js +1 -1
- package/lib/tr-grid-column-fitter/es6/index.js +1 -1
- package/lib/tr-grid-column-formatting/es6/index.js +1 -1
- package/lib/tr-grid-column-grouping/es6/index.js +1 -1
- package/lib/tr-grid-column-resizing/es6/index.js +1 -1
- package/lib/tr-grid-column-selection/es6/index.js +1 -1
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +13 -1
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +232 -19
- package/lib/tr-grid-column-stack/es6/index.js +1 -1
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -1
- package/lib/tr-grid-content-wrap/es6/index.js +1 -1
- package/lib/tr-grid-contextmenu/es6/index.js +1 -1
- package/lib/tr-grid-filter-input/es6/index.js +1 -1
- package/lib/tr-grid-heat-map/es6/index.js +1 -1
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -1
- package/lib/tr-grid-pagination/es6/index.js +1 -1
- package/lib/tr-grid-percent-bar/es6/index.js +1 -1
- package/lib/tr-grid-printer/es6/index.js +1 -1
- package/lib/tr-grid-range-bar/es6/index.js +1 -1
- package/lib/tr-grid-row-dragging/es6/index.js +1 -1
- package/lib/tr-grid-row-filtering/es6/index.js +1 -1
- package/lib/tr-grid-row-grouping/es6/index.js +1 -1
- package/lib/tr-grid-row-selection/es6/index.js +1 -1
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -1
- package/lib/tr-grid-textformatting/es6/index.js +1 -1
- package/lib/tr-grid-titlewrap/es6/index.js +1 -1
- package/lib/tr-grid-util/es6/RowPainter.js +6 -1
- package/lib/types/es6/CellSelection.d.ts +11 -11
- package/lib/types/es6/Core/data/Segment.d.ts +4 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +2 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +2 -0
- package/lib/types/es6/Core/index.d.ts +1 -0
- package/lib/versions.json +4 -4
- package/lib/zoom/es6/index.js +1 -1
- package/package.json +2 -2
@@ -35,10 +35,12 @@ var ColumnStackPlugin = function () {
|
|
35
35
|
this._onColumnAdded = this._onColumnAdded.bind(this);
|
36
36
|
this._onStackButtonClicked = this._onStackButtonClicked.bind(this);
|
37
37
|
this._updateUI = this._updateUI.bind(this);
|
38
|
+
this._setStack = this._setStack.bind(this);
|
38
39
|
this._hosts = [];
|
39
40
|
this._stacks = {};
|
40
41
|
|
41
42
|
this._conflator = new Conflator(100, this._updateUI);
|
43
|
+
this._stackConflator = new Conflator(100, this._setStack);
|
42
44
|
};
|
43
45
|
|
44
46
|
Ext.inherits(ColumnStackPlugin, GridPlugin);
|
@@ -133,6 +135,7 @@ ColumnStackPlugin.prototype.unload = function (host) {
|
|
133
135
|
|
134
136
|
if(this._hosts.length <= 0) {
|
135
137
|
this._conflator.reset();
|
138
|
+
this._stackConflator.reset();
|
136
139
|
this._stacks = {};
|
137
140
|
}
|
138
141
|
this._dispose();
|
@@ -384,6 +387,9 @@ ColumnStackPlugin.prototype._moveStackedColumns = function (stackRefs) {
|
|
384
387
|
for(var i = 1; i < len; ++i) {
|
385
388
|
var fromIndex = this._getColumnIndex(stackRefs[i]);
|
386
389
|
var destIndex = this._getColumnIndex(stackRefs[0]); // Active Column may be shifted due to the move
|
390
|
+
if(fromIndex < destIndex){
|
391
|
+
destIndex -= 1;
|
392
|
+
}
|
387
393
|
this._moveColumn(fromIndex, destIndex + i);
|
388
394
|
}
|
389
395
|
};
|
@@ -766,14 +772,15 @@ ColumnStackPlugin.prototype.getStackId = function(colIndex) {
|
|
766
772
|
* @param {Array.<number|string>=} colRefs Names of fields or column indices. If not specified, selected columns will be used.
|
767
773
|
* @param {string=} stackId Must be unique
|
768
774
|
* @param {Object=} options
|
775
|
+
* @param {boolean=} sort Default to true. If enable and colRefs are column indices, column in stack will be sorted
|
769
776
|
* @return {boolean} Return true if all of the given columns is stacked together
|
770
777
|
*/
|
771
|
-
ColumnStackPlugin.prototype.stackColumns = function(colRefs, stackId, options) {
|
778
|
+
ColumnStackPlugin.prototype.stackColumns = function(colRefs, stackId, options, sort) {
|
772
779
|
if(!colRefs) {
|
773
780
|
colRefs = this._getSelectedColumns();
|
774
781
|
}
|
775
782
|
|
776
|
-
var needSorting = true;
|
783
|
+
var needSorting = sort !== null ? sort : true;
|
777
784
|
if(colRefs.length) {
|
778
785
|
if(typeof colRefs[0] === "string") {// Do not sort in the case of field stack
|
779
786
|
needSorting = false;
|
@@ -826,14 +833,12 @@ ColumnStackPlugin.prototype.stackColumns = function(colRefs, stackId, options) {
|
|
826
833
|
}
|
827
834
|
}
|
828
835
|
|
836
|
+
// Make sure that all columns stay packed together
|
837
|
+
this._moveStackedColumns(stack.stackRefs);
|
838
|
+
|
829
839
|
if(stack.spreading) {
|
830
|
-
// Make sure that all columns stay packed together
|
831
|
-
this._moveStackedColumns(stack.stackRefs);
|
832
840
|
stack.activeColumn = stack.stackRefs[stack.stackRefs.length - 1]; // Right most column is the active column
|
833
841
|
} else {
|
834
|
-
// Do not move column here to prevent column header from being unrendered because of swapped column index in header binding.
|
835
|
-
// Stacked columns will be moved in the unstacking method.
|
836
|
-
// TODO: Column title will not be rendered in Realtime Grid in the case of column added event.
|
837
842
|
stack.activeColumn = stack.stackRefs[0]; // Left most column is the active column
|
838
843
|
var csp = this._getPlugin("ColumnSelectionPlugin");
|
839
844
|
if(csp && csp.isEnabled()) {
|
@@ -974,7 +979,7 @@ ColumnStackPlugin.prototype.unstackColumns = function(colIndices) {
|
|
974
979
|
if(!stackOpt) {
|
975
980
|
continue; // Invalid index
|
976
981
|
}
|
977
|
-
if(stackOpt.collapsed === true) {
|
982
|
+
if(stackOpt.collapsed === true && stackOpt.spreading === true) {
|
978
983
|
this.expandGroup(colIndex);
|
979
984
|
}
|
980
985
|
stacks[stackOpt.stackId] = 1; // Exclude duplicate stacks
|
@@ -992,9 +997,6 @@ ColumnStackPlugin.prototype.unstackColumns = function(colIndices) {
|
|
992
997
|
dirty = true;
|
993
998
|
|
994
999
|
var stackRefs = stack.stackRefs;
|
995
|
-
if(stack.spreading !== true) {
|
996
|
-
this._moveStackedColumns(stackRefs);
|
997
|
-
}
|
998
1000
|
len = stackRefs.length;
|
999
1001
|
if(stack.spreading) {
|
1000
1002
|
selFrom = this._getColumnIndex(stack.stackRefs[0]);
|
@@ -1038,9 +1040,6 @@ ColumnStackPlugin.prototype.removeAllStacks = function(enableUpdateUI) {
|
|
1038
1040
|
dirty = true;
|
1039
1041
|
|
1040
1042
|
var stackRefs = stack.stackRefs;
|
1041
|
-
if(stack.spreading !== true && enableUpdateUI) {
|
1042
|
-
this._moveStackedColumns(stackRefs);
|
1043
|
-
}
|
1044
1043
|
|
1045
1044
|
var len = stackRefs.length;
|
1046
1045
|
for(var i = 0; i < len; ++i) {
|
@@ -1297,11 +1296,7 @@ ColumnStackPlugin.prototype._onColumnAdded = function (e) {
|
|
1297
1296
|
|
1298
1297
|
var columnStack = this._columnStack;
|
1299
1298
|
if (columnStack) {
|
1300
|
-
|
1301
|
-
if (colIndices.length > 1) {
|
1302
|
-
this.removeAllStacks(false);
|
1303
|
-
this.stackColumns(columnStack.fields, null, columnStack);
|
1304
|
-
}
|
1299
|
+
this._setStack(); // asynchronous
|
1305
1300
|
} else {
|
1306
1301
|
// add to group
|
1307
1302
|
var leftStackOpt = this._getColumnStackOptions(colIndex - 1);
|
@@ -1364,6 +1359,224 @@ ColumnStackPlugin.prototype._onStackButtonClicked = function(e) {
|
|
1364
1359
|
this._dispatch("clicked", pos);
|
1365
1360
|
};
|
1366
1361
|
|
1362
|
+
/** Remove existing stacks and apply persist stack
|
1363
|
+
* @private
|
1364
|
+
*/
|
1365
|
+
ColumnStackPlugin.prototype._setStack = function() {
|
1366
|
+
if(this._stackConflator.conflate()) {
|
1367
|
+
return;
|
1368
|
+
}
|
1369
|
+
|
1370
|
+
var columnStack = this._columnStack;
|
1371
|
+
if(columnStack){
|
1372
|
+
var colIndices = this.getColumnIndices(columnStack.fields);
|
1373
|
+
if (colIndices.length > 1) {
|
1374
|
+
this.removeAllStacks(false);
|
1375
|
+
this.stackColumns(columnStack.fields, null, columnStack);
|
1376
|
+
}
|
1377
|
+
}
|
1378
|
+
};
|
1379
|
+
|
1380
|
+
/** @public
|
1381
|
+
* @description Get member column indices in a stack
|
1382
|
+
* @param {string} stackId
|
1383
|
+
* @return {!Array.<number>} Member column indices
|
1384
|
+
*/
|
1385
|
+
ColumnStackPlugin.prototype.getStackMemberIndices = function(stackId) {
|
1386
|
+
var memberIndices = [];
|
1387
|
+
if(stackId !== null) {
|
1388
|
+
var stack = this._stacks[stackId];
|
1389
|
+
if(stack){
|
1390
|
+
var stackRefs = stack.stackRefs;
|
1391
|
+
for(var i = 0; i < stackRefs.length; ++i) {
|
1392
|
+
var stackRef = stackRefs[i];
|
1393
|
+
var colIndex = this._getColumnIndex(stackRef);
|
1394
|
+
memberIndices.push(colIndex);
|
1395
|
+
}
|
1396
|
+
}
|
1397
|
+
}
|
1398
|
+
return memberIndices;
|
1399
|
+
};
|
1400
|
+
|
1401
|
+
/** @public
|
1402
|
+
* @description Get list member column id in a stack
|
1403
|
+
* @param {string} stackId
|
1404
|
+
* @return {!Array.<string>} Member column ids
|
1405
|
+
*/
|
1406
|
+
ColumnStackPlugin.prototype.getStackMemberIds = function(stackId) {
|
1407
|
+
var memberIndices = this.getStackMemberIndices(stackId);
|
1408
|
+
return this.getColumnIdsByIndex(memberIndices);
|
1409
|
+
};
|
1410
|
+
|
1411
|
+
/** @public
|
1412
|
+
* @description Get column id by column index or indices
|
1413
|
+
* @param {number|Array<number>} columnIndex
|
1414
|
+
* @return {!Array.<string>} Column ids
|
1415
|
+
*/
|
1416
|
+
ColumnStackPlugin.prototype.getColumnIdsByIndex = function(columnIndex) {
|
1417
|
+
var colIndices = [];
|
1418
|
+
var colIds = [];
|
1419
|
+
if(Array.isArray(columnIndex)){
|
1420
|
+
colIndices = columnIndex;
|
1421
|
+
} else {
|
1422
|
+
colIndices.push(colIds);
|
1423
|
+
}
|
1424
|
+
for(var i = 0; i < colIndices.length; ++i) {
|
1425
|
+
var colId = this.getColumnId(colIndices[i]);
|
1426
|
+
colIds.push(colId);
|
1427
|
+
}
|
1428
|
+
return colIds;
|
1429
|
+
};
|
1430
|
+
|
1431
|
+
/** @public
|
1432
|
+
* @description Add specific column to a stack
|
1433
|
+
* @param {number|string} colRef column id or column index
|
1434
|
+
* @param {string} stackId
|
1435
|
+
*/
|
1436
|
+
ColumnStackPlugin.prototype.addColumnToStack = function(colRef, stackId) {
|
1437
|
+
if(typeof colRef === "string") {
|
1438
|
+
colRef = this.getColumnIndex(colRef);
|
1439
|
+
}
|
1440
|
+
|
1441
|
+
var stack = this._stacks[stackId];
|
1442
|
+
var isColumnStackable = this.isColumnStackable([colRef]);
|
1443
|
+
|
1444
|
+
// if column not stackable or destination stack not exist, do nothing
|
1445
|
+
if(!isColumnStackable || !stack){
|
1446
|
+
return;
|
1447
|
+
}
|
1448
|
+
|
1449
|
+
var isCollapsed = stack.spreading && stack.collapsed;
|
1450
|
+
if(isCollapsed){
|
1451
|
+
this.expandGroup(this._getColumnIndex(stack.activeColumn));
|
1452
|
+
}
|
1453
|
+
|
1454
|
+
// Prevent from flashing in stack mode
|
1455
|
+
if(colRef !== activeIndex && stack.collapsed !== false) {
|
1456
|
+
this._setColumnVisibility(colRef, false);
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
// apply stacking
|
1460
|
+
this._setColumnStackOptions(colRef, stack);
|
1461
|
+
stack.stackRefs.push(this._getColumnStacking(colRef));
|
1462
|
+
|
1463
|
+
if(stack.spreading) {
|
1464
|
+
stack.activeColumn = stack.stackRefs[stack.stackRefs.length - 1];
|
1465
|
+
stack.collapsed = isCollapsed;
|
1466
|
+
} else {
|
1467
|
+
stack.activeColumn = stack.stackRefs[0];
|
1468
|
+
}
|
1469
|
+
|
1470
|
+
var activeIndex = this._getColumnIndex(stack.activeColumn);
|
1471
|
+
|
1472
|
+
// Pack stacked columns together
|
1473
|
+
this._moveStackedColumns(stack.stackRefs);
|
1474
|
+
|
1475
|
+
this._updateUI();
|
1476
|
+
};
|
1477
|
+
|
1478
|
+
/** @public
|
1479
|
+
* @description Remove specific column from a stack
|
1480
|
+
* @param {number|string} colRef column id or column index
|
1481
|
+
*/
|
1482
|
+
ColumnStackPlugin.prototype.removeColumnFromStack = function(colRef) {
|
1483
|
+
if(typeof colRef === "string") {
|
1484
|
+
colRef = this.getColumnIndex(colRef);
|
1485
|
+
}
|
1486
|
+
var stackId = this.getStackId(colRef);
|
1487
|
+
var stack = this._stacks[stackId];
|
1488
|
+
if(!stack || colRef == -1) {
|
1489
|
+
return; // Invalid column index or stackId
|
1490
|
+
}
|
1491
|
+
|
1492
|
+
var stackMembers = this.getStackMemberIndices(stackId);
|
1493
|
+
var stackRefs = stack.stackRefs;
|
1494
|
+
|
1495
|
+
if(stackMembers.length < 3){
|
1496
|
+
this.unstackColumns(stackMembers);
|
1497
|
+
} else {
|
1498
|
+
var isCollapsed = stack.spreading && stack.collapsed;
|
1499
|
+
|
1500
|
+
for(var i = 0; i < stackRefs.length; ++i) {
|
1501
|
+
var stackRef = stackRefs[i];
|
1502
|
+
var colIndex = this._getColumnIndex(stackRef);
|
1503
|
+
|
1504
|
+
if(colIndex === colRef){
|
1505
|
+
if(isCollapsed) {
|
1506
|
+
this._collapseMember(stackMembers[i], false);
|
1507
|
+
}
|
1508
|
+
stackRefs.splice(i, 1);
|
1509
|
+
break;
|
1510
|
+
}
|
1511
|
+
}
|
1512
|
+
|
1513
|
+
this._removeColumnStackOptions(colRef);
|
1514
|
+
this._setColumnVisibility(colRef, true);
|
1515
|
+
|
1516
|
+
if(stack.spreading) {
|
1517
|
+
stack.activeColumn = stackRefs[stackRefs.length - 1];
|
1518
|
+
stack.collapsed = isCollapsed;
|
1519
|
+
} else {
|
1520
|
+
stack.activeColumn = stackRefs[0];
|
1521
|
+
}
|
1522
|
+
this._stacks[stackId] = stack;
|
1523
|
+
|
1524
|
+
this._moveStackedColumns(stack.stackRefs);
|
1525
|
+
this._updateUI();
|
1526
|
+
}
|
1527
|
+
};
|
1528
|
+
|
1529
|
+
/** @public
|
1530
|
+
* @description Reorder columns in a stack
|
1531
|
+
* @param {Array.<number|string>} colRefs column ids or column indices
|
1532
|
+
* @param {string} stackId
|
1533
|
+
*/
|
1534
|
+
ColumnStackPlugin.prototype.reorderStackColumns = function(colRefs, stackId) {
|
1535
|
+
var stack = this._stacks[stackId];
|
1536
|
+
if(!stack) {
|
1537
|
+
return;
|
1538
|
+
}
|
1539
|
+
|
1540
|
+
var stackMemberIndices = this.getStackMemberIndices(stackId);
|
1541
|
+
var stackMemberCount = stackMemberIndices.length;
|
1542
|
+
var len = colRefs.length;
|
1543
|
+
if(len) {
|
1544
|
+
if(typeof colRefs[0] === "string") {
|
1545
|
+
for(var j = 0; j < len; j++ ){
|
1546
|
+
colRefs[j] = this.getColumnIndex(colRefs[j]);
|
1547
|
+
}
|
1548
|
+
}
|
1549
|
+
}
|
1550
|
+
|
1551
|
+
var newStackMembers = [];
|
1552
|
+
for(var i = 0; i < len; i++ ){
|
1553
|
+
var colIndex = colRefs[i];
|
1554
|
+
if(stackMemberIndices.indexOf(colIndex) !== -1){
|
1555
|
+
newStackMembers.push(colIndex);
|
1556
|
+
}
|
1557
|
+
}
|
1558
|
+
if(newStackMembers.length !== stackMemberCount){
|
1559
|
+
for(i = 0; i < stackMemberCount; i++ ){
|
1560
|
+
var columnIndex = stackMemberIndices[i];
|
1561
|
+
if(newStackMembers.indexOf(columnIndex) === -1){
|
1562
|
+
newStackMembers.push(columnIndex);
|
1563
|
+
if(newStackMembers.length === stackMemberCount){
|
1564
|
+
break;
|
1565
|
+
}
|
1566
|
+
}
|
1567
|
+
}
|
1568
|
+
}
|
1569
|
+
|
1570
|
+
var options = {
|
1571
|
+
spreading: stack.spreading,
|
1572
|
+
collapsed: stack.collapsed
|
1573
|
+
};
|
1574
|
+
|
1575
|
+
this.unstackColumns(stackMemberIndices);
|
1576
|
+
this.stackColumns(newStackMembers, stackId, options, false);
|
1577
|
+
|
1578
|
+
};
|
1579
|
+
|
1367
1580
|
|
1368
1581
|
export default ColumnStackPlugin;
|
1369
1582
|
export { ColumnStackPlugin, ColumnStackPlugin as ColumnStack, ColumnStackPlugin as ColumnStackExtension };
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./ColumnStack";
|
1
|
+
export * from "./ColumnStack.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./ConditionalColoring";
|
1
|
+
export * from "./ConditionalColoring.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./ContentWrap";
|
1
|
+
export * from "./ContentWrap.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./ContextMenu";
|
1
|
+
export * from "./ContextMenu.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./FilterInput";
|
1
|
+
export * from "./FilterInput.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./HeatMap";
|
1
|
+
export * from "./HeatMap.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./InCellEditing";
|
1
|
+
export * from "./InCellEditing.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./Pagination";
|
1
|
+
export * from "./Pagination.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./PercentBar";
|
1
|
+
export * from "./PercentBar.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./GridPrinter";
|
1
|
+
export * from "./GridPrinter.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./RangeBar";
|
1
|
+
export * from "./RangeBar.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./RowDragging";
|
1
|
+
export * from "./RowDragging.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./RowFiltering";
|
1
|
+
export * from "./RowFiltering.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./RowGrouping";
|
1
|
+
export * from "./RowGrouping.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./RowSelection";
|
1
|
+
export * from "./RowSelection.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./RowColoring";
|
1
|
+
export * from "./RowColoring.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./TextFormatting";
|
1
|
+
export * from "./TextFormatting.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "./TitleWrap";
|
1
|
+
export * from "./TitleWrap.js";
|
@@ -289,7 +289,12 @@ RowPainter.prototype.applyHeaderStyle = function(e) {
|
|
289
289
|
|
290
290
|
section.enableRowClass(e.rowIndex, "group-member", false);
|
291
291
|
if (stretching) {
|
292
|
-
|
292
|
+
var stretchedCell = section.getStretchedCell(mainCol, r);
|
293
|
+
if(!stretchedCell) {
|
294
|
+
cell = e.cell = section.stretchCell(mainCol, r, stretching, true); // No left stretching. Header background is covered by folder class
|
295
|
+
} else {
|
296
|
+
cell = e.cell = stretchedCell;
|
297
|
+
}
|
293
298
|
|
294
299
|
// Remove content from cells that are on left side of the stretched cell
|
295
300
|
this._clearCellContent(section, 0, mainCol, r, checkboxColumnIndex);
|
@@ -7,14 +7,14 @@ import { isIE, cloneObject, prepareTSVContent } from "../../tr-grid-util/es6/Uti
|
|
7
7
|
declare namespace CellSelectionPlugin {
|
8
8
|
|
9
9
|
type Options = {
|
10
|
-
mode?: string,
|
11
|
-
multipleSelection?: boolean,
|
12
|
-
autoDeselecting?: boolean,
|
13
|
-
tabToSelect?: boolean,
|
14
|
-
selectionChanged?: ((...params: any[]) => any),
|
15
|
-
copy?: ((...params: any[]) => any),
|
16
|
-
beforeMouseDown?: ((...params: any[]) => any),
|
17
|
-
selectableSections?: any[]
|
10
|
+
mode?: string|null,
|
11
|
+
multipleSelection?: boolean|null,
|
12
|
+
autoDeselecting?: boolean|null,
|
13
|
+
tabToSelect?: boolean|null,
|
14
|
+
selectionChanged?: ((...params: any[]) => any)|null,
|
15
|
+
copy?: ((...params: any[]) => any)|null,
|
16
|
+
beforeMouseDown?: ((...params: any[]) => any)|null,
|
17
|
+
selectableSections?: any[]|null
|
18
18
|
};
|
19
19
|
|
20
20
|
}
|
@@ -41,7 +41,7 @@ declare class CellSelectionPlugin extends GridPlugin {
|
|
41
41
|
|
42
42
|
public getLastSelectionBounds(opt_ret?: any): any;
|
43
43
|
|
44
|
-
public setSelectableSections(types?: (string|(string)[]|null)): void;
|
44
|
+
public setSelectableSections(types?: (string|(string)[]|null)|null): void;
|
45
45
|
|
46
46
|
public selectSingleCell(anchor: any): void;
|
47
47
|
|
@@ -53,9 +53,9 @@ declare class CellSelectionPlugin extends GridPlugin {
|
|
53
53
|
|
54
54
|
public getAnchorInfo(): any;
|
55
55
|
|
56
|
-
public getSelectedCells(): (any[])[];
|
56
|
+
public getSelectedCells(): (any[])[]|null;
|
57
57
|
|
58
|
-
public disableSelection(opt_disable?: boolean): void;
|
58
|
+
public disableSelection(opt_disable?: boolean|null): void;
|
59
59
|
|
60
60
|
public setAutoDeselectingOnBlur(bool: boolean): void;
|
61
61
|
|
@@ -7,6 +7,8 @@ declare class CellFloatingPanel extends ElementWrapper {
|
|
7
7
|
|
8
8
|
public hasItem(): boolean;
|
9
9
|
|
10
|
+
public containItem(icon: Element|null): boolean;
|
11
|
+
|
10
12
|
public insertItem(item: Element|null, opt_order?: number|null): void;
|
11
13
|
|
12
14
|
public removeItem(elemRef?: (Element|string)|null): Element|null|null;
|
@@ -36,6 +36,7 @@ import ColumnStats from "./data/ColumnStats.js";
|
|
36
36
|
import DataCache from "./data/DataCache.js";
|
37
37
|
import DataTable from "./data/DataTable.js";
|
38
38
|
import DataView from "./data/DataView.js";
|
39
|
+
import SegmentCollection from "./data/SegmentCollection.js";
|
39
40
|
|
40
41
|
|
41
42
|
|
package/lib/versions.json
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
{
|
2
|
-
"tr-grid-util": "1.3.
|
2
|
+
"tr-grid-util": "1.3.78",
|
3
3
|
"@grid/column-dragging": "1.0.10",
|
4
4
|
"@grid/row-segmenting": "1.0.20",
|
5
5
|
"@grid/statistics-row": "1.0.13",
|
6
6
|
"@grid/zoom": "1.0.11",
|
7
7
|
"tr-grid-auto-tooltip": "1.1.5",
|
8
|
-
"tr-grid-cell-selection": "1.0.
|
8
|
+
"tr-grid-cell-selection": "1.0.32",
|
9
9
|
"tr-grid-checkbox": "1.0.59",
|
10
10
|
"tr-grid-column-fitter": "1.0.39",
|
11
11
|
"tr-grid-column-formatting": "0.9.34",
|
12
12
|
"tr-grid-column-grouping": "1.0.24",
|
13
13
|
"tr-grid-column-resizing": "1.0.26",
|
14
14
|
"tr-grid-column-selection": "1.0.25",
|
15
|
-
"tr-grid-column-stack": "1.0.
|
15
|
+
"tr-grid-column-stack": "1.0.39",
|
16
16
|
"tr-grid-conditional-coloring": "1.0.56",
|
17
17
|
"tr-grid-content-wrap": "1.0.19",
|
18
18
|
"tr-grid-contextmenu": "1.0.38",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"tr-grid-rowcoloring": "1.0.20",
|
31
31
|
"tr-grid-textformatting": "1.0.44",
|
32
32
|
"tr-grid-titlewrap": "1.0.19",
|
33
|
-
"@grid/formatters": "1.0.
|
33
|
+
"@grid/formatters": "1.0.49",
|
34
34
|
"@grid/column-selection-dialog": "4.0.44",
|
35
35
|
"@grid/filter-dialog": "4.0.52",
|
36
36
|
"@grid/column-format-dialog": "4.0.42"
|
package/lib/zoom/es6/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export * from "./Zoom";
|
1
|
+
export * from "./Zoom.js";
|
package/package.json
CHANGED
@@ -39,11 +39,11 @@
|
|
39
39
|
"./window-exporter": "./lib/window-exporter.js"
|
40
40
|
},
|
41
41
|
"peerDependencies": {
|
42
|
-
"@refinitiv-ui/core": "^6.
|
42
|
+
"@refinitiv-ui/core": "^6.2.0",
|
43
43
|
"@refinitiv-ui/elements": "^6.0.0"
|
44
44
|
},
|
45
45
|
"publishConfig": {
|
46
46
|
"access": "public"
|
47
47
|
},
|
48
|
-
"version": "6.0.
|
48
|
+
"version": "6.0.8"
|
49
49
|
}
|