@refinitiv-ui/efx-grid 6.0.77 → 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.
@@ -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
  */
@@ -570,7 +570,7 @@ Core.prototype._firstRendered = false;
570
570
  * @return {string}
571
571
  */
572
572
  Core.getVersion = function () {
573
- return "5.1.83";
573
+ return "5.1.84";
574
574
  };
575
575
  /** {@link ElementWrapper#dispose}
576
576
  * @override
package/lib/grid/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import {Grid} from "./lib/efx-grid.js";
2
2
  export {Grid}
3
- window.EFX_GRID = { version: "6.0.77" };
3
+ window.EFX_GRID = { version: "6.0.78" };
@@ -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;