@refinitiv-ui/efx-grid 6.0.68 → 6.0.70
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.js +19 -7
- package/lib/core/dist/core.js +30 -2
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.d.ts +2 -0
- package/lib/core/es6/grid/Core.js +30 -2
- package/lib/filter-dialog/lib/filter-dialog.js +73 -32
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +52 -17
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +5 -2
- package/lib/rt-grid/es6/Grid.js +22 -15
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +32 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +13 -4
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +5 -5
- package/lib/tr-grid-printer/es6/CellWriter.js +6 -6
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +7 -6
- package/lib/tr-grid-printer/es6/GridPrinter.js +4 -2
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +1 -1
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +1 -1
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +65 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -2
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +225 -114
- package/lib/tr-grid-row-selection/es6/RowSelection.js +14 -32
- package/lib/tr-grid-util/es6/GridPlugin.js +52 -0
- package/lib/types/es6/Core/grid/Core.d.ts +2 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +5 -2
- package/lib/types/es6/RowFiltering.d.ts +2 -2
- package/lib/versions.json +11 -11
- package/package.json +1 -1
@@ -1948,12 +1948,19 @@ class ColumnSelectionDialog extends BasicElement {
|
|
1948
1948
|
}
|
1949
1949
|
var index = getItemIndex(this._allColumnList, item.value, 'value');
|
1950
1950
|
coralItem.selected = true;
|
1951
|
-
|
1951
|
+
var stationaryCount = this._unmovableColumns;
|
1952
|
+
var highligtedRowCount = highligtedRows ? highligtedRows.length : 0;
|
1953
|
+
var highligtedIndex;
|
1952
1954
|
var isInserted = false;
|
1953
1955
|
if(separatorIndex !== -1 && index < separatorIndex){
|
1954
|
-
for(j = 0; j <
|
1955
|
-
|
1956
|
-
|
1956
|
+
for(j = 0; j < highligtedRowCount; j++){
|
1957
|
+
highligtedIndex = highligtedRows[j];
|
1958
|
+
if(highligtedIndex < visibleSeparatorIndex){
|
1959
|
+
if(highligtedIndex < stationaryCount){
|
1960
|
+
this._visibleColumnList.splice(stationaryCount, 0, coralItem);
|
1961
|
+
} else {
|
1962
|
+
this._visibleColumnList.splice(highligtedIndex, 0, coralItem);
|
1963
|
+
}
|
1957
1964
|
isInserted = true;
|
1958
1965
|
break;
|
1959
1966
|
}
|
@@ -1962,9 +1969,14 @@ class ColumnSelectionDialog extends BasicElement {
|
|
1962
1969
|
this._visibleColumnList.splice(visibleSeparatorIndex, 0, coralItem);
|
1963
1970
|
}
|
1964
1971
|
} else {
|
1965
|
-
for(j = 0; j <
|
1966
|
-
|
1967
|
-
|
1972
|
+
for(j = 0; j < highligtedRowCount; j++){
|
1973
|
+
highligtedIndex = highligtedRows[j];
|
1974
|
+
if(highligtedIndex > visibleSeparatorIndex){
|
1975
|
+
if(highligtedIndex < stationaryCount){
|
1976
|
+
this._visibleColumnList.splice(stationaryCount, 0, coralItem);
|
1977
|
+
} else {
|
1978
|
+
this._visibleColumnList.splice(highligtedIndex, 0, coralItem);
|
1979
|
+
}
|
1968
1980
|
isInserted = true;
|
1969
1981
|
break;
|
1970
1982
|
}
|
package/lib/core/dist/core.js
CHANGED
@@ -25565,6 +25565,8 @@ VirtualizedLayoutGrid._proto = VirtualizedLayoutGrid.prototype;
|
|
25565
25565
|
*/
|
25566
25566
|
/** @event Core#beforeContentBinding */
|
25567
25567
|
/** @event Core#postSectionDataBinding */
|
25568
|
+
/** @event Core#firstRendered */
|
25569
|
+
/** @event Core#afterContentBinding */
|
25568
25570
|
/** @event Core#rowHighlighted */
|
25569
25571
|
|
25570
25572
|
/** @event Core#rowAdded
|
@@ -25735,6 +25737,8 @@ var Core_Core = function (opt_initializer) {
|
|
25735
25737
|
"beforeContentBinding",
|
25736
25738
|
"preSectionDataBinding",
|
25737
25739
|
"postSectionDataBinding",
|
25740
|
+
"firstRendered",
|
25741
|
+
"afterContentBinding",
|
25738
25742
|
"rowExpansionBinding",
|
25739
25743
|
"rowHighlighted",
|
25740
25744
|
"preForcedUpdate",
|
@@ -26087,6 +26091,10 @@ Core_Core.prototype._groupDefs = null;
|
|
26087
26091
|
* @private
|
26088
26092
|
*/
|
26089
26093
|
Core_Core.prototype._batches = null;
|
26094
|
+
/** @type {boolean}
|
26095
|
+
* @private
|
26096
|
+
*/
|
26097
|
+
Core_Core.prototype._firstRendered = false;
|
26090
26098
|
//#region Public Methods
|
26091
26099
|
|
26092
26100
|
/**
|
@@ -26094,7 +26102,7 @@ Core_Core.prototype._batches = null;
|
|
26094
26102
|
* @return {string}
|
26095
26103
|
*/
|
26096
26104
|
Core_Core.getVersion = function () {
|
26097
|
-
return "5.1.
|
26105
|
+
return "5.1.78";
|
26098
26106
|
};
|
26099
26107
|
/** {@link ElementWrapper#dispose}
|
26100
26108
|
* @override
|
@@ -26902,6 +26910,7 @@ Core_Core.prototype.getColumnCount = function () {
|
|
26902
26910
|
* @fires Core#preSectionDataBinding
|
26903
26911
|
* @fires Core#columnDataBinding
|
26904
26912
|
* @fires Core#postSectionDataBinding
|
26913
|
+
* @fires Core#afterContentBinding
|
26905
26914
|
*/
|
26906
26915
|
Core_Core.prototype.setColumnCount = function(num) {
|
26907
26916
|
var colCount = this._layoutX.getLaneCount();
|
@@ -26930,6 +26939,7 @@ Core_Core.prototype.setColumnCount = function(num) {
|
|
26930
26939
|
* @fires Core#preSectionDataBinding
|
26931
26940
|
* @fires Core#columnDataBinding
|
26932
26941
|
* @fires Core#postSectionDataBinding
|
26942
|
+
* @fires Core#afterContentBinding
|
26933
26943
|
*/
|
26934
26944
|
Core_Core.prototype.insertColumn = function (index, jsonObj) {
|
26935
26945
|
var prevCount = this.getColumnCount();
|
@@ -27545,6 +27555,7 @@ Core_Core.prototype._deserializeColumn = function (index, jsonObj) {
|
|
27545
27555
|
* @fires Core#preSectionDataBinding
|
27546
27556
|
* @fires Core#columnDataBinding
|
27547
27557
|
* @fires Core#postSectionDataBinding
|
27558
|
+
* @fires Core#afterContentBinding
|
27548
27559
|
*/
|
27549
27560
|
Core_Core.prototype.addRow = function (opt_num) {
|
27550
27561
|
if (opt_num == null) { opt_num = 1; }
|
@@ -29349,6 +29360,7 @@ Core_Core.prototype.synchronizeHScrollbar = function (subGrid) {
|
|
29349
29360
|
* @fires Core#preSectionDataBinding
|
29350
29361
|
* @fires Core#columnDataBinding
|
29351
29362
|
* @fires Core#postSectionDataBinding
|
29363
|
+
* @fires Core#afterContentBinding
|
29352
29364
|
*/
|
29353
29365
|
Core_Core.prototype.updateRowData = function (sectionRef, fromRowIndex, lastRowIndex, userParam) {
|
29354
29366
|
var ss = this.getSectionSettings(sectionRef || "content");
|
@@ -30483,7 +30495,9 @@ Core_Core.prototype._onSectionDataChanged = function (e) {
|
|
30483
30495
|
rowDataCollection = dataView.getMultipleRowData(rids, fromR, toR);
|
30484
30496
|
e["dataRows"] = rowDataCollection;
|
30485
30497
|
}
|
30486
|
-
|
30498
|
+
|
30499
|
+
var isContentSection = e["sectionType"] === "content";
|
30500
|
+
if(isContentSection){
|
30487
30501
|
this._dispatch("beforeContentBinding", e);
|
30488
30502
|
}
|
30489
30503
|
this._dispatch("preSectionDataBinding", e);
|
@@ -30517,10 +30531,24 @@ Core_Core.prototype._onSectionDataChanged = function (e) {
|
|
30517
30531
|
this._dispatch("postSectionDataBinding", e);
|
30518
30532
|
this._dispatchRowExpansionBinding(e);
|
30519
30533
|
|
30534
|
+
if(isContentSection){
|
30535
|
+
if(!this._firstRendered) {
|
30536
|
+
this._dispatch("firstRendered", e);
|
30537
|
+
this._firstRendered = true;
|
30538
|
+
}
|
30539
|
+
this._dispatch("afterContentBinding", e);
|
30540
|
+
}
|
30520
30541
|
section._startBindingSession(false);
|
30521
30542
|
this._dispatchingDataChanged = false;
|
30522
30543
|
};
|
30523
30544
|
|
30545
|
+
/** @public
|
30546
|
+
* @ignore
|
30547
|
+
*/
|
30548
|
+
Core_Core.prototype.resetInternalState = function() {
|
30549
|
+
this._firstRendered = false;
|
30550
|
+
};
|
30551
|
+
|
30524
30552
|
/** @private
|
30525
30553
|
* @param {VScrollbar|HScrollbar} scrollbar
|
30526
30554
|
* @returns {boolean}
|