@refinitiv-ui/efx-grid 6.0.76 → 6.0.78
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/column-dragging/es6/ColumnDragging.js +6 -5
- package/lib/core/dist/core.js +21 -3
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataView.d.ts +4 -0
- package/lib/core/es6/data/DataView.js +19 -1
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/core/es6/grid/components/Scrollbar.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +6 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +296 -232
- package/lib/types/es6/Checkbox.d.ts +6 -0
- package/lib/types/es6/Core/data/DataView.d.ts +4 -0
- package/lib/versions.json +3 -3
- package/package.json +1 -1
@@ -538,11 +538,8 @@ ColumnDraggingPlugin.prototype._onDrag = function (e) {
|
|
538
538
|
e.dragBox = this._dragBox;
|
539
539
|
this._renderGuideline();
|
540
540
|
this._dispatch("drag", /** @type{!Object} */(e));
|
541
|
-
|
542
|
-
|
543
|
-
var drop = this._dragUI.renderDragBox(e, this._clickedGrid);
|
544
|
-
if(!drop) { // can not be drop or not allow to drop or insertion
|
545
|
-
this._pos["cancel"] = true;
|
541
|
+
if(!this._noDragBox) {
|
542
|
+
this._dragUI.renderDragBox(e, this._clickedGrid);
|
546
543
|
}
|
547
544
|
}
|
548
545
|
};
|
@@ -586,6 +583,9 @@ ColumnDraggingPlugin.prototype._onDragEnd = function (e) {
|
|
586
583
|
operationCancelled = true;
|
587
584
|
}
|
588
585
|
|
586
|
+
if(!this._noDragBox && this._dragBoxIcon.icon === "void") {
|
587
|
+
operationCancelled = true;
|
588
|
+
}
|
589
589
|
//When move to the right, the first position is the current one.
|
590
590
|
if (this._destColumn > this._startColumn) {
|
591
591
|
--this._destColumn;
|
@@ -698,6 +698,7 @@ ColumnDraggingPlugin.prototype._clearCache = function() {
|
|
698
698
|
|
699
699
|
this._clickedRow = -1;
|
700
700
|
this._clickedSection = this._clickedGrid = null;
|
701
|
+
this._dragBoxIcon.icon = null;
|
701
702
|
};
|
702
703
|
|
703
704
|
/** @private
|
package/lib/core/dist/core.js
CHANGED
@@ -7588,7 +7588,7 @@ Scrollbar.prototype._onMouseWheel = function (e) {
|
|
7588
7588
|
util._preventDefault(e);
|
7589
7589
|
return;
|
7590
7590
|
}
|
7591
|
-
if(e.ctrlKey || e.altKey
|
7591
|
+
if(e.ctrlKey || e.altKey ) { return; }
|
7592
7592
|
if (!this.isActive()) { return; }
|
7593
7593
|
|
7594
7594
|
var delta = (this._vertical) ? e["deltaY"] : e["deltaX"];
|
@@ -19147,6 +19147,10 @@ DataView.prototype._collapsed = false;
|
|
19147
19147
|
/** @private
|
19148
19148
|
* @type {boolean}
|
19149
19149
|
*/
|
19150
|
+
DataView.prototype._collapsible = true;
|
19151
|
+
/** @private
|
19152
|
+
* @type {boolean}
|
19153
|
+
*/
|
19150
19154
|
DataView.prototype._showOnlyFirstMember = false;
|
19151
19155
|
/** @private
|
19152
19156
|
* @type {boolean}
|
@@ -20597,7 +20601,7 @@ DataView.prototype._setCollapse = function(collapsed) {
|
|
20597
20601
|
}
|
20598
20602
|
}
|
20599
20603
|
} else if (this._isHeaderRowShown()) { // Only groups with visible group header can be expanded/collapsed
|
20600
|
-
if (this._collapsed !== collapsed) {
|
20604
|
+
if (this._collapsible && this._collapsed !== collapsed) {
|
20601
20605
|
this._collapsed = collapsed;
|
20602
20606
|
return true;
|
20603
20607
|
}
|
@@ -20671,6 +20675,20 @@ DataView.prototype.setDefaultCollapse = function(collapse) {
|
|
20671
20675
|
DataView.prototype.getDefaultCollapse = function() {
|
20672
20676
|
return !!this._shared.defaultCollapse; // it can be null, convert to boolean
|
20673
20677
|
};
|
20678
|
+
/**
|
20679
|
+
* @public
|
20680
|
+
* @return {boolean}
|
20681
|
+
*/
|
20682
|
+
DataView.prototype.isCollapsible = function() {
|
20683
|
+
return this._collapsible;
|
20684
|
+
};
|
20685
|
+
/**
|
20686
|
+
* @public
|
20687
|
+
* @param {boolean=} bool=true, if set it to false, it will be enable collapsing
|
20688
|
+
*/
|
20689
|
+
DataView.prototype.disableCollapsing = function(bool) {
|
20690
|
+
this._collapsible = !(bool !== false);
|
20691
|
+
};
|
20674
20692
|
/** @private
|
20675
20693
|
* @return {?Array.<string>}
|
20676
20694
|
*/
|
@@ -26109,7 +26127,7 @@ Core_Core.prototype._firstRendered = false;
|
|
26109
26127
|
* @return {string}
|
26110
26128
|
*/
|
26111
26129
|
Core_Core.getVersion = function () {
|
26112
|
-
return "5.1.
|
26130
|
+
return "5.1.84";
|
26113
26131
|
};
|
26114
26132
|
/** {@link ElementWrapper#dispose}
|
26115
26133
|
* @override
|