@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
@@ -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;
@@ -131,6 +131,13 @@ Segment.prototype.removeAllChildren = function(objMap) {
131
131
  Segment.prototype.getChildIds = function() {
132
132
  return this._childCount ? Object.keys(this._children) : [];
133
133
  };
134
+ /** @public
135
+ * @return {number}
136
+ */
137
+ Segment.prototype.getChildCount = function() {
138
+ return this._childCount;
139
+ };
140
+
134
141
 
135
142
 
136
143
  /** @public
@@ -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
 
@@ -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|null;
67
+
68
+ public getDataTable(): DataTable|null;
69
+
70
+ public getDataSource(): DataView|null;
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|null;
155
+
156
+ public getGroup(groupRef: number|string): DataView|null;
157
+
158
+ public getAllGroups(out_ary?: any[]): (DataView)[];
159
+
160
+ public getGroupList(): (string)[]|null;
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|null;
175
+
176
+ public getColumnStats(cid: string): ColumnStats|null;
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)[]|null;
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)[]|null;
265
+
266
+ public getSegmentChildIds(segmentRef: string|number): (string)[]|null;
267
+
268
+ public sortSegments(compare: ((...params: any[]) => any)): void;
269
+
270
+ public getWrapSize(): number;
271
+
272
+ public getWrappedViews(): (WrappedView)[]|null;
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|null;
285
+
286
+ declare function complexData(opt_options?: any): void;
287
+
288
+ export default WrappedView;
289
+ export { WrappedView };