@refinitiv-ui/efx-grid 6.0.2 → 6.0.5

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 (203) hide show
  1. package/lib/column-dragging/es6/ColumnDragging.d.ts +49 -0
  2. package/lib/column-dragging/es6/ColumnDragging.js +764 -0
  3. package/lib/column-dragging/es6/index.d.ts +1 -0
  4. package/lib/column-dragging/es6/index.js +1 -0
  5. package/lib/column-format-dialog/lib/column-format-dialog.d.ts +13 -1
  6. package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +15 -2
  7. package/lib/column-selection-dialog/lib/column-selection-dialog.js +146 -5
  8. package/lib/core/dist/core.css +1 -1
  9. package/lib/core/dist/core.js +468 -1092
  10. package/lib/core/dist/core.min.js +1 -1
  11. package/lib/core/es6/data/ColumnStats.d.ts +2 -2
  12. package/lib/core/es6/data/DataCache.d.ts +4 -4
  13. package/lib/core/es6/data/DataTable.d.ts +5 -5
  14. package/lib/core/es6/data/DataTable.js +33 -11
  15. package/lib/core/es6/data/DataView.d.ts +12 -18
  16. package/lib/core/es6/data/DataView.js +0 -4
  17. package/lib/core/es6/data/Segment.d.ts +2 -0
  18. package/lib/core/es6/data/Segment.js +7 -0
  19. package/lib/core/es6/data/SegmentCollection.d.ts +3 -3
  20. package/lib/core/es6/data/WrappedView.d.ts +13 -13
  21. package/lib/core/es6/data/WrappedView.js +6 -6
  22. package/lib/core/es6/grid/Core.d.ts +31 -27
  23. package/lib/core/es6/grid/Core.js +47 -11
  24. package/lib/core/es6/grid/ILayoutGrid.d.ts +15 -15
  25. package/lib/core/es6/grid/LayoutGrid.js +54 -26
  26. package/lib/core/es6/grid/VirtualizedLayoutGrid.js +71 -0
  27. package/lib/core/es6/grid/components/Cell.d.ts +4 -4
  28. package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +1 -1
  29. package/lib/core/es6/grid/components/CellSpans.d.ts +8 -8
  30. package/lib/core/es6/grid/components/Column.d.ts +1 -1
  31. package/lib/core/es6/grid/components/ElementWrapper.d.ts +6 -6
  32. package/lib/core/es6/grid/components/Scrollbar.d.ts +3 -1
  33. package/lib/core/es6/grid/components/Scrollbar.js +13 -0
  34. package/lib/core/es6/grid/components/StretchedCells.js +2 -2
  35. package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +14 -6
  36. package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +147 -81
  37. package/lib/core/es6/grid/util/Conflator.d.ts +2 -2
  38. package/lib/core/es6/grid/util/ElementFrameWork.d.ts +3 -3
  39. package/lib/core/es6/grid/util/HttpRequest.d.ts +2 -2
  40. package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +1 -1
  41. package/lib/core/es6/grid/util/RangeBar.d.ts +1 -1
  42. package/lib/core/es6/grid/util/SectionSettings.d.ts +5 -5
  43. package/lib/core/es6/grid/util/SectionSettings.js +5 -0
  44. package/lib/core/es6/grid/util/SelectionList.d.ts +2 -2
  45. package/lib/core/es6/grid/util/TrackLayout.d.ts +7 -3
  46. package/lib/core/es6/grid/util/TrackLayout.js +27 -0
  47. package/lib/core/es6/grid/util/util.d.ts +2 -2
  48. package/lib/core/es6/index.d.ts +1 -5
  49. package/lib/core/es6/index.js +1 -7
  50. package/lib/core/es6/tr-grid-theme.js +1 -1
  51. package/lib/filter-dialog/lib/checkbox-list.d.ts +13 -1
  52. package/lib/filter-dialog/lib/filter-dialog.d.ts +14 -1
  53. package/lib/filter-dialog/lib/filter-dialog.js +86 -26
  54. package/lib/filter-dialog/themes/base-checkbox.less +8 -1
  55. package/lib/filter-dialog/themes/base.less +69 -1
  56. package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
  57. package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
  58. package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
  59. package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
  60. package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
  61. package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
  62. package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
  63. package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
  64. package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
  65. package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
  66. package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
  67. package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
  68. package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
  69. package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
  70. package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
  71. package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
  72. package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
  73. package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
  74. package/lib/grid/lib/efx-grid.d.ts +25 -10
  75. package/lib/grid/lib/efx-grid.js +22 -56
  76. package/lib/grid/themes/base.less +1 -1
  77. package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
  78. package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
  79. package/lib/grid/themes/halo/efx-grid.less +33 -39
  80. package/lib/grid/themes/halo/light/efx-grid.js +1 -1
  81. package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
  82. package/lib/grid/themes/solar/charcoal/efx-grid.js +1 -1
  83. package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
  84. package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
  85. package/lib/grid/themes/solar/pearl/es5/all-elements.js +1 -1
  86. package/lib/index.d.ts +2 -0
  87. package/lib/index.js +2 -0
  88. package/lib/row-segmenting/es6/RowSegmenting.d.ts +7 -2
  89. package/lib/row-segmenting/es6/RowSegmenting.js +98 -11
  90. package/lib/rt-grid/dist/rt-grid.js +1244 -1249
  91. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  92. package/lib/rt-grid/es6/ColumnDefinition.d.ts +5 -3
  93. package/lib/rt-grid/es6/ColumnDefinition.js +17 -108
  94. package/lib/rt-grid/es6/DataConnector.d.ts +3 -3
  95. package/lib/rt-grid/es6/Grid.d.ts +24 -9
  96. package/lib/rt-grid/es6/Grid.js +285 -103
  97. package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
  98. package/lib/rt-grid/es6/RowDefSorter.js +137 -0
  99. package/lib/rt-grid/es6/RowDefinition.d.ts +9 -7
  100. package/lib/rt-grid/es6/RowDefinition.js +6 -0
  101. package/lib/rt-grid/es6/SnapshotFiller.d.ts +6 -1
  102. package/lib/rt-grid/es6/SnapshotFiller.js +144 -15
  103. package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +4 -3
  104. package/lib/tr-grid-checkbox/es6/Checkbox.js +51 -21
  105. package/lib/tr-grid-column-selection/es6/ColumnSelection.js +46 -9
  106. package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +8 -4
  107. package/lib/tr-grid-column-stack/es6/ColumnStack.js +240 -125
  108. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +4 -3
  109. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +28 -13
  110. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +8 -5
  111. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +106 -3
  112. package/lib/tr-grid-percent-bar/es6/PercentBar.js +1 -1
  113. package/lib/tr-grid-printer/es6/CellWriter.d.ts +3 -3
  114. package/lib/tr-grid-printer/es6/GridPrinter.d.ts +1 -1
  115. package/lib/tr-grid-printer/es6/GridPrinter.js +26 -13
  116. package/lib/tr-grid-printer/es6/PrintTrait.d.ts +2 -2
  117. package/lib/tr-grid-printer/es6/SectionWriter.d.ts +3 -3
  118. package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +3 -4
  119. package/lib/tr-grid-row-dragging/es6/RowDragging.js +86 -195
  120. package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +7 -2
  121. package/lib/tr-grid-row-grouping/es6/RowGrouping.js +97 -7
  122. package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +8 -8
  123. package/lib/tr-grid-row-selection/es6/RowSelection.js +55 -31
  124. package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +1 -1
  125. package/lib/tr-grid-textformatting/es6/TextFormatting.js +12 -0
  126. package/lib/tr-grid-util/es6/CellPainter.js +1 -1
  127. package/lib/tr-grid-util/es6/DragUI.d.ts +16 -0
  128. package/lib/tr-grid-util/es6/DragUI.js +214 -0
  129. package/lib/tr-grid-util/es6/ElementObserver.d.ts +2 -0
  130. package/lib/tr-grid-util/es6/ElementObserver.js +32 -2
  131. package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -1
  132. package/lib/tr-grid-util/es6/ElfUtil.js +131 -28
  133. package/lib/tr-grid-util/es6/ExpanderIcon.js +2 -2
  134. package/lib/tr-grid-util/es6/FieldFormatter.js +7 -5
  135. package/lib/tr-grid-util/es6/GridPlugin.js +8 -4
  136. package/lib/tr-grid-util/es6/MultiTableManager.d.ts +8 -0
  137. package/lib/tr-grid-util/es6/MultiTableManager.js +164 -57
  138. package/lib/tr-grid-util/es6/NumberFormatter.d.ts +2 -0
  139. package/lib/tr-grid-util/es6/NumberFormatter.js +64 -19
  140. package/lib/tr-grid-util/es6/RowPainter.js +57 -19
  141. package/lib/tr-grid-util/es6/formula/Formula.js +9 -1
  142. package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
  143. package/lib/types/es6/Checkbox.d.ts +4 -3
  144. package/lib/types/es6/ColumnStack.d.ts +8 -4
  145. package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +3 -2
  146. package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +2 -1
  147. package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +20 -18
  148. package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +2 -1
  149. package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +3 -2
  150. package/lib/types/es6/CompositeGrid/Plugin.d.ts +28 -0
  151. package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +2 -1
  152. package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +5 -4
  153. package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +2 -1
  154. package/lib/types/es6/CompositeGrid/index.d.ts +9 -9
  155. package/lib/types/es6/ConditionalColoring.d.ts +4 -3
  156. package/lib/types/es6/Core/data/ColumnStats.d.ts +2 -2
  157. package/lib/types/es6/Core/data/DataCache.d.ts +4 -4
  158. package/lib/types/es6/Core/data/DataTable.d.ts +5 -5
  159. package/lib/types/es6/Core/data/DataView.d.ts +12 -18
  160. package/lib/types/es6/Core/data/Segment.d.ts +2 -0
  161. package/lib/types/es6/Core/data/SegmentCollection.d.ts +3 -3
  162. package/lib/types/es6/Core/data/WrappedView.d.ts +13 -13
  163. package/lib/types/es6/Core/grid/Core.d.ts +31 -27
  164. package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +15 -15
  165. package/lib/types/es6/Core/grid/components/Cell.d.ts +4 -4
  166. package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +1 -1
  167. package/lib/types/es6/Core/grid/components/CellSpans.d.ts +8 -8
  168. package/lib/types/es6/Core/grid/components/Column.d.ts +1 -1
  169. package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +6 -6
  170. package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +3 -1
  171. package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +14 -6
  172. package/lib/types/es6/Core/grid/util/Conflator.d.ts +2 -2
  173. package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +3 -3
  174. package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +2 -2
  175. package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +1 -1
  176. package/lib/types/es6/Core/grid/util/RangeBar.d.ts +1 -1
  177. package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +5 -5
  178. package/lib/types/es6/Core/grid/util/SelectionList.d.ts +2 -2
  179. package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +7 -3
  180. package/lib/types/es6/Core/grid/util/util.d.ts +2 -2
  181. package/lib/types/es6/Core/index.d.ts +1 -5
  182. package/lib/types/es6/ExtensionOptions.d.ts +2 -0
  183. package/lib/types/es6/InCellEditing.d.ts +8 -5
  184. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +5 -3
  185. package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +3 -3
  186. package/lib/types/es6/RealtimeGrid/Grid.d.ts +24 -9
  187. package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
  188. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +9 -7
  189. package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +6 -1
  190. package/lib/types/es6/RowDragging.d.ts +3 -4
  191. package/lib/types/es6/RowGrouping.d.ts +7 -2
  192. package/lib/types/es6/RowSegmenting.d.ts +7 -2
  193. package/lib/types/es6/RowSelection.d.ts +8 -8
  194. package/lib/types/es6/TextFormatting.d.ts +1 -1
  195. package/lib/types/es6/index.d.ts +1 -0
  196. package/lib/versions.json +17 -16
  197. package/package.json +1 -1
  198. package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
  199. package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +0 -615
  200. package/lib/core/es6/grid/plugins/Plugin.d.ts +0 -28
  201. package/lib/core/es6/grid/plugins/Plugin.js +0 -272
  202. package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
  203. package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +0 -28
