@refinitiv-ui/efx-grid 6.0.77 → 6.0.79
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 +20 -2
- 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/filter-dialog/lib/filter-dialog.js +4 -2
- package/lib/formatters/es6/TextFormatter.js +6 -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 +319 -234
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +2 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +18 -1
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +8 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +95 -0
- package/lib/types/es6/Checkbox.d.ts +6 -0
- package/lib/types/es6/Core/data/DataView.d.ts +4 -0
- package/lib/types/es6/RowGrouping.d.ts +2 -0
- package/lib/versions.json +5 -5
- 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
|
*/
|
@@ -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 === "
|
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
@@ -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;
|