@refinitiv-ui/efx-grid 6.0.16 → 6.0.18
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 +177 -64
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.js +2 -1
- package/lib/rt-grid/es6/Grid.d.ts +12 -2
- package/lib/rt-grid/es6/Grid.js +152 -54
- package/lib/rt-grid/es6/RowDefinition.js +4 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +4 -4
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +344 -185
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +7 -1
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +164 -147
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +27 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +44 -43
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +202 -497
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +40 -40
- package/lib/types/es6/ColumnGrouping.d.ts +4 -4
- package/lib/types/es6/ColumnStack.d.ts +7 -1
- package/lib/types/es6/Core/data/Segment.d.ts +3 -3
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +1 -1
- package/lib/types/es6/InCellEditing.d.ts +44 -43
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +10 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +6 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +13 -1
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +4 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +1 -0
- package/lib/types/es6/RowColoring.d.ts +17 -15
- package/lib/types/es6/RowFiltering.d.ts +30 -29
- package/lib/types/es6/RowGrouping.d.ts +40 -40
- package/lib/versions.json +5 -5
- package/package.json +1 -1
@@ -12,33 +12,34 @@ declare namespace RowFilteringPlugin {
|
|
12
12
|
|
13
13
|
type FilterExpression = {
|
14
14
|
field: string,
|
15
|
-
expression: RowFilteringPlugin.Expression,
|
15
|
+
expression: RowFilteringPlugin.Expression|null,
|
16
16
|
context: any
|
17
17
|
};
|
18
18
|
|
19
19
|
type ColumnOptions = {
|
20
|
-
filter?: RowFilteringPlugin.Expression,
|
20
|
+
filter?: RowFilteringPlugin.Expression|null,
|
21
21
|
filterState?: any,
|
22
|
-
filterIcon?: boolean
|
22
|
+
filterIcon?: boolean|null
|
23
23
|
};
|
24
24
|
|
25
25
|
type FilterDialogOptions = {
|
26
|
-
sortUI?: boolean,
|
27
|
-
filterUI?: boolean,
|
28
|
-
fieldDataType?: string,
|
29
|
-
lang?: string,
|
30
|
-
rawDataAccessor?: ((...params: any[]) => any),
|
31
|
-
formattedDataAccessor?: ((...params: any[]) => any),
|
32
|
-
sortLogic?: ((...params: any[]) => any)
|
26
|
+
sortUI?: boolean|null,
|
27
|
+
filterUI?: boolean|null,
|
28
|
+
fieldDataType?: string|null,
|
29
|
+
lang?: string|null,
|
30
|
+
rawDataAccessor?: ((...params: any[]) => any)|null,
|
31
|
+
formattedDataAccessor?: ((...params: any[]) => any)|null,
|
32
|
+
sortLogic?: ((...params: any[]) => any)|null
|
33
33
|
};
|
34
34
|
|
35
35
|
type Options = {
|
36
|
-
disabledUI?: boolean,
|
37
|
-
iconActivation?: string,
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
36
|
+
disabledUI?: boolean|null,
|
37
|
+
iconActivation?: string|null,
|
38
|
+
dialogOptions?: RowFilteringPlugin.FilterDialogOptions|null,
|
39
|
+
click?: ((...params: any[]) => any)|null,
|
40
|
+
clicked?: ((...params: any[]) => any)|null,
|
41
|
+
iconCreated?: ((...params: any[]) => any)|null,
|
42
|
+
filterChanged?: ((...params: any[]) => any)|null
|
42
43
|
};
|
43
44
|
|
44
45
|
}
|
@@ -57,17 +58,17 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
57
58
|
|
58
59
|
public getConfigObject(gridOptions?: any): any;
|
59
60
|
|
60
|
-
public disable(opt_disabled?: boolean, opt_id?: string): void;
|
61
|
+
public disable(opt_disabled?: boolean|null, opt_id?: string|null): void;
|
61
62
|
|
62
|
-
public addFilter(exp: RowFilteringPlugin.Expression, funcName?: string, ctx?: any): string;
|
63
|
+
public addFilter(exp: RowFilteringPlugin.Expression|null, funcName?: string|null, ctx?: any): string;
|
63
64
|
|
64
|
-
public addGridFilter(exp: RowFilteringPlugin.Expression, ctx?: any): string;
|
65
|
+
public addGridFilter(exp: RowFilteringPlugin.Expression|null, ctx?: any): string;
|
65
66
|
|
66
|
-
public addColumnFilter(colIndex: number, exp: RowFilteringPlugin.Expression, ctx?: (any|string)): boolean;
|
67
|
+
public addColumnFilter(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
|
67
68
|
|
68
|
-
public setColumnFilter(colIndex: number, exp: RowFilteringPlugin.Expression, ctx?: (any|string)): boolean;
|
69
|
+
public setColumnFilter(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
|
69
70
|
|
70
|
-
public removeFilter(funcRef: ((...params: any[]) => any)|string): boolean;
|
71
|
+
public removeFilter(funcRef: ((...params: any[]) => any)|string|null): boolean;
|
71
72
|
|
72
73
|
public removeColumnFilters(colIndex: number): boolean;
|
73
74
|
|
@@ -77,11 +78,11 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
77
78
|
|
78
79
|
public removeAllFilters(): void;
|
79
80
|
|
80
|
-
public setOverridingFilter(func: ((...params: any[]) => any)): void;
|
81
|
+
public setOverridingFilter(func: ((...params: any[]) => any)|null): void;
|
81
82
|
|
82
|
-
public setPreTransform(func: ((...params: any[]) => any)): void;
|
83
|
+
public setPreTransform(func: ((...params: any[]) => any)|null): void;
|
83
84
|
|
84
|
-
public setRowTransform(func: ((...params: any[]) => any)): void;
|
85
|
+
public setRowTransform(func: ((...params: any[]) => any)|null): void;
|
85
86
|
|
86
87
|
public getFilters(): (((...params: any[]) => any))[];
|
87
88
|
|
@@ -89,7 +90,7 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
89
90
|
|
90
91
|
public getFilterExpressions(): (RowFilteringPlugin.FilterExpression)[]|null;
|
91
92
|
|
92
|
-
public setFilterExpressions(filterExps: (RowFilteringPlugin.FilterExpression)[]): void;
|
93
|
+
public setFilterExpressions(filterExps: (RowFilteringPlugin.FilterExpression)[]|null): void;
|
93
94
|
|
94
95
|
public hasColumnFilter(): boolean;
|
95
96
|
|
@@ -109,13 +110,13 @@ declare class RowFilteringPlugin extends GridPlugin {
|
|
109
110
|
|
110
111
|
public getColumnFilterStates(): any[];
|
111
112
|
|
112
|
-
public getUniqueValues(field: string, formatter?: ((...params: any[]) => any), fmtField?: string, rawDataAccessor?: ((...params: any[]) => any), formattedDataAccessor?: ((...params: any[]) => any)): any;
|
113
|
+
public getUniqueValues(field: string, formatter?: ((...params: any[]) => any)|null, fmtField?: string|null, rawDataAccessor?: ((...params: any[]) => any)|null, formattedDataAccessor?: ((...params: any[]) => any)|null): any;
|
113
114
|
|
114
|
-
public openDialog(colIndex: number,
|
115
|
+
public openDialog(colIndex: number, runtimeDialogOptions?: RowFilteringPlugin.FilterDialogOptions|null): void;
|
115
116
|
|
116
117
|
}
|
117
118
|
|
118
|
-
declare function field(colIndex: number, exp: RowFilteringPlugin.Expression, ctx?: (any|string)): boolean;
|
119
|
+
declare function field(colIndex: number, exp: RowFilteringPlugin.Expression|null, ctx?: (any|string)|null): boolean;
|
119
120
|
|
120
121
|
export default RowFilteringPlugin;
|
121
122
|
export { RowFilteringPlugin, RowFilteringPlugin as RowFiltering, RowFilteringPlugin as RowFilteringExtension };
|
@@ -10,47 +10,47 @@ declare namespace RowGroupingPlugin {
|
|
10
10
|
type GroupSortLogic = (grpValA: any, grpValB: any, grpDataViewA?: any, grpDataViewB?: any) => number;
|
11
11
|
|
12
12
|
type Options = {
|
13
|
-
autoGroupRemoval?: boolean,
|
14
|
-
autoGroupHiding?: boolean,
|
15
|
-
predefinedGroups?: (any[]|(any[])[]),
|
16
|
-
groupBy?: RowGroupingPlugin.GroupCriteria,
|
17
|
-
groupCriteria?: RowGroupingPlugin.GroupCriteria,
|
18
|
-
displayColumn?: number,
|
19
|
-
fixedDisplayColumn?: boolean,
|
20
|
-
noCollapsible?: boolean,
|
21
|
-
clickableCell?: boolean,
|
22
|
-
hiddenArrow?: (boolean|number|(number)[]),
|
23
|
-
contentAsHeader?: boolean,
|
24
|
-
headerSpanning?: boolean,
|
25
|
-
footerSpanning?: boolean,
|
26
|
-
groupSortLogic?: RowGroupingPlugin.GroupSortLogic,
|
27
|
-
autoGroupSorting?: boolean,
|
28
|
-
indentSize?: (boolean|number|(number)[]),
|
29
|
-
colorTag?: boolean,
|
13
|
+
autoGroupRemoval?: boolean|null,
|
14
|
+
autoGroupHiding?: boolean|null,
|
15
|
+
predefinedGroups?: (any[]|(any[])[])|null,
|
16
|
+
groupBy?: RowGroupingPlugin.GroupCriteria|null,
|
17
|
+
groupCriteria?: RowGroupingPlugin.GroupCriteria|null,
|
18
|
+
displayColumn?: number|null,
|
19
|
+
fixedDisplayColumn?: boolean|null,
|
20
|
+
noCollapsible?: boolean|null,
|
21
|
+
clickableCell?: boolean|null,
|
22
|
+
hiddenArrow?: (boolean|number|(number)[])|null,
|
23
|
+
contentAsHeader?: boolean|null,
|
24
|
+
headerSpanning?: boolean|null,
|
25
|
+
footerSpanning?: boolean|null,
|
26
|
+
groupSortLogic?: RowGroupingPlugin.GroupSortLogic|null,
|
27
|
+
autoGroupSorting?: boolean|null,
|
28
|
+
indentSize?: (boolean|number|(number)[])|null,
|
29
|
+
colorTag?: boolean|null,
|
30
30
|
predefinedColors?: any,
|
31
31
|
groupColors?: any,
|
32
|
-
clicked?: ((...params: any[]) => any),
|
33
|
-
groupAdded?: ((...params: any[]) => any),
|
34
|
-
beforeGroupAdded?: ((...params: any[]) => any),
|
35
|
-
groupHeaderBinding?: ((...params: any[]) => any),
|
36
|
-
groupFooterBinding?: ((...params: any[]) => any),
|
37
|
-
headerBinding?: ((...params: any[]) => any),
|
38
|
-
footerBinding?: ((...params: any[]) => any),
|
39
|
-
nonGroupBinding?: ((...params: any[]) => any)
|
32
|
+
clicked?: ((...params: any[]) => any)|null,
|
33
|
+
groupAdded?: ((...params: any[]) => any)|null,
|
34
|
+
beforeGroupAdded?: ((...params: any[]) => any)|null,
|
35
|
+
groupHeaderBinding?: ((...params: any[]) => any)|null,
|
36
|
+
groupFooterBinding?: ((...params: any[]) => any)|null,
|
37
|
+
headerBinding?: ((...params: any[]) => any)|null,
|
38
|
+
footerBinding?: ((...params: any[]) => any)|null,
|
39
|
+
nonGroupBinding?: ((...params: any[]) => any)|null
|
40
40
|
};
|
41
41
|
|
42
|
-
type GroupCriteria = string|(string|((...params: any[]) => any))[];
|
42
|
+
type GroupCriteria = string|(string|((...params: any[]) => any))[]|null;
|
43
43
|
|
44
44
|
type GroupingState = {
|
45
45
|
collapsed: boolean,
|
46
|
-
groupId?: (number|string)
|
46
|
+
groupId?: (number|string)|null
|
47
47
|
};
|
48
48
|
|
49
49
|
}
|
50
50
|
|
51
51
|
declare class RowGroupingPlugin extends GridPlugin {
|
52
52
|
|
53
|
-
constructor(options?: RowGroupingPlugin.Options);
|
53
|
+
constructor(options?: RowGroupingPlugin.Options|null);
|
54
54
|
|
55
55
|
public beforeProcessOption(optionName: string, optionVal: any): any;
|
56
56
|
|
@@ -70,17 +70,17 @@ declare class RowGroupingPlugin extends GridPlugin {
|
|
70
70
|
|
71
71
|
public hasGroupingCriteria(): boolean;
|
72
72
|
|
73
|
-
public setGroupingCriteria(criteria: RowGroupingPlugin.GroupCriteria): void;
|
73
|
+
public setGroupingCriteria(criteria: RowGroupingPlugin.GroupCriteria|null): void;
|
74
74
|
|
75
|
-
public groupBy(criteria: RowGroupingPlugin.GroupCriteria): void;
|
75
|
+
public groupBy(criteria: RowGroupingPlugin.GroupCriteria|null): void;
|
76
76
|
|
77
77
|
public getDataView(): any;
|
78
78
|
|
79
|
-
public setGroupSortingLogic(sortFunction: RowGroupingPlugin.GroupSortLogic): void;
|
79
|
+
public setGroupSortingLogic(sortFunction: RowGroupingPlugin.GroupSortLogic|null): void;
|
80
80
|
|
81
81
|
public getGroupSortingLogic(): ((...params: any[]) => any)|null;
|
82
82
|
|
83
|
-
public setPredefinedGroups(predefinedGroups: any[]|(any[])[]): void;
|
83
|
+
public setPredefinedGroups(predefinedGroups: any[]|(any[])[]|null): void;
|
84
84
|
|
85
85
|
public setPredefinedColors(predefinedColors: any): void;
|
86
86
|
|
@@ -88,23 +88,23 @@ declare class RowGroupingPlugin extends GridPlugin {
|
|
88
88
|
|
89
89
|
public updateHeaders(): void;
|
90
90
|
|
91
|
-
public expandAll(opt_expanded?: boolean): void;
|
91
|
+
public expandAll(opt_expanded?: boolean|null): void;
|
92
92
|
|
93
|
-
public collapseAll(opt_collapsed?: boolean): void;
|
93
|
+
public collapseAll(opt_collapsed?: boolean|null): void;
|
94
94
|
|
95
|
-
public expand(groupRowId: string, opt_expanded?: boolean): void;
|
95
|
+
public expand(groupRowId: string, opt_expanded?: boolean|null): void;
|
96
96
|
|
97
|
-
public collapse(groupRowId: string, opt_collapsed?: boolean): void;
|
97
|
+
public collapse(groupRowId: string, opt_collapsed?: boolean|null): void;
|
98
98
|
|
99
|
-
public disableClicking(opt_disabled?: boolean): void;
|
99
|
+
public disableClicking(opt_disabled?: boolean|null): void;
|
100
100
|
|
101
101
|
public getGroupingStates(): (RowGroupingPlugin.GroupingState)[]|null;
|
102
102
|
|
103
|
-
public setGroupingStates(states: (RowGroupingPlugin.GroupingState)[]|string): void;
|
103
|
+
public setGroupingStates(states: (RowGroupingPlugin.GroupingState)[]|string|null): void;
|
104
104
|
|
105
|
-
public enableFixedDisplayColumn(opt_enabled?: boolean): void;
|
105
|
+
public enableFixedDisplayColumn(opt_enabled?: boolean|null): void;
|
106
106
|
|
107
|
-
public enableFooterRow(opt_num?: (boolean|number)): void;
|
107
|
+
public enableFooterRow(opt_num?: (boolean|number)|null): void;
|
108
108
|
|
109
109
|
}
|
110
110
|
|
package/lib/versions.json
CHANGED
@@ -9,23 +9,23 @@
|
|
9
9
|
"tr-grid-checkbox": "1.0.59",
|
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.
|
12
|
+
"tr-grid-column-grouping": "1.0.33",
|
13
13
|
"tr-grid-column-resizing": "1.0.26",
|
14
14
|
"tr-grid-column-selection": "1.0.25",
|
15
|
-
"tr-grid-column-stack": "1.0.
|
15
|
+
"tr-grid-column-stack": "1.0.48",
|
16
16
|
"tr-grid-conditional-coloring": "1.0.57",
|
17
17
|
"tr-grid-content-wrap": "1.0.19",
|
18
18
|
"tr-grid-contextmenu": "1.0.38",
|
19
|
-
"tr-grid-filter-input": "0.9.
|
19
|
+
"tr-grid-filter-input": "0.9.29",
|
20
20
|
"tr-grid-heat-map": "1.0.28",
|
21
|
-
"tr-grid-in-cell-editing": "1.0.
|
21
|
+
"tr-grid-in-cell-editing": "1.0.73",
|
22
22
|
"tr-grid-pagination": "1.0.23",
|
23
23
|
"tr-grid-percent-bar": "1.0.22",
|
24
24
|
"tr-grid-printer": "1.0.16",
|
25
25
|
"tr-grid-range-bar": "1.0.9",
|
26
26
|
"tr-grid-row-dragging": "1.0.23",
|
27
27
|
"tr-grid-row-filtering": "1.0.55",
|
28
|
-
"tr-grid-row-grouping": "1.0.
|
28
|
+
"tr-grid-row-grouping": "1.0.79",
|
29
29
|
"tr-grid-row-selection": "1.0.21",
|
30
30
|
"tr-grid-rowcoloring": "1.0.21",
|
31
31
|
"tr-grid-textformatting": "1.0.44",
|
package/package.json
CHANGED