@refinitiv-ui/efx-grid 6.0.0 → 6.0.3
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-format-dialog/lib/column-format-dialog.d.ts +13 -1
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +15 -2
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +226 -23
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/core/dist/core.css +1 -1
- package/lib/core/dist/core.js +10158 -7908
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataTable.js +32 -10
- package/lib/core/es6/data/DataView.d.ts +16 -7
- package/lib/core/es6/data/DataView.js +172 -49
- package/lib/core/es6/data/Segment.d.ts +2 -0
- package/lib/core/es6/data/Segment.js +7 -0
- package/lib/core/es6/data/WrappedView.d.ts +289 -0
- package/lib/core/es6/data/WrappedView.js +1319 -0
- package/lib/core/es6/grid/Core.d.ts +13 -0
- package/lib/core/es6/grid/Core.js +406 -160
- package/lib/core/es6/grid/ILayoutGrid.d.ts +8 -0
- package/lib/core/es6/grid/ILayoutGrid.js +45 -2
- package/lib/core/es6/grid/LayoutGrid.d.ts +10 -1
- package/lib/core/es6/grid/LayoutGrid.js +257 -82
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +10 -1
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +316 -24
- package/lib/core/es6/grid/components/Column.js +8 -2
- package/lib/core/es6/grid/components/HScrollbar.d.ts +4 -0
- package/lib/core/es6/grid/components/HScrollbar.js +20 -4
- package/lib/core/es6/grid/util/TrackLayout.d.ts +1 -1
- package/lib/core/es6/grid/util/TrackLayout.js +2 -3
- package/lib/core/es6/tr-grid-theme.js +1 -1
- package/lib/filter-dialog/lib/checkbox-list.d.ts +13 -1
- package/lib/filter-dialog/lib/filter-dialog.d.ts +13 -1
- package/lib/filter-dialog/lib/filter-dialog.js +24 -9
- package/lib/grid/lib/efx-grid.d.ts +27 -8
- package/lib/grid/lib/efx-grid.js +114 -115
- package/lib/grid/themes/base.less +5 -3
- package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
- package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/grid/themes/halo/efx-grid.less +69 -32
- 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/grid/themes/solar/charcoal/efx-grid.js +1 -1
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/index.d.ts +56 -56
- package/lib/index.js +56 -56
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +1 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +43 -12
- package/lib/rt-grid/dist/rt-grid.js +10293 -7865
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +4 -1
- package/lib/rt-grid/es6/ColumnDefinition.js +3 -0
- package/lib/rt-grid/es6/Grid.d.ts +14 -7
- package/lib/rt-grid/es6/Grid.js +244 -75
- package/lib/rt-grid/es6/RowDefinition.d.ts +4 -1
- package/lib/rt-grid/es6/RowDefinition.js +52 -2
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +1 -1
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +53 -40
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +4 -1
- package/lib/tr-grid-checkbox/es6/Checkbox.js +41 -14
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +10 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +5 -1
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +226 -4
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +3 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +6 -1
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +4 -2
- package/lib/tr-grid-filter-input/es6/FilterInput.js +73 -10
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +1 -1
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +13 -1
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +1 -3
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +165 -70
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +88 -33
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +41 -31
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +13 -9
- package/lib/tr-grid-row-selection/es6/RowSelection.js +220 -29
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +2 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +36 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +8 -8
- package/lib/tr-grid-util/es6/Conflator.d.ts +2 -2
- package/lib/tr-grid-util/es6/CoralItems.d.ts +1 -1
- package/lib/tr-grid-util/es6/DateTime.d.ts +4 -4
- package/lib/tr-grid-util/es6/Delay.d.ts +1 -1
- package/lib/tr-grid-util/es6/Dom.d.ts +4 -4
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +1 -1
- package/lib/tr-grid-util/es6/ElfDate.d.ts +3 -3
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -4
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +1 -1
- package/lib/tr-grid-util/es6/ExpanderIcon.js +2 -2
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +1 -1
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +5 -5
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +3 -3
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +1 -1
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +10 -2
- package/lib/tr-grid-util/es6/MultiTableManager.js +164 -57
- package/lib/tr-grid-util/es6/PercentBar.d.ts +1 -1
- package/lib/tr-grid-util/es6/Perf.d.ts +4 -4
- package/lib/tr-grid-util/es6/Popup.d.ts +2 -2
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +1 -1
- package/lib/tr-grid-util/es6/RowPainter.d.ts +3 -0
- package/lib/tr-grid-util/es6/RowPainter.js +82 -20
- package/lib/tr-grid-util/es6/SubTable.d.ts +9 -9
- package/lib/tr-grid-util/es6/Table.d.ts +13 -13
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +3 -3
- package/lib/tr-grid-util/es6/TickCodes.d.ts +2 -2
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +1 -1
- package/lib/tr-grid-util/es6/Util.d.ts +6 -6
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +5 -5
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +3 -3
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +2 -2
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +4 -4
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +4 -4
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +11 -11
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +7 -7
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +1 -1
- package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
- package/lib/types/es6/CellSelection.d.ts +1 -1
- package/lib/types/es6/Checkbox.d.ts +4 -1
- package/lib/types/es6/ColumnGrouping.d.ts +1 -0
- package/lib/types/es6/ColumnSelection.d.ts +5 -1
- package/lib/types/es6/Core/data/DataView.d.ts +16 -7
- package/lib/types/es6/Core/data/Segment.d.ts +2 -0
- package/lib/types/es6/Core/data/WrappedView.d.ts +289 -0
- package/lib/types/es6/Core/grid/Core.d.ts +13 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +8 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +10 -1
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +10 -1
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +4 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +1 -1
- package/lib/types/es6/FilterInput.d.ts +4 -2
- package/lib/types/es6/InCellEditing.d.ts +1 -1
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +4 -1
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +15 -8
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +4 -1
- package/lib/types/es6/RowColoring.d.ts +2 -0
- package/lib/types/es6/RowDragging.d.ts +1 -3
- package/lib/types/es6/RowFiltering.d.ts +2 -0
- package/lib/types/es6/RowSegmenting.d.ts +1 -0
- package/lib/types/es6/RowSelection.d.ts +13 -9
- package/lib/types/es6/Zoom.d.ts +2 -1
- package/lib/types/es6/index.d.ts +3 -0
- package/lib/versions.json +19 -19
- package/lib/zoom/es6/Zoom.d.ts +2 -1
- package/lib/zoom/es6/Zoom.js +11 -4
- package/package.json +9 -2
@@ -1,8 +1,10 @@
|
|
1
|
-
import { Ext } from
|
2
|
-
import { EventDispatcher } from
|
3
|
-
import { GridPlugin } from
|
4
|
-
import { isMac as isMacFn } from
|
1
|
+
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
2
|
+
import { EventDispatcher } from "../../tr-grid-util/es6/EventDispatcher.js";
|
3
|
+
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
4
|
+
import { isMac as isMacFn } from "../../tr-grid-util/es6/Util.js";
|
5
5
|
import { isIE, prepareTSVContent } from "../../tr-grid-util/es6/Util.js";
|
6
|
+
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
7
|
+
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
6
8
|
|
7
9
|
declare namespace RowSelectionPlugin {
|
8
10
|
|
@@ -11,7 +13,9 @@ declare namespace RowSelectionPlugin {
|
|
11
13
|
selectionChanged?: ((...params: any[]) => any),
|
12
14
|
beforeSelection?: ((...params: any[]) => any),
|
13
15
|
basedOnContent?: boolean,
|
14
|
-
selectionField?: string
|
16
|
+
selectionField?: string,
|
17
|
+
menuClicked?: ((...params: any[]) => any),
|
18
|
+
menuPosition?: string
|
15
19
|
};
|
16
20
|
|
17
21
|
}
|
@@ -42,13 +46,13 @@ declare class RowSelectionPlugin extends GridPlugin {
|
|
42
46
|
|
43
47
|
public getRowAnchor(sectRef?: any): number;
|
44
48
|
|
45
|
-
public getFirstSelectedIndex(sectRef?: any): number|null;
|
49
|
+
public getFirstSelectedIndex(sectRef?: any): number|null|null;
|
46
50
|
|
47
|
-
public getLastSelectedIndex(sectRef?: any): number|null;
|
51
|
+
public getLastSelectedIndex(sectRef?: any): number|null|null;
|
48
52
|
|
49
|
-
public getSelectedRows(sectRef?: any): (number)[];
|
53
|
+
public getSelectedRows(sectRef?: any): (number)[]|null;
|
50
54
|
|
51
|
-
public getSelectedRowIds(sectRef?: any): (string)[];
|
55
|
+
public getSelectedRowIds(sectRef?: any): (string)[]|null;
|
52
56
|
|
53
57
|
public getSelectedRowCount(sectRef?: any): number;
|
54
58
|
|
package/lib/types/es6/Zoom.d.ts
CHANGED
package/lib/types/es6/index.d.ts
CHANGED
@@ -72,5 +72,8 @@ export { ExtensionColumnOptions } from "./ExtensionColumnOptions";
|
|
72
72
|
export { Core, Core as CoreGrid, DataView } from "./Core";
|
73
73
|
export { Grid as RealtimeGrid } from "./RealtimeGrid";
|
74
74
|
export { ColumnDefinition } from "./RealtimeGrid/ColumnDefinition";
|
75
|
+
export { RowDefinition } from "./RealtimeGrid/RowDefinition";
|
75
76
|
export { CompositeGrid } from "./CompositeGrid";
|
76
77
|
|
78
|
+
|
79
|
+
export { Grid } from "../../grid/lib/efx-grid";
|
package/lib/versions.json
CHANGED
@@ -1,36 +1,36 @@
|
|
1
1
|
{
|
2
|
-
"tr-grid-util": "1.3.
|
3
|
-
"@grid/row-segmenting": "1.0.
|
2
|
+
"tr-grid-util": "1.3.48",
|
3
|
+
"@grid/row-segmenting": "1.0.13",
|
4
4
|
"@grid/statistics-row": "1.0.13",
|
5
|
-
"@grid/zoom": "1.0.
|
5
|
+
"@grid/zoom": "1.0.11",
|
6
6
|
"tr-grid-auto-tooltip": "1.1.5",
|
7
|
-
"tr-grid-cell-selection": "1.0.
|
8
|
-
"tr-grid-checkbox": "1.0.
|
7
|
+
"tr-grid-cell-selection": "1.0.30",
|
8
|
+
"tr-grid-checkbox": "1.0.57",
|
9
9
|
"tr-grid-column-fitter": "1.0.39",
|
10
10
|
"tr-grid-column-formatting": "0.9.33",
|
11
|
-
"tr-grid-column-grouping": "1.0.
|
11
|
+
"tr-grid-column-grouping": "1.0.19",
|
12
12
|
"tr-grid-column-resizing": "1.0.25",
|
13
|
-
"tr-grid-column-selection": "1.0.
|
14
|
-
"tr-grid-column-stack": "1.0.
|
15
|
-
"tr-grid-conditional-coloring": "1.0.
|
13
|
+
"tr-grid-column-selection": "1.0.23",
|
14
|
+
"tr-grid-column-stack": "1.0.30",
|
15
|
+
"tr-grid-conditional-coloring": "1.0.51",
|
16
16
|
"tr-grid-content-wrap": "1.0.18",
|
17
17
|
"tr-grid-contextmenu": "1.0.37",
|
18
|
-
"tr-grid-filter-input": "0.9.
|
18
|
+
"tr-grid-filter-input": "0.9.28",
|
19
19
|
"tr-grid-heat-map": "1.0.27",
|
20
|
-
"tr-grid-in-cell-editing": "1.0.
|
20
|
+
"tr-grid-in-cell-editing": "1.0.65",
|
21
21
|
"tr-grid-pagination": "1.0.23",
|
22
22
|
"tr-grid-percent-bar": "1.0.20",
|
23
23
|
"tr-grid-printer": "1.0.14",
|
24
24
|
"tr-grid-range-bar": "1.0.8",
|
25
|
-
"tr-grid-row-dragging": "1.0.
|
26
|
-
"tr-grid-row-filtering": "1.0.
|
27
|
-
"tr-grid-row-grouping": "1.0.
|
28
|
-
"tr-grid-row-selection": "1.0.
|
29
|
-
"tr-grid-rowcoloring": "1.0.
|
25
|
+
"tr-grid-row-dragging": "1.0.20",
|
26
|
+
"tr-grid-row-filtering": "1.0.49",
|
27
|
+
"tr-grid-row-grouping": "1.0.74",
|
28
|
+
"tr-grid-row-selection": "1.0.17",
|
29
|
+
"tr-grid-rowcoloring": "1.0.19",
|
30
30
|
"tr-grid-textformatting": "1.0.42",
|
31
31
|
"tr-grid-titlewrap": "1.0.19",
|
32
32
|
"@grid/formatters": "1.0.48",
|
33
|
-
"@grid/column-selection-dialog": "4.0.
|
34
|
-
"@grid/filter-dialog": "4.0.
|
35
|
-
"@grid/column-format-dialog": "4.0.
|
33
|
+
"@grid/column-selection-dialog": "4.0.43",
|
34
|
+
"@grid/filter-dialog": "4.0.46",
|
35
|
+
"@grid/column-format-dialog": "4.0.41"
|
36
36
|
}
|
package/lib/zoom/es6/Zoom.d.ts
CHANGED
package/lib/zoom/es6/Zoom.js
CHANGED
@@ -9,11 +9,14 @@ import Ext from "../../tr-grid-util/es6/Ext.js";
|
|
9
9
|
* @property {boolean=} wheel=true If disabled, not allow wheel event to change zoom
|
10
10
|
* @property {number=} maxFactor=2 Maximum zoom factor level
|
11
11
|
* @property {number=} minFactor=0.5 Minimum zoom factor level
|
12
|
+
* @property {Function=} zoomChanged=null Event handler when zoom factor is changed through the APIs or mouse wheel.
|
12
13
|
*/
|
13
14
|
|
14
15
|
/** @event ZoomPlugin#zoomChanged
|
15
16
|
* @description Fired when zoom changed
|
16
17
|
* @type {Object}
|
18
|
+
* @property {number} zoomFactor Current zoom factor
|
19
|
+
* @property {number} prevZoomFactor Previous zoom factor
|
17
20
|
*/
|
18
21
|
|
19
22
|
|
@@ -24,14 +27,16 @@ import Ext from "../../tr-grid-util/es6/Ext.js";
|
|
24
27
|
var ZoomPlugin = function (options) {
|
25
28
|
var t = this;
|
26
29
|
|
27
|
-
t._updateZoomedLayout = t._updateZoomedLayout.bind(
|
28
|
-
t._updateElementLayout = t._updateElementLayout.bind(
|
29
|
-
t._onWheel =
|
30
|
+
t._updateZoomedLayout = t._updateZoomedLayout.bind(t);
|
31
|
+
t._updateElementLayout = t._updateElementLayout.bind(t);
|
32
|
+
t._onWheel = t._onWheel.bind(t);
|
30
33
|
|
31
34
|
t._hosts = [];
|
32
35
|
t._elems = [];
|
33
36
|
|
34
|
-
|
37
|
+
if(options) {
|
38
|
+
t.config({ "zoom": options });
|
39
|
+
}
|
35
40
|
};
|
36
41
|
Ext.inherits(ZoomPlugin, GridPlugin);
|
37
42
|
|
@@ -149,6 +154,8 @@ ZoomPlugin.prototype.config = function (options) {
|
|
149
154
|
if (val != null) {
|
150
155
|
t._minFactor = val;
|
151
156
|
}
|
157
|
+
|
158
|
+
this.addListener(extOptions, "zoomChanged");
|
152
159
|
};
|
153
160
|
|
154
161
|
/** @public
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@refinitiv-ui/efx-grid",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.3",
|
4
4
|
"description": "Grid Components Library",
|
5
5
|
"author": "Refinitiv",
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
@@ -8,6 +8,13 @@
|
|
8
8
|
"module": "./lib/grid/index.js",
|
9
9
|
"types": "./lib/types/index.d.ts",
|
10
10
|
"homepage": "https://refinitiv.github.io/efx-grid",
|
11
|
+
"typesVersions": {
|
12
|
+
"*": {
|
13
|
+
"extensions": [
|
14
|
+
"lib/types/index.d.ts"
|
15
|
+
]
|
16
|
+
}
|
17
|
+
},
|
11
18
|
"exports": {
|
12
19
|
".": "./lib/grid/index.js",
|
13
20
|
"./themes/halo/dark": "./lib/grid/themes/halo/dark.js",
|
@@ -29,7 +36,7 @@
|
|
29
36
|
"./filter-dialog/themes/halo/light": "./lib/filter-dialog/themes/halo/light.js",
|
30
37
|
"./filter-dialog/themes/solar/charcoal": "./lib/filter-dialog/themes/solar/charcoal.js",
|
31
38
|
"./filter-dialog/themes/solar/pearl": "./lib/filter-dialog/themes/solar/pearl.js",
|
32
|
-
"./extensions": "./index.js",
|
39
|
+
"./extensions": "./lib/index.js",
|
33
40
|
"./window-exporter": "./lib/window-exporter.js"
|
34
41
|
},
|
35
42
|
"peerDependencies": {
|