@refinitiv-ui/efx-grid 6.0.17 → 6.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +1 -1
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/core/dist/core.js +40 -23
- 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/data/SegmentCollection.js +20 -8
- package/lib/core/es6/grid/Core.js +1 -1
- package/lib/core/es6/grid/components/Cell.js +0 -13
- package/lib/filter-dialog/lib/filter-dialog.js +149 -131
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +198 -86
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.js +2 -1
- package/lib/rt-grid/es6/Grid.d.ts +12 -2
- package/lib/rt-grid/es6/Grid.js +152 -54
- package/lib/rt-grid/es6/RowDefinition.js +4 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +63 -12
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +150 -161
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +5 -9
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +36 -8
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +35 -29
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +5 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +30 -0
- package/lib/tr-grid-util/es6/Popup.js +5 -1
- package/lib/types/es6/ColumnGrouping.d.ts +4 -4
- package/lib/types/es6/Core/data/DataView.d.ts +4 -0
- package/lib/types/es6/FilterInput.d.ts +1 -0
- package/lib/types/es6/Pagination.d.ts +1 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +12 -2
- package/lib/versions.json +9 -9
- package/package.json +1 -1
@@ -16,6 +16,7 @@ import { CoralItems } from '../../tr-grid-util/es6/CoralItems.js';
|
|
16
16
|
* @property {string=} placeholder="" Placeholder text inside the input
|
17
17
|
* @property {string=} type="text" Type of UI. Available types are "number", "select", "dropdown", "date"
|
18
18
|
* @property {Array=} entries Entries of dropdown filters when type is "select"
|
19
|
+
* @property {*=} defaultValue Default value of input filter
|
19
20
|
* @property {string=} trigger="keyup" Available types of trigger are `false | ""` (no trigger) , `"keyup"` (default) , `"enter"` (on enter key *only available for text type)
|
20
21
|
*/
|
21
22
|
|
@@ -132,12 +133,10 @@ FilterInputPlugin.prototype.initialize = function (host, options) {
|
|
132
133
|
host.listen("postDataSourceChanged", this._onPostDataSourceChanged);
|
133
134
|
host.listen("columnAdded", this._onColumnAdded);
|
134
135
|
this.config(options); // In case of lazy loading
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
this._onPostDataSourceChanged();
|
140
|
-
}
|
136
|
+
// var title = host.getSection("title");
|
137
|
+
// if(title) {
|
138
|
+
// this._onPostDataSourceChanged();
|
139
|
+
// }
|
141
140
|
};
|
142
141
|
/** @public
|
143
142
|
* @param {Object} host core grid object
|
@@ -197,7 +196,9 @@ FilterInputPlugin.prototype.beforeProcessOption = function (optionName, options)
|
|
197
196
|
|
198
197
|
|
199
198
|
FilterInputPlugin.prototype._afterInit = function () {
|
200
|
-
|
199
|
+
// Retrieve RowFilteringPlugin is async operation
|
200
|
+
// onPostDataSourceChange has logic to apply default filter, which need to be done after RowFilteringPlugin is loaded
|
201
|
+
this._requestPlugin(this._hosts[0], "RowFilteringPlugin", this._gridConfig).then(this._onRowFilteringRetrieved)["catch"](this._onRowFilteringFailed)["finally"](this._onPostDataSourceChanged);
|
201
202
|
};
|
202
203
|
/** @public
|
203
204
|
* @param {Object=} options
|
@@ -275,6 +276,10 @@ FilterInputPlugin.prototype.getConfigObject = function (out_obj) {
|
|
275
276
|
filterInput.entries = opt.entries;
|
276
277
|
}
|
277
278
|
|
279
|
+
if (opt.defaultValue != null) {
|
280
|
+
filterInput.defaultValue = opt.defaultValue;
|
281
|
+
}
|
282
|
+
|
278
283
|
if (opt.trigger != null) {
|
279
284
|
filterInput.trigger = opt.trigger;
|
280
285
|
}
|
@@ -454,7 +459,19 @@ FilterInputPlugin.prototype._createColumnInputs = function (section, host) {
|
|
454
459
|
inputArgs['colId'] = this._compositeGrid.getColumnId(c);
|
455
460
|
}
|
456
461
|
|
457
|
-
this._dispatch("inputCreated", inputArgs);
|
462
|
+
this._dispatch("inputCreated", inputArgs); // To apply default filter, colOpt._filterArguments needs to be initailzed
|
463
|
+
|
464
|
+
|
465
|
+
var defaultValue = colOpt.defaultValue;
|
466
|
+
|
467
|
+
if (defaultValue) {
|
468
|
+
if (colOpt.type == "date") {
|
469
|
+
var dateObj = ElfDate.from(defaultValue);
|
470
|
+
defaultValue = dateObj ? dateObj.toDateString().substr(4) : "";
|
471
|
+
}
|
472
|
+
|
473
|
+
this.filterColumn(c, defaultValue);
|
474
|
+
}
|
458
475
|
}
|
459
476
|
};
|
460
477
|
/** @type {Object.<string, string>=}
|
@@ -475,6 +492,7 @@ FilterInputPlugin._uiMap = {
|
|
475
492
|
|
476
493
|
FilterInputPlugin.prototype._createFilterUI = function (colOpt) {
|
477
494
|
var elemType = colOpt.type;
|
495
|
+
var defaultValue = colOpt.defaultValue;
|
478
496
|
var elemTrigger = colOpt.trigger != null ? colOpt.trigger : this._inputTrigger;
|
479
497
|
var uiTag = FilterInputPlugin._uiMap[elemType] || "input";
|
480
498
|
|
@@ -502,6 +520,10 @@ FilterInputPlugin.prototype._createFilterUI = function (colOpt) {
|
|
502
520
|
elem.addEventListener("keydown", FilterInputPlugin._stopPropagation, false);
|
503
521
|
elem.addEventListener("click", FilterInputPlugin._stopPropagation, false);
|
504
522
|
|
523
|
+
if (defaultValue) {
|
524
|
+
elem.value = colOpt.defaultValue;
|
525
|
+
}
|
526
|
+
|
505
527
|
switch (uiTag) {
|
506
528
|
case "ef-input":
|
507
529
|
elem.setAttribute("type", "number");
|
@@ -652,6 +674,12 @@ FilterInputPlugin.prototype._retrieveColumnOption = function (colIndex, colDef)
|
|
652
674
|
option["entries"] = entries;
|
653
675
|
}
|
654
676
|
|
677
|
+
var defaultValue = filterOption["defaultValue"];
|
678
|
+
|
679
|
+
if (defaultValue) {
|
680
|
+
option["defaultValue"] = defaultValue;
|
681
|
+
}
|
682
|
+
|
655
683
|
var trigger = filterOption["trigger"];
|
656
684
|
|
657
685
|
if (typeof trigger == "string" || trigger == false) {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
2
2
|
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
3
|
+
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
3
4
|
|
4
5
|
/** @event PaginationPlugin#pageChanged
|
5
6
|
* @description Happens after pagination was changed, next, previous, first page, last page.
|
@@ -122,8 +123,12 @@ PaginationPlugin.prototype.setElement = function(elemRef) {
|
|
122
123
|
if(len) { // Remove all existing UI resources
|
123
124
|
for(var i = 0; i < len; ++i) {
|
124
125
|
var control = this._controls[i];
|
125
|
-
|
126
|
-
|
126
|
+
if (ElfUtil.getElfVersion() < 4) {
|
127
|
+
control.removeEventListener("page-changed", this._onPageChanged);
|
128
|
+
control.removeEventListener("page-size-changed", this._onPageSizeChanged);
|
129
|
+
} else {
|
130
|
+
control.removeEventListener("value-changed", this._onPageChanged);
|
131
|
+
}
|
127
132
|
}
|
128
133
|
this._controls.length = 0;
|
129
134
|
}
|
@@ -182,11 +187,16 @@ PaginationPlugin.prototype._resolveUIs = function() {
|
|
182
187
|
|
183
188
|
for(i = this._controls.length; --i >= 0;) {
|
184
189
|
var control = this._controls[i];
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
+
if (ElfUtil.getElfVersion() < 4) {
|
191
|
+
control.totalItems = this.getTotalRows();
|
192
|
+
control.pageSize = this.getPageSize();
|
193
|
+
control.page = this.getPageIndex();
|
194
|
+
control.addEventListener("page-changed", this._onPageChanged);
|
195
|
+
control.addEventListener("page-size-changed", this._onPageSizeChanged);
|
196
|
+
} else {
|
197
|
+
control.max = this.getPageCount();
|
198
|
+
control.addEventListener("value-changed", this._onPageChanged);
|
199
|
+
}
|
190
200
|
}
|
191
201
|
};
|
192
202
|
|
@@ -270,7 +280,7 @@ PaginationPlugin.prototype._configPaging = function(options) {
|
|
270
280
|
PaginationPlugin._toNumber = function(num) {
|
271
281
|
return (typeof num === "number") ? num : parseInt(num, 10);
|
272
282
|
};
|
273
|
-
/**
|
283
|
+
/** Handle page changed from pagination element
|
274
284
|
* @private
|
275
285
|
* @param {Event} e
|
276
286
|
*/
|
@@ -288,7 +298,7 @@ PaginationPlugin.prototype._onDispatchEvent = function() {
|
|
288
298
|
this._dispatch("pageChanged", { page: this.getPageIndex() });
|
289
299
|
};
|
290
300
|
|
291
|
-
/**
|
301
|
+
/** Handle page size changed from pagination element. Usually, this method is rarely called.
|
292
302
|
* @private
|
293
303
|
* @param {Event} e
|
294
304
|
*/
|
@@ -304,8 +314,22 @@ PaginationPlugin.prototype._onPageSizeChanged = function(e) {
|
|
304
314
|
PaginationPlugin.prototype._onDataChanged = function(e) {
|
305
315
|
var len = this._controls.length;
|
306
316
|
if (len && !e.positionChangeOnly) {
|
307
|
-
|
308
|
-
|
317
|
+
var pageIndex = this.getPageIndex();
|
318
|
+
var i;
|
319
|
+
if (ElfUtil.getElfVersion() < 4) {
|
320
|
+
var totalRows = this.getTotalRows();
|
321
|
+
var pageSize = this.getPageSize();
|
322
|
+
for(i = 0; i < len; ++i) {
|
323
|
+
this._controls[i].page = pageIndex;
|
324
|
+
this._controls[i].totalItems = totalRows;
|
325
|
+
this._controls[i].pageSize = pageSize; // In ELF v3 this may fire page-changed and page-size changed
|
326
|
+
}
|
327
|
+
} else {
|
328
|
+
var lastPageIndex = this.getPageCount();
|
329
|
+
for(i = 0; i < len; ++i) {
|
330
|
+
this._controls[i].value = pageIndex;
|
331
|
+
this._controls[i].max = lastPageIndex;
|
332
|
+
}
|
309
333
|
}
|
310
334
|
}
|
311
335
|
};
|
@@ -357,9 +381,6 @@ PaginationPlugin.prototype._setPageSize = function(size) {
|
|
357
381
|
if(this._dataView) {
|
358
382
|
this._dataView.setPageSize(size);
|
359
383
|
}
|
360
|
-
for(var i = this._controls.length; --i >= 0;) {
|
361
|
-
this._controls[i].pageSize = size; // In ELF v3 this may fire page-changed and page-size changed
|
362
|
-
}
|
363
384
|
};
|
364
385
|
|
365
386
|
/** Go to specfic page
|
@@ -370,9 +391,6 @@ PaginationPlugin.prototype.setPage = function(page) {
|
|
370
391
|
if (this._dataView) {
|
371
392
|
this._dataView.setPage(page);
|
372
393
|
}
|
373
|
-
for(var i = this._controls.length; --i >= 0;) {
|
374
|
-
this._controls[i].page = page;
|
375
|
-
}
|
376
394
|
};
|
377
395
|
/** Go to specfic page
|
378
396
|
* @public
|
@@ -386,9 +404,6 @@ PaginationPlugin.prototype.goto = PaginationPlugin.prototype.setPage;
|
|
386
404
|
*/
|
387
405
|
PaginationPlugin.prototype.first = function() {
|
388
406
|
this._dataView.firstPage();
|
389
|
-
for(var i = this._controls.length; --i >= 0;) {
|
390
|
-
this._controls[i].first();
|
391
|
-
}
|
392
407
|
};
|
393
408
|
|
394
409
|
/** Control pagination go to last page
|
@@ -396,9 +411,6 @@ PaginationPlugin.prototype.first = function() {
|
|
396
411
|
*/
|
397
412
|
PaginationPlugin.prototype.last = function() {
|
398
413
|
this._dataView.lastPage();
|
399
|
-
for(var i = this._controls.length; --i >= 0;) {
|
400
|
-
this._controls[i].last();
|
401
|
-
}
|
402
414
|
};
|
403
415
|
|
404
416
|
/** Control pagination go to next page
|
@@ -406,9 +418,6 @@ PaginationPlugin.prototype.last = function() {
|
|
406
418
|
*/
|
407
419
|
PaginationPlugin.prototype.next = function() {
|
408
420
|
this._dataView.nextPage();
|
409
|
-
for(var i = this._controls.length; --i >= 0;) {
|
410
|
-
this._controls[i].next();
|
411
|
-
}
|
412
421
|
};
|
413
422
|
|
414
423
|
/** Control pagination go to previous page
|
@@ -416,9 +425,6 @@ PaginationPlugin.prototype.next = function() {
|
|
416
425
|
*/
|
417
426
|
PaginationPlugin.prototype.previous = function() {
|
418
427
|
this._dataView.previousPage();
|
419
|
-
for(var i = this._controls.length; --i >= 0;) {
|
420
|
-
this._controls[i].previous();
|
421
|
-
}
|
422
428
|
};
|
423
429
|
|
424
430
|
|
@@ -29,6 +29,7 @@ declare namespace RowGroupingPlugin {
|
|
29
29
|
colorTag?: boolean|null,
|
30
30
|
predefinedColors?: any,
|
31
31
|
groupColors?: any,
|
32
|
+
defaultCollapse?: boolean|null,
|
32
33
|
clicked?: ((...params: any[]) => any)|null,
|
33
34
|
groupAdded?: ((...params: any[]) => any)|null,
|
34
35
|
beforeGroupAdded?: ((...params: any[]) => any)|null,
|
@@ -84,6 +85,10 @@ declare class RowGroupingPlugin extends GridPlugin {
|
|
84
85
|
|
85
86
|
public setPredefinedColors(predefinedColors: any): void;
|
86
87
|
|
88
|
+
public setDefaultCollapse(collapse: boolean): void;
|
89
|
+
|
90
|
+
public getDefaultCollapse(): boolean;
|
91
|
+
|
87
92
|
public sortGroups(): void;
|
88
93
|
|
89
94
|
public updateHeaders(): void;
|
@@ -26,6 +26,7 @@ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
|
26
26
|
* @property {boolean=} colorTag If not specified, the color tag will be disabled when using extension without halo theme.
|
27
27
|
* @property {Object=} predefinedColors Predefined color object map for color tag
|
28
28
|
* @property {Object=} groupColors The object map of group ID and predefined color.
|
29
|
+
* @property {boolean=} defaultCollapse=false Collapsing groups by default when a group is created
|
29
30
|
* @property {Function=} clicked=null Event handler when user clicks on arrows or cells
|
30
31
|
* @property {Function=} groupAdded=null Event handler
|
31
32
|
* @property {Function=} beforeGroupAdded=null Event handler
|
@@ -474,6 +475,9 @@ RowGroupingPlugin.prototype.config = function (options) {
|
|
474
475
|
if (option.autoGroupSorting != null) {
|
475
476
|
this._autoGroupSorting = !!option.autoGroupSorting;
|
476
477
|
}
|
478
|
+
if (option.defaultCollapse != null) {
|
479
|
+
this.setDefaultCollapse(option.defaultCollapse);
|
480
|
+
}
|
477
481
|
if (option.predefinedGroups != null) {
|
478
482
|
this.setPredefinedGroups(option.predefinedGroups);
|
479
483
|
}
|
@@ -665,6 +669,11 @@ RowGroupingPlugin.prototype.getConfigObject = function (gridOptions) {
|
|
665
669
|
extOptions.predefinedColors = this._predefinedColors;
|
666
670
|
}
|
667
671
|
|
672
|
+
var defaultCollapse = this.getDefaultCollapse();
|
673
|
+
if(defaultCollapse != null) {
|
674
|
+
extOptions.defaultCollapse = defaultCollapse;
|
675
|
+
}
|
676
|
+
|
668
677
|
return obj;
|
669
678
|
};
|
670
679
|
|
@@ -994,6 +1003,27 @@ RowGroupingPlugin.prototype.setPredefinedColors = function(predefinedColors) {
|
|
994
1003
|
}
|
995
1004
|
};
|
996
1005
|
|
1006
|
+
/** @public
|
1007
|
+
* @param {boolean} collapse Predefined color object map
|
1008
|
+
*/
|
1009
|
+
RowGroupingPlugin.prototype.setDefaultCollapse = function(collapse) {
|
1010
|
+
var dv = this.getDataView();
|
1011
|
+
if (dv) {
|
1012
|
+
dv.setDefaultCollapse(collapse);
|
1013
|
+
}
|
1014
|
+
};
|
1015
|
+
|
1016
|
+
/** @public
|
1017
|
+
* @return {boolean}
|
1018
|
+
*/
|
1019
|
+
RowGroupingPlugin.prototype.getDefaultCollapse = function() {
|
1020
|
+
var dv = this.getDataView();
|
1021
|
+
if (dv) {
|
1022
|
+
return dv.getDefaultCollapse();
|
1023
|
+
}
|
1024
|
+
return false; // if dv did't load, the value will be false by default
|
1025
|
+
};
|
1026
|
+
|
997
1027
|
/** Trigger group sorting logic -- re-sort the existing groups. This will not continuously apply to each data update.
|
998
1028
|
* @public
|
999
1029
|
*/
|
@@ -607,7 +607,11 @@ Popup.prototype.updatePosition = function () {
|
|
607
607
|
if (t._autoClipping) {
|
608
608
|
t._restoreElementSize();
|
609
609
|
}
|
610
|
-
var
|
610
|
+
var refElement = document.body;
|
611
|
+
if (t._positioning === "over") {
|
612
|
+
refElement = document.documentElement;
|
613
|
+
}
|
614
|
+
var pos = Dom.getRelativePosition(t._attachedElem, refElement);
|
611
615
|
var px = pos["x"];
|
612
616
|
var py = pos["y"];
|
613
617
|
|
@@ -24,12 +24,12 @@ declare class ColumnGroupingPlugin extends GridPlugin {
|
|
24
24
|
|
25
25
|
constructor(options?: ColumnGroupingPlugin.Options|null);
|
26
26
|
|
27
|
-
public beforeProcessOption(optionName: string, optionValue: any): any;
|
28
|
-
|
29
27
|
public getName(): string;
|
30
28
|
|
31
29
|
public initialize(host: any, options?: any): void;
|
32
30
|
|
31
|
+
public beforeProcessOption(optionName: string, optionValue: any): any;
|
32
|
+
|
33
33
|
public unload(host: any): void;
|
34
34
|
|
35
35
|
public config(options: any): void;
|
@@ -66,9 +66,9 @@ declare class ColumnGroupingPlugin extends GridPlugin {
|
|
66
66
|
|
67
67
|
public getCellInfo(e: Element|Event|MouseEvent|null): any;
|
68
68
|
|
69
|
-
public moveColumnIntoGroup(
|
69
|
+
public moveColumnIntoGroup(colRef: number|string|null, to: number, groupId: string): void;
|
70
70
|
|
71
|
-
public setColumnParent(
|
71
|
+
public setColumnParent(colRef: number|string|null, groupId: string): void;
|
72
72
|
|
73
73
|
}
|
74
74
|
|
@@ -188,6 +188,10 @@ declare class DataView extends EventDispatcher {
|
|
188
188
|
|
189
189
|
public enableContentAsHeader(bool?: boolean|null): void;
|
190
190
|
|
191
|
+
public setDefaultCollapse(collapse?: boolean|null): void;
|
192
|
+
|
193
|
+
public getDefaultCollapse(): boolean;
|
194
|
+
|
191
195
|
public getVisibleRowCount(): number;
|
192
196
|
|
193
197
|
public isRowDataInGroup(rowData: any, groupID?: string|null): boolean;
|
@@ -143,6 +143,8 @@ declare class Grid extends EventDispatcher {
|
|
143
143
|
|
144
144
|
public moveColumn(fromColIndex: number|(number)[]|null, toColIndex: number): boolean;
|
145
145
|
|
146
|
+
public moveColumnById(srcCol: number|string|null, destCol?: (number|string)|null): boolean;
|
147
|
+
|
146
148
|
public hideColumn(colRef: Grid.ColumnReference|null, hidden?: boolean|null): void;
|
147
149
|
|
148
150
|
public hideColumns(colRefs: (Grid.ColumnReference)[]|null, hidden?: boolean|null): void;
|
@@ -193,7 +195,7 @@ declare class Grid extends EventDispatcher {
|
|
193
195
|
|
194
196
|
public hasHiddenRow(): boolean;
|
195
197
|
|
196
|
-
public setRic(rowRef: Grid.RowReference|null, str: string): void;
|
198
|
+
public setRic(rowRef: Grid.RowReference|null, str: string, options?: RowDefinition.Options|null): void;
|
197
199
|
|
198
200
|
public unlinkChain(rowRef: Grid.RowReference|null): void;
|
199
201
|
|
@@ -215,6 +217,8 @@ declare class Grid extends EventDispatcher {
|
|
215
217
|
|
216
218
|
public getColumnDefinition(colIndex: number): ColumnDefinition|null;
|
217
219
|
|
220
|
+
public getColumnDefinitions(): (ColumnDefinition)[];
|
221
|
+
|
218
222
|
public getColumnDefinitionById(colId: string): ColumnDefinition|null;
|
219
223
|
|
220
224
|
public getColumnDefinitionsById(colIds: (string)[]|null): ColumnDefinition|null;
|
@@ -223,7 +227,7 @@ declare class Grid extends EventDispatcher {
|
|
223
227
|
|
224
228
|
public getRowDefinitions(): (RowDefinition)[];
|
225
229
|
|
226
|
-
public getAllRowDefinitions(
|
230
|
+
public getAllRowDefinitions(inclAutoGenerated?: boolean|null): (RowDefinition)[];
|
227
231
|
|
228
232
|
public getRowData(rowIndex: number): any;
|
229
233
|
|
@@ -243,10 +247,14 @@ declare class Grid extends EventDispatcher {
|
|
243
247
|
|
244
248
|
public getColumnId(colIndex: number): string;
|
245
249
|
|
250
|
+
public getColumnIds(): (string)[];
|
251
|
+
|
246
252
|
public getColumnField(colIndex: number): string;
|
247
253
|
|
248
254
|
public getColumnFields(): (string)[];
|
249
255
|
|
256
|
+
public getColumnNames(): (string)[];
|
257
|
+
|
250
258
|
public getAllFields(): (string)[];
|
251
259
|
|
252
260
|
public freezeColumn(colIndex?: number|null, pinnedRightColumns?: number|null): void;
|
@@ -297,5 +305,7 @@ declare class Grid extends EventDispatcher {
|
|
297
305
|
|
298
306
|
declare function borders(gridOptions?: any): any;
|
299
307
|
|
308
|
+
declare function colCount(rowRef: number|string|null): RowDefinition|null;
|
309
|
+
|
300
310
|
export { Grid };
|
301
311
|
export default Grid;
|
package/lib/versions.json
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
{
|
2
|
-
"tr-grid-util": "1.3.
|
2
|
+
"tr-grid-util": "1.3.82",
|
3
3
|
"@grid/column-dragging": "1.0.10",
|
4
|
-
"@grid/row-segmenting": "1.0.
|
4
|
+
"@grid/row-segmenting": "1.0.22",
|
5
5
|
"@grid/statistics-row": "1.0.13",
|
6
6
|
"@grid/zoom": "1.0.11",
|
7
7
|
"tr-grid-auto-tooltip": "1.1.5",
|
8
8
|
"tr-grid-cell-selection": "1.0.32",
|
9
|
-
"tr-grid-checkbox": "1.0.
|
9
|
+
"tr-grid-checkbox": "1.0.60",
|
10
10
|
"tr-grid-column-fitter": "1.0.39",
|
11
11
|
"tr-grid-column-formatting": "0.9.34",
|
12
|
-
"tr-grid-column-grouping": "1.0.
|
12
|
+
"tr-grid-column-grouping": "1.0.35",
|
13
13
|
"tr-grid-column-resizing": "1.0.26",
|
14
14
|
"tr-grid-column-selection": "1.0.25",
|
15
|
-
"tr-grid-column-stack": "1.0.
|
15
|
+
"tr-grid-column-stack": "1.0.48",
|
16
16
|
"tr-grid-conditional-coloring": "1.0.57",
|
17
17
|
"tr-grid-content-wrap": "1.0.19",
|
18
18
|
"tr-grid-contextmenu": "1.0.38",
|
19
|
-
"tr-grid-filter-input": "0.9.
|
19
|
+
"tr-grid-filter-input": "0.9.31",
|
20
20
|
"tr-grid-heat-map": "1.0.28",
|
21
21
|
"tr-grid-in-cell-editing": "1.0.73",
|
22
|
-
"tr-grid-pagination": "1.0.
|
22
|
+
"tr-grid-pagination": "1.0.24",
|
23
23
|
"tr-grid-percent-bar": "1.0.22",
|
24
24
|
"tr-grid-printer": "1.0.16",
|
25
25
|
"tr-grid-range-bar": "1.0.9",
|
26
26
|
"tr-grid-row-dragging": "1.0.23",
|
27
27
|
"tr-grid-row-filtering": "1.0.55",
|
28
|
-
"tr-grid-row-grouping": "1.0.
|
28
|
+
"tr-grid-row-grouping": "1.0.80",
|
29
29
|
"tr-grid-row-selection": "1.0.21",
|
30
30
|
"tr-grid-rowcoloring": "1.0.21",
|
31
31
|
"tr-grid-textformatting": "1.0.44",
|
32
32
|
"tr-grid-titlewrap": "1.0.19",
|
33
33
|
"@grid/formatters": "1.0.49",
|
34
34
|
"@grid/column-selection-dialog": "4.0.45",
|
35
|
-
"@grid/filter-dialog": "4.0.
|
35
|
+
"@grid/filter-dialog": "4.0.55",
|
36
36
|
"@grid/column-format-dialog": "4.0.43"
|
37
37
|
}
|
package/package.json
CHANGED