@refinitiv-ui/efx-grid 6.0.135 → 6.0.137

Sign up to get free protection for your applications and to get access to all the features.
@@ -8199,10 +8199,6 @@ LayoutGrid.prototype._colBounds = null;
8199
8199
  * @private
8200
8200
  */
8201
8201
  LayoutGrid.prototype._colBoundCache = null;
8202
- /** @type {boolean}
8203
- * @private
8204
- */
8205
- LayoutGrid.prototype._colSelDirty = false;
8206
8202
  /** @type {HScrollbar}
8207
8203
  * @private
8208
8204
  */
@@ -8237,7 +8233,6 @@ LayoutGrid.prototype.dispose = function () {
8237
8233
 
8238
8234
  this._colCount = this._rowCount = this._activeRowEnd = this._availableRowCount = 0;
8239
8235
  this._colBounds = this._colBoundCache = null;
8240
- this._colSelDirty = false;
8241
8236
 
8242
8237
  this._highlightedCells.length = 0;
8243
8238
  this._ctx = null;
@@ -9948,7 +9943,7 @@ LayoutGrid.prototype._calculateViewSize = function (forceRecal) {
9948
9943
  if(!stretchSize && ctx) {
9949
9944
  if(ctx["getWidth"]) {
9950
9945
  let contentWidth = this.getContentWidth();
9951
- stretchSize = ctx["getWidth"]();
9946
+ stretchSize = ctx["getWidth"]() - this._rightSpaceSize;
9952
9947
  if(stretchSize) { // Grid may not be in the document
9953
9948
  if(contentWidth < stretchSize) { // If view width is larger than actual content
9954
9949
  stretchSize = contentWidth;
@@ -10184,8 +10179,6 @@ LayoutGrid.prototype.selectColumn = function (colIndex, selected) {
10184
10179
  this.enableColumnClass(colIndex, "selected-column", selected);
10185
10180
 
10186
10181
  if(selected) {
10187
- this._colSelDirty = true;
10188
-
10189
10182
  let boundLayer = this._boundLayer;
10190
10183
  if(!boundLayer) {
10191
10184
  this._initBoundLayer();
@@ -10313,10 +10306,6 @@ LayoutGrid.prototype.calculateColumnBounds = function (lftIdx, rgtIdx, outPositi
10313
10306
  * @param {number=} topPx Top position of bound
10314
10307
  */
10315
10308
  LayoutGrid.prototype.updateColumnBounds = function (posAry, noBorderAry, topPx) {
10316
- if(!this._colSelDirty) {
10317
- return;
10318
- }
10319
-
10320
10309
  let cbs = this._colBounds;
10321
10310
  let cbc = this._colBoundCache;
10322
10311
  if(!cbs) {
@@ -10343,7 +10332,6 @@ LayoutGrid.prototype.updateColumnBounds = function (posAry, noBorderAry, topPx)
10343
10332
  cbs.length = activeCount = rangeCount;
10344
10333
 
10345
10334
  if(!rangeCount) {
10346
- this._colSelDirty = false;
10347
10335
  return;
10348
10336
  }
10349
10337
 
@@ -10430,7 +10418,7 @@ LayoutGrid.prototype.updateColumnSeparators = function () {
10430
10418
  let colWidth = this._trackX.getLaneEnd(colCount - 1) - this._trackX.getLaneStart(colCount - pinnedRightCount);
10431
10419
  let viewSize = this._getViewSize();
10432
10420
 
10433
- colSeparator.style.left = (viewSize - colWidth - this._rightSpaceSize) + "px";
10421
+ colSeparator.style.left = (viewSize - colWidth) + "px";
10434
10422
  colSeparator.style.height = this._trackY.getTrackSize() + "px";
10435
10423
  } else {
10436
10424
  if (colSeparator && colSeparator.parentNode) {
@@ -10828,6 +10816,20 @@ LayoutGrid.prototype._onMouseOut = function (e) {
10828
10816
  this.setRowHighlight(-1);
10829
10817
  };
10830
10818
 
10819
+
10820
+ /** @public
10821
+ * @ignore
10822
+ * @return {!Object}
10823
+ */
10824
+ LayoutGrid.prototype._getEventHandlers = function () {
10825
+ return {
10826
+ "mouseout": this._onMouseOut,
10827
+ "mousemove": this._onMouseMove
10828
+ };
10829
+ };
10830
+
10831
+
10832
+
10831
10833
  /**
10832
10834
  * @private
10833
10835
  * @param {number} rowIndex
@@ -25895,7 +25897,7 @@ Core_Core.prototype._hasPendingRowChange = false;
25895
25897
  * @return {string}
25896
25898
  */
25897
25899
  Core_Core.getVersion = function () {
25898
- return "5.1.130";
25900
+ return "5.1.133";
25899
25901
  };
25900
25902
  /** {@link ElementWrapper#dispose}
25901
25903
  * @override
@@ -27342,7 +27344,7 @@ Core_Core.prototype._deserializeColumn = function (index, jsonObj) {
27342
27344
  this.setColumnData(index, value);
27343
27345
  }
27344
27346
 
27345
- let formatter = jsonObj["formatter"] || jsonObj["binding"]; // support both composite and real-time grid
27347
+ let formatter = jsonObj["binding"] || jsonObj["formatter"]; // support both composite and real-time grid, binding have piority first
27346
27348
  if(Array.isArray(formatter)) {
27347
27349
  formatter = formatter[0]; // Support only one formatter in the array
27348
27350
  }