@refinitiv-ui/efx-grid 6.0.41 → 6.0.43
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-format-dialog/lib/column-format-dialog.d.ts +1 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +3 -24
- package/lib/column-format-dialog/lib/preview-table.d.ts +1 -1
- package/lib/column-format-dialog/lib/preview-table.js +15 -27
- package/lib/core/dist/core.js +843 -871
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.d.ts +4 -0
- package/lib/core/es6/grid/Core.js +67 -2
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +3 -2
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +32 -26
- package/lib/core/es6/grid/util/util.js +25 -9
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +2 -2
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +1 -1
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +4 -4
- package/lib/formatters/es6/CoralIconFormatter.d.ts +3 -3
- package/lib/formatters/es6/CoralInputFormatter.d.ts +1 -1
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +2 -2
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +4 -4
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +1 -1
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +1 -1
- package/lib/formatters/es6/EFButtonFormatter.d.ts +2 -2
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +1 -1
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +4 -4
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +1 -1
- package/lib/formatters/es6/EFIconFormatter.d.ts +3 -3
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +1 -1
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +2 -2
- package/lib/formatters/es6/EFSelectFormatter.d.ts +4 -4
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +1 -1
- package/lib/formatters/es6/EFToggleFormatter.d.ts +1 -1
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +1 -1
- package/lib/formatters/es6/FormatterBuilder.d.ts +6 -2
- package/lib/formatters/es6/FormatterBuilder.js +328 -178
- package/lib/formatters/es6/NumericInputFormatter.d.ts +1 -1
- package/lib/formatters/es6/PercentBarFormatter.d.ts +6 -6
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +3 -3
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +1 -1
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +3 -3
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +3 -3
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +3 -3
- package/lib/formatters/es6/TextFormatter.d.ts +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +213 -44
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +24 -1
- package/lib/rt-grid/es6/Grid.js +92 -4
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +4 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +34 -19
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +9 -3
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +324 -388
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +17 -17
- package/lib/tr-grid-filter-input/es6/FilterInput.js +146 -33
- package/lib/tr-grid-util/es6/DateTime.js +3 -3
- package/lib/tr-grid-util/es6/GridPlugin.js +1 -1
- package/lib/types/es6/ColumnGrouping.d.ts +4 -0
- package/lib/types/es6/ColumnStack.d.ts +9 -3
- package/lib/types/es6/CoralButtonFormatter.d.ts +2 -2
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +1 -1
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +4 -4
- package/lib/types/es6/CoralIconFormatter.d.ts +3 -3
- package/lib/types/es6/CoralInputFormatter.d.ts +1 -1
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +2 -2
- package/lib/types/es6/CoralSelectFormatter.d.ts +4 -4
- package/lib/types/es6/CoralToggleFormatter.d.ts +1 -1
- package/lib/types/es6/Core/grid/Core.d.ts +4 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +3 -2
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +1 -1
- package/lib/types/es6/EFButtonFormatter.d.ts +2 -2
- package/lib/types/es6/EFCheckboxFormatter.d.ts +1 -1
- package/lib/types/es6/EFComboBoxFormatter.d.ts +4 -4
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +1 -1
- package/lib/types/es6/EFIconFormatter.d.ts +3 -3
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +1 -1
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +2 -2
- package/lib/types/es6/EFSelectFormatter.d.ts +4 -4
- package/lib/types/es6/EFTextFieldFormatter.d.ts +1 -1
- package/lib/types/es6/EFToggleFormatter.d.ts +1 -1
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +1 -1
- package/lib/types/es6/FilterInput.d.ts +17 -17
- package/lib/types/es6/FormatterBuilder.d.ts +6 -2
- package/lib/types/es6/NumericInputFormatter.d.ts +1 -1
- package/lib/types/es6/PercentBarFormatter.d.ts +6 -6
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +22 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +3 -3
- package/lib/types/es6/SimpleInputFormatter.d.ts +1 -1
- package/lib/types/es6/SimpleLinkFormatter.d.ts +3 -3
- package/lib/types/es6/SimpleTickerFormatter.d.ts +3 -3
- package/lib/types/es6/SimpleToggleFormatter.d.ts +3 -3
- package/lib/types/es6/TextFormatter.d.ts +1 -1
- package/lib/versions.json +6 -6
- package/package.json +1 -1
|
@@ -405,6 +405,10 @@ declare class Core extends ElementWrapper {
|
|
|
405
405
|
|
|
406
406
|
public getColumnGroupChildIds(groupId: string): (string)[]|null;
|
|
407
407
|
|
|
408
|
+
public getValidColumnList(colIds: (string)[]|null, columnMap?: any): (string)[];
|
|
409
|
+
|
|
410
|
+
public createColumnMap(colIds?: (string)[]|null): any;
|
|
411
|
+
|
|
408
412
|
public startBatch(batchType: string): boolean;
|
|
409
413
|
|
|
410
414
|
public stopBatch(batchType: string): boolean;
|
|
@@ -82,6 +82,7 @@ var Core = function (opt_initializer) {
|
|
|
82
82
|
|
|
83
83
|
_t._onMouseMove = _t._onMouseMove.bind(_t);
|
|
84
84
|
_t._onRowHightlighted = _t._onRowHightlighted.bind(_t);
|
|
85
|
+
_t._onGridClicked = _t._onGridClicked.bind(_t);
|
|
85
86
|
|
|
86
87
|
_t._onWindowResize = _t._onWindowResize.bind(_t);
|
|
87
88
|
_t._onSectionDataChanged = _t._onSectionDataChanged.bind(_t);
|
|
@@ -167,11 +168,16 @@ var Core = function (opt_initializer) {
|
|
|
167
168
|
_t._hscrollbar.setOtherScrollbar(_t._vscrollbar);
|
|
168
169
|
_t._vscrollbar.setOtherScrollbar(_t._hscrollbar);
|
|
169
170
|
|
|
170
|
-
if (Util.isMobile) {
|
|
171
|
+
if (Util.isMobile || Util.isTouchDevice) {
|
|
171
172
|
_t._element.addEventListener("touchmove", this._onMouseMove, false);
|
|
172
173
|
} else {
|
|
173
174
|
_t._element.addEventListener("mousemove", this._onMouseMove, false);
|
|
174
175
|
}
|
|
176
|
+
|
|
177
|
+
if(Util.isSafari){
|
|
178
|
+
_t._element.addEventListener("click", this._onGridClicked);
|
|
179
|
+
}
|
|
180
|
+
|
|
175
181
|
window.addEventListener("resize", _t._onWindowResize, false); // Should be unlistened after destroyed
|
|
176
182
|
_t._rowVirtualizer.listen("indexChanged", _t._onRowInViewChanged);
|
|
177
183
|
_t._colVirtualizer.listen("indexChanged", _t._onColInViewChanged);
|
|
@@ -556,7 +562,7 @@ Core.prototype._batches = null;
|
|
|
556
562
|
* @return {string}
|
|
557
563
|
*/
|
|
558
564
|
Core.getVersion = function () {
|
|
559
|
-
return "5.1.
|
|
565
|
+
return "5.1.64";
|
|
560
566
|
};
|
|
561
567
|
/** {@link ElementWrapper#dispose}
|
|
562
568
|
* @override
|
|
@@ -4411,6 +4417,53 @@ Core.prototype.getColumnGroupChildIds = function (groupId) {
|
|
|
4411
4417
|
return null;
|
|
4412
4418
|
};
|
|
4413
4419
|
|
|
4420
|
+
/** @public
|
|
4421
|
+
* @description Get a list of objects with column id and column index in sorted order
|
|
4422
|
+
* @param {Array.<string>} colIds
|
|
4423
|
+
* @param {Object=} columnMap
|
|
4424
|
+
* @return {!Array.<string>} Return column array with corresponding order to UI
|
|
4425
|
+
* @example
|
|
4426
|
+
* core.getValidColumnList(["c1","c2","c5"]); // Get list of valid columns
|
|
4427
|
+
* core.getValidColumnList(["c1","c2","c5"],{ "c2":true, "c5":true }); // Get list of valid columns from specific mapping
|
|
4428
|
+
*/
|
|
4429
|
+
Core.prototype.getValidColumnList = function (colIds, columnMap) {
|
|
4430
|
+
var colList = [];
|
|
4431
|
+
if(!colIds){
|
|
4432
|
+
return colList;
|
|
4433
|
+
}
|
|
4434
|
+
if(!columnMap){
|
|
4435
|
+
columnMap = this.createColumnMap(colIds);
|
|
4436
|
+
}
|
|
4437
|
+
var colCount = this.getColumnCount();
|
|
4438
|
+
for(var c = 0; c < colCount; ++c) {
|
|
4439
|
+
var id = this._getColumnDef(c)["id"];
|
|
4440
|
+
if(columnMap[id] != null){
|
|
4441
|
+
colList.push({"index": c, "id": id});
|
|
4442
|
+
}
|
|
4443
|
+
}
|
|
4444
|
+
return colList;
|
|
4445
|
+
};
|
|
4446
|
+
|
|
4447
|
+
/** @public
|
|
4448
|
+
* @description Create mapping object from an array of strings
|
|
4449
|
+
* @param {Array.<string>=} colIds
|
|
4450
|
+
* @return {!Object} Column mapping object
|
|
4451
|
+
*/
|
|
4452
|
+
Core.prototype.createColumnMap = function (colIds) {
|
|
4453
|
+
if(!colIds){
|
|
4454
|
+
colIds = this.getColumnIds();
|
|
4455
|
+
}
|
|
4456
|
+
var mappingObj = {};
|
|
4457
|
+
var count = colIds.length;
|
|
4458
|
+
for(var i = 0; i < count; i++){
|
|
4459
|
+
var colId = colIds[i];
|
|
4460
|
+
if(colId){
|
|
4461
|
+
mappingObj[colId] = true;
|
|
4462
|
+
}
|
|
4463
|
+
}
|
|
4464
|
+
return mappingObj;
|
|
4465
|
+
};
|
|
4466
|
+
|
|
4414
4467
|
/** @public
|
|
4415
4468
|
* @param {string} batchType
|
|
4416
4469
|
* @return {boolean}
|
|
@@ -5250,6 +5303,18 @@ Core.prototype._onMouseMove = function () {
|
|
|
5250
5303
|
this._vscrollbar.flash();
|
|
5251
5304
|
this._hscrollbar.flash();
|
|
5252
5305
|
};
|
|
5306
|
+
/** @private */
|
|
5307
|
+
Core.prototype._onGridClicked = function () {
|
|
5308
|
+
// research for dragging
|
|
5309
|
+
var selection = window.getSelection();
|
|
5310
|
+
if(selection.toString()){
|
|
5311
|
+
return;
|
|
5312
|
+
}
|
|
5313
|
+
var activeElem = document.activeElement;
|
|
5314
|
+
if(!this._element.contains(activeElem)){
|
|
5315
|
+
this.focus();
|
|
5316
|
+
}
|
|
5317
|
+
};
|
|
5253
5318
|
|
|
5254
5319
|
/** @private
|
|
5255
5320
|
* @param {Object} e
|
|
@@ -11,8 +11,9 @@ declare namespace SortableTitlePlugin {
|
|
|
11
11
|
type SortOrder = "a" | "ascending" | "d" | "descending" | "n" | null|null;
|
|
12
12
|
|
|
13
13
|
type InitialSort = {
|
|
14
|
-
colIndex
|
|
15
|
-
|
|
14
|
+
colIndex?: number|null,
|
|
15
|
+
colId?: string|null,
|
|
16
|
+
field?: string|null,
|
|
16
17
|
sortOrder?: SortableTitlePlugin.SortOrder|null,
|
|
17
18
|
order?: SortableTitlePlugin.SortOrder|null
|
|
18
19
|
};
|
|
@@ -81,8 +81,9 @@ Ext.inherits(SortableTitlePlugin, EventDispatcher);
|
|
|
81
81
|
|
|
82
82
|
/** The sorting object which will be used for initialSort config.
|
|
83
83
|
* @typedef {Object} SortableTitlePlugin~InitialSort
|
|
84
|
-
* @property {number} colIndex Index of the column
|
|
85
|
-
* @property {string}
|
|
84
|
+
* @property {number=} colIndex Index of the column
|
|
85
|
+
* @property {string=} colId column id of the column
|
|
86
|
+
* @property {string=} field field of the column
|
|
86
87
|
* @property {SortableTitlePlugin~SortOrder=} sortOrder=null Set to "d" for descending order and "a" for ascending order
|
|
87
88
|
* @property {SortableTitlePlugin~SortOrder=} order Alias of sortOrder
|
|
88
89
|
*/
|
|
@@ -740,6 +741,7 @@ SortableTitlePlugin.prototype.getSortedColumns = function () {
|
|
|
740
741
|
var state = this._sortStates[i];
|
|
741
742
|
arr[i] = {
|
|
742
743
|
"colIndex": colIndex,
|
|
744
|
+
"colId": this._getColumnId(colIndex),
|
|
743
745
|
"field": state["field"] || "",
|
|
744
746
|
"sortOrder": state["sortOrder"] || "n"
|
|
745
747
|
};
|
|
@@ -781,7 +783,7 @@ SortableTitlePlugin.prototype.sortColumns = function (sortOptions, opt_arg) {
|
|
|
781
783
|
var opt = sortOptions[i];
|
|
782
784
|
var colRef = opt["colIndex"];
|
|
783
785
|
if(colRef < 0 || colRef == null) {
|
|
784
|
-
colRef = opt["field"];
|
|
786
|
+
colRef = opt["colId"] || opt["field"];
|
|
785
787
|
}
|
|
786
788
|
var state = this._prepareSorting(
|
|
787
789
|
colRef,
|
|
@@ -1368,19 +1370,9 @@ SortableTitlePlugin.prototype._prepareSorting = function (colRef, sortOrder) {
|
|
|
1368
1370
|
return null;
|
|
1369
1371
|
}
|
|
1370
1372
|
|
|
1371
|
-
var colIndex =
|
|
1372
|
-
var
|
|
1373
|
-
var
|
|
1374
|
-
if(typeof colRef === "number") {
|
|
1375
|
-
colIndex = colRef;
|
|
1376
|
-
field = this.getColumnSortingField(colIndex);
|
|
1377
|
-
priority = this.getSortPriority(colIndex);
|
|
1378
|
-
} else if(typeof colRef === "string") {
|
|
1379
|
-
field = colRef;
|
|
1380
|
-
colIndex = this._getColumnIndexByField(field);
|
|
1381
|
-
var fields = this.getColumnSortingFields();
|
|
1382
|
-
priority = fields.indexOf(field);
|
|
1383
|
-
}
|
|
1373
|
+
var colIndex = this._getColumnIndex(colRef);
|
|
1374
|
+
var priority = this.getSortPriority(colIndex);
|
|
1375
|
+
var field = this.getColumnSortingField(colIndex);
|
|
1384
1376
|
|
|
1385
1377
|
var curState = (priority >= 0) ? this._sortStates[priority] : null;
|
|
1386
1378
|
var curOrder = curState ? curState["sortOrder"] : "n";
|
|
@@ -1764,21 +1756,29 @@ SortableTitlePlugin.prototype._getColumnIndexByOptions = function (sortOptions)
|
|
|
1764
1756
|
return -1;
|
|
1765
1757
|
};
|
|
1766
1758
|
/** @private
|
|
1767
|
-
* @param {string}
|
|
1759
|
+
* @param {string|number} colRef
|
|
1768
1760
|
* @return {number}
|
|
1769
1761
|
*/
|
|
1770
|
-
SortableTitlePlugin.prototype.
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
for (var c = 0; c < colCount; ++c) {
|
|
1775
|
-
if(field === this.getColumnSortingField(c)) {
|
|
1776
|
-
return c;
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1762
|
+
SortableTitlePlugin.prototype._getColumnIndex = function (colRef) {
|
|
1763
|
+
var host = this._hosts[0];
|
|
1764
|
+
if(host && colRef != null) {
|
|
1765
|
+
return host.getColumnIndex(colRef);
|
|
1779
1766
|
}
|
|
1780
1767
|
return -1;
|
|
1781
1768
|
};
|
|
1769
|
+
|
|
1770
|
+
/** @private
|
|
1771
|
+
* @param {string|number} colRef
|
|
1772
|
+
* @return {string} column id or empty string for not found
|
|
1773
|
+
*/
|
|
1774
|
+
SortableTitlePlugin.prototype._getColumnId = function (colRef) {
|
|
1775
|
+
var host = this._hosts[0];
|
|
1776
|
+
if(host && colRef != null) {
|
|
1777
|
+
return host.getColumnId(colRef);
|
|
1778
|
+
}
|
|
1779
|
+
return "";
|
|
1780
|
+
};
|
|
1781
|
+
|
|
1782
1782
|
/** @private
|
|
1783
1783
|
* @param {number} colIndex
|
|
1784
1784
|
* @return {Object}
|
|
@@ -1838,6 +1838,12 @@ SortableTitlePlugin.prototype._isCellSortable = function (section, colIndex, row
|
|
|
1838
1838
|
if (targetCell !== bottomCell) {
|
|
1839
1839
|
return false;
|
|
1840
1840
|
}
|
|
1841
|
+
var parentCell = targetCell.getParent();
|
|
1842
|
+
var classList = parentCell["classList"];
|
|
1843
|
+
// "collapsed" class in column element only enable by column stack in spreading mode
|
|
1844
|
+
if (classList.contains("collapsed")) { // HACK: unsortable for collapsed stack in spreading mode
|
|
1845
|
+
return false;
|
|
1846
|
+
}
|
|
1841
1847
|
|
|
1842
1848
|
return true; // By default all cells are sortable
|
|
1843
1849
|
};
|
|
@@ -2,23 +2,46 @@
|
|
|
2
2
|
* @namespace
|
|
3
3
|
*/
|
|
4
4
|
var Util = {};
|
|
5
|
+
|
|
6
|
+
// TODO: move to tr-grid-util
|
|
7
|
+
|
|
5
8
|
/** @const
|
|
6
9
|
* @type {boolean}
|
|
7
10
|
*/
|
|
8
|
-
Util.isIE =
|
|
11
|
+
Util.isIE = (function () {
|
|
9
12
|
var ua = window.navigator.userAgent;
|
|
10
13
|
return (ua.indexOf('MSIE ') > 0) || (ua.indexOf('Trident/') > 0) || (ua.indexOf('Edge/') > 0);
|
|
11
14
|
}());
|
|
12
15
|
/** @const
|
|
13
16
|
* @type {boolean}
|
|
14
17
|
*/
|
|
15
|
-
Util.isTouchDevice =
|
|
18
|
+
Util.isTouchDevice = (function () {
|
|
16
19
|
if ((navigator["maxTouchPoints"] && navigator["maxTouchPoints"] < 256) ||
|
|
17
20
|
(navigator["msMaxTouchPoints"] && navigator["msMaxTouchPoints"] < 256)) {
|
|
18
21
|
return true;
|
|
19
22
|
}
|
|
20
23
|
return false;
|
|
21
24
|
}());
|
|
25
|
+
/** @const
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
*/
|
|
28
|
+
Util.isSafari = (function () {
|
|
29
|
+
var rejectedExpression = /Chrome|Android|CriOS|FxiOS|EdgiOS/i;
|
|
30
|
+
var safariExpression = /Safari/i;
|
|
31
|
+
var agent = navigator.userAgent;
|
|
32
|
+
if (rejectedExpression.test(agent)) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
return safariExpression.test(agent);
|
|
36
|
+
}());
|
|
37
|
+
|
|
38
|
+
/** @public
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
*/
|
|
41
|
+
Util.isMobile = (function () {
|
|
42
|
+
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
43
|
+
}());
|
|
44
|
+
|
|
22
45
|
/** Retrieve an element from Novakit control or any object that has "getElement" method.
|
|
23
46
|
* @public
|
|
24
47
|
* @ignore
|
|
@@ -364,12 +387,5 @@ Util._preventDefault = function (e) {
|
|
|
364
387
|
e.stopPropagation();
|
|
365
388
|
};
|
|
366
389
|
|
|
367
|
-
/** @public
|
|
368
|
-
* @type {boolean}
|
|
369
|
-
*/
|
|
370
|
-
Util.isMobile = Util.isMobile || (function () {
|
|
371
|
-
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
372
|
-
}());
|
|
373
|
-
|
|
374
390
|
export default Util;
|
|
375
391
|
export { Util };
|
|
@@ -3,7 +3,7 @@ import FormatterBuilder from "./FormatterBuilder.js";
|
|
|
3
3
|
declare namespace CoralButtonFormatter {
|
|
4
4
|
|
|
5
5
|
type Options = {
|
|
6
|
-
label?: string
|
|
6
|
+
label?: string|null
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
}
|
|
@@ -12,7 +12,7 @@ declare class CoralButtonFormatter {
|
|
|
12
12
|
|
|
13
13
|
constructor(options?: any);
|
|
14
14
|
|
|
15
|
-
public static create(options?: (FormatterBuilder.Options|CoralButtonFormatter.Options|any)): any;
|
|
15
|
+
public static create(options?: (FormatterBuilder.Options|CoralButtonFormatter.Options|any)|null): any;
|
|
16
16
|
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -4,9 +4,9 @@ import ElfUtil from "../../tr-grid-util/es6/ElfUtil.js";
|
|
|
4
4
|
declare namespace CoralComboBoxFormatter {
|
|
5
5
|
|
|
6
6
|
type Options = {
|
|
7
|
-
data?: any[],
|
|
8
|
-
entries?: any[],
|
|
9
|
-
items?: any[]
|
|
7
|
+
data?: any[]|null,
|
|
8
|
+
entries?: any[]|null,
|
|
9
|
+
items?: any[]|null
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
}
|
|
@@ -15,7 +15,7 @@ declare class CoralComboBoxFormatter {
|
|
|
15
15
|
|
|
16
16
|
constructor(options?: any);
|
|
17
17
|
|
|
18
|
-
public static create(options?: (FormatterBuilder.Options|CoralComboBoxFormatter.Options|any)): any;
|
|
18
|
+
public static create(options?: (FormatterBuilder.Options|CoralComboBoxFormatter.Options|any)|null): any;
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -3,8 +3,8 @@ import FormatterBuilder from "./FormatterBuilder.js";
|
|
|
3
3
|
declare namespace CoralIconFormatter {
|
|
4
4
|
|
|
5
5
|
type Options = {
|
|
6
|
-
icon?: (string|any),
|
|
7
|
-
size?: (number|string)
|
|
6
|
+
icon?: (string|any)|null,
|
|
7
|
+
size?: (number|string)|null
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
}
|
|
@@ -13,7 +13,7 @@ declare class CoralIconFormatter {
|
|
|
13
13
|
|
|
14
14
|
constructor(options?: any);
|
|
15
15
|
|
|
16
|
-
public static create(options?: (FormatterBuilder.Options|CoralIconFormatter.Options|any)): any;
|
|
16
|
+
public static create(options?: (FormatterBuilder.Options|CoralIconFormatter.Options|any)|null): any;
|
|
17
17
|
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -3,7 +3,7 @@ import FormatterBuilder from "./FormatterBuilder.js";
|
|
|
3
3
|
declare namespace CoralRadioButtonFormatter {
|
|
4
4
|
|
|
5
5
|
type Options = {
|
|
6
|
-
initialIndex?: number
|
|
6
|
+
initialIndex?: number|null
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
}
|
|
@@ -12,7 +12,7 @@ declare class CoralRadioButtonFormatter {
|
|
|
12
12
|
|
|
13
13
|
constructor(options?: any);
|
|
14
14
|
|
|
15
|
-
public static create(options?: (FormatterBuilder.Options|CoralRadioButtonFormatter.Options|any)): any;
|
|
15
|
+
public static create(options?: (FormatterBuilder.Options|CoralRadioButtonFormatter.Options|any)|null): any;
|
|
16
16
|
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -4,9 +4,9 @@ import CoralItems from "../../tr-grid-util/es6/CoralItems.js";
|
|
|
4
4
|
declare namespace CoralSelectFormatter {
|
|
5
5
|
|
|
6
6
|
type Options = {
|
|
7
|
-
data?: any[],
|
|
8
|
-
entries?: any[],
|
|
9
|
-
items?: any[]
|
|
7
|
+
data?: any[]|null,
|
|
8
|
+
entries?: any[]|null,
|
|
9
|
+
items?: any[]|null
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
}
|
|
@@ -15,7 +15,7 @@ declare class CoralSelectFormatter {
|
|
|
15
15
|
|
|
16
16
|
constructor(options?: any);
|
|
17
17
|
|
|
18
|
-
public static create(options?: (FormatterBuilder.Options|CoralSelectFormatter.Options|any)): any;
|
|
18
|
+
public static create(options?: (FormatterBuilder.Options|CoralSelectFormatter.Options|any)|null): any;
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -3,7 +3,7 @@ import FormatterBuilder from "./FormatterBuilder.js";
|
|
|
3
3
|
declare namespace EFButtonFormatter {
|
|
4
4
|
|
|
5
5
|
type Options = {
|
|
6
|
-
label?: string
|
|
6
|
+
label?: string|null
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
}
|
|
@@ -12,7 +12,7 @@ declare class EFButtonFormatter {
|
|
|
12
12
|
|
|
13
13
|
constructor(options?: any);
|
|
14
14
|
|
|
15
|
-
public static create(options?: (FormatterBuilder.Options|EFButtonFormatter.Options|any)): any;
|
|
15
|
+
public static create(options?: (FormatterBuilder.Options|EFButtonFormatter.Options|any)|null): any;
|
|
16
16
|
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -4,9 +4,9 @@ import CoralItems from "../../tr-grid-util/es6/CoralItems.js";
|
|
|
4
4
|
declare namespace EFComboBoxFormatter {
|
|
5
5
|
|
|
6
6
|
type Options = {
|
|
7
|
-
data?: any[],
|
|
8
|
-
entries?: any[],
|
|
9
|
-
items?: any[]
|
|
7
|
+
data?: any[]|null,
|
|
8
|
+
entries?: any[]|null,
|
|
9
|
+
items?: any[]|null
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
}
|
|
@@ -15,7 +15,7 @@ declare class EFComboBoxFormatter {
|
|
|
15
15
|
|
|
16
16
|
constructor(options?: any);
|
|
17
17
|
|
|
18
|
-
public static create(options?: (FormatterBuilder.Options|EFComboBoxFormatter.Options|any)): any;
|
|
18
|
+
public static create(options?: (FormatterBuilder.Options|EFComboBoxFormatter.Options|any)|null): any;
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -3,8 +3,8 @@ import FormatterBuilder from "./FormatterBuilder.js";
|
|
|
3
3
|
declare namespace EFIconFormatter {
|
|
4
4
|
|
|
5
5
|
type Options = {
|
|
6
|
-
icon?: (string|any),
|
|
7
|
-
size?: (number|string)
|
|
6
|
+
icon?: (string|any)|null,
|
|
7
|
+
size?: (number|string)|null
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
}
|
|
@@ -13,7 +13,7 @@ declare class EFIconFormatter {
|
|
|
13
13
|
|
|
14
14
|
constructor(options?: any);
|
|
15
15
|
|
|
16
|
-
public static create(options?: (FormatterBuilder.Options|EFIconFormatter.Options|any)): any;
|
|
16
|
+
public static create(options?: (FormatterBuilder.Options|EFIconFormatter.Options|any)|null): any;
|
|
17
17
|
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -3,7 +3,7 @@ import FormatterBuilder from "./FormatterBuilder.js";
|
|
|
3
3
|
declare namespace EFRadioButtonFormatter {
|
|
4
4
|
|
|
5
5
|
type Options = {
|
|
6
|
-
initialIndex?: number
|
|
6
|
+
initialIndex?: number|null
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
}
|
|
@@ -12,7 +12,7 @@ declare class EFRadioButtonFormatter {
|
|
|
12
12
|
|
|
13
13
|
constructor(options?: any);
|
|
14
14
|
|
|
15
|
-
public static create(options?: (FormatterBuilder.Options|EFRadioButtonFormatter.Options|any)): any;
|
|
15
|
+
public static create(options?: (FormatterBuilder.Options|EFRadioButtonFormatter.Options|any)|null): any;
|
|
16
16
|
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -4,9 +4,9 @@ import CoralItems from "../../tr-grid-util/es6/CoralItems.js";
|
|
|
4
4
|
declare namespace EFSelectFormatter {
|
|
5
5
|
|
|
6
6
|
type Options = {
|
|
7
|
-
data?: any[],
|
|
8
|
-
entries?: any[],
|
|
9
|
-
items?: any[]
|
|
7
|
+
data?: any[]|null,
|
|
8
|
+
entries?: any[]|null,
|
|
9
|
+
items?: any[]|null
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
}
|
|
@@ -15,7 +15,7 @@ declare class EFSelectFormatter {
|
|
|
15
15
|
|
|
16
16
|
constructor(options?: any);
|
|
17
17
|
|
|
18
|
-
public static create(options?: (FormatterBuilder.Options|EFSelectFormatter.Options|any)): any;
|
|
18
|
+
public static create(options?: (FormatterBuilder.Options|EFSelectFormatter.Options|any)|null): any;
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
declare namespace FormatterBuilder {
|
|
4
4
|
|
|
5
5
|
type Options = {
|
|
6
|
+
field?: string|null,
|
|
6
7
|
attributes?: any,
|
|
7
8
|
styles?: any,
|
|
8
|
-
events?: any
|
|
9
|
+
events?: any,
|
|
10
|
+
changeHandler?: ((...params: any[]) => any)|null,
|
|
11
|
+
changeHandlers?: (((...params: any[]) => any))[]|null,
|
|
12
|
+
onElementRendered?: ((...params: any[]) => any)|null
|
|
9
13
|
};
|
|
10
14
|
|
|
11
15
|
}
|
|
@@ -14,7 +18,7 @@ declare class FormatterBuilder {
|
|
|
14
18
|
|
|
15
19
|
constructor(options?: any);
|
|
16
20
|
|
|
17
|
-
public static create(userOptions?: FormatterBuilder.Options, defaultOpt?: FormatterBuilder.Options): any;
|
|
21
|
+
public static create(userOptions?: FormatterBuilder.Options|null, defaultOpt?: FormatterBuilder.Options|null): any;
|
|
18
22
|
|
|
19
23
|
}
|
|
20
24
|
|