@refinitiv-ui/efx-grid 6.0.20 → 6.0.21
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/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +124 -5
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.d.ts +6 -0
- package/lib/rt-grid/es6/Grid.js +124 -5
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +4 -4
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +162 -103
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +11 -37
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +15 -15
- package/lib/tr-grid-row-selection/es6/RowSelection.js +9 -1
- package/lib/types/es6/ColumnGrouping.d.ts +4 -4
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +6 -0
- package/lib/types/es6/RowSelection.d.ts +15 -15
- package/lib/versions.json +3 -3
- package/package.json +4 -1
@@ -9,20 +9,20 @@ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
|
9
9
|
declare namespace RowSelectionPlugin {
|
10
10
|
|
11
11
|
type Options = {
|
12
|
-
singleSelection?: boolean,
|
13
|
-
selectionChanged?: ((...params: any[]) => any),
|
14
|
-
beforeSelection?: ((...params: any[]) => any),
|
15
|
-
basedOnContent?: boolean,
|
16
|
-
selectionField?: string,
|
17
|
-
menuClicked?: ((...params: any[]) => any),
|
18
|
-
menuPosition?: string
|
12
|
+
singleSelection?: boolean|null,
|
13
|
+
selectionChanged?: ((...params: any[]) => any)|null,
|
14
|
+
beforeSelection?: ((...params: any[]) => any)|null,
|
15
|
+
basedOnContent?: boolean|null,
|
16
|
+
selectionField?: string|null,
|
17
|
+
menuClicked?: ((...params: any[]) => any)|null,
|
18
|
+
menuPosition?: string|null
|
19
19
|
};
|
20
20
|
|
21
21
|
}
|
22
22
|
|
23
23
|
declare class RowSelectionPlugin extends GridPlugin {
|
24
24
|
|
25
|
-
constructor(options?: RowSelectionPlugin.Options);
|
25
|
+
constructor(options?: RowSelectionPlugin.Options|null);
|
26
26
|
|
27
27
|
public getName(): string;
|
28
28
|
|
@@ -36,11 +36,11 @@ declare class RowSelectionPlugin extends GridPlugin {
|
|
36
36
|
|
37
37
|
public getConfigObject(gridOptions?: any): any;
|
38
38
|
|
39
|
-
public clearAllSelections(preserveAnchor?: boolean, activeGrid?: any): void;
|
39
|
+
public clearAllSelections(preserveAnchor?: boolean|null, activeGrid?: any): void;
|
40
40
|
|
41
|
-
public clearSelectedRows(preserveAnchor?: boolean, activeGrid?: any): void;
|
41
|
+
public clearSelectedRows(preserveAnchor?: boolean|null, activeGrid?: any): void;
|
42
42
|
|
43
|
-
public clearSelection(preserveAnchor?: boolean, activeGrid?: any): void;
|
43
|
+
public clearSelection(preserveAnchor?: boolean|null, activeGrid?: any): void;
|
44
44
|
|
45
45
|
public getActiveGrid(): any;
|
46
46
|
|
@@ -56,19 +56,19 @@ declare class RowSelectionPlugin extends GridPlugin {
|
|
56
56
|
|
57
57
|
public getSelectedRowCount(sectRef?: any): number;
|
58
58
|
|
59
|
-
public setSelectedRow(rowIndex: number, opt_select?: boolean, sectRef?: any): void;
|
59
|
+
public setSelectedRow(rowIndex: number, opt_select?: boolean|null, sectRef?: any): void;
|
60
60
|
|
61
61
|
public selectSingleRow(rowIndex: number, sectRef?: any, activeGrid?: any): boolean;
|
62
62
|
|
63
63
|
public selectAllRows(activeGrid?: any): void;
|
64
64
|
|
65
|
-
public selectRowRange(rowIndex: number, length: number, sectRef?: any, opt_scrollToRow?: boolean): void;
|
65
|
+
public selectRowRange(rowIndex: number, length: number, sectRef?: any, opt_scrollToRow?: boolean|null): void;
|
66
66
|
|
67
|
-
public disable(disabled?: boolean): void;
|
67
|
+
public disable(disabled?: boolean|null): void;
|
68
68
|
|
69
69
|
public isEnabled(): boolean;
|
70
70
|
|
71
|
-
public disableMultiSelection(disabled?: boolean): void;
|
71
|
+
public disableMultiSelection(disabled?: boolean|null): void;
|
72
72
|
|
73
73
|
public getSelectedText(): string;
|
74
74
|
|
@@ -615,7 +615,15 @@ RowSelectionPlugin.prototype._onClick = function (e) {
|
|
615
615
|
this._dispatchSelectionChanged(e);
|
616
616
|
}
|
617
617
|
if(this._activeGrid != null){
|
618
|
-
|
618
|
+
var selectionText;
|
619
|
+
if(this._isIE) {
|
620
|
+
selectionText = document.selection.createRange().htmlText;
|
621
|
+
} else {
|
622
|
+
selectionText = window.getSelection().toString();
|
623
|
+
}
|
624
|
+
if(!selectionText) { // Doesn't select text, tried to focus
|
625
|
+
this._activeGrid.focus();
|
626
|
+
}
|
619
627
|
}
|
620
628
|
};
|
621
629
|
/** @private
|
@@ -38,19 +38,19 @@ declare class ColumnGroupingPlugin extends GridPlugin {
|
|
38
38
|
|
39
39
|
public addColumnToGroup(column: any, groupId: string, colIndex: number): void;
|
40
40
|
|
41
|
-
public addGroup(groupDef: ColumnGroupingPlugin.GroupDefinition|null):
|
41
|
+
public addGroup(groupDef: ColumnGroupingPlugin.GroupDefinition|null): string;
|
42
42
|
|
43
43
|
public addColumnGrouping(groupDef: ColumnGroupingPlugin.GroupDefinition|null): void;
|
44
44
|
|
45
|
-
public removeGroup(groupId: string):
|
45
|
+
public removeGroup(groupId: string): ColumnGroupingPlugin.GroupDefinition|null;
|
46
46
|
|
47
|
-
public
|
47
|
+
public getGroupDefinition(groupId: string): ColumnGroupingPlugin.GroupDefinition|null;
|
48
48
|
|
49
49
|
public getGroupDefinitions(): ColumnGroupingPlugin.GroupDefinitions;
|
50
50
|
|
51
51
|
public setGroupDefinition(groupId: string, newDef: ColumnGroupingPlugin.GroupDefinition|null): void;
|
52
52
|
|
53
|
-
public
|
53
|
+
public setGroupDefinitions(groupDefs: ColumnGroupingPlugin.GroupDefinitions|null): void;
|
54
54
|
|
55
55
|
public setGroupChildren(groupId: string, newChildList: (string)[]|null): void;
|
56
56
|
|
@@ -259,6 +259,12 @@ declare class Grid extends EventDispatcher {
|
|
259
259
|
|
260
260
|
public freezeColumn(colIndex?: number|null, pinnedRightColumns?: number|null): void;
|
261
261
|
|
262
|
+
public pinColumn(colRef: Grid.ColumnReference|(Grid.ColumnReference)[]|null): boolean;
|
263
|
+
|
264
|
+
public unpinColumn(colRef: Grid.ColumnReference|(Grid.ColumnReference)[]|null, dest?: Grid.ColumnReference|null): boolean;
|
265
|
+
|
266
|
+
public unpinAllColumns(): boolean;
|
267
|
+
|
262
268
|
public updateColumnTitle(): void;
|
263
269
|
|
264
270
|
public isSorting(): boolean;
|
@@ -9,20 +9,20 @@ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
|
9
9
|
declare namespace RowSelectionPlugin {
|
10
10
|
|
11
11
|
type Options = {
|
12
|
-
singleSelection?: boolean,
|
13
|
-
selectionChanged?: ((...params: any[]) => any),
|
14
|
-
beforeSelection?: ((...params: any[]) => any),
|
15
|
-
basedOnContent?: boolean,
|
16
|
-
selectionField?: string,
|
17
|
-
menuClicked?: ((...params: any[]) => any),
|
18
|
-
menuPosition?: string
|
12
|
+
singleSelection?: boolean|null,
|
13
|
+
selectionChanged?: ((...params: any[]) => any)|null,
|
14
|
+
beforeSelection?: ((...params: any[]) => any)|null,
|
15
|
+
basedOnContent?: boolean|null,
|
16
|
+
selectionField?: string|null,
|
17
|
+
menuClicked?: ((...params: any[]) => any)|null,
|
18
|
+
menuPosition?: string|null
|
19
19
|
};
|
20
20
|
|
21
21
|
}
|
22
22
|
|
23
23
|
declare class RowSelectionPlugin extends GridPlugin {
|
24
24
|
|
25
|
-
constructor(options?: RowSelectionPlugin.Options);
|
25
|
+
constructor(options?: RowSelectionPlugin.Options|null);
|
26
26
|
|
27
27
|
public getName(): string;
|
28
28
|
|
@@ -36,11 +36,11 @@ declare class RowSelectionPlugin extends GridPlugin {
|
|
36
36
|
|
37
37
|
public getConfigObject(gridOptions?: any): any;
|
38
38
|
|
39
|
-
public clearAllSelections(preserveAnchor?: boolean, activeGrid?: any): void;
|
39
|
+
public clearAllSelections(preserveAnchor?: boolean|null, activeGrid?: any): void;
|
40
40
|
|
41
|
-
public clearSelectedRows(preserveAnchor?: boolean, activeGrid?: any): void;
|
41
|
+
public clearSelectedRows(preserveAnchor?: boolean|null, activeGrid?: any): void;
|
42
42
|
|
43
|
-
public clearSelection(preserveAnchor?: boolean, activeGrid?: any): void;
|
43
|
+
public clearSelection(preserveAnchor?: boolean|null, activeGrid?: any): void;
|
44
44
|
|
45
45
|
public getActiveGrid(): any;
|
46
46
|
|
@@ -56,19 +56,19 @@ declare class RowSelectionPlugin extends GridPlugin {
|
|
56
56
|
|
57
57
|
public getSelectedRowCount(sectRef?: any): number;
|
58
58
|
|
59
|
-
public setSelectedRow(rowIndex: number, opt_select?: boolean, sectRef?: any): void;
|
59
|
+
public setSelectedRow(rowIndex: number, opt_select?: boolean|null, sectRef?: any): void;
|
60
60
|
|
61
61
|
public selectSingleRow(rowIndex: number, sectRef?: any, activeGrid?: any): boolean;
|
62
62
|
|
63
63
|
public selectAllRows(activeGrid?: any): void;
|
64
64
|
|
65
|
-
public selectRowRange(rowIndex: number, length: number, sectRef?: any, opt_scrollToRow?: boolean): void;
|
65
|
+
public selectRowRange(rowIndex: number, length: number, sectRef?: any, opt_scrollToRow?: boolean|null): void;
|
66
66
|
|
67
|
-
public disable(disabled?: boolean): void;
|
67
|
+
public disable(disabled?: boolean|null): void;
|
68
68
|
|
69
69
|
public isEnabled(): boolean;
|
70
70
|
|
71
|
-
public disableMultiSelection(disabled?: boolean): void;
|
71
|
+
public disableMultiSelection(disabled?: boolean|null): void;
|
72
72
|
|
73
73
|
public getSelectedText(): string;
|
74
74
|
|
package/lib/versions.json
CHANGED
@@ -9,8 +9,8 @@
|
|
9
9
|
"tr-grid-checkbox": "1.0.60",
|
10
10
|
"tr-grid-column-fitter": "1.0.39",
|
11
11
|
"tr-grid-column-formatting": "0.9.34",
|
12
|
-
"tr-grid-column-grouping": "1.0.
|
13
|
-
"tr-grid-column-resizing": "1.0.
|
12
|
+
"tr-grid-column-grouping": "1.0.37",
|
13
|
+
"tr-grid-column-resizing": "1.0.28",
|
14
14
|
"tr-grid-column-selection": "1.0.25",
|
15
15
|
"tr-grid-column-stack": "1.0.48",
|
16
16
|
"tr-grid-conditional-coloring": "1.0.57",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"tr-grid-row-dragging": "1.0.24",
|
27
27
|
"tr-grid-row-filtering": "1.0.55",
|
28
28
|
"tr-grid-row-grouping": "1.0.80",
|
29
|
-
"tr-grid-row-selection": "1.0.
|
29
|
+
"tr-grid-row-selection": "1.0.22",
|
30
30
|
"tr-grid-rowcoloring": "1.0.21",
|
31
31
|
"tr-grid-textformatting": "1.0.44",
|
32
32
|
"tr-grid-titlewrap": "1.0.19",
|
package/package.json
CHANGED