@refinitiv-ui/efx-grid 6.0.26 → 6.0.27
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/core/dist/core.js +41 -6
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/core/es6/grid/components/Scrollbar.js +6 -0
- package/lib/grid/index.js +1 -1
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +11 -1
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +139 -30
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +14 -1
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +323 -187
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +4 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +8 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +5 -1
- package/lib/tr-grid-util/es6/GroupDefinitions.js +34 -5
- package/lib/types/es6/ColumnGrouping.d.ts +11 -1
- package/lib/types/es6/ColumnStack.d.ts +14 -1
- package/lib/versions.json +4 -4
- package/package.json +1 -1
package/lib/core/dist/core.js
CHANGED
@@ -8013,6 +8013,12 @@ Scrollbar.prototype.getDefaultMouseWheelLogic = function () {
|
|
8013
8013
|
* @param {Event} e
|
8014
8014
|
*/
|
8015
8015
|
Scrollbar.prototype._onMouseWheel = function (e) {
|
8016
|
+
|
8017
|
+
// Blacklist for prevent triggering the scrollbar when the dialog is opened.
|
8018
|
+
if(e.target.opened) { // get attribute method doesn't work in elf element
|
8019
|
+
return;
|
8020
|
+
}
|
8021
|
+
|
8016
8022
|
if (this._isFrozen) {
|
8017
8023
|
util._preventDefault(e);
|
8018
8024
|
return;
|
@@ -11499,7 +11505,7 @@ GroupDefinitions.prototype.removeGroup = function (groupId) {
|
|
11499
11505
|
var curDef = this._groupMap[groupId];
|
11500
11506
|
if(curDef) {
|
11501
11507
|
this.removeAllChildren(groupId);
|
11502
|
-
this.
|
11508
|
+
this.unsetParent(groupId);
|
11503
11509
|
delete this._groupMap[groupId];
|
11504
11510
|
|
11505
11511
|
return true;
|
@@ -11558,12 +11564,26 @@ GroupDefinitions.prototype._ungroupChildren = function(children) {
|
|
11558
11564
|
if (Array.isArray(children)) {
|
11559
11565
|
var len = children.length;
|
11560
11566
|
for(var i = 0; i < len; ++i) {
|
11561
|
-
this.
|
11567
|
+
this.unsetParent(children[i]);
|
11562
11568
|
}
|
11563
11569
|
}
|
11564
11570
|
};
|
11565
11571
|
|
11566
|
-
|
11572
|
+
/** @public
|
11573
|
+
* @param {string} parentId Group id
|
11574
|
+
* @param {string} childId
|
11575
|
+
* @return {boolean}
|
11576
|
+
*/
|
11577
|
+
GroupDefinitions.prototype.hasGroupChild = function (parentId, childId) {
|
11578
|
+
var groupDef = this._groupMap[parentId];
|
11579
|
+
if(childId && groupDef) {
|
11580
|
+
var chdr = groupDef.children;
|
11581
|
+
if(chdr) {
|
11582
|
+
return chdr.indexOf(childId) >= 0;
|
11583
|
+
}
|
11584
|
+
}
|
11585
|
+
return false;
|
11586
|
+
};
|
11567
11587
|
/** @public
|
11568
11588
|
* @param {string} parentId Group id
|
11569
11589
|
* @param {string} childId
|
@@ -11575,7 +11595,7 @@ GroupDefinitions.prototype.addGroupChild = function (parentId, childId) {
|
|
11575
11595
|
if(childId && groupDef) {
|
11576
11596
|
var chdr = groupDef.children;
|
11577
11597
|
if(chdr && chdr.indexOf(childId) < 0) {
|
11578
|
-
this.
|
11598
|
+
this.unsetParent(childId); // Remove previous parent
|
11579
11599
|
// Add new child to group structures
|
11580
11600
|
this._childToParent[childId] = parentId;
|
11581
11601
|
var childDef = this._groupMap[childId];
|
@@ -11588,12 +11608,27 @@ GroupDefinitions.prototype.addGroupChild = function (parentId, childId) {
|
|
11588
11608
|
}
|
11589
11609
|
return false;
|
11590
11610
|
};
|
11611
|
+
/** Remove the given child from the specified parent. If childId is not given, unsetParent will be used on parentId instead of childId.
|
11612
|
+
* @public
|
11613
|
+
* @param {string} parentId Group id
|
11614
|
+
* @param {string=} childId
|
11615
|
+
* @return {boolean}
|
11616
|
+
*/
|
11617
|
+
GroupDefinitions.prototype.removeGroupChild = function (parentId, childId) {
|
11618
|
+
if(childId == null) {
|
11619
|
+
return this.unsetParent(parentId);
|
11620
|
+
}
|
11621
|
+
if(this.hasGroupChild(parentId, childId)) {
|
11622
|
+
return this.unsetParent(childId);
|
11623
|
+
}
|
11624
|
+
return false;
|
11625
|
+
};
|
11591
11626
|
/** Remove the given child from its own parent (i.e., unset Parent of the given child).
|
11592
11627
|
* @public
|
11593
11628
|
* @param {string} childId
|
11594
11629
|
* @return {boolean}
|
11595
11630
|
*/
|
11596
|
-
GroupDefinitions.prototype.
|
11631
|
+
GroupDefinitions.prototype.unsetParent = function (childId) {
|
11597
11632
|
var parentId = this._childToParent[childId];
|
11598
11633
|
if(!parentId) {
|
11599
11634
|
return false;
|
@@ -25372,7 +25407,7 @@ Core_Core.prototype._groupDefs = null;
|
|
25372
25407
|
* @return {string}
|
25373
25408
|
*/
|
25374
25409
|
Core_Core.getVersion = function () {
|
25375
|
-
return "5.1.
|
25410
|
+
return "5.1.35";
|
25376
25411
|
};
|
25377
25412
|
/** {@link ElementWrapper#dispose}
|
25378
25413
|
* @override
|