@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
@@ -68,6 +68,7 @@ import { ElementWrapper } from "../../core/es6/grid/components/ElementWrapper.js
68
68
  * @property {boolean=} borders=true Lines around grid element
69
69
  * @property {boolean=} gridlines=true Horizontal and Vertical lines for ONLY content sections
70
70
  * @property {boolean=} verticalLines=true Vertical lines for all sections
71
+ * @property {boolean=} contentVerticalLines=true Vertical lines for all content section
71
72
  * @property {boolean=} horizontalLines=true Horizontal lines for all sections
72
73
  * @property {*=} RTK=null rtk toolkit instance
73
74
  * @property {Grid~ADCOptions=} ADC=null ADC requesting level config object from adc team
@@ -82,6 +83,7 @@ import { ElementWrapper } from "../../core/es6/grid/components/ElementWrapper.js
82
83
  * @property {Element=} scrollbarParent=null Element to be attached by grid's scrollbars, allowing them to move outside and avoid overlapping with the content.
83
84
  * @property {boolean=} formulaEngine=false If enabled, field with leading equal sign will be treated as a formula and rows will be filled with the calculated values.
84
85
  * @property {number=} adcPollingInterval=0 Length of polling interval for refreshing ADC data in milliseconds. The default value (0) means no polling.
86
+ * @property {boolean=} fieldCaching=false If enabled, field definition will be caching internal mechanism
85
87
  */
86
88
 
87
89
  /** @typedef {number|string|RowDefinition} Grid~RowReference
@@ -94,7 +96,7 @@ import { ElementWrapper } from "../../core/es6/grid/components/ElementWrapper.js
94
96
  /** @typedef {number|string|ColumnDefinition} Grid~ColumnReference
95
97
  * @description A column in Grid can be referred by the following values:<br>
96
98
  * <b>number</b> : Column index including all invisible (hidden) columns<br>
97
- * <b>string</b> : Field name of the column<br>
99
+ * <b>string</b> : Field name or column id of the column<br>
98
100
  * <b>ColumnDefinition</b> : Column definition object<br>
99
101
  */
100
102
 
@@ -190,25 +192,6 @@ var cloneRowData = function(fromRowDef, toRowDef) {
190
192
  }
191
193
  };
192
194
 
193
- /** @private
194
- * @param {number} a
195
- * @param {number} b
196
- * @return {number}
197
- */
198
- var ascNumberSorter = function (a, b) {
199
- return a - b;
200
- };
201
-
202
- /** @private
203
- * @param {number} min
204
- * @param {number} max
205
- * @param {number} elem
206
- * @return {boolean}
207
- */
208
- var inRangeFilter = function (min, max, elem) {
209
- return elem >= min && elem <= max;
210
- };
211
-
212
195
  /** @private
213
196
  * @param {string} sortField
214
197
  * @param {Object} elemData
@@ -506,6 +489,10 @@ Grid.prototype._lastPollingRequest = 0;
506
489
  * @private
507
490
  */
508
491
  Grid.prototype._pollingEnabled = true;
492
+ /** @type {boolean}
493
+ * @private
494
+ */
495
+ Grid.prototype._fieldCaching = false;
509
496
 
510
497
 
