@refinitiv-ui/efx-grid 6.0.64 → 6.0.66
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +5 -5
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +5 -5
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +176 -72
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +0 -2
- package/lib/rt-grid/es6/ColumnDefinition.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +0 -2
- package/lib/rt-grid/es6/Grid.js +2 -2
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +4 -3
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +1 -1
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +36 -39
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +8 -5
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +121 -51
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +7 -22
- package/lib/tr-grid-util/es6/CellPainter.d.ts +4 -2
- package/lib/tr-grid-util/es6/CellPainter.js +18 -8
- package/lib/tr-grid-util/es6/FilterOperators.js +13 -0
- package/lib/types/es6/ColumnStack.d.ts +1 -1
- package/lib/types/es6/ConditionalColoring.d.ts +8 -5
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +0 -2
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +0 -2
- package/lib/versions.json +5 -5
- package/package.json +1 -1
@@ -4,14 +4,16 @@ import { ElfUtil } from "./ElfUtil.js";
|
|
4
4
|
import { ExpressionParser } from "./ExpressionParser.js";
|
5
5
|
|
6
6
|
/** @typedef {Object} CellPainter~Expression
|
7
|
+
* @ignore
|
8
|
+
* @description This form of expression is deprecated
|
7
9
|
* @property {string=} name
|
8
10
|
* @property {string} text Text describes condition e.g. [FIELD] > 10
|
9
11
|
* @property {Array=} values
|
10
12
|
*/
|
11
13
|
|
12
14
|
/** @typedef {Object} CellPainter~Condition
|
13
|
-
* @property {string}
|
14
|
-
* @property {
|
15
|
+
* @property {string|Function} expression A function, text, or an object with text property that describes the condition
|
16
|
+
* @property {string=} field Field to be used in the condition
|
15
17
|
* @property {string=} backgroundColor CSS color string
|
16
18
|
* @property {string=} color CSS color string
|
17
19
|
* @property {string=} fontSize
|
@@ -79,17 +81,16 @@ CellPainter.prototype._columnStats = null;
|
|
79
81
|
* @private
|
80
82
|
*/
|
81
83
|
CellPainter.prototype._levelColorDisabled = false;
|
82
|
-
|
83
84
|
/** @type {number}
|
84
85
|
* @private
|
85
86
|
*/
|
86
|
-
CellPainter.
|
87
|
-
|
87
|
+
CellPainter.prototype._blinkingDuration = 250;
|
88
88
|
|
89
89
|
/** @type {number}
|
90
90
|
* @private
|
91
91
|
*/
|
92
|
-
CellPainter.
|
92
|
+
CellPainter._runningBlinkId = 0;
|
93
|
+
|
93
94
|
/** @type {Array.<CellPainter>}
|
94
95
|
* @private
|
95
96
|
* @const
|
@@ -325,7 +326,7 @@ CellPainter.prototype.getColumnStats = function() {
|
|
325
326
|
return this._columnStats;
|
326
327
|
};
|
327
328
|
/** @private
|
328
|
-
* @param {CellPainter~Condition
|
329
|
+
* @param {CellPainter~Condition} condition
|
329
330
|
*/
|
330
331
|
CellPainter.prototype._addCondition = function(condition) {
|
331
332
|
var exp = condition["expression"];
|
@@ -1165,7 +1166,7 @@ CellPainter.prototype._blinkCell = function(cell, rowData, blinkSignal) {
|
|
1165
1166
|
}
|
1166
1167
|
|
1167
1168
|
CellPainter._clearBlinkTimer(scope);
|
1168
|
-
scope["blinkTimer"] = setTimeout(scope._restorer,
|
1169
|
+
scope["blinkTimer"] = setTimeout(scope._restorer, this._blinkingDuration);
|
1169
1170
|
|
1170
1171
|
return bgBlinking;
|
1171
1172
|
};
|
@@ -1193,6 +1194,15 @@ CellPainter.prototype.verifyBlinking = function(cell, rowData) {
|
|
1193
1194
|
CellPainter.prototype.disableLevelColor = function(disabled) {
|
1194
1195
|
this._levelColorDisabled = disabled !== false;
|
1195
1196
|
};
|
1197
|
+
/**
|
1198
|
+
* @public
|
1199
|
+
* @param {number} duration
|
1200
|
+
*/
|
1201
|
+
CellPainter.prototype.setBlinkingDuration = function(duration) {
|
1202
|
+
if(typeof duration === "number"){
|
1203
|
+
this._blinkingDuration = duration;
|
1204
|
+
}
|
1205
|
+
};
|
1196
1206
|
|
1197
1207
|
export default CellPainter;
|
1198
1208
|
export {CellPainter};
|
@@ -195,6 +195,19 @@ var FilterOperators = {
|
|
195
195
|
FilterOperators.TXTEQ = FilterOperators.EQ;
|
196
196
|
FilterOperators.BLANK = FilterOperators.EQ_BLANK;
|
197
197
|
FilterOperators.NBLANK = FilterOperators.EQ_NBLANK;
|
198
|
+
FilterOperators.NEQ_BLANK = FilterOperators.EQ_NBLANK;
|
199
|
+
|
200
|
+
FilterOperators.GREATER_THAN = FilterOperators.GT;
|
201
|
+
FilterOperators.GREATER_THAN_OR_EQUAL_TO = FilterOperators.GTE;
|
202
|
+
FilterOperators.EQUAL_TO = FilterOperators.EQ;
|
203
|
+
FilterOperators.LESS_THAN = FilterOperators.LT;
|
204
|
+
FilterOperators.LESS_THAN_OR_EQUAL_TO = FilterOperators.LTE;
|
205
|
+
// FilterOperators.BETWEEN = // No equivalent operator
|
206
|
+
FilterOperators.TEXT_THAT_CONTAINS = FilterOperators.CONT;
|
207
|
+
FilterOperators.TEXT_THAT_NOT_CONTAINS = FilterOperators.NCONT;
|
208
|
+
FilterOperators.TEXT_IS = FilterOperators.EQ;
|
209
|
+
// FilterOperators.BLANK = FilterOperators.EQ_BLANK;
|
210
|
+
FilterOperators.NOT_BLANK = FilterOperators.EQ_NBLANK;
|
198
211
|
|
199
212
|
|
200
213
|
/** @type {!Object.<string, Function>}
|
@@ -142,7 +142,7 @@ declare class ColumnStackPlugin extends GridPlugin {
|
|
142
142
|
|
143
143
|
public moveColumnById(srcCol: number|string|null, destCol?: (number|string)|null): boolean;
|
144
144
|
|
145
|
-
public hideStack(stackId: string): void;
|
145
|
+
public hideStack(stackId: string, hidden?: boolean|null): void;
|
146
146
|
|
147
147
|
public showStack(stackId: string): void;
|
148
148
|
|
@@ -8,7 +8,8 @@ import {ElfUtil} from '../../tr-grid-util/es6/ElfUtil.js';
|
|
8
8
|
declare namespace ConditionalColoringPlugin {
|
9
9
|
|
10
10
|
type Options = {
|
11
|
-
predefinedColors?: any
|
11
|
+
predefinedColors?: any,
|
12
|
+
blinkingDuration?: number|null
|
12
13
|
};
|
13
14
|
|
14
15
|
type ColumnOptions = {
|
@@ -27,10 +28,11 @@ declare namespace ConditionalColoringPlugin {
|
|
27
28
|
};
|
28
29
|
|
29
30
|
type Condition = {
|
30
|
-
expression?: (string|((...params: any[]) => any))|null,
|
31
|
+
expression?: (string|((...params: any[]) => any)|any[])|null,
|
31
32
|
backgroundColor?: string|null,
|
32
33
|
color?: string|null,
|
33
|
-
cssClass?: string|null
|
34
|
+
cssClass?: string|null,
|
35
|
+
field?: string|null
|
34
36
|
};
|
35
37
|
|
36
38
|
type Blinking = {
|
@@ -38,7 +40,8 @@ declare namespace ConditionalColoringPlugin {
|
|
38
40
|
field?: string|null,
|
39
41
|
up?: string|null,
|
40
42
|
down?: string|null,
|
41
|
-
level?: (string|boolean)|null
|
43
|
+
level?: (string|boolean)|null,
|
44
|
+
duration?: number|null
|
42
45
|
};
|
43
46
|
|
44
47
|
type ColorText = {
|
@@ -70,7 +73,7 @@ declare class ConditionalColoringPlugin extends GridPlugin {
|
|
70
73
|
|
71
74
|
public setColumnColoring(colIndex: number, columnOptions?: (ConditionalColoringPlugin.ColumnOptions|null)|null): void;
|
72
75
|
|
73
|
-
public setConditionalColoring(colIndex: number, coloringOptions?:
|
76
|
+
public setConditionalColoring(colIndex: number, coloringOptions?: ConditionalColoringPlugin.ConditionalColoringOptions|null): void;
|
74
77
|
|
75
78
|
public setColumnBlinking(colIndex: number, blinkingOptions?: (boolean|ConditionalColoringPlugin.Blinking)|null, field?: string|null): void;
|
76
79
|
|
@@ -56,8 +56,6 @@ declare class ColumnDefinition {
|
|
56
56
|
|
57
57
|
public dispose(): void;
|
58
58
|
|
59
|
-
public _initializeTimeSeriesChild(columnOption?: ColumnDefinition.Options|string|null): void;
|
60
|
-
|
61
59
|
public initialize(columnOption?: ColumnDefinition.Options|null): void;
|
62
60
|
|
63
61
|
public getId(): string;
|
@@ -181,8 +181,6 @@ declare class Grid extends EventDispatcher {
|
|
181
181
|
|
182
182
|
public setColumnSorter(colRef: Grid.ColumnReference|null, func?: ColumnDefinition.SortLogic|null): void;
|
183
183
|
|
184
|
-
public _initDuplicateRicData(rowDef: RowDefinition|null): void;
|
185
|
-
|
186
184
|
public insertRow(rowOption?: (RowDefinition.Options|string)|null, rowRef?: Grid.RowReference|null): RowDefinition|null;
|
187
185
|
|
188
186
|
public insertRows(rowOptions: (RowDefinition.Options|string)[]|null, rowRef?: Grid.RowReference|null, opt_fields?: (string)[]|null): void;
|
package/lib/versions.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"tr-grid-util": "1.3.
|
2
|
+
"tr-grid-util": "1.3.131",
|
3
3
|
"tr-grid-printer": "1.0.16",
|
4
4
|
"@grid/column-dragging": "1.0.14",
|
5
5
|
"@grid/row-segmenting": "1.0.28",
|
@@ -9,12 +9,12 @@
|
|
9
9
|
"tr-grid-cell-selection": "1.0.33",
|
10
10
|
"tr-grid-checkbox": "1.0.60",
|
11
11
|
"tr-grid-column-fitter": "1.0.39",
|
12
|
-
"tr-grid-column-formatting": "0.9.
|
12
|
+
"tr-grid-column-formatting": "0.9.35",
|
13
13
|
"tr-grid-column-grouping": "1.0.55",
|
14
14
|
"tr-grid-column-resizing": "1.0.28",
|
15
15
|
"tr-grid-column-selection": "1.0.29",
|
16
|
-
"tr-grid-column-stack": "1.0.
|
17
|
-
"tr-grid-conditional-coloring": "1.0.
|
16
|
+
"tr-grid-column-stack": "1.0.72",
|
17
|
+
"tr-grid-conditional-coloring": "1.0.64",
|
18
18
|
"tr-grid-content-wrap": "1.0.20",
|
19
19
|
"tr-grid-contextmenu": "1.0.39",
|
20
20
|
"tr-grid-filter-input": "0.9.33",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"tr-grid-percent-bar": "1.0.22",
|
25
25
|
"tr-grid-range-bar": "2.0.5",
|
26
26
|
"tr-grid-row-dragging": "1.0.29",
|
27
|
-
"tr-grid-row-filtering": "1.0.
|
27
|
+
"tr-grid-row-filtering": "1.0.60",
|
28
28
|
"tr-grid-row-grouping": "1.0.82",
|
29
29
|
"tr-grid-row-selection": "1.0.23",
|
30
30
|
"tr-grid-rowcoloring": "1.0.24",
|
package/package.json
CHANGED