@refinitiv-ui/efx-grid 6.0.5 → 6.0.7

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 (284) hide show
  1. package/lib/column-dragging/es6/ColumnDragging.d.ts +13 -11
  2. package/lib/column-dragging/es6/ColumnDragging.js +21 -15
  3. package/lib/column-format-dialog/lib/column-format-dialog.d.ts +1 -1
  4. package/lib/column-format-dialog/lib/column-format-dialog.js +3 -4
  5. package/lib/column-format-dialog/lib/preview-table.js +3 -4
  6. package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +2 -2
  7. package/lib/column-selection-dialog/lib/column-selection-dialog.js +23 -7
  8. package/lib/core/dist/core.css +1 -1
  9. package/lib/core/dist/core.js +456 -269
  10. package/lib/core/dist/core.min.js +1 -1
  11. package/lib/core/es6/data/ColumnStats.d.ts +3 -3
  12. package/lib/core/es6/data/DataCache.d.ts +9 -9
  13. package/lib/core/es6/data/DataTable.d.ts +28 -28
  14. package/lib/core/es6/data/DataTable.js +44 -11
  15. package/lib/core/es6/data/DataView.d.ts +62 -62
  16. package/lib/core/es6/data/DataView.js +42 -22
  17. package/lib/core/es6/data/Segment.d.ts +8 -4
  18. package/lib/core/es6/data/Segment.js +16 -0
  19. package/lib/core/es6/data/SegmentCollection.d.ts +9 -7
  20. package/lib/core/es6/data/SegmentCollection.js +38 -36
  21. package/lib/core/es6/data/WrappedView.d.ts +62 -62
  22. package/lib/core/es6/grid/Core.d.ts +95 -95
  23. package/lib/core/es6/grid/Core.js +173 -25
  24. package/lib/core/es6/grid/ILayoutGrid.d.ts +20 -20
  25. package/lib/core/es6/grid/ILayoutGrid.js +2 -1
  26. package/lib/core/es6/grid/LayoutGrid.d.ts +2 -2
  27. package/lib/core/es6/grid/LayoutGrid.js +18 -10
  28. package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +2 -2
  29. package/lib/core/es6/grid/VirtualizedLayoutGrid.js +14 -3
  30. package/lib/core/es6/grid/components/Cell.d.ts +6 -6
  31. package/lib/core/es6/grid/components/Cell.js +3 -0
  32. package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +4 -2
  33. package/lib/core/es6/grid/components/CellFloatingPanel.js +7 -0
  34. package/lib/core/es6/grid/components/CellSpans.d.ts +2 -2
  35. package/lib/core/es6/grid/components/Column.d.ts +2 -2
  36. package/lib/core/es6/grid/components/ElementWrapper.d.ts +19 -19
  37. package/lib/core/es6/grid/components/Scrollbar.d.ts +9 -9
  38. package/lib/core/es6/grid/components/StretchedCells.js +19 -5
  39. package/lib/core/es6/grid/event/EventDispatcher.d.ts +3 -3
  40. package/lib/core/es6/grid/event/EventListeners.d.ts +5 -5
  41. package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +45 -44
  42. package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +62 -65
  43. package/lib/core/es6/grid/util/Conflator.d.ts +4 -4
  44. package/lib/core/es6/grid/util/HttpRequest.d.ts +3 -3
  45. package/lib/core/es6/grid/util/PercentBar.d.ts +8 -8
  46. package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +8 -8
  47. package/lib/core/es6/grid/util/RangeBar.d.ts +1 -1
  48. package/lib/core/es6/grid/util/RangeBar.js +1 -1
  49. package/lib/core/es6/grid/util/Reverter.d.ts +1 -1
  50. package/lib/core/es6/grid/util/SectionSettings.d.ts +13 -13
  51. package/lib/core/es6/grid/util/SelectionList.d.ts +2 -2
  52. package/lib/core/es6/grid/util/TrackLayout.d.ts +9 -9
  53. package/lib/core/es6/grid/util/Virtualizer.d.ts +3 -3
  54. package/lib/core/es6/grid/util/util.d.ts +6 -4
  55. package/lib/core/es6/grid/util/util.js +16 -91
  56. package/lib/core/es6/index.d.ts +1 -0
  57. package/lib/core/es6/index.js +2 -0
  58. package/lib/core/es6/tr-grid-theme.js +1 -1
  59. package/lib/filter-dialog/lib/checkbox-list.d.ts +1 -1
  60. package/lib/filter-dialog/lib/filter-dialog.d.ts +1 -1
  61. package/lib/filter-dialog/lib/filter-dialog.js +27 -9
  62. package/lib/filter-dialog/themes/base-checkbox.less +0 -1
  63. package/lib/filter-dialog/themes/base.less +1 -1
  64. package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
  65. package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
  66. package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
  67. package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
  68. package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
  69. package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
  70. package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
  71. package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
  72. package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
  73. package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
  74. package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
  75. package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
  76. package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
  77. package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
  78. package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
  79. package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
  80. package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
  81. package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
  82. package/lib/formatters/es6/index.d.ts +1 -1
  83. package/lib/formatters/es6/index.js +1 -1
  84. package/lib/grid/index.js +1 -1
  85. package/lib/grid/lib/efx-grid.js +3 -0
  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 +5 -5
  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/row-segmenting/es6/RowSegmenting.d.ts +30 -24
  92. package/lib/row-segmenting/es6/RowSegmenting.js +122 -21
  93. package/lib/rt-grid/dist/rt-grid.js +689 -367
  94. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  95. package/lib/rt-grid/es6/ColumnDefinition.d.ts +46 -42
  96. package/lib/rt-grid/es6/ColumnDefinition.js +31 -1
  97. package/lib/rt-grid/es6/DataConnector.d.ts +6 -4
  98. package/lib/rt-grid/es6/DataConnector.js +8 -0
  99. package/lib/rt-grid/es6/FieldDefinition.d.ts +2 -2
  100. package/lib/rt-grid/es6/FieldDefinition.js +12 -5
  101. package/lib/rt-grid/es6/Grid.d.ts +102 -94
  102. package/lib/rt-grid/es6/Grid.js +70 -105
  103. package/lib/rt-grid/es6/ReferenceCounter.d.ts +5 -5
  104. package/lib/rt-grid/es6/RowDefSorter.d.ts +2 -2
  105. package/lib/rt-grid/es6/RowDefinition.d.ts +22 -22
  106. package/lib/rt-grid/es6/RowDefinition.js +12 -5
  107. package/lib/rt-grid/es6/SnapshotFiller.d.ts +3 -3
  108. package/lib/rt-grid/es6/StyleLoader.d.ts +1 -1
  109. package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +11 -11
  110. package/lib/tr-grid-cell-selection/es6/CellSelection.js +50 -54
  111. package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +18 -16
  112. package/lib/tr-grid-checkbox/es6/Checkbox.js +1 -0
  113. package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +29 -27
  114. package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +1 -0
  115. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +28 -14
  116. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +556 -11
  117. package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +2 -2
  118. package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1 -0
  119. package/lib/tr-grid-column-selection/es6/ColumnSelection.js +2 -3
  120. package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +15 -13
  121. package/lib/tr-grid-column-stack/es6/ColumnStack.js +96 -72
  122. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +11 -2
  123. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +309 -114
  124. package/lib/tr-grid-content-wrap/es6/ContentWrap.js +1 -6
  125. package/lib/tr-grid-contextmenu/es6/ContextMenu.js +3 -3
  126. package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +2 -2
  127. package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +2 -2
  128. package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +2 -1
  129. package/lib/tr-grid-heat-map/es6/HeatMap.js +6 -9
  130. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +5 -2
  131. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +311 -71
  132. package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +1 -1
  133. package/lib/tr-grid-percent-bar/es6/PercentBar.js +8 -11
  134. package/lib/tr-grid-printer/es6/SectionWriter.js +8 -0
  135. package/lib/tr-grid-range-bar/es6/RangeBar.js +3 -10
  136. package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +6 -0
  137. package/lib/tr-grid-row-dragging/es6/RowDragging.js +56 -23
  138. package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +4 -3
  139. package/lib/tr-grid-row-filtering/es6/RowFiltering.js +57 -13
  140. package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1 -1
  141. package/lib/tr-grid-row-selection/es6/RowSelection.js +2 -3
  142. package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +0 -2
  143. package/lib/tr-grid-rowcoloring/es6/RowColoring.js +1 -40
  144. package/lib/tr-grid-util/es6/CellPainter.d.ts +30 -30
  145. package/lib/tr-grid-util/es6/CellPainter.js +9 -8
  146. package/lib/tr-grid-util/es6/Conflator.d.ts +4 -4
  147. package/lib/tr-grid-util/es6/CoralItems.d.ts +1 -1
  148. package/lib/tr-grid-util/es6/DateTime.d.ts +10 -10
  149. package/lib/tr-grid-util/es6/Deferred.d.ts +3 -1
  150. package/lib/tr-grid-util/es6/Deferred.js +11 -1
  151. package/lib/tr-grid-util/es6/Delay.d.ts +2 -2
  152. package/lib/tr-grid-util/es6/Dom.d.ts +10 -10
  153. package/lib/tr-grid-util/es6/Dom.js +14 -10
  154. package/lib/tr-grid-util/es6/DragUI.js +5 -2
  155. package/lib/tr-grid-util/es6/ElementObserver.d.ts +2 -2
  156. package/lib/tr-grid-util/es6/ElementWrapper.d.ts +4 -4
  157. package/lib/tr-grid-util/es6/ElfDate.d.ts +5 -5
  158. package/lib/tr-grid-util/es6/ElfDate.js +1 -0
  159. package/lib/tr-grid-util/es6/ElfUtil.d.ts +10 -4
  160. package/lib/tr-grid-util/es6/ElfUtil.js +53 -4
  161. package/lib/tr-grid-util/es6/EventDispatcher.d.ts +5 -5
  162. package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +2 -2
  163. package/lib/tr-grid-util/es6/ExpanderIcon.js +1 -1
  164. package/lib/tr-grid-util/es6/Ext.d.ts +1 -1
  165. package/lib/tr-grid-util/es6/FieldFormatter.d.ts +12 -12
  166. package/lib/tr-grid-util/es6/FieldFormatter.js +1 -1
  167. package/lib/tr-grid-util/es6/FilterBuilder.d.ts +13 -13
  168. package/lib/tr-grid-util/es6/FilterBuilder.js +15 -8
  169. package/lib/tr-grid-util/es6/FilterOperators.d.ts +22 -22
  170. package/lib/tr-grid-util/es6/FilterOperators.js +3 -3
  171. package/lib/tr-grid-util/es6/GridPlugin.d.ts +10 -10
  172. package/lib/tr-grid-util/es6/GridPlugin.js +20 -0
  173. package/lib/tr-grid-util/es6/Icon.d.ts +3 -3
  174. package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +8 -8
  175. package/lib/tr-grid-util/es6/MultiTableManager.d.ts +6 -6
  176. package/lib/tr-grid-util/es6/NumberFormatter.d.ts +19 -19
  177. package/lib/tr-grid-util/es6/NumberFormatter.js +1 -1
  178. package/lib/tr-grid-util/es6/PercentBar.d.ts +19 -19
  179. package/lib/tr-grid-util/es6/Perf.d.ts +4 -4
  180. package/lib/tr-grid-util/es6/Popup.d.ts +36 -33
  181. package/lib/tr-grid-util/es6/Popup.js +19 -1
  182. package/lib/tr-grid-util/es6/RangeBar.d.ts +5 -5
  183. package/lib/tr-grid-util/es6/RequestQueue.d.ts +4 -4
  184. package/lib/tr-grid-util/es6/RowPainter.d.ts +37 -4
  185. package/lib/tr-grid-util/es6/RowPainter.js +199 -76
  186. package/lib/tr-grid-util/es6/SubTable.d.ts +14 -14
  187. package/lib/tr-grid-util/es6/Table.d.ts +25 -25
  188. package/lib/tr-grid-util/es6/TextHighlighter.d.ts +1 -1
  189. package/lib/tr-grid-util/es6/Timer.d.ts +1 -1
  190. package/lib/tr-grid-util/es6/TouchProxy.d.ts +9 -9
  191. package/lib/tr-grid-util/es6/Util.d.ts +12 -12
  192. package/lib/tr-grid-util/es6/formula/ADCService.d.ts +1 -1
  193. package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +1 -1
  194. package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +1 -1
  195. package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +1 -1
  196. package/lib/tr-grid-util/es6/formula/Engine.d.ts +9 -9
  197. package/lib/tr-grid-util/es6/formula/Formula.d.ts +4 -4
  198. package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +1 -1
  199. package/lib/tr-grid-util/es6/formula/Realtime.d.ts +3 -3
  200. package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +1 -1
  201. package/lib/tr-grid-util/es6/formula/TSIService.d.ts +1 -1
  202. package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +1 -1
  203. package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +1 -1
  204. package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +1 -1
  205. package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +34 -34
  206. package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +1 -1
  207. package/lib/tr-grid-util/es6/jet/MockJET.d.ts +4 -4
  208. package/lib/tr-grid-util/es6/jet/MockJET.js +12 -4
  209. package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +9 -9
  210. package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +17 -9
  211. package/lib/tr-grid-util/es6/jet/MockQuotes2.js +84 -24
  212. package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +42 -2
  213. package/lib/tr-grid-util/es6/jet/MockRTK.js +55 -16
  214. package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +2 -2
  215. package/lib/tr-grid-util/es6/jet/mockDataAPI.js +99 -1
  216. package/lib/types/es6/CellSelection.d.ts +11 -11
  217. package/lib/types/es6/Checkbox.d.ts +18 -16
  218. package/lib/types/es6/ColumnFormatting.d.ts +29 -27
  219. package/lib/types/es6/ColumnGrouping.d.ts +28 -14
  220. package/lib/types/es6/ColumnResizing.d.ts +2 -2
  221. package/lib/types/es6/ColumnStack.d.ts +15 -13
  222. package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +4 -2
  223. package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +0 -1
  224. package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +1 -1
  225. package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +1 -1
  226. package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +1 -5
  227. package/lib/types/es6/CompositeGrid/Plugin.d.ts +3 -1
  228. package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +2 -1
  229. package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +2 -1
  230. package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +1 -1
  231. package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +0 -1
  232. package/lib/types/es6/ConditionalColoring.d.ts +11 -2
  233. package/lib/types/es6/Core/data/ColumnStats.d.ts +3 -3
  234. package/lib/types/es6/Core/data/DataCache.d.ts +9 -9
  235. package/lib/types/es6/Core/data/DataTable.d.ts +28 -28
  236. package/lib/types/es6/Core/data/DataView.d.ts +62 -62
  237. package/lib/types/es6/Core/data/Segment.d.ts +8 -4
  238. package/lib/types/es6/Core/data/SegmentCollection.d.ts +9 -7
  239. package/lib/types/es6/Core/data/WrappedView.d.ts +62 -62
  240. package/lib/types/es6/Core/grid/Core.d.ts +95 -95
  241. package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +20 -20
  242. package/lib/types/es6/Core/grid/LayoutGrid.d.ts +2 -2
  243. package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +2 -2
  244. package/lib/types/es6/Core/grid/components/Cell.d.ts +6 -6
  245. package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +2 -2
  246. package/lib/types/es6/Core/grid/components/CellSpans.d.ts +2 -2
  247. package/lib/types/es6/Core/grid/components/Column.d.ts +2 -2
  248. package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +19 -19
  249. package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +9 -9
  250. package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +3 -3
  251. package/lib/types/es6/Core/grid/event/EventListeners.d.ts +5 -5
  252. package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +45 -44
  253. package/lib/types/es6/Core/grid/util/Conflator.d.ts +4 -4
  254. package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +3 -3
  255. package/lib/types/es6/Core/grid/util/PercentBar.d.ts +8 -8
  256. package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +8 -8
  257. package/lib/types/es6/Core/grid/util/RangeBar.d.ts +1 -1
  258. package/lib/types/es6/Core/grid/util/Reverter.d.ts +1 -1
  259. package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +13 -13
  260. package/lib/types/es6/Core/grid/util/SelectionList.d.ts +2 -2
  261. package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +9 -9
  262. package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +3 -3
  263. package/lib/types/es6/Core/grid/util/util.d.ts +6 -4
  264. package/lib/types/es6/Core/index.d.ts +1 -0
  265. package/lib/types/es6/HeatMap.d.ts +2 -1
  266. package/lib/types/es6/InCellEditing.d.ts +5 -2
  267. package/lib/types/es6/MenuEventAPI.d.ts +2 -2
  268. package/lib/types/es6/MenuItem.d.ts +2 -2
  269. package/lib/types/es6/PercentBar.d.ts +1 -1
  270. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +46 -42
  271. package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +6 -4
  272. package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +2 -2
  273. package/lib/types/es6/RealtimeGrid/Grid.d.ts +100 -92
  274. package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +5 -5
  275. package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +2 -2
  276. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +22 -22
  277. package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +3 -3
  278. package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +1 -1
  279. package/lib/types/es6/RowColoring.d.ts +0 -2
  280. package/lib/types/es6/RowDragging.d.ts +6 -0
  281. package/lib/types/es6/RowFiltering.d.ts +4 -3
  282. package/lib/types/es6/RowSegmenting.d.ts +30 -24
  283. package/lib/versions.json +27 -27
  284. package/package.json +2 -2
