@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
@@ -104,7 +104,7 @@ SortableTitlePlugin.ColumnOptions;
104
104
  * @property {(boolean|number)=} multiColumn=false Alias to `multicolumn`
105
105
  * @property {boolean=} threeStatesSorting=false If enabled, sorting will cycle through ascending, descending and original order states. This option is deprecated in favor of sortingSequence option
106
106
  * @property {Object.<string, DataTable.SortLogic>=} sortLogic=null Custom logic for sorting based on the specified field. The key is field name and the value pair is a function.
107
- * @property {boolean=} disableDoubleClickToSort=false If enabled, double click on column title to sort
107
+ * @property {boolean=} disableDoubleClickToSort=true If disabled, double click will trigger sorting operation
108
108
  * @property {boolean=} sortableColumns=false If enabled, all columns will be sortable by field automatically
109
109
  * @property {boolean=} sortableIndicator=false If enabled, sort indicator (diamond) icon will always show regardless of sorting states. In Halo theme, this option will be enabled by default.
110
110
  * @property {boolean=} indicatorOnly=false If enabled, data will not be sorted, but the UI is rendered normally. This is useful for server side sorting.
@@ -114,7 +114,8 @@ SortableTitlePlugin.ColumnOptions;
114
114
  * @property {Function=} preClicked A shortcut to define the preClicked event handler
115
115
  * @property {Function=} clicked A shortcut to define the clicked event handler
116
116
  * @property {Function=} preDataSorting A shortcut to define the preDataSorting event handler
117
- * @property {Array.<SortableTitlePlugin~SortOrder>=} sortingSequence=["a", "d"] Sequence in which sort order will be changed. The default value is ["a", "d"]. This option override threeStatesSorting
117
+ * @property {Array.<SortableTitlePlugin~SortOrder>=} sortingSequence=["a", "d"] Sequence in which sort order will be changed. The default value is ["a", "d"]. This option overrides threeStatesSorting
118
+ * @property {boolean=} rowSorting=false A flag indicating that the given sortLogic takes entire row data instead of a field value for comparison
118
119
  */
119
120
  SortableTitlePlugin.Options;
120
121
 
@@ -143,7 +144,7 @@ SortableTitlePlugin.prototype._dataSorting = true;
143
144
  /** @private
144
145
  * @type {boolean}
145
146
  */
146
- SortableTitlePlugin.prototype._isDisableDoubleClickToSort = true;
147
+ SortableTitlePlugin.prototype._dblClickAllowed = false;
147
148
 
148
149
  /** @private
149
150
  * @type {number}
@@ -286,19 +287,20 @@ SortableTitlePlugin.prototype.unload = function (host) {
286
287
  SortableTitlePlugin.prototype.afterInit = function () {
287
288
  var t = this;
288
289
 
289
- // Data source not available during initialization
290
+ // Set logic to the data source, since the data source not available during the initialization
290
291
  t.setSortLogics(t._sortLogic);
291
292
 
292
- // Sort columns if initialSort are specified initially
293
- if (t._initialSort != null) {
294
- var initialSort = t._initialSort;
295
- if (!Array.isArray(initialSort)) {
296
- initialSort = [initialSort];
297
- }
298
- if (t._maxCount === 1) {
299
- initialSort = initialSort.slice(0, 1); // Ensure only 1 item is sorted in non-multiColumn mode
293
+ var userInput = t._initialSort;
294
+ if (userInput != null) {
295
+ if(Array.isArray(userInput)) {
296
+ if(t._maxCount === 1) { // TODO: max count could be part of sortColumns method
297
+ t.sortColumns(userInput.slice(0, 1));
298
+ } else {
299
+ t.sortColumns(userInput);
300
+ }
301
+ } else {
302
+ t.sortColumns([userInput]);
300
303
  }
301
- t.sortColumns(initialSort);
302
304
  }
303
305
  };
304
306
 
@@ -476,7 +478,9 @@ SortableTitlePlugin.prototype.getConfigObject = function (gridOptions) {
476
478
  if(this._maxCount !== 1) {
477
479
  extOptions["multiColumn"] = this._maxCount === -1 ? true : this._maxCount;
478
480
  }
479
- extOptions["disableDoubleClickToSort"] = this._isDisableDoubleClickToSort;
481
+ if(this._dblClickAllowed) {
482
+ extOptions["disableDoubleClickToSort"] = !this._dblClickAllowed;
483
+ }
480
484
  extOptions["sortableColumns"] = this._sortableColumns;
481
485
  extOptions["indicatorOnly"] = !this._dataSorting;
482
486
  // extOptions["mode"] = this._mode;
@@ -849,9 +853,10 @@ SortableTitlePlugin.prototype.getColumnSortingField = function (colIndex) {
849
853
  * @public
850
854
  * @param {number} colIndex
851
855
  * @param {string|null} field A field used for sorting
852
- * @param {Function=} sortLogic
856
+ * @param {Function=} sortLogic=null
857
+ * @param {boolean=} rowSorting=false A flag indicating that the given sortLogic takes entire row data instead of a field value for comparison
853
858
  */
