@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.
@@ -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
- this._activeGrid.focus();
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): boolean;
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): any;
45
+ public removeGroup(groupId: string): ColumnGroupingPlugin.GroupDefinition|null;
46
46
 
47
- public setGroupDefinitions(groupDefs: ColumnGroupingPlugin.GroupDefinitions|null): void;
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 getGroupDefinition(groupId: string): ColumnGroupingPlugin.GroupDefinition|null;
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.35",
13
- "tr-grid-column-resizing": "1.0.26",
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.21",
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
@@ -23,6 +23,9 @@
23
23
  ],
24
24
  "grid": [
25
25
  "lib/grid/lib/efx-grid.d.ts"
26
+ ],
27
+ "*": [
28
+ "lib/types/index.d.ts"
26
29
  ]
27
30
  }
28
31
  },
@@ -58,5 +61,5 @@
58
61
  "publishConfig": {
59
62
  "access": "public"
60
63
  },
61
- "version": "6.0.20"
64
+ "version": "6.0.21"
62
65
  }