@refinitiv-ui/efx-grid 6.0.0-next.0

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 (837) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +61 -0
  3. package/lib/column-format-dialog/index.d.ts +1 -0
  4. package/lib/column-format-dialog/index.js +1 -0
  5. package/lib/column-format-dialog/lib/column-format-dialog.d.ts +64 -0
  6. package/lib/column-format-dialog/lib/column-format-dialog.js +2713 -0
  7. package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
  8. package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
  9. package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
  10. package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
  11. package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
  12. package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
  13. package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
  14. package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
  15. package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
  16. package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
  17. package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
  18. package/lib/column-format-dialog/lib/locale/translation.js +18 -0
  19. package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
  20. package/lib/column-format-dialog/lib/preview-table.js +995 -0
  21. package/lib/column-format-dialog/themes/base.less +429 -0
  22. package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
  23. package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
  24. package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
  25. package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
  26. package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
  27. package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
  28. package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
  29. package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
  30. package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
  31. package/lib/column-format-dialog/themes/elemental/index.less +5 -0
  32. package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
  33. package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
  34. package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
  35. package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
  36. package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
  37. package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
  38. package/lib/column-format-dialog/themes/elemental/light.js +16 -0
  39. package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
  40. package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
  41. package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
  42. package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
  43. package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
  44. package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
  45. package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
  46. package/lib/column-format-dialog/themes/halo/dark.js +16 -0
  47. package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
  48. package/lib/column-format-dialog/themes/halo/index.less +5 -0
  49. package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
  50. package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
  51. package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
  52. package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
  53. package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
  54. package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
  55. package/lib/column-format-dialog/themes/halo/light.js +16 -0
  56. package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
  57. package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
  58. package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
  59. package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
  60. package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
  61. package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
  62. package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
  63. package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
  64. package/lib/column-format-dialog/themes/luna/index.less +5 -0
  65. package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
  66. package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
  67. package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
  68. package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
  69. package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
  70. package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
  71. package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
  72. package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
  73. package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
  74. package/lib/column-format-dialog/themes/solar/index.less +5 -0
  75. package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
  76. package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
  77. package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
  78. package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
  79. package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
  80. package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
  81. package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
  82. package/lib/column-selection-dialog/index.d.ts +1 -0
  83. package/lib/column-selection-dialog/index.js +1 -0
  84. package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +41 -0
  85. package/lib/column-selection-dialog/lib/column-selection-dialog.js +1410 -0
  86. package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
  87. package/lib/column-selection-dialog/lib/locale/translation-de.js +19 -0
  88. package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
  89. package/lib/column-selection-dialog/lib/locale/translation-en.js +19 -0
  90. package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
  91. package/lib/column-selection-dialog/lib/locale/translation-ja.js +19 -0
  92. package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
  93. package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +19 -0
  94. package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
  95. package/lib/column-selection-dialog/lib/locale/translation-zh.js +19 -0
  96. package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
  97. package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
  98. package/lib/column-selection-dialog/themes/base.less +189 -0
  99. package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
  100. package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
  101. package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
  102. package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
  103. package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
  104. package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
  105. package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
  106. package/lib/column-selection-dialog/themes/elemental/dark.js +6 -0
  107. package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
  108. package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
  109. package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
  110. package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
  111. package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
  112. package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
  113. package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
  114. package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
  115. package/lib/column-selection-dialog/themes/elemental/light.js +6 -0
  116. package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +22 -0
  117. package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
  118. package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
  119. package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
  120. package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
  121. package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
  122. package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
  123. package/lib/column-selection-dialog/themes/halo/dark.js +6 -0
  124. package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
  125. package/lib/column-selection-dialog/themes/halo/index.less +6 -0
  126. package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
  127. package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
  128. package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
  129. package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
  130. package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
  131. package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
  132. package/lib/column-selection-dialog/themes/halo/light.js +6 -0
  133. package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
  134. package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
  135. package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
  136. package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
  137. package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
  138. package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
  139. package/lib/column-selection-dialog/themes/solar/charcoal.js +6 -0
  140. package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +1 -0
  141. package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
  142. package/lib/column-selection-dialog/themes/solar/index.less +6 -0
  143. package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
  144. package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
  145. package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
  146. package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
  147. package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
  148. package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
  149. package/lib/column-selection-dialog/themes/solar/pearl.js +6 -0
  150. package/lib/core/dist/core.css +1 -0
  151. package/lib/core/dist/core.js +28075 -0
  152. package/lib/core/dist/core.min.js +1 -0
  153. package/lib/core/es6/data/ColumnStats.d.ts +42 -0
  154. package/lib/core/es6/data/ColumnStats.js +428 -0
  155. package/lib/core/es6/data/DataCache.d.ts +81 -0
  156. package/lib/core/es6/data/DataCache.js +1317 -0
  157. package/lib/core/es6/data/DataTable.d.ts +125 -0
  158. package/lib/core/es6/data/DataTable.js +1655 -0
  159. package/lib/core/es6/data/DataView.d.ts +280 -0
  160. package/lib/core/es6/data/DataView.js +3654 -0
  161. package/lib/core/es6/data/Segment.d.ts +38 -0
  162. package/lib/core/es6/data/Segment.js +193 -0
  163. package/lib/core/es6/data/SegmentCollection.d.ts +58 -0
  164. package/lib/core/es6/data/SegmentCollection.js +431 -0
  165. package/lib/core/es6/grid/Core.d.ts +387 -0
  166. package/lib/core/es6/grid/Core.js +4939 -0
  167. package/lib/core/es6/grid/ILayoutGrid.d.ts +204 -0
  168. package/lib/core/es6/grid/ILayoutGrid.js +658 -0
  169. package/lib/core/es6/grid/LayoutGrid.d.ts +23 -0
  170. package/lib/core/es6/grid/LayoutGrid.js +2602 -0
  171. package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +18 -0
  172. package/lib/core/es6/grid/VirtualizedLayoutGrid.js +907 -0
  173. package/lib/core/es6/grid/components/Cell.d.ts +50 -0
  174. package/lib/core/es6/grid/components/Cell.js +740 -0
  175. package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +19 -0
  176. package/lib/core/es6/grid/components/CellFloatingPanel.js +123 -0
  177. package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
  178. package/lib/core/es6/grid/components/CellSpan.js +99 -0
  179. package/lib/core/es6/grid/components/CellSpans.d.ts +38 -0
  180. package/lib/core/es6/grid/components/CellSpans.js +341 -0
  181. package/lib/core/es6/grid/components/Column.d.ts +22 -0
  182. package/lib/core/es6/grid/components/Column.js +612 -0
  183. package/lib/core/es6/grid/components/ElementWrapper.d.ts +125 -0
  184. package/lib/core/es6/grid/components/ElementWrapper.js +714 -0
  185. package/lib/core/es6/grid/components/HScrollbar.d.ts +24 -0
  186. package/lib/core/es6/grid/components/HScrollbar.js +222 -0
  187. package/lib/core/es6/grid/components/Scrollbar.d.ts +61 -0
  188. package/lib/core/es6/grid/components/Scrollbar.js +1374 -0
  189. package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
  190. package/lib/core/es6/grid/components/StretchedCells.js +328 -0
  191. package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
  192. package/lib/core/es6/grid/components/VScrollbar.js +139 -0
  193. package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
  194. package/lib/core/es6/grid/components/VirtualItems.js +51 -0
  195. package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
  196. package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
  197. package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
  198. package/lib/core/es6/grid/event/EventListeners.js +163 -0
  199. package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
  200. package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +615 -0
  201. package/lib/core/es6/grid/plugins/Plugin.d.ts +28 -0
  202. package/lib/core/es6/grid/plugins/Plugin.js +272 -0
  203. package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +127 -0
  204. package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1707 -0
  205. package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
  206. package/lib/core/es6/grid/util/Conflator.js +191 -0
  207. package/lib/core/es6/grid/util/ElementFrameWork.d.ts +18 -0
  208. package/lib/core/es6/grid/util/ElementFrameWork.js +227 -0
  209. package/lib/core/es6/grid/util/HttpRequest.d.ts +53 -0
  210. package/lib/core/es6/grid/util/HttpRequest.js +371 -0
  211. package/lib/core/es6/grid/util/PercentBar.d.ts +43 -0
  212. package/lib/core/es6/grid/util/PercentBar.js +390 -0
  213. package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +41 -0
  214. package/lib/core/es6/grid/util/PercentBarRenderer.js +316 -0
  215. package/lib/core/es6/grid/util/RangeBar.d.ts +25 -0
  216. package/lib/core/es6/grid/util/RangeBar.js +255 -0
  217. package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
  218. package/lib/core/es6/grid/util/Reverter.js +79 -0
  219. package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
  220. package/lib/core/es6/grid/util/SectionSettings.js +674 -0
  221. package/lib/core/es6/grid/util/SelectionList.d.ts +50 -0
  222. package/lib/core/es6/grid/util/SelectionList.js +422 -0
  223. package/lib/core/es6/grid/util/TrackLayout.d.ts +84 -0
  224. package/lib/core/es6/grid/util/TrackLayout.js +850 -0
  225. package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
  226. package/lib/core/es6/grid/util/Virtualizer.js +340 -0
  227. package/lib/core/es6/grid/util/util.d.ts +18 -0
  228. package/lib/core/es6/grid/util/util.js +450 -0
  229. package/lib/core/es6/index.d.ts +84 -0
  230. package/lib/core/es6/index.js +132 -0
  231. package/lib/core/es6/tr-grid-theme.d.ts +5 -0
  232. package/lib/core/es6/tr-grid-theme.js +5 -0
  233. package/lib/filter-dialog/index.d.ts +1 -0
  234. package/lib/filter-dialog/index.js +1 -0
  235. package/lib/filter-dialog/lib/checkbox-list.d.ts +27 -0
  236. package/lib/filter-dialog/lib/checkbox-list.js +336 -0
  237. package/lib/filter-dialog/lib/filter-dialog.d.ts +53 -0
  238. package/lib/filter-dialog/lib/filter-dialog.js +860 -0
  239. package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
  240. package/lib/filter-dialog/lib/locale/translation-de.js +37 -0
  241. package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
  242. package/lib/filter-dialog/lib/locale/translation-en.js +37 -0
  243. package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
  244. package/lib/filter-dialog/lib/locale/translation-ja.js +37 -0
  245. package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
  246. package/lib/filter-dialog/lib/locale/translation-zh-hant.js +37 -0
  247. package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
  248. package/lib/filter-dialog/lib/locale/translation-zh.js +37 -0
  249. package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
  250. package/lib/filter-dialog/lib/locale/translation.js +18 -0
  251. package/lib/filter-dialog/themes/base-checkbox.less +37 -0
  252. package/lib/filter-dialog/themes/base.less +102 -0
  253. package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
  254. package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
  255. package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
  256. package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
  257. package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
  258. package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
  259. package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
  260. package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
  261. package/lib/filter-dialog/themes/elemental/dark.js +11 -0
  262. package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
  263. package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
  264. package/lib/filter-dialog/themes/elemental/index.less +6 -0
  265. package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
  266. package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
  267. package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
  268. package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
  269. package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
  270. package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
  271. package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
  272. package/lib/filter-dialog/themes/elemental/light.js +11 -0
  273. package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
  274. package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
  275. package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
  276. package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
  277. package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
  278. package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
  279. package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
  280. package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
  281. package/lib/filter-dialog/themes/halo/dark.js +11 -0
  282. package/lib/filter-dialog/themes/halo/defaults.less +3 -0
  283. package/lib/filter-dialog/themes/halo/filter-dialog.less +9 -0
  284. package/lib/filter-dialog/themes/halo/index.less +6 -0
  285. package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
  286. package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
  287. package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
  288. package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
  289. package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
  290. package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
  291. package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
  292. package/lib/filter-dialog/themes/halo/light.js +11 -0
  293. package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
  294. package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
  295. package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
  296. package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
  297. package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
  298. package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
  299. package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
  300. package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
  301. package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
  302. package/lib/filter-dialog/themes/solar/defaults.less +3 -0
  303. package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
  304. package/lib/filter-dialog/themes/solar/index.less +6 -0
  305. package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
  306. package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
  307. package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
  308. package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
  309. package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
  310. package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
  311. package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
  312. package/lib/filter-dialog/themes/solar/pearl.js +11 -0
  313. package/lib/formatters/es6/CoralButtonFormatter.d.ts +22 -0
  314. package/lib/formatters/es6/CoralButtonFormatter.js +40 -0
  315. package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
  316. package/lib/formatters/es6/CoralCheckboxFormatter.js +45 -0
  317. package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
  318. package/lib/formatters/es6/CoralComboBoxFormatter.js +102 -0
  319. package/lib/formatters/es6/CoralIconFormatter.d.ts +23 -0
  320. package/lib/formatters/es6/CoralIconFormatter.js +45 -0
  321. package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
  322. package/lib/formatters/es6/CoralInputFormatter.js +40 -0
  323. package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +22 -0
  324. package/lib/formatters/es6/CoralRadioButtonFormatter.js +80 -0
  325. package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
  326. package/lib/formatters/es6/CoralSelectFormatter.js +66 -0
  327. package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
  328. package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
  329. package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
  330. package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
  331. package/lib/formatters/es6/EFButtonFormatter.d.ts +22 -0
  332. package/lib/formatters/es6/EFButtonFormatter.js +40 -0
  333. package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
  334. package/lib/formatters/es6/EFCheckboxFormatter.js +45 -0
  335. package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
  336. package/lib/formatters/es6/EFComboBoxFormatter.js +68 -0
  337. package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
  338. package/lib/formatters/es6/EFDateTimePickerFormatter.js +55 -0
  339. package/lib/formatters/es6/EFIconFormatter.d.ts +23 -0
  340. package/lib/formatters/es6/EFIconFormatter.js +45 -0
  341. package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
  342. package/lib/formatters/es6/EFNumberFieldFormatter.js +40 -0
  343. package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +22 -0
  344. package/lib/formatters/es6/EFRadioButtonFormatter.js +80 -0
  345. package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
  346. package/lib/formatters/es6/EFSelectFormatter.js +66 -0
  347. package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
  348. package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
  349. package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
  350. package/lib/formatters/es6/EFToggleFormatter.js +47 -0
  351. package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
  352. package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
  353. package/lib/formatters/es6/FormatterBuilder.d.ts +22 -0
  354. package/lib/formatters/es6/FormatterBuilder.js +334 -0
  355. package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
  356. package/lib/formatters/es6/NumericInputFormatter.js +64 -0
  357. package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
  358. package/lib/formatters/es6/PercentBarFormatter.js +62 -0
  359. package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
  360. package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
  361. package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
  362. package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
  363. package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
  364. package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
  365. package/lib/formatters/es6/SimpleTickerFormatter.d.ts +25 -0
  366. package/lib/formatters/es6/SimpleTickerFormatter.js +65 -0
  367. package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
  368. package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
  369. package/lib/formatters/es6/TextFormatter.d.ts +12 -0
  370. package/lib/formatters/es6/TextFormatter.js +30 -0
  371. package/lib/formatters/es6/index.d.ts +43 -0
  372. package/lib/formatters/es6/index.js +67 -0
  373. package/lib/grid/index.d.ts +1 -0
  374. package/lib/grid/index.js +2 -0
  375. package/lib/grid/lib/efx-grid.d.ts +32 -0
  376. package/lib/grid/lib/efx-grid.js +469 -0
  377. package/lib/grid/themes/base.less +134 -0
  378. package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
  379. package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
  380. package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
  381. package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
  382. package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
  383. package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
  384. package/lib/grid/themes/halo/dark.js +3 -0
  385. package/lib/grid/themes/halo/efx-grid.less +92 -0
  386. package/lib/grid/themes/halo/index.less +3 -0
  387. package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
  388. package/lib/grid/themes/halo/light/efx-grid.js +4 -0
  389. package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
  390. package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
  391. package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
  392. package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
  393. package/lib/grid/themes/halo/light.js +3 -0
  394. package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
  395. package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
  396. package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
  397. package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
  398. package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
  399. package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
  400. package/lib/grid/themes/solar/charcoal.js +3 -0
  401. package/lib/grid/themes/solar/efx-grid.less +27 -0
  402. package/lib/grid/themes/solar/index.less +3 -0
  403. package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
  404. package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
  405. package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
  406. package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
  407. package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
  408. package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
  409. package/lib/grid/themes/solar/pearl.js +3 -0
  410. package/lib/index.d.ts +102 -0
  411. package/lib/index.js +102 -0
  412. package/lib/row-segmenting/es6/RowSegmenting.d.ts +83 -0
  413. package/lib/row-segmenting/es6/RowSegmenting.js +592 -0
  414. package/lib/row-segmenting/es6/index.d.ts +1 -0
  415. package/lib/row-segmenting/es6/index.js +1 -0
  416. package/lib/rt-grid/dist/rt-grid.js +44672 -0
  417. package/lib/rt-grid/dist/rt-grid.min.js +1 -0
  418. package/lib/rt-grid/es6/ColumnDefinition.d.ts +141 -0
  419. package/lib/rt-grid/es6/ColumnDefinition.js +1074 -0
  420. package/lib/rt-grid/es6/DataConnector.d.ts +37 -0
  421. package/lib/rt-grid/es6/DataConnector.js +266 -0
  422. package/lib/rt-grid/es6/FieldDefinition.d.ts +20 -0
  423. package/lib/rt-grid/es6/FieldDefinition.js +418 -0
  424. package/lib/rt-grid/es6/Grid.d.ts +261 -0
  425. package/lib/rt-grid/es6/Grid.js +2893 -0
  426. package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
  427. package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
  428. package/lib/rt-grid/es6/ReferenceCounter.d.ts +38 -0
  429. package/lib/rt-grid/es6/ReferenceCounter.js +230 -0
  430. package/lib/rt-grid/es6/RowDefinition.d.ts +120 -0
  431. package/lib/rt-grid/es6/RowDefinition.js +873 -0
  432. package/lib/rt-grid/es6/SnapshotFiller.d.ts +21 -0
  433. package/lib/rt-grid/es6/SnapshotFiller.js +252 -0
  434. package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
  435. package/lib/rt-grid/es6/StyleLoader.js +47 -0
  436. package/lib/rt-grid/es6/index.d.ts +8 -0
  437. package/lib/rt-grid/es6/index.js +43 -0
  438. package/lib/statistics-row/es6/StatisticsRow.d.ts +67 -0
  439. package/lib/statistics-row/es6/StatisticsRow.js +786 -0
  440. package/lib/statistics-row/es6/index.d.ts +1 -0
  441. package/lib/statistics-row/es6/index.js +1 -0
  442. package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +45 -0
  443. package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +431 -0
  444. package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
  445. package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
  446. package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +67 -0
  447. package/lib/tr-grid-cell-selection/es6/CellSelection.js +1777 -0
  448. package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
  449. package/lib/tr-grid-cell-selection/es6/index.js +1 -0
  450. package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +69 -0
  451. package/lib/tr-grid-checkbox/es6/Checkbox.js +1476 -0
  452. package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
  453. package/lib/tr-grid-checkbox/es6/index.js +1 -0
  454. package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
  455. package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +1000 -0
  456. package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
  457. package/lib/tr-grid-column-fitter/es6/index.js +1 -0
  458. package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +89 -0
  459. package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +615 -0
  460. package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
  461. package/lib/tr-grid-column-formatting/es6/index.js +1 -0
  462. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +60 -0
  463. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +913 -0
  464. package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
  465. package/lib/tr-grid-column-grouping/es6/index.js +1 -0
  466. package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
  467. package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1013 -0
  468. package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
  469. package/lib/tr-grid-column-resizing/es6/index.js +1 -0
  470. package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +70 -0
  471. package/lib/tr-grid-column-selection/es6/ColumnSelection.js +928 -0
  472. package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
  473. package/lib/tr-grid-column-selection/es6/index.js +1 -0
  474. package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +76 -0
  475. package/lib/tr-grid-column-stack/es6/ColumnStack.js +1227 -0
  476. package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
  477. package/lib/tr-grid-column-stack/es6/index.js +1 -0
  478. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +70 -0
  479. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +947 -0
  480. package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
  481. package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
  482. package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
  483. package/lib/tr-grid-content-wrap/es6/ContentWrap.js +478 -0
  484. package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
  485. package/lib/tr-grid-content-wrap/es6/index.js +1 -0
  486. package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
  487. package/lib/tr-grid-contextmenu/es6/ContextMenu.js +471 -0
  488. package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
  489. package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +133 -0
  490. package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +39 -0
  491. package/lib/tr-grid-contextmenu/es6/MenuItem.js +245 -0
  492. package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +29 -0
  493. package/lib/tr-grid-contextmenu/es6/PopupMenu.js +292 -0
  494. package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
  495. package/lib/tr-grid-contextmenu/es6/index.js +1 -0
  496. package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +57 -0
  497. package/lib/tr-grid-filter-input/es6/FilterInput.js +928 -0
  498. package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
  499. package/lib/tr-grid-filter-input/es6/index.js +1 -0
  500. package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +44 -0
  501. package/lib/tr-grid-heat-map/es6/HeatMap.js +394 -0
  502. package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
  503. package/lib/tr-grid-heat-map/es6/index.js +1 -0
  504. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +129 -0
  505. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +1977 -0
  506. package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
  507. package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
  508. package/lib/tr-grid-pagination/es6/Pagination.d.ts +57 -0
  509. package/lib/tr-grid-pagination/es6/Pagination.js +427 -0
  510. package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
  511. package/lib/tr-grid-pagination/es6/index.js +1 -0
  512. package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
  513. package/lib/tr-grid-percent-bar/es6/PercentBar.js +801 -0
  514. package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
  515. package/lib/tr-grid-percent-bar/es6/index.js +1 -0
  516. package/lib/tr-grid-printer/es6/CellWriter.d.ts +49 -0
  517. package/lib/tr-grid-printer/es6/CellWriter.js +226 -0
  518. package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +12 -0
  519. package/lib/tr-grid-printer/es6/ColumnWriter.js +21 -0
  520. package/lib/tr-grid-printer/es6/GridPrinter.d.ts +32 -0
  521. package/lib/tr-grid-printer/es6/GridPrinter.js +761 -0
  522. package/lib/tr-grid-printer/es6/PrintTrait.d.ts +38 -0
  523. package/lib/tr-grid-printer/es6/PrintTrait.js +481 -0
  524. package/lib/tr-grid-printer/es6/SectionWriter.d.ts +54 -0
  525. package/lib/tr-grid-printer/es6/SectionWriter.js +205 -0
  526. package/lib/tr-grid-printer/es6/index.d.ts +1 -0
  527. package/lib/tr-grid-printer/es6/index.js +1 -0
  528. package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +39 -0
  529. package/lib/tr-grid-range-bar/es6/RangeBar.js +353 -0
  530. package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
  531. package/lib/tr-grid-range-bar/es6/index.js +1 -0
  532. package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +53 -0
  533. package/lib/tr-grid-row-dragging/es6/RowDragging.js +794 -0
  534. package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
  535. package/lib/tr-grid-row-dragging/es6/index.js +1 -0
  536. package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +118 -0
  537. package/lib/tr-grid-row-filtering/es6/RowFiltering.js +1884 -0
  538. package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
  539. package/lib/tr-grid-row-filtering/es6/index.js +1 -0
  540. package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +109 -0
  541. package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1541 -0
  542. package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
  543. package/lib/tr-grid-row-grouping/es6/index.js +1 -0
  544. package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +74 -0
  545. package/lib/tr-grid-row-selection/es6/RowSelection.js +1202 -0
  546. package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
  547. package/lib/tr-grid-row-selection/es6/index.js +1 -0
  548. package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +60 -0
  549. package/lib/tr-grid-rowcoloring/es6/RowColoring.js +611 -0
  550. package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
  551. package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
  552. package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +77 -0
  553. package/lib/tr-grid-textformatting/es6/TextFormatting.js +574 -0
  554. package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
  555. package/lib/tr-grid-textformatting/es6/index.js +1 -0
  556. package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +29 -0
  557. package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
  558. package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
  559. package/lib/tr-grid-titlewrap/es6/index.js +1 -0
  560. package/lib/tr-grid-util/es6/CellPainter.d.ts +136 -0
  561. package/lib/tr-grid-util/es6/CellPainter.js +1128 -0
  562. package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
  563. package/lib/tr-grid-util/es6/Conflator.js +193 -0
  564. package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
  565. package/lib/tr-grid-util/es6/CoralItems.js +42 -0
  566. package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
  567. package/lib/tr-grid-util/es6/DateTime.js +508 -0
  568. package/lib/tr-grid-util/es6/Deferred.d.ts +14 -0
  569. package/lib/tr-grid-util/es6/Deferred.js +98 -0
  570. package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
  571. package/lib/tr-grid-util/es6/Delay.js +85 -0
  572. package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
  573. package/lib/tr-grid-util/es6/Dom.js +346 -0
  574. package/lib/tr-grid-util/es6/ElementObserver.d.ts +10 -0
  575. package/lib/tr-grid-util/es6/ElementObserver.js +101 -0
  576. package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
  577. package/lib/tr-grid-util/es6/ElementWrapper.js +83 -0
  578. package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
  579. package/lib/tr-grid-util/es6/ElfDate.js +163 -0
  580. package/lib/tr-grid-util/es6/ElfUtil.d.ts +33 -0
  581. package/lib/tr-grid-util/es6/ElfUtil.js +458 -0
  582. package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
  583. package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
  584. package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +27 -0
  585. package/lib/tr-grid-util/es6/ExpanderIcon.js +169 -0
  586. package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
  587. package/lib/tr-grid-util/es6/Ext.js +52 -0
  588. package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
  589. package/lib/tr-grid-util/es6/FieldFormatter.js +432 -0
  590. package/lib/tr-grid-util/es6/FilterBuilder.d.ts +48 -0
  591. package/lib/tr-grid-util/es6/FilterBuilder.js +521 -0
  592. package/lib/tr-grid-util/es6/FilterOperators.d.ts +41 -0
  593. package/lib/tr-grid-util/es6/FilterOperators.js +181 -0
  594. package/lib/tr-grid-util/es6/GridPlugin.d.ts +72 -0
  595. package/lib/tr-grid-util/es6/GridPlugin.js +747 -0
  596. package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
  597. package/lib/tr-grid-util/es6/Icon.js +61 -0
  598. package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
  599. package/lib/tr-grid-util/es6/MouseDownTrait.js +237 -0
  600. package/lib/tr-grid-util/es6/MultiTableManager.d.ts +32 -0
  601. package/lib/tr-grid-util/es6/MultiTableManager.js +506 -0
  602. package/lib/tr-grid-util/es6/NumberFormatter.d.ts +83 -0
  603. package/lib/tr-grid-util/es6/NumberFormatter.js +471 -0
  604. package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
  605. package/lib/tr-grid-util/es6/PercentBar.js +600 -0
  606. package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
  607. package/lib/tr-grid-util/es6/Perf.js +162 -0
  608. package/lib/tr-grid-util/es6/Popup.d.ts +84 -0
  609. package/lib/tr-grid-util/es6/Popup.js +818 -0
  610. package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
  611. package/lib/tr-grid-util/es6/RangeBar.js +259 -0
  612. package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
  613. package/lib/tr-grid-util/es6/RequestQueue.js +239 -0
  614. package/lib/tr-grid-util/es6/RowPainter.d.ts +23 -0
  615. package/lib/tr-grid-util/es6/RowPainter.js +188 -0
  616. package/lib/tr-grid-util/es6/SubTable.d.ts +74 -0
  617. package/lib/tr-grid-util/es6/SubTable.js +558 -0
  618. package/lib/tr-grid-util/es6/Table.d.ts +125 -0
  619. package/lib/tr-grid-util/es6/Table.js +790 -0
  620. package/lib/tr-grid-util/es6/TextHighlighter.d.ts +18 -0
  621. package/lib/tr-grid-util/es6/TextHighlighter.js +273 -0
  622. package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
  623. package/lib/tr-grid-util/es6/TickCodes.js +33 -0
  624. package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
  625. package/lib/tr-grid-util/es6/Timer.js +49 -0
  626. package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
  627. package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
  628. package/lib/tr-grid-util/es6/Util.d.ts +65 -0
  629. package/lib/tr-grid-util/es6/Util.js +528 -0
  630. package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
  631. package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
  632. package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
  633. package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
  634. package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
  635. package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
  636. package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
  637. package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
  638. package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
  639. package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
  640. package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
  641. package/lib/tr-grid-util/es6/formula/Formula.js +882 -0
  642. package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
  643. package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
  644. package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
  645. package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
  646. package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
  647. package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
  648. package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
  649. package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
  650. package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
  651. package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
  652. package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
  653. package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
  654. package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
  655. package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
  656. package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
  657. package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
  658. package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
  659. package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
  660. package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
  661. package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
  662. package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
  663. package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
  664. package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
  665. package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
  666. package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
  667. package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
  668. package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
  669. package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
  670. package/lib/tr-grid-util/es6/index.d.ts +63 -0
  671. package/lib/tr-grid-util/es6/index.js +99 -0
  672. package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
  673. package/lib/tr-grid-util/es6/jet/CollectionDict.js +141 -0
  674. package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +114 -0
  675. package/lib/tr-grid-util/es6/jet/DataGenerator.js +827 -0
  676. package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
  677. package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
  678. package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
  679. package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
  680. package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
  681. package/lib/tr-grid-util/es6/jet/MockJET.js +63 -0
  682. package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
  683. package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
  684. package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +72 -0
  685. package/lib/tr-grid-util/es6/jet/MockQuotes2.js +564 -0
  686. package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +8 -0
  687. package/lib/tr-grid-util/es6/jet/MockRTK.js +43 -0
  688. package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
  689. package/lib/tr-grid-util/es6/jet/index.js +18 -0
  690. package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
  691. package/lib/tr-grid-util/es6/jet/mockDataAPI.js +131 -0
  692. package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
  693. package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
  694. package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
  695. package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
  696. package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
  697. package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
  698. package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
  699. package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
  700. package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
  701. package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
  702. package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
  703. package/lib/tr-grid-util/es6/locale/translation.js +18 -0
  704. package/lib/types/es6/AutoTooltip.d.ts +45 -0
  705. package/lib/types/es6/CellSelection.d.ts +67 -0
  706. package/lib/types/es6/Checkbox.d.ts +69 -0
  707. package/lib/types/es6/ColumnFitter.d.ts +56 -0
  708. package/lib/types/es6/ColumnFormatting.d.ts +90 -0
  709. package/lib/types/es6/ColumnGrouping.d.ts +60 -0
  710. package/lib/types/es6/ColumnResizing.d.ts +68 -0
  711. package/lib/types/es6/ColumnSelection.d.ts +70 -0
  712. package/lib/types/es6/ColumnStack.d.ts +76 -0
  713. package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
  714. package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +38 -0
  715. package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
  716. package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +287 -0
  717. package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +22 -0
  718. package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +44 -0
  719. package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +30 -0
  720. package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +42 -0
  721. package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
  722. package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
  723. package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
  724. package/lib/types/es6/ConditionalColoring.d.ts +70 -0
  725. package/lib/types/es6/ContentWrap.d.ts +43 -0
  726. package/lib/types/es6/ContextMenu.d.ts +83 -0
  727. package/lib/types/es6/CoralButtonFormatter.d.ts +22 -0
  728. package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
  729. package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
  730. package/lib/types/es6/CoralIconFormatter.d.ts +23 -0
  731. package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
  732. package/lib/types/es6/CoralRadioButtonFormatter.d.ts +22 -0
  733. package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
  734. package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
  735. package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
  736. package/lib/types/es6/Core/data/DataCache.d.ts +81 -0
  737. package/lib/types/es6/Core/data/DataTable.d.ts +125 -0
  738. package/lib/types/es6/Core/data/DataView.d.ts +280 -0
  739. package/lib/types/es6/Core/data/Segment.d.ts +38 -0
  740. package/lib/types/es6/Core/data/SegmentCollection.d.ts +58 -0
  741. package/lib/types/es6/Core/grid/Core.d.ts +387 -0
  742. package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +204 -0
  743. package/lib/types/es6/Core/grid/LayoutGrid.d.ts +23 -0
  744. package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +18 -0
  745. package/lib/types/es6/Core/grid/components/Cell.d.ts +50 -0
  746. package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +19 -0
  747. package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
  748. package/lib/types/es6/Core/grid/components/CellSpans.d.ts +38 -0
  749. package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
  750. package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +125 -0
  751. package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +24 -0
  752. package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +61 -0
  753. package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
  754. package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
  755. package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
  756. package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
  757. package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
  758. package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
  759. package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +28 -0
  760. package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +127 -0
  761. package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
  762. package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +18 -0
  763. package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +53 -0
  764. package/lib/types/es6/Core/grid/util/PercentBar.d.ts +43 -0
  765. package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +41 -0
  766. package/lib/types/es6/Core/grid/util/RangeBar.d.ts +25 -0
  767. package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
  768. package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
  769. package/lib/types/es6/Core/grid/util/SelectionList.d.ts +50 -0
  770. package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +84 -0
  771. package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
  772. package/lib/types/es6/Core/grid/util/util.d.ts +18 -0
  773. package/lib/types/es6/Core/index.d.ts +84 -0
  774. package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
  775. package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
  776. package/lib/types/es6/EFButtonFormatter.d.ts +22 -0
  777. package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
  778. package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
  779. package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
  780. package/lib/types/es6/EFIconFormatter.d.ts +23 -0
  781. package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
  782. package/lib/types/es6/EFRadioButtonFormatter.d.ts +22 -0
  783. package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
  784. package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
  785. package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
  786. package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
  787. package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
  788. package/lib/types/es6/ExtensionOptions.d.ts +52 -0
  789. package/lib/types/es6/Extensions.d.ts +61 -0
  790. package/lib/types/es6/FilterInput.d.ts +57 -0
  791. package/lib/types/es6/FormatterBuilder.d.ts +22 -0
  792. package/lib/types/es6/GridFormatter.d.ts +63 -0
  793. package/lib/types/es6/HeatMap.d.ts +44 -0
  794. package/lib/types/es6/InCellEditing.d.ts +129 -0
  795. package/lib/types/es6/MenuEventAPI.d.ts +22 -0
  796. package/lib/types/es6/MenuItem.d.ts +39 -0
  797. package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
  798. package/lib/types/es6/Pagination.d.ts +57 -0
  799. package/lib/types/es6/PercentBar.d.ts +60 -0
  800. package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
  801. package/lib/types/es6/PopupMenu.d.ts +29 -0
  802. package/lib/types/es6/RangeBar.d.ts +39 -0
  803. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +143 -0
  804. package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +37 -0
  805. package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +20 -0
  806. package/lib/types/es6/RealtimeGrid/Grid.d.ts +263 -0
  807. package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
  808. package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +38 -0
  809. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +120 -0
  810. package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +21 -0
  811. package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
  812. package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
  813. package/lib/types/es6/RowColoring.d.ts +60 -0
  814. package/lib/types/es6/RowDragging.d.ts +53 -0
  815. package/lib/types/es6/RowFiltering.d.ts +118 -0
  816. package/lib/types/es6/RowGrouping.d.ts +109 -0
  817. package/lib/types/es6/RowSegmenting.d.ts +83 -0
  818. package/lib/types/es6/RowSelection.d.ts +74 -0
  819. package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
  820. package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
  821. package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
  822. package/lib/types/es6/SimpleTickerFormatter.d.ts +25 -0
  823. package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
  824. package/lib/types/es6/StatisticsRow.d.ts +67 -0
  825. package/lib/types/es6/TextFormatter.d.ts +12 -0
  826. package/lib/types/es6/TextFormatting.d.ts +77 -0
  827. package/lib/types/es6/TitleWrap.d.ts +29 -0
  828. package/lib/types/es6/Zoom.d.ts +51 -0
  829. package/lib/types/es6/index.d.ts +76 -0
  830. package/lib/types/index.d.ts +1 -0
  831. package/lib/versions.json +36 -0
  832. package/lib/window-exporter.js +13 -0
  833. package/lib/zoom/es6/Zoom.d.ts +51 -0
  834. package/lib/zoom/es6/Zoom.js +419 -0
  835. package/lib/zoom/es6/index.d.ts +1 -0
  836. package/lib/zoom/es6/index.js +1 -0
  837. package/package.json +42 -0
