@refinitiv-ui/efx-grid 6.0.1 → 6.0.4

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 (268) 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 +226 -23
  8. package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +1 -1
  9. package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +1 -1
  10. package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +1 -1
  11. package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +1 -1
  12. package/lib/core/dist/core.css +1 -1
  13. package/lib/core/dist/core.js +17835 -16266
  14. package/lib/core/dist/core.min.js +1 -1
  15. package/lib/core/es6/data/ColumnStats.d.ts +2 -2
  16. package/lib/core/es6/data/DataCache.d.ts +4 -4
  17. package/lib/core/es6/data/DataTable.d.ts +5 -5
  18. package/lib/core/es6/data/DataTable.js +33 -11
  19. package/lib/core/es6/data/DataView.d.ts +26 -17
  20. package/lib/core/es6/data/DataView.js +172 -49
  21. package/lib/core/es6/data/Segment.d.ts +2 -0
  22. package/lib/core/es6/data/Segment.js +7 -0
  23. package/lib/core/es6/data/SegmentCollection.d.ts +3 -3
  24. package/lib/core/es6/data/WrappedView.d.ts +289 -0
  25. package/lib/core/es6/data/WrappedView.js +1319 -0
  26. package/lib/core/es6/grid/Core.d.ts +42 -27
  27. package/lib/core/es6/grid/Core.js +431 -163
  28. package/lib/core/es6/grid/ILayoutGrid.d.ts +23 -15
  29. package/lib/core/es6/grid/ILayoutGrid.js +45 -2
  30. package/lib/core/es6/grid/LayoutGrid.d.ts +10 -1
  31. package/lib/core/es6/grid/LayoutGrid.js +311 -108
  32. package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +10 -1
  33. package/lib/core/es6/grid/VirtualizedLayoutGrid.js +382 -24
  34. package/lib/core/es6/grid/components/Cell.d.ts +4 -4
  35. package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +1 -1
  36. package/lib/core/es6/grid/components/CellSpans.d.ts +8 -8
  37. package/lib/core/es6/grid/components/Column.d.ts +1 -1
  38. package/lib/core/es6/grid/components/Column.js +8 -2
  39. package/lib/core/es6/grid/components/ElementWrapper.d.ts +6 -6
  40. package/lib/core/es6/grid/components/HScrollbar.d.ts +4 -0
  41. package/lib/core/es6/grid/components/HScrollbar.js +20 -4
  42. package/lib/core/es6/grid/components/Scrollbar.d.ts +1 -1
  43. package/lib/core/es6/grid/components/StretchedCells.js +2 -2
  44. package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +14 -6
  45. package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +147 -81
  46. package/lib/core/es6/grid/util/Conflator.d.ts +2 -2
  47. package/lib/core/es6/grid/util/ElementFrameWork.d.ts +3 -3
  48. package/lib/core/es6/grid/util/HttpRequest.d.ts +2 -2
  49. package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +1 -1
  50. package/lib/core/es6/grid/util/RangeBar.d.ts +1 -1
  51. package/lib/core/es6/grid/util/SectionSettings.d.ts +5 -5
  52. package/lib/core/es6/grid/util/SectionSettings.js +5 -0
  53. package/lib/core/es6/grid/util/SelectionList.d.ts +2 -2
  54. package/lib/core/es6/grid/util/TrackLayout.d.ts +7 -3
  55. package/lib/core/es6/grid/util/TrackLayout.js +29 -3
  56. package/lib/core/es6/grid/util/util.d.ts +2 -2
  57. package/lib/core/es6/index.d.ts +1 -5
  58. package/lib/core/es6/index.js +1 -7
  59. package/lib/core/es6/tr-grid-theme.js +1 -1
  60. package/lib/filter-dialog/lib/checkbox-list.d.ts +13 -1
  61. package/lib/filter-dialog/lib/filter-dialog.d.ts +14 -1
  62. package/lib/filter-dialog/lib/filter-dialog.js +94 -32
  63. package/lib/filter-dialog/themes/base-checkbox.less +8 -1
  64. package/lib/filter-dialog/themes/base.less +69 -1
  65. package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
  66. package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
  67. package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
  68. package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
  69. package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
  70. package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
  71. package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
  72. package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
  73. package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
  74. package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
  75. package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
  76. package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
  77. package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
  78. package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
  79. package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
  80. package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
  81. package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
  82. package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
  83. package/lib/grid/lib/efx-grid.d.ts +30 -8
  84. package/lib/grid/lib/efx-grid.js +120 -115
  85. package/lib/grid/themes/base.less +5 -3
  86. package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
  87. package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
  88. package/lib/grid/themes/halo/efx-grid.less +72 -41
  89. package/lib/grid/themes/halo/light/efx-grid.js +1 -1
  90. package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
  91. package/lib/grid/themes/solar/charcoal/efx-grid.js +1 -1
  92. package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
  93. package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
  94. package/lib/grid/themes/solar/pearl/es5/all-elements.js +1 -1
  95. package/lib/index.d.ts +2 -0
  96. package/lib/index.js +2 -0
  97. package/lib/row-segmenting/es6/RowSegmenting.d.ts +8 -2
  98. package/lib/row-segmenting/es6/RowSegmenting.js +137 -21
  99. package/lib/rt-grid/dist/rt-grid.js +11017 -9193
  100. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  101. package/lib/rt-grid/es6/ColumnDefinition.d.ts +9 -4
  102. package/lib/rt-grid/es6/ColumnDefinition.js +20 -108
  103. package/lib/rt-grid/es6/DataConnector.d.ts +3 -3
  104. package/lib/rt-grid/es6/Grid.d.ts +30 -15
  105. package/lib/rt-grid/es6/Grid.js +436 -167
  106. package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
  107. package/lib/rt-grid/es6/RowDefSorter.js +137 -0
  108. package/lib/rt-grid/es6/RowDefinition.d.ts +12 -7
  109. package/lib/rt-grid/es6/RowDefinition.js +58 -2
  110. package/lib/rt-grid/es6/SnapshotFiller.d.ts +3 -1
  111. package/lib/rt-grid/es6/SnapshotFiller.js +23 -0
  112. package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +1 -1
  113. package/lib/tr-grid-cell-selection/es6/CellSelection.js +53 -40
  114. package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +6 -3
  115. package/lib/tr-grid-checkbox/es6/Checkbox.js +79 -34
  116. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +1 -0
  117. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +10 -0
  118. package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +5 -1
  119. package/lib/tr-grid-column-selection/es6/ColumnSelection.js +269 -10
  120. package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +8 -4
  121. package/lib/tr-grid-column-stack/es6/ColumnStack.js +243 -125
  122. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +1 -1
  123. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +24 -13
  124. package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +4 -2
  125. package/lib/tr-grid-filter-input/es6/FilterInput.js +73 -10
  126. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +8 -5
  127. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +106 -3
  128. package/lib/tr-grid-printer/es6/CellWriter.d.ts +3 -3
  129. package/lib/tr-grid-printer/es6/GridPrinter.d.ts +1 -1
  130. package/lib/tr-grid-printer/es6/GridPrinter.js +26 -13
  131. package/lib/tr-grid-printer/es6/PrintTrait.d.ts +2 -2
  132. package/lib/tr-grid-printer/es6/SectionWriter.d.ts +3 -3
  133. package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +3 -4
  134. package/lib/tr-grid-row-dragging/es6/RowDragging.js +108 -127
  135. package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +2 -0
  136. package/lib/tr-grid-row-filtering/es6/RowFiltering.js +88 -33
  137. package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +7 -2
  138. package/lib/tr-grid-row-grouping/es6/RowGrouping.js +138 -38
  139. package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +13 -9
  140. package/lib/tr-grid-row-selection/es6/RowSelection.js +230 -29
  141. package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +2 -0
  142. package/lib/tr-grid-rowcoloring/es6/RowColoring.js +36 -0
  143. package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +1 -1
  144. package/lib/tr-grid-textformatting/es6/TextFormatting.js +12 -0
  145. package/lib/tr-grid-util/es6/CellPainter.d.ts +8 -8
  146. package/lib/tr-grid-util/es6/Conflator.d.ts +2 -2
  147. package/lib/tr-grid-util/es6/CoralItems.d.ts +1 -1
  148. package/lib/tr-grid-util/es6/DateTime.d.ts +4 -4
  149. package/lib/tr-grid-util/es6/Delay.d.ts +1 -1
  150. package/lib/tr-grid-util/es6/Dom.d.ts +4 -4
  151. package/lib/tr-grid-util/es6/DragUI.d.ts +16 -0
  152. package/lib/tr-grid-util/es6/DragUI.js +214 -0
  153. package/lib/tr-grid-util/es6/ElementObserver.d.ts +2 -0
  154. package/lib/tr-grid-util/es6/ElementObserver.js +28 -1
  155. package/lib/tr-grid-util/es6/ElementWrapper.d.ts +1 -1
  156. package/lib/tr-grid-util/es6/ElfDate.d.ts +3 -3
  157. package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -4
  158. package/lib/tr-grid-util/es6/ElfUtil.js +1 -1
  159. package/lib/tr-grid-util/es6/EventDispatcher.d.ts +1 -1
  160. package/lib/tr-grid-util/es6/ExpanderIcon.js +2 -2
  161. package/lib/tr-grid-util/es6/FieldFormatter.d.ts +1 -1
  162. package/lib/tr-grid-util/es6/FieldFormatter.js +7 -5
  163. package/lib/tr-grid-util/es6/FilterBuilder.d.ts +5 -5
  164. package/lib/tr-grid-util/es6/GridPlugin.d.ts +3 -3
  165. package/lib/tr-grid-util/es6/GridPlugin.js +8 -4
  166. package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +1 -1
  167. package/lib/tr-grid-util/es6/MultiTableManager.d.ts +10 -2
  168. package/lib/tr-grid-util/es6/MultiTableManager.js +164 -57
  169. package/lib/tr-grid-util/es6/NumberFormatter.d.ts +2 -0
  170. package/lib/tr-grid-util/es6/NumberFormatter.js +64 -19
  171. package/lib/tr-grid-util/es6/PercentBar.d.ts +1 -1
  172. package/lib/tr-grid-util/es6/Perf.d.ts +4 -4
  173. package/lib/tr-grid-util/es6/Popup.d.ts +2 -2
  174. package/lib/tr-grid-util/es6/RequestQueue.d.ts +1 -1
  175. package/lib/tr-grid-util/es6/RowPainter.d.ts +3 -0
  176. package/lib/tr-grid-util/es6/RowPainter.js +120 -28
  177. package/lib/tr-grid-util/es6/SubTable.d.ts +9 -9
  178. package/lib/tr-grid-util/es6/Table.d.ts +13 -13
  179. package/lib/tr-grid-util/es6/TextHighlighter.d.ts +3 -3
  180. package/lib/tr-grid-util/es6/TickCodes.d.ts +2 -2
  181. package/lib/tr-grid-util/es6/TouchProxy.d.ts +1 -1
  182. package/lib/tr-grid-util/es6/Util.d.ts +6 -6
  183. package/lib/tr-grid-util/es6/formula/Engine.d.ts +5 -5
  184. package/lib/tr-grid-util/es6/formula/Formula.d.ts +3 -3
  185. package/lib/tr-grid-util/es6/formula/Formula.js +9 -1
  186. package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +1 -1
  187. package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +2 -2
  188. package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +4 -4
  189. package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +1 -1
  190. package/lib/tr-grid-util/es6/jet/MockJET.d.ts +4 -4
  191. package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +11 -11
  192. package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +7 -7
  193. package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +1 -1
  194. package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +1 -1
  195. package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
  196. package/lib/types/es6/CellSelection.d.ts +1 -1
  197. package/lib/types/es6/Checkbox.d.ts +6 -3
  198. package/lib/types/es6/ColumnGrouping.d.ts +1 -0
  199. package/lib/types/es6/ColumnSelection.d.ts +5 -1
  200. package/lib/types/es6/ColumnStack.d.ts +8 -4
  201. package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +3 -2
  202. package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +2 -1
  203. package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +20 -18
  204. package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +2 -1
  205. package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +3 -2
  206. package/lib/types/es6/CompositeGrid/Plugin.d.ts +28 -0
  207. package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +2 -1
  208. package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +5 -4
  209. package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +2 -1
  210. package/lib/types/es6/CompositeGrid/index.d.ts +9 -9
  211. package/lib/types/es6/ConditionalColoring.d.ts +1 -1
  212. package/lib/types/es6/Core/data/ColumnStats.d.ts +2 -2
  213. package/lib/types/es6/Core/data/DataCache.d.ts +4 -4
  214. package/lib/types/es6/Core/data/DataTable.d.ts +5 -5
  215. package/lib/types/es6/Core/data/DataView.d.ts +26 -17
  216. package/lib/types/es6/Core/data/Segment.d.ts +2 -0
  217. package/lib/types/es6/Core/data/SegmentCollection.d.ts +3 -3
  218. package/lib/types/es6/Core/data/WrappedView.d.ts +289 -0
  219. package/lib/types/es6/Core/grid/Core.d.ts +42 -27
  220. package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +23 -15
  221. package/lib/types/es6/Core/grid/LayoutGrid.d.ts +10 -1
  222. package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +10 -1
  223. package/lib/types/es6/Core/grid/components/Cell.d.ts +4 -4
  224. package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +1 -1
  225. package/lib/types/es6/Core/grid/components/CellSpans.d.ts +8 -8
  226. package/lib/types/es6/Core/grid/components/Column.d.ts +1 -1
  227. package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +6 -6
  228. package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +4 -0
  229. package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +1 -1
  230. package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +14 -6
  231. package/lib/types/es6/Core/grid/util/Conflator.d.ts +2 -2
  232. package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +3 -3
  233. package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +2 -2
  234. package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +1 -1
  235. package/lib/types/es6/Core/grid/util/RangeBar.d.ts +1 -1
  236. package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +5 -5
  237. package/lib/types/es6/Core/grid/util/SelectionList.d.ts +2 -2
  238. package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +7 -3
  239. package/lib/types/es6/Core/grid/util/util.d.ts +2 -2
  240. package/lib/types/es6/Core/index.d.ts +1 -5
  241. package/lib/types/es6/ExtensionOptions.d.ts +2 -0
  242. package/lib/types/es6/FilterInput.d.ts +4 -2
  243. package/lib/types/es6/InCellEditing.d.ts +8 -5
  244. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +9 -4
  245. package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +3 -3
  246. package/lib/types/es6/RealtimeGrid/Grid.d.ts +31 -16
  247. package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
  248. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +12 -7
  249. package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +3 -1
  250. package/lib/types/es6/RowColoring.d.ts +2 -0
  251. package/lib/types/es6/RowDragging.d.ts +3 -4
  252. package/lib/types/es6/RowFiltering.d.ts +2 -0
  253. package/lib/types/es6/RowGrouping.d.ts +7 -2
  254. package/lib/types/es6/RowSegmenting.d.ts +8 -2
  255. package/lib/types/es6/RowSelection.d.ts +13 -9
  256. package/lib/types/es6/TextFormatting.d.ts +1 -1
  257. package/lib/types/es6/Zoom.d.ts +2 -1
  258. package/lib/types/es6/index.d.ts +3 -0
  259. package/lib/versions.json +22 -21
  260. package/lib/zoom/es6/Zoom.d.ts +2 -1
  261. package/lib/zoom/es6/Zoom.js +11 -4
  262. package/package.json +7 -7
  263. package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
  264. package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +0 -615
  265. package/lib/core/es6/grid/plugins/Plugin.d.ts +0 -28
  266. package/lib/core/es6/grid/plugins/Plugin.js +0 -272
  267. package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
  268. package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +0 -28
