@refinitiv-ui/efx-grid 6.0.92 → 6.0.94
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/filter-dialog/lib/filter-dialog.js +1 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +0 -2
- package/lib/formatters/es6/CoralButtonFormatter.js +9 -4
- package/lib/formatters/es6/CoralCheckboxFormatter.js +10 -5
- package/lib/formatters/es6/CoralComboBoxFormatter.js +13 -12
- package/lib/formatters/es6/CoralIconFormatter.d.ts +0 -2
- package/lib/formatters/es6/CoralIconFormatter.js +9 -4
- package/lib/formatters/es6/CoralInputFormatter.js +9 -4
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +0 -2
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +20 -15
- package/lib/formatters/es6/CoralSelectFormatter.js +12 -7
- package/lib/formatters/es6/CoralToggleFormatter.js +4 -4
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +20 -20
- package/lib/formatters/es6/EFButtonFormatter.d.ts +0 -2
- package/lib/formatters/es6/EFButtonFormatter.js +9 -4
- package/lib/formatters/es6/EFCheckboxFormatter.js +10 -5
- package/lib/formatters/es6/EFComboBoxFormatter.js +17 -7
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +11 -6
- package/lib/formatters/es6/EFIconFormatter.d.ts +0 -2
- package/lib/formatters/es6/EFIconFormatter.js +9 -4
- package/lib/formatters/es6/EFNumberFieldFormatter.js +9 -4
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +0 -2
- package/lib/formatters/es6/EFRadioButtonFormatter.js +25 -15
- package/lib/formatters/es6/EFSelectFormatter.js +17 -7
- package/lib/formatters/es6/EFTextFieldFormatter.js +4 -4
- package/lib/formatters/es6/EFToggleFormatter.js +4 -4
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +6 -6
- package/lib/formatters/es6/FormatterBuilder.js +32 -32
- package/lib/formatters/es6/NumericInputFormatter.js +7 -7
- package/lib/formatters/es6/PercentBarFormatter.js +5 -5
- package/lib/formatters/es6/SimpleImageFormatter.js +3 -3
- package/lib/formatters/es6/SimpleInputFormatter.js +4 -4
- package/lib/formatters/es6/SimpleLinkFormatter.js +4 -4
- package/lib/formatters/es6/SimpleTickerFormatter.js +5 -5
- package/lib/formatters/es6/SimpleToggleFormatter.js +16 -16
- package/lib/formatters/es6/TextFormatter.js +4 -4
- package/lib/grid/index.js +1 -1
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1 -1
- package/lib/tr-grid-checkbox/es6/Checkbox.js +268 -268
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +1 -2
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +36 -36
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +279 -279
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +227 -207
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +11 -11
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +1 -2
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +120 -121
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +139 -137
- package/lib/tr-grid-row-selection/es6/RowSelection.js +260 -279
- package/lib/tr-grid-util/es6/CellPainter.js +2 -13
- package/lib/tr-grid-util/es6/DateTime.js +2 -2
- package/lib/tr-grid-util/es6/Delay.d.ts +3 -3
- package/lib/tr-grid-util/es6/Delay.js +13 -2
- package/lib/tr-grid-util/es6/DragUI.js +1 -1
- package/lib/tr-grid-util/es6/FilterBuilder.js +1 -2
- package/lib/tr-grid-util/es6/GridPlugin.js +0 -1
- package/lib/tr-grid-util/es6/MultiTableManager.js +4 -13
- package/lib/tr-grid-util/es6/NumberFormatter.js +1 -1
- package/lib/tr-grid-util/es6/TextHighlighter.js +3 -3
- package/lib/types/es6/ColumnGrouping.d.ts +1 -2
- package/lib/types/es6/RowDragging.d.ts +1 -2
- package/lib/versions.json +14 -14
- package/package.json +1 -1
@@ -568,11 +568,7 @@ CellPainter._colorTextCondition = function(field, rowData) {
|
|
568
568
|
* @return {undefined|number}
|
569
569
|
*/
|
570
570
|
CellPainter._tickColorTextCondition = function(field, rowData) {
|
571
|
-
|
572
|
-
if(code) {
|
573
|
-
return code;
|
574
|
-
}
|
575
|
-
return; // eslint-disable-line
|
571
|
+
return TickCodes[rowData[field]];
|
576
572
|
};
|
577
573
|
/** @private
|
578
574
|
* @this {Object}
|
@@ -613,11 +609,7 @@ CellPainter._heatMapCondition = function(rowData, min, max) {
|
|
613
609
|
* @return {undefined|number}
|
614
610
|
*/
|
615
611
|
CellPainter._tickBlinkCondition = function(newValue) {
|
616
|
-
|
617
|
-
if(code) {
|
618
|
-
return code;
|
619
|
-
}
|
620
|
-
return; // eslint-disable-line
|
612
|
+
return TickCodes[newValue];
|
621
613
|
};
|
622
614
|
/** @private
|
623
615
|
* @function
|
@@ -946,7 +938,6 @@ CellPainter._setUpDownColors = function(scp, upColor, downColor, levelColor, wit
|
|
946
938
|
if(withContrast) {
|
947
939
|
scp["contrastUpColor"] = CellPainter.getOppositeColor(upColor);
|
948
940
|
}
|
949
|
-
//scp["rgbUp"] = CellPainter.hex2Rgb(upColor);
|
950
941
|
}
|
951
942
|
|
952
943
|
scp["downColor"] = downColor;
|
@@ -954,7 +945,6 @@ CellPainter._setUpDownColors = function(scp, upColor, downColor, levelColor, wit
|
|
954
945
|
if(withContrast) {
|
955
946
|
scp["contrastDownColor"] = CellPainter.getOppositeColor(downColor);
|
956
947
|
}
|
957
|
-
//scp["rgbDown"] = CellPainter.hex2Rgb(downColor);
|
958
948
|
}
|
959
949
|
|
960
950
|
scp["levelColor"] = levelColor;
|
@@ -962,7 +952,6 @@ CellPainter._setUpDownColors = function(scp, upColor, downColor, levelColor, wit
|
|
962
952
|
if(withContrast) {
|
963
953
|
scp["contrastLevelColor"] = CellPainter.getOppositeColor(levelColor);
|
964
954
|
}
|
965
|
-
//scp["rgbLevel"] = CellPainter.hex2Rgb(levelColor);
|
966
955
|
}
|
967
956
|
};
|
968
957
|
/** @private
|
@@ -107,7 +107,7 @@ let Parsers = {
|
|
107
107
|
"MM": function(date, locale) { return prefixZero(date.getMonth() + 1); },
|
108
108
|
"MMM": function(date, locale) { return locale[ SHORT_MONTHS[date.getMonth()] ]; },
|
109
109
|
"M_": function(date, locale) { return locale[ FULL_MONTHS[date.getMonth()] ]; },
|
110
|
-
"YY": function(date, locale) { return ("" + date.getFullYear()).
|
110
|
+
"YY": function(date, locale) { return ("" + date.getFullYear()).slice(-2); },
|
111
111
|
"Y_": function(date, locale) { return "" + date.getFullYear(); },
|
112
112
|
// Intraday time
|
113
113
|
"H": function(date, locale) { return "" + date.getHours(); },
|
@@ -498,7 +498,7 @@ DateTime._millisecondToDateNumber = function(millisecond) {
|
|
498
498
|
DateTime.toYYYYMMDD = function(dateObj) {
|
499
499
|
let str = dateObj ? dateObj.toJSON() : "";
|
500
500
|
if(str) {
|
501
|
-
return str.
|
501
|
+
return str.slice(0, 10);
|
502
502
|
}
|
503
503
|
return "";
|
504
504
|
};
|
@@ -4,8 +4,6 @@ declare class Delay {
|
|
4
4
|
|
5
5
|
constructor(ms?: number|null, ctx?: any);
|
6
6
|
|
7
|
-
public static readonly promise: Promise<any>;
|
8
|
-
|
9
7
|
public static for(ms?: number|null, ctx?: any): Delay|null;
|
10
8
|
|
11
9
|
public resolve(): void;
|
@@ -16,5 +14,7 @@ declare class Delay {
|
|
16
14
|
|
17
15
|
}
|
18
16
|
|
17
|
+
declare function promiseDelay(ms?: number|null, ctx?: any): Promise<any>|null;
|
18
|
+
|
19
19
|
export default Delay;
|
20
|
-
export {Delay};
|
20
|
+
export {Delay, promiseDelay};
|
@@ -25,7 +25,7 @@ Delay.for = function(ms, ctx) {
|
|
25
25
|
/** @type {Promise<*>}
|
26
26
|
* @public
|
27
27
|
*/
|
28
|
-
Delay.promise = null;
|
28
|
+
Delay.prototype.promise = null;
|
29
29
|
/** @type {Function}
|
30
30
|
* @private
|
31
31
|
*/
|
@@ -81,5 +81,16 @@ Delay.prototype._onTimeout = function() {
|
|
81
81
|
this._ctx = null;
|
82
82
|
};
|
83
83
|
|
84
|
+
/** Create a promise of a Delay
|
85
|
+
* @public
|
86
|
+
* @function
|
87
|
+
* @param {number=} ms
|
88
|
+
* @param {*=} ctx
|
89
|
+
* @return {Promise}
|
90
|
+
*/
|
91
|
+
let promiseDelay = function(ms, ctx) {
|
92
|
+
return Delay.for(ms, ctx).promise;
|
93
|
+
};
|
94
|
+
|
84
95
|
export default Delay;
|
85
|
-
export {Delay};
|
96
|
+
export {Delay, promiseDelay};
|
@@ -140,7 +140,7 @@ DragUI.prototype.onThemeLoaded = function(colors) {
|
|
140
140
|
"--grid-void-icon-color: #FFFFFF;",
|
141
141
|
"--grid-title-icon-color: var(--grid-guideline-color);" // v3 fallback
|
142
142
|
],
|
143
|
-
".mouse-dragging
|
143
|
+
".mouse-dragging *", [ // While dragging cursor should be changing
|
144
144
|
"cursor: " + cursor + " !important;"
|
145
145
|
],
|
146
146
|
".tr-grid .column .cell.drag-indicator", [ // --grid-drag-indicator defualt is "none"
|
@@ -135,7 +135,6 @@ let _filterByConditions = function(ctx, rowData) {
|
|
135
135
|
}
|
136
136
|
let str, lowercasedStr, num, dateVal; // intentionally left undefined
|
137
137
|
let finalResult = false;
|
138
|
-
let result = false;
|
139
138
|
for(let i = 0; i < condCount; ++i) {
|
140
139
|
let orConnector = 0;
|
141
140
|
if(i > 0) {
|
@@ -152,7 +151,7 @@ let _filterByConditions = function(ctx, rowData) {
|
|
152
151
|
|
153
152
|
let cond = conds[i];
|
154
153
|
let opDef = FilterOperators[cond.operatorId];
|
155
|
-
result = false;
|
154
|
+
let result = false;
|
156
155
|
|
157
156
|
let opType = opDef.type;
|
158
157
|
let opId = opDef.id;
|
@@ -504,7 +504,6 @@ GridPlugin._onPluginRequested = function (ctx) {
|
|
504
504
|
}
|
505
505
|
|
506
506
|
if(!beforeInitPerformed && curPlugin.beforeInit) { // WARNING: beforeInit is usually performed before the actual loading
|
507
|
-
beforeInitPerformed = true;
|
508
507
|
curPlugin.beforeInit(grid.getElement(), ctx.config);
|
509
508
|
}
|
510
509
|
if(curPlugin.setGridWrapper) {
|
@@ -190,7 +190,6 @@ MultiTableManager._onGridConfigured = function(e) {
|
|
190
190
|
* @param {Array.<Element>} gridElems
|
191
191
|
*/
|
192
192
|
MultiTableManager._onVScrollbarSynchronization = function(vScrollbarHost, hScrollbarHost, gridElems) {
|
193
|
-
// Dom.removeChildren(vScrollbarHost);
|
194
193
|
Dom.removeChildren(hScrollbarHost);
|
195
194
|
|
196
195
|
vScrollbarHost.style.overflow = "hidden";
|
@@ -215,7 +214,6 @@ MultiTableManager._onVScrollbarSynchronization = function(vScrollbarHost, hScrol
|
|
215
214
|
}
|
216
215
|
|
217
216
|
Dom.appendChild(hScrollbarHost, gridElems);
|
218
|
-
// Dom.appendChild(vScrollbarHost, hScrollbarHost);
|
219
217
|
};
|
220
218
|
|
221
219
|
/** @public
|
@@ -332,7 +330,6 @@ MultiTableManager.prototype._addTable = function(tableIndex) {
|
|
332
330
|
let parentElem = main.parentNode;
|
333
331
|
let core = main.api.getCoreGrid();
|
334
332
|
let mainDataView = main.api.getDataView();
|
335
|
-
// let mainDataTable = main.api.getDataTable();
|
336
333
|
let stp = core.getPlugin("SortableTitlePlugin");
|
337
334
|
let dtp = core.getPlugin("DragAndDropTitlePlugin");
|
338
335
|
|
@@ -383,8 +380,6 @@ MultiTableManager.prototype._addTables = function(num) {
|
|
383
380
|
let main = this._tables[0];
|
384
381
|
_toggleInlineElement(main, true); // TODO: Check if we need to do this every time
|
385
382
|
|
386
|
-
// main.api.setFitContentWidth(true);
|
387
|
-
|
388
383
|
for(let i = 0; i < num; ++i) {
|
389
384
|
let grid = this._addTable(this._tables.length);
|
390
385
|
this._tables.push(grid);
|
@@ -419,10 +414,6 @@ MultiTableManager.prototype._removeTables = function(num) {
|
|
419
414
|
sub.parentNode.removeChild(sub);
|
420
415
|
}
|
421
416
|
}
|
422
|
-
// if(this._tables.length === 1) {
|
423
|
-
// TODO: Reset state
|
424
|
-
// this._tables[0].style.display = ""; // Remove display inline
|
425
|
-
// }
|
426
417
|
};
|
427
418
|
|
428
419
|
|
@@ -531,7 +522,7 @@ MultiTableManager.prototype._execAll = function(methodName, args) {
|
|
531
522
|
*/
|
532
523
|
MultiTableManager.prototype.insertRow = function(rowOption, at) {
|
533
524
|
if(this._emeraldGrid) {
|
534
|
-
return;
|
525
|
+
return;
|
535
526
|
}
|
536
527
|
|
537
528
|
if(this._wrapSize) {
|
@@ -549,7 +540,7 @@ MultiTableManager.prototype.insertRow = function(rowOption, at) {
|
|
549
540
|
*/
|
550
541
|
MultiTableManager.prototype.removeRow = function(at) {
|
551
542
|
if(this._emeraldGrid) {
|
552
|
-
return;
|
543
|
+
return;
|
553
544
|
}
|
554
545
|
if(at == null) {
|
555
546
|
at = this.getRowCount() - 1;
|
@@ -579,7 +570,7 @@ MultiTableManager.prototype.getRowCount = function() {
|
|
579
570
|
*/
|
580
571
|
MultiTableManager.prototype.insertColumn = function(columnOption, idx) {
|
581
572
|
if(this._emeraldGrid) {
|
582
|
-
return;
|
573
|
+
return;
|
583
574
|
}
|
584
575
|
|
585
576
|
let tableCount = this._tables.length;
|
@@ -593,7 +584,7 @@ MultiTableManager.prototype.insertColumn = function(columnOption, idx) {
|
|
593
584
|
*/
|
594
585
|
MultiTableManager.prototype.removeColumn = function(colRef) {
|
595
586
|
if(this._emeraldGrid) {
|
596
|
-
return;
|
587
|
+
return;
|
597
588
|
}
|
598
589
|
let tableCount = this._tables.length;
|
599
590
|
for(let i = 0; i < tableCount; ++i) {
|
@@ -349,7 +349,7 @@ NumberFormatter.prototype.format = function(origVal) {
|
|
349
349
|
} else {
|
350
350
|
let fraction = val * 1e7; // Be careful that there are some cases like 1e-7 * 1e6 === 0.099
|
351
351
|
str = (fraction / 10) + "";
|
352
|
-
str = sign + "0.000000" + str.
|
352
|
+
str = sign + "0.000000" + str.slice(2);
|
353
353
|
}
|
354
354
|
} else {
|
355
355
|
str = "0";
|
@@ -217,15 +217,15 @@ TextHighlighter._split = function (haystack, needle, caseSensitive, out_obj) {
|
|
217
217
|
let matchLen = curMatch.length;
|
218
218
|
let at = positions[curIdx] = haystack.indexOf(curMatch, start);
|
219
219
|
chunks.push(
|
220
|
-
haystack.
|
221
|
-
haystack.
|
220
|
+
haystack.slice(start, at),
|
221
|
+
haystack.slice(at, at + matchLen)
|
222
222
|
);
|
223
223
|
start = at + matchLen;
|
224
224
|
} while(++curIdx < matchCount);
|
225
225
|
|
226
226
|
let end = haystack.length;
|
227
227
|
if(start < end) {
|
228
|
-
chunks.push(haystack.
|
228
|
+
chunks.push(haystack.slice(start, end));
|
229
229
|
}
|
230
230
|
|
231
231
|
out_obj["chunks"] = chunks;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
2
|
-
import { cloneObject } from "../../tr-grid-util/es6/Util.js";
|
3
2
|
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
4
3
|
import { GroupDefinitions } from "../../tr-grid-util/es6/GroupDefinitions.js";
|
5
|
-
import { injectCss, prettifyCss, deepEqual } from "../../tr-grid-util/es6/Util.js";
|
4
|
+
import { cloneObject, injectCss, prettifyCss, deepEqual } from "../../tr-grid-util/es6/Util.js";
|
6
5
|
|
7
6
|
declare namespace ColumnGroupingPlugin {
|
8
7
|
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
2
|
-
import { cloneObject } from "../../tr-grid-util/es6/Util.js";
|
3
2
|
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
4
3
|
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
5
4
|
import Dom from "../../tr-grid-util/es6/Dom.js";
|
6
5
|
import { DragUI } from "../../tr-grid-util/es6/DragUI.js";
|
7
|
-
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
6
|
+
import { cloneObject, injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
8
7
|
|
9
8
|
declare namespace RowDraggingPlugin {
|
10
9
|
|
package/lib/versions.json
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
{
|
2
|
-
"tr-grid-util": "1.3.
|
2
|
+
"tr-grid-util": "1.3.146",
|
3
3
|
"tr-grid-printer": "1.0.17",
|
4
4
|
"@grid/column-dragging": "1.0.20",
|
5
5
|
"@grid/row-segmenting": "1.0.31",
|
6
6
|
"@grid/statistics-row": "1.0.17",
|
7
7
|
"@grid/zoom": "1.0.11",
|
8
8
|
"tr-grid-auto-tooltip": "1.1.6",
|
9
|
-
"tr-grid-cell-selection": "1.0.
|
10
|
-
"tr-grid-checkbox": "1.0.
|
9
|
+
"tr-grid-cell-selection": "1.0.37",
|
10
|
+
"tr-grid-checkbox": "1.0.66",
|
11
11
|
"tr-grid-column-fitter": "1.0.40",
|
12
|
-
"tr-grid-column-formatting": "0.9.
|
13
|
-
"tr-grid-column-grouping": "1.0.
|
12
|
+
"tr-grid-column-formatting": "0.9.36",
|
13
|
+
"tr-grid-column-grouping": "1.0.60",
|
14
14
|
"tr-grid-column-resizing": "1.0.28",
|
15
15
|
"tr-grid-column-selection": "1.0.33",
|
16
|
-
"tr-grid-column-stack": "1.0.
|
17
|
-
"tr-grid-conditional-coloring": "1.0.
|
16
|
+
"tr-grid-column-stack": "1.0.75",
|
17
|
+
"tr-grid-conditional-coloring": "1.0.70",
|
18
18
|
"tr-grid-content-wrap": "1.0.20",
|
19
19
|
"tr-grid-contextmenu": "1.0.41",
|
20
20
|
"tr-grid-filter-input": "0.9.39",
|
21
21
|
"tr-grid-heat-map": "1.0.29",
|
22
|
-
"tr-grid-in-cell-editing": "1.0.
|
22
|
+
"tr-grid-in-cell-editing": "1.0.83",
|
23
23
|
"tr-grid-pagination": "1.0.24",
|
24
24
|
"tr-grid-percent-bar": "1.0.24",
|
25
25
|
"tr-grid-range-bar": "2.0.8",
|
26
|
-
"tr-grid-row-dragging": "1.0.
|
27
|
-
"tr-grid-row-filtering": "1.0.
|
28
|
-
"tr-grid-row-grouping": "1.0.
|
29
|
-
"tr-grid-row-selection": "1.0.
|
26
|
+
"tr-grid-row-dragging": "1.0.34",
|
27
|
+
"tr-grid-row-filtering": "1.0.72",
|
28
|
+
"tr-grid-row-grouping": "1.0.87",
|
29
|
+
"tr-grid-row-selection": "1.0.28",
|
30
30
|
"tr-grid-rowcoloring": "1.0.25",
|
31
31
|
"tr-grid-textformatting": "1.0.48",
|
32
32
|
"tr-grid-titlewrap": "1.0.22",
|
33
|
-
"@grid/formatters": "1.0.
|
33
|
+
"@grid/formatters": "1.0.52",
|
34
34
|
"@grid/column-selection-dialog": "4.0.57",
|
35
|
-
"@grid/filter-dialog": "4.0.
|
35
|
+
"@grid/filter-dialog": "4.0.64",
|
36
36
|
"@grid/column-format-dialog": "4.0.45"
|
37
37
|
}
|
package/package.json
CHANGED