@refinitiv-ui/efx-grid 6.0.82 → 6.0.84

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.
@@ -10374,7 +10374,6 @@ LayoutGrid.prototype.updateColumnSeparators = function () {
10374
10374
  }
10375
10375
  }
10376
10376
  };
10377
-
10378
10377
  /** @private
10379
10378
  * @return {Element}
10380
10379
  */
@@ -26145,6 +26144,10 @@ Core_Core.prototype._batches = null;
26145
26144
  * @private
26146
26145
  */
26147
26146
  Core_Core.prototype._firstRendered = false;
26147
+ /** @type {boolean}
26148
+ * @private
26149
+ */
26150
+ Core_Core.prototype._hasPendingRowChange = false;
26148
26151
  //#region Public Methods
26149
26152
 
26150
26153
  /**
@@ -26152,7 +26155,7 @@ Core_Core.prototype._firstRendered = false;
26152
26155
  * @return {string}
26153
26156
  */
26154
26157
  Core_Core.getVersion = function () {
26155
- return "5.1.85";
26158
+ return "5.1.87";
26156
26159
  };
26157
26160
  /** {@link ElementWrapper#dispose}
26158
26161
  * @override
@@ -30354,8 +30357,8 @@ Core_Core.prototype._setColumnWidth = function (colIndex, px, opt_scalable) {
30354
30357
  * @param {*=} ctx
30355
30358
  */
30356
30359
  Core_Core.prototype._dispatchColumnAddedEvent = function (at, count, atTheMiddle, ctx) {
30360
+ var e = {};
30357
30361
  if (this._hasListener("columnAdded")) {
30358
- var e = {};
30359
30362
  e["atTheMiddle"] = atTheMiddle;
30360
30363
  if(count === 1) {
30361
30364
  e["colIndex"] = at;
@@ -30371,7 +30374,11 @@ Core_Core.prototype._dispatchColumnAddedEvent = function (at, count, atTheMiddle
30371
30374
  }
30372
30375
  }
30373
30376
 
30374
- this._dispatchColumnRenderEvent({},
30377
+ if(this._frozenLayout){
30378
+ e["noDataUpdate"] = true;
30379
+ }
30380
+
30381
+ this._dispatchColumnRenderEvent(e,
30375
30382
  at, at + count,
30376
30383
  0, this._settings.length,
30377
30384
  NaN, NaN);
@@ -30981,9 +30988,13 @@ Core_Core.prototype._onRowCountChanged = function (e) {
30981
30988
  }
30982
30989
  }
30983
30990
 
30991
+ var noBinding = e["noBinding"];
30984
30992
  var paneChanged = (sectionIndex <= this._startVScrollbarIndex) || (sectionIndex >= this._getFooterStartIndex());
30985
30993
  var forceUpdate = this._frozenFooterCount > 0 ? true : false; // Prevent from footer section flashing
30986
- var viewChanged = this._updateScrollbarHeight(paneChanged, forceUpdate, e["noBinding"]); // Virtualization is triggered
30994
+ var viewChanged = this._updateScrollbarHeight(paneChanged, forceUpdate, noBinding); // Virtualization is triggered
30995
+ if(noBinding){
30996
+ this._hasPendingRowChange = true;
30997
+ }
30987
30998
  if(!this._frozenLayout && !viewChanged) { // Grid must activate newly created section if no event is dispatched from the row virtualizer
30988
30999
  if(this._rowVirtualizer.isVirtualizable()) {
30989
31000
  section.activateRows(this._rowVirtualizer.getFirstIndexInView(),
@@ -30992,6 +31003,7 @@ Core_Core.prototype._onRowCountChanged = function (e) {
30992
31003
  section.activateRows();
30993
31004
  }
30994
31005
  }
31006
+ this._hasPendingRowChange = false;
30995
31007
 
30996
31008
  if(!forceUpdate) {
30997
31009
  this._updateVScrollbar(); // Asynchronous
@@ -31075,6 +31087,9 @@ Core_Core.prototype._containsSection = function (s) {
31075
31087
  * @param {!Object} e
31076
31088
  */
31077
31089
  Core_Core.prototype._onRowAvailable = function (e) {
31090
+ if(this._hasPendingRowChange){
31091
+ return;
31092
+ }
31078
31093
  var sectionIndex = /** @type{number} */(e["sectionIndex"]);
31079
31094
  this._dispatchColumnRenderEvent(e,
31080
31095
  0, this.getColumnCount(),
@@ -32705,6 +32720,10 @@ SortableTitlePlugin.prototype._proceedSorting = function (hitObj) {
32705
32720
  if (state) {
32706
32721
  this._sortColumn([state], { "isUserAction": true });
32707
32722
  }
32723
+ var grid = hitObj["grid"];
32724
+ if(grid && grid["focus"]) {
32725
+ grid["focus"]();
32726
+ }
32708
32727
 
32709
32728
  if (this._hasListener("clicked")) {
32710
32729
  var ce = {};