@refinitiv-ui/efx-grid 6.0.40 → 6.0.41
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +2 -1
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +23 -7
- package/lib/core/dist/core.js +25 -26
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +25 -26
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +2083 -1753
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +55 -7
- package/lib/rt-grid/es6/RowDefinition.d.ts +2 -2
- package/lib/rt-grid/es6/RowDefinition.js +37 -18
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +26 -40
- package/lib/tr-grid-util/es6/CellPainter.d.ts +2 -1
- package/lib/tr-grid-util/es6/CellPainter.js +6 -4
- package/lib/tr-grid-util/es6/ExpressionParser.d.ts +10 -0
- package/lib/tr-grid-util/es6/ExpressionParser.js +366 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +10 -6
- package/lib/tr-grid-util/es6/FilterBuilder.js +264 -234
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +3 -1
- package/lib/tr-grid-util/es6/FilterOperators.js +51 -2
- package/lib/tr-grid-util/es6/Util.d.ts +0 -3
- package/lib/tr-grid-util/es6/Util.js +0 -53
- package/lib/tr-grid-util/es6/formula/Formula.js +3 -3
- package/lib/types/es6/ColumnDragging.d.ts +51 -0
- package/lib/types/es6/ExtensionOptions.d.ts +2 -0
- package/lib/types/es6/Extensions.d.ts +3 -1
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +2 -2
- package/lib/types/es6/index.d.ts +1 -0
- package/lib/versions.json +3 -3
- package/package.json +1 -1
@@ -556,7 +556,7 @@ Core.prototype._batches = null;
|
|
556
556
|
* @return {string}
|
557
557
|
*/
|
558
558
|
Core.getVersion = function () {
|
559
|
-
return "5.1.
|
559
|
+
return "5.1.59";
|
560
560
|
};
|
561
561
|
/** {@link ElementWrapper#dispose}
|
562
562
|
* @override
|
@@ -1503,16 +1503,12 @@ Core.prototype.removeColumnAt = function (index) {
|
|
1503
1503
|
|
1504
1504
|
if (this._hasListener("columnRemoved")) {
|
1505
1505
|
var e = {};
|
1506
|
-
var batches = this._batches;
|
1507
|
-
if(batches){
|
1508
|
-
e["batches"] = batches;
|
1509
|
-
}
|
1510
1506
|
e["atTheMiddle"] = true;
|
1511
1507
|
e["colIndex"] = index;
|
1512
1508
|
e["columns"] = "deprecated";
|
1513
1509
|
e["columnData"] = colDef["columnData"];
|
1514
1510
|
e["colId"] = colDef["id"] || "";
|
1515
|
-
this.
|
1511
|
+
this._dispatchColumnEvent("columnRemoved", e);
|
1516
1512
|
}
|
1517
1513
|
|
1518
1514
|
// Last index in view here might be different from before moving column if columns have different width.
|
@@ -1765,7 +1761,7 @@ Core.prototype._moveColumn = function (fromCol, destCol) {
|
|
1765
1761
|
e["fromColIndex"] = fromCol;
|
1766
1762
|
e["toColIndex"] = destCol;
|
1767
1763
|
e["colId"] = colId; // TODO: Id may not needed
|
1768
|
-
this.
|
1764
|
+
this._dispatchColumnEvent("columnMoved", e); // add remove move
|
1769
1765
|
}
|
1770
1766
|
|
1771
1767
|
// Last index in view here might be different from before moving column if columns have different width.
|
@@ -1835,6 +1831,9 @@ Core.prototype.reorderColumns = function (colRefs, destCol) {
|
|
1835
1831
|
destId = destCol;
|
1836
1832
|
}
|
1837
1833
|
|
1834
|
+
this.startBatch("move");
|
1835
|
+
|
1836
|
+
var dirty = 0;
|
1838
1837
|
if(Array.isArray(colRefs)) {
|
1839
1838
|
var srcLen = colRefs.length;
|
1840
1839
|
if(srcLen > 1) {
|
@@ -1877,7 +1876,6 @@ Core.prototype.reorderColumns = function (colRefs, destCol) {
|
|
1877
1876
|
}
|
1878
1877
|
}
|
1879
1878
|
|
1880
|
-
var dirty = 0;
|
1881
1879
|
for(i = srcLen; --i >= 0;) {
|
1882
1880
|
srcId = srcIds[i]; // Only valid source columns are left at this point
|
1883
1881
|
srcIdx = this.getColumnIndex(srcId);
|
@@ -1888,17 +1886,15 @@ Core.prototype.reorderColumns = function (colRefs, destCol) {
|
|
1888
1886
|
dirty |= this._moveColumnByIndex(srcIdx, destIdx);
|
1889
1887
|
destId = srcId;
|
1890
1888
|
}
|
1891
|
-
return dirty ? true : false;
|
1892
1889
|
} else {
|
1893
|
-
|
1890
|
+
dirty = this.moveColumnById(colRefs[0], destId);
|
1894
1891
|
}
|
1895
|
-
}
|
1896
|
-
|
1897
|
-
if(colRefs != null) {
|
1892
|
+
} else if(colRefs != null) {
|
1898
1893
|
// colRefs will be a number or string
|
1899
|
-
|
1894
|
+
dirty = this.moveColumnById(colRefs, destId);
|
1900
1895
|
}
|
1901
|
-
|
1896
|
+
this.stopBatch("move");
|
1897
|
+
return dirty ? true : false;
|
1902
1898
|
};
|
1903
1899
|
|
1904
1900
|
/** @public
|
@@ -4452,6 +4448,17 @@ Core.prototype.stopBatch = function (batchType) {
|
|
4452
4448
|
|
4453
4449
|
//#region Private Methods
|
4454
4450
|
/** @private
|
4451
|
+
* @param {string} type
|
4452
|
+
* @param {!Object} eventArg
|
4453
|
+
*/
|
4454
|
+
Core.prototype._dispatchColumnEvent = function (type, eventArg) {
|
4455
|
+
var batches = this._batches;
|
4456
|
+
if(batches){
|
4457
|
+
eventArg["batches"] = batches;
|
4458
|
+
}
|
4459
|
+
this._dispatch(type, eventArg);
|
4460
|
+
};
|
4461
|
+
/** @private
|
4455
4462
|
*/
|
4456
4463
|
Core.prototype._dispatchColumnPositionChanged = function () {
|
4457
4464
|
if(this._columnPositionConflator.conflate()) {
|
@@ -4691,20 +4698,16 @@ Core.prototype._dispatchColumnAddedEvent = function (at, count, atTheMiddle, ctx
|
|
4691
4698
|
if (this._hasListener("columnAdded")) {
|
4692
4699
|
var e = {};
|
4693
4700
|
e["atTheMiddle"] = atTheMiddle;
|
4694
|
-
var batches = this._batches;
|
4695
|
-
if(batches){
|
4696
|
-
e["batches"] = batches;
|
4697
|
-
}
|
4698
4701
|
if(count === 1) {
|
4699
4702
|
e["colIndex"] = at;
|
4700
4703
|
e["context"] = ctx;
|
4701
|
-
this.
|
4704
|
+
this._dispatchColumnEvent("columnAdded", e);
|
4702
4705
|
} else {
|
4703
4706
|
var ary = Array.isArray(ctx) ? ctx : [];
|
4704
4707
|
for (var i = 0; i < count; ++i) {
|
4705
4708
|
e["colIndex"] = at + i;
|
4706
4709
|
e["context"] = ary[i];
|
4707
|
-
this.
|
4710
|
+
this._dispatchColumnEvent("columnAdded", e);
|
4708
4711
|
}
|
4709
4712
|
}
|
4710
4713
|
}
|
@@ -4846,15 +4849,11 @@ Core.prototype._removeColumn = function (num) { // TODO: change the logic to us
|
|
4846
4849
|
|
4847
4850
|
if (this._hasListener("columnRemoved")) {
|
4848
4851
|
var e = {};
|
4849
|
-
var batches = this._batches;
|
4850
|
-
if(batches){
|
4851
|
-
e["batches"] = batches;
|
4852
|
-
}
|
4853
4852
|
for (var c = colCount; --c >= newCount; ) {
|
4854
4853
|
var colDef = removedCols[c - newCount];
|
4855
4854
|
e["colIndex"] = c;
|
4856
4855
|
e["columnData"] = colDef ? colDef["columnData"] : null;
|
4857
|
-
this.
|
4856
|
+
this._dispatchColumnEvent("columnRemoved", e);
|
4858
4857
|
}
|
4859
4858
|
}
|
4860
4859
|
};
|
package/lib/grid/index.js
CHANGED