@refinitiv-ui/efx-grid 6.0.68 → 6.0.69
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
|
@@ -1392,6 +1392,58 @@ ColumnSelectionPlugin.prototype.dispatchSelectionChanged = function () {
|
|
|
1392
1392
|
"grid": this._activeGrid
|
|
1393
1393
|
});
|
|
1394
1394
|
};
|
|
1395
|
+
/** @public
|
|
1396
|
+
* @description Select a specified column by a simulated mouse click input. This is for testing purpose.
|
|
1397
|
+
* @ignore
|
|
1398
|
+
* @param {number} colIndex
|
|
1399
|
+
* @param {Object=} mouseEvt
|
|
1400
|
+
*/
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
ColumnSelectionPlugin.prototype.selectByMouse = function (colIndex, mouseEvt) {
|
|
1404
|
+
if (!mouseEvt) {
|
|
1405
|
+
mouseEvt = {};
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
if (colIndex >= 0) {
|
|
1409
|
+
var grid = this._activeGrid || this._hosts[0];
|
|
1410
|
+
var cell = grid ? grid.getCell("title", colIndex, 0) : null;
|
|
1411
|
+
mouseEvt.target = cell ? cell.getElement() : null;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
this._onClick(mouseEvt);
|
|
1415
|
+
};
|
|
1416
|
+
/** @public
|
|
1417
|
+
* @description Select a specified column by a keyboard input. This is for testing purpose.
|
|
1418
|
+
* @ignore
|
|
1419
|
+
* @param {number|string} keyCode Use "left" , "right" or "tab"
|
|
1420
|
+
* @param {Object=} keyboardEvt
|
|
1421
|
+
*/
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
ColumnSelectionPlugin.prototype.selectByKey = function (keyCode, keyboardEvt) {
|
|
1425
|
+
if (!keyboardEvt) {
|
|
1426
|
+
keyboardEvt = {};
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
if (keyCode) {
|
|
1430
|
+
if (keyCode === "left") {
|
|
1431
|
+
keyboardEvt.keyCode = 37;
|
|
1432
|
+
} else if (keyCode === "right") {
|
|
1433
|
+
keyboardEvt.keyCode = 39;
|
|
1434
|
+
} else if (keyCode === "tab") {
|
|
1435
|
+
keyboardEvt.keyCode = 9;
|
|
1436
|
+
} else if (typeof keyCode === "number") {
|
|
1437
|
+
keyboardEvt.keyCode = keyCode;
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
keyboardEvt.preventDefault = function () {};
|
|
1442
|
+
|
|
1443
|
+
keyboardEvt.stopPropagation = function () {};
|
|
1444
|
+
|
|
1445
|
+
this._onKeyDown(keyboardEvt);
|
|
1446
|
+
};
|
|
1395
1447
|
|
|
1396
1448
|
export default ColumnSelectionPlugin;
|
|
1397
1449
|
export { ColumnSelectionPlugin, ColumnSelectionPlugin as ColumnSelection, ColumnSelectionPlugin as ColumnSelectionExtension };
|
|
@@ -299,14 +299,23 @@ ConditionalColoringPlugin.prototype.config = function (options) {
|
|
|
299
299
|
ConditionalColoringPlugin.prototype.getConfigObject = function (gridOptions) {
|
|
300
300
|
var obj = gridOptions || {};
|
|
301
301
|
|
|
302
|
+
var extOptions = obj["conditionalColoring"];
|
|
303
|
+
if(!extOptions) {
|
|
304
|
+
extOptions = obj["conditionalColoring"] = {};
|
|
305
|
+
}
|
|
306
|
+
|
|
302
307
|
if(this._predefinedColors != null) {
|
|
303
|
-
var extOptions = obj["conditionalColoring"];
|
|
304
|
-
if(!extOptions) {
|
|
305
|
-
extOptions = obj["conditionalColoring"] = {};
|
|
306
|
-
}
|
|
307
308
|
extOptions["predefinedColors"] = this._predefinedColors;
|
|
308
309
|
}
|
|
309
310
|
|
|
311
|
+
if(this._blinkingDuration !== 250) {
|
|
312
|
+
extOptions["blinkingDuration"] = this._blinkingDuration;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
if(this._insertionBlinking !== false) {
|
|
316
|
+
extOptions["insertionBlinking"] = this._insertionBlinking;
|
|
317
|
+
}
|
|
318
|
+
|
|
310
319
|
var columns = obj.columns;
|
|
311
320
|
if (!columns) {
|
|
312
321
|
columns = obj.columns = [];
|
package/lib/versions.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"tr-grid-util": "1.3.
|
|
2
|
+
"tr-grid-util": "1.3.132",
|
|
3
3
|
"tr-grid-printer": "1.0.16",
|
|
4
4
|
"@grid/column-dragging": "1.0.14",
|
|
5
5
|
"@grid/row-segmenting": "1.0.28",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"tr-grid-column-formatting": "0.9.35",
|
|
13
13
|
"tr-grid-column-grouping": "1.0.57",
|
|
14
14
|
"tr-grid-column-resizing": "1.0.28",
|
|
15
|
-
"tr-grid-column-selection": "1.0.
|
|
15
|
+
"tr-grid-column-selection": "1.0.30",
|
|
16
16
|
"tr-grid-column-stack": "1.0.72",
|
|
17
|
-
"tr-grid-conditional-coloring": "1.0.
|
|
17
|
+
"tr-grid-conditional-coloring": "1.0.66",
|
|
18
18
|
"tr-grid-content-wrap": "1.0.20",
|
|
19
19
|
"tr-grid-contextmenu": "1.0.40",
|
|
20
20
|
"tr-grid-filter-input": "0.9.33",
|
package/package.json
CHANGED