@refinitiv-ui/efx-grid 6.0.16 → 6.0.18
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -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
|
|
@@ -24,12 +24,12 @@ declare class ColumnGroupingPlugin extends GridPlugin {
|
|
24
24
|
|
25
25
|
constructor(options?: ColumnGroupingPlugin.Options|null);
|
26
26
|
|
27
|
-
public beforeProcessOption(optionName: string, optionValue: any): any;
|
28
|
-
|
29
27
|
public getName(): string;
|
30
28
|
|
31
29
|
public initialize(host: any, options?: any): void;
|
32
30
|
|
31
|
+
public beforeProcessOption(optionName: string, optionValue: any): any;
|
32
|
+
|
33
33
|
public unload(host: any): void;
|
34
34
|
|
35
35
|
public config(options: any): void;
|
@@ -66,9 +66,9 @@ declare class ColumnGroupingPlugin extends GridPlugin {
|
|
66
66
|
|
67
67
|
public getCellInfo(e: Element|Event|MouseEvent|null): any;
|
68
68
|
|
69
|
-
public moveColumnIntoGroup(
|
69
|
+
public moveColumnIntoGroup(colRef: number|string|null, to: number, groupId: string): void;
|
70
70
|
|
71
|
-
public setColumnParent(
|
71
|
+
public setColumnParent(colRef: number|string|null, groupId: string): void;
|
72
72
|
|
73
73
|
}
|
74
74
|
|
@@ -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};
|
@@ -143,6 +143,8 @@ declare class Grid extends EventDispatcher {
|
|
143
143
|
|
144
144
|
public moveColumn(fromColIndex: number|(number)[]|null, toColIndex: number): boolean;
|
145
145
|
|
146
|
+
public moveColumnById(srcCol: number|string|null, destCol?: (number|string)|null): boolean;
|
147
|
+
|
146
148
|
public hideColumn(colRef: Grid.ColumnReference|null, hidden?: boolean|null): void;
|
147
149
|
|
148
150
|
public hideColumns(colRefs: (Grid.ColumnReference)[]|null, hidden?: boolean|null): void;
|
@@ -195,6 +197,8 @@ declare class Grid extends EventDispatcher {
|
|
195
197
|
|
196
198
|
public setRic(rowRef: Grid.RowReference|null, str: string): void;
|
197
199
|
|
200
|
+
public unlinkChain(rowRef: Grid.RowReference|null): void;
|
201
|
+
|
198
202
|
public setRowContent(rowRef: Grid.RowReference|null, str: string): void;
|
199
203
|
|
200
204
|
public toggleRowExpansion(rid: string|number|null, force?: boolean|null): void;
|
@@ -213,6 +217,8 @@ declare class Grid extends EventDispatcher {
|
|
213
217
|
|
214
218
|
public getColumnDefinition(colIndex: number): ColumnDefinition|null;
|
215
219
|
|
220
|
+
public getColumnDefinitions(): (ColumnDefinition)[];
|
221
|
+
|
216
222
|
public getColumnDefinitionById(colId: string): ColumnDefinition|null;
|
217
223
|
|
218
224
|
public getColumnDefinitionsById(colIds: (string)[]|null): ColumnDefinition|null;
|
@@ -221,7 +227,7 @@ declare class Grid extends EventDispatcher {
|
|
221
227
|
|
222
228
|
public getRowDefinitions(): (RowDefinition)[];
|
223
229
|
|
224
|
-
public getAllRowDefinitions(
|
230
|
+
public getAllRowDefinitions(inclAutoGenerated?: boolean|null): (RowDefinition)[];
|
225
231
|
|
226
232
|
public getRowData(rowIndex: number): any;
|
227
233
|
|
@@ -241,10 +247,14 @@ declare class Grid extends EventDispatcher {
|
|
241
247
|
|
242
248
|
public getColumnId(colIndex: number): string;
|
243
249
|
|
250
|
+
public getColumnIds(): (string)[];
|
251
|
+
|
244
252
|
public getColumnField(colIndex: number): string;
|
245
253
|
|
246
254
|
public getColumnFields(): (string)[];
|
247
255
|
|
256
|
+
public getColumnNames(): (string)[];
|
257
|
+
|
248
258
|
public getAllFields(): (string)[];
|
249
259
|
|
250
260
|
public freezeColumn(colIndex?: number|null, pinnedRightColumns?: number|null): void;
|
@@ -295,5 +305,7 @@ declare class Grid extends EventDispatcher {
|
|
295
305
|
|
296
306
|
declare function borders(gridOptions?: any): any;
|
297
307
|
|
308
|
+
declare function colCount(rowRef: number|string|null): RowDefinition|null;
|
309
|
+
|
298
310
|
export { Grid };
|
299
311
|
export default Grid;
|
@@ -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
|
|