@refinitiv-ui/efx-grid 6.0.4 → 6.0.5
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/column-selection-dialog/lib/column-selection-dialog.d.ts +1 -1
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +1 -1
- package/lib/core/dist/core.js +21 -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 +8 -2
- package/lib/core/es6/grid/components/Scrollbar.d.ts +2 -0
- package/lib/core/es6/grid/components/Scrollbar.js +13 -0
- package/lib/grid/lib/efx-grid.js +4 -44
- package/lib/grid/themes/halo/light/efx-grid.js +1 -1
- package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +675 -78
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +7 -0
- package/lib/rt-grid/es6/Grid.js +81 -1
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +3 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +121 -15
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +3 -2
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +5 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +1 -1
- package/lib/tr-grid-row-selection/es6/RowSelection.js +14 -10
- package/lib/tr-grid-util/es6/CellPainter.js +1 -1
- package/lib/tr-grid-util/es6/ElementObserver.js +6 -3
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -1
- package/lib/tr-grid-util/es6/ElfUtil.js +130 -27
- package/lib/types/es6/ConditionalColoring.d.ts +3 -2
- package/lib/types/es6/Core/grid/Core.d.ts +2 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +2 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +7 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +3 -0
- package/lib/versions.json +4 -4
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { customElement } from "@refinitiv-ui/core/decorators/custom-element.js";
|
|
2
2
|
import { JSXInterface } from "../../tr-grid-util/es6/jsx";
|
3
3
|
import { BasicElement, html } from "@refinitiv-ui/core";
|
4
4
|
import "@refinitiv-ui/elements/button";
|
5
|
-
import {
|
5
|
+
import { TreeRenderer } from "@refinitiv-ui/elements/tree";
|
6
6
|
import "@refinitiv-ui/elements/dialog";
|
7
7
|
import "@refinitiv-ui/elements/search-field";
|
8
8
|
import translation from "./locale/translation.js";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { customElement } from "@refinitiv-ui/core/decorators/custom-element.js";
|
2
2
|
import { BasicElement, html } from "@refinitiv-ui/core";
|
3
3
|
import "@refinitiv-ui/elements/button";
|
4
|
-
import {
|
4
|
+
import { TreeRenderer } from "@refinitiv-ui/elements/tree";
|
5
5
|
import "@refinitiv-ui/elements/dialog";
|
6
6
|
import "@refinitiv-ui/elements/search-field";
|
7
7
|
import translation from "./locale/translation.js";
|
package/lib/core/dist/core.js
CHANGED
@@ -7530,6 +7530,19 @@ Scrollbar.prototype.freezeScrolling = function (frozen) {
|
|
7530
7530
|
this._isFrozen = frozen !== false;
|
7531
7531
|
return prev;
|
7532
7532
|
};
|
7533
|
+
/** @public
|
7534
|
+
*/
|
7535
|
+
Scrollbar.prototype.restoreTrackPosition = function () {
|
7536
|
+
// Scroll event will be fired asynchronously, if there is any change
|
7537
|
+
var track = this._element;
|
7538
|
+
if(this._vertical) {
|
7539
|
+
track.scrollTop = this._tScrollVal;
|
7540
|
+
if(track.scrollTop){
|
7541
|
+
this._tScrollVal = track.scrollTop; //Check to ensure that cache equal to element's scroll
|
7542
|
+
}
|
7543
|
+
}
|
7544
|
+
//TODO: handle restore scrollLeft for hscroll
|
7545
|
+
};
|
7533
7546
|
|
7534
7547
|
Scrollbar._proto = Scrollbar.prototype;
|
7535
7548
|
|
@@ -23088,7 +23101,7 @@ Core_Core.prototype._rowHeightTimerId = 0;
|
|
23088
23101
|
* @return {string}
|
23089
23102
|
*/
|
23090
23103
|
Core_Core.getVersion = function () {
|
23091
|
-
return "5.0.
|
23104
|
+
return "5.0.59";
|
23092
23105
|
};
|
23093
23106
|
/** {@link ElementWrapper#dispose}
|
23094
23107
|
* @override
|
@@ -25916,6 +25929,11 @@ Core_Core.prototype.getScrollHeight = function () {
|
|
25916
25929
|
}
|
25917
25930
|
return this._vscrollbar.getContentHeight();
|
25918
25931
|
};
|
25932
|
+
/** @public
|
25933
|
+
*/
|
25934
|
+
Core_Core.prototype.restoreScrollbars = function () {
|
25935
|
+
this._vscrollbar.restoreTrackPosition();
|
25936
|
+
};
|
25919
25937
|
|
25920
25938
|
/** @public
|
25921
25939
|
* @ignore
|
@@ -27744,7 +27762,8 @@ Core_Core.prototype._updateSectionIndices = function (from) {
|
|
27744
27762
|
|
27745
27763
|
/** @private */
|
27746
27764
|
Core_Core.prototype._updateLayout = function () {
|
27747
|
-
|
27765
|
+
var element = this.getElement();
|
27766
|
+
if(this._disposed || !element.offsetParent) { return; }
|
27748
27767
|
|
27749
27768
|
this._syncLayoutToColumns(); // Update only if need
|
27750
27769
|
|