@refinitiv-ui/efx-grid 6.0.5 → 6.0.6

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 (274) 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 +372 -229
  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 +33 -10
  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 +4 -4
  18. package/lib/core/es6/data/SegmentCollection.d.ts +7 -7
  19. package/lib/core/es6/data/WrappedView.d.ts +62 -62
  20. package/lib/core/es6/grid/Core.d.ts +95 -95
  21. package/lib/core/es6/grid/Core.js +173 -25
  22. package/lib/core/es6/grid/ILayoutGrid.d.ts +20 -20
  23. package/lib/core/es6/grid/ILayoutGrid.js +2 -1
  24. package/lib/core/es6/grid/LayoutGrid.d.ts +2 -2
  25. package/lib/core/es6/grid/LayoutGrid.js +18 -10
  26. package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +2 -2
  27. package/lib/core/es6/grid/VirtualizedLayoutGrid.js +14 -3
  28. package/lib/core/es6/grid/components/Cell.d.ts +6 -6
  29. package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +2 -2
  30. package/lib/core/es6/grid/components/CellSpans.d.ts +2 -2
  31. package/lib/core/es6/grid/components/Column.d.ts +2 -2
  32. package/lib/core/es6/grid/components/ElementWrapper.d.ts +19 -19
  33. package/lib/core/es6/grid/components/Scrollbar.d.ts +9 -9
  34. package/lib/core/es6/grid/components/StretchedCells.js +12 -2
  35. package/lib/core/es6/grid/event/EventDispatcher.d.ts +3 -3
  36. package/lib/core/es6/grid/event/EventListeners.d.ts +5 -5
  37. package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +45 -44
  38. package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +62 -65
  39. package/lib/core/es6/grid/util/Conflator.d.ts +4 -4
  40. package/lib/core/es6/grid/util/HttpRequest.d.ts +3 -3
  41. package/lib/core/es6/grid/util/PercentBar.d.ts +8 -8
  42. package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +8 -8
  43. package/lib/core/es6/grid/util/RangeBar.d.ts +1 -1
  44. package/lib/core/es6/grid/util/RangeBar.js +1 -1
  45. package/lib/core/es6/grid/util/Reverter.d.ts +1 -1
  46. package/lib/core/es6/grid/util/SectionSettings.d.ts +13 -13
  47. package/lib/core/es6/grid/util/SelectionList.d.ts +2 -2
  48. package/lib/core/es6/grid/util/TrackLayout.d.ts +9 -9
  49. package/lib/core/es6/grid/util/Virtualizer.d.ts +3 -3
  50. package/lib/core/es6/grid/util/util.d.ts +6 -4
  51. package/lib/core/es6/grid/util/util.js +16 -91
  52. package/lib/core/es6/tr-grid-theme.js +1 -1
  53. package/lib/filter-dialog/lib/checkbox-list.d.ts +1 -1
  54. package/lib/filter-dialog/lib/filter-dialog.d.ts +1 -1
  55. package/lib/filter-dialog/lib/filter-dialog.js +27 -9
  56. package/lib/filter-dialog/themes/base-checkbox.less +0 -1
  57. package/lib/filter-dialog/themes/base.less +1 -1
  58. package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
  59. package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
  60. package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
  61. package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
  62. package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
  63. package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
  64. package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
  65. package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
  66. package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
  67. package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
  68. package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
  69. package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
  70. package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
  71. package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
  72. package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
  73. package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
  74. package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
  75. package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
  76. package/lib/grid/index.js +1 -1
  77. package/lib/grid/lib/efx-grid.js +3 -0
  78. package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
  79. package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
  80. package/lib/grid/themes/halo/efx-grid.less +5 -5
  81. package/lib/grid/themes/halo/light/efx-grid.js +1 -1
  82. package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
  83. package/lib/row-segmenting/es6/RowSegmenting.d.ts +30 -24
  84. package/lib/row-segmenting/es6/RowSegmenting.js +122 -21
  85. package/lib/rt-grid/dist/rt-grid.js +689 -367
  86. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  87. package/lib/rt-grid/es6/ColumnDefinition.d.ts +46 -42
  88. package/lib/rt-grid/es6/ColumnDefinition.js +31 -1
  89. package/lib/rt-grid/es6/DataConnector.d.ts +6 -4
  90. package/lib/rt-grid/es6/DataConnector.js +8 -0
  91. package/lib/rt-grid/es6/FieldDefinition.d.ts +2 -2
  92. package/lib/rt-grid/es6/FieldDefinition.js +12 -5
  93. package/lib/rt-grid/es6/Grid.d.ts +102 -94
  94. package/lib/rt-grid/es6/Grid.js +70 -105
  95. package/lib/rt-grid/es6/ReferenceCounter.d.ts +5 -5
  96. package/lib/rt-grid/es6/RowDefSorter.d.ts +2 -2
  97. package/lib/rt-grid/es6/RowDefinition.d.ts +22 -22
  98. package/lib/rt-grid/es6/RowDefinition.js +12 -5
  99. package/lib/rt-grid/es6/SnapshotFiller.d.ts +3 -3
  100. package/lib/rt-grid/es6/StyleLoader.d.ts +1 -1
  101. package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +11 -11
  102. package/lib/tr-grid-cell-selection/es6/CellSelection.js +20 -35
  103. package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +18 -16
  104. package/lib/tr-grid-checkbox/es6/Checkbox.js +1 -0
  105. package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +29 -27
  106. package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +1 -0
  107. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +28 -14
  108. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +556 -11
  109. package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +2 -2
  110. package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1 -0
  111. package/lib/tr-grid-column-selection/es6/ColumnSelection.js +2 -3
  112. package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +15 -13
  113. package/lib/tr-grid-column-stack/es6/ColumnStack.js +96 -72
  114. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +11 -2
  115. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +309 -114
  116. package/lib/tr-grid-content-wrap/es6/ContentWrap.js +1 -6
  117. package/lib/tr-grid-contextmenu/es6/ContextMenu.js +3 -3
  118. package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +2 -2
  119. package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +2 -2
  120. package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +2 -1
  121. package/lib/tr-grid-heat-map/es6/HeatMap.js +6 -9
  122. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +5 -2
  123. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +311 -71
  124. package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +1 -1
  125. package/lib/tr-grid-percent-bar/es6/PercentBar.js +8 -11
  126. package/lib/tr-grid-printer/es6/SectionWriter.js +8 -0
  127. package/lib/tr-grid-range-bar/es6/RangeBar.js +3 -10
  128. package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +6 -0
  129. package/lib/tr-grid-row-dragging/es6/RowDragging.js +56 -23
  130. package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +4 -3
  131. package/lib/tr-grid-row-filtering/es6/RowFiltering.js +57 -13
  132. package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1 -1
  133. package/lib/tr-grid-row-selection/es6/RowSelection.js +2 -3
  134. package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +0 -2
  135. package/lib/tr-grid-rowcoloring/es6/RowColoring.js +1 -40
  136. package/lib/tr-grid-util/es6/CellPainter.d.ts +30 -30
  137. package/lib/tr-grid-util/es6/CellPainter.js +9 -8
  138. package/lib/tr-grid-util/es6/Conflator.d.ts +4 -4
  139. package/lib/tr-grid-util/es6/CoralItems.d.ts +1 -1
  140. package/lib/tr-grid-util/es6/DateTime.d.ts +10 -10
  141. package/lib/tr-grid-util/es6/Deferred.d.ts +3 -1
  142. package/lib/tr-grid-util/es6/Deferred.js +11 -1
  143. package/lib/tr-grid-util/es6/Delay.d.ts +2 -2
  144. package/lib/tr-grid-util/es6/Dom.d.ts +10 -10
  145. package/lib/tr-grid-util/es6/Dom.js +14 -10
  146. package/lib/tr-grid-util/es6/DragUI.js +5 -2
  147. package/lib/tr-grid-util/es6/ElementObserver.d.ts +2 -2
  148. package/lib/tr-grid-util/es6/ElementWrapper.d.ts +4 -4
  149. package/lib/tr-grid-util/es6/ElfDate.d.ts +5 -5
  150. package/lib/tr-grid-util/es6/ElfDate.js +1 -0
  151. package/lib/tr-grid-util/es6/ElfUtil.d.ts +10 -4
  152. package/lib/tr-grid-util/es6/ElfUtil.js +53 -4
  153. package/lib/tr-grid-util/es6/EventDispatcher.d.ts +5 -5
  154. package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +2 -2
  155. package/lib/tr-grid-util/es6/ExpanderIcon.js +1 -1
  156. package/lib/tr-grid-util/es6/Ext.d.ts +1 -1
  157. package/lib/tr-grid-util/es6/FieldFormatter.d.ts +12 -12
  158. package/lib/tr-grid-util/es6/FieldFormatter.js +1 -1
  159. package/lib/tr-grid-util/es6/FilterBuilder.d.ts +13 -13
  160. package/lib/tr-grid-util/es6/FilterBuilder.js +15 -8
  161. package/lib/tr-grid-util/es6/FilterOperators.d.ts +22 -22
  162. package/lib/tr-grid-util/es6/FilterOperators.js +3 -3
  163. package/lib/tr-grid-util/es6/GridPlugin.d.ts +10 -10
  164. package/lib/tr-grid-util/es6/GridPlugin.js +20 -0
  165. package/lib/tr-grid-util/es6/Icon.d.ts +3 -3
  166. package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +8 -8
  167. package/lib/tr-grid-util/es6/MultiTableManager.d.ts +6 -6
  168. package/lib/tr-grid-util/es6/NumberFormatter.d.ts +19 -19
  169. package/lib/tr-grid-util/es6/NumberFormatter.js +1 -1
  170. package/lib/tr-grid-util/es6/PercentBar.d.ts +19 -19
  171. package/lib/tr-grid-util/es6/Perf.d.ts +4 -4
  172. package/lib/tr-grid-util/es6/Popup.d.ts +36 -33
  173. package/lib/tr-grid-util/es6/Popup.js +19 -1
  174. package/lib/tr-grid-util/es6/RangeBar.d.ts +5 -5
  175. package/lib/tr-grid-util/es6/RequestQueue.d.ts +4 -4
  176. package/lib/tr-grid-util/es6/RowPainter.d.ts +37 -4
  177. package/lib/tr-grid-util/es6/RowPainter.js +199 -76
  178. package/lib/tr-grid-util/es6/SubTable.d.ts +14 -14
  179. package/lib/tr-grid-util/es6/Table.d.ts +25 -25
  180. package/lib/tr-grid-util/es6/TextHighlighter.d.ts +1 -1
  181. package/lib/tr-grid-util/es6/Timer.d.ts +1 -1
  182. package/lib/tr-grid-util/es6/TouchProxy.d.ts +9 -9
  183. package/lib/tr-grid-util/es6/Util.d.ts +12 -12
  184. package/lib/tr-grid-util/es6/formula/ADCService.d.ts +1 -1
  185. package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +1 -1
  186. package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +1 -1
  187. package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +1 -1
  188. package/lib/tr-grid-util/es6/formula/Engine.d.ts +9 -9
  189. package/lib/tr-grid-util/es6/formula/Formula.d.ts +4 -4
  190. package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +1 -1
  191. package/lib/tr-grid-util/es6/formula/Realtime.d.ts +3 -3
  192. package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +1 -1
  193. package/lib/tr-grid-util/es6/formula/TSIService.d.ts +1 -1
  194. package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +1 -1
  195. package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +1 -1
  196. package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +1 -1
  197. package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +34 -34
  198. package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +1 -1
  199. package/lib/tr-grid-util/es6/jet/MockJET.d.ts +4 -4
  200. package/lib/tr-grid-util/es6/jet/MockJET.js +12 -4
  201. package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +9 -9
  202. package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +17 -9
  203. package/lib/tr-grid-util/es6/jet/MockQuotes2.js +84 -24
  204. package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +42 -2
  205. package/lib/tr-grid-util/es6/jet/MockRTK.js +55 -16
  206. package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +2 -2
  207. package/lib/tr-grid-util/es6/jet/mockDataAPI.js +99 -1
  208. package/lib/types/es6/Checkbox.d.ts +18 -16
  209. package/lib/types/es6/ColumnFormatting.d.ts +29 -27
  210. package/lib/types/es6/ColumnGrouping.d.ts +28 -14
  211. package/lib/types/es6/ColumnResizing.d.ts +2 -2
  212. package/lib/types/es6/ColumnStack.d.ts +15 -13
  213. package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +4 -2
  214. package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +0 -1
  215. package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +1 -1
  216. package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +1 -1
  217. package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +1 -5
  218. package/lib/types/es6/CompositeGrid/Plugin.d.ts +3 -1
  219. package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +2 -1
  220. package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +2 -1
  221. package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +1 -1
  222. package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +0 -1
  223. package/lib/types/es6/ConditionalColoring.d.ts +11 -2
  224. package/lib/types/es6/Core/data/ColumnStats.d.ts +3 -3
  225. package/lib/types/es6/Core/data/DataCache.d.ts +9 -9
  226. package/lib/types/es6/Core/data/DataTable.d.ts +28 -28
  227. package/lib/types/es6/Core/data/DataView.d.ts +62 -62
  228. package/lib/types/es6/Core/data/Segment.d.ts +4 -4
  229. package/lib/types/es6/Core/data/SegmentCollection.d.ts +7 -7
  230. package/lib/types/es6/Core/data/WrappedView.d.ts +62 -62
  231. package/lib/types/es6/Core/grid/Core.d.ts +95 -95
  232. package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +20 -20
  233. package/lib/types/es6/Core/grid/LayoutGrid.d.ts +2 -2
  234. package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +2 -2
  235. package/lib/types/es6/Core/grid/components/Cell.d.ts +6 -6
  236. package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +2 -2
  237. package/lib/types/es6/Core/grid/components/CellSpans.d.ts +2 -2
  238. package/lib/types/es6/Core/grid/components/Column.d.ts +2 -2
  239. package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +19 -19
  240. package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +9 -9
  241. package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +3 -3
  242. package/lib/types/es6/Core/grid/event/EventListeners.d.ts +5 -5
  243. package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +45 -44
  244. package/lib/types/es6/Core/grid/util/Conflator.d.ts +4 -4
  245. package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +3 -3
  246. package/lib/types/es6/Core/grid/util/PercentBar.d.ts +8 -8
  247. package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +8 -8
  248. package/lib/types/es6/Core/grid/util/RangeBar.d.ts +1 -1
  249. package/lib/types/es6/Core/grid/util/Reverter.d.ts +1 -1
  250. package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +13 -13
  251. package/lib/types/es6/Core/grid/util/SelectionList.d.ts +2 -2
  252. package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +9 -9
  253. package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +3 -3
  254. package/lib/types/es6/Core/grid/util/util.d.ts +6 -4
  255. package/lib/types/es6/HeatMap.d.ts +2 -1
  256. package/lib/types/es6/InCellEditing.d.ts +5 -2
  257. package/lib/types/es6/MenuEventAPI.d.ts +2 -2
  258. package/lib/types/es6/MenuItem.d.ts +2 -2
  259. package/lib/types/es6/PercentBar.d.ts +1 -1
  260. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +46 -42
  261. package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +6 -4
  262. package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +2 -2
  263. package/lib/types/es6/RealtimeGrid/Grid.d.ts +100 -92
  264. package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +5 -5
  265. package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +2 -2
  266. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +22 -22
  267. package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +3 -3
  268. package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +1 -1
  269. package/lib/types/es6/RowColoring.d.ts +0 -2
  270. package/lib/types/es6/RowDragging.d.ts +6 -0
  271. package/lib/types/es6/RowFiltering.d.ts +4 -3
  272. package/lib/types/es6/RowSegmenting.d.ts +30 -24
  273. package/lib/versions.json +26 -26
  274. package/package.json +2 -2
