@refinitiv-ui/efx-grid 6.0.76 → 6.0.78
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/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
@@ -194,6 +194,10 @@ declare class DataView extends EventDispatcher {
|
|
194
194
|
|
195
195
|
public getDefaultCollapse(): boolean;
|
196
196
|
|
197
|
+
public isCollapsible(): boolean;
|
198
|
+
|
199
|
+
public disableCollapsing(bool?: boolean|null): void;
|
200
|
+
|
197
201
|
public getVisibleRowCount(): number;
|
198
202
|
|
199
203
|
public isRowDataInGroup(rowData: any, groupID?: string|null): boolean;
|
@@ -273,6 +273,10 @@ DataView.prototype._collapsed = false;
|
|
273
273
|
/** @private
|
274
274
|
* @type {boolean}
|
275
275
|
*/
|
276
|
+
DataView.prototype._collapsible = true;
|
277
|
+
/** @private
|
278
|
+
* @type {boolean}
|
279
|
+
*/
|
276
280
|
DataView.prototype._showOnlyFirstMember = false;
|
277
281
|
/** @private
|
278
282
|
* @type {boolean}
|
@@ -1723,7 +1727,7 @@ DataView.prototype._setCollapse = function(collapsed) {
|
|
1723
1727
|
}
|
1724
1728
|
}
|
1725
1729
|
} else if (this._isHeaderRowShown()) { // Only groups with visible group header can be expanded/collapsed
|
1726
|
-
if (this._collapsed !== collapsed) {
|
1730
|
+
if (this._collapsible && this._collapsed !== collapsed) {
|
1727
1731
|
this._collapsed = collapsed;
|
1728
1732
|
return true;
|
1729
1733
|
}
|
@@ -1797,6 +1801,20 @@ DataView.prototype.setDefaultCollapse = function(collapse) {
|
|
1797
1801
|
DataView.prototype.getDefaultCollapse = function() {
|
1798
1802
|
return !!this._shared.defaultCollapse; // it can be null, convert to boolean
|
1799
1803
|
};
|
1804
|
+
/**
|
1805
|
+
* @public
|
1806
|
+
* @return {boolean}
|
1807
|
+
*/
|
1808
|
+
DataView.prototype.isCollapsible = function() {
|
1809
|
+
return this._collapsible;
|
1810
|
+
};
|
1811
|
+
/**
|
1812
|
+
* @public
|
1813
|
+
* @param {boolean=} bool=true, if set it to false, it will be enable collapsing
|
1814
|
+
*/
|
1815
|
+
DataView.prototype.disableCollapsing = function(bool) {
|
1816
|
+
this._collapsible = !(bool !== false);
|
1817
|
+
};
|
1800
1818
|
/** @private
|
1801
1819
|
* @return {?Array.<string>}
|
1802
1820
|
*/
|
@@ -1345,7 +1345,7 @@ Scrollbar.prototype._onMouseWheel = function (e) {
|
|
1345
1345
|
Util._preventDefault(e);
|
1346
1346
|
return;
|
1347
1347
|
}
|
1348
|
-
if(e.ctrlKey || e.altKey
|
1348
|
+
if(e.ctrlKey || e.altKey ) { return; }
|
1349
1349
|
if (!this.isActive()) { return; }
|
1350
1350
|
|
1351
1351
|
var delta = (this._vertical) ? e["deltaY"] : e["deltaX"];
|
package/lib/grid/index.js
CHANGED
@@ -48,6 +48,12 @@ declare class CheckboxPlugin extends GridPlugin {
|
|
48
48
|
|
49
49
|
public deselectAll(check: boolean): void;
|
50
50
|
|
51
|
+
public selectCheckboxes(rowRefs: (number|string)[]|null, checked: boolean): void;
|
52
|
+
|
53
|
+
public deselectCheckboxes(rowRefs: (number|string)[]|null, checked: boolean): void;
|
54
|
+
|
55
|
+
public setCheckStates(rowRefs: (number|string)[]|null, checked: boolean): void;
|
56
|
+
|
51
57
|
public checkAll(checked: boolean): void;
|
52
58
|
|
53
59
|
public setAllCheckStates(checked: boolean): void;
|