511
498
  /** @public
@@ -750,6 +737,11 @@ Grid.prototype.initialize = function(gridOption) {
750
737
  FieldDefinition.setSynapseConfig(t._synapse);
751
738
  }
752
739
 
740
+ if (gridOption["fieldCaching"]) {
741
+ t._fieldCaching = gridOption["fieldCaching"];
742
+ FieldDefinition.setFieldCaching(t._fieldCaching);
743
+ }
744
+
753
745
  if (gridOption["icons"] && gridOption["icons"]["rowGrouping"] && gridOption["icons"]["rowGrouping"]["expander"]) {
754
746
  StyleLoader.chainIcon = gridOption["icons"]["rowGrouping"]["expander"];
755
747
  }
@@ -772,6 +764,10 @@ Grid.prototype.initialize = function(gridOption) {
772
764
  if (vLines != null) {
773
765
  grid.toggleVerticalLines(vLines);
774
766
  }
767
+ var cvLines = gridOption["contentVerticalLines"];
768
+ if (cvLines != null) {
769
+ grid.toggleContentVerticalLines(cvLines);
770
+ }
775
771
  var hLines = gridOption["horizontalLines"];
776
772
  if (hLines != null) {
777
773
  grid.toggleHorizontalLines(hLines);
@@ -1060,11 +1056,14 @@ Grid.prototype.getConfigObject = function (gridOptions) {
1060
1056
  if(this._pollingInterval) {
1061
1057
  obj["adcPollingInterval"] = this._pollingInterval;
1062
1058
  }
1059
+ if(this._fieldCaching) {
1060
+ obj["fieldCaching"] = this._fieldCaching;
1061
+ }
1063
1062
 
1064
1063
  // get all rows config
1065
1064
  var rowDefs = this.getAllRowDefinitions();
1066
1065
  var rows = obj["rows"] = [];
1067
- var rowDef, rowConfig, pluginInstance, retObj, row;
1066
+ var rowDef, rowConfig;
1068
1067
  len = rowDefs.length;
1069
1068
  for (i = 0; i < len; i++) {
1070
1069
  rowDef = rowDefs[i];
@@ -1074,6 +1073,7 @@ Grid.prototype.getConfigObject = function (gridOptions) {
1074
1073
 
1075
1074
  // get row config from extensions
1076
1075
  var extensions = grid.getPlugins();
1076
+ var pluginInstance, row;
1077
1077
  for(var key in extensions) {
1078
1078
  pluginInstance = extensions[key];
1079
1079
  if(typeof pluginInstance["getRowConfigObject"] === "function") {
@@ -1081,15 +1081,7 @@ Grid.prototype.getConfigObject = function (gridOptions) {
1081
1081
  for (i = 0; i < len; i++) {
1082
1082
  rowDef = rowDefs[i];
1083
1083
  row = rows[i];
1084
- retObj = pluginInstance["getRowConfigObject"](rowDef.getRowId());
1085
- if(retObj) {
1086
- if(row.values) {
1087
- // eslint-disable-next-line es5/no-es6-static-methods
1088
- Object.assign(row.values, retObj); // Ignore lint
1089
- } else {
1090
- row.values = retObj;
1091
- }
1092
- }
1084
+ pluginInstance["getRowConfigObject"](row, rowDef.getRowId());
1093
1085
  }
1094
1086
  }
1095
1087
  }
@@ -1621,78 +1613,7 @@ Grid.prototype.removeAllColumns = function() {
1621
1613
  * @return {boolean} Return true if there is any change, and false otherwise
1622
1614
  */
1623
1615
  Grid.prototype.moveColumn = function (fromColIndex, toColIndex) {
1624
- //Wrap single index to array
1625
- if (!Array.isArray(fromColIndex)) {
1626
- fromColIndex = [fromColIndex];
1627
- }
1628
-
1629
- var columnCount = this._grid.getColumnCount();
1630
- var lastColIndex = columnCount - 1;
1631
- fromColIndex.sort(ascNumberSorter);
1632
- fromColIndex = fromColIndex.filter(inRangeFilter.bind(null, 0, lastColIndex));
1633
-
1634
- if (!this._grid.isColumnMoveAllowed(fromColIndex, toColIndex)) {
1635
- return false;
1636
- }
1637
-
1638
- var frozen = this._grid.isLayoutFrozen();
1639
- this._grid.freezeLayout(true);
1640
-
1641
- var marker = [];
1642
- var runner = 0;
1643
- var i;
1644
- for (i = 0; i < columnCount; i++) {
1645
- if (i == fromColIndex[runner]) {
1646
- marker.push(true);
1647
- runner++;
1648
- } else {
1649
- marker.push(false);
1650
- }
1651
- }
1652
- //Find the index to be moved to
1653
- var counter = -1;
1654
- var toMoveTo = -1;
1655
-
1656
- for (i = 0; i < columnCount; i++) {
1657
- if (marker[i] === false) {
1658
- counter++;
1659
- }
1660
-
1661
- if (counter === toColIndex) {
1662
- toMoveTo = i;
1663
- break;
1664
- }
1665
- }
1666
-
1667
- //If toMoveTo == -1, it means the target column index is beyond the last colmn so just move the columns
1668
- //to the end of the table
1669
- if (toMoveTo === -1) {
1670
- toMoveTo = columnCount;
1671
- }
1672
-
1673
- //Perform moving
1674
- var leftList = [], rightList = [];
1675
-
1676
- for (i = 0; i < fromColIndex.length; i++) {
1677
- if (fromColIndex[i] < toMoveTo) {
1678
- leftList.push(fromColIndex[i]);
1679
- } else if (fromColIndex[i] > toMoveTo) {
1680
- rightList.push(fromColIndex[i]);
1681
- }
1682
- }
1683
-
1684
- for (i = 0; i < rightList.length; i++) {
1685
- this._grid.moveColumn(rightList[i], toMoveTo + i);
1686
- }
1687
-
1688
- for (i = leftList.length - 1; i >= 0; i--) {
1689
- toMoveTo--;
1690
-
1691
- this._grid.moveColumn(leftList[i], toMoveTo);
1692
- }
1693
-
1694
- this._grid.freezeLayout(frozen);
1695
- return true;
1616
+ return this._grid.moveColumn(fromColIndex, toColIndex);
1696
1617
  };
