@refinitiv-ui/efx-grid 6.0.66 → 6.0.68
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +27 -5
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataView.d.ts +2 -0
- package/lib/core/es6/data/DataView.js +26 -4
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +169 -122
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.js +3 -3
- package/lib/rt-grid/es6/FieldDefinition.js +3 -3
- package/lib/rt-grid/es6/Grid.js +52 -76
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +8 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +84 -35
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +36 -39
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +4 -1
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +33 -5
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +2 -1
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +8 -8
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +3 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +23 -2
- package/lib/tr-grid-row-selection/es6/RowSelection.js +65 -28
- package/lib/types/es6/ConditionalColoring.d.ts +4 -1
- package/lib/types/es6/ContextMenu.d.ts +2 -1
- package/lib/types/es6/Core/data/DataView.d.ts +2 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +8 -0
- package/lib/types/es6/RowFiltering.d.ts +3 -0
- package/lib/versions.json +5 -5
- package/package.json +1 -1
@@ -8,7 +8,8 @@ import {ElfUtil} from '../../tr-grid-util/es6/ElfUtil.js';
|
|
8
8
|
/** @typedef {Object} ConditionalColoringPlugin~Options
|
9
9
|
* @description The options can be specified by `conditionalColoring` property of the main grid's options
|
10
10
|
* @property {Object=} predefinedColors Predefined color object map for conditional coloring
|
11
|
-
* @property {number=} blinkingDuration=250 Blinking
|
11
|
+
* @property {number=} blinkingDuration=250 Blinking duration in milliseconds
|
12
|
+
* @property {boolean=} insertionBlinking=false Blinking when a row is added to a grid
|
12
13
|
*/
|
13
14
|
|
14
15
|
/** @typedef {Object} ConditionalColoringPlugin~ColumnOptions
|
@@ -149,6 +150,10 @@ ConditionalColoringPlugin.prototype._predefinedColors = null;
|
|
149
150
|
* @private
|
150
151
|
*/
|
151
152
|
ConditionalColoringPlugin.prototype._blinkingDuration = 250;
|
153
|
+
/** @type {boolean}
|
154
|
+
* @private
|
155
|
+
*/
|
156
|
+
ConditionalColoringPlugin.prototype._insertionBlinking = false;
|
152
157
|
/** @type {string}
|
153
158
|
* @private
|
154
159
|
*/
|
@@ -198,6 +203,10 @@ ConditionalColoringPlugin.prototype.initialize = function (host, options) {
|
|
198
203
|
if(blinkingDuration != null && typeof blinkingDuration === "number"){
|
199
204
|
this._blinkingDuration = blinkingDuration;
|
200
205
|
}
|
206
|
+
var insertionBlinking = extOptions["insertionBlinking"];
|
207
|
+
if(insertionBlinking != null){
|
208
|
+
this._insertionBlinking = insertionBlinking;
|
209
|
+
}
|
201
210
|
}
|
202
211
|
|
203
212
|
if(hosts.length === 1) {
|
@@ -1075,6 +1084,14 @@ ConditionalColoringPlugin.prototype.setPredefinedColors = function(predefinedCol
|
|
1075
1084
|
}
|
1076
1085
|
}
|
1077
1086
|
};
|
1087
|
+
/** @public
|
1088
|
+
* @param {boolean} blinking enable blinking on row insertion
|
1089
|
+
*/
|
1090
|
+
ConditionalColoringPlugin.prototype.setInsertionBlinking = function(blinking) {
|
1091
|
+
if (blinking != null) {
|
1092
|
+
this._insertionBlinking = blinking;
|
1093
|
+
}
|
1094
|
+
};
|
1078
1095
|
/** @private
|
1079
1096
|
* @function
|
1080
1097
|
* @return {!FilterBuilder}
|
@@ -1130,7 +1147,7 @@ ConditionalColoringPlugin.prototype._onSectionBinding = function (e) {
|
|
1130
1147
|
return; // dataRows could be empty in case of no column is presented
|
1131
1148
|
}
|
1132
1149
|
|
1133
|
-
var c, r, cell, painter, changedCols, rowDef, rid, changedRow, changedRows;
|
1150
|
+
var c, r, cell, painter, changedCols, rowDef, rid, changedRow, changedRows, allowBlinking, insertedRow;
|
1134
1151
|
var dataRow, insertedId, colData, blinking, bgBlinking, cachedValues, updatePrev;
|
1135
1152
|
var section = e["section"];
|
1136
1153
|
var colCount = section.getColumnCount();
|
@@ -1149,6 +1166,8 @@ ConditionalColoringPlugin.prototype._onSectionBinding = function (e) {
|
|
1149
1166
|
}
|
1150
1167
|
|
1151
1168
|
var prevDataRow, prevDataRows = host._prevDataRows;
|
1169
|
+
var prevIds = Object.keys(prevDataRows);
|
1170
|
+
var prevRowCount = prevIds.length;
|
1152
1171
|
for (r = fromR; r < toR; ++r) {
|
1153
1172
|
dataRow = this._rowGetter(dataRows[r]);
|
1154
1173
|
if (!dataRow) continue; // prevent from null value access when using with RowGroupingExtension
|
@@ -1159,14 +1178,18 @@ ConditionalColoringPlugin.prototype._onSectionBinding = function (e) {
|
|
1159
1178
|
// TODO: check rid from e.rids
|
1160
1179
|
rowDef = /** @type{RowDefinition} */(dataRow["ROW_DEF"]);
|
1161
1180
|
rid = rowDef ? rowDef.getRowId() : "";
|
1162
|
-
|
1181
|
+
insertedRow = insertedId[rid];
|
1182
|
+
allowBlinking = !insertedRow || this._insertionBlinking;
|
1183
|
+
if (rid && allowBlinking) {
|
1163
1184
|
changedCols = rowDef.getUpdates();
|
1164
1185
|
}
|
1165
1186
|
} else { // composite grid
|
1166
1187
|
changedRow = changedRows[r];
|
1167
1188
|
if (changedRow) {
|
1168
1189
|
rid = changedRow.rid;
|
1169
|
-
|
1190
|
+
insertedRow = insertedId[rid];
|
1191
|
+
allowBlinking = !insertedRow || this._insertionBlinking;
|
1192
|
+
if (allowBlinking) {
|
1170
1193
|
changedCols = changedRow.changed;
|
1171
1194
|
}
|
1172
1195
|
}
|
@@ -1195,7 +1218,7 @@ ConditionalColoringPlugin.prototype._onSectionBinding = function (e) {
|
|
1195
1218
|
colData = this._getColumnData(c);
|
1196
1219
|
bgBlinking = false;
|
1197
1220
|
blinking = false;
|
1198
|
-
if (colData["blinking"] && actualUpdate) { // blinking
|
1221
|
+
if (colData["blinking"] && actualUpdate && allowBlinking) { // blinking
|
1199
1222
|
var field = colData["blinkingField"] || this._getField(c);
|
1200
1223
|
var newValue = dataRow[field];
|
1201
1224
|
if (prevDataRow) {
|
@@ -1206,6 +1229,11 @@ ConditionalColoringPlugin.prototype._onSectionBinding = function (e) {
|
|
1206
1229
|
bgBlinking = painter.blinkCell(cell, newValue, prevValue, dataRow, dataRow);
|
1207
1230
|
}
|
1208
1231
|
}
|
1232
|
+
} else {
|
1233
|
+
if(prevRowCount && insertedRow){
|
1234
|
+
blinking = true;
|
1235
|
+
bgBlinking = painter.blinkCell(cell, newValue, newValue, dataRow, dataRow);
|
1236
|
+
}
|
1209
1237
|
}
|
1210
1238
|
|
1211
1239
|
if (!blinking) {
|
@@ -53,7 +53,8 @@ import CellPainter from "../../tr-grid-util/es6/CellPainter.js";
|
|
53
53
|
/** @typedef {Object} ContextMenuPlugin~OnMenuEvent
|
54
54
|
* @property {Object} cell Grid cell object at the mouse clicked position
|
55
55
|
* @property {number} colIndex Index number of the column that the mouse clicked on
|
56
|
-
* @property {
|
56
|
+
* @property {string} field Field of the column that the mouse clicked on
|
57
|
+
* @property {string} colId Column ID of the column that the mouse clicked on
|
57
58
|
* @property {ContextMenuPlugin~Context} context Area of the grid that the mouse clicked on
|
58
59
|
* @property {object} items Object reference to the menu items under items option
|
59
60
|
* @property {MenuEventAPI} menu API for adding menu items to be rendered
|
@@ -128,10 +129,6 @@ ContextMenuPlugin.prototype._rsp = null;
|
|
128
129
|
* @private
|
129
130
|
*/
|
130
131
|
ContextMenuPlugin.prototype._contextMenu = null;
|
131
|
-
/** @type {Array}
|
132
|
-
* @private
|
133
|
-
*/
|
134
|
-
ContextMenuPlugin.prototype._userColumns = null;
|
135
132
|
|
136
133
|
/** @public
|
137
134
|
* @return {string}
|
@@ -191,7 +188,6 @@ ContextMenuPlugin.prototype.config = function (options) {
|
|
191
188
|
|
192
189
|
var t = this;
|
193
190
|
|
194
|
-
t._userColumns = options["columns"];
|
195
191
|
var contextMenu = options["contextMenu"];
|
196
192
|
|
197
193
|
if (contextMenu == null) { return; }
|
@@ -237,11 +233,15 @@ ContextMenuPlugin.prototype.getMenuModel = function () {
|
|
237
233
|
* @return {!Object} Mouse related information
|
238
234
|
*/
|
239
235
|
ContextMenuPlugin.prototype._configureMouseInfo = function (e) {
|
240
|
-
var
|
236
|
+
var host = this._hosts[0];
|
237
|
+
var mouseInfo = host.getRelativePosition(e);
|
241
238
|
|
242
239
|
// Supply possibly needed arguments for the event handler
|
243
240
|
mouseInfo.context = this._contextMap[mouseInfo.sectionType] || "";
|
244
|
-
|
241
|
+
var colIndex = mouseInfo.colIndex;
|
242
|
+
var columnDef = mouseInfo.columnDef = {};
|
243
|
+
mouseInfo.field = columnDef.field = this.getColumnField(colIndex);
|
244
|
+
mouseInfo.colId = columnDef.id = this.getColumnId(colIndex);
|
245
245
|
|
246
246
|
if (!this._csp) {
|
247
247
|
this._csp = this._getPlugin("ColumnSelectionPlugin");
|
@@ -35,6 +35,7 @@ declare namespace RowFilteringPlugin {
|
|
35
35
|
|
36
36
|
type Options = {
|
37
37
|
emptySegmentFiltering?: boolean|null,
|
38
|
+
separatorFiltering?: boolean|null,
|
38
39
|
disabledUI?: boolean|null,
|
39
40
|
iconActivation?: string|null,
|
40
41
|
dialogOptions?: RowFilteringPlugin.FilterDialogOptions|null,
|
@@ -118,6 +119,8 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
118
119
|
|
119
120
|
public enableEmptySegmentFiltering(enabled?: boolean|null): void;
|
120
121
|
|
122
|
+
public enableSeparatorFiltering(enabled?: boolean|null): void;
|
123
|
+
|
121
124
|
}
|
122
125
|
|
123
126
|
declare function field(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
|
@@ -87,7 +87,8 @@ The expression can take various forms:<br>
|
|
87
87
|
|
88
88
|
/** @typedef {Object} RowFilteringPlugin~Options
|
89
89
|
* @description The options can be specified by `rowFiltering` property of the main grid's options
|
90
|
-
* @property {boolean=} emptySegmentFiltering=false If enabled, the filter will automatically hide empty segment when all of its member are filtered out. If there is no active filter, any empty segment will not be hidden. Collapsed segment does not count as having a filter.
|
90
|
+
* @property {boolean=} emptySegmentFiltering=false If enabled, the filter will automatically hide empty segment when all of its member are filtered out. If there is no active filter, any empty segment will not be hidden. Collapsed segment does not count as having a filter. A segment with no child is treated the same way as an empty segment.
|
91
|
+
* @property {boolean=} separatorFiltering=false If enabled, segment separators will be filtered as if they were normal rows. Note that even if a separator row is filtered out, its child row may remain in the view and not be filtered out.
|
91
92
|
* @property {boolean=} disabledUI=false Deprecated in favor of `iconActivation`. Set iconActivation to none instead.
|
92
93
|
* @property {string=} iconActivation=onActiveFilter Filter icon redering behavior, can be set to `always`,`onHover`,`onActiveFilter`,or `none`
|
93
94
|
* @property {RowFilteringPlugin~FilterDialogOptions=} dialogOptions=null Default configuration for Filter Dialog, applying to all columns.
|
@@ -371,6 +372,11 @@ RowFilteringPlugin.prototype.config = function (options) {
|
|
371
372
|
this.enableEmptySegmentFiltering(rowFiltering["emptySegmentFiltering"] ? true : false);
|
372
373
|
}
|
373
374
|
|
375
|
+
if (rowFiltering["separatorFiltering"] != null) {
|
376
|
+
// TODO: there is a chance that there is no DataView during the configuration
|
377
|
+
this.enableSeparatorFiltering(rowFiltering["separatorFiltering"] ? true : false);
|
378
|
+
}
|
379
|
+
|
374
380
|
if (rowFiltering["iconActivation"]) {
|
375
381
|
this._iconActivation = rowFiltering["iconActivation"];
|
376
382
|
|
@@ -479,6 +485,7 @@ RowFilteringPlugin.prototype.getConfigObject = function (gridOptions) {
|
|
479
485
|
|
480
486
|
dirty = true;
|
481
487
|
} // TODO: get emptySegmentFiltering setting from DataView
|
488
|
+
// TODO: get separatorFiltering setting from DataView
|
482
489
|
|
483
490
|
|
484
491
|
if (dirty) {
|
@@ -2137,7 +2144,7 @@ RowFilteringPlugin.prototype._onColumnRemoved = function (e) {
|
|
2137
2144
|
this._requestFilterRefresh();
|
2138
2145
|
}
|
2139
2146
|
};
|
2140
|
-
/** the filter will automatically hide empty segment when all of its member are filtered out. If there is no active filter, any empty segment will not be hidden. Collapsed segment does not count as having a filter.
|
2147
|
+
/** the filter will automatically hide empty segment when all of its member are filtered out. If there is no active filter, any empty segment will not be hidden. Collapsed segment does not count as having a filter. A segment with no child is treated the same way as an empty segment.
|
2141
2148
|
* @public
|
2142
2149
|
* @param {boolean=} enabled=true
|
2143
2150
|
*/
|
@@ -2151,6 +2158,20 @@ RowFilteringPlugin.prototype.enableEmptySegmentFiltering = function (enabled) {
|
|
2151
2158
|
dv.enableEmptySegmentFiltering(enabled);
|
2152
2159
|
}
|
2153
2160
|
};
|
2161
|
+
/** the filter will automatically hide empty segment when all of its member are filtered out. If there is no active filter, any empty segment will not be hidden. Collapsed segment does not count as having a filter.
|
2162
|
+
* @public
|
2163
|
+
* @param {boolean=} enabled=true
|
2164
|
+
*/
|
2165
|
+
|
2166
|
+
|
2167
|
+
RowFilteringPlugin.prototype.enableSeparatorFiltering = function (enabled) {
|
2168
|
+
var host = this._hosts[0];
|
2169
|
+
var dv = host ? host.getDataSource() : null;
|
2170
|
+
|
2171
|
+
if (dv && dv.enableSeparatorFiltering) {
|
2172
|
+
dv.enableSeparatorFiltering(enabled);
|
2173
|
+
}
|
2174
|
+
};
|
2154
2175
|
|
2155
2176
|
export default RowFilteringPlugin;
|
2156
2177
|
export { RowFilteringPlugin, RowFilteringPlugin as RowFiltering, RowFilteringPlugin as RowFilteringExtension };
|
@@ -556,7 +556,7 @@ RowSelectionPlugin.prototype.selectAllRows = function (activeGrid) {
|
|
556
556
|
if (this._activeGrid) {
|
557
557
|
var sections = this._activeGrid.getAllSections("content");
|
558
558
|
for (var i = sections.length; --i >= 0;) {
|
559
|
-
this._selectRowRange(
|
559
|
+
this._selectRowRange(null, null, sections[i]);
|
560
560
|
if (i == 0) {
|
561
561
|
this._anchorSection = sections[i];
|
562
562
|
}
|
@@ -626,6 +626,23 @@ RowSelectionPlugin.prototype._onClick = function (e) {
|
|
626
626
|
}
|
627
627
|
}
|
628
628
|
};
|
629
|
+
/** @public
|
630
|
+
* @description Select a specified row as if it were clicked by a mouse. This is for testing purpose.
|
631
|
+
* @ignore
|
632
|
+
* @param {number} rowIndex
|
633
|
+
* @param {Object=} mouseEvt
|
634
|
+
*/
|
635
|
+
RowSelectionPlugin.prototype.selectByMouse = function (rowIndex, mouseEvt) {
|
636
|
+
if(!mouseEvt) {
|
637
|
+
mouseEvt = {};
|
638
|
+
}
|
639
|
+
if(rowIndex >= 0) {
|
640
|
+
var grid = this._activeGrid || this._hosts[0];
|
641
|
+
var cell = grid ? grid.getCell("content", 0, rowIndex) : null;
|
642
|
+
mouseEvt.target = cell ? cell.getElement() : null;
|
643
|
+
}
|
644
|
+
this._onMouseDown(mouseEvt);
|
645
|
+
};
|
629
646
|
/** @private
|
630
647
|
* @description Left click will cause single row selection <br>
|
631
648
|
* Shift + left click will cause range selection <br>
|
@@ -766,7 +783,29 @@ RowSelectionPlugin.prototype._clearPendingClickIndex = function (host) {
|
|
766
783
|
host && host.unlisten("mousemove", this._onMouseMove);
|
767
784
|
};
|
768
785
|
|
769
|
-
|
786
|
+
/** @public
|
787
|
+
* @description Select a specified row as if it were modified by a keyboard input. This is for testing purpose.
|
788
|
+
* @ignore
|
789
|
+
* @param {number} keyCode Use -1 for arrow up. Use 1 for arrow down
|
790
|
+
* @param {Object=} keyboardEvt
|
791
|
+
*/
|
792
|
+
RowSelectionPlugin.prototype.selectByKey = function (keyCode, keyboardEvt) {
|
793
|
+
if(!keyboardEvt) {
|
794
|
+
keyboardEvt = {};
|
795
|
+
}
|
796
|
+
if(keyCode) {
|
797
|
+
if(keyCode === 1) {
|
798
|
+
keyboardEvt.keyCode = 40;
|
799
|
+
} else if(keyCode === -1) {
|
800
|
+
keyboardEvt.keyCode = 38;
|
801
|
+
} else if(typeof keyCode === "number"){
|
802
|
+
keyboardEvt.keyCode = keyCode;
|
803
|
+
}
|
804
|
+
}
|
805
|
+
keyboardEvt.preventDefault = function(){};
|
806
|
+
keyboardEvt.stopPropagation = function(){};
|
807
|
+
this._onKeyDown(keyboardEvt);
|
808
|
+
};
|
770
809
|
/** @private
|
771
810
|
* @param {KeyboardEvent} e
|
772
811
|
*/
|
@@ -1084,20 +1123,28 @@ RowSelectionPlugin.prototype._sectionSetSelectedRow = function (section, rowInde
|
|
1084
1123
|
|
1085
1124
|
/** @private
|
1086
1125
|
* @param {Object} section ILayoutGrid
|
1087
|
-
* @param {number} rowIndex
|
1088
|
-
* @param {number} length
|
1126
|
+
* @param {number|null} rowIndex
|
1127
|
+
* @param {number|null} length
|
1089
1128
|
*/
|
1090
|
-
RowSelectionPlugin.prototype.
|
1091
|
-
|
1092
|
-
|
1129
|
+
RowSelectionPlugin.prototype._selectRangeOnSection = function (section, rowIndex, length) {
|
1130
|
+
if(rowIndex == null) {
|
1131
|
+
rowIndex = 0;
|
1132
|
+
}
|
1133
|
+
if (this._basedOnContent) { // TODO: handle the case where section is not content section
|
1093
1134
|
var dv = (this._activeGrid) ? this._activeGrid.getDataSource() : null;
|
1094
1135
|
|
1095
1136
|
if (dv) {
|
1096
|
-
var toRowIndex = rowIndex + length - 1;
|
1097
1137
|
var rids = dv.getVisibleRowIds(true);
|
1138
|
+
if(length == null) {
|
1139
|
+
length = rids.length;
|
1140
|
+
}
|
1141
|
+
var toRowIndex = rowIndex + length;
|
1142
|
+
if(toRowIndex > rids.length) {
|
1143
|
+
toRowIndex = rids.length;
|
1144
|
+
}
|
1098
1145
|
var ridList = [];
|
1099
1146
|
var valueList = [];
|
1100
|
-
for (var r = rowIndex; r
|
1147
|
+
for (var r = rowIndex; r < toRowIndex; r++) {
|
1101
1148
|
var dataRow = this._getRow(dv, r);
|
1102
1149
|
if (dataRow) {
|
1103
1150
|
ridList.push(rids[r]);
|
@@ -1108,6 +1155,9 @@ RowSelectionPlugin.prototype._sectionSelectRowRange = function (section, rowInde
|
|
1108
1155
|
this._setColumnData(dv, this._selectionField, valueList, ridList);
|
1109
1156
|
}
|
1110
1157
|
} else {
|
1158
|
+
if(length == null) {
|
1159
|
+
length = section.getRowCount();
|
1160
|
+
}
|
1111
1161
|
section.selectRowRange(rowIndex, length);
|
1112
1162
|
}
|
1113
1163
|
};
|
@@ -1222,14 +1272,15 @@ RowSelectionPlugin.prototype._clearMenuIcon = function () {
|
|
1222
1272
|
}
|
1223
1273
|
};
|
1224
1274
|
/** @private
|
1225
|
-
* @param {number} rowIndex
|
1226
|
-
* @param {number} length
|
1275
|
+
* @param {number|null} rowIndex
|
1276
|
+
* @param {number|null} length
|
1227
1277
|
* @param {Object=} sectRef Grid SectionReference
|
1228
1278
|
*/
|
1229
1279
|
RowSelectionPlugin.prototype._selectRowRange = function (rowIndex, length, sectRef) {
|
1230
1280
|
var section = this._getSection(sectRef);
|
1231
|
-
if (
|
1232
|
-
|
1281
|
+
if (section) {
|
1282
|
+
this._selectRangeOnSection(section, rowIndex, length);
|
1283
|
+
}
|
1233
1284
|
};
|
1234
1285
|
|
1235
1286
|
/** @private
|
@@ -1251,7 +1302,7 @@ RowSelectionPlugin.prototype._selectFromAnchorToTarget = function (section, rowI
|
|
1251
1302
|
startingRow = rowIndex;
|
1252
1303
|
}
|
1253
1304
|
|
1254
|
-
this.
|
1305
|
+
this._selectRangeOnSection(section, startingRow, (selectionCount * direction) + 1);
|
1255
1306
|
|
1256
1307
|
if (!this._basedOnContent && this._anchorSection.setRowAnchor) {
|
1257
1308
|
//Make sure that the anchor stays at the same position
|
@@ -1260,20 +1311,6 @@ RowSelectionPlugin.prototype._selectFromAnchorToTarget = function (section, rowI
|
|
1260
1311
|
}
|
1261
1312
|
}
|
1262
1313
|
};
|
1263
|
-
/** @private
|
1264
|
-
* @param {number} fromIndex
|
1265
|
-
* @param {number} toIndex
|
1266
|
-
*/
|
1267
|
-
RowSelectionPlugin.prototype._selectSectionRange = function (fromIndex, toIndex) {
|
1268
|
-
if (!this._activeGrid) { return; }
|
1269
|
-
for (var i = fromIndex; i <= toIndex; i++) {
|
1270
|
-
var settings = this._activeGrid.getSectionSettings(i);
|
1271
|
-
if (settings.getType() === "content") {
|
1272
|
-
var section = settings.getSection();
|
1273
|
-
this._sectionSelectRowRange(section, 0, section.getRowCount());
|
1274
|
-
}
|
1275
|
-
}
|
1276
|
-
};
|
1277
1314
|
|
1278
1315
|
/** @private
|
1279
1316
|
* @return {boolean}
|
@@ -9,7 +9,8 @@ declare namespace ConditionalColoringPlugin {
|
|
9
9
|
|
10
10
|
type Options = {
|
11
11
|
predefinedColors?: any,
|
12
|
-
blinkingDuration?: number|null
|
12
|
+
blinkingDuration?: number|null,
|
13
|
+
insertionBlinking?: boolean|null
|
13
14
|
};
|
14
15
|
|
15
16
|
type ColumnOptions = {
|
@@ -81,6 +82,8 @@ declare class ConditionalColoringPlugin extends GridPlugin {
|
|
81
82
|
|
82
83
|
public setPredefinedColors(predefinedColors: any): void;
|
83
84
|
|
85
|
+
public setInsertionBlinking(blinking: boolean): void;
|
86
|
+
|
84
87
|
public getColumnPainter(colIndex: number): CellPainter|null;
|
85
88
|
|
86
89
|
public applyColor(colIndex: number, cell: any, rowData?: any): void;
|
@@ -278,6 +278,8 @@ declare class DataView extends EventDispatcher {
|
|
278
278
|
|
279
279
|
public enableEmptySegmentFiltering(enabled?: boolean|null): void;
|
280
280
|
|
281
|
+
public enableSeparatorFiltering(enabled?: boolean|null): void;
|
282
|
+
|
281
283
|
public setSegmentClassification(segmentRef: string|number|null, fields: string|(string)[]|null): boolean;
|
282
284
|
|
283
285
|
public getWrapSize(): number;
|
@@ -8,8 +8,16 @@ declare class SnapshotFiller extends EventDispatcher {
|
|
8
8
|
|
9
9
|
constructor();
|
10
10
|
|
11
|
+
public static readonly _mockAdc: any;
|
12
|
+
|
11
13
|
public setRTK(rtk: any): void;
|
12
14
|
|
15
|
+
public static setMockAdc(str: string, value: any): void;
|
16
|
+
|
17
|
+
public static getMockAdc(str: string): any;
|
18
|
+
|
19
|
+
public static clearMockAdc(): void;
|
20
|
+
|
13
21
|
public setADCOptions(adcOptions: Grid.ADCOptions|null): void;
|
14
22
|
|
15
23
|
public addRic(ric: string): void;
|
@@ -35,6 +35,7 @@ declare namespace RowFilteringPlugin {
|
|
35
35
|
|
36
36
|
type Options = {
|
37
37
|
emptySegmentFiltering?: boolean|null,
|
38
|
+
separatorFiltering?: boolean|null,
|
38
39
|
disabledUI?: boolean|null,
|
39
40
|
iconActivation?: string|null,
|
40
41
|
dialogOptions?: RowFilteringPlugin.FilterDialogOptions|null,
|
@@ -118,6 +119,8 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
118
119
|
|
119
120
|
public enableEmptySegmentFiltering(enabled?: boolean|null): void;
|
120
121
|
|
122
|
+
public enableSeparatorFiltering(enabled?: boolean|null): void;
|
123
|
+
|
121
124
|
}
|
122
125
|
|
123
126
|
declare function field(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
|
package/lib/versions.json
CHANGED
@@ -10,13 +10,13 @@
|
|
10
10
|
"tr-grid-checkbox": "1.0.60",
|
11
11
|
"tr-grid-column-fitter": "1.0.39",
|
12
12
|
"tr-grid-column-formatting": "0.9.35",
|
13
|
-
"tr-grid-column-grouping": "1.0.
|
13
|
+
"tr-grid-column-grouping": "1.0.57",
|
14
14
|
"tr-grid-column-resizing": "1.0.28",
|
15
15
|
"tr-grid-column-selection": "1.0.29",
|
16
16
|
"tr-grid-column-stack": "1.0.72",
|
17
|
-
"tr-grid-conditional-coloring": "1.0.
|
17
|
+
"tr-grid-conditional-coloring": "1.0.65",
|
18
18
|
"tr-grid-content-wrap": "1.0.20",
|
19
|
-
"tr-grid-contextmenu": "1.0.
|
19
|
+
"tr-grid-contextmenu": "1.0.40",
|
20
20
|
"tr-grid-filter-input": "0.9.33",
|
21
21
|
"tr-grid-heat-map": "1.0.29",
|
22
22
|
"tr-grid-in-cell-editing": "1.0.80",
|
@@ -24,9 +24,9 @@
|
|
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.61",
|
28
28
|
"tr-grid-row-grouping": "1.0.82",
|
29
|
-
"tr-grid-row-selection": "1.0.
|
29
|
+
"tr-grid-row-selection": "1.0.24",
|
30
30
|
"tr-grid-rowcoloring": "1.0.24",
|
31
31
|
"tr-grid-textformatting": "1.0.46",
|
32
32
|
"tr-grid-titlewrap": "1.0.19",
|
package/package.json
CHANGED