@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
@@ -201,5 +201,13 @@ SectionWriter.prototype.getCellElement = function (colIndex, rowIndex) {
201
201
  return this._table.getCell(colIndex, rowIndex);
202
202
  };
203
203
 
204
+ /** @public
205
+ * @ignore
206
+ * @param {boolean} enabled
207
+ */
208
+ SectionWriter.prototype._startBindingSession = function (enabled) {
209
+ // Prevent error when calling _startBindingSession in LayoutGrid
210
+ };
211
+
204
212
 
205
213
  export { SectionWriter };
@@ -35,11 +35,6 @@ Ext.inherits(RangeBarPlugin, GridPlugin);
35
35
  * @private
36
36
  */
37
37
 
38
- RangeBarPlugin._themeLoaded = false;
39
- /** @type {boolean}
40
- * @private
41
- */
42
-
43
38
  RangeBarPlugin.prototype._themeLoading = false;
44
39
  /** @type {number}
45
40
  * @private
@@ -75,9 +70,9 @@ RangeBarPlugin.prototype.initialize = function (host, options) {
75
70
  host.listen("columnAdded", this._onColumnAdded);
76
71
  host.listen("columnRemoved", this._onColumnRemoved);
77
72
 
78
- if (!RangeBarPlugin._themeLoaded && !this._themeLoading) {
73
+ if (!this._themeLoading) {
79
74
  this._themeLoading = true;
80
- ElfUtil.getThemeColors().then(this._onThemeLoaded);
75
+ ElfUtil.getThemeColors().then(this._onThemeLoaded)["catch"](this._onThemeLoaded);
81
76
  }
82
77
  };
83
78
  /** @override */