1697
1618
 
1698
1619
  /** The hidden column still occupies the same index.
@@ -1757,7 +1678,7 @@ Grid.prototype.addDataFields = function(fieldRef, referrer) {
1757
1678
 
1758
1679
  if(!dataType) {
1759
1680
  // wait field-info to be loaded before adding field
1760
- onLoaded = this._onFieldLoaded.bind(this, field);
1681
+ onLoaded = this._onFieldLoaded.bind(this, field, referrer);
1761
1682
  prom = prom.then(onLoaded).catch(onLoaded);
1762
1683
  } else {
1763
1684
  this._connector.addFields(field, referrer || "grid");
@@ -1783,6 +1704,16 @@ Grid.prototype.removeDataFields = function(fieldRef, referrer) {
1783
1704
  this._connector.removeFields(fieldRef, referrer || "grid");
1784
1705
  return true;
1785
1706
  };
1707
+ /** @public
1708
+ * @param {string} referrer
1709
+ */
1710
+ Grid.prototype.removeFieldReferrer = function(referrer) {
1711
+ if(!referrer) {
1712
+ return;
1713
+ }
1714
+
1715
+ this._connector.removeFieldReferrer(referrer);
1716
+ };
1786
1717
 
1787
1718
  /** @public
1788
1719
  * @param {Grid~ColumnReference} colRef
@@ -2409,6 +2340,40 @@ Grid.prototype.getColumnDefinition = function(colIndex) {
2409
2340
  }
2410
2341
  return null;
2411
2342
  };
2343
+
2344
+ /** @public
2345
+ * @param {string} colId
2346
+ * @return {ColumnDefinition}
2347
+ */
2348
+ Grid.prototype.getColumnDefinitionById = function(colId) {
2349
+ if(typeof colId === "string") {
2350
+ var colIndex = this.getColumnIndex(colId);
2351
+ var colData = this._grid.getColumnData(colIndex);
2352
+ if(colData) {
2353
+ return /** @type{ColumnDefinition} */(colData[COL_DEF]) || null;
2354
+ }
2355
+ }
2356
+ return null;
2357
+ };
2358
+
2359
+ /** @public
2360
+ * @param {Array.<string>} colIds
2361
+ * @return {ColumnDefinition}
2362
+ */
2363
+ Grid.prototype.getColumnDefinitionsById = function(colIds) {
2364
+ var colCount = Array.isArray(colIds) ? colIds.length : 0;
2365
+ if(colCount > 0) {
2366
+ var i, colId;
2367
+ var colDefs = new Array(colCount);
2368
+ for(i = 0; i < colCount; i++) {
2369
+ colId = colIds[i];
2370
+ colDefs[i] = this.getColumnDefinitionById(colId);
2371
+ }
2372
+ return colDefs;
2373
+ }
2374
+ return null;
2375
+
2376
+ };
2412
2377
  /** @private
2413
2378
  * @param {Grid~ColumnReference} colRef
2414
2379
  * @return {ColumnDefinition}
@@ -2422,7 +2387,7 @@ Grid.prototype._getColumnDefinition = function(colRef) {
2422
2387
  var colCount = this.getColumnCount();
2423
2388
  for(var i = 0; i < colCount; ++i) {
2424
2389
  var colDef = this.getColumnDefinition(i);
2425
- if(colDef.getField() === colRef) {
2390
+ if(colDef.getField() === colRef || colDef.getId() === colRef) {
2426
2391
  return colDef; // Return the first found field
2427
2392
  }
2428
2393
  }
@@ -2614,7 +2579,7 @@ Grid.prototype.getColumnIndex = function(colRef) {
2614
2579
  } else if(typeof colRef === "string") {
2615
2580
  for(i = 0; i < colCount; ++i) {
2616
2581
  colDef = this.getColumnDefinition(i);
2617
- if(colDef.getField() === colRef) {
2582
+ if(colDef.getField() === colRef || colDef.getId() === colRef) {
2618
2583
  return i; // Return the first found field
2619
2584
  }
2620
2585
  }
@@ -16,19 +16,19 @@ declare class ReferenceCounter {
16
16
 
17
17
  public getSession(): any;
18
18
 
19
- public addReference(key: string, referer?: string): boolean;
19
+ public addReference(key: string, referer?: string|null): boolean;
20
20
 
21
21
  public addRef(key: string): boolean;
22
22
 
23
- public removeReference(key: string, referer?: string, count?: number): boolean;
23
+ public removeReference(key: string, referer?: string|null, count?: number|null): boolean;
24
24
 
25
25
  public release(key: string): void;
26
26
 
27
- public addReferences(keys: (string|(string)[]|any), referer?: string): number;
27
+ public addReferences(keys: (string|(string)[]|any)|null, referer?: string|null): number;
28
28
 
29
- public removeReferer(referer?: string): number;
29
+ public removeReferer(referer?: string|null): number;
30
30
 
31
- public removeReferrer(referer?: string): number;
31
+ public removeReferrer(referer?: string|null): number;
32
32
 
33
33
  public log(): void;
34
34
 
@@ -6,9 +6,9 @@ declare class RowDefSorter {
6
6
 
7
7
  public dispose(): void;
8
8
 
9
- public getSorter(rowSorting?: boolean): ((...params: any[]) => any)|null;
9
+ public getSorter(rowSorting?: boolean|null): ((...params: any[]) => any)|null;
10
10
 
11
- public setSortLogic(func?: ((...params: any[]) => any)): void;
11
+ public setSortLogic(func?: ((...params: any[]) => any)|null): void;
12
12
 
13
13
  public setField(field: string): void;
14
14
 
@@ -1,41 +1,41 @@
1
- import { arrayToObject } from "../../tr-grid-util/es6/Util.js";
1
+ import { arrayToObject, cloneObject } from "../../tr-grid-util/es6/Util.js";
2
2
  import { DataCache } from "../../core/es6/data/DataCache.js";
3
3
  import { DataTable } from "../../core/es6/data/DataTable.js";
4
4
 
5
5
  declare namespace RowDefinition {
6
6
 
7
7
  type Options = {
8
- ric?: string,
9
- values?: (any[]|any),
10
- fields?: (string)[],
11
- asChain?: boolean,
12
- chainRic?: string,
13
- collapsed?: boolean,
14
- label?: (string|null),
15
- hidden?: boolean
8
+ ric?: string|null,
9
+ values?: (any[]|any)|null,
10
+ fields?: (string)[]|null,
11
+ asChain?: boolean|null,
12
+ chainRic?: string|null,
13
+ collapsed?: boolean|null,
14
+ label?: (string|null)|null,
15
+ hidden?: boolean|null
16
16
  };
17
17
 
18
18
  }
19
19
 
20
20
  declare class RowDefinition {
21
21
 
22
- constructor(rowOptions?: RowDefinition.Options);
22
+ constructor(rowOptions?: RowDefinition.Options|null);
23
23
 
24
24
  public dispose(): void;
25
25
 
26
26
  public isDisposed(): boolean;
27
27
 
28
- public initialize(rowOptions?: RowDefinition.Options): void;
28
+ public initialize(rowOptions?: RowDefinition.Options|null): void;
29
29
 
30
30
  public setContent(userInput: string): boolean;
31
31
 
32
32
  public getRowId(): string;
33
33
 
34
- public getConfigObject(rowOptions?: RowDefinition.Options): RowDefinition.Options|null;
34
+ public getConfigObject(rowOptions?: RowDefinition.Options|null): RowDefinition.Options|null;
35
35
 
36
36
  public getDataId(): string;
37
37
 
38
- public setDataSource(dataSource: DataCache): void;
38
+ public setDataSource(dataSource: DataCache|null): void;
39
39
 
40
40
  public getDataSource(): DataCache|null;
41
41
 
@@ -43,9 +43,9 @@ declare class RowDefinition {
43
43
 
44
44
  public getData(field: string): any;
45
45
 
46
- public setStaticRowData(data: { [key: string]: any }|any[], opt_fields?: (string)[]): void;
46
+ public setStaticRowData(data: { [key: string]: any }|any[], opt_fields?: (string)[]|null): void;
47
47
 
48
- public updateRowData(data: { [key: string]: any }|any[], opt_fields?: (string)[]): void;
48
+ public updateRowData(data: { [key: string]: any }|any[], opt_fields?: (string)[]|null): void;
49
49
 
50
50
  public setStaticData(field: string, value: any): void;
51
51
 
@@ -65,7 +65,7 @@ declare class RowDefinition {
65
65
 
66
66
  public isChain(): boolean;
67
67
 
68
- public static hasChain(rowDef: RowDefinition): boolean;
68
+ public static hasChain(rowDef: RowDefinition|null): boolean;
69
69
 
70
70
  public isChainCollapsed(): boolean;
71
71
 
@@ -75,7 +75,7 @@ declare class RowDefinition {
75
75
 
76
76
  public isRealTimeRow(): boolean;
77
77
 
78
- public subscribeForUpdates(): void;
78
+ public subscribeForUpdates(): boolean;
79
79
 
80
80
  public unsubscribeForUpdates(): any;
81
81
 
@@ -87,9 +87,9 @@ declare class RowDefinition {
87
87
 
88
88
  public resetUpdates(): void;
89
89
 
90
- public registerToView(view: DataTable, rowId?: string): void;
90
+ public registerToView(view: DataTable|null, rowId?: string|null): void;
91
91
 
92
- public static deregisterFromView(rowIds: (string)[], rowDef: RowDefinition): (string)[]|null;
92
+ public static deregisterFromView(rowIds: (string)[]|null, rowDef: RowDefinition|null): (string)[]|null;
93
93
 
94
94
  public collapseChain(): boolean;
95
95
 
@@ -99,7 +99,7 @@ declare class RowDefinition {
99
99
 
100
100
  public getChildren(): (RowDefinition)[]|null;
101
101
 
102
- public getDescendants(ary?: (RowDefinition)[]): (RowDefinition)[];
102
+ public getDescendants(ary?: (RowDefinition)[]|null): (RowDefinition)[];
103
103
 
104
104
  public getAllDescendantIds(): (string)[]|null;
105
105
 
@@ -111,9 +111,9 @@ declare class RowDefinition {
111
111
 
112
112
  public getUserModel(): any;
113
113
 
114
- public static toRowId(rowDef: RowDefinition): string;
114
+ public static toRowId(rowDef: RowDefinition|null): string;
115
115
 
116
- public static dispose(rowDef: RowDefinition): void;
116
+ public static dispose(rowDef: RowDefinition|null): void;
117
117
 
118
118
  }
119
119
 
@@ -1,4 +1,4 @@
1
- import { arrayToObject } from "../../tr-grid-util/es6/Util.js";
1
+ import { arrayToObject, cloneObject } from "../../tr-grid-util/es6/Util.js";
2
2
  /* eslint-disable */
