@refinitiv-ui/efx-grid 6.0.82 → 6.0.84
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +24 -5
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +20 -4
- package/lib/core/es6/grid/LayoutGrid.js +0 -1
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +4 -0
- package/lib/filter-dialog/lib/checkbox-list.js +4 -2
- package/lib/filter-dialog/lib/filter-dialog.d.ts +1 -0
- package/lib/filter-dialog/lib/filter-dialog.js +77 -8
- package/lib/filter-dialog/lib/locale/translation-de.js +3 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +3 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +3 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +3 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +3 -0
- package/lib/grid/index.js +1 -1
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +0 -2
- package/lib/tr-grid-checkbox/es6/Checkbox.js +3 -1
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +15 -15
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +6 -4
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +18 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +3 -2
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +137 -596
- package/lib/tr-grid-row-selection/es6/RowSelection.js +7 -35
- package/lib/tr-grid-util/es6/GridPlugin.js +30 -13
- package/lib/types/es6/ColumnFitter.d.ts +15 -15
- package/lib/types/es6/RowFiltering.d.ts +3 -2
- package/lib/versions.json +9 -9
- package/package.json +1 -1
package/lib/core/dist/core.js
CHANGED
@@ -10374,7 +10374,6 @@ LayoutGrid.prototype.updateColumnSeparators = function () {
|
|
10374
10374
|
}
|
10375
10375
|
}
|
10376
10376
|
};
|
10377
|
-
|
10378
10377
|
/** @private
|
10379
10378
|
* @return {Element}
|
10380
10379
|
*/
|
@@ -26145,6 +26144,10 @@ Core_Core.prototype._batches = null;
|
|
26145
26144
|
* @private
|
26146
26145
|
*/
|
26147
26146
|
Core_Core.prototype._firstRendered = false;
|
26147
|
+
/** @type {boolean}
|
26148
|
+
* @private
|
26149
|
+
*/
|
26150
|
+
Core_Core.prototype._hasPendingRowChange = false;
|
26148
26151
|
//#region Public Methods
|
26149
26152
|
|
26150
26153
|
/**
|
@@ -26152,7 +26155,7 @@ Core_Core.prototype._firstRendered = false;
|
|
26152
26155
|
* @return {string}
|
26153
26156
|
*/
|
26154
26157
|
Core_Core.getVersion = function () {
|
26155
|
-
return "5.1.
|
26158
|
+
return "5.1.87";
|
26156
26159
|
};
|
26157
26160
|
/** {@link ElementWrapper#dispose}
|
26158
26161
|
* @override
|
@@ -30354,8 +30357,8 @@ Core_Core.prototype._setColumnWidth = function (colIndex, px, opt_scalable) {
|
|
30354
30357
|
* @param {*=} ctx
|
30355
30358
|
*/
|
30356
30359
|
Core_Core.prototype._dispatchColumnAddedEvent = function (at, count, atTheMiddle, ctx) {
|
30360
|
+
var e = {};
|
30357
30361
|
if (this._hasListener("columnAdded")) {
|
30358
|
-
var e = {};
|
30359
30362
|
e["atTheMiddle"] = atTheMiddle;
|
30360
30363
|
if(count === 1) {
|
30361
30364
|
e["colIndex"] = at;
|
@@ -30371,7 +30374,11 @@ Core_Core.prototype._dispatchColumnAddedEvent = function (at, count, atTheMiddle
|
|
30371
30374
|
}
|
30372
30375
|
}
|
30373
30376
|
|
30374
|
-
this.
|
30377
|
+
if(this._frozenLayout){
|
30378
|
+
e["noDataUpdate"] = true;
|
30379
|
+
}
|
30380
|
+
|
30381
|
+
this._dispatchColumnRenderEvent(e,
|
30375
30382
|
at, at + count,
|
30376
30383
|
0, this._settings.length,
|
30377
30384
|
NaN, NaN);
|
@@ -30981,9 +30988,13 @@ Core_Core.prototype._onRowCountChanged = function (e) {
|
|
30981
30988
|
}
|
30982
30989
|
}
|
30983
30990
|
|
30991
|
+
var noBinding = e["noBinding"];
|
30984
30992
|
var paneChanged = (sectionIndex <= this._startVScrollbarIndex) || (sectionIndex >= this._getFooterStartIndex());
|
30985
30993
|
var forceUpdate = this._frozenFooterCount > 0 ? true : false; // Prevent from footer section flashing
|
30986
|
-
var viewChanged = this._updateScrollbarHeight(paneChanged, forceUpdate,
|
30994
|
+
var viewChanged = this._updateScrollbarHeight(paneChanged, forceUpdate, noBinding); // Virtualization is triggered
|
30995
|
+
if(noBinding){
|
30996
|
+
this._hasPendingRowChange = true;
|
30997
|
+
}
|
30987
30998
|
if(!this._frozenLayout && !viewChanged) { // Grid must activate newly created section if no event is dispatched from the row virtualizer
|
30988
30999
|
if(this._rowVirtualizer.isVirtualizable()) {
|
30989
31000
|
section.activateRows(this._rowVirtualizer.getFirstIndexInView(),
|
@@ -30992,6 +31003,7 @@ Core_Core.prototype._onRowCountChanged = function (e) {
|
|
30992
31003
|
section.activateRows();
|
30993
31004
|
}
|
30994
31005
|
}
|
31006
|
+
this._hasPendingRowChange = false;
|
30995
31007
|
|
30996
31008
|
if(!forceUpdate) {
|
30997
31009
|
this._updateVScrollbar(); // Asynchronous
|
@@ -31075,6 +31087,9 @@ Core_Core.prototype._containsSection = function (s) {
|
|
31075
31087
|
* @param {!Object} e
|
31076
31088
|
*/
|
31077
31089
|
Core_Core.prototype._onRowAvailable = function (e) {
|
31090
|
+
if(this._hasPendingRowChange){
|
31091
|
+
return;
|
31092
|
+
}
|
31078
31093
|
var sectionIndex = /** @type{number} */(e["sectionIndex"]);
|
31079
31094
|
this._dispatchColumnRenderEvent(e,
|
31080
31095
|
0, this.getColumnCount(),
|
@@ -32705,6 +32720,10 @@ SortableTitlePlugin.prototype._proceedSorting = function (hitObj) {
|
|
32705
32720
|
if (state) {
|
32706
32721
|
this._sortColumn([state], { "isUserAction": true });
|
32707
32722
|
}
|
32723
|
+
var grid = hitObj["grid"];
|
32724
|
+
if(grid && grid["focus"]) {
|
32725
|
+
grid["focus"]();
|
32726
|
+
}
|
32708
32727
|
|
32709
32728
|
if (this._hasListener("clicked")) {
|
32710
32729
|
var ce = {};
|