@@ -83,12 +83,12 @@ declare namespace CompositeGrid {
83
83
  formatter?: GridFormatter & CompositeGrid.ColumnFormatter,
84
84
  styles?: { [key: string]: string },
85
85
  classes?: { [key: string]: string },
86
+ stationary?: boolean,
86
87
  sortable?: boolean,
87
88
  sortBy?: string,
88
89
  sortLogic?: DataTable.SortLogic,
89
90
  sortingLogic?: DataTable.SortLogic,
90
- sorter?: DataTable.SortLogic,
91
- defaultSort?: SortableTitlePlugin.SortOrder
91
+ sorter?: DataTable.SortLogic
92
92
  };
93
93
 
94
94
  type DataModel = {
@@ -105,7 +105,7 @@ declare class CompositeGrid extends ElementWrapper {
105
105
 
106
106
  public getModel(): any;
107
107
 
108
- public getColumns(): (any)[];
108
+ public getColumns(): (any)[]|null;
109
109
 
110
110
  public addColumn(columnModel: any): void;
111
111
 
@@ -143,7 +143,7 @@ declare class CompositeGrid extends ElementWrapper {
143
143
 
144
144
  public autoResizeAllColumns(): void;
145
145
 
146
- public moveColumn(fromColIndex: number|(number)[], toColIndex: number): void;
146
+ public moveColumn(fromColIndex: number|(number)[], toColIndex: number): boolean;
147
147
 
148
148
  public freezeColumn(opt_colIndex?: number, pinnedRightColumns?: number): void;
149
149
 
@@ -151,17 +151,17 @@ declare class CompositeGrid extends ElementWrapper {
151
151
 
152
152
  public unpinColumn(columnList: string|(string)[]): void;
153
153
 
154
- public getPinnedColumns(): (string)[];
154
+ public getPinnedColumns(): (string)[]|null;
155
155
 
156
156
  public restorePinnedColumns(pinnedColumns: (string)[]): void;
157
157
 
158
158
  public addData(data: any|(any|any[])[], format?: string): void;
159
159
 
160
- public getDataView(): DataView;
160
+ public getDataView(): DataView|null;
161
161
 
162
- public getDataTable(): DataTable;
162
+ public getDataTable(): DataTable|null;
163
163
 
164
- public getDataRows(rowIndices: (number)[]): (any)[];
164
+ public getDataRows(rowIndices: (number)[]): (any)[]|null;
165
165
 
166
166
  public getColumnModel(colRef: number|string): any;
167
167
 
@@ -173,7 +173,7 @@ declare class CompositeGrid extends ElementWrapper {
173
173
 
174
174
  public getColumnIndex(columnId: string): number;
175
175
 
176
- public findColumnIndex(columnId: (string|number)[]|string, opt_includeNotFound?: boolean): (number)[]|number;
176
+ public findColumnIndex(columnId: (string|number)[]|string, opt_includeNotFound?: boolean): (number)[]|number|null;
177
177
 
178
178
  public getColumnCount(): number;
179
179
 
@@ -183,13 +183,13 @@ declare class CompositeGrid extends ElementWrapper {
183
183
 
184
184
  public collapseAllGroups(): void;
185
185
 
186
- public getGroupExpandingStates(): { [key: string]: boolean };
186
+ public getGroupExpandingStates(): { [key: string]: boolean }|null;
187
187
 
188
188
  public restoreGroupExpandingStates(states: any, opt_default?: boolean): void;
189
189
 
190
190
  public sortColumn(columnRef: string|number, direction: string): void;
191
191
 
192
- public getSortingStates(): (any)[];
192
+ public getSortingStates(): (any)[]|null;
193
193
 
194
194
  public restoreSortingStates(states: (any)[]): void;
195
195
 
@@ -213,17 +213,17 @@ declare class CompositeGrid extends ElementWrapper {
213
213
 
214
214
  public clearSelection(): void;
215
215
 
216
- public getSelectedRows(): (number)[];
216
+ public getSelectedRows(): (number)[]|null;
217
217
 
218
- public getSelectedDataRows(): (any)[];
218
+ public getSelectedDataRows(): (any)[]|null;
219
219
 
220
- public getSection(sectionRef: Core.SectionReference): ILayoutGrid;
220
+ public getSection(sectionRef: Core.SectionReference): ILayoutGrid|null;
221
221
 
222
- public addHeaderSection(sectionName: string): ILayoutGrid;
222
+ public addHeaderSection(sectionName: string): ILayoutGrid|null;
223
223
 
224
224
  public removeHeaderSection(sectionName: string): void;
225
225
 
226
- public addFooterSection(sectionName: string): ILayoutGrid;
226
+ public addFooterSection(sectionName: string): ILayoutGrid|null;
227
227
 
228
228
  public removeFooterSection(sectionName: string): void;
229
229
 
@@ -231,7 +231,7 @@ declare class CompositeGrid extends ElementWrapper {
231
231
 
232
232
  public scrollToColumn(colIndex: number, opt_leftOfView?: boolean): void;
233
233
 
234
- public getCoreGrid(): Core;
234
+ public getCoreGrid(): Core|null;
235
235
 
236
236
  public getRelativePosition(obj: ElementWrapper|Element|Event|MouseEvent): any;
237
237
 
@@ -271,6 +271,8 @@ declare class CompositeGrid extends ElementWrapper {
271
271
 
272
272
  public setScrollTop(px: number): void;
273
273
 
274
+ public requestRowRefresh(): void;
275
+
274
276
  public getConfigObject(gridOptions?: any): any;
275
277
 
276
278
  public setPagingState(currentPage: number, totalRows: number): void;
@@ -279,7 +281,7 @@ declare class CompositeGrid extends ElementWrapper {
279
281
 
280
282
  declare function tgtColModel(colIndex: number, name: string): void;
281
283
 
282
- declare function dataModel(): DataView;
284
+ declare function dataModel(): DataView|null;
283
285
 
284
286
  declare function colCount(columnIndex: number): string;
285
287
 
@@ -1,6 +1,7 @@
1
1
  import Ext from "../../../tr-grid-util/es6/Ext.js";
2
2
  import Util from "../Core/grid/util/util.js";
3
- import { Plugin, Core, ILayoutGrid } from "../Core/index.js";
3
+ import Plugin from "./Plugin.js";
4
+ import { Core, ILayoutGrid } from "../Core/index.js";
4
5
 
5
6
  declare class DragAndDropTitlePlugin extends Plugin {
6
7
 
@@ -1,6 +1,7 @@
1
1
  import Ext from "../../../tr-grid-util/es6/Ext.js";
2
2
  import Util from "../Core/grid/util/util.js";
3
- import { Plugin, ElementWrapper, Core } from "../Core/index.js";
3
+ import Plugin from "./Plugin.js";
4
+ import { ElementWrapper, Core } from "../Core/index.js";
4
5
 
5
6
  declare class DraggableContentPlugin extends Plugin {
6
7
 
@@ -14,7 +15,7 @@ declare class DraggableContentPlugin extends Plugin {
14
15
 
15
16
  public setDragContent(content: string|Element|ElementWrapper|any): void;
16
17
 
17
- public getDragBox(): ElementWrapper;
18
+ public getDragBox(): ElementWrapper|null;
18
19
 
19
20
  public getDragSource(): string;
20
21
 
@@ -0,0 +1,28 @@
1
+ import Ext from "../../../tr-grid-util/es6/Ext.js";
2
+ import Util from "../Core/grid/util/util.js";
3
+ import Core from "../Core/grid/Core.js"; // eslint-disable-line
4
+ import EventDispatcher from "../Core/grid/event/EventDispatcher.js";
5
+ import ElementWrapper from "../Core/grid/components/ElementWrapper.js"; // eslint-disable-line
6
+
7
+ declare class Plugin extends EventDispatcher {
8
+
9
+ constructor();
10
+
11
+ public getName(): string;
12
+
13
+ public initialize(owner: Core): void;
14
+
15
+ public unload(owner: Core): void;
16
+
17
+ public getRelativeGrid(e: Event|Element|ElementWrapper): Core|null;
18
+
19
+ public getGridElementFromPoint(x: number, y: number): Element|null;
20
+
21
+ }
22
+
23
+ declare function gridAPI(x: number, y: number): Element|null;
24
+
25
+ declare function to(e: any): void;
26
+
27
+ export default Plugin;
28
+ export { Plugin };
@@ -1,6 +1,7 @@
1
1
  import Ext from "../../../tr-grid-util/es6/Ext.js";
2
2
  import Util from "../Core/grid/util/util.js";
3
- import { Plugin, Core } from "../Core/index.js";
3
+ import Plugin from "./Plugin.js";
4
+ import { Core } from "../Core/index.js";
4
5
 
5
6
  declare class ResizableTitlePlugin extends Plugin {
6
7
 
@@ -1,6 +1,7 @@
1
1
  import Ext from "../../../tr-grid-util/es6/Ext.js";
2
2
  import Util from "../Core/grid/util/util.js";
3
- import { Plugin, Core, ILayoutGrid } from "../Core/index.js";
3
+ import Plugin from "./Plugin.js";
4
+ import { Core, ILayoutGrid } from "../Core/index.js";
4
5
 
5
6
  declare class RowSelectionPlugin extends Plugin {
6
7
 
@@ -8,7 +9,7 @@ declare class RowSelectionPlugin extends Plugin {
8
9
 
9
10
  public clearSelectedRows(opt_preserveAnchor?: boolean, opt_activeGrid?: Core): void;
10
11
 
11
- public getActiveGrid(): Core;
12
+ public getActiveGrid(): Core|null;
12
13
 
13
14
  public setActiveGrid(grid: Core): void;
14
15
 
@@ -16,9 +17,9 @@ declare class RowSelectionPlugin extends Plugin {
16
17
 
17
18
  public getRowAnchor(opt_sectRef?: Core.SectionReference): number;
18
19
 
19
- public getFirstSelectedIndex(opt_sectRef?: Core.SectionReference): number|null;
20
+ public getFirstSelectedIndex(opt_sectRef?: Core.SectionReference): number|null|null;
20
21
 
21
- public getSelectedRows(opt_sectRef?: Core.SectionReference): (number)[];
22
+ public getSelectedRows(opt_sectRef?: Core.SectionReference): (number)[]|null;
22
23
 
23
24
  public getSelectedRowCount(opt_sectRef?: Core.SectionReference): number;
24
25
 
@@ -1,6 +1,7 @@
1
1
  import Ext from "../../../tr-grid-util/es6/Ext.js";
2
2
  import Util from "../Core/grid/util/util.js";
3
- import { Plugin, SectionSettings, ILayoutGrid } from "../Core/index.js";
3
+ import Plugin from "./Plugin.js";
4
+ import { SectionSettings, ILayoutGrid } from "../Core/index.js";
4
5
 
5
6
  declare class TreeIndentingPlugin extends Plugin {
6
7
 
@@ -1,9 +1,9 @@
1
- // Composite grid
2
- import { CompositeGrid } from "./CompositeGrid.js";
3
-
4
-
5
-
6
- export {
7
- CompositeGrid
8
- };
9
-
1
+ // Composite grid
2
+ import { CompositeGrid } from "./CompositeGrid.js";
3
+
4
+
5
+
6
+ export {
7
+ CompositeGrid
8
+ };
9
+
@@ -3,6 +3,7 @@ import { GridPlugin } from '../../tr-grid-util/es6/GridPlugin.js';
3
3
  import { extendObject } from '../../tr-grid-util/es6/Util.js';
4
4
  import {CellPainter} from '../../tr-grid-util/es6/CellPainter.js';
5
5
  import {FilterBuilder} from '../../tr-grid-util/es6/FilterBuilder.js';
6
+ import {ElfUtil} from '../../tr-grid-util/es6/ElfUtil.js';
6
7
 
7
8
  declare namespace ConditionalColoringPlugin {
8
9
 
@@ -46,7 +47,7 @@ declare class ConditionalColoringPlugin extends GridPlugin {
46
47
 
47
48
  public getConfigObject(gridOptions?: any): any;
48
49
 
49
- public setColumnColoring(colIndex: number, columnOptions: ConditionalColoringPlugin.ColumnOptions): void;
50
+ public setColumnColoring(colIndex: number, columnOptions?: (ConditionalColoringPlugin.ColumnOptions|null)): void;
50
51
 
51
52
  public setColumnBlinking(colIndex: number, blinkingOptions?: (boolean|ConditionalColoringPlugin.Blinking), field?: string): void;
52
53
 
@@ -54,7 +55,7 @@ declare class ConditionalColoringPlugin extends GridPlugin {
54
55
 
55
56
  public blinkRow(rowIndex: number, blinkSignal: number, host?: any): void;
56
57
 
57
- public getColumnPainter(colIndex: number): CellPainter;
58
+ public getColumnPainter(colIndex: number): CellPainter|null;
58
59
 
59
60
  public applyColor(colIndex: number, cell: any, rowData?: any): void;
60
61
 
@@ -62,7 +63,7 @@ declare class ConditionalColoringPlugin extends GridPlugin {
62
63
 
63
64
  public static setThemeColors(colors: { [key: string]: string }): void;
64
65
 
65
- public reloadThemeColors(): Promise<any>;
66
+ public reloadThemeColors(): Promise<any>|null;
66
67
 
67
68
  }
68
69
 
@@ -14,7 +14,7 @@ declare class ColumnStats {
14
14
 
15
15
  public setColumnDataGetter(func: ((...params: any[]) => any)): void;
16
16
 
17
- public getColumnDataGetter(): ((...params: any[]) => any);
17
+ public getColumnDataGetter(): ((...params: any[]) => any)|null;
18
18
 
19
19
  public getSum(): number;
20
20
 
@@ -32,7 +32,7 @@ declare class ColumnStats {
32
32
 
33
33
  public getMidRange(): number;
34
34
 
35
- public getCachedColumnData(): (number)[];
35
+ public getCachedColumnData(): (number)[]|null;
36
36
 
37
37
  public markDirty(): boolean;
38
38
 
@@ -29,9 +29,9 @@ declare class DataCache extends EventDispatcher {
29
29
 
30
30
  public getData(rid: string, cid: string): any;
31
31
 
32
- public getAllRics(): { [key: string]: any };
32
+ public getAllRics(): { [key: string]: any }|null;
33
33
 
34
- public getAllRowIds(): (string)[];
34
+ public getAllRowIds(): (string)[]|null;
35
35
 
36
36
  public hasRowId(rid: string): boolean;
37
37
 
@@ -57,7 +57,7 @@ declare class DataCache extends EventDispatcher {
57
57
 
58
58
  public resetStaticFields(): void;
59
59
 
60
- public getStaticFields(): { [key: string]: number };
60
+ public getStaticFields(): { [key: string]: number }|null;
61
61
 
62
62
  public dump(options?: any): (any)[];
63
63
 
@@ -65,7 +65,7 @@ declare class DataCache extends EventDispatcher {
65
65
 
66
66
  public setDataCloudSettings(userId: string, productId: string, url: string, opt_lang?: string): void;
67
67
 
68
- public getDataCloudFields(): (string)[];
68
+ public getDataCloudFields(): (string)[]|null;
69
69
 
70
70
  public addDataCloudFields(fields: (string)[]|string): boolean;
71
71
 
@@ -51,9 +51,9 @@ declare class DataTable extends DataCache {
51
51
 
52
52
  public removeAllRows(suppressEvent?: boolean): void;
53
53
 
54
- public moveRow(fromIndex: (number)[]|number, toIndex: number, suppressEvent?: boolean): (string)[]|string;
54
+ public moveRow(fromIndex: (number)[]|number, toIndex: number, suppressEvent?: boolean): (string)[]|string|null;
55
55
 
56
- public moveRows(startIndex: number|string, toIndex: number|string, opt_count?: number, suppressEvent?: boolean): (string)[];
56
+ public moveRows(startIndex: number|string, toIndex: number|string, opt_count?: number, suppressEvent?: boolean): (string)[]|null;
57
57
 
58
58
  public swapRow(fromIndex: number, toIndex: number): void;
59
59
 
@@ -85,7 +85,7 @@ declare class DataTable extends DataCache {
85
85
 
86
86
  public getSegmentParentRowId(rid: string): string;
87
87
 
88
- public getSegmentValues(rids?: (string)[]): (number)[];
88
+ public getSegmentValues(rids?: (string)[]): (number)[]|null;
89
89
 
90
90
  public fillSegment(segmentId: string): void;
91
91
 
@@ -101,9 +101,9 @@ declare class DataTable extends DataCache {
101
101
 
102
102
  public removeAllSegmentChildren(): boolean;
103
103
 
104
- public getSegmentIds(): (string)[];
104
+ public getSegmentIds(): (string)[]|null;
105
105
 
106
- public getSegmentChildIds(segmentId: string): (string)[];
106
+ public getSegmentChildIds(segmentId: string): (string)[]|null;
107
107
 
108
108
  public sortSegments(compare: ((...params: any[]) => any)): void;
109
109
 
@@ -7,12 +7,6 @@ import EventDispatcher from "../grid/event/EventDispatcher.js";
7
7
  import Util from "../grid/util/util.js";
8
8
  import { Conflator } from "../../../../tr-grid-util/es6/Conflator.js";
9
9
 
10
- declare namespace DataView {
11
-
12
- type IDataView = DataTable|WrappedView|DataView;
13
-
14
- }
15
-
16
10
  declare class DataView extends EventDispatcher {
17
11
 
18
12
  constructor(source?: DataTable|DataView);
@@ -63,13 +57,13 @@ declare class DataView extends EventDispatcher {
63
57
 
64
58
  public removeRows(rowRefs: (number|string)[]): void;
65
59
 
66
- public moveRow(fromRef: (number|string)[]|number|string, toRef: number|string): (string)[]|string;
60
+ public moveRow(fromRef: (number|string)[]|number|string, toRef: number|string): (string)[]|string|null;
67
61
 
68
62
  public swapRow(fromIndex: number, toIndex: number): void;
69
63
 
70
- public getDataTable(): DataTable;
64
+ public getDataTable(): DataTable|null;
71
65
 
72
- public getDataSource(): DataTable|DataView;
66
+ public getDataSource(): DataTable|DataView|null;
73
67
 
74
68
  public setDataSource(source?: (DataTable|DataView)): void;
75
69
 
@@ -153,13 +147,13 @@ declare class DataView extends EventDispatcher {
153
147
 
154
148
  public removeFooter(): void;
155
149
 
156
- public getGroupByRowId(rowId: string): DataView;
150
+ public getGroupByRowId(rowId: string): DataView|null;
157
151
 
158
- public getGroup(groupRef: number|string): DataView;
152
+ public getGroup(groupRef: number|string): DataView|null;
159
153
 
160
154
  public getAllGroups(out_ary?: any[]): (DataView)[];
161
155
 
162
- public getGroupList(): (string)[];
156
+ public getGroupList(): (string)[]|null;
163
157
 
164
158
  public getGroupId(): string;
165
159
 
@@ -173,9 +167,9 @@ declare class DataView extends EventDispatcher {
173
167
 
174
168
  public getGroupLevel(rowRef?: (number|string)): number;
175
169
 
176
- public enableColumnStats(cid: string, opt_enabled?: boolean, opt_refId?: string): ColumnStats;
170
+ public enableColumnStats(cid: string, opt_enabled?: boolean, opt_refId?: string): ColumnStats|null;
177
171
 
178
- public getColumnStats(cid: string): ColumnStats;
172
+ public getColumnStats(cid: string): ColumnStats|null;
179
173
 
180
174
  public hide(opt_hidden?: boolean): boolean;
181
175
 
@@ -207,7 +201,7 @@ declare class DataView extends EventDispatcher {
207
201
 
208
202
  public removeAllRowExpansions(): void;
209
203
 
210
- public getExpansionParents(from?: number, to?: number): (string)[];
204
+ public getExpansionParents(from?: number, to?: number): (string)[]|null;
211
205
 
212
206
  public isRowExpansion(rid: string): boolean;
213
207
 
@@ -263,15 +257,15 @@ declare class DataView extends EventDispatcher {
263
257
 
264
258
  public removeAllSegmentChildren(): boolean;
265
259
 
266
- public getSegmentIds(): (string)[];
260
+ public getSegmentIds(): (string)[]|null;
267
261
 
268
- public getSegmentChildIds(segmentRef: string|number): (string)[];
262
+ public getSegmentChildIds(segmentRef: string|number): (string)[]|null;
269
263
 
270
264
  public sortSegments(compare: ((...params: any[]) => any)): void;
271
265
 
272
266
  public getWrapSize(): number;
273
267
 
274
- public getWrappedViews(): (WrappedView)[];
268
+ public getWrappedViews(): (WrappedView)[]|null;
275
269
 
276
270
  public wrapView(wrapSize?: number): void;
277
271
 
@@ -20,6 +20,8 @@ declare class Segment {
20
20
 
21
21
  public getChildIds(): (string)[];
22
22
 
23
+ public getChildCount(): number;
24
+
23
25
  public collapse(bool?: boolean): boolean;
24
26
 
25
27
  public expand(bool?: boolean): boolean;
@@ -18,9 +18,9 @@ declare class SegmentCollection {
18
18
 
19
19
  public getSegmentCount(): number;
20
20
 
21
- public getSegment(rid: string): Segment;
21
+ public getSegment(rid: string): Segment|null;
22
22
 
23
- public getSegments(): { [key: string]: Segment };
23
+ public getSegments(): { [key: string]: Segment }|null;
24
24
 
25
25
  public getSegmentIds(): (string)[];
26
26
 
@@ -50,7 +50,7 @@ declare class SegmentCollection {
50
50
 
51
51
  public fillSegments(rids: (string)[]): boolean;
52
52
 
53
- public getSegmentValues(rids: (string)[]): (number)[];
53
+ public getSegmentValues(rids: (string)[]): (number)[]|null;
54
54
 
55
55
  }
56
56
 
@@ -63,11 +63,11 @@ declare class WrappedView extends EventDispatcher {
63
63
 
64
64
  public removeRows(rowRefs: (number|string)[]): void;
65
65
 
66
- public moveRow(fromRef: (number|string)[]|number|string, toRef: number|string): (string)[]|string;
66
+ public moveRow(fromRef: (number|string)[]|number|string, toRef: number|string): (string)[]|string|null;
67
67
 
68
- public getDataTable(): DataTable;
68
+ public getDataTable(): DataTable|null;
69
69
 
70
- public getDataSource(): DataView;
70
+ public getDataSource(): DataView|null;
71
71
 
72
72
  public setDataSource(source?: DataView): void;
73
73
 
@@ -151,13 +151,13 @@ declare class WrappedView extends EventDispatcher {
151
151
 
152
152
  public removeFooter(): void;
153
153
 
154
- public getGroupByRowId(rowId: string): DataView;
154
+ public getGroupByRowId(rowId: string): DataView|null;
155
155
 
156
- public getGroup(groupRef: number|string): DataView;
156
+ public getGroup(groupRef: number|string): DataView|null;
157
157
 
158
158
  public getAllGroups(out_ary?: any[]): (DataView)[];
159
159
 
160
- public getGroupList(): (string)[];
160
+ public getGroupList(): (string)[]|null;
161
161
 
162
162
  public getGroupId(): string;
163
163
 
@@ -171,9 +171,9 @@ declare class WrappedView extends EventDispatcher {
171
171
 
172
172
  public getGroupLevel(rowRef?: (number|string)): number;
173
173
 
174
- public enableColumnStats(cid: string, opt_enabled?: boolean, opt_refId?: string): ColumnStats;
174
+ public enableColumnStats(cid: string, opt_enabled?: boolean, opt_refId?: string): ColumnStats|null;
175
175
 
176
- public getColumnStats(cid: string): ColumnStats;
176
+ public getColumnStats(cid: string): ColumnStats|null;
177
177
 
178
178
  public hide(opt_hidden?: boolean): boolean;
179
179
 
@@ -205,7 +205,7 @@ declare class WrappedView extends EventDispatcher {
205
205
 
206
206
  public removeAllRowExpansions(): void;
207
207
 
208
- public getExpansionParents(from?: number, to?: number): (string)[];
208
+ public getExpansionParents(from?: number, to?: number): (string)[]|null;
209
209
 
210
210
  public isRowExpansion(rid: string): boolean;
211
211
 
@@ -261,15 +261,15 @@ declare class WrappedView extends EventDispatcher {
261
261
 
262
262
  public removeAllSegmentChildren(): boolean;
263
263
 
264
- public getSegmentIds(): (string)[];
264
+ public getSegmentIds(): (string)[]|null;
265
265
 
266
- public getSegmentChildIds(segmentRef: string|number): (string)[];
266
+ public getSegmentChildIds(segmentRef: string|number): (string)[]|null;
267
267
 
268
268
  public sortSegments(compare: ((...params: any[]) => any)): void;
269
269
 
270
270
  public getWrapSize(): number;
271
271
 
272
- public getWrappedViews(): (WrappedView)[];
272
+ public getWrappedViews(): (WrappedView)[]|null;
273
273
 
274
274
  public wrapView(wrapSize?: number): void;
275
275
 
@@ -281,7 +281,7 @@ declare class WrappedView extends EventDispatcher {
281
281
 
282
282
  }
283
283
 
284
- declare function fromRids(): DataTable;
284
+ declare function fromRids(): DataTable|null;
285
285
 
286
286
  declare function complexData(opt_options?: any): void;
287
287