@refinitiv-ui/efx-grid 6.0.77 → 6.0.79

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -73,7 +73,9 @@ const TEXT_FILTERS = [
73
73
  DEFAULT_FILTERS[6],
74
74
  DEFAULT_FILTERS[7],
75
75
  DEFAULT_FILTERS[8],
76
- DEFAULT_FILTERS[9]
76
+ DEFAULT_FILTERS[9],
77
+ DEFAULT_FILTERS[10],
78
+ DEFAULT_FILTERS[11]
77
79
  ];
78
80
  /** @type {Array.<Array>}
79
81
  * @private
@@ -736,7 +738,7 @@ class FilterDialog extends BasicElement {
736
738
  var fdt = dateTimeType ? dateTimeType : this.fieldDataType.toLowerCase();
737
739
  if(fdt === "number") {
738
740
  filterItems = NUMBER_FILTERS;
739
- } else if(fdt === "general" || fdt === "text") {
741
+ } else if(fdt === "string" || fdt === "text") {
740
742
  filterItems = TEXT_FILTERS;
741
743
  } else {
742
744
  filterItems = DEFAULT_FILTERS;
@@ -5,6 +5,10 @@ var onElementUpdated = function (element, ctx) {
5
5
  element.textContent = ctx.value;
6
6
  };
7
7
 
8
+ var onElementCreated = function (element, ctx) {
9
+ element.classList.add("text");
10
+ };
11
+
8
12
  /** @constructor
9
13
  * @param {*=} options
10
14
  */
@@ -20,7 +24,8 @@ TextFormatter.create = function (options) {
20
24
  var defaultOpt = {
21
25
  tagName: "div",
22
26
  refName: "TextFormatter",
23
- onElementUpdated: onElementUpdated
27
+ onElementUpdated: onElementUpdated,
28
+ onElementCreated: onElementCreated
24
29
  };
25
30
 
26
31
  return FormatterBuilder.create(options, defaultOpt);
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.79" };
@@ -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;