@@ -265,8 +260,6 @@ RangeBarPlugin.prototype._getColumnRangeDef = function (colIndex) {
265
260
 
266
261
 
267
262
  RangeBarPlugin.prototype._onThemeLoaded = function () {
268
- RangeBarPlugin._themeLoaded = true;
269
-
270
263
  for (var i = this._hosts.length; --i >= 0;) {
271
264
  this._hosts[i].requestRowRefresh();
272
265
  }
@@ -277,7 +270,7 @@ RangeBarPlugin.prototype._onThemeLoaded = function () {
277
270
 
278
271
 
279
272
  RangeBarPlugin.prototype._renderer = function (e) {
280
- if (!RangeBarPlugin._themeLoaded) {
273
+ if (!ElfUtil.isThemeLoaded()) {
281
274
  return;
282
275
  }
283
276
 
@@ -46,6 +46,12 @@ declare class RowDraggingPlugin extends GridPlugin {
46
46
 
47
47
  public getGuideline(): Element|null;
48
48
 
49
+ public disable(disabled?: boolean): void;
50
+
51
+ public isDisabled(): boolean;
52
+
53
+ public disableUIs(disabled?: boolean): void;
54
+
49
55
  }
50
56
 
51
57
  export default RowDraggingPlugin;
@@ -8,7 +8,7 @@ import { DragUI } from "../../tr-grid-util/es6/DragUI.js";
8
8
  /** @typedef {Object} RowDraggingPlugin~Options
9
9
  * @description Available options describing `rowDragging` object specified in grid's option
10
10
  * @property {boolean=} dragBox=false If enabled, information box will be shown during the drag
11
- * @property {boolean=} disabled=false If enabled, dataTransfer and autoScroll will be disabled, and guileline UI will not been shown.
11
+ * @property {boolean=} disabled=false A flag to turn off UIs, while events will still be dispatched. If enabled, guileline and drag box will be hidden. autoScroll will also be turned off.
12
12
  * @property {boolean=} mouseInput=true If disabled, mousemove/mousedown will not trigger the drag operation.
13
13
  * @property {boolean=} dataTransfer=true If disabled, internal row data will not be moved at the end of the drag operation.
14
14
  * @property {boolean=} autoScroll=true If disabled, grid will not be verticallly scrolled when mouse is hovering around the edges of the grid.
@@ -85,7 +85,9 @@ var RowDraggingPlugin = function (options) {
85
85
  t._dragBoxIcon = document.createElement("ef-icon");
86
86
  t._dragBoxIcon.className = "drag-box-icon";
87
87
 
88
- t.config({ "rowDragging": options });
88
+ if(options) {
89
+ t.config({ "rowDragging": options });
90
+ }
89
91
  };
90
92
  Ext.inherits(RowDraggingPlugin, GridPlugin);
91
93
 
@@ -110,7 +112,12 @@ RowDraggingPlugin.prototype._dragBox = null;
110
112
  * @private
111
113
  */
112
114
  RowDraggingPlugin.prototype._dragBoxIcon = null;
113
- /** For disabled UI
115
+ /** For disabling UIs
116
+ * @type {boolean}
117
+ * @private
118
+ */
119
+ RowDraggingPlugin.prototype._uiDisabled = false;
120
+ /** For disabling drag and drop functionalities
114
121
  * @type {boolean}
115
122
  * @private
116
123
  */
@@ -249,7 +256,7 @@ RowDraggingPlugin.prototype.initialize = function (host, options) {
249
256
  DragUI.applyThemeColor(host);
250
257
  } else {
251
258
  DragUI.stylePromise = ElfUtil.getThemeColors();
252
- DragUI.stylePromise.then(this._onThemeLoaded);
259
+ DragUI.stylePromise.then(this._onThemeLoaded).catch(this._onThemeLoaded);
253
260
  }
254
261
 
255
262
  // In case of lazy loading
@@ -275,9 +282,9 @@ RowDraggingPlugin.prototype.unload = function (host) {
275
282
  };
276
283
 
277
284
  /** @private
278
- * @param {Object} colors
279
285
  */
280
- RowDraggingPlugin.prototype._onThemeLoaded = function(colors) {
286
+ RowDraggingPlugin.prototype._onThemeLoaded = function() {
287
+ var colors = ElfUtil.getColors();
281
288
  this._dragUI.onThemeLoaded(colors); // TODO : onThemeLoaded should be static function like DragUI.applyThemeColor
282
289
  for(var i = this._hosts.length; --i >= 0;) {
283
290
  DragUI.applyThemeColor(this._hosts[i]);
@@ -318,7 +325,7 @@ RowDraggingPlugin.prototype.config = function (options) {
318
325
  }
319
326
 
320
327
  if (extOptions["disabled"]) {
321
- this._disabled = true;
328
+ this._uiDisabled = true;
322
329
  }
323
330
 
324
331
  this.addListener(extOptions, "dragStart");
@@ -343,7 +350,7 @@ RowDraggingPlugin.prototype.getConfigObject = function (out_obj) {
343
350
  extOptions.mouseInput = this._mouseInput;
344
351
  extOptions.autoScroll = this._autoScroll;
345
352
  extOptions.dataTransfer = this._dataTransfer;
346
- extOptions.disabled = this._disabled;
353
+ extOptions.disabled = this._uiDisabled;
347
354
 
348
355
  return obj;
349
356
  };
@@ -354,6 +361,9 @@ RowDraggingPlugin.prototype.getConfigObject = function (out_obj) {
354
361
  */
355
362
  RowDraggingPlugin.prototype.startDrag = function (startRef) {
356
363
  if (this._dragging || this._hosts.length <= 0) { return; }
364
+ if (this._disabled) {
365
+ return;
366
+ }
357
367
 
358
368
  var pos;
359
369
  if (startRef) {
@@ -401,6 +411,31 @@ RowDraggingPlugin.prototype.getGuideline = function () {
401
411
  return this._guideline;
402
412
  };
403
413
 
414
+ /** Disable drag and drop functionality. Unlike disableUIs method, no events will be triggered or dispatched by user actions.
415
+ * This method is useful for temporary turnning off drag and drop functionalities.
416
+ * @public
417
+ * @param {boolean=} disabled
418
+ * @see {@link RowDraggingPlugin#disable}
419
+ */
420
+ RowDraggingPlugin.prototype.disable = function (disabled) {
421
+ this._disabled = disabled !== false;
422
+ };
423
+ /** @public
424
+ * @return {boolean}
425
+ */
426
+ RowDraggingPlugin.prototype.isDisabled = function () {
427
+ return this._disabled;
428
+ };
429
+ /** Disable UIs, while events will still be triggered by user actions. This method modify `disabled` property on the configuration object.
430
+ * This method is useful for customizing UIs during the drag operations.
431
+ * @public
432
+ * @param {boolean=} disabled
433
+ * @see {@link RowDraggingPlugin#disable}
434
+ */
435
+ RowDraggingPlugin.prototype.disableUIs = function (disabled) {
436
+ this._uiDisabled = disabled !== false;
437
+ };
438
+
404
439
  /** @private
405
440
  * @param {*} e
406
441
  * @return {!Object}
@@ -467,7 +502,7 @@ RowDraggingPlugin.prototype._onDragStart = function (e) {
467
502
  }
468
503
 
469
504
  // Update UI, grid cursor and guideline
470
- if (!this._disabled) { //disabledUI
505
+ if (!this._uiDisabled) { //disabledUI
471
506
  var grid = this._pos["grid"] || null;
472
507
  if (!grid) return;
473
508
 
@@ -536,7 +571,7 @@ RowDraggingPlugin.prototype._onMouseMove = function (e) {
536
571
 
537
572
  // Dispatch drag event to let user determine valid drop target using allowDrag (allowDrop) method
538
573
  this._dispatch("drag", this._pos);
539
- if(!this._disabled) {
574
+ if(!this._uiDisabled) {
540
575
  e.dragBoxIcon = this._pos.dragBoxIcon; // access event object instread of element for prevent element persistence
541
576
  var drop = this._dragUI.renderDragBox(e, this._startingGrid);
542
577
  if(!drop) { // can not be drop or not allow to drop or insertion
@@ -582,20 +617,18 @@ RowDraggingPlugin.prototype._onDragEnd = function (e) {
582
617
  // WARNING: dropTarget is not correct for element in a shadow root
583
618
  destPos["dropTarget"] = e ? e.target : null;
584
619
 
585
- if (!this.disabled) {
586
- if (this._dataTransfer && _isInContentSection(this._pos)) {
587
- var destGrid = destPos["grid"] || srcGrid;
588
- var destRowIndex = destPos["rowIndex"];
620
+ if (this._dataTransfer && _isInContentSection(this._pos)) {
621
+ var destGrid = destPos["grid"] || srcGrid;
622
+ var destRowIndex = destPos["rowIndex"];
589
623
 
590
- var rowSelection = srcGrid.getPlugin('RowSelectionPlugin');
591
- var srcRowIndices = rowSelection && rowSelection.getSelectedRows();
592
- if (!srcRowIndices || !srcRowIndices.length) {
593
- // case no row selection or it disabled
594
- srcRowIndices = this._startingRid; // Str Type
595
- }
596
-
597
- this._moveRows(srcRowIndices, destRowIndex, srcGrid, destGrid, destPos);
624
+ var rowSelection = srcGrid.getPlugin('RowSelectionPlugin');
625
+ var srcRowIndices = rowSelection && rowSelection.getSelectedRows();
626
+ if (!srcRowIndices || !srcRowIndices.length) {
627
+ // case no row selection or it disabled
628
+ srcRowIndices = this._startingRid; // Str Type
598
629
  }
630
+
631
+ this._moveRows(srcRowIndices, destRowIndex, srcGrid, destGrid, destPos);
599
632
  }
600
633
  }
601
634
 
@@ -689,7 +722,7 @@ RowDraggingPlugin.prototype._isDragCancelled = function () {
689
722
  */
690
723
  RowDraggingPlugin.prototype._updateGuidePosition = function (e) {
691
724
  var pos = this._pos;
692
- if (this._disabled || !pos || pos["invalidTarget"]) {
725
+ if (this._uiDisabled || !pos || pos["invalidTarget"]) {
693
726
  return;
694
727
  }
695
728
 
@@ -18,7 +18,8 @@ declare namespace RowFilteringPlugin {
18
18
 
19
19
  type ColumnOptions = {
20
20
  filter?: RowFilteringPlugin.Expression,
21
- filterState?: any
21
+ filterState?: any,
22
+ filterIcon?: boolean
22
23
  };
23
24
 
24
25
  type FilterDialogOptions = {
@@ -86,13 +87,13 @@ declare class RowFilteringPlugin extends GridPlugin {
86
87
 
87
88
  public getAllColumnFilters(): (((...params: any[]) => any))[];
88
89
 
89
- public getFilterExpressions(): (RowFilteringPlugin.FilterExpression)[];
90
+ public getFilterExpressions(): (RowFilteringPlugin.FilterExpression)[]|null;
90
91
 
91
92
  public setFilterExpressions(filterExps: (RowFilteringPlugin.FilterExpression)[]): void;
92
93
 
93
94
  public hasColumnFilter(): boolean;
94
95
 
95
- public getColumnFilterIcons(colIndex: number): (Element)[];
96
+ public getColumnFilterIcons(colIndex: number): (Element)[]|null;
96
97
 
97
98
  public updateAllColumnIcons(): void;
98
99
 
@@ -56,6 +56,7 @@ The expression can take various forms:<br>
56
56
  * @description Extension column options that can be specified on each individual grid's column option:
57
57
  * @property {RowFilteringPlugin~Expression=} filter An expression string or Function
58
58
  * @property {*=} filterState Context object that will be passed as the third parameter for the filter logic
59
+ * @property {boolean=} filterIcon=true If disabled, filter icon will not be shown. This property only works with 'always' mode
59
60
  */
60
61
 
61
62
  /** @typedef {Object} RowFilteringPlugin~FilterDialogOptions
@@ -234,7 +235,7 @@ RowFilteringPlugin.prototype.initialize = function (host, options) {
234
235
  this._hosts.push(host);
235
236
 
236
237
  if (!RowFilteringPlugin._styles) {
237
- RowFilteringPlugin._styles = prettifyCss([".hovering-filter-icon .cell:not(.active-filter):hover .floating-panel .title-filter-icon", ["display: flex;"], ".hovering-filter-icon .cell:not(.active-filter) .floating-panel .title-filter-icon", ["display: none;"], ".floating-panel", ["position:relative;"], ".floating-panel .title-filter-icon", ["color: var(--grid-title-filter-icon-color,inherit);"], ".floating-panel .title-filter-icon:hover", ["color: var(--grid-title-filter-icon-hover-color,inherit);"], ".hovering-filter-icon .tiny-col .cell:hover, .tr-grid .tiny-col .cell.active-filter", ["padding-left:0px;"], ".tiny-col .cell .floating-panel .title-filter-icon:before", ["content: '.';", "position: absolute;", "margin-left: auto;", "margin-right: auto;", "left: 0;", "right: 0;", "top: -10px;", "font-size: 10px;", "font-family: monospace;", "color: var(--grid-title-dot-icon,inherit);", "text-align:center;"]]);
238
+ RowFilteringPlugin._styles = prettifyCss([".hovering-filter-icon .cell:not(.active-filter):hover .floating-panel .title-filter-icon", ["display: flex;"], ".hovering-filter-icon .cell:not(.active-filter) .floating-panel .title-filter-icon", ["display: none;"], ".floating-panel", ["position:relative;"], ".floating-panel .title-filter-icon", ["color: var(--grid-title-filter-icon-color,inherit);"], ".title .floating-panel .title-filter-icon:hover", ["color: var(--grid-title-filter-icon-hover-color,inherit);"], ".always-on-filter .floating-panel .title-filter-icon", ["color: var(--grid-header-txtcolor,inherit);"], ".always-on-filter .active-filter .floating-panel .title-filter-icon", ["color: var(--grid-title-filter-icon-hover-color,inherit);"], ".hovering-filter-icon .tiny-col .cell:hover, .tr-grid .tiny-col .cell.active-filter", ["padding-left:0px;"], ".tiny-col.movable .cell .floating-panel .title-filter-icon:before", ["content: '.';", "position: absolute;", "margin-left: auto;", "margin-right: auto;", "left: 0;", "right: 0;", "top: -10px;", "font-size: 10px;", "font-family: monospace;", "color: var(--grid-title-dot-icon,inherit);", "text-align:center;"]]);
238
239
  }
239
240
 
240
241
  if (!host._rowFilteringStyles) {
@@ -292,10 +293,18 @@ RowFilteringPlugin.prototype.config = function (options) {
292
293
  if (rowFiltering["iconActivation"]) {
293
294
  this._iconActivation = rowFiltering["iconActivation"];
294
295
 
295
- if (this._iconActivation === "onHover") {
296
- this._hosts[0].enableClass("hovering-filter-icon", true);
297
- } else {
298
- this._hosts[0].enableClass("hovering-filter-icon", false);
296
+ for (var index = 0; index < this._hosts.length; index++) {
297
+ if (this._iconActivation === "onHover") {
298
+ this._hosts[index].enableClass("hovering-filter-icon", true);
299
+ } else {
300
+ this._hosts[index].enableClass("hovering-filter-icon", false);
301
+ }
302
+
303
+ if (this._iconActivation === "always") {
304
+ this._hosts[index].enableClass("always-on-filter", true);
305
+ } else {
306
+ this._hosts[index].enableClass("always-on-filter", false);
307
+ }
299
308
  }
300
309
  }
301
310
 
@@ -323,8 +332,6 @@ RowFilteringPlugin.prototype.config = function (options) {
323
332
 
324
333
  this._setColumnOptions(i, column);
325
334
  }
326
-
327
- this.updateAllColumnIcons(); //Create icon at first time
328
335
  };
329
336
  /** @public
330
337
  * @param {Object=} gridOptions
@@ -627,18 +634,26 @@ RowFilteringPlugin.prototype.setColumnFilter = function (colIndex, exp, ctx) {
627
634
 
628
635
 
629
636
  RowFilteringPlugin.prototype._setColumnOptions = function (colIndex, columnOptions) {
637
+ var colOptions = this._newExtColumnOptions(colIndex);
638
+
639
+ var filterIcon = columnOptions["filterIcon"];
630
640
  var fieldDataType = columnOptions["fieldDataType"] || columnOptions["dataType"]; // TODO: This should not be set here, should retreive data type from Composite/Realtime Grid
631
641
 
632
642
  if (fieldDataType) {
633
- var colOptions = this._newExtColumnOptions(colIndex);
634
-
635
643
  colOptions.fieldDataType = fieldDataType; // TODO: This should not be set here, should retreive data type from Composite/Realtime Grid
636
644
  }
637
645
 
646
+ if (filterIcon != null) {
647
+ colOptions.filterIcon = filterIcon;
648
+ }
649
+
650
+ var iconActivation = filterIcon == false ? "none" : this._iconActivation;
638
651
  var exp = columnOptions["filter"];
639
652
 
640
653
  if (exp) {
641
654
  this.addColumnFilter(colIndex, exp, columnOptions["filterState"]);
655
+ } else if (iconActivation == "always" || iconActivation == "onHover") {
656
+ this._updateColumnIcon(colIndex);
642
657
  }
643
658
  };
644
659
  /** @private
@@ -1241,6 +1256,9 @@ RowFilteringPlugin.prototype.refresh = function () {
1241
1256
  RowFilteringPlugin.prototype._updateColumnIcon = function (colIndex) {
1242
1257
  var cfo = this._getColumnFilterOption(colIndex);
1243
1258
 
1259
+ var co = this._getExtColumnOptions(colIndex);
1260
+
1261
+ var iconActivation = co.filterIcon == false ? "none" : this._iconActivation;
1244
1262
  var hasFilter = cfo ? cfo._filters.length : 0;
1245
1263
 
1246
1264
  for (var i = this._hosts.length; --i >= 0;) {
@@ -1254,6 +1272,8 @@ RowFilteringPlugin.prototype._updateColumnIcon = function (colIndex) {
1254
1272
  var rCount = tsect.getRowCount();
1255
1273
  var cell = tsect.getCell(colIndex, rCount - 1, true); // Get bottom cell
1256
1274
 
1275
+ var column = tsect.getColumn(colIndex);
1276
+
1257
1277
  if (!cell) {
1258
1278
  continue;
1259
1279
  } // HACK: Update cell padding for all type of icons (sorting and column grouping icons)
@@ -1263,8 +1283,16 @@ RowFilteringPlugin.prototype._updateColumnIcon = function (colIndex) {
1263
1283
  cell["updatePadding"]();
1264
1284
  }
1265
1285
 
1266
- var onActiveFilter = this._iconActivation !== "always" && this._iconActivation !== "onHover";
1267
- var noFilterIcon = this._disabled || this._iconActivation === "none" || onActiveFilter && !hasFilter;
1286
+ var isColumnMovable = host.isColumnMovable(colIndex);
1287
+
1288
+ if (isColumnMovable) {
1289
+ column.enableClass("movable", true);
1290
+ } else {
1291
+ column.enableClass("movable", false);
1292
+ }
1293
+
1294
+ var onActiveFilter = iconActivation !== "always" && iconActivation !== "onHover";
1295
+ var noFilterIcon = this._disabled || iconActivation === "none" || onActiveFilter && !hasFilter;
1268
1296
 
1269
1297
  if (!noFilterIcon) {
1270
1298
  if (!cell._filterIcon) {
@@ -1292,7 +1320,7 @@ RowFilteringPlugin.prototype._updateColumnIcon = function (colIndex) {
1292
1320
  cell._filterIcon = filterIcon;
1293
1321
  }
1294
1322
 
1295
- if (hasFilter || this._iconActivation == "always") {
1323
+ if (hasFilter) {
1296
1324
  cell.enableClass("active-filter", true);
1297
1325
  } else {
1298
1326
  cell.enableClass("active-filter", false);
@@ -1709,6 +1737,21 @@ RowFilteringPlugin.prototype.openDialog = function (colIndex, options) {
1709
1737
  this._filterDialog.init(dialogConfig);
1710
1738
  }
1711
1739
 
1740
+ var colData = host.getColumnData(colIndex);
1741
+ var formatOptions = colData.formatOptions;
1742
+ var useUTCTime = false;
1743
+
1744
+ if (formatOptions) {
1745
+ if (formatOptions.formatType) {
1746
+ useUTCTime = true;
1747
+
1748
+ if (formatOptions.useUTCTime != null) {
1749
+ useUTCTime = formatOptions.useUTCTime;
1750
+ }
1751
+ }
1752
+ }
1753
+
1754
+ this._filterDialog.useUTCTime = useUTCTime;
1712
1755
  this._filterDialog.target = cell.getElement();
1713
1756
  this._filterDialog._colIndex = colIndex;
1714
1757
  this._filterDialog.data = items; // TODO: Move all settings to configuration object
@@ -1915,7 +1958,8 @@ RowFilteringPlugin.prototype._onColumnRemoved = function (e) {
1915
1958
  return;
1916
1959
  }
1917
1960
 
1918
- var cfo = colData["filterOption"];
1961
+ var crf = colData["rowFiltering"];
1962
+ var cfo = crf["filterOption"];
1919
1963
 
1920
1964
  if (cfo) {
1921
1965
  var funcIndex = this._columnFilters.indexOf(cfo);
@@ -1088,7 +1088,7 @@ RowGroupingPlugin.prototype._clearSectionStyles = function (colIndex) {
1088
1088
  var fi = section.getFirstIndexInView();
1089
1089
  var li = section.getLastIndexInView();
1090
1090
  for (var r = fi; r <= li; r++) {
1091
- rowPainter.removeHeaderStyle(section, colIndex, r);
1091
+ rowPainter.removeAllStyles(section, colIndex, r);
1092
1092
  }
1093
1093
  }
1094
1094
  };
@@ -176,16 +176,15 @@ RowSelectionPlugin.prototype.initialize = function (host, options) {
176
176
  RowSelectionPlugin._applyThemeColor(host);
177
177
  } else {
178
178
  RowSelectionPlugin._stylePromise = ElfUtil.getThemeColors();
179
- RowSelectionPlugin._stylePromise.then(this._onThemeLoaded);
179
+ RowSelectionPlugin._stylePromise.then(this._onThemeLoaded).catch(this._onThemeLoaded);
180
180
  }
181
181
  }
182
182
 
183
183
  };
184
184
 
185
185
  /** @private
186
- * @param {Object} colors
187
186
  */
188
- RowSelectionPlugin.prototype._onThemeLoaded = function(colors) {
187
+ RowSelectionPlugin.prototype._onThemeLoaded = function() {
189
188
  if(!RowSelectionPlugin._styles) {
190
189
  var styles = [
191
190
  ".row-selection-menu", [
@@ -30,8 +30,6 @@ declare class RowColoringPlugin extends GridPlugin {
30
30
 
31
31
  public getConfigObject(gridOptions?: any): any;
32
32
 
33
- public getRowConfigObject(rowId: string): any|null;
34
-
35
33
  public setRowColor(rowRef: string|number, bgColor?: (string|null), txtColor?: (string|null)): void;
36
34
 
37
35
  public getRowColor(rowRef: string|number): string;
@@ -231,42 +231,6 @@ RowColoringPlugin.prototype.getConfigObject = function (gridOptions) {
231
231
  return obj;
232
232
  };
233
233
  /** @public
234
- * @param {string} rowId
235
- * @return {Object|null} If this row doesn't contain a config object, return null.
236
- */
237
-
238
-
239
- RowColoringPlugin.prototype.getRowConfigObject = function (rowId) {
240
- // TODO: Should be call a method for get data from dataTable in tr-grid-util instead of call direct in dataTable
241
- var dv = this._getDataView();
242
-
243
- if (!dv) {
244
- return null;
245
- }
246
-
247
- var dt = dv.getDataSource();
248
-
249
- if (!dt) {
250
- return null;
251
- }
252
-
253
- var rowData = this._rowGetter(dt.getRowData(rowId)); // get data from dataTable
254
-
255
-
256
- if (!rowData) {
257
- return null;
258
- }
259
-
260
- var obj = {}; // Only css field for predefine user color classes are currently supported
261
-
262
- if (rowData[this._cssField]) {
263
- obj[this._cssField] = rowData[this._cssField];
264
- return obj;
265
- }
266
-
267
- return null;
268
- };
269
- /** @public
270
234
  * @param {string|number} rowRef Row id in the data table or row index
271
235
  * @param {(string|null)=} bgColor
272
236
  * @param {(string|null)=} txtColor
@@ -369,10 +333,7 @@ RowColoringPlugin.prototype.setRowPredefinedColor = function (rowRef, color) {
369
333
  return;
370
334
  }
371
335
 
372
- var values = {};
373
- values[this._cssField] = color || "";
374
-
375
- this._setRowData(dv, rowRef, values);
336
+ this._setStaticData(dv, rowRef, this._cssField, color || "");
376
337
  };
377
338
  /** @public
378
339
  * @return {Object} Return predefined color object map
@@ -5,31 +5,31 @@ import { ElfUtil } from "./ElfUtil.js";
5
5
  declare namespace CellPainter {
6
6
 
7
7
  type Expression = {
8
- name?: string,
8
+ name?: string|null,
9
9
  text: string,
10
- values?: any[]
10
+ values?: any[]|null
11
11
  };
12
12
 
13
13
  type Condition = {
14
14
  field: string,
15
- expression: CellPainter.Expression|string,
16
- backgroundColor?: string,
17
- color?: string,
18
- fontSize?: string,
19
- fontWeight?: string,
20
- fontStyle?: string,
21
- textAlign?: string,
22
- textDecoration?: string
15
+ expression: CellPainter.Expression|string|null,
16
+ backgroundColor?: string|null,
17
+ color?: string|null,
18
+ fontSize?: string|null,
19
+ fontWeight?: string|null,
20
+ fontStyle?: string|null,
21
+ textAlign?: string|null,
22
+ textDecoration?: string|null
23
23
  };
24
24
 
25
25
  type ThemeColors = {
26
- baseGrid?: string,
27
- baseText?: string,
28
- up?: string,
29
- down?: string,
30
- level?: string,
31
- tickUp?: string,
32
- tickDown?: string
26
+ baseGrid?: string|null,
27
+ baseText?: string|null,
28
+ up?: string|null,
29
+ down?: string|null,
30
+ level?: string|null,
31
+ tickUp?: string|null,
32
+ tickDown?: string|null
33
33
  };
34
34
 
35
35
  enum ColoringTypes {
@@ -46,7 +46,7 @@ declare class CellPainter {
46
46
 
47
47
  public static readonly themeReady: Promise<any>|null;
48
48
 
49
- public static parse(expression: string|((...params: any[]) => any)): ((...params: any[]) => any)|null;
49
+ public static parse(expression: string|((...params: any[]) => any)|null): ((...params: any[]) => any)|null;
50
50
 
51
51
  public dispose(): void;
52
52
 
@@ -68,15 +68,15 @@ declare class CellPainter {
68
68
 
69
69
  public getColoringType(): CellPainter.ColoringTypes|null;
70
70
 
71
- public setConditions(conditions: (CellPainter.Condition)[]): void;
71
+ public setConditions(conditions: (CellPainter.Condition)[]|null): void;
72
72
 
73
73
  public setColumnStats(columnStats: any): void;
74
74
 
75
75
  public getColumnStats(): any;
76
76
 
77
- public addHeatmap(field: string, midPoint: number, upColor: string, downColor: string, baseColor: string, opt_textMode?: (string|boolean)): any;
77
+ public addHeatmap(field: string, midPoint: number, upColor: string, downColor: string, baseColor: string, opt_textMode?: (string|boolean)|null): any;
78
78
 
79
- public addHeatmapWithTheme(field: string, midPoint: number, opt_textMode?: (string|boolean)): any;
79
+ public addHeatmapWithTheme(field: string, midPoint: number, opt_textMode?: (string|boolean)|null): any;
80
80
 
81
81
  public addColorText(field: string, upColor: string, downColor: string, levelColor: string): any;
82
82
 
@@ -86,23 +86,23 @@ declare class CellPainter {
86
86
 
87
87
  public addTickColorTextWithTheme(): any;
88
88
 
89
- public addTickBlink(upColor: string, downColor: string, levelColor: string, opt_border?: (string|boolean)): any;
89
+ public addTickBlink(upColor: string, downColor: string, levelColor: string, opt_border?: (string|boolean)|null): any;
90
90
 
91
- public addTickBlinkWithTheme(opt_border?: (string|boolean)): any;
91
+ public addTickBlinkWithTheme(opt_border?: (string|boolean)|null): any;
92
92
 
93
- public addBlink(field: string, upColor: string, downColor: string, levelColor: string, opt_border?: (string|boolean)): any;
93
+ public addBlink(field: string, upColor: string, downColor: string, levelColor: string, opt_border?: (string|boolean)|null): any;
94
94
 
95
- public addBlinkWithTheme(field: string, opt_border?: (string|boolean)): any;
95
+ public addBlinkWithTheme(field: string, opt_border?: (string|boolean)|null): any;
96
96
 
97
- public renderForPrinting(cell: Element, rowData: any, min: number, max: number): void;
97
+ public renderForPrinting(cell: Element|null, rowData: any, min: number, max: number): void;
98
98
 
99
99
  public static blendColor(baseColor: string, maxColor: string, ratio: number): (number)[]|null;
100
100
 
101
101
  public static rgb2Hex(rgbCode: string): string;
102
102
 
103
- public static num2Hex(triplet: (number)[]): string;
103
+ public static num2Hex(triplet: (number)[]|null): string;
104
104
 
105
- public static num2Rgb(triplet: (number)[]): string;
105
+ public static num2Rgb(triplet: (number)[]|null): string;
106
106
 
107
107
  public static hex2Num(hex: string): (number)[]|null;
108
108
 
@@ -114,7 +114,7 @@ declare class CellPainter {
114
114
 
115
115
  public static reloadThemeColors(): Promise<any>|null;
116
116
 
117
- public static getOppositeColor(hexCode: string|(number)[]): string;
117
+ public static getOppositeColor(hexCode: string|(number)[]|null): string;
118
118
 
119
119
  public render(cell: any, rowData: any, min: number, max: number, changedCols?: any): void;
120
120
 
@@ -128,7 +128,7 @@ declare class CellPainter {
128
128
 
129
129
  public verifyBlinking(cell: any, rowData: any): void;
130
130
 
131
- public disableLevelColor(disabled?: boolean): void;
131
+ public disableLevelColor(disabled?: boolean|null): void;
132
132
 
133
133
  }
134
134