@refinitiv-ui/efx-grid 6.0.87 → 6.0.89

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/lib/column-dragging/es6/ColumnDragging.js +55 -0
  2. package/lib/core/dist/core.js +2 -2
  3. package/lib/core/dist/core.min.js +1 -1
  4. package/lib/core/es6/grid/Core.d.ts +0 -2
  5. package/lib/core/es6/grid/Core.js +2 -2
  6. package/lib/grid/index.js +1 -1
  7. package/lib/row-segmenting/es6/RowSegmenting.js +1 -1
  8. package/lib/rt-grid/dist/rt-grid.js +786 -706
  9. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  10. package/lib/rt-grid/es6/ColumnDefinition.js +68 -68
  11. package/lib/rt-grid/es6/DataConnector.js +26 -26
  12. package/lib/rt-grid/es6/FieldDefinition.js +27 -27
  13. package/lib/rt-grid/es6/Grid.js +390 -378
  14. package/lib/rt-grid/es6/PredefinedFormula.js +1 -1
  15. package/lib/rt-grid/es6/ReferenceCounter.js +15 -15
  16. package/lib/rt-grid/es6/RowDefSorter.js +26 -26
  17. package/lib/rt-grid/es6/RowDefinition.d.ts +5 -6
  18. package/lib/rt-grid/es6/RowDefinition.js +105 -76
  19. package/lib/rt-grid/es6/SnapshotFiller.js +77 -77
  20. package/lib/rt-grid/es6/StyleLoader.js +1 -1
  21. package/lib/statistics-row/es6/StatisticsRow.d.ts +1 -0
  22. package/lib/statistics-row/es6/StatisticsRow.js +18 -2
  23. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +0 -4
  24. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +2 -2
  25. package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +18 -18
  26. package/lib/tr-grid-percent-bar/es6/PercentBar.js +7 -1
  27. package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -0
  28. package/lib/tr-grid-row-filtering/es6/RowFiltering.js +69 -18
  29. package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +0 -2
  30. package/lib/tr-grid-titlewrap/es6/TitleWrap.js +1 -1
  31. package/lib/tr-grid-util/es6/DragUI.js +2 -1
  32. package/lib/types/es6/PercentBar.d.ts +18 -18
  33. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +5 -2
  34. package/lib/types/es6/RowFiltering.d.ts +2 -0
  35. package/lib/types/es6/StatisticsRow.d.ts +1 -0
  36. package/lib/versions.json +10 -10
  37. package/package.json +1 -1
@@ -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
  */
@@ -26178,7 +26178,7 @@ Core_Core.prototype._hasPendingRowChange = false;
26178
26178
  * @return {string}
26179
26179
  */
26180
26180
  Core_Core.getVersion = function () {
26181
- return "5.1.92";
26181
+ return "5.1.93";
26182
26182
  };
26183
26183
  /** {@link ElementWrapper#dispose}
26184
26184
  * @override
@@ -29468,7 +29468,7 @@ Core_Core.prototype.requestRowRefresh = function() {
29468
29468
  }
29469
29469
  };
29470
29470
  /** Set a timer to call updateScrollbarHeight only once to avoid performance issue due to multiple call of _updateScrollbarHeight()
29471
- * @public
29471
+ * @private
29472
29472
  */
29473
29473
  Core_Core.prototype._requestScrollbarUpdate = function() {
29474
29474
  this._updateScrollbarHeight(true, true);