@@ -0,0 +1,995 @@
1
+ import CellPainter from "../../tr-grid-util/es6/CellPainter.js";
2
+ import { Ext } from "../../tr-grid-util/es6/Ext.js";
3
+ import ElfUtil from "../../tr-grid-util/es6/ElfUtil.js";
4
+ import { ElementWrapper } from "../../tr-grid-util/es6/ElementWrapper.js";
5
+ import { FieldFormatter, DATE_TIME } from "../../tr-grid-util/es6/FieldFormatter.js";
6
+ import NumberFormatter from "../../tr-grid-util/es6/NumberFormatter.js";
7
+ import { PercentBar } from "../../tr-grid-util/es6/PercentBar.js";
8
+ import { Table } from "../../tr-grid-util/es6/Table.js";
9
+
10
+ /** @const {number} */
11
+ const MAX_SAMPLE_DATA = 6645100000.00;
12
+ /** @const {number} */
13
+ const MIN_SAMPLE_DATA = -8421000000.00;
14
+ /** @const {Array.Array.Array.number} */
15
+ const SAMPLE_DATASET = [
16
+ [
17
+ [120470000.00, 2516900000.00],
18
+ [-4500900000.00, -3830100000.00]
19
+ ],
20
+ [
21
+ [4901100000.00, 5907300000.00],
22
+ [-2702200000.00, -1505300000.00]
23
+ ],
24
+ [
25
+ [MAX_SAMPLE_DATA, 120470000.00],
26
+ [-3830100000.00, -1505300000.00]
27
+ ],
28
+ [
29
+ [2516900000.00, 4901100000.00],
30
+ [MIN_SAMPLE_DATA, -4500900000.00]
31
+ ],
32
+ [
33
+ [5907300000.00, MAX_SAMPLE_DATA],
34
+ [-2702200000.00, MIN_SAMPLE_DATA]
35
+ ]
36
+ ];
37
+ /** @const {number} */
38
+ const ABSOLUTE_MAX_SAMPLE_DATA = Math.abs(MAX_SAMPLE_DATA) > Math.abs(MIN_SAMPLE_DATA) ? Math.abs(MAX_SAMPLE_DATA) : Math.abs(MIN_SAMPLE_DATA);
39
+
40
+ /** @typedef {Object} PreviewTable~Bar
41
+ * @description Configuration display style PercentBar
42
+ * @property {boolean=} isShowValue
43
+ * @property {boolean=} isUsedMovement
44
+ */
45
+
46
+ /** @typedef {Object} PreviewTable~ConfigDateTime
47
+ * @description Configuration Date time format
48
+ * @property {string=} formatDate
49
+ * @property {boolean} isUsedGMT
50
+ */
51
+
52
+ /** @typedef {Object} PreviewTable~ConfigDisplayColor
53
+ * @description Configuration display style Heatmap
54
+ * @property {string=} background string hex of background color
55
+ * @property {string=} textColor string hex of text color
56
+ */
57
+
58
+ /** @typedef {Object} PreviewTable~Conditional
59
+ * @description Configuration display style PercentBar
60
+ * @property {boolean=} isShowValue
61
+ * @property {boolean=} isUsedMovement
62
+ * @property {Function} conditionSequence
63
+ * @property {Colors} colors
64
+ *
65
+ */
66
+
67
+
68
+ /** @typedef {Object} PreviewTable~ConfigDisplayStyle
69
+ * @description Configuration display style
70
+ * @property {string} mode
71
+ * @property {string=} alignment
72
+ * @property {Bar=} bar
73
+ * @property {Heatmap=} heatmap
74
+ * @property {Conditional} conditionalColor
75
+ */
76
+
77
+
78
+ /** @typedef {Object} PreviewTable~ConfigUpdateStyleValue
79
+ * @description Configuration display style when data was updated
80
+ * @property {boolean=} isTextChangedStyle
81
+ * @property {boolean=} isCellChangedStyle
82
+ * @property {string=} colors hex color
83
+ * @property {boolean=} isBackgroundBlink
84
+ */
85
+
86
+ /** @typedef {Object} PreviewTable~ConfigValueFormat
87
+ * @description Configuration value format
88
+ * @property {string} mode
89
+ * @property {number=} decimalPlaces
90
+ * @property {boolean=} isUsedSeparator
91
+ * @property {boolean=} isShowPlusSignh
92
+ * @property {string=} scaled
93
+ * @property {boolean=} isPercentMultiply100
94
+ */
95
+
96
+ /** @typedef {Object} PreviewTable~DisplayStyleTapGeneralMode
97
+ * @description Configuration value general mode
98
+ * @property {string=} aligment
99
+ */
100
+
101
+ /** @typedef {Object} PreviewTable~DisplayStyleTapBarMode
102
+ * @description Configuration value bar mode
103
+ * @property {boolean=} showValues
104
+ * @property {boolean=} useMovementColor
105
+ * @property {string=} alignment
106
+ */
107
+
108
+ /** @typedef {Object} PreviewTable~DisplayStyleTapHeatMapMode
109
+ * @description Configuration value bar mode
110
+ * @property {string=} mode
111
+ * @property {number=} midPoint
112
+ * @property {string=} alignment
113
+ */
114
+
115
+ /** @typedef {Object} PreviewTable~DisplayStyleTap
116
+ * @description Configuration value display tab
117
+ * @property {string=} mode
118
+ * @property {DisplayStyleTapGeneralMode=} general
119
+ * @property {DisplayStyleTapBarMode=} bar
120
+ * @property {DisplayStyleTapHeatMapMode=} heatmap
121
+ */
122
+
123
+ /** @typedef {Object} PreviewTable~FormatTab
124
+ * @description Configuration value format tab
125
+ * @property {string=} formatType
126
+ * @property {string=} decimalPlaces
127
+ * @property {boolean=} separator
128
+ * @property {boolean=} plusSign
129
+ * @property {string=} scalingUnit
130
+ * @property {boolean=} multiplyBy100
131
+ */
132
+
133
+ /** @typedef {Object} PreviewTable~Heatmap
134
+ * @description Configuration display style Heatmap
135
+ * @property {string=} midPoint
136
+ * @property {string=} applied
137
+ */
138
+
139
+ /** @typedef {Object} PreviewTable~Colors
140
+ * @description Colors functions
141
+ * @property {string} color color of text
142
+ * @property {string} background color of background
143
+ */
144
+
145
+ /** @type {PreviewTable}
146
+ * @constructor
147
+ * @param {Element} elem
148
+ * @extends {ElementWrapper}
149
+ */
150
+ var PreviewTable = function (elem) {
151
+ this._onThemeLoaded = this._onThemeLoaded.bind(this);
152
+ this._onIntervalUpdate = this._onIntervalUpdate.bind(this);
153
+ this._formatSampleValue = this._formatSampleValue.bind(this);
154
+
155
+ this._topNode = elem || document.createElement("div");
156
+ this._table = new Table(elem, {
157
+ colCount: 1,
158
+ rowCount: 2
159
+ });
160
+ this._numberFormatter = new NumberFormatter();
161
+ this._dateFormatter = new FieldFormatter({
162
+ formatType: DATE_TIME
163
+ });
164
+ this._sampleSetIndex = (++this._sampleSetIndex) % SAMPLE_DATASET.length;
165
+ this._configValueFormat = {
166
+ decimalPlaces: 2,
167
+ mode: "general"
168
+ };
169
+ this._configDateTime = {};
170
+ this._configDisplayStyle = {};
171
+ this._configDisplayColor = {};
172
+ this._configUpdateStyleValue = {};
173
+ this._configDisplayStyle.mode = "general";
174
+ this._configDisplayStyle.alignment = "left";
175
+
176
+ this._numberFormatter = new NumberFormatter();
177
+
178
+ ElfUtil.getThemeColors().then(this._onThemeLoaded);
179
+ setInterval(this._onIntervalUpdate, 1500);
180
+
181
+ this._formatSampleValue();
182
+ };
183
+ Ext.inherits(PreviewTable, ElementWrapper);
184
+
185
+ /** @type {ConfigDateTime}
186
+ * @private
187
+ */
188
+ PreviewTable.prototype._configDateTime = null;
189
+
190
+ /** @type {ConfigDisplayColor}
191
+ * @private
192
+ */
193
+ PreviewTable.prototype._configDisplayColor = null;
194
+
195
+ /** @type {ConfigDisplayStyle}
196
+ * @private
197
+ */
198
+ PreviewTable.prototype._configDisplayStyle = null;
199
+
200
+ /** @type {ConfigUpdateStyleValue}
201
+ * @private
202
+ */
203
+ PreviewTable.prototype._configUpdateStyleValue = null;
204
+
205
+ /** @type {ConfigValueFormat}
206
+ * @private
207
+ */
208
+ PreviewTable.prototype._configValueFormat = null;
209
+
210
+ /** @type {DateFormatter}
211
+ * @private
212
+ */
213
+ PreviewTable.prototype._dateFormatter = null;
214
+
215
+ /** @type {NumberFormatter}
216
+ * @private
217
+ */
218
+ PreviewTable.prototype._numberFormatter = null;
219
+
220
+ /** @type {number}
221
+ * @private
222
+ */
223
+ PreviewTable.prototype._sampleSetIndex = 0;
224
+
225
+ /** @type {Element}
226
+ * @private
227
+ */
228
+ PreviewTable.prototype._table = null;
229
+
230
+ /** @public
231
+ * @returns {Object} For load structure format
232
+ */
233
+ PreviewTable.prototype.getStructureFormat = function () {
234
+ var output = {
235
+ valueFormatTab: this._getValueFormatTab(),
236
+ displayStyleTab: this._getValueDisplayStyle(),
237
+ colorTextTab: this._getValueUpdateChanged()
238
+ };
239
+
240
+ // If not choose update , value should not have this property
241
+ if(!output.colorTextTab) {
242
+ delete output.colorTextTab;
243
+ }
244
+
245
+ return output;
246
+ };
247
+
248
+ /** @public
249
+ * @description load display format data from external to previewTable
250
+ * @param {Object} config
251
+ */
252
+ PreviewTable.prototype.loadDisplayData = function (config) {
253
+ this._setLoadValueFormat(config.valueFormatTab);
254
+ this._setLoadDisplayStyle(config.displayStyleTab);
255
+ this._setLoadUpdateStyle(config.colorTextTab);
256
+
257
+ };
258
+
259
+ /** @public
260
+ * @param {string} formatDate
261
+ */
262
+ PreviewTable.prototype.setDateFormatString = function (formatDate) {
263
+ this._configDateTime.formatDate = formatDate ? formatDate : "D/M/YY";
264
+ this._formatSampleValue();
265
+ };
266
+
267
+ /** @public
268
+ * @param {boolean=} isUsedGMT
269
+ */
270
+ PreviewTable.prototype.setDateFormatUseGMT = function (isUsedGMT) {
271
+ this._configDateTime.isUsedGMT = isUsedGMT ? true : false; // Check if receive undefined assign to false
272
+ this._formatSampleValue();
273
+ };
274
+
275
+ /** @public
276
+ * @param {string} language
277
+ */
278
+ PreviewTable.prototype.setDateFormatLanguage = function (language) {
279
+ this._configDateTime.language = language ? "en" : "th";
280
+ this._formatSampleValue();
281
+ };
282
+
283
+
284
+ /** @public
285
+ * @param {string} alignment
286
+ */
287
+ PreviewTable.prototype.setDisplayStyleAlignment = function (alignment) {
288
+ this._configDisplayStyle.alignment = alignment;
289
+ this._formatSampleValue();
290
+ };
291
+
292
+ /** @public
293
+ * @param {string} mode
294
+ */
295
+ PreviewTable.prototype.setDisplayStyleMode = function (mode) {
296
+ if (!this._configDisplayStyle) this._configDisplayStyle = {};
297
+ this._configDisplayStyle.mode = mode;
298
+ if (mode !== "heatmap") {
299
+ this._table.setColumnCount(1);
300
+ } else {
301
+ this.setDisplayStyleHeatmap();
302
+ }
303
+ this._formatSampleValue();
304
+ };
305
+
306
+ /** @public
307
+ * @param {string} applied
308
+ * @param {string} midPoint
309
+ */
310
+ PreviewTable.prototype.setDisplayStyleHeatmap = function (applied, midPoint) {
311
+ var midPointNumber = Number(midPoint);
312
+
313
+ if(isNaN(midPointNumber) || typeof midPointNumber !== "number") {
314
+ midPointNumber = 0;
315
+ }
316
+
317
+ this._configDisplayStyle.heatmap = {};
318
+ this._table.setColumnCount(2);
319
+ this._configDisplayStyle.heatmap.applied = applied === "text" ? "text" : "cell"; // When data invalid set cell by defualt
320
+ this._configDisplayStyle.heatmap.midPoint = midPointNumber ? midPointNumber : 0;
321
+ this._formatSampleValue();
322
+ };
323
+
324
+ /** @public
325
+ * @param {boolean} isShowValue
326
+ */
327
+ PreviewTable.prototype.setDisplayStylePercentBarShowValue = function (isShowValue) {
328
+ if (!this._configDisplayStyle.bar) {
329
+ this._configDisplayStyle.bar = {};
330
+ }
331
+ this._configDisplayStyle.bar.isShowValue = isShowValue;
332
+ this._formatSampleValue();
333
+ };
334
+
335
+ /** @public
336
+ * @param {boolean} isUsedMovement
337
+ */
338
+ PreviewTable.prototype.setDisplayStylePercentBarIsUsedMovement = function (isUsedMovement) {
339
+ if (!this._configDisplayStyle.bar) {
340
+ this._configDisplayStyle.bar = {};
341
+ }
342
+ this._configDisplayStyle.bar.isUsedMovement = isUsedMovement;
343
+ this._formatSampleValue();
344
+ };
345
+
346
+ /** @public
347
+ * @param {PreviewTable~Conditional} condition - condition function
348
+ */
349
+ PreviewTable.prototype.setDisplayStyleConditional = function (condition) {
350
+ var isEmpty = true;
351
+
352
+ // Loop for check empty object
353
+ for (var key in condition) {
354
+ if (Object.hasOwnProperty.call(condition, key)) {
355
+ isEmpty = false;
356
+ }
357
+ }
358
+ if(!isEmpty) {
359
+ this._configDisplayStyle.conditionFunction = condition;
360
+ this._formatSampleValue();
361
+ } else {
362
+ // Set conditional false when object empty
363
+ this._configDisplayStyle.conditionFunction = false;
364
+ this._formatSampleValue();
365
+ }
366
+
367
+ };
368
+
369
+
370
+ /** @public
371
+ * @param {string} type
372
+ */
373
+ PreviewTable.prototype.setFormatType = function (type) {
374
+ this._configValueFormat.mode = type;
375
+ this._formatSampleValue();
376
+ };
377
+
378
+ /** @public
379
+ * @param {boolean=} isCellChangedStyle
380
+ */
381
+ PreviewTable.prototype.setUpdateStyleValueCell = function (isCellChangedStyle) {
382
+ this._configUpdateStyleValue.isCellChangedStyle = isCellChangedStyle;
383
+ this._formatSampleValue();
384
+ };
385
+
386
+ /** @public
387
+ * @param {boolean=} isTextChangedStyle
388
+ */
389
+ PreviewTable.prototype.setUpdateStyleValueText = function (isTextChangedStyle) {
390
+ this._configUpdateStyleValue.isTextChangedStyle = isTextChangedStyle;
391
+ this._formatSampleValue();
392
+ };
393
+
394
+ /** @public
395
+ * @param {boolean=} isBackgroundBlink
396
+ */
397
+ PreviewTable.prototype.setUpdateStyleValueCellBlinking = function (isBackgroundBlink) {
398
+ this._configUpdateStyleValue.isBackgroundBlink = isBackgroundBlink;
399
+ this._formatSampleValue();
400
+ };
401
+
402
+ /** @public
403
+ * @param {number} decimalPlaces
404
+ */
405
+ PreviewTable.prototype.setValueFormatDecimalPlaces = function (decimalPlaces) {
406
+ var decimalNumber = Number(decimalPlaces);
407
+
408
+ // Check invalid value assign to defualt value
409
+ if(typeof decimalNumber !== "number" || isNaN(decimalNumber) || decimalNumber < 0 || decimalNumber > 9) {
410
+ decimalNumber = 2;
411
+ }
412
+
413
+ this._configValueFormat.decimalPlaces = decimalNumber;
414
+ this._formatSampleValue();
415
+ };
416
+
417
+ /** @public
418
+ *
419
+ */
420
+ PreviewTable.prototype.setValueFormatGeneral = function () {
421
+ this._configValueFormat.decimalPlaces = 2;
422
+ this._formatSampleValue();
423
+ };
424
+
425
+ /** @public
426
+ * @param {boolean} isPercentMultiply100
427
+ */
428
+ PreviewTable.prototype.setValueFormatShowPercentSignWithMultiply100 = function (isPercentMultiply100) {
429
+ this._configValueFormat.isPercentMultiply100 = isPercentMultiply100;
430
+ this._formatSampleValue();
431
+ };
432
+
433
+ /** @public
434
+ * @param {boolean} scaled
435
+ */
436
+ PreviewTable.prototype.setValueFormatScaled = function (scaled) {
437
+ this._configValueFormat.scaled = scaled === "b" ? "b" : "m"; // Set defualt value when data invalid
438
+ this._formatSampleValue();
439
+ };
440
+
441
+ /** @public
442
+ * @param {boolean} isShowPlusSign
443
+ */
444
+ PreviewTable.prototype.setValueFormatShowPlusSign = function (isShowPlusSign) {
445
+ this._configValueFormat.isShowPlusSign = isShowPlusSign ? true : false; // Question sign for check null or undefined set to false
446
+ this._formatSampleValue();
447
+ };
448
+
449
+ /** @public
450
+ * @param {boolean} isUsedSeparator
451
+ */
452
+ PreviewTable.prototype.setValueFormatShowSeparatorSign = function (isUsedSeparator) {
453
+ this._configValueFormat.isUsedSeparator = isUsedSeparator ? true : false; // Question sign for check null or undefined set to false
454
+ this._formatSampleValue();
455
+ };
456
+
457
+ /** @private
458
+ * @description load value format
459
+ * @param {Object} valueFormatTab
460
+ */
461
+ PreviewTable.prototype._setLoadValueFormat = function (valueFormatTab) {
462
+ this._configValueFormat = {};
463
+ this._configValueFormat.mode = valueFormatTab.formatType;
464
+
465
+ this._configValueFormat.isUsedSeparator = valueFormatTab.separator ? valueFormatTab.separator : false;
466
+ this._configValueFormat.isShowPlusSign = valueFormatTab.plusSign ? valueFormatTab.plusSign : false;
467
+ this._configValueFormat.decimalPlaces = valueFormatTab.decimalPlaces ? valueFormatTab.decimalPlaces : 2;
468
+ switch (this._configValueFormat.mode) {
469
+ case "scaled":
470
+ this._configValueFormat.scaled = valueFormatTab.scalingUnit;
471
+ break;
472
+ case "percent":
473
+ this._configValueFormat.isPercentMultiply100 = valueFormatTab.multiplyBy100;
474
+ break;
475
+ case DATE_TIME:
476
+ var displayStyleDateFormat = valueFormatTab.dateTimeFormat ? valueFormatTab.dateTimeFormat : "M/D/YY";
477
+ var isUsedUTCTime = valueFormatTab.useUTCTime ? true : false;
478
+ this.setDateFormatString(displayStyleDateFormat);
479
+ this.setDateFormatUseGMT(isUsedUTCTime);
480
+ break;
481
+ default:
482
+ break;
483
+ }
484
+
485
+ };
486
+
487
+ /** @private
488
+ * @description load value format
489
+ * @param {Object} displayStyleTab
490
+ */
491
+ PreviewTable.prototype._setLoadDisplayStyle = function (displayStyleTab) {
492
+ this._configDisplayStyle = {};
493
+ this.setDisplayStyleMode(displayStyleTab.mode);
494
+ var alignment = "left";
495
+ switch (displayStyleTab.mode) {
496
+ case "general":
497
+ alignment = displayStyleTab.general.alignment;
498
+ break;
499
+ case "bar":
500
+ this.setDisplayStylePercentBarIsUsedMovement(displayStyleTab.bar.useMovementColor);
501
+ this.setDisplayStylePercentBarShowValue(displayStyleTab.bar.showValues);
502
+ alignment = displayStyleTab.bar.alignment;
503
+ break;
504
+ case "heatmap":
505
+ this.setDisplayStyleHeatmap(displayStyleTab.heatmap.mode, + displayStyleTab.heatmap.midPoint);
506
+ alignment = displayStyleTab.heatmap.alignment;
507
+ break;
508
+ case "conditionalColor":
509
+ this.setDisplayStyleConditional(displayStyleTab.conditionalColor.conditions);
510
+ alignment = displayStyleTab.conditionalColor.alignment;
511
+ break;
512
+ default:
513
+ break;
514
+ }
515
+ this._configDisplayStyle.alignment = alignment;
516
+ this.setDisplayStyleAlignment(alignment);
517
+
518
+ };
519
+
520
+ /** @private
521
+ * @description load value update style
522
+ * @param {Object} colorTextTab
523
+ */
524
+ PreviewTable.prototype._setLoadUpdateStyle = function (colorTextTab) {
525
+ this._configUpdateStyleValue = {};
526
+ if (!colorTextTab) return;
527
+ if (colorTextTab.blinking) {
528
+ this.setUpdateStyleValueCell(true);
529
+ this.setUpdateStyleValueCellBlinking(colorTextTab.highlight.mode === "cell" ? true : false);
530
+ } else {
531
+ this.setUpdateStyleValueCell(false);
532
+ }
533
+
534
+
535
+ if (colorTextTab.colorText) {
536
+ this.setUpdateStyleValueText(true);
537
+ } else {
538
+ this.setUpdateStyleValueText(false);
539
+ }
540
+ };
541
+
542
+ /** @private
543
+ * @description for assign optional data to false when user not send
544
+ * @return {NumberFormatter} config number of formatter
545
+ */
546
+ PreviewTable.prototype._checkNumberFormatter = function () {
547
+ var numberFormatter = {};
548
+
549
+ if (!this._configValueFormat) {
550
+ this._configValueFormat = {};
551
+ }
552
+
553
+ if (!this._configValueFormat.isUsedSeparator) {
554
+ this._configValueFormat.isUsedSeparator = false;
555
+ }
556
+
557
+ if (!this._configValueFormat.isShowPlusSign) {
558
+ this._configValueFormat.isShowPlusSign = false;
559
+ }
560
+
561
+ numberFormatter = {
562
+ separator: this._configValueFormat.isUsedSeparator,
563
+ decimalPlaces: + this._configValueFormat.decimalPlaces,
564
+ plusSign: this._configValueFormat.isShowPlusSign
565
+ };
566
+
567
+ return numberFormatter;
568
+ };
569
+
570
+ /** @private
571
+ * @param {boolean=} blinking blinking when value change increase or decrease
572
+ */
573
+ PreviewTable.prototype._formatSampleValue = function (blinking) {
574
+ var styleObjs = this._getSampleStyleObjects(blinking);
575
+ var rows = this._table.getAllRows();
576
+ var barRendering = this._configDisplayStyle && this._configDisplayStyle.mode === "bar";
577
+ var curIndex = this._sampleSetIndex;
578
+ var curDataset = SAMPLE_DATASET[curIndex];
579
+
580
+ for (var r = 0; r < rows.length; r++) {
581
+ var row = rows[r];
582
+ for (var c = row.cells.length; --c >= 0;) {
583
+ var cell = row.cells[c];
584
+ cell.innerHTML = ""; // TODO: Not good for performance
585
+ var value = curDataset[r][c];
586
+ var formattedValue = this._updateValueFormatExample(value);
587
+ if (!this._configDisplayStyle.bar) {
588
+ this._configDisplayStyle.bar = {};
589
+ }
590
+ if (barRendering) {
591
+ this._renderBar(
592
+ cell,
593
+ value, formattedValue,
594
+ this._configDisplayStyle.bar.isShowValue,
595
+ this._configDisplayStyle.bar.isUsedMovement
596
+ );
597
+ } else {
598
+ cell.textContent = formattedValue;
599
+ }
600
+
601
+ var obj = styleObjs[r][c];
602
+ for (var prop in obj) {
603
+ cell.style[prop] = obj[prop];
604
+ }
605
+ }
606
+ }
607
+ };
608
+
609
+ /** @private
610
+ * @return {PreviewTable~DisplayStyleTap} Format data from dialog module
611
+ */
612
+ PreviewTable.prototype._getValueDisplayStyle = function () {
613
+ var dataReturn;
614
+ if (this._configDisplayStyle.mode === "general") {
615
+ dataReturn = {
616
+ mode: "general",
617
+ general: {
618
+ alignment: this._configDisplayStyle.alignment
619
+ }
620
+ };
621
+ } else if (this._configDisplayStyle.mode === "bar") {
622
+ if (!this._configDisplayStyle.bar) {
623
+ this._configDisplayStyle.bar = {};
624
+ }
625
+ dataReturn = {
626
+ "mode": "bar",
627
+ "bar": {
628
+ "showValues": this._configDisplayStyle.bar.isShowValue ? true : false,
629
+ "useMovementColor": this._configDisplayStyle.bar.isUsedMovement ? true : false,
630
+ "alignment": this._configDisplayStyle.alignment
631
+ }
632
+ };
633
+ } else if (this._configDisplayStyle.mode === "heatmap") {
634
+ if (!this._configDisplayStyle.heatmap) {
635
+ this._configDisplayStyle.heatmap = {};
636
+ }
637
+ dataReturn = {
638
+ "mode": "heatmap",
639
+ "heatmap": {
640
+ "mode": this._configDisplayStyle.heatmap.applied ? this._configDisplayStyle.heatmap.applied : "cell",
641
+ "midPoint": this._configDisplayStyle.heatmap.midPoint ? this._configDisplayStyle.heatmap.midPoint : "0",
642
+ "alignment": this._configDisplayStyle.alignment
643
+ }
644
+ };
645
+ } else if (this._configDisplayStyle.mode === "conditionalColor") {
646
+ // Check when conditionFunction empty
647
+ if(this._configDisplayStyle.conditionFunction) {
648
+
649
+ var conditions = this._configDisplayStyle.conditionFunction.map(e => {
650
+ return {
651
+ backgroundColor: e.colors.backgroundColor,
652
+ color: e.colors.color,
653
+ expression: e.expressionObject.text,
654
+ expressionObject: e.expressionObject,
655
+ fields: e.fields
656
+ };
657
+ });
658
+ dataReturn = {
659
+ "mode": "conditionalColor",
660
+ conditionalColor: {
661
+ alignment: this._configDisplayStyle.alignment,
662
+ conditions: conditions
663
+ }
664
+ };
665
+ } else {
666
+ dataReturn = {
667
+ "mode": "conditionalColor",
668
+ conditionalColor: {}
669
+ };
670
+ }
671
+
672
+ }
673
+
674
+ return dataReturn;
675
+ };
676
+
677
+ /** @private
678
+ * @return {PreviewTable~ConfigUpdateStyleValue} Format data from dialog module
679
+ */
680
+ PreviewTable.prototype._getValueUpdateChanged = function () {
681
+ var dataReturn = {
682
+ isTextChangedStyle: this._configUpdateStyleValue.isTextChangedStyle,
683
+ isCellChangedStyle: this._configUpdateStyleValue.isCellChangedStyle,
684
+ isBackgroundBlink: this._configUpdateStyleValue.isBackgroundBlink
685
+ };
686
+
687
+ // Check empty value for return empty value
688
+ if(!dataReturn.isTextChangedStyle && !dataReturn.isCellChangedStyle) {
689
+ dataReturn = null;
690
+ }
691
+
692
+ return dataReturn;
693
+ };
694
+
695
+ /** @private
696
+ * @return {PreviewTable~FormatTab} Format data from dialog module
697
+ */
698
+ PreviewTable.prototype._getValueFormatTab = function () {
699
+ var dataReturn;
700
+ switch (this._configValueFormat.mode) {
701
+ case "general":
702
+ dataReturn = {
703
+ formatType: "general"
704
+ };
705
+ break;
706
+
707
+ case "number":
708
+
709
+ dataReturn = {
710
+ formatType: "number",
711
+ separator: this._configValueFormat.isUsedSeparator ? this._configValueFormat.isUsedSeparator : false,
712
+ plusSign: this._configValueFormat.isShowPlusSign ? this._configValueFormat.isShowPlusSign : false,
713
+ decimalPlaces: this._configValueFormat.decimalPlaces
714
+ };
715
+ break;
716
+
717
+ case "scaled":
718
+ dataReturn = {
719
+ formatType: "scaled",
720
+ separator: this._configValueFormat.isUsedSeparator ? this._configValueFormat.isUsedSeparator : false,
721
+ plusSign: this._configValueFormat.isShowPlusSign ? this._configValueFormat.isShowPlusSign : false,
722
+ scalingUnit: this._configValueFormat.scaled ? this._configValueFormat.scaled : "m",
723
+ decimalPlaces: this._configValueFormat.decimalPlaces ? this._configValueFormat.decimalPlaces : 2
724
+ };
725
+
726
+ break;
727
+
728
+ case "percent":
729
+ dataReturn = {
730
+ formatType: "percent",
731
+ separator: this._configValueFormat.isUsedSeparator ? this._configValueFormat.isUsedSeparator : false,
732
+ plusSign: this._configValueFormat.isShowPlusSign ? this._configValueFormat.isShowPlusSign : false,
733
+ decimalPlaces: this._configValueFormat.decimalPlaces ? this._configValueFormat.decimalPlaces : 2,
734
+ multiplyBy100: this._configValueFormat.isPercentMultiply100 ? true : false
735
+ };
736
+
737
+ break;
738
+
739
+ case DATE_TIME:
740
+ dataReturn = {
741
+ "formatType": DATE_TIME,
742
+ "dateTimeFormat": this._configDateTime.formatDate,
743
+ "useUTCTime": this._configDateTime.isUsedGMT
744
+ };
745
+ break;
746
+
747
+ default:
748
+ break;
749
+ }
750
+
751
+ return dataReturn;
752
+ };
753
+
754
+ /** @private
755
+ * @param {boolean=} blinking blinking when value change increase or decrease
756
+ * @return {Array} - style objects for sample table
757
+ */
758
+ PreviewTable.prototype._getSampleStyleObjects = function (blinking) {
759
+ var cc = this._table.getColumnCount();
760
+ var rc = this._table.getRowCount();
761
+ var curIndex = this._sampleSetIndex;
762
+ var curDataset = SAMPLE_DATASET[curIndex];
763
+ var displayStyleTab = this._configDisplayStyle ? this._configDisplayStyle : null;
764
+ if (!displayStyleTab) {
765
+ displayStyleTab = {};
766
+ }
767
+
768
+ var alignment = displayStyleTab.alignment;
769
+ alignment = (alignment && alignment !== "default") ? alignment : "";
770
+ var r, c, obj;
771
+ var objs = new Array(rc);
772
+
773
+ // clear alignment and style
774
+ for (r = 0; r < rc; ++r) {
775
+ var ary = objs[r] = new Array(cc);
776
+ for (c = 0; c < cc; ++c) {
777
+ obj = ary[c] = {};
778
+ obj.textAlign = alignment;
779
+ obj.color = "";
780
+ obj.backgroundColor = "";
781
+ obj.borderColor = "";
782
+ }
783
+ }
784
+
785
+ var val;
786
+ // heatmap section
787
+ if (displayStyleTab.mode === "heatmap") {
788
+ if (!displayStyleTab.heatmap) {
789
+ displayStyleTab.heatmap = {};
790
+ }
791
+ var midPoint = (+displayStyleTab.heatmap.midPoint) || 0;
792
+ var min = 0, max = 0;
793
+ var themeColorBase = getComputedStyle(document.documentElement).getPropertyValue("--color-scheme-ticktext");
794
+ var themeColorUp = getComputedStyle(document.documentElement).getPropertyValue("--color-scheme-positive");
795
+ var themeColorDown = getComputedStyle(document.documentElement).getPropertyValue("--color-scheme-negative");
796
+
797
+ for (r = 0; r < rc; ++r) {
798
+ for (c = 0; c < cc; ++c) {
799
+ var data = curDataset[r][c];
800
+ if (min > data) min = data;
801
+ if (max < data) max = data;
802
+ }
803
+ }
804
+
805
+ for (r = 0; r < rc; ++r) {
806
+ for (c = 0; c < cc; ++c) {
807
+ obj = objs[r][c];
808
+ val = curDataset[r][c] - midPoint;
809
+ var blendedColor = null;
810
+ if (val > 0) {
811
+ blendedColor = CellPainter.blendColor(themeColorBase, themeColorUp,
812
+ val / (max - midPoint)
813
+ );
814
+ } else if (val < 0) {
815
+ blendedColor = CellPainter.blendColor(themeColorBase, themeColorDown,
816
+ val / (min - midPoint)
817
+ );
818
+ } else {
819
+ blendedColor = CellPainter.blendColor(themeColorBase, themeColorDown, 0);
820
+ }
821
+ if (displayStyleTab.heatmap.applied === "text") {
822
+ obj.color = CellPainter.num2Hex(blendedColor);
823
+ } else {
824
+ obj.backgroundColor = CellPainter.num2Hex(blendedColor);
825
+ obj.color = CellPainter.blackAndWhite(blendedColor);
826
+ }
827
+ }
828
+ }
829
+ }
830
+
831
+ // conditional color section
832
+ if (this._configDisplayStyle.mode === "conditionalColor") {
833
+ if (this._configDisplayStyle.conditionFunction) {
834
+ for (r = 0; r < rc; ++r) {
835
+ for (c = 0; c < cc; ++c) {
836
+ for (var i = 0; i < this._configDisplayStyle.conditionFunction.length; i++) {
837
+ obj = objs[r][c];
838
+ val = curDataset[r][c];
839
+ var ret = null;
840
+ try {
841
+ ret = this._configDisplayStyle.conditionFunction[i].conditionSequence(val); // check value with function pass from another module
842
+ } catch (error) { } // do nothing
843
+ if (ret) {
844
+ obj.color = this._configDisplayStyle.conditionFunction[i].colors.color;
845
+ obj.backgroundColor = this._configDisplayStyle.conditionFunction[i].colors.backgroundColor;
846
+ break;
847
+ }
848
+ }
849
+ }
850
+ }
851
+ }
852
+ }
853
+
854
+ // Check blink text when value change
855
+ if (this._configUpdateStyleValue.isTextChangedStyle) {
856
+ for (r = 0; r < rc; ++r) {
857
+ for (c = 0; c < cc; ++c) {
858
+ obj = objs[r][c];
859
+ val = curDataset[r][c];
860
+ if (val > 0) {
861
+ obj.color = "var(--color-scheme-positive)";
862
+ }
863
+ else {
864
+ obj.color = "var(--color-scheme-negative)";
865
+ }
866
+ }
867
+ }
868
+ }
869
+
870
+ if (blinking && this._configUpdateStyleValue.isCellChangedStyle) { // Check blink cell when value change
871
+ var prevIndex = curIndex ? curIndex - 1 : SAMPLE_DATASET.length - 1;
872
+ var prevDataset = SAMPLE_DATASET[prevIndex];
873
+
874
+ for (r = 0; r < rc; ++r) {
875
+ for (c = 0; c < cc; ++c) {
876
+ obj = objs[r][c];
877
+ var curVal = curDataset[r][c];
878
+ var prevVal = prevDataset[r][c];
879
+ var blinkColor = "";
880
+ if (curVal >= prevVal) {
881
+ blinkColor = this._configUpdateStyleValue.colors ? this._configUpdateStyleValue.colors.tickUp : "var(--color-scheme-tickup)";
882
+ } else {
883
+ blinkColor = this._configUpdateStyleValue.colors ? this._configUpdateStyleValue.colors.tickDown : "var(--color-scheme-tickdown)";
884
+ }
885
+
886
+ // Blink border or background when value change
887
+ if (this._configUpdateStyleValue.isBackgroundBlink) {
888
+ obj.backgroundColor = blinkColor;
889
+ obj.color = this._configUpdateStyleValue.colors ? CellPainter.getOppositeColor(blinkColor) : "";
890
+ } else {
891
+ obj.borderColor = blinkColor;
892
+ }
893
+ }
894
+ }
895
+ }
896
+
897
+
898
+ return objs;
899
+ };
900
+
901
+ /** @private
902
+ * @description interval for random value in preview table
903
+ */
904
+ PreviewTable.prototype._onIntervalUpdate = function () {
905
+ this._sampleSetIndex = (++this._sampleSetIndex) % SAMPLE_DATASET.length;
906
+ this._formatSampleValue(true);
907
+ setTimeout(this._formatSampleValue, 500);
908
+ };
909
+
910
+ /** @private
911
+ *
912
+ * @param {Object} cell - cell element
913
+ * @param {number} value - base number value
914
+ * @param {string} formattedValue - formatted string value
915
+ * @param {boolean} showValues - true if numeric values need to be displayed
916
+ * @param {boolean=} useMovementColor - true if movement colors applied
917
+ */
918
+ PreviewTable.prototype._renderBar = function (cell, value, formattedValue, showValues, useMovementColor) {
919
+ if(useMovementColor == null) {
920
+ useMovementColor = false;
921
+ }
922
+ var bar = new PercentBar();
923
+ bar.setValue(value, ABSOLUTE_MAX_SAMPLE_DATA, formattedValue);
924
+ bar.hideText(!showValues);
925
+ bar.useMovementColor(useMovementColor);
926
+ bar.setTextWidth(95);
927
+ if (this._configDisplayStyle.alignment) {
928
+ bar.setAlignment(this._configDisplayStyle.alignment);
929
+ }
930
+ var percentBarElem = bar.getElement();
931
+ cell.appendChild(percentBarElem);
932
+ };
933
+
934
+ /** @private
935
+ * @param {number} val - base number value
936
+ * @return {string} -formatted value
937
+ */
938
+ PreviewTable.prototype._updateValueFormatExample = function (val) {
939
+ var value = val;
940
+ var numberFormatterConfig = this._checkNumberFormatter();
941
+ switch (this._configValueFormat && this._configValueFormat.mode) {
942
+ case "general":
943
+ this._numberFormatter.resetToDefaults();
944
+ this._numberFormatter.init({
945
+ decimalPlaces: 2
946
+ });
947
+ value = this._numberFormatter.format(value);
948
+ break;
949
+ case "number":
950
+ this._numberFormatter.resetToDefaults();
951
+ this._numberFormatter.init(numberFormatterConfig);
952
+ value = this._numberFormatter.format(value);
953
+ break;
954
+ case "scaled":
955
+ this._numberFormatter.resetToDefaults();
956
+ Object.assign(numberFormatterConfig, {
957
+ scalingUnit: this._configValueFormat.scaled,
958
+ formatType: "scaled"
959
+ });
960
+
961
+ this._numberFormatter.init(numberFormatterConfig);
962
+ value = this._numberFormatter.format(value);
963
+ break;
964
+ case "percent":
965
+ this._numberFormatter.resetToDefaults();
966
+ Object.assign(numberFormatterConfig, {
967
+ formatType: "percent",
968
+ percentSign: true,
969
+ multiplyBy100: this._configValueFormat.isPercentMultiply100
970
+ });
971
+
972
+ this._numberFormatter.init(numberFormatterConfig);
973
+ value = this._numberFormatter.format(value);
974
+ break;
975
+ case DATE_TIME:
976
+ this._dateFormatter.setDateTimeMeta(this._configDateTime.formatDate, this._configDateTime.isUsedGMT, null, this._configDateTime.lang);
977
+ value = this._dateFormatter.format(new Date());
978
+ break;
979
+ default:
980
+ break;
981
+ }
982
+
983
+ return value;
984
+ };
985
+
986
+ /**
987
+ * @private
988
+ * @param {Object} colors
989
+ */
990
+ PreviewTable.prototype._onThemeLoaded = function (colors) {
991
+ this._configUpdateStyleValue.colors = colors;
992
+ };
993
+
994
+ export default PreviewTable;
995
+ export { PreviewTable };