@refinitiv-ui/efx-grid 6.0.16 → 6.0.17
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/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +4 -4
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +271 -141
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +7 -1
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +167 -146
- 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/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 +2 -0
- 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 +4 -4
- package/package.json +1 -1
@@ -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
|
|
@@ -11,7 +11,8 @@ declare namespace ColumnStackPlugin {
|
|
11
11
|
|
12
12
|
type Options = {
|
13
13
|
fields: (string)[]|null,
|
14
|
-
stacks: (ColumnStackPlugin.StackDefinition)[]|null
|
14
|
+
stacks: (ColumnStackPlugin.StackDefinition)[]|null,
|
15
|
+
autoStacking?: boolean|null
|
15
16
|
};
|
16
17
|
|
17
18
|
type ColumnOptions = {
|
@@ -30,6 +31,7 @@ declare namespace ColumnStackPlugin {
|
|
30
31
|
spreading?: boolean|null,
|
31
32
|
collapsed?: boolean|null,
|
32
33
|
children: (string)[]|null,
|
34
|
+
fields: (string)[]|null,
|
33
35
|
name?: string|null,
|
34
36
|
activeColumn?: string|null
|
35
37
|
};
|
@@ -100,6 +102,8 @@ declare class ColumnStackPlugin extends GridPlugin {
|
|
100
102
|
|
101
103
|
public getColumnIndicesByColumnIds(columnId: string|(string)[]|null): (string)[];
|
102
104
|
|
105
|
+
public getColumnIdsByFields(field: string|(string)[]|null): (string)[];
|
106
|
+
|
103
107
|
public addColumnToStack(colRef: number|string|null, stackId: string): void;
|
104
108
|
|
105
109
|
public removeColumnFromStack(colRef: number|string|null): void;
|
@@ -110,6 +114,8 @@ declare class ColumnStackPlugin extends GridPlugin {
|
|
110
114
|
|
111
115
|
public getStackName(stackId: string): string;
|
112
116
|
|
117
|
+
public getActiveColumnField(stackId: string): string;
|
118
|
+
|
113
119
|
}
|
114
120
|
|
115
121
|
export default ColumnStackPlugin;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
2
2
|
import EventDispatcher from "../../../../tr-grid-util/es6/EventDispatcher.js";
|
3
3
|
|
4
|
-
declare class Segment {
|
4
|
+
declare class Segment extends EventDispatcher {
|
5
5
|
|
6
6
|
constructor(rid: string, sharedObj: any);
|
7
7
|
|
@@ -23,7 +23,7 @@ declare class Segment {
|
|
23
23
|
|
24
24
|
public removeChildren(rids: (string)[]|null): boolean;
|
25
25
|
|
26
|
-
public removeAllChildren(
|
26
|
+
public removeAllChildren(): boolean;
|
27
27
|
|
28
28
|
public getChildIds(): (string)[];
|
29
29
|
|
@@ -55,7 +55,7 @@ declare class Segment {
|
|
55
55
|
|
56
56
|
public isCollapsed(): boolean;
|
57
57
|
|
58
|
-
public getCollapsingStates(objMap?: any, parentState?: boolean|null):
|
58
|
+
public getCollapsingStates(objMap?: any, parentState?: boolean|null): boolean;
|
59
59
|
|
60
60
|
public getOrder(): number;
|
61
61
|
|
@@ -2,7 +2,7 @@ import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
|
2
2
|
import EventDispatcher from "../../../../tr-grid-util/es6/EventDispatcher.js";
|
3
3
|
import Segment from "./Segment.js";
|
4
4
|
|
5
|
-
declare class SegmentCollection {
|
5
|
+
declare class SegmentCollection extends EventDispatcher {
|
6
6
|
|
7
7
|
constructor();
|
8
8
|
|
@@ -10,50 +10,51 @@ import { CoralItems } from "../../tr-grid-util/es6/CoralItems.js";
|
|
10
10
|
declare namespace InCellEditingPlugin {
|
11
11
|
|
12
12
|
type Options = {
|
13
|
-
balloonMode?: boolean,
|
14
|
-
editableTitle?: boolean,
|
15
|
-
editableContent?: boolean,
|
16
|
-
autoCommitText?: boolean,
|
17
|
-
dataBinding?: boolean,
|
18
|
-
popupElement?: Element,
|
19
|
-
doubleClick?: boolean,
|
20
|
-
tabToMove?: boolean,
|
21
|
-
contentSource?: boolean,
|
22
|
-
inlineStyling?: boolean,
|
23
|
-
disablingScroll?: boolean,
|
24
|
-
uiBlocking?: boolean,
|
25
|
-
preEditorOpening?: ((...params: any[]) => any),
|
26
|
-
editorOpened?: ((...params: any[]) => any),
|
27
|
-
beforeCommit?: ((...params: any[]) => any),
|
28
|
-
editorClosed?: ((...params: any[]) => any),
|
29
|
-
keyUp?: ((...params: any[]) => any),
|
30
|
-
beforeRowCommit?: ((...params: any[]) => any),
|
31
|
-
rowEditorClosed?: ((...params: any[]) => any),
|
32
|
-
autoSuggest?: Element,
|
33
|
-
closingOnScroll?: boolean
|
13
|
+
balloonMode?: boolean|null,
|
14
|
+
editableTitle?: boolean|null,
|
15
|
+
editableContent?: boolean|null,
|
16
|
+
autoCommitText?: boolean|null,
|
17
|
+
dataBinding?: boolean|null,
|
18
|
+
popupElement?: Element|null,
|
19
|
+
doubleClick?: boolean|null,
|
20
|
+
tabToMove?: boolean|null,
|
21
|
+
contentSource?: boolean|null,
|
22
|
+
inlineStyling?: boolean|null,
|
23
|
+
disablingScroll?: boolean|null,
|
24
|
+
uiBlocking?: boolean|null,
|
25
|
+
preEditorOpening?: ((...params: any[]) => any)|null,
|
26
|
+
editorOpened?: ((...params: any[]) => any)|null,
|
27
|
+
beforeCommit?: ((...params: any[]) => any)|null,
|
28
|
+
editorClosed?: ((...params: any[]) => any)|null,
|
29
|
+
keyUp?: ((...params: any[]) => any)|null,
|
30
|
+
beforeRowCommit?: ((...params: any[]) => any)|null,
|
31
|
+
rowEditorClosed?: ((...params: any[]) => any)|null,
|
32
|
+
autoSuggest?: Element|null,
|
33
|
+
closingOnScroll?: boolean|null
|
34
34
|
};
|
35
35
|
|
36
36
|
type Cache = {
|
37
|
-
editor: Element,
|
38
|
-
balloonPopup: Element,
|
39
|
-
inputElement: Element
|
37
|
+
editor: Element|null,
|
38
|
+
balloonPopup: Element|null,
|
39
|
+
inputElement: Element|null
|
40
40
|
};
|
41
41
|
|
42
42
|
type EditorOptions = {
|
43
|
-
type?: string,
|
44
|
-
entries?: any[]
|
43
|
+
type?: string|null,
|
44
|
+
entries?: any[]|null,
|
45
|
+
attributes?: any
|
45
46
|
};
|
46
47
|
|
47
48
|
type ColumnOptions = {
|
48
|
-
editableContent?: boolean,
|
49
|
-
inCellEditing?: InCellEditingPlugin.EditorOptions
|
49
|
+
editableContent?: boolean|null,
|
50
|
+
inCellEditing?: InCellEditingPlugin.EditorOptions|null
|
50
51
|
};
|
51
52
|
|
52
53
|
}
|
53
54
|
|
54
55
|
declare class InCellEditingPlugin extends GridPlugin {
|
55
56
|
|
56
|
-
constructor(options?: InCellEditingPlugin.Options);
|
57
|
+
constructor(options?: InCellEditingPlugin.Options|null);
|
57
58
|
|
58
59
|
public initialize(host: any, options: any): void;
|
59
60
|
|
@@ -65,23 +66,23 @@ declare class InCellEditingPlugin extends GridPlugin {
|
|
65
66
|
|
66
67
|
public openEditor(colIndex: number, rowIndex: number, sectionRef?: any, grid?: any): void;
|
67
68
|
|
68
|
-
public closeCellEditor(opt_forceCommit?: boolean): void;
|
69
|
+
public closeCellEditor(opt_forceCommit?: boolean|null): void;
|
69
70
|
|
70
|
-
public enableBalloonMode(opt_enabled?: boolean): void;
|
71
|
+
public enableBalloonMode(opt_enabled?: boolean|null): void;
|
71
72
|
|
72
|
-
public enableTitleEditing(opt_enabled?: boolean): void;
|
73
|
+
public enableTitleEditing(opt_enabled?: boolean|null): void;
|
73
74
|
|
74
|
-
public disableTitleEditing(opt_disabled?: boolean): void;
|
75
|
+
public disableTitleEditing(opt_disabled?: boolean|null): void;
|
75
76
|
|
76
|
-
public disableCellEditing(cell: any, opt_disabled?: boolean): void;
|
77
|
+
public disableCellEditing(cell: any, opt_disabled?: boolean|null): void;
|
77
78
|
|
78
|
-
public disableDataBinding(opt_disabled?: boolean): void;
|
79
|
+
public disableDataBinding(opt_disabled?: boolean|null): void;
|
79
80
|
|
80
|
-
public disableDblClick(opt_disabled?: boolean): void;
|
81
|
+
public disableDblClick(opt_disabled?: boolean|null): void;
|
81
82
|
|
82
83
|
public isEditing(): boolean;
|
83
84
|
|
84
|
-
public getTextBox(columnIndex?: number, grid?: any): Element|null;
|
85
|
+
public getTextBox(columnIndex?: number|null, grid?: any): Element|null;
|
85
86
|
|
86
87
|
public getInitialText(): string;
|
87
88
|
|
@@ -97,17 +98,17 @@ declare class InCellEditingPlugin extends GridPlugin {
|
|
97
98
|
|
98
99
|
public getInputElementPosition(): any;
|
99
100
|
|
100
|
-
public enableAutoCommitText(opt_enable?: boolean): void;
|
101
|
+
public enableAutoCommitText(opt_enable?: boolean|null): void;
|
101
102
|
|
102
103
|
public isColumnEditable(colIndex: number): boolean;
|
103
104
|
|
104
105
|
public openRowEditor(rowIndex: number, grid?: any): void;
|
105
106
|
|
106
|
-
public closeRowEditor(isCommit?: boolean): void;
|
107
|
+
public closeRowEditor(isCommit?: boolean|null): void;
|
107
108
|
|
108
|
-
public toggleRowEditor(rowIndex: number, isCommit?: boolean, grid?: any): void;
|
109
|
+
public toggleRowEditor(rowIndex: number, isCommit?: boolean|null, grid?: any): void;
|
109
110
|
|
110
|
-
public setPopupElement(elm: Element): void;
|
111
|
+
public setPopupElement(elm: Element|null): void;
|
111
112
|
|
112
113
|
public setText(content: any): void;
|
113
114
|
|
@@ -119,13 +120,13 @@ declare class InCellEditingPlugin extends GridPlugin {
|
|
119
120
|
|
120
121
|
public appendText(word: string): void;
|
121
122
|
|
122
|
-
public commitText(word?: string): void;
|
123
|
+
public commitText(word?: string|null): void;
|
123
124
|
|
124
125
|
public getBalloonPopup(): Popup|null|null;
|
125
126
|
|
126
127
|
public getAutoSuggest(): Element|null;
|
127
128
|
|
128
|
-
public setDisablingScroll(disabled?: boolean): boolean;
|
129
|
+
public setDisablingScroll(disabled?: boolean|null): boolean;
|
129
130
|
|
130
131
|
public requestShowEditorPopup(): void;
|
131
132
|
|
@@ -55,6 +55,8 @@ declare class ColumnDefinition {
|
|
55
55
|
|
56
56
|
public dispose(): void;
|
57
57
|
|
58
|
+
public _initializeTimeSeriesChild(columnOption?: ColumnDefinition.Options|string|null): void;
|
59
|
+
|
58
60
|
public initialize(columnOption?: ColumnDefinition.Options|string|null): void;
|
59
61
|
|
60
62
|
public getId(): string;
|
@@ -89,6 +91,8 @@ declare class ColumnDefinition {
|
|
89
91
|
|
90
92
|
public isRealTimeField(): boolean;
|
91
93
|
|
94
|
+
public isTimeSeriesField(): boolean;
|
95
|
+
|
92
96
|
public isFormulaField(): boolean;
|
93
97
|
|
94
98
|
public static isFormulaField(field: string): boolean;
|
@@ -129,6 +133,10 @@ declare class ColumnDefinition {
|
|
129
133
|
|
130
134
|
public setRenderer(func: ((...params: any[]) => any)|null): void;
|
131
135
|
|
136
|
+
public getParent(): ColumnDefinition|null;
|
137
|
+
|
138
|
+
public getChildren(): (ColumnDefinition)[]|null;
|
139
|
+
|
132
140
|
public addRenderer(func: ((...params: any[]) => any)|null): void;
|
133
141
|
|
134
142
|
public activateRenderer(id?: string|null, func?: ((...params: any[]) => any)|null): boolean;
|
@@ -139,6 +147,8 @@ declare class ColumnDefinition {
|
|
139
147
|
|
140
148
|
public isRowSorting(): boolean;
|
141
149
|
|
150
|
+
public isAutoGenerated(): boolean;
|
151
|
+
|
142
152
|
public setName(str: string): void;
|
143
153
|
|
144
154
|
public getUserModel(): any;
|
@@ -8,12 +8,18 @@ declare namespace FieldDefinition {
|
|
8
8
|
|
9
9
|
function get(field: string): any;
|
10
10
|
|
11
|
+
function getTimeSeriesChildren(field: string): any;
|
12
|
+
|
13
|
+
function addTimeSeriesChild(tsDef: string, childDef: any): void;
|
14
|
+
|
11
15
|
function remove(field: string): void;
|
12
16
|
|
13
17
|
function setSynapseConfig(config: Grid.SynapseConfig|null): void;
|
14
18
|
|
15
19
|
function setFieldCaching(caching: boolean): void;
|
16
20
|
|
21
|
+
function isTimeSeriesField(field: string): boolean;
|
22
|
+
|
17
23
|
}
|
18
24
|
|
19
25
|
export {FieldDefinition};
|
@@ -195,6 +195,8 @@ declare class Grid extends EventDispatcher {
|
|
195
195
|
|
196
196
|
public setRic(rowRef: Grid.RowReference|null, str: string): void;
|
197
197
|
|
198
|
+
public unlinkChain(rowRef: Grid.RowReference|null): void;
|
199
|
+
|
198
200
|
public setRowContent(rowRef: Grid.RowReference|null, str: string): void;
|
199
201
|
|
200
202
|
public toggleRowExpansion(rid: string|number|null, force?: boolean|null): void;
|
@@ -91,6 +91,10 @@ declare class RowDefinition {
|
|
91
91
|
|
92
92
|
public static deregisterFromView(rowIds: (string)[]|null, rowDef: RowDefinition|null): (string)[]|null;
|
93
93
|
|
94
|
+
public _toRealTimeRow(): void;
|
95
|
+
|
96
|
+
public unlinkChain(): void;
|
97
|
+
|
94
98
|
public collapseChain(): boolean;
|
95
99
|
|
96
100
|
public expandChain(): boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import Grid from "./Grid.js";
|
2
2
|
import {Ext} from '../../../tr-grid-util/es6/Ext.js';
|
3
3
|
import {EventDispatcher} from '../../../tr-grid-util/es6/EventDispatcher.js';
|
4
|
+
import {FieldDefinition} from './FieldDefinition.js';
|
4
5
|
|
5
6
|
declare class SnapshotFiller extends EventDispatcher {
|
6
7
|
|
@@ -5,20 +5,22 @@ import {injectCss, prettifyCss} from "../../tr-grid-util/es6/Util.js";
|
|
5
5
|
declare namespace RowColoringPlugin {
|
6
6
|
|
7
7
|
type Options = {
|
8
|
-
bgColoring?: boolean,
|
9
|
-
textColoring?: boolean,
|
10
|
-
bgColorField?: string,
|
11
|
-
textColorField?: string,
|
12
|
-
cssField?: string,
|
8
|
+
bgColoring?: boolean|null,
|
9
|
+
textColoring?: boolean|null,
|
10
|
+
bgColorField?: string|null,
|
11
|
+
textColorField?: string|null,
|
12
|
+
cssField?: string|null,
|
13
|
+
cssRangeField?: string|null,
|
14
|
+
altCssField?: string|null,
|
13
15
|
predefinedColors?: any,
|
14
|
-
predefinedColoring?: boolean
|
16
|
+
predefinedColoring?: boolean|null
|
15
17
|
};
|
16
18
|
|
17
19
|
}
|
18
20
|
|
19
21
|
declare class RowColoringPlugin extends GridPlugin {
|
20
22
|
|
21
|
-
constructor(options?: RowColoringPlugin.Options);
|
23
|
+
constructor(options?: RowColoringPlugin.Options|null);
|
22
24
|
|
23
25
|
public getName(): string;
|
24
26
|
|
@@ -30,25 +32,25 @@ declare class RowColoringPlugin extends GridPlugin {
|
|
30
32
|
|
31
33
|
public getConfigObject(gridOptions?: any): any;
|
32
34
|
|
33
|
-
public setRowColor(rowRef: string|number, bgColor?: (string|null), txtColor?: (string|null)): void;
|
35
|
+
public setRowColor(rowRef: string|number|null, bgColor?: (string|null)|null, txtColor?: (string|null)|null): void;
|
34
36
|
|
35
|
-
public getRowColor(rowRef: string|number): string;
|
37
|
+
public getRowColor(rowRef: string|number|null): string;
|
36
38
|
|
37
|
-
public removeRowColor(rowRef: string|number): void;
|
39
|
+
public removeRowColor(rowRef: string|number|null): void;
|
38
40
|
|
39
|
-
public toggleRowColor(rowRef: string|number, bgColor?: (string|null), txtColor?: (string|null), state?: boolean): boolean;
|
41
|
+
public toggleRowColor(rowRef: string|number|null, bgColor?: (string|null)|null, txtColor?: (string|null)|null, state?: boolean|null): boolean;
|
40
42
|
|
41
|
-
public setRowPredefinedColor(rowRef: string|number, color?: (string|null)): void;
|
43
|
+
public setRowPredefinedColor(rowRef: string|number|null, color?: (string|null)|null, range?: (number)[]|null, altColor?: (string|null)|null): void;
|
42
44
|
|
43
45
|
public getPredefinedColors(): any;
|
44
46
|
|
45
47
|
public setPredefinedColors(predefinedColors: any): void;
|
46
48
|
|
47
|
-
public disableTextColoring(opt_bool?: boolean): void;
|
49
|
+
public disableTextColoring(opt_bool?: boolean|null): void;
|
48
50
|
|
49
|
-
public disableBgColoring(opt_bool?: boolean): void;
|
51
|
+
public disableBgColoring(opt_bool?: boolean|null): void;
|
50
52
|
|
51
|
-
public disableRowColoring(disabled?: boolean): void;
|
53
|
+
public disableRowColoring(disabled?: boolean|null): void;
|
52
54
|
|
53
55
|
public static getContrastColor(hexColor: string): string;
|
54
56
|
|
@@ -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 };
|