@refinitiv-ui/efx-grid 6.0.39 → 6.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core/dist/core.js +15 -3
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +10 -1
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +5 -2
- package/lib/grid/index.js +1 -1
- package/lib/row-segmenting/es6/RowSegmenting.js +4 -4
- package/lib/rt-grid/dist/rt-grid.js +168 -87
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +7 -8
- package/lib/rt-grid/es6/Grid.d.ts +2 -0
- package/lib/rt-grid/es6/Grid.js +43 -30
- package/lib/rt-grid/es6/RowDefinition.d.ts +3 -4
- package/lib/rt-grid/es6/RowDefinition.js +72 -40
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +27 -27
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +97 -93
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +3 -3
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +2 -2
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +5 -5
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +30 -12
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +2 -1
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +50 -18
- package/lib/types/es6/ContextMenu.d.ts +27 -27
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +3 -0
- package/lib/types/es6/MenuEventAPI.d.ts +3 -3
- package/lib/types/es6/MenuItem.d.ts +2 -2
- package/lib/types/es6/PopupMenu.d.ts +5 -5
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +1 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +2 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +3 -4
- package/lib/versions.json +8 -8
- package/package.json +1 -1
package/lib/core/dist/core.js
CHANGED
@@ -25392,6 +25392,7 @@ VirtualizedLayoutGrid._proto = VirtualizedLayoutGrid.prototype;
|
|
25392
25392
|
* @property {string} rowId
|
25393
25393
|
* @property {number} rowIndex
|
25394
25394
|
*/
|
25395
|
+
/** @event Core#beforeContentBinding */
|
25395
25396
|
/** @event Core#postSectionDataBinding */
|
25396
25397
|
/** @event Core#rowHighlighted */
|
25397
25398
|
|
@@ -25554,6 +25555,7 @@ var Core_Core = function (opt_initializer) {
|
|
25554
25555
|
"postDataSourceChanged",
|
25555
25556
|
"preSectionRender",
|
25556
25557
|
"postSectionRender",
|
25558
|
+
"beforeContentBinding",
|
25557
25559
|
"preSectionDataBinding",
|
25558
25560
|
"postSectionDataBinding",
|
25559
25561
|
"rowExpansionBinding",
|
@@ -25915,7 +25917,7 @@ Core_Core.prototype._batches = null;
|
|
25915
25917
|
* @return {string}
|
25916
25918
|
*/
|
25917
25919
|
Core_Core.getVersion = function () {
|
25918
|
-
return "5.1.
|
25920
|
+
return "5.1.57";
|
25919
25921
|
};
|
25920
25922
|
/** {@link ElementWrapper#dispose}
|
25921
25923
|
* @override
|
@@ -26717,6 +26719,7 @@ Core_Core.prototype.getColumnCount = function () {
|
|
26717
26719
|
* @fires Core#columnAdded
|
26718
26720
|
* @fires Core#preSectionRender
|
26719
26721
|
* @fires Core#columnRender
|
26722
|
+
* @fires Core#beforeContentBinding
|
26720
26723
|
* @fires Core#preSectionDataBinding
|
26721
26724
|
* @fires Core#columnDataBinding
|
26722
26725
|
* @fires Core#postSectionDataBinding
|
@@ -26744,6 +26747,7 @@ Core_Core.prototype.setColumnCount = function(num) {
|
|
26744
26747
|
* @fires Core#columnAdded
|
26745
26748
|
* @fires Core#preSectionRender
|
26746
26749
|
* @fires Core#columnRender
|
26750
|
+
* @fires Core#beforeContentBinding
|
26747
26751
|
* @fires Core#preSectionDataBinding
|
26748
26752
|
* @fires Core#columnDataBinding
|
26749
26753
|
* @fires Core#postSectionDataBinding
|
@@ -27362,6 +27366,7 @@ Core_Core.prototype._deserializeColumn = function (index, jsonObj) {
|
|
27362
27366
|
* @param {number=} opt_num Default is one row
|
27363
27367
|
* @fires Core#preSectionRender
|
27364
27368
|
* @fires Core#columnRender
|
27369
|
+
* @fires Core#beforeContentBinding
|
27365
27370
|
* @fires Core#preSectionDataBinding
|
27366
27371
|
* @fires Core#columnDataBinding
|
27367
27372
|
* @fires Core#postSectionDataBinding
|
@@ -29165,6 +29170,7 @@ Core_Core.prototype.synchronizeHScrollbar = function (subGrid) {
|
|
29165
29170
|
* @param {number=} fromRowIndex INCLUSIVE If the value is undefined, the first row index will be used
|
29166
29171
|
* @param {number=} lastRowIndex INCLUSIVE If the value is undefined, the last row index will be used
|
29167
29172
|
* @param {Object=} userParam Addtional parameters to be fired with the event
|
29173
|
+
* @fires Core#beforeContentBinding
|
29168
29174
|
* @fires Core#preSectionDataBinding
|
29169
29175
|
* @fires Core#columnDataBinding
|
29170
29176
|
* @fires Core#postSectionDataBinding
|
@@ -30242,6 +30248,9 @@ Core_Core.prototype._onSectionDataChanged = function (e) {
|
|
30242
30248
|
rowDataCollection = dataView.getMultipleRowData(rids, fromR, toR);
|
30243
30249
|
e["dataRows"] = rowDataCollection;
|
30244
30250
|
}
|
30251
|
+
if(e["sectionType"] === "content"){
|
30252
|
+
this._dispatch("beforeContentBinding", e);
|
30253
|
+
}
|
30245
30254
|
this._dispatch("preSectionDataBinding", e);
|
30246
30255
|
|
30247
30256
|
var dataMap = this.getDataColumnMap();
|
@@ -32724,8 +32733,11 @@ SortableTitlePlugin.prototype._onColumnAdded = function (e) {
|
|
32724
32733
|
|
32725
32734
|
var sortOrder = column["sortOrder"] || column["sort"];
|
32726
32735
|
if(sortOrder != null) {
|
32727
|
-
|
32728
|
-
|
32736
|
+
sortOrder = SortableTitlePlugin._toSortOrder(sortOrder); // Invalid input will return "n"
|
32737
|
+
if(sortOrder !== "n") {
|
32738
|
+
t.clearSortState(); // clear previous sorting state
|
32739
|
+
t.sortColumn(colIndex, sortOrder);
|
32740
|
+
}
|
32729
32741
|
}
|
32730
32742
|
};
|
32731
32743
|
|