3
3
  import { DataCache } from "../../core/es6/data/DataCache.js";
4
4
  import { DataTable } from "../../core/es6/data/DataTable.js";
@@ -272,7 +272,12 @@ RowDefinition.prototype.setContent = function(userInput) {
272
272
  this._dataId = this._rowId + this._ric; // JET/RTK will generate data id to be rowId (given from this rowDef) + ric;
273
273
 
274
274
  // This will work for runtime ric modification, but not for first initilization.
275
- this.subscribeForUpdates();
275
+ if(!this.subscribeForUpdates()) {
276
+ // Avoid losing the ROW_DEF pointer.
277
+ var rowData = {};
278
+ rowData[ROW_DEF] = this; // Enable tracking back and updating data
279
+ this.setRowData(rowData);
280
+ }
276
281
  return true;
277
282
  };
278
283
  /** @public
@@ -294,7 +299,7 @@ RowDefinition.prototype.getConfigObject = function(rowOptions) {
294
299
 
295
300
  val = this._staticValues;
296
301
  if(val) {
297
- obj["values"] = val;
302
+ obj["values"] = cloneObject(val);
298
303
  }
299
304
 
300
305
  val = this._chainRic;
@@ -551,15 +556,16 @@ RowDefinition.prototype.isRealTimeRow = function() {
551
556
  };
552
557
 
553
558
  /** @public
559
+ * @return {boolean} If a subscription is made, return true.
554
560
  */