854
- SortableTitlePlugin.prototype.setColumnSortingField = function (colIndex, field, sortLogic) {
859
+ SortableTitlePlugin.prototype.setColumnSortingField = function (colIndex, field, sortLogic, rowSorting) {
855
860
  if (typeof colIndex == "number" && field != null) {
856
861
  var options = this._newSortOptions(colIndex);
857
862
  if (!field) {
@@ -863,6 +868,9 @@ SortableTitlePlugin.prototype.setColumnSortingField = function (colIndex, field,
863
868
  if(sortLogic != null && !this._userManagedLogic) {
864
869
  if (options["sortLogic"] !== sortLogic) {
865
870
  options["sortLogic"] = sortLogic || null;
871
+ if(rowSorting && sortLogic) {
872
+ sortLogic["rowSorting"] = true; // Tell data view/table about the argument
873
+ }
866
874
  }
867
875
  }
868
876
  }
@@ -962,10 +970,10 @@ SortableTitlePlugin.prototype.disableDataSorting = function (disabled) {
962
970
  };
963
971
  /** @public
964
972
  * @description To allow double click action to sort. Default value is false.
965
- * @param {boolean=} disabled
973
+ * @param {boolean=} disabled=false
966
974
  */
967
975
  SortableTitlePlugin.prototype.disableDoubleClickToSort = function (disabled) {
968
- this._isDisableDoubleClickToSort = !!disabled;
976
+ this._dblClickAllowed = !disabled;
969
977
  };
970
978
  /** This api is deprecated. Use {@link SortableTitlePlugin.prototype.disableColumnSorting} instead
971
979
  * @public
@@ -1011,54 +1019,26 @@ SortableTitlePlugin.prototype.setClickDelayInterval = function (opt_ms) {
1011
1019
  this._delayInterval = (opt_ms != null) ? opt_ms : 500;
1012
1020
  };
1013
1021
 
1014
- /** @private
1015
- * @description Pre-process columns options to support both composite and rt-grid backward compatible
1016
- * @param {number} colIndex
1017
- * @param {Object} options
1018
- * @returns {Object}
1019
- */
1020
- SortableTitlePlugin.prototype._prepareColumnOptions = function (colIndex, options) {
1021
- var t = this;
1022
- var column = options || {};
1023
- var colOption = {
1024
- "colIndex": colIndex,
1025
- "field": column["field"],
1026
- "sortable": !!t._sortableColumns
1027
- };
1028
-
1029
- if (column["sortBy"] != null) { // composite grid option
1030
- colOption["sortable"] = !!column["sortBy"];
1031
- colOption["sortBy"] = column["sortBy"];
1032
- }
1033
- if (column["sortable"] != null) { // rt grid option
1034
- colOption["sortable"] = !!column["sortable"];
1035
- }
1036
-
1037
- colOption["sortLogic"] = column["sortLogic"] || column["sortingLogic"] || column["sorter"]; // Originally, rt grid support option for sortLogic by column
1038
- colOption["sort"] = column["defaultSort"] || column["sort"]; // composite and rt grid option for default sort order
1039
- return colOption;
1040
- };
1041
-
1042
1022
  /** @private
1043
1023
  * @description Get initial sort from column option `defaultSort` or `sort`
1044
1024
  * @param {Object} options Core model object
1045
1025
  * @returns {Object}
1046
1026
  */
1047
1027
  SortableTitlePlugin.prototype._initialSortByColumnField = function (options) {
1048
- var t = this;
1049
- var columns = options["columns"] || [];
1050
- var initialSort = null;
1051
- for (var i = 0; i < columns.length; i++) {
1052
- var col = t._prepareColumnOptions(i, columns[i]);
1053
- var val = col["sort"];
1054
- if (val) {
1055
- initialSort = {
1056
- "colIndex": col["colIndex"],
1057
- "sortOrder": val
1028
+ var columns = options["columns"];
1029
+ var colCount = columns ? columns.length : 0;
1030
+ for (var i = 0; i < colCount; i++) {
1031
+ var column = columns[i];
1032
+ var sortOrder = column["defaultSort"] || column["sort"]; // composite and rt grid option for default sort order
1033
+ if (sortOrder) {
1034
+ // TODO: Support multi-column sorting
1035
+ return {
1036
+ "colIndex": i,
1037
+ "sortOrder": sortOrder
1058
1038
  };
1059
1039
  }
1060
1040
  }
1061
- return initialSort;
1041
+ return null;
1062
1042
  };
1063
1043
 
1064
1044
  /** @private
@@ -1169,7 +1149,7 @@ SortableTitlePlugin.prototype._onClickTitle = function (grid, e) {
1169
1149
  if(this._disabled) {
1170
1150
  return;
1171
1151
  }
1172
- if (e.detail === 2 && this._isDisableDoubleClickToSort) { // dblclick
1152
+ if (e.detail === 2 && !this._dblClickAllowed) { // dblclick
1173
1153
  if (this._clickTimer) {
1174
1154
  clearTimeout(this._clickTimer);
1175
1155
  this._clickTimer = 0;
@@ -1447,18 +1427,35 @@ SortableTitlePlugin.prototype._sortColumn = function (states, opt_arg) {
1447
1427
  SortableTitlePlugin.prototype._onColumnAdded = function (e) {
1448
1428
  var t = this;
1449
1429
  var colIndex = e["colIndex"];
1450
- var context = e["context"];
1451
- var col = t._prepareColumnOptions(colIndex, context);
1452
- var field = col["sortBy"] || col["field"];
1453
- var logic = col["sortLogic"] || t._sortLogic[field];
1430
+ var column = e["context"] || {};
1431
+
1432
+ var sortable = !!t._sortableColumns;
1433
+ var field = column["field"];
1434
+ var sortBy = column["sortBy"];
1435
+
1436
+ if (sortBy != null) { // composite grid option
1437
+ sortable = !!sortBy;
1438
+ field = sortBy;
1439
+ }
1440
+ if (column["sortable"] != null) { // rt grid option
1441
+ sortable = !!column["sortable"];
1442
+ }
1443
+
1444
+ var sortLogic = column["sortLogic"] || column["sortingLogic"] || column["sorter"]; // Originally, rt grid support option for sortLogic by column
1445
+ if(!sortLogic) {
1446
+ sortLogic = t._sortLogic[field];
1447
+ }
1448
+ if(typeof sortLogic !== "function") {
1449
+ sortLogic = null;
1450
+ }
1454
1451
 
1455
- var sortingSequence = context ? context["sortingSequence"] : null;
1452
+ var sortingSequence = column["sortingSequence"];
1456
1453
  if (sortingSequence != null && field) { // Make sure that column config does not affect grid level config
1457
1454
  t.setSortingSequence(sortingSequence, field);
1458
1455
  }
1459
1456
 
1460
- if (col["sortable"]) {
1461
- t.setColumnSortingField(colIndex, field, typeof logic === "function" ? logic : null);
1457
+ if (sortable) { // TODO: Check if empty field should be sortable
1458
+ t.setColumnSortingField(colIndex, field, sortLogic, column["rowSorting"]);
1462
1459
  } else {
1463
1460
  t.disableColumnSorting(colIndex, true);
1464
1461
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  declare class Conflator {
4
4
 
5
- constructor(opt_func?: ((...params: any[]) => any)|number, opt_ms?: number|((...params: any[]) => any), opt_thisObj?: any);
5
+ constructor(opt_func?: ((...params: any[]) => any)|number|null, opt_ms?: number|((...params: any[]) => any)|null, opt_thisObj?: any);
6
6
 
7
7
  public reset(): any[]|null;
8
8
 
@@ -16,15 +16,15 @@ declare class Conflator {
16
16
 
17
17
  public getData(): any[];
18
18
 
19
- public setFunction(func: ((...params: any[]) => any), opt_thisObj?: any): void;
19
+ public setFunction(func: ((...params: any[]) => any)|null, opt_thisObj?: any): void;
20
20
 
21
21
  public setConflatingTime(ms: number): void;
22
22
 
23
- public disable(opt_disabled?: boolean): void;
23
+ public disable(opt_disabled?: boolean|null): void;
24
24
 
25
25
  public isEnabled(): boolean;
26
26
 
27
- public enable(opt_enabled?: boolean): void;
27
+ public enable(opt_enabled?: boolean|null): void;
28
28
 
29
29
  }
30
30
 
@@ -3,7 +3,7 @@ import Ext from "../../../../tr-grid-util/es6/Ext.js";
3
3
 
4
4
  declare class HttpRequest extends EventDispatcher {
5
5
 
6
- constructor(url: string, payload?: any|string, opt_serviceName?: string);
6
+ constructor(url: string, payload?: any|string|null, opt_serviceName?: string|null);
7
7
 
8
8
  public static readonly defaultTimeout: number;
9
9
 
@@ -33,11 +33,11 @@ declare class HttpRequest extends EventDispatcher {
33
33
 
34
34
  public log(): void;
35
35
 
36
- public send(opt_requestedHeaders?: { [key: string]: string }): HttpRequest;
36
+ public send(opt_requestedHeaders?: { [key: string]: string }|null): HttpRequest;
37
37
 
38
38
  public abort(): void;
39
39
 
40
- public then(onFulfilled: ((...params: any[]) => any), onRejected?: ((...params: any[]) => any)): HttpRequest;
40
+ public then(onFulfilled: ((...params: any[]) => any)|null, onRejected?: ((...params: any[]) => any)|null): HttpRequest;
41
41
 
42
42
  public catch(onRejected: ((...params: any[]) => any)|null): HttpRequest;
43
43
 
@@ -3,25 +3,25 @@ import ElementWrapper from "../components/ElementWrapper.js";
3
3
 
4
4
  declare class PercentBar extends ElementWrapper {
5
5
 
6
- constructor(opt_element?: Element);
6
+ constructor(opt_element?: Element|null);
7
7
 
8
8
  public getValue(): number;
9
9
 
10
10
  public getPercent(): number;
11
11
 
12
- public setValue(value: number|string, opt_max?: number, opt_displayText?: string): void;
12
+ public setValue(value: number|string|null, opt_max?: number|null, opt_displayText?: string|null): void;
13
13
 
14
14
  public setMax(absVal: number): void;
15
15
 
16
16
  public setText(txt: string): void;
17
17
 
18
- public hideText(opt_hiden?: boolean): void;
18
+ public hideText(opt_hiden?: boolean|null): void;
19
19
 
20
20
  public isTextHidden(): boolean;
21
21
 
22
- public setTextWidth(width: number|string): void;
22
+ public setTextWidth(width: number|string|null): void;
23
23
 
24
- public setMaxTextLength(width: number|string): void;
24
+ public setMaxTextLength(width: number|string|null): void;
25
25
 
26
26
  public getTextScrollWidth(): number;
27
27
 
@@ -31,11 +31,11 @@ declare class PercentBar extends ElementWrapper {
31
31
 
32
32
  public setMovementColor(colorObject?: any): void;
33
33
 
34
- public useMovementColor(opt_enabled?: boolean): void;
34
+ public useMovementColor(opt_enabled?: boolean|null): void;
35
35
 
36
- public setTrackColor(color?: string): void;
36
+ public setTrackColor(color?: string|null): void;
37
37
 
38
- public enableTooltip(opt_enabled?: boolean): void;
38
+ public enableTooltip(opt_enabled?: boolean|null): void;
39
39
 
40
40
  }
41
41
 
@@ -7,23 +7,23 @@ declare class PercentBarRenderer {
7
7
 
8
8
  public dispose(): void;
9
9
 
10
- public render(cell: ElementWrapper, value: number, opt_max?: number, opt_displayText?: string, opt_textWidth?: number): void;
10
+ public render(cell: ElementWrapper|null, value: number, opt_max?: number|null, opt_displayText?: string|null, opt_textWidth?: number|null): void;
11
11
 
12
- public renderForPrinting(cell: ElementWrapper, value: number, opt_max?: number): PercentBar|null;
12
+ public renderForPrinting(cell: ElementWrapper|null, value: number, opt_max?: number|null): PercentBar|null;
13
13
 
14
14
  public setAlignment(alignment: string): void;
15
15
 
16
16
  public setMovementColor(colorObj?: any): void;
17
17
 
18
- public useMovementColor(opt_enabled?: boolean): void;
18
+ public useMovementColor(opt_enabled?: boolean|null): void;
19
19
 
20
- public setTrackColor(color?: string): void;
20
+ public setTrackColor(color?: string|null): void;
21
21
 
22
- public hideText(opt_enabled?: boolean): void;
22
+ public hideText(opt_enabled?: boolean|null): void;
23
23
 
24
- public setTextWidth(width: number|string, opt_pbs?: (PercentBar)[]): void;
24
+ public setTextWidth(width: number|string|null, opt_pbs?: (PercentBar)[]|null): void;
25
25
 
26
- public enableTooltip(opt_enabled?: boolean): void;
26
+ public enableTooltip(opt_enabled?: boolean|null): void;
27
27
 
28
28
  public getAlignment(): string;
29
29
 
@@ -33,7 +33,7 @@ declare class PercentBarRenderer {
33
33
 
34
34
  public startTextAutoResizing(): boolean;
35
35
 
36
- public endTextAutoResizing(widthLimit?: number, opt_resetToDefaultWidth?: boolean, opt_pbs?: (PercentBar)[]): void;
36
+ public endTextAutoResizing(widthLimit?: number|null, opt_resetToDefaultWidth?: boolean|null, opt_pbs?: (PercentBar)[]|null): void;
37
37
 
38
38
  }
39
39
 
@@ -5,7 +5,7 @@ import ElementWrapper from "../components/ElementWrapper.js";
5
5
 
6
6
  declare class RangeBar extends ElementWrapper {
7
7
 
8
- constructor(opt_element?: Element);
8
+ constructor(opt_element?: Element|null);
9
9
 
10
10
  public static getControl(obj: any): RangeBar|null;
11
11
 
@@ -191,7 +191,7 @@ RangeBar.prototype._getRenderValue = function (val, ff) {
191
191
  * @return {string}
192
192
  */
193
193
  RangeBar.prototype._calculateTooltip = function () {
194
- var tooltipLinebreakChar = Util.getTooltipLinebreakChar();
194
+ var tooltipLinebreakChar = " "; // Util.getTooltipLinebreakChar();
195
195
  var renderLowVal = this._getRenderValue(this._lowVal, this._opt_ffLowVal);
196
196
  var renderLastVal = this._getRenderValue(this._lastVal, this._opt_ffLastVal);
197
197
  var renderHighVal = this._getRenderValue(this._highVal, this._opt_ffHighVal);
@@ -2,7 +2,7 @@
2
2
 
3
3
  declare class Reverter {
4
4
 
5
- constructor(opt_func?: ((...params: any[]) => any)|number, opt_ms?: number|((...params: any[]) => any));
5
+ constructor(opt_func?: ((...params: any[]) => any)|number|null, opt_ms?: number|((...params: any[]) => any)|null);
6
6
 
7
7
  public start(): void;
8
8
 
@@ -13,7 +13,7 @@ declare class SectionSettings extends EventDispatcher {
13
13
 
14
14
  public getId(): string;
15
15
 
16
- public setId(str?: string): string;
16
+ public setId(str?: string|null): string;
17
17
 
18
18
  public getSection(): ILayoutGrid|null;
19
19
 
@@ -27,19 +27,19 @@ declare class SectionSettings extends EventDispatcher {
27
27
 
28
28
  public getDataSource(): DataView|null;
29
29
 
30
- public setDataSource(dataView: DataView): void;
30
+ public setDataSource(dataView: DataView|null): void;
31
31
 
32
32
  public getRootDataSource(): DataTable|DataView|null;
33
33
 
34
- public getData(colName: string, rowRef: number|string): any;
34
+ public getData(colName: string, rowRef: number|string|null): any;
35
35
 
36
- public setData(colName: string, rowRef: number|string, data: any): boolean;
36
+ public setData(colName: string, rowRef: number|string|null, data: any): boolean;
37
37
 
38
- public getRowData(rowRef: number|string): { [key: string]: any };
38
+ public getRowData(rowRef: number|string|null): { [key: string]: any };
39
39
 
40
- public removeRowData(rowRef: number|string): boolean;
40
+ public removeRowData(rowRef: number|string|null): boolean;
41
41
 
42
- public activateColumns(activations: (boolean|undefined)[], firstIndex: number, lastIndex: number): void;
42
+ public activateColumns(activations: (boolean|undefined)[]|null, firstIndex: number, lastIndex: number): void;
43
43
 
44
44
  public getChildren(): (SectionSettings)[]|null;
45
45
 
@@ -49,7 +49,7 @@ declare class SectionSettings extends EventDispatcher {
49
49
 
50
50
  public disableConflation(opt_disabled: boolean): void;
51
51
 
52
- public disableDataBinding(opt_disabled?: boolean): void;
52
+ public disableDataBinding(opt_disabled?: boolean|null): void;
53
53
 
54
54
  public getAutoSyncRowCount(): boolean;
55
55
 
@@ -59,21 +59,21 @@ declare class SectionSettings extends EventDispatcher {
59
59
 
60
60
  public extendRenderEventArg(e: any, fromR: number, toR: number): any;
61
61
 
62
- public extendDataEventArg(e?: any, begin?: number, end?: number): any;
62
+ public extendDataEventArg(e?: any, begin?: number|null, end?: number|null): any;
63
63
 
64
- public enableColumnVirtualization(opt_enabled?: boolean): void;
64
+ public enableColumnVirtualization(opt_enabled?: boolean|null): void;
65
65
 
66
66
  public isBinding(): boolean;
67
67
 
68
- public updateRowData(fromRowIndex?: number, lastRowIndex?: number, e?: any): void;
68
+ public updateRowData(fromRowIndex?: number|null, lastRowIndex?: number|null, e?: any): void;
69
69
 
70
70
  public rerender(): void;
71
71
 
72
- public snapshot(clone: ILayoutGrid): void;
72
+ public snapshot(clone: ILayoutGrid|null): void;
73
73
 
74
74
  }
75
75
 
76
- declare function rowIndex(activations: (boolean|undefined)[], firstIndex: number, lastIndex: number): void;
76
+ declare function rowIndex(activations: (boolean|undefined)[]|null, firstIndex: number, lastIndex: number): void;
77
77
 
78
78
  export default SectionSettings;
79
79
  export { SectionSettings };
@@ -24,7 +24,7 @@ declare class SelectionList {
24
24
 
25
25
  public getSelection(at: number): boolean;
26
26
 
27
- public setSelection(at: number, opt_selected?: boolean): boolean;
27
+ public setSelection(at: number, opt_selected?: boolean|null): boolean;
28
28
 
29
29
  public getSelectionAnchor(): number;
30
30
 
@@ -42,7 +42,7 @@ declare class SelectionList {
42
42
 
43
43
  public clearAllSelections(): number;
44
44
 
45
- public copyFrom(srcSelections: SelectionList, fromSrcIndex: number, offsetIndex: number, forLength: number): void;
45
+ public copyFrom(srcSelections: SelectionList|null, fromSrcIndex: number, offsetIndex: number, forLength: number): void;
46
46
 
47
47
  }
48
48
 
@@ -6,11 +6,11 @@ declare class TrackLayout {
6
6
 
7
7
  public hitTest(val: number): number;
8
8
 
9
- public isAtDefaultSize(opt_index?: number): boolean;
9
+ public isAtDefaultSize(opt_index?: number|null): boolean;
10
10
 
11
11
  public isHomogeneous(): boolean;
12
12
 
13
- public isAtMinimumSize(opt_index?: number): boolean;
13
+ public isAtMinimumSize(opt_index?: number|null): boolean;
14
14
 
15
15
  public isFixedSize(): boolean;
16
16
 
@@ -54,23 +54,23 @@ declare class TrackLayout {
54
54
 
55
55
  public getMinimumLaneSize(index: number): number;
56
56
 
57
- public setMinimumLaneSize(index: number, val: number, proportion?: boolean): boolean;
57
+ public setMinimumLaneSize(index: number, val: number, proportion?: boolean|null): boolean;
58
58
 
59
59
  public isLaneVisible(index: number): boolean;
60
60
 
61
- public showLane(index: number, opt_val?: boolean): boolean;
61
+ public showLane(index: number, opt_val?: boolean|null): boolean;
62
62
 
63
- public hideLane(index: number, opt_hidden?: boolean, opt_bitIndex?: number): boolean;
63
+ public hideLane(index: number, opt_hidden?: boolean|null, opt_bitIndex?: number|null): boolean;
64
64
 
65
- public show(opt_shown?: boolean): void;
65
+ public show(opt_shown?: boolean|null): void;
66
66
 
67
67
  public getLaneScalability(index: number): boolean;
68
68
 
69
69
  public setLaneScalability(index: number, val: boolean): boolean;
70
70
 
71
- public removeLaneAt(index: number, opt_count?: number): any|null|null;
71
+ public removeLaneAt(index: number, opt_count?: number|null): any|null|null;
72
72
 
73
- public insertLane(index: number, opt_json?: number|any): void;
73
+ public insertLane(index: number, opt_json?: number|any|null): void;
74
74
 
75
75
  public moveLane(from: number, to: number): void;
76
76
 
@@ -78,7 +78,7 @@ declare class TrackLayout {
78
78
 
79
79
  public deserializeLane(index: number, opt_json?: any): void;
80
80
 
81
- public copyFrom(src: TrackLayout, offset?: number): void;
81
+ public copyFrom(src: TrackLayout|null, offset?: number|null): void;
82
82
 
83
83
  }
84
84
 
@@ -26,13 +26,13 @@ declare class Virtualizer extends EventDispatcher {
26
26
 
27
27
  public getPrevLastIndexInView(): number;
28
28
 
29
- public update(opt_force?: boolean): boolean;
29
+ public update(opt_force?: boolean|null): boolean;
30
30
 
31
31
  public isEnabled(): boolean;
32
32
 
33
- public enable(opt_enabled?: boolean): void;
33
+ public enable(opt_enabled?: boolean|null): void;
34
34
 
35
- public disable(opt_disabled?: boolean): void;
35
+ public disable(opt_disabled?: boolean|null): void;
36
36
 
37
37
  }
38
38
 
@@ -4,15 +4,17 @@ declare namespace Util {
4
4
 
5
5
  const isMobile: boolean;
6
6
 
7
- function pushArrayItems(ary: any[], items: any[]): any[]|null;
7
+ function pushArrayItems(ary: any[]|null, items: any[]|null): any[]|null;
8
8
 
9
- function insertEmptyItems(ary: any[], at: number, chunkSize: number): void;
9
+ function insertEmptyItems(ary: any[]|null, at: number, chunkSize: number): void;
10
10
 
11
- function cycleArray(ary: any[], numItems: number): any[]|null;
11
+ function cycleArray(ary: any[]|null, numItems: number): any[]|null;
12
+
13
+ function closestElement(elem: Element|Node|undefined|null, classStr: string): Element|null;
12
14
 
13
15
  }
14
16
 
15
- declare function item(ary: any[]|any, at: number, item: any): void;
17
+ declare function item(ary: any[]|null, items: any[]|null): any[]|null;
16
18
 
17
19
  export default Util;
18
20
  export { Util };