@@ -235,7 +235,7 @@ CellPainter.prototype.clearHeatMap = function() {
235
235
 
236
236
  /** @public */
237
237
  CellPainter.prototype.applyThemeColor = function() {
238
- var colors = ElfUtil.themeColors;
238
+ var colors = ElfUtil.getColors();
239
239
  var cond = this._conditions[0]; // Heatmap, color text condition must be the first
240
240
  if(cond) {
241
241
  if(this._coloringType === CellPainter.ColoringTypes.HEATMAP) { // Heatmap uses grid color to blend the result color
@@ -822,16 +822,13 @@ CellPainter.themeChanged = function() {};
822
822
  CellPainter.setThemeColors = function() {};
823
823
  /** @private
824
824
  * @function
825
- * @param {Object} colors
826
- * @return {Object} colors
827
825
  */
828
- CellPainter._onThemeChanged = function(colors) {
826
+ CellPainter._onThemeChanged = function() {
829
827
  // Apply newly changed theme to all the painters
830
828
  var painters = CellPainter._painters;
831
829
  for(var i = painters.length; --i >= 0;) {
832
830
  painters[i].applyThemeColor(); // Re-apply theme color
833
831
  }
834
- return colors;
835
832
  };
836
833
  /** Load theme colors and change colors for all instances of CellPainter
837
834
  * @public
@@ -840,7 +837,9 @@ CellPainter._onThemeChanged = function(colors) {
840
837
  */
841
838
  CellPainter.loadThemeColors = function() {
842
839
  if(!CellPainter.themeReady) {
843
- CellPainter.themeReady = ElfUtil.getThemeColors(CellPainter._onThemeChanged).then(CellPainter._onThemeChanged);
840
+ CellPainter.themeReady = ElfUtil.getThemeColors(CellPainter._onThemeChanged)
841
+ .then(CellPainter._onThemeChanged)
842
+ .catch(CellPainter._onThemeChanged);
844
843
  }
845
844
  return CellPainter.themeReady;
846
845
  };
@@ -851,8 +850,10 @@ CellPainter.loadThemeColors = function() {
851
850
  * @return {Promise<Object>}
852
851
  */
853
852
  CellPainter.reloadThemeColors = function () {
854
- CellPainter.themeReady = ElfUtil.themeReady = null;
855
- return CellPainter.loadThemeColors();
853
+ CellPainter.themeReady = ElfUtil.reloadThemeColors()
854
+ .then(CellPainter._onThemeChanged)
855
+ .catch(CellPainter._onThemeChanged);
856
+ return CellPainter.themeReady;
856
857
  };
857
858
 
858
859
  /** @public
@@ -2,7 +2,7 @@
2
2
 
3
3
  declare class Conflator {
4
4
 
5
- constructor(func?: (((...params: any[]) => any)|number), ms?: (number|((...params: any[]) => any)), thisObj?: any);
5
+ constructor(func?: (((...params: any[]) => any)|number)|null, ms?: (number|((...params: any[]) => any))|null, thisObj?: any);
6
6
 
7
7
  public reset(): any[]|null;
8
8
 
@@ -16,17 +16,17 @@ declare class Conflator {
16
16
 
17
17
  public getData(): any[];
18
18
 
19
- public setFunction(func: ((...params: any[]) => any), thisObj?: any): void;
19
+ public setFunction(func: ((...params: any[]) => any)|null, thisObj?: any): void;
20
20
 
21
21
  public setConflatingTime(ms: number): void;
22
22
 
23
23
  public getConflatingTime(): number;
24
24
 
25
- public disable(opt_disabled?: boolean): void;
25
+ public disable(opt_disabled?: boolean|null): void;
26
26
 
27
27
  public isEnabled(): boolean;
28
28
 
29
- public enable(opt_enabled?: boolean): void;
29
+ public enable(opt_enabled?: boolean|null): void;
30
30
 
31
31
  }
32
32
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  declare namespace CoralItems {
4
4
 
5
- function create(userItems: any[]): (any)[]|null;
5
+ function create(userItems: any[]|null): (any)[]|null;
6
6
 
7
7
  }
8
8
 
@@ -3,17 +3,17 @@ import ElfUtil from './ElfUtil.js';
3
3
 
4
4
  declare namespace DateTime {
5
5
 
6
- function setDateTimePattern(format?: string): void;
6
+ function setDateTimePattern(format?: string|null): void;
7
7
 
8
- function setLocale(lang?: string): void;
8
+ function setLocale(lang?: string|null): void;
9
9
 
10
- function format(dateTimeNumber: number|string|Date, dateTimeFormat?: string, timezone?: string): string;
10
+ function format(dateTimeNumber: number|string|Date|null, dateTimeFormat?: string|null, timezone?: string|null): string;
11
11
 
12
- function formatDateObject(date: Date, dateTimeFormat?: string): string;
12
+ function formatDateObject(date: Date|null, dateTimeFormat?: string|null): string;
13
13
 
14
- function isValidDate(dateObj: Date): boolean;
14
+ function isValidDate(dateObj: Date|null): boolean;
15
15
 
16
- function isInvalidDate(dateObj: Date): boolean;
16
+ function isInvalidDate(dateObj: Date|null): boolean;
17
17
 
18
18
  function fromDateNumber(dateNumber: number): Date;
19
19
 
@@ -21,13 +21,13 @@ declare namespace DateTime {
21
21
 
22
22
  function timeNumberToMs(dateNumber: number): number;
23
23
 
24
- function toDateObject(dateInput: string|number): any;
24
+ function toDateObject(dateInput: string|number|null): any;
25
25
 
26
- function toDateNumber(dateObj: Date): number;
26
+ function toDateNumber(dateObj: Date|null): number;
27
27
 
28
- function toTimeNumber(dateObj: Date): number;
28
+ function toTimeNumber(dateObj: Date|null): number;
29
29
 
30
- function toYYYYMMDD(dateObj: Date): string;
30
+ function toYYYYMMDD(dateObj: Date|null): string;
31
31
 
32
32
  }
33
33
 
@@ -2,12 +2,14 @@
2
2
 
3
3
  declare class Deferred {
4
4
 
5
- constructor(resolveHandler?: ((...params: any[]) => any), rejectHandler?: ((...params: any[]) => any), ctx?: any);
5
+ constructor(resolveHandler?: ((...params: any[]) => any)|null, rejectHandler?: ((...params: any[]) => any)|null, ctx?: any);
6
6
 
7
7
  public resolve(result?: any): void;
8
8
 
9
9
  public reject(result?: any): void;
10
10
 
11
+ public isFulfilled(): boolean;
12
+
11
13
  }
12
14
 
13
15
  export default Deferred;
@@ -54,7 +54,10 @@ Deferred.prototype._rejectHandler = null;
54
54
  * @private
55
55
  */
56
56
  Deferred.prototype._ctx = null;
57
-
57
+ /** @type {boolean}
58
+ * @private
59
+ */
60
+ Deferred.prototype._fulfilled = false;
58
61
 
59
62
  /** @public
60
63
  * @param {*=} result
@@ -86,10 +89,17 @@ Deferred.prototype.reject = function(result) {
86
89
  this._finally();
87
90
  }
88
91
  };
92
+ /** @public
93
+ * @return {boolean}
94
+ */
95
+ Deferred.prototype.isFulfilled = function() {
96
+ return this._fulfilled;
97
+ };
89
98
 
90
99
  /** @private */
91
100
  Deferred.prototype._finally = function() {
92
101
  // Release all references to avoid memory leak
102
+ this._fulfilled = true;
93
103
  this._ctx = this._resolveHandler = this._rejectHandler = null;
94
104
  this._resolve = this._reject = null;
95
105
  };
@@ -2,11 +2,11 @@
2
2
 
3
3
  declare class Delay {
4
4
 
5
- constructor(ms?: number, ctx?: any);
5
+ constructor(ms?: number|null, ctx?: any);
6
6
 
7
7
  public static readonly promise: Promise<any>;
8
8
 
9
- public static for(ms?: number, ctx?: any): Delay|null;
9
+ public static for(ms?: number|null, ctx?: any): Delay|null;
10
10
 
11
11
  public resolve(): void;
12
12
 
@@ -2,29 +2,29 @@
2
2
 
3
3
  declare namespace Dom {
4
4
 
5
- function create(tagName: string, className?: string): Element;
5
+ function create(tagName: string, className?: string|null): Element;
6
6
 
7
- function div(className?: string): Element;
7
+ function div(className?: string|null): Element;
8
8
 
9
- function text(textContent?: string, className?: string): Element;
9
+ function text(textContent?: string|null, className?: string|null): Element;
10
10
 
11
- function appendChild(parentElem: Element, children: Node|any[]): Element|null;
11
+ function appendChild(parentElem: Element|null, children: Node|any[]|null): Element|null;
12
12
 
13
- function buildTree(parentElem: Element, children: Node|any[]): Element|null;
13
+ function buildTree(parentElem: Element|null, children: Node|any[]|null): Element|null;
14
14
 
15
- function setContent(elem: Element, val: any): void;
15
+ function setContent(elem: Element|null, val: any): void;
16
16
 
17
- function preventDefault(e: Event): void;
17
+ function preventDefault(e: Event|null): void;
18
18
 
19
- function stopPropagation(e: Event): void;
19
+ function stopPropagation(e: Event|null): void;
20
20
 
21
21
  function getClientPosition(target: Element|Event|MouseEvent, retObj?: any): any;
22
22
 
23
23
  function getRelativePosition(A: Element|Event|MouseEvent, B: Element|Event|MouseEvent, retObj?: any): any;
24
24
 
25
- function closestElement(elem: Element|Node|undefined, classStr: string): Element|null;
25
+ function closestElement(elem: Element|Node|undefined|null, classStr: string): Element|null;
26
26
 
27
- function closestTagName(elem: Element|Node|undefined, tn: string): Element|null;
27
+ function closestTagName(elem: Element|Node|undefined|null, tn: string): Element|null;
28
28
 
29
29
  }
30
30
 
@@ -307,7 +307,7 @@ Dom.getRelativePosition = function(A, B, retObj) {
307
307
  retObj["y"] -= bp["y"];
308
308
  return /**@type {!Object} */(retObj);
309
309
  };
310
- /** Return closest ancestor element or the element itself with specified class string. Otherwise return null
310
+ /** The method returns closest ancestor element or the element itself with specified class string. Otherwise, it returns null
311
311
  * @public
312
312
  * @function
313
313
  * @param {Element|Node|undefined} elem
@@ -316,15 +316,17 @@ Dom.getRelativePosition = function(A, B, retObj) {
316
316
  */
317
317
  Dom.closestElement = function(elem, classStr) {
318
318
  var n = elem;
319
- while(n && n.classList) {
320
- if(n.classList.contains(classStr)) {
321
- return /** @type{Element} */(n);
319
+ while (n) {
320
+ if(n.classList) { // DocumentFragment does not have classList property
321
+ if (n.classList.contains(classStr)) {
322
+ return /** @type{Element} */(n);
323
+ }
322
324
  }
323
- n = n.parentNode;
325
+ n = n.parentNode || n.host; // ShadowRoot has host, but not parentNode
324
326
  }
325
327
  return null;
326
328
  };
327
- /** Return closest ancestor element or the element itself with the specified tagName. Otherwise return null
329
+ /** The method returns closest ancestor element or the element itself with the specified tagName. Otherwise, it returns null
328
330
  * @public
329
331
  * @function
330
332
  * @param {Element|Node|undefined} elem
@@ -333,11 +335,13 @@ Dom.closestElement = function(elem, classStr) {
333
335
  */
334
336
  Dom.closestTagName = function(elem, tn) {
335
337
  var n = elem;
336
- while(n && n.tagName) {
337
- if(n.tagName == tn) {
338
- return /** @type{Element} */(n);
338
+ while(n) {
339
+ if(n.tagName) {
340
+ if(n.tagName == tn) {
341
+ return /** @type{Element} */(n);
342
+ }
339
343
  }
340
- n = n.parentNode;
344
+ n = n.parentNode || n.host; // ShadowRoot has host, but not parentNode
341
345
  }
342
346
  return null;
343
347
  };
@@ -130,8 +130,11 @@ DragUI.prototype.onThemeLoaded = function(colors) {
130
130
  ".mouse-dragging .cell:hover", [ // for change mouse cursor when hover header while dragging
131
131
  "cursor: grabbing !important;"
132
132
  ],
133
- ":host .column .cell.drag-indicator", [
134
- "border: var(--grid-drag-indicator);" // defualt is "none"
133
+ ".tr-grid .column .cell.drag-indicator", [ // --grid-drag-indicator defualt is "none"
134
+ "border-top: var(--grid-drag-indicator) !important;",
135
+ "border-right: var(--grid-drag-indicator);",
136
+ "border-bottom: var(--grid-drag-indicator);",
137
+ "border-left: var(--grid-drag-indicator);"
135
138
  ],
136
139
  ".tr-dragging, .tr-dragging *", [
137
140
  "-webkit-touch-callout: none;",
@@ -2,9 +2,9 @@
2
2
 
3
3
  declare namespace ElementObserver {
4
4
 
5
- function addLanguageListener(element: Element): void;
5
+ function addLanguageListener(element: Element|null): void;
6
6
 
7
- function addAttributeListener(element: Element, listener: ((...params: any[]) => any), attributeName?: string): void;
7
+ function addAttributeListener(element: Element|null, listener: ((...params: any[]) => any)|null, attributeName?: string|null): void;
8
8
 
9
9
  }
10
10
 
@@ -7,15 +7,15 @@ declare class ElementWrapper extends EventDispatcher {
7
7
 
8
8
  public getElement(): Element|null;
9
9
 
10
- public setParent(parent: Node|ElementWrapper): void;
10
+ public setParent(parent: Node|ElementWrapper|null): void;
11
11
 
12
12
  public getBoundingClientRect(): any;
13
13
 
14
- public getMousePosition(e: Event, retObj?: any): any;
14
+ public getMousePosition(e: Event|null, retObj?: any): any;
15
15
 
16
- public addEventListener(type: string, listener: ((...params: any[]) => any)): void;
16
+ public addEventListener(type: string, listener: ((...params: any[]) => any)|null): void;
17
17
 
18
- public removeEventListener(type: string, listener: ((...params: any[]) => any)): void;
18
+ public removeEventListener(type: string, listener: ((...params: any[]) => any)|null): void;
19
19
 
20
20
  }
21
21
 
@@ -4,21 +4,21 @@ declare namespace ElfDate {
4
4
 
5
5
  function from(val: any): Date|null;
6
6
 
7
- function isValid(d: Date): boolean;
7
+ function isValid(d: Date|null): boolean;
8
8
 
9
9
  function prefixSingleDigit(n: number): string;
10
10
 
11
- function toYMD(d: string|Date): string;
11
+ function toYMD(d: string|Date|null): string;
12
12
 
13
- function setDate(edtp: Element, val: any): void;
13
+ function setDate(edtp: Element|null, val: any): void;
14
14
 
15
- function getDate(edtp: Element): Date|null;
15
+ function getDate(edtp: Element|null): Date|null;
16
16
 
17
17
  function compare(valA: any, valB: any): number;
18
18
 
19
19
  function equal(valA: any, valB: any): boolean;
20
20
 
21
- function extractDate(d: Date): (number)[]|null;
21
+ function extractDate(d: Date|null): (number)[]|null;
22
22
 
23
23
  }
24
24
 
@@ -9,6 +9,7 @@ var ElfDate = {};
9
9
  * @example
10
10
  * ElfDate.from(1000); // Thu Jan 01 1970 07:00:01 GMT+0700 (Indochina Time)
11
11
  * ElfDate.from("2000/12/2"); // Sat Dec 02 2000 00:00:00 GMT+0700 (Indochina Time)
12
+ * ElfDate.from("2000-12-02"); // Sat Dec 02 2000 07:00:00 GMT+0700 (Indochina Time)
12
13
  * ElfDate.from("2000-12-2"); // Sat Dec 02 2000 00:00:00 GMT+0700 (Indochina Time)
13
14
  * ElfDate.from([2000, 11, 2]);// Sat Dec 02 2000 07:00:00 GMT+0700 (Indochina Time)
14
15
  * ElfDate.from("2/12/2000"); // Sat Feb 12 2000 00:00:00 GMT+0700 (Indochina Time)
@@ -14,11 +14,15 @@ declare namespace ElfUtil {
14
14
 
15
15
  function hasTheme(themeName: string): boolean;
16
16
 
17
- function getThemeName(optElem?: Element): string;
17
+ function getThemeName(optElem?: Element|null): string;
18
18
 
19
- function isHaloTheme(themeName?: string): boolean;
19
+ function isThemeLoaded(): boolean;
20
20
 
21
- function injectIcons(configObj: any, optElem?: Element): void;
21
+ function getColors(): any;
22
+
23
+ function isHaloTheme(themeName?: string|null): boolean;
24
+
25
+ function injectIcons(configObj: any, optElem?: Element|null): void;
22
26
 
23
27
  function getIconList(): (string)[];
24
28
 
@@ -28,7 +32,9 @@ declare namespace ElfUtil {
28
32
 
29
33
  function getMovementColorProfile(): string;
30
34
 
31
- function getThemeColors(themeChangedCb?: ((...params: any[]) => any)): Promise<any>|null;
35
+ function reloadThemeColors(): Promise<any>|null;
36
+
37
+ function getThemeColors(themeChangedCb?: ((...params: any[]) => any)|null): Promise<any>|null;
32
38
 
33
39
  }
34
40
 
@@ -80,6 +80,10 @@ ElfUtil._observed = false;
80
80
  * @private
81
81
  */
82
82
  ElfUtil._pendingResolve = false;
83
+ /** @type {boolean}
84
+ * @private
85
+ */
86
+ ElfUtil._themeLoaded = false;
83
87
 
84
88
  /** @type {Object.<string, Object>}
85
89
  * @private
@@ -228,6 +232,32 @@ ElfUtil.getThemeName = function (optElem) {
228
232
  return ElfUtil._themeName;
229
233
  };
230
234
 
235
+ /** This method is using for unit test
236
+ * @public
237
+ * @ignore
238
+ * @function
239
+ * @param {string} themeName
240
+ */
241
+ ElfUtil.setThemeName = function (themeName) {
242
+ ElfUtil._themeName = themeName;
243
+ };
244
+
245
+ /** @public
246
+ * @function
247
+ * @return {boolean}
248
+ */
249
+ ElfUtil.isThemeLoaded = function () {
250
+ return ElfUtil._themeLoaded;
251
+ };
252
+
253
+ /** @public
254
+ * @function
255
+ * @return {Object}
256
+ */
257
+ ElfUtil.getColors = function() {
258
+ return ElfUtil.themeColors;
259
+ };
260
+
231
261
  /** Check the current ELF theme is Halo theme
232
262
  * @public
233
263
  * @function
@@ -378,8 +408,22 @@ ElfUtil._addThemeChangedCallback = function(cb) {
378
408
  }
379
409
  };
380
410
 
411
+ /** @public
412
+ * @return {Promise<Object>} A promise of object of theme colors
413
+ */
414
+ ElfUtil.reloadThemeColors = function() {
415
+ if (ElfUtil._deferred && ElfUtil._deferred.isFulfilled()) {
416
+ ElfUtil._profileName = "";
417
+ ElfUtil._themeLoaded = false;
418
+ ElfUtil.themeReady = null;
419
+ return ElfUtil.getThemeColors();
420
+ } else {
421
+ return ElfUtil.themeReady;
422
+ }
423
+ };
424
+
381
425
  /** Gets current theme colors from the document and returns a promise. <br>
382
- * WANRING: This method sets movement color profile to html tag automatically, if JET.Settings exists or RTK is available. <br>
426
+ * WANRING: This method sets movement color profile to html tag automatically, if JET.Settings exists or RTK.Settings is available. <br>
383
427
  * To re-request/reset theme colors, set ElfUtil.themeReady variable to null
384
428
  * @public
385
429
  * @param {Function=} themeChangedCb
@@ -411,8 +455,11 @@ ElfUtil.getThemeColors = function(themeChangedCb) {
411
455
  };
412
456
 
413
457
  var jet = window ? window.JET : null;
458
+ ElfUtil._themeLoaded = false;
414
459
  if(ElfUtil._rtk && ElfUtil._rtk.Settings) {
415
- ElfUtil._rtk.Settings.getAsync(options).then(ElfUtil._loadingProfileSuccess, ElfUtil._loadingProfileFailure);
460
+ ElfUtil._rtk.Settings.getAsync(options)
461
+ .then(ElfUtil._loadingProfileSuccess)
462
+ .catch(ElfUtil._loadingProfileFailure);
416
463
  } else if(jet && jet.Settings) {
417
464
  try {
418
465
  jet.Settings.read(ElfUtil._loadingProfileSuccess, options);
@@ -431,7 +478,7 @@ ElfUtil.getThemeColors = function(themeChangedCb) {
431
478
  * @param {string} profileName
432
479
  */
433
480
  var movementColorProfileChanged = function(profileName) {
434
- if(profileName && profileName !== ElfUtil._profileName) {
481
+ if(profileName !== ElfUtil._profileName) {
435
482
  ElfUtil._retrieveThemeColors(profileName);
436
483
 
437
484
  if(ElfUtil._pendingResolve) {
@@ -446,7 +493,7 @@ var movementColorProfileChanged = function(profileName) {
446
493
  }
447
494
  };
448
495
 
449
- /** Get user's color profile from JET or TRK and set it to html tag (document.documentElement)
496
+ /** Get user's color profile from JET or RTK and set it to html tag (document.documentElement)
450
497
  * @private
451
498
  * @param {string} profileName Returned from JET.Settings or RTK.Settings
452
499
  */
@@ -465,6 +512,7 @@ ElfUtil._loadingProfileSuccess = function(profileName) {
465
512
  /** @private
466
513
  */
467
514
  ElfUtil._loadingProfileFailure = function() {
515
+ ElfUtil._retrieveThemeColors();
468
516
  if(!ElfUtil._observed) {
469
517
  ElfUtil._observed = true;
470
518
  ElementObserver.addAttributeListener(document.documentElement, movementColorProfileChanged, "movement-color-profile");
@@ -489,6 +537,7 @@ ElfUtil._profileNameRetrieved = function() {
489
537
  * @param {string} profileName Movement color profile name
490
538
  */
491
539
  ElfUtil._retrieveThemeColors = function(profileName) {
540
+ ElfUtil._themeLoaded = true;
492
541
  ElfUtil._profileName = profileName;
493
542
 
494
543
  var colors = ElfUtil.themeColors = ElfUtil.getCssVariables({
@@ -4,23 +4,23 @@ declare class EventDispatcher {
4
4
 
5
5
  constructor();
6
6
 
7
- public addEventListener(type: string, handler: ((...params: any[]) => any)): void;
7
+ public addEventListener(type: string, handler: ((...params: any[]) => any)|null): void;
8
8
 
9
- public removeEventListener(type: string, handler: ((...params: any[]) => any)): void;
9
+ public removeEventListener(type: string, handler: ((...params: any[]) => any)|null): void;
10
10
 
11
11
  public removeAllEventListeners(): void;
12
12
 
13
13
  public hasListener(type: string): boolean;
14
14
 
15
- public getListener(type: string, idx?: number): ((...params: any[]) => any)|null;
15
+ public getListener(type: string, idx?: number|null): ((...params: any[]) => any)|null;
16
16
 
17
17
  public addListener(obj: any, type: string): void;
18
18
 
19
- public static preventDefault(e: Event): void;
19
+ public static preventDefault(e: Event|null): void;
20
20
 
21
21
  }
22
22
 
23
- declare function preventDefault(e: Event): void;
23
+ declare function preventDefault(e: Event|null): void;
24
24
 
25
25
  export default EventDispatcher;
26
26
  export {EventDispatcher, preventDefault};
@@ -9,7 +9,7 @@ declare class ExpanderIcon extends ElementWrapper {
9
9
 
10
10
  public static loadExpanderStyles(): void;
11
11
 
12
- public static injectExpanderStyles(elem: Element): void;
12
+ public static injectExpanderStyles(elem: Element|null): void;
13
13
 
14
14
  public expand(): void;
15
15
 
@@ -19,7 +19,7 @@ declare class ExpanderIcon extends ElementWrapper {
19
19
 
20
20
  public isCollapsed(): boolean;
21
21
 
22
- public toggle(collapsed?: boolean): void;
22
+ public toggle(collapsed?: boolean|null): void;
23
23
 
24
24
  }
25
25
 
@@ -94,7 +94,7 @@ ExpanderIcon.loadExpanderStyles = function() {
94
94
  if(themeName) {
95
95
  ExpanderIcon._onThemeLoaded(); // synchronous
96
96
  } else {
97
- ElfUtil.getThemeColors().then(ExpanderIcon._onThemeLoaded); // asynchronous
97
+ ElfUtil.getThemeColors().then(ExpanderIcon._onThemeLoaded).catch(ExpanderIcon._onThemeLoaded); // asynchronous
98
98
  }
99
99
  }
100
100
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  declare namespace Ext {
4
4
 
5
- function inherits(childCtor: ((...params: any[]) => any), parentCtor: ((...params: any[]) => any)): void;
5
+ function inherits(childCtor: ((...params: any[]) => any)|null, parentCtor: ((...params: any[]) => any)|null): void;
6
6
 
7
7
  }
8
8
 
@@ -4,22 +4,22 @@ import { DateTime } from "./DateTime.js";
4
4
  declare namespace FieldFormatter {
5
5
 
6
6
  type Options = {
7
- formatType?: string,
7
+ formatType?: string|null,
8
8
  type: string,
9
- field?: string,
10
- fieldDataType?: string,
11
- dateTimeFormat?: string,
12
- useUTCTime?: boolean,
13
- idnSource?: string
9
+ field?: string|null,
10
+ fieldDataType?: string|null,
11
+ dateTimeFormat?: string|null,
12
+ useUTCTime?: boolean|null,
13
+ idnSource?: string|null
14
14
  };
15
15
 
16
16
  }
17
17
 
18
18
  declare class FieldFormatter {
19
19
 
20
- constructor(options?: FieldFormatter.Options);
20
+ constructor(options?: FieldFormatter.Options|null);
21
21
 
22
- public init(options?: FieldFormatter.Options): void;
22
+ public init(options?: FieldFormatter.Options|null): void;
23
23
 
24
24
  public getOptions(options?: any): any;
25
25
 
@@ -29,13 +29,13 @@ declare class FieldFormatter {
29
29
 
30
30
  public setFormatType(type: string): void;
31
31
 
32
- public setField(field: string, combinedField?: string, formattedField?: string): void;
32
+ public setField(field: string, combinedField?: string|null, formattedField?: string|null): void;
33
33
 
34
- public setDateTimeMeta(format: string, gmtTimeZone?: boolean, inputSource?: string, lang?: string): void;
34
+ public setDateTimeMeta(format: string, gmtTimeZone?: boolean|null, inputSource?: string|null, lang?: string|null): void;
35
35
 
36
- public setDateFormatter(func: ((...params: any[]) => any)): void;
36
+ public setDateFormatter(func: ((...params: any[]) => any)|null): void;
37
37
 
38
- public setNumberFormatter(formatter: ((...params: any[]) => any)|NumberFormatter): void;
38
+ public setNumberFormatter(formatter: ((...params: any[]) => any)|NumberFormatter|null): void;
39
39
 
40
40
  public format(data: any): string;
41
41
 
@@ -8,7 +8,7 @@ import { DateTime } from "./DateTime.js";
8
8
  * @property {string=} field
9
9
  * @property {string=} fieldDataType Deprecated. Alias to formatType
10
10
  * @property {string=} dateTimeFormat
11
- * @property {boolean=} useUTCTime=false
11
+ * @property {boolean=} useUTCTime=true If disable, time will be shown in local time format
12
12
  * @property {string=} idnSource
13
13
  */
14
14