@refinitiv-ui/efx-grid 6.0.87 → 6.0.88

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.
@@ -374,6 +374,61 @@ ColumnDraggingPlugin.prototype._isAllowed = function(colIndex) {
374
374
  }
375
375
  return true;
376
376
  };
377
+ /** @public
378
+ * @description Emitate the mousedown event. This is for testing purpose.
379
+ * @ignore
380
+ * @param {number} colIndex
381
+ * @param {number} rowIndex
382
+ * @param {number} x
383
+ * @param {number} y
384
+ */
385
+ ColumnDraggingPlugin.prototype.mockMousedown = function(colIndex, rowIndex, x, y) {
386
+ let evt = {
387
+ clientX: x,
388
+ clientY: y,
389
+ sectionType: "title"
390
+ };
391
+ evt = this._mockMouseEvent(colIndex, rowIndex, evt);
392
+ this._onMouseDown(evt);
393
+ };
394
+ /** @public
395
+ * @description Emitate the mousemove event. This is for testing purpose.
396
+ * @ignore
397
+ * @param {number} colIndex
398
+ * @param {number} rowIndex
399
+ * @param {number} x
400
+ * @param {number} y
401
+ */
402
+ ColumnDraggingPlugin.prototype.mockMousemove = function(colIndex, rowIndex, x, y) {
403
+ let evt = {
404
+ clientX: x,
405
+ clientY: y,
406
+ sectionType: "title"
407
+ };
408
+ evt = this._mockMouseEvent(colIndex, rowIndex, evt);
409
+ evt.path = [evt.target];
410
+ this._onDrag(evt);
411
+ };
412
+ /** @public
413
+ * @description Emitate the mouseup event. This is for testing purpose.
414
+ * @ignore
415
+ * @param {number} colIndex
416
+ * @param {number} rowIndex
417
+ * @param {number} x
418
+ * @param {number} y
419
+ */
420
+ ColumnDraggingPlugin.prototype.mockMouseup = function(colIndex, rowIndex, x, y) {
421
+ let evt = {
422
+ clientX: x,
423
+ clientY: y,
424
+ sectionType: "title"
425
+ };
426
+ evt = this._mockMouseEvent(colIndex, rowIndex, evt);
427
+ evt.path = [evt.target];
428
+ this._onMouseUp(evt);
429
+ this._onDragEnd(evt);
430
+ };
431
+
377
432
  /** @private
378
433
  * @param {Event} e
379
434
  */
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.87" };
3
+ window.EFX_GRID = { version: "6.0.88" };