@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.
Files changed (133) hide show
  1. package/lib/column-selection-dialog/lib/column-selection-dialog.js +80 -18
  2. package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +1 -1
  3. package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +1 -1
  4. package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +1 -1
  5. package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +1 -1
  6. package/lib/core/dist/core.css +1 -1
  7. package/lib/core/dist/core.js +12961 -10749
  8. package/lib/core/dist/core.min.js +1 -1
  9. package/lib/core/es6/data/DataView.d.ts +22 -7
  10. package/lib/core/es6/data/DataView.js +176 -49
  11. package/lib/core/es6/data/WrappedView.d.ts +289 -0
  12. package/lib/core/es6/data/WrappedView.js +1319 -0
  13. package/lib/core/es6/grid/Core.d.ts +13 -0
  14. package/lib/core/es6/grid/Core.js +393 -155
  15. package/lib/core/es6/grid/ILayoutGrid.d.ts +8 -0
  16. package/lib/core/es6/grid/ILayoutGrid.js +45 -2
  17. package/lib/core/es6/grid/LayoutGrid.d.ts +10 -1
  18. package/lib/core/es6/grid/LayoutGrid.js +257 -82
  19. package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +10 -1
  20. package/lib/core/es6/grid/VirtualizedLayoutGrid.js +314 -27
  21. package/lib/core/es6/grid/components/Column.js +8 -2
  22. package/lib/core/es6/grid/components/HScrollbar.d.ts +4 -0
  23. package/lib/core/es6/grid/components/HScrollbar.js +20 -4
  24. package/lib/core/es6/grid/util/TrackLayout.d.ts +1 -1
  25. package/lib/core/es6/grid/util/TrackLayout.js +2 -3
  26. package/lib/core/es6/tr-grid-theme.js +1 -1
  27. package/lib/filter-dialog/lib/filter-dialog.js +8 -6
  28. package/lib/grid/lib/efx-grid.d.ts +14 -7
  29. package/lib/grid/lib/efx-grid.js +113 -114
  30. package/lib/grid/themes/base.less +4 -2
  31. package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
  32. package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
  33. package/lib/grid/themes/halo/efx-grid.less +69 -32
  34. package/lib/grid/themes/halo/light/efx-grid.js +1 -1
  35. package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
  36. package/lib/grid/themes/solar/charcoal/efx-grid.js +1 -1
  37. package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
  38. package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
  39. package/lib/grid/themes/solar/pearl/es5/all-elements.js +1 -1
  40. package/lib/row-segmenting/es6/RowSegmenting.d.ts +1 -0
  41. package/lib/row-segmenting/es6/RowSegmenting.js +40 -11
  42. package/lib/rt-grid/dist/rt-grid.js +10290 -7864
  43. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  44. package/lib/rt-grid/es6/ColumnDefinition.d.ts +4 -1
  45. package/lib/rt-grid/es6/ColumnDefinition.js +3 -0
  46. package/lib/rt-grid/es6/Grid.d.ts +14 -7
  47. package/lib/rt-grid/es6/Grid.js +241 -74
  48. package/lib/rt-grid/es6/RowDefinition.d.ts +4 -1
  49. package/lib/rt-grid/es6/RowDefinition.js +52 -2
  50. package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +1 -1
  51. package/lib/tr-grid-cell-selection/es6/CellSelection.js +53 -40
  52. package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +2 -0
  53. package/lib/tr-grid-checkbox/es6/Checkbox.js +29 -14
  54. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +1 -0
  55. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +10 -0
  56. package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +5 -1
  57. package/lib/tr-grid-column-selection/es6/ColumnSelection.js +226 -4
  58. package/lib/tr-grid-column-stack/es6/ColumnStack.js +3 -0
  59. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +1 -0
  60. package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +4 -2
  61. package/lib/tr-grid-filter-input/es6/FilterInput.js +73 -10
  62. package/lib/tr-grid-row-dragging/es6/RowDragging.js +102 -12
  63. package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -0
  64. package/lib/tr-grid-row-filtering/es6/RowFiltering.js +88 -33
  65. package/lib/tr-grid-row-grouping/es6/RowGrouping.js +41 -31
  66. package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +5 -1
  67. package/lib/tr-grid-row-selection/es6/RowSelection.js +188 -7
  68. package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +2 -0
  69. package/lib/tr-grid-rowcoloring/es6/RowColoring.js +36 -0
  70. package/lib/tr-grid-util/es6/CellPainter.d.ts +8 -8
  71. package/lib/tr-grid-util/es6/Conflator.d.ts +2 -2
  72. package/lib/tr-grid-util/es6/CoralItems.d.ts +1 -1
  73. package/lib/tr-grid-util/es6/DateTime.d.ts +4 -4
  74. package/lib/tr-grid-util/es6/Delay.d.ts +1 -1
  75. package/lib/tr-grid-util/es6/Dom.d.ts +4 -4
  76. package/lib/tr-grid-util/es6/ElementWrapper.d.ts +1 -1
  77. package/lib/tr-grid-util/es6/ElfDate.d.ts +3 -3
  78. package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -4
  79. package/lib/tr-grid-util/es6/EventDispatcher.d.ts +1 -1
  80. package/lib/tr-grid-util/es6/FieldFormatter.d.ts +1 -1
  81. package/lib/tr-grid-util/es6/FilterBuilder.d.ts +5 -5
  82. package/lib/tr-grid-util/es6/GridPlugin.d.ts +3 -3
  83. package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +1 -1
  84. package/lib/tr-grid-util/es6/MultiTableManager.d.ts +2 -2
  85. package/lib/tr-grid-util/es6/PercentBar.d.ts +1 -1
  86. package/lib/tr-grid-util/es6/Perf.d.ts +4 -4
  87. package/lib/tr-grid-util/es6/Popup.d.ts +2 -2
  88. package/lib/tr-grid-util/es6/RequestQueue.d.ts +1 -1
  89. package/lib/tr-grid-util/es6/RowPainter.d.ts +3 -0
  90. package/lib/tr-grid-util/es6/RowPainter.js +66 -12
  91. package/lib/tr-grid-util/es6/SubTable.d.ts +9 -9
  92. package/lib/tr-grid-util/es6/Table.d.ts +13 -13
  93. package/lib/tr-grid-util/es6/TextHighlighter.d.ts +3 -3
  94. package/lib/tr-grid-util/es6/TickCodes.d.ts +2 -2
  95. package/lib/tr-grid-util/es6/TouchProxy.d.ts +1 -1
  96. package/lib/tr-grid-util/es6/Util.d.ts +6 -6
  97. package/lib/tr-grid-util/es6/formula/Engine.d.ts +5 -5
  98. package/lib/tr-grid-util/es6/formula/Formula.d.ts +3 -3
  99. package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +1 -1
  100. package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +2 -2
  101. package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +4 -4
  102. package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +1 -1
  103. package/lib/tr-grid-util/es6/jet/MockJET.d.ts +4 -4
  104. package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +11 -11
  105. package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +7 -7
  106. package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +1 -1
  107. package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +1 -1
  108. package/lib/types/es6/CellSelection.d.ts +1 -1
  109. package/lib/types/es6/Checkbox.d.ts +2 -0
  110. package/lib/types/es6/ColumnGrouping.d.ts +1 -0
  111. package/lib/types/es6/ColumnSelection.d.ts +5 -1
  112. package/lib/types/es6/Core/data/DataView.d.ts +22 -7
  113. package/lib/types/es6/Core/data/WrappedView.d.ts +289 -0
  114. package/lib/types/es6/Core/grid/Core.d.ts +13 -0
  115. package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +8 -0
  116. package/lib/types/es6/Core/grid/LayoutGrid.d.ts +10 -1
  117. package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +10 -1
  118. package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +4 -0
  119. package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +1 -1
  120. package/lib/types/es6/FilterInput.d.ts +4 -2
  121. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +4 -1
  122. package/lib/types/es6/RealtimeGrid/Grid.d.ts +15 -8
  123. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +4 -1
  124. package/lib/types/es6/RowColoring.d.ts +2 -0
  125. package/lib/types/es6/RowFiltering.d.ts +2 -0
  126. package/lib/types/es6/RowSegmenting.d.ts +1 -0
  127. package/lib/types/es6/RowSelection.d.ts +5 -1
  128. package/lib/types/es6/Zoom.d.ts +2 -1
  129. package/lib/types/es6/index.d.ts +2 -0
  130. package/lib/versions.json +17 -17
  131. package/lib/zoom/es6/Zoom.d.ts +2 -1
  132. package/lib/zoom/es6/Zoom.js +11 -4
  133. package/package.json +7 -7
@@ -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 };