@refinitiv-ui/efx-grid 6.0.143 → 6.0.145

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.143" };
3
+ window.EFX_GRID = { version: "6.0.145" };
@@ -789,7 +789,8 @@ let KEY_MAP = {
789
789
  "del": 46,
790
790
  "delete": 46
791
791
  };
792
- /** @private
792
+ /** @public
793
+ * @ignore
793
794
  * @param {number=} colIndex
794
795
  * @param {number=} rowIndex
795
796
  * @param {Object=} context
@@ -816,7 +817,8 @@ GridPlugin.prototype._mockMouseEvent = function(colIndex, rowIndex, context) {
816
817
 
817
818
  return evt;
818
819
  };
819
- /** @private
820
+ /** @public
821
+ * @ignore
820
822
  * @param {number|string} keyCode
821
823
  * @param {Object=} context
822
824
  * @return {!Object}
@@ -877,7 +879,7 @@ GridPlugin.prototype.applyStaticStyles = function(styleCalculator) {
877
879
  /** @public
878
880
  * @param {string} cssString
879
881
  * @param {string=} nameSpace
880
- * @param {boolean=} replaceable
882
+ * @param {boolean=} replaceable This allows the injected CSS to be replaceable (removable)
881
883
  */
882
884
  GridPlugin.prototype.applyStyles = function(cssString, nameSpace, replaceable) {
883
885
  if (!nameSpace) {
@@ -96,9 +96,10 @@ MouseDownTrait.prototype._onMouseMove;
96
96
 
97
97
  /** @public */
98
98
  MouseDownTrait.prototype.dispose = function() {
99
- this.unlistenAll();
99
+ this.removeAllEventListeners();
100
100
  this._tchProxy.dispose();
101
101
  window.removeEventListener("mouseup", this._onMouseUp, false);
102
+ window.removeEventListener("mousemove", this._onMouseMove, false);
102
103
  };
103
104
 
104
105
  /** @public
@@ -233,5 +234,17 @@ MouseDownTrait.prototype._isValidButton = function(e) {
233
234
  return TouchProxy.getButtonType(e) === this._whichBtn;
234
235
  };
235
236
 
237
+ /** @public
238
+ * @ignore
239
+ * @return {!Object}
240
+ */
241
+ MouseDownTrait.prototype._getEventHandlers = function() {
242
+ return {
243
+ "mousemove": this._onMouseMove,
244
+ "mouseup": this._onMouseUp,
245
+ "dragstart": this._onMouseDown
246
+ };
247
+ };
248
+
236
249
  export {MouseDownTrait};
237
250
  export default MouseDownTrait;
@@ -146,6 +146,7 @@ EmptyPerf.clearResourceTimings = emptyMethod;
146
146
  EmptyPerf.getEntries = emptyMethod;
147
147
  EmptyPerf.getEntriesByName = emptyMethod;
148
148
  EmptyPerf.getEntriesByType = emptyMethod;
149
+ EmptyPerf.getEntry = emptyMethod;
149
150
 
150
151
  EmptyPerf.mark = emptyMethod;
151
152
  EmptyPerf.measure = emptyMethod;
@@ -16,7 +16,6 @@
16
16
  */
17
17
  let RequestQueue = function (reqBuilder, reqLimit, timeLimit) {
18
18
  this._onSuccess = this._onSuccess.bind(this);
19
- this._onFail = this._onFail.bind(this);
20
19
  this._onRefreshCounter = this._onRefreshCounter.bind(this);
21
20
  this._nextInQueue = this._nextInQueue.bind(this);
22
21
 
@@ -180,7 +179,7 @@ RequestQueue.prototype.makeRequest = function(obj) {
180
179
  ++this._freqLimit.reqCount;
181
180
  }
182
181
  ++this._concurrentReqs;
183
- prom["then"](this._onSuccess)["catch"](this._onFail);
182
+ prom["then"](this._onSuccess)["catch"](this._onSuccess);
184
183
  }
185
184
  return /** @type{Promise<Response>} */(prom);
186
185
  };
@@ -197,7 +196,6 @@ RequestQueue.prototype.isLimitReached = function() {
197
196
  return (this._concurrentReqs >= this._concurrentLimit);
198
197
  };
199
198
 
200
-
201
199
  /** @private
202
200
  * @param {*} res
203
201
  * @return {Promise}
@@ -207,15 +205,6 @@ RequestQueue.prototype._onSuccess = function(res) {
207
205
  this._nextInQueue();
208
206
  return Promise.resolve(res);
209
207
  };
210
- /** @private
211
- * @param {*} res
212
- * @return {Promise}
213
- */
214
- RequestQueue.prototype._onFail = function(res) {
215
- --this._concurrentReqs;
216
- this._nextInQueue();
217
- return Promise.reject(res);
218
- };
219
208
  /** @private */
220
209
  RequestQueue.prototype._onRefreshCounter = function() {
221
210
  if(this._freqLimit) {
package/lib/versions.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "tr-grid-util": "1.3.172",
2
+ "tr-grid-util": "1.3.173",
3
3
  "tr-grid-printer": "1.0.18",
4
4
  "@grid/column-dragging": "1.0.21",
5
5
  "@grid/row-segmenting": "2.0.1",
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "version": "6.0.143"
72
+ "version": "6.0.145"
73
73
  }