@refinitiv-ui/efx-grid 6.0.143 → 6.0.144

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.
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.144" };
@@ -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.144"
73
73
  }