@refinitiv-ui/efx-grid 6.0.105 → 6.0.106
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/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 +19 -3
- 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 +19 -3
- 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/RealtimeGrid/FieldDefinition.d.ts +2 -0
- package/lib/versions.json +4 -4
- 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
@@ -14244,7 +14244,11 @@ let FieldDefinition = {};
|
|
14244
14244
|
/** @type {Object.<string, Object>}
|
14245
14245
|
* @private
|
14246
14246
|
*/
|
14247
|
-
FieldDefinition._defs = {
|
14247
|
+
FieldDefinition._defs = {};
|
14248
|
+
/** @type {Object.<string, Object>}
|
14249
|
+
* @private
|
14250
|
+
*/
|
14251
|
+
FieldDefinition._defaults = {
|
14248
14252
|
"CF_NAME": {
|
14249
14253
|
name: "Name",
|
14250
14254
|
rank: 2800003,
|
@@ -14389,6 +14393,17 @@ FieldDefinition.set = function(field, def) {
|
|
14389
14393
|
/** Get field definition object
|
14390
14394
|
* @public
|
14391
14395
|
* @function
|
14396
|
+
*/
|
14397
|
+
FieldDefinition.resetAll = function() {
|
14398
|
+
let defs = FieldDefinition._defs = {};
|
14399
|
+
let defaultFields = FieldDefinition._defaults;
|
14400
|
+
for(let key in defaultFields) {
|
14401
|
+
defs[key] = defaultFields[key];
|
14402
|
+
}
|
14403
|
+
};
|
14404
|
+
/** Get field definition object
|
14405
|
+
* @public
|
14406
|
+
* @function
|
14392
14407
|
* @param {string} field
|
14393
14408
|
* @return {Object}
|
14394
14409
|
*/
|
@@ -14744,8 +14759,9 @@ function onLoadEnd(e) {
|
|
14744
14759
|
}
|
14745
14760
|
|
14746
14761
|
(function() { // Add "field" property to all default field definitions. This reduces file size and redundancy
|
14747
|
-
for(let key in FieldDefinition.
|
14748
|
-
FieldDefinition.
|
14762
|
+
for(let key in FieldDefinition._defaults) {
|
14763
|
+
FieldDefinition._defaults[key]["field"] = key;
|
14764
|
+
FieldDefinition._defs[key] = FieldDefinition._defaults[key];
|
14749
14765
|
}
|
14750
14766
|
})();
|
14751
14767
|
|