@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.
- package/lib/column-dragging/es6/ColumnDragging.js +55 -0
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +779 -702
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.js +68 -68
- package/lib/rt-grid/es6/DataConnector.js +26 -26
- package/lib/rt-grid/es6/FieldDefinition.js +27 -27
- package/lib/rt-grid/es6/Grid.js +385 -376
- package/lib/rt-grid/es6/PredefinedFormula.js +1 -1
- package/lib/rt-grid/es6/ReferenceCounter.js +15 -15
- package/lib/rt-grid/es6/RowDefSorter.js +26 -26
- package/lib/rt-grid/es6/RowDefinition.d.ts +5 -2
- package/lib/rt-grid/es6/RowDefinition.js +103 -74
- package/lib/rt-grid/es6/SnapshotFiller.js +77 -77
- package/lib/rt-grid/es6/StyleLoader.js +1 -1
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +18 -18
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +4 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +28 -16
- package/lib/tr-grid-util/es6/DragUI.js +2 -1
- package/lib/types/es6/PercentBar.d.ts +18 -18
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +5 -2
- package/lib/versions.json +5 -5
- 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
|
*/
|
package/lib/grid/index.js
CHANGED