@refinitiv-ui/efx-grid 6.0.1 → 6.0.2
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-selection-dialog/lib/column-selection-dialog.js +80 -18
- 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 +12961 -10749
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataView.d.ts +22 -7
- package/lib/core/es6/data/DataView.js +176 -49
- 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 +393 -155
- 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 +314 -27
- 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/filter-dialog.js +8 -6
- package/lib/grid/lib/efx-grid.d.ts +14 -7
- package/lib/grid/lib/efx-grid.js +113 -114
- package/lib/grid/themes/base.less +4 -2
- 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/row-segmenting/es6/RowSegmenting.d.ts +1 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +40 -11
- package/lib/rt-grid/dist/rt-grid.js +10290 -7864
- 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 +241 -74
- 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 +2 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +29 -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 +1 -0
- 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-row-dragging/es6/RowDragging.js +102 -12
- 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 +5 -1
- package/lib/tr-grid-row-selection/es6/RowSelection.js +188 -7
- 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/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 +2 -2
- 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 +66 -12
- 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/types/es6/CellSelection.d.ts +1 -1
- package/lib/types/es6/Checkbox.d.ts +2 -0
- 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 +22 -7
- 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/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/RowFiltering.d.ts +2 -0
- package/lib/types/es6/RowSegmenting.d.ts +1 -0
- package/lib/types/es6/RowSelection.d.ts +5 -1
- package/lib/types/es6/Zoom.d.ts +2 -1
- package/lib/types/es6/index.d.ts +2 -0
- package/lib/versions.json +17 -17
- package/lib/zoom/es6/Zoom.d.ts +2 -1
- package/lib/zoom/es6/Zoom.js +11 -4
- package/package.json +7 -7
@@ -2,7 +2,7 @@ import { DataGrid, setInvalidFields } from "./mockDataAPI.js";
|
|
2
2
|
import { MockQuotes2 } from "./MockQuotes2.js";
|
3
3
|
import { cloneObject } from "../Util.js";
|
4
4
|
|
5
|
-
declare function init(opt_obj?: any): MockRTK;
|
5
|
+
declare function init(opt_obj?: any): MockRTK|null;
|
6
6
|
|
7
7
|
export default MockRTK;
|
8
8
|
export { MockRTK };
|
@@ -6,6 +6,6 @@ declare namespace DataGrid {
|
|
6
6
|
|
7
7
|
declare function setInvalidFields(fields: (string)[]|string): void;
|
8
8
|
|
9
|
-
declare function mockDataAPI(dataType: string): Promise<any
|
9
|
+
declare function mockDataAPI(dataType: string): Promise<any>|null;
|
10
10
|
|
11
11
|
export { mockDataAPI, DataGrid, setInvalidFields };
|
@@ -51,6 +51,8 @@ declare class CheckboxPlugin extends GridPlugin {
|
|
51
51
|
|
52
52
|
public setAllCheckStates(checked: boolean): void;
|
53
53
|
|
54
|
+
public selectAllPages(checked?: boolean): void;
|
55
|
+
|
54
56
|
public disableCheckbox(rowRef: number|string, disabled: boolean): void;
|
55
57
|
|
56
58
|
public enableCheckbox(rowRef: number|string): void;
|
@@ -1,13 +1,17 @@
|
|
1
1
|
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
2
2
|
import { Dom } from "../../tr-grid-util/es6/Dom.js";
|
3
3
|
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
4
|
+
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
5
|
+
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
4
6
|
|
5
7
|
declare namespace ColumnSelectionPlugin {
|
6
8
|
|
7
9
|
type Options = {
|
8
10
|
singleSelection?: boolean,
|
9
11
|
clickToggle?: boolean,
|
10
|
-
selectionChanged?: ((...params: any[]) => any)
|
12
|
+
selectionChanged?: ((...params: any[]) => any),
|
13
|
+
menuClicked?: ((...params: any[]) => any),
|
14
|
+
menuPosition?: string
|
11
15
|
};
|
12
16
|
|
13
17
|
type ColumnOptions = {
|
@@ -1,11 +1,18 @@
|
|
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";
|
7
8
|
import { Conflator } from "../../../../tr-grid-util/es6/Conflator.js";
|
8
9
|
|
10
|
+
declare namespace DataView {
|
11
|
+
|
12
|
+
type IDataView = DataTable|WrappedView|DataView;
|
13
|
+
|
14
|
+
}
|
15
|
+
|
9
16
|
declare class DataView extends EventDispatcher {
|
10
17
|
|
11
18
|
constructor(source?: DataTable|DataView);
|
@@ -22,7 +29,9 @@ declare class DataView extends EventDispatcher {
|
|
22
29
|
|
23
30
|
public getAllRowIds(shallowCopy?: boolean, inclNonDataRow?: boolean): (string)[];
|
24
31
|
|
25
|
-
public
|
32
|
+
public getVisibleRowIds(shallowCopy?: boolean): (string)[];
|
33
|
+
|
34
|
+
public getSortedRowIds(shallowCopy?: boolean): (string)[];
|
26
35
|
|
27
36
|
public getRowIndex(rid: string): number;
|
28
37
|
|
@@ -52,9 +61,9 @@ declare class DataView extends EventDispatcher {
|
|
52
61
|
|
53
62
|
public removeRow(rowRef: number|string): void;
|
54
63
|
|
55
|
-
public removeRows(
|
64
|
+
public removeRows(rowRefs: (number|string)[]): void;
|
56
65
|
|
57
|
-
public moveRow(
|
66
|
+
public moveRow(fromRef: (number|string)[]|number|string, toRef: number|string): (string)[]|string;
|
58
67
|
|
59
68
|
public swapRow(fromIndex: number, toIndex: number): void;
|
60
69
|
|
@@ -62,7 +71,7 @@ declare class DataView extends EventDispatcher {
|
|
62
71
|
|
63
72
|
public getDataSource(): DataTable|DataView;
|
64
73
|
|
65
|
-
public setDataSource(source?: DataTable|DataView): void;
|
74
|
+
public setDataSource(source?: (DataTable|DataView)): void;
|
66
75
|
|
67
76
|
public setConflationRate(milliSecond: number): void;
|
68
77
|
|
@@ -172,6 +181,8 @@ declare class DataView extends EventDispatcher {
|
|
172
181
|
|
173
182
|
public isHidden(): boolean;
|
174
183
|
|
184
|
+
public isHiddenRow(rowId: string): boolean;
|
185
|
+
|
175
186
|
public collapse(opt_collapsed?: boolean): void;
|
176
187
|
|
177
188
|
public collapseAllGroups(opt_collapsed?: boolean): void;
|
@@ -182,8 +193,6 @@ declare class DataView extends EventDispatcher {
|
|
182
193
|
|
183
194
|
public enableContentAsHeader(bool?: boolean): void;
|
184
195
|
|
185
|
-
public getVisibleRowIds(opt_shallowCopy?: boolean): (string)[];
|
186
|
-
|
187
196
|
public getVisibleRowCount(): number;
|
188
197
|
|
189
198
|
public isRowDataInGroup(rowData: any, groupID?: string): boolean;
|
@@ -260,6 +269,12 @@ declare class DataView extends EventDispatcher {
|
|
260
269
|
|
261
270
|
public sortSegments(compare: ((...params: any[]) => any)): void;
|
262
271
|
|
272
|
+
public getWrapSize(): number;
|
273
|
+
|
274
|
+
public getWrappedViews(): (WrappedView)[];
|
275
|
+
|
276
|
+
public wrapView(wrapSize?: number): void;
|
277
|
+
|
263
278
|
public dump(opt_options?: any): (any)[];
|
264
279
|
|
265
280
|
public log(opt_options?: any): void;
|
@@ -268,7 +283,7 @@ declare class DataView extends EventDispatcher {
|
|
268
283
|
|
269
284
|
}
|
270
285
|
|
271
|
-
declare function
|
286
|
+
declare function fromRids(fromIndex: number, toIndex: number): void;
|
272
287
|
|
273
288
|
declare function criteria(value: any|any[]): void;
|
274
289
|
|
@@ -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
|
}
|
@@ -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;
|