@refinitiv-ui/efx-grid 6.0.120 → 6.0.122
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/README.md +1 -1
- package/lib/column-dragging/es6/ColumnDragging.js +7 -4
- package/lib/core/dist/core.js +8 -5
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +3 -3
- package/lib/core/es6/grid/components/HScrollbar.d.ts +1 -1
- package/lib/core/es6/grid/components/HScrollbar.js +5 -2
- package/lib/filter-dialog/themes/base.less +8 -3
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +34 -18
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +2 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +1 -1
- package/lib/rt-grid/es6/RowDefinition.js +32 -18
- package/lib/tr-grid-checkbox/es6/Checkbox.js +4 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +1 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +1 -1
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/versions.json +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
@@ -56,6 +56,6 @@ See list of APIs, demo and more usage guide by visiting [EFX Grid document](http
|
|
56
56
|
|
57
57
|
# License
|
58
58
|
|
59
|
-
You can check out the full license [here](https://refinitiv.github.io/efx-grid
|
59
|
+
You can check out the full license [here](https://refinitiv.github.io/efx-grid/#/license)
|
60
60
|
|
61
61
|
However, Halo theme shall only be used within Refinitiv products or services due to license of the font "Proxima Nova Fin".
|
@@ -531,21 +531,24 @@ ColumnDraggingPlugin.prototype._onMouseUp = function (e) {
|
|
531
531
|
};
|
532
532
|
|
533
533
|
/** @private
|
534
|
-
* @return {number} 0 does not allow dragging, 1 allows single dragging, and 2 allows multiple dragging
|
534
|
+
* @return {number} 0 does not allow dragging, 1 allows single dragging, and 2 allows multiple dragging with row selection =.
|
535
535
|
*/
|
536
536
|
ColumnDraggingPlugin.prototype._getDraggingStyle = function() {
|
537
537
|
let colSelExt = this._getPlugin("ColumnSelectionPlugin");
|
538
|
-
|
539
|
-
if(!cgp) {
|
538
|
+
if(!colSelExt) {
|
540
539
|
return 1;
|
541
540
|
}
|
541
|
+
let cgp = this._getPlugin("ColumnGroupingPlugin");
|
542
542
|
let selectedCols = colSelExt.getSelectedColumns();
|
543
543
|
let dragOutSel = selectedCols.indexOf(this._startColumn) === -1;
|
544
|
-
if(dragOutSel) { //
|
544
|
+
if(dragOutSel) { // drag outside selected col, drag only 1 row
|
545
545
|
return 1;
|
546
546
|
}
|
547
547
|
let selectedColCount = selectedCols.length;
|
548
548
|
if(selectedColCount > 1) { // Multiple column drag
|
549
|
+
if(!cgp) {
|
550
|
+
return 2;
|
551
|
+
}
|
549
552
|
let currentGroup, prevGroup;
|
550
553
|
for (let i = 0; i < selectedColCount; i++) {
|
551
554
|
let colIndex = selectedCols[i];
|
package/lib/core/dist/core.js
CHANGED
@@ -7594,7 +7594,8 @@ HScrollbar.prototype.setScrollContent = function (grid, sections, startColIndex,
|
|
7594
7594
|
column = /** @type{Column} */(section.getColumn(c));
|
7595
7595
|
column.setScrollState(paneElem, null, false);
|
7596
7596
|
}
|
7597
|
-
|
7597
|
+
let scrollHost = section.getColumnHost();
|
7598
|
+
pane.setParent(scrollHost);
|
7598
7599
|
let columns = [];
|
7599
7600
|
let content = [];
|
7600
7601
|
for (c = startColIndex; c < endColIndex; ++c) {
|
@@ -7611,9 +7612,11 @@ HScrollbar.prototype.setScrollContent = function (grid, sections, startColIndex,
|
|
7611
7612
|
|
7612
7613
|
let rs = section.getReservedSpace();
|
7613
7614
|
if(rs) {
|
7614
|
-
if(!this._pinnedRightColumnCount) {
|
7615
|
+
if(this.isActive() && !this._pinnedRightColumnCount) {
|
7615
7616
|
paneSlider.addContent(rs);
|
7616
7617
|
content.push(rs);
|
7618
|
+
} else {
|
7619
|
+
scrollHost.appendChild(rs);
|
7617
7620
|
}
|
7618
7621
|
section._updateRightSpaceStyle();
|
7619
7622
|
}
|
@@ -25968,7 +25971,7 @@ Core_Core.prototype._hasPendingRowChange = false;
|
|
25968
25971
|
* @return {string}
|
25969
25972
|
*/
|
25970
25973
|
Core_Core.getVersion = function () {
|
25971
|
-
return "5.1.
|
25974
|
+
return "5.1.123";
|
25972
25975
|
};
|
25973
25976
|
/** {@link ElementWrapper#dispose}
|
25974
25977
|
* @override
|
@@ -29046,7 +29049,7 @@ Core_Core.prototype.getYScrollVal = function (sectionRef, rowIndex, topOfView) {
|
|
29046
29049
|
scrollIndex = rowIndex;
|
29047
29050
|
} else {
|
29048
29051
|
if(rowIndex < firstFullRow) { // Scroll up
|
29049
|
-
scrollIndex = rowIndex -
|
29052
|
+
scrollIndex = rowIndex - 2; // Have some spaces at the top for more appealing visual
|
29050
29053
|
if(scrollIndex < 0) {
|
29051
29054
|
scrollIndex = 0;
|
29052
29055
|
}
|
@@ -29054,7 +29057,7 @@ Core_Core.prototype.getYScrollVal = function (sectionRef, rowIndex, topOfView) {
|
|
29054
29057
|
let lastFullRow = viewInfo.lastFullRow;
|
29055
29058
|
if (rowIndex > lastFullRow) {
|
29056
29059
|
let viewIndexSize = lastFullRow - firstFullRow;
|
29057
|
-
scrollIndex = rowIndex - viewIndexSize +
|
29060
|
+
scrollIndex = rowIndex - viewIndexSize + 2;
|
29058
29061
|
if(scrollIndex < 0) {
|
29059
29062
|
scrollIndex = 0;
|
29060
29063
|
}
|