@refinitiv-ui/efx-grid 6.0.0 → 6.0.3
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/column-format-dialog/lib/column-format-dialog.d.ts +13 -1
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +15 -2
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +226 -23
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +1 -1
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/core/dist/core.css +1 -1
- package/lib/core/dist/core.js +10158 -7908
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataTable.js +32 -10
- package/lib/core/es6/data/DataView.d.ts +16 -7
- package/lib/core/es6/data/DataView.js +172 -49
- package/lib/core/es6/data/Segment.d.ts +2 -0
- package/lib/core/es6/data/Segment.js +7 -0
- package/lib/core/es6/data/WrappedView.d.ts +289 -0
- package/lib/core/es6/data/WrappedView.js +1319 -0
- package/lib/core/es6/grid/Core.d.ts +13 -0
- package/lib/core/es6/grid/Core.js +406 -160
- package/lib/core/es6/grid/ILayoutGrid.d.ts +8 -0
- package/lib/core/es6/grid/ILayoutGrid.js +45 -2
- package/lib/core/es6/grid/LayoutGrid.d.ts +10 -1
- package/lib/core/es6/grid/LayoutGrid.js +257 -82
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +10 -1
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +316 -24
- package/lib/core/es6/grid/components/Column.js +8 -2
- package/lib/core/es6/grid/components/HScrollbar.d.ts +4 -0
- package/lib/core/es6/grid/components/HScrollbar.js +20 -4
- package/lib/core/es6/grid/util/TrackLayout.d.ts +1 -1
- package/lib/core/es6/grid/util/TrackLayout.js +2 -3
- package/lib/core/es6/tr-grid-theme.js +1 -1
- package/lib/filter-dialog/lib/checkbox-list.d.ts +13 -1
- package/lib/filter-dialog/lib/filter-dialog.d.ts +13 -1
- package/lib/filter-dialog/lib/filter-dialog.js +24 -9
- package/lib/grid/lib/efx-grid.d.ts +27 -8
- package/lib/grid/lib/efx-grid.js +114 -115
- package/lib/grid/themes/base.less +5 -3
- package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
- package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/grid/themes/halo/efx-grid.less +69 -32
- package/lib/grid/themes/halo/light/efx-grid.js +1 -1
- package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/grid/themes/solar/charcoal/efx-grid.js +1 -1
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/index.d.ts +56 -56
- package/lib/index.js +56 -56
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +1 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +43 -12
- package/lib/rt-grid/dist/rt-grid.js +10293 -7865
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +4 -1
- package/lib/rt-grid/es6/ColumnDefinition.js +3 -0
- package/lib/rt-grid/es6/Grid.d.ts +14 -7
- package/lib/rt-grid/es6/Grid.js +244 -75
- package/lib/rt-grid/es6/RowDefinition.d.ts +4 -1
- package/lib/rt-grid/es6/RowDefinition.js +52 -2
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +1 -1
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +53 -40
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +4 -1
- package/lib/tr-grid-checkbox/es6/Checkbox.js +41 -14
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +10 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +5 -1
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +226 -4
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +3 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +6 -1
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +4 -2
- package/lib/tr-grid-filter-input/es6/FilterInput.js +73 -10
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +1 -1
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +13 -1
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +1 -3
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +165 -70
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +88 -33
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +41 -31
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +13 -9
- package/lib/tr-grid-row-selection/es6/RowSelection.js +220 -29
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +2 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +36 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +8 -8
- package/lib/tr-grid-util/es6/Conflator.d.ts +2 -2
- package/lib/tr-grid-util/es6/CoralItems.d.ts +1 -1
- package/lib/tr-grid-util/es6/DateTime.d.ts +4 -4
- package/lib/tr-grid-util/es6/Delay.d.ts +1 -1
- package/lib/tr-grid-util/es6/Dom.d.ts +4 -4
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +1 -1
- package/lib/tr-grid-util/es6/ElfDate.d.ts +3 -3
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -4
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +1 -1
- package/lib/tr-grid-util/es6/ExpanderIcon.js +2 -2
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +1 -1
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +5 -5
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +3 -3
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +1 -1
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +10 -2
- package/lib/tr-grid-util/es6/MultiTableManager.js +164 -57
- package/lib/tr-grid-util/es6/PercentBar.d.ts +1 -1
- package/lib/tr-grid-util/es6/Perf.d.ts +4 -4
- package/lib/tr-grid-util/es6/Popup.d.ts +2 -2
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +1 -1
- package/lib/tr-grid-util/es6/RowPainter.d.ts +3 -0
- package/lib/tr-grid-util/es6/RowPainter.js +82 -20
- package/lib/tr-grid-util/es6/SubTable.d.ts +9 -9
- package/lib/tr-grid-util/es6/Table.d.ts +13 -13
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +3 -3
- package/lib/tr-grid-util/es6/TickCodes.d.ts +2 -2
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +1 -1
- package/lib/tr-grid-util/es6/Util.d.ts +6 -6
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +5 -5
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +3 -3
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +2 -2
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +4 -4
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +4 -4
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +11 -11
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +7 -7
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +1 -1
- package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
- package/lib/types/es6/CellSelection.d.ts +1 -1
- package/lib/types/es6/Checkbox.d.ts +4 -1
- package/lib/types/es6/ColumnGrouping.d.ts +1 -0
- package/lib/types/es6/ColumnSelection.d.ts +5 -1
- package/lib/types/es6/Core/data/DataView.d.ts +16 -7
- package/lib/types/es6/Core/data/Segment.d.ts +2 -0
- package/lib/types/es6/Core/data/WrappedView.d.ts +289 -0
- package/lib/types/es6/Core/grid/Core.d.ts +13 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +8 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +10 -1
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +10 -1
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +4 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +1 -1
- package/lib/types/es6/FilterInput.d.ts +4 -2
- package/lib/types/es6/InCellEditing.d.ts +1 -1
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +4 -1
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +15 -8
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +4 -1
- package/lib/types/es6/RowColoring.d.ts +2 -0
- package/lib/types/es6/RowDragging.d.ts +1 -3
- package/lib/types/es6/RowFiltering.d.ts +2 -0
- package/lib/types/es6/RowSegmenting.d.ts +1 -0
- package/lib/types/es6/RowSelection.d.ts +13 -9
- package/lib/types/es6/Zoom.d.ts +2 -1
- package/lib/types/es6/index.d.ts +3 -0
- package/lib/versions.json +19 -19
- package/lib/zoom/es6/Zoom.d.ts +2 -1
- package/lib/zoom/es6/Zoom.js +11 -4
- package/package.json +9 -2
@@ -1,6 +1,7 @@
|
|
1
1
|
import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
2
2
|
import DataCache from "./DataCache.js";
|
3
3
|
import DataTable from "./DataTable.js";
|
4
|
+
import WrappedView from "./WrappedView.js"; // eslint-disable-line
|
4
5
|
import ColumnStats from "./ColumnStats.js";
|
5
6
|
import EventDispatcher from "../grid/event/EventDispatcher.js";
|
6
7
|
import Util from "../grid/util/util.js";
|
@@ -22,7 +23,9 @@ declare class DataView extends EventDispatcher {
|
|
22
23
|
|
23
24
|
public getAllRowIds(shallowCopy?: boolean, inclNonDataRow?: boolean): (string)[];
|
24
25
|
|
25
|
-
public
|
26
|
+
public getVisibleRowIds(shallowCopy?: boolean): (string)[];
|
27
|
+
|
28
|
+
public getSortedRowIds(shallowCopy?: boolean): (string)[];
|
26
29
|
|
27
30
|
public getRowIndex(rid: string): number;
|
28
31
|
|
@@ -52,9 +55,9 @@ declare class DataView extends EventDispatcher {
|
|
52
55
|
|
53
56
|
public removeRow(rowRef: number|string): void;
|
54
57
|
|
55
|
-
public removeRows(
|
58
|
+
public removeRows(rowRefs: (number|string)[]): void;
|
56
59
|
|
57
|
-
public moveRow(
|
60
|
+
public moveRow(fromRef: (number|string)[]|number|string, toRef: number|string): (string)[]|string;
|
58
61
|
|
59
62
|
public swapRow(fromIndex: number, toIndex: number): void;
|
60
63
|
|
@@ -62,7 +65,7 @@ declare class DataView extends EventDispatcher {
|
|
62
65
|
|
63
66
|
public getDataSource(): DataTable|DataView;
|
64
67
|
|
65
|
-
public setDataSource(source?: DataTable|DataView): void;
|
68
|
+
public setDataSource(source?: (DataTable|DataView)): void;
|
66
69
|
|
67
70
|
public setConflationRate(milliSecond: number): void;
|
68
71
|
|
@@ -172,6 +175,8 @@ declare class DataView extends EventDispatcher {
|
|
172
175
|
|
173
176
|
public isHidden(): boolean;
|
174
177
|
|
178
|
+
public isHiddenRow(rowId: string): boolean;
|
179
|
+
|
175
180
|
public collapse(opt_collapsed?: boolean): void;
|
176
181
|
|
177
182
|
public collapseAllGroups(opt_collapsed?: boolean): void;
|
@@ -182,8 +187,6 @@ declare class DataView extends EventDispatcher {
|
|
182
187
|
|
183
188
|
public enableContentAsHeader(bool?: boolean): void;
|
184
189
|
|
185
|
-
public getVisibleRowIds(opt_shallowCopy?: boolean): (string)[];
|
186
|
-
|
187
190
|
public getVisibleRowCount(): number;
|
188
191
|
|
189
192
|
public isRowDataInGroup(rowData: any, groupID?: string): boolean;
|
@@ -260,6 +263,12 @@ declare class DataView extends EventDispatcher {
|
|
260
263
|
|
261
264
|
public sortSegments(compare: ((...params: any[]) => any)): void;
|
262
265
|
|
266
|
+
public getWrapSize(): number;
|
267
|
+
|
268
|
+
public getWrappedViews(): (WrappedView)[];
|
269
|
+
|
270
|
+
public wrapView(wrapSize?: number): void;
|
271
|
+
|
263
272
|
public dump(opt_options?: any): (any)[];
|
264
273
|
|
265
274
|
public log(opt_options?: any): void;
|
@@ -268,7 +277,7 @@ declare class DataView extends EventDispatcher {
|
|
268
277
|
|
269
278
|
}
|
270
279
|
|
271
|
-
declare function
|
280
|
+
declare function fromRids(fromIndex: number, toIndex: number): void;
|
272
281
|
|
273
282
|
declare function criteria(value: any|any[]): void;
|
274
283
|
|
@@ -0,0 +1,289 @@
|
|
1
|
+
import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
2
|
+
import EventDispatcher from "../grid/event/EventDispatcher.js";
|
3
|
+
import DataView from "./DataView.js"; // eslint-disable-line
|
4
|
+
import DataTable from "./DataTable.js"; // eslint-disable-line
|
5
|
+
import ColumnStats from "./ColumnStats.js"; // eslint-disable-line
|
6
|
+
|
7
|
+
declare namespace WrappedView {
|
8
|
+
|
9
|
+
type Options = {
|
10
|
+
dataView: DataView,
|
11
|
+
wrapIndex: number
|
12
|
+
};
|
13
|
+
|
14
|
+
}
|
15
|
+
|
16
|
+
declare class WrappedView extends EventDispatcher {
|
17
|
+
|
18
|
+
constructor(options: WrappedView.Options);
|
19
|
+
|
20
|
+
public dispose(): void;
|
21
|
+
|
22
|
+
public getData(rid: string, cid: string): { [key: string]: any };
|
23
|
+
|
24
|
+
public getRowData(rid: string): { [key: string]: any };
|
25
|
+
|
26
|
+
public getColumnData(cid: string, inclNonDataRow?: boolean): any[];
|
27
|
+
|
28
|
+
public getRowId(rowIndex: number): string;
|
29
|
+
|
30
|
+
public getAllRowIds(shallowCopy?: boolean, inclNonDataRow?: boolean): (string)[];
|
31
|
+
|
32
|
+
public getVisibleRowIds(shallowCopy?: boolean): (string)[];
|
33
|
+
|
34
|
+
public getSortedRowIds(shallowCopy?: boolean): (string)[];
|
35
|
+
|
36
|
+
public getRowIndex(rid: string): number;
|
37
|
+
|
38
|
+
public getRowCount(): number;
|
39
|
+
|
40
|
+
public getDataAt(rowIndex: number, cid: string): { [key: string]: any };
|
41
|
+
|
42
|
+
public getRowDataAt(rowIndex: number): { [key: string]: any };
|
43
|
+
|
44
|
+
public getPreviousData(rid: string, cid: string): { [key: string]: any };
|
45
|
+
|
46
|
+
public getMultipleRowData(rids: (string)[], opt_from?: number, opt_to?: number): (any)[];
|
47
|
+
|
48
|
+
public getAllRowData(): (any)[];
|
49
|
+
|
50
|
+
public setData(rid: string, cid: string, value: any): boolean;
|
51
|
+
|
52
|
+
public setRowData(rid: string, values?: { [key: string]: any }, opt_eventArg?: any): boolean;
|
53
|
+
|
54
|
+
public setColumnData(cid: string, valueList: any[], opt_ridList?: (string)[]): void;
|
55
|
+
|
56
|
+
public setDataAt(rowIndex: number, cid: string, value: any): boolean;
|
57
|
+
|
58
|
+
public setRowDataAt(rowIndex: number, values?: { [key: string]: any }, opt_eventArg?: any): boolean;
|
59
|
+
|
60
|
+
public insertRow(rowRef: string|number, opt_values?: { [key: string]: any }, opt_rid?: string|null): string;
|
61
|
+
|
62
|
+
public removeRow(rowRef: number|string): void;
|
63
|
+
|
64
|
+
public removeRows(rowRefs: (number|string)[]): void;
|
65
|
+
|
66
|
+
public moveRow(fromRef: (number|string)[]|number|string, toRef: number|string): (string)[]|string;
|
67
|
+
|
68
|
+
public getDataTable(): DataTable;
|
69
|
+
|
70
|
+
public getDataSource(): DataView;
|
71
|
+
|
72
|
+
public setDataSource(source?: DataView): void;
|
73
|
+
|
74
|
+
public setConflationRate(milliSecond: number): void;
|
75
|
+
|
76
|
+
public getConflationRate(): number;
|
77
|
+
|
78
|
+
public sort(cid: string|(string)[], opt_sortOrder?: string|number|(string|number)[], sortLogics?: ((...params: any[]) => any)|(((...params: any[]) => any))[], noOptimization?: boolean): void;
|
79
|
+
|
80
|
+
public sortOnce(cid: string|(string)[], opt_sortOrder?: string|number|(string|number)[]): void;
|
81
|
+
|
82
|
+
public setSortingLogic(func: DataTable.SortLogic): void;
|
83
|
+
|
84
|
+
public setColumnSortingLogic(cid: string, func: DataTable.SortLogic): void;
|
85
|
+
|
86
|
+
public isSorting(): boolean;
|
87
|
+
|
88
|
+
public hideRow(rId: string|number, opt_show?: boolean): void;
|
89
|
+
|
90
|
+
public hideRows(rowRefs: (string|number)[], opt_show?: boolean): void;
|
91
|
+
|
92
|
+
public showRows(rowRefs: (string|number)[], opt_show?: boolean): void;
|
93
|
+
|
94
|
+
public unhideAllRows(): void;
|
95
|
+
|
96
|
+
public hasHiddenRow(): boolean;
|
97
|
+
|
98
|
+
public filterIn(cid: string|((...params: any[]) => any), value?: any, opt_filteringOut?: boolean): boolean;
|
99
|
+
|
100
|
+
public filterOut(cid: string|((...params: any[]) => any), value?: any): boolean;
|
101
|
+
|
102
|
+
public filterInOnce(cid: string|((...params: any[]) => any), value?: any, opt_filteringOut?: boolean): void;
|
103
|
+
|
104
|
+
public filterOutOnce(cid: string|((...params: any[]) => any), value?: any): void;
|
105
|
+
|
106
|
+
public clearFilter(): void;
|
107
|
+
|
108
|
+
public disablePageCorrection(opt_disable?: boolean): void;
|
109
|
+
|
110
|
+
public setPage(pageIndex: number): boolean;
|
111
|
+
|
112
|
+
public gotoPage(): void;
|
113
|
+
|
114
|
+
public nextPage(): boolean;
|
115
|
+
|
116
|
+
public previousPage(): boolean;
|
117
|
+
|
118
|
+
public prevPage(): void;
|
119
|
+
|
120
|
+
public lastPage(): boolean;
|
121
|
+
|
122
|
+
public firstPage(): boolean;
|
123
|
+
|
124
|
+
public getCurrentPage(): number;
|
125
|
+
|
126
|
+
public getPageIndex(): void;
|
127
|
+
|
128
|
+
public isOnLastPage(): boolean;
|
129
|
+
|
130
|
+
public isOnFirstPage(): boolean;
|
131
|
+
|
132
|
+
public getPageSize(): number;
|
133
|
+
|
134
|
+
public getPageCount(): number;
|
135
|
+
|
136
|
+
public getTotalPages(): void;
|
137
|
+
|
138
|
+
public setPageSize(pageSize: number): void;
|
139
|
+
|
140
|
+
public groupBy(cid: string|((...params: any[]) => any)|(string|((...params: any[]) => any))[], opt_predefinedGroups?: any[]): void;
|
141
|
+
|
142
|
+
public addGroup(value: any|any[]): void;
|
143
|
+
|
144
|
+
public sortGroups(compare?: ((...params: any[]) => any)): void;
|
145
|
+
|
146
|
+
public moveGroup(groupRef: number|string, destIndex: number): void;
|
147
|
+
|
148
|
+
public setPredefinedGroups(predefinedGroups: any[]): void;
|
149
|
+
|
150
|
+
public addFooter(opt_num?: number): void;
|
151
|
+
|
152
|
+
public removeFooter(): void;
|
153
|
+
|
154
|
+
public getGroupByRowId(rowId: string): DataView;
|
155
|
+
|
156
|
+
public getGroup(groupRef: number|string): DataView;
|
157
|
+
|
158
|
+
public getAllGroups(out_ary?: any[]): (DataView)[];
|
159
|
+
|
160
|
+
public getGroupList(): (string)[];
|
161
|
+
|
162
|
+
public getGroupId(): string;
|
163
|
+
|
164
|
+
public getGroupValue(): any;
|
165
|
+
|
166
|
+
public getGroupRowId(): string;
|
167
|
+
|
168
|
+
public hasGroup(): boolean;
|
169
|
+
|
170
|
+
public getGroupRows(): null;
|
171
|
+
|
172
|
+
public getGroupLevel(rowRef?: (number|string)): number;
|
173
|
+
|
174
|
+
public enableColumnStats(cid: string, opt_enabled?: boolean, opt_refId?: string): ColumnStats;
|
175
|
+
|
176
|
+
public getColumnStats(cid: string): ColumnStats;
|
177
|
+
|
178
|
+
public hide(opt_hidden?: boolean): boolean;
|
179
|
+
|
180
|
+
public isHidden(): boolean;
|
181
|
+
|
182
|
+
public isHiddenRow(rowId: string): boolean;
|
183
|
+
|
184
|
+
public collapse(opt_collapsed?: boolean): void;
|
185
|
+
|
186
|
+
public collapseAllGroups(opt_collapsed?: boolean): void;
|
187
|
+
|
188
|
+
public toggleCollapsedState(): void;
|
189
|
+
|
190
|
+
public isCollapsed(): boolean;
|
191
|
+
|
192
|
+
public enableContentAsHeader(bool?: boolean): void;
|
193
|
+
|
194
|
+
public getVisibleRowCount(): number;
|
195
|
+
|
196
|
+
public isRowDataInGroup(rowData: any, groupID?: string): boolean;
|
197
|
+
|
198
|
+
public isRowIdInGroup(rowId: string, groupID?: string): boolean;
|
199
|
+
|
200
|
+
public addRowExpansion(rid: string, count?: number): void;
|
201
|
+
|
202
|
+
public removeRowExpansion(rid: string): void;
|
203
|
+
|
204
|
+
public toggleRowExpansion(rowRef: string|number, force?: boolean, count?: number): void;
|
205
|
+
|
206
|
+
public removeAllRowExpansions(): void;
|
207
|
+
|
208
|
+
public getExpansionParents(from?: number, to?: number): (string)[];
|
209
|
+
|
210
|
+
public isRowExpansion(rid: string): boolean;
|
211
|
+
|
212
|
+
public hasRowExpansion(rid: string): boolean;
|
213
|
+
|
214
|
+
public getRowExpansionId(rid: string, idx?: number): string;
|
215
|
+
|
216
|
+
public getRowExpansionIndex(rid: string): number;
|
217
|
+
|
218
|
+
public searchAll(searchLogic: ((...params: any[]) => any), opt_out?: (string)[]): (string)[];
|
219
|
+
|
220
|
+
public searchPrev(rowRef: number|string, searchLogic: ((...params: any[]) => any)): number;
|
221
|
+
|
222
|
+
public searchNext(rowRef: number|string, searchLogic: ((...params: any[]) => any)): number;
|
223
|
+
|
224
|
+
public stall(opt_bool?: boolean): boolean;
|
225
|
+
|
226
|
+
public enableAutoGroupRemoval(opt_bool?: boolean): boolean;
|
227
|
+
|
228
|
+
public enableAutoGroupHiding(opt_bool?: boolean): boolean;
|
229
|
+
|
230
|
+
public synchronizeRowOrder(): void;
|
231
|
+
|
232
|
+
public setSegmentSeparator(rowRef: string|number, enabled?: boolean): boolean;
|
233
|
+
|
234
|
+
public unsetAllSegmentSeparators(): boolean;
|
235
|
+
|
236
|
+
public hasSegmentation(): boolean;
|
237
|
+
|
238
|
+
public isSegmentSeparator(rid: string): boolean;
|
239
|
+
|
240
|
+
public getSegmentParentRowId(rid: string): string;
|
241
|
+
|
242
|
+
public collapseSegment(rowRef: string|number, collapsed?: boolean): boolean;
|
243
|
+
|
244
|
+
public expandSegment(rowRef: string|number, expanded?: boolean): boolean;
|
245
|
+
|
246
|
+
public expandAllSegments(): boolean;
|
247
|
+
|
248
|
+
public isSegmentCollapsed(rowRef: string|number): boolean;
|
249
|
+
|
250
|
+
public fillSegment(segmentRef: string|number): void;
|
251
|
+
|
252
|
+
public fillSegments(): void;
|
253
|
+
|
254
|
+
public addSegmentChild(segmentRef: string|number, rowRef: string|number): boolean;
|
255
|
+
|
256
|
+
public addSegmentChildren(segmentRef: string|number, rowRefs: (string|number)[]): boolean;
|
257
|
+
|
258
|
+
public removeSegmentChild(segmentRef: string|number, rowRef: string|number): boolean;
|
259
|
+
|
260
|
+
public removeSegmentChildren(segmentRef: string|number, rowRefs: (string|number)[]): boolean;
|
261
|
+
|
262
|
+
public removeAllSegmentChildren(): boolean;
|
263
|
+
|
264
|
+
public getSegmentIds(): (string)[];
|
265
|
+
|
266
|
+
public getSegmentChildIds(segmentRef: string|number): (string)[];
|
267
|
+
|
268
|
+
public sortSegments(compare: ((...params: any[]) => any)): void;
|
269
|
+
|
270
|
+
public getWrapSize(): number;
|
271
|
+
|
272
|
+
public getWrappedViews(): (WrappedView)[];
|
273
|
+
|
274
|
+
public wrapView(wrapSize?: number): void;
|
275
|
+
|
276
|
+
public dump(opt_options?: any): (any)[];
|
277
|
+
|
278
|
+
public log(opt_options?: any): void;
|
279
|
+
|
280
|
+
public isRowFiltered(rid: string, rowData: any): boolean;
|
281
|
+
|
282
|
+
}
|
283
|
+
|
284
|
+
declare function fromRids(): DataTable;
|
285
|
+
|
286
|
+
declare function complexData(opt_options?: any): void;
|
287
|
+
|
288
|
+
export default WrappedView;
|
289
|
+
export { WrappedView };
|
@@ -46,6 +46,9 @@ declare namespace Core {
|
|
46
46
|
renderingHandler?: ((...params: any[]) => any),
|
47
47
|
dataBindingHandler?: ((...params: any[]) => any),
|
48
48
|
columnData?: string,
|
49
|
+
stationary?: boolean,
|
50
|
+
leftPinned?: boolean,
|
51
|
+
rightPinned?: boolean,
|
49
52
|
layout?: TrackLayout
|
50
53
|
};
|
51
54
|
|
@@ -365,6 +368,16 @@ declare class Core extends ElementWrapper {
|
|
365
368
|
|
366
369
|
public hasHiddenRow(): boolean;
|
367
370
|
|
371
|
+
public selectColumn(colIndex: number, selected?: boolean): void;
|
372
|
+
|
373
|
+
public isSelectedColumn(colIndex: number): boolean;
|
374
|
+
|
375
|
+
public getColumnRect(startColIndex: number, endColIndex: number): any;
|
376
|
+
|
377
|
+
public getRowRect(startRowIndex: number, endRowIndex: number): any;
|
378
|
+
|
379
|
+
public normalizeConfig(configObj: any): any;
|
380
|
+
|
368
381
|
}
|
369
382
|
|
370
383
|
declare function num(opt_type?: string): (ILayoutGrid)[];
|
@@ -198,6 +198,14 @@ declare interface ILayoutGrid extends ElementWrapper {
|
|
198
198
|
|
199
199
|
getContextRow(rowIndex: number): any;
|
200
200
|
|
201
|
+
selectColumn(colIndex: number, selected?: boolean): void;
|
202
|
+
|
203
|
+
isSelectedColumn(colIndex: number): boolean;
|
204
|
+
|
205
|
+
selectCell(colIndex: number, rowIndex: number, selected?: boolean): void;
|
206
|
+
|
207
|
+
setCellBounds(colIndex: number, rowIndex: number, width: number, height: number): void;
|
208
|
+
|
201
209
|
}
|
202
210
|
|
203
211
|
export default ILayoutGrid;
|
@@ -10,13 +10,22 @@ import TrackLayout from "./util/TrackLayout.js";
|
|
10
10
|
import SelectionList from "./util/SelectionList.js";
|
11
11
|
import ILayoutGrid from "./ILayoutGrid.js";
|
12
12
|
import ElementWrapper from "./components/ElementWrapper.js";
|
13
|
+
import HScrollbar from "./components/HScrollbar.js";
|
13
14
|
|
14
15
|
declare class LayoutGrid extends ElementWrapper {
|
15
16
|
|
16
|
-
constructor(
|
17
|
+
constructor(options?: any);
|
17
18
|
|
18
19
|
public getContextRow(rowIndex: number): any;
|
19
20
|
|
21
|
+
public selectColumn(colIndex: number, selected?: boolean): void;
|
22
|
+
|
23
|
+
public isSelectedColumn(colIndex: number): boolean;
|
24
|
+
|
25
|
+
public selectCell(colIndex: number, rowIndex: number, selected?: boolean): void;
|
26
|
+
|
27
|
+
public setCellBounds(colIndex: number, rowIndex: number, width: number, height: number): void;
|
28
|
+
|
20
29
|
}
|
21
30
|
|
22
31
|
export default LayoutGrid;
|
@@ -5,13 +5,22 @@ import Reverter from "./util/Reverter.js";
|
|
5
5
|
import ILayoutGrid from "./ILayoutGrid.js";
|
6
6
|
import LayoutGrid from "./LayoutGrid.js";
|
7
7
|
import ElementWrapper from "./components/ElementWrapper.js";
|
8
|
+
import HScrollbar from "./components/HScrollbar.js";
|
8
9
|
|
9
10
|
declare class VirtualizedLayoutGrid extends ElementWrapper {
|
10
11
|
|
11
|
-
constructor(
|
12
|
+
constructor(options?: any);
|
12
13
|
|
13
14
|
public getContextRow(rowIndex: number): any;
|
14
15
|
|
16
|
+
public selectColumn(colIndex: number, selected?: boolean): void;
|
17
|
+
|
18
|
+
public isSelectedColumn(colIndex: number): boolean;
|
19
|
+
|
20
|
+
public selectCell(colIndex: number, rowIndex: number, selected?: boolean): void;
|
21
|
+
|
22
|
+
public setCellBounds(colIndex: number, rowIndex: number, width: number, height: number): void;
|
23
|
+
|
15
24
|
}
|
16
25
|
|
17
26
|
export default VirtualizedLayoutGrid;
|
@@ -8,6 +8,10 @@ declare class HScrollbar extends Scrollbar {
|
|
8
8
|
|
9
9
|
public setScrollLeft(px: number): void;
|
10
10
|
|
11
|
+
public getPinnedLeftColumnCount(): number;
|
12
|
+
|
13
|
+
public getPinnedRightColumnCount(): number;
|
14
|
+
|
11
15
|
public isEndOfHorizontalScroll(): boolean;
|
12
16
|
|
13
17
|
public getContentWidth(): number;
|
@@ -36,7 +36,7 @@ declare class TrackLayout {
|
|
36
36
|
|
37
37
|
public getTrackSize(): number;
|
38
38
|
|
39
|
-
public setTrackSize(targetSize: number
|
39
|
+
public setTrackSize(targetSize: number): (number)[]|null;
|
40
40
|
|
41
41
|
public getLaneStart(index: number): number;
|
42
42
|
|
@@ -16,11 +16,13 @@ declare namespace FilterInputPlugin {
|
|
16
16
|
disabled?: boolean,
|
17
17
|
placeholder?: string,
|
18
18
|
type?: string,
|
19
|
-
entries?: any[]
|
19
|
+
entries?: any[],
|
20
|
+
trigger?: string
|
20
21
|
};
|
21
22
|
|
22
23
|
type Options = {
|
23
|
-
inputCreated?: ((...params: any[]) => any)
|
24
|
+
inputCreated?: ((...params: any[]) => any),
|
25
|
+
trigger?: string
|
24
26
|
};
|
25
27
|
|
26
28
|
}
|
@@ -3,7 +3,7 @@ import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
|
3
3
|
import { Dom } from "../../tr-grid-util/es6/Dom.js";
|
4
4
|
import { Popup } from "../../tr-grid-util/es6/Popup.js";
|
5
5
|
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
6
|
-
import { isTouchDevice } from "../../tr-grid-util/es6/Util.js";
|
6
|
+
import { isTouchDevice, injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
7
7
|
import { ElfDate } from "../../tr-grid-util/es6/ElfDate.js";
|
8
8
|
import { CoralItems } from "../../tr-grid-util/es6/CoralItems.js";
|
9
9
|
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import ExtensionOptions from "../ExtensionOptions";
|
2
2
|
import Extensions from "../Extensions";
|
3
|
-
import {Dom} from "../../../tr-grid-util/es6/Dom.js";
|
4
|
-
import {Conflator} from "../../../tr-grid-util/es6/Conflator.js";
|
5
|
-
import {Ext} from "../../../tr-grid-util/es6/Ext.js";
|
3
|
+
import { Dom } from "../../../tr-grid-util/es6/Dom.js";
|
4
|
+
import { Conflator } from "../../../tr-grid-util/es6/Conflator.js";
|
5
|
+
import { Ext } from "../../../tr-grid-util/es6/Ext.js";
|
6
6
|
import { EventDispatcher } from "../../../tr-grid-util/es6/EventDispatcher.js";
|
7
7
|
import { Engine } from "../../../tr-grid-util/es6/formula/Engine.js";
|
8
8
|
import { cloneObject, extendObject, arrayToObject } from "../../../tr-grid-util/es6/Util.js";
|
9
9
|
import { DateTime } from "../../../tr-grid-util/es6/DateTime.js";
|
10
10
|
|
11
|
-
import {RowDefinition, ROW_DEF} from "./RowDefinition.js";
|
12
|
-
import {ColumnDefinition, COL_DEF} from "./ColumnDefinition.js";
|
11
|
+
import { RowDefinition, ROW_DEF } from "./RowDefinition.js";
|
12
|
+
import { ColumnDefinition, COL_DEF } from "./ColumnDefinition.js";
|
13
13
|
import SnapshotFiller from "./SnapshotFiller.js";
|
14
14
|
import StyleLoader from "./StyleLoader.js";
|
15
15
|
import FieldDefinition from "./FieldDefinition.js";
|
@@ -72,7 +72,8 @@ declare namespace Grid {
|
|
72
72
|
dataComposed?: ((...params: any[]) => any),
|
73
73
|
autoDateConversion?: boolean,
|
74
74
|
textSelect?: boolean,
|
75
|
-
lang?: string
|
75
|
+
lang?: string,
|
76
|
+
scrollbarParent?: Element
|
76
77
|
};
|
77
78
|
|
78
79
|
type RowReference = number|string|RowDefinition;
|
@@ -127,7 +128,7 @@ declare class Grid extends EventDispatcher {
|
|
127
128
|
|
128
129
|
public removeAllColumns(): void;
|
129
130
|
|
130
|
-
public moveColumn(fromColIndex: number|(number)[], toColIndex: number):
|
131
|
+
public moveColumn(fromColIndex: number|(number)[], toColIndex: number): boolean;
|
131
132
|
|
132
133
|
public hideColumn(colRef: Grid.ColumnReference, hidden?: boolean): void;
|
133
134
|
|
@@ -201,6 +202,8 @@ declare class Grid extends EventDispatcher {
|
|
201
202
|
|
202
203
|
public getRowDefinitions(): (RowDefinition)[];
|
203
204
|
|
205
|
+
public getAllRowDefinitions(inclAutoGenerate?: boolean): (RowDefinition)[];
|
206
|
+
|
204
207
|
public getRowData(rowIndex: number): any;
|
205
208
|
|
206
209
|
public getMultipleRowData(obj?: any): (any)[];
|
@@ -221,7 +224,7 @@ declare class Grid extends EventDispatcher {
|
|
221
224
|
|
222
225
|
public getAllFields(): (string)[];
|
223
226
|
|
224
|
-
public freezeColumn(
|
227
|
+
public freezeColumn(colIndex?: number, pinnedRightColumns?: number): void;
|
225
228
|
|
226
229
|
public updateColumnTitle(): void;
|
227
230
|
|
@@ -251,6 +254,10 @@ declare class Grid extends EventDispatcher {
|
|
251
254
|
|
252
255
|
public requestRowRefresh(): void;
|
253
256
|
|
257
|
+
public updateLayout(): void;
|
258
|
+
|
259
|
+
public getExtension(str: string): any;
|
260
|
+
|
254
261
|
public logDT(opt_options?: any): void;
|
255
262
|
|
256
263
|
public logDV(opt_options?: any): void;
|
@@ -11,7 +11,8 @@ declare namespace RowDefinition {
|
|
11
11
|
asChain?: boolean,
|
12
12
|
chainRic?: string,
|
13
13
|
collapsed?: boolean,
|
14
|
-
label?: (string|null)
|
14
|
+
label?: (string|null),
|
15
|
+
hidden?: boolean
|
15
16
|
};
|
16
17
|
|
17
18
|
}
|
@@ -30,6 +31,8 @@ declare class RowDefinition {
|
|
30
31
|
|
31
32
|
public getRowId(): string;
|
32
33
|
|
34
|
+
public getConfigObject(rowOptions?: RowDefinition.Options): RowDefinition.Options;
|
35
|
+
|
33
36
|
public getDataId(): string;
|
34
37
|
|
35
38
|
public setDataSource(dataSource: DataCache): void;
|
@@ -30,6 +30,8 @@ declare class RowColoringPlugin extends GridPlugin {
|
|
30
30
|
|
31
31
|
public getConfigObject(gridOptions?: any): any;
|
32
32
|
|
33
|
+
public getRowConfigObject(rowId: string): any|null;
|
34
|
+
|
33
35
|
public setRowColor(rowRef: string|number, bgColor?: (string|null), txtColor?: (string|null)): void;
|
34
36
|
|
35
37
|
public getRowColor(rowRef: string|number): string;
|
@@ -25,8 +25,6 @@ declare class RowDraggingPlugin extends GridPlugin {
|
|
25
25
|
|
26
26
|
constructor(options?: RowDraggingPlugin.Options);
|
27
27
|
|
28
|
-
public beforeProcessOption(optionName: string, optionValue: any): any;
|
29
|
-
|
30
28
|
public hasMultiTableSupport(): boolean;
|
31
29
|
|
32
30
|
public getName(): string;
|
@@ -45,7 +43,7 @@ declare class RowDraggingPlugin extends GridPlugin {
|
|
45
43
|
|
46
44
|
public cancelDrag(): void;
|
47
45
|
|
48
|
-
public getGuideline(): Element;
|
46
|
+
public getGuideline(): Element|null;
|
49
47
|
|
50
48
|
}
|
51
49
|
|
@@ -2,6 +2,7 @@ import {Ext} from '../../tr-grid-util/es6/Ext.js';
|
|
2
2
|
import {GridPlugin} from '../../tr-grid-util/es6/GridPlugin.js';
|
3
3
|
import {FilterBuilder} from '../../tr-grid-util/es6/FilterBuilder.js';
|
4
4
|
import {ElfUtil} from '../../tr-grid-util/es6/ElfUtil.js';
|
5
|
+
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
5
6
|
|
6
7
|
declare namespace RowFilteringPlugin {
|
7
8
|
|
@@ -32,6 +33,7 @@ declare namespace RowFilteringPlugin {
|
|
32
33
|
|
33
34
|
type Options = {
|
34
35
|
disabledUI?: boolean,
|
36
|
+
iconActivation?: string,
|
35
37
|
click?: ((...params: any[]) => any),
|
36
38
|
clicked?: ((...params: any[]) => any),
|
37
39
|
iconCreated?: ((...params: any[]) => any),
|
@@ -12,6 +12,7 @@ declare namespace RowSegmentingPlugin {
|
|
12
12
|
spanning?: boolean,
|
13
13
|
colorTag?: boolean,
|
14
14
|
clicked?: ((...params: any[]) => any),
|
15
|
+
headerMenuClicked?: ((...params: any[]) => any),
|
15
16
|
segmentSeparatorBinding?: ((...params: any[]) => any),
|
16
17
|
nonSegmentSeparatorBinding?: ((...params: any[]) => any),
|
17
18
|
sortingLogic?: ((...params: any[]) => any)
|