@@ -792,45 +792,65 @@ DataView.prototype.isSorting = function() {
792
792
 
793
793
  /** Hide rows in the data view
794
794
  * @param {string|number} rId Row id to hide. If the rId is a number, it will be treated as a row index
795
- * @param {boolean=} opt_show show if false
795
+ * @param {boolean=} hidden=true If the value is false, the specified row will be shown.
796
796
  * @public
797
797
  */
798
- DataView.prototype.hideRow = function(rId, opt_show) {
799
- this.showRows([rId], opt_show === false);
798
+ DataView.prototype.hideRow = function(rId, hidden) {
799
+ this.hideRows([rId], hidden);
800
800
  };
801
801
  /** Hide rows in the data view
802
802
  * @param {Array.<string|number>} rowRefs Array of row ids or indices to hide
803
- * @param {boolean=} opt_show show if false
803
+ * @param {boolean=} hidden=true If the value is false, the specified rows will be shown.
804
804
  * @public
805
805
  */
806
- DataView.prototype.hideRows = function(rowRefs, opt_show) {
807
- this.showRows(rowRefs, opt_show === false);
808
- };
809
- /**
810
- * Show/hide rows in the data view
811
- * @param {Array.<string|number>} rowRefs Array of row ids or indices to hide
812
- * @param {boolean=} opt_show hide instead show if false
813
- * @public
814
- */
815
- DataView.prototype.showRows = function(rowRefs, opt_show) {
816
- var hidden = opt_show === false;
806
+ DataView.prototype.hideRows = function(rowRefs, hidden) {
807
+ hidden = hidden !== false;
808
+ var dirty = false;
809
+ var rids = this._toRowIds(rowRefs);
810
+ var hiddenRids = this._hiddenRids;
811
+
817
812
  if(hidden){
818
- if(!this._hiddenRids) {
819
- this._hiddenRids = {};
813
+ if(!hiddenRids) {
814
+ hiddenRids = this._hiddenRids = {};
820
815
  }
821
- } else if(!this._hiddenRids) {
816
+ } else if(!hiddenRids) {
822
817
  return; // All rows are visible
823
818
  }
824
819
 
825
- var rids = this._toRowIds(rowRefs);
826
820
  for(var i = rids.length; --i >= 0;) {
827
821
  var rid = rids[i];
828
822
  if(rid) { // undefined, null, and an empty string value are not a valid row id
829
- this._hiddenRids[rid] = hidden;
823
+ if(!!hiddenRids[rid] !== hidden) {
824
+ hiddenRids[rid] = hidden;
825
+ dirty = true;
826
+ }
830
827
  }
831
828
  }
832
829
 
833
- this._refreshAndNotify(); // Very slow
830
+ if(dirty) {
831
+ if(!hidden) {
832
+ var hasHiddenRow = false;
833
+ for(var key in hiddenRids) {
834
+ if(hiddenRids[key]) {
835
+ hasHiddenRow = true;
836
+ break;
837
+ }
838
+ }
839
+ if(!hasHiddenRow) {
840
+ hiddenRids = this._hiddenRids = null;
841
+ }
842
+ }
843
+ this._refreshAndNotify(); // Very slow
844
+ }
845
+ };
846
+ /**
847
+ * Show/hide rows in the data view
848
+ * @param {Array.<string|number>} rowRefs Array of row ids or indices to hide
849
+ * @param {boolean=} shown=true If the value is false, the specified rows will be hidden.
850
+ * @public
851
+ */
852
+ DataView.prototype.showRows = function(rowRefs, shown) {
853
+ this.hideRows(rowRefs, shown === false);
834
854
  };
835
855
  /** Unhide all rows
836
856
  * @public
@@ -846,7 +866,7 @@ DataView.prototype.unhideAllRows = function(){
846
866
  * @return {boolean}
847
867
  */
848
868
  DataView.prototype.hasHiddenRow = function(){
849
- return !!this._hiddenRids;
869
+ return this._hiddenRids ? true : false;
850
870
  };
851
871
 
852
872
  /** @public
@@ -8,13 +8,13 @@ declare class Segment {
8
8
 
9
9
  public addChild(rid: string, objMap?: any): boolean;
10
10
 
11
- public addChildren(rids: (string)[], objMap?: any): boolean;
11
+ public addChildren(rids: (string)[]|null, objMap?: any): boolean;
12
12
 
13
13
  public containsChild(rid: string): boolean;
14
14
 
15
15
  public removeChild(rid: string, objMap?: any): boolean;
16
16
 
17
- public removeChildren(rids: (string)[], objMap?: any): boolean;
17
+ public removeChildren(rids: (string)[]|null, objMap?: any): boolean;
18
18
 
19
19
  public removeAllChildren(objMap?: any): boolean;
20
20
 
@@ -22,9 +22,9 @@ declare class Segment {
22
22
 
23
23
  public getChildCount(): number;
24
24
 
25
- public collapse(bool?: boolean): boolean;
25
+ public collapse(bool?: boolean|null): boolean;
26
26
 
27
- public expand(bool?: boolean): boolean;
27
+ public expand(bool?: boolean|null): boolean;
28
28
 
29
29
  public isCollapsed(): boolean;
30
30
 
@@ -34,6 +34,10 @@ declare class Segment {
34
34
 
35
35
  public setValue(val: number): void;
36
36
 
37
+ public getOrder(): number;
38
+
39
+ public setOrder(val: number): void;
40
+
37
41
  }
38
42
 
39
43
  export default Segment;
@@ -27,6 +27,10 @@ Segment.prototype._collapsed = false;
27
27
  * @private
28
28
  */
29
29
  Segment.prototype._value = 0;
30
+ /** @type {number}
31
+ * @private
32
+ */
33
+ Segment.prototype._order = 0;
30
34
 
31
35
 
32
36
  /** @public
@@ -194,6 +198,18 @@ Segment.prototype.getValue = function() {
194
198
  Segment.prototype.setValue = function(val) {
195
199
  this._value = val;
196
200
  };
201
+ /** @public
202
+ * @return {number}
203
+ */
204
+ Segment.prototype.getOrder = function() {
205
+ return this._order;
206
+ };
207
+ /** @public
208
+ * @param {number} val
209
+ */
210
+ Segment.prototype.setOrder = function(val) {
211
+ this._order = val;
212
+ };
197
213
 
198
214
 
199
215
  export default Segment;
@@ -6,7 +6,7 @@ declare class SegmentCollection {
6
6
 
7
7
  public addSegment(rid: string): boolean;
8
8
 
9
- public addSegments(rids: (string)[]): boolean;
9
+ public addSegments(rids: (string)[]|null): boolean;
10
10
 
11
11
  public containsSegment(rid: string): boolean;
12
12
 
@@ -24,9 +24,9 @@ declare class SegmentCollection {
24
24
 
25
25
  public getSegmentIds(): (string)[];
26
26
 
27
- public collapseSegment(segmentId: string, bool?: boolean): boolean;
27
+ public collapseSegment(segmentId: string, bool?: boolean|null): boolean;
28
28
 
29
- public expandSegment(segmentId: string, bool?: boolean): boolean;
29
+ public expandSegment(segmentId: string, bool?: boolean|null): boolean;
30
30
 
31
31
  public expandAllSegments(): boolean;
32
32
 
@@ -36,19 +36,21 @@ declare class SegmentCollection {
36
36
 
37
37
  public addSegmentChild(segmentId: string, rid: string): boolean;
38
38
 
39
- public addSegmentChildren(segmentId: string, rids: (string)[]): boolean;
39
+ public addSegmentChildren(segmentId: string, rids: (string)[]|null): boolean;
40
40
 
41
41
  public containsSegmentChild(segmentId: string, rid: string): boolean;
42
42
 
43
43
  public removeSegmentChild(segmentId: string, rid: string): boolean;
44
44
 
45
- public removeSegmentChildren(segmentId: string, rids: (string)[]): boolean;
45
+ public removeSegmentChildren(segmentId: string, rids: (string)[]|null): boolean;
46
46
 
47
47
  public removeAllSegmentChildren(): boolean;
48
48
 
49
- public fillSegment(segmentId: string, rids: (string)[]): void;
49
+ public fillSegment(segmentId: string, rids: (string)[]|null): void;
50
50
 
51
- public fillSegments(rids: (string)[]): boolean;
51
+ public fillSegments(rids: (string)[]|null): boolean;
52
+
53
+ public calcSegmentOrder(rids: (string)[]|null): void;
52
54
 
53
55
  public getSegmentValues(rids: (string)[]): (number)[]|null;
54
56
 
@@ -38,6 +38,7 @@ SegmentCollection.prototype.addSegment = function(rid) {
38
38
  if(rid && !this._segments[rid]) {
39
39
  if(this._childToSegmentId[rid]) {
40
40
  console.log("child of a segment cannot be set as a segment separator");
41
+ return false;
41
42
  }
42
43
  this._segments[rid] = new Segment(rid);
43
44
  ++this._segmentCount;
@@ -368,8 +369,27 @@ SegmentCollection.prototype.fillSegments = function(rids) {
368
369
  return change;
369
370
  };
370
371
  /** @public
372
+ * @param {Array.<string>} rids
373
+ */
374
+ SegmentCollection.prototype.calcSegmentOrder = function(rids) {
375
+ var ridCount = rids ? rids.length : 0;
376
+ var segmentSeparators = this._segments;
377
+ var segmentCount = this._segmentCount;
378
+ var order = 0;
379
+ for(var i = 0; i < ridCount; ++i) {
380
+ var rid = rids[i];
381
+ var segment = segmentSeparators[rid];
382
+ if(segment) {
383
+ segment.setOrder(++order);
384
+ if(order >= segmentCount) {
385
+ break;
386
+ }
387
+ }
388
+ }
389
+ };
390
+ /** @public
371
391
  * @param {!Array.<string>} rids Array of row ids
372
- * @return {Array.<number>} Returns Array of segment values, if there are at least two segments, otherwise returns null
392
+ * @return {Array.<number>} Returns Array of segment values, if there are at least one segment, otherwise returns null
373
393
  */
374
394
  SegmentCollection.prototype.getSegmentValues = function(rids) {
375
395
  var rowCount = rids ? rids.length : 0;
@@ -379,51 +399,33 @@ SegmentCollection.prototype.getSegmentValues = function(rids) {
379
399
  var segmentSeparators = this._segments;
380
400
  var childToSegmentId = this._childToSegmentId;
381
401
  var curSegment = null;
402
+ var prevSegment = null;
382
403
  var segmentValues = new Array(rowCount);
383
- var curSegmentCount = 0;
384
404
  var segmentVal = 0;
385
- var r = 0;
386
- var childToIndex = {};
387
- while(r < rowCount) {
405
+ var offset = 0;
406
+ for(var r = 0; r < rowCount; ++r) {
388
407
  var rid = rids[r];
389
- if(segmentSeparators[rid]) {
390
- ++curSegmentCount;
391
- curSegment = segmentSeparators[rid];
392
- segmentVal += 100;
393
- segmentValues[r] = segmentVal;
394
- curSegment.setValue(segmentVal);
395
- if(curSegmentCount >= this._segmentCount) {
396
- ++r;
397
- break;
398
- }
408
+ curSegment = segmentSeparators[rid];
409
+ if(curSegment) {
410
+ offset = 0;
399
411
  } else {
400
- if(curSegmentCount) {
401
- segmentValues[r] = segmentVal + 10;
412
+ var parentId = childToSegmentId[rid];
413
+ if(parentId) {
414
+ curSegment = segmentSeparators[parentId];
415
+ offset = 1;
402
416
  } else {
403
- segmentValues[r] = 0;
404
- }
405
- if(childToSegmentId[rid]) {
406
- childToIndex[rid] = r;
417
+ offset = prevSegment ? 10 : 0;
407
418
  }
408
419
  }
409
- ++r;
410
- }
411
- if(curSegmentCount) {
412
- while(r < rowCount) {
413
- rid = rids[r];
414
- segmentValues[r] = segmentVal + 10;
415
- if(childToSegmentId[rid]) {
416
- childToIndex[rid] = r;
417
- }
418
- ++r;
419
- }
420
- for(var childId in childToIndex) {
421
- curSegment = segmentSeparators[childToSegmentId[childId]];
422
- segmentValues[childToIndex[childId]] = curSegment.getValue() + 1;
420
+
421
+ if(curSegment && prevSegment !== curSegment) {
422
+ prevSegment = curSegment;
423
+ segmentVal = curSegment.getOrder() * 100;
423
424
  }
425
+ segmentValues[r] = segmentVal + offset;
424
426
  }
425
427
 
426
- return curSegmentCount ? segmentValues : null;
428
+ return prevSegment ? segmentValues : null;
427
429
  };
428
430
 
429
431
 
@@ -7,7 +7,7 @@ import ColumnStats from "./ColumnStats.js"; // eslint-disable-line
7
7
  declare namespace WrappedView {
8
8
 
9
9
  type Options = {
10
- dataView: DataView,
10
+ dataView: DataView|null,
11
11
  wrapIndex: number
12
12
  };
13
13
 
@@ -15,7 +15,7 @@ declare namespace WrappedView {
15
15
 
16
16
  declare class WrappedView extends EventDispatcher {
17
17
 
18
- constructor(options: WrappedView.Options);
18
+ constructor(options: WrappedView.Options|null);
19
19
 
20
20
  public dispose(): void;
21
21
 
@@ -23,15 +23,15 @@ declare class WrappedView extends EventDispatcher {
23
23
 
24
24
  public getRowData(rid: string): { [key: string]: any };
25
25
 
26
- public getColumnData(cid: string, inclNonDataRow?: boolean): any[];
26
+ public getColumnData(cid: string, inclNonDataRow?: boolean|null): any[];
27
27
 
28
28
  public getRowId(rowIndex: number): string;
29
29
 
30
- public getAllRowIds(shallowCopy?: boolean, inclNonDataRow?: boolean): (string)[];
30
+ public getAllRowIds(shallowCopy?: boolean|null, inclNonDataRow?: boolean|null): (string)[];
31
31
 
32
- public getVisibleRowIds(shallowCopy?: boolean): (string)[];
32
+ public getVisibleRowIds(shallowCopy?: boolean|null): (string)[];
33
33
 
34
- public getSortedRowIds(shallowCopy?: boolean): (string)[];
34
+ public getSortedRowIds(shallowCopy?: boolean|null): (string)[];
35
35
 
36
36
  public getRowIndex(rid: string): number;
37
37
 
@@ -43,69 +43,69 @@ declare class WrappedView extends EventDispatcher {
43
43
 
44
44
  public getPreviousData(rid: string, cid: string): { [key: string]: any };
45
45
 
46
- public getMultipleRowData(rids: (string)[], opt_from?: number, opt_to?: number): (any)[];
46
+ public getMultipleRowData(rids: (string)[]|null, opt_from?: number|null, opt_to?: number|null): (any)[];
47
47
 
48
48
  public getAllRowData(): (any)[];
49
49
 
50
50
  public setData(rid: string, cid: string, value: any): boolean;
51
51
 
52
- public setRowData(rid: string, values?: { [key: string]: any }, opt_eventArg?: any): boolean;
52
+ public setRowData(rid: string, values?: { [key: string]: any }|null, opt_eventArg?: any): boolean;
53
53
 
54
- public setColumnData(cid: string, valueList: any[], opt_ridList?: (string)[]): void;
54
+ public setColumnData(cid: string, valueList: any[]|null, opt_ridList?: (string)[]|null): void;
55
55
 
56
56
  public setDataAt(rowIndex: number, cid: string, value: any): boolean;
57
57
 
58
- public setRowDataAt(rowIndex: number, values?: { [key: string]: any }, opt_eventArg?: any): boolean;
58
+ public setRowDataAt(rowIndex: number, values?: { [key: string]: any }|null, opt_eventArg?: any): boolean;
59
59
 
60
- public insertRow(rowRef: string|number, opt_values?: { [key: string]: any }, opt_rid?: string|null): string;
60
+ public insertRow(rowRef: string|number|null, opt_values?: { [key: string]: any }|null, opt_rid?: string|null|null): string;
61
61
 
62
- public removeRow(rowRef: number|string): void;
62
+ public removeRow(rowRef: number|string|null): void;
63
63
 
64
- public removeRows(rowRefs: (number|string)[]): void;
64
+ public removeRows(rowRefs: (number|string)[]|null): void;
65
65
 
66
- public moveRow(fromRef: (number|string)[]|number|string, toRef: number|string): (string)[]|string|null;
66
+ public moveRow(fromRef: (number|string)[]|number|string|null, toRef: number|string|null): (string)[]|string|null;
67
67
 
68
68
  public getDataTable(): DataTable|null;
69
69
 
70
70
  public getDataSource(): DataView|null;
71
71
 
72
- public setDataSource(source?: DataView): void;
72
+ public setDataSource(source?: DataView|null): void;
73
73
 
74
74
  public setConflationRate(milliSecond: number): void;
75
75
 
76
76
  public getConflationRate(): number;
77
77
 
78
- public sort(cid: string|(string)[], opt_sortOrder?: string|number|(string|number)[], sortLogics?: ((...params: any[]) => any)|(((...params: any[]) => any))[], noOptimization?: boolean): void;
78
+ public sort(cid: string|(string)[]|null, opt_sortOrder?: string|number|(string|number)[]|null, sortLogics?: ((...params: any[]) => any)|(((...params: any[]) => any))[]|null, noOptimization?: boolean|null): void;
79
79
 
80
- public sortOnce(cid: string|(string)[], opt_sortOrder?: string|number|(string|number)[]): void;
80
+ public sortOnce(cid: string|(string)[]|null, opt_sortOrder?: string|number|(string|number)[]|null): void;
81
81
 
82
- public setSortingLogic(func: DataTable.SortLogic): void;
82
+ public setSortingLogic(func: DataTable.SortLogic|null): void;
83
83
 
84
- public setColumnSortingLogic(cid: string, func: DataTable.SortLogic): void;
84
+ public setColumnSortingLogic(cid: string, func: DataTable.SortLogic|null): void;
85
85
 
86
86
  public isSorting(): boolean;
87
87
 
88
- public hideRow(rId: string|number, opt_show?: boolean): void;
88
+ public hideRow(rId: string|number|null, opt_show?: boolean|null): void;
89
89
 
90
- public hideRows(rowRefs: (string|number)[], opt_show?: boolean): void;
90
+ public hideRows(rowRefs: (string|number)[]|null, opt_show?: boolean|null): void;
91
91
 
92
- public showRows(rowRefs: (string|number)[], opt_show?: boolean): void;
92
+ public showRows(rowRefs: (string|number)[]|null, opt_show?: boolean|null): void;
93
93
 
94
94
  public unhideAllRows(): void;
95
95
 
96
96
  public hasHiddenRow(): boolean;
97
97
 
98
- public filterIn(cid: string|((...params: any[]) => any), value?: any, opt_filteringOut?: boolean): boolean;
98
+ public filterIn(cid: string|((...params: any[]) => any), value?: any, opt_filteringOut?: boolean|null): boolean;
99
99
 
100
100
  public filterOut(cid: string|((...params: any[]) => any), value?: any): boolean;
101
101
 
102
- public filterInOnce(cid: string|((...params: any[]) => any), value?: any, opt_filteringOut?: boolean): void;
102
+ public filterInOnce(cid: string|((...params: any[]) => any)|null, value?: any, opt_filteringOut?: boolean|null): void;
103
103
 
104
104
  public filterOutOnce(cid: string|((...params: any[]) => any), value?: any): void;
105
105
 
106
106
  public clearFilter(): void;
107
107
 
108
- public disablePageCorrection(opt_disable?: boolean): void;
108
+ public disablePageCorrection(opt_disable?: boolean|null): void;
109
109
 
110
110
  public setPage(pageIndex: number): boolean;
111
111
 
@@ -137,25 +137,25 @@ declare class WrappedView extends EventDispatcher {
137
137
 
138
138
  public setPageSize(pageSize: number): void;
139
139
 
140
- public groupBy(cid: string|((...params: any[]) => any)|(string|((...params: any[]) => any))[], opt_predefinedGroups?: any[]): void;
140
+ public groupBy(cid: string|((...params: any[]) => any)|(string|((...params: any[]) => any))[]|null, opt_predefinedGroups?: any[]|null): void;
141
141
 
142
142
  public addGroup(value: any|any[]): void;
143
143
 
144
- public sortGroups(compare?: ((...params: any[]) => any)): void;
144
+ public sortGroups(compare?: ((...params: any[]) => any)|null): void;
145
145
 
146
- public moveGroup(groupRef: number|string, destIndex: number): void;
146
+ public moveGroup(groupRef: number|string|null, destIndex: number): void;
147
147
 
148
- public setPredefinedGroups(predefinedGroups: any[]): void;
148
+ public setPredefinedGroups(predefinedGroups: any[]|null): void;
149
149
 
150
- public addFooter(opt_num?: number): void;
150
+ public addFooter(opt_num?: number|null): void;
151
151
 
152
152
  public removeFooter(): void;
153
153
 
154
154
  public getGroupByRowId(rowId: string): DataView|null;
155
155
 
156
- public getGroup(groupRef: number|string): DataView|null;
156
+ public getGroup(groupRef: number|string|null): DataView|null;
157
157
 
158
- public getAllGroups(out_ary?: any[]): (DataView)[];
158
+ public getAllGroups(out_ary?: any[]|null): (DataView)[];
159
159
 
160
160
  public getGroupList(): (string)[]|null;
161
161
 
@@ -169,67 +169,67 @@ declare class WrappedView extends EventDispatcher {
169
169
 
170
170
  public getGroupRows(): null;
171
171
 
172
- public getGroupLevel(rowRef?: (number|string)): number;
172
+ public getGroupLevel(rowRef?: (number|string)|null): number;
173
173
 
174
- public enableColumnStats(cid: string, opt_enabled?: boolean, opt_refId?: string): ColumnStats|null;
174
+ public enableColumnStats(cid: string, opt_enabled?: boolean|null, opt_refId?: string|null): ColumnStats|null;
175
175
 
176
176
  public getColumnStats(cid: string): ColumnStats|null;
177
177
 
178
- public hide(opt_hidden?: boolean): boolean;
178
+ public hide(opt_hidden?: boolean|null): boolean;
179
179
 
180
180
  public isHidden(): boolean;
181
181
 
182
182
  public isHiddenRow(rowId: string): boolean;
183
183
 
184
- public collapse(opt_collapsed?: boolean): void;
184
+ public collapse(opt_collapsed?: boolean|null): void;
185
185
 
186
- public collapseAllGroups(opt_collapsed?: boolean): void;
186
+ public collapseAllGroups(opt_collapsed?: boolean|null): void;
187
187
 
188
188
  public toggleCollapsedState(): void;
189
189
 
190
190
  public isCollapsed(): boolean;
191
191
 
192
- public enableContentAsHeader(bool?: boolean): void;
192
+ public enableContentAsHeader(bool?: boolean|null): void;
193
193
 
194
194
  public getVisibleRowCount(): number;
195
195
 
196
- public isRowDataInGroup(rowData: any, groupID?: string): boolean;
196
+ public isRowDataInGroup(rowData: any, groupID?: string|null): boolean;
197
197
 
198
- public isRowIdInGroup(rowId: string, groupID?: string): boolean;
198
+ public isRowIdInGroup(rowId: string, groupID?: string|null): boolean;
199
199
 
200
- public addRowExpansion(rid: string, count?: number): void;
200
+ public addRowExpansion(rid: string, count?: number|null): void;
201
201
 
202
202
  public removeRowExpansion(rid: string): void;
203
203
 
204
- public toggleRowExpansion(rowRef: string|number, force?: boolean, count?: number): void;
204
+ public toggleRowExpansion(rowRef: string|number|null, force?: boolean|null, count?: number|null): void;
205
205
 
206
206
  public removeAllRowExpansions(): void;
207
207
 
208
- public getExpansionParents(from?: number, to?: number): (string)[]|null;
208
+ public getExpansionParents(from?: number|null, to?: number|null): (string)[]|null;
209
209
 
210
210
  public isRowExpansion(rid: string): boolean;
211
211
 
212
212
  public hasRowExpansion(rid: string): boolean;
213
213
 
214
- public getRowExpansionId(rid: string, idx?: number): string;
214
+ public getRowExpansionId(rid: string, idx?: number|null): string;
215
215
 
216
216
  public getRowExpansionIndex(rid: string): number;
217
217
 
218
- public searchAll(searchLogic: ((...params: any[]) => any), opt_out?: (string)[]): (string)[];
218
+ public searchAll(searchLogic: ((...params: any[]) => any)|null, opt_out?: (string)[]|null): (string)[];
219
219
 
220
- public searchPrev(rowRef: number|string, searchLogic: ((...params: any[]) => any)): number;
220
+ public searchPrev(rowRef: number|string|null, searchLogic: ((...params: any[]) => any)|null): number;
221
221
 
222
- public searchNext(rowRef: number|string, searchLogic: ((...params: any[]) => any)): number;
222
+ public searchNext(rowRef: number|string|null, searchLogic: ((...params: any[]) => any)|null): number;
223
223
 
224
- public stall(opt_bool?: boolean): boolean;
224
+ public stall(opt_bool?: boolean|null): boolean;
225
225
 
226
- public enableAutoGroupRemoval(opt_bool?: boolean): boolean;
226
+ public enableAutoGroupRemoval(opt_bool?: boolean|null): boolean;
227
227
 
228
- public enableAutoGroupHiding(opt_bool?: boolean): boolean;
228
+ public enableAutoGroupHiding(opt_bool?: boolean|null): boolean;
229
229
 
230
230
  public synchronizeRowOrder(): void;
231
231
 
232
- public setSegmentSeparator(rowRef: string|number, enabled?: boolean): boolean;
232
+ public setSegmentSeparator(rowRef: string|number|null, enabled?: boolean|null): boolean;
233
233
 
234
234
  public unsetAllSegmentSeparators(): boolean;
235
235
 
@@ -239,39 +239,39 @@ declare class WrappedView extends EventDispatcher {
239
239
 
240
240
  public getSegmentParentRowId(rid: string): string;
241
241
 
242
- public collapseSegment(rowRef: string|number, collapsed?: boolean): boolean;
242
+ public collapseSegment(rowRef: string|number|null, collapsed?: boolean|null): boolean;
243
243
 
244
- public expandSegment(rowRef: string|number, expanded?: boolean): boolean;
244
+ public expandSegment(rowRef: string|number|null, expanded?: boolean|null): boolean;
245
245
 
246
246
  public expandAllSegments(): boolean;
247
247
 
248
- public isSegmentCollapsed(rowRef: string|number): boolean;
248
+ public isSegmentCollapsed(rowRef: string|number|null): boolean;
249
249
 
250
- public fillSegment(segmentRef: string|number): void;
250
+ public fillSegment(segmentRef: string|number|null): void;
251
251
 
252
252
  public fillSegments(): void;
253
253
 
254
- public addSegmentChild(segmentRef: string|number, rowRef: string|number): boolean;
254
+ public addSegmentChild(segmentRef: string|number|null, rowRef: string|number|null): boolean;
255
255
 
256
- public addSegmentChildren(segmentRef: string|number, rowRefs: (string|number)[]): boolean;
256
+ public addSegmentChildren(segmentRef: string|number|null, rowRefs: (string|number)[]|null): boolean;
257
257
 
258
- public removeSegmentChild(segmentRef: string|number, rowRef: string|number): boolean;
258
+ public removeSegmentChild(segmentRef: string|number|null, rowRef: string|number|null): boolean;
259
259
 
260
- public removeSegmentChildren(segmentRef: string|number, rowRefs: (string|number)[]): boolean;
260
+ public removeSegmentChildren(segmentRef: string|number|null, rowRefs: (string|number)[]|null): boolean;
261
261
 
262
262
  public removeAllSegmentChildren(): boolean;
263
263
 
264
264
  public getSegmentIds(): (string)[]|null;
265
265
 
266
- public getSegmentChildIds(segmentRef: string|number): (string)[]|null;
266
+ public getSegmentChildIds(segmentRef: string|number|null): (string)[]|null;
267
267
 
268
- public sortSegments(compare: ((...params: any[]) => any)): void;
268
+ public sortSegments(compare: ((...params: any[]) => any)|null): void;
269
269
 
270
270
  public getWrapSize(): number;
271
271
 
272
272
  public getWrappedViews(): (WrappedView)[]|null;
273
273
 
274
- public wrapView(wrapSize?: number): void;
274
+ public wrapView(wrapSize?: number|null): void;
275
275
 
276
276
  public dump(opt_options?: any): (any)[];
277
277