@refinitiv-ui/efx-grid 6.0.32 → 6.0.33
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +86 -11
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.d.ts +4 -0
- package/lib/core/es6/grid/Core.js +27 -6
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +1 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +29 -5
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +521 -179
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +14 -13
- package/lib/rt-grid/es6/RowDefinition.js +1 -1
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +4 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +58 -30
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +2 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +35 -12
- package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +2 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.js +15 -0
- package/lib/tr-grid-util/es6/Util.d.ts +3 -0
- package/lib/tr-grid-util/es6/Util.js +15 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +12 -2
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +170 -47
- package/lib/types/es6/ColumnGrouping.d.ts +4 -0
- package/lib/types/es6/ColumnSelection.d.ts +2 -0
- package/lib/types/es6/ColumnStack.d.ts +2 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +6 -2
- package/lib/types/es6/RowDragging.d.ts +23 -1
- package/lib/types/es6/StatisticsRow.d.ts +25 -25
- package/lib/versions.json +3 -3
- package/package.json +1 -1
@@ -339,8 +339,12 @@ declare class Core extends ElementWrapper {
|
|
339
339
|
|
340
340
|
public enableRowVirtualization(opt_enabled: boolean): void;
|
341
341
|
|
342
|
+
public isRowVirtualizationEnabled(): boolean;
|
343
|
+
|
342
344
|
public enableColumnVirtualization(opt_enabled?: boolean|null): void;
|
343
345
|
|
346
|
+
public isColumnVirtualizationEnabled(): boolean;
|
347
|
+
|
344
348
|
public setRowScrollingStep(rowCount: number): void;
|
345
349
|
|
346
350
|
public getVMouseWheelHandler(): ((...params: any[]) => any)|null;
|
@@ -536,7 +536,7 @@ Core.prototype._groupDefs = null;
|
|
536
536
|
* @return {string}
|
537
537
|
*/
|
538
538
|
Core.getVersion = function () {
|
539
|
-
return "5.1.
|
539
|
+
return "5.1.42";
|
540
540
|
};
|
541
541
|
/** {@link ElementWrapper#dispose}
|
542
542
|
* @override
|
@@ -672,10 +672,10 @@ Core.prototype.getConfigObject = function (gridOptions) {
|
|
672
672
|
}
|
673
673
|
}
|
674
674
|
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
obj["
|
675
|
+
// It will be overwrite in rt-grid or atlas-blotter
|
676
|
+
obj["rowVirtualization"] = this.isRowVirtualizationEnabled();
|
677
|
+
obj["columnVirtualization"] = this.isColumnVirtualizationEnabled();
|
678
|
+
obj["rowHighlighting"] = this._rowHighlighting;
|
679
679
|
|
680
680
|
if(this._fixFrozenTopSections) {
|
681
681
|
obj["topFreezingCount"] = this._startVScrollbarIndex >= 0 ? (this._startVScrollbarIndex + 1) : false;
|
@@ -688,7 +688,13 @@ Core.prototype.getConfigObject = function (gridOptions) {
|
|
688
688
|
if(this._rowScrollingStep) {
|
689
689
|
obj["stepScroll"] = (this._rowScrollingStep === 1) ? true : this._rowScrollingStep;
|
690
690
|
}
|
691
|
-
|
691
|
+
|
692
|
+
var val = this._vscrollbar.getAutoHide();
|
693
|
+
if(val !== true) {
|
694
|
+
// TODO: check this._hscrollbar and this._vscrollbar can be difference config
|
695
|
+
obj["autoHideScrollbar"] = val; // this._hscrollbar has the same settings
|
696
|
+
}
|
697
|
+
|
692
698
|
var wheelSpeed = this._vscrollbar.getMouseWheelSpeed();
|
693
699
|
if(wheelSpeed) {
|
694
700
|
obj["linearWheelScrolling"] = wheelSpeed;
|
@@ -3661,6 +3667,14 @@ Core.prototype.enableRowVirtualization = function (opt_enabled) {
|
|
3661
3667
|
this._rowVirtualizer.deactivate();
|
3662
3668
|
}
|
3663
3669
|
};
|
3670
|
+
|
3671
|
+
/** @public
|
3672
|
+
* @return {boolean}
|
3673
|
+
*/
|
3674
|
+
Core.prototype.isRowVirtualizationEnabled = function () {
|
3675
|
+
return this._rowVirtualizer.isEnabled();
|
3676
|
+
};
|
3677
|
+
|
3664
3678
|
/** No runtime support
|
3665
3679
|
* @public
|
3666
3680
|
* @param {boolean=} opt_enabled
|
@@ -3675,6 +3689,13 @@ Core.prototype.enableColumnVirtualization = function (opt_enabled) {
|
|
3675
3689
|
}
|
3676
3690
|
};
|
3677
3691
|
|
3692
|
+
/** @public
|
3693
|
+
* @return {boolean}
|
3694
|
+
*/
|
3695
|
+
Core.prototype.isColumnVirtualizationEnabled = function () {
|
3696
|
+
return this._colVirtualizer.isEnabled();
|
3697
|
+
};
|
3698
|
+
|
3678
3699
|
/** Scrolling step will be multiple of the default row height in pixels. For example, if default row height is 32 pixel and row scrolling step is 2, <br>
|
3679
3700
|
* then the actual scrolling step for vertical scrollbar will be (32 * 2) = 64 pixels
|
3680
3701
|
* @public
|
@@ -4,6 +4,7 @@ import Core from "../Core.js";
|
|
4
4
|
import ILayoutGrid from "../ILayoutGrid.js";
|
5
5
|
import ElementWrapper from "../components/ElementWrapper.js";
|
6
6
|
import DataTable from "../../data/DataTable.js";
|
7
|
+
import { isEmptyObject } from "../../../../tr-grid-util/es6/Util.js";
|
7
8
|
|
8
9
|
declare namespace SortableTitlePlugin {
|
9
10
|
|
@@ -5,6 +5,7 @@ import Core from "../Core.js";
|
|
5
5
|
import ILayoutGrid from "../ILayoutGrid.js";
|
6
6
|
import ElementWrapper from "../components/ElementWrapper.js";
|
7
7
|
import DataTable from "../../data/DataTable.js";
|
8
|
+
import { isEmptyObject } from "../../../../tr-grid-util/es6/Util.js";
|
8
9
|
/* eslint-enable */
|
9
10
|
|
10
11
|
/** Fired when user click and before the sorting operation.
|
@@ -464,7 +465,10 @@ SortableTitlePlugin.prototype.getConfigObject = function (gridOptions) {
|
|
464
465
|
}
|
465
466
|
field = opt["field"];
|
466
467
|
if (field) {
|
467
|
-
col["
|
468
|
+
if(col["field"] !== field) {
|
469
|
+
col["sortBy"] = field;
|
470
|
+
} // else The default value is an empty sortBy, which refers to the same column field by default.
|
471
|
+
|
468
472
|
if (this._sortingSequenceMap && this._sortingSequenceMap[field]) {
|
469
473
|
col["sortingSequence"] = this._sortingSequenceMap[field];
|
470
474
|
}
|
@@ -477,16 +481,32 @@ SortableTitlePlugin.prototype.getConfigObject = function (gridOptions) {
|
|
477
481
|
extOptions = obj["sorting"] = {};
|
478
482
|
}
|
479
483
|
|
480
|
-
|
481
|
-
|
484
|
+
var val = this.getSortedColumns();
|
485
|
+
if(val != null) {
|
486
|
+
extOptions["initialSort"] = val;
|
487
|
+
}
|
488
|
+
|
489
|
+
val = this._sortableIndicator;
|
490
|
+
if(val !== false) {
|
491
|
+
extOptions["sortableIndicator"] = val;
|
492
|
+
}
|
493
|
+
|
482
494
|
if(this._maxCount !== 1) {
|
483
495
|
extOptions["multiColumn"] = this._maxCount === -1 ? true : this._maxCount;
|
484
496
|
}
|
485
497
|
if(this._dblClickAllowed) {
|
486
498
|
extOptions["disableDoubleClickToSort"] = !this._dblClickAllowed;
|
487
499
|
}
|
488
|
-
|
489
|
-
|
500
|
+
|
501
|
+
val = this._sortableColumns;
|
502
|
+
if(val !== true) {
|
503
|
+
extOptions["sortableColumns"] = val;
|
504
|
+
}
|
505
|
+
|
506
|
+
val = this._dataSorting;
|
507
|
+
if(val !== true) {
|
508
|
+
extOptions["indicatorOnly"] = val;
|
509
|
+
}
|
490
510
|
// extOptions["mode"] = this._mode;
|
491
511
|
if(this._disabled) {
|
492
512
|
extOptions["disabled"] = true;
|
@@ -503,6 +523,10 @@ SortableTitlePlugin.prototype.getConfigObject = function (gridOptions) {
|
|
503
523
|
extOptions["sortingSequence"] = sortingSeq.slice();
|
504
524
|
}
|
505
525
|
|
526
|
+
if(isEmptyObject(obj["sorting"])) {
|
527
|
+
delete obj["sorting"];
|
528
|
+
}
|
529
|
+
|
506
530
|
return obj;
|
507
531
|
};
|
508
532
|
|
package/lib/grid/index.js
CHANGED