@refinitiv-ui/efx-grid 6.0.104 → 6.0.106
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +7 -8
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +7 -8
- package/lib/formatters/es6/FormatterBuilder.js +10 -1
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +0 -2
- package/lib/formatters/es6/SimpleTickerFormatter.js +1 -0
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +375 -737
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/FieldDefinition.d.ts +2 -0
- package/lib/rt-grid/es6/FieldDefinition.js +23 -7
- package/lib/rt-grid/es6/Grid.d.ts +1 -1
- package/lib/rt-grid/es6/Grid.js +8 -49
- package/lib/rt-grid/es6/RowDefinition.d.ts +5 -3
- package/lib/rt-grid/es6/RowDefinition.js +49 -20
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +523 -708
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +16 -16
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +131 -109
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +6 -5
- package/lib/tr-grid-printer/es6/CellWriter.js +57 -49
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +1 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +3 -1
- package/lib/tr-grid-printer/es6/GridPrinter.js +117 -99
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +1 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +60 -47
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +4 -1
- package/lib/tr-grid-printer/es6/SectionWriter.js +40 -15
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +6 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +1 -0
- package/lib/types/es6/ColumnResizing.d.ts +16 -16
- package/lib/types/es6/Core/data/DataCache.d.ts +0 -8
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +2 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +1 -1
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +5 -3
- package/lib/versions.json +6 -6
- package/package.json +1 -1
@@ -574,7 +574,7 @@ Core.prototype._hasPendingRowChange = false;
|
|
574
574
|
* @return {string}
|
575
575
|
*/
|
576
576
|
Core.getVersion = function () {
|
577
|
-
return "5.1.
|
577
|
+
return "5.1.107";
|
578
578
|
};
|
579
579
|
/** {@link ElementWrapper#dispose}
|
580
580
|
* @override
|
@@ -5022,17 +5022,16 @@ Core.prototype._onSectionDataChanged = function (e) {
|
|
5022
5022
|
e["colIndex"] = c;
|
5023
5023
|
|
5024
5024
|
for (let r = fromR; r < toR; ++r) {
|
5025
|
-
|
5026
|
-
|
5027
|
-
|
5025
|
+
let rowData = hasDataView ? rowDataCollection[r] : null;
|
5026
|
+
if(rowData) {
|
5028
5027
|
e["rowData"] = rowData;
|
5029
5028
|
e["rowId"] = rids[r];
|
5030
5029
|
e["dataValue"] = rowData ? rowData[cid] : null;
|
5031
|
-
|
5032
|
-
|
5033
|
-
e["cell"] = section["getCell"](c, r, false); // Accessing cell by using bracket allows extenal object to mock Section
|
5030
|
+
e["rowIndex"] = r;
|
5031
|
+
e["cell"] = section["getCell"](c, r, false); // Accessing cell by using bracket allows extenal object to mock Section
|
5034
5032
|
|
5035
|
-
|
5033
|
+
handler(e);
|
5034
|
+
}
|
5036
5035
|
}
|
5037
5036
|
}
|
5038
5037
|
}
|
@@ -433,6 +433,14 @@ function _buildContextObject(ctx, userOpt, defaultOpt) {
|
|
433
433
|
*/
|
434
434
|
function _emptyFunc() {}
|
435
435
|
|
436
|
+
/** @private
|
437
|
+
* @param {Object} ctx
|
438
|
+
* @return {Object}
|
439
|
+
*/
|
440
|
+
function _getContextObject(ctx) {
|
441
|
+
return ctx;
|
442
|
+
}
|
443
|
+
|
436
444
|
/** @constructor
|
437
445
|
* @param {*=} options
|
438
446
|
*/
|
@@ -476,7 +484,8 @@ FormatterBuilder.create = function (userOptions, defaultOpt) {
|
|
476
484
|
render: _emptyFunc,
|
477
485
|
init: _onInitContextObject.bind(null, ctx),
|
478
486
|
bind: _predefinedFormatter.bind(null, ctx),
|
479
|
-
binding: _predefinedBinding.bind(null, ctx)
|
487
|
+
binding: _predefinedBinding.bind(null, ctx),
|
488
|
+
getContextObject: _getContextObject.bind(null, ctx)
|
480
489
|
};
|
481
490
|
};
|
482
491
|
|
@@ -4,6 +4,7 @@ import ElfUtil from "../../tr-grid-util/es6/ElfUtil.js";
|
|
4
4
|
|
5
5
|
/** @typedef {Object} SimpleTickerFormatter~Options
|
6
6
|
* @description FormatterBuilder options
|
7
|
+
* @private
|
7
8
|
* @property {string=} positiveColor Color code for up icon
|
8
9
|
* @property {string=} negativeColor Color code for down icon
|
9
10
|
*/
|
package/lib/grid/index.js
CHANGED