555
561
  RowDefinition.prototype.subscribeForUpdates = function() {
556
562
  if(!this.isRealTimeRow()) {
557
- return;
563
+ return false;
558
564
  }
559
565
 
560
566
  var subs = this._dc ? this._dc.getSubscriptions() : null;
561
567
  if(!subs) {
562
- return;
568
+ return false;
563
569
  }
564
570
  // TODO: Check if the same subscription is being made.
565
571
  var prevRowData = this.unsubscribeForUpdates();
@@ -576,6 +582,7 @@ RowDefinition.prototype.subscribeForUpdates = function() {
576
582
  } else {
577
583
  this._dc.setRowData(this._dataId, {"X_RIC_NAME": this._ric, "ROW_DEF": this}); // Trigger data update immediately
578
584
  }
585
+ return true;
579
586
  };
580
587
  /** @public
581
588
  * @returns {*}
@@ -8,15 +8,15 @@ declare class SnapshotFiller extends EventDispatcher {
8
8
 
9
9
  public setRTK(rtk: any): void;
10
10
 
11
- public setADCOptions(adcOptions: Grid.ADCOptions): void;
11
+ public setADCOptions(adcOptions: Grid.ADCOptions|null): void;
12
12
 
13
13
  public addRic(ric: string): void;
14
14
 
15
- public addRics(rics: (string)[]): boolean;
15
+ public addRics(rics: (string)[]|null): boolean;
16
16
 
17
17
  public addField(str: string): void;
18
18
 
19
- public addFields(fields: (string)[]): boolean;
19
+ public addFields(fields: (string)[]|null): boolean;
20
20
 
21
21
  public static isValidField(str: string): boolean;
22
22
 
@@ -9,7 +9,7 @@ declare class StyleLoader {
9
9
 
10
10
  public static readonly styles: string;
11
11
 
12
- public static applyStyle(grid: Core): void;
12
+ public static applyStyle(grid: Core|null): void;
13
13
 
14
14
  }
15
15
 
@@ -7,14 +7,14 @@ import { isIE, cloneObject, prepareTSVContent } from "../../tr-grid-util/es6/Uti
7
7
  declare namespace CellSelectionPlugin {
8
8
 
9
9
  type Options = {
10
- mode?: string,
11
- multipleSelection?: boolean,
12
- autoDeselecting?: boolean,
13
- tabToSelect?: boolean,
14
- selectionChanged?: ((...params: any[]) => any),
15
- copy?: ((...params: any[]) => any),
16
- beforeMouseDown?: ((...params: any[]) => any),
17
- selectableSections?: any[]
10
+ mode?: string|null,
11
+ multipleSelection?: boolean|null,
12
+ autoDeselecting?: boolean|null,
13
+ tabToSelect?: boolean|null,
14
+ selectionChanged?: ((...params: any[]) => any)|null,
15
+ copy?: ((...params: any[]) => any)|null,
16
+ beforeMouseDown?: ((...params: any[]) => any)|null,
17
+ selectableSections?: any[]|null
18
18
  };
19
19
 
20
20
  }
@@ -41,7 +41,7 @@ declare class CellSelectionPlugin extends GridPlugin {
41
41
 
42
42
  public getLastSelectionBounds(opt_ret?: any): any;
43
43
 
44
- public setSelectableSections(types?: (string|(string)[]|null)): void;
44
+ public setSelectableSections(types?: (string|(string)[]|null)|null): void;
45
45
 
46
46
  public selectSingleCell(anchor: any): void;
47
47
 
@@ -53,9 +53,9 @@ declare class CellSelectionPlugin extends GridPlugin {
53
53
 
54
54
  public getAnchorInfo(): any;
55
55
 
56
- public getSelectedCells(): (any[])[];
56
+ public getSelectedCells(): (any[])[]|null;
57
57
 
58
- public disableSelection(opt_disable?: boolean): void;
58
+ public disableSelection(opt_disable?: boolean|null): void;
59
59
 
60
60
  public setAutoDeselectingOnBlur(bool: boolean): void;
61
61