@refinitiv-ui/efx-grid 6.0.112 → 6.0.113
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 +14 -5
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.js +13 -5
- package/lib/core/es6/grid/components/Cell.js +1 -0
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +20 -10
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +5 -5
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +1 -1
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +34 -34
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +7 -7
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +13 -13
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +33 -33
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +11 -3
- package/lib/tr-grid-util/es6/CellPainter.js +6 -0
- package/lib/types/es6/ContextMenu.d.ts +1 -1
- package/lib/types/es6/RowFiltering.d.ts +8 -0
- package/lib/versions.json +3 -3
- package/package.json +2 -1
package/lib/core/dist/core.js
CHANGED
@@ -1968,6 +1968,7 @@ Cell.prototype.initialize = function () {
|
|
1968
1968
|
this._aligner = document.createElement("button");
|
1969
1969
|
}
|
1970
1970
|
this._aligner.className = "valigner";
|
1971
|
+
this._aligner.role = "gridcell";
|
1971
1972
|
if(this._frontIcon) {
|
1972
1973
|
this._element.appendChild(this._frontIcon.getElement());
|
1973
1974
|
}
|
@@ -25164,6 +25165,7 @@ let _createHiddenInput = function () {
|
|
25164
25165
|
styleObj.position = "absolute";
|
25165
25166
|
styleObj.width = styleObj.height = styleObj.padding = styleObj.border = "0";
|
25166
25167
|
hiddenInput.value = "0";
|
25168
|
+
hiddenInput.role = "grid";
|
25167
25169
|
return hiddenInput;
|
25168
25170
|
};
|
25169
25171
|
/** @private
|
@@ -25710,7 +25712,7 @@ Core_Core.prototype._hasPendingRowChange = false;
|
|
25710
25712
|
* @return {string}
|
25711
25713
|
*/
|
25712
25714
|
Core_Core.getVersion = function () {
|
25713
|
-
return "5.1.
|
25715
|
+
return "5.1.115";
|
25714
25716
|
};
|
25715
25717
|
/** {@link ElementWrapper#dispose}
|
25716
25718
|
* @override
|
@@ -28830,9 +28832,16 @@ Core_Core.prototype.getVerticalViewInfo = function() {
|
|
28830
28832
|
let viewTop = this._vscrollbar.getScrollTop() + heightOffset;
|
28831
28833
|
let viewBottom = viewTop + viewHeight;
|
28832
28834
|
|
28835
|
+
let topRowIndex = this._layoutY.hitTest(viewTop) - rowIndexOffset;
|
28836
|
+
let bottomRowIndex = this._layoutY.hitTest(viewBottom - 0.1) - rowIndexOffset;
|
28837
|
+
let laneTop = this._layoutY.getLaneStart(topRowIndex + rowIndexOffset);
|
28838
|
+
let laneBottom = this._layoutY.getLaneEnd(bottomRowIndex + rowIndexOffset);
|
28839
|
+
|
28833
28840
|
return {
|
28834
|
-
topRowIndex:
|
28835
|
-
|
28841
|
+
topRowIndex: topRowIndex,
|
28842
|
+
firstFullRow: (laneTop < viewTop) ? topRowIndex + 1 : topRowIndex,
|
28843
|
+
lastFullRow: (laneBottom > viewBottom) ? bottomRowIndex - 1 : bottomRowIndex,
|
28844
|
+
bottomRowIndex: bottomRowIndex
|
28836
28845
|
};
|
28837
28846
|
};
|
28838
28847
|
/** @public
|
@@ -28854,8 +28863,8 @@ Core_Core.prototype.getVScrollView = function () {
|
|
28854
28863
|
let topRowIndex = this._layoutY.hitTest(viewTop);
|
28855
28864
|
let bottomRowIndex = this._layoutY.hitTest(viewBottom - 0.1);
|
28856
28865
|
|
28857
|
-
let laneTop = this._layoutY.getLaneStart(topRowIndex);
|
28858
|
-
let laneBottom = this._layoutY.getLaneEnd(bottomRowIndex);
|
28866
|
+
let laneTop = this._layoutY.getLaneStart(topRowIndex + rowIndexOffset);
|
28867
|
+
let laneBottom = this._layoutY.getLaneEnd(bottomRowIndex + rowIndexOffset);
|
28859
28868
|
|
28860
28869
|
let prevAnchor = viewTop - viewHeight;
|
28861
28870
|
let prevPage = (prevAnchor <= heightOffset) ? rowIndexOffset : this._layoutY.hitTest(prevAnchor) + 1;
|