@refinitiv-ui/efx-grid 6.0.105 → 6.0.106

Sign up to get free protection for your applications and to get access to all the features.
@@ -574,7 +574,7 @@ Core.prototype._hasPendingRowChange = false;
574
574
  * @return {string}
575
575
  */
576
576
  Core.getVersion = function () {
577
- return "5.1.106";
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
- if(hasDataView) {
5026
- let rowData = rowDataCollection[r];
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
- e["rowIndex"] = r;
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
- handler(e);
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
 
@@ -19,7 +19,5 @@ declare class SimpleTickerFormatter {
19
19
 
20
20
  }
21
21
 
22
- declare function onContextCreated(): void;
23
-
24
22
  export default SimpleTickerFormatter;
25
23
  export { SimpleTickerFormatter };
@@ -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
@@ -1,3 +1,3 @@
1
1
  import {Grid} from "./lib/efx-grid.js";
2
2
  export {Grid}
3
- window.EFX_GRID = { version: "6.0.105" };
3
+ window.EFX_GRID = { version: "6.0.106" };
@@ -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._defs) {
14748
- FieldDefinition._defs[key]["field"] = key;
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