@@ -5,7 +5,7 @@ declare class MockQuotes2 {
5
5
 
6
6
  constructor();
7
7
 
8
- public create(options?: any): MockSubscriptions;
8
+ public create(options?: any): MockSubscriptions|null;
9
9
 
10
10
  public isSkipHeaderSupported(): boolean;
11
11
 
@@ -15,7 +15,7 @@ declare class MockSubscriptions {
15
15
 
16
16
  constructor(options?: any);
17
17
 
18
- public create(options?: any): MockSubscriptions;
18
+ public create(options?: any): MockSubscriptions|null;
19
19
 
20
20
  public setUpdateInterval(min?: number, max?: number): void;
21
21
 
@@ -23,9 +23,9 @@ declare class MockSubscriptions {
23
23
 
24
24
  public setSeed(seed: number): void;
25
25
 
26
- public addRic(ric: string, subId?: string): string|null;
26
+ public addRic(ric: string, subId?: string): string|null|null;
27
27
 
28
- public addChain(ric: string, subId?: string): string|null;
28
+ public addChain(ric: string, subId?: string): string|null|null;
29
29
 
30
30
  public addFields(fields: string|(string)[]): void;
31
31
 
@@ -57,15 +57,15 @@ declare class MockSubscriptions {
57
57
 
58
58
  public getRic(subId: string): string;
59
59
 
60
- public getAllFields(): { [key: string]: boolean };
60
+ public getAllFields(): { [key: string]: boolean }|null;
61
61
 
62
62
  public hasField(field: string): boolean;
63
63
 
64
- public filter(start: number, count: number): MockSubscriptions;
64
+ public filter(start: number, count: number): MockSubscriptions|null;
65
65
 
66
66
  public static simpleDigest(str: string): number;
67
67
 
68
- public onFeedStatusChanged(feedNames: (string)[], handler: ((...params: any[]) => any)): MockSubscriptions;
68
+ public onFeedStatusChanged(feedNames: (string)[], handler: ((...params: any[]) => any)): MockSubscriptions|null;
69
69
 
70
70
  }
71
71
 
@@ -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 };
@@ -0,0 +1,223 @@
1
+ export declare namespace JSXInterface {
2
+ interface ControlHTMLAttributes<T> extends HTMLAttributes<T> {
3
+ accept?: string;
4
+ alt?: string;
5
+ autoComplete?: string;
6
+ autocomplete?: string;
7
+ autoFocus?: boolean;
8
+ autofocus?: boolean | string;
9
+ capture?: string;
10
+ checked?: boolean;
11
+ crossOrigin?: string;
12
+ crossorigin?: string;
13
+ disabled?: boolean;
14
+ form?: string;
15
+ formAction?: string;
16
+ formaction?: string;
17
+ formEncType?: string;
18
+ formenctype?: string;
19
+ formMethod?: string;
20
+ formmethod?: string;
21
+ formNoValidate?: boolean;
22
+ formnovalidate?: boolean;
23
+ formTarget?: string;
24
+ formtarget?: string;
25
+ height?: number | string;
26
+ list?: string;
27
+ max?: number | string;
28
+ maxLength?: number;
29
+ maxlength?: number | string;
30
+ min?: number | string;
31
+ minLength?: number;
32
+ minlength?: number | string;
33
+ multiple?: boolean;
34
+ name?: string;
35
+ pattern?: string;
36
+ placeholder?: string;
37
+ readOnly?: boolean;
38
+ readonly?: boolean | string;
39
+ required?: boolean;
40
+ size?: number;
41
+ src?: string;
42
+ step?: number | string;
43
+ type?: string;
44
+ value?: string | string[] | number;
45
+ width?: number | string;
46
+ }
47
+ interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
48
+ innerHTML?: string;
49
+ key?: string | number;
50
+ accessKey?: string;
51
+ class?: string | {
52
+ [className: string]: boolean;
53
+ };
54
+ contentEditable?: boolean | string;
55
+ contenteditable?: boolean | string;
56
+ contextMenu?: string;
57
+ contextmenu?: string;
58
+ dir?: string;
59
+ draggable?: boolean;
60
+ hidden?: boolean;
61
+ id?: string;
62
+ lang?: string;
63
+ spellCheck?: boolean;
64
+ spellcheck?: boolean | string;
65
+ style?: {
66
+ [key: string]: string | undefined;
67
+ };
68
+ tabIndex?: number;
69
+ tabindex?: number | string;
70
+ title?: string;
71
+ inputMode?: string;
72
+ inputmode?: string;
73
+ is?: string;
74
+ radioGroup?: string;
75
+ radiogroup?: string;
76
+ part?: string;
77
+ role?: string;
78
+ about?: string;
79
+ datatype?: string;
80
+ inlist?: any;
81
+ prefix?: string;
82
+ property?: string;
83
+ resource?: string;
84
+ typeof?: string;
85
+ vocab?: string;
86
+ autoCapitalize?: string;
87
+ autocapitalize?: string;
88
+ autoCorrect?: string;
89
+ autocorrect?: string;
90
+ autoSave?: string;
91
+ autosave?: string;
92
+ color?: string;
93
+ itemProp?: string;
94
+ itemprop?: string;
95
+ itemScope?: boolean;
96
+ itemscope?: boolean;
97
+ itemType?: string;
98
+ itemtype?: string;
99
+ itemID?: string;
100
+ itemid?: string;
101
+ itemRef?: string;
102
+ itemref?: string;
103
+ results?: number;
104
+ security?: string;
105
+ unselectable?: boolean;
106
+ }
107
+ interface DOMAttributes<T = Element> {
108
+ ref?: any;
109
+ slot?: string;
110
+ children?: any;
111
+ onCopy?: (event: ClipboardEvent) => void;
112
+ onCopyCapture?: (event: ClipboardEvent) => void;
113
+ onCut?: (event: ClipboardEvent) => void;
114
+ onCutCapture?: (event: ClipboardEvent) => void;
115
+ onPaste?: (event: ClipboardEvent) => void;
116
+ onPasteCapture?: (event: ClipboardEvent) => void;
117
+ onCompositionEnd?: (event: CompositionEvent) => void;
118
+ onCompositionEndCapture?: (event: CompositionEvent) => void;
119
+ onCompositionStart?: (event: CompositionEvent) => void;
120
+ onCompositionStartCapture?: (event: CompositionEvent) => void;
121
+ onCompositionUpdate?: (event: CompositionEvent) => void;
122
+ onCompositionUpdateCapture?: (event: CompositionEvent) => void;
123
+ onFocus?: (event: FocusEvent) => void;
124
+ onFocusCapture?: (event: FocusEvent) => void;
125
+ onBlur?: (event: FocusEvent) => void;
126
+ onBlurCapture?: (event: FocusEvent) => void;
127
+ onChange?: (event: Event) => void;
128
+ onChangeCapture?: (event: Event) => void;
129
+ onInput?: (event: Event) => void;
130
+ onInputCapture?: (event: Event) => void;
131
+ onReset?: (event: Event) => void;
132
+ onResetCapture?: (event: Event) => void;
133
+ onSubmit?: (event: Event) => void;
134
+ onSubmitCapture?: (event: Event) => void;
135
+ onInvalid?: (event: Event) => void;
136
+ onInvalidCapture?: (event: Event) => void;
137
+ onLoad?: (event: Event) => void;
138
+ onLoadCapture?: (event: Event) => void;
139
+ onError?: (event: Event) => void;
140
+ onErrorCapture?: (event: Event) => void;
141
+ onKeyDown?: (event: KeyboardEvent) => void;
142
+ onKeyDownCapture?: (event: KeyboardEvent) => void;
143
+ onKeyPress?: (event: KeyboardEvent) => void;
144
+ onKeyPressCapture?: (event: KeyboardEvent) => void;
145
+ onKeyUp?: (event: KeyboardEvent) => void;
146
+ onKeyUpCapture?: (event: KeyboardEvent) => void;
147
+ onAuxClick?: (event: MouseEvent) => void;
148
+ onClick?: (event: MouseEvent) => void;
149
+ onClickCapture?: (event: MouseEvent) => void;
150
+ onContextMenu?: (event: MouseEvent) => void;
151
+ onContextMenuCapture?: (event: MouseEvent) => void;
152
+ onDblClick?: (event: MouseEvent) => void;
153
+ onDblClickCapture?: (event: MouseEvent) => void;
154
+ onDrag?: (event: DragEvent) => void;
155
+ onDragCapture?: (event: DragEvent) => void;
156
+ onDragEnd?: (event: DragEvent) => void;
157
+ onDragEndCapture?: (event: DragEvent) => void;
158
+ onDragEnter?: (event: DragEvent) => void;
159
+ onDragEnterCapture?: (event: DragEvent) => void;
160
+ onDragExit?: (event: DragEvent) => void;
161
+ onDragExitCapture?: (event: DragEvent) => void;
162
+ onDragLeave?: (event: DragEvent) => void;
163
+ onDragLeaveCapture?: (event: DragEvent) => void;
164
+ onDragOver?: (event: DragEvent) => void;
165
+ onDragOverCapture?: (event: DragEvent) => void;
166
+ onDragStart?: (event: DragEvent) => void;
167
+ onDragStartCapture?: (event: DragEvent) => void;
168
+ onDrop?: (event: DragEvent) => void;
169
+ onDropCapture?: (event: DragEvent) => void;
170
+ onMouseDown?: (event: MouseEvent) => void;
171
+ onMouseDownCapture?: (event: MouseEvent) => void;
172
+ onMouseEnter?: (event: MouseEvent) => void;
173
+ onMouseLeave?: (event: MouseEvent) => void;
174
+ onMouseMove?: (event: MouseEvent) => void;
175
+ onMouseMoveCapture?: (event: MouseEvent) => void;
176
+ onMouseOut?: (event: MouseEvent) => void;
177
+ onMouseOutCapture?: (event: MouseEvent) => void;
178
+ onMouseOver?: (event: MouseEvent) => void;
179
+ onMouseOverCapture?: (event: MouseEvent) => void;
180
+ onMouseUp?: (event: MouseEvent) => void;
181
+ onMouseUpCapture?: (event: MouseEvent) => void;
182
+ onTouchCancel?: (event: TouchEvent) => void;
183
+ onTouchCancelCapture?: (event: TouchEvent) => void;
184
+ onTouchEnd?: (event: TouchEvent) => void;
185
+ onTouchEndCapture?: (event: TouchEvent) => void;
186
+ onTouchMove?: (event: TouchEvent) => void;
187
+ onTouchMoveCapture?: (event: TouchEvent) => void;
188
+ onTouchStart?: (event: TouchEvent) => void;
189
+ onTouchStartCapture?: (event: TouchEvent) => void;
190
+ onPointerDown?: (event: PointerEvent) => void;
191
+ onPointerDownCapture?: (event: PointerEvent) => void;
192
+ onPointerMove?: (event: PointerEvent) => void;
193
+ onPointerMoveCapture?: (event: PointerEvent) => void;
194
+ onPointerUp?: (event: PointerEvent) => void;
195
+ onPointerUpCapture?: (event: PointerEvent) => void;
196
+ onPointerCancel?: (event: PointerEvent) => void;
197
+ onPointerCancelCapture?: (event: PointerEvent) => void;
198
+ onPointerEnter?: (event: PointerEvent) => void;
199
+ onPointerEnterCapture?: (event: PointerEvent) => void;
200
+ onPointerLeave?: (event: PointerEvent) => void;
201
+ onPointerLeaveCapture?: (event: PointerEvent) => void;
202
+ onPointerOver?: (event: PointerEvent) => void;
203
+ onPointerOverCapture?: (event: PointerEvent) => void;
204
+ onPointerOut?: (event: PointerEvent) => void;
205
+ onPointerOutCapture?: (event: PointerEvent) => void;
206
+ onGotPointerCapture?: (event: PointerEvent) => void;
207
+ onGotPointerCaptureCapture?: (event: PointerEvent) => void;
208
+ onLostPointerCapture?: (event: PointerEvent) => void;
209
+ onLostPointerCaptureCapture?: (event: PointerEvent) => void;
210
+ onScroll?: (event: UIEvent) => void;
211
+ onScrollCapture?: (event: UIEvent) => void;
212
+ onWheel?: (event: WheelEvent) => void;
213
+ onWheelCapture?: (event: WheelEvent) => void;
214
+ onAnimationStart?: (event: AnimationEvent) => void;
215
+ onAnimationStartCapture?: (event: AnimationEvent) => void;
216
+ onAnimationEnd?: (event: AnimationEvent) => void;
217
+ onAnimationEndCapture?: (event: AnimationEvent) => void;
218
+ onAnimationIteration?: (event: AnimationEvent) => void;
219
+ onAnimationIterationCapture?: (event: AnimationEvent) => void;
220
+ onTransitionEnd?: (event: TransitionEvent) => void;
221
+ onTransitionEndCapture?: (event: TransitionEvent) => void;
222
+ }
223
+ }
@@ -53,7 +53,7 @@ declare class CellSelectionPlugin extends GridPlugin {
53
53
 
54
54
  public getAnchorInfo(): any;
55
55
 
56
- public getSelectedCells(): (any)[];
56
+ public getSelectedCells(): (any[])[];
57
57
 
58
58
  public disableSelection(opt_disable?: boolean): void;
59
59
 
@@ -1,7 +1,7 @@
1
1
  import {Ext} from '../../tr-grid-util/es6/Ext.js';
2
2
  import {GridPlugin} from '../../tr-grid-util/es6/GridPlugin.js';
3
3
  import {ElfUtil} from '../../tr-grid-util/es6/ElfUtil.js';
4
- import {injectCss, prettifyCss, extendObject} from "../../tr-grid-util/es6/Util.js";
4
+ import {injectCss, prettifyCss} from "../../tr-grid-util/es6/Util.js";
5
5
 
6
6
  declare namespace CheckboxPlugin {
7
7
 
@@ -12,7 +12,8 @@ declare namespace CheckboxPlugin {
12
12
  checkboxCreated?: ((...params: any[]) => any),
13
13
  checkboxBinding?: ((...params: any[]) => any),
14
14
  clicked?: ((...params: any[]) => any),
15
- width?: number
15
+ width?: number,
16
+ topCheckboxHandler?: boolean
16
17
  };
17
18
 
18
19
  type ColumnOptions = {
@@ -41,7 +42,7 @@ declare class CheckboxPlugin extends GridPlugin {
41
42
 
42
43
  public getDisplayColumn(): number;
43
44
 
44
- public getCheckbox(sectionRef: any, rowIndex: number): Element;
45
+ public getCheckbox(sectionRef: any, rowIndex: number): Element|null;
45
46
 
46
47
  public selectAll(): void;
47
48
 
@@ -51,6 +52,8 @@ declare class CheckboxPlugin extends GridPlugin {
51
52
 
52
53
  public setAllCheckStates(checked: boolean): void;
53
54
 
55
+ public selectAllPages(checked?: boolean): void;
56
+
54
57
  public disableCheckbox(rowRef: number|string, disabled: boolean): void;
55
58
 
56
59
  public enableCheckbox(rowRef: number|string): void;
@@ -1,5 +1,6 @@
1
1
  import { Ext } from "../../tr-grid-util/es6/Ext.js";
2
2
  import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
3
+ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
3
4
 
4
5
  declare namespace ColumnGroupingPlugin {
5
6
 
@@ -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 = {
@@ -9,6 +9,10 @@ import { preventDefault } from "../../tr-grid-util/es6/EventDispatcher.js";
9
9
 
10
10
  declare namespace ColumnStackPlugin {
11
11
 
12
+ type Options = {
13
+ fields: (string)[]
14
+ };
15
+
12
16
  type ColumnOptions = {
13
17
  stackId?: string,
14
18
  stack?: (string|StackOptions)
@@ -34,11 +38,11 @@ declare class ColumnStackPlugin extends GridPlugin {
34
38
 
35
39
  public getConfigObject(gridOptions?: any): any;
36
40
 
37
- public getMemberIndices(colIndex: number): (number)[];
41
+ public getMemberIndices(colIndex: number): (number)[]|null;
38
42
 
39
- public collapseGroup(colIndex: number, collapsed?: boolean): (number)[];
43
+ public collapseGroup(colIndex: number, collapsed?: boolean): (number)[]|null;
40
44
 
41
- public expandGroup(colIndex: number): (number)[];
45
+ public expandGroup(colIndex: number): (number)[]|null;
42
46
 
43
47
  public isColumnStackable(colIndices: (number)[]): boolean;
44
48
 
@@ -60,7 +64,7 @@ declare class ColumnStackPlugin extends GridPlugin {
60
64
 
61
65
  public getStackId(colIndex: number): string;
62
66
 
63
- public stackColumns(colIndices?: (number)[], stackId?: string, options?: any): boolean;
67
+ public stackColumns(colRefs?: (number|string)[], stackId?: string, options?: any): boolean;
64
68
 
65
69
  public setStack(colRefs: (number|string)[]): boolean;
66
70
 
@@ -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, ILayoutGrid, Core} from "../Core/index.js";
3
+ import Plugin from "./Plugin.js";
4
+ import { ILayoutGrid, Core} from "../Core/index.js";
4
5
 
5
6
  declare class ColumnSelectionPlugin extends Plugin {
6
7
 
@@ -28,7 +29,7 @@ declare class ColumnSelectionPlugin extends Plugin {
28
29
 
29
30
  public isSelectedColumn(colIndex: number): boolean;
30
31
 
31
- public getActiveGrid(): Core;
32
+ public getActiveGrid(): Core|null;
32
33
 
33
34
  public enableSingleSelectionMode(bool?: boolean): void;
34
35
 
@@ -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, Conflator } from "../Core/index.js";
3
+ import Plugin from "./Plugin.js";
4
+ import { Conflator } from "../Core/index.js";
4
5
  import TextWidthCalculator from "./TextWidthCalculator.js"
5
6
 
6
7
  declare class ColumnWidthAdjustingPlugin extends Plugin {
@@ -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