@refinitiv-ui/efx-grid 6.0.144 → 6.0.145

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.
@@ -621,7 +621,7 @@ Core.prototype._hasPendingRowChange = false;
621
621
  * @return {string}
622
622
  */
623
623
  Core.getVersion = function () {
624
- return "5.1.135";
624
+ return "5.1.136";
625
625
  };
626
626
  /** {@link ElementWrapper#dispose}
627
627
  * @override
@@ -161,7 +161,6 @@ VirtualizedLayoutGrid.prototype.setWidth = function (px) {
161
161
  };
162
162
  /** @override */
163
163
  VirtualizedLayoutGrid.prototype.setHeight = function (px) {
164
- console.log("unsupported");
165
164
  return false;
166
165
  };
167
166
  /** {@link ElementWrapper#show}
@@ -340,7 +339,6 @@ VirtualizedLayoutGrid.prototype.getMinimumRowHeight = function (index) {
340
339
  };
341
340
  /** @inheritDoc */
342
341
  VirtualizedLayoutGrid.prototype.setMinimumRowHeight = function (index, val) {
343
- console.log("unsupported");
344
342
  return false;
345
343
  };
346
344
 
@@ -416,7 +414,6 @@ VirtualizedLayoutGrid.prototype.getRowScalability = function (indexY) {
416
414
  };
417
415
  /** @inheritDoc */
418
416
  VirtualizedLayoutGrid.prototype.setRowScalability = function (index, val) {
419
- console.log("unsupported");
420
417
  return false;
421
418
  };
422
419
 
@@ -562,17 +559,15 @@ VirtualizedLayoutGrid.prototype.getRowHighlight = function () {
562
559
  /** @inheritDoc */
563
560
  VirtualizedLayoutGrid.prototype.setRowHighlight = function (rowIndex) {
564
561
  let prevIndex = this._grid.getRowHighlight();
565
- if (prevIndex >= 0) { prevIndex += this._firstIndex; }
566
562
  this._grid.setRowHighlight(rowIndex - this._firstIndex);
567
- //Check row highligh is in view
568
- rowIndex = this._grid.getRowHighlight();
569
- if (rowIndex >= 0) { rowIndex += this._firstIndex; }
570
563
 
571
564
  if (this._hasListener("rowHighlighted")) {
572
- let e = {};
573
- e["prevRowIndex"] = prevIndex;
574
- e["rowIndex"] = rowIndex;
575
- this._dispatch("rowHighlighted", e);
565
+ rowIndex = this._grid.getRowHighlight();
566
+
567
+ this._dispatch("rowHighlighted", {
568
+ "prevRowIndex": (prevIndex >= 0) ? prevIndex + this._firstIndex : prevIndex,
569
+ "rowIndex": (rowIndex >= 0) ? rowIndex + this._firstIndex : rowIndex
570
+ });
576
571
  }
577
572
  };
578
573
 
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.144" };
3
+ window.EFX_GRID = { version: "6.0.145" };
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "version": "6.0.144"
72
+ "version": "6.0.145"
73
73
  }